mirror of
https://github.com/FortAwesome/Font-Awesome.git
synced 2024-12-27 14:01:30 +08:00
1056 lines
50 KiB
JavaScript
1056 lines
50 KiB
JavaScript
!function() {
|
|
"use strict";
|
|
function r(t, n) {
|
|
for (var e = 0; e < n.length; e++) {
|
|
var a = n[e];
|
|
a.enumerable = a.enumerable || !1, a.configurable = !0, "value" in a && (a.writable = !0),
|
|
Object.defineProperty(t, a.key, a);
|
|
}
|
|
}
|
|
function q(r) {
|
|
for (var t = 1; t < arguments.length; t++) {
|
|
var i = null != arguments[t] ? arguments[t] : {}, n = Object.keys(i);
|
|
"function" == typeof Object.getOwnPropertySymbols && (n = n.concat(Object.getOwnPropertySymbols(i).filter(function(t) {
|
|
return Object.getOwnPropertyDescriptor(i, t).enumerable;
|
|
}))), n.forEach(function(t) {
|
|
var n, e, a;
|
|
n = r, a = i[e = t], e in n ? Object.defineProperty(n, e, {
|
|
value: a,
|
|
enumerable: !0,
|
|
configurable: !0,
|
|
writable: !0
|
|
}) : n[e] = a;
|
|
});
|
|
}
|
|
return r;
|
|
}
|
|
function o(t, n) {
|
|
return function(t) {
|
|
if (Array.isArray(t)) return t;
|
|
}(t) || function(t, n) {
|
|
var e = [], a = !0, r = !1, i = void 0;
|
|
try {
|
|
for (var o, s = t[Symbol.iterator](); !(a = (o = s.next()).done) && (e.push(o.value),
|
|
!n || e.length !== n); a = !0) ;
|
|
} catch (t) {
|
|
r = !0, i = t;
|
|
} finally {
|
|
try {
|
|
a || null == s.return || s.return();
|
|
} finally {
|
|
if (r) throw i;
|
|
}
|
|
}
|
|
return e;
|
|
}(t, n) || function() {
|
|
throw new TypeError("Invalid attempt to destructure non-iterable instance");
|
|
}();
|
|
}
|
|
function m(t) {
|
|
return function(t) {
|
|
if (Array.isArray(t)) {
|
|
for (var n = 0, e = new Array(t.length); n < t.length; n++) e[n] = t[n];
|
|
return e;
|
|
}
|
|
}(t) || function(t) {
|
|
if (Symbol.iterator in Object(t) || "[object Arguments]" === Object.prototype.toString.call(t)) return Array.from(t);
|
|
}(t) || function() {
|
|
throw new TypeError("Invalid attempt to spread non-iterable instance");
|
|
}();
|
|
}
|
|
var t = function() {}, n = {}, e = {}, a = null, i = {
|
|
mark: t,
|
|
measure: t
|
|
};
|
|
try {
|
|
"undefined" != typeof window && (n = window), "undefined" != typeof document && (e = document),
|
|
"undefined" != typeof MutationObserver && (a = MutationObserver), "undefined" != typeof performance && (i = performance);
|
|
} catch (t) {}
|
|
var s = (n.navigator || {}).userAgent, c = void 0 === s ? "" : s, d = n, g = e, l = a, f = i, u = !!d.document, h = !!g.documentElement && !!g.head && "function" == typeof g.addEventListener && "function" == typeof g.createElement, k = ~c.indexOf("MSIE") || ~c.indexOf("Trident/"), p = "___FONT_AWESOME___", C = 16, v = "fa", b = "svg-inline--fa", U = "data-fa-i2svg", y = "data-fa-pseudo-element", w = "data-prefix", x = "data-icon", M = "fontawesome-i2svg", A = [ "HTML", "HEAD", "STYLE", "SCRIPT" ], N = function() {
|
|
try {
|
|
return !1;
|
|
} catch (t) {
|
|
return !1;
|
|
}
|
|
}(), z = [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 ], O = z.concat([ 11, 12, 13, 14, 15, 16, 17, 18, 19, 20 ]), S = [ "class", "data-prefix", "data-icon", "data-fa-transform", "data-fa-mask" ], E = [ "xs", "sm", "lg", "fw", "ul", "li", "border", "pull-left", "pull-right", "spin", "pulse", "rotate-90", "rotate-180", "rotate-270", "flip-horizontal", "flip-vertical", "stack", "stack-1x", "stack-2x", "inverse", "layers", "layers-text", "layers-counter" ].concat(z.map(function(t) {
|
|
return "".concat(t, "x");
|
|
})).concat(O.map(function(t) {
|
|
return "w-".concat(t);
|
|
})), L = d.FontAwesomeConfig || {};
|
|
if (g && "function" == typeof g.querySelector) {
|
|
[ [ "data-family-prefix", "familyPrefix" ], [ "data-replacement-class", "replacementClass" ], [ "data-auto-replace-svg", "autoReplaceSvg" ], [ "data-auto-add-css", "autoAddCss" ], [ "data-auto-a11y", "autoA11y" ], [ "data-search-pseudo-elements", "searchPseudoElements" ], [ "data-observe-mutations", "observeMutations" ], [ "data-keep-original-source", "keepOriginalSource" ], [ "data-measure-performance", "measurePerformance" ], [ "data-show-missing-icons", "showMissingIcons" ] ].forEach(function(t) {
|
|
var n, e = o(t, 2), a = e[0], r = e[1], i = "" === (n = function(t) {
|
|
var n = g.querySelector("script[" + t + "]");
|
|
if (n) return n.getAttribute(t);
|
|
}(a)) || "false" !== n && ("true" === n || n);
|
|
null != i && (L[r] = i);
|
|
});
|
|
}
|
|
var P = q({
|
|
familyPrefix: v,
|
|
replacementClass: b,
|
|
autoReplaceSvg: !0,
|
|
autoAddCss: !0,
|
|
autoA11y: !0,
|
|
searchPseudoElements: !1,
|
|
observeMutations: !0,
|
|
keepOriginalSource: !0,
|
|
measurePerformance: !1,
|
|
showMissingIcons: !0
|
|
}, L);
|
|
P.autoReplaceSvg || (P.observeMutations = !1);
|
|
var V = q({}, P);
|
|
d.FontAwesomeConfig = V;
|
|
var j = d || {};
|
|
j[p] || (j[p] = {}), j[p].styles || (j[p].styles = {}), j[p].hooks || (j[p].hooks = {}),
|
|
j[p].shims || (j[p].shims = []);
|
|
var T = j[p], R = [], I = !1;
|
|
function H(t) {
|
|
h && (I ? setTimeout(t, 0) : R.push(t));
|
|
}
|
|
h && ((I = (g.documentElement.doScroll ? /^loaded|^c/ : /^loaded|^i|^c/).test(g.readyState)) || g.addEventListener("DOMContentLoaded", function t() {
|
|
g.removeEventListener("DOMContentLoaded", t), I = 1, R.map(function(t) {
|
|
return t();
|
|
});
|
|
}));
|
|
var D = C, B = {
|
|
size: 16,
|
|
x: 0,
|
|
y: 0,
|
|
rotate: 0,
|
|
flipX: !1,
|
|
flipY: !1
|
|
};
|
|
function X(t) {
|
|
if (t && h) {
|
|
var n = g.createElement("style");
|
|
n.setAttribute("type", "text/css"), n.innerHTML = t;
|
|
for (var e = g.head.childNodes, a = null, r = e.length - 1; -1 < r; r--) {
|
|
var i = e[r], o = (i.tagName || "").toUpperCase();
|
|
-1 < [ "STYLE", "LINK" ].indexOf(o) && (a = i);
|
|
}
|
|
return g.head.insertBefore(n, a), t;
|
|
}
|
|
}
|
|
var F = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";
|
|
function K() {
|
|
for (var t = 12, n = ""; 0 < t--; ) n += F[62 * Math.random() | 0];
|
|
return n;
|
|
}
|
|
function Y(t) {
|
|
for (var n = [], e = (t || []).length >>> 0; e--; ) n[e] = t[e];
|
|
return n;
|
|
}
|
|
function _(t) {
|
|
return t.classList ? Y(t.classList) : (t.getAttribute("class") || "").split(" ").filter(function(t) {
|
|
return t;
|
|
});
|
|
}
|
|
function W(t, n) {
|
|
var e, a = n.split("-"), r = a[0], i = a.slice(1).join("-");
|
|
return r !== t || "" === i || (e = i, ~E.indexOf(e)) ? null : i;
|
|
}
|
|
function G(t) {
|
|
return "".concat(t).replace(/&/g, "&").replace(/"/g, """).replace(/'/g, "'").replace(/</g, "<").replace(/>/g, ">");
|
|
}
|
|
function J(e) {
|
|
return Object.keys(e || {}).reduce(function(t, n) {
|
|
return t + "".concat(n, ": ").concat(e[n], ";");
|
|
}, "");
|
|
}
|
|
function Q(t) {
|
|
return t.size !== B.size || t.x !== B.x || t.y !== B.y || t.rotate !== B.rotate || t.flipX || t.flipY;
|
|
}
|
|
function Z(t) {
|
|
var n = t.transform, e = t.containerWidth, a = t.iconWidth, r = {
|
|
transform: "translate(".concat(e / 2, " 256)")
|
|
}, i = "translate(".concat(32 * n.x, ", ").concat(32 * n.y, ") "), o = "scale(".concat(n.size / 16 * (n.flipX ? -1 : 1), ", ").concat(n.size / 16 * (n.flipY ? -1 : 1), ") "), s = "rotate(".concat(n.rotate, " 0 0)");
|
|
return {
|
|
outer: r,
|
|
inner: {
|
|
transform: "".concat(i, " ").concat(o, " ").concat(s)
|
|
},
|
|
path: {
|
|
transform: "translate(".concat(a / 2 * -1, " -256)")
|
|
}
|
|
};
|
|
}
|
|
var $ = {
|
|
x: 0,
|
|
y: 0,
|
|
width: "100%",
|
|
height: "100%"
|
|
};
|
|
function tt(t) {
|
|
var n = t.icons, e = n.main, a = n.mask, r = t.prefix, i = t.iconName, o = t.transform, s = t.symbol, c = t.title, l = t.extra, f = t.watchable, u = void 0 !== f && f, m = a.found ? a : e, d = m.width, g = m.height, h = "fa-w-".concat(Math.ceil(d / g * 16)), p = [ V.replacementClass, i ? "".concat(V.familyPrefix, "-").concat(i) : "", h ].filter(function(t) {
|
|
return -1 === l.classes.indexOf(t);
|
|
}).concat(l.classes).join(" "), v = {
|
|
children: [],
|
|
attributes: q({}, l.attributes, {
|
|
"data-prefix": r,
|
|
"data-icon": i,
|
|
class: p,
|
|
role: "img",
|
|
xmlns: "http://www.w3.org/2000/svg",
|
|
viewBox: "0 0 ".concat(d, " ").concat(g)
|
|
})
|
|
};
|
|
u && (v.attributes[U] = ""), c && v.children.push({
|
|
tag: "title",
|
|
attributes: {
|
|
id: v.attributes["aria-labelledby"] || "title-".concat(K())
|
|
},
|
|
children: [ c ]
|
|
});
|
|
var b, y, w, x, k, C, M, A, N, z, O, S, E, L, P, j, T, R, I, H, D, B, X, F = q({}, v, {
|
|
prefix: r,
|
|
iconName: i,
|
|
main: e,
|
|
mask: a,
|
|
transform: o,
|
|
symbol: s,
|
|
styles: l.styles
|
|
}), Y = a.found && e.found ? (y = (b = F).children, w = b.attributes, x = b.main,
|
|
k = b.mask, C = b.transform, M = x.width, A = x.icon, N = k.width, z = k.icon, O = Z({
|
|
transform: C,
|
|
containerWidth: N,
|
|
iconWidth: M
|
|
}), S = {
|
|
tag: "rect",
|
|
attributes: q({}, $, {
|
|
fill: "white"
|
|
})
|
|
}, E = {
|
|
tag: "g",
|
|
attributes: q({}, O.inner),
|
|
children: [ {
|
|
tag: "path",
|
|
attributes: q({}, A.attributes, O.path, {
|
|
fill: "black"
|
|
})
|
|
} ]
|
|
}, L = {
|
|
tag: "g",
|
|
attributes: q({}, O.outer),
|
|
children: [ E ]
|
|
}, P = "mask-".concat(K()), j = "clip-".concat(K()), T = {
|
|
tag: "defs",
|
|
children: [ {
|
|
tag: "clipPath",
|
|
attributes: {
|
|
id: j
|
|
},
|
|
children: [ z ]
|
|
}, {
|
|
tag: "mask",
|
|
attributes: q({}, $, {
|
|
id: P,
|
|
maskUnits: "userSpaceOnUse",
|
|
maskContentUnits: "userSpaceOnUse"
|
|
}),
|
|
children: [ S, L ]
|
|
} ]
|
|
}, y.push(T, {
|
|
tag: "rect",
|
|
attributes: q({
|
|
fill: "currentColor",
|
|
"clip-path": "url(#".concat(j, ")"),
|
|
mask: "url(#".concat(P, ")")
|
|
}, $)
|
|
}), {
|
|
children: y,
|
|
attributes: w
|
|
}) : function(t) {
|
|
var n = t.children, e = t.attributes, a = t.main, r = t.transform, i = J(t.styles);
|
|
if (0 < i.length && (e.style = i), Q(r)) {
|
|
var o = Z({
|
|
transform: r,
|
|
containerWidth: a.width,
|
|
iconWidth: a.width
|
|
});
|
|
n.push({
|
|
tag: "g",
|
|
attributes: q({}, o.outer),
|
|
children: [ {
|
|
tag: "g",
|
|
attributes: q({}, o.inner),
|
|
children: [ {
|
|
tag: a.icon.tag,
|
|
children: a.icon.children,
|
|
attributes: q({}, a.icon.attributes, o.path)
|
|
} ]
|
|
} ]
|
|
});
|
|
} else n.push(a.icon);
|
|
return {
|
|
children: n,
|
|
attributes: e
|
|
};
|
|
}(F), _ = Y.children, W = Y.attributes;
|
|
return F.children = _, F.attributes = W, s ? (I = (R = F).prefix, H = R.iconName,
|
|
D = R.children, B = R.attributes, X = R.symbol, [ {
|
|
tag: "svg",
|
|
attributes: {
|
|
style: "display: none;"
|
|
},
|
|
children: [ {
|
|
tag: "symbol",
|
|
attributes: q({}, B, {
|
|
id: !0 === X ? "".concat(I, "-").concat(V.familyPrefix, "-").concat(H) : X
|
|
}),
|
|
children: D
|
|
} ]
|
|
} ]) : function(t) {
|
|
var n = t.children, e = t.main, a = t.mask, r = t.attributes, i = t.styles, o = t.transform;
|
|
if (Q(o) && e.found && !a.found) {
|
|
var s = e.width / e.height / 2, c = .5;
|
|
r.style = J(q({}, i, {
|
|
"transform-origin": "".concat(s + o.x / 16, "em ").concat(c + o.y / 16, "em")
|
|
}));
|
|
}
|
|
return [ {
|
|
tag: "svg",
|
|
attributes: r,
|
|
children: n
|
|
} ];
|
|
}(F);
|
|
}
|
|
function nt(t) {
|
|
var n = t.content, e = t.width, a = t.height, r = t.transform, i = t.title, o = t.extra, s = t.watchable, c = void 0 !== s && s, l = q({}, o.attributes, i ? {
|
|
title: i
|
|
} : {}, {
|
|
class: o.classes.join(" ")
|
|
});
|
|
c && (l[U] = "");
|
|
var f, u, m, d, g, h, p, v, b, y = q({}, o.styles);
|
|
Q(r) && (y.transform = (u = (f = {
|
|
transform: r,
|
|
startCentered: !0,
|
|
width: e,
|
|
height: a
|
|
}).transform, m = f.width, d = void 0 === m ? C : m, g = f.height, h = void 0 === g ? C : g,
|
|
p = f.startCentered, b = "", b += (v = void 0 !== p && p) && k ? "translate(".concat(u.x / D - d / 2, "em, ").concat(u.y / D - h / 2, "em) ") : v ? "translate(calc(-50% + ".concat(u.x / D, "em), calc(-50% + ").concat(u.y / D, "em)) ") : "translate(".concat(u.x / D, "em, ").concat(u.y / D, "em) "),
|
|
b += "scale(".concat(u.size / D * (u.flipX ? -1 : 1), ", ").concat(u.size / D * (u.flipY ? -1 : 1), ") "),
|
|
b += "rotate(".concat(u.rotate, "deg) ")), y["-webkit-transform"] = y.transform);
|
|
var w = J(y);
|
|
0 < w.length && (l.style = w);
|
|
var x = [];
|
|
return x.push({
|
|
tag: "span",
|
|
attributes: l,
|
|
children: [ n ]
|
|
}), i && x.push({
|
|
tag: "span",
|
|
attributes: {
|
|
class: "sr-only"
|
|
},
|
|
children: [ i ]
|
|
}), x;
|
|
}
|
|
var et = function() {}, at = V.measurePerformance && f && f.mark && f.measure ? f : {
|
|
mark: et,
|
|
measure: et
|
|
}, rt = 'FA "5.6.3"', it = function(t) {
|
|
at.mark("".concat(rt, " ").concat(t, " ends")), at.measure("".concat(rt, " ").concat(t), "".concat(rt, " ").concat(t, " begins"), "".concat(rt, " ").concat(t, " ends"));
|
|
}, ot = {
|
|
begin: function(t) {
|
|
return at.mark("".concat(rt, " ").concat(t, " begins")), function() {
|
|
return it(t);
|
|
};
|
|
},
|
|
end: it
|
|
}, st = function(t, n, e, a) {
|
|
var r, i, o, s, c, l = Object.keys(t), f = l.length, u = void 0 !== a ? (s = n,
|
|
c = a, function(t, n, e, a) {
|
|
return s.call(c, t, n, e, a);
|
|
}) : n;
|
|
for (o = void 0 === e ? (r = 1, t[l[0]]) : (r = 0, e); r < f; r++) o = u(o, t[i = l[r]], i, t);
|
|
return o;
|
|
}, ct = T.styles, lt = T.shims, ft = {}, ut = {}, mt = {}, dt = function() {
|
|
var t = function(a) {
|
|
return st(ct, function(t, n, e) {
|
|
return t[e] = st(n, a, {}), t;
|
|
}, {});
|
|
};
|
|
ft = t(function(t, n, e) {
|
|
return t[n[3]] = e, t;
|
|
}), ut = t(function(n, t, e) {
|
|
var a = t[2];
|
|
return n[e] = e, a.forEach(function(t) {
|
|
n[t] = e;
|
|
}), n;
|
|
});
|
|
var i = "far" in ct;
|
|
mt = st(lt, function(t, n) {
|
|
var e = n[0], a = n[1], r = n[2];
|
|
return "far" !== a || i || (a = "fas"), t[e] = {
|
|
prefix: a,
|
|
iconName: r
|
|
}, t;
|
|
}, {});
|
|
};
|
|
function gt(t, n) {
|
|
return ft[t][n];
|
|
}
|
|
dt();
|
|
var ht = T.styles, pt = function() {
|
|
return {
|
|
prefix: null,
|
|
iconName: null,
|
|
rest: []
|
|
};
|
|
};
|
|
function vt(t) {
|
|
return t.reduce(function(t, n) {
|
|
var e = W(V.familyPrefix, n);
|
|
if (ht[n]) t.prefix = n; else if (e) {
|
|
var a = "fa" === t.prefix ? mt[e] || {
|
|
prefix: null,
|
|
iconName: null
|
|
} : {};
|
|
t.iconName = a.iconName || e, t.prefix = a.prefix || t.prefix;
|
|
} else n !== V.replacementClass && 0 !== n.indexOf("fa-w-") && t.rest.push(n);
|
|
return t;
|
|
}, pt());
|
|
}
|
|
function bt(t, n, e) {
|
|
if (t && t[n] && t[n][e]) return {
|
|
prefix: n,
|
|
iconName: e,
|
|
icon: t[n][e]
|
|
};
|
|
}
|
|
function yt(t) {
|
|
var e, n = t.tag, a = t.attributes, r = void 0 === a ? {} : a, i = t.children, o = void 0 === i ? [] : i;
|
|
return "string" == typeof t ? G(t) : "<".concat(n, " ").concat((e = r, Object.keys(e || {}).reduce(function(t, n) {
|
|
return t + "".concat(n, '="').concat(G(e[n]), '" ');
|
|
}, "").trim()), ">").concat(o.map(yt).join(""), "</").concat(n, ">");
|
|
}
|
|
var wt = function() {};
|
|
function xt(t) {
|
|
return "string" == typeof (t.getAttribute ? t.getAttribute(U) : null);
|
|
}
|
|
var kt = {
|
|
replace: function(t) {
|
|
var n = t[0], e = t[1].map(function(t) {
|
|
return yt(t);
|
|
}).join("\n");
|
|
if (n.parentNode && n.outerHTML) n.outerHTML = e + (V.keepOriginalSource && "svg" !== n.tagName.toLowerCase() ? "\x3c!-- ".concat(n.outerHTML, " --\x3e") : ""); else if (n.parentNode) {
|
|
var a = document.createElement("span");
|
|
n.parentNode.replaceChild(a, n), a.outerHTML = e;
|
|
}
|
|
},
|
|
nest: function(t) {
|
|
var n = t[0], e = t[1];
|
|
if (~_(n).indexOf(V.replacementClass)) return kt.replace(t);
|
|
var a = new RegExp("".concat(V.familyPrefix, "-.*"));
|
|
delete e[0].attributes.style;
|
|
var r = e[0].attributes.class.split(" ").reduce(function(t, n) {
|
|
return n === V.replacementClass || n.match(a) ? t.toSvg.push(n) : t.toNode.push(n),
|
|
t;
|
|
}, {
|
|
toNode: [],
|
|
toSvg: []
|
|
});
|
|
e[0].attributes.class = r.toSvg.join(" ");
|
|
var i = e.map(function(t) {
|
|
return yt(t);
|
|
}).join("\n");
|
|
n.setAttribute("class", r.toNode.join(" ")), n.setAttribute(U, ""), n.innerHTML = i;
|
|
}
|
|
};
|
|
function Ct(e, t) {
|
|
var a = "function" == typeof t ? t : wt;
|
|
0 === e.length ? a() : (d.requestAnimationFrame || function(t) {
|
|
return t();
|
|
})(function() {
|
|
var t = !0 === V.autoReplaceSvg ? kt.replace : kt[V.autoReplaceSvg] || kt.replace, n = ot.begin("mutate");
|
|
e.map(t), n(), a();
|
|
});
|
|
}
|
|
var Mt = !1;
|
|
var At = null;
|
|
function Nt(t) {
|
|
if (l && V.observeMutations) {
|
|
var r = t.treeCallback, i = t.nodeCallback, o = t.pseudoElementsCallback, n = t.observeMutationsRoot, e = void 0 === n ? g.body : n;
|
|
At = new l(function(t) {
|
|
Mt || Y(t).forEach(function(t) {
|
|
if ("childList" === t.type && 0 < t.addedNodes.length && !xt(t.addedNodes[0]) && (V.searchPseudoElements && o(t.target),
|
|
r(t.target)), "attributes" === t.type && t.target.parentNode && V.searchPseudoElements && o(t.target.parentNode),
|
|
"attributes" === t.type && xt(t.target) && ~S.indexOf(t.attributeName)) if ("class" === t.attributeName) {
|
|
var n = vt(_(t.target)), e = n.prefix, a = n.iconName;
|
|
e && t.target.setAttribute("data-prefix", e), a && t.target.setAttribute("data-icon", a);
|
|
} else i(t.target);
|
|
});
|
|
}), h && At.observe(e, {
|
|
childList: !0,
|
|
attributes: !0,
|
|
characterData: !0,
|
|
subtree: !0
|
|
});
|
|
}
|
|
}
|
|
function zt(t) {
|
|
for (var n = "", e = 0; e < t.length; e++) {
|
|
n += ("000" + t.charCodeAt(e).toString(16)).slice(-4);
|
|
}
|
|
return n;
|
|
}
|
|
function Ot(t) {
|
|
var n, e, a = t.getAttribute("data-prefix"), r = t.getAttribute("data-icon"), i = void 0 !== t.innerText ? t.innerText.trim() : "", o = vt(_(t));
|
|
return a && r && (o.prefix = a, o.iconName = r), o.prefix && 1 < i.length ? o.iconName = (n = o.prefix,
|
|
e = t.innerText, ut[n][e]) : o.prefix && 1 === i.length && (o.iconName = gt(o.prefix, zt(t.innerText))),
|
|
o;
|
|
}
|
|
var St = function(t) {
|
|
var n = {
|
|
size: 16,
|
|
x: 0,
|
|
y: 0,
|
|
flipX: !1,
|
|
flipY: !1,
|
|
rotate: 0
|
|
};
|
|
return t ? t.toLowerCase().split(" ").reduce(function(t, n) {
|
|
var e = n.toLowerCase().split("-"), a = e[0], r = e.slice(1).join("-");
|
|
if (a && "h" === r) return t.flipX = !0, t;
|
|
if (a && "v" === r) return t.flipY = !0, t;
|
|
if (r = parseFloat(r), isNaN(r)) return t;
|
|
switch (a) {
|
|
case "grow":
|
|
t.size = t.size + r;
|
|
break;
|
|
|
|
case "shrink":
|
|
t.size = t.size - r;
|
|
break;
|
|
|
|
case "left":
|
|
t.x = t.x - r;
|
|
break;
|
|
|
|
case "right":
|
|
t.x = t.x + r;
|
|
break;
|
|
|
|
case "up":
|
|
t.y = t.y - r;
|
|
break;
|
|
|
|
case "down":
|
|
t.y = t.y + r;
|
|
break;
|
|
|
|
case "rotate":
|
|
t.rotate = t.rotate + r;
|
|
}
|
|
return t;
|
|
}, n) : n;
|
|
};
|
|
var Et = {
|
|
iconName: null,
|
|
title: null,
|
|
prefix: null,
|
|
transform: B,
|
|
symbol: !1,
|
|
mask: null,
|
|
extra: {
|
|
classes: [],
|
|
styles: {},
|
|
attributes: {}
|
|
}
|
|
};
|
|
function Lt(t) {
|
|
var n, e, a, r, i, o, s, c = Ot(t), l = c.iconName, f = c.prefix, u = c.rest, m = (n = t.getAttribute("style"),
|
|
e = [], n && (e = n.split(";").reduce(function(t, n) {
|
|
var e = n.split(":"), a = e[0], r = e.slice(1);
|
|
return a && 0 < r.length && (t[a] = r.join(":").trim()), t;
|
|
}, {})), e), d = St(t.getAttribute("data-fa-transform")), g = null !== (a = t.getAttribute("data-fa-symbol")) && ("" === a || a), h = (i = Y((r = t).attributes).reduce(function(t, n) {
|
|
return "class" !== t.name && "style" !== t.name && (t[n.name] = n.value), t;
|
|
}, {}), o = r.getAttribute("title"), V.autoA11y && (o ? i["aria-labelledby"] = "".concat(V.replacementClass, "-title-").concat(K()) : i["aria-hidden"] = "true"),
|
|
i), p = (s = t.getAttribute("data-fa-mask")) ? vt(s.split(" ").map(function(t) {
|
|
return t.trim();
|
|
})) : pt();
|
|
return {
|
|
iconName: l,
|
|
title: t.getAttribute("title"),
|
|
prefix: f,
|
|
transform: d,
|
|
symbol: g,
|
|
mask: p,
|
|
extra: {
|
|
classes: u,
|
|
styles: m,
|
|
attributes: h
|
|
}
|
|
};
|
|
}
|
|
function Pt(t) {
|
|
this.name = "MissingIcon", this.message = t || "Icon unavailable", this.stack = new Error().stack;
|
|
}
|
|
(Pt.prototype = Object.create(Error.prototype)).constructor = Pt;
|
|
var jt = {
|
|
fill: "currentColor"
|
|
}, Tt = {
|
|
attributeType: "XML",
|
|
repeatCount: "indefinite",
|
|
dur: "2s"
|
|
}, Rt = {
|
|
tag: "path",
|
|
attributes: q({}, jt, {
|
|
d: "M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"
|
|
})
|
|
}, It = q({}, Tt, {
|
|
attributeName: "opacity"
|
|
}), Ht = {
|
|
tag: "g",
|
|
children: [ Rt, {
|
|
tag: "circle",
|
|
attributes: q({}, jt, {
|
|
cx: "256",
|
|
cy: "364",
|
|
r: "28"
|
|
}),
|
|
children: [ {
|
|
tag: "animate",
|
|
attributes: q({}, Tt, {
|
|
attributeName: "r",
|
|
values: "28;14;28;28;14;28;"
|
|
})
|
|
}, {
|
|
tag: "animate",
|
|
attributes: q({}, It, {
|
|
values: "1;0;1;1;0;1;"
|
|
})
|
|
} ]
|
|
}, {
|
|
tag: "path",
|
|
attributes: q({}, jt, {
|
|
opacity: "1",
|
|
d: "M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z"
|
|
}),
|
|
children: [ {
|
|
tag: "animate",
|
|
attributes: q({}, It, {
|
|
values: "1;0;0;0;0;1;"
|
|
})
|
|
} ]
|
|
}, {
|
|
tag: "path",
|
|
attributes: q({}, jt, {
|
|
opacity: "0",
|
|
d: "M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z"
|
|
}),
|
|
children: [ {
|
|
tag: "animate",
|
|
attributes: q({}, It, {
|
|
values: "0;0;1;1;0;0;"
|
|
})
|
|
} ]
|
|
} ]
|
|
}, Dt = T.styles, Bt = "fa-layers-text", Xt = /Font Awesome 5 (Solid|Regular|Light|Brands|Free|Pro)/, Ft = {
|
|
Solid: "fas",
|
|
Regular: "far",
|
|
Light: "fal",
|
|
Brands: "fab"
|
|
}, Yt = {
|
|
900: "fas",
|
|
400: "far",
|
|
300: "fal"
|
|
};
|
|
function _t(t, n) {
|
|
var e = {
|
|
found: !1,
|
|
width: 512,
|
|
height: 512,
|
|
icon: Ht
|
|
};
|
|
if (t && n && Dt[n] && Dt[n][t]) {
|
|
var a = Dt[n][t];
|
|
e = {
|
|
found: !0,
|
|
width: a[0],
|
|
height: a[1],
|
|
icon: {
|
|
tag: "path",
|
|
attributes: {
|
|
fill: "currentColor",
|
|
d: a.slice(4)[0]
|
|
}
|
|
}
|
|
};
|
|
} else if (t && n && !V.showMissingIcons) throw new Pt("Icon is missing for prefix ".concat(n, " with icon name ").concat(t));
|
|
return e;
|
|
}
|
|
function Wt(t) {
|
|
var n, e, a, r, i, o, s, c, l, f = Lt(t);
|
|
return ~f.extra.classes.indexOf(Bt) ? function(t, n) {
|
|
var e = n.title, a = n.transform, r = n.extra, i = null, o = null;
|
|
if (k) {
|
|
var s = parseInt(getComputedStyle(t).fontSize, 10), c = t.getBoundingClientRect();
|
|
i = c.width / s, o = c.height / s;
|
|
}
|
|
return V.autoA11y && !e && (r.attributes["aria-hidden"] = "true"), [ t, nt({
|
|
content: t.innerHTML,
|
|
width: i,
|
|
height: o,
|
|
transform: a,
|
|
title: e,
|
|
extra: r,
|
|
watchable: !0
|
|
}) ];
|
|
}(t, f) : (n = t, a = (e = f).iconName, r = e.title, i = e.prefix, o = e.transform,
|
|
s = e.symbol, c = e.mask, l = e.extra, [ n, tt({
|
|
icons: {
|
|
main: _t(a, i),
|
|
mask: _t(c.iconName, c.prefix)
|
|
},
|
|
prefix: i,
|
|
iconName: a,
|
|
transform: o,
|
|
symbol: s,
|
|
mask: c,
|
|
title: r,
|
|
extra: l,
|
|
watchable: !0
|
|
}) ]);
|
|
}
|
|
function qt(t) {
|
|
if (h) {
|
|
var n = ot.begin("searchPseudoElements");
|
|
Mt = !0, function() {
|
|
Y(t.querySelectorAll("*")).filter(function(t) {
|
|
return !(t.parentNode === document.head || ~A.indexOf(t.tagName.toUpperCase()) || t.getAttribute(y) || t.parentNode && "svg" === t.parentNode.tagName);
|
|
}).forEach(function(u) {
|
|
[ ":before", ":after" ].forEach(function(n) {
|
|
var t = Y(u.children).filter(function(t) {
|
|
return t.getAttribute(y) === n;
|
|
})[0], e = d.getComputedStyle(u, n), a = e.getPropertyValue("font-family").match(Xt), r = e.getPropertyValue("font-weight");
|
|
if (t && !a) u.removeChild(t); else if (a) {
|
|
var i = e.getPropertyValue("content"), o = ~[ "Light", "Regular", "Solid", "Brands" ].indexOf(a[1]) ? Ft[a[1]] : Yt[r], s = gt(o, zt(3 === i.length ? i.substr(1, 1) : i));
|
|
if (!t || t.getAttribute(w) !== o || t.getAttribute(x) !== s) {
|
|
t && u.removeChild(t);
|
|
var c = Et.extra;
|
|
c.attributes[y] = n;
|
|
var l = tt(q({}, Et, {
|
|
icons: {
|
|
main: _t(s, o),
|
|
mask: pt()
|
|
},
|
|
prefix: o,
|
|
iconName: s,
|
|
extra: c,
|
|
watchable: !0
|
|
})), f = g.createElement("svg");
|
|
":before" === n ? u.insertBefore(f, u.firstChild) : u.appendChild(f), f.outerHTML = l.map(function(t) {
|
|
return yt(t);
|
|
}).join("\n");
|
|
}
|
|
}
|
|
});
|
|
});
|
|
}(), Mt = !1, n();
|
|
}
|
|
}
|
|
function Ut(t) {
|
|
var n = 1 < arguments.length && void 0 !== arguments[1] ? arguments[1] : null;
|
|
if (h) {
|
|
var e = g.documentElement.classList, a = function(t) {
|
|
return e.add("".concat(M, "-").concat(t));
|
|
}, r = function(t) {
|
|
return e.remove("".concat(M, "-").concat(t));
|
|
}, i = Object.keys(Dt), o = [ ".".concat(Bt, ":not([").concat(U, "])") ].concat(i.map(function(t) {
|
|
return ".".concat(t, ":not([").concat(U, "])");
|
|
})).join(", ");
|
|
if (0 !== o.length) {
|
|
var s = Y(t.querySelectorAll(o));
|
|
if (0 < s.length) {
|
|
a("pending"), r("complete");
|
|
var c = ot.begin("onTree"), l = s.reduce(function(t, n) {
|
|
try {
|
|
var e = Wt(n);
|
|
e && t.push(e);
|
|
} catch (t) {
|
|
N || t instanceof Pt && console.error(t);
|
|
}
|
|
return t;
|
|
}, []);
|
|
c(), Ct(l, function() {
|
|
a("active"), a("complete"), r("pending"), "function" == typeof n && n();
|
|
});
|
|
}
|
|
}
|
|
}
|
|
}
|
|
function Vt(t) {
|
|
var n = 1 < arguments.length && void 0 !== arguments[1] ? arguments[1] : null, e = Wt(t);
|
|
e && Ct([ e ], n);
|
|
}
|
|
var Kt = 'svg:not(:root).svg-inline--fa {\n overflow: visible;\n}\n\n.svg-inline--fa {\n display: inline-block;\n font-size: inherit;\n height: 1em;\n overflow: visible;\n vertical-align: -0.125em;\n}\n.svg-inline--fa.fa-lg {\n vertical-align: -0.225em;\n}\n.svg-inline--fa.fa-w-1 {\n width: 0.0625em;\n}\n.svg-inline--fa.fa-w-2 {\n width: 0.125em;\n}\n.svg-inline--fa.fa-w-3 {\n width: 0.1875em;\n}\n.svg-inline--fa.fa-w-4 {\n width: 0.25em;\n}\n.svg-inline--fa.fa-w-5 {\n width: 0.3125em;\n}\n.svg-inline--fa.fa-w-6 {\n width: 0.375em;\n}\n.svg-inline--fa.fa-w-7 {\n width: 0.4375em;\n}\n.svg-inline--fa.fa-w-8 {\n width: 0.5em;\n}\n.svg-inline--fa.fa-w-9 {\n width: 0.5625em;\n}\n.svg-inline--fa.fa-w-10 {\n width: 0.625em;\n}\n.svg-inline--fa.fa-w-11 {\n width: 0.6875em;\n}\n.svg-inline--fa.fa-w-12 {\n width: 0.75em;\n}\n.svg-inline--fa.fa-w-13 {\n width: 0.8125em;\n}\n.svg-inline--fa.fa-w-14 {\n width: 0.875em;\n}\n.svg-inline--fa.fa-w-15 {\n width: 0.9375em;\n}\n.svg-inline--fa.fa-w-16 {\n width: 1em;\n}\n.svg-inline--fa.fa-w-17 {\n width: 1.0625em;\n}\n.svg-inline--fa.fa-w-18 {\n width: 1.125em;\n}\n.svg-inline--fa.fa-w-19 {\n width: 1.1875em;\n}\n.svg-inline--fa.fa-w-20 {\n width: 1.25em;\n}\n.svg-inline--fa.fa-pull-left {\n margin-right: 0.3em;\n width: auto;\n}\n.svg-inline--fa.fa-pull-right {\n margin-left: 0.3em;\n width: auto;\n}\n.svg-inline--fa.fa-border {\n height: 1.5em;\n}\n.svg-inline--fa.fa-li {\n width: 2em;\n}\n.svg-inline--fa.fa-fw {\n width: 1.25em;\n}\n\n.fa-layers svg.svg-inline--fa {\n bottom: 0;\n left: 0;\n margin: auto;\n position: absolute;\n right: 0;\n top: 0;\n}\n\n.fa-layers {\n display: inline-block;\n height: 1em;\n position: relative;\n text-align: center;\n vertical-align: -0.125em;\n width: 1em;\n}\n.fa-layers svg.svg-inline--fa {\n -webkit-transform-origin: center center;\n transform-origin: center center;\n}\n\n.fa-layers-counter, .fa-layers-text {\n display: inline-block;\n position: absolute;\n text-align: center;\n}\n\n.fa-layers-text {\n left: 50%;\n top: 50%;\n -webkit-transform: translate(-50%, -50%);\n transform: translate(-50%, -50%);\n -webkit-transform-origin: center center;\n transform-origin: center center;\n}\n\n.fa-layers-counter {\n background-color: #ff253a;\n border-radius: 1em;\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n color: #fff;\n height: 1.5em;\n line-height: 1;\n max-width: 5em;\n min-width: 1.5em;\n overflow: hidden;\n padding: 0.25em;\n right: 0;\n text-overflow: ellipsis;\n top: 0;\n -webkit-transform: scale(0.25);\n transform: scale(0.25);\n -webkit-transform-origin: top right;\n transform-origin: top right;\n}\n\n.fa-layers-bottom-right {\n bottom: 0;\n right: 0;\n top: auto;\n -webkit-transform: scale(0.25);\n transform: scale(0.25);\n -webkit-transform-origin: bottom right;\n transform-origin: bottom right;\n}\n\n.fa-layers-bottom-left {\n bottom: 0;\n left: 0;\n right: auto;\n top: auto;\n -webkit-transform: scale(0.25);\n transform: scale(0.25);\n -webkit-transform-origin: bottom left;\n transform-origin: bottom left;\n}\n\n.fa-layers-top-right {\n right: 0;\n top: 0;\n -webkit-transform: scale(0.25);\n transform: scale(0.25);\n -webkit-transform-origin: top right;\n transform-origin: top right;\n}\n\n.fa-layers-top-left {\n left: 0;\n right: auto;\n top: 0;\n -webkit-transform: scale(0.25);\n transform: scale(0.25);\n -webkit-transform-origin: top left;\n transform-origin: top left;\n}\n\n.fa-lg {\n font-size: 1.3333333333em;\n line-height: 0.75em;\n vertical-align: -0.0667em;\n}\n\n.fa-xs {\n font-size: 0.75em;\n}\n\n.fa-sm {\n font-size: 0.875em;\n}\n\n.fa-1x {\n font-size: 1em;\n}\n\n.fa-2x {\n font-size: 2em;\n}\n\n.fa-3x {\n font-size: 3em;\n}\n\n.fa-4x {\n font-size: 4em;\n}\n\n.fa-5x {\n font-size: 5em;\n}\n\n.fa-6x {\n font-size: 6em;\n}\n\n.fa-7x {\n font-size: 7em;\n}\n\n.fa-8x {\n font-size: 8em;\n}\n\n.fa-9x {\n font-size: 9em;\n}\n\n.fa-10x {\n font-size: 10em;\n}\n\n.fa-fw {\n text-align: center;\n width: 1.25em;\n}\n\n.fa-ul {\n list-style-type: none;\n margin-left: 2.5em;\n padding-left: 0;\n}\n.fa-ul > li {\n position: relative;\n}\n\n.fa-li {\n left: -2em;\n position: absolute;\n text-align: center;\n width: 2em;\n line-height: inherit;\n}\n\n.fa-border {\n border: solid 0.08em #eee;\n border-radius: 0.1em;\n padding: 0.2em 0.25em 0.15em;\n}\n\n.fa-pull-left {\n float: left;\n}\n\n.fa-pull-right {\n float: right;\n}\n\n.fa.fa-pull-left,\n.fas.fa-pull-left,\n.far.fa-pull-left,\n.fal.fa-pull-left,\n.fab.fa-pull-left {\n margin-right: 0.3em;\n}\n.fa.fa-pull-right,\n.fas.fa-pull-right,\n.far.fa-pull-right,\n.fal.fa-pull-right,\n.fab.fa-pull-right {\n margin-left: 0.3em;\n}\n\n.fa-spin {\n -webkit-animation: fa-spin 2s infinite linear;\n animation: fa-spin 2s infinite linear;\n}\n\n.fa-pulse {\n -webkit-animation: fa-spin 1s infinite steps(8);\n animation: fa-spin 1s infinite steps(8);\n}\n\n@-webkit-keyframes fa-spin {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n\n@keyframes fa-spin {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n.fa-rotate-90 {\n -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=1)";\n -webkit-transform: rotate(90deg);\n transform: rotate(90deg);\n}\n\n.fa-rotate-180 {\n -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=2)";\n -webkit-transform: rotate(180deg);\n transform: rotate(180deg);\n}\n\n.fa-rotate-270 {\n -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=3)";\n -webkit-transform: rotate(270deg);\n transform: rotate(270deg);\n}\n\n.fa-flip-horizontal {\n -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=0, mirror=1)";\n -webkit-transform: scale(-1, 1);\n transform: scale(-1, 1);\n}\n\n.fa-flip-vertical {\n -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1)";\n -webkit-transform: scale(1, -1);\n transform: scale(1, -1);\n}\n\n.fa-flip-horizontal.fa-flip-vertical {\n -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1)";\n -webkit-transform: scale(-1, -1);\n transform: scale(-1, -1);\n}\n\n:root .fa-rotate-90,\n:root .fa-rotate-180,\n:root .fa-rotate-270,\n:root .fa-flip-horizontal,\n:root .fa-flip-vertical {\n -webkit-filter: none;\n filter: none;\n}\n\n.fa-stack {\n display: inline-block;\n height: 2em;\n position: relative;\n width: 2.5em;\n}\n\n.fa-stack-1x,\n.fa-stack-2x {\n bottom: 0;\n left: 0;\n margin: auto;\n position: absolute;\n right: 0;\n top: 0;\n}\n\n.svg-inline--fa.fa-stack-1x {\n height: 1em;\n width: 1.25em;\n}\n.svg-inline--fa.fa-stack-2x {\n height: 2em;\n width: 2.5em;\n}\n\n.fa-inverse {\n color: #fff;\n}\n\n.sr-only {\n border: 0;\n clip: rect(0, 0, 0, 0);\n height: 1px;\n margin: -1px;\n overflow: hidden;\n padding: 0;\n position: absolute;\n width: 1px;\n}\n\n.sr-only-focusable:active, .sr-only-focusable:focus {\n clip: auto;\n height: auto;\n margin: 0;\n overflow: visible;\n position: static;\n width: auto;\n}';
|
|
function Gt() {
|
|
var t = v, n = b, e = V.familyPrefix, a = V.replacementClass, r = Kt;
|
|
if (e !== t || a !== n) {
|
|
var i = new RegExp("\\.".concat(t, "\\-"), "g"), o = new RegExp("\\.".concat(n), "g");
|
|
r = r.replace(i, ".".concat(e, "-")).replace(o, ".".concat(a));
|
|
}
|
|
return r;
|
|
}
|
|
function Jt(t) {
|
|
return {
|
|
found: !0,
|
|
width: t[0],
|
|
height: t[1],
|
|
icon: {
|
|
tag: "path",
|
|
attributes: {
|
|
fill: "currentColor",
|
|
d: t.slice(4)[0]
|
|
}
|
|
}
|
|
};
|
|
}
|
|
function Qt() {
|
|
V.autoAddCss && !en && (X(Gt()), en = !0);
|
|
}
|
|
function Zt(n, t) {
|
|
return Object.defineProperty(n, "abstract", {
|
|
get: t
|
|
}), Object.defineProperty(n, "html", {
|
|
get: function() {
|
|
return n.abstract.map(function(t) {
|
|
return yt(t);
|
|
});
|
|
}
|
|
}), Object.defineProperty(n, "node", {
|
|
get: function() {
|
|
if (h) {
|
|
var t = g.createElement("div");
|
|
return t.innerHTML = n.html, t.children;
|
|
}
|
|
}
|
|
}), n;
|
|
}
|
|
function $t(t) {
|
|
var n = t.prefix, e = void 0 === n ? "fa" : n, a = t.iconName;
|
|
if (a) return bt(nn.definitions, e, a) || bt(T.styles, e, a);
|
|
}
|
|
var tn, nn = new (function() {
|
|
function t() {
|
|
!function(t, n) {
|
|
if (!(t instanceof n)) throw new TypeError("Cannot call a class as a function");
|
|
}(this, t), this.definitions = {};
|
|
}
|
|
var n, e, a;
|
|
return n = t, (e = [ {
|
|
key: "add",
|
|
value: function() {
|
|
for (var n = this, t = arguments.length, e = new Array(t), a = 0; a < t; a++) e[a] = arguments[a];
|
|
var r = e.reduce(this._pullDefinitions, {});
|
|
Object.keys(r).forEach(function(t) {
|
|
n.definitions[t] = q({}, n.definitions[t] || {}, r[t]), function t(n, a) {
|
|
var e = Object.keys(a).reduce(function(t, n) {
|
|
var e = a[n];
|
|
return e.icon ? t[e.iconName] = e.icon : t[n] = e, t;
|
|
}, {});
|
|
"function" == typeof T.hooks.addPack ? T.hooks.addPack(n, e) : T.styles[n] = q({}, T.styles[n] || {}, e),
|
|
"fas" === n && t("fa", a);
|
|
}(t, r[t]), dt();
|
|
});
|
|
}
|
|
}, {
|
|
key: "reset",
|
|
value: function() {
|
|
this.definitions = {};
|
|
}
|
|
}, {
|
|
key: "_pullDefinitions",
|
|
value: function(i, t) {
|
|
var o = t.prefix && t.iconName && t.icon ? {
|
|
0: t
|
|
} : t;
|
|
return Object.keys(o).map(function(t) {
|
|
var n = o[t], e = n.prefix, a = n.iconName, r = n.icon;
|
|
i[e] || (i[e] = {}), i[e][a] = r;
|
|
}), i;
|
|
}
|
|
} ]) && r(n.prototype, e), a && r(n, a), t;
|
|
}())(), en = !1, an = {
|
|
i2svg: function() {
|
|
var t = 0 < arguments.length && void 0 !== arguments[0] ? arguments[0] : {};
|
|
if (h) {
|
|
Qt();
|
|
var n = t.node, e = void 0 === n ? g : n, a = t.callback, r = void 0 === a ? function() {} : a;
|
|
V.searchPseudoElements && qt(e), Ut(e, r);
|
|
}
|
|
},
|
|
css: Gt,
|
|
insertCss: function() {
|
|
en || (X(Gt()), en = !0);
|
|
},
|
|
watch: function() {
|
|
var t = 0 < arguments.length && void 0 !== arguments[0] ? arguments[0] : {}, n = t.autoReplaceSvgRoot, e = t.observeMutationsRoot;
|
|
!1 === V.autoReplaceSvg && (V.autoReplaceSvg = !0), V.observeMutations = !0, H(function() {
|
|
sn({
|
|
autoReplaceSvgRoot: n
|
|
}), Nt({
|
|
treeCallback: Ut,
|
|
nodeCallback: Vt,
|
|
pseudoElementsCallback: qt,
|
|
observeMutationsRoot: e
|
|
});
|
|
});
|
|
}
|
|
}, rn = (tn = function(t) {
|
|
var n = 1 < arguments.length && void 0 !== arguments[1] ? arguments[1] : {}, e = n.transform, a = void 0 === e ? B : e, r = n.symbol, i = void 0 !== r && r, o = n.mask, s = void 0 === o ? null : o, c = n.title, l = void 0 === c ? null : c, f = n.classes, u = void 0 === f ? [] : f, m = n.attributes, d = void 0 === m ? {} : m, g = n.styles, h = void 0 === g ? {} : g;
|
|
if (t) {
|
|
var p = t.prefix, v = t.iconName, b = t.icon;
|
|
return Zt(q({
|
|
type: "icon"
|
|
}, t), function() {
|
|
return Qt(), V.autoA11y && (l ? d["aria-labelledby"] = "".concat(V.replacementClass, "-title-").concat(K()) : d["aria-hidden"] = "true"),
|
|
tt({
|
|
icons: {
|
|
main: Jt(b),
|
|
mask: s ? Jt(s.icon) : {
|
|
found: !1,
|
|
width: null,
|
|
height: null,
|
|
icon: {}
|
|
}
|
|
},
|
|
prefix: p,
|
|
iconName: v,
|
|
transform: q({}, B, a),
|
|
symbol: i,
|
|
title: l,
|
|
extra: {
|
|
attributes: d,
|
|
styles: h,
|
|
classes: u
|
|
}
|
|
});
|
|
});
|
|
}
|
|
}, function(t) {
|
|
var n = 1 < arguments.length && void 0 !== arguments[1] ? arguments[1] : {}, e = (t || {}).icon ? t : $t(t || {}), a = n.mask;
|
|
return a && (a = (a || {}).icon ? a : $t(a || {})), tn(e, q({}, n, {
|
|
mask: a
|
|
}));
|
|
}), on = {
|
|
noAuto: function() {
|
|
V.autoReplaceSvg = !1, V.observeMutations = !1, At && At.disconnect();
|
|
},
|
|
config: V,
|
|
dom: an,
|
|
library: nn,
|
|
parse: {
|
|
transform: function(t) {
|
|
return St(t);
|
|
}
|
|
},
|
|
findIconDefinition: $t,
|
|
icon: rn,
|
|
text: function(t) {
|
|
var n = 1 < arguments.length && void 0 !== arguments[1] ? arguments[1] : {}, e = n.transform, a = void 0 === e ? B : e, r = n.title, i = void 0 === r ? null : r, o = n.classes, s = void 0 === o ? [] : o, c = n.attributes, l = void 0 === c ? {} : c, f = n.styles, u = void 0 === f ? {} : f;
|
|
return Zt({
|
|
type: "text",
|
|
content: t
|
|
}, function() {
|
|
return Qt(), nt({
|
|
content: t,
|
|
transform: q({}, B, a),
|
|
title: i,
|
|
extra: {
|
|
attributes: l,
|
|
styles: u,
|
|
classes: [ "".concat(V.familyPrefix, "-layers-text") ].concat(m(s))
|
|
}
|
|
});
|
|
});
|
|
},
|
|
counter: function(t) {
|
|
var n = 1 < arguments.length && void 0 !== arguments[1] ? arguments[1] : {}, e = n.title, a = void 0 === e ? null : e, r = n.classes, i = void 0 === r ? [] : r, o = n.attributes, s = void 0 === o ? {} : o, c = n.styles, l = void 0 === c ? {} : c;
|
|
return Zt({
|
|
type: "counter",
|
|
content: t
|
|
}, function() {
|
|
return Qt(), function(t) {
|
|
var n = t.content, e = t.title, a = t.extra, r = q({}, a.attributes, e ? {
|
|
title: e
|
|
} : {}, {
|
|
class: a.classes.join(" ")
|
|
}), i = J(a.styles);
|
|
0 < i.length && (r.style = i);
|
|
var o = [];
|
|
return o.push({
|
|
tag: "span",
|
|
attributes: r,
|
|
children: [ n ]
|
|
}), e && o.push({
|
|
tag: "span",
|
|
attributes: {
|
|
class: "sr-only"
|
|
},
|
|
children: [ e ]
|
|
}), o;
|
|
}({
|
|
content: t.toString(),
|
|
title: a,
|
|
extra: {
|
|
attributes: s,
|
|
styles: l,
|
|
classes: [ "".concat(V.familyPrefix, "-layers-counter") ].concat(m(i))
|
|
}
|
|
});
|
|
});
|
|
},
|
|
layer: function(t) {
|
|
return Zt({
|
|
type: "layer"
|
|
}, function() {
|
|
Qt();
|
|
var n = [];
|
|
return t(function(t) {
|
|
Array.isArray(t) ? t.map(function(t) {
|
|
n = n.concat(t.abstract);
|
|
}) : n = n.concat(t.abstract);
|
|
}), [ {
|
|
tag: "span",
|
|
attributes: {
|
|
class: "".concat(V.familyPrefix, "-layers")
|
|
},
|
|
children: n
|
|
} ];
|
|
});
|
|
},
|
|
toHtml: yt
|
|
}, sn = function() {
|
|
var t = (0 < arguments.length && void 0 !== arguments[0] ? arguments[0] : {}).autoReplaceSvgRoot, n = void 0 === t ? g : t;
|
|
0 < Object.keys(T.styles).length && h && V.autoReplaceSvg && on.dom.i2svg({
|
|
node: n
|
|
});
|
|
};
|
|
!function(t) {
|
|
try {
|
|
t();
|
|
} catch (t) {
|
|
if (!N) throw t;
|
|
}
|
|
}(function() {
|
|
u && (d.FontAwesome || (d.FontAwesome = on), H(function() {
|
|
sn(), Nt({
|
|
treeCallback: Ut,
|
|
nodeCallback: Vt,
|
|
pseudoElementsCallback: qt
|
|
});
|
|
})), T.hooks = q({}, T.hooks, {
|
|
addPack: function(t, n) {
|
|
T.styles[t] = q({}, T.styles[t] || {}, n), dt(), sn();
|
|
},
|
|
addShims: function(t) {
|
|
var n;
|
|
(n = T.shims).push.apply(n, m(t)), dt(), sn();
|
|
}
|
|
});
|
|
});
|
|
}(); |