Release 5.15.2 (#1539)

This commit is contained in:
Rob Madole
2021-01-13 14:19:18 -06:00
committed by GitHub
parent acf803d2b5
commit e7405daf90
15943 changed files with 23634 additions and 24020 deletions

154
js/fontawesome.min.js vendored
View File

@@ -1,5 +1,5 @@
/*!
* Font Awesome Pro 5.15.1 by @fontawesome - https://fontawesome.com
* Font Awesome Pro 5.15.2 by @fontawesome - https://fontawesome.com
* License - https://fontawesome.com/license (Commercial License)
*/
!function() {
@@ -108,21 +108,21 @@
SWAP_OPACITY: "swap-opacity",
PRIMARY: "primary",
SECONDARY: "secondary"
}, F = [ "xs", "sm", "lg", "fw", "ul", "li", "border", "pull-left", "pull-right", "spin", "pulse", "rotate-90", "rotate-180", "rotate-270", "flip-horizontal", "flip-vertical", "flip-both", "stack", "stack-1x", "stack-2x", "inverse", "layers", "layers-text", "layers-counter", D.GROUP, D.SWAP_OPACITY, D.PRIMARY, D.SECONDARY ].concat(R.map(function(t) {
}, Y = [ "xs", "sm", "lg", "fw", "ul", "li", "border", "pull-left", "pull-right", "spin", "pulse", "rotate-90", "rotate-180", "rotate-270", "flip-horizontal", "flip-vertical", "flip-both", "stack", "stack-1x", "stack-2x", "inverse", "layers", "layers-text", "layers-counter", D.GROUP, D.SWAP_OPACITY, D.PRIMARY, D.SECONDARY ].concat(R.map(function(t) {
return "".concat(t, "x");
})).concat(T.map(function(t) {
return "w-".concat(t);
})), Y = v.FontAwesomeConfig || {};
})), H = v.FontAwesomeConfig || {};
if (b && "function" == typeof b.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-mutate-approach", "mutateApproach" ], [ "data-keep-original-source", "keepOriginalSource" ], [ "data-measure-performance", "measurePerformance" ], [ "data-show-missing-icons", "showMissingIcons" ] ].forEach(function(t) {
var n, e = p(t, 2), a = e[0], r = e[1], i = "" === (n = function(t) {
var n = b.querySelector("script[" + t + "]");
if (n) return n.getAttribute(t);
}(a)) || "false" !== n && ("true" === n || n);
null != i && (Y[r] = i);
null != i && (H[r] = i);
});
}
var H = $({}, {
var F = $({}, {
familyPrefix: g,
replacementClass: y,
autoReplaceSvg: !0,
@@ -134,29 +134,29 @@
keepOriginalSource: !0,
measurePerformance: !1,
showMissingIcons: !0
}, Y);
H.autoReplaceSvg || (H.observeMutations = !1);
var nt = $({}, H);
}, H);
F.autoReplaceSvg || (F.observeMutations = !1);
var nt = $({}, F);
v.FontAwesomeConfig = nt;
var U = v || {};
U[h] || (U[h] = {}), U[h].styles || (U[h].styles = {}), U[h].hooks || (U[h].hooks = {}),
U[h].shims || (U[h].shims = []);
var X = U[h], B = [], W = !1;
var X = v || {};
X[h] || (X[h] = {}), X[h].styles || (X[h].styles = {}), X[h].hooks || (X[h].hooks = {}),
X[h].shims || (X[h].shims = []);
var B = X[h], U = [], W = !1;
function q(t) {
m && (W ? setTimeout(t, 0) : B.push(t));
m && (W ? setTimeout(t, 0) : U.push(t));
}
m && ((W = (b.documentElement.doScroll ? /^loaded|^c/ : /^loaded|^i|^c/).test(b.readyState)) || b.addEventListener("DOMContentLoaded", function t() {
b.removeEventListener("DOMContentLoaded", t), W = 1, B.map(function(t) {
b.removeEventListener("DOMContentLoaded", t), W = 1, U.map(function(t) {
return t();
});
}));
var K, V = "pending", G = "settled", J = "fulfilled", Q = "rejected", Z = function() {}, et = "undefined" != typeof global && void 0 !== global.process && "function" == typeof global.process.emit, at = "undefined" == typeof setImmediate ? setTimeout : setImmediate, rt = [];
var V, G = "pending", K = "settled", J = "fulfilled", Q = "rejected", Z = function() {}, et = "undefined" != typeof global && void 0 !== global.process && "function" == typeof global.process.emit, at = "undefined" == typeof setImmediate ? setTimeout : setImmediate, rt = [];
function it() {
for (var t = 0; t < rt.length; t++) rt[t][0](rt[t][1]);
K = !(rt = []);
V = !(rt = []);
}
function ot(t, n) {
rt.push([ t, n ]), K || (K = !0, at(it, 0));
rt.push([ t, n ]), V || (V = !0, at(it, 0));
}
function ct(t) {
var n = t.owner, e = n._state, a = n._data, r = t[e], i = t.then;
@@ -191,10 +191,10 @@
t !== n && st(t, n) || ft(t, n);
}
function ft(t, n) {
t._state === V && (t._state = G, t._data = n, ot(mt, t));
t._state === G && (t._state = K, t._data = n, ot(mt, t));
}
function ut(t, n) {
t._state === V && (t._state = G, t._data = n, ot(pt, t));
t._state === G && (t._state = K, t._data = n, ot(pt, t));
}
function dt(t) {
t._then = t._then.forEach(ct);
@@ -226,7 +226,7 @@
}
gt.prototype = {
constructor: gt,
_state: V,
_state: G,
_then: null,
_data: void 0,
_handled: !1,
@@ -304,7 +304,7 @@
}
function Mt(t, n) {
var e, a = n.split("-"), r = a[0], i = a.slice(1).join("-");
return r !== t || "" === i || (e = i, ~F.indexOf(e)) ? null : i;
return r !== t || "" === i || (e = i, ~Y.indexOf(e)) ? null : i;
}
function Ot(t) {
return "".concat(t).replace(/&/g, "&amp;").replace(/"/g, "&quot;").replace(/'/g, "&#39;").replace(/</g, "&lt;").replace(/>/g, "&gt;");
@@ -367,7 +367,7 @@
},
children: [ s ]
});
var k, A, C, M, O, P, S, N, z, E, I, j, L, R, T, _, D, F, Y, H, U, X, B, W, q, K, V, G = $({}, w, {
var k, A, C, M, O, P, S, N, z, E, I, j, L, R, T, _, D, Y, H, F, X, B, U, W, q, V, G, K = $({}, w, {
prefix: r,
iconName: i,
main: e,
@@ -376,7 +376,7 @@
transform: o,
symbol: c,
styles: $({}, x, u.styles)
}), J = a.found && e.found ? (C = (k = G).children, M = k.attributes, O = k.main,
}), J = a.found && e.found ? (C = (k = K).children, M = k.attributes, O = k.main,
P = k.mask, S = k.maskId, N = k.transform, z = O.width, E = O.icon, I = P.width,
j = P.icon, L = Nt({
transform: N,
@@ -400,29 +400,29 @@
tag: "g",
attributes: $({}, L.outer),
children: [ _ ]
}, F = "mask-".concat(S || kt()), Y = "clip-".concat(S || kt()), H = {
}, Y = "mask-".concat(S || kt()), H = "clip-".concat(S || kt()), F = {
tag: "mask",
attributes: $({}, zt, {
id: F,
id: Y,
maskUnits: "userSpaceOnUse",
maskContentUnits: "userSpaceOnUse"
}),
children: [ R, D ]
}, U = {
}, X = {
tag: "defs",
children: [ {
tag: "clipPath",
attributes: {
id: Y
id: H
},
children: (A = j, "g" === A.tag ? A.children : [ A ])
}, H ]
}, C.push(U, {
}, F ]
}, C.push(X, {
tag: "rect",
attributes: $({
fill: "currentColor",
"clip-path": "url(#".concat(Y, ")"),
mask: "url(#".concat(F, ")")
"clip-path": "url(#".concat(H, ")"),
mask: "url(#".concat(Y, ")")
}, zt)
}), {
children: C,
@@ -453,17 +453,17 @@
children: n,
attributes: e
};
}(G), Q = J.children, Z = J.attributes;
return G.children = Q, G.attributes = Z, c ? (B = (X = G).prefix, W = X.iconName,
q = X.children, K = X.attributes, V = X.symbol, [ {
}(K), Q = J.children, Z = J.attributes;
return K.children = Q, K.attributes = Z, c ? (U = (B = K).prefix, W = B.iconName,
q = B.children, V = B.attributes, G = B.symbol, [ {
tag: "svg",
attributes: {
style: "display: none;"
},
children: [ {
tag: "symbol",
attributes: $({}, K, {
id: !0 === V ? "".concat(B, "-").concat(nt.familyPrefix, "-").concat(W) : V
attributes: $({}, V, {
id: !0 === G ? "".concat(U, "-").concat(nt.familyPrefix, "-").concat(W) : G
}),
children: q
} ]
@@ -480,7 +480,7 @@
attributes: r,
children: n
} ];
}(G);
}(K);
}
function jt(t) {
var n = t.content, e = t.width, a = t.height, r = t.transform, i = t.title, o = t.extra, c = t.watchable, s = void 0 !== c && c, l = $({}, o.attributes, i ? {
@@ -517,7 +517,7 @@
var Lt = function() {}, Rt = nt.measurePerformance && f && f.mark && f.measure ? f : {
mark: Lt,
measure: Lt
}, Tt = 'FA "5.15.1"', _t = function(t) {
}, Tt = 'FA "5.15.2"', _t = function(t) {
Rt.mark("".concat(Tt, " ").concat(t, " ends")), Rt.measure("".concat(Tt, " ").concat(t), "".concat(Tt, " ").concat(t, " begins"), "".concat(Tt, " ").concat(t, " ends"));
}, Dt = {
begin: function(t) {
@@ -526,7 +526,7 @@
};
},
end: _t
}, Ft = function(t, n, e, a) {
}, Yt = function(t, n, e, a) {
var r, i, o, c, s, l = Object.keys(t), f = l.length, u = void 0 !== a ? (c = n,
s = a, function(t, n, e, a) {
return c.call(s, t, n, e, a);
@@ -534,28 +534,28 @@
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;
};
function Yt(t) {
function Ht(t) {
for (var n = "", e = 0; e < t.length; e++) {
n += ("000" + t.charCodeAt(e).toString(16)).slice(-4);
}
return n;
}
var Ht = X.styles, Ut = X.shims, Xt = {}, Bt = {}, Wt = {}, qt = function() {
var Ft = B.styles, Xt = B.shims, Bt = {}, Ut = {}, Wt = {}, qt = function() {
var t = function(a) {
return Ft(Ht, function(t, n, e) {
return t[e] = Ft(n, a, {}), t;
return Yt(Ft, function(t, n, e) {
return t[e] = Yt(n, a, {}), t;
}, {});
};
Xt = t(function(t, n, e) {
Bt = t(function(t, n, e) {
return n[3] && (t[n[3]] = e), t;
}), Bt = t(function(n, t, e) {
}), 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 Ht;
Wt = Ft(Ut, function(t, n) {
var i = "far" in Ft;
Wt = Yt(Xt, function(t, n) {
var e = n[0], a = n[1], r = n[2];
return "far" !== a || i || (a = "fas"), t[e] = {
prefix: a,
@@ -563,11 +563,11 @@
}, t;
}, {});
};
function Kt(t, n) {
return (Xt[t] || {})[n];
function Vt(t, n) {
return (Bt[t] || {})[n];
}
qt();
var Vt = X.styles, Gt = function() {
var Gt = B.styles, Kt = function() {
return {
prefix: null,
iconName: null,
@@ -577,7 +577,7 @@
function Jt(t) {
return t.reduce(function(t, n) {
var e = Mt(nt.familyPrefix, n);
if (Vt[n]) t.prefix = n; else if (nt.autoFetchSvg && -1 < Object.keys(z).indexOf(n)) t.prefix = n; else if (e) {
if (Gt[n]) t.prefix = n; else if (nt.autoFetchSvg && -1 < Object.keys(z).indexOf(n)) t.prefix = n; else if (e) {
var a = "fa" === t.prefix ? Wt[e] || {
prefix: null,
iconName: null
@@ -585,7 +585,7 @@
t.iconName = a.iconName || e, t.prefix = a.prefix || t.prefix;
} else n !== nt.replacementClass && 0 !== n.indexOf("fa-w-") && t.rest.push(n);
return t;
}, Gt());
}, Kt());
}
function Qt(t, n, e) {
if (t && t[n] && t[n][e]) return {
@@ -674,7 +674,7 @@
function ln(t) {
var n, e, a = t.getAttribute("data-prefix"), r = t.getAttribute("data-icon"), i = void 0 !== t.innerText ? t.innerText.trim() : "", o = Jt(Ct(t));
return a && r && (o.prefix = a, o.iconName = r), o.prefix && 1 < i.length ? o.iconName = (n = o.prefix,
e = t.innerText, (Bt[n] || {})[e]) : o.prefix && 1 === i.length && (o.iconName = Kt(o.prefix, Yt(t.innerText))),
e = t.innerText, (Ut[n] || {})[e]) : o.prefix && 1 === i.length && (o.iconName = Vt(o.prefix, Ht(t.innerText))),
o;
}
var fn = function(t) {
@@ -732,7 +732,7 @@
}, {}), o = r.getAttribute("title"), c = r.getAttribute("data-fa-title-id"), nt.autoA11y && (o ? i["aria-labelledby"] = "".concat(nt.replacementClass, "-title-").concat(c || kt()) : (i["aria-hidden"] = "true",
i.focusable = "false")), i), v = (s = t.getAttribute("data-fa-mask")) ? Jt(s.split(" ").map(function(t) {
return t.trim();
})) : Gt();
})) : Kt();
return {
iconName: f,
title: t.getAttribute("title"),
@@ -812,7 +812,7 @@
})
} ]
} ]
}, bn = X.styles;
}, bn = B.styles;
function yn(t) {
var n = t[0], e = t[1], a = p(t.slice(4), 1)[0];
return {
@@ -857,26 +857,10 @@
icon: vn
};
if (a && r && bn[r] && bn[r][a]) return t(yn(bn[r][a]));
!function() {
var t = 0 < arguments.length && void 0 !== arguments[0] ? arguments[0] : {}, n = 1 < arguments.length ? arguments[1] : void 0;
if (n && function(t) {
if (1 !== t.length) return !1;
var n, e, a, r, i, o = (e = 0, r = (n = t).length, 55296 <= (i = n.charCodeAt(e)) && i <= 56319 && e + 1 < r && 56320 <= (a = n.charCodeAt(e + 1)) && a <= 57343 ? 1024 * (i - 55296) + a - 56320 + 65536 : i);
return 57344 <= o && o <= 63743;
}(n)) {
if (t && t.iconUploads) {
var e = t.iconUploads, a = Object.keys(e).find(function(t) {
return e[t] && e[t].u && e[t].u === Yt(n);
});
if (a) e[a].v;
}
} else if (t && t.iconUploads && t.iconUploads[n] && t.iconUploads[n].v) t.iconUploads[n].v;
}(v.FontAwesomeKitConfig, a);
v.FontAwesomeKitConfig && v.FontAwesomeKitConfig.token && v.FontAwesomeKitConfig.token,
a && r && !nt.showMissingIcons ? n(new dn("Icon is missing for prefix ".concat(r, " with icon name ").concat(a))) : t(e);
});
}
var xn = X.styles;
var xn = B.styles;
function kn(t) {
var i, n, o, c, s, l, f, u, e, d, m, a = un(t);
return ~a.extra.classes.indexOf(I) ? function(t, n) {
@@ -971,7 +955,7 @@
})[0], e = v.getComputedStyle(p, h), r = e.getPropertyValue("font-family").match(j), i = e.getPropertyValue("font-weight"), o = e.getPropertyValue("content");
if (n && !r) return p.removeChild(n), a();
if (r && "none" !== o && "" !== o) {
var c = e.getPropertyValue("content"), s = ~[ "Solid", "Regular", "Light", "Duotone", "Brands", "Kit" ].indexOf(r[2]) ? E[r[2].toLowerCase()] : L[i], l = Yt(3 === c.length ? c.substr(1, 1) : c), f = Kt(s, l), u = f;
var c = e.getPropertyValue("content"), s = ~[ "Solid", "Regular", "Light", "Duotone", "Brands", "Kit" ].indexOf(r[2]) ? E[r[2].toLowerCase()] : L[i], l = Ht(3 === c.length ? c.substr(1, 1) : c), f = Vt(s, l), u = f;
if (!f || n && n.getAttribute(C) === s && n.getAttribute(M) === u) a(); else {
p.setAttribute(g, u), n && p.removeChild(n);
var d = {
@@ -993,7 +977,7 @@
var n = It($({}, d, {
icons: {
main: t,
mask: Gt()
mask: Kt()
},
prefix: s,
iconName: u,
@@ -1056,7 +1040,7 @@
}
function jn(t) {
var n = t.prefix, e = void 0 === n ? "fa" : n, a = t.iconName;
if (a) return Qt(Rn.definitions, e, a) || Qt(X.styles, e, a);
if (a) return Qt(Rn.definitions, e, a) || Qt(B.styles, e, a);
}
var Ln, Rn = new (function() {
function t() {
@@ -1076,7 +1060,7 @@
var e = a[n];
return e.icon ? t[e.iconName] = e.icon : t[n] = e, t;
}, {});
"function" != typeof X.hooks.addPack || r ? X.styles[n] = $({}, X.styles[n] || {}, i) : X.hooks.addPack(n, i),
"function" != typeof B.hooks.addPack || r ? B.styles[n] = $({}, B.styles[n] || {}, i) : B.hooks.addPack(n, i),
"fas" === n && t("fa", a);
}(t, r[t]), qt();
});
@@ -1116,7 +1100,7 @@
var t = 0 < arguments.length && void 0 !== arguments[0] ? arguments[0] : {}, n = t.autoReplaceSvgRoot, e = t.observeMutationsRoot;
!1 === nt.autoReplaceSvg && (nt.autoReplaceSvg = !0), nt.observeMutations = !0,
q(function() {
Yn({
Hn({
autoReplaceSvgRoot: n
}), sn({
treeCallback: An,
@@ -1164,7 +1148,7 @@
return a && (a = (a || {}).icon ? a : jn(a || {})), Ln(e, $({}, n, {
mask: a
}));
}), Fn = {
}), Yn = {
noAuto: function() {
nt.autoReplaceSvg = !1, nt.observeMutations = !1, cn && cn.disconnect();
},
@@ -1253,9 +1237,9 @@
});
},
toHtml: Zt
}, Yn = function() {
}, Hn = function() {
var t = (0 < arguments.length && void 0 !== arguments[0] ? arguments[0] : {}).autoReplaceSvgRoot, n = void 0 === t ? b : t;
(0 < Object.keys(X.styles).length || nt.autoFetchSvg) && m && nt.autoReplaceSvg && Fn.dom.i2svg({
(0 < Object.keys(B.styles).length || nt.autoFetchSvg) && m && nt.autoReplaceSvg && Yn.dom.i2svg({
node: n
});
};
@@ -1266,19 +1250,19 @@
if (!N) throw t;
}
}(function() {
u && (v.FontAwesome || (v.FontAwesome = Fn), q(function() {
Yn(), sn({
u && (v.FontAwesome || (v.FontAwesome = Yn), q(function() {
Hn(), sn({
treeCallback: An,
nodeCallback: Cn,
pseudoElementsCallback: Sn
});
})), X.hooks = $({}, X.hooks, {
})), B.hooks = $({}, B.hooks, {
addPack: function(t, n) {
X.styles[t] = $({}, X.styles[t] || {}, n), qt(), Yn();
B.styles[t] = $({}, B.styles[t] || {}, n), qt(), Hn();
},
addShims: function(t) {
var n;
(n = X.shims).push.apply(n, d(t)), qt(), Yn();
(n = B.shims).push.apply(n, d(t)), qt(), Hn();
}
});
});