Debian Codegraph @

js-packages/@fortawesome/fontawesome-svg-core/plugins.mjs

raw symbols SCIP
1 function _arrayLikeToArray(r, a) {
2 (null == a || a > r.length) && (a = r.length);
3 for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
4 return n;
5 }
6 function _arrayWithHoles(r) {
7 if (Array.isArray(r)) return r;
8 }
9 function _arrayWithoutHoles(r) {
10 if (Array.isArray(r)) return _arrayLikeToArray(r);
11 }
12 function _classCallCheck(a, n) {
13 if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function");
14 }
15 function _defineProperties(e, r) {
16 for (var t = 0; t < r.length; t++) {
17 var o = r[t];
18 o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o);
19 }
20 }
21 function _createClass(e, r, t) {
22 return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", {
23 writable: !1
24 }), e;
25 }
26 function _createForOfIteratorHelper(r, e) {
27 var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
28 if (!t) {
29 if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) {
30 t && (r = t);
31 var n = 0,
32 F = function () {};
33 return {
34 s: F,
35 n: function () {
36 return n >= r.length ? {
37 done: !0
38 } : {
39 done: !1,
40 value: r[n++]
41 };
42 },
43 e: function (r) {
44 throw r;
45 },
46 f: F
47 };
48 }
49 throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
50 }
51 var o,
52 a = !0,
53 u = !1;
54 return {
55 s: function () {
56 t = t.call(r);
57 },
58 n: function () {
59 var r = t.next();
60 return a = r.done, r;
61 },
62 e: function (r) {
63 u = !0, o = r;
64 },
65 f: function () {
66 try {
67 a || null == t.return || t.return();
68 } finally {
69 if (u) throw o;
70 }
71 }
72 };
73 }
74 function _defineProperty(e, r, t) {
75 return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
76 value: t,
77 enumerable: !0,
78 configurable: !0,
79 writable: !0
80 }) : e[r] = t, e;
81 }
82 function _inherits(t, e) {
83 if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function");
84 t.prototype = Object.create(e && e.prototype, {
85 constructor: {
86 value: t,
87 writable: !0,
88 configurable: !0
89 }
90 }), Object.defineProperty(t, "prototype", {
91 writable: !1
92 }), e && _setPrototypeOf(t, e);
93 }
94 function _iterableToArray(r) {
95 if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r);
96 }
97 function _iterableToArrayLimit(r, l) {
98 var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
99 if (null != t) {
100 var e,
101 n,
102 i,
103 u,
104 a = [],
105 f = !0,
106 o = !1;
107 try {
108 if (i = (t = t.call(r)).next, 0 === l) {
109 if (Object(t) !== t) return;
110 f = !1;
111 } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);
112 } catch (r) {
113 o = !0, n = r;
114 } finally {
115 try {
116 if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return;
117 } finally {
118 if (o) throw n;
119 }
120 }
121 return a;
122 }
123 }
124 function _nonIterableRest() {
125 throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
126 }
127 function _nonIterableSpread() {
128 throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
129 }
130 function ownKeys(e, r) {
131 var t = Object.keys(e);
132 if (Object.getOwnPropertySymbols) {
133 var o = Object.getOwnPropertySymbols(e);
134 r && (o = o.filter(function (r) {
135 return Object.getOwnPropertyDescriptor(e, r).enumerable;
136 })), t.push.apply(t, o);
137 }
138 return t;
139 }
140 function _objectSpread2(e) {
141 for (var r = 1; r < arguments.length; r++) {
142 var t = null != arguments[r] ? arguments[r] : {};
143 r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {
144 _defineProperty(e, r, t[r]);
145 }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {
146 Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));
147 });
148 }
149 return e;
150 }
151 function _setPrototypeOf(t, e) {
152 return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) {
153 return t.__proto__ = e, t;
154 }, _setPrototypeOf(t, e);
155 }
156 function _slicedToArray(r, e) {
157 return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest();
158 }
159 function _toConsumableArray(r) {
160 return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread();
161 }
162 function _toPrimitive(t, r) {
163 if ("object" != typeof t || !t) return t;
164 var e = t[Symbol.toPrimitive];
165 if (void 0 !== e) {
166 var i = e.call(t, r || "default");
167 if ("object" != typeof i) return i;
168 throw new TypeError("@@toPrimitive must return a primitive value.");
169 }
170 return ("string" === r ? String : Number)(t);
171 }
172 function _toPropertyKey(t) {
173 var i = _toPrimitive(t, "string");
174 return "symbol" == typeof i ? i : i + "";
175 }
176 function _typeof(o) {
177 "@babel/helpers - typeof";
178
179 return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
180 return typeof o;
181 } : function (o) {
182 return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
183 }, _typeof(o);
184 }
185 function _unsupportedIterableToArray(r, a) {
186 if (r) {
187 if ("string" == typeof r) return _arrayLikeToArray(r, a);
188 var t = {}.toString.call(r).slice(8, -1);
189 return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0;
190 }
191 }
192 function _wrapRegExp() {
193 _wrapRegExp = function (e, r) {
194 return new BabelRegExp(e, void 0, r);
195 };
196 var e = RegExp.prototype,
197 r = new WeakMap();
198 function BabelRegExp(e, t, p) {
199 var o = RegExp(e, t);
200 return r.set(o, p || r.get(e)), _setPrototypeOf(o, BabelRegExp.prototype);
201 }
202 function buildGroups(e, t) {
203 var p = r.get(t);
204 return Object.keys(p).reduce(function (r, t) {
205 var o = p[t];
206 if ("number" == typeof o) r[t] = e[o];else {
207 for (var i = 0; void 0 === e[o[i]] && i + 1 < o.length;) i++;
208 r[t] = e[o[i]];
209 }
210 return r;
211 }, Object.create(null));
212 }
213 return _inherits(BabelRegExp, RegExp), BabelRegExp.prototype.exec = function (r) {
214 var t = e.exec.call(this, r);
215 if (t) {
216 t.groups = buildGroups(t, this);
217 var p = t.indices;
218 p && (p.groups = buildGroups(p, this));
219 }
220 return t;
221 }, BabelRegExp.prototype[Symbol.replace] = function (t, p) {
222 if ("string" == typeof p) {
223 var o = r.get(this);
224 return e[Symbol.replace].call(this, t, p.replace(/\$<([^>]+)(>|$)/g, function (e, r, t) {
225 if ("" === t) return e;
226 var p = o[r];
227 return Array.isArray(p) ? "$" + p.join("$") : "number" == typeof p ? "$" + p : "";
228 }));
229 }
230 if ("function" == typeof p) {
231 var i = this;
232 return e[Symbol.replace].call(this, t, function () {
233 var e = arguments;
234 return "object" != typeof e[e.length - 1] && (e = [].slice.call(e)).push(buildGroups(e, i)), p.apply(this, e);
235 });
236 }
237 return e[Symbol.replace].call(this, t, p);
238 }, _wrapRegExp.apply(this, arguments);
239 }
240
241 var _plugins = [];
242 var _hooks = {};
243 var providers = {};
244 var defaultProviderKeys = Object.keys(providers);
245 function registerPlugins(nextPlugins, _ref) {
246 var obj = _ref.mixoutsTo;
247 _plugins = nextPlugins;
248 _hooks = {};
249 Object.keys(providers).forEach(function (k) {
250 if (defaultProviderKeys.indexOf(k) === -1) {
251 delete providers[k];
252 }
253 });
254 _plugins.forEach(function (plugin) {
255 var mixout = plugin.mixout ? plugin.mixout() : {};
256 Object.keys(mixout).forEach(function (tk) {
257 if (typeof mixout[tk] === 'function') {
258 obj[tk] = mixout[tk];
259 }
260 if (_typeof(mixout[tk]) === 'object') {
261 Object.keys(mixout[tk]).forEach(function (sk) {
262 if (!obj[tk]) {
263 obj[tk] = {};
264 }
265 obj[tk][sk] = mixout[tk][sk];
266 });
267 }
268 });
269 if (plugin.hooks) {
270 var hooks = plugin.hooks();
271 Object.keys(hooks).forEach(function (hook) {
272 if (!_hooks[hook]) {
273 _hooks[hook] = [];
274 }
275 _hooks[hook].push(hooks[hook]);
276 });
277 }
278 if (plugin.provides) {
279 plugin.provides(providers);
280 }
281 });
282 return obj;
283 }
284 function chainHooks(hook, accumulator) {
285 for (var _len = arguments.length, args = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {
286 args[_key - 2] = arguments[_key];
287 }
288 var hookFns = _hooks[hook] || [];
289 hookFns.forEach(function (hookFn) {
290 accumulator = hookFn.apply(null, [accumulator].concat(args));
291 });
292 return accumulator;
293 }
294 function callHooks(hook) {
295 for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
296 args[_key2 - 1] = arguments[_key2];
297 }
298 var hookFns = _hooks[hook] || [];
299 hookFns.forEach(function (hookFn) {
300 hookFn.apply(null, args);
301 });
302 return undefined;
303 }
304 function callProvided() {
305 var hook = arguments[0];
306 var args = Array.prototype.slice.call(arguments, 1);
307 return providers[hook] ? providers[hook].apply(null, args) : undefined;
308 }
309
310 var noop = function noop() {};
311 var _WINDOW = {};
312 var _DOCUMENT = {};
313 var _MUTATION_OBSERVER = null;
314 var _PERFORMANCE = {
315 mark: noop,
316 measure: noop
317 };
318 try {
319 if (typeof window !== 'undefined') _WINDOW = window;
320 if (typeof document !== 'undefined') _DOCUMENT = document;
321 if (typeof MutationObserver !== 'undefined') _MUTATION_OBSERVER = MutationObserver;
322 if (typeof performance !== 'undefined') _PERFORMANCE = performance;
323 } catch (e) {} // eslint-disable-line no-empty
324
325 var _ref = _WINDOW.navigator || {},
326 _ref$userAgent = _ref.userAgent,
327 userAgent = _ref$userAgent === void 0 ? '' : _ref$userAgent;
328 var WINDOW = _WINDOW;
329 var DOCUMENT = _DOCUMENT;
330 var MUTATION_OBSERVER = _MUTATION_OBSERVER;
331 var PERFORMANCE = _PERFORMANCE;
332 var IS_BROWSER = !!WINDOW.document;
333 var IS_DOM = !!DOCUMENT.documentElement && !!DOCUMENT.head && typeof DOCUMENT.addEventListener === 'function' && typeof DOCUMENT.createElement === 'function';
334 var IS_IE = ~userAgent.indexOf('MSIE') || ~userAgent.indexOf('Trident/');
335
336 var _cl;
337 var Z = /fa(k|kd|s|r|l|t|d|dr|dl|dt|b|slr|slpr|wsb|tl|ns|nds|es|gt|jr|jfr|jdr|usb|ufsb|udsb|cr|ss|sr|sl|st|sds|sdr|sdl|sdt|sldr|slpdr|pr|ms|vs)?[\-\ ]/,
338 $ = /Font ?Awesome ?([567 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Sharp Duotone|Sharp|Kit|Notdog Duo|Notdog|Chisel|Etch|Graphite|Thumbprint|Jelly Fill|Jelly Duo|Jelly|Utility|Utility Fill|Utility Duo|Slab Press|Slab|Slab Duo|Slab Press Duo|Pixel|Mosaic|Vellum|Whiteboard)?.*/i;
339 var rl = {
340 classic: {
341 fa: "solid",
342 fas: "solid",
343 "fa-solid": "solid",
344 far: "regular",
345 "fa-regular": "regular",
346 fal: "light",
347 "fa-light": "light",
348 fat: "thin",
349 "fa-thin": "thin",
350 fab: "brands",
351 "fa-brands": "brands"
352 },
353 duotone: {
354 fa: "solid",
355 fad: "solid",
356 "fa-solid": "solid",
357 "fa-duotone": "solid",
358 fadr: "regular",
359 "fa-regular": "regular",
360 fadl: "light",
361 "fa-light": "light",
362 fadt: "thin",
363 "fa-thin": "thin"
364 },
365 sharp: {
366 fa: "solid",
367 fass: "solid",
368 "fa-solid": "solid",
369 fasr: "regular",
370 "fa-regular": "regular",
371 fasl: "light",
372 "fa-light": "light",
373 fast: "thin",
374 "fa-thin": "thin"
375 },
376 "sharp-duotone": {
377 fa: "solid",
378 fasds: "solid",
379 "fa-solid": "solid",
380 fasdr: "regular",
381 "fa-regular": "regular",
382 fasdl: "light",
383 "fa-light": "light",
384 fasdt: "thin",
385 "fa-thin": "thin"
386 },
387 slab: {
388 "fa-regular": "regular",
389 faslr: "regular"
390 },
391 "slab-press": {
392 "fa-regular": "regular",
393 faslpr: "regular"
394 },
395 "slab-duo": {
396 "fa-regular": "regular",
397 fasldr: "regular"
398 },
399 "slab-press-duo": {
400 "fa-regular": "regular",
401 faslpdr: "regular"
402 },
403 thumbprint: {
404 "fa-light": "light",
405 fatl: "light"
406 },
407 vellum: {
408 "fa-solid": "solid",
409 favs: "solid"
410 },
411 pixel: {
412 "fa-regular": "regular",
413 fapr: "regular"
414 },
415 mosaic: {
416 "fa-solid": "solid",
417 fams: "solid"
418 },
419 whiteboard: {
420 "fa-semibold": "semibold",
421 fawsb: "semibold"
422 },
423 notdog: {
424 "fa-solid": "solid",
425 fans: "solid"
426 },
427 "notdog-duo": {
428 "fa-solid": "solid",
429 fands: "solid"
430 },
431 etch: {
432 "fa-solid": "solid",
433 faes: "solid"
434 },
435 graphite: {
436 "fa-thin": "thin",
437 fagt: "thin"
438 },
439 jelly: {
440 "fa-regular": "regular",
441 fajr: "regular"
442 },
443 "jelly-fill": {
444 "fa-regular": "regular",
445 fajfr: "regular"
446 },
447 "jelly-duo": {
448 "fa-regular": "regular",
449 fajdr: "regular"
450 },
451 chisel: {
452 "fa-regular": "regular",
453 facr: "regular"
454 },
455 utility: {
456 "fa-semibold": "semibold",
457 fausb: "semibold"
458 },
459 "utility-duo": {
460 "fa-semibold": "semibold",
461 faudsb: "semibold"
462 },
463 "utility-fill": {
464 "fa-semibold": "semibold",
465 faufsb: "semibold"
466 }
467 },
468 il = {
469 GROUP: "duotone-group",
470 SWAP_OPACITY: "swap-opacity",
471 PRIMARY: "primary",
472 SECONDARY: "secondary"
473 },
474 dl = ["fa-classic", "fa-duotone", "fa-sharp", "fa-sharp-duotone", "fa-thumbprint", "fa-whiteboard", "fa-notdog", "fa-notdog-duo", "fa-chisel", "fa-etch", "fa-graphite", "fa-jelly", "fa-jelly-fill", "fa-jelly-duo", "fa-slab", "fa-slab-press", "fa-slab-press-duo", "fa-slab-duo", "fa-mosaic", "fa-pixel", "fa-vellum", "fa-utility", "fa-utility-duo", "fa-utility-fill"];
475 var u = "classic",
476 l = "duotone",
477 h = "sharp",
478 t = "sharp-duotone",
479 g = "chisel",
480 n = "etch",
481 m = "graphite",
482 p = "jelly",
483 s = "jelly-duo",
484 y = "jelly-fill",
485 w = "mosaic",
486 x = "notdog",
487 e = "notdog-duo",
488 b = "pixel",
489 c = "slab",
490 o = "slab-duo",
491 I = "slab-press",
492 a = "slab-press-duo",
493 r = "thumbprint",
494 v = "utility",
495 i = "utility-duo",
496 F = "utility-fill",
497 d = "vellum",
498 S = "whiteboard",
499 A = "Classic",
500 P = "Duotone",
501 j = "Sharp",
502 B = "Sharp Duotone",
503 N = "Chisel",
504 D = "Etch",
505 k = "Graphite",
506 T = "Jelly",
507 C = "Jelly Duo",
508 W = "Jelly Fill",
509 R = "Mosaic",
510 K = "Notdog",
511 L = "Notdog Duo",
512 U = "Pixel",
513 J = "Slab",
514 _ = "Slab Duo",
515 M = "Slab Press",
516 E = "Slab Press Duo",
517 G = "Thumbprint",
518 V = "Utility",
519 z = "Utility Duo",
520 O = "Utility Fill",
521 Y = "Vellum",
522 q = "Whiteboard",
523 xl = [u, l, h, t, g, n, m, p, s, y, w, x, e, b, c, o, I, a, r, v, i, F, d, S],
524 cl = (_cl = {}, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_cl, u, A), l, P), h, j), t, B), g, N), n, D), m, k), p, T), s, C), y, W), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_cl, w, R), x, K), e, L), b, U), c, J), o, _), I, M), a, E), r, G), v, V), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_cl, i, z), F, O), d, Y), S, q));
525 var Al = {
526 classic: {
527 900: "fas",
528 400: "far",
529 normal: "far",
530 300: "fal",
531 100: "fat"
532 },
533 duotone: {
534 900: "fad",
535 400: "fadr",
536 300: "fadl",
537 100: "fadt"
538 },
539 sharp: {
540 900: "fass",
541 400: "fasr",
542 300: "fasl",
543 100: "fast"
544 },
545 "sharp-duotone": {
546 900: "fasds",
547 400: "fasdr",
548 300: "fasdl",
549 100: "fasdt"
550 },
551 slab: {
552 400: "faslr"
553 },
554 "slab-press": {
555 400: "faslpr"
556 },
557 "slab-duo": {
558 400: "fasldr"
559 },
560 "slab-press-duo": {
561 400: "faslpdr"
562 },
563 vellum: {
564 900: "favs"
565 },
566 mosaic: {
567 900: "fams"
568 },
569 pixel: {
570 400: "fapr"
571 },
572 whiteboard: {
573 600: "fawsb"
574 },
575 thumbprint: {
576 300: "fatl"
577 },
578 notdog: {
579 900: "fans"
580 },
581 "notdog-duo": {
582 900: "fands"
583 },
584 etch: {
585 900: "faes"
586 },
587 graphite: {
588 100: "fagt"
589 },
590 chisel: {
591 400: "facr"
592 },
593 jelly: {
594 400: "fajr"
595 },
596 "jelly-fill": {
597 400: "fajfr"
598 },
599 "jelly-duo": {
600 400: "fajdr"
601 },
602 utility: {
603 600: "fausb"
604 },
605 "utility-duo": {
606 600: "faudsb"
607 },
608 "utility-fill": {
609 600: "faufsb"
610 }
611 };
612 var zl = {
613 "Font Awesome 7 Free": {
614 900: "fas",
615 400: "far"
616 },
617 "Font Awesome 7 Pro": {
618 900: "fas",
619 400: "far",
620 normal: "far",
621 300: "fal",
622 100: "fat"
623 },
624 "Font Awesome 7 Brands": {
625 400: "fab",
626 normal: "fab"
627 },
628 "Font Awesome 7 Duotone": {
629 900: "fad",
630 400: "fadr",
631 normal: "fadr",
632 300: "fadl",
633 100: "fadt"
634 },
635 "Font Awesome 7 Sharp": {
636 900: "fass",
637 400: "fasr",
638 normal: "fasr",
639 300: "fasl",
640 100: "fast"
641 },
642 "Font Awesome 7 Sharp Duotone": {
643 900: "fasds",
644 400: "fasdr",
645 normal: "fasdr",
646 300: "fasdl",
647 100: "fasdt"
648 },
649 "Font Awesome 7 Jelly": {
650 400: "fajr",
651 normal: "fajr"
652 },
653 "Font Awesome 7 Jelly Fill": {
654 400: "fajfr",
655 normal: "fajfr"
656 },
657 "Font Awesome 7 Jelly Duo": {
658 400: "fajdr",
659 normal: "fajdr"
660 },
661 "Font Awesome 7 Slab": {
662 400: "faslr",
663 normal: "faslr"
664 },
665 "Font Awesome 7 Slab Press": {
666 400: "faslpr",
667 normal: "faslpr"
668 },
669 "Font Awesome 7 Slab Duo": {
670 400: "fasldr",
671 normal: "fasldr"
672 },
673 "Font Awesome 7 Slab Press Duo": {
674 400: "faslpdr",
675 normal: "faslpdr"
676 },
677 "Font Awesome 7 Pixel": {
678 400: "fapr",
679 normal: "fapr"
680 },
681 "Font Awesome 7 Mosaic": {
682 900: "fams",
683 normal: "fams"
684 },
685 "Font Awesome 7 Vellum": {
686 900: "favs",
687 normal: "favs"
688 },
689 "Font Awesome 7 Thumbprint": {
690 300: "fatl",
691 normal: "fatl"
692 },
693 "Font Awesome 7 Notdog": {
694 900: "fans",
695 normal: "fans"
696 },
697 "Font Awesome 7 Notdog Duo": {
698 900: "fands",
699 normal: "fands"
700 },
701 "Font Awesome 7 Etch": {
702 900: "faes",
703 normal: "faes"
704 },
705 "Font Awesome 7 Graphite": {
706 100: "fagt",
707 normal: "fagt"
708 },
709 "Font Awesome 7 Chisel": {
710 400: "facr",
711 normal: "facr"
712 },
713 "Font Awesome 7 Whiteboard": {
714 600: "fawsb",
715 normal: "fawsb"
716 },
717 "Font Awesome 7 Utility": {
718 600: "fausb",
719 normal: "fausb"
720 },
721 "Font Awesome 7 Utility Duo": {
722 600: "faudsb",
723 normal: "faudsb"
724 },
725 "Font Awesome 7 Utility Fill": {
726 600: "faufsb",
727 normal: "faufsb"
728 }
729 };
730 var Ql = new Map([["classic", {
731 defaultShortPrefixId: "fas",
732 defaultStyleId: "solid",
733 styleIds: ["solid", "regular", "light", "thin", "brands"],
734 futureStyleIds: [],
735 defaultFontWeight: 900
736 }], ["duotone", {
737 defaultShortPrefixId: "fad",
738 defaultStyleId: "solid",
739 styleIds: ["solid", "regular", "light", "thin"],
740 futureStyleIds: [],
741 defaultFontWeight: 900
742 }], ["sharp", {
743 defaultShortPrefixId: "fass",
744 defaultStyleId: "solid",
745 styleIds: ["solid", "regular", "light", "thin"],
746 futureStyleIds: [],
747 defaultFontWeight: 900
748 }], ["sharp-duotone", {
749 defaultShortPrefixId: "fasds",
750 defaultStyleId: "solid",
751 styleIds: ["solid", "regular", "light", "thin"],
752 futureStyleIds: [],
753 defaultFontWeight: 900
754 }], ["chisel", {
755 defaultShortPrefixId: "facr",
756 defaultStyleId: "regular",
757 styleIds: ["regular"],
758 futureStyleIds: [],
759 defaultFontWeight: 400
760 }], ["etch", {
761 defaultShortPrefixId: "faes",
762 defaultStyleId: "solid",
763 styleIds: ["solid"],
764 futureStyleIds: [],
765 defaultFontWeight: 900
766 }], ["graphite", {
767 defaultShortPrefixId: "fagt",
768 defaultStyleId: "thin",
769 styleIds: ["thin"],
770 futureStyleIds: [],
771 defaultFontWeight: 100
772 }], ["jelly", {
773 defaultShortPrefixId: "fajr",
774 defaultStyleId: "regular",
775 styleIds: ["regular"],
776 futureStyleIds: [],
777 defaultFontWeight: 400
778 }], ["jelly-duo", {
779 defaultShortPrefixId: "fajdr",
780 defaultStyleId: "regular",
781 styleIds: ["regular"],
782 futureStyleIds: [],
783 defaultFontWeight: 400
784 }], ["jelly-fill", {
785 defaultShortPrefixId: "fajfr",
786 defaultStyleId: "regular",
787 styleIds: ["regular"],
788 futureStyleIds: [],
789 defaultFontWeight: 400
790 }], ["mosaic", {
791 defaultShortPrefixId: "fams",
792 defaultStyleId: "solid",
793 styleIds: ["solid"],
794 futureStyleIds: [],
795 defaultFontWeight: 900
796 }], ["notdog", {
797 defaultShortPrefixId: "fans",
798 defaultStyleId: "solid",
799 styleIds: ["solid"],
800 futureStyleIds: [],
801 defaultFontWeight: 900
802 }], ["notdog-duo", {
803 defaultShortPrefixId: "fands",
804 defaultStyleId: "solid",
805 styleIds: ["solid"],
806 futureStyleIds: [],
807 defaultFontWeight: 900
808 }], ["pixel", {
809 defaultShortPrefixId: "fapr",
810 defaultStyleId: "regular",
811 styleIds: ["regular"],
812 futureStyleIds: [],
813 defaultFontWeight: 400
814 }], ["slab", {
815 defaultShortPrefixId: "faslr",
816 defaultStyleId: "regular",
817 styleIds: ["regular"],
818 futureStyleIds: [],
819 defaultFontWeight: 400
820 }], ["slab-duo", {
821 defaultShortPrefixId: "fasldr",
822 defaultStyleId: "regular",
823 styleIds: ["regular"],
824 futureStyleIds: [],
825 defaultFontWeight: 400
826 }], ["slab-press", {
827 defaultShortPrefixId: "faslpr",
828 defaultStyleId: "regular",
829 styleIds: ["regular"],
830 futureStyleIds: [],
831 defaultFontWeight: 400
832 }], ["slab-press-duo", {
833 defaultShortPrefixId: "faslpdr",
834 defaultStyleId: "regular",
835 styleIds: ["regular"],
836 futureStyleIds: [],
837 defaultFontWeight: 400
838 }], ["thumbprint", {
839 defaultShortPrefixId: "fatl",
840 defaultStyleId: "light",
841 styleIds: ["light"],
842 futureStyleIds: [],
843 defaultFontWeight: 300
844 }], ["utility", {
845 defaultShortPrefixId: "fausb",
846 defaultStyleId: "semibold",
847 styleIds: ["semibold"],
848 futureStyleIds: [],
849 defaultFontWeight: 600
850 }], ["utility-duo", {
851 defaultShortPrefixId: "faudsb",
852 defaultStyleId: "semibold",
853 styleIds: ["semibold"],
854 futureStyleIds: [],
855 defaultFontWeight: 600
856 }], ["utility-fill", {
857 defaultShortPrefixId: "faufsb",
858 defaultStyleId: "semibold",
859 styleIds: ["semibold"],
860 futureStyleIds: [],
861 defaultFontWeight: 600
862 }], ["vellum", {
863 defaultShortPrefixId: "favs",
864 defaultStyleId: "solid",
865 styleIds: ["solid"],
866 futureStyleIds: [],
867 defaultFontWeight: 900
868 }], ["whiteboard", {
869 defaultShortPrefixId: "fawsb",
870 defaultStyleId: "semibold",
871 styleIds: ["semibold"],
872 futureStyleIds: [],
873 defaultFontWeight: 600
874 }]]),
875 $l = {
876 chisel: {
877 regular: "facr"
878 },
879 classic: {
880 brands: "fab",
881 light: "fal",
882 regular: "far",
883 solid: "fas",
884 thin: "fat"
885 },
886 duotone: {
887 light: "fadl",
888 regular: "fadr",
889 solid: "fad",
890 thin: "fadt"
891 },
892 etch: {
893 solid: "faes"
894 },
895 graphite: {
896 thin: "fagt"
897 },
898 jelly: {
899 regular: "fajr"
900 },
901 "jelly-duo": {
902 regular: "fajdr"
903 },
904 "jelly-fill": {
905 regular: "fajfr"
906 },
907 mosaic: {
908 solid: "fams"
909 },
910 notdog: {
911 solid: "fans"
912 },
913 "notdog-duo": {
914 solid: "fands"
915 },
916 pixel: {
917 regular: "fapr"
918 },
919 sharp: {
920 light: "fasl",
921 regular: "fasr",
922 solid: "fass",
923 thin: "fast"
924 },
925 "sharp-duotone": {
926 light: "fasdl",
927 regular: "fasdr",
928 solid: "fasds",
929 thin: "fasdt"
930 },
931 slab: {
932 regular: "faslr"
933 },
934 "slab-duo": {
935 regular: "fasldr"
936 },
937 "slab-press": {
938 regular: "faslpr"
939 },
940 "slab-press-duo": {
941 regular: "faslpdr"
942 },
943 thumbprint: {
944 light: "fatl"
945 },
946 utility: {
947 semibold: "fausb"
948 },
949 "utility-duo": {
950 semibold: "faudsb"
951 },
952 "utility-fill": {
953 semibold: "faufsb"
954 },
955 vellum: {
956 solid: "favs"
957 },
958 whiteboard: {
959 semibold: "fawsb"
960 }
961 };
962 var at = ["fak", "fa-kit", "fakd", "fa-kit-duotone"],
963 rt = {
964 kit: {
965 fak: "kit",
966 "fa-kit": "kit"
967 },
968 "kit-duotone": {
969 fakd: "kit-duotone",
970 "fa-kit-duotone": "kit-duotone"
971 }
972 },
973 it = ["kit"];
974 var H = "kit",
975 f = "kit-duotone",
976 Q = "Kit",
977 X = "Kit Duotone",
978 ht = _defineProperty(_defineProperty({}, H, Q), f, X);
979 var mt = {
980 kit: {
981 "fa-kit": "fak"
982 },
983 "kit-duotone": {
984 "fa-kit-duotone": "fakd"
985 }
986 };
987 var ct = {
988 "Font Awesome Kit": {
989 400: "fak",
990 normal: "fak"
991 },
992 "Font Awesome Kit Duotone": {
993 400: "fakd",
994 normal: "fakd"
995 }
996 },
997 It = {
998 kit: {
999 fak: "fa-kit"
1000 },
1001 "kit-duotone": {
1002 fakd: "fa-kit-duotone"
1003 }
1004 };
1005 var St = {
1006 kit: {
1007 kit: "fak"
1008 },
1009 "kit-duotone": {
1010 "kit-duotone": "fakd"
1011 }
1012 };
1013
1014 var _jl;
1015 var l$1 = {
1016 GROUP: "duotone-group",
1017 SWAP_OPACITY: "swap-opacity",
1018 PRIMARY: "primary",
1019 SECONDARY: "secondary"
1020 },
1021 n$1 = ["fa-classic", "fa-duotone", "fa-sharp", "fa-sharp-duotone", "fa-thumbprint", "fa-whiteboard", "fa-notdog", "fa-notdog-duo", "fa-chisel", "fa-etch", "fa-graphite", "fa-jelly", "fa-jelly-fill", "fa-jelly-duo", "fa-slab", "fa-slab-press", "fa-slab-press-duo", "fa-slab-duo", "fa-mosaic", "fa-pixel", "fa-vellum", "fa-utility", "fa-utility-duo", "fa-utility-fill"];
1022 var g$1 = "classic",
1023 a$1 = "duotone",
1024 m$1 = "sharp",
1025 t$1 = "sharp-duotone",
1026 p$1 = "chisel",
1027 y$1 = "etch",
1028 b$1 = "graphite",
1029 w$1 = "jelly",
1030 e$1 = "jelly-duo",
1031 x$1 = "jelly-fill",
1032 c$1 = "mosaic",
1033 I$1 = "notdog",
1034 o$1 = "notdog-duo",
1035 v$1 = "pixel",
1036 F$1 = "slab",
1037 r$1 = "slab-duo",
1038 S$1 = "slab-press",
1039 i$1 = "slab-press-duo",
1040 d$1 = "thumbprint",
1041 A$1 = "utility",
1042 f$1 = "utility-duo",
1043 P$1 = "utility-fill",
1044 u$1 = "vellum",
1045 j$1 = "whiteboard",
1046 B$1 = "Classic",
1047 N$1 = "Duotone",
1048 D$1 = "Sharp",
1049 k$1 = "Sharp Duotone",
1050 C$1 = "Chisel",
1051 T$1 = "Etch",
1052 L$1 = "Graphite",
1053 W$1 = "Jelly",
1054 R$1 = "Jelly Duo",
1055 K$1 = "Jelly Fill",
1056 U$1 = "Mosaic",
1057 J$1 = "Notdog",
1058 _$1 = "Notdog Duo",
1059 M$1 = "Pixel",
1060 E$1 = "Slab",
1061 G$1 = "Slab Duo",
1062 O$1 = "Slab Press",
1063 V$1 = "Slab Press Duo",
1064 z$1 = "Thumbprint",
1065 Y$1 = "Utility",
1066 $$1 = "Utility Duo",
1067 q$1 = "Utility Fill",
1068 H$1 = "Vellum",
1069 Q$1 = "Whiteboard",
1070 jl$1 = (_jl = {}, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_jl, g$1, B$1), a$1, N$1), m$1, D$1), t$1, k$1), p$1, C$1), y$1, T$1), b$1, L$1), w$1, W$1), e$1, R$1), x$1, K$1), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_jl, c$1, U$1), I$1, J$1), o$1, _$1), v$1, M$1), F$1, E$1), r$1, G$1), S$1, O$1), i$1, V$1), d$1, z$1), A$1, Y$1), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_jl, f$1, $$1), P$1, q$1), u$1, H$1), j$1, Q$1));
1071 var X$1 = "kit",
1072 h$1 = "kit-duotone",
1073 Z$1 = "Kit",
1074 ll$1 = "Kit Duotone",
1075 ws = _defineProperty(_defineProperty({}, X$1, Z$1), h$1, ll$1);
1076 var ra = {
1077 classic: {
1078 "fa-brands": "fab",
1079 "fa-duotone": "fad",
1080 "fa-light": "fal",
1081 "fa-regular": "far",
1082 "fa-solid": "fas",
1083 "fa-thin": "fat"
1084 },
1085 duotone: {
1086 "fa-regular": "fadr",
1087 "fa-light": "fadl",
1088 "fa-thin": "fadt"
1089 },
1090 sharp: {
1091 "fa-solid": "fass",
1092 "fa-regular": "fasr",
1093 "fa-light": "fasl",
1094 "fa-thin": "fast"
1095 },
1096 "sharp-duotone": {
1097 "fa-solid": "fasds",
1098 "fa-regular": "fasdr",
1099 "fa-light": "fasdl",
1100 "fa-thin": "fasdt"
1101 },
1102 slab: {
1103 "fa-regular": "faslr"
1104 },
1105 "slab-press": {
1106 "fa-regular": "faslpr"
1107 },
1108 "slab-duo": {
1109 "fa-regular": "fasldr"
1110 },
1111 "slab-press-duo": {
1112 "fa-regular": "faslpdr"
1113 },
1114 pixel: {
1115 "fa-regular": "fapr"
1116 },
1117 mosaic: {
1118 "fa-solid": "fams"
1119 },
1120 vellum: {
1121 "fa-solid": "favs"
1122 },
1123 whiteboard: {
1124 "fa-semibold": "fawsb"
1125 },
1126 thumbprint: {
1127 "fa-light": "fatl"
1128 },
1129 notdog: {
1130 "fa-solid": "fans"
1131 },
1132 "notdog-duo": {
1133 "fa-solid": "fands"
1134 },
1135 etch: {
1136 "fa-solid": "faes"
1137 },
1138 graphite: {
1139 "fa-thin": "fagt"
1140 },
1141 jelly: {
1142 "fa-regular": "fajr"
1143 },
1144 "jelly-fill": {
1145 "fa-regular": "fajfr"
1146 },
1147 "jelly-duo": {
1148 "fa-regular": "fajdr"
1149 },
1150 chisel: {
1151 "fa-regular": "facr"
1152 },
1153 utility: {
1154 "fa-semibold": "fausb"
1155 },
1156 "utility-duo": {
1157 "fa-semibold": "faudsb"
1158 },
1159 "utility-fill": {
1160 "fa-semibold": "faufsb"
1161 }
1162 },
1163 al$1 = {
1164 classic: ["fas", "far", "fal", "fat", "fad"],
1165 duotone: ["fadr", "fadl", "fadt"],
1166 sharp: ["fass", "fasr", "fasl", "fast"],
1167 "sharp-duotone": ["fasds", "fasdr", "fasdl", "fasdt"],
1168 slab: ["faslr"],
1169 "slab-press": ["faslpr"],
1170 "slab-duo": ["fasldr"],
1171 "slab-press-duo": ["faslpdr"],
1172 pixel: ["fapr"],
1173 mosaic: ["fams"],
1174 vellum: ["favs"],
1175 whiteboard: ["fawsb"],
1176 thumbprint: ["fatl"],
1177 notdog: ["fans"],
1178 "notdog-duo": ["fands"],
1179 etch: ["faes"],
1180 graphite: ["fagt"],
1181 jelly: ["fajr"],
1182 "jelly-fill": ["fajfr"],
1183 "jelly-duo": ["fajdr"],
1184 chisel: ["facr"],
1185 utility: ["fausb"],
1186 "utility-duo": ["faudsb"],
1187 "utility-fill": ["faufsb"]
1188 },
1189 da = {
1190 classic: {
1191 fab: "fa-brands",
1192 fad: "fa-duotone",
1193 fal: "fa-light",
1194 far: "fa-regular",
1195 fas: "fa-solid",
1196 fat: "fa-thin"
1197 },
1198 duotone: {
1199 fadr: "fa-regular",
1200 fadl: "fa-light",
1201 fadt: "fa-thin"
1202 },
1203 sharp: {
1204 fass: "fa-solid",
1205 fasr: "fa-regular",
1206 fasl: "fa-light",
1207 fast: "fa-thin"
1208 },
1209 "sharp-duotone": {
1210 fasds: "fa-solid",
1211 fasdr: "fa-regular",
1212 fasdl: "fa-light",
1213 fasdt: "fa-thin"
1214 },
1215 slab: {
1216 faslr: "fa-regular"
1217 },
1218 "slab-press": {
1219 faslpr: "fa-regular"
1220 },
1221 "slab-duo": {
1222 fasldr: "fa-regular"
1223 },
1224 "slab-press-duo": {
1225 faslpdr: "fa-regular"
1226 },
1227 pixel: {
1228 fapr: "fa-regular"
1229 },
1230 mosaic: {
1231 fams: "fa-solid"
1232 },
1233 vellum: {
1234 favs: "fa-solid"
1235 },
1236 whiteboard: {
1237 fawsb: "fa-semibold"
1238 },
1239 thumbprint: {
1240 fatl: "fa-light"
1241 },
1242 notdog: {
1243 fans: "fa-solid"
1244 },
1245 "notdog-duo": {
1246 fands: "fa-solid"
1247 },
1248 etch: {
1249 faes: "fa-solid"
1250 },
1251 graphite: {
1252 fagt: "fa-thin"
1253 },
1254 jelly: {
1255 fajr: "fa-regular"
1256 },
1257 "jelly-fill": {
1258 fajfr: "fa-regular"
1259 },
1260 "jelly-duo": {
1261 fajdr: "fa-regular"
1262 },
1263 chisel: {
1264 facr: "fa-regular"
1265 },
1266 utility: {
1267 fausb: "fa-semibold"
1268 },
1269 "utility-duo": {
1270 faudsb: "fa-semibold"
1271 },
1272 "utility-fill": {
1273 faufsb: "fa-semibold"
1274 }
1275 },
1276 tl = ["fa-solid", "fa-regular", "fa-light", "fa-thin", "fa-duotone", "fa-brands", "fa-semibold"],
1277 ha = ["fa", "fas", "far", "fal", "fat", "fad", "fadr", "fadl", "fadt", "fab", "fass", "fasr", "fasl", "fast", "fasds", "fasdr", "fasdl", "fasdt", "faslr", "faslpr", "fasldr", "faslpdr", "fapr", "fams", "favs", "fawsb", "fatl", "fans", "fands", "faes", "fagt", "fajr", "fajfr", "fajdr", "facr", "fausb", "faudsb", "faufsb"].concat(n$1, tl),
1278 el$1 = ["solid", "regular", "light", "thin", "duotone", "brands", "semibold"],
1279 sl$1 = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10],
1280 ol$1 = sl$1.concat([11, 12, 13, 14, 15, 16, 17, 18, 19, 20]),
1281 rl$1 = ["aw", "fw", "pull-left", "pull-right"],
1282 ga = [].concat(_toConsumableArray(Object.keys(al$1)), el$1, rl$1, ["2xs", "xs", "sm", "lg", "xl", "2xl", "beat", "beat-fade", "border", "bounce", "buzz", "canvas-square", "canvas-roomy", "fade", "flip-360", "flip-both", "flip-horizontal", "flip-vertical", "flip", "float", "inverse", "jello", "layers", "layers-bottom-left", "layers-bottom-right", "layers-counter", "layers-text", "layers-top-left", "layers-top-right", "li", "pull-end", "pull-start", "pulse", "rotate-180", "rotate-270", "rotate-90", "rotate-by", "shake", "spin-pulse", "spin-reverse", "spin", "spin-snap", "spin-snap-4", "spin-snap-8", "stack-1x", "stack-2x", "stack", "swing", "ul", "wag", "width-auto", "width-fixed", l$1.GROUP, l$1.SWAP_OPACITY, l$1.PRIMARY, l$1.SECONDARY]).concat(sl$1.map(function (s) {
1283 return "".concat(s, "x");
1284 })).concat(ol$1.map(function (s) {
1285 return "w-".concat(s);
1286 }));
1287 var wa = {
1288 "Font Awesome 5 Free": {
1289 900: "fas",
1290 400: "far"
1291 },
1292 "Font Awesome 5 Pro": {
1293 900: "fas",
1294 400: "far",
1295 normal: "far",
1296 300: "fal"
1297 },
1298 "Font Awesome 5 Brands": {
1299 400: "fab",
1300 normal: "fab"
1301 },
1302 "Font Awesome 5 Duotone": {
1303 900: "fad"
1304 }
1305 };
1306
1307 var NAMESPACE_IDENTIFIER = '___FONT_AWESOME___';
1308 var UNITS_IN_GRID = 16;
1309 var DEFAULT_CSS_PREFIX = 'fa';
1310 var DEFAULT_REPLACEMENT_CLASS = 'svg-inline--fa';
1311 var DATA_FA_I2SVG = 'data-fa-i2svg';
1312 var DATA_FA_PSEUDO_ELEMENT = 'data-fa-pseudo-element';
1313 var DATA_FA_PSEUDO_ELEMENT_PENDING = 'data-fa-pseudo-element-pending';
1314 var DATA_PREFIX = 'data-prefix';
1315 var DATA_ICON = 'data-icon';
1316 var HTML_CLASS_I2SVG_BASE_CLASS = 'fontawesome-i2svg';
1317 var MUTATION_APPROACH_ASYNC = 'async';
1318 var TAGNAMES_TO_SKIP_FOR_PSEUDOELEMENTS = ['HTML', 'HEAD', 'STYLE', 'SCRIPT'];
1319 var PSEUDO_ELEMENTS = ['::before', '::after', ':before', ':after'];
1320 var PRODUCTION = function () {
1321 try {
1322 return process.env.NODE_ENV === 'production';
1323 } catch (e$$1) {
1324 return false;
1325 }
1326 }();
1327 function familyProxy(obj) {
1328 // Defaults to the classic family if family is not available
1329 return new Proxy(obj, {
1330 get: function get(target, prop) {
1331 return prop in target ? target[prop] : target[u];
1332 }
1333 });
1334 }
1335 var _PREFIX_TO_STYLE = _objectSpread2({}, rl);
1336
1337 // We changed FACSSClassesToStyleId in the icons repo to be canonical and as such, "classic" family does not have any
1338 // duotone styles. But we do still need duotone in _PREFIX_TO_STYLE below, so we are manually adding
1339 // {'fa-duotone': 'duotone'}
1340 _PREFIX_TO_STYLE[u] = _objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2({}, {
1341 'fa-duotone': 'duotone'
1342 }), rl[u]), rt['kit']), rt['kit-duotone']);
1343 var PREFIX_TO_STYLE = familyProxy(_PREFIX_TO_STYLE);
1344 var _STYLE_TO_PREFIX = _objectSpread2({}, $l);
1345
1346 // We changed FAStyleIdToShortPrefixId in the icons repo to be canonical and as such, "classic" family does not have any
1347 // duotone styles. But we do still need duotone in _STYLE_TO_PREFIX below, so we are manually adding {duotone: 'fad'}
1348 _STYLE_TO_PREFIX[u] = _objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2({}, {
1349 duotone: 'fad'
1350 }), _STYLE_TO_PREFIX[u]), St['kit']), St['kit-duotone']);
1351 var STYLE_TO_PREFIX = familyProxy(_STYLE_TO_PREFIX);
1352 var _PREFIX_TO_LONG_STYLE = _objectSpread2({}, da);
1353 _PREFIX_TO_LONG_STYLE[u] = _objectSpread2(_objectSpread2({}, _PREFIX_TO_LONG_STYLE[u]), It['kit']);
1354 var PREFIX_TO_LONG_STYLE = familyProxy(_PREFIX_TO_LONG_STYLE);
1355 var _LONG_STYLE_TO_PREFIX = _objectSpread2({}, ra);
1356 _LONG_STYLE_TO_PREFIX[u] = _objectSpread2(_objectSpread2({}, _LONG_STYLE_TO_PREFIX[u]), mt['kit']);
1357 var LONG_STYLE_TO_PREFIX = familyProxy(_LONG_STYLE_TO_PREFIX);
1358 var ICON_SELECTION_SYNTAX_PATTERN = Z;
1359 var LAYERS_TEXT_CLASSNAME = 'fa-layers-text';
1360 var FONT_FAMILY_PATTERN = $;
1361 var _FONT_WEIGHT_TO_PREFIX = _objectSpread2({}, Al);
1362 var FONT_WEIGHT_TO_PREFIX = familyProxy(_FONT_WEIGHT_TO_PREFIX);
1363 var ATTRIBUTES_WATCHED_FOR_MUTATION = ['class', 'data-prefix', 'data-icon', 'data-fa-transform', 'data-fa-mask'];
1364 var DUOTONE_CLASSES = il;
1365 var RESERVED_CLASSES = [].concat(_toConsumableArray(it), _toConsumableArray(ga));
1366
1367 var initial = WINDOW.FontAwesomeConfig || {};
1368 function getAttrConfig(attr) {
1369 var element = DOCUMENT.querySelector('script[' + attr + ']');
1370 if (element) {
1371 return element.getAttribute(attr);
1372 }
1373 }
1374 function coerce(val) {
1375 // Getting an empty string will occur if the attribute is set on the HTML tag but without a value
1376 // We'll assume that this is an indication that it should be toggled to true
1377 if (val === '') return true;
1378 if (val === 'false') return false;
1379 if (val === 'true') return true;
1380 return val;
1381 }
1382 if (DOCUMENT && typeof DOCUMENT.querySelector === 'function') {
1383 var attrs = [['data-family-prefix', 'familyPrefix'], ['data-css-prefix', 'cssPrefix'], ['data-family-default', 'familyDefault'], ['data-style-default', 'styleDefault'], ['data-replacement-class', 'replacementClass'], ['data-auto-replace-svg', 'autoReplaceSvg'], ['data-auto-add-css', 'autoAddCss'], ['data-search-pseudo-elements', 'searchPseudoElements'], ['data-search-pseudo-elements-warnings', 'searchPseudoElementsWarnings'], ['data-search-pseudo-elements-full-scan', 'searchPseudoElementsFullScan'], ['data-observe-mutations', 'observeMutations'], ['data-mutate-approach', 'mutateApproach'], ['data-keep-original-source', 'keepOriginalSource'], ['data-measure-performance', 'measurePerformance'], ['data-show-missing-icons', 'showMissingIcons']];
1384 attrs.forEach(function (_ref) {
1385 var _ref2 = _slicedToArray(_ref, 2),
1386 attr = _ref2[0],
1387 key = _ref2[1];
1388 var val = coerce(getAttrConfig(attr));
1389 if (val !== undefined && val !== null) {
1390 initial[key] = val;
1391 }
1392 });
1393 }
1394 var _default = {
1395 styleDefault: 'solid',
1396 familyDefault: u,
1397 cssPrefix: DEFAULT_CSS_PREFIX,
1398 replacementClass: DEFAULT_REPLACEMENT_CLASS,
1399 autoReplaceSvg: true,
1400 autoAddCss: true,
1401 searchPseudoElements: false,
1402 searchPseudoElementsWarnings: true,
1403 searchPseudoElementsFullScan: false,
1404 observeMutations: true,
1405 mutateApproach: 'async',
1406 keepOriginalSource: true,
1407 measurePerformance: false,
1408 showMissingIcons: true
1409 };
1410
1411 // familyPrefix is deprecated but we must still support it if present
1412 if (initial.familyPrefix) {
1413 initial.cssPrefix = initial.familyPrefix;
1414 }
1415 var _config = _objectSpread2(_objectSpread2({}, _default), initial);
1416 if (!_config.autoReplaceSvg) _config.observeMutations = false;
1417 var config = {};
1418 Object.keys(_default).forEach(function (key) {
1419 Object.defineProperty(config, key, {
1420 enumerable: true,
1421 set: function set(val) {
1422 _config[key] = val;
1423 _onChangeCb.forEach(function (cb) {
1424 return cb(config);
1425 });
1426 },
1427 get: function get() {
1428 return _config[key];
1429 }
1430 });
1431 });
1432
1433 // familyPrefix is deprecated as of 6.2.0 and should be removed in 7.0.0
1434 Object.defineProperty(config, 'familyPrefix', {
1435 enumerable: true,
1436 set: function set(val) {
1437 _config.cssPrefix = val;
1438 _onChangeCb.forEach(function (cb) {
1439 return cb(config);
1440 });
1441 },
1442 get: function get() {
1443 return _config.cssPrefix;
1444 }
1445 });
1446 WINDOW.FontAwesomeConfig = config;
1447 var _onChangeCb = [];
1448 function onChange(cb) {
1449 _onChangeCb.push(cb);
1450 return function () {
1451 _onChangeCb.splice(_onChangeCb.indexOf(cb), 1);
1452 };
1453 }
1454
1455 var w$2 = WINDOW || {};
1456 if (!w$2[NAMESPACE_IDENTIFIER]) w$2[NAMESPACE_IDENTIFIER] = {};
1457 if (!w$2[NAMESPACE_IDENTIFIER].styles) w$2[NAMESPACE_IDENTIFIER].styles = {};
1458 if (!w$2[NAMESPACE_IDENTIFIER].hooks) w$2[NAMESPACE_IDENTIFIER].hooks = {};
1459 if (!w$2[NAMESPACE_IDENTIFIER].shims) w$2[NAMESPACE_IDENTIFIER].shims = [];
1460 var namespace = w$2[NAMESPACE_IDENTIFIER];
1461
1462 var functions = [];
1463 var _listener = function listener() {
1464 DOCUMENT.removeEventListener('DOMContentLoaded', _listener);
1465 loaded = 1;
1466 functions.map(function (fn) {
1467 return fn();
1468 });
1469 };
1470 var loaded = false;
1471 if (IS_DOM) {
1472 loaded = (DOCUMENT.documentElement.doScroll ? /^loaded|^c/ : /^loaded|^i|^c/).test(DOCUMENT.readyState);
1473 if (!loaded) DOCUMENT.addEventListener('DOMContentLoaded', _listener);
1474 }
1475 function domready (fn) {
1476 if (!IS_DOM) return;
1477 loaded ? setTimeout(fn, 0) : functions.push(fn);
1478 }
1479
1480 var d$2 = UNITS_IN_GRID;
1481 var meaninglessTransform = {
1482 size: 16,
1483 x: 0,
1484 y: 0,
1485 rotate: 0,
1486 flipX: false,
1487 flipY: false
1488 };
1489 function insertCss(css) {
1490 if (!css || !IS_DOM) {
1491 return;
1492 }
1493 var style = DOCUMENT.createElement('style');
1494 style.setAttribute('type', 'text/css');
1495 style.innerHTML = css;
1496 var headChildren = DOCUMENT.head.childNodes;
1497 var beforeChild = null;
1498 for (var i = headChildren.length - 1; i > -1; i--) {
1499 var child = headChildren[i];
1500 var tagName = (child.tagName || '').toUpperCase();
1501 if (['STYLE', 'LINK'].indexOf(tagName) > -1) {
1502 beforeChild = child;
1503 }
1504 }
1505 DOCUMENT.head.insertBefore(style, beforeChild);
1506 return css;
1507 }
1508 var idPool = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ';
1509 function nextUniqueId() {
1510 var size = 12;
1511 var id = '';
1512 while (size-- > 0) {
1513 id += idPool[Math.random() * 62 | 0];
1514 }
1515 return id;
1516 }
1517 function toArray(obj) {
1518 var array = [];
1519 for (var i = (obj || []).length >>> 0; i--;) {
1520 array[i] = obj[i];
1521 }
1522 return array;
1523 }
1524 function classArray(node) {
1525 if (node.classList) {
1526 return toArray(node.classList);
1527 } else {
1528 return (node.getAttribute('class') || '').split(' ').filter(function (i) {
1529 return i;
1530 });
1531 }
1532 }
1533 function htmlEscape(str) {
1534 return "".concat(str).replace(/&/g, '&amp;').replace(/"/g, '&quot;').replace(/'/g, '&#39;').replace(/</g, '&lt;').replace(/>/g, '&gt;');
1535 }
1536 function joinAttributes(attributes) {
1537 return Object.keys(attributes || {}).reduce(function (acc, attributeName) {
1538 return acc + "".concat(attributeName, "=\"").concat(htmlEscape(attributes[attributeName]), "\" ");
1539 }, '').trim();
1540 }
1541 function joinStyles(styles) {
1542 return Object.keys(styles || {}).reduce(function (acc, styleName) {
1543 return acc + "".concat(styleName, ": ").concat(styles[styleName].trim(), ";");
1544 }, '');
1545 }
1546 function transformIsMeaningful(transform) {
1547 return transform.size !== meaninglessTransform.size || transform.x !== meaninglessTransform.x || transform.y !== meaninglessTransform.y || transform.rotate !== meaninglessTransform.rotate || transform.flipX || transform.flipY;
1548 }
1549 function transformForSvg(_ref) {
1550 var transform = _ref.transform,
1551 containerWidth = _ref.containerWidth,
1552 iconWidth = _ref.iconWidth;
1553 var outer = {
1554 transform: "translate(".concat(containerWidth / 2, " 256)")
1555 };
1556 var innerTranslate = "translate(".concat(transform.x * 32, ", ").concat(transform.y * 32, ") ");
1557 var innerScale = "scale(".concat(transform.size / 16 * (transform.flipX ? -1 : 1), ", ").concat(transform.size / 16 * (transform.flipY ? -1 : 1), ") ");
1558 var innerRotate = "rotate(".concat(transform.rotate, " 0 0)");
1559 var inner = {
1560 transform: "".concat(innerTranslate, " ").concat(innerScale, " ").concat(innerRotate)
1561 };
1562 var path = {
1563 transform: "translate(".concat(iconWidth / 2 * -1, " -256)")
1564 };
1565 return {
1566 outer: outer,
1567 inner: inner,
1568 path: path
1569 };
1570 }
1571 function transformForCss(_ref2) {
1572 var transform = _ref2.transform,
1573 _ref2$width = _ref2.width,
1574 width = _ref2$width === void 0 ? UNITS_IN_GRID : _ref2$width,
1575 _ref2$height = _ref2.height,
1576 height = _ref2$height === void 0 ? UNITS_IN_GRID : _ref2$height,
1577 _ref2$startCentered = _ref2.startCentered,
1578 startCentered = _ref2$startCentered === void 0 ? false : _ref2$startCentered;
1579 var val = '';
1580 if (startCentered && IS_IE) {
1581 val += "translate(".concat(transform.x / d$2 - width / 2, "em, ").concat(transform.y / d$2 - height / 2, "em) ");
1582 } else if (startCentered) {
1583 val += "translate(calc(-50% + ".concat(transform.x / d$2, "em), calc(-50% + ").concat(transform.y / d$2, "em)) ");
1584 } else {
1585 val += "translate(".concat(transform.x / d$2, "em, ").concat(transform.y / d$2, "em) ");
1586 }
1587 val += "scale(".concat(transform.size / d$2 * (transform.flipX ? -1 : 1), ", ").concat(transform.size / d$2 * (transform.flipY ? -1 : 1), ") ");
1588 val += "rotate(".concat(transform.rotate, "deg) ");
1589 return val;
1590 }
1591
1592 function toHtml(abstractNodes) {
1593 var tag = abstractNodes.tag,
1594 _abstractNodes$attrib = abstractNodes.attributes,
1595 attributes = _abstractNodes$attrib === void 0 ? {} : _abstractNodes$attrib,
1596 _abstractNodes$childr = abstractNodes.children,
1597 children = _abstractNodes$childr === void 0 ? [] : _abstractNodes$childr;
1598 if (typeof abstractNodes === 'string') {
1599 return htmlEscape(abstractNodes);
1600 } else {
1601 return "<".concat(tag, " ").concat(joinAttributes(attributes), ">").concat(children.map(toHtml).join(''), "</").concat(tag, ">");
1602 }
1603 }
1604
1605 function iconFromMapping(mapping, prefix, iconName) {
1606 if (mapping && mapping[prefix] && mapping[prefix][iconName]) {
1607 return {
1608 prefix: prefix,
1609 iconName: iconName,
1610 icon: mapping[prefix][iconName]
1611 };
1612 }
1613 }
1614
1615 /**
1616 * Internal helper to bind a function known to have 4 arguments
1617 * to a given context.
1618 */
1619 var bindInternal4 = function bindInternal4(func, thisContext) {
1620 return function (a, b, c, d) {
1621 return func.call(thisContext, a, b, c, d);
1622 };
1623 };
1624
1625 /**
1626 * # Reduce
1627 *
1628 * A fast object `.reduce()` implementation.
1629 *
1630 * @param {Object} subject The object to reduce over.
1631 * @param {Function} fn The reducer function.
1632 * @param {mixed} initialValue The initial value for the reducer, defaults to subject[0].
1633 * @param {Object} thisContext The context for the reducer.
1634 * @return {mixed} The final result.
1635 */
1636 var reduce = function fastReduceObject(subject, fn, initialValue, thisContext) {
1637 var keys = Object.keys(subject),
1638 length = keys.length,
1639 iterator = thisContext !== undefined ? bindInternal4(fn, thisContext) : fn,
1640 i,
1641 key,
1642 result;
1643 if (initialValue === undefined) {
1644 i = 1;
1645 result = subject[keys[0]];
1646 } else {
1647 i = 0;
1648 result = initialValue;
1649 }
1650 for (; i < length; i++) {
1651 key = keys[i];
1652 result = iterator(result, subject[key], key, subject);
1653 }
1654 return result;
1655 };
1656
1657 /**
1658 * Return hexadecimal string for a unicode character
1659 * Returns `null` when more than one character (not bytes!) are passed
1660 * For example: 'K' → '7B'
1661 */
1662 function toHex(unicode) {
1663 if (_toConsumableArray(unicode).length !== 1) return null;
1664 return unicode.codePointAt(0).toString(16);
1665 }
1666
1667 function normalizeIcons(icons) {
1668 return Object.keys(icons).reduce(function (acc, iconName) {
1669 var icon = icons[iconName];
1670 var expanded = !!icon.icon;
1671 if (expanded) {
1672 acc[icon.iconName] = icon.icon;
1673 } else {
1674 acc[iconName] = icon;
1675 }
1676 return acc;
1677 }, {});
1678 }
1679 function defineIcons(prefix, icons) {
1680 var params = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
1681 var _params$skipHooks = params.skipHooks,
1682 skipHooks = _params$skipHooks === void 0 ? false : _params$skipHooks;
1683 var normalized = normalizeIcons(icons);
1684 if (typeof namespace.hooks.addPack === 'function' && !skipHooks) {
1685 namespace.hooks.addPack(prefix, normalizeIcons(icons));
1686 } else {
1687 namespace.styles[prefix] = _objectSpread2(_objectSpread2({}, namespace.styles[prefix] || {}), normalized);
1688 }
1689
1690 /**
1691 * Font Awesome 4 used the prefix of `fa` for all icons. With the introduction
1692 * of new styles we needed to differentiate between them. Prefix `fa` is now an alias
1693 * for `fas` so we'll ease the upgrade process for our users by automatically defining
1694 * this as well.
1695 */
1696 if (prefix === 'fas') {
1697 defineIcons('fa', icons);
1698 }
1699 }
1700
1701 var MONO = 0x1;
1702 var DUO = 0x2;
1703
1704 // New v7 compatible matchers using the style attribute to determine layer membership
1705 var modernMatches = [[DUO, /*#__PURE__*/_wrapRegExp(/path opacity="([^"]*)".*d="([^"]*)".*path.*d="([^"]*)"/, {
1706 d2: 2,
1707 d1: 3
1708 })], [DUO, /*#__PURE__*/_wrapRegExp(/path opacity="([^"]*)".*d="([^"]*)"/, {
1709 d2: 2
1710 })], [MONO, /*#__PURE__*/_wrapRegExp(/path fill="currentColor".*d="([^"]+)"/, {
1711 d1: 1
1712 })]];
1713
1714 // Old <= v6 matchers, these should rarely get used.
1715 //
1716 // Why are there so many? Over the lifecycle of version 5 and 6 we modified the
1717 // syntax for our source SVG files several times. These patterns match the
1718 // historical record and attempt to handle backwards-compatibility in rare edge
1719 // cases (loading version 6 SVG source files using the version 7 SVG parser)
1720 var legacyMatches = [[DUO, /*#__PURE__*/_wrapRegExp(/path class="([^"]*secondary[^"]*)".*d="([^"]+)".*path class="([^"]*primary[^"]*)".*d="([^"]+)"/, {
1721 attr2: 1,
1722 d2: 2,
1723 attr1: 3,
1724 d1: 4
1725 })], [DUO, /*#__PURE__*/_wrapRegExp(/path class="([^"]*primary[^"]*)".*d="([^"]+)".*path class="([^"]*secondary[^"]*)".*d="([^"]+)"/, {
1726 attr1: 1,
1727 d1: 2,
1728 attr2: 3,
1729 d2: 4
1730 })], [DUO, /*#__PURE__*/_wrapRegExp(/path class="([^"]*primary[^"]*)".*d="([^"]+)"/, {
1731 attr1: 1,
1732 d1: 2
1733 })], [DUO, /*#__PURE__*/_wrapRegExp(/path class="([^"]*secondary[^"]*)".*d="([^"]+)"/, {
1734 attr2: 1,
1735 d2: 2
1736 })], [DUO, /*#__PURE__*/_wrapRegExp(/path d="([^"]+)".*class="([^"]*secondary[^"]*)".*path d="([^"]+)".*class="([^"]*primary[^"]*)"/, {
1737 d2: 1,
1738 attr2: 2,
1739 d1: 3,
1740 attr1: 4
1741 })], [DUO, /*#__PURE__*/_wrapRegExp(/path d="([^"]+)".*class="([^"]*primary[^"]*)".*path d="([^"]+)".*class="([^"]*secondary[^"]*)"/, {
1742 d1: 1,
1743 attr1: 2,
1744 d2: 3,
1745 attr2: 4
1746 })], [DUO, /*#__PURE__*/_wrapRegExp(/path d="([^"]+)".*class="([^"]*primary[^"]*)"/, {
1747 d1: 1,
1748 attr1: 2
1749 })], [DUO, /*#__PURE__*/_wrapRegExp(/path d="([^"]+)".*class="([^"]*secondary[^"]*)"/, {
1750 d2: 1,
1751 attr2: 2
1752 })], [DUO, /*#__PURE__*/_wrapRegExp(/path d="([^"]+)".*path d="([^"]+)"/, {
1753 d1: 1,
1754 d2: 2
1755 })], [MONO, /*#__PURE__*/_wrapRegExp(/path d="([^"]+)"/, {
1756 d1: 1
1757 })], [MONO, /*#__PURE__*/_wrapRegExp(/path style="([^"]+)".*d="([^"]+)"/, {
1758 attr1: 1,
1759 d1: 2
1760 })]];
1761
1762 var styles = namespace.styles,
1763 shims = namespace.shims;
1764 var FAMILY_NAMES = Object.keys(PREFIX_TO_LONG_STYLE);
1765 var PREFIXES_FOR_FAMILY = FAMILY_NAMES.reduce(function (acc, familyId) {
1766 acc[familyId] = Object.keys(PREFIX_TO_LONG_STYLE[familyId]);
1767 return acc;
1768 }, {});
1769 var _defaultUsablePrefix = null;
1770 var _byUnicode = {};
1771 var _byLigature = {};
1772 var _byOldName = {};
1773 var _byOldUnicode = {};
1774 var _byAlias = {};
1775 function isReserved(name) {
1776 return ~RESERVED_CLASSES.indexOf(name);
1777 }
1778 function getIconName(cssPrefix, cls) {
1779 var parts = cls.split('-');
1780 var prefix = parts[0];
1781 var iconName = parts.slice(1).join('-');
1782 if (prefix === cssPrefix && iconName !== '' && !isReserved(iconName)) {
1783 return iconName;
1784 } else {
1785 return null;
1786 }
1787 }
1788 var build = function build() {
1789 var lookup = function lookup(reducer) {
1790 return reduce(styles, function (o$$1, style, prefix) {
1791 o$$1[prefix] = reduce(style, reducer, {});
1792 return o$$1;
1793 }, {});
1794 };
1795 _byUnicode = lookup(function (acc, icon, iconName) {
1796 if (icon[3]) {
1797 acc[icon[3]] = iconName;
1798 }
1799 if (icon[2]) {
1800 var aliases = icon[2].filter(function (a$$1) {
1801 return typeof a$$1 === 'number';
1802 });
1803 aliases.forEach(function (alias) {
1804 acc[alias.toString(16)] = iconName;
1805 });
1806 }
1807 return acc;
1808 });
1809 _byLigature = lookup(function (acc, icon, iconName) {
1810 acc[iconName] = iconName;
1811 if (icon[2]) {
1812 var aliases = icon[2].filter(function (a$$1) {
1813 return typeof a$$1 === 'string';
1814 });
1815 aliases.forEach(function (alias) {
1816 acc[alias] = iconName;
1817 });
1818 }
1819 return acc;
1820 });
1821 _byAlias = lookup(function (acc, icon, iconName) {
1822 var aliases = icon[2];
1823 acc[iconName] = iconName;
1824 aliases.forEach(function (alias) {
1825 acc[alias] = iconName;
1826 });
1827 return acc;
1828 });
1829
1830 // If we have a Kit, we can't determine if regular is available since we
1831 // could be auto-fetching it. We'll have to assume that it is available.
1832 var hasRegular = 'far' in styles || config.autoFetchSvg;
1833 var shimLookups = reduce(shims, function (acc, shim) {
1834 var maybeNameMaybeUnicode = shim[0];
1835 var prefix = shim[1];
1836 var iconName = shim[2];
1837 if (prefix === 'far' && !hasRegular) {
1838 prefix = 'fas';
1839 }
1840 if (typeof maybeNameMaybeUnicode === 'string') {
1841 acc.names[maybeNameMaybeUnicode] = {
1842 prefix: prefix,
1843 iconName: iconName
1844 };
1845 }
1846 if (typeof maybeNameMaybeUnicode === 'number') {
1847 acc.unicodes[maybeNameMaybeUnicode.toString(16)] = {
1848 prefix: prefix,
1849 iconName: iconName
1850 };
1851 }
1852 return acc;
1853 }, {
1854 names: {},
1855 unicodes: {}
1856 });
1857 _byOldName = shimLookups.names;
1858 _byOldUnicode = shimLookups.unicodes;
1859 _defaultUsablePrefix = getCanonicalPrefix(config.styleDefault, {
1860 family: config.familyDefault
1861 });
1862 };
1863 onChange(function (c$$1) {
1864 _defaultUsablePrefix = getCanonicalPrefix(c$$1.styleDefault, {
1865 family: config.familyDefault
1866 });
1867 });
1868 build();
1869 function byUnicode(prefix, unicode) {
1870 return (_byUnicode[prefix] || {})[unicode];
1871 }
1872 function byLigature(prefix, ligature) {
1873 return (_byLigature[prefix] || {})[ligature];
1874 }
1875 function byAlias(prefix, alias) {
1876 return (_byAlias[prefix] || {})[alias];
1877 }
1878 function byOldName(name) {
1879 return _byOldName[name] || {
1880 prefix: null,
1881 iconName: null
1882 };
1883 }
1884 function byOldUnicode(unicode) {
1885 var oldUnicode = _byOldUnicode[unicode];
1886 var newUnicode = byUnicode('fas', unicode);
1887 return oldUnicode || (newUnicode ? {
1888 prefix: 'fas',
1889 iconName: newUnicode
1890 } : null) || {
1891 prefix: null,
1892 iconName: null
1893 };
1894 }
1895 function getDefaultUsablePrefix() {
1896 return _defaultUsablePrefix;
1897 }
1898 var emptyCanonicalIcon = function emptyCanonicalIcon() {
1899 return {
1900 prefix: null,
1901 iconName: null,
1902 rest: []
1903 };
1904 };
1905 function getFamilyId(values) {
1906 var family = u;
1907 var famProps = FAMILY_NAMES.reduce(function (acc, familyId) {
1908 acc[familyId] = "".concat(config.cssPrefix, "-").concat(familyId);
1909 return acc;
1910 }, {});
1911 xl.forEach(function (familyId) {
1912 if (values.includes(famProps[familyId]) || values.some(function (v$$1) {
1913 return PREFIXES_FOR_FAMILY[familyId].includes(v$$1);
1914 })) {
1915 family = familyId;
1916 }
1917 });
1918 return family;
1919 }
1920 function getCanonicalPrefix(styleOrPrefix) {
1921 var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
1922 var _params$family = params.family,
1923 family = _params$family === void 0 ? u : _params$family;
1924 var style = PREFIX_TO_STYLE[family][styleOrPrefix];
1925
1926 // handles the exception of passing in only a family of 'duotone' with no style
1927 if (family === l && !styleOrPrefix) {
1928 return 'fad';
1929 }
1930 var prefix = STYLE_TO_PREFIX[family][styleOrPrefix] || STYLE_TO_PREFIX[family][style];
1931 var defined = styleOrPrefix in namespace.styles ? styleOrPrefix : null;
1932 var result = prefix || defined || null;
1933 return result;
1934 }
1935 function moveNonFaClassesToRest(classNames) {
1936 var rest = [];
1937 var iconName = null;
1938 classNames.forEach(function (cls) {
1939 var result = getIconName(config.cssPrefix, cls);
1940 if (result) {
1941 iconName = result;
1942 } else if (cls) {
1943 rest.push(cls);
1944 }
1945 });
1946 return {
1947 iconName: iconName,
1948 rest: rest
1949 };
1950 }
1951 function sortedUniqueValues(arr) {
1952 return arr.sort().filter(function (value, index, arr) {
1953 return arr.indexOf(value) === index;
1954 });
1955 }
1956 var _faCombinedClasses = ha.concat(at);
1957 function getCanonicalIcon(values) {
1958 var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
1959 var _params$skipLookups = params.skipLookups,
1960 skipLookups = _params$skipLookups === void 0 ? false : _params$skipLookups;
1961 var givenPrefix = null;
1962 var faStyleOrFamilyClasses = sortedUniqueValues(values.filter(function (cls) {
1963 return _faCombinedClasses.includes(cls);
1964 }));
1965 var nonStyleOrFamilyClasses = sortedUniqueValues(values.filter(function (cls) {
1966 return !_faCombinedClasses.includes(cls);
1967 }));
1968 var faStyles = faStyleOrFamilyClasses.filter(function (cls) {
1969 givenPrefix = cls;
1970 return !dl.includes(cls);
1971 });
1972 var _faStyles = _slicedToArray(faStyles, 1),
1973 _faStyles$ = _faStyles[0],
1974 styleFromValues = _faStyles$ === void 0 ? null : _faStyles$;
1975 var family = getFamilyId(faStyleOrFamilyClasses);
1976 var canonical = _objectSpread2(_objectSpread2({}, moveNonFaClassesToRest(nonStyleOrFamilyClasses)), {}, {
1977 prefix: getCanonicalPrefix(styleFromValues, {
1978 family: family
1979 })
1980 });
1981 return _objectSpread2(_objectSpread2(_objectSpread2({}, canonical), getDefaultCanonicalPrefix({
1982 values: values,
1983 family: family,
1984 styles: styles,
1985 config: config,
1986 canonical: canonical,
1987 givenPrefix: givenPrefix
1988 })), applyShimAndAlias(skipLookups, givenPrefix, canonical));
1989 }
1990 function applyShimAndAlias(skipLookups, givenPrefix, canonical) {
1991 var prefix = canonical.prefix,
1992 iconName = canonical.iconName;
1993 if (skipLookups || !prefix || !iconName) {
1994 return {
1995 prefix: prefix,
1996 iconName: iconName
1997 };
1998 }
1999 var shim = givenPrefix === 'fa' ? byOldName(iconName) : {};
2000 var aliasIconName = byAlias(prefix, iconName);
2001 iconName = shim.iconName || aliasIconName || iconName;
2002 prefix = shim.prefix || prefix;
2003 if (prefix === 'far' && !styles['far'] && styles['fas'] && !config.autoFetchSvg) {
2004 // Allow a fallback from the regular style to solid if regular is not available
2005 // but only if we aren't auto-fetching SVGs
2006 prefix = 'fas';
2007 }
2008 return {
2009 prefix: prefix,
2010 iconName: iconName
2011 };
2012 }
2013 var newCanonicalFamilies = xl.filter(function (familyId) {
2014 return familyId !== u || familyId !== l;
2015 });
2016 var newCanonicalStyles = Object.keys(da).filter(function (key) {
2017 return key !== u;
2018 }).map(function (key) {
2019 return Object.keys(da[key]);
2020 }).flat();
2021 function getDefaultCanonicalPrefix(prefixOptions) {
2022 var values = prefixOptions.values,
2023 family = prefixOptions.family,
2024 canonical = prefixOptions.canonical,
2025 _prefixOptions$givenP = prefixOptions.givenPrefix,
2026 givenPrefix = _prefixOptions$givenP === void 0 ? '' : _prefixOptions$givenP,
2027 _prefixOptions$styles = prefixOptions.styles,
2028 styles = _prefixOptions$styles === void 0 ? {} : _prefixOptions$styles,
2029 _prefixOptions$config = prefixOptions.config,
2030 config$$1 = _prefixOptions$config === void 0 ? {} : _prefixOptions$config;
2031 var isDuotoneFamily = family === l;
2032 var valuesHasDuotone = values.includes('fa-duotone') || values.includes('fad');
2033 var defaultFamilyIsDuotone = config$$1.familyDefault === 'duotone';
2034 var canonicalPrefixIsDuotone = canonical.prefix === 'fad' || canonical.prefix === 'fa-duotone';
2035 if (!isDuotoneFamily && (valuesHasDuotone || defaultFamilyIsDuotone || canonicalPrefixIsDuotone)) {
2036 canonical.prefix = 'fad';
2037 }
2038 if (values.includes('fa-brands') || values.includes('fab')) {
2039 canonical.prefix = 'fab';
2040 }
2041 if (!canonical.prefix && newCanonicalFamilies.includes(family)) {
2042 var validPrefix = Object.keys(styles).find(function (key) {
2043 return newCanonicalStyles.includes(key);
2044 });
2045 if (validPrefix || config$$1.autoFetchSvg) {
2046 var defaultPrefix = Ql.get(family).defaultShortPrefixId;
2047 canonical.prefix = defaultPrefix;
2048 canonical.iconName = byAlias(canonical.prefix, canonical.iconName) || canonical.iconName;
2049 }
2050 }
2051 if (canonical.prefix === 'fa' || givenPrefix === 'fa') {
2052 // The fa prefix is not canonical. So if it has made it through until this point
2053 // we will shift it to the correct prefix.
2054 canonical.prefix = getDefaultUsablePrefix() || 'fas';
2055 }
2056 return canonical;
2057 }
2058
2059 var Library = /*#__PURE__*/function () {
2060 function Library() {
2061 _classCallCheck(this, Library);
2062 this.definitions = {};
2063 }
2064 return _createClass(Library, [{
2065 key: "add",
2066 value: function add() {
2067 var _this = this;
2068 for (var _len = arguments.length, definitions = new Array(_len), _key = 0; _key < _len; _key++) {
2069 definitions[_key] = arguments[_key];
2070 }
2071 var additions = definitions.reduce(this._pullDefinitions, {});
2072 Object.keys(additions).forEach(function (key) {
2073 _this.definitions[key] = _objectSpread2(_objectSpread2({}, _this.definitions[key] || {}), additions[key]);
2074 defineIcons(key, additions[key]);
2075
2076 // To keep support for older Classic styles, also add longer prefixes
2077 var longPrefix = PREFIX_TO_LONG_STYLE[u][key];
2078 if (longPrefix) defineIcons(longPrefix, additions[key]);
2079 build();
2080 });
2081 }
2082 }, {
2083 key: "reset",
2084 value: function reset() {
2085 this.definitions = {};
2086 }
2087 }, {
2088 key: "_pullDefinitions",
2089 value: function _pullDefinitions(additions, definition) {
2090 var normalized = definition.prefix && definition.iconName && definition.icon ? {
2091 0: definition
2092 } : definition;
2093 Object.keys(normalized).map(function (key) {
2094 var _normalized$key = normalized[key],
2095 prefix = _normalized$key.prefix,
2096 iconName = _normalized$key.iconName,
2097 icon = _normalized$key.icon;
2098 var aliases = icon[2];
2099 if (!additions[prefix]) additions[prefix] = {};
2100 if (aliases.length > 0) {
2101 aliases.forEach(function (alias) {
2102 if (typeof alias === 'string') {
2103 additions[prefix][alias] = icon;
2104 }
2105 });
2106 }
2107 additions[prefix][iconName] = icon;
2108 });
2109 return additions;
2110 }
2111 }]);
2112 }();
2113
2114 function findIconDefinition(iconLookup) {
2115 if (iconLookup.prefix === 'fa') {
2116 iconLookup.prefix = 'fas';
2117 }
2118 var iconName = iconLookup.iconName;
2119 var prefix = iconLookup.prefix || getDefaultUsablePrefix();
2120 if (!iconName) return;
2121 iconName = byAlias(prefix, iconName) || iconName;
2122 return iconFromMapping(library.definitions, prefix, iconName) || iconFromMapping(namespace.styles, prefix, iconName);
2123 }
2124 var library = new Library();
2125 var noAuto = function noAuto() {
2126 config.autoReplaceSvg = false;
2127 config.observeMutations = false;
2128 callHooks('noAuto');
2129 };
2130 var dom = {
2131 i2svg: function i2svg() {
2132 var params = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
2133 if (IS_DOM) {
2134 callHooks('beforeI2svg', params);
2135 callProvided('pseudoElements2svg', params);
2136 return callProvided('i2svg', params);
2137 } else {
2138 return Promise.reject(new Error('Operation requires a DOM of some kind.'));
2139 }
2140 },
2141 watch: function watch() {
2142 var params = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
2143 var autoReplaceSvgRoot = params.autoReplaceSvgRoot;
2144 if (config.autoReplaceSvg === false) {
2145 config.autoReplaceSvg = true;
2146 }
2147 config.observeMutations = true;
2148 domready(function () {
2149 autoReplace({
2150 autoReplaceSvgRoot: autoReplaceSvgRoot
2151 });
2152 callHooks('watch', params);
2153 });
2154 }
2155 };
2156 var parse = {
2157 icon: function icon(_icon) {
2158 if (_icon === null) {
2159 return null;
2160 }
2161 if (_typeof(_icon) === 'object' && _icon.prefix && _icon.iconName) {
2162 return {
2163 prefix: _icon.prefix,
2164 iconName: byAlias(_icon.prefix, _icon.iconName) || _icon.iconName
2165 };
2166 }
2167 if (Array.isArray(_icon) && _icon.length === 2) {
2168 var iconName = _icon[1].indexOf('fa-') === 0 ? _icon[1].slice(3) : _icon[1];
2169 var prefix = getCanonicalPrefix(_icon[0]);
2170 return {
2171 prefix: prefix,
2172 iconName: byAlias(prefix, iconName) || iconName
2173 };
2174 }
2175 if (typeof _icon === 'string' && (_icon.indexOf("".concat(config.cssPrefix, "-")) > -1 || _icon.match(ICON_SELECTION_SYNTAX_PATTERN))) {
2176 var canonicalIcon = getCanonicalIcon(_icon.split(' '), {
2177 skipLookups: true
2178 });
2179 return {
2180 prefix: canonicalIcon.prefix || getDefaultUsablePrefix(),
2181 iconName: byAlias(canonicalIcon.prefix, canonicalIcon.iconName) || canonicalIcon.iconName
2182 };
2183 }
2184 if (typeof _icon === 'string') {
2185 var _prefix = getDefaultUsablePrefix();
2186 return {
2187 prefix: _prefix,
2188 iconName: byAlias(_prefix, _icon) || _icon
2189 };
2190 }
2191 }
2192 };
2193 var api = {
2194 noAuto: noAuto,
2195 config: config,
2196 dom: dom,
2197 parse: parse,
2198 library: library,
2199 findIconDefinition: findIconDefinition,
2200 toHtml: toHtml
2201 };
2202 var autoReplace = function autoReplace() {
2203 var params = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
2204 var _params$autoReplaceSv = params.autoReplaceSvgRoot,
2205 autoReplaceSvgRoot = _params$autoReplaceSv === void 0 ? DOCUMENT : _params$autoReplaceSv;
2206 if ((Object.keys(namespace.styles).length > 0 || config.autoFetchSvg) && IS_DOM && config.autoReplaceSvg) api.dom.i2svg({
2207 node: autoReplaceSvgRoot
2208 });
2209 };
2210
2211 var baseStyles = ":root, :host {\n --fa-font-solid: normal 900 1em/1 'Font Awesome 7 Free';\n --fa-font-regular: normal 400 1em/1 'Font Awesome 7 Free';\n --fa-font-light: normal 300 1em/1 'Font Awesome 7 Pro';\n --fa-font-thin: normal 100 1em/1 'Font Awesome 7 Pro';\n --fa-font-duotone: normal 900 1em/1 'Font Awesome 7 Duotone';\n --fa-font-duotone-regular: normal 400 1em/1 'Font Awesome 7 Duotone';\n --fa-font-duotone-light: normal 300 1em/1 'Font Awesome 7 Duotone';\n --fa-font-duotone-thin: normal 100 1em/1 'Font Awesome 7 Duotone';\n --fa-font-brands: normal 400 1em/1 'Font Awesome 7 Brands';\n --fa-font-sharp-solid: normal 900 1em/1 'Font Awesome 7 Sharp';\n --fa-font-sharp-regular: normal 400 1em/1 'Font Awesome 7 Sharp';\n --fa-font-sharp-light: normal 300 1em/1 'Font Awesome 7 Sharp';\n --fa-font-sharp-thin: normal 100 1em/1 'Font Awesome 7 Sharp';\n --fa-font-sharp-duotone-solid: normal 900 1em/1 'Font Awesome 7 Sharp Duotone';\n --fa-font-sharp-duotone-regular: normal 400 1em/1 'Font Awesome 7 Sharp Duotone';\n --fa-font-sharp-duotone-light: normal 300 1em/1 'Font Awesome 7 Sharp Duotone';\n --fa-font-sharp-duotone-thin: normal 100 1em/1 'Font Awesome 7 Sharp Duotone';\n --fa-font-slab-regular: normal 400 1em/1 'Font Awesome 7 Slab';\n --fa-font-slab-press-regular: normal 400 1em/1 'Font Awesome 7 Slab Press';\n --fa-font-slab-duo-regular: normal 400 1em/1 'Font Awesome 7 Slab Duo';\n --fa-font-slab-press-duo-regular: normal 400 1em/1 'Font Awesome 7 Slab Press Duo';\n --fa-font-pixel-regular: normal 400 1em/1 'Font Awesome 7 Pixel';\n --fa-font-mosaic-solid: normal 900 1em/1 'Font Awesome 7 Mosaic';\n --fa-font-vellum-solid: normal 900 1em/1 'Font Awesome 7 Vellum';\n --fa-font-whiteboard-semibold: normal 600 1em/1 'Font Awesome 7 Whiteboard';\n --fa-font-thumbprint-light: normal 300 1em/1 'Font Awesome 7 Thumbprint';\n --fa-font-notdog-solid: normal 900 1em/1 'Font Awesome 7 Notdog';\n --fa-font-notdog-duo-solid: normal 900 1em/1 'Font Awesome 7 Notdog Duo';\n --fa-font-etch-solid: normal 900 1em/1 'Font Awesome 7 Etch';\n --fa-font-graphite-thin: normal 100 1em/1 'Font Awesome 7 Graphite';\n --fa-font-jelly-regular: normal 400 1em/1 'Font Awesome 7 Jelly';\n --fa-font-jelly-fill-regular: normal 400 1em/1 'Font Awesome 7 Jelly Fill';\n --fa-font-jelly-duo-regular: normal 400 1em/1 'Font Awesome 7 Jelly Duo';\n --fa-font-chisel-regular: normal 400 1em/1 'Font Awesome 7 Chisel';\n --fa-font-utility-semibold: normal 600 1em/1 'Font Awesome 7 Utility';\n --fa-font-utility-duo-semibold: normal 600 1em/1 'Font Awesome 7 Utility Duo';\n --fa-font-utility-fill-semibold: normal 600 1em/1 'Font Awesome 7 Utility Fill';\n}\n\n.svg-inline--fa {\n box-sizing: content-box;\n display: var(--fa-display, inline-block);\n height: 1em;\n overflow: visible;\n vertical-align: -0.125em;\n width: var(--fa-width, 1.25em);\n}\n.svg-inline--fa.fa-2xs {\n vertical-align: 0.1em;\n}\n.svg-inline--fa.fa-xs {\n vertical-align: 0em;\n}\n.svg-inline--fa.fa-sm {\n vertical-align: -0.0714285714em;\n}\n.svg-inline--fa.fa-lg {\n vertical-align: -0.2em;\n}\n.svg-inline--fa.fa-xl {\n vertical-align: -0.25em;\n}\n.svg-inline--fa.fa-2xl {\n vertical-align: -0.3125em;\n}\n.svg-inline--fa.fa-pull-left,\n.svg-inline--fa .fa-pull-start {\n float: inline-start;\n margin-inline-end: var(--fa-pull-margin, 0.3em);\n}\n.svg-inline--fa.fa-pull-right,\n.svg-inline--fa .fa-pull-end {\n float: inline-end;\n margin-inline-start: var(--fa-pull-margin, 0.3em);\n}\n.svg-inline--fa.fa-li {\n width: var(--fa-li-width, 2em);\n inset-inline-start: calc(-1 * var(--fa-li-width, 2em));\n inset-block-start: 0.25em; /* syncing vertical alignment with Web Font rendering */\n}\n\n.fa-layers-counter, .fa-layers-text {\n display: inline-block;\n position: absolute;\n text-align: center;\n}\n\n.fa-layers {\n display: inline-block;\n height: 1em;\n position: relative;\n text-align: center;\n vertical-align: -0.125em;\n width: var(--fa-width, 1.25em);\n}\n.fa-layers .svg-inline--fa {\n inset: 0;\n margin: auto;\n position: absolute;\n transform-origin: center center;\n}\n\n.fa-layers-text {\n left: 50%;\n top: 50%;\n transform: translate(-50%, -50%);\n transform-origin: center center;\n}\n\n.fa-layers-counter {\n background-color: var(--fa-counter-background-color, #ff253a);\n border-radius: var(--fa-counter-border-radius, 1em);\n box-sizing: border-box;\n color: var(--fa-inverse, #fff);\n line-height: var(--fa-counter-line-height, 1);\n max-width: var(--fa-counter-max-width, 5em);\n min-width: var(--fa-counter-min-width, 1.5em);\n overflow: hidden;\n padding: var(--fa-counter-padding, 0.25em 0.5em);\n right: var(--fa-right, 0);\n text-overflow: ellipsis;\n top: var(--fa-top, 0);\n transform: scale(var(--fa-counter-scale, 0.25));\n transform-origin: top right;\n}\n\n.fa-layers-bottom-right {\n bottom: var(--fa-bottom, 0);\n right: var(--fa-right, 0);\n top: auto;\n transform: scale(var(--fa-layers-scale, 0.25));\n transform-origin: bottom right;\n}\n\n.fa-layers-bottom-left {\n bottom: var(--fa-bottom, 0);\n left: var(--fa-left, 0);\n right: auto;\n top: auto;\n transform: scale(var(--fa-layers-scale, 0.25));\n transform-origin: bottom left;\n}\n\n.fa-layers-top-right {\n top: var(--fa-top, 0);\n right: var(--fa-right, 0);\n transform: scale(var(--fa-layers-scale, 0.25));\n transform-origin: top right;\n}\n\n.fa-layers-top-left {\n left: var(--fa-left, 0);\n right: auto;\n top: var(--fa-top, 0);\n transform: scale(var(--fa-layers-scale, 0.25));\n transform-origin: top left;\n}\n\n.fa-1x {\n font-size: 1em;\n}\n\n.fa-2x {\n font-size: 2em;\n}\n\n.fa-3x {\n font-size: 3em;\n}\n\n.fa-4x {\n font-size: 4em;\n}\n\n.fa-5x {\n font-size: 5em;\n}\n\n.fa-6x {\n font-size: 6em;\n}\n\n.fa-7x {\n font-size: 7em;\n}\n\n.fa-8x {\n font-size: 8em;\n}\n\n.fa-9x {\n font-size: 9em;\n}\n\n.fa-10x {\n font-size: 10em;\n}\n\n.fa-2xs {\n font-size: calc(10 / 16 * 1em); /* converts a 10px size into an em-based value that's relative to the scale's 16px base */\n line-height: calc(1 / 10 * 1em); /* sets the line-height of the icon back to that of it's parent */\n vertical-align: calc((6 / 10 - 0.375) * 1em); /* vertically centers the icon taking into account the surrounding text's descender */\n}\n\n.fa-xs {\n font-size: calc(12 / 16 * 1em); /* converts a 12px size into an em-based value that's relative to the scale's 16px base */\n line-height: calc(1 / 12 * 1em); /* sets the line-height of the icon back to that of it's parent */\n vertical-align: calc((6 / 12 - 0.375) * 1em); /* vertically centers the icon taking into account the surrounding text's descender */\n}\n\n.fa-sm {\n font-size: calc(14 / 16 * 1em); /* converts a 14px size into an em-based value that's relative to the scale's 16px base */\n line-height: calc(1 / 14 * 1em); /* sets the line-height of the icon back to that of it's parent */\n vertical-align: calc((6 / 14 - 0.375) * 1em); /* vertically centers the icon taking into account the surrounding text's descender */\n}\n\n.fa-lg {\n font-size: calc(20 / 16 * 1em); /* converts a 20px size into an em-based value that's relative to the scale's 16px base */\n line-height: calc(1 / 20 * 1em); /* sets the line-height of the icon back to that of it's parent */\n vertical-align: calc((6 / 20 - 0.375) * 1em); /* vertically centers the icon taking into account the surrounding text's descender */\n}\n\n.fa-xl {\n font-size: calc(24 / 16 * 1em); /* converts a 24px size into an em-based value that's relative to the scale's 16px base */\n line-height: calc(1 / 24 * 1em); /* sets the line-height of the icon back to that of it's parent */\n vertical-align: calc((6 / 24 - 0.375) * 1em); /* vertically centers the icon taking into account the surrounding text's descender */\n}\n\n.fa-2xl {\n font-size: calc(32 / 16 * 1em); /* converts a 32px size into an em-based value that's relative to the scale's 16px base */\n line-height: calc(1 / 32 * 1em); /* sets the line-height of the icon back to that of it's parent */\n vertical-align: calc((6 / 32 - 0.375) * 1em); /* vertically centers the icon taking into account the surrounding text's descender */\n}\n\n.fa-width-auto {\n --fa-width: auto;\n}\n\n.fa-fw,\n.fa-width-fixed {\n --fa-width: 1.25em;\n}\n\n.fa-canvas-square {\n padding-block: 0.125em;\n margin-block-end: -0.125em;\n}\n\n.fa-canvas-roomy {\n padding-block: 0.25em;\n padding-inline: 0.125em;\n margin-block-end: -0.25em;\n box-sizing: content-box;\n}\n\n.fa-ul {\n list-style-type: none;\n margin-inline-start: var(--fa-li-margin, 2.5em);\n padding-inline-start: 0;\n}\n.fa-ul > li {\n position: relative;\n}\n\n.fa-li {\n inset-inline-start: calc(-1 * var(--fa-li-width, 2em));\n position: absolute;\n text-align: center;\n width: var(--fa-li-width, 2em);\n line-height: inherit;\n}\n\n/* Heads Up: Bordered Icons will not be supported in the future!\n - This feature will be deprecated in the next major release of Font Awesome (v8)!\n - You may continue to use it in this version *v7), but it will not be supported in Font Awesome v8.\n*/\n/* Notes:\n* --@{v.$css-prefix}-border-width = 1/16 by default (to render as ~1px based on a 16px default font-size)\n* --@{v.$css-prefix}-border-padding =\n ** 3/16 for vertical padding (to give ~2px of vertical whitespace around an icon considering it's vertical alignment)\n ** 4/16 for horizontal padding (to give ~4px of horizontal whitespace around an icon)\n*/\n.fa-border {\n border-color: var(--fa-border-color, #eee);\n border-radius: var(--fa-border-radius, 0.1em);\n border-style: var(--fa-border-style, solid);\n border-width: var(--fa-border-width, 0.0625em);\n box-sizing: var(--fa-border-box-sizing, content-box);\n padding: var(--fa-border-padding, 0.1875em 0.25em);\n}\n\n.fa-pull-left,\n.fa-pull-start {\n float: inline-start;\n margin-inline-end: var(--fa-pull-margin, 0.3em);\n}\n\n.fa-pull-right,\n.fa-pull-end {\n float: inline-end;\n margin-inline-start: var(--fa-pull-margin, 0.3em);\n}\n\n.fa-beat {\n animation-name: fa-beat;\n animation-delay: var(--fa-animation-delay, 0s);\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 1s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, ease-in-out);\n}\n\n.fa-bounce {\n animation-name: fa-bounce;\n animation-delay: var(--fa-animation-delay, 0s);\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 1s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1));\n}\n\n.fa-fade {\n animation-name: fa-fade;\n animation-delay: var(--fa-animation-delay, 0s);\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 1s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, ease-in-out);\n}\n\n.fa-beat-fade {\n animation-name: fa-beat-fade;\n animation-delay: var(--fa-animation-delay, 0s);\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 1s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, ease-in-out);\n}\n\n.fa-flip {\n animation-name: fa-flip;\n animation-delay: var(--fa-animation-delay, 0s);\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 1.5s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, ease-in-out);\n}\n\n.fa-flip-360 {\n animation-name: fa-flip-360;\n animation-delay: var(--fa-animation-delay, 0s);\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 1s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, ease-in-out);\n}\n\n.fa-shake {\n animation-name: fa-shake;\n animation-delay: var(--fa-animation-delay, 0s);\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 0.75s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, ease-in-out);\n}\n\n.fa-spin {\n animation-name: fa-spin;\n animation-delay: var(--fa-animation-delay, 0s);\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 2s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, linear);\n}\n\n.fa-spin-reverse {\n --fa-animation-direction: reverse;\n}\n\n.fa-pulse,\n.fa-spin-pulse {\n animation-name: fa-spin;\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 1s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, steps(8));\n}\n\n.fa-spin-snap {\n animation-name: fa-spin-snap;\n animation-delay: var(--fa-animation-delay, 0s);\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 3s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, linear);\n}\n\n.fa-spin-snap-4 {\n animation-name: fa-spin-snap-4;\n animation-delay: var(--fa-animation-delay, 0s);\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 2.4s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, linear);\n}\n\n.fa-spin-snap-8 {\n animation-name: fa-spin-snap-8;\n animation-delay: var(--fa-animation-delay, 0s);\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 4s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, linear);\n}\n\n.fa-buzz {\n animation-name: fa-buzz;\n animation-delay: var(--fa-animation-delay, 0s);\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 0.6s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, linear);\n}\n\n.fa-wag {\n animation-name: fa-wag;\n animation-delay: var(--fa-animation-delay, 0s);\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 0.9s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, ease-out);\n transform-origin: bottom center;\n}\n\n.fa-float {\n animation-name: fa-float;\n animation-delay: var(--fa-animation-delay, 0s);\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 3s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, ease-in-out);\n will-change: transform;\n}\n\n.fa-swing {\n animation-name: fa-swing;\n animation-delay: var(--fa-animation-delay, 0s);\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 1.2s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, ease-out);\n transform-origin: top center;\n}\n\n.fa-jello {\n animation-name: fa-jello;\n animation-delay: var(--fa-animation-delay, 0s);\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 0.9s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, ease-out);\n}\n\n@media (prefers-reduced-motion: reduce) {\n .fa-beat,\n .fa-bounce,\n .fa-fade,\n .fa-beat-fade,\n .fa-flip,\n .fa-flip-360,\n .fa-pulse,\n .fa-shake,\n .fa-spin,\n .fa-spin-pulse,\n .fa-buzz,\n .fa-float,\n .fa-jello,\n .fa-spin-snap,\n .fa-spin-snap-4,\n .fa-spin-snap-8,\n .fa-swing,\n .fa-wag {\n animation: none !important;\n transition: none !important;\n }\n}\n@keyframes fa-beat {\n 0% {\n transform: scale(1);\n }\n 25% {\n transform: scale(calc(1.25 * var(--fa-beat-scale, 1.25)));\n }\n 45% {\n transform: scale(calc(1.22 * var(--fa-beat-scale, 1.22)));\n }\n 65% {\n transform: scale(calc(1.25 * var(--fa-beat-scale, 1.25)));\n }\n 90% {\n transform: scale(1);\n }\n}\n@keyframes fa-bounce {\n 0% {\n transform: scale(1, 1) translateY(0);\n animation-timing-function: var(--fa-animation-timing);\n }\n 14% {\n transform: scale(var(--fa-bounce-start-scale-x, 1.06), var(--fa-bounce-start-scale-y, 0.94)) translateY(var(--fa-bounce-anticipation, 3px));\n animation-timing-function: cubic-bezier(0.33, 0, 0.66, 0.33);\n }\n 32% {\n transform: scale(var(--fa-bounce-jump-scale-x, 0.94), var(--fa-bounce-jump-scale-y, 1.12)) translateY(calc(-1 * var(--fa-bounce-height, 0.5em)));\n animation-timing-function: cubic-bezier(0.33, 0.66, 0.66, 1);\n }\n 52% {\n transform: scale(1, 1) translateY(calc(-1 * var(--fa-bounce-height, 0.5em) * 1.1));\n animation-timing-function: cubic-bezier(0.5, 0, 1, 0.5);\n }\n 70% {\n transform: scale(var(--fa-bounce-land-scale-x, 1.06), var(--fa-bounce-land-scale-y, 0.92)) translateY(0);\n animation-timing-function: cubic-bezier(0.33, 0.33, 0.66, 1);\n }\n 85% {\n transform: scale(0.98, 1.04) translateY(calc(-2px * var(--fa-bounce-rebound, 1)));\n animation-timing-function: cubic-bezier(0.33, 0, 0.66, 1);\n }\n 100% {\n transform: scale(1, 1) translateY(0);\n }\n}\n@keyframes fa-fade {\n 0% {\n opacity: 1;\n transform: scale(1);\n animation-timing-function: cubic-bezier(0.2, 0, 0.4, 1);\n }\n 40% {\n opacity: var(--fa-fade-opacity, 0.4);\n transform: scale(0.98);\n animation-timing-function: cubic-bezier(0.4, 0, 0.6, 1);\n }\n 100% {\n opacity: 1;\n transform: scale(1);\n }\n}\n@keyframes fa-beat-fade {\n 0% {\n opacity: var(--fa-beat-fade-opacity, 0.4);\n transform: scale(1);\n animation-timing-function: cubic-bezier(0.2, 0, 0.4, 1);\n }\n 25% {\n opacity: calc(var(--fa-beat-fade-opacity, 0.4) + 0.4);\n transform: scale(var(--fa-beat-fade-scale, 1.28));\n animation-timing-function: cubic-bezier(0.4, 0, 0.6, 1);\n }\n 45% {\n opacity: 1;\n transform: scale(var(--fa-beat-fade-scale, 1.25));\n animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n }\n 65% {\n opacity: calc(var(--fa-beat-fade-opacity, 0.4) + 0.4);\n transform: scale(var(--fa-beat-fade-scale, 1.28));\n animation-timing-function: cubic-bezier(0.4, 0, 0.6, 1);\n }\n 100% {\n opacity: var(--fa-beat-fade-opacity, 0.4);\n transform: scale(1);\n }\n}\n@keyframes fa-flip {\n 0% {\n transform: perspective(2em) scale(1) rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), 0deg);\n animation-timing-function: cubic-bezier(0.2, 0, 0.4, 1);\n }\n 8% {\n transform: perspective(2em) scale(var(--fa-flip-anticipation-scale, 0.95)) rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), 0deg);\n animation-timing-function: cubic-bezier(0.33, 0, 0.66, 0.33);\n }\n 35% {\n transform: perspective(2em) scale(1) rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), calc(var(--fa-flip-angle, -360deg) * 0.6));\n animation-timing-function: linear;\n }\n 65% {\n transform: perspective(2em) scale(1) rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), calc(var(--fa-flip-angle, -360deg) * 0.5));\n animation-timing-function: cubic-bezier(0.33, 0.66, 0.66, 1);\n }\n 92% {\n transform: perspective(2em) scale(1) rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), calc(var(--fa-flip-angle, -360deg) * var(--fa-flip-overshoot, 1.04)));\n animation-timing-function: cubic-bezier(0.33, 0, 0.66, 1);\n }\n 100% {\n transform: perspective(2em) scale(1) rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -360deg));\n }\n}\n@keyframes fa-flip-360 {\n 0% {\n transform: perspective(2em) scale(1) rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), 0deg);\n animation-timing-function: cubic-bezier(0.2, 0, 0.4, 1);\n }\n 8% {\n transform: perspective(2em) scale(var(--fa-flip-anticipation-scale, 0.95)) rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), 0deg);\n animation-timing-function: cubic-bezier(0.33, 0, 0.66, 0.33);\n }\n 50% {\n transform: perspective(2em) scale(1) rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), calc(var(--fa-flip-angle, -360deg) * 0.6));\n animation-timing-function: cubic-bezier(0.33, 0.66, 0.66, 1);\n }\n 80% {\n transform: perspective(2em) scale(1) rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), calc(var(--fa-flip-angle, -360deg) * var(--fa-flip-overshoot, 1.04)));\n animation-timing-function: cubic-bezier(0.33, 0, 0.66, 1);\n }\n 100% {\n transform: perspective(2em) scale(1) rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -360deg));\n }\n}\n@keyframes fa-shake {\n 0% {\n transform: rotate(0deg);\n animation-timing-function: cubic-bezier(0.2, 0, 0.8, 1);\n }\n 8% {\n transform: rotate(35deg) translateX(1px);\n animation-timing-function: cubic-bezier(0.3, 0, 0.7, 1);\n }\n 20% {\n transform: rotate(-22deg) translateX(-1px);\n animation-timing-function: cubic-bezier(0.3, 0, 0.7, 1);\n }\n 35% {\n transform: rotate(15deg) translateX(1px);\n animation-timing-function: cubic-bezier(0.3, 0, 0.7, 1);\n }\n 50% {\n transform: rotate(-9deg);\n animation-timing-function: cubic-bezier(0.4, 0, 0.6, 1);\n }\n 65% {\n transform: rotate(5deg);\n animation-timing-function: cubic-bezier(0.4, 0, 0.6, 1);\n }\n 78% {\n transform: rotate(-3deg);\n animation-timing-function: cubic-bezier(0.4, 0, 0.6, 1);\n }\n 90% {\n transform: rotate(1deg);\n animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n }\n 100% {\n transform: rotate(0deg);\n }\n}\n@keyframes fa-spin {\n 0% {\n transform: rotate(0deg);\n }\n 100% {\n transform: rotate(360deg);\n }\n}\n@keyframes fa-spin-snap {\n 0% {\n transform: rotate(0deg);\n animation-timing-function: cubic-bezier(0, 0, 0.2, 1);\n }\n 12% {\n transform: rotate(60deg);\n animation-timing-function: cubic-bezier(0.8, 0, 1, 1);\n }\n 16.67% {\n transform: rotate(60deg);\n animation-timing-function: cubic-bezier(0, 0, 0.2, 1);\n }\n 28.67% {\n transform: rotate(120deg);\n animation-timing-function: cubic-bezier(0.8, 0, 1, 1);\n }\n 33.33% {\n transform: rotate(120deg);\n animation-timing-function: cubic-bezier(0, 0, 0.2, 1);\n }\n 45.33% {\n transform: rotate(180deg);\n animation-timing-function: cubic-bezier(0.8, 0, 1, 1);\n }\n 50% {\n transform: rotate(180deg);\n animation-timing-function: cubic-bezier(0, 0, 0.2, 1);\n }\n 62% {\n transform: rotate(240deg);\n animation-timing-function: cubic-bezier(0.8, 0, 1, 1);\n }\n 66.67% {\n transform: rotate(240deg);\n animation-timing-function: cubic-bezier(0, 0, 0.2, 1);\n }\n 78.67% {\n transform: rotate(300deg);\n animation-timing-function: cubic-bezier(0.8, 0, 1, 1);\n }\n 83.33% {\n transform: rotate(300deg);\n animation-timing-function: cubic-bezier(0, 0, 0.2, 1);\n }\n 95.33% {\n transform: rotate(360deg);\n animation-timing-function: cubic-bezier(0.8, 0, 1, 1);\n }\n 100% {\n transform: rotate(360deg);\n }\n}\n@keyframes fa-spin-snap-4 {\n 0% {\n transform: rotate(0deg);\n animation-timing-function: cubic-bezier(0, 0, 0.2, 1);\n }\n 15% {\n transform: rotate(90deg);\n animation-timing-function: cubic-bezier(0.8, 0, 1, 1);\n }\n 25% {\n transform: rotate(90deg);\n animation-timing-function: cubic-bezier(0, 0, 0.2, 1);\n }\n 40% {\n transform: rotate(180deg);\n animation-timing-function: cubic-bezier(0.8, 0, 1, 1);\n }\n 50% {\n transform: rotate(180deg);\n animation-timing-function: cubic-bezier(0, 0, 0.2, 1);\n }\n 65% {\n transform: rotate(270deg);\n animation-timing-function: cubic-bezier(0.8, 0, 1, 1);\n }\n 75% {\n transform: rotate(270deg);\n animation-timing-function: cubic-bezier(0, 0, 0.2, 1);\n }\n 90% {\n transform: rotate(360deg);\n animation-timing-function: cubic-bezier(0.8, 0, 1, 1);\n }\n 100% {\n transform: rotate(360deg);\n }\n}\n@keyframes fa-spin-snap-8 {\n 0% {\n transform: rotate(0deg);\n animation-timing-function: cubic-bezier(0, 0, 0.2, 1);\n }\n 9% {\n transform: rotate(45deg);\n animation-timing-function: cubic-bezier(0.8, 0, 1, 1);\n }\n 12.5% {\n transform: rotate(45deg);\n animation-timing-function: cubic-bezier(0, 0, 0.2, 1);\n }\n 21.5% {\n transform: rotate(90deg);\n animation-timing-function: cubic-bezier(0.8, 0, 1, 1);\n }\n 25% {\n transform: rotate(90deg);\n animation-timing-function: cubic-bezier(0, 0, 0.2, 1);\n }\n 34% {\n transform: rotate(135deg);\n animation-timing-function: cubic-bezier(0.8, 0, 1, 1);\n }\n 37.5% {\n transform: rotate(135deg);\n animation-timing-function: cubic-bezier(0, 0, 0.2, 1);\n }\n 46.5% {\n transform: rotate(180deg);\n animation-timing-function: cubic-bezier(0.8, 0, 1, 1);\n }\n 50% {\n transform: rotate(180deg);\n animation-timing-function: cubic-bezier(0, 0, 0.2, 1);\n }\n 59% {\n transform: rotate(225deg);\n animation-timing-function: cubic-bezier(0.8, 0, 1, 1);\n }\n 62.5% {\n transform: rotate(225deg);\n animation-timing-function: cubic-bezier(0, 0, 0.2, 1);\n }\n 71.5% {\n transform: rotate(270deg);\n animation-timing-function: cubic-bezier(0.8, 0, 1, 1);\n }\n 75% {\n transform: rotate(270deg);\n animation-timing-function: cubic-bezier(0, 0, 0.2, 1);\n }\n 84% {\n transform: rotate(315deg);\n animation-timing-function: cubic-bezier(0.8, 0, 1, 1);\n }\n 87.5% {\n transform: rotate(315deg);\n animation-timing-function: cubic-bezier(0, 0, 0.2, 1);\n }\n 96.5% {\n transform: rotate(360deg);\n animation-timing-function: cubic-bezier(0.8, 0, 1, 1);\n }\n 100% {\n transform: rotate(360deg);\n }\n}\n@keyframes fa-buzz {\n 0% {\n transform: translateX(0) rotate(0deg);\n animation-timing-function: cubic-bezier(0.1, 0, 0.9, 1);\n }\n 5% {\n transform: translateX(var(--fa-buzz-distance, 4px)) rotate(0.5deg);\n }\n 10% {\n transform: translateX(calc(-1 * var(--fa-buzz-distance, 4px))) rotate(-0.5deg);\n }\n 15% {\n transform: translateX(var(--fa-buzz-distance, 4px)) rotate(0.3deg);\n }\n 20% {\n transform: translateX(calc(-1 * var(--fa-buzz-distance, 4px))) rotate(-0.3deg);\n }\n 25% {\n transform: translateX(calc(var(--fa-buzz-distance, 4px) * 0.7)) rotate(0.2deg);\n }\n 30% {\n transform: translateX(calc(-1 * var(--fa-buzz-distance, 4px) * 0.7)) rotate(-0.2deg);\n }\n 35% {\n transform: translateX(calc(var(--fa-buzz-distance, 4px) * 0.4)) rotate(0.1deg);\n }\n 40% {\n transform: translateX(0) rotate(0deg);\n }\n 100% {\n transform: translateX(0) rotate(0deg);\n }\n}\n@keyframes fa-wag {\n 0% {\n transform: rotate(0deg);\n animation-timing-function: cubic-bezier(0.2, 0, 0.6, 1);\n }\n 12% {\n transform: rotate(var(--fa-wag-angle, 12deg));\n animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n }\n 24% {\n transform: rotate(2deg);\n animation-timing-function: cubic-bezier(0.2, 0, 0.6, 1);\n }\n 36% {\n transform: rotate(calc(var(--fa-wag-angle, 12deg) * 0.85));\n animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n }\n 48% {\n transform: rotate(1deg);\n animation-timing-function: cubic-bezier(0.2, 0, 0.6, 1);\n }\n 58% {\n transform: rotate(calc(var(--fa-wag-angle, 12deg) * 0.6));\n animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n }\n 68% {\n transform: rotate(0deg);\n }\n 100% {\n transform: rotate(0deg);\n }\n}\n@keyframes fa-float {\n 0% {\n transform: translateY(0) translateX(0) rotate(0deg) scale(var(--fa-float-squash-x, 1.02), var(--fa-float-squash-y, 0.98));\n animation-timing-function: cubic-bezier(0.33, 0, 0.66, 0.33);\n }\n 15% {\n transform: translateY(calc(-0.4 * var(--fa-float-height, 6px))) translateX(var(--fa-float-drift, 1px)) rotate(var(--fa-float-tilt, 1deg)) scale(1, 1);\n animation-timing-function: cubic-bezier(0.33, 0.66, 0.66, 1);\n }\n 35% {\n transform: translateY(calc(-1 * var(--fa-float-height, 6px))) translateX(0) rotate(0deg) scale(var(--fa-float-stretch-x, 0.98), var(--fa-float-stretch-y, 1.03));\n animation-timing-function: cubic-bezier(0.5, 0, 0.5, 0);\n }\n 50% {\n transform: translateY(calc(-0.92 * var(--fa-float-height, 6px))) translateX(calc(-0.5 * var(--fa-float-drift, 1px))) rotate(calc(-0.5 * var(--fa-float-tilt, 1deg))) scale(0.995, 1.01);\n animation-timing-function: cubic-bezier(0.33, 0, 0.66, 0.33);\n }\n 70% {\n transform: translateY(calc(-0.3 * var(--fa-float-height, 6px))) translateX(calc(-1 * var(--fa-float-drift, 1px))) rotate(calc(-1 * var(--fa-float-tilt, 1deg))) scale(1, 1);\n animation-timing-function: cubic-bezier(0.33, 0.66, 0.66, 1);\n }\n 90% {\n transform: translateY(calc(0.05 * var(--fa-float-height, 6px))) translateX(0) rotate(0deg) scale(var(--fa-float-squash-x, 1.02), var(--fa-float-squash-y, 0.98));\n animation-timing-function: cubic-bezier(0.33, 0, 0.66, 1);\n }\n 100% {\n transform: translateY(0) translateX(0) rotate(0deg) scale(var(--fa-float-squash-x, 1.02), var(--fa-float-squash-y, 0.98));\n }\n}\n@keyframes fa-swing {\n 0% {\n transform: rotate(0deg);\n animation-timing-function: cubic-bezier(0.2, 0, 0.8, 1);\n }\n 8% {\n transform: rotate(var(--fa-swing-angle, 22deg));\n animation-timing-function: cubic-bezier(0.3, 0, 0.7, 1);\n }\n 18% {\n transform: rotate(calc(-1 * var(--fa-swing-angle, 22deg) * 0.85));\n animation-timing-function: cubic-bezier(0.3, 0, 0.7, 1);\n }\n 28% {\n transform: rotate(calc(var(--fa-swing-angle, 22deg) * 0.65));\n animation-timing-function: cubic-bezier(0.35, 0, 0.65, 1);\n }\n 38% {\n transform: rotate(calc(-1 * var(--fa-swing-angle, 22deg) * 0.45));\n animation-timing-function: cubic-bezier(0.4, 0, 0.6, 1);\n }\n 48% {\n transform: rotate(calc(var(--fa-swing-angle, 22deg) * 0.25));\n animation-timing-function: cubic-bezier(0.4, 0, 0.6, 1);\n }\n 56% {\n transform: rotate(calc(-1 * var(--fa-swing-angle, 22deg) * 0.1));\n animation-timing-function: cubic-bezier(0.4, 0, 0.6, 1);\n }\n 64% {\n transform: rotate(0deg);\n }\n 100% {\n transform: rotate(0deg);\n }\n}\n@keyframes fa-jello {\n 0% {\n transform: scale(1, 1);\n animation-timing-function: cubic-bezier(0.2, 0, 0.8, 1);\n }\n 12% {\n transform: scale(var(--fa-jello-scale-x, 1.15), calc(2 - var(--fa-jello-scale-x, 1.15)));\n animation-timing-function: cubic-bezier(0.3, 0, 0.7, 1);\n }\n 24% {\n transform: scale(calc(2 - var(--fa-jello-scale-y, 1.12)), var(--fa-jello-scale-y, 1.12));\n animation-timing-function: cubic-bezier(0.3, 0, 0.7, 1);\n }\n 36% {\n transform: scale(calc(1 + (var(--fa-jello-scale-x, 1.15) - 1) * 0.5), calc(2 - (1 + (var(--fa-jello-scale-x, 1.15) - 1) * 0.5)));\n animation-timing-function: cubic-bezier(0.4, 0, 0.6, 1);\n }\n 48% {\n transform: scale(calc(2 - (1 + (var(--fa-jello-scale-y, 1.12) - 1) * 0.3)), calc(1 + (var(--fa-jello-scale-y, 1.12) - 1) * 0.3));\n animation-timing-function: cubic-bezier(0.4, 0, 0.6, 1);\n }\n 58% {\n transform: scale(1.02, 0.98);\n animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n }\n 68% {\n transform: scale(1, 1);\n }\n 100% {\n transform: scale(1, 1);\n }\n}\n.fa-rotate-90 {\n transform: rotate(90deg);\n}\n\n.fa-rotate-180 {\n transform: rotate(180deg);\n}\n\n.fa-rotate-270 {\n transform: rotate(270deg);\n}\n\n.fa-flip-horizontal {\n transform: scale(-1, 1);\n}\n\n.fa-flip-vertical {\n transform: scale(1, -1);\n}\n\n.fa-flip-both,\n.fa-flip-horizontal.fa-flip-vertical {\n transform: scale(-1, -1);\n}\n\n.fa-rotate-by {\n transform: rotate(var(--fa-rotate-angle, 0));\n}\n\n.svg-inline--fa .fa-primary {\n fill: var(--fa-primary-color, currentColor);\n opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa .fa-secondary {\n fill: var(--fa-secondary-color, currentColor);\n opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-primary {\n opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-secondary {\n opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa mask .fa-primary,\n.svg-inline--fa mask .fa-secondary {\n fill: black;\n}\n\n.svg-inline--fa.fa-inverse {\n fill: var(--fa-inverse, #fff);\n}\n\n.fa-stack {\n display: inline-block;\n height: 2em;\n line-height: 2em;\n position: relative;\n vertical-align: middle;\n width: 2.5em;\n}\n\n.fa-inverse {\n color: var(--fa-inverse, #fff);\n}\n\n.svg-inline--fa.fa-stack-1x {\n --fa-width: 1.25em;\n height: 1em;\n width: var(--fa-width);\n}\n.svg-inline--fa.fa-stack-2x {\n --fa-width: 2.5em;\n height: 2em;\n width: var(--fa-width);\n}\n\n.fa-stack-1x,\n.fa-stack-2x {\n inset: 0;\n margin: auto;\n position: absolute;\n z-index: var(--fa-stack-z-index, auto);\n}";
2212
2213 function css() {
2214 var dcp = DEFAULT_CSS_PREFIX;
2215 var drc = DEFAULT_REPLACEMENT_CLASS;
2216 var fp = config.cssPrefix;
2217 var rc = config.replacementClass;
2218 var s = baseStyles;
2219 if (fp !== dcp || rc !== drc) {
2220 var dPatt = new RegExp("\\.".concat(dcp, "\\-"), 'g');
2221 var customPropPatt = new RegExp("\\--".concat(dcp, "\\-"), 'g');
2222 var rPatt = new RegExp("\\.".concat(drc), 'g');
2223 s = s.replace(dPatt, ".".concat(fp, "-")).replace(customPropPatt, "--".concat(fp, "-")).replace(rPatt, ".".concat(rc));
2224 }
2225 return s;
2226 }
2227 var _cssInserted = false;
2228 function ensureCss() {
2229 if (config.autoAddCss && !_cssInserted) {
2230 insertCss(css());
2231 _cssInserted = true;
2232 }
2233 }
2234 var injectCss = {
2235 mixout: function mixout() {
2236 return {
2237 dom: {
2238 css: css,
2239 insertCss: ensureCss
2240 }
2241 };
2242 },
2243 hooks: function hooks() {
2244 return {
2245 beforeDOMElementCreation: function beforeDOMElementCreation() {
2246 ensureCss();
2247 },
2248 beforeI2svg: function beforeI2svg() {
2249 ensureCss();
2250 }
2251 };
2252 }
2253 };
2254
2255 function domVariants(val, abstractCreator) {
2256 Object.defineProperty(val, 'abstract', {
2257 get: abstractCreator
2258 });
2259 Object.defineProperty(val, 'html', {
2260 get: function get() {
2261 return val.abstract.map(function (a) {
2262 return toHtml(a);
2263 });
2264 }
2265 });
2266 Object.defineProperty(val, 'node', {
2267 get: function get() {
2268 if (!IS_DOM) return undefined;
2269 var container = DOCUMENT.createElement('div');
2270 container.innerHTML = val.html;
2271 return container.children;
2272 }
2273 });
2274 return val;
2275 }
2276
2277 function asIcon (_ref) {
2278 var children = _ref.children,
2279 main = _ref.main,
2280 mask = _ref.mask,
2281 attributes = _ref.attributes,
2282 styles = _ref.styles,
2283 transform = _ref.transform;
2284 if (transformIsMeaningful(transform) && main.found && !mask.found) {
2285 var width = main.width,
2286 height = main.height;
2287 var offset = {
2288 x: width / height / 2,
2289 y: 0.5
2290 };
2291 attributes['style'] = joinStyles(_objectSpread2(_objectSpread2({}, styles), {}, {
2292 'transform-origin': "".concat(offset.x + transform.x / 16, "em ").concat(offset.y + transform.y / 16, "em")
2293 }));
2294 }
2295 return [{
2296 tag: 'svg',
2297 attributes: attributes,
2298 children: children
2299 }];
2300 }
2301
2302 function asSymbol (_ref) {
2303 var prefix = _ref.prefix,
2304 iconName = _ref.iconName,
2305 children = _ref.children,
2306 attributes = _ref.attributes,
2307 symbol = _ref.symbol;
2308 var id = symbol === true ? "".concat(prefix, "-").concat(config.cssPrefix, "-").concat(iconName) : symbol;
2309 return [{
2310 tag: 'svg',
2311 attributes: {
2312 style: 'display: none;'
2313 },
2314 children: [{
2315 tag: 'symbol',
2316 attributes: _objectSpread2(_objectSpread2({}, attributes), {}, {
2317 id: id
2318 }),
2319 children: children
2320 }]
2321 }];
2322 }
2323
2324 // If any of these attributes are present, don't assume the icon is decorative
2325 function isLabeled(attributes) {
2326 var labels = ['aria-label', 'aria-labelledby', 'title', 'role'];
2327 return labels.some(function (label) {
2328 return label in attributes;
2329 });
2330 }
2331 function makeInlineSvgAbstract(params) {
2332 var _params$icons = params.icons,
2333 main = _params$icons.main,
2334 mask = _params$icons.mask,
2335 prefix = params.prefix,
2336 iconName = params.iconName,
2337 transform = params.transform,
2338 symbol = params.symbol,
2339 maskId = params.maskId,
2340 extra = params.extra,
2341 _params$watchable = params.watchable,
2342 watchable = _params$watchable === void 0 ? false : _params$watchable;
2343 var _ref = mask.found ? mask : main,
2344 width = _ref.width,
2345 height = _ref.height;
2346 var attrClass = [config.replacementClass, iconName ? "".concat(config.cssPrefix, "-").concat(iconName) : ''].filter(function (c) {
2347 return extra.classes.indexOf(c) === -1;
2348 }).filter(function (c) {
2349 return c !== '' || !!c;
2350 }).concat(extra.classes).join(' ');
2351 var content = {
2352 children: [],
2353 attributes: _objectSpread2(_objectSpread2({}, extra.attributes), {}, {
2354 'data-prefix': prefix,
2355 'data-icon': iconName,
2356 'class': attrClass,
2357 'role': extra.attributes.role || 'img',
2358 'viewBox': "0 0 ".concat(width, " ").concat(height)
2359 })
2360 };
2361 if (!isLabeled(extra.attributes) && !extra.attributes['aria-hidden']) {
2362 content.attributes['aria-hidden'] = 'true';
2363 }
2364 if (watchable) {
2365 content.attributes[DATA_FA_I2SVG] = '';
2366 }
2367 var args = _objectSpread2(_objectSpread2({}, content), {}, {
2368 prefix: prefix,
2369 iconName: iconName,
2370 main: main,
2371 mask: mask,
2372 maskId: maskId,
2373 transform: transform,
2374 symbol: symbol,
2375 styles: _objectSpread2({}, extra.styles)
2376 });
2377 var _ref2 = mask.found && main.found ? callProvided('generateAbstractMask', args) || {
2378 children: [],
2379 attributes: {}
2380 } : callProvided('generateAbstractIcon', args) || {
2381 children: [],
2382 attributes: {}
2383 },
2384 children = _ref2.children,
2385 attributes = _ref2.attributes;
2386 args.children = children;
2387 args.attributes = attributes;
2388 if (symbol) {
2389 return asSymbol(args);
2390 } else {
2391 return asIcon(args);
2392 }
2393 }
2394 function makeLayersTextAbstract(params) {
2395 var content = params.content,
2396 width = params.width,
2397 height = params.height,
2398 transform = params.transform,
2399 extra = params.extra,
2400 _params$watchable2 = params.watchable,
2401 watchable = _params$watchable2 === void 0 ? false : _params$watchable2;
2402 var attributes = _objectSpread2(_objectSpread2({}, extra.attributes), {}, {
2403 class: extra.classes.join(' ')
2404 });
2405 if (watchable) {
2406 attributes[DATA_FA_I2SVG] = '';
2407 }
2408 var styles = _objectSpread2({}, extra.styles);
2409 if (transformIsMeaningful(transform)) {
2410 styles['transform'] = transformForCss({
2411 transform: transform,
2412 startCentered: true,
2413 width: width,
2414 height: height
2415 });
2416 styles['-webkit-transform'] = styles['transform'];
2417 }
2418 var styleString = joinStyles(styles);
2419 if (styleString.length > 0) {
2420 attributes['style'] = styleString;
2421 }
2422 var val = [];
2423 val.push({
2424 tag: 'span',
2425 attributes: attributes,
2426 children: [content]
2427 });
2428 return val;
2429 }
2430 function makeLayersCounterAbstract(params) {
2431 var content = params.content,
2432 extra = params.extra;
2433 var attributes = _objectSpread2(_objectSpread2({}, extra.attributes), {}, {
2434 class: extra.classes.join(' ')
2435 });
2436 var styleString = joinStyles(extra.styles);
2437 if (styleString.length > 0) {
2438 attributes['style'] = styleString;
2439 }
2440 var val = [];
2441 val.push({
2442 tag: 'span',
2443 attributes: attributes,
2444 children: [content]
2445 });
2446 return val;
2447 }
2448
2449 var styles$1 = namespace.styles;
2450 function asFoundIcon(icon) {
2451 var width = icon[0];
2452 var height = icon[1];
2453 var _icon$slice = icon.slice(4),
2454 _icon$slice2 = _slicedToArray(_icon$slice, 1),
2455 vectorData = _icon$slice2[0];
2456 var element = null;
2457 if (Array.isArray(vectorData)) {
2458 element = {
2459 tag: 'g',
2460 attributes: {
2461 class: "".concat(config.cssPrefix, "-").concat(DUOTONE_CLASSES.GROUP)
2462 },
2463 children: [{
2464 tag: 'path',
2465 attributes: {
2466 class: "".concat(config.cssPrefix, "-").concat(DUOTONE_CLASSES.SECONDARY),
2467 fill: 'currentColor',
2468 d: vectorData[0]
2469 }
2470 }, {
2471 tag: 'path',
2472 attributes: {
2473 class: "".concat(config.cssPrefix, "-").concat(DUOTONE_CLASSES.PRIMARY),
2474 fill: 'currentColor',
2475 d: vectorData[1]
2476 }
2477 }]
2478 };
2479 } else {
2480 element = {
2481 tag: 'path',
2482 attributes: {
2483 fill: 'currentColor',
2484 d: vectorData
2485 }
2486 };
2487 }
2488 return {
2489 found: true,
2490 width: width,
2491 height: height,
2492 icon: element
2493 };
2494 }
2495 var missingIconResolutionMixin = {
2496 found: false,
2497 width: 512,
2498 height: 512
2499 };
2500 function maybeNotifyMissing(iconName, prefix) {
2501 if (!PRODUCTION && !config.showMissingIcons && iconName) {
2502 console.error("Icon with name \"".concat(iconName, "\" and prefix \"").concat(prefix, "\" is missing."));
2503 }
2504 }
2505 function findIcon(iconName, prefix) {
2506 var givenPrefix = prefix;
2507 if (prefix === 'fa' && config.styleDefault !== null) {
2508 prefix = getDefaultUsablePrefix();
2509 }
2510 return new Promise(function (resolve, reject) {
2511 if (givenPrefix === 'fa') {
2512 var shim = byOldName(iconName) || {};
2513 iconName = shim.iconName || iconName;
2514 prefix = shim.prefix || prefix;
2515 }
2516 if (iconName && prefix && styles$1[prefix] && styles$1[prefix][iconName]) {
2517 var icon = styles$1[prefix][iconName];
2518 return resolve(asFoundIcon(icon));
2519 }
2520 maybeNotifyMissing(iconName, prefix);
2521 resolve(_objectSpread2(_objectSpread2({}, missingIconResolutionMixin), {}, {
2522 icon: config.showMissingIcons && iconName ? callProvided('missingIconAbstract') || {} : {}
2523 }));
2524 });
2525 }
2526
2527 var noop$1 = function noop() {};
2528 var p$2 = config.measurePerformance && PERFORMANCE && PERFORMANCE.mark && PERFORMANCE.measure ? PERFORMANCE : {
2529 mark: noop$1,
2530 measure: noop$1
2531 };
2532 var preamble = "FA \"7.3.0\"";
2533 var begin = function begin(name) {
2534 p$2.mark("".concat(preamble, " ").concat(name, " begins"));
2535 return function () {
2536 return end(name);
2537 };
2538 };
2539 var end = function end(name) {
2540 p$2.mark("".concat(preamble, " ").concat(name, " ends"));
2541 p$2.measure("".concat(preamble, " ").concat(name), "".concat(preamble, " ").concat(name, " begins"), "".concat(preamble, " ").concat(name, " ends"));
2542 };
2543 var perf = {
2544 begin: begin,
2545 end: end
2546 };
2547
2548 var noop$2 = function noop() {};
2549 function isWatched(node) {
2550 var i2svg = node.getAttribute ? node.getAttribute(DATA_FA_I2SVG) : null;
2551 return typeof i2svg === 'string';
2552 }
2553 function hasPrefixAndIcon(node) {
2554 var prefix = node.getAttribute ? node.getAttribute(DATA_PREFIX) : null;
2555 var icon = node.getAttribute ? node.getAttribute(DATA_ICON) : null;
2556 return prefix && icon;
2557 }
2558 function hasBeenReplaced(node) {
2559 return node && node.classList && node.classList.contains && node.classList.contains(config.replacementClass);
2560 }
2561 function getMutator() {
2562 if (config.autoReplaceSvg === true) {
2563 return mutators.replace;
2564 }
2565 var mutator = mutators[config.autoReplaceSvg];
2566 return mutator || mutators.replace;
2567 }
2568 function createElementNS(tag) {
2569 return DOCUMENT.createElementNS('http://www.w3.org/2000/svg', tag);
2570 }
2571 function createElement(tag) {
2572 return DOCUMENT.createElement(tag);
2573 }
2574 function convertSVG(abstractObj) {
2575 var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
2576 var _params$ceFn = params.ceFn,
2577 ceFn = _params$ceFn === void 0 ? abstractObj.tag === 'svg' ? createElementNS : createElement : _params$ceFn;
2578 if (typeof abstractObj === 'string') {
2579 return DOCUMENT.createTextNode(abstractObj);
2580 }
2581 var tag = ceFn(abstractObj.tag);
2582 Object.keys(abstractObj.attributes || []).forEach(function (key) {
2583 tag.setAttribute(key, abstractObj.attributes[key]);
2584 });
2585 var children = abstractObj.children || [];
2586 children.forEach(function (child) {
2587 tag.appendChild(convertSVG(child, {
2588 ceFn: ceFn
2589 }));
2590 });
2591 return tag;
2592 }
2593 function nodeAsComment(node) {
2594 var comment = " ".concat(node.outerHTML, " ");
2595 /* BEGIN.ATTRIBUTION */
2596 comment = "".concat(comment, "Font Awesome fontawesome.com ");
2597 /* END.ATTRIBUTION */
2598 return comment;
2599 }
2600 var mutators = {
2601 replace: function replace(mutation) {
2602 var node = mutation[0];
2603 if (node.parentNode) {
2604 mutation[1].forEach(function (abstract) {
2605 node.parentNode.insertBefore(convertSVG(abstract), node);
2606 });
2607 if (node.getAttribute(DATA_FA_I2SVG) === null && config.keepOriginalSource) {
2608 var comment = DOCUMENT.createComment(nodeAsComment(node));
2609 node.parentNode.replaceChild(comment, node);
2610 } else {
2611 node.remove();
2612 }
2613 }
2614 },
2615 nest: function nest(mutation) {
2616 var node = mutation[0];
2617 var abstract = mutation[1];
2618
2619 // If we already have a replaced node we do not want to continue nesting within it.
2620 // Short-circuit to the standard replacement
2621 if (~classArray(node).indexOf(config.replacementClass)) {
2622 return mutators.replace(mutation);
2623 }
2624 var forSvg = new RegExp("".concat(config.cssPrefix, "-.*"));
2625 delete abstract[0].attributes.id;
2626 if (abstract[0].attributes.class) {
2627 var splitClasses = abstract[0].attributes.class.split(' ').reduce(function (acc, cls) {
2628 if (cls === config.replacementClass || cls.match(forSvg)) {
2629 acc.toSvg.push(cls);
2630 } else {
2631 acc.toNode.push(cls);
2632 }
2633 return acc;
2634 }, {
2635 toNode: [],
2636 toSvg: []
2637 });
2638 abstract[0].attributes.class = splitClasses.toSvg.join(' ');
2639 if (splitClasses.toNode.length === 0) {
2640 node.removeAttribute('class');
2641 } else {
2642 node.setAttribute('class', splitClasses.toNode.join(' '));
2643 }
2644 }
2645 var newInnerHTML = abstract.map(function (a) {
2646 return toHtml(a);
2647 }).join('\n');
2648 node.setAttribute(DATA_FA_I2SVG, '');
2649 node.innerHTML = newInnerHTML;
2650 }
2651 };
2652 function performOperationSync(op) {
2653 op();
2654 }
2655 function perform(mutations, callback) {
2656 var callbackFunction = typeof callback === 'function' ? callback : noop$2;
2657 if (mutations.length === 0) {
2658 callbackFunction();
2659 } else {
2660 var frame = performOperationSync;
2661 if (config.mutateApproach === MUTATION_APPROACH_ASYNC) {
2662 frame = WINDOW.requestAnimationFrame || performOperationSync;
2663 }
2664 frame(function () {
2665 var mutator = getMutator();
2666 var mark = perf.begin('mutate');
2667 mutations.map(mutator);
2668 mark();
2669 callbackFunction();
2670 });
2671 }
2672 }
2673 var disabled = false;
2674 function disableObservation() {
2675 disabled = true;
2676 }
2677 function enableObservation() {
2678 disabled = false;
2679 }
2680 var mo = null;
2681 function observe(options) {
2682 if (!MUTATION_OBSERVER) {
2683 return;
2684 }
2685 if (!config.observeMutations) {
2686 return;
2687 }
2688 var _options$treeCallback = options.treeCallback,
2689 treeCallback = _options$treeCallback === void 0 ? noop$2 : _options$treeCallback,
2690 _options$nodeCallback = options.nodeCallback,
2691 nodeCallback = _options$nodeCallback === void 0 ? noop$2 : _options$nodeCallback,
2692 _options$pseudoElemen = options.pseudoElementsCallback,
2693 pseudoElementsCallback = _options$pseudoElemen === void 0 ? noop$2 : _options$pseudoElemen,
2694 _options$observeMutat = options.observeMutationsRoot,
2695 observeMutationsRoot = _options$observeMutat === void 0 ? DOCUMENT : _options$observeMutat;
2696 mo = new MUTATION_OBSERVER(function (objects) {
2697 if (disabled) return;
2698 var defaultPrefix = getDefaultUsablePrefix();
2699 toArray(objects).forEach(function (mutationRecord) {
2700 if (mutationRecord.type === 'childList' && mutationRecord.addedNodes.length > 0 && !isWatched(mutationRecord.addedNodes[0])) {
2701 if (config.searchPseudoElements) {
2702 pseudoElementsCallback(mutationRecord.target);
2703 }
2704 treeCallback(mutationRecord.target);
2705 }
2706 if (mutationRecord.type === 'attributes' && mutationRecord.target.parentNode && config.searchPseudoElements) {
2707 pseudoElementsCallback([mutationRecord.target], true);
2708 }
2709 if (mutationRecord.type === 'attributes' && isWatched(mutationRecord.target) && ~ATTRIBUTES_WATCHED_FOR_MUTATION.indexOf(mutationRecord.attributeName)) {
2710 if (mutationRecord.attributeName === 'class' && hasPrefixAndIcon(mutationRecord.target)) {
2711 var _getCanonicalIcon = getCanonicalIcon(classArray(mutationRecord.target)),
2712 prefix = _getCanonicalIcon.prefix,
2713 iconName = _getCanonicalIcon.iconName;
2714 mutationRecord.target.setAttribute(DATA_PREFIX, prefix || defaultPrefix);
2715 if (iconName) mutationRecord.target.setAttribute(DATA_ICON, iconName);
2716 } else if (hasBeenReplaced(mutationRecord.target)) {
2717 nodeCallback(mutationRecord.target);
2718 }
2719 }
2720 });
2721 });
2722 if (!IS_DOM) return;
2723 mo.observe(observeMutationsRoot, {
2724 childList: true,
2725 attributes: true,
2726 characterData: true,
2727 subtree: true
2728 });
2729 }
2730 function disconnect() {
2731 if (!mo) return;
2732 mo.disconnect();
2733 }
2734
2735 function styleParser (node) {
2736 var style = node.getAttribute('style');
2737 var val = [];
2738 if (style) {
2739 val = style.split(';').reduce(function (acc, style) {
2740 var styles = style.split(':');
2741 var prop = styles[0];
2742 var value = styles.slice(1);
2743 if (prop && value.length > 0) {
2744 acc[prop] = value.join(':').trim();
2745 }
2746 return acc;
2747 }, {});
2748 }
2749 return val;
2750 }
2751
2752 function classParser (node) {
2753 var existingPrefix = node.getAttribute('data-prefix');
2754 var existingIconName = node.getAttribute('data-icon');
2755 var innerText = node.innerText !== undefined ? node.innerText.trim() : '';
2756 var val = getCanonicalIcon(classArray(node));
2757 if (!val.prefix) {
2758 val.prefix = getDefaultUsablePrefix();
2759 }
2760 if (existingPrefix && existingIconName) {
2761 val.prefix = existingPrefix;
2762 val.iconName = existingIconName;
2763 }
2764 if (val.iconName && val.prefix) {
2765 return val;
2766 }
2767 if (val.prefix && innerText.length > 0) {
2768 val.iconName = byLigature(val.prefix, node.innerText) || byUnicode(val.prefix, toHex(node.innerText));
2769 }
2770 if (!val.iconName && config.autoFetchSvg && node.firstChild && node.firstChild.nodeType === Node.TEXT_NODE) {
2771 val.iconName = node.firstChild.data;
2772 }
2773 return val;
2774 }
2775
2776 function attributesParser (node) {
2777 var extraAttributes = toArray(node.attributes).reduce(function (acc, attr) {
2778 if (acc.name !== 'class' && acc.name !== 'style') {
2779 acc[attr.name] = attr.value;
2780 }
2781 return acc;
2782 }, {});
2783 return extraAttributes;
2784 }
2785
2786 function blankMeta() {
2787 return {
2788 iconName: null,
2789 prefix: null,
2790 transform: meaninglessTransform,
2791 symbol: false,
2792 mask: {
2793 iconName: null,
2794 prefix: null,
2795 rest: []
2796 },
2797 maskId: null,
2798 extra: {
2799 classes: [],
2800 styles: {},
2801 attributes: {}
2802 }
2803 };
2804 }
2805 function parseMeta(node) {
2806 var parser = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {
2807 styleParser: true
2808 };
2809 var _classParser = classParser(node),
2810 iconName = _classParser.iconName,
2811 prefix = _classParser.prefix,
2812 extraClasses = _classParser.rest;
2813 var extraAttributes = attributesParser(node);
2814 var pluginMeta = chainHooks('parseNodeAttributes', {}, node);
2815 var extraStyles = parser.styleParser ? styleParser(node) : [];
2816 return _objectSpread2({
2817 iconName: iconName,
2818 prefix: prefix,
2819 transform: meaninglessTransform,
2820 mask: {
2821 iconName: null,
2822 prefix: null,
2823 rest: []
2824 },
2825 maskId: null,
2826 symbol: false,
2827 extra: {
2828 classes: extraClasses,
2829 styles: extraStyles,
2830 attributes: extraAttributes
2831 }
2832 }, pluginMeta);
2833 }
2834
2835 var styles$2 = namespace.styles;
2836 function generateMutation(node) {
2837 var nodeMeta = config.autoReplaceSvg === 'nest' ? parseMeta(node, {
2838 styleParser: false
2839 }) : parseMeta(node);
2840 if (~nodeMeta.extra.classes.indexOf(LAYERS_TEXT_CLASSNAME)) {
2841 return callProvided('generateLayersText', node, nodeMeta);
2842 } else {
2843 return callProvided('generateSvgReplacementMutation', node, nodeMeta);
2844 }
2845 }
2846 function getKnownPrefixes() {
2847 return [].concat(_toConsumableArray(at), _toConsumableArray(ha));
2848 }
2849 function onTree(root) {
2850 var callback = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
2851 if (!IS_DOM) return Promise.resolve();
2852 var htmlClassList = DOCUMENT.documentElement.classList;
2853 var hclAdd = function hclAdd(suffix) {
2854 return htmlClassList.add("".concat(HTML_CLASS_I2SVG_BASE_CLASS, "-").concat(suffix));
2855 };
2856 var hclRemove = function hclRemove(suffix) {
2857 return htmlClassList.remove("".concat(HTML_CLASS_I2SVG_BASE_CLASS, "-").concat(suffix));
2858 };
2859 var prefixes = config.autoFetchSvg ? getKnownPrefixes() : dl.concat(Object.keys(styles$2));
2860 if (!prefixes.includes('fa')) {
2861 prefixes.push('fa');
2862 }
2863 var prefixesDomQuery = [".".concat(LAYERS_TEXT_CLASSNAME, ":not([").concat(DATA_FA_I2SVG, "])")].concat(prefixes.map(function (p$$1) {
2864 return ".".concat(p$$1, ":not([").concat(DATA_FA_I2SVG, "])");
2865 })).join(', ');
2866 if (prefixesDomQuery.length === 0) {
2867 return Promise.resolve();
2868 }
2869 var candidates = [];
2870 try {
2871 candidates = toArray(root.querySelectorAll(prefixesDomQuery));
2872 } catch (e$$1) {
2873 // noop
2874 }
2875 if (candidates.length > 0) {
2876 hclAdd('pending');
2877 hclRemove('complete');
2878 } else {
2879 return Promise.resolve();
2880 }
2881 var mark = perf.begin('onTree');
2882 var mutations = candidates.reduce(function (acc, node) {
2883 try {
2884 var mutation = generateMutation(node);
2885 if (mutation) {
2886 acc.push(mutation);
2887 }
2888 } catch (e$$1) {
2889 if (!PRODUCTION) {
2890 if (e$$1.name === 'MissingIcon') {
2891 console.error(e$$1);
2892 }
2893 }
2894 }
2895 return acc;
2896 }, []);
2897 return new Promise(function (resolve, reject) {
2898 Promise.all(mutations).then(function (resolvedMutations) {
2899 perform(resolvedMutations, function () {
2900 hclAdd('active');
2901 hclAdd('complete');
2902 hclRemove('pending');
2903 if (typeof callback === 'function') callback();
2904 mark();
2905 resolve();
2906 });
2907 }).catch(function (e$$1) {
2908 mark();
2909 reject(e$$1);
2910 });
2911 });
2912 }
2913 function onNode(node) {
2914 var callback = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
2915 generateMutation(node).then(function (mutation) {
2916 if (mutation) {
2917 perform([mutation], callback);
2918 }
2919 });
2920 }
2921 function resolveIcons(next) {
2922 return function (maybeIconDefinition) {
2923 var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
2924 var iconDefinition = (maybeIconDefinition || {}).icon ? maybeIconDefinition : findIconDefinition(maybeIconDefinition || {});
2925 var mask = params.mask;
2926 if (mask) {
2927 mask = (mask || {}).icon ? mask : findIconDefinition(mask || {});
2928 }
2929 return next(iconDefinition, _objectSpread2(_objectSpread2({}, params), {}, {
2930 mask: mask
2931 }));
2932 };
2933 }
2934 var render = function render(iconDefinition) {
2935 var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
2936 var _params$transform = params.transform,
2937 transform = _params$transform === void 0 ? meaninglessTransform : _params$transform,
2938 _params$symbol = params.symbol,
2939 symbol = _params$symbol === void 0 ? false : _params$symbol,
2940 _params$mask = params.mask,
2941 mask = _params$mask === void 0 ? null : _params$mask,
2942 _params$maskId = params.maskId,
2943 maskId = _params$maskId === void 0 ? null : _params$maskId,
2944 _params$classes = params.classes,
2945 classes = _params$classes === void 0 ? [] : _params$classes,
2946 _params$attributes = params.attributes,
2947 attributes = _params$attributes === void 0 ? {} : _params$attributes,
2948 _params$styles = params.styles,
2949 styles = _params$styles === void 0 ? {} : _params$styles;
2950 if (!iconDefinition) return;
2951 var prefix = iconDefinition.prefix,
2952 iconName = iconDefinition.iconName,
2953 icon = iconDefinition.icon;
2954 return domVariants(_objectSpread2({
2955 type: 'icon'
2956 }, iconDefinition), function () {
2957 callHooks('beforeDOMElementCreation', {
2958 iconDefinition: iconDefinition,
2959 params: params
2960 });
2961 return makeInlineSvgAbstract({
2962 icons: {
2963 main: asFoundIcon(icon),
2964 mask: mask ? asFoundIcon(mask.icon) : {
2965 found: false,
2966 width: null,
2967 height: null,
2968 icon: {}
2969 }
2970 },
2971 prefix: prefix,
2972 iconName: iconName,
2973 transform: _objectSpread2(_objectSpread2({}, meaninglessTransform), transform),
2974 symbol: symbol,
2975 maskId: maskId,
2976 extra: {
2977 attributes: attributes,
2978 styles: styles,
2979 classes: classes
2980 }
2981 });
2982 });
2983 };
2984 var replaceElements = {
2985 mixout: function mixout() {
2986 return {
2987 icon: resolveIcons(render)
2988 };
2989 },
2990 hooks: function hooks() {
2991 return {
2992 mutationObserverCallbacks: function mutationObserverCallbacks(accumulator) {
2993 accumulator.treeCallback = onTree;
2994 accumulator.nodeCallback = onNode;
2995 return accumulator;
2996 }
2997 };
2998 },
2999 provides: function provides(providers$$1) {
3000 providers$$1.i2svg = function (params) {
3001 var _params$node = params.node,
3002 node = _params$node === void 0 ? DOCUMENT : _params$node,
3003 _params$callback = params.callback,
3004 callback = _params$callback === void 0 ? function () {} : _params$callback;
3005 return onTree(node, callback);
3006 };
3007 providers$$1.generateSvgReplacementMutation = function (node, nodeMeta) {
3008 var iconName = nodeMeta.iconName,
3009 prefix = nodeMeta.prefix,
3010 transform = nodeMeta.transform,
3011 symbol = nodeMeta.symbol,
3012 mask = nodeMeta.mask,
3013 maskId = nodeMeta.maskId,
3014 extra = nodeMeta.extra;
3015 return new Promise(function (resolve, reject) {
3016 Promise.all([findIcon(iconName, prefix), mask.iconName ? findIcon(mask.iconName, mask.prefix) : Promise.resolve({
3017 found: false,
3018 width: 512,
3019 height: 512,
3020 icon: {}
3021 })]).then(function (_ref) {
3022 var _ref2 = _slicedToArray(_ref, 2),
3023 main = _ref2[0],
3024 mask = _ref2[1];
3025 resolve([node, makeInlineSvgAbstract({
3026 icons: {
3027 main: main,
3028 mask: mask
3029 },
3030 prefix: prefix,
3031 iconName: iconName,
3032 transform: transform,
3033 symbol: symbol,
3034 maskId: maskId,
3035 extra: extra,
3036 watchable: true
3037 })]);
3038 }).catch(reject);
3039 });
3040 };
3041 providers$$1.generateAbstractIcon = function (_ref3) {
3042 var children = _ref3.children,
3043 attributes = _ref3.attributes,
3044 main = _ref3.main,
3045 transform = _ref3.transform,
3046 styles = _ref3.styles;
3047 var styleString = joinStyles(styles);
3048 if (styleString.length > 0) {
3049 attributes['style'] = styleString;
3050 }
3051 var nextChild;
3052 if (transformIsMeaningful(transform)) {
3053 nextChild = callProvided('generateAbstractTransformGrouping', {
3054 main: main,
3055 transform: transform,
3056 containerWidth: main.width,
3057 iconWidth: main.width
3058 });
3059 }
3060 children.push(nextChild || main.icon);
3061 return {
3062 children: children,
3063 attributes: attributes
3064 };
3065 };
3066 }
3067 };
3068
3069 var layers = {
3070 mixout: function mixout() {
3071 return {
3072 layer: function layer(assembler) {
3073 var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
3074 var _params$classes = params.classes,
3075 classes = _params$classes === void 0 ? [] : _params$classes;
3076 return domVariants({
3077 type: 'layer'
3078 }, function () {
3079 callHooks('beforeDOMElementCreation', {
3080 assembler: assembler,
3081 params: params
3082 });
3083 var children = [];
3084 assembler(function (args) {
3085 Array.isArray(args) ? args.map(function (a) {
3086 children = children.concat(a.abstract);
3087 }) : children = children.concat(args.abstract);
3088 });
3089 return [{
3090 tag: 'span',
3091 attributes: {
3092 class: ["".concat(config.cssPrefix, "-layers")].concat(_toConsumableArray(classes)).join(' ')
3093 },
3094 children: children
3095 }];
3096 });
3097 }
3098 };
3099 }
3100 };
3101
3102 var layersCounter = {
3103 mixout: function mixout() {
3104 return {
3105 counter: function counter(content) {
3106 var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
3107 var _params$title = params.title,
3108 title = _params$title === void 0 ? null : _params$title,
3109 _params$classes = params.classes,
3110 classes = _params$classes === void 0 ? [] : _params$classes,
3111 _params$attributes = params.attributes,
3112 attributes = _params$attributes === void 0 ? {} : _params$attributes,
3113 _params$styles = params.styles,
3114 styles = _params$styles === void 0 ? {} : _params$styles;
3115 return domVariants({
3116 type: 'counter',
3117 content: content
3118 }, function () {
3119 callHooks('beforeDOMElementCreation', {
3120 content: content,
3121 params: params
3122 });
3123 return makeLayersCounterAbstract({
3124 content: content.toString(),
3125 title: title,
3126 extra: {
3127 attributes: attributes,
3128 styles: styles,
3129 classes: ["".concat(config.cssPrefix, "-layers-counter")].concat(_toConsumableArray(classes))
3130 }
3131 });
3132 });
3133 }
3134 };
3135 }
3136 };
3137
3138 var layersText = {
3139 mixout: function mixout() {
3140 return {
3141 text: function text(content) {
3142 var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
3143 var _params$transform = params.transform,
3144 transform = _params$transform === void 0 ? meaninglessTransform : _params$transform,
3145 _params$classes = params.classes,
3146 classes = _params$classes === void 0 ? [] : _params$classes,
3147 _params$attributes = params.attributes,
3148 attributes = _params$attributes === void 0 ? {} : _params$attributes,
3149 _params$styles = params.styles,
3150 styles = _params$styles === void 0 ? {} : _params$styles;
3151 return domVariants({
3152 type: 'text',
3153 content: content
3154 }, function () {
3155 callHooks('beforeDOMElementCreation', {
3156 content: content,
3157 params: params
3158 });
3159 return makeLayersTextAbstract({
3160 content: content,
3161 transform: _objectSpread2(_objectSpread2({}, meaninglessTransform), transform),
3162 extra: {
3163 attributes: attributes,
3164 styles: styles,
3165 classes: ["".concat(config.cssPrefix, "-layers-text")].concat(_toConsumableArray(classes))
3166 }
3167 });
3168 });
3169 }
3170 };
3171 },
3172 provides: function provides(providers$$1) {
3173 providers$$1.generateLayersText = function (node, nodeMeta) {
3174 var transform = nodeMeta.transform,
3175 extra = nodeMeta.extra;
3176 var width = null;
3177 var height = null;
3178 if (IS_IE) {
3179 var computedFontSize = parseInt(getComputedStyle(node).fontSize, 10);
3180 var boundingClientRect = node.getBoundingClientRect();
3181 width = boundingClientRect.width / computedFontSize;
3182 height = boundingClientRect.height / computedFontSize;
3183 }
3184 return Promise.resolve([node, makeLayersTextAbstract({
3185 content: node.innerHTML,
3186 width: width,
3187 height: height,
3188 transform: transform,
3189 extra: extra,
3190 watchable: true
3191 })]);
3192 };
3193 }
3194 };
3195
3196 var CLEAN_CONTENT_PATTERN = new RegExp("\"", 'ug');
3197 var SECONDARY_UNICODE_RANGE = [1105920, 1112319];
3198 var _FONT_FAMILY_WEIGHT_TO_PREFIX = _objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2({}, {
3199 FontAwesome: {
3200 normal: 'fas',
3201 400: 'fas'
3202 }
3203 }), zl), wa), ct);
3204 var FONT_FAMILY_WEIGHT_TO_PREFIX = Object.keys(_FONT_FAMILY_WEIGHT_TO_PREFIX).reduce(function (acc, key) {
3205 acc[key.toLowerCase()] = _FONT_FAMILY_WEIGHT_TO_PREFIX[key];
3206 return acc;
3207 }, {});
3208 var FONT_FAMILY_WEIGHT_FALLBACK = Object.keys(FONT_FAMILY_WEIGHT_TO_PREFIX).reduce(function (acc, fontFamily) {
3209 var weights = FONT_FAMILY_WEIGHT_TO_PREFIX[fontFamily];
3210 acc[fontFamily] = weights[900] || _toConsumableArray(Object.entries(weights))[0][1];
3211 return acc;
3212 }, {});
3213
3214 // Return hex value of *first* character in `content`
3215 function hexValueFromContent(content) {
3216 var cleaned = content.replace(CLEAN_CONTENT_PATTERN, '');
3217 return toHex(_toConsumableArray(cleaned)[0] || '');
3218 }
3219
3220 // Check if it's a secondary Duotone layer, by checking if:
3221 // - Unicode value in `content` is repeated
3222 // - Unicode value in `content` is above 0x10000
3223 // - The "ss01" font feature is enabled on the `content`
3224 function isSecondaryLayer(styles) {
3225 var hasStylisticSet = styles.getPropertyValue('font-feature-settings').includes('ss01');
3226 var content = styles.getPropertyValue('content');
3227 var cleaned = content.replace(CLEAN_CONTENT_PATTERN, '');
3228 var codePoint = cleaned.codePointAt(0);
3229 var isPrependTen = codePoint >= SECONDARY_UNICODE_RANGE[0] && codePoint <= SECONDARY_UNICODE_RANGE[1];
3230 var isDoubled = cleaned.length === 2 ? cleaned[0] === cleaned[1] : false;
3231 return isPrependTen || isDoubled || hasStylisticSet;
3232 }
3233 function getPrefix(fontFamily, fontWeight) {
3234 var fontFamilySanitized = fontFamily.replace(/^['"]|['"]$/g, '').toLowerCase();
3235 var fontWeightInteger = parseInt(fontWeight);
3236 var fontWeightSanitized = isNaN(fontWeightInteger) ? 'normal' : fontWeightInteger;
3237 return (FONT_FAMILY_WEIGHT_TO_PREFIX[fontFamilySanitized] || {})[fontWeightSanitized] || FONT_FAMILY_WEIGHT_FALLBACK[fontFamilySanitized];
3238 }
3239 function replaceForPosition(node, position) {
3240 var pendingAttribute = "".concat(DATA_FA_PSEUDO_ELEMENT_PENDING).concat(position.replace(':', '-'));
3241 return new Promise(function (resolve, reject) {
3242 if (node.getAttribute(pendingAttribute) !== null) {
3243 // This node is already being processed
3244 return resolve();
3245 }
3246 var children = toArray(node.children);
3247 var alreadyProcessedPseudoElement = children.filter(function (c$$1) {
3248 return c$$1.getAttribute(DATA_FA_PSEUDO_ELEMENT) === position;
3249 })[0];
3250 var styles = WINDOW.getComputedStyle(node, position);
3251 var fontFamily = styles.getPropertyValue('font-family');
3252 var fontFamilyMatch = fontFamily.match(FONT_FAMILY_PATTERN);
3253 var fontWeight = styles.getPropertyValue('font-weight');
3254 var content = styles.getPropertyValue('content');
3255 if (alreadyProcessedPseudoElement && !fontFamilyMatch) {
3256 // If we've already processed it but the current computed style does not result in a font-family,
3257 // that probably means that a class name that was previously present to make the icon has been
3258 // removed. So we now should delete the icon.
3259 node.removeChild(alreadyProcessedPseudoElement);
3260 return resolve();
3261 } else if (fontFamilyMatch && content !== 'none' && content !== '') {
3262 var _content = styles.getPropertyValue('content');
3263 var prefix = getPrefix(fontFamily, fontWeight);
3264 var hexValue = hexValueFromContent(_content);
3265 var isV4 = fontFamilyMatch[0].startsWith('FontAwesome');
3266 var isSecondary = isSecondaryLayer(styles);
3267 var iconName = byUnicode(prefix, hexValue);
3268 var iconIdentifier = iconName;
3269 if (isV4) {
3270 var iconName4 = byOldUnicode(hexValue);
3271 if (iconName4.iconName && iconName4.prefix) {
3272 iconName = iconName4.iconName;
3273 prefix = iconName4.prefix;
3274 }
3275 }
3276
3277 // Only convert the pseudo element in this ::before/::after position into an icon if we haven't
3278 // already done so with the same prefix and iconName
3279 if (iconName && !isSecondary && (!alreadyProcessedPseudoElement || alreadyProcessedPseudoElement.getAttribute(DATA_PREFIX) !== prefix || alreadyProcessedPseudoElement.getAttribute(DATA_ICON) !== iconIdentifier)) {
3280 node.setAttribute(pendingAttribute, iconIdentifier);
3281 if (alreadyProcessedPseudoElement) {
3282 // Delete the old one, since we're replacing it with a new one
3283 node.removeChild(alreadyProcessedPseudoElement);
3284 }
3285 var meta = blankMeta();
3286 var extra = meta.extra;
3287 extra.attributes[DATA_FA_PSEUDO_ELEMENT] = position;
3288 findIcon(iconName, prefix).then(function (main) {
3289 var abstract = makeInlineSvgAbstract(_objectSpread2(_objectSpread2({}, meta), {}, {
3290 icons: {
3291 main: main,
3292 mask: emptyCanonicalIcon()
3293 },
3294 prefix: prefix,
3295 iconName: iconIdentifier,
3296 extra: extra,
3297 watchable: true
3298 }));
3299 var element = DOCUMENT.createElementNS('http://www.w3.org/2000/svg', 'svg');
3300 if (position === '::before') {
3301 node.insertBefore(element, node.firstChild);
3302 } else {
3303 node.appendChild(element);
3304 }
3305 element.outerHTML = abstract.map(function (a$$1) {
3306 return toHtml(a$$1);
3307 }).join('\n');
3308 node.removeAttribute(pendingAttribute);
3309 resolve();
3310 }).catch(reject);
3311 } else {
3312 resolve();
3313 }
3314 } else {
3315 resolve();
3316 }
3317 });
3318 }
3319 function replace(node) {
3320 return Promise.all([replaceForPosition(node, '::before'), replaceForPosition(node, '::after')]);
3321 }
3322 function processable(node) {
3323 return node.parentNode !== document.head && !~TAGNAMES_TO_SKIP_FOR_PSEUDOELEMENTS.indexOf(node.tagName.toUpperCase()) && !node.getAttribute(DATA_FA_PSEUDO_ELEMENT) && (!node.parentNode || node.parentNode.tagName !== 'svg');
3324 }
3325 var hasPseudoElement = function hasPseudoElement(selector) {
3326 return !!selector && PSEUDO_ELEMENTS.some(function (pseudoSelector) {
3327 return selector.includes(pseudoSelector);
3328 });
3329 };
3330
3331 // Return selectors from all available stylesheets that have
3332 // pseudo-elements defined.
3333 var parseCSSRuleForPseudos = function parseCSSRuleForPseudos(selectorText) {
3334 if (!selectorText) return [];
3335 var selectorSet = new Set();
3336 var selectors = selectorText.split(/,(?![^()]*\))/).map(function (s$$1) {
3337 return s$$1.trim();
3338 });
3339 selectors = selectors.flatMap(function (selector) {
3340 return selector.includes('(') ? selector : selector.split(',').map(function (s$$1) {
3341 return s$$1.trim();
3342 });
3343 });
3344 var _iterator = _createForOfIteratorHelper(selectors),
3345 _step;
3346 try {
3347 for (_iterator.s(); !(_step = _iterator.n()).done;) {
3348 var selector = _step.value;
3349 if (hasPseudoElement(selector)) {
3350 // Remove pseudo-elements from the selector
3351 var selectorWithoutPseudo = PSEUDO_ELEMENTS.reduce(function (acc, pseudoSelector) {
3352 return acc.replace(pseudoSelector, '');
3353 }, selector);
3354 if (selectorWithoutPseudo !== '' && selectorWithoutPseudo !== '*') {
3355 selectorSet.add(selectorWithoutPseudo);
3356 }
3357 }
3358 }
3359 } catch (err) {
3360 _iterator.e(err);
3361 } finally {
3362 _iterator.f();
3363 }
3364 return selectorSet;
3365 };
3366 function searchPseudoElements(root) {
3367 var useAsNodeList = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
3368 if (!IS_DOM) return;
3369 var nodeList;
3370 if (useAsNodeList) {
3371 nodeList = root;
3372 } else if (config.searchPseudoElementsFullScan) {
3373 nodeList = root.querySelectorAll('*');
3374 } else {
3375 // Get elements that have pseudo elements defined in the CSS
3376 var selectorSet = new Set();
3377 var _iterator2 = _createForOfIteratorHelper(document.styleSheets),
3378 _step2;
3379 try {
3380 for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
3381 var stylesheet = _step2.value;
3382 try {
3383 var _iterator3 = _createForOfIteratorHelper(stylesheet.cssRules),
3384 _step3;
3385 try {
3386 for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
3387 var rule = _step3.value;
3388 var parsedSelectors = parseCSSRuleForPseudos(rule.selectorText);
3389 var _iterator4 = _createForOfIteratorHelper(parsedSelectors),
3390 _step4;
3391 try {
3392 for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {
3393 var selector = _step4.value;
3394 selectorSet.add(selector);
3395 }
3396 } catch (err) {
3397 _iterator4.e(err);
3398 } finally {
3399 _iterator4.f();
3400 }
3401 }
3402 } catch (err) {
3403 _iterator3.e(err);
3404 } finally {
3405 _iterator3.f();
3406 }
3407 } catch (e$$1) {
3408 if (config.searchPseudoElementsWarnings) {
3409 console.warn("Font Awesome: cannot parse stylesheet: ".concat(stylesheet.href, " (").concat(e$$1.message, ")\nIf it declares any Font Awesome CSS pseudo-elements, they will not be rendered as SVG icons. Add crossorigin=\"anonymous\" to the <link>, enable searchPseudoElementsFullScan for slower but more thorough DOM parsing, or suppress this warning by setting searchPseudoElementsWarnings to false."));
3410 }
3411 }
3412 }
3413 } catch (err) {
3414 _iterator2.e(err);
3415 } finally {
3416 _iterator2.f();
3417 }
3418 if (!selectorSet.size) return;
3419 var cleanSelectors = Array.from(selectorSet).join(', ');
3420 try {
3421 nodeList = root.querySelectorAll(cleanSelectors);
3422 } catch (_unused) {} // eslint-disable-line no-empty
3423 }
3424 return new Promise(function (resolve, reject) {
3425 var operations = toArray(nodeList).filter(processable).map(replace);
3426 var end = perf.begin('searchPseudoElements');
3427 disableObservation();
3428 Promise.all(operations).then(function () {
3429 end();
3430 enableObservation();
3431 resolve();
3432 }).catch(function () {
3433 end();
3434 enableObservation();
3435 reject();
3436 });
3437 });
3438 }
3439 var pseudoElements = {
3440 hooks: function hooks() {
3441 return {
3442 mutationObserverCallbacks: function mutationObserverCallbacks(accumulator) {
3443 accumulator.pseudoElementsCallback = searchPseudoElements;
3444 return accumulator;
3445 }
3446 };
3447 },
3448 provides: function provides(providers) {
3449 providers.pseudoElements2svg = function (params) {
3450 var _params$node = params.node,
3451 node = _params$node === void 0 ? DOCUMENT : _params$node;
3452 if (config.searchPseudoElements) {
3453 searchPseudoElements(node);
3454 }
3455 };
3456 }
3457 };
3458
3459 var _unwatched = false;
3460 var mutationObserver = {
3461 mixout: function mixout() {
3462 return {
3463 dom: {
3464 unwatch: function unwatch() {
3465 disableObservation();
3466 _unwatched = true;
3467 }
3468 }
3469 };
3470 },
3471 hooks: function hooks() {
3472 return {
3473 bootstrap: function bootstrap() {
3474 observe(chainHooks('mutationObserverCallbacks', {}));
3475 },
3476 noAuto: function noAuto() {
3477 disconnect();
3478 },
3479 watch: function watch(params) {
3480 var observeMutationsRoot = params.observeMutationsRoot;
3481 if (_unwatched) {
3482 enableObservation();
3483 } else {
3484 observe(chainHooks('mutationObserverCallbacks', {
3485 observeMutationsRoot: observeMutationsRoot
3486 }));
3487 }
3488 }
3489 };
3490 }
3491 };
3492
3493 var parseTransformString = function parseTransformString(transformString) {
3494 var transform = {
3495 size: 16,
3496 x: 0,
3497 y: 0,
3498 flipX: false,
3499 flipY: false,
3500 rotate: 0
3501 };
3502 return transformString.toLowerCase().split(' ').reduce(function (acc, n) {
3503 var parts = n.toLowerCase().split('-');
3504 var first = parts[0];
3505 var rest = parts.slice(1).join('-');
3506 if (first && rest === 'h') {
3507 acc.flipX = true;
3508 return acc;
3509 }
3510 if (first && rest === 'v') {
3511 acc.flipY = true;
3512 return acc;
3513 }
3514 rest = parseFloat(rest);
3515 if (isNaN(rest)) {
3516 return acc;
3517 }
3518 switch (first) {
3519 case 'grow':
3520 acc.size = acc.size + rest;
3521 break;
3522 case 'shrink':
3523 acc.size = acc.size - rest;
3524 break;
3525 case 'left':
3526 acc.x = acc.x - rest;
3527 break;
3528 case 'right':
3529 acc.x = acc.x + rest;
3530 break;
3531 case 'up':
3532 acc.y = acc.y - rest;
3533 break;
3534 case 'down':
3535 acc.y = acc.y + rest;
3536 break;
3537 case 'rotate':
3538 acc.rotate = acc.rotate + rest;
3539 break;
3540 }
3541 return acc;
3542 }, transform);
3543 };
3544 var powerTransforms = {
3545 mixout: function mixout() {
3546 return {
3547 parse: {
3548 transform: function transform(transformString) {
3549 return parseTransformString(transformString);
3550 }
3551 }
3552 };
3553 },
3554 hooks: function hooks() {
3555 return {
3556 parseNodeAttributes: function parseNodeAttributes(accumulator, node) {
3557 var transformString = node.getAttribute('data-fa-transform');
3558 if (transformString) {
3559 accumulator.transform = parseTransformString(transformString);
3560 }
3561 return accumulator;
3562 }
3563 };
3564 },
3565 provides: function provides(providers) {
3566 providers.generateAbstractTransformGrouping = function (_ref) {
3567 var main = _ref.main,
3568 transform = _ref.transform,
3569 containerWidth = _ref.containerWidth,
3570 iconWidth = _ref.iconWidth;
3571 var outer = {
3572 transform: "translate(".concat(containerWidth / 2, " 256)")
3573 };
3574 var innerTranslate = "translate(".concat(transform.x * 32, ", ").concat(transform.y * 32, ") ");
3575 var innerScale = "scale(".concat(transform.size / 16 * (transform.flipX ? -1 : 1), ", ").concat(transform.size / 16 * (transform.flipY ? -1 : 1), ") ");
3576 var innerRotate = "rotate(".concat(transform.rotate, " 0 0)");
3577 var inner = {
3578 transform: "".concat(innerTranslate, " ").concat(innerScale, " ").concat(innerRotate)
3579 };
3580 var path = {
3581 transform: "translate(".concat(iconWidth / 2 * -1, " -256)")
3582 };
3583 var operations = {
3584 outer: outer,
3585 inner: inner,
3586 path: path
3587 };
3588 return {
3589 tag: 'g',
3590 attributes: _objectSpread2({}, operations.outer),
3591 children: [{
3592 tag: 'g',
3593 attributes: _objectSpread2({}, operations.inner),
3594 children: [{
3595 tag: main.icon.tag,
3596 children: main.icon.children,
3597 attributes: _objectSpread2(_objectSpread2({}, main.icon.attributes), operations.path)
3598 }]
3599 }]
3600 };
3601 };
3602 }
3603 };
3604
3605 var ALL_SPACE = {
3606 x: 0,
3607 y: 0,
3608 width: '100%',
3609 height: '100%'
3610 };
3611 function fillBlack(abstract) {
3612 var force = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
3613 if (abstract.attributes && (abstract.attributes.fill || force)) {
3614 abstract.attributes.fill = 'black';
3615 }
3616 return abstract;
3617 }
3618 function deGroup(abstract) {
3619 if (abstract.tag === 'g') {
3620 return abstract.children;
3621 } else {
3622 return [abstract];
3623 }
3624 }
3625 var masks = {
3626 hooks: function hooks() {
3627 return {
3628 parseNodeAttributes: function parseNodeAttributes(accumulator, node) {
3629 var maskData = node.getAttribute('data-fa-mask');
3630 var mask = !maskData ? emptyCanonicalIcon() : getCanonicalIcon(maskData.split(' ').map(function (i) {
3631 return i.trim();
3632 }));
3633 if (!mask.prefix) {
3634 mask.prefix = getDefaultUsablePrefix();
3635 }
3636 accumulator.mask = mask;
3637 accumulator.maskId = node.getAttribute('data-fa-mask-id');
3638 return accumulator;
3639 }
3640 };
3641 },
3642 provides: function provides(providers) {
3643 providers.generateAbstractMask = function (_ref) {
3644 var children = _ref.children,
3645 attributes = _ref.attributes,
3646 main = _ref.main,
3647 mask = _ref.mask,
3648 explicitMaskId = _ref.maskId,
3649 transform = _ref.transform;
3650 var mainWidth = main.width,
3651 mainPath = main.icon;
3652 var maskWidth = mask.width,
3653 maskPath = mask.icon;
3654 var trans = transformForSvg({
3655 transform: transform,
3656 containerWidth: maskWidth,
3657 iconWidth: mainWidth
3658 });
3659 var maskRect = {
3660 tag: 'rect',
3661 attributes: _objectSpread2(_objectSpread2({}, ALL_SPACE), {}, {
3662 fill: 'white'
3663 })
3664 };
3665 var maskInnerGroupChildrenMixin = mainPath.children ? {
3666 children: mainPath.children.map(fillBlack)
3667 } : {};
3668 var maskInnerGroup = {
3669 tag: 'g',
3670 attributes: _objectSpread2({}, trans.inner),
3671 children: [fillBlack(_objectSpread2({
3672 tag: mainPath.tag,
3673 attributes: _objectSpread2(_objectSpread2({}, mainPath.attributes), trans.path)
3674 }, maskInnerGroupChildrenMixin))]
3675 };
3676 var maskOuterGroup = {
3677 tag: 'g',
3678 attributes: _objectSpread2({}, trans.outer),
3679 children: [maskInnerGroup]
3680 };
3681 var maskId = "mask-".concat(explicitMaskId || nextUniqueId());
3682 var clipId = "clip-".concat(explicitMaskId || nextUniqueId());
3683 var maskTag = {
3684 tag: 'mask',
3685 attributes: _objectSpread2(_objectSpread2({}, ALL_SPACE), {}, {
3686 id: maskId,
3687 maskUnits: 'userSpaceOnUse',
3688 maskContentUnits: 'userSpaceOnUse'
3689 }),
3690 children: [maskRect, maskOuterGroup]
3691 };
3692 var defs = {
3693 tag: 'defs',
3694 children: [{
3695 tag: 'clipPath',
3696 attributes: {
3697 id: clipId
3698 },
3699 children: deGroup(maskPath)
3700 }, maskTag]
3701 };
3702 children.push(defs, {
3703 tag: 'rect',
3704 attributes: _objectSpread2({
3705 'fill': 'currentColor',
3706 'clip-path': "url(#".concat(clipId, ")"),
3707 'mask': "url(#".concat(maskId, ")")
3708 }, ALL_SPACE)
3709 });
3710 return {
3711 children: children,
3712 attributes: attributes
3713 };
3714 };
3715 }
3716 };
3717
3718 var missingIconIndicator = {
3719 provides: function provides(providers) {
3720 var reduceMotion = false;
3721 if (WINDOW.matchMedia) {
3722 reduceMotion = WINDOW.matchMedia('(prefers-reduced-motion: reduce)').matches;
3723 }
3724 providers.missingIconAbstract = function () {
3725 var gChildren = [];
3726 var FILL = {
3727 fill: 'currentColor'
3728 };
3729 var ANIMATION_BASE = {
3730 attributeType: 'XML',
3731 repeatCount: 'indefinite',
3732 dur: '2s'
3733 };
3734
3735 // Ring
3736 gChildren.push({
3737 tag: 'path',
3738 attributes: _objectSpread2(_objectSpread2({}, FILL), {}, {
3739 d: 'M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z'
3740 })
3741 });
3742 var OPACITY_ANIMATE = _objectSpread2(_objectSpread2({}, ANIMATION_BASE), {}, {
3743 attributeName: 'opacity'
3744 });
3745 var dot = {
3746 tag: 'circle',
3747 attributes: _objectSpread2(_objectSpread2({}, FILL), {}, {
3748 cx: '256',
3749 cy: '364',
3750 r: '28'
3751 }),
3752 children: []
3753 };
3754 if (!reduceMotion) {
3755 dot.children.push({
3756 tag: 'animate',
3757 attributes: _objectSpread2(_objectSpread2({}, ANIMATION_BASE), {}, {
3758 attributeName: 'r',
3759 values: '28;14;28;28;14;28;'
3760 })
3761 }, {
3762 tag: 'animate',
3763 attributes: _objectSpread2(_objectSpread2({}, OPACITY_ANIMATE), {}, {
3764 values: '1;0;1;1;0;1;'
3765 })
3766 });
3767 }
3768 gChildren.push(dot);
3769 gChildren.push({
3770 tag: 'path',
3771 attributes: _objectSpread2(_objectSpread2({}, FILL), {}, {
3772 opacity: '1',
3773 d: 'M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z'
3774 }),
3775 children: reduceMotion ? [] : [{
3776 tag: 'animate',
3777 attributes: _objectSpread2(_objectSpread2({}, OPACITY_ANIMATE), {}, {
3778 values: '1;0;0;0;0;1;'
3779 })
3780 }]
3781 });
3782 if (!reduceMotion) {
3783 // Exclamation
3784 gChildren.push({
3785 tag: 'path',
3786 attributes: _objectSpread2(_objectSpread2({}, FILL), {}, {
3787 opacity: '0',
3788 d: 'M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z'
3789 }),
3790 children: [{
3791 tag: 'animate',
3792 attributes: _objectSpread2(_objectSpread2({}, OPACITY_ANIMATE), {}, {
3793 values: '0;0;1;1;0;0;'
3794 })
3795 }]
3796 });
3797 }
3798 return {
3799 tag: 'g',
3800 attributes: {
3801 class: 'missing'
3802 },
3803 children: gChildren
3804 };
3805 };
3806 }
3807 };
3808
3809 var svgSymbols = {
3810 hooks: function hooks() {
3811 return {
3812 parseNodeAttributes: function parseNodeAttributes(accumulator, node) {
3813 var symbolData = node.getAttribute('data-fa-symbol');
3814 var symbol = symbolData === null ? false : symbolData === '' ? true : symbolData;
3815 accumulator['symbol'] = symbol;
3816 return accumulator;
3817 }
3818 };
3819 }
3820 };
3821
3822 function register(plugins) {
3823 return registerPlugins(plugins, {
3824 mixoutsTo: api
3825 });
3826 }
3827
3828 export { register, injectCss as InjectCSS, replaceElements as ReplaceElements, layers as Layers, layersCounter as LayersCounter, layersText as LayersText, pseudoElements as PseudoElements, mutationObserver as MutationObserver, powerTransforms as PowerTransforms, masks as Masks, missingIconIndicator as MissingIconIndicator, svgSymbols as SvgSymbols };