@process.co/ui 0.0.20 → 0.0.22

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.
@@ -2,6 +2,7 @@
2
2
 
3
3
  var React3 = require('react');
4
4
  var jsxRuntime = require('react/jsx-runtime');
5
+ require('react-dom');
5
6
 
6
7
  function _interopNamespace(e) {
7
8
  if (e && e.__esModule) return e;
@@ -23,6 +24,1047 @@ function _interopNamespace(e) {
23
24
 
24
25
  var React3__namespace = /*#__PURE__*/_interopNamespace(React3);
25
26
 
27
+ var __create = Object.create;
28
+ var __defProp = Object.defineProperty;
29
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
30
+ var __getOwnPropNames = Object.getOwnPropertyNames;
31
+ var __getProtoOf = Object.getPrototypeOf;
32
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
33
+ var __commonJS = (cb, mod) => function __require() {
34
+ return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
35
+ };
36
+ var __copyProps = (to, from, except, desc) => {
37
+ if (from && typeof from === "object" || typeof from === "function") {
38
+ for (let key of __getOwnPropNames(from))
39
+ if (!__hasOwnProp.call(to, key) && key !== except)
40
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
41
+ }
42
+ return to;
43
+ };
44
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
45
+ // If the importer is in node compatibility mode or this is not an ESM
46
+ // file that has been converted to a CommonJS file using a Babel-
47
+ // compatible transform (i.e. "__esModule" has not been set), then set
48
+ // "default" to the CommonJS "module.exports" for node compatibility.
49
+ !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
50
+ mod
51
+ ));
52
+
53
+ // ../../node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/cjs/react-is.production.min.js
54
+ var require_react_is_production_min = __commonJS({
55
+ "../../node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/cjs/react-is.production.min.js"(exports$1) {
56
+ var b = "function" === typeof Symbol && Symbol.for;
57
+ var c = b ? Symbol.for("react.element") : 60103;
58
+ var d = b ? Symbol.for("react.portal") : 60106;
59
+ var e = b ? Symbol.for("react.fragment") : 60107;
60
+ var f = b ? Symbol.for("react.strict_mode") : 60108;
61
+ var g2 = b ? Symbol.for("react.profiler") : 60114;
62
+ var h = b ? Symbol.for("react.provider") : 60109;
63
+ var k = b ? Symbol.for("react.context") : 60110;
64
+ var l = b ? Symbol.for("react.async_mode") : 60111;
65
+ var m = b ? Symbol.for("react.concurrent_mode") : 60111;
66
+ var n = b ? Symbol.for("react.forward_ref") : 60112;
67
+ var p2 = b ? Symbol.for("react.suspense") : 60113;
68
+ var q = b ? Symbol.for("react.suspense_list") : 60120;
69
+ var r3 = b ? Symbol.for("react.memo") : 60115;
70
+ var t2 = b ? Symbol.for("react.lazy") : 60116;
71
+ var v = b ? Symbol.for("react.block") : 60121;
72
+ var w2 = b ? Symbol.for("react.fundamental") : 60117;
73
+ var x2 = b ? Symbol.for("react.responder") : 60118;
74
+ var y = b ? Symbol.for("react.scope") : 60119;
75
+ function z(a) {
76
+ if ("object" === typeof a && null !== a) {
77
+ var u = a.$$typeof;
78
+ switch (u) {
79
+ case c:
80
+ switch (a = a.type, a) {
81
+ case l:
82
+ case m:
83
+ case e:
84
+ case g2:
85
+ case f:
86
+ case p2:
87
+ return a;
88
+ default:
89
+ switch (a = a && a.$$typeof, a) {
90
+ case k:
91
+ case n:
92
+ case t2:
93
+ case r3:
94
+ case h:
95
+ return a;
96
+ default:
97
+ return u;
98
+ }
99
+ }
100
+ case d:
101
+ return u;
102
+ }
103
+ }
104
+ }
105
+ function A2(a) {
106
+ return z(a) === m;
107
+ }
108
+ exports$1.AsyncMode = l;
109
+ exports$1.ConcurrentMode = m;
110
+ exports$1.ContextConsumer = k;
111
+ exports$1.ContextProvider = h;
112
+ exports$1.Element = c;
113
+ exports$1.ForwardRef = n;
114
+ exports$1.Fragment = e;
115
+ exports$1.Lazy = t2;
116
+ exports$1.Memo = r3;
117
+ exports$1.Portal = d;
118
+ exports$1.Profiler = g2;
119
+ exports$1.StrictMode = f;
120
+ exports$1.Suspense = p2;
121
+ exports$1.isAsyncMode = function(a) {
122
+ return A2(a) || z(a) === l;
123
+ };
124
+ exports$1.isConcurrentMode = A2;
125
+ exports$1.isContextConsumer = function(a) {
126
+ return z(a) === k;
127
+ };
128
+ exports$1.isContextProvider = function(a) {
129
+ return z(a) === h;
130
+ };
131
+ exports$1.isElement = function(a) {
132
+ return "object" === typeof a && null !== a && a.$$typeof === c;
133
+ };
134
+ exports$1.isForwardRef = function(a) {
135
+ return z(a) === n;
136
+ };
137
+ exports$1.isFragment = function(a) {
138
+ return z(a) === e;
139
+ };
140
+ exports$1.isLazy = function(a) {
141
+ return z(a) === t2;
142
+ };
143
+ exports$1.isMemo = function(a) {
144
+ return z(a) === r3;
145
+ };
146
+ exports$1.isPortal = function(a) {
147
+ return z(a) === d;
148
+ };
149
+ exports$1.isProfiler = function(a) {
150
+ return z(a) === g2;
151
+ };
152
+ exports$1.isStrictMode = function(a) {
153
+ return z(a) === f;
154
+ };
155
+ exports$1.isSuspense = function(a) {
156
+ return z(a) === p2;
157
+ };
158
+ exports$1.isValidElementType = function(a) {
159
+ return "string" === typeof a || "function" === typeof a || a === e || a === m || a === g2 || a === f || a === p2 || a === q || "object" === typeof a && null !== a && (a.$$typeof === t2 || a.$$typeof === r3 || a.$$typeof === h || a.$$typeof === k || a.$$typeof === n || a.$$typeof === w2 || a.$$typeof === x2 || a.$$typeof === y || a.$$typeof === v);
160
+ };
161
+ exports$1.typeOf = z;
162
+ }
163
+ });
164
+
165
+ // ../../node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/cjs/react-is.development.js
166
+ var require_react_is_development = __commonJS({
167
+ "../../node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/cjs/react-is.development.js"(exports$1) {
168
+ if (process.env.NODE_ENV !== "production") {
169
+ (function() {
170
+ var hasSymbol = typeof Symbol === "function" && Symbol.for;
171
+ var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for("react.element") : 60103;
172
+ var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for("react.portal") : 60106;
173
+ var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for("react.fragment") : 60107;
174
+ var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for("react.strict_mode") : 60108;
175
+ var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for("react.profiler") : 60114;
176
+ var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for("react.provider") : 60109;
177
+ var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for("react.context") : 60110;
178
+ var REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for("react.async_mode") : 60111;
179
+ var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for("react.concurrent_mode") : 60111;
180
+ var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for("react.forward_ref") : 60112;
181
+ var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for("react.suspense") : 60113;
182
+ var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for("react.suspense_list") : 60120;
183
+ var REACT_MEMO_TYPE = hasSymbol ? Symbol.for("react.memo") : 60115;
184
+ var REACT_LAZY_TYPE2 = hasSymbol ? Symbol.for("react.lazy") : 60116;
185
+ var REACT_BLOCK_TYPE = hasSymbol ? Symbol.for("react.block") : 60121;
186
+ var REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for("react.fundamental") : 60117;
187
+ var REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for("react.responder") : 60118;
188
+ var REACT_SCOPE_TYPE = hasSymbol ? Symbol.for("react.scope") : 60119;
189
+ function isValidElementType(type) {
190
+ return typeof type === "string" || typeof type === "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
191
+ type === REACT_FRAGMENT_TYPE || type === REACT_CONCURRENT_MODE_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || typeof type === "object" && type !== null && (type.$$typeof === REACT_LAZY_TYPE2 || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_FUNDAMENTAL_TYPE || type.$$typeof === REACT_RESPONDER_TYPE || type.$$typeof === REACT_SCOPE_TYPE || type.$$typeof === REACT_BLOCK_TYPE);
192
+ }
193
+ function typeOf(object) {
194
+ if (typeof object === "object" && object !== null) {
195
+ var $$typeof = object.$$typeof;
196
+ switch ($$typeof) {
197
+ case REACT_ELEMENT_TYPE:
198
+ var type = object.type;
199
+ switch (type) {
200
+ case REACT_ASYNC_MODE_TYPE:
201
+ case REACT_CONCURRENT_MODE_TYPE:
202
+ case REACT_FRAGMENT_TYPE:
203
+ case REACT_PROFILER_TYPE:
204
+ case REACT_STRICT_MODE_TYPE:
205
+ case REACT_SUSPENSE_TYPE:
206
+ return type;
207
+ default:
208
+ var $$typeofType = type && type.$$typeof;
209
+ switch ($$typeofType) {
210
+ case REACT_CONTEXT_TYPE:
211
+ case REACT_FORWARD_REF_TYPE:
212
+ case REACT_LAZY_TYPE2:
213
+ case REACT_MEMO_TYPE:
214
+ case REACT_PROVIDER_TYPE:
215
+ return $$typeofType;
216
+ default:
217
+ return $$typeof;
218
+ }
219
+ }
220
+ case REACT_PORTAL_TYPE:
221
+ return $$typeof;
222
+ }
223
+ }
224
+ return void 0;
225
+ }
226
+ var AsyncMode = REACT_ASYNC_MODE_TYPE;
227
+ var ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;
228
+ var ContextConsumer = REACT_CONTEXT_TYPE;
229
+ var ContextProvider = REACT_PROVIDER_TYPE;
230
+ var Element = REACT_ELEMENT_TYPE;
231
+ var ForwardRef = REACT_FORWARD_REF_TYPE;
232
+ var Fragment4 = REACT_FRAGMENT_TYPE;
233
+ var Lazy = REACT_LAZY_TYPE2;
234
+ var Memo = REACT_MEMO_TYPE;
235
+ var Portal = REACT_PORTAL_TYPE;
236
+ var Profiler = REACT_PROFILER_TYPE;
237
+ var StrictMode = REACT_STRICT_MODE_TYPE;
238
+ var Suspense = REACT_SUSPENSE_TYPE;
239
+ var hasWarnedAboutDeprecatedIsAsyncMode = false;
240
+ function isAsyncMode(object) {
241
+ {
242
+ if (!hasWarnedAboutDeprecatedIsAsyncMode) {
243
+ hasWarnedAboutDeprecatedIsAsyncMode = true;
244
+ console["warn"]("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.");
245
+ }
246
+ }
247
+ return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE;
248
+ }
249
+ function isConcurrentMode(object) {
250
+ return typeOf(object) === REACT_CONCURRENT_MODE_TYPE;
251
+ }
252
+ function isContextConsumer(object) {
253
+ return typeOf(object) === REACT_CONTEXT_TYPE;
254
+ }
255
+ function isContextProvider(object) {
256
+ return typeOf(object) === REACT_PROVIDER_TYPE;
257
+ }
258
+ function isElement(object) {
259
+ return typeof object === "object" && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
260
+ }
261
+ function isForwardRef(object) {
262
+ return typeOf(object) === REACT_FORWARD_REF_TYPE;
263
+ }
264
+ function isFragment(object) {
265
+ return typeOf(object) === REACT_FRAGMENT_TYPE;
266
+ }
267
+ function isLazy(object) {
268
+ return typeOf(object) === REACT_LAZY_TYPE2;
269
+ }
270
+ function isMemo(object) {
271
+ return typeOf(object) === REACT_MEMO_TYPE;
272
+ }
273
+ function isPortal(object) {
274
+ return typeOf(object) === REACT_PORTAL_TYPE;
275
+ }
276
+ function isProfiler(object) {
277
+ return typeOf(object) === REACT_PROFILER_TYPE;
278
+ }
279
+ function isStrictMode(object) {
280
+ return typeOf(object) === REACT_STRICT_MODE_TYPE;
281
+ }
282
+ function isSuspense(object) {
283
+ return typeOf(object) === REACT_SUSPENSE_TYPE;
284
+ }
285
+ exports$1.AsyncMode = AsyncMode;
286
+ exports$1.ConcurrentMode = ConcurrentMode;
287
+ exports$1.ContextConsumer = ContextConsumer;
288
+ exports$1.ContextProvider = ContextProvider;
289
+ exports$1.Element = Element;
290
+ exports$1.ForwardRef = ForwardRef;
291
+ exports$1.Fragment = Fragment4;
292
+ exports$1.Lazy = Lazy;
293
+ exports$1.Memo = Memo;
294
+ exports$1.Portal = Portal;
295
+ exports$1.Profiler = Profiler;
296
+ exports$1.StrictMode = StrictMode;
297
+ exports$1.Suspense = Suspense;
298
+ exports$1.isAsyncMode = isAsyncMode;
299
+ exports$1.isConcurrentMode = isConcurrentMode;
300
+ exports$1.isContextConsumer = isContextConsumer;
301
+ exports$1.isContextProvider = isContextProvider;
302
+ exports$1.isElement = isElement;
303
+ exports$1.isForwardRef = isForwardRef;
304
+ exports$1.isFragment = isFragment;
305
+ exports$1.isLazy = isLazy;
306
+ exports$1.isMemo = isMemo;
307
+ exports$1.isPortal = isPortal;
308
+ exports$1.isProfiler = isProfiler;
309
+ exports$1.isStrictMode = isStrictMode;
310
+ exports$1.isSuspense = isSuspense;
311
+ exports$1.isValidElementType = isValidElementType;
312
+ exports$1.typeOf = typeOf;
313
+ })();
314
+ }
315
+ }
316
+ });
317
+
318
+ // ../../node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/index.js
319
+ var require_react_is = __commonJS({
320
+ "../../node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/index.js"(exports$1, module) {
321
+ if (process.env.NODE_ENV === "production") {
322
+ module.exports = require_react_is_production_min();
323
+ } else {
324
+ module.exports = require_react_is_development();
325
+ }
326
+ }
327
+ });
328
+
329
+ // ../../node_modules/.pnpm/object-assign@4.1.1/node_modules/object-assign/index.js
330
+ var require_object_assign = __commonJS({
331
+ "../../node_modules/.pnpm/object-assign@4.1.1/node_modules/object-assign/index.js"(exports$1, module) {
332
+ var getOwnPropertySymbols = Object.getOwnPropertySymbols;
333
+ var hasOwnProperty = Object.prototype.hasOwnProperty;
334
+ var propIsEnumerable = Object.prototype.propertyIsEnumerable;
335
+ function toObject(val) {
336
+ if (val === null || val === void 0) {
337
+ throw new TypeError("Object.assign cannot be called with null or undefined");
338
+ }
339
+ return Object(val);
340
+ }
341
+ function shouldUseNative() {
342
+ try {
343
+ if (!Object.assign) {
344
+ return false;
345
+ }
346
+ var test1 = new String("abc");
347
+ test1[5] = "de";
348
+ if (Object.getOwnPropertyNames(test1)[0] === "5") {
349
+ return false;
350
+ }
351
+ var test2 = {};
352
+ for (var i = 0; i < 10; i++) {
353
+ test2["_" + String.fromCharCode(i)] = i;
354
+ }
355
+ var order2 = Object.getOwnPropertyNames(test2).map(function(n) {
356
+ return test2[n];
357
+ });
358
+ if (order2.join("") !== "0123456789") {
359
+ return false;
360
+ }
361
+ var test3 = {};
362
+ "abcdefghijklmnopqrst".split("").forEach(function(letter) {
363
+ test3[letter] = letter;
364
+ });
365
+ if (Object.keys(Object.assign({}, test3)).join("") !== "abcdefghijklmnopqrst") {
366
+ return false;
367
+ }
368
+ return true;
369
+ } catch (err) {
370
+ return false;
371
+ }
372
+ }
373
+ module.exports = shouldUseNative() ? Object.assign : function(target, source) {
374
+ var from;
375
+ var to = toObject(target);
376
+ var symbols;
377
+ for (var s2 = 1; s2 < arguments.length; s2++) {
378
+ from = Object(arguments[s2]);
379
+ for (var key in from) {
380
+ if (hasOwnProperty.call(from, key)) {
381
+ to[key] = from[key];
382
+ }
383
+ }
384
+ if (getOwnPropertySymbols) {
385
+ symbols = getOwnPropertySymbols(from);
386
+ for (var i = 0; i < symbols.length; i++) {
387
+ if (propIsEnumerable.call(from, symbols[i])) {
388
+ to[symbols[i]] = from[symbols[i]];
389
+ }
390
+ }
391
+ }
392
+ }
393
+ return to;
394
+ };
395
+ }
396
+ });
397
+
398
+ // ../../node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/lib/ReactPropTypesSecret.js
399
+ var require_ReactPropTypesSecret = __commonJS({
400
+ "../../node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/lib/ReactPropTypesSecret.js"(exports$1, module) {
401
+ var ReactPropTypesSecret = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
402
+ module.exports = ReactPropTypesSecret;
403
+ }
404
+ });
405
+
406
+ // ../../node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/lib/has.js
407
+ var require_has = __commonJS({
408
+ "../../node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/lib/has.js"(exports$1, module) {
409
+ module.exports = Function.call.bind(Object.prototype.hasOwnProperty);
410
+ }
411
+ });
412
+
413
+ // ../../node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/checkPropTypes.js
414
+ var require_checkPropTypes = __commonJS({
415
+ "../../node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/checkPropTypes.js"(exports$1, module) {
416
+ var printWarning = function() {
417
+ };
418
+ if (process.env.NODE_ENV !== "production") {
419
+ ReactPropTypesSecret = require_ReactPropTypesSecret();
420
+ loggedTypeFailures = {};
421
+ has = require_has();
422
+ printWarning = function(text2) {
423
+ var message = "Warning: " + text2;
424
+ if (typeof console !== "undefined") {
425
+ console.error(message);
426
+ }
427
+ try {
428
+ throw new Error(message);
429
+ } catch (x2) {
430
+ }
431
+ };
432
+ }
433
+ var ReactPropTypesSecret;
434
+ var loggedTypeFailures;
435
+ var has;
436
+ function checkPropTypes(typeSpecs, values, location, componentName, getStack) {
437
+ if (process.env.NODE_ENV !== "production") {
438
+ for (var typeSpecName in typeSpecs) {
439
+ if (has(typeSpecs, typeSpecName)) {
440
+ var error;
441
+ try {
442
+ if (typeof typeSpecs[typeSpecName] !== "function") {
443
+ var err = Error(
444
+ (componentName || "React class") + ": " + location + " type `" + typeSpecName + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof typeSpecs[typeSpecName] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."
445
+ );
446
+ err.name = "Invariant Violation";
447
+ throw err;
448
+ }
449
+ error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret);
450
+ } catch (ex) {
451
+ error = ex;
452
+ }
453
+ if (error && !(error instanceof Error)) {
454
+ printWarning(
455
+ (componentName || "React class") + ": type specification of " + location + " `" + typeSpecName + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof error + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
456
+ );
457
+ }
458
+ if (error instanceof Error && !(error.message in loggedTypeFailures)) {
459
+ loggedTypeFailures[error.message] = true;
460
+ var stack = getStack ? getStack() : "";
461
+ printWarning(
462
+ "Failed " + location + " type: " + error.message + (stack != null ? stack : "")
463
+ );
464
+ }
465
+ }
466
+ }
467
+ }
468
+ }
469
+ checkPropTypes.resetWarningCache = function() {
470
+ if (process.env.NODE_ENV !== "production") {
471
+ loggedTypeFailures = {};
472
+ }
473
+ };
474
+ module.exports = checkPropTypes;
475
+ }
476
+ });
477
+
478
+ // ../../node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/factoryWithTypeCheckers.js
479
+ var require_factoryWithTypeCheckers = __commonJS({
480
+ "../../node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/factoryWithTypeCheckers.js"(exports$1, module) {
481
+ var ReactIs = require_react_is();
482
+ var assign = require_object_assign();
483
+ var ReactPropTypesSecret = require_ReactPropTypesSecret();
484
+ var has = require_has();
485
+ var checkPropTypes = require_checkPropTypes();
486
+ var printWarning = function() {
487
+ };
488
+ if (process.env.NODE_ENV !== "production") {
489
+ printWarning = function(text2) {
490
+ var message = "Warning: " + text2;
491
+ if (typeof console !== "undefined") {
492
+ console.error(message);
493
+ }
494
+ try {
495
+ throw new Error(message);
496
+ } catch (x2) {
497
+ }
498
+ };
499
+ }
500
+ function emptyFunctionThatReturnsNull() {
501
+ return null;
502
+ }
503
+ module.exports = function(isValidElement3, throwOnDirectAccess) {
504
+ var ITERATOR_SYMBOL = typeof Symbol === "function" && Symbol.iterator;
505
+ var FAUX_ITERATOR_SYMBOL = "@@iterator";
506
+ function getIteratorFn(maybeIterable) {
507
+ var iteratorFn = maybeIterable && (ITERATOR_SYMBOL && maybeIterable[ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]);
508
+ if (typeof iteratorFn === "function") {
509
+ return iteratorFn;
510
+ }
511
+ }
512
+ var ANONYMOUS = "<<anonymous>>";
513
+ var ReactPropTypes = {
514
+ array: createPrimitiveTypeChecker("array"),
515
+ bigint: createPrimitiveTypeChecker("bigint"),
516
+ bool: createPrimitiveTypeChecker("boolean"),
517
+ func: createPrimitiveTypeChecker("function"),
518
+ number: createPrimitiveTypeChecker("number"),
519
+ object: createPrimitiveTypeChecker("object"),
520
+ string: createPrimitiveTypeChecker("string"),
521
+ symbol: createPrimitiveTypeChecker("symbol"),
522
+ any: createAnyTypeChecker(),
523
+ arrayOf: createArrayOfTypeChecker,
524
+ element: createElementTypeChecker(),
525
+ elementType: createElementTypeTypeChecker(),
526
+ instanceOf: createInstanceTypeChecker,
527
+ node: createNodeChecker(),
528
+ objectOf: createObjectOfTypeChecker,
529
+ oneOf: createEnumTypeChecker,
530
+ oneOfType: createUnionTypeChecker,
531
+ shape: createShapeTypeChecker,
532
+ exact: createStrictShapeTypeChecker
533
+ };
534
+ function is(x2, y) {
535
+ if (x2 === y) {
536
+ return x2 !== 0 || 1 / x2 === 1 / y;
537
+ } else {
538
+ return x2 !== x2 && y !== y;
539
+ }
540
+ }
541
+ function PropTypeError(message, data) {
542
+ this.message = message;
543
+ this.data = data && typeof data === "object" ? data : {};
544
+ this.stack = "";
545
+ }
546
+ PropTypeError.prototype = Error.prototype;
547
+ function createChainableTypeChecker(validate) {
548
+ if (process.env.NODE_ENV !== "production") {
549
+ var manualPropTypeCallCache = {};
550
+ var manualPropTypeWarningCount = 0;
551
+ }
552
+ function checkType(isRequired, props, propName, componentName, location, propFullName, secret) {
553
+ componentName = componentName || ANONYMOUS;
554
+ propFullName = propFullName || propName;
555
+ if (secret !== ReactPropTypesSecret) {
556
+ if (throwOnDirectAccess) {
557
+ var err = new Error(
558
+ "Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types"
559
+ );
560
+ err.name = "Invariant Violation";
561
+ throw err;
562
+ } else if (process.env.NODE_ENV !== "production" && typeof console !== "undefined") {
563
+ var cacheKey = componentName + ":" + propName;
564
+ if (!manualPropTypeCallCache[cacheKey] && // Avoid spamming the console because they are often not actionable except for lib authors
565
+ manualPropTypeWarningCount < 3) {
566
+ printWarning(
567
+ "You are manually calling a React.PropTypes validation function for the `" + propFullName + "` prop on `" + componentName + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."
568
+ );
569
+ manualPropTypeCallCache[cacheKey] = true;
570
+ manualPropTypeWarningCount++;
571
+ }
572
+ }
573
+ }
574
+ if (props[propName] == null) {
575
+ if (isRequired) {
576
+ if (props[propName] === null) {
577
+ return new PropTypeError("The " + location + " `" + propFullName + "` is marked as required " + ("in `" + componentName + "`, but its value is `null`."));
578
+ }
579
+ return new PropTypeError("The " + location + " `" + propFullName + "` is marked as required in " + ("`" + componentName + "`, but its value is `undefined`."));
580
+ }
581
+ return null;
582
+ } else {
583
+ return validate(props, propName, componentName, location, propFullName);
584
+ }
585
+ }
586
+ var chainedCheckType = checkType.bind(null, false);
587
+ chainedCheckType.isRequired = checkType.bind(null, true);
588
+ return chainedCheckType;
589
+ }
590
+ function createPrimitiveTypeChecker(expectedType) {
591
+ function validate(props, propName, componentName, location, propFullName, secret) {
592
+ var propValue = props[propName];
593
+ var propType = getPropType(propValue);
594
+ if (propType !== expectedType) {
595
+ var preciseType = getPreciseType(propValue);
596
+ return new PropTypeError(
597
+ "Invalid " + location + " `" + propFullName + "` of type " + ("`" + preciseType + "` supplied to `" + componentName + "`, expected ") + ("`" + expectedType + "`."),
598
+ { expectedType }
599
+ );
600
+ }
601
+ return null;
602
+ }
603
+ return createChainableTypeChecker(validate);
604
+ }
605
+ function createAnyTypeChecker() {
606
+ return createChainableTypeChecker(emptyFunctionThatReturnsNull);
607
+ }
608
+ function createArrayOfTypeChecker(typeChecker) {
609
+ function validate(props, propName, componentName, location, propFullName) {
610
+ if (typeof typeChecker !== "function") {
611
+ return new PropTypeError("Property `" + propFullName + "` of component `" + componentName + "` has invalid PropType notation inside arrayOf.");
612
+ }
613
+ var propValue = props[propName];
614
+ if (!Array.isArray(propValue)) {
615
+ var propType = getPropType(propValue);
616
+ return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type " + ("`" + propType + "` supplied to `" + componentName + "`, expected an array."));
617
+ }
618
+ for (var i = 0; i < propValue.length; i++) {
619
+ var error = typeChecker(propValue, i, componentName, location, propFullName + "[" + i + "]", ReactPropTypesSecret);
620
+ if (error instanceof Error) {
621
+ return error;
622
+ }
623
+ }
624
+ return null;
625
+ }
626
+ return createChainableTypeChecker(validate);
627
+ }
628
+ function createElementTypeChecker() {
629
+ function validate(props, propName, componentName, location, propFullName) {
630
+ var propValue = props[propName];
631
+ if (!isValidElement3(propValue)) {
632
+ var propType = getPropType(propValue);
633
+ return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type " + ("`" + propType + "` supplied to `" + componentName + "`, expected a single ReactElement."));
634
+ }
635
+ return null;
636
+ }
637
+ return createChainableTypeChecker(validate);
638
+ }
639
+ function createElementTypeTypeChecker() {
640
+ function validate(props, propName, componentName, location, propFullName) {
641
+ var propValue = props[propName];
642
+ if (!ReactIs.isValidElementType(propValue)) {
643
+ var propType = getPropType(propValue);
644
+ return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type " + ("`" + propType + "` supplied to `" + componentName + "`, expected a single ReactElement type."));
645
+ }
646
+ return null;
647
+ }
648
+ return createChainableTypeChecker(validate);
649
+ }
650
+ function createInstanceTypeChecker(expectedClass) {
651
+ function validate(props, propName, componentName, location, propFullName) {
652
+ if (!(props[propName] instanceof expectedClass)) {
653
+ var expectedClassName = expectedClass.name || ANONYMOUS;
654
+ var actualClassName = getClassName(props[propName]);
655
+ return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type " + ("`" + actualClassName + "` supplied to `" + componentName + "`, expected ") + ("instance of `" + expectedClassName + "`."));
656
+ }
657
+ return null;
658
+ }
659
+ return createChainableTypeChecker(validate);
660
+ }
661
+ function createEnumTypeChecker(expectedValues) {
662
+ if (!Array.isArray(expectedValues)) {
663
+ if (process.env.NODE_ENV !== "production") {
664
+ if (arguments.length > 1) {
665
+ printWarning(
666
+ "Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."
667
+ );
668
+ } else {
669
+ printWarning("Invalid argument supplied to oneOf, expected an array.");
670
+ }
671
+ }
672
+ return emptyFunctionThatReturnsNull;
673
+ }
674
+ function validate(props, propName, componentName, location, propFullName) {
675
+ var propValue = props[propName];
676
+ for (var i = 0; i < expectedValues.length; i++) {
677
+ if (is(propValue, expectedValues[i])) {
678
+ return null;
679
+ }
680
+ }
681
+ var valuesString = JSON.stringify(expectedValues, function replacer(key, value) {
682
+ var type = getPreciseType(value);
683
+ if (type === "symbol") {
684
+ return String(value);
685
+ }
686
+ return value;
687
+ });
688
+ return new PropTypeError("Invalid " + location + " `" + propFullName + "` of value `" + String(propValue) + "` " + ("supplied to `" + componentName + "`, expected one of " + valuesString + "."));
689
+ }
690
+ return createChainableTypeChecker(validate);
691
+ }
692
+ function createObjectOfTypeChecker(typeChecker) {
693
+ function validate(props, propName, componentName, location, propFullName) {
694
+ if (typeof typeChecker !== "function") {
695
+ return new PropTypeError("Property `" + propFullName + "` of component `" + componentName + "` has invalid PropType notation inside objectOf.");
696
+ }
697
+ var propValue = props[propName];
698
+ var propType = getPropType(propValue);
699
+ if (propType !== "object") {
700
+ return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type " + ("`" + propType + "` supplied to `" + componentName + "`, expected an object."));
701
+ }
702
+ for (var key in propValue) {
703
+ if (has(propValue, key)) {
704
+ var error = typeChecker(propValue, key, componentName, location, propFullName + "." + key, ReactPropTypesSecret);
705
+ if (error instanceof Error) {
706
+ return error;
707
+ }
708
+ }
709
+ }
710
+ return null;
711
+ }
712
+ return createChainableTypeChecker(validate);
713
+ }
714
+ function createUnionTypeChecker(arrayOfTypeCheckers) {
715
+ if (!Array.isArray(arrayOfTypeCheckers)) {
716
+ process.env.NODE_ENV !== "production" ? printWarning("Invalid argument supplied to oneOfType, expected an instance of array.") : void 0;
717
+ return emptyFunctionThatReturnsNull;
718
+ }
719
+ for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
720
+ var checker = arrayOfTypeCheckers[i];
721
+ if (typeof checker !== "function") {
722
+ printWarning(
723
+ "Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + getPostfixForTypeWarning(checker) + " at index " + i + "."
724
+ );
725
+ return emptyFunctionThatReturnsNull;
726
+ }
727
+ }
728
+ function validate(props, propName, componentName, location, propFullName) {
729
+ var expectedTypes = [];
730
+ for (var i2 = 0; i2 < arrayOfTypeCheckers.length; i2++) {
731
+ var checker2 = arrayOfTypeCheckers[i2];
732
+ var checkerResult = checker2(props, propName, componentName, location, propFullName, ReactPropTypesSecret);
733
+ if (checkerResult == null) {
734
+ return null;
735
+ }
736
+ if (checkerResult.data && has(checkerResult.data, "expectedType")) {
737
+ expectedTypes.push(checkerResult.data.expectedType);
738
+ }
739
+ }
740
+ var expectedTypesMessage = expectedTypes.length > 0 ? ", expected one of type [" + expectedTypes.join(", ") + "]" : "";
741
+ return new PropTypeError("Invalid " + location + " `" + propFullName + "` supplied to " + ("`" + componentName + "`" + expectedTypesMessage + "."));
742
+ }
743
+ return createChainableTypeChecker(validate);
744
+ }
745
+ function createNodeChecker() {
746
+ function validate(props, propName, componentName, location, propFullName) {
747
+ if (!isNode(props[propName])) {
748
+ return new PropTypeError("Invalid " + location + " `" + propFullName + "` supplied to " + ("`" + componentName + "`, expected a ReactNode."));
749
+ }
750
+ return null;
751
+ }
752
+ return createChainableTypeChecker(validate);
753
+ }
754
+ function invalidValidatorError(componentName, location, propFullName, key, type) {
755
+ return new PropTypeError(
756
+ (componentName || "React class") + ": " + location + " type `" + propFullName + "." + key + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + type + "`."
757
+ );
758
+ }
759
+ function createShapeTypeChecker(shapeTypes) {
760
+ function validate(props, propName, componentName, location, propFullName) {
761
+ var propValue = props[propName];
762
+ var propType = getPropType(propValue);
763
+ if (propType !== "object") {
764
+ return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type `" + propType + "` " + ("supplied to `" + componentName + "`, expected `object`."));
765
+ }
766
+ for (var key in shapeTypes) {
767
+ var checker = shapeTypes[key];
768
+ if (typeof checker !== "function") {
769
+ return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
770
+ }
771
+ var error = checker(propValue, key, componentName, location, propFullName + "." + key, ReactPropTypesSecret);
772
+ if (error) {
773
+ return error;
774
+ }
775
+ }
776
+ return null;
777
+ }
778
+ return createChainableTypeChecker(validate);
779
+ }
780
+ function createStrictShapeTypeChecker(shapeTypes) {
781
+ function validate(props, propName, componentName, location, propFullName) {
782
+ var propValue = props[propName];
783
+ var propType = getPropType(propValue);
784
+ if (propType !== "object") {
785
+ return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type `" + propType + "` " + ("supplied to `" + componentName + "`, expected `object`."));
786
+ }
787
+ var allKeys = assign({}, props[propName], shapeTypes);
788
+ for (var key in allKeys) {
789
+ var checker = shapeTypes[key];
790
+ if (has(shapeTypes, key) && typeof checker !== "function") {
791
+ return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
792
+ }
793
+ if (!checker) {
794
+ return new PropTypeError(
795
+ "Invalid " + location + " `" + propFullName + "` key `" + key + "` supplied to `" + componentName + "`.\nBad object: " + JSON.stringify(props[propName], null, " ") + "\nValid keys: " + JSON.stringify(Object.keys(shapeTypes), null, " ")
796
+ );
797
+ }
798
+ var error = checker(propValue, key, componentName, location, propFullName + "." + key, ReactPropTypesSecret);
799
+ if (error) {
800
+ return error;
801
+ }
802
+ }
803
+ return null;
804
+ }
805
+ return createChainableTypeChecker(validate);
806
+ }
807
+ function isNode(propValue) {
808
+ switch (typeof propValue) {
809
+ case "number":
810
+ case "string":
811
+ case "undefined":
812
+ return true;
813
+ case "boolean":
814
+ return !propValue;
815
+ case "object":
816
+ if (Array.isArray(propValue)) {
817
+ return propValue.every(isNode);
818
+ }
819
+ if (propValue === null || isValidElement3(propValue)) {
820
+ return true;
821
+ }
822
+ var iteratorFn = getIteratorFn(propValue);
823
+ if (iteratorFn) {
824
+ var iterator = iteratorFn.call(propValue);
825
+ var step;
826
+ if (iteratorFn !== propValue.entries) {
827
+ while (!(step = iterator.next()).done) {
828
+ if (!isNode(step.value)) {
829
+ return false;
830
+ }
831
+ }
832
+ } else {
833
+ while (!(step = iterator.next()).done) {
834
+ var entry = step.value;
835
+ if (entry) {
836
+ if (!isNode(entry[1])) {
837
+ return false;
838
+ }
839
+ }
840
+ }
841
+ }
842
+ } else {
843
+ return false;
844
+ }
845
+ return true;
846
+ default:
847
+ return false;
848
+ }
849
+ }
850
+ function isSymbol(propType, propValue) {
851
+ if (propType === "symbol") {
852
+ return true;
853
+ }
854
+ if (!propValue) {
855
+ return false;
856
+ }
857
+ if (propValue["@@toStringTag"] === "Symbol") {
858
+ return true;
859
+ }
860
+ if (typeof Symbol === "function" && propValue instanceof Symbol) {
861
+ return true;
862
+ }
863
+ return false;
864
+ }
865
+ function getPropType(propValue) {
866
+ var propType = typeof propValue;
867
+ if (Array.isArray(propValue)) {
868
+ return "array";
869
+ }
870
+ if (propValue instanceof RegExp) {
871
+ return "object";
872
+ }
873
+ if (isSymbol(propType, propValue)) {
874
+ return "symbol";
875
+ }
876
+ return propType;
877
+ }
878
+ function getPreciseType(propValue) {
879
+ if (typeof propValue === "undefined" || propValue === null) {
880
+ return "" + propValue;
881
+ }
882
+ var propType = getPropType(propValue);
883
+ if (propType === "object") {
884
+ if (propValue instanceof Date) {
885
+ return "date";
886
+ } else if (propValue instanceof RegExp) {
887
+ return "regexp";
888
+ }
889
+ }
890
+ return propType;
891
+ }
892
+ function getPostfixForTypeWarning(value) {
893
+ var type = getPreciseType(value);
894
+ switch (type) {
895
+ case "array":
896
+ case "object":
897
+ return "an " + type;
898
+ case "boolean":
899
+ case "date":
900
+ case "regexp":
901
+ return "a " + type;
902
+ default:
903
+ return type;
904
+ }
905
+ }
906
+ function getClassName(propValue) {
907
+ if (!propValue.constructor || !propValue.constructor.name) {
908
+ return ANONYMOUS;
909
+ }
910
+ return propValue.constructor.name;
911
+ }
912
+ ReactPropTypes.checkPropTypes = checkPropTypes;
913
+ ReactPropTypes.resetWarningCache = checkPropTypes.resetWarningCache;
914
+ ReactPropTypes.PropTypes = ReactPropTypes;
915
+ return ReactPropTypes;
916
+ };
917
+ }
918
+ });
919
+
920
+ // ../../node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/factoryWithThrowingShims.js
921
+ var require_factoryWithThrowingShims = __commonJS({
922
+ "../../node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/factoryWithThrowingShims.js"(exports$1, module) {
923
+ var ReactPropTypesSecret = require_ReactPropTypesSecret();
924
+ function emptyFunction() {
925
+ }
926
+ function emptyFunctionWithReset() {
927
+ }
928
+ emptyFunctionWithReset.resetWarningCache = emptyFunction;
929
+ module.exports = function() {
930
+ function shim(props, propName, componentName, location, propFullName, secret) {
931
+ if (secret === ReactPropTypesSecret) {
932
+ return;
933
+ }
934
+ var err = new Error(
935
+ "Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types"
936
+ );
937
+ err.name = "Invariant Violation";
938
+ throw err;
939
+ }
940
+ shim.isRequired = shim;
941
+ function getShim() {
942
+ return shim;
943
+ }
944
+ var ReactPropTypes = {
945
+ array: shim,
946
+ bigint: shim,
947
+ bool: shim,
948
+ func: shim,
949
+ number: shim,
950
+ object: shim,
951
+ string: shim,
952
+ symbol: shim,
953
+ any: shim,
954
+ arrayOf: getShim,
955
+ element: shim,
956
+ elementType: shim,
957
+ instanceOf: getShim,
958
+ node: shim,
959
+ objectOf: getShim,
960
+ oneOf: getShim,
961
+ oneOfType: getShim,
962
+ shape: getShim,
963
+ exact: getShim,
964
+ checkPropTypes: emptyFunctionWithReset,
965
+ resetWarningCache: emptyFunction
966
+ };
967
+ ReactPropTypes.PropTypes = ReactPropTypes;
968
+ return ReactPropTypes;
969
+ };
970
+ }
971
+ });
972
+
973
+ // ../../node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/index.js
974
+ var require_prop_types = __commonJS({
975
+ "../../node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/index.js"(exports$1, module) {
976
+ if (process.env.NODE_ENV !== "production") {
977
+ ReactIs = require_react_is();
978
+ throwOnDirectAccess = true;
979
+ module.exports = require_factoryWithTypeCheckers()(ReactIs.isElement, throwOnDirectAccess);
980
+ } else {
981
+ module.exports = require_factoryWithThrowingShims()();
982
+ }
983
+ var ReactIs;
984
+ var throwOnDirectAccess;
985
+ }
986
+ });
987
+
988
+ // ../../node_modules/.pnpm/@fortawesome+fontawesome-svg-core@6.7.2/node_modules/@fortawesome/fontawesome-svg-core/package.json
989
+ var require_package = __commonJS({
990
+ "../../node_modules/.pnpm/@fortawesome+fontawesome-svg-core@6.7.2/node_modules/@fortawesome/fontawesome-svg-core/package.json"(exports$1, module) {
991
+ module.exports = {
992
+ description: "The iconic font, CSS, and SVG framework",
993
+ keywords: [
994
+ "font",
995
+ "awesome",
996
+ "fontawesome",
997
+ "icon",
998
+ "svg",
999
+ "bootstrap"
1000
+ ],
1001
+ homepage: "https://fontawesome.com",
1002
+ bugs: {
1003
+ url: "https://github.com/FortAwesome/Font-Awesome/issues"
1004
+ },
1005
+ author: "The Font Awesome Team (https://github.com/orgs/FortAwesome/people)",
1006
+ repository: {
1007
+ type: "git",
1008
+ url: "https://github.com/FortAwesome/Font-Awesome"
1009
+ },
1010
+ engines: {
1011
+ node: ">=6"
1012
+ },
1013
+ dependencies: {
1014
+ "@fortawesome/fontawesome-common-types": "6.7.2"
1015
+ },
1016
+ version: "6.7.2",
1017
+ name: "@fortawesome/fontawesome-svg-core",
1018
+ main: "index.js",
1019
+ module: "index.mjs",
1020
+ "jsnext:main": "index.mjs",
1021
+ style: "styles.css",
1022
+ license: "MIT",
1023
+ types: "./index.d.ts",
1024
+ exports: {
1025
+ ".": {
1026
+ types: "./index.d.ts",
1027
+ module: "./index.mjs",
1028
+ import: "./index.mjs",
1029
+ require: "./index.js",
1030
+ style: "./styles.css",
1031
+ default: "./index.js"
1032
+ },
1033
+ "./index": {
1034
+ types: "./index.d.ts",
1035
+ module: "./index.mjs",
1036
+ import: "./index.mjs",
1037
+ require: "./index.js",
1038
+ default: "./index.js"
1039
+ },
1040
+ "./index.js": {
1041
+ types: "./index.d.ts",
1042
+ module: "./index.mjs",
1043
+ import: "./index.mjs",
1044
+ require: "./index.js",
1045
+ default: "./index.js"
1046
+ },
1047
+ "./plugins": {
1048
+ types: "./index.d.ts",
1049
+ module: "./plugins.mjs",
1050
+ import: "./plugins.mjs",
1051
+ default: "./plugins.mjs"
1052
+ },
1053
+ "./import.macro": "./import.macro.js",
1054
+ "./import.macro.js": "./import.macro.js",
1055
+ "./styles": "./styles.css",
1056
+ "./styles.css": "./styles.css",
1057
+ "./package.json": "./package.json"
1058
+ },
1059
+ sideEffects: [
1060
+ "./index.js",
1061
+ "./index.mjs",
1062
+ "./styles.css"
1063
+ ]
1064
+ };
1065
+ }
1066
+ });
1067
+
26
1068
  // src/components/slots/SlotElements.tsx
27
1069
  var SlotElements = (props) => {
28
1070
  const { slotId } = props;
@@ -59,6 +1101,9 @@ function composeRefs(...refs) {
59
1101
  }
60
1102
  };
61
1103
  }
1104
+ function useComposedRefs(...refs) {
1105
+ return React3__namespace.useCallback(composeRefs(...refs), refs);
1106
+ }
62
1107
  var REACT_LAZY_TYPE = Symbol.for("react.lazy");
63
1108
  var use = React3__namespace[" use ".trim().toString()];
64
1109
  function isPromiseLike(value) {
@@ -159,26 +1204,26 @@ function getElementRef(element) {
159
1204
 
160
1205
  // ../../node_modules/.pnpm/clsx@2.1.1/node_modules/clsx/dist/clsx.mjs
161
1206
  function r(e) {
162
- var t, f, n = "";
1207
+ var t2, f, n = "";
163
1208
  if ("string" == typeof e || "number" == typeof e) n += e;
164
1209
  else if ("object" == typeof e) if (Array.isArray(e)) {
165
- var o = e.length;
166
- for (t = 0; t < o; t++) e[t] && (f = r(e[t])) && (n && (n += " "), n += f);
1210
+ var o2 = e.length;
1211
+ for (t2 = 0; t2 < o2; t2++) e[t2] && (f = r(e[t2])) && (n && (n += " "), n += f);
167
1212
  } else for (f in e) e[f] && (n && (n += " "), n += f);
168
1213
  return n;
169
1214
  }
170
1215
  function clsx() {
171
- for (var e, t, f = 0, n = "", o = arguments.length; f < o; f++) (e = arguments[f]) && (t = r(e)) && (n && (n += " "), n += t);
1216
+ for (var e, t2, f = 0, n = "", o2 = arguments.length; f < o2; f++) (e = arguments[f]) && (t2 = r(e)) && (n && (n += " "), n += t2);
172
1217
  return n;
173
1218
  }
174
1219
 
175
1220
  // ../../node_modules/.pnpm/class-variance-authority@0.7.1/node_modules/class-variance-authority/dist/index.mjs
176
1221
  var falsyToString = (value) => typeof value === "boolean" ? `${value}` : value === 0 ? "0" : value;
177
1222
  var cx = clsx;
178
- var cva = (base, config) => (props) => {
1223
+ var cva = (base, config2) => (props) => {
179
1224
  var _config_compoundVariants;
180
- if ((config === null || config === void 0 ? void 0 : config.variants) == null) return cx(base, props === null || props === void 0 ? void 0 : props.class, props === null || props === void 0 ? void 0 : props.className);
181
- const { variants, defaultVariants } = config;
1225
+ if ((config2 === null || config2 === void 0 ? void 0 : config2.variants) == null) return cx(base, props === null || props === void 0 ? void 0 : props.class, props === null || props === void 0 ? void 0 : props.className);
1226
+ const { variants, defaultVariants } = config2;
182
1227
  const getVariantClassNames = Object.keys(variants).map((variant) => {
183
1228
  const variantProp = props === null || props === void 0 ? void 0 : props[variant];
184
1229
  const defaultVariantProp = defaultVariants === null || defaultVariants === void 0 ? void 0 : defaultVariants[variant];
@@ -194,7 +1239,7 @@ var cva = (base, config) => (props) => {
194
1239
  acc[key] = value;
195
1240
  return acc;
196
1241
  }, {});
197
- const getCompoundVariantClassNames = config === null || config === void 0 ? void 0 : (_config_compoundVariants = config.compoundVariants) === null || _config_compoundVariants === void 0 ? void 0 : _config_compoundVariants.reduce((acc, param) => {
1242
+ const getCompoundVariantClassNames = config2 === null || config2 === void 0 ? void 0 : (_config_compoundVariants = config2.compoundVariants) === null || _config_compoundVariants === void 0 ? void 0 : _config_compoundVariants.reduce((acc, param) => {
198
1243
  let { class: cvClass, className: cvClassName, ...compoundVariantOptions } = param;
199
1244
  return Object.entries(compoundVariantOptions).every((param2) => {
200
1245
  let [key, value] = param2;
@@ -237,12 +1282,12 @@ var createClassPartObject = (nextPart = /* @__PURE__ */ new Map(), validators =
237
1282
  var CLASS_PART_SEPARATOR = "-";
238
1283
  var EMPTY_CONFLICTS = [];
239
1284
  var ARBITRARY_PROPERTY_PREFIX = "arbitrary..";
240
- var createClassGroupUtils = (config) => {
241
- const classMap = createClassMap(config);
1285
+ var createClassGroupUtils = (config2) => {
1286
+ const classMap = createClassMap(config2);
242
1287
  const {
243
1288
  conflictingClassGroups,
244
1289
  conflictingClassGroupModifiers
245
- } = config;
1290
+ } = config2;
246
1291
  const getClassGroupId = (className) => {
247
1292
  if (className.startsWith("[") && className.endsWith("]")) {
248
1293
  return getGroupIdForArbitraryProperty(className);
@@ -301,11 +1346,11 @@ var getGroupIdForArbitraryProperty = (className) => className.slice(1, -1).index
301
1346
  const property = content.slice(0, colonIndex);
302
1347
  return property ? ARBITRARY_PROPERTY_PREFIX + property : void 0;
303
1348
  })();
304
- var createClassMap = (config) => {
1349
+ var createClassMap = (config2) => {
305
1350
  const {
306
1351
  theme,
307
1352
  classGroups
308
- } = config;
1353
+ } = config2;
309
1354
  return processClassGroups(classGroups, theme);
310
1355
  };
311
1356
  var processClassGroups = (classGroups, theme) => {
@@ -422,11 +1467,11 @@ var createResultObject = (modifiers, hasImportantModifier, baseClassName, maybeP
422
1467
  maybePostfixModifierPosition,
423
1468
  isExternal
424
1469
  });
425
- var createParseClassName = (config) => {
1470
+ var createParseClassName = (config2) => {
426
1471
  const {
427
1472
  prefix,
428
1473
  experimentalParseClassName
429
- } = config;
1474
+ } = config2;
430
1475
  let parseClassName = (className) => {
431
1476
  const modifiers = [];
432
1477
  let bracketDepth = 0;
@@ -485,9 +1530,9 @@ var createParseClassName = (config) => {
485
1530
  }
486
1531
  return parseClassName;
487
1532
  };
488
- var createSortModifiers = (config) => {
1533
+ var createSortModifiers = (config2) => {
489
1534
  const modifierWeights = /* @__PURE__ */ new Map();
490
- config.orderSensitiveModifiers.forEach((mod, index) => {
1535
+ config2.orderSensitiveModifiers.forEach((mod, index) => {
491
1536
  modifierWeights.set(mod, 1e6 + index);
492
1537
  });
493
1538
  return (modifiers) => {
@@ -515,14 +1560,14 @@ var createSortModifiers = (config) => {
515
1560
  return result;
516
1561
  };
517
1562
  };
518
- var createConfigUtils = (config) => ({
519
- cache: createLruCache(config.cacheSize),
520
- parseClassName: createParseClassName(config),
521
- sortModifiers: createSortModifiers(config),
522
- ...createClassGroupUtils(config)
1563
+ var createConfigUtils = (config2) => ({
1564
+ cache: createLruCache(config2.cacheSize),
1565
+ parseClassName: createParseClassName(config2),
1566
+ sortModifiers: createSortModifiers(config2),
1567
+ ...createClassGroupUtils(config2)
523
1568
  });
524
1569
  var SPLIT_CLASSES_REGEX = /\s+/;
525
- var mergeClassList = (classList, configUtils) => {
1570
+ var mergeClassList = (classList2, configUtils) => {
526
1571
  const {
527
1572
  parseClassName,
528
1573
  getClassGroupId,
@@ -530,7 +1575,7 @@ var mergeClassList = (classList, configUtils) => {
530
1575
  sortModifiers
531
1576
  } = configUtils;
532
1577
  const classGroupsInConflict = [];
533
- const classNames = classList.trim().split(SPLIT_CLASSES_REGEX);
1578
+ const classNames = classList2.trim().split(SPLIT_CLASSES_REGEX);
534
1579
  let result = "";
535
1580
  for (let index = classNames.length - 1; index >= 0; index -= 1) {
536
1581
  const originalClassName = classNames[index];
@@ -611,21 +1656,21 @@ var createTailwindMerge = (createConfigFirst, ...createConfigRest) => {
611
1656
  let cacheGet;
612
1657
  let cacheSet;
613
1658
  let functionToCall;
614
- const initTailwindMerge = (classList) => {
615
- const config = createConfigRest.reduce((previousConfig, createConfigCurrent) => createConfigCurrent(previousConfig), createConfigFirst());
616
- configUtils = createConfigUtils(config);
1659
+ const initTailwindMerge = (classList2) => {
1660
+ const config2 = createConfigRest.reduce((previousConfig, createConfigCurrent) => createConfigCurrent(previousConfig), createConfigFirst());
1661
+ configUtils = createConfigUtils(config2);
617
1662
  cacheGet = configUtils.cache.get;
618
1663
  cacheSet = configUtils.cache.set;
619
1664
  functionToCall = tailwindMerge;
620
- return tailwindMerge(classList);
1665
+ return tailwindMerge(classList2);
621
1666
  };
622
- const tailwindMerge = (classList) => {
623
- const cachedResult = cacheGet(classList);
1667
+ const tailwindMerge = (classList2) => {
1668
+ const cachedResult = cacheGet(classList2);
624
1669
  if (cachedResult) {
625
1670
  return cachedResult;
626
1671
  }
627
- const result = mergeClassList(classList, configUtils);
628
- cacheSet(classList, result);
1672
+ const result = mergeClassList(classList2, configUtils);
1673
+ cacheSet(classList2, result);
629
1674
  return result;
630
1675
  };
631
1676
  functionToCall = initTailwindMerge;
@@ -3279,8 +4324,3740 @@ var ExportManager = (props) => {
3279
4324
  const { slotId } = props;
3280
4325
  return /* @__PURE__ */ React.createElement(Button, { variant: "outline", size: "sm" }, "Manage Exports");
3281
4326
  };
4327
+ function composeEventHandlers(originalEventHandler, ourEventHandler, { checkForDefaultPrevented = true } = {}) {
4328
+ return function handleEvent(event) {
4329
+ originalEventHandler?.(event);
4330
+ if (checkForDefaultPrevented === false || !event.defaultPrevented) {
4331
+ return ourEventHandler?.(event);
4332
+ }
4333
+ };
4334
+ }
4335
+ function createContextScope(scopeName, createContextScopeDeps = []) {
4336
+ let defaultContexts = [];
4337
+ function createContext3(rootComponentName, defaultContext) {
4338
+ const BaseContext = React3__namespace.createContext(defaultContext);
4339
+ const index = defaultContexts.length;
4340
+ defaultContexts = [...defaultContexts, defaultContext];
4341
+ const Provider = (props) => {
4342
+ const { scope, children, ...context } = props;
4343
+ const Context = scope?.[scopeName]?.[index] || BaseContext;
4344
+ const value = React3__namespace.useMemo(() => context, Object.values(context));
4345
+ return /* @__PURE__ */ jsxRuntime.jsx(Context.Provider, { value, children });
4346
+ };
4347
+ Provider.displayName = rootComponentName + "Provider";
4348
+ function useContext2(consumerName, scope) {
4349
+ const Context = scope?.[scopeName]?.[index] || BaseContext;
4350
+ const context = React3__namespace.useContext(Context);
4351
+ if (context) return context;
4352
+ if (defaultContext !== void 0) return defaultContext;
4353
+ throw new Error(`\`${consumerName}\` must be used within \`${rootComponentName}\``);
4354
+ }
4355
+ return [Provider, useContext2];
4356
+ }
4357
+ const createScope = () => {
4358
+ const scopeContexts = defaultContexts.map((defaultContext) => {
4359
+ return React3__namespace.createContext(defaultContext);
4360
+ });
4361
+ return function useScope(scope) {
4362
+ const contexts = scope?.[scopeName] || scopeContexts;
4363
+ return React3__namespace.useMemo(
4364
+ () => ({ [`__scope${scopeName}`]: { ...scope, [scopeName]: contexts } }),
4365
+ [scope, contexts]
4366
+ );
4367
+ };
4368
+ };
4369
+ createScope.scopeName = scopeName;
4370
+ return [createContext3, composeContextScopes(createScope, ...createContextScopeDeps)];
4371
+ }
4372
+ function composeContextScopes(...scopes) {
4373
+ const baseScope = scopes[0];
4374
+ if (scopes.length === 1) return baseScope;
4375
+ const createScope = () => {
4376
+ const scopeHooks = scopes.map((createScope2) => ({
4377
+ useScope: createScope2(),
4378
+ scopeName: createScope2.scopeName
4379
+ }));
4380
+ return function useComposedScopes(overrideScopes) {
4381
+ const nextScopes = scopeHooks.reduce((nextScopes2, { useScope, scopeName }) => {
4382
+ const scopeProps = useScope(overrideScopes);
4383
+ const currentScope = scopeProps[`__scope${scopeName}`];
4384
+ return { ...nextScopes2, ...currentScope };
4385
+ }, {});
4386
+ return React3__namespace.useMemo(() => ({ [`__scope${baseScope.scopeName}`]: nextScopes }), [nextScopes]);
4387
+ };
4388
+ };
4389
+ createScope.scopeName = baseScope.scopeName;
4390
+ return createScope;
4391
+ }
4392
+ var useLayoutEffect2 = globalThis?.document ? React3__namespace.useLayoutEffect : () => {
4393
+ };
4394
+ var useInsertionEffect = React3__namespace[" useInsertionEffect ".trim().toString()] || useLayoutEffect2;
4395
+ function useControllableState({
4396
+ prop,
4397
+ defaultProp,
4398
+ onChange: onChange2 = () => {
4399
+ },
4400
+ caller
4401
+ }) {
4402
+ const [uncontrolledProp, setUncontrolledProp, onChangeRef] = useUncontrolledState({
4403
+ defaultProp,
4404
+ onChange: onChange2
4405
+ });
4406
+ const isControlled = prop !== void 0;
4407
+ const value = isControlled ? prop : uncontrolledProp;
4408
+ {
4409
+ const isControlledRef = React3__namespace.useRef(prop !== void 0);
4410
+ React3__namespace.useEffect(() => {
4411
+ const wasControlled = isControlledRef.current;
4412
+ if (wasControlled !== isControlled) {
4413
+ const from = wasControlled ? "controlled" : "uncontrolled";
4414
+ const to = isControlled ? "controlled" : "uncontrolled";
4415
+ console.warn(
4416
+ `${caller} is changing from ${from} to ${to}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`
4417
+ );
4418
+ }
4419
+ isControlledRef.current = isControlled;
4420
+ }, [isControlled, caller]);
4421
+ }
4422
+ const setValue = React3__namespace.useCallback(
4423
+ (nextValue) => {
4424
+ if (isControlled) {
4425
+ const value2 = isFunction(nextValue) ? nextValue(prop) : nextValue;
4426
+ if (value2 !== prop) {
4427
+ onChangeRef.current?.(value2);
4428
+ }
4429
+ } else {
4430
+ setUncontrolledProp(nextValue);
4431
+ }
4432
+ },
4433
+ [isControlled, prop, setUncontrolledProp, onChangeRef]
4434
+ );
4435
+ return [value, setValue];
4436
+ }
4437
+ function useUncontrolledState({
4438
+ defaultProp,
4439
+ onChange: onChange2
4440
+ }) {
4441
+ const [value, setValue] = React3__namespace.useState(defaultProp);
4442
+ const prevValueRef = React3__namespace.useRef(value);
4443
+ const onChangeRef = React3__namespace.useRef(onChange2);
4444
+ useInsertionEffect(() => {
4445
+ onChangeRef.current = onChange2;
4446
+ }, [onChange2]);
4447
+ React3__namespace.useEffect(() => {
4448
+ if (prevValueRef.current !== value) {
4449
+ onChangeRef.current?.(value);
4450
+ prevValueRef.current = value;
4451
+ }
4452
+ }, [value, prevValueRef]);
4453
+ return [value, setValue, onChangeRef];
4454
+ }
4455
+ function isFunction(value) {
4456
+ return typeof value === "function";
4457
+ }
4458
+ function usePrevious(value) {
4459
+ const ref = React3__namespace.useRef({ value, previous: value });
4460
+ return React3__namespace.useMemo(() => {
4461
+ if (ref.current.value !== value) {
4462
+ ref.current.previous = ref.current.value;
4463
+ ref.current.value = value;
4464
+ }
4465
+ return ref.current.previous;
4466
+ }, [value]);
4467
+ }
4468
+ function useSize(element) {
4469
+ const [size, setSize] = React3__namespace.useState(void 0);
4470
+ useLayoutEffect2(() => {
4471
+ if (element) {
4472
+ setSize({ width: element.offsetWidth, height: element.offsetHeight });
4473
+ const resizeObserver = new ResizeObserver((entries) => {
4474
+ if (!Array.isArray(entries)) {
4475
+ return;
4476
+ }
4477
+ if (!entries.length) {
4478
+ return;
4479
+ }
4480
+ const entry = entries[0];
4481
+ let width;
4482
+ let height;
4483
+ if ("borderBoxSize" in entry) {
4484
+ const borderSizeEntry = entry["borderBoxSize"];
4485
+ const borderSize = Array.isArray(borderSizeEntry) ? borderSizeEntry[0] : borderSizeEntry;
4486
+ width = borderSize["inlineSize"];
4487
+ height = borderSize["blockSize"];
4488
+ } else {
4489
+ width = element.offsetWidth;
4490
+ height = element.offsetHeight;
4491
+ }
4492
+ setSize({ width, height });
4493
+ });
4494
+ resizeObserver.observe(element, { box: "border-box" });
4495
+ return () => resizeObserver.unobserve(element);
4496
+ } else {
4497
+ setSize(void 0);
4498
+ }
4499
+ }, [element]);
4500
+ return size;
4501
+ }
4502
+ // @__NO_SIDE_EFFECTS__
4503
+ function createSlot2(ownerName) {
4504
+ const SlotClone = /* @__PURE__ */ createSlotClone2(ownerName);
4505
+ const Slot2 = React3__namespace.forwardRef((props, forwardedRef) => {
4506
+ const { children, ...slotProps } = props;
4507
+ const childrenArray = React3__namespace.Children.toArray(children);
4508
+ const slottable = childrenArray.find(isSlottable2);
4509
+ if (slottable) {
4510
+ const newElement = slottable.props.children;
4511
+ const newChildren = childrenArray.map((child) => {
4512
+ if (child === slottable) {
4513
+ if (React3__namespace.Children.count(newElement) > 1) return React3__namespace.Children.only(null);
4514
+ return React3__namespace.isValidElement(newElement) ? newElement.props.children : null;
4515
+ } else {
4516
+ return child;
4517
+ }
4518
+ });
4519
+ return /* @__PURE__ */ jsxRuntime.jsx(SlotClone, { ...slotProps, ref: forwardedRef, children: React3__namespace.isValidElement(newElement) ? React3__namespace.cloneElement(newElement, void 0, newChildren) : null });
4520
+ }
4521
+ return /* @__PURE__ */ jsxRuntime.jsx(SlotClone, { ...slotProps, ref: forwardedRef, children });
4522
+ });
4523
+ Slot2.displayName = `${ownerName}.Slot`;
4524
+ return Slot2;
4525
+ }
4526
+ // @__NO_SIDE_EFFECTS__
4527
+ function createSlotClone2(ownerName) {
4528
+ const SlotClone = React3__namespace.forwardRef((props, forwardedRef) => {
4529
+ const { children, ...slotProps } = props;
4530
+ if (React3__namespace.isValidElement(children)) {
4531
+ const childrenRef = getElementRef2(children);
4532
+ const props2 = mergeProps2(slotProps, children.props);
4533
+ if (children.type !== React3__namespace.Fragment) {
4534
+ props2.ref = forwardedRef ? composeRefs(forwardedRef, childrenRef) : childrenRef;
4535
+ }
4536
+ return React3__namespace.cloneElement(children, props2);
4537
+ }
4538
+ return React3__namespace.Children.count(children) > 1 ? React3__namespace.Children.only(null) : null;
4539
+ });
4540
+ SlotClone.displayName = `${ownerName}.SlotClone`;
4541
+ return SlotClone;
4542
+ }
4543
+ var SLOTTABLE_IDENTIFIER2 = Symbol("radix.slottable");
4544
+ function isSlottable2(child) {
4545
+ return React3__namespace.isValidElement(child) && typeof child.type === "function" && "__radixId" in child.type && child.type.__radixId === SLOTTABLE_IDENTIFIER2;
4546
+ }
4547
+ function mergeProps2(slotProps, childProps) {
4548
+ const overrideProps = { ...childProps };
4549
+ for (const propName in childProps) {
4550
+ const slotPropValue = slotProps[propName];
4551
+ const childPropValue = childProps[propName];
4552
+ const isHandler = /^on[A-Z]/.test(propName);
4553
+ if (isHandler) {
4554
+ if (slotPropValue && childPropValue) {
4555
+ overrideProps[propName] = (...args) => {
4556
+ const result = childPropValue(...args);
4557
+ slotPropValue(...args);
4558
+ return result;
4559
+ };
4560
+ } else if (slotPropValue) {
4561
+ overrideProps[propName] = slotPropValue;
4562
+ }
4563
+ } else if (propName === "style") {
4564
+ overrideProps[propName] = { ...slotPropValue, ...childPropValue };
4565
+ } else if (propName === "className") {
4566
+ overrideProps[propName] = [slotPropValue, childPropValue].filter(Boolean).join(" ");
4567
+ }
4568
+ }
4569
+ return { ...slotProps, ...overrideProps };
4570
+ }
4571
+ function getElementRef2(element) {
4572
+ let getter = Object.getOwnPropertyDescriptor(element.props, "ref")?.get;
4573
+ let mayWarn = getter && "isReactWarning" in getter && getter.isReactWarning;
4574
+ if (mayWarn) {
4575
+ return element.ref;
4576
+ }
4577
+ getter = Object.getOwnPropertyDescriptor(element, "ref")?.get;
4578
+ mayWarn = getter && "isReactWarning" in getter && getter.isReactWarning;
4579
+ if (mayWarn) {
4580
+ return element.props.ref;
4581
+ }
4582
+ return element.props.ref || element.ref;
4583
+ }
4584
+ var NODES = [
4585
+ "a",
4586
+ "button",
4587
+ "div",
4588
+ "form",
4589
+ "h2",
4590
+ "h3",
4591
+ "img",
4592
+ "input",
4593
+ "label",
4594
+ "li",
4595
+ "nav",
4596
+ "ol",
4597
+ "p",
4598
+ "select",
4599
+ "span",
4600
+ "svg",
4601
+ "ul"
4602
+ ];
4603
+ var Primitive = NODES.reduce((primitive, node) => {
4604
+ const Slot2 = createSlot2(`Primitive.${node}`);
4605
+ const Node2 = React3__namespace.forwardRef((props, forwardedRef) => {
4606
+ const { asChild, ...primitiveProps } = props;
4607
+ const Comp = asChild ? Slot2 : node;
4608
+ if (typeof window !== "undefined") {
4609
+ window[Symbol.for("radix-ui")] = true;
4610
+ }
4611
+ return /* @__PURE__ */ jsxRuntime.jsx(Comp, { ...primitiveProps, ref: forwardedRef });
4612
+ });
4613
+ Node2.displayName = `Primitive.${node}`;
4614
+ return { ...primitive, [node]: Node2 };
4615
+ }, {});
4616
+ var SWITCH_NAME = "Switch";
4617
+ var [createSwitchContext] = createContextScope(SWITCH_NAME);
4618
+ var [SwitchProvider, useSwitchContext] = createSwitchContext(SWITCH_NAME);
4619
+ var Switch = React3__namespace.forwardRef(
4620
+ (props, forwardedRef) => {
4621
+ const {
4622
+ __scopeSwitch,
4623
+ name,
4624
+ checked: checkedProp,
4625
+ defaultChecked,
4626
+ required,
4627
+ disabled: disabled2,
4628
+ value = "on",
4629
+ onCheckedChange,
4630
+ form,
4631
+ ...switchProps
4632
+ } = props;
4633
+ const [button, setButton] = React3__namespace.useState(null);
4634
+ const composedRefs = useComposedRefs(forwardedRef, (node) => setButton(node));
4635
+ const hasConsumerStoppedPropagationRef = React3__namespace.useRef(false);
4636
+ const isFormControl = button ? form || !!button.closest("form") : true;
4637
+ const [checked, setChecked] = useControllableState({
4638
+ prop: checkedProp,
4639
+ defaultProp: defaultChecked ?? false,
4640
+ onChange: onCheckedChange,
4641
+ caller: SWITCH_NAME
4642
+ });
4643
+ return /* @__PURE__ */ jsxRuntime.jsxs(SwitchProvider, { scope: __scopeSwitch, checked, disabled: disabled2, children: [
4644
+ /* @__PURE__ */ jsxRuntime.jsx(
4645
+ Primitive.button,
4646
+ {
4647
+ type: "button",
4648
+ role: "switch",
4649
+ "aria-checked": checked,
4650
+ "aria-required": required,
4651
+ "data-state": getState(checked),
4652
+ "data-disabled": disabled2 ? "" : void 0,
4653
+ disabled: disabled2,
4654
+ value,
4655
+ ...switchProps,
4656
+ ref: composedRefs,
4657
+ onClick: composeEventHandlers(props.onClick, (event) => {
4658
+ setChecked((prevChecked) => !prevChecked);
4659
+ if (isFormControl) {
4660
+ hasConsumerStoppedPropagationRef.current = event.isPropagationStopped();
4661
+ if (!hasConsumerStoppedPropagationRef.current) event.stopPropagation();
4662
+ }
4663
+ })
4664
+ }
4665
+ ),
4666
+ isFormControl && /* @__PURE__ */ jsxRuntime.jsx(
4667
+ SwitchBubbleInput,
4668
+ {
4669
+ control: button,
4670
+ bubbles: !hasConsumerStoppedPropagationRef.current,
4671
+ name,
4672
+ value,
4673
+ checked,
4674
+ required,
4675
+ disabled: disabled2,
4676
+ form,
4677
+ style: { transform: "translateX(-100%)" }
4678
+ }
4679
+ )
4680
+ ] });
4681
+ }
4682
+ );
4683
+ Switch.displayName = SWITCH_NAME;
4684
+ var THUMB_NAME = "SwitchThumb";
4685
+ var SwitchThumb = React3__namespace.forwardRef(
4686
+ (props, forwardedRef) => {
4687
+ const { __scopeSwitch, ...thumbProps } = props;
4688
+ const context = useSwitchContext(THUMB_NAME, __scopeSwitch);
4689
+ return /* @__PURE__ */ jsxRuntime.jsx(
4690
+ Primitive.span,
4691
+ {
4692
+ "data-state": getState(context.checked),
4693
+ "data-disabled": context.disabled ? "" : void 0,
4694
+ ...thumbProps,
4695
+ ref: forwardedRef
4696
+ }
4697
+ );
4698
+ }
4699
+ );
4700
+ SwitchThumb.displayName = THUMB_NAME;
4701
+ var BUBBLE_INPUT_NAME = "SwitchBubbleInput";
4702
+ var SwitchBubbleInput = React3__namespace.forwardRef(
4703
+ ({
4704
+ __scopeSwitch,
4705
+ control,
4706
+ checked,
4707
+ bubbles = true,
4708
+ ...props
4709
+ }, forwardedRef) => {
4710
+ const ref = React3__namespace.useRef(null);
4711
+ const composedRefs = useComposedRefs(ref, forwardedRef);
4712
+ const prevChecked = usePrevious(checked);
4713
+ const controlSize = useSize(control);
4714
+ React3__namespace.useEffect(() => {
4715
+ const input = ref.current;
4716
+ if (!input) return;
4717
+ const inputProto = window.HTMLInputElement.prototype;
4718
+ const descriptor = Object.getOwnPropertyDescriptor(
4719
+ inputProto,
4720
+ "checked"
4721
+ );
4722
+ const setChecked = descriptor.set;
4723
+ if (prevChecked !== checked && setChecked) {
4724
+ const event = new Event("click", { bubbles });
4725
+ setChecked.call(input, checked);
4726
+ input.dispatchEvent(event);
4727
+ }
4728
+ }, [prevChecked, checked, bubbles]);
4729
+ return /* @__PURE__ */ jsxRuntime.jsx(
4730
+ "input",
4731
+ {
4732
+ type: "checkbox",
4733
+ "aria-hidden": true,
4734
+ defaultChecked: checked,
4735
+ ...props,
4736
+ tabIndex: -1,
4737
+ ref: composedRefs,
4738
+ style: {
4739
+ ...props.style,
4740
+ ...controlSize,
4741
+ position: "absolute",
4742
+ pointerEvents: "none",
4743
+ opacity: 0,
4744
+ margin: 0
4745
+ }
4746
+ }
4747
+ );
4748
+ }
4749
+ );
4750
+ SwitchBubbleInput.displayName = BUBBLE_INPUT_NAME;
4751
+ function getState(checked) {
4752
+ return checked ? "checked" : "unchecked";
4753
+ }
4754
+ var Root = Switch;
4755
+ var Thumb = SwitchThumb;
4756
+
4757
+ // src/components/ui/switch.tsx
4758
+ var switchRootVariants = cva(
4759
+ "uii:peer uii:inline-flex uii:shrink-0 uii:cursor-pointer uii:items-center uii:rounded-full uii:border-2 uii:border-transparent uii:transition-all uii:outline-none uii:focus-visible:border-ring uii:focus-visible:ring-ring/50 uii:focus-visible:ring-[3px] uii:disabled:cursor-not-allowed uii:disabled:opacity-50 uii:data-[state=checked]:bg-primary uii:data-[state=unchecked]:bg-input uii:shadow-xs",
4760
+ {
4761
+ variants: {
4762
+ size: {
4763
+ xs: "uii:h-3 uii:w-6",
4764
+ // tiny track
4765
+ sm: "uii:h-4 uii:w-7",
4766
+ // small track
4767
+ md: "uii:h-5 uii:w-9",
4768
+ // current default
4769
+ lg: "uii:h-7 uii:w-14",
4770
+ // larger track
4771
+ xl: "uii:h-9 uii:w-20"
4772
+ // extra large track
4773
+ }
4774
+ },
4775
+ defaultVariants: { size: "md" }
4776
+ }
4777
+ );
4778
+ var switchThumbVariants = cva(
4779
+ "uii:bg-background uii:pointer-events-none uii:block uii:rounded-full uii:ring-0 uii:shadow-lg uii:transition-transform uii:data-[state=unchecked]:translate-x-0",
4780
+ {
4781
+ variants: {
4782
+ size: {
4783
+ xs: "uii:size-2 uii:data-[state=checked]:translate-x-3",
4784
+ sm: "uii:size-3 uii:data-[state=checked]:translate-x-3",
4785
+ md: "uii:size-4 uii:data-[state=checked]:translate-x-4",
4786
+ // current default
4787
+ lg: "uii:size-6 uii:data-[state=checked]:translate-x-6",
4788
+ xl: "uii:size-8 uii:data-[state=checked]:translate-x-8"
4789
+ }
4790
+ },
4791
+ defaultVariants: { size: "md" }
4792
+ }
4793
+ );
4794
+ function Switch2({ className, size, ...props }) {
4795
+ return /* @__PURE__ */ React3__namespace.createElement(
4796
+ Root,
4797
+ {
4798
+ "data-slot": "switch",
4799
+ className: cn(switchRootVariants({ size }), className),
4800
+ ...props
4801
+ },
4802
+ /* @__PURE__ */ React3__namespace.createElement(
4803
+ Thumb,
4804
+ {
4805
+ "data-slot": "switch-thumb",
4806
+ className: cn(switchThumbVariants({ size }))
4807
+ }
4808
+ )
4809
+ );
4810
+ }
4811
+
4812
+ // src/components/slots/SlotEnable.tsx
4813
+ var SlotEnable = (props) => {
4814
+ const { slotId } = props;
4815
+ return /* @__PURE__ */ React.createElement("div", { className: "uii:flex uii:items-center uii:justify-center uii:ml-1" }, /* @__PURE__ */ React.createElement(Switch2, { size: "xs", checked: true, onCheckedChange: () => {
4816
+ } }));
4817
+ };
4818
+
4819
+ // ../../node_modules/.pnpm/@fortawesome+fontawesome-svg-core@6.7.2/node_modules/@fortawesome/fontawesome-svg-core/index.mjs
4820
+ function _defineProperty(e, r3, t2) {
4821
+ return (r3 = _toPropertyKey(r3)) in e ? Object.defineProperty(e, r3, {
4822
+ value: t2,
4823
+ enumerable: true,
4824
+ configurable: true,
4825
+ writable: true
4826
+ }) : e[r3] = t2, e;
4827
+ }
4828
+ function ownKeys(e, r3) {
4829
+ var t2 = Object.keys(e);
4830
+ if (Object.getOwnPropertySymbols) {
4831
+ var o2 = Object.getOwnPropertySymbols(e);
4832
+ r3 && (o2 = o2.filter(function(r4) {
4833
+ return Object.getOwnPropertyDescriptor(e, r4).enumerable;
4834
+ })), t2.push.apply(t2, o2);
4835
+ }
4836
+ return t2;
4837
+ }
4838
+ function _objectSpread2(e) {
4839
+ for (var r3 = 1; r3 < arguments.length; r3++) {
4840
+ var t2 = null != arguments[r3] ? arguments[r3] : {};
4841
+ r3 % 2 ? ownKeys(Object(t2), true).forEach(function(r4) {
4842
+ _defineProperty(e, r4, t2[r4]);
4843
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t2)) : ownKeys(Object(t2)).forEach(function(r4) {
4844
+ Object.defineProperty(e, r4, Object.getOwnPropertyDescriptor(t2, r4));
4845
+ });
4846
+ }
4847
+ return e;
4848
+ }
4849
+ function _toPrimitive(t2, r3) {
4850
+ if ("object" != typeof t2 || !t2) return t2;
4851
+ var e = t2[Symbol.toPrimitive];
4852
+ if (void 0 !== e) {
4853
+ var i = e.call(t2, r3);
4854
+ if ("object" != typeof i) return i;
4855
+ throw new TypeError("@@toPrimitive must return a primitive value.");
4856
+ }
4857
+ return ("string" === r3 ? String : Number)(t2);
4858
+ }
4859
+ function _toPropertyKey(t2) {
4860
+ var i = _toPrimitive(t2, "string");
4861
+ return "symbol" == typeof i ? i : i + "";
4862
+ }
4863
+ var noop = () => {
4864
+ };
4865
+ var _WINDOW = {};
4866
+ var _DOCUMENT = {};
4867
+ var _MUTATION_OBSERVER = null;
4868
+ var _PERFORMANCE = {
4869
+ mark: noop,
4870
+ measure: noop
4871
+ };
4872
+ try {
4873
+ if (typeof window !== "undefined") _WINDOW = window;
4874
+ if (typeof document !== "undefined") _DOCUMENT = document;
4875
+ if (typeof MutationObserver !== "undefined") _MUTATION_OBSERVER = MutationObserver;
4876
+ if (typeof performance !== "undefined") _PERFORMANCE = performance;
4877
+ } catch (e) {
4878
+ }
4879
+ var {
4880
+ userAgent = ""
4881
+ } = _WINDOW.navigator || {};
4882
+ var WINDOW = _WINDOW;
4883
+ var DOCUMENT = _DOCUMENT;
4884
+ var MUTATION_OBSERVER = _MUTATION_OBSERVER;
4885
+ var PERFORMANCE = _PERFORMANCE;
4886
+ !!WINDOW.document;
4887
+ var IS_DOM = !!DOCUMENT.documentElement && !!DOCUMENT.head && typeof DOCUMENT.addEventListener === "function" && typeof DOCUMENT.createElement === "function";
4888
+ var IS_IE = ~userAgent.indexOf("MSIE") || ~userAgent.indexOf("Trident/");
4889
+ var p = /fa(s|r|l|t|d|dr|dl|dt|b|k|kd|ss|sr|sl|st|sds|sdr|sdl|sdt)?[\-\ ]/;
4890
+ var g = /Font ?Awesome ?([56 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Sharp Duotone|Sharp|Kit)?.*/i;
4891
+ var S = {
4892
+ classic: {
4893
+ fa: "solid",
4894
+ fas: "solid",
4895
+ "fa-solid": "solid",
4896
+ far: "regular",
4897
+ "fa-regular": "regular",
4898
+ fal: "light",
4899
+ "fa-light": "light",
4900
+ fat: "thin",
4901
+ "fa-thin": "thin",
4902
+ fab: "brands",
4903
+ "fa-brands": "brands"
4904
+ },
4905
+ duotone: {
4906
+ fa: "solid",
4907
+ fad: "solid",
4908
+ "fa-solid": "solid",
4909
+ "fa-duotone": "solid",
4910
+ fadr: "regular",
4911
+ "fa-regular": "regular",
4912
+ fadl: "light",
4913
+ "fa-light": "light",
4914
+ fadt: "thin",
4915
+ "fa-thin": "thin"
4916
+ },
4917
+ sharp: {
4918
+ fa: "solid",
4919
+ fass: "solid",
4920
+ "fa-solid": "solid",
4921
+ fasr: "regular",
4922
+ "fa-regular": "regular",
4923
+ fasl: "light",
4924
+ "fa-light": "light",
4925
+ fast: "thin",
4926
+ "fa-thin": "thin"
4927
+ },
4928
+ "sharp-duotone": {
4929
+ fa: "solid",
4930
+ fasds: "solid",
4931
+ "fa-solid": "solid",
4932
+ fasdr: "regular",
4933
+ "fa-regular": "regular",
4934
+ fasdl: "light",
4935
+ "fa-light": "light",
4936
+ fasdt: "thin",
4937
+ "fa-thin": "thin"
4938
+ }
4939
+ };
4940
+ var A = {
4941
+ GROUP: "duotone-group",
4942
+ PRIMARY: "primary",
4943
+ SECONDARY: "secondary"
4944
+ };
4945
+ var P = ["fa-classic", "fa-duotone", "fa-sharp", "fa-sharp-duotone"];
4946
+ var s = "classic";
4947
+ var t = "duotone";
4948
+ var r2 = "sharp";
4949
+ var o = "sharp-duotone";
4950
+ var L = [s, t, r2, o];
4951
+ var G = {
4952
+ classic: {
4953
+ 900: "fas",
4954
+ 400: "far",
4955
+ normal: "far",
4956
+ 300: "fal",
4957
+ 100: "fat"
4958
+ },
4959
+ duotone: {
4960
+ 900: "fad",
4961
+ 400: "fadr",
4962
+ 300: "fadl",
4963
+ 100: "fadt"
4964
+ },
4965
+ sharp: {
4966
+ 900: "fass",
4967
+ 400: "fasr",
4968
+ 300: "fasl",
4969
+ 100: "fast"
4970
+ },
4971
+ "sharp-duotone": {
4972
+ 900: "fasds",
4973
+ 400: "fasdr",
4974
+ 300: "fasdl",
4975
+ 100: "fasdt"
4976
+ }
4977
+ };
4978
+ var lt = {
4979
+ "Font Awesome 6 Free": {
4980
+ 900: "fas",
4981
+ 400: "far"
4982
+ },
4983
+ "Font Awesome 6 Pro": {
4984
+ 900: "fas",
4985
+ 400: "far",
4986
+ normal: "far",
4987
+ 300: "fal",
4988
+ 100: "fat"
4989
+ },
4990
+ "Font Awesome 6 Brands": {
4991
+ 400: "fab",
4992
+ normal: "fab"
4993
+ },
4994
+ "Font Awesome 6 Duotone": {
4995
+ 900: "fad",
4996
+ 400: "fadr",
4997
+ normal: "fadr",
4998
+ 300: "fadl",
4999
+ 100: "fadt"
5000
+ },
5001
+ "Font Awesome 6 Sharp": {
5002
+ 900: "fass",
5003
+ 400: "fasr",
5004
+ normal: "fasr",
5005
+ 300: "fasl",
5006
+ 100: "fast"
5007
+ },
5008
+ "Font Awesome 6 Sharp Duotone": {
5009
+ 900: "fasds",
5010
+ 400: "fasdr",
5011
+ normal: "fasdr",
5012
+ 300: "fasdl",
5013
+ 100: "fasdt"
5014
+ }
5015
+ };
5016
+ var pt = /* @__PURE__ */ new Map([["classic", {
5017
+ defaultShortPrefixId: "fas",
5018
+ defaultStyleId: "solid",
5019
+ styleIds: ["solid", "regular", "light", "thin", "brands"],
5020
+ futureStyleIds: [],
5021
+ defaultFontWeight: 900
5022
+ }], ["sharp", {
5023
+ defaultShortPrefixId: "fass",
5024
+ defaultStyleId: "solid",
5025
+ styleIds: ["solid", "regular", "light", "thin"],
5026
+ futureStyleIds: [],
5027
+ defaultFontWeight: 900
5028
+ }], ["duotone", {
5029
+ defaultShortPrefixId: "fad",
5030
+ defaultStyleId: "solid",
5031
+ styleIds: ["solid", "regular", "light", "thin"],
5032
+ futureStyleIds: [],
5033
+ defaultFontWeight: 900
5034
+ }], ["sharp-duotone", {
5035
+ defaultShortPrefixId: "fasds",
5036
+ defaultStyleId: "solid",
5037
+ styleIds: ["solid", "regular", "light", "thin"],
5038
+ futureStyleIds: [],
5039
+ defaultFontWeight: 900
5040
+ }]]);
5041
+ var xt = {
5042
+ classic: {
5043
+ solid: "fas",
5044
+ regular: "far",
5045
+ light: "fal",
5046
+ thin: "fat",
5047
+ brands: "fab"
5048
+ },
5049
+ duotone: {
5050
+ solid: "fad",
5051
+ regular: "fadr",
5052
+ light: "fadl",
5053
+ thin: "fadt"
5054
+ },
5055
+ sharp: {
5056
+ solid: "fass",
5057
+ regular: "fasr",
5058
+ light: "fasl",
5059
+ thin: "fast"
5060
+ },
5061
+ "sharp-duotone": {
5062
+ solid: "fasds",
5063
+ regular: "fasdr",
5064
+ light: "fasdl",
5065
+ thin: "fasdt"
5066
+ }
5067
+ };
5068
+ var Ft = ["fak", "fa-kit", "fakd", "fa-kit-duotone"];
5069
+ var St = {
5070
+ kit: {
5071
+ fak: "kit",
5072
+ "fa-kit": "kit"
5073
+ },
5074
+ "kit-duotone": {
5075
+ fakd: "kit-duotone",
5076
+ "fa-kit-duotone": "kit-duotone"
5077
+ }
5078
+ };
5079
+ var At = ["kit"];
5080
+ var Ct = {
5081
+ kit: {
5082
+ "fa-kit": "fak"
5083
+ }};
5084
+ var Lt = ["fak", "fakd"];
5085
+ var Wt = {
5086
+ kit: {
5087
+ fak: "fa-kit"
5088
+ }};
5089
+ var Et = {
5090
+ kit: {
5091
+ kit: "fak"
5092
+ },
5093
+ "kit-duotone": {
5094
+ "kit-duotone": "fakd"
5095
+ }
5096
+ };
5097
+ var t$1 = {
5098
+ GROUP: "duotone-group",
5099
+ SWAP_OPACITY: "swap-opacity",
5100
+ PRIMARY: "primary",
5101
+ SECONDARY: "secondary"
5102
+ };
5103
+ var r$1 = ["fa-classic", "fa-duotone", "fa-sharp", "fa-sharp-duotone"];
5104
+ var bt$1 = ["fak", "fa-kit", "fakd", "fa-kit-duotone"];
5105
+ var Yt = {
5106
+ "Font Awesome Kit": {
5107
+ 400: "fak",
5108
+ normal: "fak"
5109
+ },
5110
+ "Font Awesome Kit Duotone": {
5111
+ 400: "fakd",
5112
+ normal: "fakd"
5113
+ }
5114
+ };
5115
+ var ua = {
5116
+ classic: {
5117
+ "fa-brands": "fab",
5118
+ "fa-duotone": "fad",
5119
+ "fa-light": "fal",
5120
+ "fa-regular": "far",
5121
+ "fa-solid": "fas",
5122
+ "fa-thin": "fat"
5123
+ },
5124
+ duotone: {
5125
+ "fa-regular": "fadr",
5126
+ "fa-light": "fadl",
5127
+ "fa-thin": "fadt"
5128
+ },
5129
+ sharp: {
5130
+ "fa-solid": "fass",
5131
+ "fa-regular": "fasr",
5132
+ "fa-light": "fasl",
5133
+ "fa-thin": "fast"
5134
+ },
5135
+ "sharp-duotone": {
5136
+ "fa-solid": "fasds",
5137
+ "fa-regular": "fasdr",
5138
+ "fa-light": "fasdl",
5139
+ "fa-thin": "fasdt"
5140
+ }
5141
+ };
5142
+ var I$1 = {
5143
+ classic: ["fas", "far", "fal", "fat", "fad"],
5144
+ duotone: ["fadr", "fadl", "fadt"],
5145
+ sharp: ["fass", "fasr", "fasl", "fast"],
5146
+ "sharp-duotone": ["fasds", "fasdr", "fasdl", "fasdt"]
5147
+ };
5148
+ var ga = {
5149
+ classic: {
5150
+ fab: "fa-brands",
5151
+ fad: "fa-duotone",
5152
+ fal: "fa-light",
5153
+ far: "fa-regular",
5154
+ fas: "fa-solid",
5155
+ fat: "fa-thin"
5156
+ },
5157
+ duotone: {
5158
+ fadr: "fa-regular",
5159
+ fadl: "fa-light",
5160
+ fadt: "fa-thin"
5161
+ },
5162
+ sharp: {
5163
+ fass: "fa-solid",
5164
+ fasr: "fa-regular",
5165
+ fasl: "fa-light",
5166
+ fast: "fa-thin"
5167
+ },
5168
+ "sharp-duotone": {
5169
+ fasds: "fa-solid",
5170
+ fasdr: "fa-regular",
5171
+ fasdl: "fa-light",
5172
+ fasdt: "fa-thin"
5173
+ }
5174
+ };
5175
+ var x = ["fa-solid", "fa-regular", "fa-light", "fa-thin", "fa-duotone", "fa-brands"];
5176
+ var Ia = ["fa", "fas", "far", "fal", "fat", "fad", "fadr", "fadl", "fadt", "fab", "fass", "fasr", "fasl", "fast", "fasds", "fasdr", "fasdl", "fasdt", ...r$1, ...x];
5177
+ var m$1 = ["solid", "regular", "light", "thin", "duotone", "brands"];
5178
+ var c$1 = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10];
5179
+ var F$1 = c$1.concat([11, 12, 13, 14, 15, 16, 17, 18, 19, 20]);
5180
+ var ma = [...Object.keys(I$1), ...m$1, "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", t$1.GROUP, t$1.SWAP_OPACITY, t$1.PRIMARY, t$1.SECONDARY].concat(c$1.map((a) => "".concat(a, "x"))).concat(F$1.map((a) => "w-".concat(a)));
5181
+ var wa = {
5182
+ "Font Awesome 5 Free": {
5183
+ 900: "fas",
5184
+ 400: "far"
5185
+ },
5186
+ "Font Awesome 5 Pro": {
5187
+ 900: "fas",
5188
+ 400: "far",
5189
+ normal: "far",
5190
+ 300: "fal"
5191
+ },
5192
+ "Font Awesome 5 Brands": {
5193
+ 400: "fab",
5194
+ normal: "fab"
5195
+ },
5196
+ "Font Awesome 5 Duotone": {
5197
+ 900: "fad"
5198
+ }
5199
+ };
5200
+ var NAMESPACE_IDENTIFIER = "___FONT_AWESOME___";
5201
+ var UNITS_IN_GRID = 16;
5202
+ var DEFAULT_CSS_PREFIX = "fa";
5203
+ var DEFAULT_REPLACEMENT_CLASS = "svg-inline--fa";
5204
+ var DATA_FA_I2SVG = "data-fa-i2svg";
5205
+ var DATA_FA_PSEUDO_ELEMENT = "data-fa-pseudo-element";
5206
+ var DATA_FA_PSEUDO_ELEMENT_PENDING = "data-fa-pseudo-element-pending";
5207
+ var DATA_PREFIX = "data-prefix";
5208
+ var DATA_ICON = "data-icon";
5209
+ var HTML_CLASS_I2SVG_BASE_CLASS = "fontawesome-i2svg";
5210
+ var MUTATION_APPROACH_ASYNC = "async";
5211
+ var TAGNAMES_TO_SKIP_FOR_PSEUDOELEMENTS = ["HTML", "HEAD", "STYLE", "SCRIPT"];
5212
+ var PRODUCTION = (() => {
5213
+ try {
5214
+ return process.env.NODE_ENV === "production";
5215
+ } catch (e$$1) {
5216
+ return false;
5217
+ }
5218
+ })();
5219
+ function familyProxy(obj) {
5220
+ return new Proxy(obj, {
5221
+ get(target, prop) {
5222
+ return prop in target ? target[prop] : target[s];
5223
+ }
5224
+ });
5225
+ }
5226
+ var _PREFIX_TO_STYLE = _objectSpread2({}, S);
5227
+ _PREFIX_TO_STYLE[s] = _objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2({}, {
5228
+ "fa-duotone": "duotone"
5229
+ }), S[s]), St["kit"]), St["kit-duotone"]);
5230
+ var PREFIX_TO_STYLE = familyProxy(_PREFIX_TO_STYLE);
5231
+ var _STYLE_TO_PREFIX = _objectSpread2({}, xt);
5232
+ _STYLE_TO_PREFIX[s] = _objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2({}, {
5233
+ duotone: "fad"
5234
+ }), _STYLE_TO_PREFIX[s]), Et["kit"]), Et["kit-duotone"]);
5235
+ var STYLE_TO_PREFIX = familyProxy(_STYLE_TO_PREFIX);
5236
+ var _PREFIX_TO_LONG_STYLE = _objectSpread2({}, ga);
5237
+ _PREFIX_TO_LONG_STYLE[s] = _objectSpread2(_objectSpread2({}, _PREFIX_TO_LONG_STYLE[s]), Wt["kit"]);
5238
+ var PREFIX_TO_LONG_STYLE = familyProxy(_PREFIX_TO_LONG_STYLE);
5239
+ var _LONG_STYLE_TO_PREFIX = _objectSpread2({}, ua);
5240
+ _LONG_STYLE_TO_PREFIX[s] = _objectSpread2(_objectSpread2({}, _LONG_STYLE_TO_PREFIX[s]), Ct["kit"]);
5241
+ familyProxy(_LONG_STYLE_TO_PREFIX);
5242
+ var ICON_SELECTION_SYNTAX_PATTERN = p;
5243
+ var LAYERS_TEXT_CLASSNAME = "fa-layers-text";
5244
+ var FONT_FAMILY_PATTERN = g;
5245
+ var _FONT_WEIGHT_TO_PREFIX = _objectSpread2({}, G);
5246
+ familyProxy(_FONT_WEIGHT_TO_PREFIX);
5247
+ var ATTRIBUTES_WATCHED_FOR_MUTATION = ["class", "data-prefix", "data-icon", "data-fa-transform", "data-fa-mask"];
5248
+ var DUOTONE_CLASSES = A;
5249
+ var RESERVED_CLASSES = [...At, ...ma];
5250
+ var initial = WINDOW.FontAwesomeConfig || {};
5251
+ function getAttrConfig(attr) {
5252
+ var element = DOCUMENT.querySelector("script[" + attr + "]");
5253
+ if (element) {
5254
+ return element.getAttribute(attr);
5255
+ }
5256
+ }
5257
+ function coerce(val) {
5258
+ if (val === "") return true;
5259
+ if (val === "false") return false;
5260
+ if (val === "true") return true;
5261
+ return val;
5262
+ }
5263
+ if (DOCUMENT && typeof DOCUMENT.querySelector === "function") {
5264
+ const 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"]];
5265
+ attrs.forEach((_ref) => {
5266
+ let [attr, key] = _ref;
5267
+ const val = coerce(getAttrConfig(attr));
5268
+ if (val !== void 0 && val !== null) {
5269
+ initial[key] = val;
5270
+ }
5271
+ });
5272
+ }
5273
+ var _default = {
5274
+ styleDefault: "solid",
5275
+ familyDefault: s,
5276
+ cssPrefix: DEFAULT_CSS_PREFIX,
5277
+ replacementClass: DEFAULT_REPLACEMENT_CLASS,
5278
+ autoReplaceSvg: true,
5279
+ autoAddCss: true,
5280
+ autoA11y: true,
5281
+ searchPseudoElements: false,
5282
+ observeMutations: true,
5283
+ mutateApproach: "async",
5284
+ keepOriginalSource: true,
5285
+ measurePerformance: false,
5286
+ showMissingIcons: true
5287
+ };
5288
+ if (initial.familyPrefix) {
5289
+ initial.cssPrefix = initial.familyPrefix;
5290
+ }
5291
+ var _config = _objectSpread2(_objectSpread2({}, _default), initial);
5292
+ if (!_config.autoReplaceSvg) _config.observeMutations = false;
5293
+ var config = {};
5294
+ Object.keys(_default).forEach((key) => {
5295
+ Object.defineProperty(config, key, {
5296
+ enumerable: true,
5297
+ set: function(val) {
5298
+ _config[key] = val;
5299
+ _onChangeCb.forEach((cb) => cb(config));
5300
+ },
5301
+ get: function() {
5302
+ return _config[key];
5303
+ }
5304
+ });
5305
+ });
5306
+ Object.defineProperty(config, "familyPrefix", {
5307
+ enumerable: true,
5308
+ set: function(val) {
5309
+ _config.cssPrefix = val;
5310
+ _onChangeCb.forEach((cb) => cb(config));
5311
+ },
5312
+ get: function() {
5313
+ return _config.cssPrefix;
5314
+ }
5315
+ });
5316
+ WINDOW.FontAwesomeConfig = config;
5317
+ var _onChangeCb = [];
5318
+ function onChange(cb) {
5319
+ _onChangeCb.push(cb);
5320
+ return () => {
5321
+ _onChangeCb.splice(_onChangeCb.indexOf(cb), 1);
5322
+ };
5323
+ }
5324
+ var d$2 = UNITS_IN_GRID;
5325
+ var meaninglessTransform = {
5326
+ size: 16,
5327
+ x: 0,
5328
+ y: 0,
5329
+ rotate: 0,
5330
+ flipX: false,
5331
+ flipY: false
5332
+ };
5333
+ function insertCss(css2) {
5334
+ if (!css2 || !IS_DOM) {
5335
+ return;
5336
+ }
5337
+ const style = DOCUMENT.createElement("style");
5338
+ style.setAttribute("type", "text/css");
5339
+ style.innerHTML = css2;
5340
+ const headChildren = DOCUMENT.head.childNodes;
5341
+ let beforeChild = null;
5342
+ for (let i = headChildren.length - 1; i > -1; i--) {
5343
+ const child = headChildren[i];
5344
+ const tagName = (child.tagName || "").toUpperCase();
5345
+ if (["STYLE", "LINK"].indexOf(tagName) > -1) {
5346
+ beforeChild = child;
5347
+ }
5348
+ }
5349
+ DOCUMENT.head.insertBefore(style, beforeChild);
5350
+ return css2;
5351
+ }
5352
+ var idPool = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";
5353
+ function nextUniqueId() {
5354
+ let size = 12;
5355
+ let id = "";
5356
+ while (size-- > 0) {
5357
+ id += idPool[Math.random() * 62 | 0];
5358
+ }
5359
+ return id;
5360
+ }
5361
+ function toArray(obj) {
5362
+ const array = [];
5363
+ for (let i = (obj || []).length >>> 0; i--; ) {
5364
+ array[i] = obj[i];
5365
+ }
5366
+ return array;
5367
+ }
5368
+ function classArray(node) {
5369
+ if (node.classList) {
5370
+ return toArray(node.classList);
5371
+ } else {
5372
+ return (node.getAttribute("class") || "").split(" ").filter((i) => i);
5373
+ }
5374
+ }
5375
+ function htmlEscape(str) {
5376
+ return "".concat(str).replace(/&/g, "&amp;").replace(/"/g, "&quot;").replace(/'/g, "&#39;").replace(/</g, "&lt;").replace(/>/g, "&gt;");
5377
+ }
5378
+ function joinAttributes(attributes) {
5379
+ return Object.keys(attributes || {}).reduce((acc, attributeName) => {
5380
+ return acc + "".concat(attributeName, '="').concat(htmlEscape(attributes[attributeName]), '" ');
5381
+ }, "").trim();
5382
+ }
5383
+ function joinStyles(styles2) {
5384
+ return Object.keys(styles2 || {}).reduce((acc, styleName) => {
5385
+ return acc + "".concat(styleName, ": ").concat(styles2[styleName].trim(), ";");
5386
+ }, "");
5387
+ }
5388
+ function transformIsMeaningful(transform) {
5389
+ return transform.size !== meaninglessTransform.size || transform.x !== meaninglessTransform.x || transform.y !== meaninglessTransform.y || transform.rotate !== meaninglessTransform.rotate || transform.flipX || transform.flipY;
5390
+ }
5391
+ function transformForSvg(_ref) {
5392
+ let {
5393
+ transform,
5394
+ containerWidth,
5395
+ iconWidth
5396
+ } = _ref;
5397
+ const outer = {
5398
+ transform: "translate(".concat(containerWidth / 2, " 256)")
5399
+ };
5400
+ const innerTranslate = "translate(".concat(transform.x * 32, ", ").concat(transform.y * 32, ") ");
5401
+ const innerScale = "scale(".concat(transform.size / 16 * (transform.flipX ? -1 : 1), ", ").concat(transform.size / 16 * (transform.flipY ? -1 : 1), ") ");
5402
+ const innerRotate = "rotate(".concat(transform.rotate, " 0 0)");
5403
+ const inner = {
5404
+ transform: "".concat(innerTranslate, " ").concat(innerScale, " ").concat(innerRotate)
5405
+ };
5406
+ const path = {
5407
+ transform: "translate(".concat(iconWidth / 2 * -1, " -256)")
5408
+ };
5409
+ return {
5410
+ outer,
5411
+ inner,
5412
+ path
5413
+ };
5414
+ }
5415
+ function transformForCss(_ref2) {
5416
+ let {
5417
+ transform,
5418
+ width = UNITS_IN_GRID,
5419
+ height = UNITS_IN_GRID,
5420
+ startCentered = false
5421
+ } = _ref2;
5422
+ let val = "";
5423
+ if (startCentered && IS_IE) {
5424
+ val += "translate(".concat(transform.x / d$2 - width / 2, "em, ").concat(transform.y / d$2 - height / 2, "em) ");
5425
+ } else if (startCentered) {
5426
+ val += "translate(calc(-50% + ".concat(transform.x / d$2, "em), calc(-50% + ").concat(transform.y / d$2, "em)) ");
5427
+ } else {
5428
+ val += "translate(".concat(transform.x / d$2, "em, ").concat(transform.y / d$2, "em) ");
5429
+ }
5430
+ val += "scale(".concat(transform.size / d$2 * (transform.flipX ? -1 : 1), ", ").concat(transform.size / d$2 * (transform.flipY ? -1 : 1), ") ");
5431
+ val += "rotate(".concat(transform.rotate, "deg) ");
5432
+ return val;
5433
+ }
5434
+ var baseStyles = ':root, :host {\n --fa-font-solid: normal 900 1em/1 "Font Awesome 6 Free";\n --fa-font-regular: normal 400 1em/1 "Font Awesome 6 Free";\n --fa-font-light: normal 300 1em/1 "Font Awesome 6 Pro";\n --fa-font-thin: normal 100 1em/1 "Font Awesome 6 Pro";\n --fa-font-duotone: normal 900 1em/1 "Font Awesome 6 Duotone";\n --fa-font-duotone-regular: normal 400 1em/1 "Font Awesome 6 Duotone";\n --fa-font-duotone-light: normal 300 1em/1 "Font Awesome 6 Duotone";\n --fa-font-duotone-thin: normal 100 1em/1 "Font Awesome 6 Duotone";\n --fa-font-brands: normal 400 1em/1 "Font Awesome 6 Brands";\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-sharp-duotone-solid: normal 900 1em/1 "Font Awesome 6 Sharp Duotone";\n --fa-font-sharp-duotone-regular: normal 400 1em/1 "Font Awesome 6 Sharp Duotone";\n --fa-font-sharp-duotone-light: normal 300 1em/1 "Font Awesome 6 Sharp Duotone";\n --fa-font-sharp-duotone-thin: normal 100 1em/1 "Font Awesome 6 Sharp Duotone";\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 transform-origin: center center;\n}\n\n.fa-layers-text {\n left: 50%;\n top: 50%;\n transform: translate(-50%, -50%);\n transform-origin: center center;\n}\n\n.fa-layers-counter {\n background-color: var(--fa-counter-background-color, #ff253a);\n border-radius: var(--fa-counter-border-radius, 1em);\n box-sizing: border-box;\n color: var(--fa-inverse, #fff);\n line-height: var(--fa-counter-line-height, 1);\n max-width: var(--fa-counter-max-width, 5em);\n min-width: var(--fa-counter-min-width, 1.5em);\n overflow: hidden;\n padding: var(--fa-counter-padding, 0.25em 0.5em);\n right: var(--fa-right, 0);\n text-overflow: ellipsis;\n top: var(--fa-top, 0);\n transform: scale(var(--fa-counter-scale, 0.25));\n transform-origin: top right;\n}\n\n.fa-layers-bottom-right {\n bottom: var(--fa-bottom, 0);\n right: var(--fa-right, 0);\n top: auto;\n transform: scale(var(--fa-layers-scale, 0.25));\n transform-origin: bottom right;\n}\n\n.fa-layers-bottom-left {\n bottom: var(--fa-bottom, 0);\n left: var(--fa-left, 0);\n right: auto;\n top: auto;\n transform: scale(var(--fa-layers-scale, 0.25));\n transform-origin: bottom left;\n}\n\n.fa-layers-top-right {\n top: var(--fa-top, 0);\n right: var(--fa-right, 0);\n transform: scale(var(--fa-layers-scale, 0.25));\n transform-origin: top right;\n}\n\n.fa-layers-top-left {\n left: var(--fa-left, 0);\n right: auto;\n top: var(--fa-top, 0);\n transform: scale(var(--fa-layers-scale, 0.25));\n transform-origin: top left;\n}\n\n.fa-1x {\n font-size: 1em;\n}\n\n.fa-2x {\n font-size: 2em;\n}\n\n.fa-3x {\n font-size: 3em;\n}\n\n.fa-4x {\n font-size: 4em;\n}\n\n.fa-5x {\n font-size: 5em;\n}\n\n.fa-6x {\n font-size: 6em;\n}\n\n.fa-7x {\n font-size: 7em;\n}\n\n.fa-8x {\n font-size: 8em;\n}\n\n.fa-9x {\n font-size: 9em;\n}\n\n.fa-10x {\n font-size: 10em;\n}\n\n.fa-2xs {\n font-size: 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(-1 * var(--fa-li-width, 2em));\n position: absolute;\n text-align: center;\n width: var(--fa-li-width, 2em);\n line-height: inherit;\n}\n\n.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 animation-name: fa-beat;\n animation-delay: var(--fa-animation-delay, 0s);\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 1s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, ease-in-out);\n}\n\n.fa-bounce {\n animation-name: fa-bounce;\n animation-delay: var(--fa-animation-delay, 0s);\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 1s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1));\n}\n\n.fa-fade {\n animation-name: fa-fade;\n animation-delay: var(--fa-animation-delay, 0s);\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 1s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n}\n\n.fa-beat-fade {\n animation-name: fa-beat-fade;\n animation-delay: var(--fa-animation-delay, 0s);\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 1s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n}\n\n.fa-flip {\n animation-name: fa-flip;\n animation-delay: var(--fa-animation-delay, 0s);\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 1s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, ease-in-out);\n}\n\n.fa-shake {\n animation-name: fa-shake;\n animation-delay: var(--fa-animation-delay, 0s);\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 1s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, linear);\n}\n\n.fa-spin {\n animation-name: fa-spin;\n animation-delay: var(--fa-animation-delay, 0s);\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 2s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, linear);\n}\n\n.fa-spin-reverse {\n --fa-animation-direction: reverse;\n}\n\n.fa-pulse,\n.fa-spin-pulse {\n animation-name: fa-spin;\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 1s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, steps(8));\n}\n\n@media (prefers-reduced-motion: reduce) {\n .fa-beat,\n.fa-bounce,\n.fa-fade,\n.fa-beat-fade,\n.fa-flip,\n.fa-pulse,\n.fa-shake,\n.fa-spin,\n.fa-spin-pulse {\n animation-delay: -1ms;\n animation-duration: 1ms;\n animation-iteration-count: 1;\n transition-delay: 0s;\n transition-duration: 0s;\n }\n}\n@keyframes fa-beat {\n 0%, 90% {\n transform: scale(1);\n }\n 45% {\n transform: scale(var(--fa-beat-scale, 1.25));\n }\n}\n@keyframes fa-bounce {\n 0% {\n transform: scale(1, 1) translateY(0);\n }\n 10% {\n transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n }\n 30% {\n transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n }\n 50% {\n transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n }\n 57% {\n transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n }\n 64% {\n transform: scale(1, 1) translateY(0);\n }\n 100% {\n transform: scale(1, 1) translateY(0);\n }\n}\n@keyframes fa-fade {\n 50% {\n opacity: var(--fa-fade-opacity, 0.4);\n }\n}\n@keyframes fa-beat-fade {\n 0%, 100% {\n opacity: var(--fa-beat-fade-opacity, 0.4);\n transform: scale(1);\n }\n 50% {\n opacity: 1;\n transform: scale(var(--fa-beat-fade-scale, 1.125));\n }\n}\n@keyframes fa-flip {\n 50% {\n transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n }\n}\n@keyframes fa-shake {\n 0% {\n transform: rotate(-15deg);\n }\n 4% {\n transform: rotate(15deg);\n }\n 8%, 24% {\n transform: rotate(-18deg);\n }\n 12%, 28% {\n transform: rotate(18deg);\n }\n 16% {\n transform: rotate(-22deg);\n }\n 20% {\n transform: rotate(22deg);\n }\n 32% {\n transform: rotate(-12deg);\n }\n 36% {\n transform: rotate(12deg);\n }\n 40%, 100% {\n transform: rotate(0deg);\n }\n}\n@keyframes fa-spin {\n 0% {\n transform: rotate(0deg);\n }\n 100% {\n transform: rotate(360deg);\n }\n}\n.fa-rotate-90 {\n transform: rotate(90deg);\n}\n\n.fa-rotate-180 {\n transform: rotate(180deg);\n}\n\n.fa-rotate-270 {\n transform: rotate(270deg);\n}\n\n.fa-flip-horizontal {\n transform: scale(-1, 1);\n}\n\n.fa-flip-vertical {\n transform: scale(1, -1);\n}\n\n.fa-flip-both,\n.fa-flip-horizontal.fa-flip-vertical {\n transform: scale(-1, -1);\n}\n\n.fa-rotate-by {\n transform: rotate(var(--fa-rotate-angle, 0));\n}\n\n.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}';
5435
+ function css() {
5436
+ const dcp = DEFAULT_CSS_PREFIX;
5437
+ const drc = DEFAULT_REPLACEMENT_CLASS;
5438
+ const fp = config.cssPrefix;
5439
+ const rc = config.replacementClass;
5440
+ let s2 = baseStyles;
5441
+ if (fp !== dcp || rc !== drc) {
5442
+ const dPatt = new RegExp("\\.".concat(dcp, "\\-"), "g");
5443
+ const customPropPatt = new RegExp("\\--".concat(dcp, "\\-"), "g");
5444
+ const rPatt = new RegExp("\\.".concat(drc), "g");
5445
+ s2 = s2.replace(dPatt, ".".concat(fp, "-")).replace(customPropPatt, "--".concat(fp, "-")).replace(rPatt, ".".concat(rc));
5446
+ }
5447
+ return s2;
5448
+ }
5449
+ var _cssInserted = false;
5450
+ function ensureCss() {
5451
+ if (config.autoAddCss && !_cssInserted) {
5452
+ insertCss(css());
5453
+ _cssInserted = true;
5454
+ }
5455
+ }
5456
+ var InjectCSS = {
5457
+ mixout() {
5458
+ return {
5459
+ dom: {
5460
+ css,
5461
+ insertCss: ensureCss
5462
+ }
5463
+ };
5464
+ },
5465
+ hooks() {
5466
+ return {
5467
+ beforeDOMElementCreation() {
5468
+ ensureCss();
5469
+ },
5470
+ beforeI2svg() {
5471
+ ensureCss();
5472
+ }
5473
+ };
5474
+ }
5475
+ };
5476
+ var w = WINDOW || {};
5477
+ if (!w[NAMESPACE_IDENTIFIER]) w[NAMESPACE_IDENTIFIER] = {};
5478
+ if (!w[NAMESPACE_IDENTIFIER].styles) w[NAMESPACE_IDENTIFIER].styles = {};
5479
+ if (!w[NAMESPACE_IDENTIFIER].hooks) w[NAMESPACE_IDENTIFIER].hooks = {};
5480
+ if (!w[NAMESPACE_IDENTIFIER].shims) w[NAMESPACE_IDENTIFIER].shims = [];
5481
+ var namespace = w[NAMESPACE_IDENTIFIER];
5482
+ var functions = [];
5483
+ var listener = function() {
5484
+ DOCUMENT.removeEventListener("DOMContentLoaded", listener);
5485
+ loaded = 1;
5486
+ functions.map((fn) => fn());
5487
+ };
5488
+ var loaded = false;
5489
+ if (IS_DOM) {
5490
+ loaded = (DOCUMENT.documentElement.doScroll ? /^loaded|^c/ : /^loaded|^i|^c/).test(DOCUMENT.readyState);
5491
+ if (!loaded) DOCUMENT.addEventListener("DOMContentLoaded", listener);
5492
+ }
5493
+ function domready(fn) {
5494
+ if (!IS_DOM) return;
5495
+ loaded ? setTimeout(fn, 0) : functions.push(fn);
5496
+ }
5497
+ function toHtml(abstractNodes) {
5498
+ const {
5499
+ tag,
5500
+ attributes = {},
5501
+ children = []
5502
+ } = abstractNodes;
5503
+ if (typeof abstractNodes === "string") {
5504
+ return htmlEscape(abstractNodes);
5505
+ } else {
5506
+ return "<".concat(tag, " ").concat(joinAttributes(attributes), ">").concat(children.map(toHtml).join(""), "</").concat(tag, ">");
5507
+ }
5508
+ }
5509
+ function iconFromMapping(mapping, prefix, iconName) {
5510
+ if (mapping && mapping[prefix] && mapping[prefix][iconName]) {
5511
+ return {
5512
+ prefix,
5513
+ iconName,
5514
+ icon: mapping[prefix][iconName]
5515
+ };
5516
+ }
5517
+ }
5518
+ var reduce = function fastReduceObject(subject, fn, initialValue, thisContext) {
5519
+ var keys = Object.keys(subject), length = keys.length, iterator = fn, i, key, result;
5520
+ if (initialValue === void 0) {
5521
+ i = 1;
5522
+ result = subject[keys[0]];
5523
+ } else {
5524
+ i = 0;
5525
+ result = initialValue;
5526
+ }
5527
+ for (; i < length; i++) {
5528
+ key = keys[i];
5529
+ result = iterator(result, subject[key], key, subject);
5530
+ }
5531
+ return result;
5532
+ };
5533
+ function ucs2decode(string) {
5534
+ const output = [];
5535
+ let counter2 = 0;
5536
+ const length = string.length;
5537
+ while (counter2 < length) {
5538
+ const value = string.charCodeAt(counter2++);
5539
+ if (value >= 55296 && value <= 56319 && counter2 < length) {
5540
+ const extra = string.charCodeAt(counter2++);
5541
+ if ((extra & 64512) == 56320) {
5542
+ output.push(((value & 1023) << 10) + (extra & 1023) + 65536);
5543
+ } else {
5544
+ output.push(value);
5545
+ counter2--;
5546
+ }
5547
+ } else {
5548
+ output.push(value);
5549
+ }
5550
+ }
5551
+ return output;
5552
+ }
5553
+ function toHex(unicode) {
5554
+ const decoded = ucs2decode(unicode);
5555
+ return decoded.length === 1 ? decoded[0].toString(16) : null;
5556
+ }
5557
+ function codePointAt(string, index) {
5558
+ const size = string.length;
5559
+ let first = string.charCodeAt(index);
5560
+ let second;
5561
+ if (first >= 55296 && first <= 56319 && size > index + 1) {
5562
+ second = string.charCodeAt(index + 1);
5563
+ if (second >= 56320 && second <= 57343) {
5564
+ return (first - 55296) * 1024 + second - 56320 + 65536;
5565
+ }
5566
+ }
5567
+ return first;
5568
+ }
5569
+ function normalizeIcons(icons) {
5570
+ return Object.keys(icons).reduce((acc, iconName) => {
5571
+ const icon2 = icons[iconName];
5572
+ const expanded = !!icon2.icon;
5573
+ if (expanded) {
5574
+ acc[icon2.iconName] = icon2.icon;
5575
+ } else {
5576
+ acc[iconName] = icon2;
5577
+ }
5578
+ return acc;
5579
+ }, {});
5580
+ }
5581
+ function defineIcons(prefix, icons) {
5582
+ let params = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
5583
+ const {
5584
+ skipHooks = false
5585
+ } = params;
5586
+ const normalized = normalizeIcons(icons);
5587
+ if (typeof namespace.hooks.addPack === "function" && !skipHooks) {
5588
+ namespace.hooks.addPack(prefix, normalizeIcons(icons));
5589
+ } else {
5590
+ namespace.styles[prefix] = _objectSpread2(_objectSpread2({}, namespace.styles[prefix] || {}), normalized);
5591
+ }
5592
+ if (prefix === "fas") {
5593
+ defineIcons("fa", icons);
5594
+ }
5595
+ }
5596
+ var {
5597
+ styles,
5598
+ shims
5599
+ } = namespace;
5600
+ var FAMILY_NAMES = Object.keys(PREFIX_TO_LONG_STYLE);
5601
+ var PREFIXES_FOR_FAMILY = FAMILY_NAMES.reduce((acc, familyId) => {
5602
+ acc[familyId] = Object.keys(PREFIX_TO_LONG_STYLE[familyId]);
5603
+ return acc;
5604
+ }, {});
5605
+ var _defaultUsablePrefix = null;
5606
+ var _byUnicode = {};
5607
+ var _byLigature = {};
5608
+ var _byOldName = {};
5609
+ var _byOldUnicode = {};
5610
+ var _byAlias = {};
5611
+ function isReserved(name) {
5612
+ return ~RESERVED_CLASSES.indexOf(name);
5613
+ }
5614
+ function getIconName(cssPrefix, cls) {
5615
+ const parts = cls.split("-");
5616
+ const prefix = parts[0];
5617
+ const iconName = parts.slice(1).join("-");
5618
+ if (prefix === cssPrefix && iconName !== "" && !isReserved(iconName)) {
5619
+ return iconName;
5620
+ } else {
5621
+ return null;
5622
+ }
5623
+ }
5624
+ var build = () => {
5625
+ const lookup = (reducer) => {
5626
+ return reduce(styles, (o$$1, style, prefix) => {
5627
+ o$$1[prefix] = reduce(style, reducer, {});
5628
+ return o$$1;
5629
+ }, {});
5630
+ };
5631
+ _byUnicode = lookup((acc, icon2, iconName) => {
5632
+ if (icon2[3]) {
5633
+ acc[icon2[3]] = iconName;
5634
+ }
5635
+ if (icon2[2]) {
5636
+ const aliases = icon2[2].filter((a$$1) => {
5637
+ return typeof a$$1 === "number";
5638
+ });
5639
+ aliases.forEach((alias) => {
5640
+ acc[alias.toString(16)] = iconName;
5641
+ });
5642
+ }
5643
+ return acc;
5644
+ });
5645
+ _byLigature = lookup((acc, icon2, iconName) => {
5646
+ acc[iconName] = iconName;
5647
+ if (icon2[2]) {
5648
+ const aliases = icon2[2].filter((a$$1) => {
5649
+ return typeof a$$1 === "string";
5650
+ });
5651
+ aliases.forEach((alias) => {
5652
+ acc[alias] = iconName;
5653
+ });
5654
+ }
5655
+ return acc;
5656
+ });
5657
+ _byAlias = lookup((acc, icon2, iconName) => {
5658
+ const aliases = icon2[2];
5659
+ acc[iconName] = iconName;
5660
+ aliases.forEach((alias) => {
5661
+ acc[alias] = iconName;
5662
+ });
5663
+ return acc;
5664
+ });
5665
+ const hasRegular = "far" in styles || config.autoFetchSvg;
5666
+ const shimLookups = reduce(shims, (acc, shim) => {
5667
+ const maybeNameMaybeUnicode = shim[0];
5668
+ let prefix = shim[1];
5669
+ const iconName = shim[2];
5670
+ if (prefix === "far" && !hasRegular) {
5671
+ prefix = "fas";
5672
+ }
5673
+ if (typeof maybeNameMaybeUnicode === "string") {
5674
+ acc.names[maybeNameMaybeUnicode] = {
5675
+ prefix,
5676
+ iconName
5677
+ };
5678
+ }
5679
+ if (typeof maybeNameMaybeUnicode === "number") {
5680
+ acc.unicodes[maybeNameMaybeUnicode.toString(16)] = {
5681
+ prefix,
5682
+ iconName
5683
+ };
5684
+ }
5685
+ return acc;
5686
+ }, {
5687
+ names: {},
5688
+ unicodes: {}
5689
+ });
5690
+ _byOldName = shimLookups.names;
5691
+ _byOldUnicode = shimLookups.unicodes;
5692
+ _defaultUsablePrefix = getCanonicalPrefix(config.styleDefault, {
5693
+ family: config.familyDefault
5694
+ });
5695
+ };
5696
+ onChange((c$$1) => {
5697
+ _defaultUsablePrefix = getCanonicalPrefix(c$$1.styleDefault, {
5698
+ family: config.familyDefault
5699
+ });
5700
+ });
5701
+ build();
5702
+ function byUnicode(prefix, unicode) {
5703
+ return (_byUnicode[prefix] || {})[unicode];
5704
+ }
5705
+ function byLigature(prefix, ligature) {
5706
+ return (_byLigature[prefix] || {})[ligature];
5707
+ }
5708
+ function byAlias(prefix, alias) {
5709
+ return (_byAlias[prefix] || {})[alias];
5710
+ }
5711
+ function byOldName(name) {
5712
+ return _byOldName[name] || {
5713
+ prefix: null,
5714
+ iconName: null
5715
+ };
5716
+ }
5717
+ function byOldUnicode(unicode) {
5718
+ const oldUnicode = _byOldUnicode[unicode];
5719
+ const newUnicode = byUnicode("fas", unicode);
5720
+ return oldUnicode || (newUnicode ? {
5721
+ prefix: "fas",
5722
+ iconName: newUnicode
5723
+ } : null) || {
5724
+ prefix: null,
5725
+ iconName: null
5726
+ };
5727
+ }
5728
+ function getDefaultUsablePrefix() {
5729
+ return _defaultUsablePrefix;
5730
+ }
5731
+ var emptyCanonicalIcon = () => {
5732
+ return {
5733
+ prefix: null,
5734
+ iconName: null,
5735
+ rest: []
5736
+ };
5737
+ };
5738
+ function getFamilyId(values) {
5739
+ let family = s;
5740
+ const famProps = FAMILY_NAMES.reduce((acc, familyId) => {
5741
+ acc[familyId] = "".concat(config.cssPrefix, "-").concat(familyId);
5742
+ return acc;
5743
+ }, {});
5744
+ L.forEach((familyId) => {
5745
+ if (values.includes(famProps[familyId]) || values.some((v$$1) => PREFIXES_FOR_FAMILY[familyId].includes(v$$1))) {
5746
+ family = familyId;
5747
+ }
5748
+ });
5749
+ return family;
5750
+ }
5751
+ function getCanonicalPrefix(styleOrPrefix) {
5752
+ let params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
5753
+ const {
5754
+ family = s
5755
+ } = params;
5756
+ const style = PREFIX_TO_STYLE[family][styleOrPrefix];
5757
+ if (family === t && !styleOrPrefix) {
5758
+ return "fad";
5759
+ }
5760
+ const prefix = STYLE_TO_PREFIX[family][styleOrPrefix] || STYLE_TO_PREFIX[family][style];
5761
+ const defined = styleOrPrefix in namespace.styles ? styleOrPrefix : null;
5762
+ const result = prefix || defined || null;
5763
+ return result;
5764
+ }
5765
+ function moveNonFaClassesToRest(classNames) {
5766
+ let rest = [];
5767
+ let iconName = null;
5768
+ classNames.forEach((cls) => {
5769
+ const result = getIconName(config.cssPrefix, cls);
5770
+ if (result) {
5771
+ iconName = result;
5772
+ } else if (cls) {
5773
+ rest.push(cls);
5774
+ }
5775
+ });
5776
+ return {
5777
+ iconName,
5778
+ rest
5779
+ };
5780
+ }
5781
+ function sortedUniqueValues(arr) {
5782
+ return arr.sort().filter((value, index, arr2) => {
5783
+ return arr2.indexOf(value) === index;
5784
+ });
5785
+ }
5786
+ function getCanonicalIcon(values) {
5787
+ let params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
5788
+ const {
5789
+ skipLookups = false
5790
+ } = params;
5791
+ let givenPrefix = null;
5792
+ const faCombinedClasses = Ia.concat(bt$1);
5793
+ const faStyleOrFamilyClasses = sortedUniqueValues(values.filter((cls) => faCombinedClasses.includes(cls)));
5794
+ const nonStyleOrFamilyClasses = sortedUniqueValues(values.filter((cls) => !Ia.includes(cls)));
5795
+ const faStyles = faStyleOrFamilyClasses.filter((cls) => {
5796
+ givenPrefix = cls;
5797
+ return !P.includes(cls);
5798
+ });
5799
+ const [styleFromValues = null] = faStyles;
5800
+ const family = getFamilyId(faStyleOrFamilyClasses);
5801
+ const canonical = _objectSpread2(_objectSpread2({}, moveNonFaClassesToRest(nonStyleOrFamilyClasses)), {}, {
5802
+ prefix: getCanonicalPrefix(styleFromValues, {
5803
+ family
5804
+ })
5805
+ });
5806
+ return _objectSpread2(_objectSpread2(_objectSpread2({}, canonical), getDefaultCanonicalPrefix({
5807
+ values,
5808
+ family,
5809
+ styles,
5810
+ config,
5811
+ canonical,
5812
+ givenPrefix
5813
+ })), applyShimAndAlias(skipLookups, givenPrefix, canonical));
5814
+ }
5815
+ function applyShimAndAlias(skipLookups, givenPrefix, canonical) {
5816
+ let {
5817
+ prefix,
5818
+ iconName
5819
+ } = canonical;
5820
+ if (skipLookups || !prefix || !iconName) {
5821
+ return {
5822
+ prefix,
5823
+ iconName
5824
+ };
5825
+ }
5826
+ const shim = givenPrefix === "fa" ? byOldName(iconName) : {};
5827
+ const aliasIconName = byAlias(prefix, iconName);
5828
+ iconName = shim.iconName || aliasIconName || iconName;
5829
+ prefix = shim.prefix || prefix;
5830
+ if (prefix === "far" && !styles["far"] && styles["fas"] && !config.autoFetchSvg) {
5831
+ prefix = "fas";
5832
+ }
5833
+ return {
5834
+ prefix,
5835
+ iconName
5836
+ };
5837
+ }
5838
+ var newCanonicalFamilies = L.filter((familyId) => {
5839
+ return familyId !== s || familyId !== t;
5840
+ });
5841
+ var newCanonicalStyles = Object.keys(ga).filter((key) => key !== s).map((key) => Object.keys(ga[key])).flat();
5842
+ function getDefaultCanonicalPrefix(prefixOptions) {
5843
+ const {
5844
+ values,
5845
+ family,
5846
+ canonical,
5847
+ givenPrefix = "",
5848
+ styles: styles2 = {},
5849
+ config: config$$1 = {}
5850
+ } = prefixOptions;
5851
+ const isDuotoneFamily = family === t;
5852
+ const valuesHasDuotone = values.includes("fa-duotone") || values.includes("fad");
5853
+ const defaultFamilyIsDuotone = config$$1.familyDefault === "duotone";
5854
+ const canonicalPrefixIsDuotone = canonical.prefix === "fad" || canonical.prefix === "fa-duotone";
5855
+ if (!isDuotoneFamily && (valuesHasDuotone || defaultFamilyIsDuotone || canonicalPrefixIsDuotone)) {
5856
+ canonical.prefix = "fad";
5857
+ }
5858
+ if (values.includes("fa-brands") || values.includes("fab")) {
5859
+ canonical.prefix = "fab";
5860
+ }
5861
+ if (!canonical.prefix && newCanonicalFamilies.includes(family)) {
5862
+ const validPrefix = Object.keys(styles2).find((key) => newCanonicalStyles.includes(key));
5863
+ if (validPrefix || config$$1.autoFetchSvg) {
5864
+ const defaultPrefix = pt.get(family).defaultShortPrefixId;
5865
+ canonical.prefix = defaultPrefix;
5866
+ canonical.iconName = byAlias(canonical.prefix, canonical.iconName) || canonical.iconName;
5867
+ }
5868
+ }
5869
+ if (canonical.prefix === "fa" || givenPrefix === "fa") {
5870
+ canonical.prefix = getDefaultUsablePrefix() || "fas";
5871
+ }
5872
+ return canonical;
5873
+ }
5874
+ var Library = class {
5875
+ constructor() {
5876
+ this.definitions = {};
5877
+ }
5878
+ add() {
5879
+ for (var _len = arguments.length, definitions = new Array(_len), _key = 0; _key < _len; _key++) {
5880
+ definitions[_key] = arguments[_key];
5881
+ }
5882
+ const additions = definitions.reduce(this._pullDefinitions, {});
5883
+ Object.keys(additions).forEach((key) => {
5884
+ this.definitions[key] = _objectSpread2(_objectSpread2({}, this.definitions[key] || {}), additions[key]);
5885
+ defineIcons(key, additions[key]);
5886
+ const longPrefix = PREFIX_TO_LONG_STYLE[s][key];
5887
+ if (longPrefix) defineIcons(longPrefix, additions[key]);
5888
+ build();
5889
+ });
5890
+ }
5891
+ reset() {
5892
+ this.definitions = {};
5893
+ }
5894
+ _pullDefinitions(additions, definition) {
5895
+ const normalized = definition.prefix && definition.iconName && definition.icon ? {
5896
+ 0: definition
5897
+ } : definition;
5898
+ Object.keys(normalized).map((key) => {
5899
+ const {
5900
+ prefix,
5901
+ iconName,
5902
+ icon: icon2
5903
+ } = normalized[key];
5904
+ const aliases = icon2[2];
5905
+ if (!additions[prefix]) additions[prefix] = {};
5906
+ if (aliases.length > 0) {
5907
+ aliases.forEach((alias) => {
5908
+ if (typeof alias === "string") {
5909
+ additions[prefix][alias] = icon2;
5910
+ }
5911
+ });
5912
+ }
5913
+ additions[prefix][iconName] = icon2;
5914
+ });
5915
+ return additions;
5916
+ }
5917
+ };
5918
+ var _plugins = [];
5919
+ var _hooks = {};
5920
+ var providers = {};
5921
+ var defaultProviderKeys = Object.keys(providers);
5922
+ function registerPlugins(nextPlugins, _ref) {
5923
+ let {
5924
+ mixoutsTo: obj
5925
+ } = _ref;
5926
+ _plugins = nextPlugins;
5927
+ _hooks = {};
5928
+ Object.keys(providers).forEach((k) => {
5929
+ if (defaultProviderKeys.indexOf(k) === -1) {
5930
+ delete providers[k];
5931
+ }
5932
+ });
5933
+ _plugins.forEach((plugin) => {
5934
+ const mixout = plugin.mixout ? plugin.mixout() : {};
5935
+ Object.keys(mixout).forEach((tk) => {
5936
+ if (typeof mixout[tk] === "function") {
5937
+ obj[tk] = mixout[tk];
5938
+ }
5939
+ if (typeof mixout[tk] === "object") {
5940
+ Object.keys(mixout[tk]).forEach((sk) => {
5941
+ if (!obj[tk]) {
5942
+ obj[tk] = {};
5943
+ }
5944
+ obj[tk][sk] = mixout[tk][sk];
5945
+ });
5946
+ }
5947
+ });
5948
+ if (plugin.hooks) {
5949
+ const hooks = plugin.hooks();
5950
+ Object.keys(hooks).forEach((hook) => {
5951
+ if (!_hooks[hook]) {
5952
+ _hooks[hook] = [];
5953
+ }
5954
+ _hooks[hook].push(hooks[hook]);
5955
+ });
5956
+ }
5957
+ if (plugin.provides) {
5958
+ plugin.provides(providers);
5959
+ }
5960
+ });
5961
+ return obj;
5962
+ }
5963
+ function chainHooks(hook, accumulator) {
5964
+ for (var _len = arguments.length, args = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {
5965
+ args[_key - 2] = arguments[_key];
5966
+ }
5967
+ const hookFns = _hooks[hook] || [];
5968
+ hookFns.forEach((hookFn) => {
5969
+ accumulator = hookFn.apply(null, [accumulator, ...args]);
5970
+ });
5971
+ return accumulator;
5972
+ }
5973
+ function callHooks(hook) {
5974
+ for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
5975
+ args[_key2 - 1] = arguments[_key2];
5976
+ }
5977
+ const hookFns = _hooks[hook] || [];
5978
+ hookFns.forEach((hookFn) => {
5979
+ hookFn.apply(null, args);
5980
+ });
5981
+ return void 0;
5982
+ }
5983
+ function callProvided() {
5984
+ const hook = arguments[0];
5985
+ const args = Array.prototype.slice.call(arguments, 1);
5986
+ return providers[hook] ? providers[hook].apply(null, args) : void 0;
5987
+ }
5988
+ function findIconDefinition(iconLookup) {
5989
+ if (iconLookup.prefix === "fa") {
5990
+ iconLookup.prefix = "fas";
5991
+ }
5992
+ let {
5993
+ iconName
5994
+ } = iconLookup;
5995
+ const prefix = iconLookup.prefix || getDefaultUsablePrefix();
5996
+ if (!iconName) return;
5997
+ iconName = byAlias(prefix, iconName) || iconName;
5998
+ return iconFromMapping(library.definitions, prefix, iconName) || iconFromMapping(namespace.styles, prefix, iconName);
5999
+ }
6000
+ var library = new Library();
6001
+ var noAuto = () => {
6002
+ config.autoReplaceSvg = false;
6003
+ config.observeMutations = false;
6004
+ callHooks("noAuto");
6005
+ };
6006
+ var dom = {
6007
+ i2svg: function() {
6008
+ let params = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
6009
+ if (IS_DOM) {
6010
+ callHooks("beforeI2svg", params);
6011
+ callProvided("pseudoElements2svg", params);
6012
+ return callProvided("i2svg", params);
6013
+ } else {
6014
+ return Promise.reject(new Error("Operation requires a DOM of some kind."));
6015
+ }
6016
+ },
6017
+ watch: function() {
6018
+ let params = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
6019
+ const {
6020
+ autoReplaceSvgRoot
6021
+ } = params;
6022
+ if (config.autoReplaceSvg === false) {
6023
+ config.autoReplaceSvg = true;
6024
+ }
6025
+ config.observeMutations = true;
6026
+ domready(() => {
6027
+ autoReplace({
6028
+ autoReplaceSvgRoot
6029
+ });
6030
+ callHooks("watch", params);
6031
+ });
6032
+ }
6033
+ };
6034
+ var parse = {
6035
+ icon: (icon2) => {
6036
+ if (icon2 === null) {
6037
+ return null;
6038
+ }
6039
+ if (typeof icon2 === "object" && icon2.prefix && icon2.iconName) {
6040
+ return {
6041
+ prefix: icon2.prefix,
6042
+ iconName: byAlias(icon2.prefix, icon2.iconName) || icon2.iconName
6043
+ };
6044
+ }
6045
+ if (Array.isArray(icon2) && icon2.length === 2) {
6046
+ const iconName = icon2[1].indexOf("fa-") === 0 ? icon2[1].slice(3) : icon2[1];
6047
+ const prefix = getCanonicalPrefix(icon2[0]);
6048
+ return {
6049
+ prefix,
6050
+ iconName: byAlias(prefix, iconName) || iconName
6051
+ };
6052
+ }
6053
+ if (typeof icon2 === "string" && (icon2.indexOf("".concat(config.cssPrefix, "-")) > -1 || icon2.match(ICON_SELECTION_SYNTAX_PATTERN))) {
6054
+ const canonicalIcon = getCanonicalIcon(icon2.split(" "), {
6055
+ skipLookups: true
6056
+ });
6057
+ return {
6058
+ prefix: canonicalIcon.prefix || getDefaultUsablePrefix(),
6059
+ iconName: byAlias(canonicalIcon.prefix, canonicalIcon.iconName) || canonicalIcon.iconName
6060
+ };
6061
+ }
6062
+ if (typeof icon2 === "string") {
6063
+ const prefix = getDefaultUsablePrefix();
6064
+ return {
6065
+ prefix,
6066
+ iconName: byAlias(prefix, icon2) || icon2
6067
+ };
6068
+ }
6069
+ }
6070
+ };
6071
+ var api = {
6072
+ noAuto,
6073
+ config,
6074
+ dom,
6075
+ parse,
6076
+ library,
6077
+ findIconDefinition,
6078
+ toHtml
6079
+ };
6080
+ var autoReplace = function() {
6081
+ let params = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
6082
+ const {
6083
+ autoReplaceSvgRoot = DOCUMENT
6084
+ } = params;
6085
+ if ((Object.keys(namespace.styles).length > 0 || config.autoFetchSvg) && IS_DOM && config.autoReplaceSvg) api.dom.i2svg({
6086
+ node: autoReplaceSvgRoot
6087
+ });
6088
+ };
6089
+ function domVariants(val, abstractCreator) {
6090
+ Object.defineProperty(val, "abstract", {
6091
+ get: abstractCreator
6092
+ });
6093
+ Object.defineProperty(val, "html", {
6094
+ get: function() {
6095
+ return val.abstract.map((a) => toHtml(a));
6096
+ }
6097
+ });
6098
+ Object.defineProperty(val, "node", {
6099
+ get: function() {
6100
+ if (!IS_DOM) return;
6101
+ const container = DOCUMENT.createElement("div");
6102
+ container.innerHTML = val.html;
6103
+ return container.children;
6104
+ }
6105
+ });
6106
+ return val;
6107
+ }
6108
+ function asIcon(_ref) {
6109
+ let {
6110
+ children,
6111
+ main,
6112
+ mask,
6113
+ attributes,
6114
+ styles: styles2,
6115
+ transform
6116
+ } = _ref;
6117
+ if (transformIsMeaningful(transform) && main.found && !mask.found) {
6118
+ const {
6119
+ width,
6120
+ height
6121
+ } = main;
6122
+ const offset = {
6123
+ x: width / height / 2,
6124
+ y: 0.5
6125
+ };
6126
+ attributes["style"] = joinStyles(_objectSpread2(_objectSpread2({}, styles2), {}, {
6127
+ "transform-origin": "".concat(offset.x + transform.x / 16, "em ").concat(offset.y + transform.y / 16, "em")
6128
+ }));
6129
+ }
6130
+ return [{
6131
+ tag: "svg",
6132
+ attributes,
6133
+ children
6134
+ }];
6135
+ }
6136
+ function asSymbol(_ref) {
6137
+ let {
6138
+ prefix,
6139
+ iconName,
6140
+ children,
6141
+ attributes,
6142
+ symbol
6143
+ } = _ref;
6144
+ const id = symbol === true ? "".concat(prefix, "-").concat(config.cssPrefix, "-").concat(iconName) : symbol;
6145
+ return [{
6146
+ tag: "svg",
6147
+ attributes: {
6148
+ style: "display: none;"
6149
+ },
6150
+ children: [{
6151
+ tag: "symbol",
6152
+ attributes: _objectSpread2(_objectSpread2({}, attributes), {}, {
6153
+ id
6154
+ }),
6155
+ children
6156
+ }]
6157
+ }];
6158
+ }
6159
+ function makeInlineSvgAbstract(params) {
6160
+ const {
6161
+ icons: {
6162
+ main,
6163
+ mask
6164
+ },
6165
+ prefix,
6166
+ iconName,
6167
+ transform,
6168
+ symbol,
6169
+ title,
6170
+ maskId,
6171
+ titleId,
6172
+ extra,
6173
+ watchable = false
6174
+ } = params;
6175
+ const {
6176
+ width,
6177
+ height
6178
+ } = mask.found ? mask : main;
6179
+ const isUploadedIcon = Lt.includes(prefix);
6180
+ const attrClass = [config.replacementClass, iconName ? "".concat(config.cssPrefix, "-").concat(iconName) : ""].filter((c$$1) => extra.classes.indexOf(c$$1) === -1).filter((c$$1) => c$$1 !== "" || !!c$$1).concat(extra.classes).join(" ");
6181
+ let content = {
6182
+ children: [],
6183
+ attributes: _objectSpread2(_objectSpread2({}, extra.attributes), {}, {
6184
+ "data-prefix": prefix,
6185
+ "data-icon": iconName,
6186
+ "class": attrClass,
6187
+ "role": extra.attributes.role || "img",
6188
+ "xmlns": "http://www.w3.org/2000/svg",
6189
+ "viewBox": "0 0 ".concat(width, " ").concat(height)
6190
+ })
6191
+ };
6192
+ const uploadedIconWidthStyle = isUploadedIcon && !~extra.classes.indexOf("fa-fw") ? {
6193
+ width: "".concat(width / height * 16 * 0.0625, "em")
6194
+ } : {};
6195
+ if (watchable) {
6196
+ content.attributes[DATA_FA_I2SVG] = "";
6197
+ }
6198
+ if (title) {
6199
+ content.children.push({
6200
+ tag: "title",
6201
+ attributes: {
6202
+ id: content.attributes["aria-labelledby"] || "title-".concat(titleId || nextUniqueId())
6203
+ },
6204
+ children: [title]
6205
+ });
6206
+ delete content.attributes.title;
6207
+ }
6208
+ const args = _objectSpread2(_objectSpread2({}, content), {}, {
6209
+ prefix,
6210
+ iconName,
6211
+ main,
6212
+ mask,
6213
+ maskId,
6214
+ transform,
6215
+ symbol,
6216
+ styles: _objectSpread2(_objectSpread2({}, uploadedIconWidthStyle), extra.styles)
6217
+ });
6218
+ const {
6219
+ children,
6220
+ attributes
6221
+ } = mask.found && main.found ? callProvided("generateAbstractMask", args) || {
6222
+ children: [],
6223
+ attributes: {}
6224
+ } : callProvided("generateAbstractIcon", args) || {
6225
+ children: [],
6226
+ attributes: {}
6227
+ };
6228
+ args.children = children;
6229
+ args.attributes = attributes;
6230
+ if (symbol) {
6231
+ return asSymbol(args);
6232
+ } else {
6233
+ return asIcon(args);
6234
+ }
6235
+ }
6236
+ function makeLayersTextAbstract(params) {
6237
+ const {
6238
+ content,
6239
+ width,
6240
+ height,
6241
+ transform,
6242
+ title,
6243
+ extra,
6244
+ watchable = false
6245
+ } = params;
6246
+ const attributes = _objectSpread2(_objectSpread2(_objectSpread2({}, extra.attributes), title ? {
6247
+ "title": title
6248
+ } : {}), {}, {
6249
+ "class": extra.classes.join(" ")
6250
+ });
6251
+ if (watchable) {
6252
+ attributes[DATA_FA_I2SVG] = "";
6253
+ }
6254
+ const styles2 = _objectSpread2({}, extra.styles);
6255
+ if (transformIsMeaningful(transform)) {
6256
+ styles2["transform"] = transformForCss({
6257
+ transform,
6258
+ startCentered: true,
6259
+ width,
6260
+ height
6261
+ });
6262
+ styles2["-webkit-transform"] = styles2["transform"];
6263
+ }
6264
+ const styleString = joinStyles(styles2);
6265
+ if (styleString.length > 0) {
6266
+ attributes["style"] = styleString;
6267
+ }
6268
+ const val = [];
6269
+ val.push({
6270
+ tag: "span",
6271
+ attributes,
6272
+ children: [content]
6273
+ });
6274
+ if (title) {
6275
+ val.push({
6276
+ tag: "span",
6277
+ attributes: {
6278
+ class: "sr-only"
6279
+ },
6280
+ children: [title]
6281
+ });
6282
+ }
6283
+ return val;
6284
+ }
6285
+ function makeLayersCounterAbstract(params) {
6286
+ const {
6287
+ content,
6288
+ title,
6289
+ extra
6290
+ } = params;
6291
+ const attributes = _objectSpread2(_objectSpread2(_objectSpread2({}, extra.attributes), title ? {
6292
+ "title": title
6293
+ } : {}), {}, {
6294
+ "class": extra.classes.join(" ")
6295
+ });
6296
+ const styleString = joinStyles(extra.styles);
6297
+ if (styleString.length > 0) {
6298
+ attributes["style"] = styleString;
6299
+ }
6300
+ const val = [];
6301
+ val.push({
6302
+ tag: "span",
6303
+ attributes,
6304
+ children: [content]
6305
+ });
6306
+ if (title) {
6307
+ val.push({
6308
+ tag: "span",
6309
+ attributes: {
6310
+ class: "sr-only"
6311
+ },
6312
+ children: [title]
6313
+ });
6314
+ }
6315
+ return val;
6316
+ }
6317
+ var {
6318
+ styles: styles$1
6319
+ } = namespace;
6320
+ function asFoundIcon(icon2) {
6321
+ const width = icon2[0];
6322
+ const height = icon2[1];
6323
+ const [vectorData] = icon2.slice(4);
6324
+ let element = null;
6325
+ if (Array.isArray(vectorData)) {
6326
+ element = {
6327
+ tag: "g",
6328
+ attributes: {
6329
+ class: "".concat(config.cssPrefix, "-").concat(DUOTONE_CLASSES.GROUP)
6330
+ },
6331
+ children: [{
6332
+ tag: "path",
6333
+ attributes: {
6334
+ class: "".concat(config.cssPrefix, "-").concat(DUOTONE_CLASSES.SECONDARY),
6335
+ fill: "currentColor",
6336
+ d: vectorData[0]
6337
+ }
6338
+ }, {
6339
+ tag: "path",
6340
+ attributes: {
6341
+ class: "".concat(config.cssPrefix, "-").concat(DUOTONE_CLASSES.PRIMARY),
6342
+ fill: "currentColor",
6343
+ d: vectorData[1]
6344
+ }
6345
+ }]
6346
+ };
6347
+ } else {
6348
+ element = {
6349
+ tag: "path",
6350
+ attributes: {
6351
+ fill: "currentColor",
6352
+ d: vectorData
6353
+ }
6354
+ };
6355
+ }
6356
+ return {
6357
+ found: true,
6358
+ width,
6359
+ height,
6360
+ icon: element
6361
+ };
6362
+ }
6363
+ var missingIconResolutionMixin = {
6364
+ found: false,
6365
+ width: 512,
6366
+ height: 512
6367
+ };
6368
+ function maybeNotifyMissing(iconName, prefix) {
6369
+ if (!PRODUCTION && !config.showMissingIcons && iconName) {
6370
+ console.error('Icon with name "'.concat(iconName, '" and prefix "').concat(prefix, '" is missing.'));
6371
+ }
6372
+ }
6373
+ function findIcon(iconName, prefix) {
6374
+ let givenPrefix = prefix;
6375
+ if (prefix === "fa" && config.styleDefault !== null) {
6376
+ prefix = getDefaultUsablePrefix();
6377
+ }
6378
+ return new Promise((resolve, reject) => {
6379
+ if (givenPrefix === "fa") {
6380
+ const shim = byOldName(iconName) || {};
6381
+ iconName = shim.iconName || iconName;
6382
+ prefix = shim.prefix || prefix;
6383
+ }
6384
+ if (iconName && prefix && styles$1[prefix] && styles$1[prefix][iconName]) {
6385
+ const icon2 = styles$1[prefix][iconName];
6386
+ return resolve(asFoundIcon(icon2));
6387
+ }
6388
+ maybeNotifyMissing(iconName, prefix);
6389
+ resolve(_objectSpread2(_objectSpread2({}, missingIconResolutionMixin), {}, {
6390
+ icon: config.showMissingIcons && iconName ? callProvided("missingIconAbstract") || {} : {}
6391
+ }));
6392
+ });
6393
+ }
6394
+ var noop$1 = () => {
6395
+ };
6396
+ var p$2 = config.measurePerformance && PERFORMANCE && PERFORMANCE.mark && PERFORMANCE.measure ? PERFORMANCE : {
6397
+ mark: noop$1,
6398
+ measure: noop$1
6399
+ };
6400
+ var preamble = 'FA "6.7.2"';
6401
+ var begin = (name) => {
6402
+ p$2.mark("".concat(preamble, " ").concat(name, " begins"));
6403
+ return () => end(name);
6404
+ };
6405
+ var end = (name) => {
6406
+ p$2.mark("".concat(preamble, " ").concat(name, " ends"));
6407
+ p$2.measure("".concat(preamble, " ").concat(name), "".concat(preamble, " ").concat(name, " begins"), "".concat(preamble, " ").concat(name, " ends"));
6408
+ };
6409
+ var perf = {
6410
+ begin,
6411
+ end
6412
+ };
6413
+ var noop$2 = () => {
6414
+ };
6415
+ function isWatched(node) {
6416
+ const i2svg = node.getAttribute ? node.getAttribute(DATA_FA_I2SVG) : null;
6417
+ return typeof i2svg === "string";
6418
+ }
6419
+ function hasPrefixAndIcon(node) {
6420
+ const prefix = node.getAttribute ? node.getAttribute(DATA_PREFIX) : null;
6421
+ const icon2 = node.getAttribute ? node.getAttribute(DATA_ICON) : null;
6422
+ return prefix && icon2;
6423
+ }
6424
+ function hasBeenReplaced(node) {
6425
+ return node && node.classList && node.classList.contains && node.classList.contains(config.replacementClass);
6426
+ }
6427
+ function getMutator() {
6428
+ if (config.autoReplaceSvg === true) {
6429
+ return mutators.replace;
6430
+ }
6431
+ const mutator = mutators[config.autoReplaceSvg];
6432
+ return mutator || mutators.replace;
6433
+ }
6434
+ function createElementNS(tag) {
6435
+ return DOCUMENT.createElementNS("http://www.w3.org/2000/svg", tag);
6436
+ }
6437
+ function createElement3(tag) {
6438
+ return DOCUMENT.createElement(tag);
6439
+ }
6440
+ function convertSVG(abstractObj) {
6441
+ let params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
6442
+ const {
6443
+ ceFn = abstractObj.tag === "svg" ? createElementNS : createElement3
6444
+ } = params;
6445
+ if (typeof abstractObj === "string") {
6446
+ return DOCUMENT.createTextNode(abstractObj);
6447
+ }
6448
+ const tag = ceFn(abstractObj.tag);
6449
+ Object.keys(abstractObj.attributes || []).forEach(function(key) {
6450
+ tag.setAttribute(key, abstractObj.attributes[key]);
6451
+ });
6452
+ const children = abstractObj.children || [];
6453
+ children.forEach(function(child) {
6454
+ tag.appendChild(convertSVG(child, {
6455
+ ceFn
6456
+ }));
6457
+ });
6458
+ return tag;
6459
+ }
6460
+ function nodeAsComment(node) {
6461
+ let comment = " ".concat(node.outerHTML, " ");
6462
+ comment = "".concat(comment, "Font Awesome fontawesome.com ");
6463
+ return comment;
6464
+ }
6465
+ var mutators = {
6466
+ replace: function(mutation) {
6467
+ const node = mutation[0];
6468
+ if (node.parentNode) {
6469
+ mutation[1].forEach((abstract) => {
6470
+ node.parentNode.insertBefore(convertSVG(abstract), node);
6471
+ });
6472
+ if (node.getAttribute(DATA_FA_I2SVG) === null && config.keepOriginalSource) {
6473
+ let comment = DOCUMENT.createComment(nodeAsComment(node));
6474
+ node.parentNode.replaceChild(comment, node);
6475
+ } else {
6476
+ node.remove();
6477
+ }
6478
+ }
6479
+ },
6480
+ nest: function(mutation) {
6481
+ const node = mutation[0];
6482
+ const abstract = mutation[1];
6483
+ if (~classArray(node).indexOf(config.replacementClass)) {
6484
+ return mutators.replace(mutation);
6485
+ }
6486
+ const forSvg = new RegExp("".concat(config.cssPrefix, "-.*"));
6487
+ delete abstract[0].attributes.id;
6488
+ if (abstract[0].attributes.class) {
6489
+ const splitClasses = abstract[0].attributes.class.split(" ").reduce((acc, cls) => {
6490
+ if (cls === config.replacementClass || cls.match(forSvg)) {
6491
+ acc.toSvg.push(cls);
6492
+ } else {
6493
+ acc.toNode.push(cls);
6494
+ }
6495
+ return acc;
6496
+ }, {
6497
+ toNode: [],
6498
+ toSvg: []
6499
+ });
6500
+ abstract[0].attributes.class = splitClasses.toSvg.join(" ");
6501
+ if (splitClasses.toNode.length === 0) {
6502
+ node.removeAttribute("class");
6503
+ } else {
6504
+ node.setAttribute("class", splitClasses.toNode.join(" "));
6505
+ }
6506
+ }
6507
+ const newInnerHTML = abstract.map((a) => toHtml(a)).join("\n");
6508
+ node.setAttribute(DATA_FA_I2SVG, "");
6509
+ node.innerHTML = newInnerHTML;
6510
+ }
6511
+ };
6512
+ function performOperationSync(op) {
6513
+ op();
6514
+ }
6515
+ function perform(mutations, callback) {
6516
+ const callbackFunction = typeof callback === "function" ? callback : noop$2;
6517
+ if (mutations.length === 0) {
6518
+ callbackFunction();
6519
+ } else {
6520
+ let frame = performOperationSync;
6521
+ if (config.mutateApproach === MUTATION_APPROACH_ASYNC) {
6522
+ frame = WINDOW.requestAnimationFrame || performOperationSync;
6523
+ }
6524
+ frame(() => {
6525
+ const mutator = getMutator();
6526
+ const mark = perf.begin("mutate");
6527
+ mutations.map(mutator);
6528
+ mark();
6529
+ callbackFunction();
6530
+ });
6531
+ }
6532
+ }
6533
+ var disabled = false;
6534
+ function disableObservation() {
6535
+ disabled = true;
6536
+ }
6537
+ function enableObservation() {
6538
+ disabled = false;
6539
+ }
6540
+ var mo = null;
6541
+ function observe(options) {
6542
+ if (!MUTATION_OBSERVER) {
6543
+ return;
6544
+ }
6545
+ if (!config.observeMutations) {
6546
+ return;
6547
+ }
6548
+ const {
6549
+ treeCallback = noop$2,
6550
+ nodeCallback = noop$2,
6551
+ pseudoElementsCallback = noop$2,
6552
+ observeMutationsRoot = DOCUMENT
6553
+ } = options;
6554
+ mo = new MUTATION_OBSERVER((objects) => {
6555
+ if (disabled) return;
6556
+ const defaultPrefix = getDefaultUsablePrefix();
6557
+ toArray(objects).forEach((mutationRecord) => {
6558
+ if (mutationRecord.type === "childList" && mutationRecord.addedNodes.length > 0 && !isWatched(mutationRecord.addedNodes[0])) {
6559
+ if (config.searchPseudoElements) {
6560
+ pseudoElementsCallback(mutationRecord.target);
6561
+ }
6562
+ treeCallback(mutationRecord.target);
6563
+ }
6564
+ if (mutationRecord.type === "attributes" && mutationRecord.target.parentNode && config.searchPseudoElements) {
6565
+ pseudoElementsCallback(mutationRecord.target.parentNode);
6566
+ }
6567
+ if (mutationRecord.type === "attributes" && isWatched(mutationRecord.target) && ~ATTRIBUTES_WATCHED_FOR_MUTATION.indexOf(mutationRecord.attributeName)) {
6568
+ if (mutationRecord.attributeName === "class" && hasPrefixAndIcon(mutationRecord.target)) {
6569
+ const {
6570
+ prefix,
6571
+ iconName
6572
+ } = getCanonicalIcon(classArray(mutationRecord.target));
6573
+ mutationRecord.target.setAttribute(DATA_PREFIX, prefix || defaultPrefix);
6574
+ if (iconName) mutationRecord.target.setAttribute(DATA_ICON, iconName);
6575
+ } else if (hasBeenReplaced(mutationRecord.target)) {
6576
+ nodeCallback(mutationRecord.target);
6577
+ }
6578
+ }
6579
+ });
6580
+ });
6581
+ if (!IS_DOM) return;
6582
+ mo.observe(observeMutationsRoot, {
6583
+ childList: true,
6584
+ attributes: true,
6585
+ characterData: true,
6586
+ subtree: true
6587
+ });
6588
+ }
6589
+ function disconnect() {
6590
+ if (!mo) return;
6591
+ mo.disconnect();
6592
+ }
6593
+ function styleParser(node) {
6594
+ const style = node.getAttribute("style");
6595
+ let val = [];
6596
+ if (style) {
6597
+ val = style.split(";").reduce((acc, style2) => {
6598
+ const styles2 = style2.split(":");
6599
+ const prop = styles2[0];
6600
+ const value = styles2.slice(1);
6601
+ if (prop && value.length > 0) {
6602
+ acc[prop] = value.join(":").trim();
6603
+ }
6604
+ return acc;
6605
+ }, {});
6606
+ }
6607
+ return val;
6608
+ }
6609
+ function classParser(node) {
6610
+ const existingPrefix = node.getAttribute("data-prefix");
6611
+ const existingIconName = node.getAttribute("data-icon");
6612
+ const innerText = node.innerText !== void 0 ? node.innerText.trim() : "";
6613
+ let val = getCanonicalIcon(classArray(node));
6614
+ if (!val.prefix) {
6615
+ val.prefix = getDefaultUsablePrefix();
6616
+ }
6617
+ if (existingPrefix && existingIconName) {
6618
+ val.prefix = existingPrefix;
6619
+ val.iconName = existingIconName;
6620
+ }
6621
+ if (val.iconName && val.prefix) {
6622
+ return val;
6623
+ }
6624
+ if (val.prefix && innerText.length > 0) {
6625
+ val.iconName = byLigature(val.prefix, node.innerText) || byUnicode(val.prefix, toHex(node.innerText));
6626
+ }
6627
+ if (!val.iconName && config.autoFetchSvg && node.firstChild && node.firstChild.nodeType === Node.TEXT_NODE) {
6628
+ val.iconName = node.firstChild.data;
6629
+ }
6630
+ return val;
6631
+ }
6632
+ function attributesParser(node) {
6633
+ const extraAttributes = toArray(node.attributes).reduce((acc, attr) => {
6634
+ if (acc.name !== "class" && acc.name !== "style") {
6635
+ acc[attr.name] = attr.value;
6636
+ }
6637
+ return acc;
6638
+ }, {});
6639
+ const title = node.getAttribute("title");
6640
+ const titleId = node.getAttribute("data-fa-title-id");
6641
+ if (config.autoA11y) {
6642
+ if (title) {
6643
+ extraAttributes["aria-labelledby"] = "".concat(config.replacementClass, "-title-").concat(titleId || nextUniqueId());
6644
+ } else {
6645
+ extraAttributes["aria-hidden"] = "true";
6646
+ extraAttributes["focusable"] = "false";
6647
+ }
6648
+ }
6649
+ return extraAttributes;
6650
+ }
6651
+ function blankMeta() {
6652
+ return {
6653
+ iconName: null,
6654
+ title: null,
6655
+ titleId: null,
6656
+ prefix: null,
6657
+ transform: meaninglessTransform,
6658
+ symbol: false,
6659
+ mask: {
6660
+ iconName: null,
6661
+ prefix: null,
6662
+ rest: []
6663
+ },
6664
+ maskId: null,
6665
+ extra: {
6666
+ classes: [],
6667
+ styles: {},
6668
+ attributes: {}
6669
+ }
6670
+ };
6671
+ }
6672
+ function parseMeta(node) {
6673
+ let parser = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {
6674
+ styleParser: true
6675
+ };
6676
+ const {
6677
+ iconName,
6678
+ prefix,
6679
+ rest: extraClasses
6680
+ } = classParser(node);
6681
+ const extraAttributes = attributesParser(node);
6682
+ const pluginMeta = chainHooks("parseNodeAttributes", {}, node);
6683
+ let extraStyles = parser.styleParser ? styleParser(node) : [];
6684
+ return _objectSpread2({
6685
+ iconName,
6686
+ title: node.getAttribute("title"),
6687
+ titleId: node.getAttribute("data-fa-title-id"),
6688
+ prefix,
6689
+ transform: meaninglessTransform,
6690
+ mask: {
6691
+ iconName: null,
6692
+ prefix: null,
6693
+ rest: []
6694
+ },
6695
+ maskId: null,
6696
+ symbol: false,
6697
+ extra: {
6698
+ classes: extraClasses,
6699
+ styles: extraStyles,
6700
+ attributes: extraAttributes
6701
+ }
6702
+ }, pluginMeta);
6703
+ }
6704
+ var {
6705
+ styles: styles$2
6706
+ } = namespace;
6707
+ function generateMutation(node) {
6708
+ const nodeMeta = config.autoReplaceSvg === "nest" ? parseMeta(node, {
6709
+ styleParser: false
6710
+ }) : parseMeta(node);
6711
+ if (~nodeMeta.extra.classes.indexOf(LAYERS_TEXT_CLASSNAME)) {
6712
+ return callProvided("generateLayersText", node, nodeMeta);
6713
+ } else {
6714
+ return callProvided("generateSvgReplacementMutation", node, nodeMeta);
6715
+ }
6716
+ }
6717
+ function getKnownPrefixes() {
6718
+ return [...Ft, ...Ia];
6719
+ }
6720
+ function onTree(root) {
6721
+ let callback = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : null;
6722
+ if (!IS_DOM) return Promise.resolve();
6723
+ const htmlClassList = DOCUMENT.documentElement.classList;
6724
+ const hclAdd = (suffix) => htmlClassList.add("".concat(HTML_CLASS_I2SVG_BASE_CLASS, "-").concat(suffix));
6725
+ const hclRemove = (suffix) => htmlClassList.remove("".concat(HTML_CLASS_I2SVG_BASE_CLASS, "-").concat(suffix));
6726
+ const prefixes = config.autoFetchSvg ? getKnownPrefixes() : P.concat(Object.keys(styles$2));
6727
+ if (!prefixes.includes("fa")) {
6728
+ prefixes.push("fa");
6729
+ }
6730
+ const prefixesDomQuery = [".".concat(LAYERS_TEXT_CLASSNAME, ":not([").concat(DATA_FA_I2SVG, "])")].concat(prefixes.map((p$$1) => ".".concat(p$$1, ":not([").concat(DATA_FA_I2SVG, "])"))).join(", ");
6731
+ if (prefixesDomQuery.length === 0) {
6732
+ return Promise.resolve();
6733
+ }
6734
+ let candidates = [];
6735
+ try {
6736
+ candidates = toArray(root.querySelectorAll(prefixesDomQuery));
6737
+ } catch (e$$1) {
6738
+ }
6739
+ if (candidates.length > 0) {
6740
+ hclAdd("pending");
6741
+ hclRemove("complete");
6742
+ } else {
6743
+ return Promise.resolve();
6744
+ }
6745
+ const mark = perf.begin("onTree");
6746
+ const mutations = candidates.reduce((acc, node) => {
6747
+ try {
6748
+ const mutation = generateMutation(node);
6749
+ if (mutation) {
6750
+ acc.push(mutation);
6751
+ }
6752
+ } catch (e$$1) {
6753
+ if (!PRODUCTION) {
6754
+ if (e$$1.name === "MissingIcon") {
6755
+ console.error(e$$1);
6756
+ }
6757
+ }
6758
+ }
6759
+ return acc;
6760
+ }, []);
6761
+ return new Promise((resolve, reject) => {
6762
+ Promise.all(mutations).then((resolvedMutations) => {
6763
+ perform(resolvedMutations, () => {
6764
+ hclAdd("active");
6765
+ hclAdd("complete");
6766
+ hclRemove("pending");
6767
+ if (typeof callback === "function") callback();
6768
+ mark();
6769
+ resolve();
6770
+ });
6771
+ }).catch((e$$1) => {
6772
+ mark();
6773
+ reject(e$$1);
6774
+ });
6775
+ });
6776
+ }
6777
+ function onNode(node) {
6778
+ let callback = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : null;
6779
+ generateMutation(node).then((mutation) => {
6780
+ if (mutation) {
6781
+ perform([mutation], callback);
6782
+ }
6783
+ });
6784
+ }
6785
+ function resolveIcons(next) {
6786
+ return function(maybeIconDefinition) {
6787
+ let params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
6788
+ const iconDefinition = (maybeIconDefinition || {}).icon ? maybeIconDefinition : findIconDefinition(maybeIconDefinition || {});
6789
+ let {
6790
+ mask
6791
+ } = params;
6792
+ if (mask) {
6793
+ mask = (mask || {}).icon ? mask : findIconDefinition(mask || {});
6794
+ }
6795
+ return next(iconDefinition, _objectSpread2(_objectSpread2({}, params), {}, {
6796
+ mask
6797
+ }));
6798
+ };
6799
+ }
6800
+ var render = function(iconDefinition) {
6801
+ let params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
6802
+ const {
6803
+ transform = meaninglessTransform,
6804
+ symbol = false,
6805
+ mask = null,
6806
+ maskId = null,
6807
+ title = null,
6808
+ titleId = null,
6809
+ classes = [],
6810
+ attributes = {},
6811
+ styles: styles2 = {}
6812
+ } = params;
6813
+ if (!iconDefinition) return;
6814
+ const {
6815
+ prefix,
6816
+ iconName,
6817
+ icon: icon2
6818
+ } = iconDefinition;
6819
+ return domVariants(_objectSpread2({
6820
+ type: "icon"
6821
+ }, iconDefinition), () => {
6822
+ callHooks("beforeDOMElementCreation", {
6823
+ iconDefinition,
6824
+ params
6825
+ });
6826
+ if (config.autoA11y) {
6827
+ if (title) {
6828
+ attributes["aria-labelledby"] = "".concat(config.replacementClass, "-title-").concat(titleId || nextUniqueId());
6829
+ } else {
6830
+ attributes["aria-hidden"] = "true";
6831
+ attributes["focusable"] = "false";
6832
+ }
6833
+ }
6834
+ return makeInlineSvgAbstract({
6835
+ icons: {
6836
+ main: asFoundIcon(icon2),
6837
+ mask: mask ? asFoundIcon(mask.icon) : {
6838
+ found: false,
6839
+ width: null,
6840
+ height: null,
6841
+ icon: {}
6842
+ }
6843
+ },
6844
+ prefix,
6845
+ iconName,
6846
+ transform: _objectSpread2(_objectSpread2({}, meaninglessTransform), transform),
6847
+ symbol,
6848
+ title,
6849
+ maskId,
6850
+ titleId,
6851
+ extra: {
6852
+ attributes,
6853
+ styles: styles2,
6854
+ classes
6855
+ }
6856
+ });
6857
+ });
6858
+ };
6859
+ var ReplaceElements = {
6860
+ mixout() {
6861
+ return {
6862
+ icon: resolveIcons(render)
6863
+ };
6864
+ },
6865
+ hooks() {
6866
+ return {
6867
+ mutationObserverCallbacks(accumulator) {
6868
+ accumulator.treeCallback = onTree;
6869
+ accumulator.nodeCallback = onNode;
6870
+ return accumulator;
6871
+ }
6872
+ };
6873
+ },
6874
+ provides(providers$$1) {
6875
+ providers$$1.i2svg = function(params) {
6876
+ const {
6877
+ node = DOCUMENT,
6878
+ callback = () => {
6879
+ }
6880
+ } = params;
6881
+ return onTree(node, callback);
6882
+ };
6883
+ providers$$1.generateSvgReplacementMutation = function(node, nodeMeta) {
6884
+ const {
6885
+ iconName,
6886
+ title,
6887
+ titleId,
6888
+ prefix,
6889
+ transform,
6890
+ symbol,
6891
+ mask,
6892
+ maskId,
6893
+ extra
6894
+ } = nodeMeta;
6895
+ return new Promise((resolve, reject) => {
6896
+ Promise.all([findIcon(iconName, prefix), mask.iconName ? findIcon(mask.iconName, mask.prefix) : Promise.resolve({
6897
+ found: false,
6898
+ width: 512,
6899
+ height: 512,
6900
+ icon: {}
6901
+ })]).then((_ref) => {
6902
+ let [main, mask2] = _ref;
6903
+ resolve([node, makeInlineSvgAbstract({
6904
+ icons: {
6905
+ main,
6906
+ mask: mask2
6907
+ },
6908
+ prefix,
6909
+ iconName,
6910
+ transform,
6911
+ symbol,
6912
+ maskId,
6913
+ title,
6914
+ titleId,
6915
+ extra,
6916
+ watchable: true
6917
+ })]);
6918
+ }).catch(reject);
6919
+ });
6920
+ };
6921
+ providers$$1.generateAbstractIcon = function(_ref2) {
6922
+ let {
6923
+ children,
6924
+ attributes,
6925
+ main,
6926
+ transform,
6927
+ styles: styles2
6928
+ } = _ref2;
6929
+ const styleString = joinStyles(styles2);
6930
+ if (styleString.length > 0) {
6931
+ attributes["style"] = styleString;
6932
+ }
6933
+ let nextChild;
6934
+ if (transformIsMeaningful(transform)) {
6935
+ nextChild = callProvided("generateAbstractTransformGrouping", {
6936
+ main,
6937
+ transform,
6938
+ containerWidth: main.width,
6939
+ iconWidth: main.width
6940
+ });
6941
+ }
6942
+ children.push(nextChild || main.icon);
6943
+ return {
6944
+ children,
6945
+ attributes
6946
+ };
6947
+ };
6948
+ }
6949
+ };
6950
+ var Layers = {
6951
+ mixout() {
6952
+ return {
6953
+ layer(assembler) {
6954
+ let params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
6955
+ const {
6956
+ classes = []
6957
+ } = params;
6958
+ return domVariants({
6959
+ type: "layer"
6960
+ }, () => {
6961
+ callHooks("beforeDOMElementCreation", {
6962
+ assembler,
6963
+ params
6964
+ });
6965
+ let children = [];
6966
+ assembler((args) => {
6967
+ Array.isArray(args) ? args.map((a) => {
6968
+ children = children.concat(a.abstract);
6969
+ }) : children = children.concat(args.abstract);
6970
+ });
6971
+ return [{
6972
+ tag: "span",
6973
+ attributes: {
6974
+ class: ["".concat(config.cssPrefix, "-layers"), ...classes].join(" ")
6975
+ },
6976
+ children
6977
+ }];
6978
+ });
6979
+ }
6980
+ };
6981
+ }
6982
+ };
6983
+ var LayersCounter = {
6984
+ mixout() {
6985
+ return {
6986
+ counter(content) {
6987
+ let params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
6988
+ const {
6989
+ title = null,
6990
+ classes = [],
6991
+ attributes = {},
6992
+ styles: styles2 = {}
6993
+ } = params;
6994
+ return domVariants({
6995
+ type: "counter",
6996
+ content
6997
+ }, () => {
6998
+ callHooks("beforeDOMElementCreation", {
6999
+ content,
7000
+ params
7001
+ });
7002
+ return makeLayersCounterAbstract({
7003
+ content: content.toString(),
7004
+ title,
7005
+ extra: {
7006
+ attributes,
7007
+ styles: styles2,
7008
+ classes: ["".concat(config.cssPrefix, "-layers-counter"), ...classes]
7009
+ }
7010
+ });
7011
+ });
7012
+ }
7013
+ };
7014
+ }
7015
+ };
7016
+ var LayersText = {
7017
+ mixout() {
7018
+ return {
7019
+ text(content) {
7020
+ let params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
7021
+ const {
7022
+ transform = meaninglessTransform,
7023
+ title = null,
7024
+ classes = [],
7025
+ attributes = {},
7026
+ styles: styles2 = {}
7027
+ } = params;
7028
+ return domVariants({
7029
+ type: "text",
7030
+ content
7031
+ }, () => {
7032
+ callHooks("beforeDOMElementCreation", {
7033
+ content,
7034
+ params
7035
+ });
7036
+ return makeLayersTextAbstract({
7037
+ content,
7038
+ transform: _objectSpread2(_objectSpread2({}, meaninglessTransform), transform),
7039
+ title,
7040
+ extra: {
7041
+ attributes,
7042
+ styles: styles2,
7043
+ classes: ["".concat(config.cssPrefix, "-layers-text"), ...classes]
7044
+ }
7045
+ });
7046
+ });
7047
+ }
7048
+ };
7049
+ },
7050
+ provides(providers$$1) {
7051
+ providers$$1.generateLayersText = function(node, nodeMeta) {
7052
+ const {
7053
+ title,
7054
+ transform,
7055
+ extra
7056
+ } = nodeMeta;
7057
+ let width = null;
7058
+ let height = null;
7059
+ if (IS_IE) {
7060
+ const computedFontSize = parseInt(getComputedStyle(node).fontSize, 10);
7061
+ const boundingClientRect = node.getBoundingClientRect();
7062
+ width = boundingClientRect.width / computedFontSize;
7063
+ height = boundingClientRect.height / computedFontSize;
7064
+ }
7065
+ if (config.autoA11y && !title) {
7066
+ extra.attributes["aria-hidden"] = "true";
7067
+ }
7068
+ return Promise.resolve([node, makeLayersTextAbstract({
7069
+ content: node.innerHTML,
7070
+ width,
7071
+ height,
7072
+ transform,
7073
+ title,
7074
+ extra,
7075
+ watchable: true
7076
+ })]);
7077
+ };
7078
+ }
7079
+ };
7080
+ var CLEAN_CONTENT_PATTERN = new RegExp('"', "ug");
7081
+ var SECONDARY_UNICODE_RANGE = [1105920, 1112319];
7082
+ var _FONT_FAMILY_WEIGHT_TO_PREFIX = _objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2({}, {
7083
+ FontAwesome: {
7084
+ normal: "fas",
7085
+ 400: "fas"
7086
+ }
7087
+ }), lt), wa), Yt);
7088
+ var FONT_FAMILY_WEIGHT_TO_PREFIX = Object.keys(_FONT_FAMILY_WEIGHT_TO_PREFIX).reduce((acc, key) => {
7089
+ acc[key.toLowerCase()] = _FONT_FAMILY_WEIGHT_TO_PREFIX[key];
7090
+ return acc;
7091
+ }, {});
7092
+ var FONT_FAMILY_WEIGHT_FALLBACK = Object.keys(FONT_FAMILY_WEIGHT_TO_PREFIX).reduce((acc, fontFamily) => {
7093
+ const weights = FONT_FAMILY_WEIGHT_TO_PREFIX[fontFamily];
7094
+ acc[fontFamily] = weights[900] || [...Object.entries(weights)][0][1];
7095
+ return acc;
7096
+ }, {});
7097
+ function hexValueFromContent(content) {
7098
+ const cleaned = content.replace(CLEAN_CONTENT_PATTERN, "");
7099
+ const codePoint = codePointAt(cleaned, 0);
7100
+ const isPrependTen = codePoint >= SECONDARY_UNICODE_RANGE[0] && codePoint <= SECONDARY_UNICODE_RANGE[1];
7101
+ const isDoubled = cleaned.length === 2 ? cleaned[0] === cleaned[1] : false;
7102
+ return {
7103
+ value: isDoubled ? toHex(cleaned[0]) : toHex(cleaned),
7104
+ isSecondary: isPrependTen || isDoubled
7105
+ };
7106
+ }
7107
+ function getPrefix(fontFamily, fontWeight) {
7108
+ const fontFamilySanitized = fontFamily.replace(/^['"]|['"]$/g, "").toLowerCase();
7109
+ const fontWeightInteger = parseInt(fontWeight);
7110
+ const fontWeightSanitized = isNaN(fontWeightInteger) ? "normal" : fontWeightInteger;
7111
+ return (FONT_FAMILY_WEIGHT_TO_PREFIX[fontFamilySanitized] || {})[fontWeightSanitized] || FONT_FAMILY_WEIGHT_FALLBACK[fontFamilySanitized];
7112
+ }
7113
+ function replaceForPosition(node, position) {
7114
+ const pendingAttribute = "".concat(DATA_FA_PSEUDO_ELEMENT_PENDING).concat(position.replace(":", "-"));
7115
+ return new Promise((resolve, reject) => {
7116
+ if (node.getAttribute(pendingAttribute) !== null) {
7117
+ return resolve();
7118
+ }
7119
+ const children = toArray(node.children);
7120
+ const alreadyProcessedPseudoElement = children.filter((c$$1) => c$$1.getAttribute(DATA_FA_PSEUDO_ELEMENT) === position)[0];
7121
+ const styles2 = WINDOW.getComputedStyle(node, position);
7122
+ const fontFamily = styles2.getPropertyValue("font-family");
7123
+ const fontFamilyMatch = fontFamily.match(FONT_FAMILY_PATTERN);
7124
+ const fontWeight = styles2.getPropertyValue("font-weight");
7125
+ const content = styles2.getPropertyValue("content");
7126
+ if (alreadyProcessedPseudoElement && !fontFamilyMatch) {
7127
+ node.removeChild(alreadyProcessedPseudoElement);
7128
+ return resolve();
7129
+ } else if (fontFamilyMatch && content !== "none" && content !== "") {
7130
+ const content2 = styles2.getPropertyValue("content");
7131
+ let prefix = getPrefix(fontFamily, fontWeight);
7132
+ const {
7133
+ value: hexValue,
7134
+ isSecondary
7135
+ } = hexValueFromContent(content2);
7136
+ const isV4 = fontFamilyMatch[0].startsWith("FontAwesome");
7137
+ let iconName = byUnicode(prefix, hexValue);
7138
+ let iconIdentifier = iconName;
7139
+ if (isV4) {
7140
+ const iconName4 = byOldUnicode(hexValue);
7141
+ if (iconName4.iconName && iconName4.prefix) {
7142
+ iconName = iconName4.iconName;
7143
+ prefix = iconName4.prefix;
7144
+ }
7145
+ }
7146
+ if (iconName && !isSecondary && (!alreadyProcessedPseudoElement || alreadyProcessedPseudoElement.getAttribute(DATA_PREFIX) !== prefix || alreadyProcessedPseudoElement.getAttribute(DATA_ICON) !== iconIdentifier)) {
7147
+ node.setAttribute(pendingAttribute, iconIdentifier);
7148
+ if (alreadyProcessedPseudoElement) {
7149
+ node.removeChild(alreadyProcessedPseudoElement);
7150
+ }
7151
+ const meta = blankMeta();
7152
+ const {
7153
+ extra
7154
+ } = meta;
7155
+ extra.attributes[DATA_FA_PSEUDO_ELEMENT] = position;
7156
+ findIcon(iconName, prefix).then((main) => {
7157
+ const abstract = makeInlineSvgAbstract(_objectSpread2(_objectSpread2({}, meta), {}, {
7158
+ icons: {
7159
+ main,
7160
+ mask: emptyCanonicalIcon()
7161
+ },
7162
+ prefix,
7163
+ iconName: iconIdentifier,
7164
+ extra,
7165
+ watchable: true
7166
+ }));
7167
+ const element = DOCUMENT.createElementNS("http://www.w3.org/2000/svg", "svg");
7168
+ if (position === "::before") {
7169
+ node.insertBefore(element, node.firstChild);
7170
+ } else {
7171
+ node.appendChild(element);
7172
+ }
7173
+ element.outerHTML = abstract.map((a$$1) => toHtml(a$$1)).join("\n");
7174
+ node.removeAttribute(pendingAttribute);
7175
+ resolve();
7176
+ }).catch(reject);
7177
+ } else {
7178
+ resolve();
7179
+ }
7180
+ } else {
7181
+ resolve();
7182
+ }
7183
+ });
7184
+ }
7185
+ function replace(node) {
7186
+ return Promise.all([replaceForPosition(node, "::before"), replaceForPosition(node, "::after")]);
7187
+ }
7188
+ function processable(node) {
7189
+ 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");
7190
+ }
7191
+ function searchPseudoElements(root) {
7192
+ if (!IS_DOM) return;
7193
+ return new Promise((resolve, reject) => {
7194
+ const operations = toArray(root.querySelectorAll("*")).filter(processable).map(replace);
7195
+ const end2 = perf.begin("searchPseudoElements");
7196
+ disableObservation();
7197
+ Promise.all(operations).then(() => {
7198
+ end2();
7199
+ enableObservation();
7200
+ resolve();
7201
+ }).catch(() => {
7202
+ end2();
7203
+ enableObservation();
7204
+ reject();
7205
+ });
7206
+ });
7207
+ }
7208
+ var PseudoElements = {
7209
+ hooks() {
7210
+ return {
7211
+ mutationObserverCallbacks(accumulator) {
7212
+ accumulator.pseudoElementsCallback = searchPseudoElements;
7213
+ return accumulator;
7214
+ }
7215
+ };
7216
+ },
7217
+ provides(providers2) {
7218
+ providers2.pseudoElements2svg = function(params) {
7219
+ const {
7220
+ node = DOCUMENT
7221
+ } = params;
7222
+ if (config.searchPseudoElements) {
7223
+ searchPseudoElements(node);
7224
+ }
7225
+ };
7226
+ }
7227
+ };
7228
+ var _unwatched = false;
7229
+ var MutationObserver$1 = {
7230
+ mixout() {
7231
+ return {
7232
+ dom: {
7233
+ unwatch() {
7234
+ disableObservation();
7235
+ _unwatched = true;
7236
+ }
7237
+ }
7238
+ };
7239
+ },
7240
+ hooks() {
7241
+ return {
7242
+ bootstrap() {
7243
+ observe(chainHooks("mutationObserverCallbacks", {}));
7244
+ },
7245
+ noAuto() {
7246
+ disconnect();
7247
+ },
7248
+ watch(params) {
7249
+ const {
7250
+ observeMutationsRoot
7251
+ } = params;
7252
+ if (_unwatched) {
7253
+ enableObservation();
7254
+ } else {
7255
+ observe(chainHooks("mutationObserverCallbacks", {
7256
+ observeMutationsRoot
7257
+ }));
7258
+ }
7259
+ }
7260
+ };
7261
+ }
7262
+ };
7263
+ var parseTransformString = (transformString) => {
7264
+ let transform = {
7265
+ size: 16,
7266
+ x: 0,
7267
+ y: 0,
7268
+ flipX: false,
7269
+ flipY: false,
7270
+ rotate: 0
7271
+ };
7272
+ return transformString.toLowerCase().split(" ").reduce((acc, n) => {
7273
+ const parts = n.toLowerCase().split("-");
7274
+ const first = parts[0];
7275
+ let rest = parts.slice(1).join("-");
7276
+ if (first && rest === "h") {
7277
+ acc.flipX = true;
7278
+ return acc;
7279
+ }
7280
+ if (first && rest === "v") {
7281
+ acc.flipY = true;
7282
+ return acc;
7283
+ }
7284
+ rest = parseFloat(rest);
7285
+ if (isNaN(rest)) {
7286
+ return acc;
7287
+ }
7288
+ switch (first) {
7289
+ case "grow":
7290
+ acc.size = acc.size + rest;
7291
+ break;
7292
+ case "shrink":
7293
+ acc.size = acc.size - rest;
7294
+ break;
7295
+ case "left":
7296
+ acc.x = acc.x - rest;
7297
+ break;
7298
+ case "right":
7299
+ acc.x = acc.x + rest;
7300
+ break;
7301
+ case "up":
7302
+ acc.y = acc.y - rest;
7303
+ break;
7304
+ case "down":
7305
+ acc.y = acc.y + rest;
7306
+ break;
7307
+ case "rotate":
7308
+ acc.rotate = acc.rotate + rest;
7309
+ break;
7310
+ }
7311
+ return acc;
7312
+ }, transform);
7313
+ };
7314
+ var PowerTransforms = {
7315
+ mixout() {
7316
+ return {
7317
+ parse: {
7318
+ transform: (transformString) => {
7319
+ return parseTransformString(transformString);
7320
+ }
7321
+ }
7322
+ };
7323
+ },
7324
+ hooks() {
7325
+ return {
7326
+ parseNodeAttributes(accumulator, node) {
7327
+ const transformString = node.getAttribute("data-fa-transform");
7328
+ if (transformString) {
7329
+ accumulator.transform = parseTransformString(transformString);
7330
+ }
7331
+ return accumulator;
7332
+ }
7333
+ };
7334
+ },
7335
+ provides(providers2) {
7336
+ providers2.generateAbstractTransformGrouping = function(_ref) {
7337
+ let {
7338
+ main,
7339
+ transform,
7340
+ containerWidth,
7341
+ iconWidth
7342
+ } = _ref;
7343
+ const outer = {
7344
+ transform: "translate(".concat(containerWidth / 2, " 256)")
7345
+ };
7346
+ const innerTranslate = "translate(".concat(transform.x * 32, ", ").concat(transform.y * 32, ") ");
7347
+ const innerScale = "scale(".concat(transform.size / 16 * (transform.flipX ? -1 : 1), ", ").concat(transform.size / 16 * (transform.flipY ? -1 : 1), ") ");
7348
+ const innerRotate = "rotate(".concat(transform.rotate, " 0 0)");
7349
+ const inner = {
7350
+ transform: "".concat(innerTranslate, " ").concat(innerScale, " ").concat(innerRotate)
7351
+ };
7352
+ const path = {
7353
+ transform: "translate(".concat(iconWidth / 2 * -1, " -256)")
7354
+ };
7355
+ const operations = {
7356
+ outer,
7357
+ inner,
7358
+ path
7359
+ };
7360
+ return {
7361
+ tag: "g",
7362
+ attributes: _objectSpread2({}, operations.outer),
7363
+ children: [{
7364
+ tag: "g",
7365
+ attributes: _objectSpread2({}, operations.inner),
7366
+ children: [{
7367
+ tag: main.icon.tag,
7368
+ children: main.icon.children,
7369
+ attributes: _objectSpread2(_objectSpread2({}, main.icon.attributes), operations.path)
7370
+ }]
7371
+ }]
7372
+ };
7373
+ };
7374
+ }
7375
+ };
7376
+ var ALL_SPACE = {
7377
+ x: 0,
7378
+ y: 0,
7379
+ width: "100%",
7380
+ height: "100%"
7381
+ };
7382
+ function fillBlack(abstract) {
7383
+ let force = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : true;
7384
+ if (abstract.attributes && (abstract.attributes.fill || force)) {
7385
+ abstract.attributes.fill = "black";
7386
+ }
7387
+ return abstract;
7388
+ }
7389
+ function deGroup(abstract) {
7390
+ if (abstract.tag === "g") {
7391
+ return abstract.children;
7392
+ } else {
7393
+ return [abstract];
7394
+ }
7395
+ }
7396
+ var Masks = {
7397
+ hooks() {
7398
+ return {
7399
+ parseNodeAttributes(accumulator, node) {
7400
+ const maskData = node.getAttribute("data-fa-mask");
7401
+ const mask = !maskData ? emptyCanonicalIcon() : getCanonicalIcon(maskData.split(" ").map((i) => i.trim()));
7402
+ if (!mask.prefix) {
7403
+ mask.prefix = getDefaultUsablePrefix();
7404
+ }
7405
+ accumulator.mask = mask;
7406
+ accumulator.maskId = node.getAttribute("data-fa-mask-id");
7407
+ return accumulator;
7408
+ }
7409
+ };
7410
+ },
7411
+ provides(providers2) {
7412
+ providers2.generateAbstractMask = function(_ref) {
7413
+ let {
7414
+ children,
7415
+ attributes,
7416
+ main,
7417
+ mask,
7418
+ maskId: explicitMaskId,
7419
+ transform
7420
+ } = _ref;
7421
+ const {
7422
+ width: mainWidth,
7423
+ icon: mainPath
7424
+ } = main;
7425
+ const {
7426
+ width: maskWidth,
7427
+ icon: maskPath
7428
+ } = mask;
7429
+ const trans = transformForSvg({
7430
+ transform,
7431
+ containerWidth: maskWidth,
7432
+ iconWidth: mainWidth
7433
+ });
7434
+ const maskRect = {
7435
+ tag: "rect",
7436
+ attributes: _objectSpread2(_objectSpread2({}, ALL_SPACE), {}, {
7437
+ fill: "white"
7438
+ })
7439
+ };
7440
+ const maskInnerGroupChildrenMixin = mainPath.children ? {
7441
+ children: mainPath.children.map(fillBlack)
7442
+ } : {};
7443
+ const maskInnerGroup = {
7444
+ tag: "g",
7445
+ attributes: _objectSpread2({}, trans.inner),
7446
+ children: [fillBlack(_objectSpread2({
7447
+ tag: mainPath.tag,
7448
+ attributes: _objectSpread2(_objectSpread2({}, mainPath.attributes), trans.path)
7449
+ }, maskInnerGroupChildrenMixin))]
7450
+ };
7451
+ const maskOuterGroup = {
7452
+ tag: "g",
7453
+ attributes: _objectSpread2({}, trans.outer),
7454
+ children: [maskInnerGroup]
7455
+ };
7456
+ const maskId = "mask-".concat(explicitMaskId || nextUniqueId());
7457
+ const clipId = "clip-".concat(explicitMaskId || nextUniqueId());
7458
+ const maskTag = {
7459
+ tag: "mask",
7460
+ attributes: _objectSpread2(_objectSpread2({}, ALL_SPACE), {}, {
7461
+ id: maskId,
7462
+ maskUnits: "userSpaceOnUse",
7463
+ maskContentUnits: "userSpaceOnUse"
7464
+ }),
7465
+ children: [maskRect, maskOuterGroup]
7466
+ };
7467
+ const defs = {
7468
+ tag: "defs",
7469
+ children: [{
7470
+ tag: "clipPath",
7471
+ attributes: {
7472
+ id: clipId
7473
+ },
7474
+ children: deGroup(maskPath)
7475
+ }, maskTag]
7476
+ };
7477
+ children.push(defs, {
7478
+ tag: "rect",
7479
+ attributes: _objectSpread2({
7480
+ fill: "currentColor",
7481
+ "clip-path": "url(#".concat(clipId, ")"),
7482
+ mask: "url(#".concat(maskId, ")")
7483
+ }, ALL_SPACE)
7484
+ });
7485
+ return {
7486
+ children,
7487
+ attributes
7488
+ };
7489
+ };
7490
+ }
7491
+ };
7492
+ var MissingIconIndicator = {
7493
+ provides(providers2) {
7494
+ let reduceMotion = false;
7495
+ if (WINDOW.matchMedia) {
7496
+ reduceMotion = WINDOW.matchMedia("(prefers-reduced-motion: reduce)").matches;
7497
+ }
7498
+ providers2.missingIconAbstract = function() {
7499
+ const gChildren = [];
7500
+ const FILL = {
7501
+ fill: "currentColor"
7502
+ };
7503
+ const ANIMATION_BASE = {
7504
+ attributeType: "XML",
7505
+ repeatCount: "indefinite",
7506
+ dur: "2s"
7507
+ };
7508
+ gChildren.push({
7509
+ tag: "path",
7510
+ attributes: _objectSpread2(_objectSpread2({}, FILL), {}, {
7511
+ 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"
7512
+ })
7513
+ });
7514
+ const OPACITY_ANIMATE = _objectSpread2(_objectSpread2({}, ANIMATION_BASE), {}, {
7515
+ attributeName: "opacity"
7516
+ });
7517
+ const dot = {
7518
+ tag: "circle",
7519
+ attributes: _objectSpread2(_objectSpread2({}, FILL), {}, {
7520
+ cx: "256",
7521
+ cy: "364",
7522
+ r: "28"
7523
+ }),
7524
+ children: []
7525
+ };
7526
+ if (!reduceMotion) {
7527
+ dot.children.push({
7528
+ tag: "animate",
7529
+ attributes: _objectSpread2(_objectSpread2({}, ANIMATION_BASE), {}, {
7530
+ attributeName: "r",
7531
+ values: "28;14;28;28;14;28;"
7532
+ })
7533
+ }, {
7534
+ tag: "animate",
7535
+ attributes: _objectSpread2(_objectSpread2({}, OPACITY_ANIMATE), {}, {
7536
+ values: "1;0;1;1;0;1;"
7537
+ })
7538
+ });
7539
+ }
7540
+ gChildren.push(dot);
7541
+ gChildren.push({
7542
+ tag: "path",
7543
+ attributes: _objectSpread2(_objectSpread2({}, FILL), {}, {
7544
+ opacity: "1",
7545
+ 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"
7546
+ }),
7547
+ children: reduceMotion ? [] : [{
7548
+ tag: "animate",
7549
+ attributes: _objectSpread2(_objectSpread2({}, OPACITY_ANIMATE), {}, {
7550
+ values: "1;0;0;0;0;1;"
7551
+ })
7552
+ }]
7553
+ });
7554
+ if (!reduceMotion) {
7555
+ gChildren.push({
7556
+ tag: "path",
7557
+ attributes: _objectSpread2(_objectSpread2({}, FILL), {}, {
7558
+ opacity: "0",
7559
+ 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"
7560
+ }),
7561
+ children: [{
7562
+ tag: "animate",
7563
+ attributes: _objectSpread2(_objectSpread2({}, OPACITY_ANIMATE), {}, {
7564
+ values: "0;0;1;1;0;0;"
7565
+ })
7566
+ }]
7567
+ });
7568
+ }
7569
+ return {
7570
+ tag: "g",
7571
+ attributes: {
7572
+ "class": "missing"
7573
+ },
7574
+ children: gChildren
7575
+ };
7576
+ };
7577
+ }
7578
+ };
7579
+ var SvgSymbols = {
7580
+ hooks() {
7581
+ return {
7582
+ parseNodeAttributes(accumulator, node) {
7583
+ const symbolData = node.getAttribute("data-fa-symbol");
7584
+ const symbol = symbolData === null ? false : symbolData === "" ? true : symbolData;
7585
+ accumulator["symbol"] = symbol;
7586
+ return accumulator;
7587
+ }
7588
+ };
7589
+ }
7590
+ };
7591
+ var plugins = [InjectCSS, ReplaceElements, Layers, LayersCounter, LayersText, PseudoElements, MutationObserver$1, PowerTransforms, Masks, MissingIconIndicator, SvgSymbols];
7592
+ registerPlugins(plugins, {
7593
+ mixoutsTo: api
7594
+ });
7595
+ api.noAuto;
7596
+ api.config;
7597
+ api.library;
7598
+ api.dom;
7599
+ var parse$1 = api.parse;
7600
+ api.findIconDefinition;
7601
+ api.toHtml;
7602
+ var icon = api.icon;
7603
+ api.layer;
7604
+ api.text;
7605
+ api.counter;
7606
+
7607
+ // ../../node_modules/.pnpm/@fortawesome+react-fontawesome@0.2.6_@fortawesome+fontawesome-svg-core@6.7.2_react@19.2.2/node_modules/@fortawesome/react-fontawesome/index.es.js
7608
+ var import_prop_types = __toESM(require_prop_types());
7609
+ function _arrayLikeToArray(r3, a) {
7610
+ (null == a || a > r3.length) && (a = r3.length);
7611
+ for (var e = 0, n = Array(a); e < a; e++) n[e] = r3[e];
7612
+ return n;
7613
+ }
7614
+ function _arrayWithHoles(r3) {
7615
+ if (Array.isArray(r3)) return r3;
7616
+ }
7617
+ function _arrayWithoutHoles(r3) {
7618
+ if (Array.isArray(r3)) return _arrayLikeToArray(r3);
7619
+ }
7620
+ function _defineProperty2(e, r3, t2) {
7621
+ return (r3 = _toPropertyKey2(r3)) in e ? Object.defineProperty(e, r3, {
7622
+ value: t2,
7623
+ enumerable: true,
7624
+ configurable: true,
7625
+ writable: true
7626
+ }) : e[r3] = t2, e;
7627
+ }
7628
+ function _iterableToArray(r3) {
7629
+ if ("undefined" != typeof Symbol && null != r3[Symbol.iterator] || null != r3["@@iterator"]) return Array.from(r3);
7630
+ }
7631
+ function _iterableToArrayLimit(r3, l) {
7632
+ var t2 = null == r3 ? null : "undefined" != typeof Symbol && r3[Symbol.iterator] || r3["@@iterator"];
7633
+ if (null != t2) {
7634
+ var e, n, i, u, a = [], f = true, o2 = false;
7635
+ try {
7636
+ if (i = (t2 = t2.call(r3)).next, 0 === l) ; else for (; !(f = (e = i.call(t2)).done) && (a.push(e.value), a.length !== l); f = true) ;
7637
+ } catch (r4) {
7638
+ o2 = true, n = r4;
7639
+ } finally {
7640
+ try {
7641
+ if (!f && null != t2.return && (u = t2.return(), Object(u) !== u)) return;
7642
+ } finally {
7643
+ if (o2) throw n;
7644
+ }
7645
+ }
7646
+ return a;
7647
+ }
7648
+ }
7649
+ function _nonIterableRest() {
7650
+ throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
7651
+ }
7652
+ function _nonIterableSpread() {
7653
+ throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
7654
+ }
7655
+ function ownKeys2(e, r3) {
7656
+ var t2 = Object.keys(e);
7657
+ if (Object.getOwnPropertySymbols) {
7658
+ var o2 = Object.getOwnPropertySymbols(e);
7659
+ r3 && (o2 = o2.filter(function(r4) {
7660
+ return Object.getOwnPropertyDescriptor(e, r4).enumerable;
7661
+ })), t2.push.apply(t2, o2);
7662
+ }
7663
+ return t2;
7664
+ }
7665
+ function _objectSpread22(e) {
7666
+ for (var r3 = 1; r3 < arguments.length; r3++) {
7667
+ var t2 = null != arguments[r3] ? arguments[r3] : {};
7668
+ r3 % 2 ? ownKeys2(Object(t2), true).forEach(function(r4) {
7669
+ _defineProperty2(e, r4, t2[r4]);
7670
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t2)) : ownKeys2(Object(t2)).forEach(function(r4) {
7671
+ Object.defineProperty(e, r4, Object.getOwnPropertyDescriptor(t2, r4));
7672
+ });
7673
+ }
7674
+ return e;
7675
+ }
7676
+ function _objectWithoutProperties(e, t2) {
7677
+ if (null == e) return {};
7678
+ var o2, r3, i = _objectWithoutPropertiesLoose(e, t2);
7679
+ if (Object.getOwnPropertySymbols) {
7680
+ var n = Object.getOwnPropertySymbols(e);
7681
+ for (r3 = 0; r3 < n.length; r3++) o2 = n[r3], -1 === t2.indexOf(o2) && {}.propertyIsEnumerable.call(e, o2) && (i[o2] = e[o2]);
7682
+ }
7683
+ return i;
7684
+ }
7685
+ function _objectWithoutPropertiesLoose(r3, e) {
7686
+ if (null == r3) return {};
7687
+ var t2 = {};
7688
+ for (var n in r3) if ({}.hasOwnProperty.call(r3, n)) {
7689
+ if (-1 !== e.indexOf(n)) continue;
7690
+ t2[n] = r3[n];
7691
+ }
7692
+ return t2;
7693
+ }
7694
+ function _slicedToArray(r3, e) {
7695
+ return _arrayWithHoles(r3) || _iterableToArrayLimit(r3, e) || _unsupportedIterableToArray(r3, e) || _nonIterableRest();
7696
+ }
7697
+ function _toConsumableArray(r3) {
7698
+ return _arrayWithoutHoles(r3) || _iterableToArray(r3) || _unsupportedIterableToArray(r3) || _nonIterableSpread();
7699
+ }
7700
+ function _toPrimitive2(t2, r3) {
7701
+ if ("object" != typeof t2 || !t2) return t2;
7702
+ var e = t2[Symbol.toPrimitive];
7703
+ if (void 0 !== e) {
7704
+ var i = e.call(t2, r3);
7705
+ if ("object" != typeof i) return i;
7706
+ throw new TypeError("@@toPrimitive must return a primitive value.");
7707
+ }
7708
+ return ("string" === r3 ? String : Number)(t2);
7709
+ }
7710
+ function _toPropertyKey2(t2) {
7711
+ var i = _toPrimitive2(t2, "string");
7712
+ return "symbol" == typeof i ? i : i + "";
7713
+ }
7714
+ function _typeof(o2) {
7715
+ "@babel/helpers - typeof";
7716
+ return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o3) {
7717
+ return typeof o3;
7718
+ } : function(o3) {
7719
+ return o3 && "function" == typeof Symbol && o3.constructor === Symbol && o3 !== Symbol.prototype ? "symbol" : typeof o3;
7720
+ }, _typeof(o2);
7721
+ }
7722
+ function _unsupportedIterableToArray(r3, a) {
7723
+ if (r3) {
7724
+ if ("string" == typeof r3) return _arrayLikeToArray(r3, a);
7725
+ var t2 = {}.toString.call(r3).slice(8, -1);
7726
+ return "Object" === t2 && r3.constructor && (t2 = r3.constructor.name), "Map" === t2 || "Set" === t2 ? Array.from(r3) : "Arguments" === t2 || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t2) ? _arrayLikeToArray(r3, a) : void 0;
7727
+ }
7728
+ }
7729
+ var ICON_PACKS_STARTING_VERSION = "7.0.0";
7730
+ var SVG_CORE_VERSION;
7731
+ try {
7732
+ svgCorePackageJson = require_package();
7733
+ SVG_CORE_VERSION = svgCorePackageJson.version;
7734
+ } catch (e) {
7735
+ SVG_CORE_VERSION = typeof process !== "undefined" && process.env.FA_VERSION || "7.0.0";
7736
+ }
7737
+ var svgCorePackageJson;
7738
+ function classList(props) {
7739
+ var beat = props.beat, fade = props.fade, beatFade = props.beatFade, bounce = props.bounce, shake = props.shake, flash = props.flash, spin = props.spin, spinPulse = props.spinPulse, spinReverse = props.spinReverse, pulse = props.pulse, fixedWidth = props.fixedWidth, inverse = props.inverse, border = props.border, listItem = props.listItem, flip = props.flip, size = props.size, rotation = props.rotation, pull = props.pull, swapOpacity = props.swapOpacity, rotateBy = props.rotateBy, widthAuto = props.widthAuto;
7740
+ var isVersion7OrLater = versionCheckGte(SVG_CORE_VERSION, ICON_PACKS_STARTING_VERSION);
7741
+ var classes = _defineProperty2(_defineProperty2(_defineProperty2(_defineProperty2(_defineProperty2(_defineProperty2({
7742
+ "fa-beat": beat,
7743
+ "fa-fade": fade,
7744
+ "fa-beat-fade": beatFade,
7745
+ "fa-bounce": bounce,
7746
+ "fa-shake": shake,
7747
+ "fa-flash": flash,
7748
+ "fa-spin": spin,
7749
+ "fa-spin-reverse": spinReverse,
7750
+ "fa-spin-pulse": spinPulse,
7751
+ "fa-pulse": pulse,
7752
+ "fa-fw": fixedWidth,
7753
+ "fa-inverse": inverse,
7754
+ "fa-border": border,
7755
+ "fa-li": listItem,
7756
+ "fa-flip": flip === true,
7757
+ "fa-flip-horizontal": flip === "horizontal" || flip === "both",
7758
+ "fa-flip-vertical": flip === "vertical" || flip === "both"
7759
+ }, "fa-".concat(size), typeof size !== "undefined" && size !== null), "fa-rotate-".concat(rotation), typeof rotation !== "undefined" && rotation !== null && rotation !== 0), "fa-pull-".concat(pull), typeof pull !== "undefined" && pull !== null), "fa-swap-opacity", swapOpacity), "fa-rotate-by", isVersion7OrLater && rotateBy), "fa-width-auto", isVersion7OrLater && widthAuto);
7760
+ return Object.keys(classes).map(function(key) {
7761
+ return classes[key] ? key : null;
7762
+ }).filter(function(key) {
7763
+ return key;
7764
+ });
7765
+ }
7766
+ function versionCheckGte(version1, version2) {
7767
+ var _version1$split = version1.split("-"), _version1$split2 = _slicedToArray(_version1$split, 2), v1Base = _version1$split2[0], v1PreRelease = _version1$split2[1];
7768
+ var _version2$split = version2.split("-"), _version2$split2 = _slicedToArray(_version2$split, 2), v2Base = _version2$split2[0], v2PreRelease = _version2$split2[1];
7769
+ var v1Parts = v1Base.split(".");
7770
+ var v2Parts = v2Base.split(".");
7771
+ for (var i = 0; i < Math.max(v1Parts.length, v2Parts.length); i++) {
7772
+ var v1Part = v1Parts[i] || "0";
7773
+ var v2Part = v2Parts[i] || "0";
7774
+ var v1Num = parseInt(v1Part, 10);
7775
+ var v2Num = parseInt(v2Part, 10);
7776
+ if (v1Num !== v2Num) {
7777
+ return v1Num > v2Num;
7778
+ }
7779
+ }
7780
+ for (var _i = 0; _i < Math.max(v1Parts.length, v2Parts.length); _i++) {
7781
+ var _v1Part = v1Parts[_i] || "0";
7782
+ var _v2Part = v2Parts[_i] || "0";
7783
+ if (_v1Part !== _v2Part) {
7784
+ if (_v1Part.length !== _v2Part.length) {
7785
+ return _v1Part.length < _v2Part.length;
7786
+ }
7787
+ }
7788
+ }
7789
+ if (v1PreRelease && !v2PreRelease) return false;
7790
+ if (!v1PreRelease && v2PreRelease) return true;
7791
+ return true;
7792
+ }
7793
+ function _isNumerical(obj) {
7794
+ obj = obj - 0;
7795
+ return obj === obj;
7796
+ }
7797
+ function camelize(string) {
7798
+ if (_isNumerical(string)) {
7799
+ return string;
7800
+ }
7801
+ string = string.replace(/[\-_\s]+(.)?/g, function(match, chr) {
7802
+ return chr ? chr.toUpperCase() : "";
7803
+ });
7804
+ return string.substr(0, 1).toLowerCase() + string.substr(1);
7805
+ }
7806
+ var _excluded = ["style"];
7807
+ function capitalize(val) {
7808
+ return val.charAt(0).toUpperCase() + val.slice(1);
7809
+ }
7810
+ function styleToObject(style) {
7811
+ return style.split(";").map(function(s2) {
7812
+ return s2.trim();
7813
+ }).filter(function(s2) {
7814
+ return s2;
7815
+ }).reduce(function(acc, pair) {
7816
+ var i = pair.indexOf(":");
7817
+ var prop = camelize(pair.slice(0, i));
7818
+ var value = pair.slice(i + 1).trim();
7819
+ prop.startsWith("webkit") ? acc[capitalize(prop)] = value : acc[prop] = value;
7820
+ return acc;
7821
+ }, {});
7822
+ }
7823
+ function convert(createElement4, element) {
7824
+ var extraProps = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
7825
+ if (typeof element === "string") {
7826
+ return element;
7827
+ }
7828
+ var children = (element.children || []).map(function(child) {
7829
+ return convert(createElement4, child);
7830
+ });
7831
+ var mixins = Object.keys(element.attributes || {}).reduce(function(acc, key) {
7832
+ var val = element.attributes[key];
7833
+ switch (key) {
7834
+ case "class":
7835
+ acc.attrs["className"] = val;
7836
+ delete element.attributes["class"];
7837
+ break;
7838
+ case "style":
7839
+ acc.attrs["style"] = styleToObject(val);
7840
+ break;
7841
+ default:
7842
+ if (key.indexOf("aria-") === 0 || key.indexOf("data-") === 0) {
7843
+ acc.attrs[key.toLowerCase()] = val;
7844
+ } else {
7845
+ acc.attrs[camelize(key)] = val;
7846
+ }
7847
+ }
7848
+ return acc;
7849
+ }, {
7850
+ attrs: {}
7851
+ });
7852
+ var _extraProps$style = extraProps.style, existingStyle = _extraProps$style === void 0 ? {} : _extraProps$style, remaining = _objectWithoutProperties(extraProps, _excluded);
7853
+ mixins.attrs["style"] = _objectSpread22(_objectSpread22({}, mixins.attrs["style"]), existingStyle);
7854
+ return createElement4.apply(void 0, [element.tag, _objectSpread22(_objectSpread22({}, mixins.attrs), remaining)].concat(_toConsumableArray(children)));
7855
+ }
7856
+ var PRODUCTION2 = false;
7857
+ try {
7858
+ PRODUCTION2 = process.env.NODE_ENV === "production";
7859
+ } catch (e) {
7860
+ }
7861
+ function log() {
7862
+ if (!PRODUCTION2 && console && typeof console.error === "function") {
7863
+ var _console;
7864
+ (_console = console).error.apply(_console, arguments);
7865
+ }
7866
+ }
7867
+ function normalizeIconArgs(icon2) {
7868
+ if (icon2 && _typeof(icon2) === "object" && icon2.prefix && icon2.iconName && icon2.icon) {
7869
+ return icon2;
7870
+ }
7871
+ if (parse$1.icon) {
7872
+ return parse$1.icon(icon2);
7873
+ }
7874
+ if (icon2 === null) {
7875
+ return null;
7876
+ }
7877
+ if (icon2 && _typeof(icon2) === "object" && icon2.prefix && icon2.iconName) {
7878
+ return icon2;
7879
+ }
7880
+ if (Array.isArray(icon2) && icon2.length === 2) {
7881
+ return {
7882
+ prefix: icon2[0],
7883
+ iconName: icon2[1]
7884
+ };
7885
+ }
7886
+ if (typeof icon2 === "string") {
7887
+ return {
7888
+ prefix: "fas",
7889
+ iconName: icon2
7890
+ };
7891
+ }
7892
+ }
7893
+ function objectWithKey(key, value) {
7894
+ return Array.isArray(value) && value.length > 0 || !Array.isArray(value) && value ? _defineProperty2({}, key, value) : {};
7895
+ }
7896
+ var defaultProps = {
7897
+ border: false,
7898
+ className: "",
7899
+ mask: null,
7900
+ maskId: null,
7901
+ // the fixedWidth property has been deprecated as of version 7
7902
+ fixedWidth: false,
7903
+ inverse: false,
7904
+ flip: false,
7905
+ icon: null,
7906
+ listItem: false,
7907
+ pull: null,
7908
+ pulse: false,
7909
+ rotation: null,
7910
+ rotateBy: false,
7911
+ size: null,
7912
+ spin: false,
7913
+ spinPulse: false,
7914
+ spinReverse: false,
7915
+ beat: false,
7916
+ fade: false,
7917
+ beatFade: false,
7918
+ bounce: false,
7919
+ shake: false,
7920
+ symbol: false,
7921
+ title: "",
7922
+ titleId: null,
7923
+ transform: null,
7924
+ swapOpacity: false,
7925
+ widthAuto: false
7926
+ };
7927
+ var FontAwesomeIcon = /* @__PURE__ */ React3__namespace.default.forwardRef(function(props, ref) {
7928
+ var allProps = _objectSpread22(_objectSpread22({}, defaultProps), props);
7929
+ var iconArgs = allProps.icon, maskArgs = allProps.mask, symbol = allProps.symbol, className = allProps.className, title = allProps.title, titleId = allProps.titleId, maskId = allProps.maskId;
7930
+ var iconLookup = normalizeIconArgs(iconArgs);
7931
+ var classes = objectWithKey("classes", [].concat(_toConsumableArray(classList(allProps)), _toConsumableArray((className || "").split(" "))));
7932
+ var transform = objectWithKey("transform", typeof allProps.transform === "string" ? parse$1.transform(allProps.transform) : allProps.transform);
7933
+ var mask = objectWithKey("mask", normalizeIconArgs(maskArgs));
7934
+ var renderedIcon = icon(iconLookup, _objectSpread22(_objectSpread22(_objectSpread22(_objectSpread22({}, classes), transform), mask), {}, {
7935
+ symbol,
7936
+ title,
7937
+ titleId,
7938
+ maskId
7939
+ }));
7940
+ if (!renderedIcon) {
7941
+ log("Could not find icon", iconLookup);
7942
+ return null;
7943
+ }
7944
+ var abstract = renderedIcon.abstract;
7945
+ var extraProps = {
7946
+ ref
7947
+ };
7948
+ Object.keys(allProps).forEach(function(key) {
7949
+ if (!defaultProps.hasOwnProperty(key)) {
7950
+ extraProps[key] = allProps[key];
7951
+ }
7952
+ });
7953
+ return convertCurry(abstract[0], extraProps);
7954
+ });
7955
+ FontAwesomeIcon.displayName = "FontAwesomeIcon";
7956
+ FontAwesomeIcon.propTypes = {
7957
+ beat: import_prop_types.default.bool,
7958
+ border: import_prop_types.default.bool,
7959
+ beatFade: import_prop_types.default.bool,
7960
+ bounce: import_prop_types.default.bool,
7961
+ className: import_prop_types.default.string,
7962
+ fade: import_prop_types.default.bool,
7963
+ flash: import_prop_types.default.bool,
7964
+ mask: import_prop_types.default.oneOfType([import_prop_types.default.object, import_prop_types.default.array, import_prop_types.default.string]),
7965
+ maskId: import_prop_types.default.string,
7966
+ // the fixedWidth property has been deprecated as of version 7
7967
+ fixedWidth: import_prop_types.default.bool,
7968
+ inverse: import_prop_types.default.bool,
7969
+ flip: import_prop_types.default.oneOf([true, false, "horizontal", "vertical", "both"]),
7970
+ icon: import_prop_types.default.oneOfType([import_prop_types.default.object, import_prop_types.default.array, import_prop_types.default.string]),
7971
+ listItem: import_prop_types.default.bool,
7972
+ pull: import_prop_types.default.oneOf(["right", "left"]),
7973
+ pulse: import_prop_types.default.bool,
7974
+ rotation: import_prop_types.default.oneOf([0, 90, 180, 270]),
7975
+ rotateBy: import_prop_types.default.bool,
7976
+ shake: import_prop_types.default.bool,
7977
+ size: import_prop_types.default.oneOf(["2xs", "xs", "sm", "lg", "xl", "2xl", "1x", "2x", "3x", "4x", "5x", "6x", "7x", "8x", "9x", "10x"]),
7978
+ spin: import_prop_types.default.bool,
7979
+ spinPulse: import_prop_types.default.bool,
7980
+ spinReverse: import_prop_types.default.bool,
7981
+ symbol: import_prop_types.default.oneOfType([import_prop_types.default.bool, import_prop_types.default.string]),
7982
+ title: import_prop_types.default.string,
7983
+ titleId: import_prop_types.default.string,
7984
+ transform: import_prop_types.default.oneOfType([import_prop_types.default.string, import_prop_types.default.object]),
7985
+ swapOpacity: import_prop_types.default.bool,
7986
+ widthAuto: import_prop_types.default.bool
7987
+ };
7988
+ var convertCurry = convert.bind(null, React3__namespace.default.createElement);
7989
+
7990
+ // ../../node_modules/.pnpm/@fortawesome+pro-solid-svg-icons@6.7.2/node_modules/@fortawesome/pro-solid-svg-icons/index.mjs
7991
+ var faGripVertical = {
7992
+ prefix: "fas",
7993
+ iconName: "grip-vertical",
7994
+ icon: [320, 512, [], "f58e", "M40 352l48 0c22.1 0 40 17.9 40 40l0 48c0 22.1-17.9 40-40 40l-48 0c-22.1 0-40-17.9-40-40l0-48c0-22.1 17.9-40 40-40zm192 0l48 0c22.1 0 40 17.9 40 40l0 48c0 22.1-17.9 40-40 40l-48 0c-22.1 0-40-17.9-40-40l0-48c0-22.1 17.9-40 40-40zM40 320c-22.1 0-40-17.9-40-40l0-48c0-22.1 17.9-40 40-40l48 0c22.1 0 40 17.9 40 40l0 48c0 22.1-17.9 40-40 40l-48 0zM232 192l48 0c22.1 0 40 17.9 40 40l0 48c0 22.1-17.9 40-40 40l-48 0c-22.1 0-40-17.9-40-40l0-48c0-22.1 17.9-40 40-40zM40 160c-22.1 0-40-17.9-40-40L0 72C0 49.9 17.9 32 40 32l48 0c22.1 0 40 17.9 40 40l0 48c0 22.1-17.9 40-40 40l-48 0zM232 32l48 0c22.1 0 40 17.9 40 40l0 48c0 22.1-17.9 40-40 40l-48 0c-22.1 0-40-17.9-40-40l0-48c0-22.1 17.9-40 40-40z"]
7995
+ };
7996
+ var faCircleXmark = {
7997
+ prefix: "fas",
7998
+ iconName: "circle-xmark",
7999
+ icon: [512, 512, [61532, "times-circle", "xmark-circle"], "f057", "M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM175 175c9.4-9.4 24.6-9.4 33.9 0l47 47 47-47c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9l-47 47 47 47c9.4 9.4 9.4 24.6 0 33.9s-24.6 9.4-33.9 0l-47-47-47 47c-9.4 9.4-24.6 9.4-33.9 0s-9.4-24.6 0-33.9l47-47-47-47c-9.4-9.4-9.4-24.6 0-33.9z"]
8000
+ };
8001
+
8002
+ // src/components/slots/SlotDelete.tsx
8003
+ var SlotDelete = (props) => {
8004
+ const { slotId, onDelete } = props;
8005
+ return /* @__PURE__ */ React.createElement("div", null, /* @__PURE__ */ React.createElement(Button, { variant: "ghost", size: "iconSm", onClick: onDelete }, /* @__PURE__ */ React.createElement(FontAwesomeIcon, { icon: faCircleXmark, className: "uii:text-red-500" })));
8006
+ };
8007
+
8008
+ // src/components/slots/SlotDragHandle.tsx
8009
+ var SlotDragHandle = (props) => {
8010
+ const { slotId } = props;
8011
+ return /* @__PURE__ */ React.createElement("div", { className: "uii:cursor-grab" }, /* @__PURE__ */ React.createElement(FontAwesomeIcon, { icon: faGripVertical }));
8012
+ };
8013
+ /*! Bundled license information:
8014
+
8015
+ react-is/cjs/react-is.production.min.js:
8016
+ (** @license React v16.13.1
8017
+ * react-is.production.min.js
8018
+ *
8019
+ * Copyright (c) Facebook, Inc. and its affiliates.
8020
+ *
8021
+ * This source code is licensed under the MIT license found in the
8022
+ * LICENSE file in the root directory of this source tree.
8023
+ *)
8024
+
8025
+ react-is/cjs/react-is.development.js:
8026
+ (** @license React v16.13.1
8027
+ * react-is.development.js
8028
+ *
8029
+ * Copyright (c) Facebook, Inc. and its affiliates.
8030
+ *
8031
+ * This source code is licensed under the MIT license found in the
8032
+ * LICENSE file in the root directory of this source tree.
8033
+ *)
8034
+
8035
+ object-assign/index.js:
8036
+ (*
8037
+ object-assign
8038
+ (c) Sindre Sorhus
8039
+ @license MIT
8040
+ *)
8041
+
8042
+ @fortawesome/fontawesome-svg-core/index.mjs:
8043
+ (*!
8044
+ * Font Awesome Free 6.7.2 by @fontawesome - https://fontawesome.com
8045
+ * License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
8046
+ * Copyright 2024 Fonticons, Inc.
8047
+ *)
8048
+
8049
+ @fortawesome/pro-solid-svg-icons/index.mjs:
8050
+ (*!
8051
+ * Font Awesome Pro 6.7.2 by @fontawesome - https://fontawesome.com
8052
+ * License - https://fontawesome.com/license (Commercial License)
8053
+ * Copyright 2024 Fonticons, Inc.
8054
+ *)
8055
+ */
3282
8056
 
3283
8057
  exports.ExportManager = ExportManager;
8058
+ exports.SlotDelete = SlotDelete;
8059
+ exports.SlotDragHandle = SlotDragHandle;
3284
8060
  exports.SlotElements = SlotElements;
8061
+ exports.SlotEnable = SlotEnable;
3285
8062
  //# sourceMappingURL=index.cjs.map
3286
8063
  //# sourceMappingURL=index.cjs.map