mirror of
https://github.com/FortAwesome/Font-Awesome.git
synced 2025-04-02 22:59:14 +08:00
Release 6.4.2
This commit is contained in:
parent
f0c25837a3
commit
c254acb6e2
7
free/README.md
Normal file
7
free/README.md
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
# Font Awesome 6.4.2
|
||||||
|
|
||||||
|
Thanks for downloading Font Awesome! We're so excited you're here.
|
||||||
|
|
||||||
|
Our documentation is available online. Just head here:
|
||||||
|
|
||||||
|
https://fontawesome.com
|
@ -258,10 +258,8 @@
|
|||||||
animation-duration: 1ms;
|
animation-duration: 1ms;
|
||||||
-webkit-animation-iteration-count: 1;
|
-webkit-animation-iteration-count: 1;
|
||||||
animation-iteration-count: 1;
|
animation-iteration-count: 1;
|
||||||
-webkit-transition-delay: 0s;
|
transition-delay: 0s;
|
||||||
transition-delay: 0s;
|
transition-duration: 0s; } }
|
||||||
-webkit-transition-duration: 0s;
|
|
||||||
transition-duration: 0s; } }
|
|
||||||
|
|
||||||
@-webkit-keyframes fa-beat {
|
@-webkit-keyframes fa-beat {
|
||||||
0%, 90% {
|
0%, 90% {
|
File diff suppressed because one or more lines are too long
@ -258,10 +258,8 @@
|
|||||||
animation-duration: 1ms;
|
animation-duration: 1ms;
|
||||||
-webkit-animation-iteration-count: 1;
|
-webkit-animation-iteration-count: 1;
|
||||||
animation-iteration-count: 1;
|
animation-iteration-count: 1;
|
||||||
-webkit-transition-delay: 0s;
|
transition-delay: 0s;
|
||||||
transition-delay: 0s;
|
transition-duration: 0s; } }
|
||||||
-webkit-transition-duration: 0s;
|
|
||||||
transition-duration: 0s; } }
|
|
||||||
|
|
||||||
@-webkit-keyframes fa-beat {
|
@-webkit-keyframes fa-beat {
|
||||||
0%, 90% {
|
0%, 90% {
|
File diff suppressed because one or more lines are too long
@ -356,10 +356,8 @@ svg:not(:root).svg-inline--fa, svg:not(:host).svg-inline--fa {
|
|||||||
animation-duration: 1ms;
|
animation-duration: 1ms;
|
||||||
-webkit-animation-iteration-count: 1;
|
-webkit-animation-iteration-count: 1;
|
||||||
animation-iteration-count: 1;
|
animation-iteration-count: 1;
|
||||||
-webkit-transition-delay: 0s;
|
transition-delay: 0s;
|
||||||
transition-delay: 0s;
|
transition-duration: 0s; } }
|
||||||
-webkit-transition-duration: 0s;
|
|
||||||
transition-duration: 0s; } }
|
|
||||||
|
|
||||||
@-webkit-keyframes fa-beat {
|
@-webkit-keyframes fa-beat {
|
||||||
0%, 90% {
|
0%, 90% {
|
File diff suppressed because one or more lines are too long
@ -258,10 +258,8 @@
|
|||||||
animation-duration: 1ms;
|
animation-duration: 1ms;
|
||||||
-webkit-animation-iteration-count: 1;
|
-webkit-animation-iteration-count: 1;
|
||||||
animation-iteration-count: 1;
|
animation-iteration-count: 1;
|
||||||
-webkit-transition-delay: 0s;
|
transition-delay: 0s;
|
||||||
transition-delay: 0s;
|
transition-duration: 0s; } }
|
||||||
-webkit-transition-duration: 0s;
|
|
||||||
transition-duration: 0s; } }
|
|
||||||
|
|
||||||
@-webkit-keyframes fa-beat {
|
@-webkit-keyframes fa-beat {
|
||||||
0%, 90% {
|
0%, 90% {
|
File diff suppressed because one or more lines are too long
@ -258,10 +258,8 @@
|
|||||||
animation-duration: 1ms;
|
animation-duration: 1ms;
|
||||||
-webkit-animation-iteration-count: 1;
|
-webkit-animation-iteration-count: 1;
|
||||||
animation-iteration-count: 1;
|
animation-iteration-count: 1;
|
||||||
-webkit-transition-delay: 0s;
|
transition-delay: 0s;
|
||||||
transition-delay: 0s;
|
transition-duration: 0s; } }
|
||||||
-webkit-transition-duration: 0s;
|
|
||||||
transition-duration: 0s; } }
|
|
||||||
|
|
||||||
@-webkit-keyframes fa-beat {
|
@-webkit-keyframes fa-beat {
|
||||||
0%, 90% {
|
0%, 90% {
|
File diff suppressed because one or more lines are too long
@ -356,10 +356,8 @@ svg:not(:root).svg-inline--fa, svg:not(:host).svg-inline--fa {
|
|||||||
animation-duration: 1ms;
|
animation-duration: 1ms;
|
||||||
-webkit-animation-iteration-count: 1;
|
-webkit-animation-iteration-count: 1;
|
||||||
animation-iteration-count: 1;
|
animation-iteration-count: 1;
|
||||||
-webkit-transition-delay: 0s;
|
transition-delay: 0s;
|
||||||
transition-delay: 0s;
|
transition-duration: 0s; } }
|
||||||
-webkit-transition-duration: 0s;
|
|
||||||
transition-duration: 0s; } }
|
|
||||||
|
|
||||||
@-webkit-keyframes fa-beat {
|
@-webkit-keyframes fa-beat {
|
||||||
0%, 90% {
|
0%, 90% {
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -8,48 +8,42 @@
|
|||||||
|
|
||||||
var _WINDOW = {};
|
var _WINDOW = {};
|
||||||
var _DOCUMENT = {};
|
var _DOCUMENT = {};
|
||||||
|
|
||||||
try {
|
try {
|
||||||
if (typeof window !== 'undefined') _WINDOW = window;
|
if (typeof window !== 'undefined') _WINDOW = window;
|
||||||
if (typeof document !== 'undefined') _DOCUMENT = document;
|
if (typeof document !== 'undefined') _DOCUMENT = document;
|
||||||
} catch (e) {}
|
} catch (e) {}
|
||||||
|
|
||||||
var _ref = _WINDOW.navigator || {},
|
var _ref = _WINDOW.navigator || {},
|
||||||
_ref$userAgent = _ref.userAgent,
|
_ref$userAgent = _ref.userAgent,
|
||||||
userAgent = _ref$userAgent === void 0 ? '' : _ref$userAgent;
|
userAgent = _ref$userAgent === void 0 ? '' : _ref$userAgent;
|
||||||
var WINDOW = _WINDOW;
|
var WINDOW = _WINDOW;
|
||||||
var DOCUMENT = _DOCUMENT;
|
var DOCUMENT = _DOCUMENT;
|
||||||
var IS_BROWSER = !!WINDOW.document;
|
var IS_BROWSER = !!WINDOW.document;
|
||||||
var IS_DOM = !!DOCUMENT.documentElement && !!DOCUMENT.head && typeof DOCUMENT.addEventListener === 'function' && typeof DOCUMENT.createElement === 'function';
|
var IS_DOM = !!DOCUMENT.documentElement && !!DOCUMENT.head && typeof DOCUMENT.addEventListener === 'function' && typeof DOCUMENT.createElement === 'function';
|
||||||
var IS_IE = ~userAgent.indexOf('MSIE') || ~userAgent.indexOf('Trident/');
|
var IS_IE = ~userAgent.indexOf('MSIE') || ~userAgent.indexOf('Trident/');
|
||||||
|
|
||||||
function ownKeys(object, enumerableOnly) {
|
function ownKeys(e, r) {
|
||||||
var keys = Object.keys(object);
|
var t = Object.keys(e);
|
||||||
|
|
||||||
if (Object.getOwnPropertySymbols) {
|
if (Object.getOwnPropertySymbols) {
|
||||||
var symbols = Object.getOwnPropertySymbols(object);
|
var o = Object.getOwnPropertySymbols(e);
|
||||||
enumerableOnly && (symbols = symbols.filter(function (sym) {
|
r && (o = o.filter(function (r) {
|
||||||
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
return Object.getOwnPropertyDescriptor(e, r).enumerable;
|
||||||
})), keys.push.apply(keys, symbols);
|
})), t.push.apply(t, o);
|
||||||
}
|
}
|
||||||
|
return t;
|
||||||
return keys;
|
|
||||||
}
|
}
|
||||||
|
function _objectSpread2(e) {
|
||||||
function _objectSpread2(target) {
|
for (var r = 1; r < arguments.length; r++) {
|
||||||
for (var i = 1; i < arguments.length; i++) {
|
var t = null != arguments[r] ? arguments[r] : {};
|
||||||
var source = null != arguments[i] ? arguments[i] : {};
|
r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {
|
||||||
i % 2 ? ownKeys(Object(source), !0).forEach(function (key) {
|
_defineProperty(e, r, t[r]);
|
||||||
_defineProperty(target, key, source[key]);
|
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {
|
||||||
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) {
|
Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));
|
||||||
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
return e;
|
||||||
return target;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function _defineProperty(obj, key, value) {
|
function _defineProperty(obj, key, value) {
|
||||||
|
key = _toPropertyKey(key);
|
||||||
if (key in obj) {
|
if (key in obj) {
|
||||||
Object.defineProperty(obj, key, {
|
Object.defineProperty(obj, key, {
|
||||||
value: value,
|
value: value,
|
||||||
@ -60,22 +54,17 @@
|
|||||||
} else {
|
} else {
|
||||||
obj[key] = value;
|
obj[key] = value;
|
||||||
}
|
}
|
||||||
|
|
||||||
return obj;
|
return obj;
|
||||||
}
|
}
|
||||||
|
|
||||||
function _toConsumableArray(arr) {
|
function _toConsumableArray(arr) {
|
||||||
return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
|
return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
|
||||||
}
|
}
|
||||||
|
|
||||||
function _arrayWithoutHoles(arr) {
|
function _arrayWithoutHoles(arr) {
|
||||||
if (Array.isArray(arr)) return _arrayLikeToArray(arr);
|
if (Array.isArray(arr)) return _arrayLikeToArray(arr);
|
||||||
}
|
}
|
||||||
|
|
||||||
function _iterableToArray(iter) {
|
function _iterableToArray(iter) {
|
||||||
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
||||||
}
|
}
|
||||||
|
|
||||||
function _unsupportedIterableToArray(o, minLen) {
|
function _unsupportedIterableToArray(o, minLen) {
|
||||||
if (!o) return;
|
if (!o) return;
|
||||||
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
|
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
|
||||||
@ -84,21 +73,30 @@
|
|||||||
if (n === "Map" || n === "Set") return Array.from(o);
|
if (n === "Map" || n === "Set") return Array.from(o);
|
||||||
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
||||||
}
|
}
|
||||||
|
|
||||||
function _arrayLikeToArray(arr, len) {
|
function _arrayLikeToArray(arr, len) {
|
||||||
if (len == null || len > arr.length) len = arr.length;
|
if (len == null || len > arr.length) len = arr.length;
|
||||||
|
|
||||||
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
||||||
|
|
||||||
return arr2;
|
return arr2;
|
||||||
}
|
}
|
||||||
|
|
||||||
function _nonIterableSpread() {
|
function _nonIterableSpread() {
|
||||||
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
||||||
}
|
}
|
||||||
|
function _toPrimitive(input, hint) {
|
||||||
|
if (typeof input !== "object" || input === null) return input;
|
||||||
|
var prim = input[Symbol.toPrimitive];
|
||||||
|
if (prim !== undefined) {
|
||||||
|
var res = prim.call(input, hint || "default");
|
||||||
|
if (typeof res !== "object") return res;
|
||||||
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
||||||
|
}
|
||||||
|
return (hint === "string" ? String : Number)(input);
|
||||||
|
}
|
||||||
|
function _toPropertyKey(arg) {
|
||||||
|
var key = _toPrimitive(arg, "string");
|
||||||
|
return typeof key === "symbol" ? key : String(key);
|
||||||
|
}
|
||||||
|
|
||||||
var _familyProxy, _familyProxy2, _familyProxy3, _familyProxy4, _familyProxy5;
|
var _familyProxy, _familyProxy2, _familyProxy3, _familyProxy4, _familyProxy5;
|
||||||
|
|
||||||
var NAMESPACE_IDENTIFIER = '___FONT_AWESOME___';
|
var NAMESPACE_IDENTIFIER = '___FONT_AWESOME___';
|
||||||
var PRODUCTION = function () {
|
var PRODUCTION = function () {
|
||||||
try {
|
try {
|
||||||
@ -110,7 +108,6 @@
|
|||||||
var FAMILY_CLASSIC = 'classic';
|
var FAMILY_CLASSIC = 'classic';
|
||||||
var FAMILY_SHARP = 'sharp';
|
var FAMILY_SHARP = 'sharp';
|
||||||
var FAMILIES = [FAMILY_CLASSIC, FAMILY_SHARP];
|
var FAMILIES = [FAMILY_CLASSIC, FAMILY_SHARP];
|
||||||
|
|
||||||
function familyProxy(obj) {
|
function familyProxy(obj) {
|
||||||
// Defaults to the classic family if family is not available
|
// Defaults to the classic family if family is not available
|
||||||
return new Proxy(obj, {
|
return new Proxy(obj, {
|
||||||
@ -216,7 +213,6 @@
|
|||||||
for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
||||||
args[_key - 1] = arguments[_key];
|
args[_key - 1] = arguments[_key];
|
||||||
}
|
}
|
||||||
|
|
||||||
fn.apply(void 0, args);
|
fn.apply(void 0, args);
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
if (!PRODUCTION) {
|
if (!PRODUCTION) {
|
||||||
@ -236,36 +232,31 @@
|
|||||||
return Object.keys(icons).reduce(function (acc, iconName) {
|
return Object.keys(icons).reduce(function (acc, iconName) {
|
||||||
var icon = icons[iconName];
|
var icon = icons[iconName];
|
||||||
var expanded = !!icon.icon;
|
var expanded = !!icon.icon;
|
||||||
|
|
||||||
if (expanded) {
|
if (expanded) {
|
||||||
acc[icon.iconName] = icon.icon;
|
acc[icon.iconName] = icon.icon;
|
||||||
} else {
|
} else {
|
||||||
acc[iconName] = icon;
|
acc[iconName] = icon;
|
||||||
}
|
}
|
||||||
|
|
||||||
return acc;
|
return acc;
|
||||||
}, {});
|
}, {});
|
||||||
}
|
}
|
||||||
|
|
||||||
function defineIcons(prefix, icons) {
|
function defineIcons(prefix, icons) {
|
||||||
var params = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
|
var params = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
|
||||||
var _params$skipHooks = params.skipHooks,
|
var _params$skipHooks = params.skipHooks,
|
||||||
skipHooks = _params$skipHooks === void 0 ? false : _params$skipHooks;
|
skipHooks = _params$skipHooks === void 0 ? false : _params$skipHooks;
|
||||||
var normalized = normalizeIcons(icons);
|
var normalized = normalizeIcons(icons);
|
||||||
|
|
||||||
if (typeof namespace.hooks.addPack === 'function' && !skipHooks) {
|
if (typeof namespace.hooks.addPack === 'function' && !skipHooks) {
|
||||||
namespace.hooks.addPack(prefix, normalizeIcons(icons));
|
namespace.hooks.addPack(prefix, normalizeIcons(icons));
|
||||||
} else {
|
} else {
|
||||||
namespace.styles[prefix] = _objectSpread2(_objectSpread2({}, namespace.styles[prefix] || {}), normalized);
|
namespace.styles[prefix] = _objectSpread2(_objectSpread2({}, namespace.styles[prefix] || {}), normalized);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Font Awesome 4 used the prefix of `fa` for all icons. With the introduction
|
* Font Awesome 4 used the prefix of `fa` for all icons. With the introduction
|
||||||
* of new styles we needed to differentiate between them. Prefix `fa` is now an alias
|
* of new styles we needed to differentiate between them. Prefix `fa` is now an alias
|
||||||
* for `fas` so we'll ease the upgrade process for our users by automatically defining
|
* for `fas` so we'll ease the upgrade process for our users by automatically defining
|
||||||
* this as well.
|
* this as well.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
if (prefix === 'fas') {
|
if (prefix === 'fas') {
|
||||||
defineIcons('fa', icons);
|
defineIcons('fa', icons);
|
||||||
}
|
}
|
@ -9,54 +9,65 @@
|
|||||||
try {
|
try {
|
||||||
"undefined" != typeof window && (c = window), "undefined" != typeof document && (l = document);
|
"undefined" != typeof window && (c = window), "undefined" != typeof document && (l = document);
|
||||||
} catch (c) {}
|
} catch (c) {}
|
||||||
var z = (c.navigator || {}).userAgent, h = void 0 === z ? "" : z, a = c, m = l;
|
var z = (c.navigator || {}).userAgent, z = void 0 === z ? "" : z;
|
||||||
a.document, m.documentElement && m.head && "function" == typeof m.addEventListener && m.createElement,
|
c.document, l.documentElement && l.head && "function" == typeof l.addEventListener && l.createElement,
|
||||||
~h.indexOf("MSIE") || h.indexOf("Trident/");
|
~z.indexOf("MSIE") || z.indexOf("Trident/");
|
||||||
function v(l, c) {
|
function h(l, c) {
|
||||||
var z, h = Object.keys(l);
|
var z, h = Object.keys(l);
|
||||||
return Object.getOwnPropertySymbols && (z = Object.getOwnPropertySymbols(l), c && (z = z.filter(function(c) {
|
return Object.getOwnPropertySymbols && (z = Object.getOwnPropertySymbols(l),
|
||||||
|
c && (z = z.filter(function(c) {
|
||||||
return Object.getOwnPropertyDescriptor(l, c).enumerable;
|
return Object.getOwnPropertyDescriptor(l, c).enumerable;
|
||||||
})), h.push.apply(h, z)), h;
|
})), h.push.apply(h, z)), h;
|
||||||
}
|
}
|
||||||
function C(l) {
|
function a(l) {
|
||||||
for (var c = 1; c < arguments.length; c++) {
|
for (var c = 1; c < arguments.length; c++) {
|
||||||
var z = null != arguments[c] ? arguments[c] : {};
|
var z = null != arguments[c] ? arguments[c] : {};
|
||||||
c % 2 ? v(Object(z), !0).forEach(function(c) {
|
c % 2 ? h(Object(z), !0).forEach(function(c) {
|
||||||
M(l, c, z[c]);
|
m(l, c, z[c]);
|
||||||
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(l, Object.getOwnPropertyDescriptors(z)) : v(Object(z)).forEach(function(c) {
|
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(l, Object.getOwnPropertyDescriptors(z)) : h(Object(z)).forEach(function(c) {
|
||||||
Object.defineProperty(l, c, Object.getOwnPropertyDescriptor(z, c));
|
Object.defineProperty(l, c, Object.getOwnPropertyDescriptor(z, c));
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
return l;
|
return l;
|
||||||
}
|
}
|
||||||
function M(c, l, z) {
|
function m(c, l, z) {
|
||||||
return l in c ? Object.defineProperty(c, l, {
|
(l = function(c) {
|
||||||
|
c = function(c, l) {
|
||||||
|
if ("object" != typeof c || null === c) return c;
|
||||||
|
var z = c[Symbol.toPrimitive];
|
||||||
|
if (void 0 === z) return ("string" === l ? String : Number)(c);
|
||||||
|
z = z.call(c, l || "default");
|
||||||
|
if ("object" != typeof z) return z;
|
||||||
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
||||||
|
}(c, "string");
|
||||||
|
return "symbol" == typeof c ? c : String(c);
|
||||||
|
}(l)) in c ? Object.defineProperty(c, l, {
|
||||||
value: z,
|
value: z,
|
||||||
enumerable: !0,
|
enumerable: !0,
|
||||||
configurable: !0,
|
configurable: !0,
|
||||||
writable: !0
|
writable: !0
|
||||||
}) : c[l] = z, c;
|
}) : c[l] = z;
|
||||||
}
|
}
|
||||||
function s(c, l) {
|
function v(c, l) {
|
||||||
(null == l || l > c.length) && (l = c.length);
|
(null == l || l > c.length) && (l = c.length);
|
||||||
for (var z = 0, h = new Array(l); z < l; z++) h[z] = c[z];
|
for (var z = 0, h = new Array(l); z < l; z++) h[z] = c[z];
|
||||||
return h;
|
return h;
|
||||||
}
|
}
|
||||||
var e = "___FONT_AWESOME___", H = function() {
|
var l = "___FONT_AWESOME___", C = function() {
|
||||||
try {
|
try {
|
||||||
return !1;
|
return !1;
|
||||||
} catch (c) {
|
} catch (c) {
|
||||||
return !1;
|
return !1;
|
||||||
}
|
}
|
||||||
}(), V = "classic", L = "sharp", f = [ V, L ];
|
}(), M = "classic", z = "sharp", s = [ M, z ];
|
||||||
function r(c) {
|
function e(c) {
|
||||||
return new Proxy(c, {
|
return new Proxy(c, {
|
||||||
get: function(c, l) {
|
get: function(c, l) {
|
||||||
return l in c ? c[l] : c[V];
|
return l in c ? c[l] : c[M];
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
r((M(o = {}, V, {
|
e((m(H = {}, M, {
|
||||||
fa: "solid",
|
fa: "solid",
|
||||||
fas: "solid",
|
fas: "solid",
|
||||||
"fa-solid": "solid",
|
"fa-solid": "solid",
|
||||||
@ -72,7 +83,7 @@
|
|||||||
"fa-brands": "brands",
|
"fa-brands": "brands",
|
||||||
fak: "kit",
|
fak: "kit",
|
||||||
"fa-kit": "kit"
|
"fa-kit": "kit"
|
||||||
}), M(o, L, {
|
}), m(H, z, {
|
||||||
fa: "solid",
|
fa: "solid",
|
||||||
fass: "solid",
|
fass: "solid",
|
||||||
"fa-solid": "solid",
|
"fa-solid": "solid",
|
||||||
@ -80,8 +91,8 @@
|
|||||||
"fa-regular": "regular",
|
"fa-regular": "regular",
|
||||||
fasl: "light",
|
fasl: "light",
|
||||||
"fa-light": "light"
|
"fa-light": "light"
|
||||||
}), o));
|
}), H));
|
||||||
var t = r((M(i = {}, V, {
|
var H = e((m(H = {}, M, {
|
||||||
solid: "fas",
|
solid: "fas",
|
||||||
regular: "far",
|
regular: "far",
|
||||||
light: "fal",
|
light: "fal",
|
||||||
@ -89,11 +100,11 @@
|
|||||||
duotone: "fad",
|
duotone: "fad",
|
||||||
brands: "fab",
|
brands: "fab",
|
||||||
kit: "fak"
|
kit: "fak"
|
||||||
}), M(i, L, {
|
}), m(H, z, {
|
||||||
solid: "fass",
|
solid: "fass",
|
||||||
regular: "fasr",
|
regular: "fasr",
|
||||||
light: "fasl"
|
light: "fasl"
|
||||||
}), i)), m = (r((M(z = {}, V, {
|
}), H)), V = (e((m(V = {}, M, {
|
||||||
fab: "fa-brands",
|
fab: "fa-brands",
|
||||||
fad: "fa-duotone",
|
fad: "fa-duotone",
|
||||||
fak: "fa-kit",
|
fak: "fa-kit",
|
||||||
@ -101,11 +112,11 @@
|
|||||||
far: "fa-regular",
|
far: "fa-regular",
|
||||||
fas: "fa-solid",
|
fas: "fa-solid",
|
||||||
fat: "fa-thin"
|
fat: "fa-thin"
|
||||||
}), M(z, L, {
|
}), m(V, z, {
|
||||||
fass: "fa-solid",
|
fass: "fa-solid",
|
||||||
fasr: "fa-regular",
|
fasr: "fa-regular",
|
||||||
fasl: "fa-light"
|
fasl: "fa-light"
|
||||||
}), z)), r((M(c = {}, V, {
|
}), V)), e((m(V = {}, M, {
|
||||||
"fa-brands": "fab",
|
"fa-brands": "fab",
|
||||||
"fa-duotone": "fad",
|
"fa-duotone": "fad",
|
||||||
"fa-kit": "fak",
|
"fa-kit": "fak",
|
||||||
@ -113,43 +124,38 @@
|
|||||||
"fa-regular": "far",
|
"fa-regular": "far",
|
||||||
"fa-solid": "fas",
|
"fa-solid": "fas",
|
||||||
"fa-thin": "fat"
|
"fa-thin": "fat"
|
||||||
}), M(c, L, {
|
}), m(V, z, {
|
||||||
"fa-solid": "fass",
|
"fa-solid": "fass",
|
||||||
"fa-regular": "fasr",
|
"fa-regular": "fasr",
|
||||||
"fa-light": "fasl"
|
"fa-light": "fasl"
|
||||||
}), c)), r((M(l = {}, V, {
|
}), V)), e((m(V = {}, M, {
|
||||||
900: "fas",
|
900: "fas",
|
||||||
400: "far",
|
400: "far",
|
||||||
normal: "far",
|
normal: "far",
|
||||||
300: "fal",
|
300: "fal",
|
||||||
100: "fat"
|
100: "fat"
|
||||||
}), M(l, L, {
|
}), m(V, z, {
|
||||||
900: "fass",
|
900: "fass",
|
||||||
400: "fasr",
|
400: "fasr",
|
||||||
300: "fasl"
|
300: "fasl"
|
||||||
}), l)), [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 ]), h = m.concat([ 11, 12, 13, 14, 15, 16, 17, 18, 19, 20 ]), o = "duotone-group", i = "swap-opacity", z = "primary", c = "secondary", l = new Set();
|
}), V)), [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 ]), L = V.concat([ 11, 12, 13, 14, 15, 16, 17, 18, 19, 20 ]), f = "duotone-group", r = "swap-opacity", t = "primary", o = "secondary", i = new Set();
|
||||||
Object.keys(t[V]).map(l.add.bind(l)), Object.keys(t[L]).map(l.add.bind(l));
|
Object.keys(H[M]).map(i.add.bind(i)), Object.keys(H[z]).map(i.add.bind(i)),
|
||||||
[].concat(f, function(c) {
|
[].concat(s, function(c) {
|
||||||
if (Array.isArray(c)) return s(c);
|
if (Array.isArray(c)) return v(c);
|
||||||
}(l = l) || function(c) {
|
}(H = i) || function(c) {
|
||||||
if ("undefined" != typeof Symbol && null != c[Symbol.iterator] || null != c["@@iterator"]) return Array.from(c);
|
if ("undefined" != typeof Symbol && null != c[Symbol.iterator] || null != c["@@iterator"]) return Array.from(c);
|
||||||
}(l) || function(c, l) {
|
}(H) || function(c, l) {
|
||||||
if (c) {
|
var z;
|
||||||
if ("string" == typeof c) return s(c, l);
|
if (c) return "string" == typeof c ? v(c, l) : "Map" === (z = "Object" === (z = Object.prototype.toString.call(c).slice(8, -1)) && c.constructor ? c.constructor.name : z) || "Set" === z ? Array.from(c) : "Arguments" === z || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(z) ? v(c, l) : void 0;
|
||||||
var z = Object.prototype.toString.call(c).slice(8, -1);
|
}(H) || function() {
|
||||||
return "Map" === (z = "Object" === z && c.constructor ? c.constructor.name : z) || "Set" === z ? Array.from(c) : "Arguments" === z || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(z) ? s(c, l) : void 0;
|
|
||||||
}
|
|
||||||
}(l) || function() {
|
|
||||||
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
||||||
}(), [ "2xs", "xs", "sm", "lg", "xl", "2xl", "beat", "border", "fade", "beat-fade", "bounce", "flip-both", "flip-horizontal", "flip-vertical", "flip", "fw", "inverse", "layers-counter", "layers-text", "layers", "li", "pull-left", "pull-right", "pulse", "rotate-180", "rotate-270", "rotate-90", "rotate-by", "shake", "spin-pulse", "spin-reverse", "spin", "stack-1x", "stack-2x", "stack", "ul", o, i, z, c ]).concat(m.map(function(c) {
|
}(), [ "2xs", "xs", "sm", "lg", "xl", "2xl", "beat", "border", "fade", "beat-fade", "bounce", "flip-both", "flip-horizontal", "flip-vertical", "flip", "fw", "inverse", "layers-counter", "layers-text", "layers", "li", "pull-left", "pull-right", "pulse", "rotate-180", "rotate-270", "rotate-90", "rotate-by", "shake", "spin-pulse", "spin-reverse", "spin", "stack-1x", "stack-2x", "stack", "ul", f, r, t, o ]).concat(V.map(function(c) {
|
||||||
return "".concat(c, "x");
|
return "".concat(c, "x");
|
||||||
})).concat(h.map(function(c) {
|
})).concat(L.map(function(c) {
|
||||||
return "w-".concat(c);
|
return "w-".concat(c);
|
||||||
}));
|
}));
|
||||||
a = a || {};
|
var z = c || {}, n = (z[l] || (z[l] = {}), z[l].styles || (z[l].styles = {}),
|
||||||
a[e] || (a[e] = {}), a[e].styles || (a[e].styles = {}), a[e].hooks || (a[e].hooks = {}),
|
z[l].hooks || (z[l].hooks = {}), z[l].shims || (z[l].shims = []), z[l]);
|
||||||
a[e].shims || (a[e].shims = []);
|
|
||||||
var n = a[e];
|
|
||||||
function d(h) {
|
function d(h) {
|
||||||
return Object.keys(h).reduce(function(c, l) {
|
return Object.keys(h).reduce(function(c, l) {
|
||||||
var z = h[l];
|
var z = h[l];
|
||||||
@ -157,8 +163,8 @@
|
|||||||
}, {});
|
}, {});
|
||||||
}
|
}
|
||||||
function u(c, l, z) {
|
function u(c, l, z) {
|
||||||
var h = (2 < arguments.length && void 0 !== z ? z : {}).skipHooks, z = void 0 !== h && h, h = d(l);
|
var z = (2 < arguments.length && void 0 !== z ? z : {}).skipHooks, z = void 0 !== z && z, h = d(l);
|
||||||
"function" != typeof n.hooks.addPack || z ? n.styles[c] = C(C({}, n.styles[c] || {}), h) : n.hooks.addPack(c, d(l)),
|
"function" != typeof n.hooks.addPack || z ? n.styles[c] = a(a({}, n.styles[c] || {}), h) : n.hooks.addPack(c, d(l)),
|
||||||
"fas" === c && u("fa", l);
|
"fas" === c && u("fa", l);
|
||||||
}
|
}
|
||||||
var p = {
|
var p = {
|
||||||
@ -640,7 +646,7 @@
|
|||||||
for (var l = arguments.length, z = new Array(1 < l ? l - 1 : 0), h = 1; h < l; h++) z[h - 1] = arguments[h];
|
for (var l = arguments.length, z = new Array(1 < l ? l - 1 : 0), h = 1; h < l; h++) z[h - 1] = arguments[h];
|
||||||
c.apply(void 0, z);
|
c.apply(void 0, z);
|
||||||
} catch (c) {
|
} catch (c) {
|
||||||
if (!H) throw c;
|
if (!C) throw c;
|
||||||
}
|
}
|
||||||
}(function() {
|
}(function() {
|
||||||
u("fab", p), u("fa-brands", p);
|
u("fab", p), u("fa-brands", p);
|
@ -9,43 +9,38 @@
|
|||||||
(factory());
|
(factory());
|
||||||
}(this, (function () { 'use strict';
|
}(this, (function () { 'use strict';
|
||||||
|
|
||||||
function ownKeys(object, enumerableOnly) {
|
function ownKeys(e, r) {
|
||||||
var keys = Object.keys(object);
|
var t = Object.keys(e);
|
||||||
|
|
||||||
if (Object.getOwnPropertySymbols) {
|
if (Object.getOwnPropertySymbols) {
|
||||||
var symbols = Object.getOwnPropertySymbols(object);
|
var o = Object.getOwnPropertySymbols(e);
|
||||||
enumerableOnly && (symbols = symbols.filter(function (sym) {
|
r && (o = o.filter(function (r) {
|
||||||
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
return Object.getOwnPropertyDescriptor(e, r).enumerable;
|
||||||
})), keys.push.apply(keys, symbols);
|
})), t.push.apply(t, o);
|
||||||
}
|
}
|
||||||
|
return t;
|
||||||
return keys;
|
|
||||||
}
|
}
|
||||||
|
function _objectSpread2(e) {
|
||||||
function _objectSpread2(target) {
|
for (var r = 1; r < arguments.length; r++) {
|
||||||
for (var i = 1; i < arguments.length; i++) {
|
var t = null != arguments[r] ? arguments[r] : {};
|
||||||
var source = null != arguments[i] ? arguments[i] : {};
|
r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {
|
||||||
i % 2 ? ownKeys(Object(source), !0).forEach(function (key) {
|
_defineProperty(e, r, t[r]);
|
||||||
_defineProperty(target, key, source[key]);
|
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {
|
||||||
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) {
|
Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));
|
||||||
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
return e;
|
||||||
return target;
|
|
||||||
}
|
}
|
||||||
|
function _typeof(o) {
|
||||||
function _typeof(obj) {
|
|
||||||
"@babel/helpers - typeof";
|
"@babel/helpers - typeof";
|
||||||
|
|
||||||
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
|
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
|
||||||
return typeof obj;
|
return typeof o;
|
||||||
} : function (obj) {
|
} : function (o) {
|
||||||
return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
||||||
}, _typeof(obj);
|
}, _typeof(o);
|
||||||
}
|
}
|
||||||
|
|
||||||
function _defineProperty(obj, key, value) {
|
function _defineProperty(obj, key, value) {
|
||||||
|
key = _toPropertyKey(key);
|
||||||
if (key in obj) {
|
if (key in obj) {
|
||||||
Object.defineProperty(obj, key, {
|
Object.defineProperty(obj, key, {
|
||||||
value: value,
|
value: value,
|
||||||
@ -56,22 +51,17 @@
|
|||||||
} else {
|
} else {
|
||||||
obj[key] = value;
|
obj[key] = value;
|
||||||
}
|
}
|
||||||
|
|
||||||
return obj;
|
return obj;
|
||||||
}
|
}
|
||||||
|
|
||||||
function _toConsumableArray(arr) {
|
function _toConsumableArray(arr) {
|
||||||
return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
|
return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
|
||||||
}
|
}
|
||||||
|
|
||||||
function _arrayWithoutHoles(arr) {
|
function _arrayWithoutHoles(arr) {
|
||||||
if (Array.isArray(arr)) return _arrayLikeToArray(arr);
|
if (Array.isArray(arr)) return _arrayLikeToArray(arr);
|
||||||
}
|
}
|
||||||
|
|
||||||
function _iterableToArray(iter) {
|
function _iterableToArray(iter) {
|
||||||
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
||||||
}
|
}
|
||||||
|
|
||||||
function _unsupportedIterableToArray(o, minLen) {
|
function _unsupportedIterableToArray(o, minLen) {
|
||||||
if (!o) return;
|
if (!o) return;
|
||||||
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
|
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
|
||||||
@ -80,30 +70,38 @@
|
|||||||
if (n === "Map" || n === "Set") return Array.from(o);
|
if (n === "Map" || n === "Set") return Array.from(o);
|
||||||
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
||||||
}
|
}
|
||||||
|
|
||||||
function _arrayLikeToArray(arr, len) {
|
function _arrayLikeToArray(arr, len) {
|
||||||
if (len == null || len > arr.length) len = arr.length;
|
if (len == null || len > arr.length) len = arr.length;
|
||||||
|
|
||||||
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
||||||
|
|
||||||
return arr2;
|
return arr2;
|
||||||
}
|
}
|
||||||
|
|
||||||
function _nonIterableSpread() {
|
function _nonIterableSpread() {
|
||||||
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
||||||
}
|
}
|
||||||
|
function _toPrimitive(input, hint) {
|
||||||
|
if (typeof input !== "object" || input === null) return input;
|
||||||
|
var prim = input[Symbol.toPrimitive];
|
||||||
|
if (prim !== undefined) {
|
||||||
|
var res = prim.call(input, hint || "default");
|
||||||
|
if (typeof res !== "object") return res;
|
||||||
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
||||||
|
}
|
||||||
|
return (hint === "string" ? String : Number)(input);
|
||||||
|
}
|
||||||
|
function _toPropertyKey(arg) {
|
||||||
|
var key = _toPrimitive(arg, "string");
|
||||||
|
return typeof key === "symbol" ? key : String(key);
|
||||||
|
}
|
||||||
|
|
||||||
var _WINDOW = {};
|
var _WINDOW = {};
|
||||||
var _DOCUMENT = {};
|
var _DOCUMENT = {};
|
||||||
|
|
||||||
try {
|
try {
|
||||||
if (typeof window !== 'undefined') _WINDOW = window;
|
if (typeof window !== 'undefined') _WINDOW = window;
|
||||||
if (typeof document !== 'undefined') _DOCUMENT = document;
|
if (typeof document !== 'undefined') _DOCUMENT = document;
|
||||||
} catch (e) {}
|
} catch (e) {}
|
||||||
|
|
||||||
var _ref = _WINDOW.navigator || {},
|
var _ref = _WINDOW.navigator || {},
|
||||||
_ref$userAgent = _ref.userAgent,
|
_ref$userAgent = _ref.userAgent,
|
||||||
userAgent = _ref$userAgent === void 0 ? '' : _ref$userAgent;
|
userAgent = _ref$userAgent === void 0 ? '' : _ref$userAgent;
|
||||||
var WINDOW = _WINDOW;
|
var WINDOW = _WINDOW;
|
||||||
var DOCUMENT = _DOCUMENT;
|
var DOCUMENT = _DOCUMENT;
|
||||||
var IS_BROWSER = !!WINDOW.document;
|
var IS_BROWSER = !!WINDOW.document;
|
||||||
@ -111,7 +109,6 @@
|
|||||||
var IS_IE = ~userAgent.indexOf('MSIE') || ~userAgent.indexOf('Trident/');
|
var IS_IE = ~userAgent.indexOf('MSIE') || ~userAgent.indexOf('Trident/');
|
||||||
|
|
||||||
var functions = [];
|
var functions = [];
|
||||||
|
|
||||||
var listener = function listener() {
|
var listener = function listener() {
|
||||||
DOCUMENT.removeEventListener('DOMContentLoaded', listener);
|
DOCUMENT.removeEventListener('DOMContentLoaded', listener);
|
||||||
loaded = 1;
|
loaded = 1;
|
||||||
@ -119,14 +116,11 @@
|
|||||||
return fn();
|
return fn();
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
var loaded = false;
|
var loaded = false;
|
||||||
|
|
||||||
if (IS_DOM) {
|
if (IS_DOM) {
|
||||||
loaded = (DOCUMENT.documentElement.doScroll ? /^loaded|^c/ : /^loaded|^i|^c/).test(DOCUMENT.readyState);
|
loaded = (DOCUMENT.documentElement.doScroll ? /^loaded|^c/ : /^loaded|^i|^c/).test(DOCUMENT.readyState);
|
||||||
if (!loaded) DOCUMENT.addEventListener('DOMContentLoaded', listener);
|
if (!loaded) DOCUMENT.addEventListener('DOMContentLoaded', listener);
|
||||||
}
|
}
|
||||||
|
|
||||||
function domready (fn) {
|
function domready (fn) {
|
||||||
if (!IS_DOM) return;
|
if (!IS_DOM) return;
|
||||||
loaded ? setTimeout(fn, 0) : functions.push(fn);
|
loaded ? setTimeout(fn, 0) : functions.push(fn);
|
||||||
@ -134,21 +128,17 @@
|
|||||||
|
|
||||||
function report (_ref) {
|
function report (_ref) {
|
||||||
var nodesTested = _ref.nodesTested,
|
var nodesTested = _ref.nodesTested,
|
||||||
nodesFound = _ref.nodesFound;
|
nodesFound = _ref.nodesFound;
|
||||||
var timedOutTests = {};
|
var timedOutTests = {};
|
||||||
|
|
||||||
for (var key in nodesFound) {
|
for (var key in nodesFound) {
|
||||||
if (!(nodesTested.conflict[key] || nodesTested.noConflict[key])) {
|
if (!(nodesTested.conflict[key] || nodesTested.noConflict[key])) {
|
||||||
timedOutTests[key] = nodesFound[key];
|
timedOutTests[key] = nodesFound[key];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
var conflictsCount = Object.keys(nodesTested.conflict).length;
|
var conflictsCount = Object.keys(nodesTested.conflict).length;
|
||||||
|
|
||||||
if (conflictsCount > 0) {
|
if (conflictsCount > 0) {
|
||||||
console.info("%cConflict".concat(conflictsCount > 1 ? 's' : '', " found:"), 'color: darkred; font-size: large');
|
console.info("%cConflict".concat(conflictsCount > 1 ? 's' : '', " found:"), 'color: darkred; font-size: large');
|
||||||
var data = {};
|
var data = {};
|
||||||
|
|
||||||
for (var _key in nodesTested.conflict) {
|
for (var _key in nodesTested.conflict) {
|
||||||
var item = nodesTested.conflict[_key];
|
var item = nodesTested.conflict[_key];
|
||||||
data[_key] = {
|
data[_key] = {
|
||||||
@ -157,16 +147,12 @@
|
|||||||
'innerText excerpt': item.innerText && item.innerText !== '' ? item.innerText.slice(0, 200) + '...' : '(empty)'
|
'innerText excerpt': item.innerText && item.innerText !== '' ? item.innerText.slice(0, 200) + '...' : '(empty)'
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
console.table(data);
|
console.table(data);
|
||||||
}
|
}
|
||||||
|
|
||||||
var noConflictsCount = Object.keys(nodesTested.noConflict).length;
|
var noConflictsCount = Object.keys(nodesTested.noConflict).length;
|
||||||
|
|
||||||
if (noConflictsCount > 0) {
|
if (noConflictsCount > 0) {
|
||||||
console.info("%cNo conflict".concat(noConflictsCount > 1 ? 's' : '', " found with ").concat(noConflictsCount === 1 ? 'this' : 'these', ":"), 'color: green; font-size: large');
|
console.info("%cNo conflict".concat(noConflictsCount > 1 ? 's' : '', " found with ").concat(noConflictsCount === 1 ? 'this' : 'these', ":"), 'color: green; font-size: large');
|
||||||
var _data = {};
|
var _data = {};
|
||||||
|
|
||||||
for (var _key2 in nodesTested.noConflict) {
|
for (var _key2 in nodesTested.noConflict) {
|
||||||
var _item = nodesTested.noConflict[_key2];
|
var _item = nodesTested.noConflict[_key2];
|
||||||
_data[_key2] = {
|
_data[_key2] = {
|
||||||
@ -175,16 +161,12 @@
|
|||||||
'innerText excerpt': _item.innerText && _item.innerText !== '' ? _item.innerText.slice(0, 200) + '...' : '(empty)'
|
'innerText excerpt': _item.innerText && _item.innerText !== '' ? _item.innerText.slice(0, 200) + '...' : '(empty)'
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
console.table(_data);
|
console.table(_data);
|
||||||
}
|
}
|
||||||
|
|
||||||
var timeOutCount = Object.keys(timedOutTests).length;
|
var timeOutCount = Object.keys(timedOutTests).length;
|
||||||
|
|
||||||
if (timeOutCount > 0) {
|
if (timeOutCount > 0) {
|
||||||
console.info("%cLeftovers--we timed out before collecting test results for ".concat(timeOutCount === 1 ? 'this' : 'these', ":"), 'color: blue; font-size: large');
|
console.info("%cLeftovers--we timed out before collecting test results for ".concat(timeOutCount === 1 ? 'this' : 'these', ":"), 'color: blue; font-size: large');
|
||||||
var _data2 = {};
|
var _data2 = {};
|
||||||
|
|
||||||
for (var _key3 in timedOutTests) {
|
for (var _key3 in timedOutTests) {
|
||||||
var _item2 = timedOutTests[_key3];
|
var _item2 = timedOutTests[_key3];
|
||||||
_data2[_key3] = {
|
_data2[_key3] = {
|
||||||
@ -193,7 +175,6 @@
|
|||||||
'innerText excerpt': _item2.innerText && _item2.innerText !== '' ? _item2.innerText.slice(0, 200) + '...' : '(empty)'
|
'innerText excerpt': _item2.innerText && _item2.innerText !== '' ? _item2.innerText.slice(0, 200) + '...' : '(empty)'
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
console.table(_data2);
|
console.table(_data2);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -205,8 +186,8 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
var md5 = createCommonjsModule(function (module) {
|
var md5 = createCommonjsModule(function (module) {
|
||||||
|
|
||||||
(function ($) {
|
(function ($) {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Add integers, wrapping at 2^32.
|
* Add integers, wrapping at 2^32.
|
||||||
* This uses 16-bit operations internally to work around bugs in interpreters.
|
* This uses 16-bit operations internally to work around bugs in interpreters.
|
||||||
@ -215,12 +196,12 @@
|
|||||||
* @param {number} y Second integer
|
* @param {number} y Second integer
|
||||||
* @returns {number} Sum
|
* @returns {number} Sum
|
||||||
*/
|
*/
|
||||||
|
|
||||||
function safeAdd(x, y) {
|
function safeAdd(x, y) {
|
||||||
var lsw = (x & 0xffff) + (y & 0xffff);
|
var lsw = (x & 0xffff) + (y & 0xffff);
|
||||||
var msw = (x >> 16) + (y >> 16) + (lsw >> 16);
|
var msw = (x >> 16) + (y >> 16) + (lsw >> 16);
|
||||||
return msw << 16 | lsw & 0xffff;
|
return msw << 16 | lsw & 0xffff;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Bitwise rotate a 32-bit number to the left.
|
* Bitwise rotate a 32-bit number to the left.
|
||||||
*
|
*
|
||||||
@ -228,11 +209,10 @@
|
|||||||
* @param {number} cnt Rotation count
|
* @param {number} cnt Rotation count
|
||||||
* @returns {number} Rotated number
|
* @returns {number} Rotated number
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
function bitRotateLeft(num, cnt) {
|
function bitRotateLeft(num, cnt) {
|
||||||
return num << cnt | num >>> 32 - cnt;
|
return num << cnt | num >>> 32 - cnt;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Basic operation the algorithm uses.
|
* Basic operation the algorithm uses.
|
||||||
*
|
*
|
||||||
@ -244,8 +224,6 @@
|
|||||||
* @param {number} t t
|
* @param {number} t t
|
||||||
* @returns {number} Result
|
* @returns {number} Result
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
function md5cmn(q, a, b, x, s, t) {
|
function md5cmn(q, a, b, x, s, t) {
|
||||||
return safeAdd(bitRotateLeft(safeAdd(safeAdd(a, q), safeAdd(x, t)), s), b);
|
return safeAdd(bitRotateLeft(safeAdd(safeAdd(a, q), safeAdd(x, t)), s), b);
|
||||||
}
|
}
|
||||||
@ -261,8 +239,6 @@
|
|||||||
* @param {number} t t
|
* @param {number} t t
|
||||||
* @returns {number} Result
|
* @returns {number} Result
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
function md5ff(a, b, c, d, x, s, t) {
|
function md5ff(a, b, c, d, x, s, t) {
|
||||||
return md5cmn(b & c | ~b & d, a, b, x, s, t);
|
return md5cmn(b & c | ~b & d, a, b, x, s, t);
|
||||||
}
|
}
|
||||||
@ -278,8 +254,6 @@
|
|||||||
* @param {number} t t
|
* @param {number} t t
|
||||||
* @returns {number} Result
|
* @returns {number} Result
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
function md5gg(a, b, c, d, x, s, t) {
|
function md5gg(a, b, c, d, x, s, t) {
|
||||||
return md5cmn(b & d | c & ~d, a, b, x, s, t);
|
return md5cmn(b & d | c & ~d, a, b, x, s, t);
|
||||||
}
|
}
|
||||||
@ -295,8 +269,6 @@
|
|||||||
* @param {number} t t
|
* @param {number} t t
|
||||||
* @returns {number} Result
|
* @returns {number} Result
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
function md5hh(a, b, c, d, x, s, t) {
|
function md5hh(a, b, c, d, x, s, t) {
|
||||||
return md5cmn(b ^ c ^ d, a, b, x, s, t);
|
return md5cmn(b ^ c ^ d, a, b, x, s, t);
|
||||||
}
|
}
|
||||||
@ -312,11 +284,10 @@
|
|||||||
* @param {number} t t
|
* @param {number} t t
|
||||||
* @returns {number} Result
|
* @returns {number} Result
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
function md5ii(a, b, c, d, x, s, t) {
|
function md5ii(a, b, c, d, x, s, t) {
|
||||||
return md5cmn(c ^ (b | ~d), a, b, x, s, t);
|
return md5cmn(c ^ (b | ~d), a, b, x, s, t);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Calculate the MD5 of an array of little-endian words, and a bit length.
|
* Calculate the MD5 of an array of little-endian words, and a bit length.
|
||||||
*
|
*
|
||||||
@ -324,8 +295,6 @@
|
|||||||
* @param {number} len Bit length
|
* @param {number} len Bit length
|
||||||
* @returns {Array<number>} MD5 Array
|
* @returns {Array<number>} MD5 Array
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
function binlMD5(x, len) {
|
function binlMD5(x, len) {
|
||||||
/* append padding */
|
/* append padding */
|
||||||
x[len >> 5] |= 0x80 << len % 32;
|
x[len >> 5] |= 0x80 << len % 32;
|
||||||
@ -339,7 +308,6 @@
|
|||||||
var b = -271733879;
|
var b = -271733879;
|
||||||
var c = -1732584194;
|
var c = -1732584194;
|
||||||
var d = 271733878;
|
var d = 271733878;
|
||||||
|
|
||||||
for (i = 0; i < x.length; i += 16) {
|
for (i = 0; i < x.length; i += 16) {
|
||||||
olda = a;
|
olda = a;
|
||||||
oldb = b;
|
oldb = b;
|
||||||
@ -414,28 +382,25 @@
|
|||||||
c = safeAdd(c, oldc);
|
c = safeAdd(c, oldc);
|
||||||
d = safeAdd(d, oldd);
|
d = safeAdd(d, oldd);
|
||||||
}
|
}
|
||||||
|
|
||||||
return [a, b, c, d];
|
return [a, b, c, d];
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Convert an array of little-endian words to a string
|
* Convert an array of little-endian words to a string
|
||||||
*
|
*
|
||||||
* @param {Array<number>} input MD5 Array
|
* @param {Array<number>} input MD5 Array
|
||||||
* @returns {string} MD5 string
|
* @returns {string} MD5 string
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
function binl2rstr(input) {
|
function binl2rstr(input) {
|
||||||
var i;
|
var i;
|
||||||
var output = '';
|
var output = '';
|
||||||
var length32 = input.length * 32;
|
var length32 = input.length * 32;
|
||||||
|
|
||||||
for (i = 0; i < length32; i += 8) {
|
for (i = 0; i < length32; i += 8) {
|
||||||
output += String.fromCharCode(input[i >> 5] >>> i % 32 & 0xff);
|
output += String.fromCharCode(input[i >> 5] >>> i % 32 & 0xff);
|
||||||
}
|
}
|
||||||
|
|
||||||
return output;
|
return output;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Convert a raw string to an array of little-endian words
|
* Convert a raw string to an array of little-endian words
|
||||||
* Characters >255 have their high-byte silently ignored.
|
* Characters >255 have their high-byte silently ignored.
|
||||||
@ -443,36 +408,30 @@
|
|||||||
* @param {string} input Raw input string
|
* @param {string} input Raw input string
|
||||||
* @returns {Array<number>} Array of little-endian words
|
* @returns {Array<number>} Array of little-endian words
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
function rstr2binl(input) {
|
function rstr2binl(input) {
|
||||||
var i;
|
var i;
|
||||||
var output = [];
|
var output = [];
|
||||||
output[(input.length >> 2) - 1] = undefined;
|
output[(input.length >> 2) - 1] = undefined;
|
||||||
|
|
||||||
for (i = 0; i < output.length; i += 1) {
|
for (i = 0; i < output.length; i += 1) {
|
||||||
output[i] = 0;
|
output[i] = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
var length8 = input.length * 8;
|
var length8 = input.length * 8;
|
||||||
|
|
||||||
for (i = 0; i < length8; i += 8) {
|
for (i = 0; i < length8; i += 8) {
|
||||||
output[i >> 5] |= (input.charCodeAt(i / 8) & 0xff) << i % 32;
|
output[i >> 5] |= (input.charCodeAt(i / 8) & 0xff) << i % 32;
|
||||||
}
|
}
|
||||||
|
|
||||||
return output;
|
return output;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Calculate the MD5 of a raw string
|
* Calculate the MD5 of a raw string
|
||||||
*
|
*
|
||||||
* @param {string} s Input string
|
* @param {string} s Input string
|
||||||
* @returns {string} Raw MD5 string
|
* @returns {string} Raw MD5 string
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
function rstrMD5(s) {
|
function rstrMD5(s) {
|
||||||
return binl2rstr(binlMD5(rstr2binl(s), s.length * 8));
|
return binl2rstr(binlMD5(rstr2binl(s), s.length * 8));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Calculates the HMAC-MD5 of a key and some data (raw strings)
|
* Calculates the HMAC-MD5 of a key and some data (raw strings)
|
||||||
*
|
*
|
||||||
@ -480,8 +439,6 @@
|
|||||||
* @param {string} data Raw input string
|
* @param {string} data Raw input string
|
||||||
* @returns {string} Raw MD5 string
|
* @returns {string} Raw MD5 string
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
function rstrHMACMD5(key, data) {
|
function rstrHMACMD5(key, data) {
|
||||||
var i;
|
var i;
|
||||||
var bkey = rstr2binl(key);
|
var bkey = rstr2binl(key);
|
||||||
@ -489,59 +446,51 @@
|
|||||||
var opad = [];
|
var opad = [];
|
||||||
var hash;
|
var hash;
|
||||||
ipad[15] = opad[15] = undefined;
|
ipad[15] = opad[15] = undefined;
|
||||||
|
|
||||||
if (bkey.length > 16) {
|
if (bkey.length > 16) {
|
||||||
bkey = binlMD5(bkey, key.length * 8);
|
bkey = binlMD5(bkey, key.length * 8);
|
||||||
}
|
}
|
||||||
|
|
||||||
for (i = 0; i < 16; i += 1) {
|
for (i = 0; i < 16; i += 1) {
|
||||||
ipad[i] = bkey[i] ^ 0x36363636;
|
ipad[i] = bkey[i] ^ 0x36363636;
|
||||||
opad[i] = bkey[i] ^ 0x5c5c5c5c;
|
opad[i] = bkey[i] ^ 0x5c5c5c5c;
|
||||||
}
|
}
|
||||||
|
|
||||||
hash = binlMD5(ipad.concat(rstr2binl(data)), 512 + data.length * 8);
|
hash = binlMD5(ipad.concat(rstr2binl(data)), 512 + data.length * 8);
|
||||||
return binl2rstr(binlMD5(opad.concat(hash), 512 + 128));
|
return binl2rstr(binlMD5(opad.concat(hash), 512 + 128));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Convert a raw string to a hex string
|
* Convert a raw string to a hex string
|
||||||
*
|
*
|
||||||
* @param {string} input Raw input string
|
* @param {string} input Raw input string
|
||||||
* @returns {string} Hex encoded string
|
* @returns {string} Hex encoded string
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
function rstr2hex(input) {
|
function rstr2hex(input) {
|
||||||
var hexTab = '0123456789abcdef';
|
var hexTab = '0123456789abcdef';
|
||||||
var output = '';
|
var output = '';
|
||||||
var x;
|
var x;
|
||||||
var i;
|
var i;
|
||||||
|
|
||||||
for (i = 0; i < input.length; i += 1) {
|
for (i = 0; i < input.length; i += 1) {
|
||||||
x = input.charCodeAt(i);
|
x = input.charCodeAt(i);
|
||||||
output += hexTab.charAt(x >>> 4 & 0x0f) + hexTab.charAt(x & 0x0f);
|
output += hexTab.charAt(x >>> 4 & 0x0f) + hexTab.charAt(x & 0x0f);
|
||||||
}
|
}
|
||||||
|
|
||||||
return output;
|
return output;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Encode a string as UTF-8
|
* Encode a string as UTF-8
|
||||||
*
|
*
|
||||||
* @param {string} input Input string
|
* @param {string} input Input string
|
||||||
* @returns {string} UTF8 string
|
* @returns {string} UTF8 string
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
function str2rstrUTF8(input) {
|
function str2rstrUTF8(input) {
|
||||||
return unescape(encodeURIComponent(input));
|
return unescape(encodeURIComponent(input));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Encodes input string as raw MD5 string
|
* Encodes input string as raw MD5 string
|
||||||
*
|
*
|
||||||
* @param {string} s Input string
|
* @param {string} s Input string
|
||||||
* @returns {string} Raw MD5 string
|
* @returns {string} Raw MD5 string
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
function rawMD5(s) {
|
function rawMD5(s) {
|
||||||
return rstrMD5(str2rstrUTF8(s));
|
return rstrMD5(str2rstrUTF8(s));
|
||||||
}
|
}
|
||||||
@ -551,8 +500,6 @@
|
|||||||
* @param {string} s Input string
|
* @param {string} s Input string
|
||||||
* @returns {string} Hex encoded string
|
* @returns {string} Hex encoded string
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
function hexMD5(s) {
|
function hexMD5(s) {
|
||||||
return rstr2hex(rawMD5(s));
|
return rstr2hex(rawMD5(s));
|
||||||
}
|
}
|
||||||
@ -563,8 +510,6 @@
|
|||||||
* @param {string} d Input string
|
* @param {string} d Input string
|
||||||
* @returns {string} Raw MD5 string
|
* @returns {string} Raw MD5 string
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
function rawHMACMD5(k, d) {
|
function rawHMACMD5(k, d) {
|
||||||
return rstrHMACMD5(str2rstrUTF8(k), str2rstrUTF8(d));
|
return rstrHMACMD5(str2rstrUTF8(k), str2rstrUTF8(d));
|
||||||
}
|
}
|
||||||
@ -575,11 +520,10 @@
|
|||||||
* @param {string} d Input string
|
* @param {string} d Input string
|
||||||
* @returns {string} Raw MD5 string
|
* @returns {string} Raw MD5 string
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
function hexHMACMD5(k, d) {
|
function hexHMACMD5(k, d) {
|
||||||
return rstr2hex(rawHMACMD5(k, d));
|
return rstr2hex(rawHMACMD5(k, d));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Calculates MD5 value for a given string.
|
* Calculates MD5 value for a given string.
|
||||||
* If a key is provided, calculates the HMAC-MD5 value.
|
* If a key is provided, calculates the HMAC-MD5 value.
|
||||||
@ -590,24 +534,18 @@
|
|||||||
* @param {boolean} [raw] Raw output switch
|
* @param {boolean} [raw] Raw output switch
|
||||||
* @returns {string} MD5 output
|
* @returns {string} MD5 output
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
function md5(string, key, raw) {
|
function md5(string, key, raw) {
|
||||||
if (!key) {
|
if (!key) {
|
||||||
if (!raw) {
|
if (!raw) {
|
||||||
return hexMD5(string);
|
return hexMD5(string);
|
||||||
}
|
}
|
||||||
|
|
||||||
return rawMD5(string);
|
return rawMD5(string);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!raw) {
|
if (!raw) {
|
||||||
return hexHMACMD5(key, string);
|
return hexHMACMD5(key, string);
|
||||||
}
|
}
|
||||||
|
|
||||||
return rawHMACMD5(key, string);
|
return rawHMACMD5(key, string);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (module.exports) {
|
if (module.exports) {
|
||||||
module.exports = md5;
|
module.exports = md5;
|
||||||
} else {
|
} else {
|
||||||
@ -618,7 +556,6 @@
|
|||||||
|
|
||||||
function md5ForNode(node) {
|
function md5ForNode(node) {
|
||||||
if (null === node || 'object' !== _typeof(node)) return undefined;
|
if (null === node || 'object' !== _typeof(node)) return undefined;
|
||||||
|
|
||||||
if (node.src) {
|
if (node.src) {
|
||||||
return md5(node.src);
|
return md5(node.src);
|
||||||
} else if (node.href) {
|
} else if (node.href) {
|
||||||
@ -637,41 +574,36 @@
|
|||||||
var detectionIgnoreAttr = 'data-fa-detection-ignore';
|
var detectionIgnoreAttr = 'data-fa-detection-ignore';
|
||||||
var timeoutAttr = 'data-fa-detection-timeout';
|
var timeoutAttr = 'data-fa-detection-timeout';
|
||||||
var resultsCollectionMaxWaitAttr = 'data-fa-detection-results-collection-max-wait';
|
var resultsCollectionMaxWaitAttr = 'data-fa-detection-results-collection-max-wait';
|
||||||
|
|
||||||
var silenceErrors = function silenceErrors(e) {
|
var silenceErrors = function silenceErrors(e) {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
e.stopPropagation();
|
e.stopPropagation();
|
||||||
};
|
};
|
||||||
|
|
||||||
function pollUntil(_ref) {
|
function pollUntil(_ref) {
|
||||||
var _ref$fn = _ref.fn,
|
var _ref$fn = _ref.fn,
|
||||||
fn = _ref$fn === void 0 ? function () {
|
fn = _ref$fn === void 0 ? function () {
|
||||||
return true;
|
return true;
|
||||||
} : _ref$fn,
|
} : _ref$fn,
|
||||||
_ref$initialDuration = _ref.initialDuration,
|
_ref$initialDuration = _ref.initialDuration,
|
||||||
initialDuration = _ref$initialDuration === void 0 ? 1 : _ref$initialDuration,
|
initialDuration = _ref$initialDuration === void 0 ? 1 : _ref$initialDuration,
|
||||||
_ref$maxDuration = _ref.maxDuration,
|
_ref$maxDuration = _ref.maxDuration,
|
||||||
maxDuration = _ref$maxDuration === void 0 ? WINDOW.FontAwesomeDetection.timeout : _ref$maxDuration,
|
maxDuration = _ref$maxDuration === void 0 ? WINDOW.FontAwesomeDetection.timeout : _ref$maxDuration,
|
||||||
_ref$showProgress = _ref.showProgress,
|
_ref$showProgress = _ref.showProgress,
|
||||||
showProgress = _ref$showProgress === void 0 ? false : _ref$showProgress,
|
showProgress = _ref$showProgress === void 0 ? false : _ref$showProgress,
|
||||||
progressIndicator = _ref.progressIndicator;
|
progressIndicator = _ref.progressIndicator;
|
||||||
return new Promise(function (resolve, reject) {
|
return new Promise(function (resolve, reject) {
|
||||||
// eslint-disable-line compat/compat
|
// eslint-disable-line compat/compat
|
||||||
function poll(duration, cumulativeDuration) {
|
function poll(duration, cumulativeDuration) {
|
||||||
setTimeout(function () {
|
setTimeout(function () {
|
||||||
var result = fn();
|
var result = fn();
|
||||||
|
|
||||||
if (showProgress) {
|
if (showProgress) {
|
||||||
console.info(progressIndicator);
|
console.info(progressIndicator);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!!result) {
|
if (!!result) {
|
||||||
// eslint-disable-line no-extra-boolean-cast
|
// eslint-disable-line no-extra-boolean-cast
|
||||||
resolve(result);
|
resolve(result);
|
||||||
} else {
|
} else {
|
||||||
var nextDuration = 250;
|
var nextDuration = 250;
|
||||||
var nextCumulativeDuration = nextDuration + cumulativeDuration;
|
var nextCumulativeDuration = nextDuration + cumulativeDuration;
|
||||||
|
|
||||||
if (nextCumulativeDuration <= maxDuration) {
|
if (nextCumulativeDuration <= maxDuration) {
|
||||||
poll(nextDuration, nextCumulativeDuration);
|
poll(nextDuration, nextCumulativeDuration);
|
||||||
} else {
|
} else {
|
||||||
@ -680,11 +612,9 @@
|
|||||||
}
|
}
|
||||||
}, duration);
|
}, duration);
|
||||||
}
|
}
|
||||||
|
|
||||||
poll(initialDuration, 0);
|
poll(initialDuration, 0);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
function detectWebfontConflicts() {
|
function detectWebfontConflicts() {
|
||||||
var linkTags = Array.from(DOCUMENT.getElementsByTagName('link')).filter(function (t) {
|
var linkTags = Array.from(DOCUMENT.getElementsByTagName('link')).filter(function (t) {
|
||||||
return !t.hasAttribute(detectionIgnoreAttr);
|
return !t.hasAttribute(detectionIgnoreAttr);
|
||||||
@ -692,43 +622,41 @@
|
|||||||
var styleTags = Array.from(DOCUMENT.getElementsByTagName('style')).filter(function (t) {
|
var styleTags = Array.from(DOCUMENT.getElementsByTagName('style')).filter(function (t) {
|
||||||
if (t.hasAttribute(detectionIgnoreAttr)) {
|
if (t.hasAttribute(detectionIgnoreAttr)) {
|
||||||
return false;
|
return false;
|
||||||
} // If the browser has loaded the FA5 CSS, let's not test that <style> element.
|
}
|
||||||
|
|
||||||
|
// If the browser has loaded the FA5 CSS, let's not test that <style> element.
|
||||||
// Its enough that we'll be testing for traces of the corresponding JS being loaded, and testing
|
// Its enough that we'll be testing for traces of the corresponding JS being loaded, and testing
|
||||||
// this <style> would only produce a false negative anyway.
|
// this <style> would only produce a false negative anyway.
|
||||||
|
|
||||||
|
|
||||||
if (WINDOW.FontAwesomeConfig && t.innerText.match(new RegExp("svg:not\\(:root\\)\\.".concat(WINDOW.FontAwesomeConfig.replacementClass)))) {
|
if (WINDOW.FontAwesomeConfig && t.innerText.match(new RegExp("svg:not\\(:root\\)\\.".concat(WINDOW.FontAwesomeConfig.replacementClass)))) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
});
|
});
|
||||||
|
|
||||||
function runDiag(scriptOrLinkTag, md5) {
|
function runDiag(scriptOrLinkTag, md5) {
|
||||||
var diagFrame = DOCUMENT.createElement('iframe'); // Using "visibility: hidden; position: absolute" instead of "display: none;" because
|
var diagFrame = DOCUMENT.createElement('iframe');
|
||||||
|
// Using "visibility: hidden; position: absolute" instead of "display: none;" because
|
||||||
// Firefox will not return the expected results for getComputedStyle if our iframe has display: none.
|
// Firefox will not return the expected results for getComputedStyle if our iframe has display: none.
|
||||||
|
|
||||||
diagFrame.setAttribute('style', 'visibility: hidden; position: absolute; height: 0; width: 0;');
|
diagFrame.setAttribute('style', 'visibility: hidden; position: absolute; height: 0; width: 0;');
|
||||||
var testIconId = 'fa-test-icon-' + md5;
|
var testIconId = 'fa-test-icon-' + md5;
|
||||||
var iTag = DOCUMENT.createElement('i');
|
var iTag = DOCUMENT.createElement('i');
|
||||||
iTag.setAttribute('class', 'fa fa-coffee');
|
iTag.setAttribute('class', 'fa fa-coffee');
|
||||||
iTag.setAttribute('id', testIconId);
|
iTag.setAttribute('id', testIconId);
|
||||||
var diagScript = DOCUMENT.createElement('script');
|
var diagScript = DOCUMENT.createElement('script');
|
||||||
diagScript.setAttribute('id', diagScriptId); // WARNING: this function will be toString()'d and assigned to innerText of the diag script
|
diagScript.setAttribute('id', diagScriptId);
|
||||||
|
|
||||||
|
// WARNING: this function will be toString()'d and assigned to innerText of the diag script
|
||||||
// element that we'll be putting into a diagnostic iframe.
|
// element that we'll be putting into a diagnostic iframe.
|
||||||
// That means that this code won't compile until after the outer script has run and injected
|
// That means that this code won't compile until after the outer script has run and injected
|
||||||
// this code into the iframe. There are some compile time errors that might occur there.
|
// this code into the iframe. There are some compile time errors that might occur there.
|
||||||
// For example, using single line (double-slash) comments like this one inside that function
|
// For example, using single line (double-slash) comments like this one inside that function
|
||||||
// will probably cause it to choke. Chrome will show an error like this:
|
// will probably cause it to choke. Chrome will show an error like this:
|
||||||
// Uncaught SyntaxError: Unexpected end of input
|
// Uncaught SyntaxError: Unexpected end of input
|
||||||
|
|
||||||
var diagScriptFun = function diagScriptFun(nodeUnderTestId, testIconId, md5, parentOrigin) {
|
var diagScriptFun = function diagScriptFun(nodeUnderTestId, testIconId, md5, parentOrigin) {
|
||||||
parent.FontAwesomeDetection.__pollUntil({
|
parent.FontAwesomeDetection.__pollUntil({
|
||||||
fn: function fn() {
|
fn: function fn() {
|
||||||
var iEl = document.getElementById(testIconId);
|
var iEl = document.getElementById(testIconId);
|
||||||
var computedStyle = window.getComputedStyle(iEl);
|
var computedStyle = window.getComputedStyle(iEl);
|
||||||
var fontFamily = computedStyle.getPropertyValue('font-family');
|
var fontFamily = computedStyle.getPropertyValue('font-family');
|
||||||
|
|
||||||
if (!!fontFamily.match(/FontAwesome/) || !!fontFamily.match(/Font Awesome [56]/)) {
|
if (!!fontFamily.match(/FontAwesome/) || !!fontFamily.match(/Font Awesome [56]/)) {
|
||||||
return true;
|
return true;
|
||||||
} else {
|
} else {
|
||||||
@ -747,7 +675,6 @@
|
|||||||
}, parentOrigin);
|
}, parentOrigin);
|
||||||
}).catch(function (e) {
|
}).catch(function (e) {
|
||||||
var node = document.getElementById(nodeUnderTestId);
|
var node = document.getElementById(nodeUnderTestId);
|
||||||
|
|
||||||
if (e === 'timeout') {
|
if (e === 'timeout') {
|
||||||
parent.postMessage({
|
parent.postMessage({
|
||||||
type: 'no-conflict',
|
type: 'no-conflict',
|
||||||
@ -762,24 +689,19 @@
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
var parentOrigin = WINDOW.location.origin === 'file://' ? '*' : WINDOW.location.origin;
|
var parentOrigin = WINDOW.location.origin === 'file://' ? '*' : WINDOW.location.origin;
|
||||||
diagScript.innerText = "(".concat(diagScriptFun.toString(), ")('").concat(nodeUnderTestId, "', '").concat(testIconId || 'foo', "', '").concat(md5, "', '").concat(parentOrigin, "');");
|
diagScript.innerText = "(".concat(diagScriptFun.toString(), ")('").concat(nodeUnderTestId, "', '").concat(testIconId || 'foo', "', '").concat(md5, "', '").concat(parentOrigin, "');");
|
||||||
|
|
||||||
diagFrame.onload = function () {
|
diagFrame.onload = function () {
|
||||||
diagFrame.contentWindow.addEventListener('error', silenceErrors, true);
|
diagFrame.contentWindow.addEventListener('error', silenceErrors, true);
|
||||||
diagFrame.contentDocument.head.appendChild(diagScript);
|
diagFrame.contentDocument.head.appendChild(diagScript);
|
||||||
diagFrame.contentDocument.head.appendChild(scriptOrLinkTag);
|
diagFrame.contentDocument.head.appendChild(scriptOrLinkTag);
|
||||||
diagFrame.contentDocument.body.appendChild(iTag);
|
diagFrame.contentDocument.body.appendChild(iTag);
|
||||||
};
|
};
|
||||||
|
|
||||||
domready(function () {
|
domready(function () {
|
||||||
return DOCUMENT.body.appendChild(diagFrame);
|
return DOCUMENT.body.appendChild(diagFrame);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
var cssByMD5 = {};
|
var cssByMD5 = {};
|
||||||
|
|
||||||
for (var i = 0; i < linkTags.length; i++) {
|
for (var i = 0; i < linkTags.length; i++) {
|
||||||
var linkUnderTest = DOCUMENT.createElement('link');
|
var linkUnderTest = DOCUMENT.createElement('link');
|
||||||
linkUnderTest.setAttribute('id', nodeUnderTestId);
|
linkUnderTest.setAttribute('id', nodeUnderTestId);
|
||||||
@ -790,7 +712,6 @@
|
|||||||
cssByMD5[md5ForLink] = linkTags[i];
|
cssByMD5[md5ForLink] = linkTags[i];
|
||||||
runDiag(linkUnderTest, md5ForLink);
|
runDiag(linkUnderTest, md5ForLink);
|
||||||
}
|
}
|
||||||
|
|
||||||
for (var _i = 0; _i < styleTags.length; _i++) {
|
for (var _i = 0; _i < styleTags.length; _i++) {
|
||||||
var styleUnderTest = DOCUMENT.createElement('style');
|
var styleUnderTest = DOCUMENT.createElement('style');
|
||||||
styleUnderTest.setAttribute('id', nodeUnderTestId);
|
styleUnderTest.setAttribute('id', nodeUnderTestId);
|
||||||
@ -800,17 +721,14 @@
|
|||||||
cssByMD5[md5ForStyle] = styleTags[_i];
|
cssByMD5[md5ForStyle] = styleTags[_i];
|
||||||
runDiag(styleUnderTest, md5ForStyle);
|
runDiag(styleUnderTest, md5ForStyle);
|
||||||
}
|
}
|
||||||
|
|
||||||
return cssByMD5;
|
return cssByMD5;
|
||||||
}
|
}
|
||||||
|
|
||||||
function detectSvgConflicts(currentScript) {
|
function detectSvgConflicts(currentScript) {
|
||||||
var scripts = Array.from(DOCUMENT.scripts).filter(function (t) {
|
var scripts = Array.from(DOCUMENT.scripts).filter(function (t) {
|
||||||
return !t.hasAttribute(detectionIgnoreAttr) && t !== currentScript;
|
return !t.hasAttribute(detectionIgnoreAttr) && t !== currentScript;
|
||||||
});
|
});
|
||||||
var scriptsByMD5 = {};
|
var scriptsByMD5 = {};
|
||||||
|
var _loop = function _loop() {
|
||||||
var _loop = function _loop(scriptIdx) {
|
|
||||||
var diagFrame = DOCUMENT.createElement('iframe');
|
var diagFrame = DOCUMENT.createElement('iframe');
|
||||||
diagFrame.setAttribute('style', 'display:none;');
|
diagFrame.setAttribute('style', 'display:none;');
|
||||||
var scriptUnderTest = DOCUMENT.createElement('script');
|
var scriptUnderTest = DOCUMENT.createElement('script');
|
||||||
@ -818,20 +736,16 @@
|
|||||||
var md5ForScript = md5ForNode(scripts[scriptIdx]);
|
var md5ForScript = md5ForNode(scripts[scriptIdx]);
|
||||||
scriptUnderTest.setAttribute(md5Attr, md5ForScript);
|
scriptUnderTest.setAttribute(md5Attr, md5ForScript);
|
||||||
scriptsByMD5[md5ForScript] = scripts[scriptIdx];
|
scriptsByMD5[md5ForScript] = scripts[scriptIdx];
|
||||||
|
|
||||||
if (scripts[scriptIdx].src !== '') {
|
if (scripts[scriptIdx].src !== '') {
|
||||||
scriptUnderTest.src = scripts[scriptIdx].src;
|
scriptUnderTest.src = scripts[scriptIdx].src;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (scripts[scriptIdx].innerText !== '') {
|
if (scripts[scriptIdx].innerText !== '') {
|
||||||
scriptUnderTest.innerText = scripts[scriptIdx].innerText;
|
scriptUnderTest.innerText = scripts[scriptIdx].innerText;
|
||||||
}
|
}
|
||||||
|
|
||||||
scriptUnderTest.async = true;
|
scriptUnderTest.async = true;
|
||||||
var diagScript = DOCUMENT.createElement('script');
|
var diagScript = DOCUMENT.createElement('script');
|
||||||
diagScript.setAttribute('id', diagScriptId);
|
diagScript.setAttribute('id', diagScriptId);
|
||||||
var parentOrigin = WINDOW.location.origin === 'file://' ? '*' : WINDOW.location.origin;
|
var parentOrigin = WINDOW.location.origin === 'file://' ? '*' : WINDOW.location.origin;
|
||||||
|
|
||||||
var diagScriptFun = function diagScriptFun(nodeUnderTestId, md5, parentOrigin) {
|
var diagScriptFun = function diagScriptFun(nodeUnderTestId, md5, parentOrigin) {
|
||||||
parent.FontAwesomeDetection.__pollUntil({
|
parent.FontAwesomeDetection.__pollUntil({
|
||||||
fn: function fn() {
|
fn: function fn() {
|
||||||
@ -849,7 +763,6 @@
|
|||||||
}, parentOrigin);
|
}, parentOrigin);
|
||||||
}).catch(function (e) {
|
}).catch(function (e) {
|
||||||
var scriptNode = document.getElementById(nodeUnderTestId);
|
var scriptNode = document.getElementById(nodeUnderTestId);
|
||||||
|
|
||||||
if (e === 'timeout') {
|
if (e === 'timeout') {
|
||||||
parent.postMessage({
|
parent.postMessage({
|
||||||
type: 'no-conflict',
|
type: 'no-conflict',
|
||||||
@ -863,43 +776,35 @@
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
diagScript.innerText = "(".concat(diagScriptFun.toString(), ")('").concat(nodeUnderTestId, "', '").concat(md5ForScript, "', '").concat(parentOrigin, "');");
|
diagScript.innerText = "(".concat(diagScriptFun.toString(), ")('").concat(nodeUnderTestId, "', '").concat(md5ForScript, "', '").concat(parentOrigin, "');");
|
||||||
|
|
||||||
diagFrame.onload = function () {
|
diagFrame.onload = function () {
|
||||||
diagFrame.contentWindow.addEventListener('error', silenceErrors, true);
|
diagFrame.contentWindow.addEventListener('error', silenceErrors, true);
|
||||||
diagFrame.contentDocument.head.appendChild(diagScript);
|
diagFrame.contentDocument.head.appendChild(diagScript);
|
||||||
diagFrame.contentDocument.head.appendChild(scriptUnderTest);
|
diagFrame.contentDocument.head.appendChild(scriptUnderTest);
|
||||||
};
|
};
|
||||||
|
|
||||||
domready(function () {
|
domready(function () {
|
||||||
return DOCUMENT.body.appendChild(diagFrame);
|
return DOCUMENT.body.appendChild(diagFrame);
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
for (var scriptIdx = 0; scriptIdx < scripts.length; scriptIdx++) {
|
for (var scriptIdx = 0; scriptIdx < scripts.length; scriptIdx++) {
|
||||||
_loop(scriptIdx);
|
_loop();
|
||||||
}
|
}
|
||||||
|
|
||||||
return scriptsByMD5;
|
return scriptsByMD5;
|
||||||
}
|
}
|
||||||
|
|
||||||
function setDoneResults(_ref2) {
|
function setDoneResults(_ref2) {
|
||||||
var nodesTested = _ref2.nodesTested,
|
var nodesTested = _ref2.nodesTested,
|
||||||
nodesFound = _ref2.nodesFound;
|
nodesFound = _ref2.nodesFound;
|
||||||
WINDOW.FontAwesomeDetection = WINDOW.FontAwesomeDetection || {};
|
WINDOW.FontAwesomeDetection = WINDOW.FontAwesomeDetection || {};
|
||||||
WINDOW.FontAwesomeDetection.nodesTested = nodesTested;
|
WINDOW.FontAwesomeDetection.nodesTested = nodesTested;
|
||||||
WINDOW.FontAwesomeDetection.nodesFound = nodesFound;
|
WINDOW.FontAwesomeDetection.nodesFound = nodesFound;
|
||||||
WINDOW.FontAwesomeDetection.detectionDone = true;
|
WINDOW.FontAwesomeDetection.detectionDone = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
function conflictDetection() {
|
function conflictDetection() {
|
||||||
var report$$1 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : function () {};
|
var report$$1 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : function () {};
|
||||||
var nodesTested = {
|
var nodesTested = {
|
||||||
conflict: {},
|
conflict: {},
|
||||||
noConflict: {}
|
noConflict: {}
|
||||||
};
|
};
|
||||||
|
|
||||||
WINDOW.onmessage = function (e) {
|
WINDOW.onmessage = function (e) {
|
||||||
if (WINDOW.location.origin === 'file://' || e.origin === WINDOW.location.origin) {
|
if (WINDOW.location.origin === 'file://' || e.origin === WINDOW.location.origin) {
|
||||||
if (e && e.data) {
|
if (e && e.data) {
|
||||||
@ -911,22 +816,19 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
var scriptsToTest = detectSvgConflicts(DOCUMENT.currentScript);
|
var scriptsToTest = detectSvgConflicts(DOCUMENT.currentScript);
|
||||||
var cssToTest = detectWebfontConflicts();
|
var cssToTest = detectWebfontConflicts();
|
||||||
|
|
||||||
var nodesFound = _objectSpread2(_objectSpread2({}, scriptsToTest), cssToTest);
|
var nodesFound = _objectSpread2(_objectSpread2({}, scriptsToTest), cssToTest);
|
||||||
|
var testCount = Object.keys(scriptsToTest).length + Object.keys(cssToTest).length;
|
||||||
|
|
||||||
var testCount = Object.keys(scriptsToTest).length + Object.keys(cssToTest).length; // The resultsCollectionMaxWait allows for the time between when the tests running under
|
// The resultsCollectionMaxWait allows for the time between when the tests running under
|
||||||
// child iframes call postMessage with their results, and when the parent window
|
// child iframes call postMessage with their results, and when the parent window
|
||||||
// receives and handles those events with window.onmessage.
|
// receives and handles those events with window.onmessage.
|
||||||
// Making it configurable allows us to test the scenario where this timeout is exceeded.
|
// Making it configurable allows us to test the scenario where this timeout is exceeded.
|
||||||
// Naming it something very different from "timeout" is to help avoid the potential ambiguity between
|
// Naming it something very different from "timeout" is to help avoid the potential ambiguity between
|
||||||
// these two timeout-related settings.
|
// these two timeout-related settings.
|
||||||
|
|
||||||
var masterTimeout = WINDOW.FontAwesomeDetection.timeout + WINDOW.FontAwesomeDetection.resultsCollectionMaxWait;
|
var masterTimeout = WINDOW.FontAwesomeDetection.timeout + WINDOW.FontAwesomeDetection.resultsCollectionMaxWait;
|
||||||
console.group('Font Awesome Detector');
|
console.group('Font Awesome Detector');
|
||||||
|
|
||||||
if (testCount === 0) {
|
if (testCount === 0) {
|
||||||
console.info('%cAll Good!', 'color: green; font-size: large');
|
console.info('%cAll Good!', 'color: green; font-size: large');
|
||||||
console.info('We didn\'t find anything that needs testing for conflicts. Ergo, no conflicts.');
|
console.info('We didn\'t find anything that needs testing for conflicts. Ergo, no conflicts.');
|
||||||
@ -978,20 +880,20 @@
|
|||||||
nodesFound: nodesFound
|
nodesFound: nodesFound
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
console.groupEnd();
|
console.groupEnd();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
} // Allow clients to access, and in some cases, override some properties
|
}
|
||||||
|
|
||||||
var initialConfig = WINDOW.FontAwesomeDetection || {}; // These can be overridden
|
// Allow clients to access, and in some cases, override some properties
|
||||||
|
var initialConfig = WINDOW.FontAwesomeDetection || {};
|
||||||
|
|
||||||
|
// These can be overridden
|
||||||
var _default = {
|
var _default = {
|
||||||
report: report,
|
report: report,
|
||||||
timeout: +(DOCUMENT.currentScript.getAttribute(timeoutAttr) || "2000"),
|
timeout: +(DOCUMENT.currentScript.getAttribute(timeoutAttr) || "2000"),
|
||||||
resultsCollectionMaxWait: +(DOCUMENT.currentScript.getAttribute(resultsCollectionMaxWaitAttr) || "5000")
|
resultsCollectionMaxWait: +(DOCUMENT.currentScript.getAttribute(resultsCollectionMaxWaitAttr) || "5000")
|
||||||
};
|
};
|
||||||
|
|
||||||
var _config = _objectSpread2(_objectSpread2(_objectSpread2({}, _default), initialConfig), {}, {
|
var _config = _objectSpread2(_objectSpread2(_objectSpread2({}, _default), initialConfig), {}, {
|
||||||
// These cannot be overridden
|
// These cannot be overridden
|
||||||
__pollUntil: pollUntil,
|
__pollUntil: pollUntil,
|
||||||
@ -1000,7 +902,6 @@
|
|||||||
nodesTested: null,
|
nodesTested: null,
|
||||||
nodesFound: null
|
nodesFound: null
|
||||||
});
|
});
|
||||||
|
|
||||||
WINDOW.FontAwesomeDetection = _config;
|
WINDOW.FontAwesomeDetection = _config;
|
||||||
|
|
||||||
var _familyProxy, _familyProxy2, _familyProxy3, _familyProxy4, _familyProxy5;
|
var _familyProxy, _familyProxy2, _familyProxy3, _familyProxy4, _familyProxy5;
|
||||||
@ -1014,7 +915,6 @@
|
|||||||
var FAMILY_CLASSIC = 'classic';
|
var FAMILY_CLASSIC = 'classic';
|
||||||
var FAMILY_SHARP = 'sharp';
|
var FAMILY_SHARP = 'sharp';
|
||||||
var FAMILIES = [FAMILY_CLASSIC, FAMILY_SHARP];
|
var FAMILIES = [FAMILY_CLASSIC, FAMILY_SHARP];
|
||||||
|
|
||||||
function familyProxy(obj) {
|
function familyProxy(obj) {
|
||||||
// Defaults to the classic family if family is not available
|
// Defaults to the classic family if family is not available
|
||||||
return new Proxy(obj, {
|
return new Proxy(obj, {
|
||||||
@ -1120,7 +1020,6 @@
|
|||||||
for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
||||||
args[_key - 1] = arguments[_key];
|
args[_key - 1] = arguments[_key];
|
||||||
}
|
}
|
||||||
|
|
||||||
fn.apply(void 0, args);
|
fn.apply(void 0, args);
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
if (!PRODUCTION) {
|
if (!PRODUCTION) {
|
@ -9,7 +9,8 @@ t = function() {
|
|||||||
"use strict";
|
"use strict";
|
||||||
function o(e, t) {
|
function o(e, t) {
|
||||||
var n, o = Object.keys(e);
|
var n, o = Object.keys(e);
|
||||||
return Object.getOwnPropertySymbols && (n = Object.getOwnPropertySymbols(e), t && (n = n.filter(function(t) {
|
return Object.getOwnPropertySymbols && (n = Object.getOwnPropertySymbols(e),
|
||||||
|
t && (n = n.filter(function(t) {
|
||||||
return Object.getOwnPropertyDescriptor(e, t).enumerable;
|
return Object.getOwnPropertyDescriptor(e, t).enumerable;
|
||||||
})), o.push.apply(o, n)), o;
|
})), o.push.apply(o, n)), o;
|
||||||
}
|
}
|
||||||
@ -32,12 +33,22 @@ t = function() {
|
|||||||
})(t);
|
})(t);
|
||||||
}
|
}
|
||||||
function r(t, e, n) {
|
function r(t, e, n) {
|
||||||
return e in t ? Object.defineProperty(t, e, {
|
(e = function(t) {
|
||||||
|
t = function(t, e) {
|
||||||
|
if ("object" != typeof t || null === t) return t;
|
||||||
|
var n = t[Symbol.toPrimitive];
|
||||||
|
if (void 0 === n) return ("string" === e ? String : Number)(t);
|
||||||
|
n = n.call(t, e || "default");
|
||||||
|
if ("object" != typeof n) return n;
|
||||||
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
||||||
|
}(t, "string");
|
||||||
|
return "symbol" == typeof t ? t : String(t);
|
||||||
|
}(e)) in t ? Object.defineProperty(t, e, {
|
||||||
value: n,
|
value: n,
|
||||||
enumerable: !0,
|
enumerable: !0,
|
||||||
configurable: !0,
|
configurable: !0,
|
||||||
writable: !0
|
writable: !0
|
||||||
}) : t[e] = n, t;
|
}) : t[e] = n;
|
||||||
}
|
}
|
||||||
function i(t, e) {
|
function i(t, e) {
|
||||||
(null == e || e > t.length) && (e = t.length);
|
(null == e || e > t.length) && (e = t.length);
|
||||||
@ -49,24 +60,24 @@ t = function() {
|
|||||||
"undefined" != typeof window && (t = window), "undefined" != typeof document && (n = document);
|
"undefined" != typeof window && (t = window), "undefined" != typeof document && (n = document);
|
||||||
} catch (t) {}
|
} catch (t) {}
|
||||||
function c() {
|
function c() {
|
||||||
u.removeEventListener("DOMContentLoaded", c), p = 1, g.map(function(t) {
|
u.removeEventListener("DOMContentLoaded", c), g = 1, m.map(function(t) {
|
||||||
return t();
|
return t();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
var f = (t.navigator || {}).userAgent, s = void 0 === f ? "" : f, l = t, u = n, d = !!l.document, m = !!u.documentElement && !!u.head && "function" == typeof u.addEventListener && "function" == typeof u.createElement, g = (~s.indexOf("MSIE") || s.indexOf("Trident/"),
|
var f = (t.navigator || {}).userAgent, f = void 0 === f ? "" : f, l = t, u = n, s = !!l.document, d = !!u.documentElement && !!u.head && "function" == typeof u.addEventListener && "function" == typeof u.createElement, m = (~f.indexOf("MSIE") || f.indexOf("Trident/"),
|
||||||
[]), p = !1;
|
[]), g = !1;
|
||||||
function h(t) {
|
function p(t) {
|
||||||
m && (p ? setTimeout(t, 0) : g.push(t));
|
d && (g ? setTimeout(t, 0) : m.push(t));
|
||||||
}
|
}
|
||||||
m && ((p = (u.documentElement.doScroll ? /^loaded|^c/ : /^loaded|^i|^c/).test(u.readyState)) || u.addEventListener("DOMContentLoaded", c));
|
d && !(g = (u.documentElement.doScroll ? /^loaded|^c/ : /^loaded|^i|^c/).test(u.readyState)) && u.addEventListener("DOMContentLoaded", c);
|
||||||
var b = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof self ? self : {};
|
var h = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof self ? self : {};
|
||||||
var y = (function(t) {
|
(function(t) {
|
||||||
function u(t, e) {
|
function u(t, e) {
|
||||||
var n = (65535 & t) + (65535 & e);
|
var n = (65535 & t) + (65535 & e);
|
||||||
return (t >> 16) + (e >> 16) + (n >> 16) << 16 | 65535 & n;
|
return (t >> 16) + (e >> 16) + (n >> 16) << 16 | 65535 & n;
|
||||||
}
|
}
|
||||||
function c(t, e, n, o, r, i) {
|
function c(t, e, n, o, r, i) {
|
||||||
return u((i = u(u(e, t), u(o, i))) << r | i >>> 32 - r, n);
|
return u((e = u(u(e, t), u(o, i))) << r | e >>> 32 - r, n);
|
||||||
}
|
}
|
||||||
function d(t, e, n, o, r, i, a) {
|
function d(t, e, n, o, r, i, a) {
|
||||||
return c(e & n | ~e & o, t, e, r, i, a);
|
return c(e & n | ~e & o, t, e, r, i, a);
|
||||||
@ -81,9 +92,8 @@ t = function() {
|
|||||||
return c(n ^ (e | ~o), t, e, r, i, a);
|
return c(n ^ (e | ~o), t, e, r, i, a);
|
||||||
}
|
}
|
||||||
function a(t, e) {
|
function a(t, e) {
|
||||||
var n, o, r, i;
|
|
||||||
t[e >> 5] |= 128 << e % 32, t[14 + (e + 64 >>> 9 << 4)] = e;
|
t[e >> 5] |= 128 << e % 32, t[14 + (e + 64 >>> 9 << 4)] = e;
|
||||||
for (var a = 1732584193, c = -271733879, f = -1732584194, s = 271733878, l = 0; l < t.length; l += 16) a = d(n = a, o = c, r = f, i = s, t[l], 7, -680876936),
|
for (var n, o, r, i, a = 1732584193, c = -271733879, f = -1732584194, s = 271733878, l = 0; l < t.length; l += 16) a = d(n = a, o = c, r = f, i = s, t[l], 7, -680876936),
|
||||||
s = d(s, a, c, f, t[l + 1], 12, -389564586), f = d(f, s, a, c, t[l + 2], 17, 606105819),
|
s = d(s, a, c, f, t[l + 1], 12, -389564586), f = d(f, s, a, c, t[l + 2], 17, 606105819),
|
||||||
c = d(c, f, s, a, t[l + 3], 22, -1044525330), a = d(a, c, f, s, t[l + 4], 7, -176418897),
|
c = d(c, f, s, a, t[l + 3], 22, -1044525330), a = d(a, c, f, s, t[l + 4], 7, -176418897),
|
||||||
s = d(s, a, c, f, t[l + 5], 12, 1200080426), f = d(f, s, a, c, t[l + 6], 17, -1473231341),
|
s = d(s, a, c, f, t[l + 5], 12, 1200080426), f = d(f, s, a, c, t[l + 6], 17, -1473231341),
|
||||||
@ -115,8 +125,8 @@ t = function() {
|
|||||||
s = p(s, a, c, f, t[l + 15], 10, -30611744), f = p(f, s, a, c, t[l + 6], 15, -1560198380),
|
s = p(s, a, c, f, t[l + 15], 10, -30611744), f = p(f, s, a, c, t[l + 6], 15, -1560198380),
|
||||||
c = p(c, f, s, a, t[l + 13], 21, 1309151649), a = p(a, c, f, s, t[l + 4], 6, -145523070),
|
c = p(c, f, s, a, t[l + 13], 21, 1309151649), a = p(a, c, f, s, t[l + 4], 6, -145523070),
|
||||||
s = p(s, a, c, f, t[l + 11], 10, -1120210379), f = p(f, s, a, c, t[l + 2], 15, 718787259),
|
s = p(s, a, c, f, t[l + 11], 10, -1120210379), f = p(f, s, a, c, t[l + 2], 15, 718787259),
|
||||||
c = p(c, f, s, a, t[l + 9], 21, -343485551), a = u(a, n), c = u(c, o), f = u(f, r),
|
c = p(c, f, s, a, t[l + 9], 21, -343485551), a = u(a, n), c = u(c, o),
|
||||||
s = u(s, i);
|
f = u(f, r), s = u(s, i);
|
||||||
return [ a, c, f, s ];
|
return [ a, c, f, s ];
|
||||||
}
|
}
|
||||||
function f(t) {
|
function f(t) {
|
||||||
@ -134,35 +144,34 @@ t = function() {
|
|||||||
o += n.charAt(e >>> 4 & 15) + n.charAt(15 & e);
|
o += n.charAt(e >>> 4 & 15) + n.charAt(15 & e);
|
||||||
return o;
|
return o;
|
||||||
}
|
}
|
||||||
function n(t) {
|
function l(t) {
|
||||||
return unescape(encodeURIComponent(t));
|
return unescape(encodeURIComponent(t));
|
||||||
}
|
}
|
||||||
function r(t) {
|
function r(t) {
|
||||||
return f(a(s(t = n(t)), 8 * t.length));
|
return f(a(s(t = l(t)), 8 * t.length));
|
||||||
}
|
}
|
||||||
function i(t, e) {
|
function i(t, e) {
|
||||||
return function(t, e) {
|
var n, t = l(t), e = l(e), o = s(t), r = [], i = [];
|
||||||
var n, o = s(t), r = [], i = [];
|
for (r[15] = i[15] = void 0, 16 < o.length && (o = a(o, 8 * t.length)),
|
||||||
for (r[15] = i[15] = void 0, 16 < o.length && (o = a(o, 8 * t.length)), n = 0; n < 16; n += 1) r[n] = 909522486 ^ o[n],
|
n = 0; n < 16; n += 1) r[n] = 909522486 ^ o[n], i[n] = 1549556828 ^ o[n];
|
||||||
i[n] = 1549556828 ^ o[n];
|
return t = a(r.concat(s(e)), 512 + 8 * e.length), f(a(i.concat(t), 640));
|
||||||
return e = a(r.concat(s(e)), 512 + 8 * e.length), f(a(i.concat(e), 640));
|
|
||||||
}(n(t), n(e));
|
|
||||||
}
|
}
|
||||||
function e(t, e, n) {
|
function e(t, e, n) {
|
||||||
return e ? n ? i(e, t) : o(i(e, t)) : n ? r(t) : o(r(t));
|
return e ? n ? i(e, t) : o(i(e, t)) : n ? r(t) : o(r(t));
|
||||||
}
|
}
|
||||||
var l;
|
var n;
|
||||||
l = b, t.exports ? t.exports = e : l.md5 = e;
|
n = h, t.exports ? t.exports = e : n.md5 = e;
|
||||||
}(z = {
|
})(t = {
|
||||||
exports: {}
|
exports: {}
|
||||||
}), z.exports);
|
});
|
||||||
function w(t) {
|
var y = t.exports;
|
||||||
|
function b(t) {
|
||||||
if (null !== t && "object" === e(t)) return t.src ? y(t.src) : t.href ? y(t.href) : t.innerText && "" !== t.innerText ? y(t.innerText) : void 0;
|
if (null !== t && "object" === e(t)) return t.src ? y(t.src) : t.href ? y(t.href) : t.innerText && "" !== t.innerText ? y(t.innerText) : void 0;
|
||||||
}
|
}
|
||||||
var v = "fa-kits-diag", A = "fa-kits-node-under-test", x = "data-md5", T = "data-fa-detection-ignore", O = "data-fa-detection-timeout", D = "data-fa-detection-results-collection-max-wait", E = function(t) {
|
var w = "fa-kits-diag", v = "fa-kits-node-under-test", A = "data-md5", x = "data-fa-detection-ignore", T = "data-fa-detection-timeout", E = "data-fa-detection-results-collection-max-wait", O = function(t) {
|
||||||
t.preventDefault(), t.stopPropagation();
|
t.preventDefault(), t.stopPropagation();
|
||||||
};
|
};
|
||||||
function C(t) {
|
function D(t) {
|
||||||
var e = t.fn, i = void 0 === e ? function() {
|
var e = t.fn, i = void 0 === e ? function() {
|
||||||
return !0;
|
return !0;
|
||||||
} : e, e = t.initialDuration, n = void 0 === e ? 1 : e, e = t.maxDuration, a = void 0 === e ? l.FontAwesomeDetection.timeout : e, e = t.showProgress, c = void 0 !== e && e, f = t.progressIndicator;
|
} : e, e = t.initialDuration, n = void 0 === e ? 1 : e, e = t.maxDuration, a = void 0 === e ? l.FontAwesomeDetection.timeout : e, e = t.showProgress, c = void 0 !== e && e, f = t.progressIndicator;
|
||||||
@ -175,21 +184,16 @@ t = function() {
|
|||||||
}(n, 0);
|
}(n, 0);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
function F(e) {
|
function C(e) {
|
||||||
for (var i = Array.from(u.scripts).filter(function(t) {
|
for (var i = Array.from(u.scripts).filter(function(t) {
|
||||||
return !t.hasAttribute(T) && t !== e;
|
return !t.hasAttribute(x) && t !== e;
|
||||||
}), a = {}, t = 0; t < i.length; t++) !function(t) {
|
}), a = {}, c = 0; c < i.length; c++) !function() {
|
||||||
var e = u.createElement("iframe");
|
var t = u.createElement("iframe"), e = (t.setAttribute("style", "display:none;"),
|
||||||
e.setAttribute("style", "display:none;");
|
u.createElement("script")), n = (e.setAttribute("id", v), b(i[c])), o = (e.setAttribute(A, n),
|
||||||
var n = u.createElement("script");
|
a[n] = i[c], "" !== i[c].src && (e.src = i[c].src), "" !== i[c].innerText && (e.innerText = i[c].innerText),
|
||||||
n.setAttribute("id", A);
|
e.async = !0, u.createElement("script")), r = (o.setAttribute("id", w),
|
||||||
var o = w(i[t]);
|
"file://" === l.location.origin ? "*" : l.location.origin);
|
||||||
n.setAttribute(x, o), a[o] = i[t], "" !== i[t].src && (n.src = i[t].src), "" !== i[t].innerText && (n.innerText = i[t].innerText),
|
o.innerText = "(".concat(function(n, o, r) {
|
||||||
n.async = !0;
|
|
||||||
var r = u.createElement("script");
|
|
||||||
r.setAttribute("id", v);
|
|
||||||
t = "file://" === l.location.origin ? "*" : l.location.origin;
|
|
||||||
r.innerText = "(".concat(function(n, o, r) {
|
|
||||||
parent.FontAwesomeDetection.__pollUntil({
|
parent.FontAwesomeDetection.__pollUntil({
|
||||||
fn: function() {
|
fn: function() {
|
||||||
return !!window.FontAwesomeConfig || !!window.FontAwesomeKitConfig;
|
return !!window.FontAwesomeConfig || !!window.FontAwesomeKitConfig;
|
||||||
@ -214,16 +218,17 @@ t = function() {
|
|||||||
md5: o
|
md5: o
|
||||||
}, r) : console.error(t);
|
}, r) : console.error(t);
|
||||||
});
|
});
|
||||||
}.toString(), ")('").concat(A, "', '").concat(o, "', '").concat(t, "');"), e.onload = function() {
|
}.toString(), ")('").concat(v, "', '").concat(n, "', '").concat(r, "');"),
|
||||||
e.contentWindow.addEventListener("error", E, !0), e.contentDocument.head.appendChild(r),
|
t.onload = function() {
|
||||||
e.contentDocument.head.appendChild(n);
|
t.contentWindow.addEventListener("error", O, !0), t.contentDocument.head.appendChild(o),
|
||||||
}, h(function() {
|
t.contentDocument.head.appendChild(e);
|
||||||
return u.body.appendChild(e);
|
}, p(function() {
|
||||||
|
return u.body.appendChild(t);
|
||||||
});
|
});
|
||||||
}(t);
|
}();
|
||||||
return a;
|
return a;
|
||||||
}
|
}
|
||||||
function k(t) {
|
function F(t) {
|
||||||
var e = t.nodesTested, t = t.nodesFound;
|
var e = t.nodesTested, t = t.nodesFound;
|
||||||
l.FontAwesomeDetection = l.FontAwesomeDetection || {}, l.FontAwesomeDetection.nodesTested = e,
|
l.FontAwesomeDetection = l.FontAwesomeDetection || {}, l.FontAwesomeDetection.nodesTested = e,
|
||||||
l.FontAwesomeDetection.nodesFound = t, l.FontAwesomeDetection.detectionDone = !0;
|
l.FontAwesomeDetection.nodesFound = t, l.FontAwesomeDetection.detectionDone = !0;
|
||||||
@ -232,24 +237,19 @@ t = function() {
|
|||||||
var e = 0 < arguments.length && void 0 !== t ? t : function() {}, n = {
|
var e = 0 < arguments.length && void 0 !== t ? t : function() {}, n = {
|
||||||
conflict: {},
|
conflict: {},
|
||||||
noConflict: {}
|
noConflict: {}
|
||||||
};
|
}, t = (l.onmessage = function(t) {
|
||||||
l.onmessage = function(t) {
|
|
||||||
"file://" !== l.location.origin && t.origin !== l.location.origin || t && t.data && ("fontawesome-conflict" === t.data.type ? n.conflict[t.data.md5] = t.data : "no-conflict" === t.data.type && (n.noConflict[t.data.md5] = t.data));
|
"file://" !== l.location.origin && t.origin !== l.location.origin || t && t.data && ("fontawesome-conflict" === t.data.type ? n.conflict[t.data.md5] = t.data : "no-conflict" === t.data.type && (n.noConflict[t.data.md5] = t.data));
|
||||||
};
|
}, C(u.currentScript)), o = function() {
|
||||||
var o = F(u.currentScript), t = function() {
|
|
||||||
var t = Array.from(u.getElementsByTagName("link")).filter(function(t) {
|
var t = Array.from(u.getElementsByTagName("link")).filter(function(t) {
|
||||||
return !t.hasAttribute(T);
|
return !t.hasAttribute(x);
|
||||||
}), e = Array.from(u.getElementsByTagName("style")).filter(function(t) {
|
}), e = Array.from(u.getElementsByTagName("style")).filter(function(t) {
|
||||||
return !t.hasAttribute(T) && (!l.FontAwesomeConfig || !t.innerText.match(new RegExp("svg:not\\(:root\\)\\.".concat(l.FontAwesomeConfig.replacementClass))));
|
return !(t.hasAttribute(x) || l.FontAwesomeConfig && t.innerText.match(new RegExp("svg:not\\(:root\\)\\.".concat(l.FontAwesomeConfig.replacementClass))));
|
||||||
});
|
});
|
||||||
function n(t, e) {
|
function n(t, e) {
|
||||||
var n = u.createElement("iframe");
|
var n = u.createElement("iframe"), o = (n.setAttribute("style", "visibility: hidden; position: absolute; height: 0; width: 0;"),
|
||||||
n.setAttribute("style", "visibility: hidden; position: absolute; height: 0; width: 0;");
|
"fa-test-icon-" + e), r = u.createElement("i"), i = (r.setAttribute("class", "fa fa-coffee"),
|
||||||
var o = "fa-test-icon-" + e, r = u.createElement("i");
|
r.setAttribute("id", o), u.createElement("script")), a = (i.setAttribute("id", w),
|
||||||
r.setAttribute("class", "fa fa-coffee"), r.setAttribute("id", o);
|
"file://" === l.location.origin ? "*" : l.location.origin);
|
||||||
var i = u.createElement("script");
|
|
||||||
i.setAttribute("id", v);
|
|
||||||
var a = "file://" === l.location.origin ? "*" : l.location.origin;
|
|
||||||
i.innerText = "(".concat(function(n, e, o, r) {
|
i.innerText = "(".concat(function(n, e, o, r) {
|
||||||
parent.FontAwesomeDetection.__pollUntil({
|
parent.FontAwesomeDetection.__pollUntil({
|
||||||
fn: function() {
|
fn: function() {
|
||||||
@ -277,35 +277,34 @@ t = function() {
|
|||||||
md5: o
|
md5: o
|
||||||
}, r) : console.error(t);
|
}, r) : console.error(t);
|
||||||
});
|
});
|
||||||
}.toString(), ")('").concat(A, "', '").concat(o || "foo", "', '").concat(e, "', '").concat(a, "');"),
|
}.toString(), ")('").concat(v, "', '").concat(o || "foo", "', '").concat(e, "', '").concat(a, "');"),
|
||||||
n.onload = function() {
|
n.onload = function() {
|
||||||
n.contentWindow.addEventListener("error", E, !0), n.contentDocument.head.appendChild(i),
|
n.contentWindow.addEventListener("error", O, !0), n.contentDocument.head.appendChild(i),
|
||||||
n.contentDocument.head.appendChild(t), n.contentDocument.body.appendChild(r);
|
n.contentDocument.head.appendChild(t), n.contentDocument.body.appendChild(r);
|
||||||
}, h(function() {
|
}, p(function() {
|
||||||
return u.body.appendChild(n);
|
return u.body.appendChild(n);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
for (var o = {}, r = 0; r < t.length; r++) {
|
for (var o = {}, r = 0; r < t.length; r++) {
|
||||||
var i = u.createElement("link");
|
var i = u.createElement("link"), a = (i.setAttribute("id", v), i.setAttribute("href", t[r].href),
|
||||||
i.setAttribute("id", A), i.setAttribute("href", t[r].href), i.setAttribute("rel", t[r].rel);
|
i.setAttribute("rel", t[r].rel), b(t[r]));
|
||||||
var a = w(t[r]);
|
i.setAttribute(A, a), o[a] = t[r], n(i, a);
|
||||||
i.setAttribute(x, a), o[a] = t[r], n(i, a);
|
|
||||||
}
|
}
|
||||||
for (var c = 0; c < e.length; c++) {
|
for (var c = 0; c < e.length; c++) {
|
||||||
var f = u.createElement("style");
|
var f = u.createElement("style"), s = (f.setAttribute("id", v),
|
||||||
f.setAttribute("id", A);
|
b(e[c]));
|
||||||
var s = w(e[c]);
|
f.setAttribute(A, s), f.innerText = e[c].innerText, o[s] = e[c],
|
||||||
f.setAttribute(x, s), f.innerText = e[c].innerText, o[s] = e[c], n(f, s);
|
n(f, s);
|
||||||
}
|
}
|
||||||
return o;
|
return o;
|
||||||
}(), r = a(a({}, o), t), i = Object.keys(o).length + Object.keys(t).length, t = l.FontAwesomeDetection.timeout + l.FontAwesomeDetection.resultsCollectionMaxWait;
|
}(), r = a(a({}, t), o), i = Object.keys(t).length + Object.keys(o).length, t = l.FontAwesomeDetection.timeout + l.FontAwesomeDetection.resultsCollectionMaxWait;
|
||||||
console.group("Font Awesome Detector"), 0 === i ? (console.info("%cAll Good!", "color: green; font-size: large"),
|
console.group("Font Awesome Detector"), 0 === i ? (console.info("%cAll Good!", "color: green; font-size: large"),
|
||||||
console.info("We didn't find anything that needs testing for conflicts. Ergo, no conflicts.")) : (console.info("Testing ".concat(i, " possible conflicts.")),
|
console.info("We didn't find anything that needs testing for conflicts. Ergo, no conflicts.")) : (console.info("Testing ".concat(i, " possible conflicts.")),
|
||||||
console.info("We'll wait about ".concat(Math.round(l.FontAwesomeDetection.timeout / 10) / 100, " seconds while testing these and\n") + "then up to another ".concat(Math.round(l.FontAwesomeDetection.resultsCollectionMaxWait / 10) / 100, " to allow the browser time\n") + "to accumulate the results. But we'll probably be outta here way before then.\n\n"),
|
console.info("We'll wait about ".concat(Math.round(l.FontAwesomeDetection.timeout / 10) / 100, " seconds while testing these and\n") + "then up to another ".concat(Math.round(l.FontAwesomeDetection.resultsCollectionMaxWait / 10) / 100, " to allow the browser time\n") + "to accumulate the results. But we'll probably be outta here way before then.\n\n"),
|
||||||
console.info("You can adjust those durations by assigning values to these attributes on the <script> element that loads this detection:"),
|
console.info("You can adjust those durations by assigning values to these attributes on the <script> element that loads this detection:"),
|
||||||
console.info("\t%c".concat(O, "%c: milliseconds to wait for each test before deciding whether it's a conflict."), "font-weight: bold;", "font-size: normal;"),
|
console.info("\t%c".concat(T, "%c: milliseconds to wait for each test before deciding whether it's a conflict."), "font-weight: bold;", "font-size: normal;"),
|
||||||
console.info("\t%c".concat(D, "%c: milliseconds to wait for the browser to accumulate test results before giving up."), "font-weight: bold;", "font-size: normal;"),
|
console.info("\t%c".concat(E, "%c: milliseconds to wait for the browser to accumulate test results before giving up."), "font-weight: bold;", "font-size: normal;"),
|
||||||
C({
|
D({
|
||||||
maxDuration: t,
|
maxDuration: t,
|
||||||
showProgress: !0,
|
showProgress: !0,
|
||||||
progressIndicator: "waiting...",
|
progressIndicator: "waiting...",
|
||||||
@ -313,7 +312,7 @@ t = function() {
|
|||||||
return Object.keys(n.conflict).length + Object.keys(n.noConflict).length >= i;
|
return Object.keys(n.conflict).length + Object.keys(n.noConflict).length >= i;
|
||||||
}
|
}
|
||||||
}).then(function() {
|
}).then(function() {
|
||||||
console.info("DONE!"), k({
|
console.info("DONE!"), F({
|
||||||
nodesTested: n,
|
nodesTested: n,
|
||||||
nodesFound: r
|
nodesFound: r
|
||||||
}), e({
|
}), e({
|
||||||
@ -322,7 +321,7 @@ t = function() {
|
|||||||
}), console.groupEnd();
|
}), console.groupEnd();
|
||||||
}).catch(function(t) {
|
}).catch(function(t) {
|
||||||
"timeout" === t ? console.info("TIME OUT! We waited until we got tired. Here's what we found:") : (console.info("Whoops! We hit an error:", t),
|
"timeout" === t ? console.info("TIME OUT! We waited until we got tired. Here's what we found:") : (console.info("Whoops! We hit an error:", t),
|
||||||
console.info("Here's what we'd found up until that error:")), k({
|
console.info("Here's what we'd found up until that error:")), F({
|
||||||
nodesTested: n,
|
nodesTested: n,
|
||||||
nodesFound: r
|
nodesFound: r
|
||||||
}), e({
|
}), e({
|
||||||
@ -331,7 +330,7 @@ t = function() {
|
|||||||
}), console.groupEnd();
|
}), console.groupEnd();
|
||||||
}));
|
}));
|
||||||
}
|
}
|
||||||
var S = l.FontAwesomeDetection || {}, N = a(a(a({}, {
|
var n = l.FontAwesomeDetection || {}, f = a(a(a({}, {
|
||||||
report: function(t) {
|
report: function(t) {
|
||||||
var e, n = t.nodesTested, o = t.nodesFound, r = {};
|
var e, n = t.nodesTested, o = t.nodesFound, r = {};
|
||||||
for (e in o) n.conflict[e] || n.noConflict[e] || (r[e] = o[e]);
|
for (e in o) n.conflict[e] || n.noConflict[e] || (r[e] = o[e]);
|
||||||
@ -375,31 +374,29 @@ t = function() {
|
|||||||
console.table(d);
|
console.table(d);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
timeout: +(u.currentScript.getAttribute(O) || "2000"),
|
timeout: +(u.currentScript.getAttribute(T) || "2000"),
|
||||||
resultsCollectionMaxWait: +(u.currentScript.getAttribute(D) || "5000")
|
resultsCollectionMaxWait: +(u.currentScript.getAttribute(E) || "5000")
|
||||||
}), S), {}, {
|
}), n), {}, {
|
||||||
__pollUntil: C,
|
__pollUntil: D,
|
||||||
md5ForNode: w,
|
md5ForNode: b,
|
||||||
detectionDone: !1,
|
detectionDone: !1,
|
||||||
nodesTested: null,
|
nodesTested: null,
|
||||||
nodesFound: null
|
nodesFound: null
|
||||||
});
|
}), k = (l.FontAwesomeDetection = f, function() {
|
||||||
l.FontAwesomeDetection = N;
|
|
||||||
var P = function() {
|
|
||||||
try {
|
try {
|
||||||
return "production" === process.env.NODE_ENV;
|
return "production" === process.env.NODE_ENV;
|
||||||
} catch (t) {
|
} catch (t) {
|
||||||
return !1;
|
return !1;
|
||||||
}
|
}
|
||||||
}(), M = "classic", I = "sharp", W = [ M, I ];
|
}()), S = "classic", t = "sharp", n = [ S, t ];
|
||||||
function B(t) {
|
function N(t) {
|
||||||
return new Proxy(t, {
|
return new Proxy(t, {
|
||||||
get: function(t, e) {
|
get: function(t, e) {
|
||||||
return e in t ? t[e] : t[M];
|
return e in t ? t[e] : t[S];
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
B((r(L = {}, M, {
|
N((r(f = {}, S, {
|
||||||
fa: "solid",
|
fa: "solid",
|
||||||
fas: "solid",
|
fas: "solid",
|
||||||
"fa-solid": "solid",
|
"fa-solid": "solid",
|
||||||
@ -415,7 +412,7 @@ t = function() {
|
|||||||
"fa-brands": "brands",
|
"fa-brands": "brands",
|
||||||
fak: "kit",
|
fak: "kit",
|
||||||
"fa-kit": "kit"
|
"fa-kit": "kit"
|
||||||
}), r(L, I, {
|
}), r(f, t, {
|
||||||
fa: "solid",
|
fa: "solid",
|
||||||
fass: "solid",
|
fass: "solid",
|
||||||
"fa-solid": "solid",
|
"fa-solid": "solid",
|
||||||
@ -423,8 +420,8 @@ t = function() {
|
|||||||
"fa-regular": "regular",
|
"fa-regular": "regular",
|
||||||
fasl: "light",
|
fasl: "light",
|
||||||
"fa-light": "light"
|
"fa-light": "light"
|
||||||
}), L));
|
}), f));
|
||||||
var t = B((r(f = {}, M, {
|
var f = N((r(f = {}, S, {
|
||||||
solid: "fas",
|
solid: "fas",
|
||||||
regular: "far",
|
regular: "far",
|
||||||
light: "fal",
|
light: "fal",
|
||||||
@ -432,11 +429,11 @@ t = function() {
|
|||||||
duotone: "fad",
|
duotone: "fad",
|
||||||
brands: "fab",
|
brands: "fab",
|
||||||
kit: "fak"
|
kit: "fak"
|
||||||
}), r(f, I, {
|
}), r(f, t, {
|
||||||
solid: "fass",
|
solid: "fass",
|
||||||
regular: "fasr",
|
regular: "fasr",
|
||||||
light: "fasl"
|
light: "fasl"
|
||||||
}), f)), S = (B((r(n = {}, M, {
|
}), f)), P = (N((r(P = {}, S, {
|
||||||
fab: "fa-brands",
|
fab: "fa-brands",
|
||||||
fad: "fa-duotone",
|
fad: "fa-duotone",
|
||||||
fak: "fa-kit",
|
fak: "fa-kit",
|
||||||
@ -444,11 +441,11 @@ t = function() {
|
|||||||
far: "fa-regular",
|
far: "fa-regular",
|
||||||
fas: "fa-solid",
|
fas: "fa-solid",
|
||||||
fat: "fa-thin"
|
fat: "fa-thin"
|
||||||
}), r(n, I, {
|
}), r(P, t, {
|
||||||
fass: "fa-solid",
|
fass: "fa-solid",
|
||||||
fasr: "fa-regular",
|
fasr: "fa-regular",
|
||||||
fasl: "fa-light"
|
fasl: "fa-light"
|
||||||
}), n)), B((r(s = {}, M, {
|
}), P)), N((r(P = {}, S, {
|
||||||
"fa-brands": "fab",
|
"fa-brands": "fab",
|
||||||
"fa-duotone": "fad",
|
"fa-duotone": "fad",
|
||||||
"fa-kit": "fak",
|
"fa-kit": "fak",
|
||||||
@ -456,37 +453,34 @@ t = function() {
|
|||||||
"fa-regular": "far",
|
"fa-regular": "far",
|
||||||
"fa-solid": "fas",
|
"fa-solid": "fas",
|
||||||
"fa-thin": "fat"
|
"fa-thin": "fat"
|
||||||
}), r(s, I, {
|
}), r(P, t, {
|
||||||
"fa-solid": "fass",
|
"fa-solid": "fass",
|
||||||
"fa-regular": "fasr",
|
"fa-regular": "fasr",
|
||||||
"fa-light": "fasl"
|
"fa-light": "fasl"
|
||||||
}), s)), B((r(z = {}, M, {
|
}), P)), N((r(P = {}, S, {
|
||||||
900: "fas",
|
900: "fas",
|
||||||
400: "far",
|
400: "far",
|
||||||
normal: "far",
|
normal: "far",
|
||||||
300: "fal",
|
300: "fal",
|
||||||
100: "fat"
|
100: "fat"
|
||||||
}), r(z, I, {
|
}), r(P, t, {
|
||||||
900: "fass",
|
900: "fass",
|
||||||
400: "fasr",
|
400: "fasr",
|
||||||
300: "fasl"
|
300: "fasl"
|
||||||
}), z)), [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 ]), N = S.concat([ 11, 12, 13, 14, 15, 16, 17, 18, 19, 20 ]), L = "duotone-group", f = "swap-opacity", n = "primary", s = "secondary", z = new Set();
|
}), P)), [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 ]), M = P.concat([ 11, 12, 13, 14, 15, 16, 17, 18, 19, 20 ]), W = "duotone-group", B = "swap-opacity", L = "primary", z = "secondary", I = new Set();
|
||||||
Object.keys(t[M]).map(z.add.bind(z)), Object.keys(t[I]).map(z.add.bind(z));
|
Object.keys(f[S]).map(I.add.bind(I)), Object.keys(f[t]).map(I.add.bind(I)),
|
||||||
[].concat(W, function(t) {
|
[].concat(n, function(t) {
|
||||||
if (Array.isArray(t)) return i(t);
|
if (Array.isArray(t)) return i(t);
|
||||||
}(z = z) || function(t) {
|
}(f = I) || function(t) {
|
||||||
if ("undefined" != typeof Symbol && null != t[Symbol.iterator] || null != t["@@iterator"]) return Array.from(t);
|
if ("undefined" != typeof Symbol && null != t[Symbol.iterator] || null != t["@@iterator"]) return Array.from(t);
|
||||||
}(z) || function(t, e) {
|
}(f) || function(t, e) {
|
||||||
if (t) {
|
var n;
|
||||||
if ("string" == typeof t) return i(t, e);
|
if (t) return "string" == typeof t ? i(t, e) : "Map" === (n = "Object" === (n = Object.prototype.toString.call(t).slice(8, -1)) && t.constructor ? t.constructor.name : n) || "Set" === n ? Array.from(t) : "Arguments" === n || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? i(t, e) : void 0;
|
||||||
var n = Object.prototype.toString.call(t).slice(8, -1);
|
}(f) || function() {
|
||||||
return "Map" === (n = "Object" === n && t.constructor ? t.constructor.name : n) || "Set" === n ? Array.from(t) : "Arguments" === n || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? i(t, e) : void 0;
|
|
||||||
}
|
|
||||||
}(z) || function() {
|
|
||||||
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
||||||
}(), [ "2xs", "xs", "sm", "lg", "xl", "2xl", "beat", "border", "fade", "beat-fade", "bounce", "flip-both", "flip-horizontal", "flip-vertical", "flip", "fw", "inverse", "layers-counter", "layers-text", "layers", "li", "pull-left", "pull-right", "pulse", "rotate-180", "rotate-270", "rotate-90", "rotate-by", "shake", "spin-pulse", "spin-reverse", "spin", "stack-1x", "stack-2x", "stack", "ul", L, f, n, s ]).concat(S.map(function(t) {
|
}(), [ "2xs", "xs", "sm", "lg", "xl", "2xl", "beat", "border", "fade", "beat-fade", "bounce", "flip-both", "flip-horizontal", "flip-vertical", "flip", "fw", "inverse", "layers-counter", "layers-text", "layers", "li", "pull-left", "pull-right", "pulse", "rotate-180", "rotate-270", "rotate-90", "rotate-by", "shake", "spin-pulse", "spin-reverse", "spin", "stack-1x", "stack-2x", "stack", "ul", W, B, L, z ]).concat(P.map(function(t) {
|
||||||
return "".concat(t, "x");
|
return "".concat(t, "x");
|
||||||
})).concat(N.map(function(t) {
|
})).concat(M.map(function(t) {
|
||||||
return "w-".concat(t);
|
return "w-".concat(t);
|
||||||
}));
|
}));
|
||||||
!function(t) {
|
!function(t) {
|
||||||
@ -494,9 +488,9 @@ t = function() {
|
|||||||
for (var e = arguments.length, n = new Array(1 < e ? e - 1 : 0), o = 1; o < e; o++) n[o - 1] = arguments[o];
|
for (var e = arguments.length, n = new Array(1 < e ? e - 1 : 0), o = 1; o < e; o++) n[o - 1] = arguments[o];
|
||||||
t.apply(void 0, n);
|
t.apply(void 0, n);
|
||||||
} catch (t) {
|
} catch (t) {
|
||||||
if (!P) throw t;
|
if (!k) throw t;
|
||||||
}
|
}
|
||||||
}(function() {
|
}(function() {
|
||||||
d && m && j(window.FontAwesomeDetection.report);
|
s && d && j(window.FontAwesomeDetection.report);
|
||||||
});
|
});
|
||||||
}, ("object" != typeof exports || "undefined" == typeof module) && "function" == typeof define && define.amd ? define(t) : t();
|
}, ("object" != typeof exports || "undefined" == typeof module) && "function" == typeof define && define.amd ? define(t) : t();
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -8,48 +8,42 @@
|
|||||||
|
|
||||||
var _WINDOW = {};
|
var _WINDOW = {};
|
||||||
var _DOCUMENT = {};
|
var _DOCUMENT = {};
|
||||||
|
|
||||||
try {
|
try {
|
||||||
if (typeof window !== 'undefined') _WINDOW = window;
|
if (typeof window !== 'undefined') _WINDOW = window;
|
||||||
if (typeof document !== 'undefined') _DOCUMENT = document;
|
if (typeof document !== 'undefined') _DOCUMENT = document;
|
||||||
} catch (e) {}
|
} catch (e) {}
|
||||||
|
|
||||||
var _ref = _WINDOW.navigator || {},
|
var _ref = _WINDOW.navigator || {},
|
||||||
_ref$userAgent = _ref.userAgent,
|
_ref$userAgent = _ref.userAgent,
|
||||||
userAgent = _ref$userAgent === void 0 ? '' : _ref$userAgent;
|
userAgent = _ref$userAgent === void 0 ? '' : _ref$userAgent;
|
||||||
var WINDOW = _WINDOW;
|
var WINDOW = _WINDOW;
|
||||||
var DOCUMENT = _DOCUMENT;
|
var DOCUMENT = _DOCUMENT;
|
||||||
var IS_BROWSER = !!WINDOW.document;
|
var IS_BROWSER = !!WINDOW.document;
|
||||||
var IS_DOM = !!DOCUMENT.documentElement && !!DOCUMENT.head && typeof DOCUMENT.addEventListener === 'function' && typeof DOCUMENT.createElement === 'function';
|
var IS_DOM = !!DOCUMENT.documentElement && !!DOCUMENT.head && typeof DOCUMENT.addEventListener === 'function' && typeof DOCUMENT.createElement === 'function';
|
||||||
var IS_IE = ~userAgent.indexOf('MSIE') || ~userAgent.indexOf('Trident/');
|
var IS_IE = ~userAgent.indexOf('MSIE') || ~userAgent.indexOf('Trident/');
|
||||||
|
|
||||||
function ownKeys(object, enumerableOnly) {
|
function ownKeys(e, r) {
|
||||||
var keys = Object.keys(object);
|
var t = Object.keys(e);
|
||||||
|
|
||||||
if (Object.getOwnPropertySymbols) {
|
if (Object.getOwnPropertySymbols) {
|
||||||
var symbols = Object.getOwnPropertySymbols(object);
|
var o = Object.getOwnPropertySymbols(e);
|
||||||
enumerableOnly && (symbols = symbols.filter(function (sym) {
|
r && (o = o.filter(function (r) {
|
||||||
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
return Object.getOwnPropertyDescriptor(e, r).enumerable;
|
||||||
})), keys.push.apply(keys, symbols);
|
})), t.push.apply(t, o);
|
||||||
}
|
}
|
||||||
|
return t;
|
||||||
return keys;
|
|
||||||
}
|
}
|
||||||
|
function _objectSpread2(e) {
|
||||||
function _objectSpread2(target) {
|
for (var r = 1; r < arguments.length; r++) {
|
||||||
for (var i = 1; i < arguments.length; i++) {
|
var t = null != arguments[r] ? arguments[r] : {};
|
||||||
var source = null != arguments[i] ? arguments[i] : {};
|
r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {
|
||||||
i % 2 ? ownKeys(Object(source), !0).forEach(function (key) {
|
_defineProperty(e, r, t[r]);
|
||||||
_defineProperty(target, key, source[key]);
|
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {
|
||||||
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) {
|
Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));
|
||||||
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
return e;
|
||||||
return target;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function _defineProperty(obj, key, value) {
|
function _defineProperty(obj, key, value) {
|
||||||
|
key = _toPropertyKey(key);
|
||||||
if (key in obj) {
|
if (key in obj) {
|
||||||
Object.defineProperty(obj, key, {
|
Object.defineProperty(obj, key, {
|
||||||
value: value,
|
value: value,
|
||||||
@ -60,22 +54,17 @@
|
|||||||
} else {
|
} else {
|
||||||
obj[key] = value;
|
obj[key] = value;
|
||||||
}
|
}
|
||||||
|
|
||||||
return obj;
|
return obj;
|
||||||
}
|
}
|
||||||
|
|
||||||
function _toConsumableArray(arr) {
|
function _toConsumableArray(arr) {
|
||||||
return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
|
return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
|
||||||
}
|
}
|
||||||
|
|
||||||
function _arrayWithoutHoles(arr) {
|
function _arrayWithoutHoles(arr) {
|
||||||
if (Array.isArray(arr)) return _arrayLikeToArray(arr);
|
if (Array.isArray(arr)) return _arrayLikeToArray(arr);
|
||||||
}
|
}
|
||||||
|
|
||||||
function _iterableToArray(iter) {
|
function _iterableToArray(iter) {
|
||||||
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
||||||
}
|
}
|
||||||
|
|
||||||
function _unsupportedIterableToArray(o, minLen) {
|
function _unsupportedIterableToArray(o, minLen) {
|
||||||
if (!o) return;
|
if (!o) return;
|
||||||
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
|
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
|
||||||
@ -84,21 +73,30 @@
|
|||||||
if (n === "Map" || n === "Set") return Array.from(o);
|
if (n === "Map" || n === "Set") return Array.from(o);
|
||||||
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
||||||
}
|
}
|
||||||
|
|
||||||
function _arrayLikeToArray(arr, len) {
|
function _arrayLikeToArray(arr, len) {
|
||||||
if (len == null || len > arr.length) len = arr.length;
|
if (len == null || len > arr.length) len = arr.length;
|
||||||
|
|
||||||
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
||||||
|
|
||||||
return arr2;
|
return arr2;
|
||||||
}
|
}
|
||||||
|
|
||||||
function _nonIterableSpread() {
|
function _nonIterableSpread() {
|
||||||
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
||||||
}
|
}
|
||||||
|
function _toPrimitive(input, hint) {
|
||||||
|
if (typeof input !== "object" || input === null) return input;
|
||||||
|
var prim = input[Symbol.toPrimitive];
|
||||||
|
if (prim !== undefined) {
|
||||||
|
var res = prim.call(input, hint || "default");
|
||||||
|
if (typeof res !== "object") return res;
|
||||||
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
||||||
|
}
|
||||||
|
return (hint === "string" ? String : Number)(input);
|
||||||
|
}
|
||||||
|
function _toPropertyKey(arg) {
|
||||||
|
var key = _toPrimitive(arg, "string");
|
||||||
|
return typeof key === "symbol" ? key : String(key);
|
||||||
|
}
|
||||||
|
|
||||||
var _familyProxy, _familyProxy2, _familyProxy3, _familyProxy4, _familyProxy5;
|
var _familyProxy, _familyProxy2, _familyProxy3, _familyProxy4, _familyProxy5;
|
||||||
|
|
||||||
var NAMESPACE_IDENTIFIER = '___FONT_AWESOME___';
|
var NAMESPACE_IDENTIFIER = '___FONT_AWESOME___';
|
||||||
var PRODUCTION = function () {
|
var PRODUCTION = function () {
|
||||||
try {
|
try {
|
||||||
@ -110,7 +108,6 @@
|
|||||||
var FAMILY_CLASSIC = 'classic';
|
var FAMILY_CLASSIC = 'classic';
|
||||||
var FAMILY_SHARP = 'sharp';
|
var FAMILY_SHARP = 'sharp';
|
||||||
var FAMILIES = [FAMILY_CLASSIC, FAMILY_SHARP];
|
var FAMILIES = [FAMILY_CLASSIC, FAMILY_SHARP];
|
||||||
|
|
||||||
function familyProxy(obj) {
|
function familyProxy(obj) {
|
||||||
// Defaults to the classic family if family is not available
|
// Defaults to the classic family if family is not available
|
||||||
return new Proxy(obj, {
|
return new Proxy(obj, {
|
||||||
@ -216,7 +213,6 @@
|
|||||||
for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
||||||
args[_key - 1] = arguments[_key];
|
args[_key - 1] = arguments[_key];
|
||||||
}
|
}
|
||||||
|
|
||||||
fn.apply(void 0, args);
|
fn.apply(void 0, args);
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
if (!PRODUCTION) {
|
if (!PRODUCTION) {
|
||||||
@ -236,36 +232,31 @@
|
|||||||
return Object.keys(icons).reduce(function (acc, iconName) {
|
return Object.keys(icons).reduce(function (acc, iconName) {
|
||||||
var icon = icons[iconName];
|
var icon = icons[iconName];
|
||||||
var expanded = !!icon.icon;
|
var expanded = !!icon.icon;
|
||||||
|
|
||||||
if (expanded) {
|
if (expanded) {
|
||||||
acc[icon.iconName] = icon.icon;
|
acc[icon.iconName] = icon.icon;
|
||||||
} else {
|
} else {
|
||||||
acc[iconName] = icon;
|
acc[iconName] = icon;
|
||||||
}
|
}
|
||||||
|
|
||||||
return acc;
|
return acc;
|
||||||
}, {});
|
}, {});
|
||||||
}
|
}
|
||||||
|
|
||||||
function defineIcons(prefix, icons) {
|
function defineIcons(prefix, icons) {
|
||||||
var params = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
|
var params = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
|
||||||
var _params$skipHooks = params.skipHooks,
|
var _params$skipHooks = params.skipHooks,
|
||||||
skipHooks = _params$skipHooks === void 0 ? false : _params$skipHooks;
|
skipHooks = _params$skipHooks === void 0 ? false : _params$skipHooks;
|
||||||
var normalized = normalizeIcons(icons);
|
var normalized = normalizeIcons(icons);
|
||||||
|
|
||||||
if (typeof namespace.hooks.addPack === 'function' && !skipHooks) {
|
if (typeof namespace.hooks.addPack === 'function' && !skipHooks) {
|
||||||
namespace.hooks.addPack(prefix, normalizeIcons(icons));
|
namespace.hooks.addPack(prefix, normalizeIcons(icons));
|
||||||
} else {
|
} else {
|
||||||
namespace.styles[prefix] = _objectSpread2(_objectSpread2({}, namespace.styles[prefix] || {}), normalized);
|
namespace.styles[prefix] = _objectSpread2(_objectSpread2({}, namespace.styles[prefix] || {}), normalized);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Font Awesome 4 used the prefix of `fa` for all icons. With the introduction
|
* Font Awesome 4 used the prefix of `fa` for all icons. With the introduction
|
||||||
* of new styles we needed to differentiate between them. Prefix `fa` is now an alias
|
* of new styles we needed to differentiate between them. Prefix `fa` is now an alias
|
||||||
* for `fas` so we'll ease the upgrade process for our users by automatically defining
|
* for `fas` so we'll ease the upgrade process for our users by automatically defining
|
||||||
* this as well.
|
* this as well.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
if (prefix === 'fas') {
|
if (prefix === 'fas') {
|
||||||
defineIcons('fa', icons);
|
defineIcons('fa', icons);
|
||||||
}
|
}
|
@ -9,54 +9,65 @@
|
|||||||
try {
|
try {
|
||||||
"undefined" != typeof window && (c = window), "undefined" != typeof document && (s = document);
|
"undefined" != typeof window && (c = window), "undefined" != typeof document && (s = document);
|
||||||
} catch (c) {}
|
} catch (c) {}
|
||||||
var l = (c.navigator || {}).userAgent, z = void 0 === l ? "" : l, a = c, H = s;
|
var l = (c.navigator || {}).userAgent, l = void 0 === l ? "" : l;
|
||||||
a.document, H.documentElement && H.head && "function" == typeof H.addEventListener && H.createElement,
|
c.document, s.documentElement && s.head && "function" == typeof s.addEventListener && s.createElement,
|
||||||
~z.indexOf("MSIE") || z.indexOf("Trident/");
|
~l.indexOf("MSIE") || l.indexOf("Trident/");
|
||||||
function V(s, c) {
|
function z(s, c) {
|
||||||
var l, z = Object.keys(s);
|
var l, z = Object.keys(s);
|
||||||
return Object.getOwnPropertySymbols && (l = Object.getOwnPropertySymbols(s), c && (l = l.filter(function(c) {
|
return Object.getOwnPropertySymbols && (l = Object.getOwnPropertySymbols(s),
|
||||||
|
c && (l = l.filter(function(c) {
|
||||||
return Object.getOwnPropertyDescriptor(s, c).enumerable;
|
return Object.getOwnPropertyDescriptor(s, c).enumerable;
|
||||||
})), z.push.apply(z, l)), z;
|
})), z.push.apply(z, l)), z;
|
||||||
}
|
}
|
||||||
function e(s) {
|
function a(s) {
|
||||||
for (var c = 1; c < arguments.length; c++) {
|
for (var c = 1; c < arguments.length; c++) {
|
||||||
var l = null != arguments[c] ? arguments[c] : {};
|
var l = null != arguments[c] ? arguments[c] : {};
|
||||||
c % 2 ? V(Object(l), !0).forEach(function(c) {
|
c % 2 ? z(Object(l), !0).forEach(function(c) {
|
||||||
M(s, c, l[c]);
|
H(s, c, l[c]);
|
||||||
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(s, Object.getOwnPropertyDescriptors(l)) : V(Object(l)).forEach(function(c) {
|
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(s, Object.getOwnPropertyDescriptors(l)) : z(Object(l)).forEach(function(c) {
|
||||||
Object.defineProperty(s, c, Object.getOwnPropertyDescriptor(l, c));
|
Object.defineProperty(s, c, Object.getOwnPropertyDescriptor(l, c));
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
return s;
|
return s;
|
||||||
}
|
}
|
||||||
function M(c, s, l) {
|
function H(c, s, l) {
|
||||||
return s in c ? Object.defineProperty(c, s, {
|
(s = function(c) {
|
||||||
|
c = function(c, s) {
|
||||||
|
if ("object" != typeof c || null === c) return c;
|
||||||
|
var l = c[Symbol.toPrimitive];
|
||||||
|
if (void 0 === l) return ("string" === s ? String : Number)(c);
|
||||||
|
l = l.call(c, s || "default");
|
||||||
|
if ("object" != typeof l) return l;
|
||||||
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
||||||
|
}(c, "string");
|
||||||
|
return "symbol" == typeof c ? c : String(c);
|
||||||
|
}(s)) in c ? Object.defineProperty(c, s, {
|
||||||
value: l,
|
value: l,
|
||||||
enumerable: !0,
|
enumerable: !0,
|
||||||
configurable: !0,
|
configurable: !0,
|
||||||
writable: !0
|
writable: !0
|
||||||
}) : c[s] = l, c;
|
}) : c[s] = l;
|
||||||
}
|
}
|
||||||
function r(c, s) {
|
function e(c, s) {
|
||||||
(null == s || s > c.length) && (s = c.length);
|
(null == s || s > c.length) && (s = c.length);
|
||||||
for (var l = 0, z = new Array(s); l < s; l++) z[l] = c[l];
|
for (var l = 0, z = new Array(s); l < s; l++) z[l] = c[l];
|
||||||
return z;
|
return z;
|
||||||
}
|
}
|
||||||
var f = "___FONT_AWESOME___", t = function() {
|
var s = "___FONT_AWESOME___", V = function() {
|
||||||
try {
|
try {
|
||||||
return !1;
|
return !1;
|
||||||
} catch (c) {
|
} catch (c) {
|
||||||
return !1;
|
return !1;
|
||||||
}
|
}
|
||||||
}(), h = "classic", m = "sharp", n = [ h, m ];
|
}(), M = "classic", l = "sharp", r = [ M, l ];
|
||||||
function i(c) {
|
function f(c) {
|
||||||
return new Proxy(c, {
|
return new Proxy(c, {
|
||||||
get: function(c, s) {
|
get: function(c, s) {
|
||||||
return s in c ? c[s] : c[h];
|
return s in c ? c[s] : c[M];
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
i((M(C = {}, h, {
|
f((H(t = {}, M, {
|
||||||
fa: "solid",
|
fa: "solid",
|
||||||
fas: "solid",
|
fas: "solid",
|
||||||
"fa-solid": "solid",
|
"fa-solid": "solid",
|
||||||
@ -72,7 +83,7 @@
|
|||||||
"fa-brands": "brands",
|
"fa-brands": "brands",
|
||||||
fak: "kit",
|
fak: "kit",
|
||||||
"fa-kit": "kit"
|
"fa-kit": "kit"
|
||||||
}), M(C, m, {
|
}), H(t, l, {
|
||||||
fa: "solid",
|
fa: "solid",
|
||||||
fass: "solid",
|
fass: "solid",
|
||||||
"fa-solid": "solid",
|
"fa-solid": "solid",
|
||||||
@ -80,8 +91,8 @@
|
|||||||
"fa-regular": "regular",
|
"fa-regular": "regular",
|
||||||
fasl: "light",
|
fasl: "light",
|
||||||
"fa-light": "light"
|
"fa-light": "light"
|
||||||
}), C));
|
}), t));
|
||||||
var o = i((M(L = {}, h, {
|
var t = f((H(t = {}, M, {
|
||||||
solid: "fas",
|
solid: "fas",
|
||||||
regular: "far",
|
regular: "far",
|
||||||
light: "fal",
|
light: "fal",
|
||||||
@ -89,11 +100,11 @@
|
|||||||
duotone: "fad",
|
duotone: "fad",
|
||||||
brands: "fab",
|
brands: "fab",
|
||||||
kit: "fak"
|
kit: "fak"
|
||||||
}), M(L, m, {
|
}), H(t, l, {
|
||||||
solid: "fass",
|
solid: "fass",
|
||||||
regular: "fasr",
|
regular: "fasr",
|
||||||
light: "fasl"
|
light: "fasl"
|
||||||
}), L)), H = (i((M(l = {}, h, {
|
}), t)), h = (f((H(h = {}, M, {
|
||||||
fab: "fa-brands",
|
fab: "fa-brands",
|
||||||
fad: "fa-duotone",
|
fad: "fa-duotone",
|
||||||
fak: "fa-kit",
|
fak: "fa-kit",
|
||||||
@ -101,11 +112,11 @@
|
|||||||
far: "fa-regular",
|
far: "fa-regular",
|
||||||
fas: "fa-solid",
|
fas: "fa-solid",
|
||||||
fat: "fa-thin"
|
fat: "fa-thin"
|
||||||
}), M(l, m, {
|
}), H(h, l, {
|
||||||
fass: "fa-solid",
|
fass: "fa-solid",
|
||||||
fasr: "fa-regular",
|
fasr: "fa-regular",
|
||||||
fasl: "fa-light"
|
fasl: "fa-light"
|
||||||
}), l)), i((M(c = {}, h, {
|
}), h)), f((H(h = {}, M, {
|
||||||
"fa-brands": "fab",
|
"fa-brands": "fab",
|
||||||
"fa-duotone": "fad",
|
"fa-duotone": "fad",
|
||||||
"fa-kit": "fak",
|
"fa-kit": "fak",
|
||||||
@ -113,53 +124,48 @@
|
|||||||
"fa-regular": "far",
|
"fa-regular": "far",
|
||||||
"fa-solid": "fas",
|
"fa-solid": "fas",
|
||||||
"fa-thin": "fat"
|
"fa-thin": "fat"
|
||||||
}), M(c, m, {
|
}), H(h, l, {
|
||||||
"fa-solid": "fass",
|
"fa-solid": "fass",
|
||||||
"fa-regular": "fasr",
|
"fa-regular": "fasr",
|
||||||
"fa-light": "fasl"
|
"fa-light": "fasl"
|
||||||
}), c)), i((M(s = {}, h, {
|
}), h)), f((H(h = {}, M, {
|
||||||
900: "fas",
|
900: "fas",
|
||||||
400: "far",
|
400: "far",
|
||||||
normal: "far",
|
normal: "far",
|
||||||
300: "fal",
|
300: "fal",
|
||||||
100: "fat"
|
100: "fat"
|
||||||
}), M(s, m, {
|
}), H(h, l, {
|
||||||
900: "fass",
|
900: "fass",
|
||||||
400: "fasr",
|
400: "fasr",
|
||||||
300: "fasl"
|
300: "fasl"
|
||||||
}), s)), [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 ]), z = H.concat([ 11, 12, 13, 14, 15, 16, 17, 18, 19, 20 ]), C = "duotone-group", L = "swap-opacity", l = "primary", c = "secondary", s = new Set();
|
}), h)), [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 ]), m = h.concat([ 11, 12, 13, 14, 15, 16, 17, 18, 19, 20 ]), n = "duotone-group", i = "swap-opacity", o = "primary", C = "secondary", L = new Set();
|
||||||
Object.keys(o[h]).map(s.add.bind(s)), Object.keys(o[m]).map(s.add.bind(s));
|
Object.keys(t[M]).map(L.add.bind(L)), Object.keys(t[l]).map(L.add.bind(L)),
|
||||||
[].concat(n, function(c) {
|
[].concat(r, function(c) {
|
||||||
if (Array.isArray(c)) return r(c);
|
if (Array.isArray(c)) return e(c);
|
||||||
}(s = s) || function(c) {
|
}(t = L) || function(c) {
|
||||||
if ("undefined" != typeof Symbol && null != c[Symbol.iterator] || null != c["@@iterator"]) return Array.from(c);
|
if ("undefined" != typeof Symbol && null != c[Symbol.iterator] || null != c["@@iterator"]) return Array.from(c);
|
||||||
}(s) || function(c, s) {
|
}(t) || function(c, s) {
|
||||||
if (c) {
|
var l;
|
||||||
if ("string" == typeof c) return r(c, s);
|
if (c) return "string" == typeof c ? e(c, s) : "Map" === (l = "Object" === (l = Object.prototype.toString.call(c).slice(8, -1)) && c.constructor ? c.constructor.name : l) || "Set" === l ? Array.from(c) : "Arguments" === l || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(l) ? e(c, s) : void 0;
|
||||||
var l = Object.prototype.toString.call(c).slice(8, -1);
|
}(t) || function() {
|
||||||
return "Map" === (l = "Object" === l && c.constructor ? c.constructor.name : l) || "Set" === l ? Array.from(c) : "Arguments" === l || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(l) ? r(c, s) : void 0;
|
|
||||||
}
|
|
||||||
}(s) || function() {
|
|
||||||
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
||||||
}(), [ "2xs", "xs", "sm", "lg", "xl", "2xl", "beat", "border", "fade", "beat-fade", "bounce", "flip-both", "flip-horizontal", "flip-vertical", "flip", "fw", "inverse", "layers-counter", "layers-text", "layers", "li", "pull-left", "pull-right", "pulse", "rotate-180", "rotate-270", "rotate-90", "rotate-by", "shake", "spin-pulse", "spin-reverse", "spin", "stack-1x", "stack-2x", "stack", "ul", C, L, l, c ]).concat(H.map(function(c) {
|
}(), [ "2xs", "xs", "sm", "lg", "xl", "2xl", "beat", "border", "fade", "beat-fade", "bounce", "flip-both", "flip-horizontal", "flip-vertical", "flip", "fw", "inverse", "layers-counter", "layers-text", "layers", "li", "pull-left", "pull-right", "pulse", "rotate-180", "rotate-270", "rotate-90", "rotate-by", "shake", "spin-pulse", "spin-reverse", "spin", "stack-1x", "stack-2x", "stack", "ul", n, i, o, C ]).concat(h.map(function(c) {
|
||||||
return "".concat(c, "x");
|
return "".concat(c, "x");
|
||||||
})).concat(z.map(function(c) {
|
})).concat(m.map(function(c) {
|
||||||
return "w-".concat(c);
|
return "w-".concat(c);
|
||||||
}));
|
}));
|
||||||
a = a || {};
|
var l = c || {}, u = (l[s] || (l[s] = {}), l[s].styles || (l[s].styles = {}),
|
||||||
a[f] || (a[f] = {}), a[f].styles || (a[f].styles = {}), a[f].hooks || (a[f].hooks = {}),
|
l[s].hooks || (l[s].hooks = {}), l[s].shims || (l[s].shims = []), l[s]);
|
||||||
a[f].shims || (a[f].shims = []);
|
function d(z) {
|
||||||
var d = a[f];
|
|
||||||
function v(z) {
|
|
||||||
return Object.keys(z).reduce(function(c, s) {
|
return Object.keys(z).reduce(function(c, s) {
|
||||||
var l = z[s];
|
var l = z[s];
|
||||||
return !!l.icon ? c[l.iconName] = l.icon : c[s] = l, c;
|
return !!l.icon ? c[l.iconName] = l.icon : c[s] = l, c;
|
||||||
}, {});
|
}, {});
|
||||||
}
|
}
|
||||||
function u(c, s, l) {
|
function v(c, s, l) {
|
||||||
var z = (2 < arguments.length && void 0 !== l ? l : {}).skipHooks, l = void 0 !== z && z, z = v(s);
|
var l = (2 < arguments.length && void 0 !== l ? l : {}).skipHooks, l = void 0 !== l && l, z = d(s);
|
||||||
"function" != typeof d.hooks.addPack || l ? d.styles[c] = e(e({}, d.styles[c] || {}), z) : d.hooks.addPack(c, v(s)),
|
"function" != typeof u.hooks.addPack || l ? u.styles[c] = a(a({}, u.styles[c] || {}), z) : u.hooks.addPack(c, d(s)),
|
||||||
"fas" === c && u("fa", s);
|
"fas" === c && v("fa", s);
|
||||||
}
|
}
|
||||||
var g = {
|
var g = {
|
||||||
"trash-can": [ 448, 512, [ 61460, "trash-alt" ], "f2ed", "M170.5 51.6L151.5 80h145l-19-28.4c-1.5-2.2-4-3.6-6.7-3.6H177.1c-2.7 0-5.2 1.3-6.7 3.6zm147-26.6L354.2 80H368h48 8c13.3 0 24 10.7 24 24s-10.7 24-24 24h-8V432c0 44.2-35.8 80-80 80H112c-44.2 0-80-35.8-80-80V128H24c-13.3 0-24-10.7-24-24S10.7 80 24 80h8H80 93.8l36.7-55.1C140.9 9.4 158.4 0 177.1 0h93.7c18.7 0 36.2 9.4 46.6 24.9zM80 128V432c0 17.7 14.3 32 32 32H336c17.7 0 32-14.3 32-32V128H80zm80 64V400c0 8.8-7.2 16-16 16s-16-7.2-16-16V192c0-8.8 7.2-16 16-16s16 7.2 16 16zm80 0V400c0 8.8-7.2 16-16 16s-16-7.2-16-16V192c0-8.8 7.2-16 16-16s16 7.2 16 16zm80 0V400c0 8.8-7.2 16-16 16s-16-7.2-16-16V192c0-8.8 7.2-16 16-16s16 7.2 16 16z" ],
|
"trash-can": [ 448, 512, [ 61460, "trash-alt" ], "f2ed", "M170.5 51.6L151.5 80h145l-19-28.4c-1.5-2.2-4-3.6-6.7-3.6H177.1c-2.7 0-5.2 1.3-6.7 3.6zm147-26.6L354.2 80H368h48 8c13.3 0 24 10.7 24 24s-10.7 24-24 24h-8V432c0 44.2-35.8 80-80 80H112c-44.2 0-80-35.8-80-80V128H24c-13.3 0-24-10.7-24-24S10.7 80 24 80h8H80 93.8l36.7-55.1C140.9 9.4 158.4 0 177.1 0h93.7c18.7 0 36.2 9.4 46.6 24.9zM80 128V432c0 17.7 14.3 32 32 32H336c17.7 0 32-14.3 32-32V128H80zm80 64V400c0 8.8-7.2 16-16 16s-16-7.2-16-16V192c0-8.8 7.2-16 16-16s16 7.2 16 16zm80 0V400c0 8.8-7.2 16-16 16s-16-7.2-16-16V192c0-8.8 7.2-16 16-16s16 7.2 16 16zm80 0V400c0 8.8-7.2 16-16 16s-16-7.2-16-16V192c0-8.8 7.2-16 16-16s16 7.2 16 16z" ],
|
||||||
@ -331,9 +337,9 @@
|
|||||||
for (var s = arguments.length, l = new Array(1 < s ? s - 1 : 0), z = 1; z < s; z++) l[z - 1] = arguments[z];
|
for (var s = arguments.length, l = new Array(1 < s ? s - 1 : 0), z = 1; z < s; z++) l[z - 1] = arguments[z];
|
||||||
c.apply(void 0, l);
|
c.apply(void 0, l);
|
||||||
} catch (c) {
|
} catch (c) {
|
||||||
if (!t) throw c;
|
if (!V) throw c;
|
||||||
}
|
}
|
||||||
}(function() {
|
}(function() {
|
||||||
u("far", g), u("fa-regular", g);
|
v("far", g), v("fa-regular", g);
|
||||||
});
|
});
|
||||||
}();
|
}();
|
@ -8,48 +8,42 @@
|
|||||||
|
|
||||||
var _WINDOW = {};
|
var _WINDOW = {};
|
||||||
var _DOCUMENT = {};
|
var _DOCUMENT = {};
|
||||||
|
|
||||||
try {
|
try {
|
||||||
if (typeof window !== 'undefined') _WINDOW = window;
|
if (typeof window !== 'undefined') _WINDOW = window;
|
||||||
if (typeof document !== 'undefined') _DOCUMENT = document;
|
if (typeof document !== 'undefined') _DOCUMENT = document;
|
||||||
} catch (e) {}
|
} catch (e) {}
|
||||||
|
|
||||||
var _ref = _WINDOW.navigator || {},
|
var _ref = _WINDOW.navigator || {},
|
||||||
_ref$userAgent = _ref.userAgent,
|
_ref$userAgent = _ref.userAgent,
|
||||||
userAgent = _ref$userAgent === void 0 ? '' : _ref$userAgent;
|
userAgent = _ref$userAgent === void 0 ? '' : _ref$userAgent;
|
||||||
var WINDOW = _WINDOW;
|
var WINDOW = _WINDOW;
|
||||||
var DOCUMENT = _DOCUMENT;
|
var DOCUMENT = _DOCUMENT;
|
||||||
var IS_BROWSER = !!WINDOW.document;
|
var IS_BROWSER = !!WINDOW.document;
|
||||||
var IS_DOM = !!DOCUMENT.documentElement && !!DOCUMENT.head && typeof DOCUMENT.addEventListener === 'function' && typeof DOCUMENT.createElement === 'function';
|
var IS_DOM = !!DOCUMENT.documentElement && !!DOCUMENT.head && typeof DOCUMENT.addEventListener === 'function' && typeof DOCUMENT.createElement === 'function';
|
||||||
var IS_IE = ~userAgent.indexOf('MSIE') || ~userAgent.indexOf('Trident/');
|
var IS_IE = ~userAgent.indexOf('MSIE') || ~userAgent.indexOf('Trident/');
|
||||||
|
|
||||||
function ownKeys(object, enumerableOnly) {
|
function ownKeys(e, r) {
|
||||||
var keys = Object.keys(object);
|
var t = Object.keys(e);
|
||||||
|
|
||||||
if (Object.getOwnPropertySymbols) {
|
if (Object.getOwnPropertySymbols) {
|
||||||
var symbols = Object.getOwnPropertySymbols(object);
|
var o = Object.getOwnPropertySymbols(e);
|
||||||
enumerableOnly && (symbols = symbols.filter(function (sym) {
|
r && (o = o.filter(function (r) {
|
||||||
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
return Object.getOwnPropertyDescriptor(e, r).enumerable;
|
||||||
})), keys.push.apply(keys, symbols);
|
})), t.push.apply(t, o);
|
||||||
}
|
}
|
||||||
|
return t;
|
||||||
return keys;
|
|
||||||
}
|
}
|
||||||
|
function _objectSpread2(e) {
|
||||||
function _objectSpread2(target) {
|
for (var r = 1; r < arguments.length; r++) {
|
||||||
for (var i = 1; i < arguments.length; i++) {
|
var t = null != arguments[r] ? arguments[r] : {};
|
||||||
var source = null != arguments[i] ? arguments[i] : {};
|
r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {
|
||||||
i % 2 ? ownKeys(Object(source), !0).forEach(function (key) {
|
_defineProperty(e, r, t[r]);
|
||||||
_defineProperty(target, key, source[key]);
|
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {
|
||||||
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) {
|
Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));
|
||||||
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
return e;
|
||||||
return target;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function _defineProperty(obj, key, value) {
|
function _defineProperty(obj, key, value) {
|
||||||
|
key = _toPropertyKey(key);
|
||||||
if (key in obj) {
|
if (key in obj) {
|
||||||
Object.defineProperty(obj, key, {
|
Object.defineProperty(obj, key, {
|
||||||
value: value,
|
value: value,
|
||||||
@ -60,22 +54,17 @@
|
|||||||
} else {
|
} else {
|
||||||
obj[key] = value;
|
obj[key] = value;
|
||||||
}
|
}
|
||||||
|
|
||||||
return obj;
|
return obj;
|
||||||
}
|
}
|
||||||
|
|
||||||
function _toConsumableArray(arr) {
|
function _toConsumableArray(arr) {
|
||||||
return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
|
return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
|
||||||
}
|
}
|
||||||
|
|
||||||
function _arrayWithoutHoles(arr) {
|
function _arrayWithoutHoles(arr) {
|
||||||
if (Array.isArray(arr)) return _arrayLikeToArray(arr);
|
if (Array.isArray(arr)) return _arrayLikeToArray(arr);
|
||||||
}
|
}
|
||||||
|
|
||||||
function _iterableToArray(iter) {
|
function _iterableToArray(iter) {
|
||||||
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
||||||
}
|
}
|
||||||
|
|
||||||
function _unsupportedIterableToArray(o, minLen) {
|
function _unsupportedIterableToArray(o, minLen) {
|
||||||
if (!o) return;
|
if (!o) return;
|
||||||
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
|
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
|
||||||
@ -84,21 +73,30 @@
|
|||||||
if (n === "Map" || n === "Set") return Array.from(o);
|
if (n === "Map" || n === "Set") return Array.from(o);
|
||||||
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
||||||
}
|
}
|
||||||
|
|
||||||
function _arrayLikeToArray(arr, len) {
|
function _arrayLikeToArray(arr, len) {
|
||||||
if (len == null || len > arr.length) len = arr.length;
|
if (len == null || len > arr.length) len = arr.length;
|
||||||
|
|
||||||
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
||||||
|
|
||||||
return arr2;
|
return arr2;
|
||||||
}
|
}
|
||||||
|
|
||||||
function _nonIterableSpread() {
|
function _nonIterableSpread() {
|
||||||
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
||||||
}
|
}
|
||||||
|
function _toPrimitive(input, hint) {
|
||||||
|
if (typeof input !== "object" || input === null) return input;
|
||||||
|
var prim = input[Symbol.toPrimitive];
|
||||||
|
if (prim !== undefined) {
|
||||||
|
var res = prim.call(input, hint || "default");
|
||||||
|
if (typeof res !== "object") return res;
|
||||||
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
||||||
|
}
|
||||||
|
return (hint === "string" ? String : Number)(input);
|
||||||
|
}
|
||||||
|
function _toPropertyKey(arg) {
|
||||||
|
var key = _toPrimitive(arg, "string");
|
||||||
|
return typeof key === "symbol" ? key : String(key);
|
||||||
|
}
|
||||||
|
|
||||||
var _familyProxy, _familyProxy2, _familyProxy3, _familyProxy4, _familyProxy5;
|
var _familyProxy, _familyProxy2, _familyProxy3, _familyProxy4, _familyProxy5;
|
||||||
|
|
||||||
var NAMESPACE_IDENTIFIER = '___FONT_AWESOME___';
|
var NAMESPACE_IDENTIFIER = '___FONT_AWESOME___';
|
||||||
var PRODUCTION = function () {
|
var PRODUCTION = function () {
|
||||||
try {
|
try {
|
||||||
@ -110,7 +108,6 @@
|
|||||||
var FAMILY_CLASSIC = 'classic';
|
var FAMILY_CLASSIC = 'classic';
|
||||||
var FAMILY_SHARP = 'sharp';
|
var FAMILY_SHARP = 'sharp';
|
||||||
var FAMILIES = [FAMILY_CLASSIC, FAMILY_SHARP];
|
var FAMILIES = [FAMILY_CLASSIC, FAMILY_SHARP];
|
||||||
|
|
||||||
function familyProxy(obj) {
|
function familyProxy(obj) {
|
||||||
// Defaults to the classic family if family is not available
|
// Defaults to the classic family if family is not available
|
||||||
return new Proxy(obj, {
|
return new Proxy(obj, {
|
||||||
@ -216,7 +213,6 @@
|
|||||||
for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
||||||
args[_key - 1] = arguments[_key];
|
args[_key - 1] = arguments[_key];
|
||||||
}
|
}
|
||||||
|
|
||||||
fn.apply(void 0, args);
|
fn.apply(void 0, args);
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
if (!PRODUCTION) {
|
if (!PRODUCTION) {
|
||||||
@ -236,36 +232,31 @@
|
|||||||
return Object.keys(icons).reduce(function (acc, iconName) {
|
return Object.keys(icons).reduce(function (acc, iconName) {
|
||||||
var icon = icons[iconName];
|
var icon = icons[iconName];
|
||||||
var expanded = !!icon.icon;
|
var expanded = !!icon.icon;
|
||||||
|
|
||||||
if (expanded) {
|
if (expanded) {
|
||||||
acc[icon.iconName] = icon.icon;
|
acc[icon.iconName] = icon.icon;
|
||||||
} else {
|
} else {
|
||||||
acc[iconName] = icon;
|
acc[iconName] = icon;
|
||||||
}
|
}
|
||||||
|
|
||||||
return acc;
|
return acc;
|
||||||
}, {});
|
}, {});
|
||||||
}
|
}
|
||||||
|
|
||||||
function defineIcons(prefix, icons) {
|
function defineIcons(prefix, icons) {
|
||||||
var params = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
|
var params = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
|
||||||
var _params$skipHooks = params.skipHooks,
|
var _params$skipHooks = params.skipHooks,
|
||||||
skipHooks = _params$skipHooks === void 0 ? false : _params$skipHooks;
|
skipHooks = _params$skipHooks === void 0 ? false : _params$skipHooks;
|
||||||
var normalized = normalizeIcons(icons);
|
var normalized = normalizeIcons(icons);
|
||||||
|
|
||||||
if (typeof namespace.hooks.addPack === 'function' && !skipHooks) {
|
if (typeof namespace.hooks.addPack === 'function' && !skipHooks) {
|
||||||
namespace.hooks.addPack(prefix, normalizeIcons(icons));
|
namespace.hooks.addPack(prefix, normalizeIcons(icons));
|
||||||
} else {
|
} else {
|
||||||
namespace.styles[prefix] = _objectSpread2(_objectSpread2({}, namespace.styles[prefix] || {}), normalized);
|
namespace.styles[prefix] = _objectSpread2(_objectSpread2({}, namespace.styles[prefix] || {}), normalized);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Font Awesome 4 used the prefix of `fa` for all icons. With the introduction
|
* Font Awesome 4 used the prefix of `fa` for all icons. With the introduction
|
||||||
* of new styles we needed to differentiate between them. Prefix `fa` is now an alias
|
* of new styles we needed to differentiate between them. Prefix `fa` is now an alias
|
||||||
* for `fas` so we'll ease the upgrade process for our users by automatically defining
|
* for `fas` so we'll ease the upgrade process for our users by automatically defining
|
||||||
* this as well.
|
* this as well.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
if (prefix === 'fas') {
|
if (prefix === 'fas') {
|
||||||
defineIcons('fa', icons);
|
defineIcons('fa', icons);
|
||||||
}
|
}
|
@ -9,54 +9,65 @@
|
|||||||
try {
|
try {
|
||||||
"undefined" != typeof window && (c = window), "undefined" != typeof document && (s = document);
|
"undefined" != typeof window && (c = window), "undefined" != typeof document && (s = document);
|
||||||
} catch (c) {}
|
} catch (c) {}
|
||||||
var l = (c.navigator || {}).userAgent, z = void 0 === l ? "" : l, H = c, V = s;
|
var l = (c.navigator || {}).userAgent, l = void 0 === l ? "" : l;
|
||||||
H.document, V.documentElement && V.head && "function" == typeof V.addEventListener && V.createElement,
|
c.document, s.documentElement && s.head && "function" == typeof s.addEventListener && s.createElement,
|
||||||
~z.indexOf("MSIE") || z.indexOf("Trident/");
|
~l.indexOf("MSIE") || l.indexOf("Trident/");
|
||||||
function M(s, c) {
|
function z(s, c) {
|
||||||
var l, z = Object.keys(s);
|
var l, z = Object.keys(s);
|
||||||
return Object.getOwnPropertySymbols && (l = Object.getOwnPropertySymbols(s), c && (l = l.filter(function(c) {
|
return Object.getOwnPropertySymbols && (l = Object.getOwnPropertySymbols(s),
|
||||||
|
c && (l = l.filter(function(c) {
|
||||||
return Object.getOwnPropertyDescriptor(s, c).enumerable;
|
return Object.getOwnPropertyDescriptor(s, c).enumerable;
|
||||||
})), z.push.apply(z, l)), z;
|
})), z.push.apply(z, l)), z;
|
||||||
}
|
}
|
||||||
function a(s) {
|
function H(s) {
|
||||||
for (var c = 1; c < arguments.length; c++) {
|
for (var c = 1; c < arguments.length; c++) {
|
||||||
var l = null != arguments[c] ? arguments[c] : {};
|
var l = null != arguments[c] ? arguments[c] : {};
|
||||||
c % 2 ? M(Object(l), !0).forEach(function(c) {
|
c % 2 ? z(Object(l), !0).forEach(function(c) {
|
||||||
e(s, c, l[c]);
|
V(s, c, l[c]);
|
||||||
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(s, Object.getOwnPropertyDescriptors(l)) : M(Object(l)).forEach(function(c) {
|
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(s, Object.getOwnPropertyDescriptors(l)) : z(Object(l)).forEach(function(c) {
|
||||||
Object.defineProperty(s, c, Object.getOwnPropertyDescriptor(l, c));
|
Object.defineProperty(s, c, Object.getOwnPropertyDescriptor(l, c));
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
return s;
|
return s;
|
||||||
}
|
}
|
||||||
function e(c, s, l) {
|
function V(c, s, l) {
|
||||||
return s in c ? Object.defineProperty(c, s, {
|
(s = function(c) {
|
||||||
|
c = function(c, s) {
|
||||||
|
if ("object" != typeof c || null === c) return c;
|
||||||
|
var l = c[Symbol.toPrimitive];
|
||||||
|
if (void 0 === l) return ("string" === s ? String : Number)(c);
|
||||||
|
l = l.call(c, s || "default");
|
||||||
|
if ("object" != typeof l) return l;
|
||||||
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
||||||
|
}(c, "string");
|
||||||
|
return "symbol" == typeof c ? c : String(c);
|
||||||
|
}(s)) in c ? Object.defineProperty(c, s, {
|
||||||
value: l,
|
value: l,
|
||||||
enumerable: !0,
|
enumerable: !0,
|
||||||
configurable: !0,
|
configurable: !0,
|
||||||
writable: !0
|
writable: !0
|
||||||
}) : c[s] = l, c;
|
}) : c[s] = l;
|
||||||
}
|
}
|
||||||
function L(c, s) {
|
function M(c, s) {
|
||||||
(null == s || s > c.length) && (s = c.length);
|
(null == s || s > c.length) && (s = c.length);
|
||||||
for (var l = 0, z = new Array(s); l < s; l++) z[l] = c[l];
|
for (var l = 0, z = new Array(s); l < s; l++) z[l] = c[l];
|
||||||
return z;
|
return z;
|
||||||
}
|
}
|
||||||
var h = "___FONT_AWESOME___", C = function() {
|
var s = "___FONT_AWESOME___", a = function() {
|
||||||
try {
|
try {
|
||||||
return !1;
|
return !1;
|
||||||
} catch (c) {
|
} catch (c) {
|
||||||
return !1;
|
return !1;
|
||||||
}
|
}
|
||||||
}(), r = "classic", m = "sharp", v = [ r, m ];
|
}(), e = "classic", l = "sharp", L = [ e, l ];
|
||||||
function f(c) {
|
function h(c) {
|
||||||
return new Proxy(c, {
|
return new Proxy(c, {
|
||||||
get: function(c, s) {
|
get: function(c, s) {
|
||||||
return s in c ? c[s] : c[r];
|
return s in c ? c[s] : c[e];
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
f((e(o = {}, r, {
|
h((V(C = {}, e, {
|
||||||
fa: "solid",
|
fa: "solid",
|
||||||
fas: "solid",
|
fas: "solid",
|
||||||
"fa-solid": "solid",
|
"fa-solid": "solid",
|
||||||
@ -72,7 +83,7 @@
|
|||||||
"fa-brands": "brands",
|
"fa-brands": "brands",
|
||||||
fak: "kit",
|
fak: "kit",
|
||||||
"fa-kit": "kit"
|
"fa-kit": "kit"
|
||||||
}), e(o, m, {
|
}), V(C, l, {
|
||||||
fa: "solid",
|
fa: "solid",
|
||||||
fass: "solid",
|
fass: "solid",
|
||||||
"fa-solid": "solid",
|
"fa-solid": "solid",
|
||||||
@ -80,8 +91,8 @@
|
|||||||
"fa-regular": "regular",
|
"fa-regular": "regular",
|
||||||
fasl: "light",
|
fasl: "light",
|
||||||
"fa-light": "light"
|
"fa-light": "light"
|
||||||
}), o));
|
}), C));
|
||||||
var t = f((e(i = {}, r, {
|
var C = h((V(C = {}, e, {
|
||||||
solid: "fas",
|
solid: "fas",
|
||||||
regular: "far",
|
regular: "far",
|
||||||
light: "fal",
|
light: "fal",
|
||||||
@ -89,11 +100,11 @@
|
|||||||
duotone: "fad",
|
duotone: "fad",
|
||||||
brands: "fab",
|
brands: "fab",
|
||||||
kit: "fak"
|
kit: "fak"
|
||||||
}), e(i, m, {
|
}), V(C, l, {
|
||||||
solid: "fass",
|
solid: "fass",
|
||||||
regular: "fasr",
|
regular: "fasr",
|
||||||
light: "fasl"
|
light: "fasl"
|
||||||
}), i)), V = (f((e(l = {}, r, {
|
}), C)), r = (h((V(r = {}, e, {
|
||||||
fab: "fa-brands",
|
fab: "fa-brands",
|
||||||
fad: "fa-duotone",
|
fad: "fa-duotone",
|
||||||
fak: "fa-kit",
|
fak: "fa-kit",
|
||||||
@ -101,11 +112,11 @@
|
|||||||
far: "fa-regular",
|
far: "fa-regular",
|
||||||
fas: "fa-solid",
|
fas: "fa-solid",
|
||||||
fat: "fa-thin"
|
fat: "fa-thin"
|
||||||
}), e(l, m, {
|
}), V(r, l, {
|
||||||
fass: "fa-solid",
|
fass: "fa-solid",
|
||||||
fasr: "fa-regular",
|
fasr: "fa-regular",
|
||||||
fasl: "fa-light"
|
fasl: "fa-light"
|
||||||
}), l)), f((e(c = {}, r, {
|
}), r)), h((V(r = {}, e, {
|
||||||
"fa-brands": "fab",
|
"fa-brands": "fab",
|
||||||
"fa-duotone": "fad",
|
"fa-duotone": "fad",
|
||||||
"fa-kit": "fak",
|
"fa-kit": "fak",
|
||||||
@ -113,43 +124,38 @@
|
|||||||
"fa-regular": "far",
|
"fa-regular": "far",
|
||||||
"fa-solid": "fas",
|
"fa-solid": "fas",
|
||||||
"fa-thin": "fat"
|
"fa-thin": "fat"
|
||||||
}), e(c, m, {
|
}), V(r, l, {
|
||||||
"fa-solid": "fass",
|
"fa-solid": "fass",
|
||||||
"fa-regular": "fasr",
|
"fa-regular": "fasr",
|
||||||
"fa-light": "fasl"
|
"fa-light": "fasl"
|
||||||
}), c)), f((e(s = {}, r, {
|
}), r)), h((V(r = {}, e, {
|
||||||
900: "fas",
|
900: "fas",
|
||||||
400: "far",
|
400: "far",
|
||||||
normal: "far",
|
normal: "far",
|
||||||
300: "fal",
|
300: "fal",
|
||||||
100: "fat"
|
100: "fat"
|
||||||
}), e(s, m, {
|
}), V(r, l, {
|
||||||
900: "fass",
|
900: "fass",
|
||||||
400: "fasr",
|
400: "fasr",
|
||||||
300: "fasl"
|
300: "fasl"
|
||||||
}), s)), [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 ]), z = V.concat([ 11, 12, 13, 14, 15, 16, 17, 18, 19, 20 ]), o = "duotone-group", i = "swap-opacity", l = "primary", c = "secondary", s = new Set();
|
}), r)), [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 ]), m = r.concat([ 11, 12, 13, 14, 15, 16, 17, 18, 19, 20 ]), v = "duotone-group", f = "swap-opacity", t = "primary", o = "secondary", i = new Set();
|
||||||
Object.keys(t[r]).map(s.add.bind(s)), Object.keys(t[m]).map(s.add.bind(s));
|
Object.keys(C[e]).map(i.add.bind(i)), Object.keys(C[l]).map(i.add.bind(i)),
|
||||||
[].concat(v, function(c) {
|
[].concat(L, function(c) {
|
||||||
if (Array.isArray(c)) return L(c);
|
if (Array.isArray(c)) return M(c);
|
||||||
}(s = s) || function(c) {
|
}(C = i) || function(c) {
|
||||||
if ("undefined" != typeof Symbol && null != c[Symbol.iterator] || null != c["@@iterator"]) return Array.from(c);
|
if ("undefined" != typeof Symbol && null != c[Symbol.iterator] || null != c["@@iterator"]) return Array.from(c);
|
||||||
}(s) || function(c, s) {
|
}(C) || function(c, s) {
|
||||||
if (c) {
|
var l;
|
||||||
if ("string" == typeof c) return L(c, s);
|
if (c) return "string" == typeof c ? M(c, s) : "Map" === (l = "Object" === (l = Object.prototype.toString.call(c).slice(8, -1)) && c.constructor ? c.constructor.name : l) || "Set" === l ? Array.from(c) : "Arguments" === l || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(l) ? M(c, s) : void 0;
|
||||||
var l = Object.prototype.toString.call(c).slice(8, -1);
|
}(C) || function() {
|
||||||
return "Map" === (l = "Object" === l && c.constructor ? c.constructor.name : l) || "Set" === l ? Array.from(c) : "Arguments" === l || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(l) ? L(c, s) : void 0;
|
|
||||||
}
|
|
||||||
}(s) || function() {
|
|
||||||
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
||||||
}(), [ "2xs", "xs", "sm", "lg", "xl", "2xl", "beat", "border", "fade", "beat-fade", "bounce", "flip-both", "flip-horizontal", "flip-vertical", "flip", "fw", "inverse", "layers-counter", "layers-text", "layers", "li", "pull-left", "pull-right", "pulse", "rotate-180", "rotate-270", "rotate-90", "rotate-by", "shake", "spin-pulse", "spin-reverse", "spin", "stack-1x", "stack-2x", "stack", "ul", o, i, l, c ]).concat(V.map(function(c) {
|
}(), [ "2xs", "xs", "sm", "lg", "xl", "2xl", "beat", "border", "fade", "beat-fade", "bounce", "flip-both", "flip-horizontal", "flip-vertical", "flip", "fw", "inverse", "layers-counter", "layers-text", "layers", "li", "pull-left", "pull-right", "pulse", "rotate-180", "rotate-270", "rotate-90", "rotate-by", "shake", "spin-pulse", "spin-reverse", "spin", "stack-1x", "stack-2x", "stack", "ul", v, f, t, o ]).concat(r.map(function(c) {
|
||||||
return "".concat(c, "x");
|
return "".concat(c, "x");
|
||||||
})).concat(z.map(function(c) {
|
})).concat(m.map(function(c) {
|
||||||
return "w-".concat(c);
|
return "w-".concat(c);
|
||||||
}));
|
}));
|
||||||
H = H || {};
|
var l = c || {}, n = (l[s] || (l[s] = {}), l[s].styles || (l[s].styles = {}),
|
||||||
H[h] || (H[h] = {}), H[h].styles || (H[h].styles = {}), H[h].hooks || (H[h].hooks = {}),
|
l[s].hooks || (l[s].hooks = {}), l[s].shims || (l[s].shims = []), l[s]);
|
||||||
H[h].shims || (H[h].shims = []);
|
|
||||||
var n = H[h];
|
|
||||||
function d(z) {
|
function d(z) {
|
||||||
return Object.keys(z).reduce(function(c, s) {
|
return Object.keys(z).reduce(function(c, s) {
|
||||||
var l = z[s];
|
var l = z[s];
|
||||||
@ -157,8 +163,8 @@
|
|||||||
}, {});
|
}, {});
|
||||||
}
|
}
|
||||||
function u(c, s, l) {
|
function u(c, s, l) {
|
||||||
var z = (2 < arguments.length && void 0 !== l ? l : {}).skipHooks, l = void 0 !== z && z, z = d(s);
|
var l = (2 < arguments.length && void 0 !== l ? l : {}).skipHooks, l = void 0 !== l && l, z = d(s);
|
||||||
"function" != typeof n.hooks.addPack || l ? n.styles[c] = a(a({}, n.styles[c] || {}), z) : n.hooks.addPack(c, d(s)),
|
"function" != typeof n.hooks.addPack || l ? n.styles[c] = H(H({}, n.styles[c] || {}), z) : n.hooks.addPack(c, d(s)),
|
||||||
"fas" === c && u("fa", s);
|
"fas" === c && u("fa", s);
|
||||||
}
|
}
|
||||||
var p = {
|
var p = {
|
||||||
@ -1558,7 +1564,7 @@
|
|||||||
for (var s = arguments.length, l = new Array(1 < s ? s - 1 : 0), z = 1; z < s; z++) l[z - 1] = arguments[z];
|
for (var s = arguments.length, l = new Array(1 < s ? s - 1 : 0), z = 1; z < s; z++) l[z - 1] = arguments[z];
|
||||||
c.apply(void 0, l);
|
c.apply(void 0, l);
|
||||||
} catch (c) {
|
} catch (c) {
|
||||||
if (!C) throw c;
|
if (!a) throw c;
|
||||||
}
|
}
|
||||||
}(function() {
|
}(function() {
|
||||||
u("fas", p), u("fa-solid", p);
|
u("fas", p), u("fa-solid", p);
|
@ -11,15 +11,13 @@
|
|||||||
|
|
||||||
var _WINDOW = {};
|
var _WINDOW = {};
|
||||||
var _DOCUMENT = {};
|
var _DOCUMENT = {};
|
||||||
|
|
||||||
try {
|
try {
|
||||||
if (typeof window !== 'undefined') _WINDOW = window;
|
if (typeof window !== 'undefined') _WINDOW = window;
|
||||||
if (typeof document !== 'undefined') _DOCUMENT = document;
|
if (typeof document !== 'undefined') _DOCUMENT = document;
|
||||||
} catch (e) {}
|
} catch (e) {}
|
||||||
|
|
||||||
var _ref = _WINDOW.navigator || {},
|
var _ref = _WINDOW.navigator || {},
|
||||||
_ref$userAgent = _ref.userAgent,
|
_ref$userAgent = _ref.userAgent,
|
||||||
userAgent = _ref$userAgent === void 0 ? '' : _ref$userAgent;
|
userAgent = _ref$userAgent === void 0 ? '' : _ref$userAgent;
|
||||||
var WINDOW = _WINDOW;
|
var WINDOW = _WINDOW;
|
||||||
var DOCUMENT = _DOCUMENT;
|
var DOCUMENT = _DOCUMENT;
|
||||||
var IS_BROWSER = !!WINDOW.document;
|
var IS_BROWSER = !!WINDOW.document;
|
||||||
@ -27,6 +25,7 @@
|
|||||||
var IS_IE = ~userAgent.indexOf('MSIE') || ~userAgent.indexOf('Trident/');
|
var IS_IE = ~userAgent.indexOf('MSIE') || ~userAgent.indexOf('Trident/');
|
||||||
|
|
||||||
function _defineProperty(obj, key, value) {
|
function _defineProperty(obj, key, value) {
|
||||||
|
key = _toPropertyKey(key);
|
||||||
if (key in obj) {
|
if (key in obj) {
|
||||||
Object.defineProperty(obj, key, {
|
Object.defineProperty(obj, key, {
|
||||||
value: value,
|
value: value,
|
||||||
@ -37,22 +36,17 @@
|
|||||||
} else {
|
} else {
|
||||||
obj[key] = value;
|
obj[key] = value;
|
||||||
}
|
}
|
||||||
|
|
||||||
return obj;
|
return obj;
|
||||||
}
|
}
|
||||||
|
|
||||||
function _toConsumableArray(arr) {
|
function _toConsumableArray(arr) {
|
||||||
return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
|
return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
|
||||||
}
|
}
|
||||||
|
|
||||||
function _arrayWithoutHoles(arr) {
|
function _arrayWithoutHoles(arr) {
|
||||||
if (Array.isArray(arr)) return _arrayLikeToArray(arr);
|
if (Array.isArray(arr)) return _arrayLikeToArray(arr);
|
||||||
}
|
}
|
||||||
|
|
||||||
function _iterableToArray(iter) {
|
function _iterableToArray(iter) {
|
||||||
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
||||||
}
|
}
|
||||||
|
|
||||||
function _unsupportedIterableToArray(o, minLen) {
|
function _unsupportedIterableToArray(o, minLen) {
|
||||||
if (!o) return;
|
if (!o) return;
|
||||||
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
|
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
|
||||||
@ -61,21 +55,30 @@
|
|||||||
if (n === "Map" || n === "Set") return Array.from(o);
|
if (n === "Map" || n === "Set") return Array.from(o);
|
||||||
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
||||||
}
|
}
|
||||||
|
|
||||||
function _arrayLikeToArray(arr, len) {
|
function _arrayLikeToArray(arr, len) {
|
||||||
if (len == null || len > arr.length) len = arr.length;
|
if (len == null || len > arr.length) len = arr.length;
|
||||||
|
|
||||||
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
||||||
|
|
||||||
return arr2;
|
return arr2;
|
||||||
}
|
}
|
||||||
|
|
||||||
function _nonIterableSpread() {
|
function _nonIterableSpread() {
|
||||||
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
||||||
}
|
}
|
||||||
|
function _toPrimitive(input, hint) {
|
||||||
|
if (typeof input !== "object" || input === null) return input;
|
||||||
|
var prim = input[Symbol.toPrimitive];
|
||||||
|
if (prim !== undefined) {
|
||||||
|
var res = prim.call(input, hint || "default");
|
||||||
|
if (typeof res !== "object") return res;
|
||||||
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
||||||
|
}
|
||||||
|
return (hint === "string" ? String : Number)(input);
|
||||||
|
}
|
||||||
|
function _toPropertyKey(arg) {
|
||||||
|
var key = _toPrimitive(arg, "string");
|
||||||
|
return typeof key === "symbol" ? key : String(key);
|
||||||
|
}
|
||||||
|
|
||||||
var _familyProxy, _familyProxy2, _familyProxy3, _familyProxy4, _familyProxy5;
|
var _familyProxy, _familyProxy2, _familyProxy3, _familyProxy4, _familyProxy5;
|
||||||
|
|
||||||
var NAMESPACE_IDENTIFIER = '___FONT_AWESOME___';
|
var NAMESPACE_IDENTIFIER = '___FONT_AWESOME___';
|
||||||
var PRODUCTION = function () {
|
var PRODUCTION = function () {
|
||||||
try {
|
try {
|
||||||
@ -87,7 +90,6 @@
|
|||||||
var FAMILY_CLASSIC = 'classic';
|
var FAMILY_CLASSIC = 'classic';
|
||||||
var FAMILY_SHARP = 'sharp';
|
var FAMILY_SHARP = 'sharp';
|
||||||
var FAMILIES = [FAMILY_CLASSIC, FAMILY_SHARP];
|
var FAMILIES = [FAMILY_CLASSIC, FAMILY_SHARP];
|
||||||
|
|
||||||
function familyProxy(obj) {
|
function familyProxy(obj) {
|
||||||
// Defaults to the classic family if family is not available
|
// Defaults to the classic family if family is not available
|
||||||
return new Proxy(obj, {
|
return new Proxy(obj, {
|
||||||
@ -193,7 +195,6 @@
|
|||||||
for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
||||||
args[_key - 1] = arguments[_key];
|
args[_key - 1] = arguments[_key];
|
||||||
}
|
}
|
||||||
|
|
||||||
fn.apply(void 0, args);
|
fn.apply(void 0, args);
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
if (!PRODUCTION) {
|
if (!PRODUCTION) {
|
||||||
@ -215,7 +216,6 @@
|
|||||||
namespace.hooks.addShims(shims);
|
namespace.hooks.addShims(shims);
|
||||||
} else {
|
} else {
|
||||||
var _namespace$shims;
|
var _namespace$shims;
|
||||||
|
|
||||||
(_namespace$shims = namespace.shims).push.apply(_namespace$shims, shims);
|
(_namespace$shims = namespace.shims).push.apply(_namespace$shims, shims);
|
||||||
}
|
}
|
||||||
});
|
});
|
154
free/js-packages/@fortawesome/fontawesome-free/js/v4-shims.min.js
vendored
Normal file
154
free/js-packages/@fortawesome/fontawesome-free/js/v4-shims.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user