@geniusdynamics/ns8-ui-lib 1.0.2 → 1.0.4
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 +8 -18
- package/dist/ns8-ui-lib.css +1 -1
- package/dist/ns8-ui-lib.es.js +925 -921
- package/dist/ns8-ui-lib.es.js.map +1 -1
- package/dist/ns8-ui-lib.umd.js +8 -8
- package/dist/ns8-ui-lib.umd.js.map +1 -1
- package/dist/src/components/NS/cards/NSBackupCard.vue.d.ts +1 -1
- package/dist/src/components/NS/empty-state/NSEmptyState.vue.d.ts +2 -2
- package/package.json +1 -1
- package/src/components/NS/cards/NSBackupCard.vue +95 -76
- package/src/components/NS/empty-state/NSEmptyState.vue +106 -97
package/dist/ns8-ui-lib.es.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as No from "vue";
|
|
2
2
|
import { defineComponent, toRefs, ref, createElementBlock, openBlock, Fragment, createVNode, createCommentVNode, unref, withCtx, createBlock, resolveDynamicComponent, mergeProps, renderSlot, renderList, computed, normalizeStyle, withKeys, withModifiers, normalizeProps, guardReactiveProps, getCurrentInstance, watch, nextTick, inject, provide, h, toRaw, onMounted, onUnmounted, Teleport, toHandlerKey, camelize, Comment, cloneVNode, watchEffect, markRaw, effectScope, onBeforeUnmount, reactive, getCurrentScope, onScopeDispose, useId, normalizeClass, createElementVNode, createTextVNode, toDisplayString, withDirectives, vModelSelect, isRef, toValue as toValue$2, vModelText } from "vue";
|
|
3
|
-
import { Check, AlertCircle, AlertTriangle, CheckCircle, EyeOff, Eye, X, Search, FileX,
|
|
3
|
+
import { Check, AlertCircle, AlertTriangle, CheckCircle, EyeOff, Eye, X, Search, FileX, Inbox, Info, Loader2, Maximize2, Minimize2, ChevronLeft, MoreHorizontal, ChevronRight, Filter, ChevronUp, ChevronDown, Save, Clock, Activity, HardDrive, CloudUpload, FolderOpen, Award, XCircle, Ruler, UserCheck, Box, Asterisk, Folder, Lock, Mail, HelpCircle, User, AtSign, BookOpen, Shield, ServerCog, ShieldCheck, Router, Users, Library, Columns, Rows, Eraser, Trash2, RotateCw, MoreVertical, FileText, Power, CircleX, Hourglass, ArrowDown, Database, Network, Wrench, Link, Calendar, ZoomIn, Star, Key, Edit, Server, Copy, Cpu, Rocket, Plus, Package, Settings, TrendingUp, ExternalLink, Download, RotateCcw, Expand, Bell, ArrowRight } from "lucide-vue-next";
|
|
4
4
|
import "vue-router";
|
|
5
5
|
function te(e, t) {
|
|
6
6
|
const n = typeof e == "string" && !t ? `${e}Context` : t, s = Symbol(n);
|
|
@@ -70,22 +70,22 @@ function He(...e) {
|
|
|
70
70
|
return Na;
|
|
71
71
|
Array.isArray(n) || (n = [n]), Array.isArray(s) || (s = [s]);
|
|
72
72
|
const a = [], o = () => {
|
|
73
|
-
a.forEach((
|
|
74
|
-
}, l = (
|
|
73
|
+
a.forEach((d) => d()), a.length = 0;
|
|
74
|
+
}, l = (d, m, p, b) => (d.addEventListener(m, p, b), () => d.removeEventListener(m, p, b)), c = watch(
|
|
75
75
|
() => [$e(t), je(i)],
|
|
76
|
-
([
|
|
77
|
-
if (o(), !
|
|
76
|
+
([d, m]) => {
|
|
77
|
+
if (o(), !d)
|
|
78
78
|
return;
|
|
79
79
|
const p = di(m) ? { ...m } : m;
|
|
80
80
|
a.push(
|
|
81
|
-
...n.flatMap((b) => s.map((f) => l(
|
|
81
|
+
...n.flatMap((b) => s.map((f) => l(d, b, f, p)))
|
|
82
82
|
);
|
|
83
83
|
},
|
|
84
84
|
{ immediate: !0, flush: "post" }
|
|
85
|
-
),
|
|
85
|
+
), u = () => {
|
|
86
86
|
c(), o();
|
|
87
87
|
};
|
|
88
|
-
return bt(
|
|
88
|
+
return bt(u), u;
|
|
89
89
|
}
|
|
90
90
|
function Ci(e) {
|
|
91
91
|
return typeof e == "function" ? e : typeof e == "string" ? (t) => t.key === e : Array.isArray(e) ? (t) => e.includes(t.key) : () => !0;
|
|
@@ -99,8 +99,8 @@ function Gn(...e) {
|
|
|
99
99
|
passive: o = !1,
|
|
100
100
|
dedupe: l = !1
|
|
101
101
|
} = s, c = Ci(t);
|
|
102
|
-
return He(i, a, (
|
|
103
|
-
|
|
102
|
+
return He(i, a, (u) => {
|
|
103
|
+
u.repeat && je(l) || c(u) && n(u);
|
|
104
104
|
}, o);
|
|
105
105
|
}
|
|
106
106
|
function Ga() {
|
|
@@ -117,12 +117,12 @@ function ne(e, t, n, s = {}) {
|
|
|
117
117
|
const {
|
|
118
118
|
clone: l = !1,
|
|
119
119
|
passive: c = !1,
|
|
120
|
-
eventName:
|
|
121
|
-
deep:
|
|
120
|
+
eventName: u,
|
|
121
|
+
deep: d = !1,
|
|
122
122
|
defaultValue: m,
|
|
123
123
|
shouldEmit: p
|
|
124
124
|
} = s, b = getCurrentInstance(), f = n || b?.emit || ((i = b?.$emit) == null ? void 0 : i.bind(b)) || ((o = (a = b?.proxy) == null ? void 0 : a.$emit) == null ? void 0 : o.bind(b?.proxy));
|
|
125
|
-
let v =
|
|
125
|
+
let v = u;
|
|
126
126
|
t || (t = "modelValue"), v = v || `update:${t.toString()}`;
|
|
127
127
|
const k = (g) => l ? typeof l == "function" ? l(g) : _i(g) : g, y = () => ri(e[t]) ? k(e[t]) : m, x = (g) => {
|
|
128
128
|
p ? p(g) && f(v, g) : f(v, g);
|
|
@@ -138,9 +138,9 @@ function ne(e, t, n, s = {}) {
|
|
|
138
138
|
), watch(
|
|
139
139
|
C,
|
|
140
140
|
(_) => {
|
|
141
|
-
!S && (_ !== e[t] ||
|
|
141
|
+
!S && (_ !== e[t] || d) && x(_);
|
|
142
142
|
},
|
|
143
|
-
{ deep:
|
|
143
|
+
{ deep: d }
|
|
144
144
|
), C;
|
|
145
145
|
} else
|
|
146
146
|
return computed({
|
|
@@ -220,11 +220,11 @@ const Ti = Dl(() => {
|
|
|
220
220
|
return;
|
|
221
221
|
}
|
|
222
222
|
t.value === void 0 && (t.value = document.body.style.overflow);
|
|
223
|
-
const
|
|
224
|
-
padding: s.scrollBody.value.padding === !0 ?
|
|
225
|
-
margin: s.scrollBody.value.margin === !0 ?
|
|
226
|
-
},
|
|
227
|
-
|
|
223
|
+
const u = window.innerWidth - document.documentElement.clientWidth, d = { padding: u, margin: 0 }, m = (c = s.scrollBody) != null && c.value ? typeof s.scrollBody.value == "object" ? Di({
|
|
224
|
+
padding: s.scrollBody.value.padding === !0 ? u : s.scrollBody.value.padding,
|
|
225
|
+
margin: s.scrollBody.value.margin === !0 ? u : s.scrollBody.value.margin
|
|
226
|
+
}, d) : d : { padding: 0, margin: 0 };
|
|
227
|
+
u > 0 && (document.body.style.paddingRight = typeof m.padding == "number" ? `${m.padding}px` : String(m.padding), document.body.style.marginRight = typeof m.margin == "number" ? `${m.margin}px` : String(m.margin), document.body.style.setProperty("--scrollbar-width", `${u}px`), document.body.style.overflow = "hidden"), jo && (i = He(
|
|
228
228
|
document,
|
|
229
229
|
"touchmove",
|
|
230
230
|
(p) => Ri(p),
|
|
@@ -332,14 +332,14 @@ var Li = function(e) {
|
|
|
332
332
|
}, Ki = function(e, t, n, s) {
|
|
333
333
|
var i = zi(t, Array.isArray(e) ? e : [e]);
|
|
334
334
|
Ba[n] || (Ba[n] = /* @__PURE__ */ new WeakMap());
|
|
335
|
-
var a = Ba[n], o = [], l = /* @__PURE__ */ new Set(), c = new Set(i),
|
|
336
|
-
!m || l.has(m) || (l.add(m),
|
|
335
|
+
var a = Ba[n], o = [], l = /* @__PURE__ */ new Set(), c = new Set(i), u = function(m) {
|
|
336
|
+
!m || l.has(m) || (l.add(m), u(m.parentNode));
|
|
337
337
|
};
|
|
338
|
-
i.forEach(
|
|
339
|
-
var
|
|
338
|
+
i.forEach(u);
|
|
339
|
+
var d = function(m) {
|
|
340
340
|
!m || c.has(m) || Array.prototype.forEach.call(m.children, function(p) {
|
|
341
341
|
if (l.has(p))
|
|
342
|
-
|
|
342
|
+
d(p);
|
|
343
343
|
else
|
|
344
344
|
try {
|
|
345
345
|
var b = p.getAttribute(s), f = b !== null && b !== "false", v = (Kt.get(p) || 0) + 1, k = (a.get(p) || 0) + 1;
|
|
@@ -349,7 +349,7 @@ var Li = function(e) {
|
|
|
349
349
|
}
|
|
350
350
|
});
|
|
351
351
|
};
|
|
352
|
-
return
|
|
352
|
+
return d(t), l.clear(), _n++, function() {
|
|
353
353
|
o.forEach(function(m) {
|
|
354
354
|
var p = Kt.get(m) - 1, b = a.get(m) - 1;
|
|
355
355
|
Kt.set(m, p), a.set(m, b), p || ($a.has(m) || m.removeAttribute(s), $a.delete(m)), b || m.removeAttribute(n);
|
|
@@ -391,13 +391,13 @@ function Ll(e) {
|
|
|
391
391
|
if (!Array.isArray(o) || !o.length)
|
|
392
392
|
return;
|
|
393
393
|
const l = o[0];
|
|
394
|
-
let c,
|
|
394
|
+
let c, u;
|
|
395
395
|
if ("borderBoxSize" in l) {
|
|
396
|
-
const
|
|
397
|
-
c = m.inlineSize,
|
|
396
|
+
const d = l.borderBoxSize, m = Array.isArray(d) ? d[0] : d;
|
|
397
|
+
c = m.inlineSize, u = m.blockSize;
|
|
398
398
|
} else
|
|
399
|
-
c = i.offsetWidth,
|
|
400
|
-
t.value = { width: c, height:
|
|
399
|
+
c = i.offsetWidth, u = i.offsetHeight;
|
|
400
|
+
t.value = { width: c, height: u };
|
|
401
401
|
});
|
|
402
402
|
return a.observe(i, { box: "border-box" }), () => a.unobserve(i);
|
|
403
403
|
} else
|
|
@@ -427,17 +427,17 @@ const Jn = defineComponent({
|
|
|
427
427
|
var s, i;
|
|
428
428
|
if (!n.default)
|
|
429
429
|
return null;
|
|
430
|
-
const a = qa(n.default()), o = a.findIndex((
|
|
430
|
+
const a = qa(n.default()), o = a.findIndex((d) => d.type !== Comment);
|
|
431
431
|
if (o === -1)
|
|
432
432
|
return a;
|
|
433
433
|
const l = a[o];
|
|
434
434
|
(s = l.props) == null || delete s.ref;
|
|
435
435
|
const c = l.props ? mergeProps(t, l.props) : t;
|
|
436
436
|
t.class && (i = l.props) != null && i.class && delete l.props.class;
|
|
437
|
-
const
|
|
438
|
-
for (const
|
|
439
|
-
|
|
440
|
-
return a.length === 1 ?
|
|
437
|
+
const u = cloneVNode(l, c);
|
|
438
|
+
for (const d in c)
|
|
439
|
+
d.startsWith("on") && (u.props || (u.props = {}), u.props[d] = c[d]);
|
|
440
|
+
return a.length === 1 ? u : (a[o] = u, a);
|
|
441
441
|
};
|
|
442
442
|
}
|
|
443
443
|
}), O = defineComponent({
|
|
@@ -472,7 +472,7 @@ function Xi(e, t) {
|
|
|
472
472
|
var n;
|
|
473
473
|
const s = ref({}), i = ref("none"), a = ref(e), o = e.value ? "mounted" : "unmounted";
|
|
474
474
|
let l;
|
|
475
|
-
const c = ((n = t.value) == null ? void 0 : n.ownerDocument.defaultView) ?? Rt, { state:
|
|
475
|
+
const c = ((n = t.value) == null ? void 0 : n.ownerDocument.defaultView) ?? Rt, { state: u, dispatch: d } = zl(o, {
|
|
476
476
|
mounted: {
|
|
477
477
|
UNMOUNT: "unmounted",
|
|
478
478
|
ANIMATION_OUT: "unmountSuspended"
|
|
@@ -498,7 +498,7 @@ function Xi(e, t) {
|
|
|
498
498
|
const g = y !== k;
|
|
499
499
|
if (await nextTick(), g) {
|
|
500
500
|
const C = i.value, S = Ia(t.value);
|
|
501
|
-
k ? (
|
|
501
|
+
k ? (d("MOUNT"), m("enter"), S === "none" && m("after-enter")) : S === "none" || ((x = s.value) == null ? void 0 : x.display) === "none" ? (d("UNMOUNT"), m("leave"), m("after-leave")) : y && C !== S ? (d("ANIMATION_OUT"), m("leave")) : (d("UNMOUNT"), m("after-leave"));
|
|
502
502
|
}
|
|
503
503
|
},
|
|
504
504
|
{ immediate: !0 }
|
|
@@ -506,32 +506,32 @@ function Xi(e, t) {
|
|
|
506
506
|
const p = (k) => {
|
|
507
507
|
const y = Ia(t.value), x = y.includes(
|
|
508
508
|
k.animationName
|
|
509
|
-
), g =
|
|
510
|
-
if (k.target === t.value && x && (m(`after-${g}`),
|
|
509
|
+
), g = u.value === "mounted" ? "enter" : "leave";
|
|
510
|
+
if (k.target === t.value && x && (m(`after-${g}`), d("ANIMATION_END"), !a.value)) {
|
|
511
511
|
const C = t.value.style.animationFillMode;
|
|
512
512
|
t.value.style.animationFillMode = "forwards", l = c?.setTimeout(() => {
|
|
513
513
|
var S;
|
|
514
514
|
((S = t.value) == null ? void 0 : S.style.animationFillMode) === "forwards" && (t.value.style.animationFillMode = C);
|
|
515
515
|
});
|
|
516
516
|
}
|
|
517
|
-
k.target === t.value && y === "none" &&
|
|
517
|
+
k.target === t.value && y === "none" && d("ANIMATION_END");
|
|
518
518
|
}, b = (k) => {
|
|
519
519
|
k.target === t.value && (i.value = Ia(t.value));
|
|
520
520
|
}, f = watch(
|
|
521
521
|
t,
|
|
522
522
|
(k, y) => {
|
|
523
|
-
k ? (s.value = getComputedStyle(k), k.addEventListener("animationstart", b), k.addEventListener("animationcancel", p), k.addEventListener("animationend", p)) : (
|
|
523
|
+
k ? (s.value = getComputedStyle(k), k.addEventListener("animationstart", b), k.addEventListener("animationcancel", p), k.addEventListener("animationend", p)) : (d("ANIMATION_END"), l !== void 0 && c?.clearTimeout(l), y?.removeEventListener("animationstart", b), y?.removeEventListener("animationcancel", p), y?.removeEventListener("animationend", p));
|
|
524
524
|
},
|
|
525
525
|
{ immediate: !0 }
|
|
526
|
-
), v = watch(
|
|
526
|
+
), v = watch(u, () => {
|
|
527
527
|
const k = Ia(t.value);
|
|
528
|
-
i.value =
|
|
528
|
+
i.value = u.value === "mounted" ? k : "none";
|
|
529
529
|
});
|
|
530
530
|
return onUnmounted(() => {
|
|
531
531
|
f(), v();
|
|
532
532
|
}), {
|
|
533
533
|
isPresent: computed(
|
|
534
|
-
() => ["mounted", "unmountSuspended"].includes(
|
|
534
|
+
() => ["mounted", "unmountSuspended"].includes(u.value)
|
|
535
535
|
)
|
|
536
536
|
};
|
|
537
537
|
}
|
|
@@ -556,12 +556,12 @@ const Pe = defineComponent({
|
|
|
556
556
|
n({ present: l });
|
|
557
557
|
let c = t.default({ present: l });
|
|
558
558
|
c = qa(c || []);
|
|
559
|
-
const
|
|
559
|
+
const u = getCurrentInstance();
|
|
560
560
|
if (c && c?.length > 1) {
|
|
561
|
-
const
|
|
561
|
+
const d = (s = u?.parent) != null && s.type.name ? `<${u.parent.type.name} />` : "component";
|
|
562
562
|
throw new Error(
|
|
563
563
|
[
|
|
564
|
-
`Detected an invalid children for \`${
|
|
564
|
+
`Detected an invalid children for \`${d}\` for \`Presence\` component.`,
|
|
565
565
|
"",
|
|
566
566
|
"Note: Presence works similarly to `v-if` directly, but it waits for animation/transition to finished before unmounting. So it expect only one direct child of valid VNode type.",
|
|
567
567
|
"You can apply a few solutions:",
|
|
@@ -575,8 +575,8 @@ const Pe = defineComponent({
|
|
|
575
575
|
);
|
|
576
576
|
}
|
|
577
577
|
return () => a.value || i.value || l.value ? h(t.default({ present: l })[0], {
|
|
578
|
-
ref: (
|
|
579
|
-
const m = $e(
|
|
578
|
+
ref: (d) => {
|
|
579
|
+
const m = $e(d);
|
|
580
580
|
return typeof m?.hasAttribute > "u" || (m != null && m.hasAttribute("data-radix-popper-content-wrapper") ? o.value = m.firstElementChild : o.value = m), m;
|
|
581
581
|
}
|
|
582
582
|
}) : null;
|
|
@@ -632,14 +632,14 @@ function Ul(e, t) {
|
|
|
632
632
|
return watchEffect((o) => {
|
|
633
633
|
if (!Je)
|
|
634
634
|
return;
|
|
635
|
-
const l = async (
|
|
636
|
-
const
|
|
635
|
+
const l = async (u) => {
|
|
636
|
+
const d = u.target;
|
|
637
637
|
if (t != null && t.value) {
|
|
638
|
-
if (jl(t.value,
|
|
638
|
+
if (jl(t.value, d)) {
|
|
639
639
|
i.value = !1;
|
|
640
640
|
return;
|
|
641
641
|
}
|
|
642
|
-
if (
|
|
642
|
+
if (u.target && !i.value) {
|
|
643
643
|
let m = function() {
|
|
644
644
|
jt(
|
|
645
645
|
lu,
|
|
@@ -647,8 +647,8 @@ function Ul(e, t) {
|
|
|
647
647
|
p
|
|
648
648
|
);
|
|
649
649
|
};
|
|
650
|
-
const p = { originalEvent:
|
|
651
|
-
|
|
650
|
+
const p = { originalEvent: u };
|
|
651
|
+
u.pointerType === "touch" ? (s.removeEventListener("click", a.value), a.value = m, s.addEventListener("click", a.value, {
|
|
652
652
|
once: !0
|
|
653
653
|
})) : m();
|
|
654
654
|
} else
|
|
@@ -702,14 +702,14 @@ const Ge = reactive({
|
|
|
702
702
|
var f;
|
|
703
703
|
return ((f = a.value) == null ? void 0 : f.ownerDocument) ?? globalThis.document;
|
|
704
704
|
}
|
|
705
|
-
), l = computed(() => Ge.layersRoot), c = computed(() => a.value ? Array.from(l.value).indexOf(a.value) : -1),
|
|
705
|
+
), l = computed(() => Ge.layersRoot), c = computed(() => a.value ? Array.from(l.value).indexOf(a.value) : -1), u = computed(() => Ge.layersWithOutsidePointerEventsDisabled.size > 0), d = computed(() => {
|
|
706
706
|
const f = Array.from(l.value), [v] = [...Ge.layersWithOutsidePointerEventsDisabled].slice(-1), k = f.indexOf(v);
|
|
707
707
|
return c.value >= k;
|
|
708
708
|
}), m = Ul(async (f) => {
|
|
709
709
|
const v = [...Ge.branches].some(
|
|
710
710
|
(k) => k?.contains(f.target)
|
|
711
711
|
);
|
|
712
|
-
!
|
|
712
|
+
!d.value || v || (s("pointerDownOutside", f), s("interactOutside", f), await nextTick(), f.defaultPrevented || s("dismiss"));
|
|
713
713
|
}, a), p = Gl((f) => {
|
|
714
714
|
[...Ge.branches].some(
|
|
715
715
|
(v) => v?.contains(f.target)
|
|
@@ -733,7 +733,7 @@ const Ge = reactive({
|
|
|
733
733
|
as: f.as,
|
|
734
734
|
"data-dismissable-layer": "",
|
|
735
735
|
style: normalizeStyle({
|
|
736
|
-
pointerEvents:
|
|
736
|
+
pointerEvents: u.value ? d.value ? "auto" : "none" : void 0
|
|
737
737
|
}),
|
|
738
738
|
onFocusCapture: unref(p).onFocusCapture,
|
|
739
739
|
onBlurCapture: unref(p).onBlurCapture,
|
|
@@ -832,7 +832,7 @@ const Za = /* @__PURE__ */ defineComponent({
|
|
|
832
832
|
this.paused = !1;
|
|
833
833
|
}
|
|
834
834
|
});
|
|
835
|
-
watchEffect((
|
|
835
|
+
watchEffect((d) => {
|
|
836
836
|
if (!Je)
|
|
837
837
|
return;
|
|
838
838
|
const m = a.value;
|
|
@@ -855,10 +855,10 @@ const Za = /* @__PURE__ */ defineComponent({
|
|
|
855
855
|
}
|
|
856
856
|
document.addEventListener("focusin", p), document.addEventListener("focusout", b);
|
|
857
857
|
const v = new MutationObserver(f);
|
|
858
|
-
m && v.observe(m, { childList: !0, subtree: !0 }),
|
|
858
|
+
m && v.observe(m, { childList: !0, subtree: !0 }), d(() => {
|
|
859
859
|
document.removeEventListener("focusin", p), document.removeEventListener("focusout", b), v.disconnect();
|
|
860
860
|
});
|
|
861
|
-
}), watchEffect(async (
|
|
861
|
+
}), watchEffect(async (d) => {
|
|
862
862
|
const m = a.value;
|
|
863
863
|
if (await nextTick(), !m)
|
|
864
864
|
return;
|
|
@@ -870,7 +870,7 @@ const Za = /* @__PURE__ */ defineComponent({
|
|
|
870
870
|
select: !0
|
|
871
871
|
}), me() === p && pt(m));
|
|
872
872
|
}
|
|
873
|
-
|
|
873
|
+
d(() => {
|
|
874
874
|
m.removeEventListener(xn, (v) => s("mountAutoFocus", v));
|
|
875
875
|
const b = new CustomEvent(Sn, qo), f = (v) => {
|
|
876
876
|
s("unmountAutoFocus", v);
|
|
@@ -880,25 +880,25 @@ const Za = /* @__PURE__ */ defineComponent({
|
|
|
880
880
|
}, 0);
|
|
881
881
|
});
|
|
882
882
|
});
|
|
883
|
-
function d
|
|
883
|
+
function u(d) {
|
|
884
884
|
if (!n.loop && !n.trapped || c.paused)
|
|
885
885
|
return;
|
|
886
|
-
const m =
|
|
886
|
+
const m = d.key === "Tab" && !d.altKey && !d.ctrlKey && !d.metaKey, p = me();
|
|
887
887
|
if (m && p) {
|
|
888
|
-
const b =
|
|
889
|
-
f && v ? !
|
|
888
|
+
const b = d.currentTarget, [f, v] = iu(b);
|
|
889
|
+
f && v ? !d.shiftKey && p === v ? (d.preventDefault(), n.loop && pt(f, { select: !0 })) : d.shiftKey && p === f && (d.preventDefault(), n.loop && pt(v, { select: !0 })) : p === b && d.preventDefault();
|
|
890
890
|
}
|
|
891
891
|
}
|
|
892
|
-
return (
|
|
892
|
+
return (d, m) => (openBlock(), createBlock(unref(O), {
|
|
893
893
|
ref_key: "currentRef",
|
|
894
894
|
ref: i,
|
|
895
895
|
tabindex: "-1",
|
|
896
|
-
"as-child":
|
|
897
|
-
as:
|
|
898
|
-
onKeydown:
|
|
896
|
+
"as-child": d.asChild,
|
|
897
|
+
as: d.as,
|
|
898
|
+
onKeydown: u
|
|
899
899
|
}, {
|
|
900
900
|
default: withCtx(() => [
|
|
901
|
-
renderSlot(
|
|
901
|
+
renderSlot(d.$slots, "default")
|
|
902
902
|
]),
|
|
903
903
|
_: 3
|
|
904
904
|
}, 8, ["as-child", "as"]));
|
|
@@ -924,8 +924,8 @@ For more information, see https://www.radix-vue.com/components/${n}`, l = `Warni
|
|
|
924
924
|
onMounted(() => {
|
|
925
925
|
var c;
|
|
926
926
|
document.getElementById(s) || console.warn(o);
|
|
927
|
-
const
|
|
928
|
-
i &&
|
|
927
|
+
const u = (c = a.value) == null ? void 0 : c.getAttribute("aria-describedby");
|
|
928
|
+
i && u && (document.getElementById(i) || console.warn(l));
|
|
929
929
|
});
|
|
930
930
|
}
|
|
931
931
|
const Yl = /* @__PURE__ */ defineComponent({
|
|
@@ -953,8 +953,8 @@ const Yl = /* @__PURE__ */ defineComponent({
|
|
|
953
953
|
"as-child": "",
|
|
954
954
|
loop: "",
|
|
955
955
|
trapped: n.trapFocus,
|
|
956
|
-
onMountAutoFocus: c[5] || (c[5] = (
|
|
957
|
-
onUnmountAutoFocus: c[6] || (c[6] = (
|
|
956
|
+
onMountAutoFocus: c[5] || (c[5] = (u) => s("openAutoFocus", u)),
|
|
957
|
+
onUnmountAutoFocus: c[6] || (c[6] = (u) => s("closeAutoFocus", u))
|
|
958
958
|
}, {
|
|
959
959
|
default: withCtx(() => [
|
|
960
960
|
createVNode(unref(Ct), mergeProps({
|
|
@@ -968,11 +968,11 @@ const Yl = /* @__PURE__ */ defineComponent({
|
|
|
968
968
|
"aria-labelledby": unref(i).titleId,
|
|
969
969
|
"data-state": unref(to)(unref(i).open.value)
|
|
970
970
|
}, l.$attrs, {
|
|
971
|
-
onDismiss: c[0] || (c[0] = (
|
|
972
|
-
onEscapeKeyDown: c[1] || (c[1] = (
|
|
973
|
-
onFocusOutside: c[2] || (c[2] = (
|
|
974
|
-
onInteractOutside: c[3] || (c[3] = (
|
|
975
|
-
onPointerDownOutside: c[4] || (c[4] = (
|
|
971
|
+
onDismiss: c[0] || (c[0] = (u) => unref(i).onOpenChange(!1)),
|
|
972
|
+
onEscapeKeyDown: c[1] || (c[1] = (u) => s("escapeKeyDown", u)),
|
|
973
|
+
onFocusOutside: c[2] || (c[2] = (u) => s("focusOutside", u)),
|
|
974
|
+
onInteractOutside: c[3] || (c[3] = (u) => s("interactOutside", u)),
|
|
975
|
+
onPointerDownOutside: c[4] || (c[4] = (u) => s("pointerDownOutside", u))
|
|
976
976
|
}), {
|
|
977
977
|
default: withCtx(() => [
|
|
978
978
|
renderSlot(l.$slots, "default")
|
|
@@ -995,20 +995,20 @@ const Yl = /* @__PURE__ */ defineComponent({
|
|
|
995
995
|
emits: ["escapeKeyDown", "pointerDownOutside", "focusOutside", "interactOutside", "openAutoFocus", "closeAutoFocus"],
|
|
996
996
|
setup(e, { emit: t }) {
|
|
997
997
|
const n = e, s = t, i = ot(), a = Te(s), { forwardRef: o, currentElement: l } = R();
|
|
998
|
-
return ga(l), (c,
|
|
998
|
+
return ga(l), (c, u) => (openBlock(), createBlock(Yl, mergeProps({ ...n, ...unref(a) }, {
|
|
999
999
|
ref: unref(o),
|
|
1000
1000
|
"trap-focus": unref(i).open.value,
|
|
1001
1001
|
"disable-outside-pointer-events": !0,
|
|
1002
|
-
onCloseAutoFocus:
|
|
1002
|
+
onCloseAutoFocus: u[0] || (u[0] = (d) => {
|
|
1003
1003
|
var m;
|
|
1004
|
-
|
|
1004
|
+
d.defaultPrevented || (d.preventDefault(), (m = unref(i).triggerElement.value) == null || m.focus());
|
|
1005
1005
|
}),
|
|
1006
|
-
onPointerDownOutside:
|
|
1007
|
-
const m =
|
|
1008
|
-
(m.button === 2 || p) &&
|
|
1006
|
+
onPointerDownOutside: u[1] || (u[1] = (d) => {
|
|
1007
|
+
const m = d.detail.originalEvent, p = m.button === 0 && m.ctrlKey === !0;
|
|
1008
|
+
(m.button === 2 || p) && d.preventDefault();
|
|
1009
1009
|
}),
|
|
1010
|
-
onFocusOutside:
|
|
1011
|
-
|
|
1010
|
+
onFocusOutside: u[2] || (u[2] = (d) => {
|
|
1011
|
+
d.preventDefault();
|
|
1012
1012
|
})
|
|
1013
1013
|
}), {
|
|
1014
1014
|
default: withCtx(() => [
|
|
@@ -1034,15 +1034,15 @@ const Yl = /* @__PURE__ */ defineComponent({
|
|
|
1034
1034
|
return (l, c) => (openBlock(), createBlock(Yl, mergeProps({ ...n, ...unref(s) }, {
|
|
1035
1035
|
"trap-focus": !1,
|
|
1036
1036
|
"disable-outside-pointer-events": !1,
|
|
1037
|
-
onCloseAutoFocus: c[0] || (c[0] = (
|
|
1038
|
-
var
|
|
1039
|
-
|
|
1037
|
+
onCloseAutoFocus: c[0] || (c[0] = (u) => {
|
|
1038
|
+
var d;
|
|
1039
|
+
u.defaultPrevented || (a.value || (d = unref(i).triggerElement.value) == null || d.focus(), u.preventDefault()), a.value = !1, o.value = !1;
|
|
1040
1040
|
}),
|
|
1041
|
-
onInteractOutside: c[1] || (c[1] = (
|
|
1042
|
-
var
|
|
1043
|
-
|
|
1044
|
-
const m =
|
|
1045
|
-
(
|
|
1041
|
+
onInteractOutside: c[1] || (c[1] = (u) => {
|
|
1042
|
+
var d;
|
|
1043
|
+
u.defaultPrevented || (a.value = !0, u.detail.originalEvent.type === "pointerdown" && (o.value = !0));
|
|
1044
|
+
const m = u.target;
|
|
1045
|
+
(d = unref(i).triggerElement.value) != null && d.contains(m) && u.preventDefault(), u.detail.originalEvent.type === "focusin" && o.value && u.preventDefault();
|
|
1046
1046
|
})
|
|
1047
1047
|
}), {
|
|
1048
1048
|
default: withCtx(() => [
|
|
@@ -1221,24 +1221,24 @@ const td = ["value", "checked", "name", "disabled", "required"], [ad, nd] = te("
|
|
|
1221
1221
|
const n = e, s = t, { disabled: i } = toRefs(n), a = ne(n, "checked", s, {
|
|
1222
1222
|
defaultValue: n.defaultChecked,
|
|
1223
1223
|
passive: n.checked === void 0
|
|
1224
|
-
}), { forwardRef: o, currentElement: l } = R(), c = at(l),
|
|
1225
|
-
var
|
|
1226
|
-
return n.id && l.value ? (
|
|
1224
|
+
}), { forwardRef: o, currentElement: l } = R(), c = at(l), u = computed(() => {
|
|
1225
|
+
var d;
|
|
1226
|
+
return n.id && l.value ? (d = document.querySelector(`[for="${n.id}"]`)) == null ? void 0 : d.innerText : void 0;
|
|
1227
1227
|
});
|
|
1228
1228
|
return nd({
|
|
1229
1229
|
disabled: i,
|
|
1230
1230
|
state: a
|
|
1231
|
-
}), (
|
|
1232
|
-
createVNode(unref(O), mergeProps(
|
|
1233
|
-
id:
|
|
1231
|
+
}), (d, m) => (openBlock(), createElementBlock(Fragment, null, [
|
|
1232
|
+
createVNode(unref(O), mergeProps(d.$attrs, {
|
|
1233
|
+
id: d.id,
|
|
1234
1234
|
ref: unref(o),
|
|
1235
1235
|
role: "checkbox",
|
|
1236
1236
|
"as-child": n.asChild,
|
|
1237
|
-
as:
|
|
1238
|
-
type:
|
|
1237
|
+
as: d.as,
|
|
1238
|
+
type: d.as === "button" ? "button" : void 0,
|
|
1239
1239
|
"aria-checked": unref(za)(unref(a)) ? "mixed" : unref(a),
|
|
1240
1240
|
"aria-required": n.required,
|
|
1241
|
-
"aria-label":
|
|
1241
|
+
"aria-label": d.$attrs["aria-label"] || u.value,
|
|
1242
1242
|
"data-state": unref(Ql)(unref(a)),
|
|
1243
1243
|
"data-disabled": unref(i) ? "" : void 0,
|
|
1244
1244
|
disabled: unref(i),
|
|
@@ -1247,7 +1247,7 @@ const td = ["value", "checked", "name", "disabled", "required"], [ad, nd] = te("
|
|
|
1247
1247
|
onClick: m[0] || (m[0] = (p) => a.value = unref(za)(unref(a)) ? !0 : !unref(a))
|
|
1248
1248
|
}), {
|
|
1249
1249
|
default: withCtx(() => [
|
|
1250
|
-
renderSlot(
|
|
1250
|
+
renderSlot(d.$slots, "default", { checked: unref(a) })
|
|
1251
1251
|
]),
|
|
1252
1252
|
_: 3
|
|
1253
1253
|
}, 16, ["id", "as-child", "as", "type", "aria-checked", "aria-required", "aria-label", "data-state", "data-disabled", "disabled", "onKeydown"]),
|
|
@@ -1256,7 +1256,7 @@ const td = ["value", "checked", "name", "disabled", "required"], [ad, nd] = te("
|
|
|
1256
1256
|
type: "checkbox",
|
|
1257
1257
|
tabindex: "-1",
|
|
1258
1258
|
"aria-hidden": "true",
|
|
1259
|
-
value:
|
|
1259
|
+
value: d.value,
|
|
1260
1260
|
checked: !!unref(a),
|
|
1261
1261
|
name: n.name,
|
|
1262
1262
|
disabled: n.disabled,
|
|
@@ -1441,10 +1441,10 @@ const Fs = ["PageUp", "PageDown"], Ns = ["ArrowUp", "ArrowDown", "ArrowLeft", "A
|
|
|
1441
1441
|
},
|
|
1442
1442
|
emits: ["slideEnd", "slideStart", "slideMove", "homeKeyDown", "endKeyDown", "stepKeyDown"],
|
|
1443
1443
|
setup(e, { emit: t }) {
|
|
1444
|
-
const n = e, s = t, { max: i, min: a, dir: o, inverted: l } = toRefs(n), { forwardRef: c, currentElement:
|
|
1444
|
+
const n = e, s = t, { max: i, min: a, dir: o, inverted: l } = toRefs(n), { forwardRef: c, currentElement: u } = R(), d = ref(), m = computed(() => o?.value === "ltr" && !l.value || o?.value !== "ltr" && l.value);
|
|
1445
1445
|
function p(b) {
|
|
1446
|
-
const f =
|
|
1447
|
-
return
|
|
1446
|
+
const f = d.value || u.value.getBoundingClientRect(), v = [0, f.width], k = m.value ? [a.value, i.value] : [i.value, a.value], y = To(v, k);
|
|
1447
|
+
return d.value = f, y(b - f.left);
|
|
1448
1448
|
}
|
|
1449
1449
|
return Ks({
|
|
1450
1450
|
startEdge: m.value ? "left" : "right",
|
|
@@ -1467,7 +1467,7 @@ const Fs = ["PageUp", "PageDown"], Ns = ["ArrowUp", "ArrowDown", "ArrowLeft", "A
|
|
|
1467
1467
|
s("slideMove", k);
|
|
1468
1468
|
}),
|
|
1469
1469
|
onSlideEnd: f[2] || (f[2] = () => {
|
|
1470
|
-
|
|
1470
|
+
d.value = void 0, s("slideEnd");
|
|
1471
1471
|
}),
|
|
1472
1472
|
onStepKeyDown: f[3] || (f[3] = (v) => {
|
|
1473
1473
|
const k = m.value ? "from-left" : "from-right", y = unref(Ls)[k].includes(v.key);
|
|
@@ -1491,16 +1491,16 @@ const Fs = ["PageUp", "PageDown"], Ns = ["ArrowUp", "ArrowDown", "ArrowLeft", "A
|
|
|
1491
1491
|
},
|
|
1492
1492
|
emits: ["slideEnd", "slideStart", "slideMove", "homeKeyDown", "endKeyDown", "stepKeyDown"],
|
|
1493
1493
|
setup(e, { emit: t }) {
|
|
1494
|
-
const n = e, s = t, { max: i, min: a, inverted: o } = toRefs(n), { forwardRef: l, currentElement: c } = R(),
|
|
1494
|
+
const n = e, s = t, { max: i, min: a, inverted: o } = toRefs(n), { forwardRef: l, currentElement: c } = R(), u = ref(), d = computed(() => !o.value);
|
|
1495
1495
|
function m(p) {
|
|
1496
|
-
const b =
|
|
1497
|
-
return
|
|
1496
|
+
const b = u.value || c.value.getBoundingClientRect(), f = [0, b.height], v = d.value ? [i.value, a.value] : [a.value, i.value], k = To(f, v);
|
|
1497
|
+
return u.value = b, k(p - b.top);
|
|
1498
1498
|
}
|
|
1499
1499
|
return Ks({
|
|
1500
|
-
startEdge:
|
|
1501
|
-
endEdge:
|
|
1500
|
+
startEdge: d.value ? "bottom" : "top",
|
|
1501
|
+
endEdge: d.value ? "top" : "bottom",
|
|
1502
1502
|
size: "height",
|
|
1503
|
-
direction:
|
|
1503
|
+
direction: d.value ? 1 : -1
|
|
1504
1504
|
}), (p, b) => (openBlock(), createBlock(Hs, {
|
|
1505
1505
|
ref: unref(l),
|
|
1506
1506
|
"data-orientation": "vertical",
|
|
@@ -1516,10 +1516,10 @@ const Fs = ["PageUp", "PageDown"], Ns = ["ArrowUp", "ArrowDown", "ArrowLeft", "A
|
|
|
1516
1516
|
s("slideMove", v);
|
|
1517
1517
|
}),
|
|
1518
1518
|
onSlideEnd: b[2] || (b[2] = () => {
|
|
1519
|
-
|
|
1519
|
+
u.value = void 0, s("slideEnd");
|
|
1520
1520
|
}),
|
|
1521
1521
|
onStepKeyDown: b[3] || (b[3] = (f) => {
|
|
1522
|
-
const v =
|
|
1522
|
+
const v = d.value ? "from-bottom" : "from-top", k = unref(Ls)[v].includes(f.key);
|
|
1523
1523
|
s("stepKeyDown", f, k ? -1 : 1);
|
|
1524
1524
|
}),
|
|
1525
1525
|
onEndKeyDown: b[4] || (b[4] = (f) => s("endKeyDown", f)),
|
|
@@ -1551,7 +1551,7 @@ const Fs = ["PageUp", "PageDown"], Ns = ["ArrowUp", "ArrowDown", "ArrowLeft", "A
|
|
|
1551
1551
|
},
|
|
1552
1552
|
emits: ["update:modelValue", "valueCommit"],
|
|
1553
1553
|
setup(e, { emit: t }) {
|
|
1554
|
-
const n = e, s = t, { min: i, max: a, step: o, minStepsBetweenThumbs: l, orientation: c, disabled:
|
|
1554
|
+
const n = e, s = t, { min: i, max: a, step: o, minStepsBetweenThumbs: l, orientation: c, disabled: u, dir: d } = toRefs(n), m = we(d), { forwardRef: p, currentElement: b } = R(), f = at(b);
|
|
1555
1555
|
Ca();
|
|
1556
1556
|
const v = ne(n, "modelValue", s, {
|
|
1557
1557
|
defaultValue: n.defaultValue,
|
|
@@ -1585,7 +1585,7 @@ const Fs = ["PageUp", "PageDown"], Ns = ["ArrowUp", "ArrowDown", "ArrowLeft", "A
|
|
|
1585
1585
|
orientation: c,
|
|
1586
1586
|
min: i,
|
|
1587
1587
|
max: a,
|
|
1588
|
-
disabled:
|
|
1588
|
+
disabled: u
|
|
1589
1589
|
}), (T, P) => (openBlock(), createElementBlock(Fragment, null, [
|
|
1590
1590
|
createVNode(unref(wa), null, {
|
|
1591
1591
|
default: withCtx(() => [
|
|
@@ -1597,18 +1597,18 @@ const Fs = ["PageUp", "PageDown"], Ns = ["ArrowUp", "ArrowDown", "ArrowLeft", "A
|
|
|
1597
1597
|
max: unref(a),
|
|
1598
1598
|
dir: unref(m),
|
|
1599
1599
|
inverted: T.inverted,
|
|
1600
|
-
"aria-disabled": unref(
|
|
1601
|
-
"data-disabled": unref(
|
|
1600
|
+
"aria-disabled": unref(u),
|
|
1601
|
+
"data-disabled": unref(u) ? "" : void 0,
|
|
1602
1602
|
onPointerdown: P[0] || (P[0] = () => {
|
|
1603
|
-
unref(
|
|
1603
|
+
unref(u) || (y.value = unref(v));
|
|
1604
1604
|
}),
|
|
1605
|
-
onSlideStart: P[1] || (P[1] = (M) => !unref(
|
|
1606
|
-
onSlideMove: P[2] || (P[2] = (M) => !unref(
|
|
1607
|
-
onSlideEnd: P[3] || (P[3] = (M) => !unref(
|
|
1608
|
-
onHomeKeyDown: P[4] || (P[4] = (M) => !unref(
|
|
1609
|
-
onEndKeyDown: P[5] || (P[5] = (M) => !unref(
|
|
1605
|
+
onSlideStart: P[1] || (P[1] = (M) => !unref(u) && x(M)),
|
|
1606
|
+
onSlideMove: P[2] || (P[2] = (M) => !unref(u) && g(M)),
|
|
1607
|
+
onSlideEnd: P[3] || (P[3] = (M) => !unref(u) && C()),
|
|
1608
|
+
onHomeKeyDown: P[4] || (P[4] = (M) => !unref(u) && S(unref(i), 0, { commit: !0 })),
|
|
1609
|
+
onEndKeyDown: P[5] || (P[5] = (M) => !unref(u) && S(unref(a), unref(v).length - 1, { commit: !0 })),
|
|
1610
1610
|
onStepKeyDown: P[6] || (P[6] = (M, I) => {
|
|
1611
|
-
if (!unref(
|
|
1611
|
+
if (!unref(u)) {
|
|
1612
1612
|
const $ = unref(Fs).includes(M.key) || M.shiftKey && unref(Ns).includes(M.key) ? 10 : 1, D = k.value, L = unref(v)[D], z = unref(o) * $ * I;
|
|
1613
1613
|
S(L + z, D, { commit: !0 });
|
|
1614
1614
|
}
|
|
@@ -1628,7 +1628,7 @@ const Fs = ["PageUp", "PageDown"], Ns = ["ArrowUp", "ArrowDown", "ArrowLeft", "A
|
|
|
1628
1628
|
type: "number",
|
|
1629
1629
|
style: { display: "none" },
|
|
1630
1630
|
name: T.name ? T.name + (unref(v).length > 1 ? "[]" : "") : void 0,
|
|
1631
|
-
disabled: unref(
|
|
1631
|
+
disabled: unref(u),
|
|
1632
1632
|
step: unref(o)
|
|
1633
1633
|
}, null, 8, pp))), 128)) : createCommentVNode("", !0)
|
|
1634
1634
|
], 64));
|
|
@@ -1648,7 +1648,7 @@ const Fs = ["PageUp", "PageDown"], Ns = ["ArrowUp", "ArrowDown", "ArrowLeft", "A
|
|
|
1648
1648
|
}), l = computed(() => o.value === void 0 ? 0 : Vs(o.value, n.min.value ?? 0, n.max.value ?? 100)), c = computed(() => {
|
|
1649
1649
|
var b, f;
|
|
1650
1650
|
return op(t.index, ((f = (b = n.modelValue) == null ? void 0 : b.value) == null ? void 0 : f.length) ?? 0);
|
|
1651
|
-
}),
|
|
1651
|
+
}), u = Ll(a), d = computed(() => u[s.size].value), m = computed(() => d.value ? sp(d.value, l.value, s.direction) : 0), p = Ga();
|
|
1652
1652
|
return onMounted(() => {
|
|
1653
1653
|
n.thumbElements.value.push(a.value);
|
|
1654
1654
|
}), onUnmounted(() => {
|
|
@@ -1789,7 +1789,7 @@ const Kp = ["name", "disabled", "required", "value", "checked", "data-state", "d
|
|
|
1789
1789
|
function o() {
|
|
1790
1790
|
i.value || (a.value = !a.value);
|
|
1791
1791
|
}
|
|
1792
|
-
const { forwardRef: l, currentElement: c } = R(),
|
|
1792
|
+
const { forwardRef: l, currentElement: c } = R(), u = at(c), d = computed(() => {
|
|
1793
1793
|
var m;
|
|
1794
1794
|
return n.id && c.value ? (m = document.querySelector(`[for="${n.id}"]`)) == null ? void 0 : m.innerText : void 0;
|
|
1795
1795
|
});
|
|
@@ -1804,7 +1804,7 @@ const Kp = ["name", "disabled", "required", "value", "checked", "data-state", "d
|
|
|
1804
1804
|
role: "switch",
|
|
1805
1805
|
type: m.as === "button" ? "button" : void 0,
|
|
1806
1806
|
value: m.value,
|
|
1807
|
-
"aria-label": m.$attrs["aria-label"] ||
|
|
1807
|
+
"aria-label": m.$attrs["aria-label"] || d.value,
|
|
1808
1808
|
"aria-checked": unref(a),
|
|
1809
1809
|
"aria-required": m.required,
|
|
1810
1810
|
"data-state": unref(a) ? "checked" : "unchecked",
|
|
@@ -1820,7 +1820,7 @@ const Kp = ["name", "disabled", "required", "value", "checked", "data-state", "d
|
|
|
1820
1820
|
]),
|
|
1821
1821
|
_: 3
|
|
1822
1822
|
}, 16, ["id", "type", "value", "aria-label", "aria-checked", "aria-required", "data-state", "data-disabled", "as-child", "as", "disabled", "onKeydown"]),
|
|
1823
|
-
unref(
|
|
1823
|
+
unref(u) ? (openBlock(), createElementBlock("input", {
|
|
1824
1824
|
key: 0,
|
|
1825
1825
|
type: "checkbox",
|
|
1826
1826
|
name: m.name,
|
|
@@ -1907,8 +1907,8 @@ const concatArrays = (e, t) => {
|
|
|
1907
1907
|
},
|
|
1908
1908
|
getConflictingClassGroupIds: (o, l) => {
|
|
1909
1909
|
if (l) {
|
|
1910
|
-
const c = s[o],
|
|
1911
|
-
return c ?
|
|
1910
|
+
const c = s[o], u = n[o];
|
|
1911
|
+
return c ? u ? concatArrays(u, c) : c : u || EMPTY_CONFLICTS;
|
|
1912
1912
|
}
|
|
1913
1913
|
return n[o] || EMPTY_CONFLICTS;
|
|
1914
1914
|
}
|
|
@@ -1918,17 +1918,17 @@ const concatArrays = (e, t) => {
|
|
|
1918
1918
|
return n.classGroupId;
|
|
1919
1919
|
const i = e[t], a = n.nextPart.get(i);
|
|
1920
1920
|
if (a) {
|
|
1921
|
-
const
|
|
1922
|
-
if (
|
|
1921
|
+
const u = getGroupRecursive(e, t + 1, a);
|
|
1922
|
+
if (u) return u;
|
|
1923
1923
|
}
|
|
1924
1924
|
const o = n.validators;
|
|
1925
1925
|
if (o === null)
|
|
1926
1926
|
return;
|
|
1927
1927
|
const l = t === 0 ? e.join(CLASS_PART_SEPARATOR) : e.slice(t).join(CLASS_PART_SEPARATOR), c = o.length;
|
|
1928
|
-
for (let
|
|
1929
|
-
const
|
|
1930
|
-
if (
|
|
1931
|
-
return
|
|
1928
|
+
for (let u = 0; u < c; u++) {
|
|
1929
|
+
const d = o[u];
|
|
1930
|
+
if (d.validator(l))
|
|
1931
|
+
return d.classGroupId;
|
|
1932
1932
|
}
|
|
1933
1933
|
}, getGroupIdForArbitraryProperty = (e) => e.slice(1, -1).indexOf(":") === -1 ? void 0 : (() => {
|
|
1934
1934
|
const t = e.slice(1, -1), n = t.indexOf(":"), s = t.slice(0, n);
|
|
@@ -2023,9 +2023,9 @@ const concatArrays = (e, t) => {
|
|
|
2023
2023
|
} = e;
|
|
2024
2024
|
let s = (i) => {
|
|
2025
2025
|
const a = [];
|
|
2026
|
-
let o = 0, l = 0, c = 0,
|
|
2027
|
-
const
|
|
2028
|
-
for (let v = 0; v <
|
|
2026
|
+
let o = 0, l = 0, c = 0, u;
|
|
2027
|
+
const d = i.length;
|
|
2028
|
+
for (let v = 0; v < d; v++) {
|
|
2029
2029
|
const k = i[v];
|
|
2030
2030
|
if (o === 0 && l === 0) {
|
|
2031
2031
|
if (k === MODIFIER_SEPARATOR) {
|
|
@@ -2033,7 +2033,7 @@ const concatArrays = (e, t) => {
|
|
|
2033
2033
|
continue;
|
|
2034
2034
|
}
|
|
2035
2035
|
if (k === "/") {
|
|
2036
|
-
|
|
2036
|
+
u = v;
|
|
2037
2037
|
continue;
|
|
2038
2038
|
}
|
|
2039
2039
|
}
|
|
@@ -2048,7 +2048,7 @@ const concatArrays = (e, t) => {
|
|
|
2048
2048
|
*/
|
|
2049
2049
|
m.startsWith(IMPORTANT_MODIFIER) && (p = m.slice(1), b = !0)
|
|
2050
2050
|
);
|
|
2051
|
-
const f =
|
|
2051
|
+
const f = u && u > c ? u - c : void 0;
|
|
2052
2052
|
return createResultObject(a, b, p, f);
|
|
2053
2053
|
};
|
|
2054
2054
|
if (t) {
|
|
@@ -2089,26 +2089,26 @@ const concatArrays = (e, t) => {
|
|
|
2089
2089
|
sortModifiers: a
|
|
2090
2090
|
} = t, o = [], l = e.trim().split(SPLIT_CLASSES_REGEX);
|
|
2091
2091
|
let c = "";
|
|
2092
|
-
for (let
|
|
2093
|
-
const
|
|
2092
|
+
for (let u = l.length - 1; u >= 0; u -= 1) {
|
|
2093
|
+
const d = l[u], {
|
|
2094
2094
|
isExternal: m,
|
|
2095
2095
|
modifiers: p,
|
|
2096
2096
|
hasImportantModifier: b,
|
|
2097
2097
|
baseClassName: f,
|
|
2098
2098
|
maybePostfixModifierPosition: v
|
|
2099
|
-
} = n(
|
|
2099
|
+
} = n(d);
|
|
2100
2100
|
if (m) {
|
|
2101
|
-
c =
|
|
2101
|
+
c = d + (c.length > 0 ? " " + c : c);
|
|
2102
2102
|
continue;
|
|
2103
2103
|
}
|
|
2104
2104
|
let k = !!v, y = s(k ? f.substring(0, v) : f);
|
|
2105
2105
|
if (!y) {
|
|
2106
2106
|
if (!k) {
|
|
2107
|
-
c =
|
|
2107
|
+
c = d + (c.length > 0 ? " " + c : c);
|
|
2108
2108
|
continue;
|
|
2109
2109
|
}
|
|
2110
2110
|
if (y = s(f), !y) {
|
|
2111
|
-
c =
|
|
2111
|
+
c = d + (c.length > 0 ? " " + c : c);
|
|
2112
2112
|
continue;
|
|
2113
2113
|
}
|
|
2114
2114
|
k = !1;
|
|
@@ -2122,7 +2122,7 @@ const concatArrays = (e, t) => {
|
|
|
2122
2122
|
const T = S[_];
|
|
2123
2123
|
o.push(g + T);
|
|
2124
2124
|
}
|
|
2125
|
-
c =
|
|
2125
|
+
c = d + (c.length > 0 ? " " + c : c);
|
|
2126
2126
|
}
|
|
2127
2127
|
return c;
|
|
2128
2128
|
}, twJoin = (...e) => {
|
|
@@ -2140,14 +2140,14 @@ const concatArrays = (e, t) => {
|
|
|
2140
2140
|
}, createTailwindMerge = (e, ...t) => {
|
|
2141
2141
|
let n, s, i, a;
|
|
2142
2142
|
const o = (c) => {
|
|
2143
|
-
const
|
|
2144
|
-
return n = createConfigUtils(
|
|
2143
|
+
const u = t.reduce((d, m) => m(d), e());
|
|
2144
|
+
return n = createConfigUtils(u), s = n.cache.get, i = n.cache.set, a = l, l(c);
|
|
2145
2145
|
}, l = (c) => {
|
|
2146
|
-
const
|
|
2147
|
-
if (
|
|
2148
|
-
return
|
|
2149
|
-
const
|
|
2150
|
-
return i(c,
|
|
2146
|
+
const u = s(c);
|
|
2147
|
+
if (u)
|
|
2148
|
+
return u;
|
|
2149
|
+
const d = mergeClassList(c, n);
|
|
2150
|
+
return i(c, d), d;
|
|
2151
2151
|
};
|
|
2152
2152
|
return a = o, (...c) => a(twJoin(...c));
|
|
2153
2153
|
}, fallbackThemeArr = [], fromTheme = (e) => {
|
|
@@ -2165,7 +2165,7 @@ const concatArrays = (e, t) => {
|
|
|
2165
2165
|
const s = arbitraryVariableRegex.exec(e);
|
|
2166
2166
|
return s ? s[1] ? t(s[1]) : n : !1;
|
|
2167
2167
|
}, isLabelPosition = (e) => e === "position" || e === "percentage", isLabelImage = (e) => e === "image" || e === "url", isLabelSize = (e) => e === "length" || e === "size" || e === "bg-size", isLabelLength = (e) => e === "length", isLabelNumber = (e) => e === "number", isLabelFamilyName = (e) => e === "family-name", isLabelShadow = (e) => e === "shadow", getDefaultConfig = () => {
|
|
2168
|
-
const e = fromTheme("color"), t = fromTheme("font"), n = fromTheme("text"), s = fromTheme("font-weight"), i = fromTheme("tracking"), a = fromTheme("leading"), o = fromTheme("breakpoint"), l = fromTheme("container"), c = fromTheme("spacing"),
|
|
2168
|
+
const e = fromTheme("color"), t = fromTheme("font"), n = fromTheme("text"), s = fromTheme("font-weight"), i = fromTheme("tracking"), a = fromTheme("leading"), o = fromTheme("breakpoint"), l = fromTheme("container"), c = fromTheme("spacing"), u = fromTheme("radius"), d = fromTheme("shadow"), m = fromTheme("inset-shadow"), p = fromTheme("text-shadow"), b = fromTheme("drop-shadow"), f = fromTheme("blur"), v = fromTheme("perspective"), k = fromTheme("aspect"), y = fromTheme("ease"), x = fromTheme("animate"), g = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], C = () => [
|
|
2169
2169
|
"center",
|
|
2170
2170
|
"top",
|
|
2171
2171
|
"bottom",
|
|
@@ -2196,7 +2196,7 @@ const concatArrays = (e, t) => {
|
|
|
2196
2196
|
"",
|
|
2197
2197
|
"none",
|
|
2198
2198
|
"full",
|
|
2199
|
-
|
|
2199
|
+
u,
|
|
2200
2200
|
isArbitraryVariable,
|
|
2201
2201
|
isArbitraryValue
|
|
2202
2202
|
], j = () => ["", isNumber$2, isArbitraryVariableLength, isArbitraryLength], W = () => ["solid", "dashed", "dotted", "double"], Y = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], q = () => [isNumber$2, isPercent, isArbitraryVariablePosition, isArbitraryPosition], ee = () => [
|
|
@@ -3555,7 +3555,7 @@ const concatArrays = (e, t) => {
|
|
|
3555
3555
|
// Deprecated since Tailwind CSS v4.0.0
|
|
3556
3556
|
"",
|
|
3557
3557
|
"none",
|
|
3558
|
-
|
|
3558
|
+
d,
|
|
3559
3559
|
isArbitraryVariableShadow,
|
|
3560
3560
|
isArbitraryShadow
|
|
3561
3561
|
]
|
|
@@ -4675,7 +4675,7 @@ const _hoisted_1$j = {
|
|
|
4675
4675
|
createVNode(unref(Wv), {
|
|
4676
4676
|
id: unref(a),
|
|
4677
4677
|
checked: o.value,
|
|
4678
|
-
"onUpdate:checked": c[0] || (c[0] = (
|
|
4678
|
+
"onUpdate:checked": c[0] || (c[0] = (u) => o.value = u),
|
|
4679
4679
|
"default-checked": e.defaultChecked,
|
|
4680
4680
|
disabled: e.disabled,
|
|
4681
4681
|
required: e.required,
|
|
@@ -4767,7 +4767,7 @@ const _hoisted_1$j = {
|
|
|
4767
4767
|
},
|
|
4768
4768
|
emits: ["update:modelValue", "update:value", "focus", "blur", "input", "change"],
|
|
4769
4769
|
setup(e, { expose: t, emit: n }) {
|
|
4770
|
-
const s = e, i = n, a = useId(), o = s.id || a, l = ref(!1), c = ref(!1),
|
|
4770
|
+
const s = e, i = n, a = useId(), o = s.id || a, l = ref(!1), c = ref(!1), u = ref(), d = computed(() => s.type === "password"), m = computed(() => d.value ? l.value ? "text" : "password" : s.type), p = computed(() => s.errorMessage ? "destructive" : s.warningMessage ? "warning" : s.successMessage ? "success" : "default"), b = computed(() => s.errorMessage ? s.errorMessage : s.warningMessage ? s.warningMessage : s.successMessage ? s.successMessage : s.helperText ? s.helperText : ""), f = computed(() => s.errorMessage ? AlertCircle : s.warningMessage ? AlertTriangle : s.successMessage ? CheckCircle : null), v = computed({
|
|
4771
4771
|
get: () => s.modelValue ?? s.value ?? "",
|
|
4772
4772
|
set: (_) => {
|
|
4773
4773
|
i("update:modelValue", _), i("update:value", _);
|
|
@@ -4787,10 +4787,10 @@ const _hoisted_1$j = {
|
|
|
4787
4787
|
return t({
|
|
4788
4788
|
focus: () => {
|
|
4789
4789
|
nextTick(() => {
|
|
4790
|
-
|
|
4790
|
+
u.value?.focus();
|
|
4791
4791
|
});
|
|
4792
4792
|
},
|
|
4793
|
-
inputRef:
|
|
4793
|
+
inputRef: u
|
|
4794
4794
|
}), (_, T) => (openBlock(), createElementBlock("div", {
|
|
4795
4795
|
class: normalizeClass(unref(cn)("grid w-full max-w-sm gap-1.5", e.containerClass))
|
|
4796
4796
|
}, [
|
|
@@ -4826,14 +4826,14 @@ const _hoisted_1$j = {
|
|
|
4826
4826
|
createElementVNode("input", mergeProps({
|
|
4827
4827
|
id: unref(o),
|
|
4828
4828
|
ref_key: "inputRef",
|
|
4829
|
-
ref:
|
|
4829
|
+
ref: u,
|
|
4830
4830
|
type: m.value,
|
|
4831
4831
|
class: unref(cn)(
|
|
4832
4832
|
"flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",
|
|
4833
4833
|
{
|
|
4834
4834
|
"pl-8": e.prefix,
|
|
4835
|
-
"pr-16":
|
|
4836
|
-
"pr-12": f.value && !(
|
|
4835
|
+
"pr-16": d.value && e.showPasswordToggle || f.value,
|
|
4836
|
+
"pr-12": f.value && !(d.value && e.showPasswordToggle),
|
|
4837
4837
|
"border-destructive text-destructive focus:border-destructive": p.value === "destructive",
|
|
4838
4838
|
"border-orange-500 text-orange-600 focus:border-orange-500": p.value === "warning",
|
|
4839
4839
|
"border-green-500 text-green-600 focus:border-green-500": p.value === "success",
|
|
@@ -4852,7 +4852,7 @@ const _hoisted_1$j = {
|
|
|
4852
4852
|
onFocus: g,
|
|
4853
4853
|
onBlur: C
|
|
4854
4854
|
}, _.$attrs), null, 16, _hoisted_3$g),
|
|
4855
|
-
f.value ||
|
|
4855
|
+
f.value || d.value && e.showPasswordToggle ? (openBlock(), createElementBlock("div", _hoisted_4$d, [
|
|
4856
4856
|
f.value ? (openBlock(), createBlock(resolveDynamicComponent(f.value), {
|
|
4857
4857
|
key: 0,
|
|
4858
4858
|
class: normalizeClass(unref(cn)("h-4 w-4", {
|
|
@@ -4861,7 +4861,7 @@ const _hoisted_1$j = {
|
|
|
4861
4861
|
"text-green-600": p.value === "success"
|
|
4862
4862
|
}))
|
|
4863
4863
|
}, null, 8, ["class"])) : createCommentVNode("", !0),
|
|
4864
|
-
|
|
4864
|
+
d.value && e.showPasswordToggle ? (openBlock(), createElementBlock("button", {
|
|
4865
4865
|
key: 1,
|
|
4866
4866
|
type: "button",
|
|
4867
4867
|
class: normalizeClass(unref(cn)(
|
|
@@ -4931,11 +4931,11 @@ const _hoisted_1$j = {
|
|
|
4931
4931
|
setup(e, { emit: t }) {
|
|
4932
4932
|
const n = e, s = t, i = useId(), a = n.id || i, o = computed({
|
|
4933
4933
|
get: () => n.modelValue ?? n.checked ?? !1,
|
|
4934
|
-
set: (
|
|
4935
|
-
s("update:modelValue",
|
|
4934
|
+
set: (u) => {
|
|
4935
|
+
s("update:modelValue", u), s("update:checked", u);
|
|
4936
4936
|
}
|
|
4937
4937
|
}), l = computed(() => {
|
|
4938
|
-
const
|
|
4938
|
+
const u = "peer inline-flex h-6 w-11 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50", d = {
|
|
4939
4939
|
default: "data-[state=checked]:bg-primary data-[state=unchecked]:bg-input",
|
|
4940
4940
|
destructive: "data-[state=checked]:bg-destructive data-[state=unchecked]:bg-input",
|
|
4941
4941
|
success: "data-[state=checked]:bg-green-500 data-[state=unchecked]:bg-input",
|
|
@@ -4945,19 +4945,19 @@ const _hoisted_1$j = {
|
|
|
4945
4945
|
sm: "h-5 w-9",
|
|
4946
4946
|
lg: "h-7 w-13"
|
|
4947
4947
|
};
|
|
4948
|
-
return cn(
|
|
4948
|
+
return cn(u, d[n.variant], m[n.size]);
|
|
4949
4949
|
}), c = computed(() => cn("pointer-events-none block rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0", {
|
|
4950
4950
|
default: "h-5 w-5 data-[state=checked]:translate-x-5",
|
|
4951
4951
|
sm: "h-4 w-4 data-[state=checked]:translate-x-4",
|
|
4952
4952
|
lg: "h-6 w-6 data-[state=checked]:translate-x-6"
|
|
4953
4953
|
}[n.size]));
|
|
4954
|
-
return (
|
|
4954
|
+
return (u, d) => (openBlock(), createElementBlock("div", {
|
|
4955
4955
|
class: normalizeClass(unref(cn)("flex items-center gap-3", e.containerClass))
|
|
4956
4956
|
}, [
|
|
4957
4957
|
createVNode(unref(gg), {
|
|
4958
4958
|
id: unref(a),
|
|
4959
4959
|
checked: o.value,
|
|
4960
|
-
"onUpdate:checked":
|
|
4960
|
+
"onUpdate:checked": d[0] || (d[0] = (m) => o.value = m),
|
|
4961
4961
|
"default-checked": e.defaultChecked,
|
|
4962
4962
|
disabled: e.disabled,
|
|
4963
4963
|
required: e.required,
|
|
@@ -4973,7 +4973,7 @@ const _hoisted_1$j = {
|
|
|
4973
4973
|
_: 1
|
|
4974
4974
|
}, 8, ["id", "checked", "default-checked", "disabled", "required", "name", "value", "class"]),
|
|
4975
4975
|
createElementVNode("div", _hoisted_1$h, [
|
|
4976
|
-
e.label ||
|
|
4976
|
+
e.label || u.$slots.label ? (openBlock(), createElementBlock("label", {
|
|
4977
4977
|
key: 0,
|
|
4978
4978
|
for: unref(a),
|
|
4979
4979
|
class: normalizeClass(unref(cn)(
|
|
@@ -4988,11 +4988,11 @@ const _hoisted_1$j = {
|
|
|
4988
4988
|
e.labelClass
|
|
4989
4989
|
))
|
|
4990
4990
|
}, [
|
|
4991
|
-
renderSlot(
|
|
4991
|
+
renderSlot(u.$slots, "label", {}, () => [
|
|
4992
4992
|
createTextVNode(toDisplayString(e.label), 1)
|
|
4993
4993
|
])
|
|
4994
4994
|
], 10, _hoisted_2$g)) : createCommentVNode("", !0),
|
|
4995
|
-
!e.hideLabel && (e.leftText || e.rightText ||
|
|
4995
|
+
!e.hideLabel && (e.leftText || e.rightText || u.$slots["left-text"] || u.$slots["right-text"]) ? (openBlock(), createElementBlock("div", {
|
|
4996
4996
|
key: 1,
|
|
4997
4997
|
class: normalizeClass(unref(cn)(
|
|
4998
4998
|
"flex items-center gap-2 text-xs font-medium",
|
|
@@ -5008,7 +5008,7 @@ const _hoisted_1$j = {
|
|
|
5008
5008
|
createElementVNode("span", {
|
|
5009
5009
|
class: normalizeClass({ "opacity-50": o.value })
|
|
5010
5010
|
}, [
|
|
5011
|
-
renderSlot(
|
|
5011
|
+
renderSlot(u.$slots, "left-text", {}, () => [
|
|
5012
5012
|
createTextVNode(toDisplayString(e.leftText), 1)
|
|
5013
5013
|
])
|
|
5014
5014
|
], 2),
|
|
@@ -5024,13 +5024,13 @@ const _hoisted_1$j = {
|
|
|
5024
5024
|
createElementVNode("span", {
|
|
5025
5025
|
class: normalizeClass({ "opacity-50": !o.value })
|
|
5026
5026
|
}, [
|
|
5027
|
-
renderSlot(
|
|
5027
|
+
renderSlot(u.$slots, "right-text", {}, () => [
|
|
5028
5028
|
createTextVNode(toDisplayString(e.rightText), 1)
|
|
5029
5029
|
])
|
|
5030
5030
|
], 2)
|
|
5031
5031
|
], 2)) : createCommentVNode("", !0),
|
|
5032
5032
|
e.description ? (openBlock(), createElementBlock("p", _hoisted_3$f, toDisplayString(e.description), 1)) : createCommentVNode("", !0),
|
|
5033
|
-
renderSlot(
|
|
5033
|
+
renderSlot(u.$slots, "extra")
|
|
5034
5034
|
])
|
|
5035
5035
|
], 2));
|
|
5036
5036
|
}
|
|
@@ -5054,7 +5054,7 @@ const _hoisted_1$j = {
|
|
|
5054
5054
|
emits: ["remove", "click"],
|
|
5055
5055
|
setup(e, { emit: t }) {
|
|
5056
5056
|
const n = e, s = t, i = computed(() => n.interactive && !n.disabled), a = computed(() => n.removable), o = computed(() => {
|
|
5057
|
-
const
|
|
5057
|
+
const d = "inline-flex items-center gap-1 rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2", m = {
|
|
5058
5058
|
default: "border-transparent bg-primary text-primary-foreground hover:bg-primary/80",
|
|
5059
5059
|
secondary: "border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",
|
|
5060
5060
|
destructive: "border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80",
|
|
@@ -5069,7 +5069,7 @@ const _hoisted_1$j = {
|
|
|
5069
5069
|
lg: "px-3 py-1 text-sm"
|
|
5070
5070
|
};
|
|
5071
5071
|
return cn(
|
|
5072
|
-
|
|
5072
|
+
d,
|
|
5073
5073
|
m[n.variant],
|
|
5074
5074
|
p[n.size],
|
|
5075
5075
|
{
|
|
@@ -5079,19 +5079,19 @@ const _hoisted_1$j = {
|
|
|
5079
5079
|
},
|
|
5080
5080
|
n.class
|
|
5081
5081
|
);
|
|
5082
|
-
}), l = (
|
|
5083
|
-
i.value && s("click",
|
|
5084
|
-
}, c = (
|
|
5085
|
-
|
|
5086
|
-
},
|
|
5087
|
-
a.value && (
|
|
5082
|
+
}), l = (d) => {
|
|
5083
|
+
i.value && s("click", d);
|
|
5084
|
+
}, c = (d) => {
|
|
5085
|
+
d.stopPropagation(), n.disabled || s("remove");
|
|
5086
|
+
}, u = (d) => {
|
|
5087
|
+
a.value && (d.key === "Enter" || d.key === " ") && (d.preventDefault(), c(d));
|
|
5088
5088
|
};
|
|
5089
|
-
return (
|
|
5089
|
+
return (d, m) => (openBlock(), createBlock(resolveDynamicComponent(i.value ? "button" : "div"), {
|
|
5090
5090
|
class: normalizeClass(o.value),
|
|
5091
5091
|
disabled: e.disabled,
|
|
5092
5092
|
title: e.title || e.label,
|
|
5093
5093
|
onClick: l,
|
|
5094
|
-
onKeydown:
|
|
5094
|
+
onKeydown: u,
|
|
5095
5095
|
"aria-label": e.label,
|
|
5096
5096
|
role: "button",
|
|
5097
5097
|
tabindex: "0"
|
|
@@ -5108,7 +5108,7 @@ const _hoisted_1$j = {
|
|
|
5108
5108
|
}, null, 8, _hoisted_2$f)) : createCommentVNode("", !0)
|
|
5109
5109
|
])) : createCommentVNode("", !0),
|
|
5110
5110
|
createElementVNode("span", _hoisted_3$e, [
|
|
5111
|
-
renderSlot(
|
|
5111
|
+
renderSlot(d.$slots, "default", {}, () => [
|
|
5112
5112
|
createTextVNode(toDisplayString(e.label), 1)
|
|
5113
5113
|
])
|
|
5114
5114
|
]),
|
|
@@ -5317,25 +5317,25 @@ function requireLottie() {
|
|
|
5317
5317
|
};
|
|
5318
5318
|
})();
|
|
5319
5319
|
function HSVtoRGB(e, t, n) {
|
|
5320
|
-
var s, i, a, o, l, c,
|
|
5321
|
-
switch (o = Math.floor(e * 6), l = e * 6 - o, c = n * (1 - t),
|
|
5320
|
+
var s, i, a, o, l, c, u, d;
|
|
5321
|
+
switch (o = Math.floor(e * 6), l = e * 6 - o, c = n * (1 - t), u = n * (1 - l * t), d = n * (1 - (1 - l) * t), o % 6) {
|
|
5322
5322
|
case 0:
|
|
5323
|
-
s = n, i =
|
|
5323
|
+
s = n, i = d, a = c;
|
|
5324
5324
|
break;
|
|
5325
5325
|
case 1:
|
|
5326
|
-
s =
|
|
5326
|
+
s = u, i = n, a = c;
|
|
5327
5327
|
break;
|
|
5328
5328
|
case 2:
|
|
5329
|
-
s = c, i = n, a =
|
|
5329
|
+
s = c, i = n, a = d;
|
|
5330
5330
|
break;
|
|
5331
5331
|
case 3:
|
|
5332
|
-
s = c, i =
|
|
5332
|
+
s = c, i = u, a = n;
|
|
5333
5333
|
break;
|
|
5334
5334
|
case 4:
|
|
5335
|
-
s =
|
|
5335
|
+
s = d, i = c, a = n;
|
|
5336
5336
|
break;
|
|
5337
5337
|
case 5:
|
|
5338
|
-
s = n, i = c, a =
|
|
5338
|
+
s = n, i = c, a = u;
|
|
5339
5339
|
break;
|
|
5340
5340
|
}
|
|
5341
5341
|
return [s, i, a];
|
|
@@ -5752,7 +5752,7 @@ function requireLottie() {
|
|
|
5752
5752
|
onError: b
|
|
5753
5753
|
}, f;
|
|
5754
5754
|
}
|
|
5755
|
-
function
|
|
5755
|
+
function u(p, b, f) {
|
|
5756
5756
|
l();
|
|
5757
5757
|
var v = c(b, f);
|
|
5758
5758
|
s.postMessage({
|
|
@@ -5762,7 +5762,7 @@ function requireLottie() {
|
|
|
5762
5762
|
id: v
|
|
5763
5763
|
});
|
|
5764
5764
|
}
|
|
5765
|
-
function
|
|
5765
|
+
function d(p, b, f) {
|
|
5766
5766
|
l();
|
|
5767
5767
|
var v = c(b, f);
|
|
5768
5768
|
s.postMessage({
|
|
@@ -5782,8 +5782,8 @@ function requireLottie() {
|
|
|
5782
5782
|
});
|
|
5783
5783
|
}
|
|
5784
5784
|
return {
|
|
5785
|
-
loadAnimation:
|
|
5786
|
-
loadData:
|
|
5785
|
+
loadAnimation: u,
|
|
5786
|
+
loadData: d,
|
|
5787
5787
|
completeAnimation: m
|
|
5788
5788
|
};
|
|
5789
5789
|
})(), ImagePreloader = (function() {
|
|
@@ -5854,10 +5854,10 @@ function requireLottie() {
|
|
|
5854
5854
|
for (g = 0; g < C; g += 1)
|
|
5855
5855
|
y[g].layers || (!y[g].t || y[g].t === "seq" ? (this.totalImages += 1, this.images.push(this._createImageData(y[g]))) : y[g].t === 3 && (this.totalFootages += 1, this.images.push(this.createFootageData(y[g]))));
|
|
5856
5856
|
}
|
|
5857
|
-
function
|
|
5857
|
+
function u(y) {
|
|
5858
5858
|
this.path = y || "";
|
|
5859
5859
|
}
|
|
5860
|
-
function
|
|
5860
|
+
function d(y) {
|
|
5861
5861
|
this.assetsPath = y || "";
|
|
5862
5862
|
}
|
|
5863
5863
|
function m(y) {
|
|
@@ -5885,8 +5885,8 @@ function requireLottie() {
|
|
|
5885
5885
|
}
|
|
5886
5886
|
return k.prototype = {
|
|
5887
5887
|
loadAssets: c,
|
|
5888
|
-
setAssetsPath:
|
|
5889
|
-
setPath:
|
|
5888
|
+
setAssetsPath: d,
|
|
5889
|
+
setPath: u,
|
|
5890
5890
|
loadedImages: b,
|
|
5891
5891
|
loadedFootages: f,
|
|
5892
5892
|
destroy: p,
|
|
@@ -6237,20 +6237,20 @@ function requireLottie() {
|
|
|
6237
6237
|
var E = new AnimationItem();
|
|
6238
6238
|
return p(E, A), E.setData(A, F), E;
|
|
6239
6239
|
}
|
|
6240
|
-
function
|
|
6240
|
+
function u() {
|
|
6241
6241
|
var A, F = t.length, w = [];
|
|
6242
6242
|
for (A = 0; A < F; A += 1)
|
|
6243
6243
|
w.push(t[A].animation);
|
|
6244
6244
|
return w;
|
|
6245
6245
|
}
|
|
6246
|
-
function
|
|
6246
|
+
function d() {
|
|
6247
6247
|
i += 1, I();
|
|
6248
6248
|
}
|
|
6249
6249
|
function m() {
|
|
6250
6250
|
i -= 1;
|
|
6251
6251
|
}
|
|
6252
6252
|
function p(A, F) {
|
|
6253
|
-
A.addEventListener("destroy", l), A.addEventListener("_active",
|
|
6253
|
+
A.addEventListener("destroy", l), A.addEventListener("_active", d), A.addEventListener("_idle", m), t.push({
|
|
6254
6254
|
elem: F,
|
|
6255
6255
|
animation: A
|
|
6256
6256
|
}), s += 1;
|
|
@@ -6349,7 +6349,7 @@ function requireLottie() {
|
|
|
6349
6349
|
for (F = 0; F < s; F += 1)
|
|
6350
6350
|
t[F].animation.unmute(A);
|
|
6351
6351
|
}
|
|
6352
|
-
return e.registerAnimation = c, e.loadAnimation = b, e.setSpeed = f, e.setDirection = v, e.play = k, e.pause = g, e.stop = S, e.togglePause = _, e.searchAnimations = P, e.resize = M, e.goToAndStop = C, e.destroy = T, e.freeze = $, e.unfreeze = D, e.setVolume = L, e.mute = z, e.unmute = N, e.getRegisteredAnimations =
|
|
6352
|
+
return e.registerAnimation = c, e.loadAnimation = b, e.setSpeed = f, e.setDirection = v, e.play = k, e.pause = g, e.stop = S, e.togglePause = _, e.searchAnimations = P, e.resize = M, e.goToAndStop = C, e.destroy = T, e.freeze = $, e.unfreeze = D, e.setVolume = L, e.mute = z, e.unmute = N, e.getRegisteredAnimations = u, e;
|
|
6353
6353
|
})(), BezierFactory = (function() {
|
|
6354
6354
|
var e = {};
|
|
6355
6355
|
e.getBezierEasing = n;
|
|
@@ -6361,8 +6361,8 @@ function requireLottie() {
|
|
|
6361
6361
|
var P = new y([x, g, C, S]);
|
|
6362
6362
|
return t[T] = P, P;
|
|
6363
6363
|
}
|
|
6364
|
-
var s = 4, i = 1e-3, a = 1e-7, o = 10, l = 11, c = 1 / (l - 1),
|
|
6365
|
-
function
|
|
6364
|
+
var s = 4, i = 1e-3, a = 1e-7, o = 10, l = 11, c = 1 / (l - 1), u = typeof Float32Array == "function";
|
|
6365
|
+
function d(x, g) {
|
|
6366
6366
|
return 1 - 3 * g + 3 * x;
|
|
6367
6367
|
}
|
|
6368
6368
|
function m(x, g) {
|
|
@@ -6372,10 +6372,10 @@ function requireLottie() {
|
|
|
6372
6372
|
return 3 * x;
|
|
6373
6373
|
}
|
|
6374
6374
|
function b(x, g, C) {
|
|
6375
|
-
return ((
|
|
6375
|
+
return ((d(g, C) * x + m(g, C)) * x + p(g)) * x;
|
|
6376
6376
|
}
|
|
6377
6377
|
function f(x, g, C) {
|
|
6378
|
-
return 3 *
|
|
6378
|
+
return 3 * d(g, C) * x * x + 2 * m(g, C) * x + p(g);
|
|
6379
6379
|
}
|
|
6380
6380
|
function v(x, g, C, S, _) {
|
|
6381
6381
|
var T, P, M = 0;
|
|
@@ -6394,7 +6394,7 @@ function requireLottie() {
|
|
|
6394
6394
|
return g;
|
|
6395
6395
|
}
|
|
6396
6396
|
function y(x) {
|
|
6397
|
-
this._p = x, this._mSampleValues =
|
|
6397
|
+
this._p = x, this._mSampleValues = u ? new Float32Array(l) : new Array(l), this._precomputed = !1, this.get = this.get.bind(this);
|
|
6398
6398
|
}
|
|
6399
6399
|
return y.prototype = {
|
|
6400
6400
|
get: function(g) {
|
|
@@ -6435,11 +6435,11 @@ function requireLottie() {
|
|
|
6435
6435
|
release: c
|
|
6436
6436
|
};
|
|
6437
6437
|
function l() {
|
|
6438
|
-
var
|
|
6439
|
-
return s ? (s -= 1,
|
|
6438
|
+
var u;
|
|
6439
|
+
return s ? (s -= 1, u = a[s]) : u = t(), u;
|
|
6440
6440
|
}
|
|
6441
|
-
function c(
|
|
6442
|
-
s === i && (a = pooling.double(a), i *= 2), n && n(
|
|
6441
|
+
function c(u) {
|
|
6442
|
+
s === i && (a = pooling.double(a), i *= 2), n && n(u), a[s] = u, s += 1;
|
|
6443
6443
|
}
|
|
6444
6444
|
return o;
|
|
6445
6445
|
};
|
|
@@ -6532,24 +6532,24 @@ function requireLottie() {
|
|
|
6532
6532
|
}
|
|
6533
6533
|
return f[y] + (f[y + 1] - f[y]) * g;
|
|
6534
6534
|
}
|
|
6535
|
-
function
|
|
6535
|
+
function u(p, b, f, v, k, y) {
|
|
6536
6536
|
var x = c(k, y), g = 1 - x, C = e.round((g * g * g * p[0] + (x * g * g + g * x * g + g * g * x) * f[0] + (x * x * g + g * x * x + x * g * x) * v[0] + x * x * x * b[0]) * 1e3) / 1e3, S = e.round((g * g * g * p[1] + (x * g * g + g * x * g + g * g * x) * f[1] + (x * x * g + g * x * x + x * g * x) * v[1] + x * x * x * b[1]) * 1e3) / 1e3;
|
|
6537
6537
|
return [C, S];
|
|
6538
6538
|
}
|
|
6539
|
-
var
|
|
6539
|
+
var d = createTypedArray("float32", 8);
|
|
6540
6540
|
function m(p, b, f, v, k, y, x) {
|
|
6541
6541
|
k < 0 ? k = 0 : k > 1 && (k = 1);
|
|
6542
6542
|
var g = c(k, x);
|
|
6543
6543
|
y = y > 1 ? 1 : y;
|
|
6544
6544
|
var C = c(y, x), S, _ = p.length, T = 1 - g, P = 1 - C, M = T * T * T, I = g * T * T * 3, $ = g * g * T * 3, D = g * g * g, L = T * T * P, z = g * T * P + T * g * P + T * T * C, N = g * g * P + T * g * C + g * T * C, A = g * g * C, F = T * P * P, w = g * P * P + T * C * P + T * P * C, E = g * C * P + T * C * C + g * P * C, B = g * C * C, V = P * P * P, G = C * P * P + P * C * P + P * P * C, H = C * C * P + P * C * C + C * P * C, j = C * C * C;
|
|
6545
6545
|
for (S = 0; S < _; S += 1)
|
|
6546
|
-
|
|
6547
|
-
return
|
|
6546
|
+
d[S * 4] = e.round((M * p[S] + I * f[S] + $ * v[S] + D * b[S]) * 1e3) / 1e3, d[S * 4 + 1] = e.round((L * p[S] + z * f[S] + N * v[S] + A * b[S]) * 1e3) / 1e3, d[S * 4 + 2] = e.round((F * p[S] + w * f[S] + E * v[S] + B * b[S]) * 1e3) / 1e3, d[S * 4 + 3] = e.round((V * p[S] + G * f[S] + H * v[S] + j * b[S]) * 1e3) / 1e3;
|
|
6547
|
+
return d;
|
|
6548
6548
|
}
|
|
6549
6549
|
return {
|
|
6550
6550
|
getSegmentsLength: i,
|
|
6551
6551
|
getNewSegment: m,
|
|
6552
|
-
getPointInSegment:
|
|
6552
|
+
getPointInSegment: u,
|
|
6553
6553
|
buildBezierData: l,
|
|
6554
6554
|
pointOnLine2D: t,
|
|
6555
6555
|
pointOnLine3D: n
|
|
@@ -6559,28 +6559,28 @@ function requireLottie() {
|
|
|
6559
6559
|
function interpolateValue(e, t) {
|
|
6560
6560
|
var n = this.offsetTime, s;
|
|
6561
6561
|
this.propType === "multidimensional" && (s = createTypedArray("float32", this.pv.length));
|
|
6562
|
-
for (var i = t.lastIndex, a = i, o = this.keyframes.length - 1, l = !0, c,
|
|
6563
|
-
if (c = this.keyframes[a],
|
|
6564
|
-
c.h && (c =
|
|
6562
|
+
for (var i = t.lastIndex, a = i, o = this.keyframes.length - 1, l = !0, c, u, d; l; ) {
|
|
6563
|
+
if (c = this.keyframes[a], u = this.keyframes[a + 1], a === o - 1 && e >= u.t - n) {
|
|
6564
|
+
c.h && (c = u), i = 0;
|
|
6565
6565
|
break;
|
|
6566
6566
|
}
|
|
6567
|
-
if (
|
|
6567
|
+
if (u.t - n > e) {
|
|
6568
6568
|
i = a;
|
|
6569
6569
|
break;
|
|
6570
6570
|
}
|
|
6571
6571
|
a < o - 1 ? a += 1 : (i = 0, l = !1);
|
|
6572
6572
|
}
|
|
6573
|
-
|
|
6574
|
-
var m, p, b, f, v, k, y =
|
|
6573
|
+
d = this.keyframesMetadata[a] || {};
|
|
6574
|
+
var m, p, b, f, v, k, y = u.t - n, x = c.t - n, g;
|
|
6575
6575
|
if (c.to) {
|
|
6576
|
-
|
|
6577
|
-
var C =
|
|
6576
|
+
d.bezierData || (d.bezierData = bez.buildBezierData(c.s, u.s || c.e, c.to, c.ti));
|
|
6577
|
+
var C = d.bezierData;
|
|
6578
6578
|
if (e >= y || e < x) {
|
|
6579
6579
|
var S = e >= y ? C.points.length - 1 : 0;
|
|
6580
6580
|
for (p = C.points[S].point.length, m = 0; m < p; m += 1)
|
|
6581
6581
|
s[m] = C.points[S].point[m];
|
|
6582
6582
|
} else {
|
|
6583
|
-
|
|
6583
|
+
d.__fnct ? k = d.__fnct : (k = BezierFactory.getBezierEasing(c.o.x, c.o.y, c.i.x, c.i.y, c.n).get, d.__fnct = k), b = k((e - x) / (y - x));
|
|
6584
6584
|
var _ = C.segmentLength * b, T, P = t.lastFrame < e && t._lastKeyframeIndex === a ? t._lastAddedLength : 0;
|
|
6585
6585
|
for (v = t.lastFrame < e && t._lastKeyframeIndex === a ? t._lastPoint : 0, l = !0, f = C.points.length; l; ) {
|
|
6586
6586
|
if (P += C.points[v].partialLength, _ === 0 || b === 0 || v === C.points.length - 1) {
|
|
@@ -6598,7 +6598,7 @@ function requireLottie() {
|
|
|
6598
6598
|
}
|
|
6599
6599
|
} else {
|
|
6600
6600
|
var M, I, $, D, L;
|
|
6601
|
-
if (o = c.s.length, g =
|
|
6601
|
+
if (o = c.s.length, g = u.s || c.e, this.sh && c.h !== 1)
|
|
6602
6602
|
if (e >= y)
|
|
6603
6603
|
s[0] = g[0], s[1] = g[1], s[2] = g[2];
|
|
6604
6604
|
else if (e <= x)
|
|
@@ -6609,21 +6609,21 @@ function requireLottie() {
|
|
|
6609
6609
|
}
|
|
6610
6610
|
else
|
|
6611
6611
|
for (a = 0; a < o; a += 1)
|
|
6612
|
-
c.h !== 1 && (e >= y ? b = 1 : e < x ? b = 0 : (c.o.x.constructor === Array ? (
|
|
6612
|
+
c.h !== 1 && (e >= y ? b = 1 : e < x ? b = 0 : (c.o.x.constructor === Array ? (d.__fnct || (d.__fnct = []), d.__fnct[a] ? k = d.__fnct[a] : (M = c.o.x[a] === void 0 ? c.o.x[0] : c.o.x[a], I = c.o.y[a] === void 0 ? c.o.y[0] : c.o.y[a], $ = c.i.x[a] === void 0 ? c.i.x[0] : c.i.x[a], D = c.i.y[a] === void 0 ? c.i.y[0] : c.i.y[a], k = BezierFactory.getBezierEasing(M, I, $, D).get, d.__fnct[a] = k)) : d.__fnct ? k = d.__fnct : (M = c.o.x, I = c.o.y, $ = c.i.x, D = c.i.y, k = BezierFactory.getBezierEasing(M, I, $, D).get, c.keyframeMetadata = k), b = k((e - x) / (y - x)))), g = u.s || c.e, L = c.h === 1 ? c.s[a] : c.s[a] + (g[a] - c.s[a]) * b, this.propType === "multidimensional" ? s[a] = L : s = L;
|
|
6613
6613
|
}
|
|
6614
6614
|
return t.lastIndex = i, s;
|
|
6615
6615
|
}
|
|
6616
6616
|
function slerp(e, t, n) {
|
|
6617
|
-
var s = [], i = e[0], a = e[1], o = e[2], l = e[3], c = t[0],
|
|
6618
|
-
return b = i * c + a *
|
|
6617
|
+
var s = [], i = e[0], a = e[1], o = e[2], l = e[3], c = t[0], u = t[1], d = t[2], m = t[3], p, b, f, v, k;
|
|
6618
|
+
return b = i * c + a * u + o * d + l * m, b < 0 && (b = -b, c = -c, u = -u, d = -d, m = -m), 1 - b > 1e-6 ? (p = Math.acos(b), f = Math.sin(p), v = Math.sin((1 - n) * p) / f, k = Math.sin(n * p) / f) : (v = 1 - n, k = n), s[0] = v * i + k * c, s[1] = v * a + k * u, s[2] = v * o + k * d, s[3] = v * l + k * m, s;
|
|
6619
6619
|
}
|
|
6620
6620
|
function quaternionToEuler(e, t) {
|
|
6621
6621
|
var n = t[0], s = t[1], i = t[2], a = t[3], o = Math.atan2(2 * s * a - 2 * n * i, 1 - 2 * s * s - 2 * i * i), l = Math.asin(2 * n * s + 2 * i * a), c = Math.atan2(2 * n * a - 2 * s * i, 1 - 2 * n * n - 2 * i * i);
|
|
6622
6622
|
e[0] = o / degToRads, e[1] = l / degToRads, e[2] = c / degToRads;
|
|
6623
6623
|
}
|
|
6624
6624
|
function createQuaternion(e) {
|
|
6625
|
-
var t = e[0] * degToRads, n = e[1] * degToRads, s = e[2] * degToRads, i = Math.cos(t / 2), a = Math.cos(n / 2), o = Math.cos(s / 2), l = Math.sin(t / 2), c = Math.sin(n / 2),
|
|
6626
|
-
return [m, p, b,
|
|
6625
|
+
var t = e[0] * degToRads, n = e[1] * degToRads, s = e[2] * degToRads, i = Math.cos(t / 2), a = Math.cos(n / 2), o = Math.cos(s / 2), l = Math.sin(t / 2), c = Math.sin(n / 2), u = Math.sin(s / 2), d = i * a * o - l * c * u, m = l * c * o + i * a * u, p = l * a * o + i * c * u, b = i * c * o - l * a * u;
|
|
6626
|
+
return [m, p, b, d];
|
|
6627
6627
|
}
|
|
6628
6628
|
function getValueAtCurrentTime() {
|
|
6629
6629
|
var e = this.comp.renderedFrame - this.offsetTime, t = this.keyframes[0].t - this.offsetTime, n = this.keyframes[this.keyframes.length - 1].t - this.offsetTime;
|
|
@@ -6678,17 +6678,17 @@ function requireLottie() {
|
|
|
6678
6678
|
}
|
|
6679
6679
|
function KeyframedMultidimensionalProperty(e, t, n, s) {
|
|
6680
6680
|
this.propType = "multidimensional";
|
|
6681
|
-
var i, a = t.k.length, o, l, c,
|
|
6681
|
+
var i, a = t.k.length, o, l, c, u;
|
|
6682
6682
|
for (i = 0; i < a - 1; i += 1)
|
|
6683
|
-
t.k[i].to && t.k[i].s && t.k[i + 1] && t.k[i + 1].s && (o = t.k[i].s, l = t.k[i + 1].s, c = t.k[i].to,
|
|
6683
|
+
t.k[i].to && t.k[i].s && t.k[i + 1] && t.k[i + 1].s && (o = t.k[i].s, l = t.k[i + 1].s, c = t.k[i].to, u = t.k[i].ti, (o.length === 2 && !(o[0] === l[0] && o[1] === l[1]) && bez.pointOnLine2D(o[0], o[1], l[0], l[1], o[0] + c[0], o[1] + c[1]) && bez.pointOnLine2D(o[0], o[1], l[0], l[1], l[0] + u[0], l[1] + u[1]) || o.length === 3 && !(o[0] === l[0] && o[1] === l[1] && o[2] === l[2]) && bez.pointOnLine3D(o[0], o[1], o[2], l[0], l[1], l[2], o[0] + c[0], o[1] + c[1], o[2] + c[2]) && bez.pointOnLine3D(o[0], o[1], o[2], l[0], l[1], l[2], l[0] + u[0], l[1] + u[1], l[2] + u[2])) && (t.k[i].to = null, t.k[i].ti = null), o[0] === l[0] && o[1] === l[1] && c[0] === 0 && c[1] === 0 && u[0] === 0 && u[1] === 0 && (o.length === 2 || o[2] === l[2] && c[2] === 0 && u[2] === 0) && (t.k[i].to = null, t.k[i].ti = null));
|
|
6684
6684
|
this.effectsSequence = [getValueAtCurrentTime.bind(this)], this.data = t, this.keyframes = t.k, this.keyframesMetadata = [], this.offsetTime = e.data.st, this.k = !0, this.kf = !0, this._isFirstFrame = !0, this.mult = n || 1, this.elem = e, this.container = s, this.comp = e.comp, this.getValue = processEffectsSequence, this.setVValue = setVValue, this.interpolateValue = interpolateValue, this.frameId = -1;
|
|
6685
|
-
var
|
|
6686
|
-
for (this.v = createTypedArray("float32",
|
|
6685
|
+
var d = t.k[0].s.length;
|
|
6686
|
+
for (this.v = createTypedArray("float32", d), this.pv = createTypedArray("float32", d), i = 0; i < d; i += 1)
|
|
6687
6687
|
this.v[i] = initFrame, this.pv[i] = initFrame;
|
|
6688
6688
|
this._caching = {
|
|
6689
6689
|
lastFrame: initFrame,
|
|
6690
6690
|
lastIndex: 0,
|
|
6691
|
-
value: createTypedArray("float32",
|
|
6691
|
+
value: createTypedArray("float32", d)
|
|
6692
6692
|
}, this.addEffect = addEffect;
|
|
6693
6693
|
}
|
|
6694
6694
|
var PropertyFactory = /* @__PURE__ */ (function() {
|
|
@@ -6902,7 +6902,7 @@ function requireLottie() {
|
|
|
6902
6902
|
this.effectsSequence.push(y), this.container.addDynamicProperty(this);
|
|
6903
6903
|
}
|
|
6904
6904
|
l.prototype.interpolateShape = t, l.prototype.getValue = o, l.prototype.setVValue = a, l.prototype.addEffect = c;
|
|
6905
|
-
function
|
|
6905
|
+
function u(y, x, g) {
|
|
6906
6906
|
this.propType = "shape", this.comp = y.comp, this.elem = y, this.container = y, this.offsetTime = y.data.st, this.keyframes = g === 3 ? x.pt.k : x.ks.k, this.keyframesMetadata = [], this.k = !0, this.kf = !0;
|
|
6907
6907
|
var C = this.keyframes[0].s[0].i.length;
|
|
6908
6908
|
this.v = shapePool.newElement(), this.v.setPathData(this.keyframes[0].s[0].c, C), this.pv = shapePool.clone(this.v), this.localShapeCollection = shapeCollectionPool.newShapeCollection(), this.paths = this.localShapeCollection, this.paths.addShape(this.v), this.lastFrame = e, this.reset = s, this._caching = {
|
|
@@ -6910,8 +6910,8 @@ function requireLottie() {
|
|
|
6910
6910
|
lastIndex: 0
|
|
6911
6911
|
}, this.effectsSequence = [n.bind(this)];
|
|
6912
6912
|
}
|
|
6913
|
-
|
|
6914
|
-
var
|
|
6913
|
+
u.prototype.getValue = o, u.prototype.interpolateShape = t, u.prototype.setVValue = a, u.prototype.addEffect = c;
|
|
6914
|
+
var d = (function() {
|
|
6915
6915
|
var y = roundCorner;
|
|
6916
6916
|
function x(g, C) {
|
|
6917
6917
|
this.v = shapePool.newElement(), this.v.setPathData(!0, 4), this.localShapeCollection = shapeCollectionPool.newShapeCollection(), this.paths = this.localShapeCollection, this.localShapeCollection.addShape(this.v), this.d = C.d, this.elem = g, this.comp = g.comp, this.frameId = -1, this.initDynamicPropertyContainer(g), this.p = PropertyFactory.getProp(g, C.p, 1, 0, this), this.s = PropertyFactory.getProp(g, C.s, 1, 0, this), this.dynamicProperties.length ? this.k = !0 : (this.k = !1, this.convertEllToPath());
|
|
@@ -6973,15 +6973,15 @@ function requireLottie() {
|
|
|
6973
6973
|
var C;
|
|
6974
6974
|
if (g === 3 || g === 4) {
|
|
6975
6975
|
var S = g === 3 ? x.pt : x.ks, _ = S.k;
|
|
6976
|
-
_.length ? C = new
|
|
6977
|
-
} else g === 5 ? C = new p(y, x) : g === 6 ? C = new
|
|
6976
|
+
_.length ? C = new u(y, x, g) : C = new l(y, x, g);
|
|
6977
|
+
} else g === 5 ? C = new p(y, x) : g === 6 ? C = new d(y, x) : g === 7 && (C = new m(y, x));
|
|
6978
6978
|
return C.k && y.addDynamicProperty(C), C;
|
|
6979
6979
|
}
|
|
6980
6980
|
function f() {
|
|
6981
6981
|
return l;
|
|
6982
6982
|
}
|
|
6983
6983
|
function v() {
|
|
6984
|
-
return
|
|
6984
|
+
return u;
|
|
6985
6985
|
}
|
|
6986
6986
|
var k = {};
|
|
6987
6987
|
return k.getShapeProp = b, k.getConstructorFunction = f, k.getKeyframedConstructorFunction = v, k;
|
|
@@ -7015,10 +7015,10 @@ function requireLottie() {
|
|
|
7015
7015
|
var E = e(w), B = t(w);
|
|
7016
7016
|
return this._t(E, -B, 0, 0, B, E, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
|
|
7017
7017
|
}
|
|
7018
|
-
function
|
|
7018
|
+
function u(w, E) {
|
|
7019
7019
|
return this._t(1, E, w, 1, 0, 0);
|
|
7020
7020
|
}
|
|
7021
|
-
function
|
|
7021
|
+
function d(w, E) {
|
|
7022
7022
|
return this.shear(n(w), n(E));
|
|
7023
7023
|
}
|
|
7024
7024
|
function m(w, E) {
|
|
@@ -7131,7 +7131,7 @@ function requireLottie() {
|
|
|
7131
7131
|
return "matrix(" + E + "," + B + "," + V + "," + G + "," + H + "," + j + ")";
|
|
7132
7132
|
}
|
|
7133
7133
|
return function() {
|
|
7134
|
-
this.reset = i, this.rotate = a, this.rotateX = o, this.rotateY = l, this.rotateZ = c, this.skew =
|
|
7134
|
+
this.reset = i, this.rotate = a, this.rotateX = o, this.rotateY = l, this.rotateZ = c, this.skew = d, this.skewFromAxis = m, this.shear = u, this.scale = p, this.setTransform = b, this.translate = f, this.transform = v, this.multiply = k, this.applyToPoint = S, this.applyToX = _, this.applyToY = T, this.applyToZ = P, this.applyToPointArray = L, this.applyToTriplePoints = D, this.applyToPointStringified = z, this.toCSS = N, this.to2dCSS = F, this.clone = g, this.cloneFromProps = C, this.equals = x, this.inversePoints = $, this.inversePoint = I, this.getInverseMatrix = M, this._t = this.transform, this.isIdentity = y, this._identity = !0, this._identityCalculated = !1, this.props = createTypedArray("float32", 16), this.reset();
|
|
7135
7135
|
};
|
|
7136
7136
|
})();
|
|
7137
7137
|
function _typeof$3(e) {
|
|
@@ -7267,11 +7267,11 @@ function requireLottie() {
|
|
|
7267
7267
|
s: 0,
|
|
7268
7268
|
e: t - 1
|
|
7269
7269
|
}));
|
|
7270
|
-
var o = [], l, c = a.length,
|
|
7270
|
+
var o = [], l, c = a.length, u;
|
|
7271
7271
|
for (l = 0; l < c; l += 1)
|
|
7272
|
-
if (
|
|
7273
|
-
var
|
|
7274
|
-
|
|
7272
|
+
if (u = a[l], !(u.e * i < s || u.s * i > s + n)) {
|
|
7273
|
+
var d, m;
|
|
7274
|
+
u.s * i <= s ? d = 0 : d = (u.s * i - s) / n, u.e * i >= s + n ? m = 1 : m = (u.e * i - s) / n, o.push([d, m]);
|
|
7275
7275
|
}
|
|
7276
7276
|
return o.length || o.push([0, 0]), o;
|
|
7277
7277
|
}, TrimModifier.prototype.releasePathsData = function(e) {
|
|
@@ -7290,7 +7290,7 @@ function requireLottie() {
|
|
|
7290
7290
|
t = Math.round(t * 1e4) * 1e-4, n = Math.round(n * 1e4) * 1e-4, this.sValue = t, this.eValue = n;
|
|
7291
7291
|
} else
|
|
7292
7292
|
t = this.sValue, n = this.eValue;
|
|
7293
|
-
var a, o, l = this.shapes.length, c,
|
|
7293
|
+
var a, o, l = this.shapes.length, c, u, d, m, p, b = 0;
|
|
7294
7294
|
if (n === t)
|
|
7295
7295
|
for (o = 0; o < l; o += 1)
|
|
7296
7296
|
this.shapes[o].localShapeCollection.releaseShapes(), this.shapes[o].shape._mdf = !0, this.shapes[o].shape.paths = this.shapes[o].localShapeCollection, this._mdf && (this.shapes[o].pathsData.length = 0);
|
|
@@ -7304,19 +7304,19 @@ function requireLottie() {
|
|
|
7304
7304
|
if (v = this.shapes[o], !v.shape._mdf && !this._mdf && !e && this.m !== 2)
|
|
7305
7305
|
v.shape.paths = v.localShapeCollection;
|
|
7306
7306
|
else {
|
|
7307
|
-
if (a = v.shape.paths,
|
|
7307
|
+
if (a = v.shape.paths, u = a._length, p = 0, !v.shape._mdf && v.pathsData.length)
|
|
7308
7308
|
p = v.totalShapeLength;
|
|
7309
7309
|
else {
|
|
7310
|
-
for (
|
|
7311
|
-
m = bez.getSegmentsLength(a.shapes[c]),
|
|
7312
|
-
v.totalShapeLength = p, v.pathsData =
|
|
7310
|
+
for (d = this.releasePathsData(v.pathsData), c = 0; c < u; c += 1)
|
|
7311
|
+
m = bez.getSegmentsLength(a.shapes[c]), d.push(m), p += m.totalLength;
|
|
7312
|
+
v.totalShapeLength = p, v.pathsData = d;
|
|
7313
7313
|
}
|
|
7314
7314
|
b += p, v.shape._mdf = !0;
|
|
7315
7315
|
}
|
|
7316
7316
|
var y = t, x = n, g = 0, C;
|
|
7317
7317
|
for (o = l - 1; o >= 0; o -= 1)
|
|
7318
7318
|
if (v = this.shapes[o], v.shape._mdf) {
|
|
7319
|
-
for (k = v.localShapeCollection, k.releaseShapes(), this.m === 2 && l > 1 ? (C = this.calculateShapeEdges(t, n, v.totalShapeLength, g, b), g += v.totalShapeLength) : C = [[y, x]],
|
|
7319
|
+
for (k = v.localShapeCollection, k.releaseShapes(), this.m === 2 && l > 1 ? (C = this.calculateShapeEdges(t, n, v.totalShapeLength, g, b), g += v.totalShapeLength) : C = [[y, x]], u = C.length, c = 0; c < u; c += 1) {
|
|
7320
7320
|
y = C[c][0], x = C[c][1], f.length = 0, x <= 1 ? f.push({
|
|
7321
7321
|
s: v.totalShapeLength * y,
|
|
7322
7322
|
e: v.totalShapeLength * x
|
|
@@ -7355,25 +7355,25 @@ function requireLottie() {
|
|
|
7355
7355
|
}, TrimModifier.prototype.addSegmentFromArray = function(e, t, n, s) {
|
|
7356
7356
|
t.setXYAt(e[1], e[5], "o", n), t.setXYAt(e[2], e[6], "i", n + 1), s && t.setXYAt(e[0], e[4], "v", n), t.setXYAt(e[3], e[7], "v", n + 1);
|
|
7357
7357
|
}, TrimModifier.prototype.addShapes = function(e, t, n) {
|
|
7358
|
-
var s = e.pathsData, i = e.shape.paths.shapes, a, o = e.shape.paths._length, l, c,
|
|
7358
|
+
var s = e.pathsData, i = e.shape.paths.shapes, a, o = e.shape.paths._length, l, c, u = 0, d, m, p, b, f = [], v, k = !0;
|
|
7359
7359
|
for (n ? (m = n._length, v = n._length) : (n = shapePool.newElement(), m = 0, v = 0), f.push(n), a = 0; a < o; a += 1) {
|
|
7360
7360
|
for (p = s[a].lengths, n.c = i[a].c, c = i[a].c ? p.length : p.length + 1, l = 1; l < c; l += 1)
|
|
7361
|
-
if (
|
|
7362
|
-
|
|
7363
|
-
else if (
|
|
7361
|
+
if (d = p[l - 1], u + d.addedLength < t.s)
|
|
7362
|
+
u += d.addedLength, n.c = !1;
|
|
7363
|
+
else if (u > t.e) {
|
|
7364
7364
|
n.c = !1;
|
|
7365
7365
|
break;
|
|
7366
7366
|
} else
|
|
7367
|
-
t.s <=
|
|
7367
|
+
t.s <= u && t.e >= u + d.addedLength ? (this.addSegment(i[a].v[l - 1], i[a].o[l - 1], i[a].i[l], i[a].v[l], n, m, k), k = !1) : (b = bez.getNewSegment(i[a].v[l - 1], i[a].v[l], i[a].o[l - 1], i[a].i[l], (t.s - u) / d.addedLength, (t.e - u) / d.addedLength, p[l - 1]), this.addSegmentFromArray(b, n, m, k), k = !1, n.c = !1), u += d.addedLength, m += 1;
|
|
7368
7368
|
if (i[a].c && p.length) {
|
|
7369
|
-
if (
|
|
7369
|
+
if (d = p[l - 1], u <= t.e) {
|
|
7370
7370
|
var y = p[l - 1].addedLength;
|
|
7371
|
-
t.s <=
|
|
7371
|
+
t.s <= u && t.e >= u + y ? (this.addSegment(i[a].v[l - 1], i[a].o[l - 1], i[a].i[0], i[a].v[0], n, m, k), k = !1) : (b = bez.getNewSegment(i[a].v[l - 1], i[a].v[0], i[a].o[l - 1], i[a].i[0], (t.s - u) / y, (t.e - u) / y, p[l - 1]), this.addSegmentFromArray(b, n, m, k), k = !1, n.c = !1);
|
|
7372
7372
|
} else
|
|
7373
7373
|
n.c = !1;
|
|
7374
|
-
|
|
7374
|
+
u += d.addedLength, m += 1;
|
|
7375
7375
|
}
|
|
7376
|
-
if (n._length && (n.setXYAt(n.v[v][0], n.v[v][1], "i", v), n.setXYAt(n.v[n._length - 1][0], n.v[n._length - 1][1], "o", n._length - 1)),
|
|
7376
|
+
if (n._length && (n.setXYAt(n.v[v][0], n.v[v][1], "i", v), n.setXYAt(n.v[n._length - 1][0], n.v[n._length - 1][1], "o", n._length - 1)), u > t.e)
|
|
7377
7377
|
break;
|
|
7378
7378
|
a < o - 1 && (n = shapePool.newElement(), k = !0, f.push(n), m = 0);
|
|
7379
7379
|
}
|
|
@@ -7390,9 +7390,9 @@ function requireLottie() {
|
|
|
7390
7390
|
s[0] /= i, s[1] /= i;
|
|
7391
7391
|
var o = shapePool.newElement();
|
|
7392
7392
|
o.c = e.c;
|
|
7393
|
-
var l, c,
|
|
7393
|
+
var l, c, u, d, m, p;
|
|
7394
7394
|
for (a = 0; a < i; a += 1)
|
|
7395
|
-
l = e.v[a][0] + (s[0] - e.v[a][0]) * n, c = e.v[a][1] + (s[1] - e.v[a][1]) * n,
|
|
7395
|
+
l = e.v[a][0] + (s[0] - e.v[a][0]) * n, c = e.v[a][1] + (s[1] - e.v[a][1]) * n, u = e.o[a][0] + (s[0] - e.o[a][0]) * -n, d = e.o[a][1] + (s[1] - e.o[a][1]) * -n, m = e.i[a][0] + (s[0] - e.i[a][0]) * -n, p = e.i[a][1] + (s[1] - e.i[a][1]) * -n, o.setTripleAt(l, c, u, d, m, p, a);
|
|
7396
7396
|
return o;
|
|
7397
7397
|
}, PuckerAndBloatModifier.prototype.processShapes = function(e) {
|
|
7398
7398
|
var t, n, s = this.shapes.length, i, a, o = this.amount.v;
|
|
@@ -7410,24 +7410,24 @@ function requireLottie() {
|
|
|
7410
7410
|
var TransformPropertyFactory = (function() {
|
|
7411
7411
|
var e = [0, 0];
|
|
7412
7412
|
function t(c) {
|
|
7413
|
-
var
|
|
7414
|
-
this.iterateDynamicProperties(), this._mdf = this._mdf ||
|
|
7413
|
+
var u = this._mdf;
|
|
7414
|
+
this.iterateDynamicProperties(), this._mdf = this._mdf || u, this.a && c.translate(-this.a.v[0], -this.a.v[1], this.a.v[2]), this.s && c.scale(this.s.v[0], this.s.v[1], this.s.v[2]), this.sk && c.skewFromAxis(-this.sk.v, this.sa.v), this.r ? c.rotate(-this.r.v) : c.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]), this.data.p.s ? this.data.p.z ? c.translate(this.px.v, this.py.v, -this.pz.v) : c.translate(this.px.v, this.py.v, 0) : c.translate(this.p.v[0], this.p.v[1], -this.p.v[2]);
|
|
7415
7415
|
}
|
|
7416
7416
|
function n(c) {
|
|
7417
7417
|
if (this.elem.globalData.frameId !== this.frameId) {
|
|
7418
7418
|
if (this._isDirty && (this.precalculateMatrix(), this._isDirty = !1), this.iterateDynamicProperties(), this._mdf || c) {
|
|
7419
|
-
var
|
|
7419
|
+
var u;
|
|
7420
7420
|
if (this.v.cloneFromProps(this.pre.props), this.appliedTransformations < 1 && this.v.translate(-this.a.v[0], -this.a.v[1], this.a.v[2]), this.appliedTransformations < 2 && this.v.scale(this.s.v[0], this.s.v[1], this.s.v[2]), this.sk && this.appliedTransformations < 3 && this.v.skewFromAxis(-this.sk.v, this.sa.v), this.r && this.appliedTransformations < 4 ? this.v.rotate(-this.r.v) : !this.r && this.appliedTransformations < 4 && this.v.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]), this.autoOriented) {
|
|
7421
|
-
var
|
|
7422
|
-
if (
|
|
7423
|
-
this.p._caching.lastFrame + this.p.offsetTime <= this.p.keyframes[0].t ? (
|
|
7421
|
+
var d, m;
|
|
7422
|
+
if (u = this.elem.globalData.frameRate, this.p && this.p.keyframes && this.p.getValueAtTime)
|
|
7423
|
+
this.p._caching.lastFrame + this.p.offsetTime <= this.p.keyframes[0].t ? (d = this.p.getValueAtTime((this.p.keyframes[0].t + 0.01) / u, 0), m = this.p.getValueAtTime(this.p.keyframes[0].t / u, 0)) : this.p._caching.lastFrame + this.p.offsetTime >= this.p.keyframes[this.p.keyframes.length - 1].t ? (d = this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length - 1].t / u, 0), m = this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length - 1].t - 0.05) / u, 0)) : (d = this.p.pv, m = this.p.getValueAtTime((this.p._caching.lastFrame + this.p.offsetTime - 0.01) / u, this.p.offsetTime));
|
|
7424
7424
|
else if (this.px && this.px.keyframes && this.py.keyframes && this.px.getValueAtTime && this.py.getValueAtTime) {
|
|
7425
|
-
|
|
7425
|
+
d = [], m = [];
|
|
7426
7426
|
var p = this.px, b = this.py;
|
|
7427
|
-
p._caching.lastFrame + p.offsetTime <= p.keyframes[0].t ? (
|
|
7427
|
+
p._caching.lastFrame + p.offsetTime <= p.keyframes[0].t ? (d[0] = p.getValueAtTime((p.keyframes[0].t + 0.01) / u, 0), d[1] = b.getValueAtTime((b.keyframes[0].t + 0.01) / u, 0), m[0] = p.getValueAtTime(p.keyframes[0].t / u, 0), m[1] = b.getValueAtTime(b.keyframes[0].t / u, 0)) : p._caching.lastFrame + p.offsetTime >= p.keyframes[p.keyframes.length - 1].t ? (d[0] = p.getValueAtTime(p.keyframes[p.keyframes.length - 1].t / u, 0), d[1] = b.getValueAtTime(b.keyframes[b.keyframes.length - 1].t / u, 0), m[0] = p.getValueAtTime((p.keyframes[p.keyframes.length - 1].t - 0.01) / u, 0), m[1] = b.getValueAtTime((b.keyframes[b.keyframes.length - 1].t - 0.01) / u, 0)) : (d = [p.pv, b.pv], m[0] = p.getValueAtTime((p._caching.lastFrame + p.offsetTime - 0.01) / u, p.offsetTime), m[1] = b.getValueAtTime((b._caching.lastFrame + b.offsetTime - 0.01) / u, b.offsetTime));
|
|
7428
7428
|
} else
|
|
7429
|
-
m = e,
|
|
7430
|
-
this.v.rotate(-Math.atan2(
|
|
7429
|
+
m = e, d = m;
|
|
7430
|
+
this.v.rotate(-Math.atan2(d[1] - m[1], d[0] - m[0]));
|
|
7431
7431
|
}
|
|
7432
7432
|
this.data.p && this.data.p.s ? this.data.p.z ? this.v.translate(this.px.v, this.py.v, -this.pz.v) : this.v.translate(this.px.v, this.py.v, 0) : this.v.translate(this.p.v[0], this.p.v[1], -this.p.v[2]);
|
|
7433
7433
|
}
|
|
@@ -7455,25 +7455,25 @@ function requireLottie() {
|
|
|
7455
7455
|
function a(c) {
|
|
7456
7456
|
this._addDynamicProperty(c), this.elem.addDynamicProperty(c), this._isDirty = !0;
|
|
7457
7457
|
}
|
|
7458
|
-
function o(c,
|
|
7459
|
-
if (this.elem = c, this.frameId = -1, this.propType = "transform", this.data =
|
|
7458
|
+
function o(c, u, d) {
|
|
7459
|
+
if (this.elem = c, this.frameId = -1, this.propType = "transform", this.data = u, this.v = new Matrix(), this.pre = new Matrix(), this.appliedTransformations = 0, this.initDynamicPropertyContainer(d || c), u.p && u.p.s ? (this.px = PropertyFactory.getProp(c, u.p.x, 0, 0, this), this.py = PropertyFactory.getProp(c, u.p.y, 0, 0, this), u.p.z && (this.pz = PropertyFactory.getProp(c, u.p.z, 0, 0, this))) : this.p = PropertyFactory.getProp(c, u.p || {
|
|
7460
7460
|
k: [0, 0, 0]
|
|
7461
|
-
}, 1, 0, this),
|
|
7462
|
-
if (this.rx = PropertyFactory.getProp(c,
|
|
7463
|
-
var m, p =
|
|
7461
|
+
}, 1, 0, this), u.rx) {
|
|
7462
|
+
if (this.rx = PropertyFactory.getProp(c, u.rx, 0, degToRads, this), this.ry = PropertyFactory.getProp(c, u.ry, 0, degToRads, this), this.rz = PropertyFactory.getProp(c, u.rz, 0, degToRads, this), u.or.k[0].ti) {
|
|
7463
|
+
var m, p = u.or.k.length;
|
|
7464
7464
|
for (m = 0; m < p; m += 1)
|
|
7465
|
-
|
|
7465
|
+
u.or.k[m].to = null, u.or.k[m].ti = null;
|
|
7466
7466
|
}
|
|
7467
|
-
this.or = PropertyFactory.getProp(c,
|
|
7467
|
+
this.or = PropertyFactory.getProp(c, u.or, 1, degToRads, this), this.or.sh = !0;
|
|
7468
7468
|
} else
|
|
7469
|
-
this.r = PropertyFactory.getProp(c,
|
|
7469
|
+
this.r = PropertyFactory.getProp(c, u.r || {
|
|
7470
7470
|
k: 0
|
|
7471
7471
|
}, 0, degToRads, this);
|
|
7472
|
-
|
|
7472
|
+
u.sk && (this.sk = PropertyFactory.getProp(c, u.sk, 0, degToRads, this), this.sa = PropertyFactory.getProp(c, u.sa, 0, degToRads, this)), this.a = PropertyFactory.getProp(c, u.a || {
|
|
7473
7473
|
k: [0, 0, 0]
|
|
7474
|
-
}, 1, 0, this), this.s = PropertyFactory.getProp(c,
|
|
7474
|
+
}, 1, 0, this), this.s = PropertyFactory.getProp(c, u.s || {
|
|
7475
7475
|
k: [100, 100, 100]
|
|
7476
|
-
}, 1, 0.01, this),
|
|
7476
|
+
}, 1, 0.01, this), u.o ? this.o = PropertyFactory.getProp(c, u.o, 0, 0.01, c) : this.o = {
|
|
7477
7477
|
_mdf: !1,
|
|
7478
7478
|
v: 1
|
|
7479
7479
|
}, this._isDirty = !0, this.dynamicProperties.length || this.getValue(!0);
|
|
@@ -7484,8 +7484,8 @@ function requireLottie() {
|
|
|
7484
7484
|
precalculateMatrix: s,
|
|
7485
7485
|
autoOrient: i
|
|
7486
7486
|
}, extendPrototype([DynamicPropertyContainer], o), o.prototype.addDynamicProperty = a, o.prototype._addDynamicProperty = DynamicPropertyContainer.prototype.addDynamicProperty;
|
|
7487
|
-
function l(c,
|
|
7488
|
-
return new o(c,
|
|
7487
|
+
function l(c, u, d) {
|
|
7488
|
+
return new o(c, u, d);
|
|
7489
7489
|
}
|
|
7490
7490
|
return {
|
|
7491
7491
|
getTransformProperty: l
|
|
@@ -7574,10 +7574,10 @@ function requireLottie() {
|
|
|
7574
7574
|
this.elem.reloadShapes(), o = !0;
|
|
7575
7575
|
}
|
|
7576
7576
|
a = 0;
|
|
7577
|
-
var
|
|
7577
|
+
var u;
|
|
7578
7578
|
for (s = 0; s <= this._groups.length - 1; s += 1) {
|
|
7579
|
-
if (
|
|
7580
|
-
var
|
|
7579
|
+
if (u = a < l, this._groups[s]._render = u, this.changeGroupRender(this._groups[s].it, u), !u) {
|
|
7580
|
+
var d = this.elemsData[s].it, m = d[d.length - 1];
|
|
7581
7581
|
m.transform.op.v !== 0 ? (m.transform.op._mdf = !0, m.transform.op.v = 0) : m.transform.op._mdf = !1;
|
|
7582
7582
|
}
|
|
7583
7583
|
a += 1;
|
|
@@ -7619,9 +7619,9 @@ function requireLottie() {
|
|
|
7619
7619
|
}, RoundCornersModifier.prototype.processPath = function(e, t) {
|
|
7620
7620
|
var n = shapePool.newElement();
|
|
7621
7621
|
n.c = e.c;
|
|
7622
|
-
var s, i = e._length, a, o, l, c,
|
|
7622
|
+
var s, i = e._length, a, o, l, c, u, d, m = 0, p, b, f, v, k, y;
|
|
7623
7623
|
for (s = 0; s < i; s += 1)
|
|
7624
|
-
a = e.v[s], l = e.o[s], o = e.i[s], a[0] === l[0] && a[1] === l[1] && a[0] === o[0] && a[1] === o[1] ? (s === 0 || s === i - 1) && !e.c ? (n.setTripleAt(a[0], a[1], l[0], l[1], o[0], o[1], m), m += 1) : (s === 0 ? c = e.v[i - 1] : c = e.v[s - 1],
|
|
7624
|
+
a = e.v[s], l = e.o[s], o = e.i[s], a[0] === l[0] && a[1] === l[1] && a[0] === o[0] && a[1] === o[1] ? (s === 0 || s === i - 1) && !e.c ? (n.setTripleAt(a[0], a[1], l[0], l[1], o[0], o[1], m), m += 1) : (s === 0 ? c = e.v[i - 1] : c = e.v[s - 1], u = Math.sqrt(Math.pow(a[0] - c[0], 2) + Math.pow(a[1] - c[1], 2)), d = u ? Math.min(u / 2, t) / u : 0, k = a[0] + (c[0] - a[0]) * d, p = k, y = a[1] - (a[1] - c[1]) * d, b = y, f = p - (p - a[0]) * roundCorner, v = b - (b - a[1]) * roundCorner, n.setTripleAt(p, b, f, v, k, y, m), m += 1, s === i - 1 ? c = e.v[0] : c = e.v[s + 1], u = Math.sqrt(Math.pow(a[0] - c[0], 2) + Math.pow(a[1] - c[1], 2)), d = u ? Math.min(u / 2, t) / u : 0, f = a[0] + (c[0] - a[0]) * d, p = f, v = a[1] + (c[1] - a[1]) * d, b = v, k = p - (p - a[0]) * roundCorner, y = b - (b - a[1]) * roundCorner, n.setTripleAt(p, b, f, v, k, y, m), m += 1) : (n.setTripleAt(e.v[s][0], e.v[s][1], e.o[s][0], e.o[s][1], e.i[s][0], e.i[s][1], m), m += 1);
|
|
7625
7625
|
return n;
|
|
7626
7626
|
}, RoundCornersModifier.prototype.processShapes = function(e) {
|
|
7627
7627
|
var t, n, s = this.shapes.length, i, a, o = this.rd.v;
|
|
@@ -7790,8 +7790,8 @@ function requireLottie() {
|
|
|
7790
7790
|
this.getValue = this.processKeys, this.amplitude = PropertyFactory.getProp(e, t.s, 0, null, this), this.frequency = PropertyFactory.getProp(e, t.r, 0, null, this), this.pointsType = PropertyFactory.getProp(e, t.pt, 0, null, this), this._isAnimated = this.amplitude.effectsSequence.length !== 0 || this.frequency.effectsSequence.length !== 0 || this.pointsType.effectsSequence.length !== 0;
|
|
7791
7791
|
};
|
|
7792
7792
|
function setPoint(e, t, n, s, i, a, o) {
|
|
7793
|
-
var l = n - Math.PI / 2, c = n + Math.PI / 2,
|
|
7794
|
-
e.setTripleAt(d, u
|
|
7793
|
+
var l = n - Math.PI / 2, c = n + Math.PI / 2, u = t[0] + Math.cos(n) * s * i, d = t[1] - Math.sin(n) * s * i;
|
|
7794
|
+
e.setTripleAt(u, d, u + Math.cos(l) * a, d - Math.sin(l) * a, u + Math.cos(c) * o, d - Math.sin(c) * o, e.length());
|
|
7795
7795
|
}
|
|
7796
7796
|
function getPerpendicularVector(e, t) {
|
|
7797
7797
|
var n = [t[0] - e[0], t[1] - e[1]], s = -Math.PI * 0.5, i = [Math.cos(s) * n[0] - Math.sin(s) * n[1], Math.sin(s) * n[0] + Math.cos(s) * n[1]];
|
|
@@ -7802,13 +7802,13 @@ function requireLottie() {
|
|
|
7802
7802
|
return Math.atan2(0, 1) - Math.atan2(o[1], o[0]);
|
|
7803
7803
|
}
|
|
7804
7804
|
function zigZagCorner(e, t, n, s, i, a, o) {
|
|
7805
|
-
var l = getProjectingAngle(t, n), c = t.v[n % t._length],
|
|
7805
|
+
var l = getProjectingAngle(t, n), c = t.v[n % t._length], u = t.v[n === 0 ? t._length - 1 : n - 1], d = t.v[(n + 1) % t._length], m = a === 2 ? Math.sqrt(Math.pow(c[0] - u[0], 2) + Math.pow(c[1] - u[1], 2)) : 0, p = a === 2 ? Math.sqrt(Math.pow(c[0] - d[0], 2) + Math.pow(c[1] - d[1], 2)) : 0;
|
|
7806
7806
|
setPoint(e, t.v[n % t._length], l, o, s, p / ((i + 1) * 2), m / ((i + 1) * 2));
|
|
7807
7807
|
}
|
|
7808
7808
|
function zigZagSegment(e, t, n, s, i, a) {
|
|
7809
7809
|
for (var o = 0; o < s; o += 1) {
|
|
7810
|
-
var l = (o + 1) / (s + 1), c = i === 2 ? Math.sqrt(Math.pow(t.points[3][0] - t.points[0][0], 2) + Math.pow(t.points[3][1] - t.points[0][1], 2)) : 0,
|
|
7811
|
-
setPoint(e,
|
|
7810
|
+
var l = (o + 1) / (s + 1), c = i === 2 ? Math.sqrt(Math.pow(t.points[3][0] - t.points[0][0], 2) + Math.pow(t.points[3][1] - t.points[0][1], 2)) : 0, u = t.normalAngle(l), d = t.point(l);
|
|
7811
|
+
setPoint(e, d, u, a, n, c / ((s + 1) * 2), c / ((s + 1) * 2)), a = -a;
|
|
7812
7812
|
}
|
|
7813
7813
|
return a;
|
|
7814
7814
|
}
|
|
@@ -7823,12 +7823,12 @@ function requireLottie() {
|
|
|
7823
7823
|
}, ZigZagModifier.prototype.processShapes = function(e) {
|
|
7824
7824
|
var t, n, s = this.shapes.length, i, a, o = this.amplitude.v, l = Math.max(0, Math.round(this.frequency.v)), c = this.pointsType.v;
|
|
7825
7825
|
if (o !== 0) {
|
|
7826
|
-
var
|
|
7826
|
+
var u, d;
|
|
7827
7827
|
for (n = 0; n < s; n += 1) {
|
|
7828
|
-
if (
|
|
7829
|
-
for (
|
|
7830
|
-
|
|
7831
|
-
|
|
7828
|
+
if (u = this.shapes[n], d = u.localShapeCollection, !(!u.shape._mdf && !this._mdf && !e))
|
|
7829
|
+
for (d.releaseShapes(), u.shape._mdf = !0, t = u.shape.paths.shapes, a = u.shape.paths._length, i = 0; i < a; i += 1)
|
|
7830
|
+
d.addShape(this.processPath(t[i], o, l, c));
|
|
7831
|
+
u.shape.paths = u.localShapeCollection;
|
|
7832
7832
|
}
|
|
7833
7833
|
}
|
|
7834
7834
|
this.dynamicProperties.length || (this._mdf = !1);
|
|
@@ -7840,17 +7840,17 @@ function requireLottie() {
|
|
|
7840
7840
|
function offsetSegment(e, t) {
|
|
7841
7841
|
var n, s, i, a, o, l, c;
|
|
7842
7842
|
c = linearOffset(e.points[0], e.points[1], t), n = c[0], s = c[1], c = linearOffset(e.points[1], e.points[2], t), i = c[0], a = c[1], c = linearOffset(e.points[2], e.points[3], t), o = c[0], l = c[1];
|
|
7843
|
-
var
|
|
7844
|
-
|
|
7845
|
-
var
|
|
7846
|
-
return
|
|
7843
|
+
var u = lineIntersection(n, s, i, a);
|
|
7844
|
+
u === null && (u = s);
|
|
7845
|
+
var d = lineIntersection(o, l, i, a);
|
|
7846
|
+
return d === null && (d = o), new PolynomialBezier(n, u, d, l);
|
|
7847
7847
|
}
|
|
7848
7848
|
function joinLines(e, t, n, s, i) {
|
|
7849
7849
|
var a = t.points[3], o = n.points[0];
|
|
7850
7850
|
if (s === 3 || pointEqual(a, o)) return a;
|
|
7851
7851
|
if (s === 2) {
|
|
7852
|
-
var l = -t.tangentAngle(1), c = -n.tangentAngle(0) + Math.PI,
|
|
7853
|
-
return e.setXYAt(m[0], m[1], "o", e.length() - 1), m = polarOffset(o, c, 2 *
|
|
7852
|
+
var l = -t.tangentAngle(1), c = -n.tangentAngle(0) + Math.PI, u = lineIntersection(a, polarOffset(a, l + Math.PI / 2, 100), o, polarOffset(o, l + Math.PI / 2, 100)), d = u ? pointDistance(u, a) : pointDistance(a, o) / 2, m = polarOffset(a, l, 2 * d * roundCorner);
|
|
7853
|
+
return e.setXYAt(m[0], m[1], "o", e.length() - 1), m = polarOffset(o, c, 2 * d * roundCorner), e.setTripleAt(o[0], o[1], o[0], o[1], m[0], m[1], e.length()), o;
|
|
7854
7854
|
}
|
|
7855
7855
|
var p = pointEqual(a, t.points[2]) ? t.points[0] : t.points[2], b = pointEqual(o, n.points[1]) ? n.points[3] : n.points[1], f = lineIntersection(p, a, o, b);
|
|
7856
7856
|
return f && pointDistance(f, a) < i ? (e.setTripleAt(f[0], f[1], f[0], f[1], f[0], f[1], e.length()), f) : a;
|
|
@@ -7887,29 +7887,29 @@ function requireLottie() {
|
|
|
7887
7887
|
i.c = e.c;
|
|
7888
7888
|
var a = e.length();
|
|
7889
7889
|
e.c || (a -= 1);
|
|
7890
|
-
var o, l, c,
|
|
7890
|
+
var o, l, c, u = [];
|
|
7891
7891
|
for (o = 0; o < a; o += 1)
|
|
7892
|
-
c = PolynomialBezier.shapeSegment(e, o),
|
|
7892
|
+
c = PolynomialBezier.shapeSegment(e, o), u.push(offsetSegmentSplit(c, t));
|
|
7893
7893
|
if (!e.c)
|
|
7894
7894
|
for (o = a - 1; o >= 0; o -= 1)
|
|
7895
|
-
c = PolynomialBezier.shapeSegmentInverted(e, o),
|
|
7896
|
-
|
|
7897
|
-
var
|
|
7898
|
-
for (o = 0; o <
|
|
7899
|
-
var p =
|
|
7900
|
-
for (m && (
|
|
7901
|
-
c = p[l],
|
|
7902
|
-
}
|
|
7903
|
-
return
|
|
7895
|
+
c = PolynomialBezier.shapeSegmentInverted(e, o), u.push(offsetSegmentSplit(c, t));
|
|
7896
|
+
u = pruneIntersections(u);
|
|
7897
|
+
var d = null, m = null;
|
|
7898
|
+
for (o = 0; o < u.length; o += 1) {
|
|
7899
|
+
var p = u[o];
|
|
7900
|
+
for (m && (d = joinLines(i, m, p[0], n, s)), m = p[p.length - 1], l = 0; l < p.length; l += 1)
|
|
7901
|
+
c = p[l], d && pointEqual(c.points[0], d) ? i.setXYAt(c.points[1][0], c.points[1][1], "o", i.length() - 1) : i.setTripleAt(c.points[0][0], c.points[0][1], c.points[1][0], c.points[1][1], c.points[0][0], c.points[0][1], i.length()), i.setTripleAt(c.points[3][0], c.points[3][1], c.points[3][0], c.points[3][1], c.points[2][0], c.points[2][1], i.length()), d = c.points[3];
|
|
7902
|
+
}
|
|
7903
|
+
return u.length && joinLines(i, m, u[0][0], n, s), i;
|
|
7904
7904
|
}, OffsetPathModifier.prototype.processShapes = function(e) {
|
|
7905
7905
|
var t, n, s = this.shapes.length, i, a, o = this.amount.v, l = this.miterLimit.v, c = this.lineJoin;
|
|
7906
7906
|
if (o !== 0) {
|
|
7907
|
-
var
|
|
7907
|
+
var u, d;
|
|
7908
7908
|
for (n = 0; n < s; n += 1) {
|
|
7909
|
-
if (
|
|
7910
|
-
for (
|
|
7911
|
-
|
|
7912
|
-
|
|
7909
|
+
if (u = this.shapes[n], d = u.localShapeCollection, !(!u.shape._mdf && !this._mdf && !e))
|
|
7910
|
+
for (d.releaseShapes(), u.shape._mdf = !0, t = u.shape.paths.shapes, a = u.shape.paths._length, i = 0; i < a; i += 1)
|
|
7911
|
+
d.addShape(this.processPath(t[i], o, c, l));
|
|
7912
|
+
u.shape.paths = u.localShapeCollection;
|
|
7913
7913
|
}
|
|
7914
7914
|
}
|
|
7915
7915
|
this.dynamicProperties.length || (this._mdf = !1);
|
|
@@ -7953,7 +7953,7 @@ function requireLottie() {
|
|
|
7953
7953
|
}
|
|
7954
7954
|
}, n = [];
|
|
7955
7955
|
n = n.concat([2304, 2305, 2306, 2307, 2362, 2363, 2364, 2364, 2366, 2367, 2368, 2369, 2370, 2371, 2372, 2373, 2374, 2375, 2376, 2377, 2378, 2379, 2380, 2381, 2382, 2383, 2387, 2388, 2389, 2390, 2391, 2402, 2403]);
|
|
7956
|
-
var s = 127988, i = 917631, a = 917601, o = 917626, l = 65039, c = 8205,
|
|
7956
|
+
var s = 127988, i = 917631, a = 917601, o = 917626, l = 65039, c = 8205, u = 127462, d = 127487, m = ["d83cdffb", "d83cdffc", "d83cdffd", "d83cdffe", "d83cdfff"];
|
|
7957
7957
|
function p(A) {
|
|
7958
7958
|
var F = A.split(","), w, E = F.length, B = [];
|
|
7959
7959
|
for (w = 0; w < E; w += 1)
|
|
@@ -8097,7 +8097,7 @@ function requireLottie() {
|
|
|
8097
8097
|
}
|
|
8098
8098
|
function M(A) {
|
|
8099
8099
|
var F = S(A);
|
|
8100
|
-
return F >=
|
|
8100
|
+
return F >= u && F <= d;
|
|
8101
8101
|
}
|
|
8102
8102
|
function I(A) {
|
|
8103
8103
|
return M(A.substr(0, 2)) && M(A.substr(2, 2));
|
|
@@ -8590,9 +8590,9 @@ function requireLottie() {
|
|
|
8590
8590
|
this.data = e, this.element = t, this.globalData = n, this.storedData = [], this.masksProperties = this.data.masksProperties || [], this.maskElement = null;
|
|
8591
8591
|
var s = this.globalData.defs, i, a = this.masksProperties ? this.masksProperties.length : 0;
|
|
8592
8592
|
this.viewData = createSizedArray(a), this.solidPath = "";
|
|
8593
|
-
var o, l = this.masksProperties, c = 0,
|
|
8593
|
+
var o, l = this.masksProperties, c = 0, u = [], d, m, p = createElementID(), b, f, v, k, y = "clipPath", x = "clip-path";
|
|
8594
8594
|
for (i = 0; i < a; i += 1)
|
|
8595
|
-
if ((l[i].mode !== "a" && l[i].mode !== "n" || l[i].inv || l[i].o.k !== 100 || l[i].o.x) && (y = "mask", x = "mask"), (l[i].mode === "s" || l[i].mode === "i") && c === 0 ? (b = createNS("rect"), b.setAttribute("fill", "#ffffff"), b.setAttribute("width", this.element.comp.data.w || 0), b.setAttribute("height", this.element.comp.data.h || 0),
|
|
8595
|
+
if ((l[i].mode !== "a" && l[i].mode !== "n" || l[i].inv || l[i].o.k !== 100 || l[i].o.x) && (y = "mask", x = "mask"), (l[i].mode === "s" || l[i].mode === "i") && c === 0 ? (b = createNS("rect"), b.setAttribute("fill", "#ffffff"), b.setAttribute("width", this.element.comp.data.w || 0), b.setAttribute("height", this.element.comp.data.h || 0), u.push(b)) : b = null, o = createNS("path"), l[i].mode === "n")
|
|
8596
8596
|
this.viewData[i] = {
|
|
8597
8597
|
op: PropertyFactory.getProp(this.element, l[i].o, 0, 0.01, this.element),
|
|
8598
8598
|
prop: ShapePropertyFactory.getShapeProp(this.element, l[i], 3),
|
|
@@ -8611,14 +8611,14 @@ function requireLottie() {
|
|
|
8611
8611
|
filterId: g,
|
|
8612
8612
|
lastRadius: 0
|
|
8613
8613
|
}, l[i].mode === "i") {
|
|
8614
|
-
m =
|
|
8614
|
+
m = u.length;
|
|
8615
8615
|
var C = createNS("g");
|
|
8616
|
-
for (
|
|
8617
|
-
C.appendChild(d
|
|
8616
|
+
for (d = 0; d < m; d += 1)
|
|
8617
|
+
C.appendChild(u[d]);
|
|
8618
8618
|
var S = createNS("mask");
|
|
8619
|
-
S.setAttribute("mask-type", "alpha"), S.setAttribute("id", p + "_" + c), S.appendChild(o), s.appendChild(S), C.setAttribute("mask", "url(" + getLocationHref() + "#" + p + "_" + c + ")"),
|
|
8619
|
+
S.setAttribute("mask-type", "alpha"), S.setAttribute("id", p + "_" + c), S.appendChild(o), s.appendChild(S), C.setAttribute("mask", "url(" + getLocationHref() + "#" + p + "_" + c + ")"), u.length = 0, u.push(C);
|
|
8620
8620
|
} else
|
|
8621
|
-
|
|
8621
|
+
u.push(o);
|
|
8622
8622
|
l[i].inv && !this.solidPath && (this.solidPath = this.createLayerSolidPath()), this.viewData[i] = {
|
|
8623
8623
|
elem: o,
|
|
8624
8624
|
lastPath: "",
|
|
@@ -8627,8 +8627,8 @@ function requireLottie() {
|
|
|
8627
8627
|
invRect: b
|
|
8628
8628
|
}, this.viewData[i].prop.k || this.drawPath(l[i], this.viewData[i].prop.v, this.viewData[i]);
|
|
8629
8629
|
}
|
|
8630
|
-
for (this.maskElement = createNS(y), a =
|
|
8631
|
-
this.maskElement.appendChild(
|
|
8630
|
+
for (this.maskElement = createNS(y), a = u.length, i = 0; i < a; i += 1)
|
|
8631
|
+
this.maskElement.appendChild(u[i]);
|
|
8632
8632
|
c > 0 && (this.maskElement.setAttribute("id", p), this.element.maskedElement.setAttribute(x, "url(" + getLocationHref() + "#" + p + ")"), s.appendChild(this.maskElement)), this.viewData.length && this.element.addRenderableComponent(this);
|
|
8633
8633
|
}
|
|
8634
8634
|
MaskElement.prototype.getMaskProperty = function(e) {
|
|
@@ -8684,8 +8684,8 @@ function requireLottie() {
|
|
|
8684
8684
|
l = null;
|
|
8685
8685
|
var c = e.data.ef[t].ty;
|
|
8686
8686
|
if (registeredEffects$1[c]) {
|
|
8687
|
-
var
|
|
8688
|
-
l = new
|
|
8687
|
+
var u = registeredEffects$1[c].effect;
|
|
8688
|
+
l = new u(a, e.effectsManager.effectElements[t], e, idPrefix + o, n), n = idPrefix + o, registeredEffects$1[c].countsAsEffect && (o += 1);
|
|
8689
8689
|
}
|
|
8690
8690
|
l && this.filters.push(l);
|
|
8691
8691
|
}
|
|
@@ -8754,14 +8754,14 @@ function requireLottie() {
|
|
|
8754
8754
|
} else if (t === 2) {
|
|
8755
8755
|
var c = createNS("mask");
|
|
8756
8756
|
c.setAttribute("id", n), c.setAttribute("mask-type", "alpha");
|
|
8757
|
-
var
|
|
8758
|
-
c.appendChild(
|
|
8759
|
-
var
|
|
8760
|
-
|
|
8757
|
+
var u = createNS("g");
|
|
8758
|
+
c.appendChild(u), s = createElementID(), i = filtersFactory.createFilter(s);
|
|
8759
|
+
var d = createNS("feComponentTransfer");
|
|
8760
|
+
d.setAttribute("in", "SourceGraphic"), i.appendChild(d);
|
|
8761
8761
|
var m = createNS("feFuncA");
|
|
8762
|
-
m.setAttribute("type", "table"), m.setAttribute("tableValues", "1.0 0.0"),
|
|
8762
|
+
m.setAttribute("type", "table"), m.setAttribute("tableValues", "1.0 0.0"), d.appendChild(m), this.globalData.defs.appendChild(i);
|
|
8763
8763
|
var p = createNS("rect");
|
|
8764
|
-
p.setAttribute("width", this.comp.data.w), p.setAttribute("height", this.comp.data.h), p.setAttribute("x", "0"), p.setAttribute("y", "0"), p.setAttribute("fill", "#ffffff"), p.setAttribute("opacity", "0"),
|
|
8764
|
+
p.setAttribute("width", this.comp.data.w), p.setAttribute("height", this.comp.data.h), p.setAttribute("x", "0"), p.setAttribute("y", "0"), p.setAttribute("fill", "#ffffff"), p.setAttribute("opacity", "0"), u.setAttribute("filter", "url(" + getLocationHref() + "#" + s + ")"), u.appendChild(p), a = createNS("use"), a.setAttributeNS("http://www.w3.org/1999/xlink", "href", "#" + this.layerId), u.appendChild(a), featureSupport.maskType || (c.setAttribute("mask-type", "luminance"), i.appendChild(filtersFactory.createAlphaToLuminanceFilter()), o = createNS("g"), u.appendChild(p), o.appendChild(this.layerElement), u.appendChild(o)), this.globalData.defs.appendChild(c);
|
|
8765
8765
|
}
|
|
8766
8766
|
this.matteMasks[t] = n;
|
|
8767
8767
|
}
|
|
@@ -9021,12 +9021,12 @@ function requireLottie() {
|
|
|
9021
9021
|
a.appendChild(o);
|
|
9022
9022
|
var l = createElementID(), c = createElementID();
|
|
9023
9023
|
a.setAttribute("id", c);
|
|
9024
|
-
var
|
|
9025
|
-
|
|
9026
|
-
var
|
|
9024
|
+
var u = createNS(e.t === 1 ? "linearGradient" : "radialGradient");
|
|
9025
|
+
u.setAttribute("id", l), u.setAttribute("spreadMethod", "pad"), u.setAttribute("gradientUnits", "userSpaceOnUse"), i = e.g.k.k[0].s ? e.g.k.k[0].s.length : e.g.k.k.length;
|
|
9026
|
+
var d = this.stops;
|
|
9027
9027
|
for (s = e.g.p * 4; s < i; s += 2)
|
|
9028
|
-
n = createNS("stop"), n.setAttribute("stop-color", "rgb(255,255,255)"),
|
|
9029
|
-
o.setAttribute(e.ty === "gf" ? "fill" : "stroke", "url(" + getLocationHref() + "#" + l + ")"), e.ty === "gs" && (o.setAttribute("stroke-linecap", lineCapEnum[e.lc || 2]), o.setAttribute("stroke-linejoin", lineJoinEnum[e.lj || 2]), e.lj === 1 && o.setAttribute("stroke-miterlimit", e.ml)), this.of =
|
|
9028
|
+
n = createNS("stop"), n.setAttribute("stop-color", "rgb(255,255,255)"), u.appendChild(n), d.push(n);
|
|
9029
|
+
o.setAttribute(e.ty === "gf" ? "fill" : "stroke", "url(" + getLocationHref() + "#" + l + ")"), e.ty === "gs" && (o.setAttribute("stroke-linecap", lineCapEnum[e.lc || 2]), o.setAttribute("stroke-linejoin", lineJoinEnum[e.lj || 2]), e.lj === 1 && o.setAttribute("stroke-miterlimit", e.ml)), this.of = u, this.ms = a, this.ost = d, this.maskId = c, t.msElem = o;
|
|
9030
9030
|
}
|
|
9031
9031
|
}, extendPrototype([DynamicPropertyContainer], SVGGradientFillStyleData);
|
|
9032
9032
|
function SVGGradientStrokeStyleData(e, t, n) {
|
|
@@ -9046,10 +9046,10 @@ function requireLottie() {
|
|
|
9046
9046
|
var buildShapeString = function(t, n, s, i) {
|
|
9047
9047
|
if (n === 0)
|
|
9048
9048
|
return "";
|
|
9049
|
-
var a = t.o, o = t.i, l = t.v, c,
|
|
9049
|
+
var a = t.o, o = t.i, l = t.v, c, u = " M" + i.applyToPointStringified(l[0][0], l[0][1]);
|
|
9050
9050
|
for (c = 1; c < n; c += 1)
|
|
9051
|
-
|
|
9052
|
-
return s && n && (
|
|
9051
|
+
u += " C" + i.applyToPointStringified(a[c - 1][0], a[c - 1][1]) + " " + i.applyToPointStringified(o[c][0], o[c][1]) + " " + i.applyToPointStringified(l[c][0], l[c][1]);
|
|
9052
|
+
return s && n && (u += " C" + i.applyToPointStringified(a[c - 1][0], a[c - 1][1]) + " " + i.applyToPointStringified(o[0][0], o[0][1]) + " " + i.applyToPointStringified(l[0][0], l[0][1]), u += "z"), u;
|
|
9053
9053
|
}, SVGElementsRenderer = (function() {
|
|
9054
9054
|
var e = new Matrix(), t = new Matrix(), n = {
|
|
9055
9055
|
createRenderFunction: s
|
|
@@ -9059,11 +9059,11 @@ function requireLottie() {
|
|
|
9059
9059
|
case "fl":
|
|
9060
9060
|
return l;
|
|
9061
9061
|
case "gf":
|
|
9062
|
-
return
|
|
9062
|
+
return u;
|
|
9063
9063
|
case "gs":
|
|
9064
9064
|
return c;
|
|
9065
9065
|
case "st":
|
|
9066
|
-
return
|
|
9066
|
+
return d;
|
|
9067
9067
|
case "sh":
|
|
9068
9068
|
case "el":
|
|
9069
9069
|
case "rc":
|
|
@@ -9107,9 +9107,9 @@ function requireLottie() {
|
|
|
9107
9107
|
(p.c._mdf || b) && f.pElem.setAttribute("fill", "rgb(" + bmFloor(p.c.v[0]) + "," + bmFloor(p.c.v[1]) + "," + bmFloor(p.c.v[2]) + ")"), (p.o._mdf || b) && f.pElem.setAttribute("fill-opacity", p.o.v);
|
|
9108
9108
|
}
|
|
9109
9109
|
function c(m, p, b) {
|
|
9110
|
-
|
|
9110
|
+
u(m, p, b), d(m, p, b);
|
|
9111
9111
|
}
|
|
9112
|
-
function
|
|
9112
|
+
function u(m, p, b) {
|
|
9113
9113
|
var f = p.gf, v = p.g._hasOpacity, k = p.s.v, y = p.e.v;
|
|
9114
9114
|
if (p.o._mdf || b) {
|
|
9115
9115
|
var x = m.ty === "gf" ? "fill-opacity" : "stroke-opacity";
|
|
@@ -9144,7 +9144,7 @@ function requireLottie() {
|
|
|
9144
9144
|
}
|
|
9145
9145
|
}
|
|
9146
9146
|
}
|
|
9147
|
-
function
|
|
9147
|
+
function d(m, p, b) {
|
|
9148
9148
|
var f = p.style, v = p.d;
|
|
9149
9149
|
v && (v._mdf || b) && v.dashStr && (f.pElem.setAttribute("stroke-dasharray", v.dashStr), f.pElem.setAttribute("stroke-dashoffset", v.dashoffset[0])), p.c && (p.c._mdf || b) && f.pElem.setAttribute("stroke", "rgb(" + bmFloor(p.c.v[0]) + "," + bmFloor(p.c.v[1]) + "," + bmFloor(p.c.v[2]) + ")"), (p.o._mdf || b) && f.pElem.setAttribute("stroke-opacity", p.o.v), (p.w._mdf || b) && (f.pElem.setAttribute("stroke-width", p.w.v), f.msElem && f.msElem.setAttribute("stroke-width", p.w.v));
|
|
9150
9150
|
}
|
|
@@ -9214,23 +9214,23 @@ function requireLottie() {
|
|
|
9214
9214
|
this.dynamicProperties[e].getValue();
|
|
9215
9215
|
this.renderModifiers();
|
|
9216
9216
|
}, SVGShapeElement.prototype.searchShapes = function(e, t, n, s, i, a, o) {
|
|
9217
|
-
var l = [].concat(a), c,
|
|
9218
|
-
for (c =
|
|
9217
|
+
var l = [].concat(a), c, u = e.length - 1, d, m, p = [], b = [], f, v, k;
|
|
9218
|
+
for (c = u; c >= 0; c -= 1) {
|
|
9219
9219
|
if (k = this.searchProcessedElement(e[c]), k ? t[c] = n[k - 1] : e[c]._render = o, e[c].ty === "fl" || e[c].ty === "st" || e[c].ty === "gf" || e[c].ty === "gs" || e[c].ty === "no")
|
|
9220
9220
|
k ? t[c].style.closed = e[c].hd : t[c] = this.createStyleElement(e[c], i), e[c]._render && t[c].style.pElem.parentNode !== s && s.appendChild(t[c].style.pElem), p.push(t[c].style);
|
|
9221
9221
|
else if (e[c].ty === "gr") {
|
|
9222
9222
|
if (!k)
|
|
9223
9223
|
t[c] = this.createGroupElement(e[c]);
|
|
9224
9224
|
else
|
|
9225
|
-
for (m = t[c].it.length,
|
|
9226
|
-
t[c].prevViewData[
|
|
9225
|
+
for (m = t[c].it.length, d = 0; d < m; d += 1)
|
|
9226
|
+
t[c].prevViewData[d] = t[c].it[d];
|
|
9227
9227
|
this.searchShapes(e[c].it, t[c].it, t[c].prevViewData, t[c].gr, i + 1, l, o), e[c]._render && t[c].gr.parentNode !== s && s.appendChild(t[c].gr);
|
|
9228
9228
|
} else e[c].ty === "tr" ? (k || (t[c] = this.createTransformElement(e[c], s)), f = t[c].transform, l.push(f)) : e[c].ty === "sh" || e[c].ty === "rc" || e[c].ty === "el" || e[c].ty === "sr" ? (k || (t[c] = this.createShapeElement(e[c], l, i)), this.setElementStyles(t[c])) : e[c].ty === "tm" || e[c].ty === "rd" || e[c].ty === "ms" || e[c].ty === "pb" || e[c].ty === "zz" || e[c].ty === "op" ? (k ? (v = t[c], v.closed = !1) : (v = ShapeModifiers.getModifier(e[c].ty), v.init(this, e[c]), t[c] = v, this.shapeModifiers.push(v)), b.push(v)) : e[c].ty === "rp" && (k ? (v = t[c], v.closed = !0) : (v = ShapeModifiers.getModifier(e[c].ty), t[c] = v, v.init(this, e, c, t), this.shapeModifiers.push(v), o = !1), b.push(v));
|
|
9229
9229
|
this.addProcessedElement(e[c], c + 1);
|
|
9230
9230
|
}
|
|
9231
|
-
for (
|
|
9231
|
+
for (u = p.length, c = 0; c < u; c += 1)
|
|
9232
9232
|
p[c].closed = !0;
|
|
9233
|
-
for (
|
|
9233
|
+
for (u = b.length, c = 0; c < u; c += 1)
|
|
9234
9234
|
b[c].closed = !0;
|
|
9235
9235
|
}, SVGShapeElement.prototype.renderInnerContent = function() {
|
|
9236
9236
|
this.renderModifiers();
|
|
@@ -9329,7 +9329,7 @@ function requireLottie() {
|
|
|
9329
9329
|
return t;
|
|
9330
9330
|
}, TextProperty.prototype.completeTextData = function(e) {
|
|
9331
9331
|
e.__complete = !0;
|
|
9332
|
-
var t = this.elem.globalData.fontManager, n = this.data, s = [], i, a, o, l = 0, c,
|
|
9332
|
+
var t = this.elem.globalData.fontManager, n = this.data, s = [], i, a, o, l = 0, c, u = n.m.g, d = 0, m = 0, p = 0, b = [], f = 0, v = 0, k, y, x = t.getFontByName(e.f), g, C = 0, S = getFontProperties(x);
|
|
9333
9333
|
e.fWeight = S.weight, e.fStyle = S.style, e.finalSize = e.s, e.finalText = this.buildFinalText(e.t), a = e.finalText.length, e.finalLineHeight = e.lh;
|
|
9334
9334
|
var _ = e.tr / 1e3 * e.finalSize, T;
|
|
9335
9335
|
if (e.sz)
|
|
@@ -9346,23 +9346,23 @@ function requireLottie() {
|
|
|
9346
9346
|
if (o = !1, N = e.finalText[i], T = N.charCodeAt(0), T === 13 || T === 3 ? (z = 0, b.push(f), v = f > v ? f : v, f = -2 * _, c = "", o = !0, p += 1) : c = N, t.chars ? (g = t.getCharData(N, x.fStyle, t.getFontByName(e.f).fFamily), C = o ? 0 : g.w * e.finalSize / 100) : C = t.measureText(c, e.f, e.finalSize), N === " " ? z += C + _ : (f += C + _ + z, z = 0), s.push({
|
|
9347
9347
|
l: C,
|
|
9348
9348
|
an: C,
|
|
9349
|
-
add:
|
|
9349
|
+
add: d,
|
|
9350
9350
|
n: o,
|
|
9351
9351
|
anIndexes: [],
|
|
9352
9352
|
val: c,
|
|
9353
9353
|
line: p,
|
|
9354
9354
|
animatorJustifyOffset: 0
|
|
9355
|
-
}),
|
|
9356
|
-
if (
|
|
9357
|
-
for ((c === "" || c === " ") && (
|
|
9358
|
-
s[m].an =
|
|
9359
|
-
l += 1,
|
|
9355
|
+
}), u == 2) {
|
|
9356
|
+
if (d += C, c === "" || c === " " || i === a - 1) {
|
|
9357
|
+
for ((c === "" || c === " ") && (d -= C); m <= i; )
|
|
9358
|
+
s[m].an = d, s[m].ind = l, s[m].extra = C, m += 1;
|
|
9359
|
+
l += 1, d = 0;
|
|
9360
9360
|
}
|
|
9361
|
-
} else if (
|
|
9362
|
-
if (
|
|
9363
|
-
for (c === "" && (
|
|
9364
|
-
s[m].an =
|
|
9365
|
-
|
|
9361
|
+
} else if (u == 3) {
|
|
9362
|
+
if (d += C, c === "" || i === a - 1) {
|
|
9363
|
+
for (c === "" && (d -= C); m <= i; )
|
|
9364
|
+
s[m].an = d, s[m].ind = l, s[m].extra = C, m += 1;
|
|
9365
|
+
d = 0, l += 1;
|
|
9366
9366
|
}
|
|
9367
9367
|
} else
|
|
9368
9368
|
s[l].ind = l, s[l].extra = 0, l += 1;
|
|
@@ -9425,9 +9425,9 @@ function requireLottie() {
|
|
|
9425
9425
|
s.prototype = {
|
|
9426
9426
|
getMult: function(o) {
|
|
9427
9427
|
this._currentTextLength !== this.elem.textProperty.currentData.l.length && this.getValue();
|
|
9428
|
-
var l = 0, c = 0,
|
|
9429
|
-
this.ne.v > 0 ? l = this.ne.v / 100 : c = -this.ne.v / 100, this.xe.v > 0 ?
|
|
9430
|
-
var m = BezierFactory.getBezierEasing(l, c,
|
|
9428
|
+
var l = 0, c = 0, u = 1, d = 1;
|
|
9429
|
+
this.ne.v > 0 ? l = this.ne.v / 100 : c = -this.ne.v / 100, this.xe.v > 0 ? u = 1 - this.xe.v / 100 : d = 1 + this.xe.v / 100;
|
|
9430
|
+
var m = BezierFactory.getBezierEasing(l, c, u, d).get, p = 0, b = this.finalS, f = this.finalE, v = this.data.sh;
|
|
9431
9431
|
if (v === 2)
|
|
9432
9432
|
f === b ? p = o >= f ? 1 : 0 : p = e(0, t(0.5 / (f - b) + (o - b) / (f - b), 1)), p = m(p);
|
|
9433
9433
|
else if (v === 3)
|
|
@@ -9455,12 +9455,12 @@ function requireLottie() {
|
|
|
9455
9455
|
},
|
|
9456
9456
|
getValue: function(o) {
|
|
9457
9457
|
this.iterateDynamicProperties(), this._mdf = o || this._mdf, this._currentTextLength = this.elem.textProperty.currentData.l.length || 0, o && this.data.r === 2 && (this.e.v = this._currentTextLength);
|
|
9458
|
-
var l = this.data.r === 2 ? 1 : 100 / this.data.totalChars, c = this.o.v / l,
|
|
9459
|
-
if (
|
|
9460
|
-
var m =
|
|
9461
|
-
|
|
9458
|
+
var l = this.data.r === 2 ? 1 : 100 / this.data.totalChars, c = this.o.v / l, u = this.s.v / l + c, d = this.e.v / l + c;
|
|
9459
|
+
if (u > d) {
|
|
9460
|
+
var m = u;
|
|
9461
|
+
u = d, d = m;
|
|
9462
9462
|
}
|
|
9463
|
-
this.finalS =
|
|
9463
|
+
this.finalS = u, this.finalE = d;
|
|
9464
9464
|
}
|
|
9465
9465
|
}, extendPrototype([DynamicPropertyContainer], s);
|
|
9466
9466
|
function i(a, o, l) {
|
|
@@ -9513,7 +9513,7 @@ function requireLottie() {
|
|
|
9513
9513
|
}, TextAnimatorProperty.prototype.getMeasures = function(e, t) {
|
|
9514
9514
|
if (this.lettersChangedFlag = t, !(!this._mdf && !this._isFirstFrame && !t && (!this._hasMaskedPath || !this._pathData.m._mdf))) {
|
|
9515
9515
|
this._isFirstFrame = !1;
|
|
9516
|
-
var n = this._moreOptions.alignment.v, s = this._animatorsData, i = this._textData, a = this.mHelper, o = this._renderType, l = this.renderedLetters.length, c,
|
|
9516
|
+
var n = this._moreOptions.alignment.v, s = this._animatorsData, i = this._textData, a = this.mHelper, o = this._renderType, l = this.renderedLetters.length, c, u, d, m, p = e.l, b, f, v, k, y, x, g, C, S, _, T, P, M, I, $;
|
|
9517
9517
|
if (this._hasMaskedPath) {
|
|
9518
9518
|
if ($ = this._pathData.m, !this._pathData.n || this._pathData._mdf) {
|
|
9519
9519
|
var D = $.v;
|
|
@@ -9522,67 +9522,67 @@ function requireLottie() {
|
|
|
9522
9522
|
segments: []
|
|
9523
9523
|
}, m = D._length - 1;
|
|
9524
9524
|
var L;
|
|
9525
|
-
for (P = 0,
|
|
9526
|
-
L = bez.buildBezierData(D.v[
|
|
9527
|
-
|
|
9525
|
+
for (P = 0, d = 0; d < m; d += 1)
|
|
9526
|
+
L = bez.buildBezierData(D.v[d], D.v[d + 1], [D.o[d][0] - D.v[d][0], D.o[d][1] - D.v[d][1]], [D.i[d + 1][0] - D.v[d + 1][0], D.i[d + 1][1] - D.v[d + 1][1]]), b.tLength += L.segmentLength, b.segments.push(L), P += L.segmentLength;
|
|
9527
|
+
d = m, $.v.c && (L = bez.buildBezierData(D.v[d], D.v[0], [D.o[d][0] - D.v[d][0], D.o[d][1] - D.v[d][1]], [D.i[0][0] - D.v[0][0], D.i[0][1] - D.v[0][1]]), b.tLength += L.segmentLength, b.segments.push(L), P += L.segmentLength), this._pathData.pi = b;
|
|
9528
9528
|
}
|
|
9529
9529
|
if (b = this._pathData.pi, f = this._pathData.f.v, g = 0, x = 1, k = 0, y = !0, _ = b.segments, f < 0 && $.v.c)
|
|
9530
9530
|
for (b.tLength < Math.abs(f) && (f = -Math.abs(f) % b.tLength), g = _.length - 1, S = _[g].points, x = S.length - 1; f < 0; )
|
|
9531
9531
|
f += S[x].partialLength, x -= 1, x < 0 && (g -= 1, S = _[g].points, x = S.length - 1);
|
|
9532
9532
|
S = _[g].points, C = S[x - 1], v = S[x], T = v.partialLength;
|
|
9533
9533
|
}
|
|
9534
|
-
m = p.length, c = 0,
|
|
9534
|
+
m = p.length, c = 0, u = 0;
|
|
9535
9535
|
var z = e.finalSize * 1.2 * 0.714, N = !0, A, F, w, E, B;
|
|
9536
9536
|
E = s.length;
|
|
9537
9537
|
var V, G = -1, H, j, W, Y = f, q = g, ee = x, re = -1, J, Z, Q, K, U, le, fe, ce, oe = "", ue = this.defaultPropsArray, de;
|
|
9538
9538
|
if (e.j === 2 || e.j === 1) {
|
|
9539
9539
|
var se = 0, he = 0, pe = e.j === 2 ? -0.5 : -1, ie = 0, ve = !0;
|
|
9540
|
-
for (
|
|
9541
|
-
if (p[
|
|
9542
|
-
for (se && (se += he); ie <
|
|
9540
|
+
for (d = 0; d < m; d += 1)
|
|
9541
|
+
if (p[d].n) {
|
|
9542
|
+
for (se && (se += he); ie < d; )
|
|
9543
9543
|
p[ie].animatorJustifyOffset = se, ie += 1;
|
|
9544
9544
|
se = 0, ve = !0;
|
|
9545
9545
|
} else {
|
|
9546
9546
|
for (w = 0; w < E; w += 1)
|
|
9547
|
-
A = s[w].a, A.t.propType && (ve && e.j === 2 && (he += A.t.v * pe), F = s[w].s, V = F.getMult(p[
|
|
9547
|
+
A = s[w].a, A.t.propType && (ve && e.j === 2 && (he += A.t.v * pe), F = s[w].s, V = F.getMult(p[d].anIndexes[w], i.a[w].s.totalChars), V.length ? se += A.t.v * V[0] * pe : se += A.t.v * V * pe);
|
|
9548
9548
|
ve = !1;
|
|
9549
9549
|
}
|
|
9550
|
-
for (se && (se += he); ie <
|
|
9550
|
+
for (se && (se += he); ie < d; )
|
|
9551
9551
|
p[ie].animatorJustifyOffset = se, ie += 1;
|
|
9552
9552
|
}
|
|
9553
|
-
for (
|
|
9554
|
-
if (a.reset(), J = 1, p[
|
|
9555
|
-
c = 0,
|
|
9553
|
+
for (d = 0; d < m; d += 1) {
|
|
9554
|
+
if (a.reset(), J = 1, p[d].n)
|
|
9555
|
+
c = 0, u += e.yOffset, u += N ? 1 : 0, f = Y, N = !1, this._hasMaskedPath && (g = q, x = ee, S = _[g].points, C = S[x - 1], v = S[x], T = v.partialLength, k = 0), oe = "", ce = "", le = "", de = "", ue = this.defaultPropsArray;
|
|
9556
9556
|
else {
|
|
9557
9557
|
if (this._hasMaskedPath) {
|
|
9558
|
-
if (re !== p[
|
|
9558
|
+
if (re !== p[d].line) {
|
|
9559
9559
|
switch (e.j) {
|
|
9560
9560
|
case 1:
|
|
9561
|
-
f += P - e.lineWidths[p[
|
|
9561
|
+
f += P - e.lineWidths[p[d].line];
|
|
9562
9562
|
break;
|
|
9563
9563
|
case 2:
|
|
9564
|
-
f += (P - e.lineWidths[p[
|
|
9564
|
+
f += (P - e.lineWidths[p[d].line]) / 2;
|
|
9565
9565
|
break;
|
|
9566
9566
|
}
|
|
9567
|
-
re = p[
|
|
9567
|
+
re = p[d].line;
|
|
9568
9568
|
}
|
|
9569
|
-
G !== p[
|
|
9569
|
+
G !== p[d].ind && (p[G] && (f += p[G].extra), f += p[d].an / 2, G = p[d].ind), f += n[0] * p[d].an * 5e-3;
|
|
9570
9570
|
var ae = 0;
|
|
9571
9571
|
for (w = 0; w < E; w += 1)
|
|
9572
|
-
A = s[w].a, A.p.propType && (F = s[w].s, V = F.getMult(p[
|
|
9572
|
+
A = s[w].a, A.p.propType && (F = s[w].s, V = F.getMult(p[d].anIndexes[w], i.a[w].s.totalChars), V.length ? ae += A.p.v[0] * V[0] : ae += A.p.v[0] * V), A.a.propType && (F = s[w].s, V = F.getMult(p[d].anIndexes[w], i.a[w].s.totalChars), V.length ? ae += A.a.v[0] * V[0] : ae += A.a.v[0] * V);
|
|
9573
9573
|
for (y = !0, this._pathData.a.v && (f = p[0].an * 0.5 + (P - this._pathData.f.v - p[0].an * 0.5 - p[p.length - 1].an * 0.5) * G / (m - 1), f += this._pathData.f.v); y; )
|
|
9574
|
-
k + T >= f + ae || !S ? (M = (f + ae - k) / v.partialLength, j = C.point[0] + (v.point[0] - C.point[0]) * M, W = C.point[1] + (v.point[1] - C.point[1]) * M, a.translate(-n[0] * p[
|
|
9575
|
-
H = p[
|
|
9574
|
+
k + T >= f + ae || !S ? (M = (f + ae - k) / v.partialLength, j = C.point[0] + (v.point[0] - C.point[0]) * M, W = C.point[1] + (v.point[1] - C.point[1]) * M, a.translate(-n[0] * p[d].an * 5e-3, -(n[1] * z) * 0.01), y = !1) : S && (k += v.partialLength, x += 1, x >= S.length && (x = 0, g += 1, _[g] ? S = _[g].points : $.v.c ? (x = 0, g = 0, S = _[g].points) : (k -= v.partialLength, S = null)), S && (C = v, v = S[x], T = v.partialLength));
|
|
9575
|
+
H = p[d].an / 2 - p[d].add, a.translate(-H, 0, 0);
|
|
9576
9576
|
} else
|
|
9577
|
-
H = p[
|
|
9577
|
+
H = p[d].an / 2 - p[d].add, a.translate(-H, 0, 0), a.translate(-n[0] * p[d].an * 5e-3, -n[1] * z * 0.01, 0);
|
|
9578
9578
|
for (w = 0; w < E; w += 1)
|
|
9579
|
-
A = s[w].a, A.t.propType && (F = s[w].s, V = F.getMult(p[
|
|
9579
|
+
A = s[w].a, A.t.propType && (F = s[w].s, V = F.getMult(p[d].anIndexes[w], i.a[w].s.totalChars), (c !== 0 || e.j !== 0) && (this._hasMaskedPath ? V.length ? f += A.t.v * V[0] : f += A.t.v * V : V.length ? c += A.t.v * V[0] : c += A.t.v * V));
|
|
9580
9580
|
for (e.strokeWidthAnim && (Q = e.sw || 0), e.strokeColorAnim && (e.sc ? Z = [e.sc[0], e.sc[1], e.sc[2]] : Z = [0, 0, 0]), e.fillColorAnim && e.fc && (K = [e.fc[0], e.fc[1], e.fc[2]]), w = 0; w < E; w += 1)
|
|
9581
|
-
A = s[w].a, A.a.propType && (F = s[w].s, V = F.getMult(p[
|
|
9581
|
+
A = s[w].a, A.a.propType && (F = s[w].s, V = F.getMult(p[d].anIndexes[w], i.a[w].s.totalChars), V.length ? a.translate(-A.a.v[0] * V[0], -A.a.v[1] * V[1], A.a.v[2] * V[2]) : a.translate(-A.a.v[0] * V, -A.a.v[1] * V, A.a.v[2] * V));
|
|
9582
9582
|
for (w = 0; w < E; w += 1)
|
|
9583
|
-
A = s[w].a, A.s.propType && (F = s[w].s, V = F.getMult(p[
|
|
9583
|
+
A = s[w].a, A.s.propType && (F = s[w].s, V = F.getMult(p[d].anIndexes[w], i.a[w].s.totalChars), V.length ? a.scale(1 + (A.s.v[0] - 1) * V[0], 1 + (A.s.v[1] - 1) * V[1], 1) : a.scale(1 + (A.s.v[0] - 1) * V, 1 + (A.s.v[1] - 1) * V, 1));
|
|
9584
9584
|
for (w = 0; w < E; w += 1) {
|
|
9585
|
-
if (A = s[w].a, F = s[w].s, V = F.getMult(p[
|
|
9585
|
+
if (A = s[w].a, F = s[w].s, V = F.getMult(p[d].anIndexes[w], i.a[w].s.totalChars), A.sk.propType && (V.length ? a.skewFromAxis(-A.sk.v * V[0], A.sa.v * V[1]) : a.skewFromAxis(-A.sk.v * V, A.sa.v * V)), A.r.propType && (V.length ? a.rotateZ(-A.r.v * V[2]) : a.rotateZ(-A.r.v * V)), A.ry.propType && (V.length ? a.rotateY(A.ry.v * V[1]) : a.rotateY(A.ry.v * V)), A.rx.propType && (V.length ? a.rotateX(A.rx.v * V[0]) : a.rotateX(A.rx.v * V)), A.o.propType && (V.length ? J += (A.o.v * V[0] - J) * V[0] : J += (A.o.v * V - J) * V), e.strokeWidthAnim && A.sw.propType && (V.length ? Q += A.sw.v * V[0] : Q += A.sw.v * V), e.strokeColorAnim && A.sc.propType)
|
|
9586
9586
|
for (U = 0; U < 3; U += 1)
|
|
9587
9587
|
V.length ? Z[U] += (A.sc.v[U] - Z[U]) * V[0] : Z[U] += (A.sc.v[U] - Z[U]) * V;
|
|
9588
9588
|
if (e.fillColorAnim && e.fc) {
|
|
@@ -9593,28 +9593,28 @@ function requireLottie() {
|
|
|
9593
9593
|
}
|
|
9594
9594
|
}
|
|
9595
9595
|
for (w = 0; w < E; w += 1)
|
|
9596
|
-
A = s[w].a, A.p.propType && (F = s[w].s, V = F.getMult(p[
|
|
9596
|
+
A = s[w].a, A.p.propType && (F = s[w].s, V = F.getMult(p[d].anIndexes[w], i.a[w].s.totalChars), this._hasMaskedPath ? V.length ? a.translate(0, A.p.v[1] * V[0], -A.p.v[2] * V[1]) : a.translate(0, A.p.v[1] * V, -A.p.v[2] * V) : V.length ? a.translate(A.p.v[0] * V[0], A.p.v[1] * V[1], -A.p.v[2] * V[2]) : a.translate(A.p.v[0] * V, A.p.v[1] * V, -A.p.v[2] * V));
|
|
9597
9597
|
if (e.strokeWidthAnim && (le = Q < 0 ? 0 : Q), e.strokeColorAnim && (fe = "rgb(" + Math.round(Z[0] * 255) + "," + Math.round(Z[1] * 255) + "," + Math.round(Z[2] * 255) + ")"), e.fillColorAnim && e.fc && (ce = "rgb(" + Math.round(K[0] * 255) + "," + Math.round(K[1] * 255) + "," + Math.round(K[2] * 255) + ")"), this._hasMaskedPath) {
|
|
9598
|
-
if (a.translate(0, -e.ls), a.translate(0, n[1] * z * 0.01 +
|
|
9598
|
+
if (a.translate(0, -e.ls), a.translate(0, n[1] * z * 0.01 + u, 0), this._pathData.p.v) {
|
|
9599
9599
|
I = (v.point[1] - C.point[1]) / (v.point[0] - C.point[0]);
|
|
9600
9600
|
var ye = Math.atan(I) * 180 / Math.PI;
|
|
9601
9601
|
v.point[0] < C.point[0] && (ye += 180), a.rotate(-ye * Math.PI / 180);
|
|
9602
9602
|
}
|
|
9603
|
-
a.translate(j, W, 0), f -= n[0] * p[
|
|
9603
|
+
a.translate(j, W, 0), f -= n[0] * p[d].an * 5e-3, p[d + 1] && G !== p[d + 1].ind && (f += p[d].an / 2, f += e.tr * 1e-3 * e.finalSize);
|
|
9604
9604
|
} else {
|
|
9605
|
-
switch (a.translate(c,
|
|
9605
|
+
switch (a.translate(c, u, 0), e.ps && a.translate(e.ps[0], e.ps[1] + e.ascent, 0), e.j) {
|
|
9606
9606
|
case 1:
|
|
9607
|
-
a.translate(p[
|
|
9607
|
+
a.translate(p[d].animatorJustifyOffset + e.justifyOffset + (e.boxWidth - e.lineWidths[p[d].line]), 0, 0);
|
|
9608
9608
|
break;
|
|
9609
9609
|
case 2:
|
|
9610
|
-
a.translate(p[
|
|
9610
|
+
a.translate(p[d].animatorJustifyOffset + e.justifyOffset + (e.boxWidth - e.lineWidths[p[d].line]) / 2, 0, 0);
|
|
9611
9611
|
break;
|
|
9612
9612
|
}
|
|
9613
|
-
a.translate(0, -e.ls), a.translate(H, 0, 0), a.translate(n[0] * p[
|
|
9613
|
+
a.translate(0, -e.ls), a.translate(H, 0, 0), a.translate(n[0] * p[d].an * 5e-3, n[1] * z * 0.01, 0), c += p[d].l + e.tr * 1e-3 * e.finalSize;
|
|
9614
9614
|
}
|
|
9615
9615
|
o === "html" ? oe = a.toCSS() : o === "svg" ? oe = a.to2dCSS() : ue = [a.props[0], a.props[1], a.props[2], a.props[3], a.props[4], a.props[5], a.props[6], a.props[7], a.props[8], a.props[9], a.props[10], a.props[11], a.props[12], a.props[13], a.props[14], a.props[15]], de = J;
|
|
9616
9616
|
}
|
|
9617
|
-
l <=
|
|
9617
|
+
l <= d ? (B = new LetterProps(de, le, fe, ce, oe, ue), this.renderedLetters.push(B), l += 1, this.lettersChangedFlag = !0) : (B = this.renderedLetters[d], this.lettersChangedFlag = B.update(de, le, fe, ce, oe, ue) || this.lettersChangedFlag);
|
|
9618
9618
|
}
|
|
9619
9619
|
}
|
|
9620
9620
|
}, TextAnimatorProperty.prototype.getValue = function() {
|
|
@@ -9689,7 +9689,7 @@ function requireLottie() {
|
|
|
9689
9689
|
this.layerElement.setAttribute("aria-label", n.t);
|
|
9690
9690
|
var o = n.l || [], l = !!this.globalData.fontManager.chars;
|
|
9691
9691
|
t = o.length;
|
|
9692
|
-
var c,
|
|
9692
|
+
var c, u = this.mHelper, d = "", m = this.data.singleShape, p = 0, b = 0, f = !0, v = n.tr * 1e-3 * n.finalSize;
|
|
9693
9693
|
if (m && !l && !n.sz) {
|
|
9694
9694
|
var k = this.textContainer, y = "start";
|
|
9695
9695
|
switch (n.j) {
|
|
@@ -9728,7 +9728,7 @@ function requireLottie() {
|
|
|
9728
9728
|
}
|
|
9729
9729
|
c.style.display = "inherit";
|
|
9730
9730
|
}
|
|
9731
|
-
if (
|
|
9731
|
+
if (u.reset(), m && (o[e].n && (p = -v, b += n.yOffset, b += f ? 1 : 0, f = !1), this.applyTextPropertiesToMatrix(n, u, o[e].line, p, b), p += o[e].l || 0, p += v), l) {
|
|
9732
9732
|
C = this.globalData.fontManager.getCharData(n.finalText[e], s.fStyle, this.globalData.fontManager.getFontByName(n.f).fFamily);
|
|
9733
9733
|
var _;
|
|
9734
9734
|
if (C.t === 1)
|
|
@@ -9743,9 +9743,9 @@ function requireLottie() {
|
|
|
9743
9743
|
}
|
|
9744
9744
|
this.textSpans[e].glyph = _, _._debug = !0, _.prepareFrame(0), _.renderFrame(), this.textSpans[e].childSpan.appendChild(_.layerElement), C.t === 1 && this.textSpans[e].childSpan.setAttribute("transform", "scale(" + n.finalSize / 100 + "," + n.finalSize / 100 + ")");
|
|
9745
9745
|
} else
|
|
9746
|
-
m && c.setAttribute("transform", "translate(" +
|
|
9746
|
+
m && c.setAttribute("transform", "translate(" + u.props[12] + "," + u.props[13] + ")"), c.textContent = o[e].val, c.setAttributeNS("http://www.w3.org/XML/1998/namespace", "xml:space", "preserve");
|
|
9747
9747
|
}
|
|
9748
|
-
m && c && c.setAttribute("d",
|
|
9748
|
+
m && c && c.setAttribute("d", d);
|
|
9749
9749
|
}
|
|
9750
9750
|
for (; e < this.textSpans.length; )
|
|
9751
9751
|
this.textSpans[e].span.style.display = "none", e += 1;
|
|
@@ -10004,8 +10004,8 @@ function requireLottie() {
|
|
|
10004
10004
|
var lumaLoader = function() {
|
|
10005
10005
|
var t = "__lottie_element_luma_buffer", n = null, s = null, i = null;
|
|
10006
10006
|
function a() {
|
|
10007
|
-
var c = createNS("svg"),
|
|
10008
|
-
return
|
|
10007
|
+
var c = createNS("svg"), u = createNS("filter"), d = createNS("feColorMatrix");
|
|
10008
|
+
return u.setAttribute("id", t), d.setAttribute("type", "matrix"), d.setAttribute("color-interpolation-filters", "sRGB"), d.setAttribute("values", "0.3, 0.3, 0.3, 0, 0, 0.3, 0.3, 0.3, 0, 0, 0.3, 0.3, 0.3, 0, 0, 0.3, 0.3, 0.3, 0, 0"), u.appendChild(d), c.appendChild(u), c.setAttribute("id", t + "_svg"), featureSupport.svgLumaHidden && (c.style.display = "none"), c;
|
|
10009
10009
|
}
|
|
10010
10010
|
function o() {
|
|
10011
10011
|
n || (i = a(), document.body.appendChild(i), n = createTag("canvas"), s = n.getContext("2d"), s.filter = "url(#" + t + ")", s.fillStyle = "rgba(0,0,0,0)", s.fillRect(0, 0, 1, 1));
|
|
@@ -10241,10 +10241,10 @@ function requireLottie() {
|
|
|
10241
10241
|
for (t = 0; t < n; t += 1)
|
|
10242
10242
|
e[t].closed = !0;
|
|
10243
10243
|
}, CVShapeElement.prototype.searchShapes = function(e, t, n, s, i) {
|
|
10244
|
-
var a, o = e.length - 1, l, c,
|
|
10244
|
+
var a, o = e.length - 1, l, c, u = [], d = [], m, p, b, f = [].concat(i);
|
|
10245
10245
|
for (a = o; a >= 0; a -= 1) {
|
|
10246
10246
|
if (m = this.searchProcessedElement(e[a]), m ? t[a] = n[m - 1] : e[a]._shouldRender = s, e[a].ty === "fl" || e[a].ty === "st" || e[a].ty === "gf" || e[a].ty === "gs")
|
|
10247
|
-
m ? t[a].style.closed = !1 : t[a] = this.createStyleElement(e[a], f),
|
|
10247
|
+
m ? t[a].style.closed = !1 : t[a] = this.createStyleElement(e[a], f), u.push(t[a].style);
|
|
10248
10248
|
else if (e[a].ty === "gr") {
|
|
10249
10249
|
if (!m)
|
|
10250
10250
|
t[a] = this.createGroupElement(e[a]);
|
|
@@ -10252,25 +10252,25 @@ function requireLottie() {
|
|
|
10252
10252
|
for (c = t[a].it.length, l = 0; l < c; l += 1)
|
|
10253
10253
|
t[a].prevViewData[l] = t[a].it[l];
|
|
10254
10254
|
this.searchShapes(e[a].it, t[a].it, t[a].prevViewData, s, f);
|
|
10255
|
-
} else e[a].ty === "tr" ? (m || (b = this.createTransformElement(e[a]), t[a] = b), f.push(t[a]), this.addTransformToStyleList(t[a])) : e[a].ty === "sh" || e[a].ty === "rc" || e[a].ty === "el" || e[a].ty === "sr" ? m || (t[a] = this.createShapeElement(e[a])) : e[a].ty === "tm" || e[a].ty === "rd" || e[a].ty === "pb" || e[a].ty === "zz" || e[a].ty === "op" ? (m ? (p = t[a], p.closed = !1) : (p = ShapeModifiers.getModifier(e[a].ty), p.init(this, e[a]), t[a] = p, this.shapeModifiers.push(p)),
|
|
10255
|
+
} else e[a].ty === "tr" ? (m || (b = this.createTransformElement(e[a]), t[a] = b), f.push(t[a]), this.addTransformToStyleList(t[a])) : e[a].ty === "sh" || e[a].ty === "rc" || e[a].ty === "el" || e[a].ty === "sr" ? m || (t[a] = this.createShapeElement(e[a])) : e[a].ty === "tm" || e[a].ty === "rd" || e[a].ty === "pb" || e[a].ty === "zz" || e[a].ty === "op" ? (m ? (p = t[a], p.closed = !1) : (p = ShapeModifiers.getModifier(e[a].ty), p.init(this, e[a]), t[a] = p, this.shapeModifiers.push(p)), d.push(p)) : e[a].ty === "rp" && (m ? (p = t[a], p.closed = !0) : (p = ShapeModifiers.getModifier(e[a].ty), t[a] = p, p.init(this, e, a, t), this.shapeModifiers.push(p), s = !1), d.push(p));
|
|
10256
10256
|
this.addProcessedElement(e[a], a + 1);
|
|
10257
10257
|
}
|
|
10258
|
-
for (this.removeTransformFromStyleList(), this.closeStyles(
|
|
10259
|
-
|
|
10258
|
+
for (this.removeTransformFromStyleList(), this.closeStyles(u), o = d.length, a = 0; a < o; a += 1)
|
|
10259
|
+
d[a].closed = !0;
|
|
10260
10260
|
}, CVShapeElement.prototype.renderInnerContent = function() {
|
|
10261
10261
|
this.transformHelper.opacity = 1, this.transformHelper._opMdf = !1, this.renderModifiers(), this.transformsManager.processSequences(this._isFirstFrame), this.renderShape(this.transformHelper, this.shapesData, this.itemsData, !0);
|
|
10262
10262
|
}, CVShapeElement.prototype.renderShapeTransform = function(e, t) {
|
|
10263
10263
|
(e._opMdf || t.op._mdf || this._isFirstFrame) && (t.opacity = e.opacity, t.opacity *= t.op.v, t._opMdf = !0);
|
|
10264
10264
|
}, CVShapeElement.prototype.drawLayer = function() {
|
|
10265
|
-
var e, t = this.stylesList.length, n, s, i, a, o, l, c = this.globalData.renderer,
|
|
10265
|
+
var e, t = this.stylesList.length, n, s, i, a, o, l, c = this.globalData.renderer, u = this.globalData.canvasContext, d, m;
|
|
10266
10266
|
for (e = 0; e < t; e += 1)
|
|
10267
|
-
if (m = this.stylesList[e],
|
|
10268
|
-
for (c.save(), o = m.elements,
|
|
10269
|
-
for ((
|
|
10270
|
-
l[i].t === "m" ?
|
|
10271
|
-
(
|
|
10267
|
+
if (m = this.stylesList[e], d = m.type, !((d === "st" || d === "gs") && m.wi === 0 || !m.data._shouldRender || m.coOp === 0 || this.globalData.currentGlobalAlpha === 0)) {
|
|
10268
|
+
for (c.save(), o = m.elements, d === "st" || d === "gs" ? (c.ctxStrokeStyle(d === "st" ? m.co : m.grd), c.ctxLineWidth(m.wi), c.ctxLineCap(m.lc), c.ctxLineJoin(m.lj), c.ctxMiterLimit(m.ml || 0)) : c.ctxFillStyle(d === "fl" ? m.co : m.grd), c.ctxOpacity(m.coOp), d !== "st" && d !== "gs" && u.beginPath(), c.ctxTransform(m.preTransforms.finalTransform.props), s = o.length, n = 0; n < s; n += 1) {
|
|
10269
|
+
for ((d === "st" || d === "gs") && (u.beginPath(), m.da && (u.setLineDash(m.da), u.lineDashOffset = m.do)), l = o[n].trNodes, a = l.length, i = 0; i < a; i += 1)
|
|
10270
|
+
l[i].t === "m" ? u.moveTo(l[i].p[0], l[i].p[1]) : l[i].t === "c" ? u.bezierCurveTo(l[i].pts[0], l[i].pts[1], l[i].pts[2], l[i].pts[3], l[i].pts[4], l[i].pts[5]) : u.closePath();
|
|
10271
|
+
(d === "st" || d === "gs") && (c.ctxStroke(), m.da && u.setLineDash(this.dashResetter));
|
|
10272
10272
|
}
|
|
10273
|
-
|
|
10273
|
+
d !== "st" && d !== "gs" && this.globalData.renderer.ctxFill(m.r), c.restore();
|
|
10274
10274
|
}
|
|
10275
10275
|
}, CVShapeElement.prototype.renderShape = function(e, t, n, s) {
|
|
10276
10276
|
var i, a = t.length - 1, o;
|
|
@@ -10283,22 +10283,22 @@ function requireLottie() {
|
|
|
10283
10283
|
n.length = 0;
|
|
10284
10284
|
var c = e.transforms.finalTransform;
|
|
10285
10285
|
for (o = 0; o < l; o += 1) {
|
|
10286
|
-
var
|
|
10287
|
-
if (
|
|
10288
|
-
for (a =
|
|
10286
|
+
var u = s.shapes[o];
|
|
10287
|
+
if (u && u.v) {
|
|
10288
|
+
for (a = u._length, i = 1; i < a; i += 1)
|
|
10289
10289
|
i === 1 && n.push({
|
|
10290
10290
|
t: "m",
|
|
10291
|
-
p: c.applyToPointArray(
|
|
10291
|
+
p: c.applyToPointArray(u.v[0][0], u.v[0][1], 0)
|
|
10292
10292
|
}), n.push({
|
|
10293
10293
|
t: "c",
|
|
10294
|
-
pts: c.applyToTriplePoints(
|
|
10294
|
+
pts: c.applyToTriplePoints(u.o[i - 1], u.i[i], u.v[i])
|
|
10295
10295
|
});
|
|
10296
10296
|
a === 1 && n.push({
|
|
10297
10297
|
t: "m",
|
|
10298
|
-
p: c.applyToPointArray(
|
|
10299
|
-
}),
|
|
10298
|
+
p: c.applyToPointArray(u.v[0][0], u.v[0][1], 0)
|
|
10299
|
+
}), u.c && a && (n.push({
|
|
10300
10300
|
t: "c",
|
|
10301
|
-
pts: c.applyToTriplePoints(
|
|
10301
|
+
pts: c.applyToTriplePoints(u.o[i - 1], u.i[0], u.v[0])
|
|
10302
10302
|
}), n.push({
|
|
10303
10303
|
t: "z"
|
|
10304
10304
|
}));
|
|
@@ -10322,9 +10322,9 @@ function requireLottie() {
|
|
|
10322
10322
|
if (e.t === 1)
|
|
10323
10323
|
i = a.createLinearGradient(o[0], o[1], l[0], l[1]);
|
|
10324
10324
|
else {
|
|
10325
|
-
var c = Math.sqrt(Math.pow(o[0] - l[0], 2) + Math.pow(o[1] - l[1], 2)),
|
|
10326
|
-
|
|
10327
|
-
var m = c *
|
|
10325
|
+
var c = Math.sqrt(Math.pow(o[0] - l[0], 2) + Math.pow(o[1] - l[1], 2)), u = Math.atan2(l[1] - o[1], l[0] - o[0]), d = t.h.v;
|
|
10326
|
+
d >= 1 ? d = 0.99 : d <= -1 && (d = -0.99);
|
|
10327
|
+
var m = c * d, p = Math.cos(u + t.a.v) * m + o[0], b = Math.sin(u + t.a.v) * m + o[1];
|
|
10328
10328
|
i = a.createRadialGradient(p, b, 0, o[0], o[1], c);
|
|
10329
10329
|
}
|
|
10330
10330
|
var f, v = e.g.p, k = t.g.c, y = 1;
|
|
@@ -10356,15 +10356,15 @@ function requireLottie() {
|
|
|
10356
10356
|
e.sc && (n = !0, this.values.stroke = this.buildColor(e.sc), this.values.sWidth = e.sw);
|
|
10357
10357
|
var s = this.globalData.fontManager.getFontByName(e.f), i, a, o = e.l, l = this.mHelper;
|
|
10358
10358
|
this.stroke = n, this.values.fValue = e.finalSize + "px " + this.globalData.fontManager.getFontByName(e.f).fFamily, a = e.finalText.length;
|
|
10359
|
-
var c,
|
|
10359
|
+
var c, u, d, m, p, b, f, v, k, y, x = this.data.singleShape, g = e.tr * 1e-3 * e.finalSize, C = 0, S = 0, _ = !0, T = 0;
|
|
10360
10360
|
for (i = 0; i < a; i += 1) {
|
|
10361
|
-
c = this.globalData.fontManager.getCharData(e.finalText[i], s.fStyle, this.globalData.fontManager.getFontByName(e.f).fFamily),
|
|
10361
|
+
c = this.globalData.fontManager.getCharData(e.finalText[i], s.fStyle, this.globalData.fontManager.getFontByName(e.f).fFamily), u = c && c.data || {}, l.reset(), x && o[i].n && (C = -g, S += e.yOffset, S += _ ? 1 : 0, _ = !1), p = u.shapes ? u.shapes[0].it : [], f = p.length, l.scale(e.finalSize / 100, e.finalSize / 100), x && this.applyTextPropertiesToMatrix(e, l, o[i].line, C, S), k = createSizedArray(f - 1);
|
|
10362
10362
|
var P = 0;
|
|
10363
10363
|
for (b = 0; b < f; b += 1)
|
|
10364
10364
|
if (p[b].ty === "sh") {
|
|
10365
|
-
for (m = p[b].ks.k.i.length, v = p[b].ks.k, y = [],
|
|
10366
|
-
|
|
10367
|
-
y.push(l.applyToX(v.o[
|
|
10365
|
+
for (m = p[b].ks.k.i.length, v = p[b].ks.k, y = [], d = 1; d < m; d += 1)
|
|
10366
|
+
d === 1 && y.push(l.applyToX(v.v[0][0], v.v[0][1], 0), l.applyToY(v.v[0][0], v.v[0][1], 0)), y.push(l.applyToX(v.o[d - 1][0], v.o[d - 1][1], 0), l.applyToY(v.o[d - 1][0], v.o[d - 1][1], 0), l.applyToX(v.i[d][0], v.i[d][1], 0), l.applyToY(v.i[d][0], v.i[d][1], 0), l.applyToX(v.v[d][0], v.v[d][1], 0), l.applyToY(v.v[d][0], v.v[d][1], 0));
|
|
10367
|
+
y.push(l.applyToX(v.o[d - 1][0], v.o[d - 1][1], 0), l.applyToY(v.o[d - 1][0], v.o[d - 1][1], 0), l.applyToX(v.i[0][0], v.i[0][1], 0), l.applyToY(v.i[0][0], v.i[0][1], 0), l.applyToX(v.v[0][0], v.v[0][1], 0), l.applyToY(v.v[0][0], v.v[0][1], 0)), k[P] = y, P += 1;
|
|
10368
10368
|
}
|
|
10369
10369
|
x && (C += o[i].l, C += g), this.textSpans[T] ? this.textSpans[T].elem = k : this.textSpans[T] = {
|
|
10370
10370
|
elem: k
|
|
@@ -10376,22 +10376,22 @@ function requireLottie() {
|
|
|
10376
10376
|
e.font = this.values.fValue, this.globalData.renderer.ctxLineCap("butt"), this.globalData.renderer.ctxLineJoin("miter"), this.globalData.renderer.ctxMiterLimit(4), this.data.singleShape || this.textAnimator.getMeasures(this.textProperty.currentData, this.lettersChangedFlag);
|
|
10377
10377
|
var t, n, s, i, a, o, l = this.textAnimator.renderedLetters, c = this.textProperty.currentData.l;
|
|
10378
10378
|
n = c.length;
|
|
10379
|
-
var
|
|
10379
|
+
var u, d = null, m = null, p = null, b, f, v = this.globalData.renderer;
|
|
10380
10380
|
for (t = 0; t < n; t += 1)
|
|
10381
10381
|
if (!c[t].n) {
|
|
10382
|
-
if (
|
|
10383
|
-
for (
|
|
10382
|
+
if (u = l[t], u && (v.save(), v.ctxTransform(u.p), v.ctxOpacity(u.o)), this.fill) {
|
|
10383
|
+
for (u && u.fc ? d !== u.fc && (v.ctxFillStyle(u.fc), d = u.fc) : d !== this.values.fill && (d = this.values.fill, v.ctxFillStyle(this.values.fill)), b = this.textSpans[t].elem, i = b.length, this.globalData.canvasContext.beginPath(), s = 0; s < i; s += 1)
|
|
10384
10384
|
for (f = b[s], o = f.length, this.globalData.canvasContext.moveTo(f[0], f[1]), a = 2; a < o; a += 6)
|
|
10385
10385
|
this.globalData.canvasContext.bezierCurveTo(f[a], f[a + 1], f[a + 2], f[a + 3], f[a + 4], f[a + 5]);
|
|
10386
10386
|
this.globalData.canvasContext.closePath(), v.ctxFill();
|
|
10387
10387
|
}
|
|
10388
10388
|
if (this.stroke) {
|
|
10389
|
-
for (
|
|
10389
|
+
for (u && u.sw ? p !== u.sw && (p = u.sw, v.ctxLineWidth(u.sw)) : p !== this.values.sWidth && (p = this.values.sWidth, v.ctxLineWidth(this.values.sWidth)), u && u.sc ? m !== u.sc && (m = u.sc, v.ctxStrokeStyle(u.sc)) : m !== this.values.stroke && (m = this.values.stroke, v.ctxStrokeStyle(this.values.stroke)), b = this.textSpans[t].elem, i = b.length, this.globalData.canvasContext.beginPath(), s = 0; s < i; s += 1)
|
|
10390
10390
|
for (f = b[s], o = f.length, this.globalData.canvasContext.moveTo(f[0], f[1]), a = 2; a < o; a += 6)
|
|
10391
10391
|
this.globalData.canvasContext.bezierCurveTo(f[a], f[a + 1], f[a + 2], f[a + 3], f[a + 4], f[a + 5]);
|
|
10392
10392
|
this.globalData.canvasContext.closePath(), v.ctxStroke();
|
|
10393
10393
|
}
|
|
10394
|
-
|
|
10394
|
+
u && this.globalData.renderer.restore();
|
|
10395
10395
|
}
|
|
10396
10396
|
};
|
|
10397
10397
|
function CVImageElement(e, t, n) {
|
|
@@ -10484,8 +10484,8 @@ function requireLottie() {
|
|
|
10484
10484
|
e ? (n = e, s = t, this.canvasContext.canvas.width = n, this.canvasContext.canvas.height = s) : (this.animationItem.wrapper && this.animationItem.container ? (n = this.animationItem.wrapper.offsetWidth, s = this.animationItem.wrapper.offsetHeight) : (n = this.canvasContext.canvas.width, s = this.canvasContext.canvas.height), this.canvasContext.canvas.width = n * this.renderConfig.dpr, this.canvasContext.canvas.height = s * this.renderConfig.dpr);
|
|
10485
10485
|
var i, a;
|
|
10486
10486
|
if (this.renderConfig.preserveAspectRatio.indexOf("meet") !== -1 || this.renderConfig.preserveAspectRatio.indexOf("slice") !== -1) {
|
|
10487
|
-
var o = this.renderConfig.preserveAspectRatio.split(" "), l = o[1] || "meet", c = o[0] || "xMidYMid",
|
|
10488
|
-
i = n / s, a = this.transformCanvas.w / this.transformCanvas.h, a > i && l === "meet" || a < i && l === "slice" ? (this.transformCanvas.sx = n / (this.transformCanvas.w / this.renderConfig.dpr), this.transformCanvas.sy = n / (this.transformCanvas.w / this.renderConfig.dpr)) : (this.transformCanvas.sx = s / (this.transformCanvas.h / this.renderConfig.dpr), this.transformCanvas.sy = s / (this.transformCanvas.h / this.renderConfig.dpr)),
|
|
10487
|
+
var o = this.renderConfig.preserveAspectRatio.split(" "), l = o[1] || "meet", c = o[0] || "xMidYMid", u = c.substr(0, 4), d = c.substr(4);
|
|
10488
|
+
i = n / s, a = this.transformCanvas.w / this.transformCanvas.h, a > i && l === "meet" || a < i && l === "slice" ? (this.transformCanvas.sx = n / (this.transformCanvas.w / this.renderConfig.dpr), this.transformCanvas.sy = n / (this.transformCanvas.w / this.renderConfig.dpr)) : (this.transformCanvas.sx = s / (this.transformCanvas.h / this.renderConfig.dpr), this.transformCanvas.sy = s / (this.transformCanvas.h / this.renderConfig.dpr)), u === "xMid" && (a < i && l === "meet" || a > i && l === "slice") ? this.transformCanvas.tx = (n - this.transformCanvas.w * (s / this.transformCanvas.h)) / 2 * this.renderConfig.dpr : u === "xMax" && (a < i && l === "meet" || a > i && l === "slice") ? this.transformCanvas.tx = (n - this.transformCanvas.w * (s / this.transformCanvas.h)) * this.renderConfig.dpr : this.transformCanvas.tx = 0, d === "YMid" && (a > i && l === "meet" || a < i && l === "slice") ? this.transformCanvas.ty = (s - this.transformCanvas.h * (n / this.transformCanvas.w)) / 2 * this.renderConfig.dpr : d === "YMax" && (a > i && l === "meet" || a < i && l === "slice") ? this.transformCanvas.ty = (s - this.transformCanvas.h * (n / this.transformCanvas.w)) * this.renderConfig.dpr : this.transformCanvas.ty = 0;
|
|
10489
10489
|
} else this.renderConfig.preserveAspectRatio === "none" ? (this.transformCanvas.sx = n / (this.transformCanvas.w / this.renderConfig.dpr), this.transformCanvas.sy = s / (this.transformCanvas.h / this.renderConfig.dpr), this.transformCanvas.tx = 0, this.transformCanvas.ty = 0) : (this.transformCanvas.sx = this.renderConfig.dpr, this.transformCanvas.sy = this.renderConfig.dpr, this.transformCanvas.tx = 0, this.transformCanvas.ty = 0);
|
|
10490
10490
|
this.transformCanvas.props = [this.transformCanvas.sx, 0, 0, 0, 0, this.transformCanvas.sy, 0, 0, 0, 0, 1, 0, this.transformCanvas.tx, this.transformCanvas.ty, 0, 1], this.ctxTransform(this.transformCanvas.props), this.canvasContext.beginPath(), this.canvasContext.rect(0, 0, this.transformCanvas.w, this.transformCanvas.h), this.canvasContext.closePath(), this.canvasContext.clip(), this.renderFrame(this.renderedFrame, !0);
|
|
10491
10491
|
}, CanvasRendererBase.prototype.destroy = function() {
|
|
@@ -10698,11 +10698,11 @@ function requireLottie() {
|
|
|
10698
10698
|
t = e[n].mProps.v.applyToPointArray(t[0], t[1], 0);
|
|
10699
10699
|
return t;
|
|
10700
10700
|
}, HShapeElement.prototype.calculateShapeBoundingBox = function(e, t) {
|
|
10701
|
-
var n = e.sh.v, s = e.transformers, i, a = n._length, o, l, c,
|
|
10701
|
+
var n = e.sh.v, s = e.transformers, i, a = n._length, o, l, c, u;
|
|
10702
10702
|
if (!(a <= 1)) {
|
|
10703
10703
|
for (i = 0; i < a - 1; i += 1)
|
|
10704
|
-
o = this.getTransformedPoint(s, n.v[i]), l = this.getTransformedPoint(s, n.o[i]), c = this.getTransformedPoint(s, n.i[i + 1]),
|
|
10705
|
-
n.c && (o = this.getTransformedPoint(s, n.v[i]), l = this.getTransformedPoint(s, n.o[i]), c = this.getTransformedPoint(s, n.i[0]),
|
|
10704
|
+
o = this.getTransformedPoint(s, n.v[i]), l = this.getTransformedPoint(s, n.o[i]), c = this.getTransformedPoint(s, n.i[i + 1]), u = this.getTransformedPoint(s, n.v[i + 1]), this.checkBounds(o, l, c, u, t);
|
|
10705
|
+
n.c && (o = this.getTransformedPoint(s, n.v[i]), l = this.getTransformedPoint(s, n.o[i]), c = this.getTransformedPoint(s, n.i[0]), u = this.getTransformedPoint(s, n.v[0]), this.checkBounds(o, l, c, u, t));
|
|
10706
10706
|
}
|
|
10707
10707
|
}, HShapeElement.prototype.checkBounds = function(e, t, n, s, i) {
|
|
10708
10708
|
this.getBoundsOfCurve(e, t, n, s);
|
|
@@ -10721,8 +10721,8 @@ function requireLottie() {
|
|
|
10721
10721
|
width: 0,
|
|
10722
10722
|
height: 0
|
|
10723
10723
|
}, HShapeElement.prototype.getBoundsOfCurve = function(e, t, n, s) {
|
|
10724
|
-
for (var i = [[e[0], s[0]], [e[1], s[1]]], a, o, l, c,
|
|
10725
|
-
o = 6 * e[p] - 12 * t[p] + 6 * n[p], a = -3 * e[p] + 9 * t[p] - 9 * n[p] + 3 * s[p], l = 3 * t[p] - 3 * e[p], o |= 0, a |= 0, l |= 0, a === 0 && o === 0 || (a === 0 ? (c = -l / o, c > 0 && c < 1 && i[p].push(this.calculateF(c, e, t, n, s, p))) : (
|
|
10724
|
+
for (var i = [[e[0], s[0]], [e[1], s[1]]], a, o, l, c, u, d, m, p = 0; p < 2; ++p)
|
|
10725
|
+
o = 6 * e[p] - 12 * t[p] + 6 * n[p], a = -3 * e[p] + 9 * t[p] - 9 * n[p] + 3 * s[p], l = 3 * t[p] - 3 * e[p], o |= 0, a |= 0, l |= 0, a === 0 && o === 0 || (a === 0 ? (c = -l / o, c > 0 && c < 1 && i[p].push(this.calculateF(c, e, t, n, s, p))) : (u = o * o - 4 * l * a, u >= 0 && (d = (-o + bmSqrt(u)) / (2 * a), d > 0 && d < 1 && i[p].push(this.calculateF(d, e, t, n, s, p)), m = (-o - bmSqrt(u)) / (2 * a), m > 0 && m < 1 && i[p].push(this.calculateF(m, e, t, n, s, p)))));
|
|
10726
10726
|
this.shapeBoundingBox.left = bmMin.apply(null, i[0]), this.shapeBoundingBox.top = bmMin.apply(null, i[1]), this.shapeBoundingBox.right = bmMax.apply(null, i[0]), this.shapeBoundingBox.bottom = bmMax.apply(null, i[1]);
|
|
10727
10727
|
}, HShapeElement.prototype.calculateF = function(e, t, n, s, i, a) {
|
|
10728
10728
|
return bmPow(1 - e, 3) * t[a] + 3 * bmPow(1 - e, 2) * e * n[a] + 3 * (1 - e) * bmPow(e, 2) * s[a] + bmPow(e, 3) * i[a];
|
|
@@ -10788,14 +10788,14 @@ function requireLottie() {
|
|
|
10788
10788
|
}
|
|
10789
10789
|
var o, l, c = e.l;
|
|
10790
10790
|
l = c.length;
|
|
10791
|
-
var
|
|
10791
|
+
var u, d, m, p = this.mHelper, b, f = "", v = 0;
|
|
10792
10792
|
for (o = 0; o < l; o += 1) {
|
|
10793
|
-
if (this.globalData.fontManager.chars ? (this.textPaths[v] ?
|
|
10793
|
+
if (this.globalData.fontManager.chars ? (this.textPaths[v] ? u = this.textPaths[v] : (u = createNS("path"), u.setAttribute("stroke-linecap", lineCapEnum[1]), u.setAttribute("stroke-linejoin", lineJoinEnum[2]), u.setAttribute("stroke-miterlimit", "4")), this.isMasked || (this.textSpans[v] ? (d = this.textSpans[v], m = d.children[0]) : (d = createTag("div"), d.style.lineHeight = 0, m = createNS("svg"), m.appendChild(u), styleDiv(d)))) : this.isMasked ? u = this.textPaths[v] ? this.textPaths[v] : createNS("text") : this.textSpans[v] ? (d = this.textSpans[v], u = this.textPaths[v]) : (d = createTag("span"), styleDiv(d), u = createTag("span"), styleDiv(u), d.appendChild(u)), this.globalData.fontManager.chars) {
|
|
10794
10794
|
var k = this.globalData.fontManager.getCharData(e.finalText[o], s.fStyle, this.globalData.fontManager.getFontByName(e.f).fFamily), y;
|
|
10795
|
-
if (k ? y = k.data : y = null, p.reset(), y && y.shapes && y.shapes.length && (b = y.shapes[0].it, p.scale(e.finalSize / 100, e.finalSize / 100), f = this.createPathShape(p, b),
|
|
10796
|
-
this.innerElem.appendChild(
|
|
10795
|
+
if (k ? y = k.data : y = null, p.reset(), y && y.shapes && y.shapes.length && (b = y.shapes[0].it, p.scale(e.finalSize / 100, e.finalSize / 100), f = this.createPathShape(p, b), u.setAttribute("d", f)), this.isMasked)
|
|
10796
|
+
this.innerElem.appendChild(u);
|
|
10797
10797
|
else {
|
|
10798
|
-
if (this.innerElem.appendChild(
|
|
10798
|
+
if (this.innerElem.appendChild(d), y && y.shapes) {
|
|
10799
10799
|
document.body.appendChild(m);
|
|
10800
10800
|
var x = m.getBBox();
|
|
10801
10801
|
m.setAttribute("width", x.width + 2), m.setAttribute("height", x.height + 2), m.setAttribute("viewBox", x.x - 1 + " " + (x.y - 1) + " " + (x.width + 2) + " " + (x.height + 2));
|
|
@@ -10803,16 +10803,16 @@ function requireLottie() {
|
|
|
10803
10803
|
g.transform = C, g.webkitTransform = C, c[o].yOffset = x.y - 1;
|
|
10804
10804
|
} else
|
|
10805
10805
|
m.setAttribute("width", 1), m.setAttribute("height", 1);
|
|
10806
|
-
|
|
10806
|
+
d.appendChild(m);
|
|
10807
10807
|
}
|
|
10808
|
-
} else if (
|
|
10809
|
-
this.innerElem.appendChild(d);
|
|
10810
|
-
else {
|
|
10808
|
+
} else if (u.textContent = c[o].val, u.setAttributeNS("http://www.w3.org/XML/1998/namespace", "xml:space", "preserve"), this.isMasked)
|
|
10811
10809
|
this.innerElem.appendChild(u);
|
|
10812
|
-
|
|
10810
|
+
else {
|
|
10811
|
+
this.innerElem.appendChild(d);
|
|
10812
|
+
var S = u.style, _ = "translate3d(0," + -e.finalSize / 1.2 + "px,0)";
|
|
10813
10813
|
S.transform = _, S.webkitTransform = _;
|
|
10814
10814
|
}
|
|
10815
|
-
this.isMasked ? this.textSpans[v] =
|
|
10815
|
+
this.isMasked ? this.textSpans[v] = u : this.textSpans[v] = d, this.textSpans[v].style.display = "block", this.textPaths[v] = u, v += 1;
|
|
10816
10816
|
}
|
|
10817
10817
|
for (; v < this.textSpans.length; )
|
|
10818
10818
|
this.textSpans[v].style.display = "none", v += 1;
|
|
@@ -10831,15 +10831,15 @@ function requireLottie() {
|
|
|
10831
10831
|
if (this.textAnimator.getMeasures(this.textProperty.currentData, this.lettersChangedFlag), !(!this.lettersChangedFlag && !this.textAnimator.lettersChangedFlag)) {
|
|
10832
10832
|
var n, s, i = 0, a = this.textAnimator.renderedLetters, o = this.textProperty.currentData.l;
|
|
10833
10833
|
s = o.length;
|
|
10834
|
-
var l, c,
|
|
10834
|
+
var l, c, u;
|
|
10835
10835
|
for (n = 0; n < s; n += 1)
|
|
10836
|
-
o[n].n ? i += 1 : (c = this.textSpans[n],
|
|
10836
|
+
o[n].n ? i += 1 : (c = this.textSpans[n], u = this.textPaths[n], l = a[i], i += 1, l._mdf.m && (this.isMasked ? c.setAttribute("transform", l.m) : (c.style.webkitTransform = l.m, c.style.transform = l.m)), c.style.opacity = l.o, l.sw && l._mdf.sw && u.setAttribute("stroke-width", l.sw), l.sc && l._mdf.sc && u.setAttribute("stroke", l.sc), l.fc && l._mdf.fc && (u.setAttribute("fill", l.fc), u.style.color = l.fc));
|
|
10837
10837
|
if (this.innerElem.getBBox && !this.hidden && (this._isFirstFrame || this._mdf)) {
|
|
10838
|
-
var
|
|
10839
|
-
this.currentBBox.w !==
|
|
10838
|
+
var d = this.innerElem.getBBox();
|
|
10839
|
+
this.currentBBox.w !== d.width && (this.currentBBox.w = d.width, this.svgElement.setAttribute("width", d.width)), this.currentBBox.h !== d.height && (this.currentBBox.h = d.height, this.svgElement.setAttribute("height", d.height));
|
|
10840
10840
|
var m = 1;
|
|
10841
|
-
if (this.currentBBox.w !==
|
|
10842
|
-
this.currentBBox.w =
|
|
10841
|
+
if (this.currentBBox.w !== d.width + m * 2 || this.currentBBox.h !== d.height + m * 2 || this.currentBBox.x !== d.x - m || this.currentBBox.y !== d.y - m) {
|
|
10842
|
+
this.currentBBox.w = d.width + m * 2, this.currentBBox.h = d.height + m * 2, this.currentBBox.x = d.x - m, this.currentBBox.y = d.y - m, this.svgElement.setAttribute("viewBox", this.currentBBox.x + " " + this.currentBBox.y + " " + this.currentBBox.w + " " + this.currentBBox.h), e = this.svgElement.style;
|
|
10843
10843
|
var p = "translate(" + this.currentBBox.x + "px," + this.currentBBox.y + "px)";
|
|
10844
10844
|
e.transform = p, e.webkitTransform = p;
|
|
10845
10845
|
}
|
|
@@ -10882,17 +10882,17 @@ function requireLottie() {
|
|
|
10882
10882
|
if (this.p ? this.mat.translate(-this.p.v[0], -this.p.v[1], this.p.v[2]) : this.mat.translate(-this.px.v, -this.py.v, this.pz.v), this.a) {
|
|
10883
10883
|
var i;
|
|
10884
10884
|
this.p ? i = [this.p.v[0] - this.a.v[0], this.p.v[1] - this.a.v[1], this.p.v[2] - this.a.v[2]] : i = [this.px.v - this.a.v[0], this.py.v - this.a.v[1], this.pz.v - this.a.v[2]];
|
|
10885
|
-
var a = Math.sqrt(Math.pow(i[0], 2) + Math.pow(i[1], 2) + Math.pow(i[2], 2)), o = [i[0] / a, i[1] / a, i[2] / a], l = Math.sqrt(o[2] * o[2] + o[0] * o[0]), c = Math.atan2(o[1], l),
|
|
10886
|
-
this.mat.rotateY(
|
|
10885
|
+
var a = Math.sqrt(Math.pow(i[0], 2) + Math.pow(i[1], 2) + Math.pow(i[2], 2)), o = [i[0] / a, i[1] / a, i[2] / a], l = Math.sqrt(o[2] * o[2] + o[0] * o[0]), c = Math.atan2(o[1], l), u = Math.atan2(o[0], -o[2]);
|
|
10886
|
+
this.mat.rotateY(u).rotateX(-c);
|
|
10887
10887
|
}
|
|
10888
10888
|
this.mat.rotateX(-this.rx.v).rotateY(-this.ry.v).rotateZ(this.rz.v), this.mat.rotateX(-this.or.v[0]).rotateY(-this.or.v[1]).rotateZ(this.or.v[2]), this.mat.translate(this.globalData.compSize.w / 2, this.globalData.compSize.h / 2, 0), this.mat.translate(0, 0, this.pe.v);
|
|
10889
|
-
var
|
|
10890
|
-
if ((
|
|
10889
|
+
var d = !this._prevMat.equals(this.mat);
|
|
10890
|
+
if ((d || this.pe._mdf) && this.comp.threeDElements) {
|
|
10891
10891
|
n = this.comp.threeDElements.length;
|
|
10892
10892
|
var m, p, b;
|
|
10893
10893
|
for (t = 0; t < n; t += 1)
|
|
10894
10894
|
if (m = this.comp.threeDElements[t], m.type === "3d") {
|
|
10895
|
-
if (
|
|
10895
|
+
if (d) {
|
|
10896
10896
|
var f = this.mat.toCSS();
|
|
10897
10897
|
b = m.container.style, b.transform = f, b.webkitTransform = f;
|
|
10898
10898
|
}
|
|
@@ -11104,7 +11104,7 @@ function requireLottie() {
|
|
|
11104
11104
|
}, _typeof$2(e);
|
|
11105
11105
|
}
|
|
11106
11106
|
function seedRandom(e, t) {
|
|
11107
|
-
var n = this, s = 256, i = 6, a = 52, o = "random", l = t.pow(s, i), c = t.pow(2, a),
|
|
11107
|
+
var n = this, s = 256, i = 6, a = 52, o = "random", l = t.pow(s, i), c = t.pow(2, a), u = c * 2, d = s - 1, m;
|
|
11108
11108
|
function p(g, C, S) {
|
|
11109
11109
|
var _ = [];
|
|
11110
11110
|
C = C === !0 ? {
|
|
@@ -11113,7 +11113,7 @@ function requireLottie() {
|
|
|
11113
11113
|
var T = k(v(C.entropy ? [g, x(e)] : g === null ? y() : g, 3), _), P = new b(_), M = function() {
|
|
11114
11114
|
for (var $ = P.g(i), D = l, L = 0; $ < c; )
|
|
11115
11115
|
$ = ($ + L) * s, D *= s, L = P.g(1);
|
|
11116
|
-
for (; $ >=
|
|
11116
|
+
for (; $ >= u; )
|
|
11117
11117
|
$ /= 2, D /= 2, L >>>= 1;
|
|
11118
11118
|
return ($ + L) / D;
|
|
11119
11119
|
};
|
|
@@ -11133,10 +11133,10 @@ function requireLottie() {
|
|
|
11133
11133
|
for (S || (g = [S++]); T < s; )
|
|
11134
11134
|
M[T] = T++;
|
|
11135
11135
|
for (T = 0; T < s; T++)
|
|
11136
|
-
M[T] = M[P =
|
|
11136
|
+
M[T] = M[P = d & P + g[T % S] + (C = M[T])], M[P] = C;
|
|
11137
11137
|
_.g = function(I) {
|
|
11138
11138
|
for (var $, D = 0, L = _.i, z = _.j, N = _.S; I--; )
|
|
11139
|
-
$ = N[L =
|
|
11139
|
+
$ = N[L = d & L + 1], D = D * s + N[d & (N[L] = N[z = d & z + $]) + (N[z] = $)];
|
|
11140
11140
|
return _.i = L, _.j = z, D;
|
|
11141
11141
|
};
|
|
11142
11142
|
}
|
|
@@ -11155,7 +11155,7 @@ function requireLottie() {
|
|
|
11155
11155
|
}
|
|
11156
11156
|
function k(g, C) {
|
|
11157
11157
|
for (var S = g + "", _, T = 0; T < S.length; )
|
|
11158
|
-
C[
|
|
11158
|
+
C[d & T] = d & (_ ^= C[d & T] * 19) + S.charCodeAt(T++);
|
|
11159
11159
|
return x(C);
|
|
11160
11160
|
}
|
|
11161
11161
|
function y() {
|
|
@@ -11312,16 +11312,16 @@ function requireLottie() {
|
|
|
11312
11312
|
if (i === a)
|
|
11313
11313
|
o = 0, l = 0;
|
|
11314
11314
|
else {
|
|
11315
|
-
var
|
|
11316
|
-
switch (l = c > 0.5 ?
|
|
11315
|
+
var u = i - a;
|
|
11316
|
+
switch (l = c > 0.5 ? u / (2 - i - a) : u / (i + a), i) {
|
|
11317
11317
|
case t:
|
|
11318
|
-
o = (n - s) /
|
|
11318
|
+
o = (n - s) / u + (n < s ? 6 : 0);
|
|
11319
11319
|
break;
|
|
11320
11320
|
case n:
|
|
11321
|
-
o = (s - t) /
|
|
11321
|
+
o = (s - t) / u + 2;
|
|
11322
11322
|
break;
|
|
11323
11323
|
case s:
|
|
11324
|
-
o = (t - n) /
|
|
11324
|
+
o = (t - n) / u + 4;
|
|
11325
11325
|
break;
|
|
11326
11326
|
}
|
|
11327
11327
|
o /= 6;
|
|
@@ -11353,10 +11353,10 @@ function requireLottie() {
|
|
|
11353
11353
|
var o = n === t ? 0 : (e - t) / (n - t);
|
|
11354
11354
|
if (!s.length)
|
|
11355
11355
|
return s + (i - s) * o;
|
|
11356
|
-
var l, c = s.length,
|
|
11356
|
+
var l, c = s.length, u = createTypedArray("float32", c);
|
|
11357
11357
|
for (l = 0; l < c; l += 1)
|
|
11358
|
-
|
|
11359
|
-
return
|
|
11358
|
+
u[l] = s[l] + (i[l] - s[l]) * o;
|
|
11359
|
+
return u;
|
|
11360
11360
|
}
|
|
11361
11361
|
function random(e, t) {
|
|
11362
11362
|
if (t === void 0 && (e === void 0 ? (e = 0, t = 1) : (t = e, e = void 0)), t.length) {
|
|
@@ -11374,9 +11374,9 @@ function requireLottie() {
|
|
|
11374
11374
|
function createPath(e, t, n, s) {
|
|
11375
11375
|
var i, a = e.length, o = shapePool.newElement();
|
|
11376
11376
|
o.setPathData(!!s, a);
|
|
11377
|
-
var l = [0, 0], c,
|
|
11377
|
+
var l = [0, 0], c, u;
|
|
11378
11378
|
for (i = 0; i < a; i += 1)
|
|
11379
|
-
c = t && t[i] ? t[i] : l,
|
|
11379
|
+
c = t && t[i] ? t[i] : l, u = n && n[i] ? n[i] : l, o.setTripleAt(e[i][0], e[i][1], u[0] + e[i][0], u[1] + e[i][1], c[0] + e[i][0], c[1] + e[i][1], i, !0);
|
|
11380
11380
|
return o;
|
|
11381
11381
|
}
|
|
11382
11382
|
function initiateExpression(elem, data, property) {
|
|
@@ -11400,13 +11400,13 @@ function requireLottie() {
|
|
|
11400
11400
|
o[i] += -n + n * 2 * BMMath.random();
|
|
11401
11401
|
s += 1;
|
|
11402
11402
|
}
|
|
11403
|
-
var c = time * t,
|
|
11403
|
+
var c = time * t, u = c - Math.floor(c), d = createTypedArray("float32", a);
|
|
11404
11404
|
if (a > 1) {
|
|
11405
11405
|
for (i = 0; i < a; i += 1)
|
|
11406
|
-
|
|
11407
|
-
return
|
|
11406
|
+
d[i] = this.pv[i] + o[i] + (-n + n * 2 * BMMath.random()) * u;
|
|
11407
|
+
return d;
|
|
11408
11408
|
}
|
|
11409
|
-
return this.pv + o[0] + (-n + n * 2 * BMMath.random()) *
|
|
11409
|
+
return this.pv + o[0] + (-n + n * 2 * BMMath.random()) * u;
|
|
11410
11410
|
}).bind(this);
|
|
11411
11411
|
thisProperty.loopIn && (loopIn = thisProperty.loopIn.bind(thisProperty), loop_in = loopIn), thisProperty.loopOut && (loopOut = thisProperty.loopOut.bind(thisProperty), loop_out = loopOut), thisProperty.smooth && (smooth = thisProperty.smooth.bind(thisProperty));
|
|
11412
11412
|
function loopInDuration(e, t) {
|
|
@@ -11434,10 +11434,10 @@ function requireLottie() {
|
|
|
11434
11434
|
i === void 0 ? (i = n, a = s) : t = (t - n) / (s - n), t > 1 ? t = 1 : t < 0 && (t = 0);
|
|
11435
11435
|
var o = e(t);
|
|
11436
11436
|
if ($bm_isInstanceOfArray(i)) {
|
|
11437
|
-
var l, c = i.length,
|
|
11437
|
+
var l, c = i.length, u = createTypedArray("float32", c);
|
|
11438
11438
|
for (l = 0; l < c; l += 1)
|
|
11439
|
-
|
|
11440
|
-
return
|
|
11439
|
+
u[l] = (a[l] - i[l]) * o + i[l];
|
|
11440
|
+
return u;
|
|
11441
11441
|
}
|
|
11442
11442
|
return (a - i) * o + i;
|
|
11443
11443
|
}
|
|
@@ -11513,13 +11513,13 @@ function requireLottie() {
|
|
|
11513
11513
|
function o() {
|
|
11514
11514
|
s -= 1, s === 0 && c();
|
|
11515
11515
|
}
|
|
11516
|
-
function l(
|
|
11517
|
-
i.indexOf(
|
|
11516
|
+
function l(u) {
|
|
11517
|
+
i.indexOf(u) === -1 && i.push(u);
|
|
11518
11518
|
}
|
|
11519
11519
|
function c() {
|
|
11520
|
-
var
|
|
11521
|
-
for (
|
|
11522
|
-
i[
|
|
11520
|
+
var u, d = i.length;
|
|
11521
|
+
for (u = 0; u < d; u += 1)
|
|
11522
|
+
i[u].release();
|
|
11523
11523
|
i.length = 0;
|
|
11524
11524
|
}
|
|
11525
11525
|
n.renderer.compInterface = CompExpressionInterface(n.renderer), n.renderer.globalData.projectInterface.registerComposition(n.renderer), n.renderer.globalData.pushExpression = a, n.renderer.globalData.popExpression = o, n.renderer.globalData.registerExpressionProperty = l;
|
|
@@ -11542,9 +11542,9 @@ function requireLottie() {
|
|
|
11542
11542
|
var i = createSizedArray(s.viewData.length), a, o = s.viewData.length;
|
|
11543
11543
|
for (a = 0; a < o; a += 1)
|
|
11544
11544
|
i[a] = new e(s.viewData[a], s.masksProperties[a]);
|
|
11545
|
-
var l = function(
|
|
11545
|
+
var l = function(u) {
|
|
11546
11546
|
for (a = 0; a < o; ) {
|
|
11547
|
-
if (s.masksProperties[a].nm ===
|
|
11547
|
+
if (s.masksProperties[a].nm === u)
|
|
11548
11548
|
return i[a];
|
|
11549
11549
|
a += 1;
|
|
11550
11550
|
}
|
|
@@ -11568,30 +11568,30 @@ function requireLottie() {
|
|
|
11568
11568
|
get: function() {
|
|
11569
11569
|
return l.getVelocityAtTime(l.comp.currentFrame);
|
|
11570
11570
|
}
|
|
11571
|
-
}), o.numKeys = l.keyframes ? l.keyframes.length : 0, o.key = function(
|
|
11571
|
+
}), o.numKeys = l.keyframes ? l.keyframes.length : 0, o.key = function(u) {
|
|
11572
11572
|
if (!o.numKeys)
|
|
11573
11573
|
return 0;
|
|
11574
|
-
var
|
|
11575
|
-
"s" in l.keyframes[
|
|
11576
|
-
var m = c === "unidimensional" ? new Number(
|
|
11577
|
-
return m.time = l.keyframes[
|
|
11574
|
+
var d = "";
|
|
11575
|
+
"s" in l.keyframes[u - 1] ? d = l.keyframes[u - 1].s : "e" in l.keyframes[u - 2] ? d = l.keyframes[u - 2].e : d = l.keyframes[u - 2].s;
|
|
11576
|
+
var m = c === "unidimensional" ? new Number(d) : Object.assign({}, d);
|
|
11577
|
+
return m.time = l.keyframes[u - 1].t / l.elem.comp.globalData.frameRate, m.value = c === "unidimensional" ? d[0] : d, m;
|
|
11578
11578
|
}, o.valueAtTime = l.getValueAtTime, o.speedAtTime = l.getSpeedAtTime, o.velocityAtTime = l.getVelocityAtTime, o.propertyGroup = l.propertyGroup;
|
|
11579
11579
|
}
|
|
11580
11580
|
function s(o) {
|
|
11581
11581
|
(!o || !("pv" in o)) && (o = e);
|
|
11582
|
-
var l = 1 / o.mult, c = o.pv * l,
|
|
11583
|
-
return
|
|
11584
|
-
return o.k && o.getValue(), c = o.v * l,
|
|
11582
|
+
var l = 1 / o.mult, c = o.pv * l, u = new Number(c);
|
|
11583
|
+
return u.value = c, n(u, o, "unidimensional"), function() {
|
|
11584
|
+
return o.k && o.getValue(), c = o.v * l, u.value !== c && (u = new Number(c), u.value = c, u[0] = c, n(u, o, "unidimensional")), u;
|
|
11585
11585
|
};
|
|
11586
11586
|
}
|
|
11587
11587
|
function i(o) {
|
|
11588
11588
|
(!o || !("pv" in o)) && (o = t);
|
|
11589
|
-
var l = 1 / o.mult, c = o.data && o.data.l || o.pv.length,
|
|
11590
|
-
return
|
|
11589
|
+
var l = 1 / o.mult, c = o.data && o.data.l || o.pv.length, u = createTypedArray("float32", c), d = createTypedArray("float32", c);
|
|
11590
|
+
return u.value = d, n(u, o, "multidimensional"), function() {
|
|
11591
11591
|
o.k && o.getValue();
|
|
11592
11592
|
for (var m = 0; m < c; m += 1)
|
|
11593
|
-
|
|
11594
|
-
return
|
|
11593
|
+
d[m] = o.v[m] * l, u[m] = d[m];
|
|
11594
|
+
return u;
|
|
11595
11595
|
};
|
|
11596
11596
|
}
|
|
11597
11597
|
function a() {
|
|
@@ -11679,66 +11679,66 @@ function requireLottie() {
|
|
|
11679
11679
|
}), t;
|
|
11680
11680
|
};
|
|
11681
11681
|
})(), LayerExpressionInterface = /* @__PURE__ */ (function() {
|
|
11682
|
-
function e(
|
|
11683
|
-
var
|
|
11684
|
-
if (
|
|
11685
|
-
var m = this._elem.finalTransform.mProp.getValueAtTime(
|
|
11686
|
-
m.clone(
|
|
11682
|
+
function e(u) {
|
|
11683
|
+
var d = new Matrix();
|
|
11684
|
+
if (u !== void 0) {
|
|
11685
|
+
var m = this._elem.finalTransform.mProp.getValueAtTime(u);
|
|
11686
|
+
m.clone(d);
|
|
11687
11687
|
} else {
|
|
11688
11688
|
var p = this._elem.finalTransform.mProp;
|
|
11689
|
-
p.applyToMatrix(
|
|
11689
|
+
p.applyToMatrix(d);
|
|
11690
11690
|
}
|
|
11691
|
-
return
|
|
11691
|
+
return d;
|
|
11692
11692
|
}
|
|
11693
|
-
function t(
|
|
11694
|
-
var m = this.getMatrix(
|
|
11695
|
-
return m.props[12] = 0, m.props[13] = 0, m.props[14] = 0, this.applyPoint(m,
|
|
11693
|
+
function t(u, d) {
|
|
11694
|
+
var m = this.getMatrix(d);
|
|
11695
|
+
return m.props[12] = 0, m.props[13] = 0, m.props[14] = 0, this.applyPoint(m, u);
|
|
11696
11696
|
}
|
|
11697
|
-
function n(
|
|
11698
|
-
var m = this.getMatrix(
|
|
11699
|
-
return this.applyPoint(m,
|
|
11697
|
+
function n(u, d) {
|
|
11698
|
+
var m = this.getMatrix(d);
|
|
11699
|
+
return this.applyPoint(m, u);
|
|
11700
11700
|
}
|
|
11701
|
-
function s(
|
|
11702
|
-
var m = this.getMatrix(
|
|
11703
|
-
return m.props[12] = 0, m.props[13] = 0, m.props[14] = 0, this.invertPoint(m,
|
|
11701
|
+
function s(u, d) {
|
|
11702
|
+
var m = this.getMatrix(d);
|
|
11703
|
+
return m.props[12] = 0, m.props[13] = 0, m.props[14] = 0, this.invertPoint(m, u);
|
|
11704
11704
|
}
|
|
11705
|
-
function i(
|
|
11706
|
-
var m = this.getMatrix(
|
|
11707
|
-
return this.invertPoint(m,
|
|
11705
|
+
function i(u, d) {
|
|
11706
|
+
var m = this.getMatrix(d);
|
|
11707
|
+
return this.invertPoint(m, u);
|
|
11708
11708
|
}
|
|
11709
|
-
function a(
|
|
11709
|
+
function a(u, d) {
|
|
11710
11710
|
if (this._elem.hierarchy && this._elem.hierarchy.length) {
|
|
11711
11711
|
var m, p = this._elem.hierarchy.length;
|
|
11712
11712
|
for (m = 0; m < p; m += 1)
|
|
11713
|
-
this._elem.hierarchy[m].finalTransform.mProp.applyToMatrix(
|
|
11713
|
+
this._elem.hierarchy[m].finalTransform.mProp.applyToMatrix(u);
|
|
11714
11714
|
}
|
|
11715
|
-
return
|
|
11715
|
+
return u.applyToPointArray(d[0], d[1], d[2] || 0);
|
|
11716
11716
|
}
|
|
11717
|
-
function o(
|
|
11717
|
+
function o(u, d) {
|
|
11718
11718
|
if (this._elem.hierarchy && this._elem.hierarchy.length) {
|
|
11719
11719
|
var m, p = this._elem.hierarchy.length;
|
|
11720
11720
|
for (m = 0; m < p; m += 1)
|
|
11721
|
-
this._elem.hierarchy[m].finalTransform.mProp.applyToMatrix(
|
|
11721
|
+
this._elem.hierarchy[m].finalTransform.mProp.applyToMatrix(u);
|
|
11722
11722
|
}
|
|
11723
|
-
return
|
|
11723
|
+
return u.inversePoint(d);
|
|
11724
11724
|
}
|
|
11725
|
-
function l(
|
|
11726
|
-
var
|
|
11727
|
-
if (
|
|
11725
|
+
function l(u) {
|
|
11726
|
+
var d = new Matrix();
|
|
11727
|
+
if (d.reset(), this._elem.finalTransform.mProp.applyToMatrix(d), this._elem.hierarchy && this._elem.hierarchy.length) {
|
|
11728
11728
|
var m, p = this._elem.hierarchy.length;
|
|
11729
11729
|
for (m = 0; m < p; m += 1)
|
|
11730
|
-
this._elem.hierarchy[m].finalTransform.mProp.applyToMatrix(
|
|
11731
|
-
return
|
|
11730
|
+
this._elem.hierarchy[m].finalTransform.mProp.applyToMatrix(d);
|
|
11731
|
+
return d.inversePoint(u);
|
|
11732
11732
|
}
|
|
11733
|
-
return
|
|
11733
|
+
return d.inversePoint(u);
|
|
11734
11734
|
}
|
|
11735
11735
|
function c() {
|
|
11736
11736
|
return [1, 1, 1, 1];
|
|
11737
11737
|
}
|
|
11738
|
-
return function(
|
|
11739
|
-
var
|
|
11738
|
+
return function(u) {
|
|
11739
|
+
var d;
|
|
11740
11740
|
function m(v) {
|
|
11741
|
-
b.mask = new MaskManagerInterface(v,
|
|
11741
|
+
b.mask = new MaskManagerInterface(v, u);
|
|
11742
11742
|
}
|
|
11743
11743
|
function p(v) {
|
|
11744
11744
|
b.effect = v;
|
|
@@ -11754,7 +11754,7 @@ function requireLottie() {
|
|
|
11754
11754
|
case "Transform":
|
|
11755
11755
|
case "transform":
|
|
11756
11756
|
case "ADBE Transform Group":
|
|
11757
|
-
return
|
|
11757
|
+
return d;
|
|
11758
11758
|
case 4:
|
|
11759
11759
|
case "ADBE Effect Parade":
|
|
11760
11760
|
case "effects":
|
|
@@ -11766,36 +11766,36 @@ function requireLottie() {
|
|
|
11766
11766
|
return null;
|
|
11767
11767
|
}
|
|
11768
11768
|
}
|
|
11769
|
-
b.getMatrix = e, b.invertPoint = o, b.applyPoint = a, b.toWorld = n, b.toWorldVec = t, b.fromWorld = i, b.fromWorldVec = s, b.toComp = n, b.fromComp = l, b.sampleImage = c, b.sourceRectAtTime =
|
|
11770
|
-
var f = getDescriptor(
|
|
11769
|
+
b.getMatrix = e, b.invertPoint = o, b.applyPoint = a, b.toWorld = n, b.toWorldVec = t, b.fromWorld = i, b.fromWorldVec = s, b.toComp = n, b.fromComp = l, b.sampleImage = c, b.sourceRectAtTime = u.sourceRectAtTime.bind(u), b._elem = u, d = TransformExpressionInterface(u.finalTransform.mProp);
|
|
11770
|
+
var f = getDescriptor(d, "anchorPoint");
|
|
11771
11771
|
return Object.defineProperties(b, {
|
|
11772
11772
|
hasParent: {
|
|
11773
11773
|
get: function() {
|
|
11774
|
-
return
|
|
11774
|
+
return u.hierarchy.length;
|
|
11775
11775
|
}
|
|
11776
11776
|
},
|
|
11777
11777
|
parent: {
|
|
11778
11778
|
get: function() {
|
|
11779
|
-
return
|
|
11779
|
+
return u.hierarchy[0].layerInterface;
|
|
11780
11780
|
}
|
|
11781
11781
|
},
|
|
11782
|
-
rotation: getDescriptor(
|
|
11783
|
-
scale: getDescriptor(
|
|
11784
|
-
position: getDescriptor(
|
|
11785
|
-
opacity: getDescriptor(
|
|
11782
|
+
rotation: getDescriptor(d, "rotation"),
|
|
11783
|
+
scale: getDescriptor(d, "scale"),
|
|
11784
|
+
position: getDescriptor(d, "position"),
|
|
11785
|
+
opacity: getDescriptor(d, "opacity"),
|
|
11786
11786
|
anchorPoint: f,
|
|
11787
11787
|
anchor_point: f,
|
|
11788
11788
|
transform: {
|
|
11789
11789
|
get: function() {
|
|
11790
|
-
return
|
|
11790
|
+
return d;
|
|
11791
11791
|
}
|
|
11792
11792
|
},
|
|
11793
11793
|
active: {
|
|
11794
11794
|
get: function() {
|
|
11795
|
-
return
|
|
11795
|
+
return u.isInRange;
|
|
11796
11796
|
}
|
|
11797
11797
|
}
|
|
11798
|
-
}), b.startTime =
|
|
11798
|
+
}), b.startTime = u.data.st, b.index = u.data.ind, b.source = u.data.refId, b.height = u.data.ty === 0 ? u.data.h : 100, b.width = u.data.ty === 0 ? u.data.w : 100, b.inPoint = u.data.ip / u.comp.globalData.frameRate, b.outPoint = u.data.op / u.comp.globalData.frameRate, b._name = u.data.nm, b.registerMaskInterface = m, b.registerEffectsInterface = p, b;
|
|
11799
11799
|
};
|
|
11800
11800
|
})(), propertyGroupFactory = /* @__PURE__ */ (function() {
|
|
11801
11801
|
return function(e, t) {
|
|
@@ -11819,12 +11819,12 @@ function requireLottie() {
|
|
|
11819
11819
|
};
|
|
11820
11820
|
function t(i, a) {
|
|
11821
11821
|
if (i.effectsManager) {
|
|
11822
|
-
var o = [], l = i.data.ef, c,
|
|
11823
|
-
for (c = 0; c <
|
|
11822
|
+
var o = [], l = i.data.ef, c, u = i.effectsManager.effectElements.length;
|
|
11823
|
+
for (c = 0; c < u; c += 1)
|
|
11824
11824
|
o.push(n(l[c], i.effectsManager.effectElements[c], a, i));
|
|
11825
|
-
var
|
|
11826
|
-
for (c = 0,
|
|
11827
|
-
if (b ===
|
|
11825
|
+
var d = i.data.ef || [], m = function(b) {
|
|
11826
|
+
for (c = 0, u = d.length; c < u; ) {
|
|
11827
|
+
if (b === d[c].nm || b === d[c].mn || b === d[c].ix)
|
|
11828
11828
|
return o[c];
|
|
11829
11829
|
c += 1;
|
|
11830
11830
|
}
|
|
@@ -11832,7 +11832,7 @@ function requireLottie() {
|
|
|
11832
11832
|
};
|
|
11833
11833
|
return Object.defineProperty(m, "numProperties", {
|
|
11834
11834
|
get: function() {
|
|
11835
|
-
return
|
|
11835
|
+
return d.length;
|
|
11836
11836
|
}
|
|
11837
11837
|
}), m;
|
|
11838
11838
|
}
|
|
@@ -11842,17 +11842,17 @@ function requireLottie() {
|
|
|
11842
11842
|
function c(b) {
|
|
11843
11843
|
for (var f = i.ef, v = 0, k = f.length; v < k; ) {
|
|
11844
11844
|
if (b === f[v].nm || b === f[v].mn || b === f[v].ix)
|
|
11845
|
-
return f[v].ty === 5 ?
|
|
11845
|
+
return f[v].ty === 5 ? d[v] : d[v]();
|
|
11846
11846
|
v += 1;
|
|
11847
11847
|
}
|
|
11848
11848
|
throw new Error();
|
|
11849
11849
|
}
|
|
11850
|
-
var
|
|
11850
|
+
var u = propertyGroupFactory(c, o), d = [], m, p = i.ef.length;
|
|
11851
11851
|
for (m = 0; m < p; m += 1)
|
|
11852
|
-
i.ef[m].ty === 5 ?
|
|
11852
|
+
i.ef[m].ty === 5 ? d.push(n(i.ef[m], a.effectElements[m], a.effectElements[m].propertyGroup, l)) : d.push(s(a.effectElements[m], i.ef[m].ty, l, u));
|
|
11853
11853
|
return i.mn === "ADBE Color Control" && Object.defineProperty(c, "color", {
|
|
11854
11854
|
get: function() {
|
|
11855
|
-
return
|
|
11855
|
+
return d[0]();
|
|
11856
11856
|
}
|
|
11857
11857
|
}), Object.defineProperties(c, {
|
|
11858
11858
|
numProperties: {
|
|
@@ -11864,16 +11864,16 @@ function requireLottie() {
|
|
|
11864
11864
|
value: i.nm
|
|
11865
11865
|
},
|
|
11866
11866
|
propertyGroup: {
|
|
11867
|
-
value:
|
|
11867
|
+
value: u
|
|
11868
11868
|
}
|
|
11869
11869
|
}), c.enabled = i.en !== 0, c.active = c.enabled, c;
|
|
11870
11870
|
}
|
|
11871
11871
|
function s(i, a, o, l) {
|
|
11872
11872
|
var c = ExpressionPropertyInterface(i.p);
|
|
11873
|
-
function
|
|
11873
|
+
function u() {
|
|
11874
11874
|
return a === 10 ? o.comp.compInterface(i.p.v) : c();
|
|
11875
11875
|
}
|
|
11876
|
-
return i.p.setGroupProperty && i.p.setGroupProperty(PropertyInterface("", l)),
|
|
11876
|
+
return i.p.setGroupProperty && i.p.setGroupProperty(PropertyInterface("", l)), u;
|
|
11877
11877
|
}
|
|
11878
11878
|
return e;
|
|
11879
11879
|
})(), ShapePathInterface = /* @__PURE__ */ (function() {
|
|
@@ -11915,7 +11915,7 @@ function requireLottie() {
|
|
|
11915
11915
|
function e(f, v, k) {
|
|
11916
11916
|
var y = [], x, g = f ? f.length : 0;
|
|
11917
11917
|
for (x = 0; x < g; x += 1)
|
|
11918
|
-
f[x].ty === "gr" ? y.push(n(f[x], v[x], k)) : f[x].ty === "fl" ? y.push(s(f[x], v[x], k)) : f[x].ty === "st" ? y.push(o(f[x], v[x], k)) : f[x].ty === "tm" ? y.push(l(f[x], v[x], k)) : f[x].ty === "tr" || (f[x].ty === "el" ? y.push(
|
|
11918
|
+
f[x].ty === "gr" ? y.push(n(f[x], v[x], k)) : f[x].ty === "fl" ? y.push(s(f[x], v[x], k)) : f[x].ty === "st" ? y.push(o(f[x], v[x], k)) : f[x].ty === "tm" ? y.push(l(f[x], v[x], k)) : f[x].ty === "tr" || (f[x].ty === "el" ? y.push(u(f[x], v[x], k)) : f[x].ty === "sr" ? y.push(d(f[x], v[x], k)) : f[x].ty === "sh" ? y.push(ShapePathInterface(f[x], v[x], k)) : f[x].ty === "rc" ? y.push(m(f[x], v[x], k)) : f[x].ty === "rd" ? y.push(p(f[x], v[x], k)) : f[x].ty === "rp" ? y.push(b(f[x], v[x], k)) : f[x].ty === "gf" ? y.push(i(f[x], v[x], k)) : y.push(a(f[x], v[x])));
|
|
11919
11919
|
return y;
|
|
11920
11920
|
}
|
|
11921
11921
|
function t(f, v, k) {
|
|
@@ -12093,7 +12093,7 @@ function requireLottie() {
|
|
|
12093
12093
|
}
|
|
12094
12094
|
}), y.ty = "tr", y.mn = f.mn, y.propertyGroup = k, y;
|
|
12095
12095
|
}
|
|
12096
|
-
function
|
|
12096
|
+
function u(f, v, k) {
|
|
12097
12097
|
function y(C) {
|
|
12098
12098
|
return f.p.ix === C ? y.position : f.s.ix === C ? y.size : null;
|
|
12099
12099
|
}
|
|
@@ -12112,7 +12112,7 @@ function requireLottie() {
|
|
|
12112
12112
|
}
|
|
12113
12113
|
}), y.mn = f.mn, y;
|
|
12114
12114
|
}
|
|
12115
|
-
function
|
|
12115
|
+
function d(f, v, k) {
|
|
12116
12116
|
function y(C) {
|
|
12117
12117
|
return f.p.ix === C ? y.position : f.r.ix === C ? y.rotation : f.pt.ix === C ? y.points : f.or.ix === C || C === "ADBE Vector Star Outer Radius" ? y.outerRadius : f.os.ix === C ? y.outerRoundness : f.ir && (f.ir.ix === C || C === "ADBE Vector Star Inner Radius") ? y.innerRadius : f.is && f.is.ix === C ? y.innerRoundness : null;
|
|
12118
12118
|
}
|
|
@@ -12250,10 +12250,10 @@ function requireLottie() {
|
|
|
12250
12250
|
function l(c) {
|
|
12251
12251
|
if (a[c])
|
|
12252
12252
|
return i = c, a = a[c], _typeof(a) === "object" ? l : a;
|
|
12253
|
-
var
|
|
12254
|
-
if (
|
|
12255
|
-
var
|
|
12256
|
-
return a = a[
|
|
12253
|
+
var u = c.indexOf(i);
|
|
12254
|
+
if (u !== -1) {
|
|
12255
|
+
var d = parseInt(c.substr(u + i.length), 10);
|
|
12256
|
+
return a = a[d], _typeof(a) === "object" ? l : a;
|
|
12257
12257
|
}
|
|
12258
12258
|
return "";
|
|
12259
12259
|
}
|
|
@@ -12289,28 +12289,28 @@ function requireLottie() {
|
|
|
12289
12289
|
return o *= this.elem.globalData.frameRate, o -= this.offsetTime, o !== this._cachingAtTime.lastFrame && (this._cachingAtTime.lastIndex = this._cachingAtTime.lastFrame < o ? this._cachingAtTime.lastIndex : 0, this._cachingAtTime.value = this.interpolateValue(o, this._cachingAtTime), this._cachingAtTime.lastFrame = o), this._cachingAtTime.value;
|
|
12290
12290
|
}
|
|
12291
12291
|
function n(o) {
|
|
12292
|
-
var l = -0.01, c = this.getValueAtTime(o),
|
|
12292
|
+
var l = -0.01, c = this.getValueAtTime(o), u = this.getValueAtTime(o + l), d = 0;
|
|
12293
12293
|
if (c.length) {
|
|
12294
12294
|
var m;
|
|
12295
12295
|
for (m = 0; m < c.length; m += 1)
|
|
12296
|
-
|
|
12297
|
-
|
|
12296
|
+
d += Math.pow(u[m] - c[m], 2);
|
|
12297
|
+
d = Math.sqrt(d) * 100;
|
|
12298
12298
|
} else
|
|
12299
|
-
|
|
12300
|
-
return
|
|
12299
|
+
d = 0;
|
|
12300
|
+
return d;
|
|
12301
12301
|
}
|
|
12302
12302
|
function s(o) {
|
|
12303
12303
|
if (this.vel !== void 0)
|
|
12304
12304
|
return this.vel;
|
|
12305
|
-
var l = -1e-3, c = this.getValueAtTime(o),
|
|
12305
|
+
var l = -1e-3, c = this.getValueAtTime(o), u = this.getValueAtTime(o + l), d;
|
|
12306
12306
|
if (c.length) {
|
|
12307
|
-
|
|
12307
|
+
d = createTypedArray("float32", c.length);
|
|
12308
12308
|
var m;
|
|
12309
12309
|
for (m = 0; m < c.length; m += 1)
|
|
12310
|
-
|
|
12310
|
+
d[m] = (u[m] - c[m]) / l;
|
|
12311
12311
|
} else
|
|
12312
|
-
|
|
12313
|
-
return
|
|
12312
|
+
d = (u - c) / l;
|
|
12313
|
+
return d;
|
|
12314
12314
|
}
|
|
12315
12315
|
function i() {
|
|
12316
12316
|
return this.pv;
|
|
@@ -12479,10 +12479,10 @@ function requireLottie() {
|
|
|
12479
12479
|
lastTime: initialDefaultFrame
|
|
12480
12480
|
}), p *= this.elem.globalData.frameRate, p -= this.offsetTime, p !== this._cachingAtTime.lastTime && (this._cachingAtTime.lastIndex = this._cachingAtTime.lastTime < p ? this._caching.lastIndex : 0, this._cachingAtTime.lastTime = p, this.interpolateShape(p, this._cachingAtTime.shapeValue, this._cachingAtTime)), this._cachingAtTime.shapeValue;
|
|
12481
12481
|
}
|
|
12482
|
-
var c = ShapePropertyFactory.getConstructorFunction(),
|
|
12483
|
-
function
|
|
12482
|
+
var c = ShapePropertyFactory.getConstructorFunction(), u = ShapePropertyFactory.getKeyframedConstructorFunction();
|
|
12483
|
+
function d() {
|
|
12484
12484
|
}
|
|
12485
|
-
|
|
12485
|
+
d.prototype = {
|
|
12486
12486
|
vertices: function(b, f) {
|
|
12487
12487
|
this.k && this.getValue();
|
|
12488
12488
|
var v = this.v;
|
|
@@ -12534,7 +12534,7 @@ function requireLottie() {
|
|
|
12534
12534
|
},
|
|
12535
12535
|
setGroupProperty: expressionHelpers.setGroupProperty,
|
|
12536
12536
|
getValueAtTime: expressionHelpers.getStaticValueAtTime
|
|
12537
|
-
}, extendPrototype([
|
|
12537
|
+
}, extendPrototype([d], c), extendPrototype([d], u), u.prototype.getValueAtTime = l, u.prototype.initiateExpression = ExpressionManager.initiateExpression;
|
|
12538
12538
|
var m = ShapePropertyFactory.getShapeProp;
|
|
12539
12539
|
ShapePropertyFactory.getShapeProp = function(p, b, f, v, k) {
|
|
12540
12540
|
var y = m(p, b, f, v, k);
|
|
@@ -12633,7 +12633,7 @@ function requireLottie() {
|
|
|
12633
12633
|
if (this.filterManager.effectElements[7].p.v !== 0 || this.filterManager.effectElements[8].p.v !== 100) {
|
|
12634
12634
|
var o = Math.min(this.filterManager.effectElements[7].p.v, this.filterManager.effectElements[8].p.v) * 0.01, l = Math.max(this.filterManager.effectElements[7].p.v, this.filterManager.effectElements[8].p.v) * 0.01, c = i.getTotalLength();
|
|
12635
12635
|
a = "0 0 0 " + c * o + " ";
|
|
12636
|
-
var
|
|
12636
|
+
var u = c * (l - o), d = 1 + this.filterManager.effectElements[4].p.v * 2 * this.filterManager.effectElements[9].p.v * 0.01, m = Math.floor(u / d), p;
|
|
12637
12637
|
for (p = 0; p < m; p += 1)
|
|
12638
12638
|
a += "1 " + this.filterManager.effectElements[4].p.v * 2 * this.filterManager.effectElements[9].p.v * 0.01 + " ";
|
|
12639
12639
|
a += "0 " + c * 10 + " 0 0";
|
|
@@ -12674,11 +12674,11 @@ function requireLottie() {
|
|
|
12674
12674
|
var n = createNS(e);
|
|
12675
12675
|
return n.setAttribute("type", "table"), t.appendChild(n), n;
|
|
12676
12676
|
}, SVGProLevelsFilter.prototype.getTableValue = function(e, t, n, s, i) {
|
|
12677
|
-
for (var a = 0, o = 256, l, c = Math.min(e, t),
|
|
12677
|
+
for (var a = 0, o = 256, l, c = Math.min(e, t), u = Math.max(e, t), d = Array.call(null, {
|
|
12678
12678
|
length: o
|
|
12679
12679
|
}), m, p = 0, b = i - s, f = t - e; a <= 256; )
|
|
12680
|
-
l = a / 256, l <= c ? m = f < 0 ? i : s : l >=
|
|
12681
|
-
return
|
|
12680
|
+
l = a / 256, l <= c ? m = f < 0 ? i : s : l >= u ? m = f < 0 ? s : i : m = s + b * Math.pow((l - e) / f, 1 / n), d[p] = m, p += 1, a += 256 / (o - 1);
|
|
12681
|
+
return d.join(" ");
|
|
12682
12682
|
}, SVGProLevelsFilter.prototype.renderFrame = function(e) {
|
|
12683
12683
|
if (e || this.filterManager._mdf) {
|
|
12684
12684
|
var t, n = this.filterManager.effectElements;
|
|
@@ -12692,10 +12692,10 @@ function requireLottie() {
|
|
|
12692
12692
|
l.setAttribute("in", "SourceAlpha"), l.setAttribute("result", s + "_drop_shadow_1"), l.setAttribute("stdDeviation", "0"), this.feGaussianBlur = l, e.appendChild(l);
|
|
12693
12693
|
var c = createNS("feOffset");
|
|
12694
12694
|
c.setAttribute("dx", "25"), c.setAttribute("dy", "0"), c.setAttribute("in", s + "_drop_shadow_1"), c.setAttribute("result", s + "_drop_shadow_2"), this.feOffset = c, e.appendChild(c);
|
|
12695
|
-
var
|
|
12696
|
-
|
|
12697
|
-
var
|
|
12698
|
-
|
|
12695
|
+
var u = createNS("feFlood");
|
|
12696
|
+
u.setAttribute("flood-color", "#00ff00"), u.setAttribute("flood-opacity", "1"), u.setAttribute("result", s + "_drop_shadow_3"), this.feFlood = u, e.appendChild(u);
|
|
12697
|
+
var d = createNS("feComposite");
|
|
12698
|
+
d.setAttribute("in", s + "_drop_shadow_3"), d.setAttribute("in2", s + "_drop_shadow_2"), d.setAttribute("operator", "in"), d.setAttribute("result", s + "_drop_shadow_4"), e.appendChild(d);
|
|
12699
12699
|
var m = this.createMergeNode(s, [s + "_drop_shadow_4", i]);
|
|
12700
12700
|
e.appendChild(m);
|
|
12701
12701
|
}
|
|
@@ -12770,8 +12770,8 @@ function requireLottie() {
|
|
|
12770
12770
|
this.effectsManager = e, this.type = effectTypes.TRANSFORM_EFFECT, this.matrix = new Matrix(), this.opacity = -1, this._mdf = !1, this._opMdf = !1;
|
|
12771
12771
|
}, TransformEffect.prototype.renderFrame = function(e) {
|
|
12772
12772
|
if (this._opMdf = !1, this._mdf = !1, e || this.effectsManager._mdf) {
|
|
12773
|
-
var t = this.effectsManager.effectElements, n = t[0].p.v, s = t[1].p.v, i = t[2].p.v === 1, a = t[3].p.v, o = i ? a : t[4].p.v, l = t[5].p.v, c = t[6].p.v,
|
|
12774
|
-
this.matrix.reset(), this.matrix.translate(-n[0], -n[1], n[2]), this.matrix.scale(o * 0.01, a * 0.01, 1), this.matrix.rotate(-
|
|
12773
|
+
var t = this.effectsManager.effectElements, n = t[0].p.v, s = t[1].p.v, i = t[2].p.v === 1, a = t[3].p.v, o = i ? a : t[4].p.v, l = t[5].p.v, c = t[6].p.v, u = t[7].p.v;
|
|
12774
|
+
this.matrix.reset(), this.matrix.translate(-n[0], -n[1], n[2]), this.matrix.scale(o * 0.01, a * 0.01, 1), this.matrix.rotate(-u * degToRads), this.matrix.skewFromAxis(-l * degToRads, (c + 90) * degToRads), this.matrix.translate(s[0], s[1], 0), this._mdf = !0, this.opacity !== t[8].p.v && (this.opacity = t[8].p.v, this._opMdf = !0);
|
|
12775
12775
|
}
|
|
12776
12776
|
};
|
|
12777
12777
|
function SVGTransformEffect(e, t) {
|
|
@@ -12834,9 +12834,9 @@ var script = {
|
|
|
12834
12834
|
}
|
|
12835
12835
|
}
|
|
12836
12836
|
};
|
|
12837
|
-
function normalizeComponent(e, t, n, s, i, a, o, l, c,
|
|
12838
|
-
var
|
|
12839
|
-
return e && e.render && (
|
|
12837
|
+
function normalizeComponent(e, t, n, s, i, a, o, l, c, u) {
|
|
12838
|
+
var d = typeof n == "function" ? n.options : n;
|
|
12839
|
+
return e && e.render && (d.render = e.render, d.staticRenderFns = e.staticRenderFns, d._compiled = !0), n;
|
|
12840
12840
|
}
|
|
12841
12841
|
var __vue_script__ = script, __vue_render__ = function() {
|
|
12842
12842
|
var e = this, t = e.$createElement, n = e._self._c || t;
|
|
@@ -12891,7 +12891,7 @@ const _hoisted_1$f = ["title", "aria-label", "role"], _hoisted_2$e = {
|
|
|
12891
12891
|
},
|
|
12892
12892
|
emits: ["load", "ready", "play", "pause", "stop", "complete", "loopComplete", "enterFrame", "error", "mouseOver", "mouseOut"],
|
|
12893
12893
|
setup(e, { expose: t, emit: n }) {
|
|
12894
|
-
const s = e, i = n, a = ref(!1), o = ref(!1), l = ref(!1), c = ref(s.autoplay),
|
|
12894
|
+
const s = e, i = n, a = ref(!1), o = ref(!1), l = ref(!1), c = ref(s.autoplay), u = ref(null), d = ref(), m = computed(() => ({
|
|
12895
12895
|
path: s.path,
|
|
12896
12896
|
animationData: s.animationData,
|
|
12897
12897
|
loop: s.loop,
|
|
@@ -12912,21 +12912,21 @@ const _hoisted_1$f = ["title", "aria-label", "role"], _hoisted_2$e = {
|
|
|
12912
12912
|
},
|
|
12913
12913
|
s.containerClassName
|
|
12914
12914
|
)), f = computed(() => cn("w-full h-full", s.className)), v = () => {
|
|
12915
|
-
|
|
12915
|
+
d.value && !c.value && (d.value.play(), c.value = !0, i("play"));
|
|
12916
12916
|
}, k = () => {
|
|
12917
|
-
|
|
12917
|
+
d.value && c.value && (d.value.pause(), c.value = !1, i("pause"));
|
|
12918
12918
|
}, y = () => {
|
|
12919
|
-
|
|
12919
|
+
d.value && (d.value.stop(), c.value = !1, i("stop"));
|
|
12920
12920
|
}, x = (L) => {
|
|
12921
|
-
|
|
12921
|
+
d.value && d.value.goToAndStop(L || 0, !0);
|
|
12922
12922
|
}, g = (L) => {
|
|
12923
|
-
|
|
12923
|
+
d.value && d.value.setDirection(L);
|
|
12924
12924
|
}, C = (L) => {
|
|
12925
|
-
|
|
12925
|
+
d.value && d.value.setSpeed(L);
|
|
12926
12926
|
}, S = () => {
|
|
12927
12927
|
l.value = !0, a.value = !1, i("ready");
|
|
12928
12928
|
}, _ = () => {
|
|
12929
|
-
a.value = !1, o.value = !0,
|
|
12929
|
+
a.value = !1, o.value = !0, u.value = "Failed to load animation", i("error", new Error("Animation data failed to load"));
|
|
12930
12930
|
}, T = () => {
|
|
12931
12931
|
i("load");
|
|
12932
12932
|
}, P = () => {
|
|
@@ -12970,12 +12970,12 @@ const _hoisted_1$f = ["title", "aria-label", "role"], _hoisted_2$e = {
|
|
|
12970
12970
|
z[0] || (z[0] = createElementVNode("div", { class: "animate-spin rounded-full h-8 w-8 border-b-2 border-primary" }, null, -1)),
|
|
12971
12971
|
e.placeholder ? (openBlock(), createElementBlock("span", _hoisted_3$d, toDisplayString(e.placeholder), 1)) : createCommentVNode("", !0)
|
|
12972
12972
|
])) : o.value ? (openBlock(), createElementBlock("div", _hoisted_4$b, [
|
|
12973
|
-
createElementVNode("div", _hoisted_5$9, toDisplayString(
|
|
12973
|
+
createElementVNode("div", _hoisted_5$9, toDisplayString(u.value || "Failed to load animation"), 1)
|
|
12974
12974
|
])) : createCommentVNode("", !0),
|
|
12975
12975
|
e.path || e.animationData ? (openBlock(), createBlock(unref(__vue_component__), {
|
|
12976
12976
|
key: 2,
|
|
12977
12977
|
ref_key: "lottieRef",
|
|
12978
|
-
ref:
|
|
12978
|
+
ref: d,
|
|
12979
12979
|
options: m.value,
|
|
12980
12980
|
width: e.width,
|
|
12981
12981
|
height: e.height,
|
|
@@ -13018,27 +13018,27 @@ const _hoisted_1$f = ["title", "aria-label", "role"], _hoisted_2$e = {
|
|
|
13018
13018
|
const t = e, n = computed(() => {
|
|
13019
13019
|
if (t.icon)
|
|
13020
13020
|
return null;
|
|
13021
|
-
const
|
|
13022
|
-
return
|
|
13021
|
+
const c = t.title?.toLowerCase() || "";
|
|
13022
|
+
return c.includes("search") || c.includes("find") || c.includes("result") ? Search : c.includes("empty") || c.includes("no") || c.includes("data") ? FileX : c.includes("message") || c.includes("notification") || c.includes("alert") ? Inbox : c.includes("error") || c.includes("warning") ? AlertCircle : Info;
|
|
13023
13023
|
}), s = computed(() => typeof t.icon == "object" ? t.icon : typeof t.icon == "string" && {
|
|
13024
13024
|
"file-x": FileX,
|
|
13025
13025
|
search: Search,
|
|
13026
|
-
inbox:
|
|
13026
|
+
inbox: Inbox,
|
|
13027
13027
|
"alert-circle": AlertCircle,
|
|
13028
13028
|
info: Info
|
|
13029
13029
|
}[t.icon] || n.value), i = computed(() => {
|
|
13030
|
-
const
|
|
13030
|
+
const c = {
|
|
13031
13031
|
default: "p-8",
|
|
13032
13032
|
sm: "p-4",
|
|
13033
13033
|
lg: "p-12"
|
|
13034
|
-
},
|
|
13034
|
+
}, u = {
|
|
13035
13035
|
default: "text-foreground",
|
|
13036
13036
|
muted: "text-muted-foreground"
|
|
13037
13037
|
};
|
|
13038
13038
|
return cn(
|
|
13039
13039
|
"flex flex-col items-center justify-center text-center",
|
|
13040
|
-
|
|
13041
|
-
|
|
13040
|
+
c[t.size],
|
|
13041
|
+
u[t.variant],
|
|
13042
13042
|
t.class
|
|
13043
13043
|
);
|
|
13044
13044
|
}), a = computed(() => cn("text-muted-foreground", {
|
|
@@ -13059,12 +13059,12 @@ const _hoisted_1$f = ["title", "aria-label", "role"], _hoisted_2$e = {
|
|
|
13059
13059
|
"text-muted-foreground/70": t.variant === "muted"
|
|
13060
13060
|
},
|
|
13061
13061
|
t.descriptionClass
|
|
13062
|
-
))
|
|
13063
|
-
return (
|
|
13062
|
+
));
|
|
13063
|
+
return (c, u) => (openBlock(), createElementBlock("div", {
|
|
13064
13064
|
class: normalizeClass(i.value)
|
|
13065
13065
|
}, [
|
|
13066
13066
|
createElementVNode("div", _hoisted_1$e, [
|
|
13067
|
-
renderSlot(
|
|
13067
|
+
renderSlot(c.$slots, "icon", {}, () => [
|
|
13068
13068
|
e.lottiePath || e.lottieData ? (openBlock(), createBlock(unref(_sfc_main$w), {
|
|
13069
13069
|
key: 0,
|
|
13070
13070
|
path: e.lottiePath,
|
|
@@ -13075,33 +13075,33 @@ const _hoisted_1$f = ["title", "aria-label", "role"], _hoisted_2$e = {
|
|
|
13075
13075
|
title: e.animationTitle || e.title,
|
|
13076
13076
|
"play-on-hover": !0,
|
|
13077
13077
|
"stop-on-hover-out": !0
|
|
13078
|
-
}, null, 8, ["path", "animation-data", "class", "title"])) : s.value && !c.
|
|
13078
|
+
}, null, 8, ["path", "animation-data", "class", "title"])) : s.value && !c.$slots.icon ? (openBlock(), createBlock(resolveDynamicComponent(s.value), {
|
|
13079
13079
|
key: 1,
|
|
13080
13080
|
class: normalizeClass(a.value)
|
|
13081
13081
|
}, null, 8, ["class"])) : createCommentVNode("", !0)
|
|
13082
13082
|
])
|
|
13083
13083
|
]),
|
|
13084
|
-
e.title ||
|
|
13084
|
+
e.title || c.$slots.title ? (openBlock(), createElementBlock("h3", {
|
|
13085
13085
|
key: 0,
|
|
13086
13086
|
class: normalizeClass(o.value)
|
|
13087
13087
|
}, [
|
|
13088
|
-
renderSlot(
|
|
13088
|
+
renderSlot(c.$slots, "title", {}, () => [
|
|
13089
13089
|
createTextVNode(toDisplayString(e.title), 1)
|
|
13090
13090
|
])
|
|
13091
13091
|
], 2)) : createCommentVNode("", !0),
|
|
13092
|
-
|
|
13092
|
+
c.$slots.description || e.description ? (openBlock(), createElementBlock("div", {
|
|
13093
13093
|
key: 1,
|
|
13094
13094
|
class: normalizeClass(l.value)
|
|
13095
13095
|
}, [
|
|
13096
|
-
renderSlot(
|
|
13096
|
+
renderSlot(c.$slots, "description", {}, () => [
|
|
13097
13097
|
createElementVNode("p", null, toDisplayString(e.description), 1)
|
|
13098
13098
|
])
|
|
13099
13099
|
], 2)) : createCommentVNode("", !0),
|
|
13100
|
-
|
|
13101
|
-
renderSlot(
|
|
13100
|
+
c.$slots.actions ? (openBlock(), createElementBlock("div", _hoisted_2$d, [
|
|
13101
|
+
renderSlot(c.$slots, "actions")
|
|
13102
13102
|
])) : createCommentVNode("", !0),
|
|
13103
|
-
|
|
13104
|
-
renderSlot(
|
|
13103
|
+
c.$slots.extra ? (openBlock(), createElementBlock("div", _hoisted_3$c, [
|
|
13104
|
+
renderSlot(c.$slots, "extra")
|
|
13105
13105
|
])) : createCommentVNode("", !0)
|
|
13106
13106
|
], 2));
|
|
13107
13107
|
}
|
|
@@ -13149,7 +13149,7 @@ const _hoisted_1$f = ["title", "aria-label", "role"], _hoisted_2$e = {
|
|
|
13149
13149
|
info: "border-blue-500/50 text-blue-800 dark:border-blue-500 [&>svg]:text-blue-500 dark:text-blue-400"
|
|
13150
13150
|
}[n.variant], {
|
|
13151
13151
|
"opacity-75": n.lowContrast
|
|
13152
|
-
}, n.class)), o = computed(() => n.variant === "destructive" || n.variant === "warning" ? "alert" : "status"), l = computed(() => n.variant === "destructive" ? "assertive" : "polite"), c = computed(() => n.title || $slots.title),
|
|
13152
|
+
}, n.class)), o = computed(() => n.variant === "destructive" || n.variant === "warning" ? "alert" : "status"), l = computed(() => n.variant === "destructive" ? "assertive" : "polite"), c = computed(() => n.title || $slots.title), u = computed(() => n.description || $slots.description), d = computed(() => n.actionLabel), m = computed(() => n.timer), p = computed(() => n.loading), b = computed(() => n.showCloseButton && !p.value);
|
|
13153
13153
|
return (f, v) => (openBlock(), createElementBlock("div", {
|
|
13154
13154
|
class: normalizeClass(a.value),
|
|
13155
13155
|
role: o.value,
|
|
@@ -13169,17 +13169,17 @@ const _hoisted_1$f = ["title", "aria-label", "role"], _hoisted_2$e = {
|
|
|
13169
13169
|
createTextVNode(toDisplayString(e.title), 1)
|
|
13170
13170
|
])
|
|
13171
13171
|
])) : createCommentVNode("", !0),
|
|
13172
|
-
|
|
13172
|
+
u.value ? (openBlock(), createElementBlock("p", {
|
|
13173
13173
|
key: 1,
|
|
13174
13174
|
class: normalizeClass(unref(cn)("text-sm opacity-90", {
|
|
13175
|
-
"mr-12":
|
|
13175
|
+
"mr-12": d.value || b.value || m.value || p.value
|
|
13176
13176
|
}))
|
|
13177
13177
|
}, [
|
|
13178
13178
|
renderSlot(f.$slots, "description", {}, () => [
|
|
13179
13179
|
createTextVNode(toDisplayString(e.description), 1)
|
|
13180
13180
|
])
|
|
13181
13181
|
], 2)) : createCommentVNode("", !0),
|
|
13182
|
-
|
|
13182
|
+
d.value ? (openBlock(), createElementBlock("button", {
|
|
13183
13183
|
key: 2,
|
|
13184
13184
|
type: "button",
|
|
13185
13185
|
class: "inline-flex items-center text-sm font-medium underline underline-offset-2 hover:no-underline focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 rounded-sm",
|
|
@@ -13281,7 +13281,7 @@ const _hoisted_1$f = ["title", "aria-label", "role"], _hoisted_2$e = {
|
|
|
13281
13281
|
"text-foreground": e.variant === "default"
|
|
13282
13282
|
}
|
|
13283
13283
|
)),
|
|
13284
|
-
onClick: c[0] || (c[0] = (
|
|
13284
|
+
onClick: c[0] || (c[0] = (u) => s("action"))
|
|
13285
13285
|
}, toDisplayString(e.actionLabel), 3)) : createCommentVNode("", !0)
|
|
13286
13286
|
]),
|
|
13287
13287
|
e.showCloseButton ? (openBlock(), createElementBlock("button", {
|
|
@@ -13295,7 +13295,7 @@ const _hoisted_1$f = ["title", "aria-label", "role"], _hoisted_2$e = {
|
|
|
13295
13295
|
"text-white/50 hover:text-white": ["warning", "success", "info"].includes(e.variant)
|
|
13296
13296
|
}
|
|
13297
13297
|
)),
|
|
13298
|
-
onClick: c[1] || (c[1] = (
|
|
13298
|
+
onClick: c[1] || (c[1] = (u) => s("close"))
|
|
13299
13299
|
}, [
|
|
13300
13300
|
createVNode(unref(X), { class: "h-4 w-4" })
|
|
13301
13301
|
], 10, _hoisted_4$9)) : createCommentVNode("", !0),
|
|
@@ -13496,11 +13496,11 @@ const _hoisted_1$f = ["title", "aria-label", "role"], _hoisted_2$e = {
|
|
|
13496
13496
|
setup(e, { emit: t }) {
|
|
13497
13497
|
const n = e, s = t, i = computed({
|
|
13498
13498
|
get: () => n.modelValue ?? n.open ?? !1,
|
|
13499
|
-
set: (
|
|
13500
|
-
s("update:modelValue",
|
|
13499
|
+
set: (d) => {
|
|
13500
|
+
s("update:modelValue", d), s("update:open", d), s(d ? "open" : "close");
|
|
13501
13501
|
}
|
|
13502
13502
|
}), a = computed(() => n.fullscreen), o = computed(() => {
|
|
13503
|
-
const
|
|
13503
|
+
const d = "relative z-50 grid w-full gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg md:w-full", m = {
|
|
13504
13504
|
sm: "max-w-md",
|
|
13505
13505
|
default: "max-w-lg",
|
|
13506
13506
|
lg: "max-w-2xl",
|
|
@@ -13508,7 +13508,7 @@ const _hoisted_1$f = ["title", "aria-label", "role"], _hoisted_2$e = {
|
|
|
13508
13508
|
full: "max-w-screen-2xl"
|
|
13509
13509
|
}, p = a.value ? "w-screen h-screen max-w-none rounded-none border-none p-0" : "";
|
|
13510
13510
|
return cn(
|
|
13511
|
-
|
|
13511
|
+
d,
|
|
13512
13512
|
m[n.size],
|
|
13513
13513
|
p,
|
|
13514
13514
|
n.contentClass
|
|
@@ -13516,14 +13516,14 @@ const _hoisted_1$f = ["title", "aria-label", "role"], _hoisted_2$e = {
|
|
|
13516
13516
|
}), l = computed(() => cn("fixed inset-0 z-50 bg-background/80 backdrop-blur-sm data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0", n.overlayClass)), c = computed(() => n.maxWidth || n.maxHeight ? {
|
|
13517
13517
|
maxWidth: n.maxWidth,
|
|
13518
13518
|
maxHeight: n.maxHeight
|
|
13519
|
-
} : {}),
|
|
13519
|
+
} : {}), u = () => {
|
|
13520
13520
|
n.persistent || (i.value = !1);
|
|
13521
13521
|
};
|
|
13522
|
-
return (
|
|
13522
|
+
return (d, m) => (openBlock(), createBlock(unref(Iv), null, {
|
|
13523
13523
|
default: withCtx(() => [
|
|
13524
13524
|
createVNode(unref($u), {
|
|
13525
13525
|
class: normalizeClass(l.value),
|
|
13526
|
-
onClick: m[0] || (m[0] = (p) => e.closeOnOverlayClick ?
|
|
13526
|
+
onClick: m[0] || (m[0] = (p) => e.closeOnOverlayClick ? u() : void 0)
|
|
13527
13527
|
}, null, 8, ["class"]),
|
|
13528
13528
|
createVNode(unref(Pu), {
|
|
13529
13529
|
class: normalizeClass(o.value),
|
|
@@ -13531,7 +13531,7 @@ const _hoisted_1$f = ["title", "aria-label", "role"], _hoisted_2$e = {
|
|
|
13531
13531
|
"aria-describedby": (e.description, void 0)
|
|
13532
13532
|
}, {
|
|
13533
13533
|
default: withCtx(() => [
|
|
13534
|
-
e.title ||
|
|
13534
|
+
e.title || d.$slots.header || e.showCloseButton ? (openBlock(), createElementBlock("div", {
|
|
13535
13535
|
key: 0,
|
|
13536
13536
|
class: normalizeClass(unref(cn)(
|
|
13537
13537
|
"flex items-center justify-between",
|
|
@@ -13539,23 +13539,23 @@ const _hoisted_1$f = ["title", "aria-label", "role"], _hoisted_2$e = {
|
|
|
13539
13539
|
))
|
|
13540
13540
|
}, [
|
|
13541
13541
|
createElementVNode("div", _hoisted_1$9, [
|
|
13542
|
-
e.title ||
|
|
13542
|
+
e.title || d.$slots.title ? (openBlock(), createBlock(unref(Bu), {
|
|
13543
13543
|
key: 0,
|
|
13544
13544
|
class: "text-lg font-semibold leading-none tracking-tight"
|
|
13545
13545
|
}, {
|
|
13546
13546
|
default: withCtx(() => [
|
|
13547
|
-
renderSlot(
|
|
13547
|
+
renderSlot(d.$slots, "title", {}, () => [
|
|
13548
13548
|
createTextVNode(toDisplayString(e.title), 1)
|
|
13549
13549
|
])
|
|
13550
13550
|
]),
|
|
13551
13551
|
_: 3
|
|
13552
13552
|
})) : createCommentVNode("", !0),
|
|
13553
|
-
e.description ||
|
|
13553
|
+
e.description || d.$slots.description ? (openBlock(), createBlock(unref(Iu), {
|
|
13554
13554
|
key: 1,
|
|
13555
13555
|
class: "text-sm text-muted-foreground"
|
|
13556
13556
|
}, {
|
|
13557
13557
|
default: withCtx(() => [
|
|
13558
|
-
renderSlot(
|
|
13558
|
+
renderSlot(d.$slots, "description", {}, () => [
|
|
13559
13559
|
createTextVNode(toDisplayString(e.description), 1)
|
|
13560
13560
|
])
|
|
13561
13561
|
]),
|
|
@@ -13590,21 +13590,21 @@ const _hoisted_1$f = ["title", "aria-label", "role"], _hoisted_2$e = {
|
|
|
13590
13590
|
})) : createCommentVNode("", !0)
|
|
13591
13591
|
])
|
|
13592
13592
|
], 2)) : createCommentVNode("", !0),
|
|
13593
|
-
renderSlot(
|
|
13593
|
+
renderSlot(d.$slots, "header"),
|
|
13594
13594
|
createElementVNode("div", {
|
|
13595
13595
|
class: normalizeClass(unref(cn)("flex-1", a.value ? "p-6" : ""))
|
|
13596
13596
|
}, [
|
|
13597
|
-
renderSlot(
|
|
13597
|
+
renderSlot(d.$slots, "default")
|
|
13598
13598
|
], 2),
|
|
13599
|
-
renderSlot(
|
|
13600
|
-
|
|
13599
|
+
renderSlot(d.$slots, "footer"),
|
|
13600
|
+
d.$slots.actions ? (openBlock(), createElementBlock("div", {
|
|
13601
13601
|
key: 1,
|
|
13602
13602
|
class: normalizeClass(unref(cn)(
|
|
13603
13603
|
"flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",
|
|
13604
13604
|
a.value ? "border-t p-6 mt-auto" : "mt-6"
|
|
13605
13605
|
))
|
|
13606
13606
|
}, [
|
|
13607
|
-
renderSlot(
|
|
13607
|
+
renderSlot(d.$slots, "actions")
|
|
13608
13608
|
], 2)) : createCommentVNode("", !0)
|
|
13609
13609
|
]),
|
|
13610
13610
|
_: 3
|
|
@@ -13728,10 +13728,10 @@ const _hoisted_1$f = ["title", "aria-label", "role"], _hoisted_2$e = {
|
|
|
13728
13728
|
}), a = computed(() => Array.isArray(i.value)), o = computed(() => a.value ? i.value.map((f) => n.formatValue(f)).join(" - ") : n.formatValue(i.value)), l = computed(() => cn("relative", n.class)), c = computed(() => cn("relative flex w-full touch-none select-none items-center", {
|
|
13729
13729
|
horizontal: "flex-col",
|
|
13730
13730
|
vertical: "w-auto h-full flex-row"
|
|
13731
|
-
}[n.orientation])),
|
|
13731
|
+
}[n.orientation])), u = computed(() => cn("relative h-2 w-full grow overflow-hidden rounded-full bg-secondary", {
|
|
13732
13732
|
horizontal: "h-2 w-full",
|
|
13733
13733
|
vertical: "w-2 h-full"
|
|
13734
|
-
}[n.orientation], n.trackClass)),
|
|
13734
|
+
}[n.orientation], n.trackClass)), d = computed(() => cn("absolute h-full bg-primary")), m = computed(() => cn("block h-5 w-5 rounded-full border-2 border-primary bg-background ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50", n.thumbClass)), p = computed(() => "text-sm font-medium text-foreground"), b = computed(() => "text-sm text-muted-foreground");
|
|
13735
13735
|
return (f, v) => (openBlock(), createElementBlock("div", {
|
|
13736
13736
|
class: normalizeClass(l.value)
|
|
13737
13737
|
}, [
|
|
@@ -13760,11 +13760,11 @@ const _hoisted_1$f = ["title", "aria-label", "role"], _hoisted_2$e = {
|
|
|
13760
13760
|
}, {
|
|
13761
13761
|
default: withCtx(() => [
|
|
13762
13762
|
createVNode(unref(sg), {
|
|
13763
|
-
class: normalizeClass(
|
|
13763
|
+
class: normalizeClass(u.value)
|
|
13764
13764
|
}, {
|
|
13765
13765
|
default: withCtx(() => [
|
|
13766
13766
|
createVNode(unref(rg), {
|
|
13767
|
-
class: normalizeClass(
|
|
13767
|
+
class: normalizeClass(d.value)
|
|
13768
13768
|
}, null, 8, ["class"])
|
|
13769
13769
|
]),
|
|
13770
13770
|
_: 1
|
|
@@ -13820,7 +13820,7 @@ const _hoisted_1$f = ["title", "aria-label", "role"], _hoisted_2$e = {
|
|
|
13820
13820
|
if (v === 0) return "0 B";
|
|
13821
13821
|
const k = 1024, y = f < 0 ? 0 : f, x = Math.floor(Math.log(v) / Math.log(k)), g = n.customUnits;
|
|
13822
13822
|
return parseFloat((v / Math.pow(k, x)).toFixed(y)) + " " + g[x];
|
|
13823
|
-
}, o = computed(() => n.showByteUnits && n.formatBytes ? n.formatBytes(i.value) : n.showByteUnits ? a(i.value) : i.value.toString()), l = computed(() => cn("relative", n.class)), c = computed(() => cn("relative flex w-full touch-none select-none items-center flex-col")),
|
|
13823
|
+
}, o = computed(() => n.showByteUnits && n.formatBytes ? n.formatBytes(i.value) : n.showByteUnits ? a(i.value) : i.value.toString()), l = computed(() => cn("relative", n.class)), c = computed(() => cn("relative flex w-full touch-none select-none items-center flex-col")), u = computed(() => cn("relative h-2 w-full grow overflow-hidden rounded-full bg-secondary", n.trackClass)), d = computed(() => cn("absolute h-full bg-primary")), m = computed(() => cn("block h-5 w-5 rounded-full border-2 border-primary bg-background ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50", n.thumbClass)), p = computed(() => "text-sm font-medium text-foreground"), b = computed(() => "text-sm font-mono text-muted-foreground"), f = computed(() => {
|
|
13824
13824
|
const v = n.max - n.min;
|
|
13825
13825
|
return v >= 1024 * 1024 ? 1 : (v >= 1024, 0);
|
|
13826
13826
|
});
|
|
@@ -13851,11 +13851,11 @@ const _hoisted_1$f = ["title", "aria-label", "role"], _hoisted_2$e = {
|
|
|
13851
13851
|
}, {
|
|
13852
13852
|
default: withCtx(() => [
|
|
13853
13853
|
createVNode(unref(sg), {
|
|
13854
|
-
class: normalizeClass(
|
|
13854
|
+
class: normalizeClass(u.value)
|
|
13855
13855
|
}, {
|
|
13856
13856
|
default: withCtx(() => [
|
|
13857
13857
|
createVNode(unref(rg), {
|
|
13858
|
-
class: normalizeClass(
|
|
13858
|
+
class: normalizeClass(d.value)
|
|
13859
13859
|
}, null, 8, ["class"])
|
|
13860
13860
|
]),
|
|
13861
13861
|
_: 1
|
|
@@ -13926,7 +13926,7 @@ const _hoisted_1$f = ["title", "aria-label", "role"], _hoisted_2$e = {
|
|
|
13926
13926
|
return S.forEach((P, M) => {
|
|
13927
13927
|
T && (P - T === 2 ? _.push(T + 1) : P - T !== 1 && _.push("...")), _.push(P), T = P;
|
|
13928
13928
|
}), _;
|
|
13929
|
-
}), c = computed(() => a.value > 1),
|
|
13929
|
+
}), c = computed(() => a.value > 1), u = computed(() => a.value < i.value), d = computed(() => {
|
|
13930
13930
|
const x = "flex flex-wrap items-center gap-2", g = {
|
|
13931
13931
|
start: "justify-start",
|
|
13932
13932
|
center: "justify-center",
|
|
@@ -13950,13 +13950,13 @@ const _hoisted_1$f = ["title", "aria-label", "role"], _hoisted_2$e = {
|
|
|
13950
13950
|
}, v = () => {
|
|
13951
13951
|
c.value && !n.disabled && a.value--;
|
|
13952
13952
|
}, k = () => {
|
|
13953
|
-
|
|
13953
|
+
u.value && !n.disabled && a.value++;
|
|
13954
13954
|
}, y = (x) => {
|
|
13955
13955
|
const g = x.target, C = parseInt(g.value, 10);
|
|
13956
13956
|
isNaN(C) || f(C);
|
|
13957
13957
|
};
|
|
13958
13958
|
return (x, g) => (openBlock(), createElementBlock("div", {
|
|
13959
|
-
class: normalizeClass(
|
|
13959
|
+
class: normalizeClass(d.value)
|
|
13960
13960
|
}, [
|
|
13961
13961
|
e.showTotal && e.totalItems ? (openBlock(), createElementBlock("div", _hoisted_1$6, " Total: " + toDisplayString(e.totalItems) + " items ", 1)) : createCommentVNode("", !0),
|
|
13962
13962
|
e.showSizeChanger ? (openBlock(), createElementBlock("div", _hoisted_2$5, [
|
|
@@ -13997,7 +13997,7 @@ const _hoisted_1$f = ["title", "aria-label", "role"], _hoisted_2$e = {
|
|
|
13997
13997
|
], 64))), 128)),
|
|
13998
13998
|
createElementVNode("button", {
|
|
13999
13999
|
class: normalizeClass(m.value),
|
|
14000
|
-
disabled: !
|
|
14000
|
+
disabled: !u.value || e.disabled,
|
|
14001
14001
|
onClick: k,
|
|
14002
14002
|
"aria-label": "Next page"
|
|
14003
14003
|
}, [
|
|
@@ -14120,12 +14120,12 @@ function useVModel$1(e, t, n, s = {}) {
|
|
|
14120
14120
|
const {
|
|
14121
14121
|
clone: l = !1,
|
|
14122
14122
|
passive: c = !1,
|
|
14123
|
-
eventName:
|
|
14124
|
-
deep:
|
|
14123
|
+
eventName: u,
|
|
14124
|
+
deep: d = !1,
|
|
14125
14125
|
defaultValue: m,
|
|
14126
14126
|
shouldEmit: p
|
|
14127
14127
|
} = s, b = getCurrentInstance(), f = n || b?.emit || ((i = b?.$emit) == null ? void 0 : i.bind(b)) || ((o = (a = b?.proxy) == null ? void 0 : a.$emit) == null ? void 0 : o.bind(b?.proxy));
|
|
14128
|
-
let v =
|
|
14128
|
+
let v = u;
|
|
14129
14129
|
v = v || `update:${t.toString()}`;
|
|
14130
14130
|
const k = (g) => l ? typeof l == "function" ? l(g) : cloneFnJSON$1(g) : g, y = () => isDef$1(e[t]) ? k(e[t]) : m, x = (g) => {
|
|
14131
14131
|
p ? p(g) && f(v, g) : f(v, g);
|
|
@@ -14141,9 +14141,9 @@ function useVModel$1(e, t, n, s = {}) {
|
|
|
14141
14141
|
), watch(
|
|
14142
14142
|
C,
|
|
14143
14143
|
(_) => {
|
|
14144
|
-
!S && (_ !== e[t] ||
|
|
14144
|
+
!S && (_ !== e[t] || d) && x(_);
|
|
14145
14145
|
},
|
|
14146
|
-
{ deep:
|
|
14146
|
+
{ deep: d }
|
|
14147
14147
|
), C;
|
|
14148
14148
|
} else
|
|
14149
14149
|
return computed({
|
|
@@ -14200,16 +14200,16 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
14200
14200
|
}), falsyToString = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, cx = clsx, cva = (e, t) => (n) => {
|
|
14201
14201
|
var s;
|
|
14202
14202
|
if (t?.variants == null) return cx(e, n?.class, n?.className);
|
|
14203
|
-
const { variants: i, defaultVariants: a } = t, o = Object.keys(i).map((
|
|
14204
|
-
const
|
|
14205
|
-
if (
|
|
14206
|
-
const p = falsyToString(
|
|
14207
|
-
return i[
|
|
14208
|
-
}), l = n && Object.entries(n).reduce((
|
|
14209
|
-
let [m, p] =
|
|
14210
|
-
return p === void 0 || (
|
|
14211
|
-
}, {}), c = t == null || (s = t.compoundVariants) === null || s === void 0 ? void 0 : s.reduce((
|
|
14212
|
-
let { class: m, className: p, ...b } =
|
|
14203
|
+
const { variants: i, defaultVariants: a } = t, o = Object.keys(i).map((u) => {
|
|
14204
|
+
const d = n?.[u], m = a?.[u];
|
|
14205
|
+
if (d === null) return null;
|
|
14206
|
+
const p = falsyToString(d) || falsyToString(m);
|
|
14207
|
+
return i[u][p];
|
|
14208
|
+
}), l = n && Object.entries(n).reduce((u, d) => {
|
|
14209
|
+
let [m, p] = d;
|
|
14210
|
+
return p === void 0 || (u[m] = p), u;
|
|
14211
|
+
}, {}), c = t == null || (s = t.compoundVariants) === null || s === void 0 ? void 0 : s.reduce((u, d) => {
|
|
14212
|
+
let { class: m, className: p, ...b } = d;
|
|
14213
14213
|
return Object.entries(b).every((f) => {
|
|
14214
14214
|
let [v, k] = f;
|
|
14215
14215
|
return Array.isArray(k) ? k.includes({
|
|
@@ -14220,10 +14220,10 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
14220
14220
|
...l
|
|
14221
14221
|
}[v] === k;
|
|
14222
14222
|
}) ? [
|
|
14223
|
-
...
|
|
14223
|
+
...u,
|
|
14224
14224
|
m,
|
|
14225
14225
|
p
|
|
14226
|
-
] :
|
|
14226
|
+
] : u;
|
|
14227
14227
|
}, []);
|
|
14228
14228
|
return cx(e, o, c, n?.class, n?.className);
|
|
14229
14229
|
};
|
|
@@ -14256,12 +14256,12 @@ function useVModel(e, t, n, s = {}) {
|
|
|
14256
14256
|
const {
|
|
14257
14257
|
clone: l = !1,
|
|
14258
14258
|
passive: c = !1,
|
|
14259
|
-
eventName:
|
|
14260
|
-
deep:
|
|
14259
|
+
eventName: u,
|
|
14260
|
+
deep: d = !1,
|
|
14261
14261
|
defaultValue: m,
|
|
14262
14262
|
shouldEmit: p
|
|
14263
14263
|
} = s, b = getCurrentInstance(), f = n || b?.emit || ((i = b?.$emit) == null ? void 0 : i.bind(b)) || ((o = (a = b?.proxy) == null ? void 0 : a.$emit) == null ? void 0 : o.bind(b?.proxy));
|
|
14264
|
-
let v =
|
|
14264
|
+
let v = u;
|
|
14265
14265
|
t || (t = "modelValue"), v = v || `update:${t.toString()}`;
|
|
14266
14266
|
const k = (g) => l ? typeof l == "function" ? l(g) : cloneFnJSON(g) : g, y = () => isDef(e[t]) ? k(e[t]) : m, x = (g) => {
|
|
14267
14267
|
p ? p(g) && f(v, g) : f(v, g);
|
|
@@ -14277,9 +14277,9 @@ function useVModel(e, t, n, s = {}) {
|
|
|
14277
14277
|
), watch(
|
|
14278
14278
|
C,
|
|
14279
14279
|
(_) => {
|
|
14280
|
-
!S && (_ !== e[t] ||
|
|
14280
|
+
!S && (_ !== e[t] || d) && x(_);
|
|
14281
14281
|
},
|
|
14282
|
-
{ deep:
|
|
14282
|
+
{ deep: d }
|
|
14283
14283
|
), C;
|
|
14284
14284
|
} else
|
|
14285
14285
|
return computed({
|
|
@@ -14661,7 +14661,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
14661
14661
|
},
|
|
14662
14662
|
emits: ["update:currentPage", "update:itemsPerPage", "selection-change", "row-click", "sort-change", "filter-change", "search"],
|
|
14663
14663
|
setup(e, { emit: t }) {
|
|
14664
|
-
const n = e, s = t, i = ref([]), a = ref(""), o = ref(""), l = ref(null), c = ref({}),
|
|
14664
|
+
const n = e, s = t, i = ref([]), a = ref(""), o = ref(""), l = ref(null), c = ref({}), u = computed(() => {
|
|
14665
14665
|
let T = [...n.data || []];
|
|
14666
14666
|
if (a.value && n.searchable) {
|
|
14667
14667
|
const P = a.value.toLowerCase();
|
|
@@ -14681,15 +14681,15 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
14681
14681
|
let D = 0;
|
|
14682
14682
|
return I < $ && (D = -1), I > $ && (D = 1), l.value === "asc" ? D : -D;
|
|
14683
14683
|
}), T;
|
|
14684
|
-
}),
|
|
14685
|
-
if (!n.pagination) return
|
|
14684
|
+
}), d = computed(() => {
|
|
14685
|
+
if (!n.pagination) return u.value;
|
|
14686
14686
|
const T = (n.currentPage - 1) * n.itemsPerPage, P = T + n.itemsPerPage;
|
|
14687
|
-
return
|
|
14687
|
+
return u.value.slice(T, P);
|
|
14688
14688
|
}), m = (T) => {
|
|
14689
14689
|
const P = i.value.findIndex((M) => M === T);
|
|
14690
14690
|
P > -1 ? i.value.splice(P, 1) : i.value.push(T), s("selection-change", i.value);
|
|
14691
14691
|
}, p = () => {
|
|
14692
|
-
i.value.length ===
|
|
14692
|
+
i.value.length === d.value.length ? i.value = [] : i.value = [...d.value], s("selection-change", i.value);
|
|
14693
14693
|
}, b = (T) => {
|
|
14694
14694
|
T.sortable && (o.value === T.key ? l.value === "asc" ? l.value = "desc" : (l.value = null, o.value = "") : (o.value = T.key, l.value = "asc"), s("sort-change", o.value, l.value));
|
|
14695
14695
|
}, f = (T, P) => {
|
|
@@ -14699,9 +14699,9 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
14699
14699
|
}, k = (T, P) => {
|
|
14700
14700
|
c.value[T] = P, s("filter-change", c.value);
|
|
14701
14701
|
}, y = computed(
|
|
14702
|
-
() =>
|
|
14702
|
+
() => d.value.length > 0 && i.value.length === d.value.length
|
|
14703
14703
|
), x = computed(
|
|
14704
|
-
() => i.value.length > 0 && i.value.length <
|
|
14704
|
+
() => i.value.length > 0 && i.value.length < d.value.length
|
|
14705
14705
|
), g = computed(() => cn("w-full space-y-4", n.class)), C = computed(() => cn("w-full", n.tableClass)), S = computed(() => cn("[&_tr]:border-b", n.headerClass)), _ = computed(() => {
|
|
14706
14706
|
const T = "[&_tr:last-child]:border-0", P = {
|
|
14707
14707
|
"[&_tr]:border-b": n.striped,
|
|
@@ -14740,7 +14740,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
14740
14740
|
]))), 128))
|
|
14741
14741
|
])) : createCommentVNode("", !0)
|
|
14742
14742
|
]),
|
|
14743
|
-
e.showTotal ? (openBlock(), createElementBlock("div", _hoisted_5$4, toDisplayString(
|
|
14743
|
+
e.showTotal ? (openBlock(), createElementBlock("div", _hoisted_5$4, toDisplayString(u.value.length) + " items total ", 1)) : createCommentVNode("", !0)
|
|
14744
14744
|
]),
|
|
14745
14745
|
createElementVNode("div", _hoisted_6$4, [
|
|
14746
14746
|
createVNode(unref(_sfc_main$l), {
|
|
@@ -14838,7 +14838,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
14838
14838
|
}, 8, ["colspan"])
|
|
14839
14839
|
]),
|
|
14840
14840
|
_: 1
|
|
14841
|
-
})) :
|
|
14841
|
+
})) : d.value.length === 0 ? (openBlock(), createBlock(unref(_sfc_main$i), { key: 1 }, {
|
|
14842
14842
|
default: withCtx(() => [
|
|
14843
14843
|
createVNode(unref(_sfc_main$j), {
|
|
14844
14844
|
colspan: e.columns.length + (e.selectable ? 1 : 0) + (e.actions.length > 0 ? 1 : 0),
|
|
@@ -14851,7 +14851,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
14851
14851
|
}, 8, ["colspan"])
|
|
14852
14852
|
]),
|
|
14853
14853
|
_: 1
|
|
14854
|
-
})) : (openBlock(!0), createElementBlock(Fragment, { key: 2 }, renderList(
|
|
14854
|
+
})) : (openBlock(!0), createElementBlock(Fragment, { key: 2 }, renderList(d.value, (M, I) => (openBlock(), createBlock(unref(_sfc_main$i), {
|
|
14855
14855
|
key: `row-${I}`,
|
|
14856
14856
|
class: normalizeClass([{
|
|
14857
14857
|
selected: i.value.includes(M)
|
|
@@ -14931,11 +14931,11 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
14931
14931
|
e.pagination ? (openBlock(), createElementBlock("div", _hoisted_15$3, [
|
|
14932
14932
|
renderSlot(T.$slots, "pagination", {
|
|
14933
14933
|
currentPage: e.currentPage,
|
|
14934
|
-
totalItems:
|
|
14934
|
+
totalItems: u.value.length
|
|
14935
14935
|
}, () => [
|
|
14936
14936
|
createElementVNode("div", _hoisted_16$2, [
|
|
14937
|
-
createElementVNode("div", _hoisted_17$2, " Showing " + toDisplayString((e.currentPage - 1) * e.itemsPerPage + 1) + " to " + toDisplayString(Math.min(e.currentPage * e.itemsPerPage,
|
|
14938
|
-
createElementVNode("div", _hoisted_18$2, " Page " + toDisplayString(e.currentPage) + " of " + toDisplayString(Math.ceil(
|
|
14937
|
+
createElementVNode("div", _hoisted_17$2, " Showing " + toDisplayString((e.currentPage - 1) * e.itemsPerPage + 1) + " to " + toDisplayString(Math.min(e.currentPage * e.itemsPerPage, u.value.length)) + " of " + toDisplayString(u.value.length) + " items ", 1),
|
|
14938
|
+
createElementVNode("div", _hoisted_18$2, " Page " + toDisplayString(e.currentPage) + " of " + toDisplayString(Math.ceil(u.value.length / e.itemsPerPage)), 1)
|
|
14939
14939
|
])
|
|
14940
14940
|
])
|
|
14941
14941
|
])) : createCommentVNode("", !0)
|
|
@@ -15001,7 +15001,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
15001
15001
|
n.steps[M]?.onLeave && n.steps[M].onLeave(), s("update:modelValue", P), s("step-change", P, M), n.steps[P]?.onEnter && n.steps[P].onEnter();
|
|
15002
15002
|
}
|
|
15003
15003
|
}
|
|
15004
|
-
}), a = computed(() => n.steps[i.value] || {}), o = computed(() => i.value === 0), l = computed(() => i.value === n.steps.length - 1), c = computed(() => (i.value + 1) / n.steps.length * 100),
|
|
15004
|
+
}), a = computed(() => n.steps[i.value] || {}), o = computed(() => i.value === 0), l = computed(() => i.value === n.steps.length - 1), c = computed(() => (i.value + 1) / n.steps.length * 100), u = computed(() => cn("w-full", n.class)), d = computed(() => cn(
|
|
15005
15005
|
"flex",
|
|
15006
15006
|
n.vertical ? "flex-col" : "flex-col lg:flex-row gap-8"
|
|
15007
15007
|
)), m = computed(() => cn(
|
|
@@ -15068,7 +15068,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
15068
15068
|
});
|
|
15069
15069
|
}
|
|
15070
15070
|
}, { immediate: !0 }), (P, M) => (openBlock(), createElementBlock("div", {
|
|
15071
|
-
class: normalizeClass(
|
|
15071
|
+
class: normalizeClass(u.value)
|
|
15072
15072
|
}, [
|
|
15073
15073
|
e.showProgressBar ? (openBlock(), createElementBlock("div", _hoisted_1$3, [
|
|
15074
15074
|
createElementVNode("div", _hoisted_2$3, [
|
|
@@ -15080,7 +15080,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
15080
15080
|
createElementVNode("div", _hoisted_3$3, " Step " + toDisplayString(i.value + 1) + " of " + toDisplayString(e.steps.length), 1)
|
|
15081
15081
|
])) : createCommentVNode("", !0),
|
|
15082
15082
|
createElementVNode("div", {
|
|
15083
|
-
class: normalizeClass(
|
|
15083
|
+
class: normalizeClass(d.value)
|
|
15084
15084
|
}, [
|
|
15085
15085
|
createElementVNode("div", {
|
|
15086
15086
|
class: normalizeClass(m.value)
|
|
@@ -15309,7 +15309,11 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
15309
15309
|
},
|
|
15310
15310
|
emits: ["backup", "restore", "delete", "enable", "disable"],
|
|
15311
15311
|
setup(e, { emit: t }) {
|
|
15312
|
-
const n = e, s = t, i = computed(() => n.backups.length > 0), a = computed(
|
|
15312
|
+
const n = e, s = t, i = computed(() => n.backups.length > 0), a = computed(
|
|
15313
|
+
() => n.backups.filter((p) => p.enabled)
|
|
15314
|
+
), o = computed(
|
|
15315
|
+
() => a.value.length === 1 ? a.value[0] : null
|
|
15316
|
+
), l = (p) => {
|
|
15313
15317
|
switch (p.status) {
|
|
15314
15318
|
case "success":
|
|
15315
15319
|
return CheckCircle;
|
|
@@ -15333,14 +15337,14 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
15333
15337
|
}
|
|
15334
15338
|
};
|
|
15335
15339
|
computed(() => cn("w-full", n.class));
|
|
15336
|
-
const
|
|
15340
|
+
const u = computed(() => cn(
|
|
15337
15341
|
"transition-all duration-200 hover:shadow-md",
|
|
15338
15342
|
n.light ? "bg-background/95" : "bg-background"
|
|
15339
|
-
)),
|
|
15343
|
+
)), d = computed(() => cn("w-full overflow-auto", {
|
|
15340
15344
|
"max-h-64": n.maxHeight
|
|
15341
15345
|
})), m = computed(() => "w-full min-w-[300px]");
|
|
15342
15346
|
return (p, b) => (openBlock(), createBlock(unref(_sfc_main$a), {
|
|
15343
|
-
class: normalizeClass(
|
|
15347
|
+
class: normalizeClass(u.value)
|
|
15344
15348
|
}, {
|
|
15345
15349
|
default: withCtx(() => [
|
|
15346
15350
|
createVNode(unref(_sfc_main$7), { class: "pb-3" }, {
|
|
@@ -15362,7 +15366,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
15362
15366
|
createVNode(unref(_sfc_main$5), { class: "h-4 w-1/2" })
|
|
15363
15367
|
])) : i.value ? o.value ? (openBlock(), createElementBlock("div", _hoisted_3$2, [
|
|
15364
15368
|
createElementVNode("div", {
|
|
15365
|
-
class: normalizeClass(
|
|
15369
|
+
class: normalizeClass(d.value)
|
|
15366
15370
|
}, [
|
|
15367
15371
|
createElementVNode("div", {
|
|
15368
15372
|
class: normalizeClass(m.value)
|
|
@@ -15425,7 +15429,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
15425
15429
|
])
|
|
15426
15430
|
])) : (openBlock(), createElementBlock("div", _hoisted_18$1, [
|
|
15427
15431
|
createElementVNode("div", {
|
|
15428
|
-
class: normalizeClass(
|
|
15432
|
+
class: normalizeClass(d.value)
|
|
15429
15433
|
}, [
|
|
15430
15434
|
createElementVNode("table", {
|
|
15431
15435
|
class: normalizeClass(m.value)
|
|
@@ -15596,7 +15600,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
15596
15600
|
"transition-all duration-200 hover:shadow-md",
|
|
15597
15601
|
n.light ? "bg-background/95" : "bg-background"
|
|
15598
15602
|
)), c = computed(() => cn("h-8 w-8", i.value));
|
|
15599
|
-
return (
|
|
15603
|
+
return (u, d) => (openBlock(), createBlock(unref(_sfc_main$a), {
|
|
15600
15604
|
class: normalizeClass(l.value)
|
|
15601
15605
|
}, {
|
|
15602
15606
|
default: withCtx(() => [
|
|
@@ -15639,27 +15643,27 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
15639
15643
|
createVNode(unref(_sfc_main$5), { class: "h-4 w-2/3" })
|
|
15640
15644
|
])) : (openBlock(), createElementBlock("div", _hoisted_4$1, [
|
|
15641
15645
|
e.serviceName ? (openBlock(), createElementBlock("div", _hoisted_5$1, [
|
|
15642
|
-
|
|
15646
|
+
d[6] || (d[6] = createElementVNode("span", { class: "font-medium" }, "Service:", -1)),
|
|
15643
15647
|
createTextVNode(" " + toDisplayString(e.serviceName), 1)
|
|
15644
15648
|
])) : createCommentVNode("", !0),
|
|
15645
15649
|
e.showUptime && e.status?.uptime ? (openBlock(), createElementBlock("div", _hoisted_6$1, [
|
|
15646
15650
|
createVNode(unref(Clock), { class: "h-4 w-4 text-muted-foreground" }),
|
|
15647
15651
|
createElementVNode("span", _hoisted_7$1, [
|
|
15648
|
-
|
|
15652
|
+
d[7] || (d[7] = createElementVNode("span", { class: "font-medium" }, "Uptime:", -1)),
|
|
15649
15653
|
createTextVNode(" " + toDisplayString(e.status.uptime), 1)
|
|
15650
15654
|
])
|
|
15651
15655
|
])) : createCommentVNode("", !0),
|
|
15652
15656
|
e.status?.lastRestart ? (openBlock(), createElementBlock("div", _hoisted_8$1, [
|
|
15653
|
-
|
|
15657
|
+
d[8] || (d[8] = createElementVNode("span", { class: "font-medium" }, "Last restart:", -1)),
|
|
15654
15658
|
createTextVNode(" " + toDisplayString(e.status.lastRestart), 1)
|
|
15655
15659
|
])) : createCommentVNode("", !0),
|
|
15656
15660
|
e.showMetrics ? (openBlock(), createElementBlock("div", _hoisted_9$1, [
|
|
15657
15661
|
e.status?.memory ? (openBlock(), createElementBlock("div", _hoisted_10$1, [
|
|
15658
|
-
|
|
15662
|
+
d[9] || (d[9] = createElementVNode("span", { class: "font-medium" }, "Memory:", -1)),
|
|
15659
15663
|
createTextVNode(" " + toDisplayString(e.status.memory), 1)
|
|
15660
15664
|
])) : createCommentVNode("", !0),
|
|
15661
15665
|
e.status?.cpu ? (openBlock(), createElementBlock("div", _hoisted_11$1, [
|
|
15662
|
-
|
|
15666
|
+
d[10] || (d[10] = createElementVNode("span", { class: "font-medium" }, "CPU:", -1)),
|
|
15663
15667
|
createTextVNode(" " + toDisplayString(e.status.cpu), 1)
|
|
15664
15668
|
])) : createCommentVNode("", !0)
|
|
15665
15669
|
])) : createCommentVNode("", !0),
|
|
@@ -15671,9 +15675,9 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
15671
15675
|
key: 0,
|
|
15672
15676
|
variant: "default",
|
|
15673
15677
|
size: "sm",
|
|
15674
|
-
onClick:
|
|
15678
|
+
onClick: d[0] || (d[0] = (m) => s("start", e.serviceName))
|
|
15675
15679
|
}, {
|
|
15676
|
-
default: withCtx(() => [...
|
|
15680
|
+
default: withCtx(() => [...d[11] || (d[11] = [
|
|
15677
15681
|
createTextVNode(" Start ", -1)
|
|
15678
15682
|
])]),
|
|
15679
15683
|
_: 1
|
|
@@ -15682,9 +15686,9 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
15682
15686
|
key: 1,
|
|
15683
15687
|
variant: "outline",
|
|
15684
15688
|
size: "sm",
|
|
15685
|
-
onClick:
|
|
15689
|
+
onClick: d[1] || (d[1] = (m) => s("stop", e.serviceName))
|
|
15686
15690
|
}, {
|
|
15687
|
-
default: withCtx(() => [...
|
|
15691
|
+
default: withCtx(() => [...d[12] || (d[12] = [
|
|
15688
15692
|
createTextVNode(" Stop ", -1)
|
|
15689
15693
|
])]),
|
|
15690
15694
|
_: 1
|
|
@@ -15693,9 +15697,9 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
15693
15697
|
key: 2,
|
|
15694
15698
|
variant: "outline",
|
|
15695
15699
|
size: "sm",
|
|
15696
|
-
onClick:
|
|
15700
|
+
onClick: d[2] || (d[2] = (m) => s("restart", e.serviceName))
|
|
15697
15701
|
}, {
|
|
15698
|
-
default: withCtx(() => [...
|
|
15702
|
+
default: withCtx(() => [...d[13] || (d[13] = [
|
|
15699
15703
|
createTextVNode(" Restart ", -1)
|
|
15700
15704
|
])]),
|
|
15701
15705
|
_: 1
|
|
@@ -15704,9 +15708,9 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
15704
15708
|
key: 3,
|
|
15705
15709
|
variant: "default",
|
|
15706
15710
|
size: "sm",
|
|
15707
|
-
onClick:
|
|
15711
|
+
onClick: d[3] || (d[3] = (m) => s("enable", e.serviceName))
|
|
15708
15712
|
}, {
|
|
15709
|
-
default: withCtx(() => [...
|
|
15713
|
+
default: withCtx(() => [...d[14] || (d[14] = [
|
|
15710
15714
|
createTextVNode(" Enable ", -1)
|
|
15711
15715
|
])]),
|
|
15712
15716
|
_: 1
|
|
@@ -15715,9 +15719,9 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
15715
15719
|
key: 4,
|
|
15716
15720
|
variant: "destructive",
|
|
15717
15721
|
size: "sm",
|
|
15718
|
-
onClick:
|
|
15722
|
+
onClick: d[4] || (d[4] = (m) => s("disable", e.serviceName))
|
|
15719
15723
|
}, {
|
|
15720
|
-
default: withCtx(() => [...
|
|
15724
|
+
default: withCtx(() => [...d[15] || (d[15] = [
|
|
15721
15725
|
createTextVNode(" Disable ", -1)
|
|
15722
15726
|
])]),
|
|
15723
15727
|
_: 1
|
|
@@ -15726,7 +15730,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
15726
15730
|
createVNode(unref(_sfc_main$f), {
|
|
15727
15731
|
variant: "ghost",
|
|
15728
15732
|
size: "sm",
|
|
15729
|
-
onClick:
|
|
15733
|
+
onClick: d[5] || (d[5] = (m) => s("view", e.serviceName))
|
|
15730
15734
|
}, {
|
|
15731
15735
|
default: withCtx(() => [
|
|
15732
15736
|
createVNode(unref(MoreHorizontal), { class: "h-4 w-4" })
|
|
@@ -15812,28 +15816,28 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
15812
15816
|
setup(e, { emit: t }) {
|
|
15813
15817
|
const n = e, s = t, i = computed(() => !!n.metrics), a = computed(() => {
|
|
15814
15818
|
if (!n.metrics?.usagePercentage) return "default";
|
|
15815
|
-
const
|
|
15816
|
-
return
|
|
15819
|
+
const d = n.metrics.usagePercentage;
|
|
15820
|
+
return d >= 90 ? "destructive" : d >= 80 ? "warning" : d >= 60 ? "default" : "success";
|
|
15817
15821
|
}), o = computed(() => {
|
|
15818
15822
|
if (!n.metrics?.memory?.percentage) return "default";
|
|
15819
|
-
const
|
|
15820
|
-
return
|
|
15823
|
+
const d = n.metrics.memory.percentage;
|
|
15824
|
+
return d >= 90 ? "destructive" : d >= 80 ? "warning" : d >= 60 ? "default" : "success";
|
|
15821
15825
|
}), l = computed(() => {
|
|
15822
15826
|
if (!n.metrics?.cpu?.usage) return "default";
|
|
15823
|
-
const
|
|
15824
|
-
return
|
|
15827
|
+
const d = n.metrics.cpu.usage;
|
|
15828
|
+
return d >= 90 ? "destructive" : d >= 80 ? "warning" : d >= 60 ? "default" : "success";
|
|
15825
15829
|
});
|
|
15826
15830
|
computed(() => cn("w-full", n.class));
|
|
15827
15831
|
const c = computed(() => cn(
|
|
15828
15832
|
"transition-all duration-200 hover:shadow-md",
|
|
15829
15833
|
n.light ? "bg-background/95" : "bg-background"
|
|
15830
|
-
)),
|
|
15834
|
+
)), u = computed(() => cn("grid gap-4", {
|
|
15831
15835
|
"grid-cols-1": !n.showMemory && !n.showCpu && !n.showStorage,
|
|
15832
15836
|
"grid-cols-2": n.showMemory && !n.showCpu && !n.showStorage || !n.showMemory && n.showCpu && !n.showStorage || !n.showMemory && !n.showCpu && n.showStorage,
|
|
15833
15837
|
"grid-cols-3": n.showMemory && n.showCpu && !n.showStorage || n.showMemory && !n.showCpu && n.showStorage || !n.showMemory && n.showCpu && n.showStorage,
|
|
15834
15838
|
"lg:grid-cols-4": n.showMemory && n.showCpu && n.showStorage
|
|
15835
15839
|
}));
|
|
15836
|
-
return (
|
|
15840
|
+
return (d, m) => (openBlock(), createBlock(unref(_sfc_main$a), {
|
|
15837
15841
|
class: normalizeClass(c.value)
|
|
15838
15842
|
}, {
|
|
15839
15843
|
default: withCtx(() => [
|
|
@@ -15880,7 +15884,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
15880
15884
|
], -1)
|
|
15881
15885
|
])])) : i.value ? (openBlock(), createElementBlock("div", {
|
|
15882
15886
|
key: 1,
|
|
15883
|
-
class: normalizeClass(
|
|
15887
|
+
class: normalizeClass(u.value)
|
|
15884
15888
|
}, [
|
|
15885
15889
|
e.showStorage ? (openBlock(), createElementBlock("div", _hoisted_3, [
|
|
15886
15890
|
createElementVNode("div", _hoisted_4, [
|
|
@@ -16004,10 +16008,10 @@ const useUtilService = () => {
|
|
|
16004
16008
|
}
|
|
16005
16009
|
return I ? I("error.generic_error") : "Generic error";
|
|
16006
16010
|
}, c = (M) => {
|
|
16007
|
-
|
|
16008
|
-
},
|
|
16011
|
+
u(M);
|
|
16012
|
+
}, u = (M) => {
|
|
16009
16013
|
for (const I of Object.keys(M))
|
|
16010
|
-
typeof M[I] == "string" ? M[I] = "" : typeof M[I] == "boolean" ? M[I] = !1 : typeof M[I] == "object" ?
|
|
16014
|
+
typeof M[I] == "string" ? M[I] = "" : typeof M[I] == "boolean" ? M[I] = !1 : typeof M[I] == "object" ? u(M[I]) : console.error("unexpected object type:", typeof M[I]);
|
|
16011
16015
|
};
|
|
16012
16016
|
return {
|
|
16013
16017
|
DELETE_DELAY: 7e3,
|
|
@@ -16019,7 +16023,7 @@ const useUtilService = () => {
|
|
|
16019
16023
|
cidrPattern: o,
|
|
16020
16024
|
getErrorMessage: l,
|
|
16021
16025
|
clearErrors: c,
|
|
16022
|
-
clearStrings:
|
|
16026
|
+
clearStrings: u,
|
|
16023
16027
|
sortByProperty: (M) => function(I, $) {
|
|
16024
16028
|
return I[M] < $[M] ? -1 : I[M] > $[M] ? 1 : 0;
|
|
16025
16029
|
},
|
|
@@ -16230,8 +16234,8 @@ function differenceInMonths(e, t, n) {
|
|
|
16230
16234
|
i.getMonth() === 1 && i.getDate() > 27 && i.setDate(30), i.setMonth(i.getMonth() - o * l);
|
|
16231
16235
|
let c = compareAsc(i, a) === -o;
|
|
16232
16236
|
isLastDayOfMonth(s) && l === 1 && compareAsc(s, a) === 1 && (c = !1);
|
|
16233
|
-
const
|
|
16234
|
-
return
|
|
16237
|
+
const u = o * (l - +c);
|
|
16238
|
+
return u === 0 ? 0 : u;
|
|
16235
16239
|
}
|
|
16236
16240
|
function differenceInSeconds(e, t, n) {
|
|
16237
16241
|
const s = differenceInMilliseconds(e, t) / 1e3;
|
|
@@ -16525,13 +16529,13 @@ function buildMatchFn(e) {
|
|
|
16525
16529
|
// [TODO] -- I challenge you to fix the type
|
|
16526
16530
|
findKey$1(l, (m) => m.test(o))
|
|
16527
16531
|
);
|
|
16528
|
-
let
|
|
16529
|
-
|
|
16532
|
+
let u;
|
|
16533
|
+
u = e.valueCallback ? e.valueCallback(c) : c, u = n.valueCallback ? (
|
|
16530
16534
|
// [TODO] -- I challenge you to fix the type
|
|
16531
|
-
n.valueCallback(
|
|
16532
|
-
) :
|
|
16533
|
-
const
|
|
16534
|
-
return { value:
|
|
16535
|
+
n.valueCallback(u)
|
|
16536
|
+
) : u;
|
|
16537
|
+
const d = t.slice(o.length);
|
|
16538
|
+
return { value: u, rest: d };
|
|
16535
16539
|
};
|
|
16536
16540
|
}
|
|
16537
16541
|
function findKey$1(e, t) {
|
|
@@ -16685,8 +16689,8 @@ function getWeekYear(e, t) {
|
|
|
16685
16689
|
o.setFullYear(s + 1, 0, a), o.setHours(0, 0, 0, 0);
|
|
16686
16690
|
const l = startOfWeek(o, t), c = constructFrom(t?.in || e, 0);
|
|
16687
16691
|
c.setFullYear(s, 0, a), c.setHours(0, 0, 0, 0);
|
|
16688
|
-
const
|
|
16689
|
-
return +n >= +l ? s + 1 : +n >= +
|
|
16692
|
+
const u = startOfWeek(c, t);
|
|
16693
|
+
return +n >= +l ? s + 1 : +n >= +u ? s : s - 1;
|
|
16690
16694
|
}
|
|
16691
16695
|
function startOfWeekYear(e, t) {
|
|
16692
16696
|
const n = getDefaultOptions$1(), s = t?.firstWeekContainsDate ?? t?.locale?.options?.firstWeekContainsDate ?? n.firstWeekContainsDate ?? n.locale?.options?.firstWeekContainsDate ?? 1, i = getWeekYear(e, t), a = constructFrom(t?.in || e, 0);
|
|
@@ -17356,39 +17360,39 @@ function format$1(e, t, n) {
|
|
|
17356
17360
|
const s = getDefaultOptions$1(), i = n?.locale ?? s.locale ?? enUS, a = n?.firstWeekContainsDate ?? n?.locale?.options?.firstWeekContainsDate ?? s.firstWeekContainsDate ?? s.locale?.options?.firstWeekContainsDate ?? 1, o = n?.weekStartsOn ?? n?.locale?.options?.weekStartsOn ?? s.weekStartsOn ?? s.locale?.options?.weekStartsOn ?? 0, l = toDate$1(e, n?.in);
|
|
17357
17361
|
if (!isValid(l))
|
|
17358
17362
|
throw new RangeError("Invalid time value");
|
|
17359
|
-
let c = t.match(longFormattingTokensRegExp).map((
|
|
17360
|
-
const m =
|
|
17363
|
+
let c = t.match(longFormattingTokensRegExp).map((d) => {
|
|
17364
|
+
const m = d[0];
|
|
17361
17365
|
if (m === "p" || m === "P") {
|
|
17362
17366
|
const p = longFormatters[m];
|
|
17363
|
-
return p(
|
|
17367
|
+
return p(d, i.formatLong);
|
|
17364
17368
|
}
|
|
17365
|
-
return
|
|
17366
|
-
}).join("").match(formattingTokensRegExp).map((
|
|
17367
|
-
if (
|
|
17369
|
+
return d;
|
|
17370
|
+
}).join("").match(formattingTokensRegExp).map((d) => {
|
|
17371
|
+
if (d === "''")
|
|
17368
17372
|
return { isToken: !1, value: "'" };
|
|
17369
|
-
const m =
|
|
17373
|
+
const m = d[0];
|
|
17370
17374
|
if (m === "'")
|
|
17371
|
-
return { isToken: !1, value: cleanEscapedString(
|
|
17375
|
+
return { isToken: !1, value: cleanEscapedString(d) };
|
|
17372
17376
|
if (formatters$1[m])
|
|
17373
|
-
return { isToken: !0, value:
|
|
17377
|
+
return { isToken: !0, value: d };
|
|
17374
17378
|
if (m.match(unescapedLatinCharacterRegExp))
|
|
17375
17379
|
throw new RangeError(
|
|
17376
17380
|
"Format string contains an unescaped latin alphabet character `" + m + "`"
|
|
17377
17381
|
);
|
|
17378
|
-
return { isToken: !1, value:
|
|
17382
|
+
return { isToken: !1, value: d };
|
|
17379
17383
|
});
|
|
17380
17384
|
i.localize.preprocessor && (c = i.localize.preprocessor(l, c));
|
|
17381
|
-
const
|
|
17385
|
+
const u = {
|
|
17382
17386
|
firstWeekContainsDate: a,
|
|
17383
17387
|
weekStartsOn: o,
|
|
17384
17388
|
locale: i
|
|
17385
17389
|
};
|
|
17386
|
-
return c.map((
|
|
17387
|
-
if (!
|
|
17388
|
-
const m =
|
|
17390
|
+
return c.map((d) => {
|
|
17391
|
+
if (!d.isToken) return d.value;
|
|
17392
|
+
const m = d.value;
|
|
17389
17393
|
(!n?.useAdditionalWeekYearTokens && isProtectedWeekYearToken(m) || !n?.useAdditionalDayOfYearTokens && isProtectedDayOfYearToken(m)) && warnOrThrowProtectedError(m, t, String(e));
|
|
17390
17394
|
const p = formatters$1[m[0]];
|
|
17391
|
-
return p(l, m, i.localize,
|
|
17395
|
+
return p(l, m, i.localize, u);
|
|
17392
17396
|
}).join("");
|
|
17393
17397
|
}
|
|
17394
17398
|
function cleanEscapedString(e) {
|
|
@@ -17401,13 +17405,13 @@ function formatDistance(e, t, n) {
|
|
|
17401
17405
|
const l = Object.assign({}, n, {
|
|
17402
17406
|
addSuffix: n?.addSuffix,
|
|
17403
17407
|
comparison: o
|
|
17404
|
-
}), [c,
|
|
17408
|
+
}), [c, u] = normalizeDates(
|
|
17405
17409
|
n?.in,
|
|
17406
17410
|
...o > 0 ? [t, e] : [e, t]
|
|
17407
|
-
),
|
|
17411
|
+
), d = differenceInSeconds(u, c), m = (getTimezoneOffsetInMilliseconds$1(u) - getTimezoneOffsetInMilliseconds$1(c)) / 1e3, p = Math.round((d - m) / 60);
|
|
17408
17412
|
let b;
|
|
17409
17413
|
if (p < 2)
|
|
17410
|
-
return n?.includeSeconds ?
|
|
17414
|
+
return n?.includeSeconds ? d < 5 ? i.formatDistance("lessThanXSeconds", 5, l) : d < 10 ? i.formatDistance("lessThanXSeconds", 10, l) : d < 20 ? i.formatDistance("lessThanXSeconds", 20, l) : d < 40 ? i.formatDistance("halfAMinute", 0, l) : d < 60 ? i.formatDistance("lessThanXMinutes", 1, l) : i.formatDistance("xMinutes", 1, l) : p === 0 ? i.formatDistance("lessThanXMinutes", 1, l) : i.formatDistance("xMinutes", p, l);
|
|
17411
17415
|
if (p < 45)
|
|
17412
17416
|
return i.formatDistance("xMinutes", p, l);
|
|
17413
17417
|
if (p < 90)
|
|
@@ -17424,7 +17428,7 @@ function formatDistance(e, t, n) {
|
|
|
17424
17428
|
} else if (p < minutesInMonth * 2)
|
|
17425
17429
|
return b = Math.round(p / minutesInMonth), i.formatDistance("aboutXMonths", b, l);
|
|
17426
17430
|
}
|
|
17427
|
-
if (b = differenceInMonths(
|
|
17431
|
+
if (b = differenceInMonths(u, c), b < 12) {
|
|
17428
17432
|
const f = Math.round(p / minutesInMonth);
|
|
17429
17433
|
return i.formatDistance("xMonths", f, l);
|
|
17430
17434
|
} else {
|
|
@@ -17445,8 +17449,8 @@ function parseISO(e, t) {
|
|
|
17445
17449
|
const n = () => constructFrom(t?.in, NaN), s = t?.additionalDigits ?? 2, i = splitDateString$1(e);
|
|
17446
17450
|
let a;
|
|
17447
17451
|
if (i.date) {
|
|
17448
|
-
const
|
|
17449
|
-
a = parseDate$1(
|
|
17452
|
+
const u = parseYear$1(i.date, s);
|
|
17453
|
+
a = parseDate$1(u.restDateString, u.year);
|
|
17450
17454
|
}
|
|
17451
17455
|
if (!a || isNaN(+a)) return n();
|
|
17452
17456
|
const o = +a;
|
|
@@ -17456,17 +17460,17 @@ function parseISO(e, t) {
|
|
|
17456
17460
|
if (i.timezone) {
|
|
17457
17461
|
if (c = parseTimezone(i.timezone), isNaN(c)) return n();
|
|
17458
17462
|
} else {
|
|
17459
|
-
const
|
|
17460
|
-
return
|
|
17461
|
-
|
|
17462
|
-
|
|
17463
|
-
|
|
17464
|
-
),
|
|
17465
|
-
|
|
17466
|
-
|
|
17467
|
-
|
|
17468
|
-
|
|
17469
|
-
),
|
|
17463
|
+
const u = new Date(o + l), d = toDate$1(0, t?.in);
|
|
17464
|
+
return d.setFullYear(
|
|
17465
|
+
u.getUTCFullYear(),
|
|
17466
|
+
u.getUTCMonth(),
|
|
17467
|
+
u.getUTCDate()
|
|
17468
|
+
), d.setHours(
|
|
17469
|
+
u.getUTCHours(),
|
|
17470
|
+
u.getUTCMinutes(),
|
|
17471
|
+
u.getUTCSeconds(),
|
|
17472
|
+
u.getUTCMilliseconds()
|
|
17473
|
+
), d;
|
|
17470
17474
|
}
|
|
17471
17475
|
return toDate$1(o + l + c, t?.in);
|
|
17472
17476
|
}
|
|
@@ -17508,8 +17512,8 @@ function parseDate$1(e, t) {
|
|
|
17508
17512
|
if (s)
|
|
17509
17513
|
return validateWeekDate$1(t, l, c) ? dayOfISOWeekYear$1(t, l, c) : /* @__PURE__ */ new Date(NaN);
|
|
17510
17514
|
{
|
|
17511
|
-
const
|
|
17512
|
-
return !validateDate$1(t, a, o) || !validateDayOfYearDate$1(t, i) ? /* @__PURE__ */ new Date(NaN) : (
|
|
17515
|
+
const u = /* @__PURE__ */ new Date(0);
|
|
17516
|
+
return !validateDate$1(t, a, o) || !validateDayOfYearDate$1(t, i) ? /* @__PURE__ */ new Date(NaN) : (u.setUTCFullYear(t, a, Math.max(i, o)), u);
|
|
17513
17517
|
}
|
|
17514
17518
|
}
|
|
17515
17519
|
function parseDateUnit(e) {
|
|
@@ -17851,15 +17855,15 @@ function toDate(e, t = {}) {
|
|
|
17851
17855
|
return /* @__PURE__ */ new Date(NaN);
|
|
17852
17856
|
if (o) {
|
|
17853
17857
|
const l = o.getTime();
|
|
17854
|
-
let c = 0,
|
|
17858
|
+
let c = 0, u;
|
|
17855
17859
|
if (s.time && (c = parseTime(s.time), c === null || isNaN(c)))
|
|
17856
17860
|
return /* @__PURE__ */ new Date(NaN);
|
|
17857
17861
|
if (s.timeZone || t.timeZone) {
|
|
17858
|
-
if (
|
|
17862
|
+
if (u = tzParseTimezone(s.timeZone || t.timeZone, new Date(l + c)), isNaN(u))
|
|
17859
17863
|
return /* @__PURE__ */ new Date(NaN);
|
|
17860
17864
|
} else
|
|
17861
|
-
|
|
17862
|
-
return new Date(l + c +
|
|
17865
|
+
u = getTimezoneOffsetInMilliseconds(new Date(l + c)), u = getTimezoneOffsetInMilliseconds(new Date(l + c + u));
|
|
17866
|
+
return new Date(l + c + u);
|
|
17863
17867
|
} else
|
|
17864
17868
|
return /* @__PURE__ */ new Date(NaN);
|
|
17865
17869
|
}
|
|
@@ -17980,8 +17984,8 @@ function format(e, t, n = {}) {
|
|
|
17980
17984
|
t = s.reduce(function(a, o) {
|
|
17981
17985
|
if (o[0] === "'")
|
|
17982
17986
|
return a;
|
|
17983
|
-
const l = a.indexOf(o), c = a[l - 1] === "'",
|
|
17984
|
-
return c ?
|
|
17987
|
+
const l = a.indexOf(o), c = a[l - 1] === "'", u = a.replace(o, "'" + formatters[o[0]](i, o, n) + "'");
|
|
17988
|
+
return c ? u.substring(0, l - 1) + u.substring(l + 1) : u;
|
|
17985
17989
|
}, t);
|
|
17986
17990
|
}
|
|
17987
17991
|
return format$1(e, t, n);
|
|
@@ -18537,9 +18541,9 @@ Object.defineProperties(AxiosError$1, descriptors);
|
|
|
18537
18541
|
Object.defineProperty(prototype$1, "isAxiosError", { value: !0 });
|
|
18538
18542
|
AxiosError$1.from = (e, t, n, s, i, a) => {
|
|
18539
18543
|
const o = Object.create(prototype$1);
|
|
18540
|
-
utils$1.toFlatObject(e, o, function(
|
|
18541
|
-
return
|
|
18542
|
-
}, (
|
|
18544
|
+
utils$1.toFlatObject(e, o, function(d) {
|
|
18545
|
+
return d !== Error.prototype;
|
|
18546
|
+
}, (u) => u !== "isAxiosError");
|
|
18543
18547
|
const l = e && e.message ? e.message : "Error", c = t == null && e ? e.code : t;
|
|
18544
18548
|
return AxiosError$1.call(o, l, c, n, s, i), e && o.cause == null && Object.defineProperty(o, "cause", { value: e, configurable: !0 }), o.name = e && e.name || "Error", a && Object.assign(o, a), o;
|
|
18545
18549
|
};
|
|
@@ -18571,10 +18575,10 @@ function toFormData$1(e, t, n) {
|
|
|
18571
18575
|
}, !1, function(v, k) {
|
|
18572
18576
|
return !utils$1.isUndefined(k[v]);
|
|
18573
18577
|
});
|
|
18574
|
-
const s = n.metaTokens, i = n.visitor ||
|
|
18578
|
+
const s = n.metaTokens, i = n.visitor || d, a = n.dots, o = n.indexes, c = (n.Blob || typeof Blob < "u" && Blob) && utils$1.isSpecCompliantForm(t);
|
|
18575
18579
|
if (!utils$1.isFunction(i))
|
|
18576
18580
|
throw new TypeError("visitor must be a function");
|
|
18577
|
-
function
|
|
18581
|
+
function u(f) {
|
|
18578
18582
|
if (f === null) return "";
|
|
18579
18583
|
if (utils$1.isDate(f))
|
|
18580
18584
|
return f.toISOString();
|
|
@@ -18584,7 +18588,7 @@ function toFormData$1(e, t, n) {
|
|
|
18584
18588
|
throw new AxiosError$1("Blob is not supported. Use a Buffer instead.");
|
|
18585
18589
|
return utils$1.isArrayBuffer(f) || utils$1.isTypedArray(f) ? c && typeof Blob == "function" ? new Blob([f]) : Buffer.from(f) : f;
|
|
18586
18590
|
}
|
|
18587
|
-
function
|
|
18591
|
+
function d(f, v, k) {
|
|
18588
18592
|
let y = f;
|
|
18589
18593
|
if (f && !k && typeof f == "object") {
|
|
18590
18594
|
if (utils$1.endsWith(v, "{}"))
|
|
@@ -18594,15 +18598,15 @@ function toFormData$1(e, t, n) {
|
|
|
18594
18598
|
!(utils$1.isUndefined(g) || g === null) && t.append(
|
|
18595
18599
|
// eslint-disable-next-line no-nested-ternary
|
|
18596
18600
|
o === !0 ? renderKey([v], C, a) : o === null ? v : v + "[]",
|
|
18597
|
-
|
|
18601
|
+
u(g)
|
|
18598
18602
|
);
|
|
18599
18603
|
}), !1;
|
|
18600
18604
|
}
|
|
18601
|
-
return isVisitable(f) ? !0 : (t.append(renderKey(k, v, a),
|
|
18605
|
+
return isVisitable(f) ? !0 : (t.append(renderKey(k, v, a), u(f)), !1);
|
|
18602
18606
|
}
|
|
18603
18607
|
const m = [], p = Object.assign(predicates, {
|
|
18604
|
-
defaultVisitor:
|
|
18605
|
-
convertValue:
|
|
18608
|
+
defaultVisitor: d,
|
|
18609
|
+
convertValue: u,
|
|
18606
18610
|
isVisitable
|
|
18607
18611
|
});
|
|
18608
18612
|
function b(f, v) {
|
|
@@ -18933,24 +18937,24 @@ let AxiosHeaders$1 = class {
|
|
|
18933
18937
|
}
|
|
18934
18938
|
set(t, n, s) {
|
|
18935
18939
|
const i = this;
|
|
18936
|
-
function a(l, c,
|
|
18937
|
-
const
|
|
18938
|
-
if (!
|
|
18940
|
+
function a(l, c, u) {
|
|
18941
|
+
const d = normalizeHeader(c);
|
|
18942
|
+
if (!d)
|
|
18939
18943
|
throw new Error("header name must be a non-empty string");
|
|
18940
|
-
const m = utils$1.findKey(i,
|
|
18941
|
-
(!m || i[m] === void 0 ||
|
|
18944
|
+
const m = utils$1.findKey(i, d);
|
|
18945
|
+
(!m || i[m] === void 0 || u === !0 || u === void 0 && i[m] !== !1) && (i[m || c] = normalizeValue(l));
|
|
18942
18946
|
}
|
|
18943
|
-
const o = (l, c) => utils$1.forEach(l, (
|
|
18947
|
+
const o = (l, c) => utils$1.forEach(l, (u, d) => a(u, d, c));
|
|
18944
18948
|
if (utils$1.isPlainObject(t) || t instanceof this.constructor)
|
|
18945
18949
|
o(t, n);
|
|
18946
18950
|
else if (utils$1.isString(t) && (t = t.trim()) && !isValidHeaderName(t))
|
|
18947
18951
|
o(parseHeaders(t), n);
|
|
18948
18952
|
else if (utils$1.isObject(t) && utils$1.isIterable(t)) {
|
|
18949
|
-
let l = {}, c,
|
|
18950
|
-
for (const
|
|
18951
|
-
if (!utils$1.isArray(
|
|
18953
|
+
let l = {}, c, u;
|
|
18954
|
+
for (const d of t) {
|
|
18955
|
+
if (!utils$1.isArray(d))
|
|
18952
18956
|
throw TypeError("Object iterator must return a key-value pair");
|
|
18953
|
-
l[
|
|
18957
|
+
l[u = d[0]] = (c = l[u]) ? utils$1.isArray(c) ? [...c, d[1]] : [c, d[1]] : d[1];
|
|
18954
18958
|
}
|
|
18955
18959
|
o(l, n);
|
|
18956
18960
|
} else
|
|
@@ -19099,25 +19103,25 @@ function speedometer(e, t) {
|
|
|
19099
19103
|
const n = new Array(e), s = new Array(e);
|
|
19100
19104
|
let i = 0, a = 0, o;
|
|
19101
19105
|
return t = t !== void 0 ? t : 1e3, function(c) {
|
|
19102
|
-
const
|
|
19103
|
-
o || (o =
|
|
19106
|
+
const u = Date.now(), d = s[a];
|
|
19107
|
+
o || (o = u), n[i] = c, s[i] = u;
|
|
19104
19108
|
let m = a, p = 0;
|
|
19105
19109
|
for (; m !== i; )
|
|
19106
19110
|
p += n[m++], m = m % e;
|
|
19107
|
-
if (i = (i + 1) % e, i === a && (a = (a + 1) % e),
|
|
19111
|
+
if (i = (i + 1) % e, i === a && (a = (a + 1) % e), u - o < t)
|
|
19108
19112
|
return;
|
|
19109
|
-
const b =
|
|
19113
|
+
const b = d && u - d;
|
|
19110
19114
|
return b ? Math.round(p * 1e3 / b) : void 0;
|
|
19111
19115
|
};
|
|
19112
19116
|
}
|
|
19113
19117
|
function throttle(e, t) {
|
|
19114
19118
|
let n = 0, s = 1e3 / t, i, a;
|
|
19115
|
-
const o = (
|
|
19116
|
-
n =
|
|
19119
|
+
const o = (u, d = Date.now()) => {
|
|
19120
|
+
n = d, i = null, a && (clearTimeout(a), a = null), e(...u);
|
|
19117
19121
|
};
|
|
19118
|
-
return [(...
|
|
19119
|
-
const
|
|
19120
|
-
m >= s ? o(
|
|
19122
|
+
return [(...u) => {
|
|
19123
|
+
const d = Date.now(), m = d - n;
|
|
19124
|
+
m >= s ? o(u, d) : (i = u, a || (a = setTimeout(() => {
|
|
19121
19125
|
a = null, o(i);
|
|
19122
19126
|
}, s - m)));
|
|
19123
19127
|
}, () => i && o(i)];
|
|
@@ -19126,15 +19130,15 @@ const progressEventReducer = (e, t, n = 3) => {
|
|
|
19126
19130
|
let s = 0;
|
|
19127
19131
|
const i = speedometer(50, 250);
|
|
19128
19132
|
return throttle((a) => {
|
|
19129
|
-
const o = a.loaded, l = a.lengthComputable ? a.total : void 0, c = o - s,
|
|
19133
|
+
const o = a.loaded, l = a.lengthComputable ? a.total : void 0, c = o - s, u = i(c), d = o <= l;
|
|
19130
19134
|
s = o;
|
|
19131
19135
|
const m = {
|
|
19132
19136
|
loaded: o,
|
|
19133
19137
|
total: l,
|
|
19134
19138
|
progress: l ? o / l : void 0,
|
|
19135
19139
|
bytes: c,
|
|
19136
|
-
rate:
|
|
19137
|
-
estimated:
|
|
19140
|
+
rate: u || void 0,
|
|
19141
|
+
estimated: u && l && d ? (l - o) / u : void 0,
|
|
19138
19142
|
event: a,
|
|
19139
19143
|
lengthComputable: l != null,
|
|
19140
19144
|
[t ? "download" : "upload"]: !0
|
|
@@ -19194,30 +19198,30 @@ const headersToObject = (e) => e instanceof AxiosHeaders$1 ? { ...e } : e;
|
|
|
19194
19198
|
function mergeConfig$1(e, t) {
|
|
19195
19199
|
t = t || {};
|
|
19196
19200
|
const n = {};
|
|
19197
|
-
function s(
|
|
19198
|
-
return utils$1.isPlainObject(
|
|
19201
|
+
function s(u, d, m, p) {
|
|
19202
|
+
return utils$1.isPlainObject(u) && utils$1.isPlainObject(d) ? utils$1.merge.call({ caseless: p }, u, d) : utils$1.isPlainObject(d) ? utils$1.merge({}, d) : utils$1.isArray(d) ? d.slice() : d;
|
|
19199
19203
|
}
|
|
19200
|
-
function i(
|
|
19201
|
-
if (utils$1.isUndefined(
|
|
19202
|
-
if (!utils$1.isUndefined(
|
|
19203
|
-
return s(void 0,
|
|
19204
|
-
} else return s(
|
|
19204
|
+
function i(u, d, m, p) {
|
|
19205
|
+
if (utils$1.isUndefined(d)) {
|
|
19206
|
+
if (!utils$1.isUndefined(u))
|
|
19207
|
+
return s(void 0, u, m, p);
|
|
19208
|
+
} else return s(u, d, m, p);
|
|
19205
19209
|
}
|
|
19206
|
-
function a(
|
|
19207
|
-
if (!utils$1.isUndefined(
|
|
19208
|
-
return s(void 0,
|
|
19210
|
+
function a(u, d) {
|
|
19211
|
+
if (!utils$1.isUndefined(d))
|
|
19212
|
+
return s(void 0, d);
|
|
19209
19213
|
}
|
|
19210
|
-
function o(
|
|
19211
|
-
if (utils$1.isUndefined(
|
|
19212
|
-
if (!utils$1.isUndefined(
|
|
19213
|
-
return s(void 0,
|
|
19214
|
-
} else return s(void 0,
|
|
19214
|
+
function o(u, d) {
|
|
19215
|
+
if (utils$1.isUndefined(d)) {
|
|
19216
|
+
if (!utils$1.isUndefined(u))
|
|
19217
|
+
return s(void 0, u);
|
|
19218
|
+
} else return s(void 0, d);
|
|
19215
19219
|
}
|
|
19216
|
-
function l(
|
|
19220
|
+
function l(u, d, m) {
|
|
19217
19221
|
if (m in t)
|
|
19218
|
-
return s(
|
|
19222
|
+
return s(u, d);
|
|
19219
19223
|
if (m in e)
|
|
19220
|
-
return s(void 0,
|
|
19224
|
+
return s(void 0, u);
|
|
19221
19225
|
}
|
|
19222
19226
|
const c = {
|
|
19223
19227
|
url: a,
|
|
@@ -19248,11 +19252,11 @@ function mergeConfig$1(e, t) {
|
|
|
19248
19252
|
socketPath: o,
|
|
19249
19253
|
responseEncoding: o,
|
|
19250
19254
|
validateStatus: l,
|
|
19251
|
-
headers: (
|
|
19255
|
+
headers: (u, d, m) => i(headersToObject(u), headersToObject(d), m, !0)
|
|
19252
19256
|
};
|
|
19253
|
-
return utils$1.forEach(Object.keys({ ...e, ...t }), function(
|
|
19254
|
-
const m = c[
|
|
19255
|
-
utils$1.isUndefined(p) && m !== l || (n[
|
|
19257
|
+
return utils$1.forEach(Object.keys({ ...e, ...t }), function(d) {
|
|
19258
|
+
const m = c[d] || i, p = m(e[d], t[d], d);
|
|
19259
|
+
utils$1.isUndefined(p) && m !== l || (n[d] = p);
|
|
19256
19260
|
}), n;
|
|
19257
19261
|
}
|
|
19258
19262
|
const resolveConfig = (e) => {
|
|
@@ -19265,9 +19269,9 @@ const resolveConfig = (e) => {
|
|
|
19265
19269
|
if (platform.hasStandardBrowserEnv || platform.hasStandardBrowserWebWorkerEnv)
|
|
19266
19270
|
o.setContentType(void 0);
|
|
19267
19271
|
else if (utils$1.isFunction(n.getHeaders)) {
|
|
19268
|
-
const c = n.getHeaders(),
|
|
19269
|
-
Object.entries(c).forEach(([
|
|
19270
|
-
|
|
19272
|
+
const c = n.getHeaders(), u = ["content-type", "content-length"];
|
|
19273
|
+
Object.entries(c).forEach(([d, m]) => {
|
|
19274
|
+
u.includes(d.toLowerCase()) && o.set(d, m);
|
|
19271
19275
|
});
|
|
19272
19276
|
}
|
|
19273
19277
|
}
|
|
@@ -19281,9 +19285,9 @@ const resolveConfig = (e) => {
|
|
|
19281
19285
|
const i = resolveConfig(e);
|
|
19282
19286
|
let a = i.data;
|
|
19283
19287
|
const o = AxiosHeaders$1.from(i.headers).normalize();
|
|
19284
|
-
let { responseType: l, onUploadProgress: c, onDownloadProgress:
|
|
19288
|
+
let { responseType: l, onUploadProgress: c, onDownloadProgress: u } = i, d, m, p, b, f;
|
|
19285
19289
|
function v() {
|
|
19286
|
-
b && b(), f && f(), i.cancelToken && i.cancelToken.unsubscribe(
|
|
19290
|
+
b && b(), f && f(), i.cancelToken && i.cancelToken.unsubscribe(d), i.signal && i.signal.removeEventListener("abort", d);
|
|
19287
19291
|
}
|
|
19288
19292
|
let k = new XMLHttpRequest();
|
|
19289
19293
|
k.open(i.method.toUpperCase(), i.url, !0), k.timeout = i.timeout;
|
|
@@ -19324,9 +19328,9 @@ const resolveConfig = (e) => {
|
|
|
19324
19328
|
)), k = null;
|
|
19325
19329
|
}, a === void 0 && o.setContentType(null), "setRequestHeader" in k && utils$1.forEach(o.toJSON(), function(C, S) {
|
|
19326
19330
|
k.setRequestHeader(S, C);
|
|
19327
|
-
}), utils$1.isUndefined(i.withCredentials) || (k.withCredentials = !!i.withCredentials), l && l !== "json" && (k.responseType = i.responseType),
|
|
19331
|
+
}), utils$1.isUndefined(i.withCredentials) || (k.withCredentials = !!i.withCredentials), l && l !== "json" && (k.responseType = i.responseType), u && ([p, f] = progressEventReducer(u, !0), k.addEventListener("progress", p)), c && k.upload && ([m, b] = progressEventReducer(c), k.upload.addEventListener("progress", m), k.upload.addEventListener("loadend", b)), (i.cancelToken || i.signal) && (d = (g) => {
|
|
19328
19332
|
k && (s(!g || g.type ? new CanceledError$1(null, e, k) : g), k.abort(), k = null);
|
|
19329
|
-
}, i.cancelToken && i.cancelToken.subscribe(
|
|
19333
|
+
}, i.cancelToken && i.cancelToken.subscribe(d), i.signal && (i.signal.aborted ? d() : i.signal.addEventListener("abort", d)));
|
|
19330
19334
|
const x = parseProtocol(i.url);
|
|
19331
19335
|
if (x && platform.protocols.indexOf(x) === -1) {
|
|
19332
19336
|
s(new AxiosError$1("Unsupported protocol " + x + ":", AxiosError$1.ERR_BAD_REQUEST, e));
|
|
@@ -19338,22 +19342,22 @@ const resolveConfig = (e) => {
|
|
|
19338
19342
|
const { length: n } = e = e ? e.filter(Boolean) : [];
|
|
19339
19343
|
if (t || n) {
|
|
19340
19344
|
let s = new AbortController(), i;
|
|
19341
|
-
const a = function(
|
|
19345
|
+
const a = function(u) {
|
|
19342
19346
|
if (!i) {
|
|
19343
19347
|
i = !0, l();
|
|
19344
|
-
const
|
|
19345
|
-
s.abort(
|
|
19348
|
+
const d = u instanceof Error ? u : this.reason;
|
|
19349
|
+
s.abort(d instanceof AxiosError$1 ? d : new CanceledError$1(d instanceof Error ? d.message : d));
|
|
19346
19350
|
}
|
|
19347
19351
|
};
|
|
19348
19352
|
let o = t && setTimeout(() => {
|
|
19349
19353
|
o = null, a(new AxiosError$1(`timeout ${t} of ms exceeded`, AxiosError$1.ETIMEDOUT));
|
|
19350
19354
|
}, t);
|
|
19351
19355
|
const l = () => {
|
|
19352
|
-
e && (o && clearTimeout(o), o = null, e.forEach((
|
|
19353
|
-
|
|
19356
|
+
e && (o && clearTimeout(o), o = null, e.forEach((u) => {
|
|
19357
|
+
u.unsubscribe ? u.unsubscribe(a) : u.removeEventListener("abort", a);
|
|
19354
19358
|
}), e = null);
|
|
19355
19359
|
};
|
|
19356
|
-
e.forEach((
|
|
19360
|
+
e.forEach((u) => u.addEventListener("abort", a));
|
|
19357
19361
|
const { signal: c } = s;
|
|
19358
19362
|
return c.unsubscribe = () => utils$1.asap(l), c;
|
|
19359
19363
|
}
|
|
@@ -19393,19 +19397,19 @@ const resolveConfig = (e) => {
|
|
|
19393
19397
|
return new ReadableStream({
|
|
19394
19398
|
async pull(c) {
|
|
19395
19399
|
try {
|
|
19396
|
-
const { done:
|
|
19397
|
-
if (
|
|
19400
|
+
const { done: u, value: d } = await i.next();
|
|
19401
|
+
if (u) {
|
|
19398
19402
|
l(), c.close();
|
|
19399
19403
|
return;
|
|
19400
19404
|
}
|
|
19401
|
-
let m =
|
|
19405
|
+
let m = d.byteLength;
|
|
19402
19406
|
if (n) {
|
|
19403
19407
|
let p = a += m;
|
|
19404
19408
|
n(p);
|
|
19405
19409
|
}
|
|
19406
|
-
c.enqueue(new Uint8Array(
|
|
19407
|
-
} catch (
|
|
19408
|
-
throw l(
|
|
19410
|
+
c.enqueue(new Uint8Array(d));
|
|
19411
|
+
} catch (u) {
|
|
19412
|
+
throw l(u), u;
|
|
19409
19413
|
}
|
|
19410
19414
|
},
|
|
19411
19415
|
cancel(c) {
|
|
@@ -19433,7 +19437,7 @@ const resolveConfig = (e) => {
|
|
|
19433
19437
|
const { fetch: t, Request: n, Response: s } = e, i = t ? isFunction(t) : typeof fetch == "function", a = isFunction(n), o = isFunction(s);
|
|
19434
19438
|
if (!i)
|
|
19435
19439
|
return !1;
|
|
19436
|
-
const l = i && isFunction(ReadableStream$1), c = i && (typeof TextEncoder$1 == "function" ? /* @__PURE__ */ ((f) => (v) => f.encode(v))(new TextEncoder$1()) : async (f) => new Uint8Array(await new n(f).arrayBuffer())),
|
|
19440
|
+
const l = i && isFunction(ReadableStream$1), c = i && (typeof TextEncoder$1 == "function" ? /* @__PURE__ */ ((f) => (v) => f.encode(v))(new TextEncoder$1()) : async (f) => new Uint8Array(await new n(f).arrayBuffer())), u = a && l && test(() => {
|
|
19437
19441
|
let f = !1;
|
|
19438
19442
|
const v = new n(platform.origin, {
|
|
19439
19443
|
body: new ReadableStream$1(),
|
|
@@ -19443,8 +19447,8 @@ const resolveConfig = (e) => {
|
|
|
19443
19447
|
}
|
|
19444
19448
|
}).headers.has("Content-Type");
|
|
19445
19449
|
return f && !v;
|
|
19446
|
-
}),
|
|
19447
|
-
stream:
|
|
19450
|
+
}), d = o && l && test(() => utils$1.isReadableStream(new s("").body)), m = {
|
|
19451
|
+
stream: d && ((f) => f.body)
|
|
19448
19452
|
};
|
|
19449
19453
|
i && ["text", "arrayBuffer", "blob", "formData", "stream"].forEach((f) => {
|
|
19450
19454
|
!m[f] && (m[f] = (v, k) => {
|
|
@@ -19494,7 +19498,7 @@ const resolveConfig = (e) => {
|
|
|
19494
19498
|
});
|
|
19495
19499
|
let N;
|
|
19496
19500
|
try {
|
|
19497
|
-
if (_ &&
|
|
19501
|
+
if (_ && u && k !== "get" && k !== "head" && (N = await b(P, y)) !== 0) {
|
|
19498
19502
|
let V = new n(v, {
|
|
19499
19503
|
method: "POST",
|
|
19500
19504
|
body: y,
|
|
@@ -19520,8 +19524,8 @@ const resolveConfig = (e) => {
|
|
|
19520
19524
|
};
|
|
19521
19525
|
L = a && new n(v, F);
|
|
19522
19526
|
let w = await (a ? $(L, I) : $(v, F));
|
|
19523
|
-
const E =
|
|
19524
|
-
if (
|
|
19527
|
+
const E = d && (T === "stream" || T === "response");
|
|
19528
|
+
if (d && (S || E && z)) {
|
|
19525
19529
|
const V = {};
|
|
19526
19530
|
["status", "statusText", "headers"].forEach((W) => {
|
|
19527
19531
|
V[W] = w[W];
|
|
@@ -19565,10 +19569,10 @@ const resolveConfig = (e) => {
|
|
|
19565
19569
|
i,
|
|
19566
19570
|
n
|
|
19567
19571
|
];
|
|
19568
|
-
let o = a.length, l = o, c,
|
|
19572
|
+
let o = a.length, l = o, c, u, d = seedCache;
|
|
19569
19573
|
for (; l--; )
|
|
19570
|
-
c = a[l],
|
|
19571
|
-
return
|
|
19574
|
+
c = a[l], u = d.get(c), u === void 0 && d.set(c, u = l ? /* @__PURE__ */ new Map() : factory(t)), d = u;
|
|
19575
|
+
return u;
|
|
19572
19576
|
};
|
|
19573
19577
|
getFetch();
|
|
19574
19578
|
const knownAdapters = {
|
|
@@ -19604,7 +19608,7 @@ function getAdapter$1(e, t) {
|
|
|
19604
19608
|
}
|
|
19605
19609
|
if (!i) {
|
|
19606
19610
|
const o = Object.entries(a).map(
|
|
19607
|
-
([c,
|
|
19611
|
+
([c, u]) => `adapter ${c} ` + (u === !1 ? "is not supported by the environment" : "is not available in the build")
|
|
19608
19612
|
);
|
|
19609
19613
|
let l = n ? o.length > 1 ? `since :
|
|
19610
19614
|
` + o.map(renderReason).join(`
|
|
@@ -19762,16 +19766,16 @@ let Axios$1 = class {
|
|
|
19762
19766
|
this.interceptors.request.forEach(function(v) {
|
|
19763
19767
|
typeof v.runWhen == "function" && v.runWhen(n) === !1 || (c = c && v.synchronous, l.unshift(v.fulfilled, v.rejected));
|
|
19764
19768
|
});
|
|
19765
|
-
const
|
|
19769
|
+
const u = [];
|
|
19766
19770
|
this.interceptors.response.forEach(function(v) {
|
|
19767
|
-
|
|
19771
|
+
u.push(v.fulfilled, v.rejected);
|
|
19768
19772
|
});
|
|
19769
|
-
let
|
|
19773
|
+
let d, m = 0, p;
|
|
19770
19774
|
if (!c) {
|
|
19771
19775
|
const f = [dispatchRequest.bind(this), void 0];
|
|
19772
|
-
for (f.unshift(...l), f.push(...
|
|
19773
|
-
|
|
19774
|
-
return
|
|
19776
|
+
for (f.unshift(...l), f.push(...u), p = f.length, d = Promise.resolve(n); m < p; )
|
|
19777
|
+
d = d.then(f[m++], f[m++]);
|
|
19778
|
+
return d;
|
|
19775
19779
|
}
|
|
19776
19780
|
p = l.length;
|
|
19777
19781
|
let b = n;
|
|
@@ -19785,13 +19789,13 @@ let Axios$1 = class {
|
|
|
19785
19789
|
}
|
|
19786
19790
|
}
|
|
19787
19791
|
try {
|
|
19788
|
-
|
|
19792
|
+
d = dispatchRequest.call(this, b);
|
|
19789
19793
|
} catch (f) {
|
|
19790
19794
|
return Promise.reject(f);
|
|
19791
19795
|
}
|
|
19792
|
-
for (m = 0, p =
|
|
19793
|
-
|
|
19794
|
-
return
|
|
19796
|
+
for (m = 0, p = u.length; m < p; )
|
|
19797
|
+
d = d.then(u[m++], u[m++]);
|
|
19798
|
+
return d;
|
|
19795
19799
|
}
|
|
19796
19800
|
getUri(t) {
|
|
19797
19801
|
t = mergeConfig$1(this.defaults, t);
|
|
@@ -20206,15 +20210,15 @@ const {
|
|
|
20206
20210
|
secondsFormat: (o) => {
|
|
20207
20211
|
if (o < 0)
|
|
20208
20212
|
return "-";
|
|
20209
|
-
const l = Math.floor(o / 3600), c = Math.floor((o - l * 3600) / 60),
|
|
20210
|
-
let
|
|
20211
|
-
return l > 0 && (
|
|
20213
|
+
const l = Math.floor(o / 3600), c = Math.floor((o - l * 3600) / 60), u = (o - (l * 3600 + c * 60)) % 60;
|
|
20214
|
+
let d = "";
|
|
20215
|
+
return l > 0 && (d += `${l}h `), c > 0 && (d += `${c}m `), u > 0 && (d += `${u}s`), d ? d.trim() : "0s";
|
|
20212
20216
|
},
|
|
20213
20217
|
secondsLongFormat: (o) => {
|
|
20214
20218
|
if (o < 0)
|
|
20215
20219
|
return "-";
|
|
20216
|
-
const l = Math.floor(o / 3600), c = Math.floor((o - l * 3600) / 60),
|
|
20217
|
-
return `${
|
|
20220
|
+
const l = Math.floor(o / 3600), c = Math.floor((o - l * 3600) / 60), u = (o - (l * 3600 + c * 60)) % 60, d = l > 9 ? l : `0${l}`, m = c > 9 ? c : `0${c}`, p = u > 9 ? u : `0${u}`;
|
|
20221
|
+
return `${d}h ${m}m ${p}s`;
|
|
20218
20222
|
}
|
|
20219
20223
|
}), Ns8UiLibNew = {
|
|
20220
20224
|
install(e) {
|