@indico-data/design-system 2.40.0 → 2.41.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/index.esm.js CHANGED
@@ -1,3103 +1,18 @@
1
+ import { library, findIconDefinition } from '@fortawesome/fontawesome-svg-core';
2
+ import { faCopy, faQuestionCircle, faFileDownload, faCog, faSearch, faPencilAlt, faTag, faCaretDown, faCaretUp, faEye, faEyeSlash, faWind, faRocket, faMountainSun, faCircleNotch, faCheck, faCalculator, faArrowLeft, faArrowRight, faArrowDown } from '@fortawesome/free-solid-svg-icons';
1
3
  import * as React from 'react';
2
4
  import React__default, { useLayoutEffect, useEffect, forwardRef, cloneElement, useState, useRef, isValidElement, createContext, useContext, useMemo, useCallback, useId as useId$1, useImperativeHandle } from 'react';
3
5
  import * as ReactDOM from 'react-dom';
4
6
  import ReactDOM__default from 'react-dom';
5
7
  import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
6
- import styled, { css as css$1, createGlobalStyle, ThemeProvider, keyframes } from 'styled-components';
8
+ import styled, { css, createGlobalStyle, ThemeProvider, keyframes } from 'styled-components';
9
+ import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
7
10
  import ReactSelect, { components as components$1 } from 'react-select';
8
11
  import { Link } from 'react-router-dom';
9
12
 
10
- function ownKeys$1(object, enumerableOnly) {
11
- var keys = Object.keys(object);
12
-
13
- if (Object.getOwnPropertySymbols) {
14
- var symbols = Object.getOwnPropertySymbols(object);
15
- enumerableOnly && (symbols = symbols.filter(function (sym) {
16
- return Object.getOwnPropertyDescriptor(object, sym).enumerable;
17
- })), keys.push.apply(keys, symbols);
18
- }
19
-
20
- return keys;
21
- }
22
-
23
- function _objectSpread2$1(target) {
24
- for (var i = 1; i < arguments.length; i++) {
25
- var source = null != arguments[i] ? arguments[i] : {};
26
- i % 2 ? ownKeys$1(Object(source), !0).forEach(function (key) {
27
- _defineProperty$1(target, key, source[key]);
28
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$1(Object(source)).forEach(function (key) {
29
- Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
30
- });
31
- }
32
-
33
- return target;
34
- }
35
-
36
- function _typeof$1(obj) {
37
- "@babel/helpers - typeof";
38
-
39
- return _typeof$1 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
40
- return typeof obj;
41
- } : function (obj) {
42
- return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
43
- }, _typeof$1(obj);
44
- }
45
-
46
- function _classCallCheck$2(instance, Constructor) {
47
- if (!(instance instanceof Constructor)) {
48
- throw new TypeError("Cannot call a class as a function");
49
- }
50
- }
51
-
52
- function _defineProperties(target, props) {
53
- for (var i = 0; i < props.length; i++) {
54
- var descriptor = props[i];
55
- descriptor.enumerable = descriptor.enumerable || false;
56
- descriptor.configurable = true;
57
- if ("value" in descriptor) descriptor.writable = true;
58
- Object.defineProperty(target, descriptor.key, descriptor);
59
- }
60
- }
61
-
62
- function _createClass$1(Constructor, protoProps, staticProps) {
63
- if (protoProps) _defineProperties(Constructor.prototype, protoProps);
64
- Object.defineProperty(Constructor, "prototype", {
65
- writable: false
66
- });
67
- return Constructor;
68
- }
69
-
70
- function _defineProperty$1(obj, key, value) {
71
- if (key in obj) {
72
- Object.defineProperty(obj, key, {
73
- value: value,
74
- enumerable: true,
75
- configurable: true,
76
- writable: true
77
- });
78
- } else {
79
- obj[key] = value;
80
- }
81
-
82
- return obj;
83
- }
84
-
85
- function _slicedToArray(arr, i) {
86
- return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray$1(arr, i) || _nonIterableRest();
87
- }
88
-
89
- function _toConsumableArray$1(arr) {
90
- return _arrayWithoutHoles$1(arr) || _iterableToArray$1(arr) || _unsupportedIterableToArray$1(arr) || _nonIterableSpread$1();
91
- }
92
-
93
- function _arrayWithoutHoles$1(arr) {
94
- if (Array.isArray(arr)) return _arrayLikeToArray$1(arr);
95
- }
96
-
97
- function _arrayWithHoles(arr) {
98
- if (Array.isArray(arr)) return arr;
99
- }
100
-
101
- function _iterableToArray$1(iter) {
102
- if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
103
- }
104
-
105
- function _iterableToArrayLimit(arr, i) {
106
- var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
107
-
108
- if (_i == null) return;
109
- var _arr = [];
110
- var _n = true;
111
- var _d = false;
112
-
113
- var _s, _e;
114
-
115
- try {
116
- for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) {
117
- _arr.push(_s.value);
118
-
119
- if (i && _arr.length === i) break;
120
- }
121
- } catch (err) {
122
- _d = true;
123
- _e = err;
124
- } finally {
125
- try {
126
- if (!_n && _i["return"] != null) _i["return"]();
127
- } finally {
128
- if (_d) throw _e;
129
- }
130
- }
131
-
132
- return _arr;
133
- }
134
-
135
- function _unsupportedIterableToArray$1(o, minLen) {
136
- if (!o) return;
137
- if (typeof o === "string") return _arrayLikeToArray$1(o, minLen);
138
- var n = Object.prototype.toString.call(o).slice(8, -1);
139
- if (n === "Object" && o.constructor) n = o.constructor.name;
140
- if (n === "Map" || n === "Set") return Array.from(o);
141
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$1(o, minLen);
142
- }
143
-
144
- function _arrayLikeToArray$1(arr, len) {
145
- if (len == null || len > arr.length) len = arr.length;
146
-
147
- for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
148
-
149
- return arr2;
150
- }
151
-
152
- function _nonIterableSpread$1() {
153
- throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
154
- }
155
-
156
- function _nonIterableRest() {
157
- throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
158
- }
159
-
160
- var noop = function noop() {};
161
-
162
- var _WINDOW = {};
163
- var _DOCUMENT = {};
164
- var _MUTATION_OBSERVER = null;
165
- var _PERFORMANCE = {
166
- mark: noop,
167
- measure: noop
168
- };
169
-
170
- try {
171
- if (typeof window !== 'undefined') _WINDOW = window;
172
- if (typeof document !== 'undefined') _DOCUMENT = document;
173
- if (typeof MutationObserver !== 'undefined') _MUTATION_OBSERVER = MutationObserver;
174
- if (typeof performance !== 'undefined') _PERFORMANCE = performance;
175
- } catch (e) {}
176
-
177
- var _ref = _WINDOW.navigator || {},
178
- _ref$userAgent = _ref.userAgent,
179
- userAgent = _ref$userAgent === void 0 ? '' : _ref$userAgent;
180
- var WINDOW = _WINDOW;
181
- var DOCUMENT = _DOCUMENT;
182
- var MUTATION_OBSERVER = _MUTATION_OBSERVER;
183
- var PERFORMANCE = _PERFORMANCE;
184
- !!WINDOW.document;
185
- var IS_DOM = !!DOCUMENT.documentElement && !!DOCUMENT.head && typeof DOCUMENT.addEventListener === 'function' && typeof DOCUMENT.createElement === 'function';
186
- var IS_IE = ~userAgent.indexOf('MSIE') || ~userAgent.indexOf('Trident/');
187
-
188
- var _familyProxy, _familyProxy2, _familyProxy3, _familyProxy4, _familyProxy5;
189
-
190
- var NAMESPACE_IDENTIFIER = '___FONT_AWESOME___';
191
- var UNITS_IN_GRID = 16;
192
- var DEFAULT_CSS_PREFIX = 'fa';
193
- var DEFAULT_REPLACEMENT_CLASS = 'svg-inline--fa';
194
- var DATA_FA_I2SVG = 'data-fa-i2svg';
195
- var DATA_FA_PSEUDO_ELEMENT = 'data-fa-pseudo-element';
196
- var DATA_FA_PSEUDO_ELEMENT_PENDING = 'data-fa-pseudo-element-pending';
197
- var DATA_PREFIX = 'data-prefix';
198
- var DATA_ICON = 'data-icon';
199
- var HTML_CLASS_I2SVG_BASE_CLASS = 'fontawesome-i2svg';
200
- var MUTATION_APPROACH_ASYNC = 'async';
201
- var TAGNAMES_TO_SKIP_FOR_PSEUDOELEMENTS = ['HTML', 'HEAD', 'STYLE', 'SCRIPT'];
202
- var PRODUCTION$1 = function () {
203
- try {
204
- return process.env.NODE_ENV === 'production';
205
- } catch (e) {
206
- return false;
207
- }
208
- }();
209
- var FAMILY_CLASSIC = 'classic';
210
- var FAMILY_SHARP = 'sharp';
211
- var FAMILIES = [FAMILY_CLASSIC, FAMILY_SHARP];
212
-
213
- function familyProxy(obj) {
214
- // Defaults to the classic family if family is not available
215
- return new Proxy(obj, {
216
- get: function get(target, prop) {
217
- return prop in target ? target[prop] : target[FAMILY_CLASSIC];
218
- }
219
- });
220
- }
221
- var PREFIX_TO_STYLE = familyProxy((_familyProxy = {}, _defineProperty$1(_familyProxy, FAMILY_CLASSIC, {
222
- 'fa': 'solid',
223
- 'fas': 'solid',
224
- 'fa-solid': 'solid',
225
- 'far': 'regular',
226
- 'fa-regular': 'regular',
227
- 'fal': 'light',
228
- 'fa-light': 'light',
229
- 'fat': 'thin',
230
- 'fa-thin': 'thin',
231
- 'fad': 'duotone',
232
- 'fa-duotone': 'duotone',
233
- 'fab': 'brands',
234
- 'fa-brands': 'brands',
235
- 'fak': 'kit',
236
- 'fakd': 'kit',
237
- 'fa-kit': 'kit',
238
- 'fa-kit-duotone': 'kit'
239
- }), _defineProperty$1(_familyProxy, FAMILY_SHARP, {
240
- 'fa': 'solid',
241
- 'fass': 'solid',
242
- 'fa-solid': 'solid',
243
- 'fasr': 'regular',
244
- 'fa-regular': 'regular',
245
- 'fasl': 'light',
246
- 'fa-light': 'light',
247
- 'fast': 'thin',
248
- 'fa-thin': 'thin'
249
- }), _familyProxy));
250
- var STYLE_TO_PREFIX = familyProxy((_familyProxy2 = {}, _defineProperty$1(_familyProxy2, FAMILY_CLASSIC, {
251
- solid: 'fas',
252
- regular: 'far',
253
- light: 'fal',
254
- thin: 'fat',
255
- duotone: 'fad',
256
- brands: 'fab',
257
- kit: 'fak'
258
- }), _defineProperty$1(_familyProxy2, FAMILY_SHARP, {
259
- solid: 'fass',
260
- regular: 'fasr',
261
- light: 'fasl',
262
- thin: 'fast'
263
- }), _familyProxy2));
264
- var PREFIX_TO_LONG_STYLE = familyProxy((_familyProxy3 = {}, _defineProperty$1(_familyProxy3, FAMILY_CLASSIC, {
265
- fab: 'fa-brands',
266
- fad: 'fa-duotone',
267
- fak: 'fa-kit',
268
- fal: 'fa-light',
269
- far: 'fa-regular',
270
- fas: 'fa-solid',
271
- fat: 'fa-thin'
272
- }), _defineProperty$1(_familyProxy3, FAMILY_SHARP, {
273
- fass: 'fa-solid',
274
- fasr: 'fa-regular',
275
- fasl: 'fa-light',
276
- fast: 'fa-thin'
277
- }), _familyProxy3));
278
- var LONG_STYLE_TO_PREFIX = familyProxy((_familyProxy4 = {}, _defineProperty$1(_familyProxy4, FAMILY_CLASSIC, {
279
- 'fa-brands': 'fab',
280
- 'fa-duotone': 'fad',
281
- 'fa-kit': 'fak',
282
- 'fa-light': 'fal',
283
- 'fa-regular': 'far',
284
- 'fa-solid': 'fas',
285
- 'fa-thin': 'fat'
286
- }), _defineProperty$1(_familyProxy4, FAMILY_SHARP, {
287
- 'fa-solid': 'fass',
288
- 'fa-regular': 'fasr',
289
- 'fa-light': 'fasl',
290
- 'fa-thin': 'fast'
291
- }), _familyProxy4));
292
- var ICON_SELECTION_SYNTAX_PATTERN = /fa(s|r|l|t|d|b|k|ss|sr|sl|st)?[\-\ ]/; // eslint-disable-line no-useless-escape
293
-
294
- var LAYERS_TEXT_CLASSNAME = 'fa-layers-text';
295
- var FONT_FAMILY_PATTERN = /Font ?Awesome ?([56 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Sharp|Kit)?.*/i;
296
- var FONT_WEIGHT_TO_PREFIX = familyProxy((_familyProxy5 = {}, _defineProperty$1(_familyProxy5, FAMILY_CLASSIC, {
297
- 900: 'fas',
298
- 400: 'far',
299
- normal: 'far',
300
- 300: 'fal',
301
- 100: 'fat'
302
- }), _defineProperty$1(_familyProxy5, FAMILY_SHARP, {
303
- 900: 'fass',
304
- 400: 'fasr',
305
- 300: 'fasl',
306
- 100: 'fast'
307
- }), _familyProxy5));
308
- var oneToTen = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10];
309
- var oneToTwenty = oneToTen.concat([11, 12, 13, 14, 15, 16, 17, 18, 19, 20]);
310
- var ATTRIBUTES_WATCHED_FOR_MUTATION = ['class', 'data-prefix', 'data-icon', 'data-fa-transform', 'data-fa-mask'];
311
- var DUOTONE_CLASSES = {
312
- GROUP: 'duotone-group',
313
- SWAP_OPACITY: 'swap-opacity',
314
- PRIMARY: 'primary',
315
- SECONDARY: 'secondary'
316
- };
317
- var prefixes = new Set();
318
- Object.keys(STYLE_TO_PREFIX[FAMILY_CLASSIC]).map(prefixes.add.bind(prefixes));
319
- Object.keys(STYLE_TO_PREFIX[FAMILY_SHARP]).map(prefixes.add.bind(prefixes));
320
- var RESERVED_CLASSES = [].concat(FAMILIES, _toConsumableArray$1(prefixes), ['2xs', 'xs', 'sm', 'lg', 'xl', '2xl', 'beat', 'border', 'fade', 'beat-fade', 'bounce', 'flip-both', 'flip-horizontal', 'flip-vertical', 'flip', 'fw', 'inverse', 'layers-counter', 'layers-text', 'layers', 'li', 'pull-left', 'pull-right', 'pulse', 'rotate-180', 'rotate-270', 'rotate-90', 'rotate-by', 'shake', 'spin-pulse', 'spin-reverse', 'spin', 'stack-1x', 'stack-2x', 'stack', 'ul', DUOTONE_CLASSES.GROUP, DUOTONE_CLASSES.SWAP_OPACITY, DUOTONE_CLASSES.PRIMARY, DUOTONE_CLASSES.SECONDARY]).concat(oneToTen.map(function (n) {
321
- return "".concat(n, "x");
322
- })).concat(oneToTwenty.map(function (n) {
323
- return "w-".concat(n);
324
- }));
325
-
326
- var initial = WINDOW.FontAwesomeConfig || {};
327
-
328
- function getAttrConfig(attr) {
329
- var element = DOCUMENT.querySelector('script[' + attr + ']');
330
-
331
- if (element) {
332
- return element.getAttribute(attr);
333
- }
334
- }
335
-
336
- function coerce(val) {
337
- // Getting an empty string will occur if the attribute is set on the HTML tag but without a value
338
- // We'll assume that this is an indication that it should be toggled to true
339
- if (val === '') return true;
340
- if (val === 'false') return false;
341
- if (val === 'true') return true;
342
- return val;
343
- }
344
-
345
- if (DOCUMENT && typeof DOCUMENT.querySelector === 'function') {
346
- 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-auto-a11y', 'autoA11y'], ['data-search-pseudo-elements', 'searchPseudoElements'], ['data-observe-mutations', 'observeMutations'], ['data-mutate-approach', 'mutateApproach'], ['data-keep-original-source', 'keepOriginalSource'], ['data-measure-performance', 'measurePerformance'], ['data-show-missing-icons', 'showMissingIcons']];
347
- attrs.forEach(function (_ref) {
348
- var _ref2 = _slicedToArray(_ref, 2),
349
- attr = _ref2[0],
350
- key = _ref2[1];
351
-
352
- var val = coerce(getAttrConfig(attr));
353
-
354
- if (val !== undefined && val !== null) {
355
- initial[key] = val;
356
- }
357
- });
358
- }
359
-
360
- var _default$3 = {
361
- styleDefault: 'solid',
362
- familyDefault: 'classic',
363
- cssPrefix: DEFAULT_CSS_PREFIX,
364
- replacementClass: DEFAULT_REPLACEMENT_CLASS,
365
- autoReplaceSvg: true,
366
- autoAddCss: true,
367
- autoA11y: true,
368
- searchPseudoElements: false,
369
- observeMutations: true,
370
- mutateApproach: 'async',
371
- keepOriginalSource: true,
372
- measurePerformance: false,
373
- showMissingIcons: true
374
- }; // familyPrefix is deprecated but we must still support it if present
375
-
376
- if (initial.familyPrefix) {
377
- initial.cssPrefix = initial.familyPrefix;
378
- }
379
-
380
- var _config$5 = _objectSpread2$1(_objectSpread2$1({}, _default$3), initial);
381
-
382
- if (!_config$5.autoReplaceSvg) _config$5.observeMutations = false;
383
- var config$1 = {};
384
- Object.keys(_default$3).forEach(function (key) {
385
- Object.defineProperty(config$1, key, {
386
- enumerable: true,
387
- set: function set(val) {
388
- _config$5[key] = val;
389
-
390
- _onChangeCb.forEach(function (cb) {
391
- return cb(config$1);
392
- });
393
- },
394
- get: function get() {
395
- return _config$5[key];
396
- }
397
- });
398
- }); // familyPrefix is deprecated as of 6.2.0 and should be removed in 7.0.0
399
-
400
- Object.defineProperty(config$1, 'familyPrefix', {
401
- enumerable: true,
402
- set: function set(val) {
403
- _config$5.cssPrefix = val;
404
-
405
- _onChangeCb.forEach(function (cb) {
406
- return cb(config$1);
407
- });
408
- },
409
- get: function get() {
410
- return _config$5.cssPrefix;
411
- }
412
- });
413
- WINDOW.FontAwesomeConfig = config$1;
414
- var _onChangeCb = [];
415
- function onChange(cb) {
416
- _onChangeCb.push(cb);
417
-
418
- return function () {
419
- _onChangeCb.splice(_onChangeCb.indexOf(cb), 1);
420
- };
421
- }
422
-
423
- var d$1 = UNITS_IN_GRID;
424
- var meaninglessTransform = {
425
- size: 16,
426
- x: 0,
427
- y: 0,
428
- rotate: 0,
429
- flipX: false,
430
- flipY: false
431
- };
432
- function insertCss(css) {
433
- if (!css || !IS_DOM) {
434
- return;
435
- }
436
-
437
- var style = DOCUMENT.createElement('style');
438
- style.setAttribute('type', 'text/css');
439
- style.innerHTML = css;
440
- var headChildren = DOCUMENT.head.childNodes;
441
- var beforeChild = null;
442
-
443
- for (var i = headChildren.length - 1; i > -1; i--) {
444
- var child = headChildren[i];
445
- var tagName = (child.tagName || '').toUpperCase();
446
-
447
- if (['STYLE', 'LINK'].indexOf(tagName) > -1) {
448
- beforeChild = child;
449
- }
450
- }
451
-
452
- DOCUMENT.head.insertBefore(style, beforeChild);
453
- return css;
454
- }
455
- var idPool = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ';
456
- function nextUniqueId() {
457
- var size = 12;
458
- var id = '';
459
-
460
- while (size-- > 0) {
461
- id += idPool[Math.random() * 62 | 0];
462
- }
463
-
464
- return id;
465
- }
466
- function toArray(obj) {
467
- var array = [];
468
-
469
- for (var i = (obj || []).length >>> 0; i--;) {
470
- array[i] = obj[i];
471
- }
472
-
473
- return array;
474
- }
475
- function classArray(node) {
476
- if (node.classList) {
477
- return toArray(node.classList);
478
- } else {
479
- return (node.getAttribute('class') || '').split(' ').filter(function (i) {
480
- return i;
481
- });
482
- }
483
- }
484
- function htmlEscape(str) {
485
- return "".concat(str).replace(/&/g, '&amp;').replace(/"/g, '&quot;').replace(/'/g, '&#39;').replace(/</g, '&lt;').replace(/>/g, '&gt;');
486
- }
487
- function joinAttributes(attributes) {
488
- return Object.keys(attributes || {}).reduce(function (acc, attributeName) {
489
- return acc + "".concat(attributeName, "=\"").concat(htmlEscape(attributes[attributeName]), "\" ");
490
- }, '').trim();
491
- }
492
- function joinStyles(styles) {
493
- return Object.keys(styles || {}).reduce(function (acc, styleName) {
494
- return acc + "".concat(styleName, ": ").concat(styles[styleName].trim(), ";");
495
- }, '');
496
- }
497
- function transformIsMeaningful(transform) {
498
- return transform.size !== meaninglessTransform.size || transform.x !== meaninglessTransform.x || transform.y !== meaninglessTransform.y || transform.rotate !== meaninglessTransform.rotate || transform.flipX || transform.flipY;
499
- }
500
- function transformForSvg(_ref) {
501
- var transform = _ref.transform,
502
- containerWidth = _ref.containerWidth,
503
- iconWidth = _ref.iconWidth;
504
- var outer = {
505
- transform: "translate(".concat(containerWidth / 2, " 256)")
506
- };
507
- var innerTranslate = "translate(".concat(transform.x * 32, ", ").concat(transform.y * 32, ") ");
508
- var innerScale = "scale(".concat(transform.size / 16 * (transform.flipX ? -1 : 1), ", ").concat(transform.size / 16 * (transform.flipY ? -1 : 1), ") ");
509
- var innerRotate = "rotate(".concat(transform.rotate, " 0 0)");
510
- var inner = {
511
- transform: "".concat(innerTranslate, " ").concat(innerScale, " ").concat(innerRotate)
512
- };
513
- var path = {
514
- transform: "translate(".concat(iconWidth / 2 * -1, " -256)")
515
- };
516
- return {
517
- outer: outer,
518
- inner: inner,
519
- path: path
520
- };
521
- }
522
- function transformForCss(_ref2) {
523
- var transform = _ref2.transform,
524
- _ref2$width = _ref2.width,
525
- width = _ref2$width === void 0 ? UNITS_IN_GRID : _ref2$width,
526
- _ref2$height = _ref2.height,
527
- height = _ref2$height === void 0 ? UNITS_IN_GRID : _ref2$height,
528
- _ref2$startCentered = _ref2.startCentered,
529
- startCentered = _ref2$startCentered === void 0 ? false : _ref2$startCentered;
530
- var val = '';
531
-
532
- if (startCentered && IS_IE) {
533
- val += "translate(".concat(transform.x / d$1 - width / 2, "em, ").concat(transform.y / d$1 - height / 2, "em) ");
534
- } else if (startCentered) {
535
- val += "translate(calc(-50% + ".concat(transform.x / d$1, "em), calc(-50% + ").concat(transform.y / d$1, "em)) ");
536
- } else {
537
- val += "translate(".concat(transform.x / d$1, "em, ").concat(transform.y / d$1, "em) ");
538
- }
539
-
540
- val += "scale(".concat(transform.size / d$1 * (transform.flipX ? -1 : 1), ", ").concat(transform.size / d$1 * (transform.flipY ? -1 : 1), ") ");
541
- val += "rotate(".concat(transform.rotate, "deg) ");
542
- return val;
543
- }
544
-
545
- var baseStyles = ":root, :host {\n --fa-font-solid: normal 900 1em/1 \"Font Awesome 6 Solid\";\n --fa-font-regular: normal 400 1em/1 \"Font Awesome 6 Regular\";\n --fa-font-light: normal 300 1em/1 \"Font Awesome 6 Light\";\n --fa-font-thin: normal 100 1em/1 \"Font Awesome 6 Thin\";\n --fa-font-duotone: normal 900 1em/1 \"Font Awesome 6 Duotone\";\n --fa-font-sharp-solid: normal 900 1em/1 \"Font Awesome 6 Sharp\";\n --fa-font-sharp-regular: normal 400 1em/1 \"Font Awesome 6 Sharp\";\n --fa-font-sharp-light: normal 300 1em/1 \"Font Awesome 6 Sharp\";\n --fa-font-sharp-thin: normal 100 1em/1 \"Font Awesome 6 Sharp\";\n --fa-font-brands: normal 400 1em/1 \"Font Awesome 6 Brands\";\n}\n\nsvg:not(:root).svg-inline--fa, svg:not(:host).svg-inline--fa {\n overflow: visible;\n box-sizing: content-box;\n}\n\n.svg-inline--fa {\n display: var(--fa-display, inline-block);\n height: 1em;\n overflow: visible;\n vertical-align: -0.125em;\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.0714285705em;\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 margin-right: var(--fa-pull-margin, 0.3em);\n width: auto;\n}\n.svg-inline--fa.fa-pull-right {\n margin-left: var(--fa-pull-margin, 0.3em);\n width: auto;\n}\n.svg-inline--fa.fa-li {\n width: var(--fa-li-width, 2em);\n top: 0.25em;\n}\n.svg-inline--fa.fa-fw {\n width: var(--fa-fw-width, 1.25em);\n}\n\n.fa-layers svg.svg-inline--fa {\n bottom: 0;\n left: 0;\n margin: auto;\n position: absolute;\n right: 0;\n top: 0;\n}\n\n.fa-layers-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: 1em;\n}\n.fa-layers svg.svg-inline--fa {\n -webkit-transform-origin: center center;\n transform-origin: center center;\n}\n\n.fa-layers-text {\n left: 50%;\n top: 50%;\n -webkit-transform: translate(-50%, -50%);\n transform: translate(-50%, -50%);\n -webkit-transform-origin: center center;\n transform-origin: center center;\n}\n\n.fa-layers-counter {\n background-color: 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 -webkit-transform: scale(var(--fa-counter-scale, 0.25));\n transform: scale(var(--fa-counter-scale, 0.25));\n -webkit-transform-origin: top right;\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 -webkit-transform: scale(var(--fa-layers-scale, 0.25));\n transform: scale(var(--fa-layers-scale, 0.25));\n -webkit-transform-origin: bottom right;\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 -webkit-transform: scale(var(--fa-layers-scale, 0.25));\n transform: scale(var(--fa-layers-scale, 0.25));\n -webkit-transform-origin: bottom left;\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 -webkit-transform: scale(var(--fa-layers-scale, 0.25));\n transform: scale(var(--fa-layers-scale, 0.25));\n -webkit-transform-origin: top right;\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 -webkit-transform: scale(var(--fa-layers-scale, 0.25));\n transform: scale(var(--fa-layers-scale, 0.25));\n -webkit-transform-origin: top left;\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: 0.625em;\n line-height: 0.1em;\n vertical-align: 0.225em;\n}\n\n.fa-xs {\n font-size: 0.75em;\n line-height: 0.0833333337em;\n vertical-align: 0.125em;\n}\n\n.fa-sm {\n font-size: 0.875em;\n line-height: 0.0714285718em;\n vertical-align: 0.0535714295em;\n}\n\n.fa-lg {\n font-size: 1.25em;\n line-height: 0.05em;\n vertical-align: -0.075em;\n}\n\n.fa-xl {\n font-size: 1.5em;\n line-height: 0.0416666682em;\n vertical-align: -0.125em;\n}\n\n.fa-2xl {\n font-size: 2em;\n line-height: 0.03125em;\n vertical-align: -0.1875em;\n}\n\n.fa-fw {\n text-align: center;\n width: 1.25em;\n}\n\n.fa-ul {\n list-style-type: none;\n margin-left: var(--fa-li-margin, 2.5em);\n padding-left: 0;\n}\n.fa-ul > li {\n position: relative;\n}\n\n.fa-li {\n left: calc(var(--fa-li-width, 2em) * -1);\n position: absolute;\n text-align: center;\n width: var(--fa-li-width, 2em);\n line-height: inherit;\n}\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.08em);\n padding: var(--fa-border-padding, 0.2em 0.25em 0.15em);\n}\n\n.fa-pull-left {\n float: left;\n margin-right: var(--fa-pull-margin, 0.3em);\n}\n\n.fa-pull-right {\n float: right;\n margin-left: var(--fa-pull-margin, 0.3em);\n}\n\n.fa-beat {\n -webkit-animation-name: fa-beat;\n animation-name: fa-beat;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, ease-in-out);\n animation-timing-function: var(--fa-animation-timing, ease-in-out);\n}\n\n.fa-bounce {\n -webkit-animation-name: fa-bounce;\n animation-name: fa-bounce;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1));\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1));\n}\n\n.fa-fade {\n -webkit-animation-name: fa-fade;\n animation-name: fa-fade;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n}\n\n.fa-beat-fade {\n -webkit-animation-name: fa-beat-fade;\n animation-name: fa-beat-fade;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n}\n\n.fa-flip {\n -webkit-animation-name: fa-flip;\n animation-name: fa-flip;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, ease-in-out);\n animation-timing-function: var(--fa-animation-timing, ease-in-out);\n}\n\n.fa-shake {\n -webkit-animation-name: fa-shake;\n animation-name: fa-shake;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, linear);\n animation-timing-function: var(--fa-animation-timing, linear);\n}\n\n.fa-spin {\n -webkit-animation-name: fa-spin;\n animation-name: fa-spin;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 2s);\n animation-duration: var(--fa-animation-duration, 2s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, linear);\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 -webkit-animation-name: fa-spin;\n animation-name: fa-spin;\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, steps(8));\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 -webkit-animation-delay: -1ms;\n animation-delay: -1ms;\n -webkit-animation-duration: 1ms;\n animation-duration: 1ms;\n -webkit-animation-iteration-count: 1;\n animation-iteration-count: 1;\n -webkit-transition-delay: 0s;\n transition-delay: 0s;\n -webkit-transition-duration: 0s;\n transition-duration: 0s;\n }\n}\n@-webkit-keyframes fa-beat {\n 0%, 90% {\n -webkit-transform: scale(1);\n transform: scale(1);\n }\n 45% {\n -webkit-transform: scale(var(--fa-beat-scale, 1.25));\n transform: scale(var(--fa-beat-scale, 1.25));\n }\n}\n@keyframes fa-beat {\n 0%, 90% {\n -webkit-transform: scale(1);\n transform: scale(1);\n }\n 45% {\n -webkit-transform: scale(var(--fa-beat-scale, 1.25));\n transform: scale(var(--fa-beat-scale, 1.25));\n }\n}\n@-webkit-keyframes fa-bounce {\n 0% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n 10% {\n -webkit-transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\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 -webkit-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 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 -webkit-transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\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 -webkit-transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n }\n 64% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n 100% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n}\n@keyframes fa-bounce {\n 0% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n 10% {\n -webkit-transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\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 -webkit-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 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 -webkit-transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\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 -webkit-transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n }\n 64% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n 100% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n}\n@-webkit-keyframes fa-fade {\n 50% {\n opacity: var(--fa-fade-opacity, 0.4);\n }\n}\n@keyframes fa-fade {\n 50% {\n opacity: var(--fa-fade-opacity, 0.4);\n }\n}\n@-webkit-keyframes fa-beat-fade {\n 0%, 100% {\n opacity: var(--fa-beat-fade-opacity, 0.4);\n -webkit-transform: scale(1);\n transform: scale(1);\n }\n 50% {\n opacity: 1;\n -webkit-transform: scale(var(--fa-beat-fade-scale, 1.125));\n transform: scale(var(--fa-beat-fade-scale, 1.125));\n }\n}\n@keyframes fa-beat-fade {\n 0%, 100% {\n opacity: var(--fa-beat-fade-opacity, 0.4);\n -webkit-transform: scale(1);\n transform: scale(1);\n }\n 50% {\n opacity: 1;\n -webkit-transform: scale(var(--fa-beat-fade-scale, 1.125));\n transform: scale(var(--fa-beat-fade-scale, 1.125));\n }\n}\n@-webkit-keyframes fa-flip {\n 50% {\n -webkit-transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\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-flip {\n 50% {\n -webkit-transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\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@-webkit-keyframes fa-shake {\n 0% {\n -webkit-transform: rotate(-15deg);\n transform: rotate(-15deg);\n }\n 4% {\n -webkit-transform: rotate(15deg);\n transform: rotate(15deg);\n }\n 8%, 24% {\n -webkit-transform: rotate(-18deg);\n transform: rotate(-18deg);\n }\n 12%, 28% {\n -webkit-transform: rotate(18deg);\n transform: rotate(18deg);\n }\n 16% {\n -webkit-transform: rotate(-22deg);\n transform: rotate(-22deg);\n }\n 20% {\n -webkit-transform: rotate(22deg);\n transform: rotate(22deg);\n }\n 32% {\n -webkit-transform: rotate(-12deg);\n transform: rotate(-12deg);\n }\n 36% {\n -webkit-transform: rotate(12deg);\n transform: rotate(12deg);\n }\n 40%, 100% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n}\n@keyframes fa-shake {\n 0% {\n -webkit-transform: rotate(-15deg);\n transform: rotate(-15deg);\n }\n 4% {\n -webkit-transform: rotate(15deg);\n transform: rotate(15deg);\n }\n 8%, 24% {\n -webkit-transform: rotate(-18deg);\n transform: rotate(-18deg);\n }\n 12%, 28% {\n -webkit-transform: rotate(18deg);\n transform: rotate(18deg);\n }\n 16% {\n -webkit-transform: rotate(-22deg);\n transform: rotate(-22deg);\n }\n 20% {\n -webkit-transform: rotate(22deg);\n transform: rotate(22deg);\n }\n 32% {\n -webkit-transform: rotate(-12deg);\n transform: rotate(-12deg);\n }\n 36% {\n -webkit-transform: rotate(12deg);\n transform: rotate(12deg);\n }\n 40%, 100% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n}\n@-webkit-keyframes fa-spin {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n@keyframes fa-spin {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n.fa-rotate-90 {\n -webkit-transform: rotate(90deg);\n transform: rotate(90deg);\n}\n\n.fa-rotate-180 {\n -webkit-transform: rotate(180deg);\n transform: rotate(180deg);\n}\n\n.fa-rotate-270 {\n -webkit-transform: rotate(270deg);\n transform: rotate(270deg);\n}\n\n.fa-flip-horizontal {\n -webkit-transform: scale(-1, 1);\n transform: scale(-1, 1);\n}\n\n.fa-flip-vertical {\n -webkit-transform: scale(1, -1);\n transform: scale(1, -1);\n}\n\n.fa-flip-both,\n.fa-flip-horizontal.fa-flip-vertical {\n -webkit-transform: scale(-1, -1);\n transform: scale(-1, -1);\n}\n\n.fa-rotate-by {\n -webkit-transform: rotate(var(--fa-rotate-angle, 0));\n transform: rotate(var(--fa-rotate-angle, 0));\n}\n\n.fa-stack {\n display: inline-block;\n vertical-align: middle;\n height: 2em;\n position: relative;\n width: 2.5em;\n}\n\n.fa-stack-1x,\n.fa-stack-2x {\n bottom: 0;\n left: 0;\n margin: auto;\n position: absolute;\n right: 0;\n top: 0;\n z-index: var(--fa-stack-z-index, auto);\n}\n\n.svg-inline--fa.fa-stack-1x {\n height: 1em;\n width: 1.25em;\n}\n.svg-inline--fa.fa-stack-2x {\n height: 2em;\n width: 2.5em;\n}\n\n.fa-inverse {\n color: var(--fa-inverse, #fff);\n}\n\n.sr-only,\n.fa-sr-only {\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n white-space: nowrap;\n border-width: 0;\n}\n\n.sr-only-focusable:not(:focus),\n.fa-sr-only-focusable:not(:focus) {\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n white-space: nowrap;\n border-width: 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.fad.fa-inverse,\n.fa-duotone.fa-inverse {\n color: var(--fa-inverse, #fff);\n}";
546
-
547
- function css() {
548
- var dcp = DEFAULT_CSS_PREFIX;
549
- var drc = DEFAULT_REPLACEMENT_CLASS;
550
- var fp = config$1.cssPrefix;
551
- var rc = config$1.replacementClass;
552
- var s = baseStyles;
553
-
554
- if (fp !== dcp || rc !== drc) {
555
- var dPatt = new RegExp("\\.".concat(dcp, "\\-"), 'g');
556
- var customPropPatt = new RegExp("\\--".concat(dcp, "\\-"), 'g');
557
- var rPatt = new RegExp("\\.".concat(drc), 'g');
558
- s = s.replace(dPatt, ".".concat(fp, "-")).replace(customPropPatt, "--".concat(fp, "-")).replace(rPatt, ".".concat(rc));
559
- }
560
-
561
- return s;
562
- }
563
-
564
- var _cssInserted = false;
565
-
566
- function ensureCss() {
567
- if (config$1.autoAddCss && !_cssInserted) {
568
- insertCss(css());
569
- _cssInserted = true;
570
- }
571
- }
572
-
573
- var InjectCSS = {
574
- mixout: function mixout() {
575
- return {
576
- dom: {
577
- css: css,
578
- insertCss: ensureCss
579
- }
580
- };
581
- },
582
- hooks: function hooks() {
583
- return {
584
- beforeDOMElementCreation: function beforeDOMElementCreation() {
585
- ensureCss();
586
- },
587
- beforeI2svg: function beforeI2svg() {
588
- ensureCss();
589
- }
590
- };
591
- }
592
- };
593
-
594
- var w$2 = WINDOW || {};
595
- if (!w$2[NAMESPACE_IDENTIFIER]) w$2[NAMESPACE_IDENTIFIER] = {};
596
- if (!w$2[NAMESPACE_IDENTIFIER].styles) w$2[NAMESPACE_IDENTIFIER].styles = {};
597
- if (!w$2[NAMESPACE_IDENTIFIER].hooks) w$2[NAMESPACE_IDENTIFIER].hooks = {};
598
- if (!w$2[NAMESPACE_IDENTIFIER].shims) w$2[NAMESPACE_IDENTIFIER].shims = [];
599
- var namespace = w$2[NAMESPACE_IDENTIFIER];
600
-
601
- var functions = [];
602
-
603
- var listener = function listener() {
604
- DOCUMENT.removeEventListener('DOMContentLoaded', listener);
605
- loaded = 1;
606
- functions.map(function (fn) {
607
- return fn();
608
- });
609
- };
610
-
611
- var loaded = false;
612
-
613
- if (IS_DOM) {
614
- loaded = (DOCUMENT.documentElement.doScroll ? /^loaded|^c/ : /^loaded|^i|^c/).test(DOCUMENT.readyState);
615
- if (!loaded) DOCUMENT.addEventListener('DOMContentLoaded', listener);
616
- }
617
-
618
- function domready (fn) {
619
- if (!IS_DOM) return;
620
- loaded ? setTimeout(fn, 0) : functions.push(fn);
621
- }
622
-
623
- function toHtml(abstractNodes) {
624
- var tag = abstractNodes.tag,
625
- _abstractNodes$attrib = abstractNodes.attributes,
626
- attributes = _abstractNodes$attrib === void 0 ? {} : _abstractNodes$attrib,
627
- _abstractNodes$childr = abstractNodes.children,
628
- children = _abstractNodes$childr === void 0 ? [] : _abstractNodes$childr;
629
-
630
- if (typeof abstractNodes === 'string') {
631
- return htmlEscape(abstractNodes);
632
- } else {
633
- return "<".concat(tag, " ").concat(joinAttributes(attributes), ">").concat(children.map(toHtml).join(''), "</").concat(tag, ">");
634
- }
635
- }
636
-
637
- function iconFromMapping(mapping, prefix, iconName) {
638
- if (mapping && mapping[prefix] && mapping[prefix][iconName]) {
639
- return {
640
- prefix: prefix,
641
- iconName: iconName,
642
- icon: mapping[prefix][iconName]
643
- };
644
- }
645
- }
646
-
647
- /**
648
- * # Reduce
649
- *
650
- * A fast object `.reduce()` implementation.
651
- *
652
- * @param {Object} subject The object to reduce over.
653
- * @param {Function} fn The reducer function.
654
- * @param {mixed} initialValue The initial value for the reducer, defaults to subject[0].
655
- * @param {Object} thisContext The context for the reducer.
656
- * @return {mixed} The final result.
657
- */
658
-
659
-
660
- var reduce = function fastReduceObject(subject, fn, initialValue, thisContext) {
661
- var keys = Object.keys(subject),
662
- length = keys.length,
663
- iterator = fn,
664
- i,
665
- key,
666
- result;
667
-
668
- if (initialValue === undefined) {
669
- i = 1;
670
- result = subject[keys[0]];
671
- } else {
672
- i = 0;
673
- result = initialValue;
674
- }
675
-
676
- for (; i < length; i++) {
677
- key = keys[i];
678
- result = iterator(result, subject[key], key, subject);
679
- }
680
-
681
- return result;
682
- };
683
-
684
- /**
685
- * ucs2decode() and codePointAt() are both works of Mathias Bynens and licensed under MIT
686
- *
687
- * Copyright Mathias Bynens <https://mathiasbynens.be/>
688
-
689
- * Permission is hereby granted, free of charge, to any person obtaining
690
- * a copy of this software and associated documentation files (the
691
- * "Software"), to deal in the Software without restriction, including
692
- * without limitation the rights to use, copy, modify, merge, publish,
693
- * distribute, sublicense, and/or sell copies of the Software, and to
694
- * permit persons to whom the Software is furnished to do so, subject to
695
- * the following conditions:
696
-
697
- * The above copyright notice and this permission notice shall be
698
- * included in all copies or substantial portions of the Software.
699
-
700
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
701
- * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
702
- * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
703
- * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
704
- * LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
705
- * OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
706
- * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
707
- */
708
- function ucs2decode(string) {
709
- var output = [];
710
- var counter = 0;
711
- var length = string.length;
712
-
713
- while (counter < length) {
714
- var value = string.charCodeAt(counter++);
715
-
716
- if (value >= 0xD800 && value <= 0xDBFF && counter < length) {
717
- var extra = string.charCodeAt(counter++);
718
-
719
- if ((extra & 0xFC00) == 0xDC00) {
720
- // eslint-disable-line eqeqeq
721
- output.push(((value & 0x3FF) << 10) + (extra & 0x3FF) + 0x10000);
722
- } else {
723
- output.push(value);
724
- counter--;
725
- }
726
- } else {
727
- output.push(value);
728
- }
729
- }
730
-
731
- return output;
732
- }
733
-
734
- function toHex(unicode) {
735
- var decoded = ucs2decode(unicode);
736
- return decoded.length === 1 ? decoded[0].toString(16) : null;
737
- }
738
- function codePointAt(string, index) {
739
- var size = string.length;
740
- var first = string.charCodeAt(index);
741
- var second;
742
-
743
- if (first >= 0xD800 && first <= 0xDBFF && size > index + 1) {
744
- second = string.charCodeAt(index + 1);
745
-
746
- if (second >= 0xDC00 && second <= 0xDFFF) {
747
- return (first - 0xD800) * 0x400 + second - 0xDC00 + 0x10000;
748
- }
749
- }
750
-
751
- return first;
752
- }
753
-
754
- function normalizeIcons(icons) {
755
- return Object.keys(icons).reduce(function (acc, iconName) {
756
- var icon = icons[iconName];
757
- var expanded = !!icon.icon;
758
-
759
- if (expanded) {
760
- acc[icon.iconName] = icon.icon;
761
- } else {
762
- acc[iconName] = icon;
763
- }
764
-
765
- return acc;
766
- }, {});
767
- }
768
-
769
- function defineIcons(prefix, icons) {
770
- var params = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
771
- var _params$skipHooks = params.skipHooks,
772
- skipHooks = _params$skipHooks === void 0 ? false : _params$skipHooks;
773
- var normalized = normalizeIcons(icons);
774
-
775
- if (typeof namespace.hooks.addPack === 'function' && !skipHooks) {
776
- namespace.hooks.addPack(prefix, normalizeIcons(icons));
777
- } else {
778
- namespace.styles[prefix] = _objectSpread2$1(_objectSpread2$1({}, namespace.styles[prefix] || {}), normalized);
779
- }
780
- /**
781
- * Font Awesome 4 used the prefix of `fa` for all icons. With the introduction
782
- * of new styles we needed to differentiate between them. Prefix `fa` is now an alias
783
- * for `fas` so we'll ease the upgrade process for our users by automatically defining
784
- * this as well.
785
- */
786
-
787
-
788
- if (prefix === 'fas') {
789
- defineIcons('fa', icons);
790
- }
791
- }
792
-
793
- var _LONG_STYLE, _PREFIXES, _PREFIXES_FOR_FAMILY;
794
- var styles = namespace.styles,
795
- shims = namespace.shims;
796
- var LONG_STYLE = (_LONG_STYLE = {}, _defineProperty$1(_LONG_STYLE, FAMILY_CLASSIC, Object.values(PREFIX_TO_LONG_STYLE[FAMILY_CLASSIC])), _defineProperty$1(_LONG_STYLE, FAMILY_SHARP, Object.values(PREFIX_TO_LONG_STYLE[FAMILY_SHARP])), _LONG_STYLE);
797
- var _defaultUsablePrefix = null;
798
- var _byUnicode = {};
799
- var _byLigature = {};
800
- var _byOldName = {};
801
- var _byOldUnicode = {};
802
- var _byAlias = {};
803
- var PREFIXES = (_PREFIXES = {}, _defineProperty$1(_PREFIXES, FAMILY_CLASSIC, Object.keys(PREFIX_TO_STYLE[FAMILY_CLASSIC])), _defineProperty$1(_PREFIXES, FAMILY_SHARP, Object.keys(PREFIX_TO_STYLE[FAMILY_SHARP])), _PREFIXES);
804
-
805
- function isReserved(name) {
806
- return ~RESERVED_CLASSES.indexOf(name);
807
- }
808
-
809
- function getIconName(cssPrefix, cls) {
810
- var parts = cls.split('-');
811
- var prefix = parts[0];
812
- var iconName = parts.slice(1).join('-');
813
-
814
- if (prefix === cssPrefix && iconName !== '' && !isReserved(iconName)) {
815
- return iconName;
816
- } else {
817
- return null;
818
- }
819
- }
820
- var build$1 = function build() {
821
- var lookup = function lookup(reducer) {
822
- return reduce(styles, function (o, style, prefix) {
823
- o[prefix] = reduce(style, reducer, {});
824
- return o;
825
- }, {});
826
- };
827
-
828
- _byUnicode = lookup(function (acc, icon, iconName) {
829
- if (icon[3]) {
830
- acc[icon[3]] = iconName;
831
- }
832
-
833
- if (icon[2]) {
834
- var aliases = icon[2].filter(function (a) {
835
- return typeof a === 'number';
836
- });
837
- aliases.forEach(function (alias) {
838
- acc[alias.toString(16)] = iconName;
839
- });
840
- }
841
-
842
- return acc;
843
- });
844
- _byLigature = lookup(function (acc, icon, iconName) {
845
- acc[iconName] = iconName;
846
-
847
- if (icon[2]) {
848
- var aliases = icon[2].filter(function (a) {
849
- return typeof a === 'string';
850
- });
851
- aliases.forEach(function (alias) {
852
- acc[alias] = iconName;
853
- });
854
- }
855
-
856
- return acc;
857
- });
858
- _byAlias = lookup(function (acc, icon, iconName) {
859
- var aliases = icon[2];
860
- acc[iconName] = iconName;
861
- aliases.forEach(function (alias) {
862
- acc[alias] = iconName;
863
- });
864
- return acc;
865
- }); // If we have a Kit, we can't determine if regular is available since we
866
- // could be auto-fetching it. We'll have to assume that it is available.
867
-
868
- var hasRegular = 'far' in styles || config$1.autoFetchSvg;
869
- var shimLookups = reduce(shims, function (acc, shim) {
870
- var maybeNameMaybeUnicode = shim[0];
871
- var prefix = shim[1];
872
- var iconName = shim[2];
873
-
874
- if (prefix === 'far' && !hasRegular) {
875
- prefix = 'fas';
876
- }
877
-
878
- if (typeof maybeNameMaybeUnicode === 'string') {
879
- acc.names[maybeNameMaybeUnicode] = {
880
- prefix: prefix,
881
- iconName: iconName
882
- };
883
- }
884
-
885
- if (typeof maybeNameMaybeUnicode === 'number') {
886
- acc.unicodes[maybeNameMaybeUnicode.toString(16)] = {
887
- prefix: prefix,
888
- iconName: iconName
889
- };
890
- }
891
-
892
- return acc;
893
- }, {
894
- names: {},
895
- unicodes: {}
896
- });
897
- _byOldName = shimLookups.names;
898
- _byOldUnicode = shimLookups.unicodes;
899
- _defaultUsablePrefix = getCanonicalPrefix(config$1.styleDefault, {
900
- family: config$1.familyDefault
901
- });
902
- };
903
- onChange(function (c) {
904
- _defaultUsablePrefix = getCanonicalPrefix(c.styleDefault, {
905
- family: config$1.familyDefault
906
- });
907
- });
908
- build$1();
909
- function byUnicode(prefix, unicode) {
910
- return (_byUnicode[prefix] || {})[unicode];
911
- }
912
- function byLigature(prefix, ligature) {
913
- return (_byLigature[prefix] || {})[ligature];
914
- }
915
- function byAlias(prefix, alias) {
916
- return (_byAlias[prefix] || {})[alias];
917
- }
918
- function byOldName(name) {
919
- return _byOldName[name] || {
920
- prefix: null,
921
- iconName: null
922
- };
923
- }
924
- function byOldUnicode(unicode) {
925
- var oldUnicode = _byOldUnicode[unicode];
926
- var newUnicode = byUnicode('fas', unicode);
927
- return oldUnicode || (newUnicode ? {
928
- prefix: 'fas',
929
- iconName: newUnicode
930
- } : null) || {
931
- prefix: null,
932
- iconName: null
933
- };
934
- }
935
- function getDefaultUsablePrefix() {
936
- return _defaultUsablePrefix;
937
- }
938
- var emptyCanonicalIcon = function emptyCanonicalIcon() {
939
- return {
940
- prefix: null,
941
- iconName: null,
942
- rest: []
943
- };
944
- };
945
- function getCanonicalPrefix(styleOrPrefix) {
946
- var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
947
- var _params$family = params.family,
948
- family = _params$family === void 0 ? FAMILY_CLASSIC : _params$family;
949
- var style = PREFIX_TO_STYLE[family][styleOrPrefix];
950
- var prefix = STYLE_TO_PREFIX[family][styleOrPrefix] || STYLE_TO_PREFIX[family][style];
951
- var defined = styleOrPrefix in namespace.styles ? styleOrPrefix : null;
952
- return prefix || defined || null;
953
- }
954
- var PREFIXES_FOR_FAMILY = (_PREFIXES_FOR_FAMILY = {}, _defineProperty$1(_PREFIXES_FOR_FAMILY, FAMILY_CLASSIC, Object.keys(PREFIX_TO_LONG_STYLE[FAMILY_CLASSIC])), _defineProperty$1(_PREFIXES_FOR_FAMILY, FAMILY_SHARP, Object.keys(PREFIX_TO_LONG_STYLE[FAMILY_SHARP])), _PREFIXES_FOR_FAMILY);
955
- function getCanonicalIcon(values) {
956
- var _famProps;
957
-
958
- var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
959
- var _params$skipLookups = params.skipLookups,
960
- skipLookups = _params$skipLookups === void 0 ? false : _params$skipLookups;
961
- var famProps = (_famProps = {}, _defineProperty$1(_famProps, FAMILY_CLASSIC, "".concat(config$1.cssPrefix, "-").concat(FAMILY_CLASSIC)), _defineProperty$1(_famProps, FAMILY_SHARP, "".concat(config$1.cssPrefix, "-").concat(FAMILY_SHARP)), _famProps);
962
- var givenPrefix = null;
963
- var family = FAMILY_CLASSIC;
964
-
965
- if (values.includes(famProps[FAMILY_CLASSIC]) || values.some(function (v) {
966
- return PREFIXES_FOR_FAMILY[FAMILY_CLASSIC].includes(v);
967
- })) {
968
- family = FAMILY_CLASSIC;
969
- }
970
-
971
- if (values.includes(famProps[FAMILY_SHARP]) || values.some(function (v) {
972
- return PREFIXES_FOR_FAMILY[FAMILY_SHARP].includes(v);
973
- })) {
974
- family = FAMILY_SHARP;
975
- }
976
-
977
- var canonical = values.reduce(function (acc, cls) {
978
- var iconName = getIconName(config$1.cssPrefix, cls);
979
-
980
- if (styles[cls]) {
981
- cls = LONG_STYLE[family].includes(cls) ? LONG_STYLE_TO_PREFIX[family][cls] : cls;
982
- givenPrefix = cls;
983
- acc.prefix = cls;
984
- } else if (PREFIXES[family].indexOf(cls) > -1) {
985
- givenPrefix = cls;
986
- acc.prefix = getCanonicalPrefix(cls, {
987
- family: family
988
- });
989
- } else if (iconName) {
990
- acc.iconName = iconName;
991
- } else if (cls !== config$1.replacementClass && cls !== famProps[FAMILY_CLASSIC] && cls !== famProps[FAMILY_SHARP]) {
992
- acc.rest.push(cls);
993
- }
994
-
995
- if (!skipLookups && acc.prefix && acc.iconName) {
996
- var shim = givenPrefix === 'fa' ? byOldName(acc.iconName) : {};
997
- var aliasIconName = byAlias(acc.prefix, acc.iconName);
998
-
999
- if (shim.prefix) {
1000
- givenPrefix = null;
1001
- }
1002
-
1003
- acc.iconName = shim.iconName || aliasIconName || acc.iconName;
1004
- acc.prefix = shim.prefix || acc.prefix;
1005
-
1006
- if (acc.prefix === 'far' && !styles['far'] && styles['fas'] && !config$1.autoFetchSvg) {
1007
- // Allow a fallback from the regular style to solid if regular is not available
1008
- // but only if we aren't auto-fetching SVGs
1009
- acc.prefix = 'fas';
1010
- }
1011
- }
1012
-
1013
- return acc;
1014
- }, emptyCanonicalIcon());
1015
-
1016
- if (values.includes('fa-brands') || values.includes('fab')) {
1017
- canonical.prefix = 'fab';
1018
- }
1019
-
1020
- if (values.includes('fa-duotone') || values.includes('fad')) {
1021
- canonical.prefix = 'fad';
1022
- }
1023
-
1024
- if (!canonical.prefix && family === FAMILY_SHARP && (styles['fass'] || config$1.autoFetchSvg)) {
1025
- canonical.prefix = 'fass';
1026
- canonical.iconName = byAlias(canonical.prefix, canonical.iconName) || canonical.iconName;
1027
- }
1028
-
1029
- if (canonical.prefix === 'fa' || givenPrefix === 'fa') {
1030
- // The fa prefix is not canonical. So if it has made it through until this point
1031
- // we will shift it to the correct prefix.
1032
- canonical.prefix = getDefaultUsablePrefix() || 'fas';
1033
- }
1034
-
1035
- return canonical;
1036
- }
1037
-
1038
- var Library = /*#__PURE__*/function () {
1039
- function Library() {
1040
- _classCallCheck$2(this, Library);
1041
-
1042
- this.definitions = {};
1043
- }
1044
-
1045
- _createClass$1(Library, [{
1046
- key: "add",
1047
- value: function add() {
1048
- var _this = this;
1049
-
1050
- for (var _len = arguments.length, definitions = new Array(_len), _key = 0; _key < _len; _key++) {
1051
- definitions[_key] = arguments[_key];
1052
- }
1053
-
1054
- var additions = definitions.reduce(this._pullDefinitions, {});
1055
- Object.keys(additions).forEach(function (key) {
1056
- _this.definitions[key] = _objectSpread2$1(_objectSpread2$1({}, _this.definitions[key] || {}), additions[key]);
1057
- defineIcons(key, additions[key]); // TODO can we stop doing this? We can't get the icons by 'fa-solid' any longer so this probably needs to change
1058
-
1059
- var longPrefix = PREFIX_TO_LONG_STYLE[FAMILY_CLASSIC][key];
1060
- if (longPrefix) defineIcons(longPrefix, additions[key]);
1061
- build$1();
1062
- });
1063
- }
1064
- }, {
1065
- key: "reset",
1066
- value: function reset() {
1067
- this.definitions = {};
1068
- }
1069
- }, {
1070
- key: "_pullDefinitions",
1071
- value: function _pullDefinitions(additions, definition) {
1072
- var normalized = definition.prefix && definition.iconName && definition.icon ? {
1073
- 0: definition
1074
- } : definition;
1075
- Object.keys(normalized).map(function (key) {
1076
- var _normalized$key = normalized[key],
1077
- prefix = _normalized$key.prefix,
1078
- iconName = _normalized$key.iconName,
1079
- icon = _normalized$key.icon;
1080
- var aliases = icon[2];
1081
- if (!additions[prefix]) additions[prefix] = {};
1082
-
1083
- if (aliases.length > 0) {
1084
- aliases.forEach(function (alias) {
1085
- if (typeof alias === 'string') {
1086
- additions[prefix][alias] = icon;
1087
- }
1088
- });
1089
- }
1090
-
1091
- additions[prefix][iconName] = icon;
1092
- });
1093
- return additions;
1094
- }
1095
- }]);
1096
-
1097
- return Library;
1098
- }();
1099
-
1100
- var _plugins = [];
1101
- var _hooks = {};
1102
- var providers = {};
1103
- var defaultProviderKeys = Object.keys(providers);
1104
- function registerPlugins(nextPlugins, _ref) {
1105
- var obj = _ref.mixoutsTo;
1106
- _plugins = nextPlugins;
1107
- _hooks = {};
1108
- Object.keys(providers).forEach(function (k) {
1109
- if (defaultProviderKeys.indexOf(k) === -1) {
1110
- delete providers[k];
1111
- }
1112
- });
1113
-
1114
- _plugins.forEach(function (plugin) {
1115
- var mixout = plugin.mixout ? plugin.mixout() : {};
1116
- Object.keys(mixout).forEach(function (tk) {
1117
- if (typeof mixout[tk] === 'function') {
1118
- obj[tk] = mixout[tk];
1119
- }
1120
-
1121
- if (_typeof$1(mixout[tk]) === 'object') {
1122
- Object.keys(mixout[tk]).forEach(function (sk) {
1123
- if (!obj[tk]) {
1124
- obj[tk] = {};
1125
- }
1126
-
1127
- obj[tk][sk] = mixout[tk][sk];
1128
- });
1129
- }
1130
- });
1131
-
1132
- if (plugin.hooks) {
1133
- var hooks = plugin.hooks();
1134
- Object.keys(hooks).forEach(function (hook) {
1135
- if (!_hooks[hook]) {
1136
- _hooks[hook] = [];
1137
- }
1138
-
1139
- _hooks[hook].push(hooks[hook]);
1140
- });
1141
- }
1142
-
1143
- if (plugin.provides) {
1144
- plugin.provides(providers);
1145
- }
1146
- });
1147
-
1148
- return obj;
1149
- }
1150
- function chainHooks(hook, accumulator) {
1151
- for (var _len = arguments.length, args = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {
1152
- args[_key - 2] = arguments[_key];
1153
- }
1154
-
1155
- var hookFns = _hooks[hook] || [];
1156
- hookFns.forEach(function (hookFn) {
1157
- accumulator = hookFn.apply(null, [accumulator].concat(args)); // eslint-disable-line no-useless-call
1158
- });
1159
- return accumulator;
1160
- }
1161
- function callHooks(hook) {
1162
- for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
1163
- args[_key2 - 1] = arguments[_key2];
1164
- }
1165
-
1166
- var hookFns = _hooks[hook] || [];
1167
- hookFns.forEach(function (hookFn) {
1168
- hookFn.apply(null, args);
1169
- });
1170
- return undefined;
1171
- }
1172
- function callProvided() {
1173
- var hook = arguments[0];
1174
- var args = Array.prototype.slice.call(arguments, 1);
1175
- return providers[hook] ? providers[hook].apply(null, args) : undefined;
1176
- }
1177
-
1178
- function findIconDefinition(iconLookup) {
1179
- if (iconLookup.prefix === 'fa') {
1180
- iconLookup.prefix = 'fas';
1181
- }
1182
-
1183
- var iconName = iconLookup.iconName;
1184
- var prefix = iconLookup.prefix || getDefaultUsablePrefix();
1185
- if (!iconName) return;
1186
- iconName = byAlias(prefix, iconName) || iconName;
1187
- return iconFromMapping(library.definitions, prefix, iconName) || iconFromMapping(namespace.styles, prefix, iconName);
1188
- }
1189
- var library = new Library();
1190
- var noAuto = function noAuto() {
1191
- config$1.autoReplaceSvg = false;
1192
- config$1.observeMutations = false;
1193
- callHooks('noAuto');
1194
- };
1195
- var dom = {
1196
- i2svg: function i2svg() {
1197
- var params = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
1198
-
1199
- if (IS_DOM) {
1200
- callHooks('beforeI2svg', params);
1201
- callProvided('pseudoElements2svg', params);
1202
- return callProvided('i2svg', params);
1203
- } else {
1204
- return Promise.reject('Operation requires a DOM of some kind.');
1205
- }
1206
- },
1207
- watch: function watch() {
1208
- var params = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
1209
- var autoReplaceSvgRoot = params.autoReplaceSvgRoot;
1210
-
1211
- if (config$1.autoReplaceSvg === false) {
1212
- config$1.autoReplaceSvg = true;
1213
- }
1214
-
1215
- config$1.observeMutations = true;
1216
- domready(function () {
1217
- autoReplace({
1218
- autoReplaceSvgRoot: autoReplaceSvgRoot
1219
- });
1220
- callHooks('watch', params);
1221
- });
1222
- }
1223
- };
1224
- var parse$1 = {
1225
- icon: function icon(_icon) {
1226
- if (_icon === null) {
1227
- return null;
1228
- }
1229
-
1230
- if (_typeof$1(_icon) === 'object' && _icon.prefix && _icon.iconName) {
1231
- return {
1232
- prefix: _icon.prefix,
1233
- iconName: byAlias(_icon.prefix, _icon.iconName) || _icon.iconName
1234
- };
1235
- }
1236
-
1237
- if (Array.isArray(_icon) && _icon.length === 2) {
1238
- var iconName = _icon[1].indexOf('fa-') === 0 ? _icon[1].slice(3) : _icon[1];
1239
- var prefix = getCanonicalPrefix(_icon[0]);
1240
- return {
1241
- prefix: prefix,
1242
- iconName: byAlias(prefix, iconName) || iconName
1243
- };
1244
- }
1245
-
1246
- if (typeof _icon === 'string' && (_icon.indexOf("".concat(config$1.cssPrefix, "-")) > -1 || _icon.match(ICON_SELECTION_SYNTAX_PATTERN))) {
1247
- var canonicalIcon = getCanonicalIcon(_icon.split(' '), {
1248
- skipLookups: true
1249
- });
1250
- return {
1251
- prefix: canonicalIcon.prefix || getDefaultUsablePrefix(),
1252
- iconName: byAlias(canonicalIcon.prefix, canonicalIcon.iconName) || canonicalIcon.iconName
1253
- };
1254
- }
1255
-
1256
- if (typeof _icon === 'string') {
1257
- var _prefix = getDefaultUsablePrefix();
1258
-
1259
- return {
1260
- prefix: _prefix,
1261
- iconName: byAlias(_prefix, _icon) || _icon
1262
- };
1263
- }
1264
- }
1265
- };
1266
- var api = {
1267
- noAuto: noAuto,
1268
- config: config$1,
1269
- dom: dom,
1270
- parse: parse$1,
1271
- library: library,
1272
- findIconDefinition: findIconDefinition,
1273
- toHtml: toHtml
1274
- };
1275
-
1276
- var autoReplace = function autoReplace() {
1277
- var params = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
1278
- var _params$autoReplaceSv = params.autoReplaceSvgRoot,
1279
- autoReplaceSvgRoot = _params$autoReplaceSv === void 0 ? DOCUMENT : _params$autoReplaceSv;
1280
- if ((Object.keys(namespace.styles).length > 0 || config$1.autoFetchSvg) && IS_DOM && config$1.autoReplaceSvg) api.dom.i2svg({
1281
- node: autoReplaceSvgRoot
1282
- });
1283
- };
1284
-
1285
- function domVariants(val, abstractCreator) {
1286
- Object.defineProperty(val, 'abstract', {
1287
- get: abstractCreator
1288
- });
1289
- Object.defineProperty(val, 'html', {
1290
- get: function get() {
1291
- return val.abstract.map(function (a) {
1292
- return toHtml(a);
1293
- });
1294
- }
1295
- });
1296
- Object.defineProperty(val, 'node', {
1297
- get: function get() {
1298
- if (!IS_DOM) return;
1299
- var container = DOCUMENT.createElement('div');
1300
- container.innerHTML = val.html;
1301
- return container.children;
1302
- }
1303
- });
1304
- return val;
1305
- }
1306
-
1307
- function asIcon (_ref) {
1308
- var children = _ref.children,
1309
- main = _ref.main,
1310
- mask = _ref.mask,
1311
- attributes = _ref.attributes,
1312
- styles = _ref.styles,
1313
- transform = _ref.transform;
1314
-
1315
- if (transformIsMeaningful(transform) && main.found && !mask.found) {
1316
- var width = main.width,
1317
- height = main.height;
1318
- var offset = {
1319
- x: width / height / 2,
1320
- y: 0.5
1321
- };
1322
- attributes['style'] = joinStyles(_objectSpread2$1(_objectSpread2$1({}, styles), {}, {
1323
- 'transform-origin': "".concat(offset.x + transform.x / 16, "em ").concat(offset.y + transform.y / 16, "em")
1324
- }));
1325
- }
1326
-
1327
- return [{
1328
- tag: 'svg',
1329
- attributes: attributes,
1330
- children: children
1331
- }];
1332
- }
1333
-
1334
- function asSymbol (_ref) {
1335
- var prefix = _ref.prefix,
1336
- iconName = _ref.iconName,
1337
- children = _ref.children,
1338
- attributes = _ref.attributes,
1339
- symbol = _ref.symbol;
1340
- var id = symbol === true ? "".concat(prefix, "-").concat(config$1.cssPrefix, "-").concat(iconName) : symbol;
1341
- return [{
1342
- tag: 'svg',
1343
- attributes: {
1344
- style: 'display: none;'
1345
- },
1346
- children: [{
1347
- tag: 'symbol',
1348
- attributes: _objectSpread2$1(_objectSpread2$1({}, attributes), {}, {
1349
- id: id
1350
- }),
1351
- children: children
1352
- }]
1353
- }];
1354
- }
1355
-
1356
- function makeInlineSvgAbstract(params) {
1357
- var _params$icons = params.icons,
1358
- main = _params$icons.main,
1359
- mask = _params$icons.mask,
1360
- prefix = params.prefix,
1361
- iconName = params.iconName,
1362
- transform = params.transform,
1363
- symbol = params.symbol,
1364
- title = params.title,
1365
- maskId = params.maskId,
1366
- titleId = params.titleId,
1367
- extra = params.extra,
1368
- _params$watchable = params.watchable,
1369
- watchable = _params$watchable === void 0 ? false : _params$watchable;
1370
-
1371
- var _ref = mask.found ? mask : main,
1372
- width = _ref.width,
1373
- height = _ref.height;
1374
-
1375
- var isUploadedIcon = prefix === 'fak';
1376
- var attrClass = [config$1.replacementClass, iconName ? "".concat(config$1.cssPrefix, "-").concat(iconName) : ''].filter(function (c) {
1377
- return extra.classes.indexOf(c) === -1;
1378
- }).filter(function (c) {
1379
- return c !== '' || !!c;
1380
- }).concat(extra.classes).join(' ');
1381
- var content = {
1382
- children: [],
1383
- attributes: _objectSpread2$1(_objectSpread2$1({}, extra.attributes), {}, {
1384
- 'data-prefix': prefix,
1385
- 'data-icon': iconName,
1386
- 'class': attrClass,
1387
- 'role': extra.attributes.role || 'img',
1388
- 'xmlns': 'http://www.w3.org/2000/svg',
1389
- 'viewBox': "0 0 ".concat(width, " ").concat(height)
1390
- })
1391
- };
1392
- var uploadedIconWidthStyle = isUploadedIcon && !~extra.classes.indexOf('fa-fw') ? {
1393
- width: "".concat(width / height * 16 * 0.0625, "em")
1394
- } : {};
1395
-
1396
- if (watchable) {
1397
- content.attributes[DATA_FA_I2SVG] = '';
1398
- }
1399
-
1400
- if (title) {
1401
- content.children.push({
1402
- tag: 'title',
1403
- attributes: {
1404
- id: content.attributes['aria-labelledby'] || "title-".concat(titleId || nextUniqueId())
1405
- },
1406
- children: [title]
1407
- });
1408
- delete content.attributes.title;
1409
- }
1410
-
1411
- var args = _objectSpread2$1(_objectSpread2$1({}, content), {}, {
1412
- prefix: prefix,
1413
- iconName: iconName,
1414
- main: main,
1415
- mask: mask,
1416
- maskId: maskId,
1417
- transform: transform,
1418
- symbol: symbol,
1419
- styles: _objectSpread2$1(_objectSpread2$1({}, uploadedIconWidthStyle), extra.styles)
1420
- });
1421
-
1422
- var _ref2 = mask.found && main.found ? callProvided('generateAbstractMask', args) || {
1423
- children: [],
1424
- attributes: {}
1425
- } : callProvided('generateAbstractIcon', args) || {
1426
- children: [],
1427
- attributes: {}
1428
- },
1429
- children = _ref2.children,
1430
- attributes = _ref2.attributes;
1431
-
1432
- args.children = children;
1433
- args.attributes = attributes;
1434
-
1435
- if (symbol) {
1436
- return asSymbol(args);
1437
- } else {
1438
- return asIcon(args);
1439
- }
1440
- }
1441
- function makeLayersTextAbstract(params) {
1442
- var content = params.content,
1443
- width = params.width,
1444
- height = params.height,
1445
- transform = params.transform,
1446
- title = params.title,
1447
- extra = params.extra,
1448
- _params$watchable2 = params.watchable,
1449
- watchable = _params$watchable2 === void 0 ? false : _params$watchable2;
1450
-
1451
- var attributes = _objectSpread2$1(_objectSpread2$1(_objectSpread2$1({}, extra.attributes), title ? {
1452
- 'title': title
1453
- } : {}), {}, {
1454
- 'class': extra.classes.join(' ')
1455
- });
1456
-
1457
- if (watchable) {
1458
- attributes[DATA_FA_I2SVG] = '';
1459
- }
1460
-
1461
- var styles = _objectSpread2$1({}, extra.styles);
1462
-
1463
- if (transformIsMeaningful(transform)) {
1464
- styles['transform'] = transformForCss({
1465
- transform: transform,
1466
- startCentered: true,
1467
- width: width,
1468
- height: height
1469
- });
1470
- styles['-webkit-transform'] = styles['transform'];
1471
- }
1472
-
1473
- var styleString = joinStyles(styles);
1474
-
1475
- if (styleString.length > 0) {
1476
- attributes['style'] = styleString;
1477
- }
1478
-
1479
- var val = [];
1480
- val.push({
1481
- tag: 'span',
1482
- attributes: attributes,
1483
- children: [content]
1484
- });
1485
-
1486
- if (title) {
1487
- val.push({
1488
- tag: 'span',
1489
- attributes: {
1490
- class: 'sr-only'
1491
- },
1492
- children: [title]
1493
- });
1494
- }
1495
-
1496
- return val;
1497
- }
1498
- function makeLayersCounterAbstract(params) {
1499
- var content = params.content,
1500
- title = params.title,
1501
- extra = params.extra;
1502
-
1503
- var attributes = _objectSpread2$1(_objectSpread2$1(_objectSpread2$1({}, extra.attributes), title ? {
1504
- 'title': title
1505
- } : {}), {}, {
1506
- 'class': extra.classes.join(' ')
1507
- });
1508
-
1509
- var styleString = joinStyles(extra.styles);
1510
-
1511
- if (styleString.length > 0) {
1512
- attributes['style'] = styleString;
1513
- }
1514
-
1515
- var val = [];
1516
- val.push({
1517
- tag: 'span',
1518
- attributes: attributes,
1519
- children: [content]
1520
- });
1521
-
1522
- if (title) {
1523
- val.push({
1524
- tag: 'span',
1525
- attributes: {
1526
- class: 'sr-only'
1527
- },
1528
- children: [title]
1529
- });
1530
- }
1531
-
1532
- return val;
1533
- }
1534
-
1535
- var styles$1 = namespace.styles;
1536
- function asFoundIcon(icon) {
1537
- var width = icon[0];
1538
- var height = icon[1];
1539
-
1540
- var _icon$slice = icon.slice(4),
1541
- _icon$slice2 = _slicedToArray(_icon$slice, 1),
1542
- vectorData = _icon$slice2[0];
1543
-
1544
- var element = null;
1545
-
1546
- if (Array.isArray(vectorData)) {
1547
- element = {
1548
- tag: 'g',
1549
- attributes: {
1550
- class: "".concat(config$1.cssPrefix, "-").concat(DUOTONE_CLASSES.GROUP)
1551
- },
1552
- children: [{
1553
- tag: 'path',
1554
- attributes: {
1555
- class: "".concat(config$1.cssPrefix, "-").concat(DUOTONE_CLASSES.SECONDARY),
1556
- fill: 'currentColor',
1557
- d: vectorData[0]
1558
- }
1559
- }, {
1560
- tag: 'path',
1561
- attributes: {
1562
- class: "".concat(config$1.cssPrefix, "-").concat(DUOTONE_CLASSES.PRIMARY),
1563
- fill: 'currentColor',
1564
- d: vectorData[1]
1565
- }
1566
- }]
1567
- };
1568
- } else {
1569
- element = {
1570
- tag: 'path',
1571
- attributes: {
1572
- fill: 'currentColor',
1573
- d: vectorData
1574
- }
1575
- };
1576
- }
1577
-
1578
- return {
1579
- found: true,
1580
- width: width,
1581
- height: height,
1582
- icon: element
1583
- };
1584
- }
1585
- var missingIconResolutionMixin = {
1586
- found: false,
1587
- width: 512,
1588
- height: 512
1589
- };
1590
-
1591
- function maybeNotifyMissing(iconName, prefix) {
1592
- if (!PRODUCTION$1 && !config$1.showMissingIcons && iconName) {
1593
- console.error("Icon with name \"".concat(iconName, "\" and prefix \"").concat(prefix, "\" is missing."));
1594
- }
1595
- }
1596
-
1597
- function findIcon(iconName, prefix) {
1598
- var givenPrefix = prefix;
1599
-
1600
- if (prefix === 'fa' && config$1.styleDefault !== null) {
1601
- prefix = getDefaultUsablePrefix();
1602
- }
1603
-
1604
- return new Promise(function (resolve, reject) {
1605
- ({
1606
- found: false,
1607
- width: 512,
1608
- height: 512,
1609
- icon: callProvided('missingIconAbstract') || {}
1610
- });
1611
-
1612
- if (givenPrefix === 'fa') {
1613
- var shim = byOldName(iconName) || {};
1614
- iconName = shim.iconName || iconName;
1615
- prefix = shim.prefix || prefix;
1616
- }
1617
-
1618
- if (iconName && prefix && styles$1[prefix] && styles$1[prefix][iconName]) {
1619
- var icon = styles$1[prefix][iconName];
1620
- return resolve(asFoundIcon(icon));
1621
- }
1622
-
1623
- maybeNotifyMissing(iconName, prefix);
1624
- resolve(_objectSpread2$1(_objectSpread2$1({}, missingIconResolutionMixin), {}, {
1625
- icon: config$1.showMissingIcons && iconName ? callProvided('missingIconAbstract') || {} : {}
1626
- }));
1627
- });
1628
- }
1629
-
1630
- var noop$1 = function noop() {};
1631
-
1632
- var p$1 = config$1.measurePerformance && PERFORMANCE && PERFORMANCE.mark && PERFORMANCE.measure ? PERFORMANCE : {
1633
- mark: noop$1,
1634
- measure: noop$1
1635
- };
1636
- var preamble = "FA \"6.5.2\"";
1637
-
1638
- var begin = function begin(name) {
1639
- p$1.mark("".concat(preamble, " ").concat(name, " begins"));
1640
- return function () {
1641
- return end(name);
1642
- };
1643
- };
1644
-
1645
- var end = function end(name) {
1646
- p$1.mark("".concat(preamble, " ").concat(name, " ends"));
1647
- p$1.measure("".concat(preamble, " ").concat(name), "".concat(preamble, " ").concat(name, " begins"), "".concat(preamble, " ").concat(name, " ends"));
1648
- };
1649
-
1650
- var perf = {
1651
- begin: begin,
1652
- end: end
1653
- };
1654
-
1655
- var noop$2 = function noop() {};
1656
-
1657
- function isWatched(node) {
1658
- var i2svg = node.getAttribute ? node.getAttribute(DATA_FA_I2SVG) : null;
1659
- return typeof i2svg === 'string';
1660
- }
1661
-
1662
- function hasPrefixAndIcon(node) {
1663
- var prefix = node.getAttribute ? node.getAttribute(DATA_PREFIX) : null;
1664
- var icon = node.getAttribute ? node.getAttribute(DATA_ICON) : null;
1665
- return prefix && icon;
1666
- }
1667
-
1668
- function hasBeenReplaced(node) {
1669
- return node && node.classList && node.classList.contains && node.classList.contains(config$1.replacementClass);
1670
- }
1671
-
1672
- function getMutator() {
1673
- if (config$1.autoReplaceSvg === true) {
1674
- return mutators.replace;
1675
- }
1676
-
1677
- var mutator = mutators[config$1.autoReplaceSvg];
1678
- return mutator || mutators.replace;
1679
- }
1680
-
1681
- function createElementNS(tag) {
1682
- return DOCUMENT.createElementNS('http://www.w3.org/2000/svg', tag);
1683
- }
1684
-
1685
- function createElement(tag) {
1686
- return DOCUMENT.createElement(tag);
1687
- }
1688
-
1689
- function convertSVG(abstractObj) {
1690
- var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
1691
- var _params$ceFn = params.ceFn,
1692
- ceFn = _params$ceFn === void 0 ? abstractObj.tag === 'svg' ? createElementNS : createElement : _params$ceFn;
1693
-
1694
- if (typeof abstractObj === 'string') {
1695
- return DOCUMENT.createTextNode(abstractObj);
1696
- }
1697
-
1698
- var tag = ceFn(abstractObj.tag);
1699
- Object.keys(abstractObj.attributes || []).forEach(function (key) {
1700
- tag.setAttribute(key, abstractObj.attributes[key]);
1701
- });
1702
- var children = abstractObj.children || [];
1703
- children.forEach(function (child) {
1704
- tag.appendChild(convertSVG(child, {
1705
- ceFn: ceFn
1706
- }));
1707
- });
1708
- return tag;
1709
- }
1710
-
1711
- function nodeAsComment(node) {
1712
- var comment = " ".concat(node.outerHTML, " ");
1713
- /* BEGIN.ATTRIBUTION */
1714
-
1715
- comment = "".concat(comment, "Font Awesome fontawesome.com ");
1716
- /* END.ATTRIBUTION */
1717
-
1718
- return comment;
1719
- }
1720
-
1721
- var mutators = {
1722
- replace: function replace(mutation) {
1723
- var node = mutation[0];
1724
-
1725
- if (node.parentNode) {
1726
- mutation[1].forEach(function (_abstract) {
1727
- node.parentNode.insertBefore(convertSVG(_abstract), node);
1728
- });
1729
-
1730
- if (node.getAttribute(DATA_FA_I2SVG) === null && config$1.keepOriginalSource) {
1731
- var comment = DOCUMENT.createComment(nodeAsComment(node));
1732
- node.parentNode.replaceChild(comment, node);
1733
- } else {
1734
- node.remove();
1735
- }
1736
- }
1737
- },
1738
- nest: function nest(mutation) {
1739
- var node = mutation[0];
1740
- var _abstract2 = mutation[1]; // If we already have a replaced node we do not want to continue nesting within it.
1741
- // Short-circuit to the standard replacement
1742
-
1743
- if (~classArray(node).indexOf(config$1.replacementClass)) {
1744
- return mutators.replace(mutation);
1745
- }
1746
-
1747
- var forSvg = new RegExp("".concat(config$1.cssPrefix, "-.*"));
1748
- delete _abstract2[0].attributes.id;
1749
-
1750
- if (_abstract2[0].attributes.class) {
1751
- var splitClasses = _abstract2[0].attributes.class.split(' ').reduce(function (acc, cls) {
1752
- if (cls === config$1.replacementClass || cls.match(forSvg)) {
1753
- acc.toSvg.push(cls);
1754
- } else {
1755
- acc.toNode.push(cls);
1756
- }
1757
-
1758
- return acc;
1759
- }, {
1760
- toNode: [],
1761
- toSvg: []
1762
- });
1763
-
1764
- _abstract2[0].attributes.class = splitClasses.toSvg.join(' ');
1765
-
1766
- if (splitClasses.toNode.length === 0) {
1767
- node.removeAttribute('class');
1768
- } else {
1769
- node.setAttribute('class', splitClasses.toNode.join(' '));
1770
- }
1771
- }
1772
-
1773
- var newInnerHTML = _abstract2.map(function (a) {
1774
- return toHtml(a);
1775
- }).join('\n');
1776
-
1777
- node.setAttribute(DATA_FA_I2SVG, '');
1778
- node.innerHTML = newInnerHTML;
1779
- }
1780
- };
1781
-
1782
- function performOperationSync(op) {
1783
- op();
1784
- }
1785
-
1786
- function perform(mutations, callback) {
1787
- var callbackFunction = typeof callback === 'function' ? callback : noop$2;
1788
-
1789
- if (mutations.length === 0) {
1790
- callbackFunction();
1791
- } else {
1792
- var frame = performOperationSync;
1793
-
1794
- if (config$1.mutateApproach === MUTATION_APPROACH_ASYNC) {
1795
- frame = WINDOW.requestAnimationFrame || performOperationSync;
1796
- }
1797
-
1798
- frame(function () {
1799
- var mutator = getMutator();
1800
- var mark = perf.begin('mutate');
1801
- mutations.map(mutator);
1802
- mark();
1803
- callbackFunction();
1804
- });
1805
- }
1806
- }
1807
- var disabled = false;
1808
- function disableObservation() {
1809
- disabled = true;
1810
- }
1811
- function enableObservation() {
1812
- disabled = false;
1813
- }
1814
- var mo = null;
1815
- function observe(options) {
1816
- if (!MUTATION_OBSERVER) {
1817
- return;
1818
- }
1819
-
1820
- if (!config$1.observeMutations) {
1821
- return;
1822
- }
1823
-
1824
- var _options$treeCallback = options.treeCallback,
1825
- treeCallback = _options$treeCallback === void 0 ? noop$2 : _options$treeCallback,
1826
- _options$nodeCallback = options.nodeCallback,
1827
- nodeCallback = _options$nodeCallback === void 0 ? noop$2 : _options$nodeCallback,
1828
- _options$pseudoElemen = options.pseudoElementsCallback,
1829
- pseudoElementsCallback = _options$pseudoElemen === void 0 ? noop$2 : _options$pseudoElemen,
1830
- _options$observeMutat = options.observeMutationsRoot,
1831
- observeMutationsRoot = _options$observeMutat === void 0 ? DOCUMENT : _options$observeMutat;
1832
- mo = new MUTATION_OBSERVER(function (objects) {
1833
- if (disabled) return;
1834
- var defaultPrefix = getDefaultUsablePrefix();
1835
- toArray(objects).forEach(function (mutationRecord) {
1836
- if (mutationRecord.type === 'childList' && mutationRecord.addedNodes.length > 0 && !isWatched(mutationRecord.addedNodes[0])) {
1837
- if (config$1.searchPseudoElements) {
1838
- pseudoElementsCallback(mutationRecord.target);
1839
- }
1840
-
1841
- treeCallback(mutationRecord.target);
1842
- }
1843
-
1844
- if (mutationRecord.type === 'attributes' && mutationRecord.target.parentNode && config$1.searchPseudoElements) {
1845
- pseudoElementsCallback(mutationRecord.target.parentNode);
1846
- }
1847
-
1848
- if (mutationRecord.type === 'attributes' && isWatched(mutationRecord.target) && ~ATTRIBUTES_WATCHED_FOR_MUTATION.indexOf(mutationRecord.attributeName)) {
1849
- if (mutationRecord.attributeName === 'class' && hasPrefixAndIcon(mutationRecord.target)) {
1850
- var _getCanonicalIcon = getCanonicalIcon(classArray(mutationRecord.target)),
1851
- prefix = _getCanonicalIcon.prefix,
1852
- iconName = _getCanonicalIcon.iconName;
1853
-
1854
- mutationRecord.target.setAttribute(DATA_PREFIX, prefix || defaultPrefix);
1855
- if (iconName) mutationRecord.target.setAttribute(DATA_ICON, iconName);
1856
- } else if (hasBeenReplaced(mutationRecord.target)) {
1857
- nodeCallback(mutationRecord.target);
1858
- }
1859
- }
1860
- });
1861
- });
1862
- if (!IS_DOM) return;
1863
- mo.observe(observeMutationsRoot, {
1864
- childList: true,
1865
- attributes: true,
1866
- characterData: true,
1867
- subtree: true
1868
- });
1869
- }
1870
- function disconnect() {
1871
- if (!mo) return;
1872
- mo.disconnect();
1873
- }
1874
-
1875
- function styleParser (node) {
1876
- var style = node.getAttribute('style');
1877
- var val = [];
1878
-
1879
- if (style) {
1880
- val = style.split(';').reduce(function (acc, style) {
1881
- var styles = style.split(':');
1882
- var prop = styles[0];
1883
- var value = styles.slice(1);
1884
-
1885
- if (prop && value.length > 0) {
1886
- acc[prop] = value.join(':').trim();
1887
- }
1888
-
1889
- return acc;
1890
- }, {});
1891
- }
1892
-
1893
- return val;
1894
- }
1895
-
1896
- function classParser (node) {
1897
- var existingPrefix = node.getAttribute('data-prefix');
1898
- var existingIconName = node.getAttribute('data-icon');
1899
- var innerText = node.innerText !== undefined ? node.innerText.trim() : '';
1900
- var val = getCanonicalIcon(classArray(node));
1901
-
1902
- if (!val.prefix) {
1903
- val.prefix = getDefaultUsablePrefix();
1904
- }
1905
-
1906
- if (existingPrefix && existingIconName) {
1907
- val.prefix = existingPrefix;
1908
- val.iconName = existingIconName;
1909
- }
1910
-
1911
- if (val.iconName && val.prefix) {
1912
- return val;
1913
- }
1914
-
1915
- if (val.prefix && innerText.length > 0) {
1916
- val.iconName = byLigature(val.prefix, node.innerText) || byUnicode(val.prefix, toHex(node.innerText));
1917
- }
1918
-
1919
- if (!val.iconName && config$1.autoFetchSvg && node.firstChild && node.firstChild.nodeType === Node.TEXT_NODE) {
1920
- val.iconName = node.firstChild.data;
1921
- }
1922
-
1923
- return val;
1924
- }
1925
-
1926
- function attributesParser (node) {
1927
- var extraAttributes = toArray(node.attributes).reduce(function (acc, attr) {
1928
- if (acc.name !== 'class' && acc.name !== 'style') {
1929
- acc[attr.name] = attr.value;
1930
- }
1931
-
1932
- return acc;
1933
- }, {});
1934
- var title = node.getAttribute('title');
1935
- var titleId = node.getAttribute('data-fa-title-id');
1936
-
1937
- if (config$1.autoA11y) {
1938
- if (title) {
1939
- extraAttributes['aria-labelledby'] = "".concat(config$1.replacementClass, "-title-").concat(titleId || nextUniqueId());
1940
- } else {
1941
- extraAttributes['aria-hidden'] = 'true';
1942
- extraAttributes['focusable'] = 'false';
1943
- }
1944
- }
1945
-
1946
- return extraAttributes;
1947
- }
1948
-
1949
- function blankMeta() {
1950
- return {
1951
- iconName: null,
1952
- title: null,
1953
- titleId: null,
1954
- prefix: null,
1955
- transform: meaninglessTransform,
1956
- symbol: false,
1957
- mask: {
1958
- iconName: null,
1959
- prefix: null,
1960
- rest: []
1961
- },
1962
- maskId: null,
1963
- extra: {
1964
- classes: [],
1965
- styles: {},
1966
- attributes: {}
1967
- }
1968
- };
1969
- }
1970
- function parseMeta(node) {
1971
- var parser = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {
1972
- styleParser: true
1973
- };
1974
-
1975
- var _classParser = classParser(node),
1976
- iconName = _classParser.iconName,
1977
- prefix = _classParser.prefix,
1978
- extraClasses = _classParser.rest;
1979
-
1980
- var extraAttributes = attributesParser(node);
1981
- var pluginMeta = chainHooks('parseNodeAttributes', {}, node);
1982
- var extraStyles = parser.styleParser ? styleParser(node) : [];
1983
- return _objectSpread2$1({
1984
- iconName: iconName,
1985
- title: node.getAttribute('title'),
1986
- titleId: node.getAttribute('data-fa-title-id'),
1987
- prefix: prefix,
1988
- transform: meaninglessTransform,
1989
- mask: {
1990
- iconName: null,
1991
- prefix: null,
1992
- rest: []
1993
- },
1994
- maskId: null,
1995
- symbol: false,
1996
- extra: {
1997
- classes: extraClasses,
1998
- styles: extraStyles,
1999
- attributes: extraAttributes
2000
- }
2001
- }, pluginMeta);
2002
- }
2003
-
2004
- var styles$2 = namespace.styles;
2005
-
2006
- function generateMutation(node) {
2007
- var nodeMeta = config$1.autoReplaceSvg === 'nest' ? parseMeta(node, {
2008
- styleParser: false
2009
- }) : parseMeta(node);
2010
-
2011
- if (~nodeMeta.extra.classes.indexOf(LAYERS_TEXT_CLASSNAME)) {
2012
- return callProvided('generateLayersText', node, nodeMeta);
2013
- } else {
2014
- return callProvided('generateSvgReplacementMutation', node, nodeMeta);
2015
- }
2016
- }
2017
-
2018
- var knownPrefixes = new Set();
2019
- FAMILIES.map(function (family) {
2020
- knownPrefixes.add("fa-".concat(family));
2021
- });
2022
- Object.keys(PREFIX_TO_STYLE[FAMILY_CLASSIC]).map(knownPrefixes.add.bind(knownPrefixes));
2023
- Object.keys(PREFIX_TO_STYLE[FAMILY_SHARP]).map(knownPrefixes.add.bind(knownPrefixes));
2024
- knownPrefixes = _toConsumableArray$1(knownPrefixes);
2025
-
2026
- function onTree(root) {
2027
- var callback = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
2028
- if (!IS_DOM) return Promise.resolve();
2029
- var htmlClassList = DOCUMENT.documentElement.classList;
2030
-
2031
- var hclAdd = function hclAdd(suffix) {
2032
- return htmlClassList.add("".concat(HTML_CLASS_I2SVG_BASE_CLASS, "-").concat(suffix));
2033
- };
2034
-
2035
- var hclRemove = function hclRemove(suffix) {
2036
- return htmlClassList.remove("".concat(HTML_CLASS_I2SVG_BASE_CLASS, "-").concat(suffix));
2037
- };
2038
-
2039
- var prefixes = config$1.autoFetchSvg ? knownPrefixes : FAMILIES.map(function (f) {
2040
- return "fa-".concat(f);
2041
- }).concat(Object.keys(styles$2));
2042
-
2043
- if (!prefixes.includes('fa')) {
2044
- prefixes.push('fa');
2045
- }
2046
-
2047
- var prefixesDomQuery = [".".concat(LAYERS_TEXT_CLASSNAME, ":not([").concat(DATA_FA_I2SVG, "])")].concat(prefixes.map(function (p) {
2048
- return ".".concat(p, ":not([").concat(DATA_FA_I2SVG, "])");
2049
- })).join(', ');
2050
-
2051
- if (prefixesDomQuery.length === 0) {
2052
- return Promise.resolve();
2053
- }
2054
-
2055
- var candidates = [];
2056
-
2057
- try {
2058
- candidates = toArray(root.querySelectorAll(prefixesDomQuery));
2059
- } catch (e) {// noop
2060
- }
2061
-
2062
- if (candidates.length > 0) {
2063
- hclAdd('pending');
2064
- hclRemove('complete');
2065
- } else {
2066
- return Promise.resolve();
2067
- }
2068
-
2069
- var mark = perf.begin('onTree');
2070
- var mutations = candidates.reduce(function (acc, node) {
2071
- try {
2072
- var mutation = generateMutation(node);
2073
-
2074
- if (mutation) {
2075
- acc.push(mutation);
2076
- }
2077
- } catch (e) {
2078
- if (!PRODUCTION$1) {
2079
- if (e.name === 'MissingIcon') {
2080
- console.error(e);
2081
- }
2082
- }
2083
- }
2084
-
2085
- return acc;
2086
- }, []);
2087
- return new Promise(function (resolve, reject) {
2088
- Promise.all(mutations).then(function (resolvedMutations) {
2089
- perform(resolvedMutations, function () {
2090
- hclAdd('active');
2091
- hclAdd('complete');
2092
- hclRemove('pending');
2093
- if (typeof callback === 'function') callback();
2094
- mark();
2095
- resolve();
2096
- });
2097
- }).catch(function (e) {
2098
- mark();
2099
- reject(e);
2100
- });
2101
- });
2102
- }
2103
-
2104
- function onNode(node) {
2105
- var callback = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
2106
- generateMutation(node).then(function (mutation) {
2107
- if (mutation) {
2108
- perform([mutation], callback);
2109
- }
2110
- });
2111
- }
2112
-
2113
- function resolveIcons(next) {
2114
- return function (maybeIconDefinition) {
2115
- var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
2116
- var iconDefinition = (maybeIconDefinition || {}).icon ? maybeIconDefinition : findIconDefinition(maybeIconDefinition || {});
2117
- var mask = params.mask;
2118
-
2119
- if (mask) {
2120
- mask = (mask || {}).icon ? mask : findIconDefinition(mask || {});
2121
- }
2122
-
2123
- return next(iconDefinition, _objectSpread2$1(_objectSpread2$1({}, params), {}, {
2124
- mask: mask
2125
- }));
2126
- };
2127
- }
2128
-
2129
- var render = function render(iconDefinition) {
2130
- var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
2131
- var _params$transform = params.transform,
2132
- transform = _params$transform === void 0 ? meaninglessTransform : _params$transform,
2133
- _params$symbol = params.symbol,
2134
- symbol = _params$symbol === void 0 ? false : _params$symbol,
2135
- _params$mask = params.mask,
2136
- mask = _params$mask === void 0 ? null : _params$mask,
2137
- _params$maskId = params.maskId,
2138
- maskId = _params$maskId === void 0 ? null : _params$maskId,
2139
- _params$title = params.title,
2140
- title = _params$title === void 0 ? null : _params$title,
2141
- _params$titleId = params.titleId,
2142
- titleId = _params$titleId === void 0 ? null : _params$titleId,
2143
- _params$classes = params.classes,
2144
- classes = _params$classes === void 0 ? [] : _params$classes,
2145
- _params$attributes = params.attributes,
2146
- attributes = _params$attributes === void 0 ? {} : _params$attributes,
2147
- _params$styles = params.styles,
2148
- styles = _params$styles === void 0 ? {} : _params$styles;
2149
- if (!iconDefinition) return;
2150
- var prefix = iconDefinition.prefix,
2151
- iconName = iconDefinition.iconName,
2152
- icon = iconDefinition.icon;
2153
- return domVariants(_objectSpread2$1({
2154
- type: 'icon'
2155
- }, iconDefinition), function () {
2156
- callHooks('beforeDOMElementCreation', {
2157
- iconDefinition: iconDefinition,
2158
- params: params
2159
- });
2160
-
2161
- if (config$1.autoA11y) {
2162
- if (title) {
2163
- attributes['aria-labelledby'] = "".concat(config$1.replacementClass, "-title-").concat(titleId || nextUniqueId());
2164
- } else {
2165
- attributes['aria-hidden'] = 'true';
2166
- attributes['focusable'] = 'false';
2167
- }
2168
- }
2169
-
2170
- return makeInlineSvgAbstract({
2171
- icons: {
2172
- main: asFoundIcon(icon),
2173
- mask: mask ? asFoundIcon(mask.icon) : {
2174
- found: false,
2175
- width: null,
2176
- height: null,
2177
- icon: {}
2178
- }
2179
- },
2180
- prefix: prefix,
2181
- iconName: iconName,
2182
- transform: _objectSpread2$1(_objectSpread2$1({}, meaninglessTransform), transform),
2183
- symbol: symbol,
2184
- title: title,
2185
- maskId: maskId,
2186
- titleId: titleId,
2187
- extra: {
2188
- attributes: attributes,
2189
- styles: styles,
2190
- classes: classes
2191
- }
2192
- });
2193
- });
2194
- };
2195
- var ReplaceElements = {
2196
- mixout: function mixout() {
2197
- return {
2198
- icon: resolveIcons(render)
2199
- };
2200
- },
2201
- hooks: function hooks() {
2202
- return {
2203
- mutationObserverCallbacks: function mutationObserverCallbacks(accumulator) {
2204
- accumulator.treeCallback = onTree;
2205
- accumulator.nodeCallback = onNode;
2206
- return accumulator;
2207
- }
2208
- };
2209
- },
2210
- provides: function provides(providers$$1) {
2211
- providers$$1.i2svg = function (params) {
2212
- var _params$node = params.node,
2213
- node = _params$node === void 0 ? DOCUMENT : _params$node,
2214
- _params$callback = params.callback,
2215
- callback = _params$callback === void 0 ? function () {} : _params$callback;
2216
- return onTree(node, callback);
2217
- };
2218
-
2219
- providers$$1.generateSvgReplacementMutation = function (node, nodeMeta) {
2220
- var iconName = nodeMeta.iconName,
2221
- title = nodeMeta.title,
2222
- titleId = nodeMeta.titleId,
2223
- prefix = nodeMeta.prefix,
2224
- transform = nodeMeta.transform,
2225
- symbol = nodeMeta.symbol,
2226
- mask = nodeMeta.mask,
2227
- maskId = nodeMeta.maskId,
2228
- extra = nodeMeta.extra;
2229
- return new Promise(function (resolve, reject) {
2230
- Promise.all([findIcon(iconName, prefix), mask.iconName ? findIcon(mask.iconName, mask.prefix) : Promise.resolve({
2231
- found: false,
2232
- width: 512,
2233
- height: 512,
2234
- icon: {}
2235
- })]).then(function (_ref) {
2236
- var _ref2 = _slicedToArray(_ref, 2),
2237
- main = _ref2[0],
2238
- mask = _ref2[1];
2239
-
2240
- resolve([node, makeInlineSvgAbstract({
2241
- icons: {
2242
- main: main,
2243
- mask: mask
2244
- },
2245
- prefix: prefix,
2246
- iconName: iconName,
2247
- transform: transform,
2248
- symbol: symbol,
2249
- maskId: maskId,
2250
- title: title,
2251
- titleId: titleId,
2252
- extra: extra,
2253
- watchable: true
2254
- })]);
2255
- }).catch(reject);
2256
- });
2257
- };
2258
-
2259
- providers$$1.generateAbstractIcon = function (_ref3) {
2260
- var children = _ref3.children,
2261
- attributes = _ref3.attributes,
2262
- main = _ref3.main,
2263
- transform = _ref3.transform,
2264
- styles = _ref3.styles;
2265
- var styleString = joinStyles(styles);
2266
-
2267
- if (styleString.length > 0) {
2268
- attributes['style'] = styleString;
2269
- }
2270
-
2271
- var nextChild;
2272
-
2273
- if (transformIsMeaningful(transform)) {
2274
- nextChild = callProvided('generateAbstractTransformGrouping', {
2275
- main: main,
2276
- transform: transform,
2277
- containerWidth: main.width,
2278
- iconWidth: main.width
2279
- });
2280
- }
2281
-
2282
- children.push(nextChild || main.icon);
2283
- return {
2284
- children: children,
2285
- attributes: attributes
2286
- };
2287
- };
2288
- }
2289
- };
2290
-
2291
- var Layers = {
2292
- mixout: function mixout() {
2293
- return {
2294
- layer: function layer(assembler) {
2295
- var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
2296
- var _params$classes = params.classes,
2297
- classes = _params$classes === void 0 ? [] : _params$classes;
2298
- return domVariants({
2299
- type: 'layer'
2300
- }, function () {
2301
- callHooks('beforeDOMElementCreation', {
2302
- assembler: assembler,
2303
- params: params
2304
- });
2305
- var children = [];
2306
- assembler(function (args) {
2307
- Array.isArray(args) ? args.map(function (a) {
2308
- children = children.concat(a.abstract);
2309
- }) : children = children.concat(args.abstract);
2310
- });
2311
- return [{
2312
- tag: 'span',
2313
- attributes: {
2314
- class: ["".concat(config$1.cssPrefix, "-layers")].concat(_toConsumableArray$1(classes)).join(' ')
2315
- },
2316
- children: children
2317
- }];
2318
- });
2319
- }
2320
- };
2321
- }
2322
- };
2323
-
2324
- var LayersCounter = {
2325
- mixout: function mixout() {
2326
- return {
2327
- counter: function counter(content) {
2328
- var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
2329
- var _params$title = params.title,
2330
- title = _params$title === void 0 ? null : _params$title,
2331
- _params$classes = params.classes,
2332
- classes = _params$classes === void 0 ? [] : _params$classes,
2333
- _params$attributes = params.attributes,
2334
- attributes = _params$attributes === void 0 ? {} : _params$attributes,
2335
- _params$styles = params.styles,
2336
- styles = _params$styles === void 0 ? {} : _params$styles;
2337
- return domVariants({
2338
- type: 'counter',
2339
- content: content
2340
- }, function () {
2341
- callHooks('beforeDOMElementCreation', {
2342
- content: content,
2343
- params: params
2344
- });
2345
- return makeLayersCounterAbstract({
2346
- content: content.toString(),
2347
- title: title,
2348
- extra: {
2349
- attributes: attributes,
2350
- styles: styles,
2351
- classes: ["".concat(config$1.cssPrefix, "-layers-counter")].concat(_toConsumableArray$1(classes))
2352
- }
2353
- });
2354
- });
2355
- }
2356
- };
2357
- }
2358
- };
2359
-
2360
- var LayersText = {
2361
- mixout: function mixout() {
2362
- return {
2363
- text: function text(content) {
2364
- var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
2365
- var _params$transform = params.transform,
2366
- transform = _params$transform === void 0 ? meaninglessTransform : _params$transform,
2367
- _params$title = params.title,
2368
- title = _params$title === void 0 ? null : _params$title,
2369
- _params$classes = params.classes,
2370
- classes = _params$classes === void 0 ? [] : _params$classes,
2371
- _params$attributes = params.attributes,
2372
- attributes = _params$attributes === void 0 ? {} : _params$attributes,
2373
- _params$styles = params.styles,
2374
- styles = _params$styles === void 0 ? {} : _params$styles;
2375
- return domVariants({
2376
- type: 'text',
2377
- content: content
2378
- }, function () {
2379
- callHooks('beforeDOMElementCreation', {
2380
- content: content,
2381
- params: params
2382
- });
2383
- return makeLayersTextAbstract({
2384
- content: content,
2385
- transform: _objectSpread2$1(_objectSpread2$1({}, meaninglessTransform), transform),
2386
- title: title,
2387
- extra: {
2388
- attributes: attributes,
2389
- styles: styles,
2390
- classes: ["".concat(config$1.cssPrefix, "-layers-text")].concat(_toConsumableArray$1(classes))
2391
- }
2392
- });
2393
- });
2394
- }
2395
- };
2396
- },
2397
- provides: function provides(providers$$1) {
2398
- providers$$1.generateLayersText = function (node, nodeMeta) {
2399
- var title = nodeMeta.title,
2400
- transform = nodeMeta.transform,
2401
- extra = nodeMeta.extra;
2402
- var width = null;
2403
- var height = null;
2404
-
2405
- if (IS_IE) {
2406
- var computedFontSize = parseInt(getComputedStyle(node).fontSize, 10);
2407
- var boundingClientRect = node.getBoundingClientRect();
2408
- width = boundingClientRect.width / computedFontSize;
2409
- height = boundingClientRect.height / computedFontSize;
2410
- }
2411
-
2412
- if (config$1.autoA11y && !title) {
2413
- extra.attributes['aria-hidden'] = 'true';
2414
- }
2415
-
2416
- return Promise.resolve([node, makeLayersTextAbstract({
2417
- content: node.innerHTML,
2418
- width: width,
2419
- height: height,
2420
- transform: transform,
2421
- title: title,
2422
- extra: extra,
2423
- watchable: true
2424
- })]);
2425
- };
2426
- }
2427
- };
2428
-
2429
- var CLEAN_CONTENT_PATTERN = new RegExp("\"", 'ug');
2430
- var SECONDARY_UNICODE_RANGE = [1105920, 1112319];
2431
- function hexValueFromContent(content) {
2432
- var cleaned = content.replace(CLEAN_CONTENT_PATTERN, '');
2433
- var codePoint = codePointAt(cleaned, 0);
2434
- var isPrependTen = codePoint >= SECONDARY_UNICODE_RANGE[0] && codePoint <= SECONDARY_UNICODE_RANGE[1];
2435
- var isDoubled = cleaned.length === 2 ? cleaned[0] === cleaned[1] : false;
2436
- return {
2437
- value: isDoubled ? toHex(cleaned[0]) : toHex(cleaned),
2438
- isSecondary: isPrependTen || isDoubled
2439
- };
2440
- }
2441
-
2442
- function replaceForPosition(node, position) {
2443
- var pendingAttribute = "".concat(DATA_FA_PSEUDO_ELEMENT_PENDING).concat(position.replace(':', '-'));
2444
- return new Promise(function (resolve, reject) {
2445
- if (node.getAttribute(pendingAttribute) !== null) {
2446
- // This node is already being processed
2447
- return resolve();
2448
- }
2449
-
2450
- var children = toArray(node.children);
2451
- var alreadyProcessedPseudoElement = children.filter(function (c) {
2452
- return c.getAttribute(DATA_FA_PSEUDO_ELEMENT) === position;
2453
- })[0];
2454
- var styles = WINDOW.getComputedStyle(node, position);
2455
- var fontFamily = styles.getPropertyValue('font-family').match(FONT_FAMILY_PATTERN);
2456
- var fontWeight = styles.getPropertyValue('font-weight');
2457
- var content = styles.getPropertyValue('content');
2458
-
2459
- if (alreadyProcessedPseudoElement && !fontFamily) {
2460
- // If we've already processed it but the current computed style does not result in a font-family,
2461
- // that probably means that a class name that was previously present to make the icon has been
2462
- // removed. So we now should delete the icon.
2463
- node.removeChild(alreadyProcessedPseudoElement);
2464
- return resolve();
2465
- } else if (fontFamily && content !== 'none' && content !== '') {
2466
- var _content = styles.getPropertyValue('content');
2467
-
2468
- var family = ~['Sharp'].indexOf(fontFamily[2]) ? FAMILY_SHARP : FAMILY_CLASSIC;
2469
- var prefix = ~['Solid', 'Regular', 'Light', 'Thin', 'Duotone', 'Brands', 'Kit'].indexOf(fontFamily[2]) ? STYLE_TO_PREFIX[family][fontFamily[2].toLowerCase()] : FONT_WEIGHT_TO_PREFIX[family][fontWeight];
2470
-
2471
- var _hexValueFromContent = hexValueFromContent(_content),
2472
- hexValue = _hexValueFromContent.value,
2473
- isSecondary = _hexValueFromContent.isSecondary;
2474
-
2475
- var isV4 = fontFamily[0].startsWith('FontAwesome');
2476
- var iconName = byUnicode(prefix, hexValue);
2477
- var iconIdentifier = iconName;
2478
-
2479
- if (isV4) {
2480
- var iconName4 = byOldUnicode(hexValue);
2481
-
2482
- if (iconName4.iconName && iconName4.prefix) {
2483
- iconName = iconName4.iconName;
2484
- prefix = iconName4.prefix;
2485
- }
2486
- } // Only convert the pseudo element in this ::before/::after position into an icon if we haven't
2487
- // already done so with the same prefix and iconName
2488
-
2489
-
2490
- if (iconName && !isSecondary && (!alreadyProcessedPseudoElement || alreadyProcessedPseudoElement.getAttribute(DATA_PREFIX) !== prefix || alreadyProcessedPseudoElement.getAttribute(DATA_ICON) !== iconIdentifier)) {
2491
- node.setAttribute(pendingAttribute, iconIdentifier);
2492
-
2493
- if (alreadyProcessedPseudoElement) {
2494
- // Delete the old one, since we're replacing it with a new one
2495
- node.removeChild(alreadyProcessedPseudoElement);
2496
- }
2497
-
2498
- var meta = blankMeta();
2499
- var extra = meta.extra;
2500
- extra.attributes[DATA_FA_PSEUDO_ELEMENT] = position;
2501
- findIcon(iconName, prefix).then(function (main) {
2502
- var _abstract = makeInlineSvgAbstract(_objectSpread2$1(_objectSpread2$1({}, meta), {}, {
2503
- icons: {
2504
- main: main,
2505
- mask: emptyCanonicalIcon()
2506
- },
2507
- prefix: prefix,
2508
- iconName: iconIdentifier,
2509
- extra: extra,
2510
- watchable: true
2511
- }));
2512
-
2513
- var element = DOCUMENT.createElementNS('http://www.w3.org/2000/svg', 'svg');
2514
-
2515
- if (position === '::before') {
2516
- node.insertBefore(element, node.firstChild);
2517
- } else {
2518
- node.appendChild(element);
2519
- }
2520
-
2521
- element.outerHTML = _abstract.map(function (a) {
2522
- return toHtml(a);
2523
- }).join('\n');
2524
- node.removeAttribute(pendingAttribute);
2525
- resolve();
2526
- }).catch(reject);
2527
- } else {
2528
- resolve();
2529
- }
2530
- } else {
2531
- resolve();
2532
- }
2533
- });
2534
- }
2535
-
2536
- function replace(node) {
2537
- return Promise.all([replaceForPosition(node, '::before'), replaceForPosition(node, '::after')]);
2538
- }
2539
-
2540
- function processable(node) {
2541
- 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');
2542
- }
2543
-
2544
- function searchPseudoElements(root) {
2545
- if (!IS_DOM) return;
2546
- return new Promise(function (resolve, reject) {
2547
- var operations = toArray(root.querySelectorAll('*')).filter(processable).map(replace);
2548
- var end = perf.begin('searchPseudoElements');
2549
- disableObservation();
2550
- Promise.all(operations).then(function () {
2551
- end();
2552
- enableObservation();
2553
- resolve();
2554
- }).catch(function () {
2555
- end();
2556
- enableObservation();
2557
- reject();
2558
- });
2559
- });
2560
- }
2561
-
2562
- var PseudoElements = {
2563
- hooks: function hooks() {
2564
- return {
2565
- mutationObserverCallbacks: function mutationObserverCallbacks(accumulator) {
2566
- accumulator.pseudoElementsCallback = searchPseudoElements;
2567
- return accumulator;
2568
- }
2569
- };
2570
- },
2571
- provides: function provides(providers$$1) {
2572
- providers$$1.pseudoElements2svg = function (params) {
2573
- var _params$node = params.node,
2574
- node = _params$node === void 0 ? DOCUMENT : _params$node;
2575
-
2576
- if (config$1.searchPseudoElements) {
2577
- searchPseudoElements(node);
2578
- }
2579
- };
2580
- }
2581
- };
2582
-
2583
- var _unwatched = false;
2584
- var MutationObserver$1 = {
2585
- mixout: function mixout() {
2586
- return {
2587
- dom: {
2588
- unwatch: function unwatch() {
2589
- disableObservation();
2590
- _unwatched = true;
2591
- }
2592
- }
2593
- };
2594
- },
2595
- hooks: function hooks() {
2596
- return {
2597
- bootstrap: function bootstrap() {
2598
- observe(chainHooks('mutationObserverCallbacks', {}));
2599
- },
2600
- noAuto: function noAuto() {
2601
- disconnect();
2602
- },
2603
- watch: function watch(params) {
2604
- var observeMutationsRoot = params.observeMutationsRoot;
2605
-
2606
- if (_unwatched) {
2607
- enableObservation();
2608
- } else {
2609
- observe(chainHooks('mutationObserverCallbacks', {
2610
- observeMutationsRoot: observeMutationsRoot
2611
- }));
2612
- }
2613
- }
2614
- };
2615
- }
2616
- };
2617
-
2618
- var parseTransformString = function parseTransformString(transformString) {
2619
- var transform = {
2620
- size: 16,
2621
- x: 0,
2622
- y: 0,
2623
- flipX: false,
2624
- flipY: false,
2625
- rotate: 0
2626
- };
2627
- return transformString.toLowerCase().split(' ').reduce(function (acc, n) {
2628
- var parts = n.toLowerCase().split('-');
2629
- var first = parts[0];
2630
- var rest = parts.slice(1).join('-');
2631
-
2632
- if (first && rest === 'h') {
2633
- acc.flipX = true;
2634
- return acc;
2635
- }
2636
-
2637
- if (first && rest === 'v') {
2638
- acc.flipY = true;
2639
- return acc;
2640
- }
2641
-
2642
- rest = parseFloat(rest);
2643
-
2644
- if (isNaN(rest)) {
2645
- return acc;
2646
- }
2647
-
2648
- switch (first) {
2649
- case 'grow':
2650
- acc.size = acc.size + rest;
2651
- break;
2652
-
2653
- case 'shrink':
2654
- acc.size = acc.size - rest;
2655
- break;
2656
-
2657
- case 'left':
2658
- acc.x = acc.x - rest;
2659
- break;
2660
-
2661
- case 'right':
2662
- acc.x = acc.x + rest;
2663
- break;
2664
-
2665
- case 'up':
2666
- acc.y = acc.y - rest;
2667
- break;
2668
-
2669
- case 'down':
2670
- acc.y = acc.y + rest;
2671
- break;
2672
-
2673
- case 'rotate':
2674
- acc.rotate = acc.rotate + rest;
2675
- break;
2676
- }
2677
-
2678
- return acc;
2679
- }, transform);
2680
- };
2681
- var PowerTransforms = {
2682
- mixout: function mixout() {
2683
- return {
2684
- parse: {
2685
- transform: function transform(transformString) {
2686
- return parseTransformString(transformString);
2687
- }
2688
- }
2689
- };
2690
- },
2691
- hooks: function hooks() {
2692
- return {
2693
- parseNodeAttributes: function parseNodeAttributes(accumulator, node) {
2694
- var transformString = node.getAttribute('data-fa-transform');
2695
-
2696
- if (transformString) {
2697
- accumulator.transform = parseTransformString(transformString);
2698
- }
2699
-
2700
- return accumulator;
2701
- }
2702
- };
2703
- },
2704
- provides: function provides(providers) {
2705
- providers.generateAbstractTransformGrouping = function (_ref) {
2706
- var main = _ref.main,
2707
- transform = _ref.transform,
2708
- containerWidth = _ref.containerWidth,
2709
- iconWidth = _ref.iconWidth;
2710
- var outer = {
2711
- transform: "translate(".concat(containerWidth / 2, " 256)")
2712
- };
2713
- var innerTranslate = "translate(".concat(transform.x * 32, ", ").concat(transform.y * 32, ") ");
2714
- var innerScale = "scale(".concat(transform.size / 16 * (transform.flipX ? -1 : 1), ", ").concat(transform.size / 16 * (transform.flipY ? -1 : 1), ") ");
2715
- var innerRotate = "rotate(".concat(transform.rotate, " 0 0)");
2716
- var inner = {
2717
- transform: "".concat(innerTranslate, " ").concat(innerScale, " ").concat(innerRotate)
2718
- };
2719
- var path = {
2720
- transform: "translate(".concat(iconWidth / 2 * -1, " -256)")
2721
- };
2722
- var operations = {
2723
- outer: outer,
2724
- inner: inner,
2725
- path: path
2726
- };
2727
- return {
2728
- tag: 'g',
2729
- attributes: _objectSpread2$1({}, operations.outer),
2730
- children: [{
2731
- tag: 'g',
2732
- attributes: _objectSpread2$1({}, operations.inner),
2733
- children: [{
2734
- tag: main.icon.tag,
2735
- children: main.icon.children,
2736
- attributes: _objectSpread2$1(_objectSpread2$1({}, main.icon.attributes), operations.path)
2737
- }]
2738
- }]
2739
- };
2740
- };
2741
- }
2742
- };
2743
-
2744
- var ALL_SPACE = {
2745
- x: 0,
2746
- y: 0,
2747
- width: '100%',
2748
- height: '100%'
2749
- };
2750
-
2751
- function fillBlack(_abstract) {
2752
- var force = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
2753
-
2754
- if (_abstract.attributes && (_abstract.attributes.fill || force)) {
2755
- _abstract.attributes.fill = 'black';
2756
- }
2757
-
2758
- return _abstract;
2759
- }
2760
-
2761
- function deGroup(_abstract2) {
2762
- if (_abstract2.tag === 'g') {
2763
- return _abstract2.children;
2764
- } else {
2765
- return [_abstract2];
2766
- }
2767
- }
2768
-
2769
- var Masks = {
2770
- hooks: function hooks() {
2771
- return {
2772
- parseNodeAttributes: function parseNodeAttributes(accumulator, node) {
2773
- var maskData = node.getAttribute('data-fa-mask');
2774
- var mask = !maskData ? emptyCanonicalIcon() : getCanonicalIcon(maskData.split(' ').map(function (i) {
2775
- return i.trim();
2776
- }));
2777
-
2778
- if (!mask.prefix) {
2779
- mask.prefix = getDefaultUsablePrefix();
2780
- }
2781
-
2782
- accumulator.mask = mask;
2783
- accumulator.maskId = node.getAttribute('data-fa-mask-id');
2784
- return accumulator;
2785
- }
2786
- };
2787
- },
2788
- provides: function provides(providers) {
2789
- providers.generateAbstractMask = function (_ref) {
2790
- var children = _ref.children,
2791
- attributes = _ref.attributes,
2792
- main = _ref.main,
2793
- mask = _ref.mask,
2794
- explicitMaskId = _ref.maskId,
2795
- transform = _ref.transform;
2796
- var mainWidth = main.width,
2797
- mainPath = main.icon;
2798
- var maskWidth = mask.width,
2799
- maskPath = mask.icon;
2800
- var trans = transformForSvg({
2801
- transform: transform,
2802
- containerWidth: maskWidth,
2803
- iconWidth: mainWidth
2804
- });
2805
- var maskRect = {
2806
- tag: 'rect',
2807
- attributes: _objectSpread2$1(_objectSpread2$1({}, ALL_SPACE), {}, {
2808
- fill: 'white'
2809
- })
2810
- };
2811
- var maskInnerGroupChildrenMixin = mainPath.children ? {
2812
- children: mainPath.children.map(fillBlack)
2813
- } : {};
2814
- var maskInnerGroup = {
2815
- tag: 'g',
2816
- attributes: _objectSpread2$1({}, trans.inner),
2817
- children: [fillBlack(_objectSpread2$1({
2818
- tag: mainPath.tag,
2819
- attributes: _objectSpread2$1(_objectSpread2$1({}, mainPath.attributes), trans.path)
2820
- }, maskInnerGroupChildrenMixin))]
2821
- };
2822
- var maskOuterGroup = {
2823
- tag: 'g',
2824
- attributes: _objectSpread2$1({}, trans.outer),
2825
- children: [maskInnerGroup]
2826
- };
2827
- var maskId = "mask-".concat(explicitMaskId || nextUniqueId());
2828
- var clipId = "clip-".concat(explicitMaskId || nextUniqueId());
2829
- var maskTag = {
2830
- tag: 'mask',
2831
- attributes: _objectSpread2$1(_objectSpread2$1({}, ALL_SPACE), {}, {
2832
- id: maskId,
2833
- maskUnits: 'userSpaceOnUse',
2834
- maskContentUnits: 'userSpaceOnUse'
2835
- }),
2836
- children: [maskRect, maskOuterGroup]
2837
- };
2838
- var defs = {
2839
- tag: 'defs',
2840
- children: [{
2841
- tag: 'clipPath',
2842
- attributes: {
2843
- id: clipId
2844
- },
2845
- children: deGroup(maskPath)
2846
- }, maskTag]
2847
- };
2848
- children.push(defs, {
2849
- tag: 'rect',
2850
- attributes: _objectSpread2$1({
2851
- fill: 'currentColor',
2852
- 'clip-path': "url(#".concat(clipId, ")"),
2853
- mask: "url(#".concat(maskId, ")")
2854
- }, ALL_SPACE)
2855
- });
2856
- return {
2857
- children: children,
2858
- attributes: attributes
2859
- };
2860
- };
2861
- }
2862
- };
2863
-
2864
- var MissingIconIndicator = {
2865
- provides: function provides(providers) {
2866
- var reduceMotion = false;
2867
-
2868
- if (WINDOW.matchMedia) {
2869
- reduceMotion = WINDOW.matchMedia('(prefers-reduced-motion: reduce)').matches;
2870
- }
2871
-
2872
- providers.missingIconAbstract = function () {
2873
- var gChildren = [];
2874
- var FILL = {
2875
- fill: 'currentColor'
2876
- };
2877
- var ANIMATION_BASE = {
2878
- attributeType: 'XML',
2879
- repeatCount: 'indefinite',
2880
- dur: '2s'
2881
- }; // Ring
2882
-
2883
- gChildren.push({
2884
- tag: 'path',
2885
- attributes: _objectSpread2$1(_objectSpread2$1({}, FILL), {}, {
2886
- 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'
2887
- })
2888
- });
2889
-
2890
- var OPACITY_ANIMATE = _objectSpread2$1(_objectSpread2$1({}, ANIMATION_BASE), {}, {
2891
- attributeName: 'opacity'
2892
- });
2893
-
2894
- var dot = {
2895
- tag: 'circle',
2896
- attributes: _objectSpread2$1(_objectSpread2$1({}, FILL), {}, {
2897
- cx: '256',
2898
- cy: '364',
2899
- r: '28'
2900
- }),
2901
- children: []
2902
- };
2903
-
2904
- if (!reduceMotion) {
2905
- dot.children.push({
2906
- tag: 'animate',
2907
- attributes: _objectSpread2$1(_objectSpread2$1({}, ANIMATION_BASE), {}, {
2908
- attributeName: 'r',
2909
- values: '28;14;28;28;14;28;'
2910
- })
2911
- }, {
2912
- tag: 'animate',
2913
- attributes: _objectSpread2$1(_objectSpread2$1({}, OPACITY_ANIMATE), {}, {
2914
- values: '1;0;1;1;0;1;'
2915
- })
2916
- });
2917
- }
2918
-
2919
- gChildren.push(dot);
2920
- gChildren.push({
2921
- tag: 'path',
2922
- attributes: _objectSpread2$1(_objectSpread2$1({}, FILL), {}, {
2923
- opacity: '1',
2924
- 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'
2925
- }),
2926
- children: reduceMotion ? [] : [{
2927
- tag: 'animate',
2928
- attributes: _objectSpread2$1(_objectSpread2$1({}, OPACITY_ANIMATE), {}, {
2929
- values: '1;0;0;0;0;1;'
2930
- })
2931
- }]
2932
- });
2933
-
2934
- if (!reduceMotion) {
2935
- // Exclamation
2936
- gChildren.push({
2937
- tag: 'path',
2938
- attributes: _objectSpread2$1(_objectSpread2$1({}, FILL), {}, {
2939
- opacity: '0',
2940
- 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'
2941
- }),
2942
- children: [{
2943
- tag: 'animate',
2944
- attributes: _objectSpread2$1(_objectSpread2$1({}, OPACITY_ANIMATE), {}, {
2945
- values: '0;0;1;1;0;0;'
2946
- })
2947
- }]
2948
- });
2949
- }
2950
-
2951
- return {
2952
- tag: 'g',
2953
- attributes: {
2954
- 'class': 'missing'
2955
- },
2956
- children: gChildren
2957
- };
2958
- };
2959
- }
2960
- };
2961
-
2962
- var SvgSymbols = {
2963
- hooks: function hooks() {
2964
- return {
2965
- parseNodeAttributes: function parseNodeAttributes(accumulator, node) {
2966
- var symbolData = node.getAttribute('data-fa-symbol');
2967
- var symbol = symbolData === null ? false : symbolData === '' ? true : symbolData;
2968
- accumulator['symbol'] = symbol;
2969
- return accumulator;
2970
- }
2971
- };
2972
- }
2973
- };
2974
-
2975
- var plugins = [InjectCSS, ReplaceElements, Layers, LayersCounter, LayersText, PseudoElements, MutationObserver$1, PowerTransforms, Masks, MissingIconIndicator, SvgSymbols];
2976
-
2977
- registerPlugins(plugins, {
2978
- mixoutsTo: api
2979
- });
2980
- api.noAuto;
2981
- api.config;
2982
- var library$1 = api.library;
2983
- api.dom;
2984
- var parse$1$1 = api.parse;
2985
- var findIconDefinition$1 = api.findIconDefinition;
2986
- api.toHtml;
2987
- var icon = api.icon;
2988
- api.layer;
2989
- api.text;
2990
- api.counter;
2991
-
2992
- var faPencil = {
2993
- prefix: 'fas',
2994
- iconName: 'pencil',
2995
- icon: [512, 512, [9999, 61504, "pencil-alt"], "f303", "M410.3 231l11.3-11.3-33.9-33.9-62.1-62.1L291.7 89.8l-11.3 11.3-22.6 22.6L58.6 322.9c-10.4 10.4-18 23.3-22.2 37.4L1 480.7c-2.5 8.4-.2 17.5 6.1 23.7s15.3 8.5 23.7 6.1l120.3-35.4c14.1-4.2 27-11.8 37.4-22.2L387.7 253.7 410.3 231zM160 399.4l-9.1 22.7c-4 3.1-8.5 5.4-13.3 6.9L59.4 452l23-78.1c1.4-4.9 3.8-9.4 6.9-13.3l22.7-9.1v32c0 8.8 7.2 16 16 16h32zM362.7 18.7L348.3 33.2 325.7 55.8 314.3 67.1l33.9 33.9 62.1 62.1 33.9 33.9 11.3-11.3 22.6-22.6 14.5-14.5c25-25 25-65.5 0-90.5L453.3 18.7c-25-25-65.5-25-90.5 0zm-47.4 168l-144 144c-6.2 6.2-16.4 6.2-22.6 0s-6.2-16.4 0-22.6l144-144c6.2-6.2 16.4-6.2 22.6 0s6.2 16.4 0 22.6z"]
2996
- };
2997
- var faPencilAlt = faPencil;
2998
- var faCircleNotch = {
2999
- prefix: 'fas',
3000
- iconName: 'circle-notch',
3001
- icon: [512, 512, [], "f1ce", "M222.7 32.1c5 16.9-4.6 34.8-21.5 39.8C121.8 95.6 64 169.1 64 256c0 106 86 192 192 192s192-86 192-192c0-86.9-57.8-160.4-137.1-184.1c-16.9-5-26.6-22.9-21.5-39.8s22.9-26.6 39.8-21.5C434.9 42.1 512 140 512 256c0 141.4-114.6 256-256 256S0 397.4 0 256C0 140 77.1 42.1 182.9 10.6c16.9-5 34.8 4.6 39.8 21.5z"]
3002
- };
3003
- var faEyeSlash = {
3004
- prefix: 'fas',
3005
- iconName: 'eye-slash',
3006
- icon: [640, 512, [], "f070", "M38.8 5.1C28.4-3.1 13.3-1.2 5.1 9.2S-1.2 34.7 9.2 42.9l592 464c10.4 8.2 25.5 6.3 33.7-4.1s6.3-25.5-4.1-33.7L525.6 386.7c39.6-40.6 66.4-86.1 79.9-118.4c3.3-7.9 3.3-16.7 0-24.6c-14.9-35.7-46.2-87.7-93-131.1C465.5 68.8 400.8 32 320 32c-68.2 0-125 26.3-169.3 60.8L38.8 5.1zM223.1 149.5C248.6 126.2 282.7 112 320 112c79.5 0 144 64.5 144 144c0 24.9-6.3 48.3-17.4 68.7L408 294.5c8.4-19.3 10.6-41.4 4.8-63.3c-11.1-41.5-47.8-69.4-88.6-71.1c-5.8-.2-9.2 6.1-7.4 11.7c2.1 6.4 3.3 13.2 3.3 20.3c0 10.2-2.4 19.8-6.6 28.3l-90.3-70.8zM373 389.9c-16.4 6.5-34.3 10.1-53 10.1c-79.5 0-144-64.5-144-144c0-6.9 .5-13.6 1.4-20.2L83.1 161.5C60.3 191.2 44 220.8 34.5 243.7c-3.3 7.9-3.3 16.7 0 24.6c14.9 35.7 46.2 87.7 93 131.1C174.5 443.2 239.2 480 320 480c47.8 0 89.9-12.9 126.2-32.5L373 389.9z"]
3007
- };
3008
- var faCaretUp = {
3009
- prefix: 'fas',
3010
- iconName: 'caret-up',
3011
- icon: [320, 512, [], "f0d8", "M182.6 137.4c-12.5-12.5-32.8-12.5-45.3 0l-128 128c-9.2 9.2-11.9 22.9-6.9 34.9s16.6 19.8 29.6 19.8H288c12.9 0 24.6-7.8 29.6-19.8s2.2-25.7-6.9-34.9l-128-128z"]
3012
- };
3013
- var faArrowRight = {
3014
- prefix: 'fas',
3015
- iconName: 'arrow-right',
3016
- icon: [448, 512, [8594], "f061", "M438.6 278.6c12.5-12.5 12.5-32.8 0-45.3l-160-160c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L338.8 224 32 224c-17.7 0-32 14.3-32 32s14.3 32 32 32l306.7 0L233.4 393.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0l160-160z"]
3017
- };
3018
- var faCircleQuestion = {
3019
- prefix: 'fas',
3020
- iconName: 'circle-question',
3021
- icon: [512, 512, [62108, "question-circle"], "f059", "M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM169.8 165.3c7.9-22.3 29.1-37.3 52.8-37.3h58.3c34.9 0 63.1 28.3 63.1 63.1c0 22.6-12.1 43.5-31.7 54.8L280 264.4c-.2 13-10.9 23.6-24 23.6c-13.3 0-24-10.7-24-24V250.5c0-8.6 4.6-16.5 12.1-20.8l44.3-25.4c4.7-2.7 7.6-7.7 7.6-13.1c0-8.4-6.8-15.1-15.1-15.1H222.6c-3.4 0-6.4 2.1-7.5 5.3l-.4 1.2c-4.4 12.5-18.2 19-30.6 14.6s-19-18.2-14.6-30.6l.4-1.2zM224 352a32 32 0 1 1 64 0 32 32 0 1 1 -64 0z"]
3022
- };
3023
- var faQuestionCircle = faCircleQuestion;
3024
- var faEye = {
3025
- prefix: 'fas',
3026
- iconName: 'eye',
3027
- icon: [576, 512, [128065], "f06e", "M288 32c-80.8 0-145.5 36.8-192.6 80.6C48.6 156 17.3 208 2.5 243.7c-3.3 7.9-3.3 16.7 0 24.6C17.3 304 48.6 356 95.4 399.4C142.5 443.2 207.2 480 288 480s145.5-36.8 192.6-80.6c46.8-43.5 78.1-95.4 93-131.1c3.3-7.9 3.3-16.7 0-24.6c-14.9-35.7-46.2-87.7-93-131.1C433.5 68.8 368.8 32 288 32zM144 256a144 144 0 1 1 288 0 144 144 0 1 1 -288 0zm144-64c0 35.3-28.7 64-64 64c-7.1 0-13.9-1.2-20.3-3.3c-5.5-1.8-11.9 1.6-11.7 7.4c.3 6.9 1.3 13.8 3.2 20.7c13.7 51.2 66.4 81.6 117.6 67.9s81.6-66.4 67.9-117.6c-11.1-41.5-47.8-69.4-88.6-71.1c-5.8-.2-9.2 6.1-7.4 11.7c2.1 6.4 3.3 13.2 3.3 20.3z"]
3028
- };
3029
- var faArrowLeft = {
3030
- prefix: 'fas',
3031
- iconName: 'arrow-left',
3032
- icon: [448, 512, [8592], "f060", "M9.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l160 160c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L109.2 288 416 288c17.7 0 32-14.3 32-32s-14.3-32-32-32l-306.7 0L214.6 118.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-160 160z"]
3033
- };
3034
- var faTag = {
3035
- prefix: 'fas',
3036
- iconName: 'tag',
3037
- icon: [448, 512, [127991], "f02b", "M0 80V229.5c0 17 6.7 33.3 18.7 45.3l176 176c25 25 65.5 25 90.5 0L418.7 317.3c25-25 25-65.5 0-90.5l-176-176c-12-12-28.3-18.7-45.3-18.7H48C21.5 32 0 53.5 0 80zm112 32a32 32 0 1 1 0 64 32 32 0 1 1 0-64z"]
3038
- };
3039
- var faGear = {
3040
- prefix: 'fas',
3041
- iconName: 'gear',
3042
- icon: [512, 512, [9881, "cog"], "f013", "M495.9 166.6c3.2 8.7 .5 18.4-6.4 24.6l-43.3 39.4c1.1 8.3 1.7 16.8 1.7 25.4s-.6 17.1-1.7 25.4l43.3 39.4c6.9 6.2 9.6 15.9 6.4 24.6c-4.4 11.9-9.7 23.3-15.8 34.3l-4.7 8.1c-6.6 11-14 21.4-22.1 31.2c-5.9 7.2-15.7 9.6-24.5 6.8l-55.7-17.7c-13.4 10.3-28.2 18.9-44 25.4l-12.5 57.1c-2 9.1-9 16.3-18.2 17.8c-13.8 2.3-28 3.5-42.5 3.5s-28.7-1.2-42.5-3.5c-9.2-1.5-16.2-8.7-18.2-17.8l-12.5-57.1c-15.8-6.5-30.6-15.1-44-25.4L83.1 425.9c-8.8 2.8-18.6 .3-24.5-6.8c-8.1-9.8-15.5-20.2-22.1-31.2l-4.7-8.1c-6.1-11-11.4-22.4-15.8-34.3c-3.2-8.7-.5-18.4 6.4-24.6l43.3-39.4C64.6 273.1 64 264.6 64 256s.6-17.1 1.7-25.4L22.4 191.2c-6.9-6.2-9.6-15.9-6.4-24.6c4.4-11.9 9.7-23.3 15.8-34.3l4.7-8.1c6.6-11 14-21.4 22.1-31.2c5.9-7.2 15.7-9.6 24.5-6.8l55.7 17.7c13.4-10.3 28.2-18.9 44-25.4l12.5-57.1c2-9.1 9-16.3 18.2-17.8C227.3 1.2 241.5 0 256 0s28.7 1.2 42.5 3.5c9.2 1.5 16.2 8.7 18.2 17.8l12.5 57.1c15.8 6.5 30.6 15.1 44 25.4l55.7-17.7c8.8-2.8 18.6-.3 24.5 6.8c8.1 9.8 15.5 20.2 22.1 31.2l4.7 8.1c6.1 11 11.4 22.4 15.8 34.3zM256 336a80 80 0 1 0 0-160 80 80 0 1 0 0 160z"]
3043
- };
3044
- var faCog = faGear;
3045
- var faCaretDown = {
3046
- prefix: 'fas',
3047
- iconName: 'caret-down',
3048
- icon: [320, 512, [], "f0d7", "M137.4 374.6c12.5 12.5 32.8 12.5 45.3 0l128-128c9.2-9.2 11.9-22.9 6.9-34.9s-16.6-19.8-29.6-19.8L32 192c-12.9 0-24.6 7.8-29.6 19.8s-2.2 25.7 6.9 34.9l128 128z"]
3049
- };
3050
- var faCalculator = {
3051
- prefix: 'fas',
3052
- iconName: 'calculator',
3053
- icon: [384, 512, [128425], "f1ec", "M64 0C28.7 0 0 28.7 0 64V448c0 35.3 28.7 64 64 64H320c35.3 0 64-28.7 64-64V64c0-35.3-28.7-64-64-64H64zM96 64H288c17.7 0 32 14.3 32 32v32c0 17.7-14.3 32-32 32H96c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32zm32 160a32 32 0 1 1 -64 0 32 32 0 1 1 64 0zM96 352a32 32 0 1 1 0-64 32 32 0 1 1 0 64zM64 416c0-17.7 14.3-32 32-32h96c17.7 0 32 14.3 32 32s-14.3 32-32 32H96c-17.7 0-32-14.3-32-32zM192 256a32 32 0 1 1 0-64 32 32 0 1 1 0 64zm32 64a32 32 0 1 1 -64 0 32 32 0 1 1 64 0zm64-64a32 32 0 1 1 0-64 32 32 0 1 1 0 64zm32 64a32 32 0 1 1 -64 0 32 32 0 1 1 64 0zM288 448a32 32 0 1 1 0-64 32 32 0 1 1 0 64z"]
3054
- };
3055
- var faFileArrowDown = {
3056
- prefix: 'fas',
3057
- iconName: 'file-arrow-down',
3058
- icon: [384, 512, ["file-download"], "f56d", "M64 0C28.7 0 0 28.7 0 64V448c0 35.3 28.7 64 64 64H320c35.3 0 64-28.7 64-64V160H256c-17.7 0-32-14.3-32-32V0H64zM256 0V128H384L256 0zM216 232V334.1l31-31c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9l-72 72c-9.4 9.4-24.6 9.4-33.9 0l-72-72c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l31 31V232c0-13.3 10.7-24 24-24s24 10.7 24 24z"]
3059
- };
3060
- var faFileDownload = faFileArrowDown;
3061
- var faMountainSun = {
3062
- prefix: 'fas',
3063
- iconName: 'mountain-sun',
3064
- icon: [640, 512, [], "e52f", "M560 160A80 80 0 1 0 560 0a80 80 0 1 0 0 160zM55.9 512H381.1h75H578.9c33.8 0 61.1-27.4 61.1-61.1c0-11.2-3.1-22.2-8.9-31.8l-132-216.3C495 196.1 487.8 192 480 192s-15 4.1-19.1 10.7l-48.2 79L286.8 81c-6.6-10.6-18.3-17-30.8-17s-24.1 6.4-30.8 17L8.6 426.4C3 435.3 0 445.6 0 456.1C0 487 25 512 55.9 512z"]
3065
- };
3066
- var faArrowDown = {
3067
- prefix: 'fas',
3068
- iconName: 'arrow-down',
3069
- icon: [384, 512, [8595], "f063", "M169.4 470.6c12.5 12.5 32.8 12.5 45.3 0l160-160c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L224 370.8 224 64c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 306.7L54.6 265.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l160 160z"]
3070
- };
3071
- var faMagnifyingGlass = {
3072
- prefix: 'fas',
3073
- iconName: 'magnifying-glass',
3074
- icon: [512, 512, [128269, "search"], "f002", "M416 208c0 45.9-14.9 88.3-40 122.7L502.6 457.4c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L330.7 376c-34.4 25.2-76.8 40-122.7 40C93.1 416 0 322.9 0 208S93.1 0 208 0S416 93.1 416 208zM208 352a144 144 0 1 0 0-288 144 144 0 1 0 0 288z"]
3075
- };
3076
- var faSearch = faMagnifyingGlass;
3077
- var faWind = {
3078
- prefix: 'fas',
3079
- iconName: 'wind',
3080
- icon: [512, 512, [], "f72e", "M288 32c0 17.7 14.3 32 32 32h32c17.7 0 32 14.3 32 32s-14.3 32-32 32H32c-17.7 0-32 14.3-32 32s14.3 32 32 32H352c53 0 96-43 96-96s-43-96-96-96H320c-17.7 0-32 14.3-32 32zm64 352c0 17.7 14.3 32 32 32h32c53 0 96-43 96-96s-43-96-96-96H32c-17.7 0-32 14.3-32 32s14.3 32 32 32H416c17.7 0 32 14.3 32 32s-14.3 32-32 32H384c-17.7 0-32 14.3-32 32zM128 512h32c53 0 96-43 96-96s-43-96-96-96H32c-17.7 0-32 14.3-32 32s14.3 32 32 32H160c17.7 0 32 14.3 32 32s-14.3 32-32 32H128c-17.7 0-32 14.3-32 32s14.3 32 32 32z"]
3081
- };
3082
- var faCopy = {
3083
- prefix: 'fas',
3084
- iconName: 'copy',
3085
- icon: [448, 512, [], "f0c5", "M208 0H332.1c12.7 0 24.9 5.1 33.9 14.1l67.9 67.9c9 9 14.1 21.2 14.1 33.9V336c0 26.5-21.5 48-48 48H208c-26.5 0-48-21.5-48-48V48c0-26.5 21.5-48 48-48zM48 128h80v64H64V448H256V416h64v48c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V176c0-26.5 21.5-48 48-48z"]
3086
- };
3087
- var faRocket = {
3088
- prefix: 'fas',
3089
- iconName: 'rocket',
3090
- icon: [512, 512, [], "f135", "M156.6 384.9L125.7 354c-8.5-8.5-11.5-20.8-7.7-32.2c3-8.9 7-20.5 11.8-33.8L24 288c-8.6 0-16.6-4.6-20.9-12.1s-4.2-16.7 .2-24.1l52.5-88.5c13-21.9 36.5-35.3 61.9-35.3l82.3 0c2.4-4 4.8-7.7 7.2-11.3C289.1-4.1 411.1-8.1 483.9 5.3c11.6 2.1 20.6 11.2 22.8 22.8c13.4 72.9 9.3 194.8-111.4 276.7c-3.5 2.4-7.3 4.8-11.3 7.2v82.3c0 25.4-13.4 49-35.3 61.9l-88.5 52.5c-7.4 4.4-16.6 4.5-24.1 .2s-12.1-12.2-12.1-20.9V380.8c-14.1 4.9-26.4 8.9-35.7 11.9c-11.2 3.6-23.4 .5-31.8-7.8zM384 168a40 40 0 1 0 0-80 40 40 0 1 0 0 80z"]
3091
- };
3092
- var faCheck = {
3093
- prefix: 'fas',
3094
- iconName: 'check',
3095
- icon: [448, 512, [10003, 10004], "f00c", "M438.6 105.4c12.5 12.5 12.5 32.8 0 45.3l-256 256c-12.5 12.5-32.8 12.5-45.3 0l-128-128c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L160 338.7 393.4 105.4c12.5-12.5 32.8-12.5 45.3 0z"]
3096
- };
3097
-
3098
13
  // Utility for registering FontAwesome icons
3099
14
  const registerFontAwesomeIcons = (...icons) => {
3100
- library$1.add(...icons);
15
+ library.add(...icons);
3101
16
  };
3102
17
  // Register the icons used directly in design system components
3103
18
  registerFontAwesomeIcons(faArrowDown, faArrowRight, faArrowLeft, faCalculator, faCheck, faCircleNotch, faMountainSun, faRocket, faWind, faEyeSlash, faEye, faCaretUp, faCaretDown, faTag, faPencilAlt, faSearch, faCog, faFileDownload, faQuestionCircle, faCopy);
@@ -5513,7 +2428,7 @@ const weight = {
5513
2428
  semibold: 500,
5514
2429
  bold: 600,
5515
2430
  };
5516
- const ellipsis = css$1 `
2431
+ const ellipsis = css `
5517
2432
  overflow: hidden;
5518
2433
  white-space: nowrap;
5519
2434
  text-overflow: ellipsis;
@@ -7425,7 +4340,6 @@ if (process.env.NODE_ENV !== 'production') {
7425
4340
  }
7426
4341
 
7427
4342
  var propTypesExports = propTypes.exports;
7428
- var PropTypes = /*@__PURE__*/getDefaultExportFromCjs(propTypesExports);
7429
4343
 
7430
4344
  var style$6 = {};
7431
4345
 
@@ -8624,431 +5538,6 @@ const Button$2 = forwardRef((props, ref) => {
8624
5538
  return (jsxs("button", Object.assign({ ref: ref, disabled: isLoading || isDisabled, className: buttonClasses, role: "button", onClick: handleOnClick, "aria-label": ariaLabel || 'button', "aria-disabled": isLoading || isDisabled, "aria-busy": isLoading, type: type, onMouseEnter: onMouseEnter, onMouseLeave: onMouseExit, onKeyDown: onKeyDown }, rest, { children: [isLoading && (jsx(Icon, { name: "fa-circle-notch", style: { animation: 'spin 1s linear infinite' }, className: "mr-2", ariaLabel: "Loading...", size: size })), !children && iconName && jsx(Icon, { name: iconName, ariaLabel: `${iconName} Icon`, size: size }), children && iconPosition === 'left' && iconName && (jsx(Icon, { name: iconName, className: "mr-2", ariaLabel: `${iconName} Icon`, size: size })), children, children && iconPosition === 'right' && iconName && (jsx(Icon, { name: iconName, className: "ml-2", ariaLabel: `${iconName} Icon`, size: size }))] })));
8625
5539
  });
8626
5540
 
8627
- function ownKeys(object, enumerableOnly) {
8628
- var keys = Object.keys(object);
8629
-
8630
- if (Object.getOwnPropertySymbols) {
8631
- var symbols = Object.getOwnPropertySymbols(object);
8632
- enumerableOnly && (symbols = symbols.filter(function (sym) {
8633
- return Object.getOwnPropertyDescriptor(object, sym).enumerable;
8634
- })), keys.push.apply(keys, symbols);
8635
- }
8636
-
8637
- return keys;
8638
- }
8639
-
8640
- function _objectSpread2(target) {
8641
- for (var i = 1; i < arguments.length; i++) {
8642
- var source = null != arguments[i] ? arguments[i] : {};
8643
- i % 2 ? ownKeys(Object(source), !0).forEach(function (key) {
8644
- _defineProperty(target, key, source[key]);
8645
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) {
8646
- Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
8647
- });
8648
- }
8649
-
8650
- return target;
8651
- }
8652
-
8653
- function _typeof(obj) {
8654
- "@babel/helpers - typeof";
8655
-
8656
- return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
8657
- return typeof obj;
8658
- } : function (obj) {
8659
- return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
8660
- }, _typeof(obj);
8661
- }
8662
-
8663
- function _defineProperty(obj, key, value) {
8664
- if (key in obj) {
8665
- Object.defineProperty(obj, key, {
8666
- value: value,
8667
- enumerable: true,
8668
- configurable: true,
8669
- writable: true
8670
- });
8671
- } else {
8672
- obj[key] = value;
8673
- }
8674
-
8675
- return obj;
8676
- }
8677
-
8678
- function _objectWithoutPropertiesLoose(source, excluded) {
8679
- if (source == null) return {};
8680
- var target = {};
8681
- var sourceKeys = Object.keys(source);
8682
- var key, i;
8683
-
8684
- for (i = 0; i < sourceKeys.length; i++) {
8685
- key = sourceKeys[i];
8686
- if (excluded.indexOf(key) >= 0) continue;
8687
- target[key] = source[key];
8688
- }
8689
-
8690
- return target;
8691
- }
8692
-
8693
- function _objectWithoutProperties(source, excluded) {
8694
- if (source == null) return {};
8695
-
8696
- var target = _objectWithoutPropertiesLoose(source, excluded);
8697
-
8698
- var key, i;
8699
-
8700
- if (Object.getOwnPropertySymbols) {
8701
- var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
8702
-
8703
- for (i = 0; i < sourceSymbolKeys.length; i++) {
8704
- key = sourceSymbolKeys[i];
8705
- if (excluded.indexOf(key) >= 0) continue;
8706
- if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
8707
- target[key] = source[key];
8708
- }
8709
- }
8710
-
8711
- return target;
8712
- }
8713
-
8714
- function _toConsumableArray(arr) {
8715
- return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
8716
- }
8717
-
8718
- function _arrayWithoutHoles(arr) {
8719
- if (Array.isArray(arr)) return _arrayLikeToArray(arr);
8720
- }
8721
-
8722
- function _iterableToArray(iter) {
8723
- if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
8724
- }
8725
-
8726
- function _unsupportedIterableToArray(o, minLen) {
8727
- if (!o) return;
8728
- if (typeof o === "string") return _arrayLikeToArray(o, minLen);
8729
- var n = Object.prototype.toString.call(o).slice(8, -1);
8730
- if (n === "Object" && o.constructor) n = o.constructor.name;
8731
- if (n === "Map" || n === "Set") return Array.from(o);
8732
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
8733
- }
8734
-
8735
- function _arrayLikeToArray(arr, len) {
8736
- if (len == null || len > arr.length) len = arr.length;
8737
-
8738
- for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
8739
-
8740
- return arr2;
8741
- }
8742
-
8743
- function _nonIterableSpread() {
8744
- throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
8745
- }
8746
-
8747
- // Get CSS class list from a props object
8748
- function classList$1(props) {
8749
- var _classes;
8750
-
8751
- var beat = props.beat,
8752
- fade = props.fade,
8753
- beatFade = props.beatFade,
8754
- bounce = props.bounce,
8755
- shake = props.shake,
8756
- flash = props.flash,
8757
- spin = props.spin,
8758
- spinPulse = props.spinPulse,
8759
- spinReverse = props.spinReverse,
8760
- pulse = props.pulse,
8761
- fixedWidth = props.fixedWidth,
8762
- inverse = props.inverse,
8763
- border = props.border,
8764
- listItem = props.listItem,
8765
- flip = props.flip,
8766
- size = props.size,
8767
- rotation = props.rotation,
8768
- pull = props.pull; // map of CSS class names to properties
8769
-
8770
- var classes = (_classes = {
8771
- 'fa-beat': beat,
8772
- 'fa-fade': fade,
8773
- 'fa-beat-fade': beatFade,
8774
- 'fa-bounce': bounce,
8775
- 'fa-shake': shake,
8776
- 'fa-flash': flash,
8777
- 'fa-spin': spin,
8778
- 'fa-spin-reverse': spinReverse,
8779
- 'fa-spin-pulse': spinPulse,
8780
- 'fa-pulse': pulse,
8781
- 'fa-fw': fixedWidth,
8782
- 'fa-inverse': inverse,
8783
- 'fa-border': border,
8784
- 'fa-li': listItem,
8785
- 'fa-flip': flip === true,
8786
- 'fa-flip-horizontal': flip === 'horizontal' || flip === 'both',
8787
- 'fa-flip-vertical': flip === 'vertical' || flip === 'both'
8788
- }, _defineProperty(_classes, "fa-".concat(size), typeof size !== 'undefined' && size !== null), _defineProperty(_classes, "fa-rotate-".concat(rotation), typeof rotation !== 'undefined' && rotation !== null && rotation !== 0), _defineProperty(_classes, "fa-pull-".concat(pull), typeof pull !== 'undefined' && pull !== null), _defineProperty(_classes, 'fa-swap-opacity', props.swapOpacity), _classes); // map over all the keys in the classes object
8789
- // return an array of the keys where the value for the key is not null
8790
-
8791
- return Object.keys(classes).map(function (key) {
8792
- return classes[key] ? key : null;
8793
- }).filter(function (key) {
8794
- return key;
8795
- });
8796
- }
8797
-
8798
- // Camelize taken from humps
8799
- // humps is copyright © 2012+ Dom Christie
8800
- // Released under the MIT license.
8801
- // Performant way to determine if object coerces to a number
8802
- function _isNumerical(obj) {
8803
- obj = obj - 0; // eslint-disable-next-line no-self-compare
8804
-
8805
- return obj === obj;
8806
- }
8807
-
8808
- function camelize(string) {
8809
- if (_isNumerical(string)) {
8810
- return string;
8811
- } // eslint-disable-next-line no-useless-escape
8812
-
8813
-
8814
- string = string.replace(/[\-_\s]+(.)?/g, function (match, chr) {
8815
- return chr ? chr.toUpperCase() : '';
8816
- }); // Ensure 1st char is always lowercase
8817
-
8818
- return string.substr(0, 1).toLowerCase() + string.substr(1);
8819
- }
8820
-
8821
- var _excluded = ["style"];
8822
-
8823
- function capitalize$1(val) {
8824
- return val.charAt(0).toUpperCase() + val.slice(1);
8825
- }
8826
-
8827
- function styleToObject(style) {
8828
- return style.split(';').map(function (s) {
8829
- return s.trim();
8830
- }).filter(function (s) {
8831
- return s;
8832
- }).reduce(function (acc, pair) {
8833
- var i = pair.indexOf(':');
8834
- var prop = camelize(pair.slice(0, i));
8835
- var value = pair.slice(i + 1).trim();
8836
- prop.startsWith('webkit') ? acc[capitalize$1(prop)] = value : acc[prop] = value;
8837
- return acc;
8838
- }, {});
8839
- }
8840
-
8841
- function convert(createElement, element) {
8842
- var extraProps = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
8843
-
8844
- if (typeof element === 'string') {
8845
- return element;
8846
- }
8847
-
8848
- var children = (element.children || []).map(function (child) {
8849
- return convert(createElement, child);
8850
- });
8851
- /* eslint-disable dot-notation */
8852
-
8853
- var mixins = Object.keys(element.attributes || {}).reduce(function (acc, key) {
8854
- var val = element.attributes[key];
8855
-
8856
- switch (key) {
8857
- case 'class':
8858
- acc.attrs['className'] = val;
8859
- delete element.attributes['class'];
8860
- break;
8861
-
8862
- case 'style':
8863
- acc.attrs['style'] = styleToObject(val);
8864
- break;
8865
-
8866
- default:
8867
- if (key.indexOf('aria-') === 0 || key.indexOf('data-') === 0) {
8868
- acc.attrs[key.toLowerCase()] = val;
8869
- } else {
8870
- acc.attrs[camelize(key)] = val;
8871
- }
8872
-
8873
- }
8874
-
8875
- return acc;
8876
- }, {
8877
- attrs: {}
8878
- });
8879
-
8880
- var _extraProps$style = extraProps.style,
8881
- existingStyle = _extraProps$style === void 0 ? {} : _extraProps$style,
8882
- remaining = _objectWithoutProperties(extraProps, _excluded);
8883
-
8884
- mixins.attrs['style'] = _objectSpread2(_objectSpread2({}, mixins.attrs['style']), existingStyle);
8885
- /* eslint-enable */
8886
-
8887
- return createElement.apply(void 0, [element.tag, _objectSpread2(_objectSpread2({}, mixins.attrs), remaining)].concat(_toConsumableArray(children)));
8888
- }
8889
-
8890
- var PRODUCTION = false;
8891
-
8892
- try {
8893
- PRODUCTION = process.env.NODE_ENV === 'production';
8894
- } catch (e) {}
8895
-
8896
- function log$5 () {
8897
- if (!PRODUCTION && console && typeof console.error === 'function') {
8898
- var _console;
8899
-
8900
- (_console = console).error.apply(_console, arguments);
8901
- }
8902
- }
8903
-
8904
- function normalizeIconArgs(icon) {
8905
- // this has everything that it needs to be rendered which means it was probably imported
8906
- // directly from an icon svg package
8907
- if (icon && _typeof(icon) === 'object' && icon.prefix && icon.iconName && icon.icon) {
8908
- return icon;
8909
- }
8910
-
8911
- if (parse$1$1.icon) {
8912
- return parse$1$1.icon(icon);
8913
- } // if the icon is null, there's nothing to do
8914
-
8915
-
8916
- if (icon === null) {
8917
- return null;
8918
- } // if the icon is an object and has a prefix and an icon name, return it
8919
-
8920
-
8921
- if (icon && _typeof(icon) === 'object' && icon.prefix && icon.iconName) {
8922
- return icon;
8923
- } // if it's an array with length of two
8924
-
8925
-
8926
- if (Array.isArray(icon) && icon.length === 2) {
8927
- // use the first item as prefix, second as icon name
8928
- return {
8929
- prefix: icon[0],
8930
- iconName: icon[1]
8931
- };
8932
- } // if it's a string, use it as the icon name
8933
-
8934
-
8935
- if (typeof icon === 'string') {
8936
- return {
8937
- prefix: 'fas',
8938
- iconName: icon
8939
- };
8940
- }
8941
- }
8942
-
8943
- // creates an object with a key of key
8944
- // and a value of value
8945
- // if certain conditions are met
8946
- function objectWithKey(key, value) {
8947
- // if the value is a non-empty array
8948
- // or it's not an array but it is truthy
8949
- // then create the object with the key and the value
8950
- // if not, return an empty array
8951
- return Array.isArray(value) && value.length > 0 || !Array.isArray(value) && value ? _defineProperty({}, key, value) : {};
8952
- }
8953
-
8954
- var defaultProps = {
8955
- border: false,
8956
- className: '',
8957
- mask: null,
8958
- maskId: null,
8959
- fixedWidth: false,
8960
- inverse: false,
8961
- flip: false,
8962
- icon: null,
8963
- listItem: false,
8964
- pull: null,
8965
- pulse: false,
8966
- rotation: null,
8967
- size: null,
8968
- spin: false,
8969
- spinPulse: false,
8970
- spinReverse: false,
8971
- beat: false,
8972
- fade: false,
8973
- beatFade: false,
8974
- bounce: false,
8975
- shake: false,
8976
- symbol: false,
8977
- title: '',
8978
- titleId: null,
8979
- transform: null,
8980
- swapOpacity: false
8981
- };
8982
- var FontAwesomeIcon = /*#__PURE__*/React__default.forwardRef(function (props, ref) {
8983
- var allProps = _objectSpread2(_objectSpread2({}, defaultProps), props);
8984
-
8985
- var iconArgs = allProps.icon,
8986
- maskArgs = allProps.mask,
8987
- symbol = allProps.symbol,
8988
- className = allProps.className,
8989
- title = allProps.title,
8990
- titleId = allProps.titleId,
8991
- maskId = allProps.maskId;
8992
- var iconLookup = normalizeIconArgs(iconArgs);
8993
- var classes = objectWithKey('classes', [].concat(_toConsumableArray(classList$1(allProps)), _toConsumableArray((className || '').split(' '))));
8994
- var transform = objectWithKey('transform', typeof allProps.transform === 'string' ? parse$1$1.transform(allProps.transform) : allProps.transform);
8995
- var mask = objectWithKey('mask', normalizeIconArgs(maskArgs));
8996
- var renderedIcon = icon(iconLookup, _objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2({}, classes), transform), mask), {}, {
8997
- symbol: symbol,
8998
- title: title,
8999
- titleId: titleId,
9000
- maskId: maskId
9001
- }));
9002
-
9003
- if (!renderedIcon) {
9004
- log$5('Could not find icon', iconLookup);
9005
- return null;
9006
- }
9007
-
9008
- var abstract = renderedIcon.abstract;
9009
- var extraProps = {
9010
- ref: ref
9011
- };
9012
- Object.keys(allProps).forEach(function (key) {
9013
- // eslint-disable-next-line no-prototype-builtins
9014
- if (!defaultProps.hasOwnProperty(key)) {
9015
- extraProps[key] = allProps[key];
9016
- }
9017
- });
9018
- return convertCurry(abstract[0], extraProps);
9019
- });
9020
- FontAwesomeIcon.displayName = 'FontAwesomeIcon';
9021
- FontAwesomeIcon.propTypes = {
9022
- beat: PropTypes.bool,
9023
- border: PropTypes.bool,
9024
- beatFade: PropTypes.bool,
9025
- bounce: PropTypes.bool,
9026
- className: PropTypes.string,
9027
- fade: PropTypes.bool,
9028
- flash: PropTypes.bool,
9029
- mask: PropTypes.oneOfType([PropTypes.object, PropTypes.array, PropTypes.string]),
9030
- maskId: PropTypes.string,
9031
- fixedWidth: PropTypes.bool,
9032
- inverse: PropTypes.bool,
9033
- flip: PropTypes.oneOf([true, false, 'horizontal', 'vertical', 'both']),
9034
- icon: PropTypes.oneOfType([PropTypes.object, PropTypes.array, PropTypes.string]),
9035
- listItem: PropTypes.bool,
9036
- pull: PropTypes.oneOf(['right', 'left']),
9037
- pulse: PropTypes.bool,
9038
- rotation: PropTypes.oneOf([0, 90, 180, 270]),
9039
- shake: PropTypes.bool,
9040
- size: PropTypes.oneOf(['2xs', 'xs', 'sm', 'lg', 'xl', '2xl', '1x', '2x', '3x', '4x', '5x', '6x', '7x', '8x', '9x', '10x']),
9041
- spin: PropTypes.bool,
9042
- spinPulse: PropTypes.bool,
9043
- spinReverse: PropTypes.bool,
9044
- symbol: PropTypes.oneOfType([PropTypes.bool, PropTypes.string]),
9045
- title: PropTypes.string,
9046
- titleId: PropTypes.string,
9047
- transform: PropTypes.oneOfType([PropTypes.string, PropTypes.object]),
9048
- swapOpacity: PropTypes.bool
9049
- };
9050
- var convertCurry = convert.bind(null, React__default.createElement);
9051
-
9052
5541
  const indicons = {
9053
5542
  'indico-o-white': (jsx("svg", { viewBox: "0 0 100 100", fill: "currentColor", children: jsx("path", { d: "M100 50c0 27.6-22.4 50-50 50S0 77.6 0 50 22.4 0 50 0s50 22.4 50 50zM50 19.4c-16.9 0-30.6 13.7-30.6 30.6S33.1 80.6 50 80.6 80.6 66.9 80.6 50 66.9 19.4 50 19.4zm0 21.7c-4.9 0-8.9 4-8.9 8.9s4 8.9 8.9 8.9 8.9-4 8.9-8.9-4-8.9-8.9-8.9z" }) })),
9054
5543
  account: (jsx("svg", { viewBox: "0 0 100 100", fill: "currentColor", children: jsx("path", { d: "M50 0C22.4 0 0 22.4 0 50s22.4 50 50 50 50-22.4 50-50S77.6 0 50 0zm0 8c23.2 0 42 18.8 42 42 0 9.9-3.4 19-9.2 26.2C75.6 65.8 63.6 59 50 59s-25.6 6.8-32.8 17.2C11.4 69 8 59.9 8 50 8 26.8 26.8 8 50 8zM22.9 82c5.7-9 15.7-15 27.1-15s21.4 6 27.1 15C69.8 88.2 60.3 92 50 92s-19.8-3.8-27.1-10zM50 56c11.6 0 21-9.4 21-21s-9.4-21-21-21-21 9.4-21 21 9.4 21 21 21zm0-34c7.2 0 13 5.8 13 13s-5.8 13-13 13-13-5.8-13-13 5.8-13 13-13z" }) })),
@@ -9212,18 +5701,18 @@ const Icon = (_a) => {
9212
5701
  const customIcon = indicons[name];
9213
5702
  const faIconName = name.split('fa-')[1];
9214
5703
  const faIcon = faIconName &&
9215
- findIconDefinition$1({
5704
+ findIconDefinition({
9216
5705
  prefix: 'fas',
9217
5706
  iconName: faIconName,
9218
5707
  });
9219
5708
  if (!faIcon && !customIcon) {
9220
- console.error(`Icon '${name}' not found`);
5709
+ console.error(`Icon '${name}' not found. Did you remember to register it? See the [Permafrost Icon Documentation](https://ds.indico-dev.indico.io/iframe.html?viewMode=docs&id=components-icon--icon#font-awesome-icons) for more.`);
9221
5710
  return null;
9222
5711
  }
9223
5712
  return faIcon ? (jsx(FontAwesomeIcon, Object.assign({ icon: faIcon, className: iconClasses, "aria-label": label }, props))) : (cloneElement(customIcon, Object.assign({ className: iconClasses, 'aria-label': label }, props)));
9224
5713
  };
9225
5714
 
9226
- var l;function r$1(e,t){return e[t]}function i(e=[],t,n=0){return [...e.slice(0,n),t,...e.slice(n)]}function s(e=[],t,n="id"){const o=e.slice(),a=r$1(t,n);return a?o.splice(o.findIndex((e=>r$1(e,n)===a)),1):o.splice(o.findIndex((e=>e===t)),1),o}function d(e){return e.map(((e,t)=>{const n=Object.assign(Object.assign({},e),{sortable:e.sortable||!!e.sortFunction||void 0});return e.id||(n.id=t+1),n}))}function c(e,t){return Math.ceil(e/t)}function g(e,t){return Math.min(e,t)}!function(e){e.ASC="asc",e.DESC="desc";}(l||(l={}));const u=()=>null;function p(e,t=[],n=[]){let o={},a=[...n];return t.length&&t.forEach((t=>{if(!t.when||"function"!=typeof t.when)throw new Error('"when" must be defined in the conditional style object and must be function');t.when(e)&&(o=t.style||{},t.classNames&&(a=[...a,...t.classNames]),"function"==typeof t.style&&(o=t.style(e)||{}));})),{conditionalStyle:o,classNames:a.join(" ")}}function b$1(e,t=[],n="id"){const o=r$1(e,n);return o?t.some((e=>r$1(e,n)===o)):t.some((t=>t===e))}function m(e,t){return t?e.findIndex((e=>h$1(e.id,t))):-1}function h$1(e,t){return e==t}function w$1(e,t){const n=!e.toggleOnSelectedRowsChange;switch(t.type){case"SELECT_ALL_ROWS":{const{keyField:n,rows:o,rowCount:a,mergeSelections:l}=t,r=!e.allSelected,i=!e.toggleOnSelectedRowsChange;if(l){const t=r?[...e.selectedRows,...o.filter((t=>!b$1(t,e.selectedRows,n)))]:e.selectedRows.filter((e=>!b$1(e,o,n)));return Object.assign(Object.assign({},e),{allSelected:r,selectedCount:t.length,selectedRows:t,toggleOnSelectedRowsChange:i})}return Object.assign(Object.assign({},e),{allSelected:r,selectedCount:r?a:0,selectedRows:r?o:[],toggleOnSelectedRowsChange:i})}case"SELECT_SINGLE_ROW":{const{keyField:o,row:a,isSelected:l,rowCount:r,singleSelect:d}=t;return d?l?Object.assign(Object.assign({},e),{selectedCount:0,allSelected:!1,selectedRows:[],toggleOnSelectedRowsChange:n}):Object.assign(Object.assign({},e),{selectedCount:1,allSelected:!1,selectedRows:[a],toggleOnSelectedRowsChange:n}):l?Object.assign(Object.assign({},e),{selectedCount:e.selectedRows.length>0?e.selectedRows.length-1:0,allSelected:!1,selectedRows:s(e.selectedRows,a,o),toggleOnSelectedRowsChange:n}):Object.assign(Object.assign({},e),{selectedCount:e.selectedRows.length+1,allSelected:e.selectedRows.length+1===r,selectedRows:i(e.selectedRows,a),toggleOnSelectedRowsChange:n})}case"SELECT_MULTIPLE_ROWS":{const{keyField:o,selectedRows:a,totalRows:l,mergeSelections:r}=t;if(r){const t=[...e.selectedRows,...a.filter((t=>!b$1(t,e.selectedRows,o)))];return Object.assign(Object.assign({},e),{selectedCount:t.length,allSelected:!1,selectedRows:t,toggleOnSelectedRowsChange:n})}return Object.assign(Object.assign({},e),{selectedCount:a.length,allSelected:a.length===l,selectedRows:a,toggleOnSelectedRowsChange:n})}case"CLEAR_SELECTED_ROWS":{const{selectedRowsFlag:n}=t;return Object.assign(Object.assign({},e),{allSelected:!1,selectedCount:0,selectedRows:[],selectedRowsFlag:n})}case"SORT_CHANGE":{const{sortDirection:o,selectedColumn:a,clearSelectedOnSort:l}=t;return Object.assign(Object.assign(Object.assign({},e),{selectedColumn:a,sortDirection:o,currentPage:1}),l&&{allSelected:!1,selectedCount:0,selectedRows:[],toggleOnSelectedRowsChange:n})}case"CHANGE_PAGE":{const{page:o,paginationServer:a,visibleOnly:l,persistSelectedOnPageChange:r}=t,i=a&&r,s=a&&!r||l;return Object.assign(Object.assign(Object.assign(Object.assign({},e),{currentPage:o}),i&&{allSelected:!1}),s&&{allSelected:!1,selectedCount:0,selectedRows:[],toggleOnSelectedRowsChange:n})}case"CHANGE_ROWS_PER_PAGE":{const{rowsPerPage:n,page:o}=t;return Object.assign(Object.assign({},e),{currentPage:o,rowsPerPage:n})}}}const f=css$1`
5715
+ var l;function r$1(e,t){return e[t]}function i(e=[],t,n=0){return [...e.slice(0,n),t,...e.slice(n)]}function s(e=[],t,n="id"){const o=e.slice(),a=r$1(t,n);return a?o.splice(o.findIndex((e=>r$1(e,n)===a)),1):o.splice(o.findIndex((e=>e===t)),1),o}function d(e){return e.map(((e,t)=>{const n=Object.assign(Object.assign({},e),{sortable:e.sortable||!!e.sortFunction||void 0});return e.id||(n.id=t+1),n}))}function c(e,t){return Math.ceil(e/t)}function g(e,t){return Math.min(e,t)}!function(e){e.ASC="asc",e.DESC="desc";}(l||(l={}));const u=()=>null;function p(e,t=[],n=[]){let o={},a=[...n];return t.length&&t.forEach((t=>{if(!t.when||"function"!=typeof t.when)throw new Error('"when" must be defined in the conditional style object and must be function');t.when(e)&&(o=t.style||{},t.classNames&&(a=[...a,...t.classNames]),"function"==typeof t.style&&(o=t.style(e)||{}));})),{conditionalStyle:o,classNames:a.join(" ")}}function b$1(e,t=[],n="id"){const o=r$1(e,n);return o?t.some((e=>r$1(e,n)===o)):t.some((t=>t===e))}function m(e,t){return t?e.findIndex((e=>h$1(e.id,t))):-1}function h$1(e,t){return e==t}function w$1(e,t){const n=!e.toggleOnSelectedRowsChange;switch(t.type){case"SELECT_ALL_ROWS":{const{keyField:n,rows:o,rowCount:a,mergeSelections:l}=t,r=!e.allSelected,i=!e.toggleOnSelectedRowsChange;if(l){const t=r?[...e.selectedRows,...o.filter((t=>!b$1(t,e.selectedRows,n)))]:e.selectedRows.filter((e=>!b$1(e,o,n)));return Object.assign(Object.assign({},e),{allSelected:r,selectedCount:t.length,selectedRows:t,toggleOnSelectedRowsChange:i})}return Object.assign(Object.assign({},e),{allSelected:r,selectedCount:r?a:0,selectedRows:r?o:[],toggleOnSelectedRowsChange:i})}case"SELECT_SINGLE_ROW":{const{keyField:o,row:a,isSelected:l,rowCount:r,singleSelect:d}=t;return d?l?Object.assign(Object.assign({},e),{selectedCount:0,allSelected:!1,selectedRows:[],toggleOnSelectedRowsChange:n}):Object.assign(Object.assign({},e),{selectedCount:1,allSelected:!1,selectedRows:[a],toggleOnSelectedRowsChange:n}):l?Object.assign(Object.assign({},e),{selectedCount:e.selectedRows.length>0?e.selectedRows.length-1:0,allSelected:!1,selectedRows:s(e.selectedRows,a,o),toggleOnSelectedRowsChange:n}):Object.assign(Object.assign({},e),{selectedCount:e.selectedRows.length+1,allSelected:e.selectedRows.length+1===r,selectedRows:i(e.selectedRows,a),toggleOnSelectedRowsChange:n})}case"SELECT_MULTIPLE_ROWS":{const{keyField:o,selectedRows:a,totalRows:l,mergeSelections:r}=t;if(r){const t=[...e.selectedRows,...a.filter((t=>!b$1(t,e.selectedRows,o)))];return Object.assign(Object.assign({},e),{selectedCount:t.length,allSelected:!1,selectedRows:t,toggleOnSelectedRowsChange:n})}return Object.assign(Object.assign({},e),{selectedCount:a.length,allSelected:a.length===l,selectedRows:a,toggleOnSelectedRowsChange:n})}case"CLEAR_SELECTED_ROWS":{const{selectedRowsFlag:n}=t;return Object.assign(Object.assign({},e),{allSelected:!1,selectedCount:0,selectedRows:[],selectedRowsFlag:n})}case"SORT_CHANGE":{const{sortDirection:o,selectedColumn:a,clearSelectedOnSort:l}=t;return Object.assign(Object.assign(Object.assign({},e),{selectedColumn:a,sortDirection:o,currentPage:1}),l&&{allSelected:!1,selectedCount:0,selectedRows:[],toggleOnSelectedRowsChange:n})}case"CHANGE_PAGE":{const{page:o,paginationServer:a,visibleOnly:l,persistSelectedOnPageChange:r}=t,i=a&&r,s=a&&!r||l;return Object.assign(Object.assign(Object.assign(Object.assign({},e),{currentPage:o}),i&&{allSelected:!1}),s&&{allSelected:!1,selectedCount:0,selectedRows:[],toggleOnSelectedRowsChange:n})}case"CHANGE_ROWS_PER_PAGE":{const{rowsPerPage:n,page:o}=t;return Object.assign(Object.assign({},e),{currentPage:o,rowsPerPage:n})}}}const f=css`
9227
5716
  pointer-events: none;
9228
5717
  opacity: 0.4;
9229
5718
  `,x$1=styled.div`
@@ -9236,7 +5725,7 @@ var l;function r$1(e,t){return e[t]}function i(e=[],t,n=0){return [...e.slice(0,
9236
5725
  max-width: 100%;
9237
5726
  ${({disabled:e})=>e&&f};
9238
5727
  ${({theme:e})=>e.table.style};
9239
- `,C$1=css$1`
5728
+ `,C$1=css`
9240
5729
  position: sticky;
9241
5730
  position: -webkit-sticky; /* Safari */
9242
5731
  top: 0;
@@ -9252,21 +5741,21 @@ var l;function r$1(e,t){return e[t]}function i(e=[],t,n=0){return [...e.slice(0,
9252
5741
  width: 100%;
9253
5742
  ${({theme:e})=>e.headRow.style};
9254
5743
  ${({$dense:e,theme:t})=>e&&t.headRow.denseStyle};
9255
- `,v=(e,...t)=>css$1`
5744
+ `,v=(e,...t)=>css`
9256
5745
  @media screen and (max-width: ${599}px) {
9257
- ${css$1(e,...t)}
5746
+ ${css(e,...t)}
9258
5747
  }
9259
- `,S$1=(e,...t)=>css$1`
5748
+ `,S$1=(e,...t)=>css`
9260
5749
  @media screen and (max-width: ${959}px) {
9261
- ${css$1(e,...t)}
5750
+ ${css(e,...t)}
9262
5751
  }
9263
- `,E$1=(e,...t)=>css$1`
5752
+ `,E$1=(e,...t)=>css`
9264
5753
  @media screen and (max-width: ${1280}px) {
9265
- ${css$1(e,...t)}
5754
+ ${css(e,...t)}
9266
5755
  }
9267
- `,O$1=e=>(t,...n)=>css$1`
5756
+ `,O$1=e=>(t,...n)=>css`
9268
5757
  @media screen and (max-width: ${e}px) {
9269
- ${css$1(t,...n)}
5758
+ ${css(t,...n)}
9270
5759
  }
9271
5760
  `,$=styled.div`
9272
5761
  position: relative;
@@ -9282,7 +5771,7 @@ var l;function r$1(e,t){return e[t]}function i(e=[],t,n=0){return [...e.slice(0,
9282
5771
  flex-basis: 0;
9283
5772
  max-width: ${({maxWidth:e})=>e||"100%"};
9284
5773
  min-width: ${({minWidth:e})=>e||"100px"};
9285
- ${({width:e})=>e&&css$1`
5774
+ ${({width:e})=>e&&css`
9286
5775
  min-width: ${e};
9287
5776
  max-width: ${e};
9288
5777
  `};
@@ -9303,7 +5792,7 @@ var l;function r$1(e,t){return e[t]}function i(e=[],t,n=0){return [...e.slice(0,
9303
5792
  ${({hide:e})=>e&&Number.isInteger(e)&&O$1(e)`
9304
5793
  display: none;
9305
5794
  `};
9306
- `,P=css$1`
5795
+ `,P=css`
9307
5796
  div:first-child {
9308
5797
  white-space: ${({$wrapCell:e})=>e?"normal":"nowrap"};
9309
5798
  overflow: ${({$allowOverflow:e})=>e?"visible":"hidden"};
@@ -9338,11 +5827,11 @@ var l;function r$1(e,t){return e[t]}function i(e=[],t,n=0){return [...e.slice(0,
9338
5827
  box-sizing: border-box;
9339
5828
  ${({theme:e})=>e.expanderRow.style};
9340
5829
  ${({$extendedRowStyle:e})=>e};
9341
- `;var z$1=React.memo((function({data:t,ExpanderComponent:n,expanderComponentProps:o,extendedRowStyle:a,extendedClassNames:l}){const r=["rdt_ExpanderRow",...l.split(" ").filter((e=>"rdt_TableRow"!==e))].join(" ");return React.createElement(N$1,{className:r,$extendedRowStyle:a},React.createElement(n,Object.assign({data:t},o)))}));const W="allowRowEvents";var B$1,G,V;!function(e){e.LTR="ltr",e.RTL="rtl",e.AUTO="auto";}(B$1||(B$1={})),function(e){e.LEFT="left",e.RIGHT="right",e.CENTER="center";}(G||(G={})),function(e){e.SM="sm",e.MD="md",e.LG="lg";}(V||(V={}));const U=css$1`
5830
+ `;var z$1=React.memo((function({data:t,ExpanderComponent:n,expanderComponentProps:o,extendedRowStyle:a,extendedClassNames:l}){const r=["rdt_ExpanderRow",...l.split(" ").filter((e=>"rdt_TableRow"!==e))].join(" ");return React.createElement(N$1,{className:r,$extendedRowStyle:a},React.createElement(n,Object.assign({data:t},o)))}));const W="allowRowEvents";var B$1,G,V;!function(e){e.LTR="ltr",e.RTL="rtl",e.AUTO="auto";}(B$1||(B$1={})),function(e){e.LEFT="left",e.RIGHT="right",e.CENTER="center";}(G||(G={})),function(e){e.SM="sm",e.MD="md",e.LG="lg";}(V||(V={}));const U=css`
9342
5831
  &:hover {
9343
5832
  ${({$highlightOnHover:e,theme:t})=>e&&t.rows.highlightOnHoverStyle};
9344
5833
  }
9345
- `,Y=css$1`
5834
+ `,Y=css`
9346
5835
  &:hover {
9347
5836
  cursor: pointer;
9348
5837
  }
@@ -9369,7 +5858,7 @@ var l;function r$1(e,t){return e[t]}function i(e=[],t,n=0){return [...e.slice(0,
9369
5858
  `,Q=({sortActive:e,sortDirection:n})=>React__default.createElement(J,{$sortActive:e,$sortDirection:n},"▲"),X=styled(k$1)`
9370
5859
  ${({button:e})=>e&&"text-align: center"};
9371
5860
  ${({theme:e,$isDragging:t})=>t&&e.headCells.draggingStyle};
9372
- `,Z=css$1`
5861
+ `,Z=css`
9373
5862
  cursor: pointer;
9374
5863
  span.__rdt_custom_sort_icon__ {
9375
5864
  i,
@@ -9392,7 +5881,7 @@ var l;function r$1(e,t){return e[t]}function i(e=[],t,n=0){return [...e.slice(0,
9392
5881
  }
9393
5882
  }
9394
5883
 
9395
- ${({$sortActive:e})=>!e&&css$1`
5884
+ ${({$sortActive:e})=>!e&&css`
9396
5885
  &:hover,
9397
5886
  &:focus {
9398
5887
  opacity: 0.7;
@@ -9494,7 +5983,7 @@ var l;function r$1(e,t){return e[t]}function i(e=[],t,n=0){return [...e.slice(0,
9494
5983
  position: relative;
9495
5984
  width: 100%;
9496
5985
  border-radius: inherit;
9497
- ${({$responsive:e,$fixedHeader:t})=>e&&css$1`
5986
+ ${({$responsive:e,$fixedHeader:t})=>e&&css`
9498
5987
  overflow-x: auto;
9499
5988
 
9500
5989
  // hidden prevents vertical scrolling in firefox when fixedHeader is disabled
@@ -9502,7 +5991,7 @@ var l;function r$1(e,t){return e[t]}function i(e=[],t,n=0){return [...e.slice(0,
9502
5991
  min-height: 0;
9503
5992
  `};
9504
5993
 
9505
- ${({$fixedHeader:e=!1,$fixedHeaderScrollHeight:t="100vh"})=>e&&css$1`
5994
+ ${({$fixedHeader:e=!1,$fixedHeaderScrollHeight:t="100vh"})=>e&&css`
9506
5995
  max-height: ${t};
9507
5996
  -webkit-overflow-scrolling: touch;
9508
5997
  `};
@@ -11886,33 +8375,33 @@ function YearsDropdown(props) {
11886
8375
  }
11887
8376
 
11888
8377
  var components = /*#__PURE__*/Object.freeze({
11889
- __proto__: null,
11890
- Button: Button$1,
11891
- CaptionLabel: CaptionLabel,
11892
- Chevron: Chevron,
11893
- Day: Day,
11894
- DayButton: DayButton,
11895
- Dropdown: Dropdown,
11896
- DropdownNav: DropdownNav,
11897
- Footer: Footer,
11898
- Month: Month,
11899
- MonthCaption: MonthCaption,
11900
- MonthGrid: MonthGrid,
11901
- Months: Months,
11902
- MonthsDropdown: MonthsDropdown,
11903
- Nav: Nav,
11904
- NextMonthButton: NextMonthButton,
11905
- Option: Option,
11906
- PreviousMonthButton: PreviousMonthButton,
11907
- Root: Root,
11908
- Select: Select$1,
11909
- Week: Week,
11910
- WeekNumber: WeekNumber,
11911
- WeekNumberHeader: WeekNumberHeader,
11912
- Weekday: Weekday,
11913
- Weekdays: Weekdays,
11914
- Weeks: Weeks,
11915
- YearsDropdown: YearsDropdown
8378
+ __proto__: null,
8379
+ Button: Button$1,
8380
+ CaptionLabel: CaptionLabel,
8381
+ Chevron: Chevron,
8382
+ Day: Day,
8383
+ DayButton: DayButton,
8384
+ Dropdown: Dropdown,
8385
+ DropdownNav: DropdownNav,
8386
+ Footer: Footer,
8387
+ Month: Month,
8388
+ MonthCaption: MonthCaption,
8389
+ MonthGrid: MonthGrid,
8390
+ Months: Months,
8391
+ MonthsDropdown: MonthsDropdown,
8392
+ Nav: Nav,
8393
+ NextMonthButton: NextMonthButton,
8394
+ Option: Option,
8395
+ PreviousMonthButton: PreviousMonthButton,
8396
+ Root: Root,
8397
+ Select: Select$1,
8398
+ Week: Week,
8399
+ WeekNumber: WeekNumber,
8400
+ WeekNumberHeader: WeekNumberHeader,
8401
+ Weekday: Weekday,
8402
+ Weekdays: Weekdays,
8403
+ Weeks: Weeks,
8404
+ YearsDropdown: YearsDropdown
11916
8405
  });
11917
8406
 
11918
8407
  function getComponents(customComponents) {
@@ -15971,16 +12460,16 @@ function formatYearDropdown(year) {
15971
12460
  const formatYearCaption = formatYearDropdown;
15972
12461
 
15973
12462
  var defaultFormatters = /*#__PURE__*/Object.freeze({
15974
- __proto__: null,
15975
- formatCaption: formatCaption,
15976
- formatDay: formatDay,
15977
- formatMonthCaption: formatMonthCaption,
15978
- formatMonthDropdown: formatMonthDropdown,
15979
- formatWeekNumber: formatWeekNumber,
15980
- formatWeekNumberHeader: formatWeekNumberHeader,
15981
- formatWeekdayName: formatWeekdayName,
15982
- formatYearCaption: formatYearCaption,
15983
- formatYearDropdown: formatYearDropdown
12463
+ __proto__: null,
12464
+ formatCaption: formatCaption,
12465
+ formatDay: formatDay,
12466
+ formatMonthCaption: formatMonthCaption,
12467
+ formatMonthDropdown: formatMonthDropdown,
12468
+ formatWeekNumber: formatWeekNumber,
12469
+ formatWeekNumberHeader: formatWeekNumberHeader,
12470
+ formatWeekdayName: formatWeekdayName,
12471
+ formatYearCaption: formatYearCaption,
12472
+ formatYearDropdown: formatYearDropdown
15984
12473
  });
15985
12474
 
15986
12475
  /** Return the formatters from the props merged with the default formatters. */
@@ -16257,20 +12746,20 @@ function labelYearDropdown(options) {
16257
12746
  }
16258
12747
 
16259
12748
  var defaultLabels = /*#__PURE__*/Object.freeze({
16260
- __proto__: null,
16261
- labelCaption: labelCaption,
16262
- labelDay: labelDay,
16263
- labelDayButton: labelDayButton,
16264
- labelGrid: labelGrid,
16265
- labelGridcell: labelGridcell,
16266
- labelMonthDropdown: labelMonthDropdown,
16267
- labelNav: labelNav,
16268
- labelNext: labelNext,
16269
- labelPrevious: labelPrevious,
16270
- labelWeekNumber: labelWeekNumber,
16271
- labelWeekNumberHeader: labelWeekNumberHeader,
16272
- labelWeekday: labelWeekday,
16273
- labelYearDropdown: labelYearDropdown
12749
+ __proto__: null,
12750
+ labelCaption: labelCaption,
12751
+ labelDay: labelDay,
12752
+ labelDayButton: labelDayButton,
12753
+ labelGrid: labelGrid,
12754
+ labelGridcell: labelGridcell,
12755
+ labelMonthDropdown: labelMonthDropdown,
12756
+ labelNav: labelNav,
12757
+ labelNext: labelNext,
12758
+ labelPrevious: labelPrevious,
12759
+ labelWeekNumber: labelWeekNumber,
12760
+ labelWeekNumberHeader: labelWeekNumberHeader,
12761
+ labelWeekday: labelWeekday,
12762
+ labelYearDropdown: labelYearDropdown
16274
12763
  });
16275
12764
 
16276
12765
  /** The number of days in a month when having 6 weeks. */
@@ -23259,7 +19748,7 @@ const addCustomProps = (Component, customProps) => (props) => {
23259
19748
  return (jsx(Component, Object.assign({}, props, { innerProps: Object.assign({}, props.innerProps, Object.assign({}, customProps)) })));
23260
19749
  };
23261
19750
 
23262
- const basicDefaults$1 = css$1 `
19751
+ const basicDefaults$1 = css `
23263
19752
  font-size: ${typography.fontSize.subheadSmall};
23264
19753
  color: ${allColors.lightFontColor};
23265
19754
 
@@ -23635,12 +20124,12 @@ function hexToHsl(hexColor) {
23635
20124
  }
23636
20125
 
23637
20126
  var color = /*#__PURE__*/Object.freeze({
23638
- __proto__: null,
23639
- hexToHsl: hexToHsl,
23640
- hexToRgb: hexToRgb,
23641
- mix: mix,
23642
- shade: shade,
23643
- tint: tint
20127
+ __proto__: null,
20128
+ hexToHsl: hexToHsl,
20129
+ hexToRgb: hexToRgb,
20130
+ mix: mix,
20131
+ shade: shade,
20132
+ tint: tint
23644
20133
  });
23645
20134
 
23646
20135
  const camelCaseToUpperUnderscore = (string) => {
@@ -23718,16 +20207,16 @@ const maxLengthWithMiddleEllipsis = (string, maxLength) => {
23718
20207
  };
23719
20208
 
23720
20209
  var string = /*#__PURE__*/Object.freeze({
23721
- __proto__: null,
23722
- camelCaseToSpaceUpper: camelCaseToSpaceUpper,
23723
- camelCaseToUpperUnderscore: camelCaseToUpperUnderscore,
23724
- capitalize: capitalize,
23725
- capitalizeFirstOnly: capitalizeFirstOnly,
23726
- createRandomString: createRandomString,
23727
- maxLengthWithEllipse: maxLengthWithEllipse,
23728
- maxLengthWithMiddleEllipsis: maxLengthWithMiddleEllipsis,
23729
- snakeCaseToCamelCase: snakeCaseToCamelCase,
23730
- underscoreToCapitalize: underscoreToCapitalize
20210
+ __proto__: null,
20211
+ camelCaseToSpaceUpper: camelCaseToSpaceUpper,
20212
+ camelCaseToUpperUnderscore: camelCaseToUpperUnderscore,
20213
+ capitalize: capitalize,
20214
+ capitalizeFirstOnly: capitalizeFirstOnly,
20215
+ createRandomString: createRandomString,
20216
+ maxLengthWithEllipse: maxLengthWithEllipse,
20217
+ maxLengthWithMiddleEllipsis: maxLengthWithMiddleEllipsis,
20218
+ snakeCaseToCamelCase: snakeCaseToCamelCase,
20219
+ underscoreToCapitalize: underscoreToCapitalize
23731
20220
  });
23732
20221
 
23733
20222
  /**
@@ -23759,10 +20248,10 @@ function formatConfidence(confidence) {
23759
20248
  }
23760
20249
 
23761
20250
  var number = /*#__PURE__*/Object.freeze({
23762
- __proto__: null,
23763
- formatConfidence: formatConfidence,
23764
- maxDecimalPlaces: maxDecimalPlaces,
23765
- numberWithCommas: numberWithCommas
20251
+ __proto__: null,
20252
+ formatConfidence: formatConfidence,
20253
+ maxDecimalPlaces: maxDecimalPlaces,
20254
+ numberWithCommas: numberWithCommas
23766
20255
  });
23767
20256
 
23768
20257
  const cardTableLoading = keyframes `
@@ -26886,7 +23375,7 @@ function $701a24aa0da5b062$export$ea18c227d4417cc3(props, ref) {
26886
23375
  // TODO: This file's migration was fast-tracked for Insights. Assess for potential refactor and documentation.
26887
23376
  const defaultHeight = '36px';
26888
23377
  const largeHeight = '50px';
26889
- const basicDefaults = css$1 `
23378
+ const basicDefaults = css `
26890
23379
  border: 0;
26891
23380
  display: inline-block;
26892
23381
  cursor: pointer;
@@ -26912,7 +23401,7 @@ const basicDefaults = css$1 `
26912
23401
  transition-duration: ${animation.duration};
26913
23402
  transition-timing-function: ${animation.timing};
26914
23403
  `;
26915
- const defaults = css$1 `
23404
+ const defaults = css `
26916
23405
  ${basicDefaults};
26917
23406
 
26918
23407
  height: ${defaultHeight};
@@ -26921,11 +23410,11 @@ const defaults = css$1 `
26921
23410
 
26922
23411
  padding: 0 1em !important;
26923
23412
  `;
26924
- const sizeLarge = css$1 `
23413
+ const sizeLarge = css `
26925
23414
  height: ${largeHeight};
26926
23415
  font-size: ${typography.fontSize.subheadLarge};
26927
23416
  `;
26928
- const variantDefault = css$1 `
23417
+ const variantDefault = css `
26929
23418
  color: ${allColors.darkFontColor};
26930
23419
  background-color: ${allColors.iron};
26931
23420
 
@@ -26933,7 +23422,7 @@ const variantDefault = css$1 `
26933
23422
  background-color: #bebebe;
26934
23423
  }
26935
23424
  `;
26936
- const variantPrimary = css$1 `
23425
+ const variantPrimary = css `
26937
23426
  background-color: ${allColors.curiousBlue};
26938
23427
  color: ${allColors.white};
26939
23428
 
@@ -26946,7 +23435,7 @@ const variantPrimary = css$1 `
26946
23435
  }
26947
23436
  }
26948
23437
  `;
26949
- const variantDestructive = css$1 `
23438
+ const variantDestructive = css `
26950
23439
  background-color: ${allColors.red};
26951
23440
  color: ${allColors.white};
26952
23441
 
@@ -26956,7 +23445,7 @@ const variantDestructive = css$1 `
26956
23445
  }
26957
23446
  `;
26958
23447
  // todo: remove once globals no longer need to be overridden
26959
- const disabledOverrides = css$1 `
23448
+ const disabledOverrides = css `
26960
23449
  &:disabled,
26961
23450
  &.disabled {
26962
23451
  &:hover {
@@ -26977,7 +23466,7 @@ const disabledOverrides = css$1 `
26977
23466
  `;
26978
23467
 
26979
23468
  const iconMargin = '0.5em';
26980
- const iconButton = css$1 `
23469
+ const iconButton = css `
26981
23470
  align-items: center;
26982
23471
 
26983
23472
  ${defaults};
@@ -27180,7 +23669,7 @@ function EditableInput(props) {
27180
23669
  return (jsxs(StyledEditableInput, { className: classNames('EditableInput-container', id, className), "data-cy": props['data-cy'], id: props.id, children: [jsx("span", { role: "textbox", tabIndex: 0, contentEditable: true, suppressContentEditableWarning: true, ref: editableEl, onKeyDown: handleKeypress, onBlur: handleBlur, children: children }), jsx(Icon, { name: "fa-pencil-alt", className: "pencil-icon" })] }));
27181
23670
  }
27182
23671
 
27183
- const inputCommon = css$1 `
23672
+ const inputCommon = css `
27184
23673
  background-color: transparent;
27185
23674
  border-radius: 0;
27186
23675
  border: 0 solid currentColor;
@@ -27209,11 +23698,11 @@ const inputCommon = css$1 `
27209
23698
  }
27210
23699
  }
27211
23700
  `;
27212
- const labelCommon = css$1 `
23701
+ const labelCommon = css `
27213
23702
  font-size: ${typography.fontSize.base};
27214
23703
  font-weight: bold;
27215
23704
  `;
27216
- const inputInfoCommon = css$1 `
23705
+ const inputInfoCommon = css `
27217
23706
  margin-top: 13px;
27218
23707
  font-size: ${typography.fontSize.subheadSmall};
27219
23708
 
@@ -27225,7 +23714,7 @@ const inputInfoCommon = css$1 `
27225
23714
  color: ${allColors.red};
27226
23715
  }
27227
23716
  `;
27228
- const placeholderCommon = css$1 `
23717
+ const placeholderCommon = css `
27229
23718
  &::placeholder {
27230
23719
  opacity: 0.42;
27231
23720
  }
@@ -30226,8 +26715,8 @@ function polyfill(Component) {
30226
26715
  }
30227
26716
 
30228
26717
  var reactLifecyclesCompat_es = /*#__PURE__*/Object.freeze({
30229
- __proto__: null,
30230
- polyfill: polyfill
26718
+ __proto__: null,
26719
+ polyfill: polyfill
30231
26720
  });
30232
26721
 
30233
26722
  var require$$6 = /*@__PURE__*/getAugmentedNamespace(reactLifecyclesCompat_es);