fontawesome.js 136 KB

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