dash-button-web 0.0.23-beta.2 → 0.0.23-beta.3

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.
Files changed (48) hide show
  1. package/dist/cjs/app-globals-V2Kpy_OQ.js +5 -0
  2. package/dist/cjs/dash-button_4.cjs.entry.js +10842 -0
  3. package/dist/cjs/{index-BfwSK14n.js → index-DcvBej9f.js} +122 -4
  4. package/dist/cjs/loader.cjs.js +3 -3
  5. package/dist/cjs/web-compnont.cjs.js +3 -3
  6. package/dist/collection/collection-manifest.json +11 -3
  7. package/dist/collection/components/my-component/dash-button.js +50 -86
  8. package/dist/collection/services/config.js +3 -4
  9. package/dist/collection/services/menu.js +3 -4
  10. package/dist/components/dash-button.js +1 -1
  11. package/dist/components/index.js +1 -1
  12. package/dist/components/loading-component.js +1 -0
  13. package/dist/components/loading-component2.js +1 -0
  14. package/dist/components/notification-component.js +1 -0
  15. package/dist/components/notification-component2.js +1 -0
  16. package/dist/components/notification-table.js +1 -0
  17. package/dist/components/notification-table2.js +2 -0
  18. package/dist/esm/app-globals-DQuL1Twl.js +3 -0
  19. package/dist/esm/dash-button_4.entry.js +10837 -0
  20. package/dist/esm/{index-6_Ga3Eox.js → index-p0GxQx6x.js} +122 -4
  21. package/dist/esm/loader.js +4 -4
  22. package/dist/esm/web-compnont.js +4 -4
  23. package/dist/types/components/my-component/dash-button.d.ts +1 -1
  24. package/dist/web-compnont/p-a0a0ebc6.entry.js +3 -0
  25. package/dist/web-compnont/p-p0GxQx6x.js +3 -0
  26. package/dist/web-compnont/web-compnont.esm.js +1 -1
  27. package/package.json +1 -1
  28. package/dist/cjs/app-globals-cd54EKuF.js +0 -15
  29. package/dist/cjs/dash-button.cjs.entry.js +0 -4314
  30. package/dist/collection/assets/ice-notification-component/ice-notification-component.esm.js +0 -1
  31. package/dist/collection/assets/ice-notification-component/index.esm.js +0 -1
  32. package/dist/collection/assets/ice-notification-component/p-CYEcl3gx.js +0 -2
  33. package/dist/collection/assets/ice-notification-component/p-Cd2FMJAb.js +0 -1
  34. package/dist/collection/assets/ice-notification-component/p-cf3fb8a3.entry.js +0 -2
  35. package/dist/collection/global/app.js +0 -7
  36. package/dist/esm/app-globals-B2hgy9FG.js +0 -13
  37. package/dist/esm/dash-button.entry.js +0 -4312
  38. package/dist/types/global/app.d.ts +0 -2
  39. package/dist/web-compnont/assets/ice-notification-component/ice-notification-component.esm.js +0 -1
  40. package/dist/web-compnont/assets/ice-notification-component/index.esm.js +0 -1
  41. package/dist/web-compnont/assets/ice-notification-component/p-CYEcl3gx.js +0 -2
  42. package/dist/web-compnont/assets/ice-notification-component/p-Cd2FMJAb.js +0 -1
  43. package/dist/web-compnont/assets/ice-notification-component/p-DQuL1Twl.js +0 -1
  44. package/dist/web-compnont/assets/ice-notification-component/p-cf3fb8a3.entry.js +0 -2
  45. package/dist/web-compnont/p-6_Ga3Eox.js +0 -3
  46. package/dist/web-compnont/p-7de50cbc.entry.js +0 -1
  47. package/dist/web-compnont/p-DiU1T8CW.js +0 -1
  48. /package/dist/{collection/assets/ice-notification-component → web-compnont}/p-DQuL1Twl.js +0 -0
@@ -1,4312 +0,0 @@
1
- import { r as registerInstance, h, g as getElement } from './index-6_Ga3Eox.js';
2
-
3
- var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
4
-
5
- function getDefaultExportFromCjs (x) {
6
- return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
7
- }
8
-
9
- function getAugmentedNamespace(n) {
10
- if (n.__esModule) return n;
11
- var f = n.default;
12
- if (typeof f == "function") {
13
- var a = function a () {
14
- if (this instanceof a) {
15
- return Reflect.construct(f, arguments, this.constructor);
16
- }
17
- return f.apply(this, arguments);
18
- };
19
- a.prototype = f.prototype;
20
- } else a = {};
21
- Object.defineProperty(a, '__esModule', {value: true});
22
- Object.keys(n).forEach(function (k) {
23
- var d = Object.getOwnPropertyDescriptor(n, k);
24
- Object.defineProperty(a, k, d.get ? d : {
25
- enumerable: true,
26
- get: function () {
27
- return n[k];
28
- }
29
- });
30
- });
31
- return a;
32
- }
33
-
34
- var base64Js = {};
35
-
36
- var hasRequiredBase64Js;
37
-
38
- function requireBase64Js () {
39
- if (hasRequiredBase64Js) return base64Js;
40
- hasRequiredBase64Js = 1;
41
-
42
- base64Js.byteLength = byteLength;
43
- base64Js.toByteArray = toByteArray;
44
- base64Js.fromByteArray = fromByteArray;
45
-
46
- var lookup = [];
47
- var revLookup = [];
48
- var Arr = typeof Uint8Array !== 'undefined' ? Uint8Array : Array;
49
-
50
- var code = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/';
51
- for (var i = 0, len = code.length; i < len; ++i) {
52
- lookup[i] = code[i];
53
- revLookup[code.charCodeAt(i)] = i;
54
- }
55
-
56
- // Support decoding URL-safe base64 strings, as Node.js does.
57
- // See: https://en.wikipedia.org/wiki/Base64#URL_applications
58
- revLookup['-'.charCodeAt(0)] = 62;
59
- revLookup['_'.charCodeAt(0)] = 63;
60
-
61
- function getLens (b64) {
62
- var len = b64.length;
63
-
64
- if (len % 4 > 0) {
65
- throw new Error('Invalid string. Length must be a multiple of 4')
66
- }
67
-
68
- // Trim off extra bytes after placeholder bytes are found
69
- // See: https://github.com/beatgammit/base64-js/issues/42
70
- var validLen = b64.indexOf('=');
71
- if (validLen === -1) validLen = len;
72
-
73
- var placeHoldersLen = validLen === len
74
- ? 0
75
- : 4 - (validLen % 4);
76
-
77
- return [validLen, placeHoldersLen]
78
- }
79
-
80
- // base64 is 4/3 + up to two characters of the original data
81
- function byteLength (b64) {
82
- var lens = getLens(b64);
83
- var validLen = lens[0];
84
- var placeHoldersLen = lens[1];
85
- return ((validLen + placeHoldersLen) * 3 / 4) - placeHoldersLen
86
- }
87
-
88
- function _byteLength (b64, validLen, placeHoldersLen) {
89
- return ((validLen + placeHoldersLen) * 3 / 4) - placeHoldersLen
90
- }
91
-
92
- function toByteArray (b64) {
93
- var tmp;
94
- var lens = getLens(b64);
95
- var validLen = lens[0];
96
- var placeHoldersLen = lens[1];
97
-
98
- var arr = new Arr(_byteLength(b64, validLen, placeHoldersLen));
99
-
100
- var curByte = 0;
101
-
102
- // if there are placeholders, only get up to the last complete 4 chars
103
- var len = placeHoldersLen > 0
104
- ? validLen - 4
105
- : validLen;
106
-
107
- var i;
108
- for (i = 0; i < len; i += 4) {
109
- tmp =
110
- (revLookup[b64.charCodeAt(i)] << 18) |
111
- (revLookup[b64.charCodeAt(i + 1)] << 12) |
112
- (revLookup[b64.charCodeAt(i + 2)] << 6) |
113
- revLookup[b64.charCodeAt(i + 3)];
114
- arr[curByte++] = (tmp >> 16) & 0xFF;
115
- arr[curByte++] = (tmp >> 8) & 0xFF;
116
- arr[curByte++] = tmp & 0xFF;
117
- }
118
-
119
- if (placeHoldersLen === 2) {
120
- tmp =
121
- (revLookup[b64.charCodeAt(i)] << 2) |
122
- (revLookup[b64.charCodeAt(i + 1)] >> 4);
123
- arr[curByte++] = tmp & 0xFF;
124
- }
125
-
126
- if (placeHoldersLen === 1) {
127
- tmp =
128
- (revLookup[b64.charCodeAt(i)] << 10) |
129
- (revLookup[b64.charCodeAt(i + 1)] << 4) |
130
- (revLookup[b64.charCodeAt(i + 2)] >> 2);
131
- arr[curByte++] = (tmp >> 8) & 0xFF;
132
- arr[curByte++] = tmp & 0xFF;
133
- }
134
-
135
- return arr
136
- }
137
-
138
- function tripletToBase64 (num) {
139
- return lookup[num >> 18 & 0x3F] +
140
- lookup[num >> 12 & 0x3F] +
141
- lookup[num >> 6 & 0x3F] +
142
- lookup[num & 0x3F]
143
- }
144
-
145
- function encodeChunk (uint8, start, end) {
146
- var tmp;
147
- var output = [];
148
- for (var i = start; i < end; i += 3) {
149
- tmp =
150
- ((uint8[i] << 16) & 0xFF0000) +
151
- ((uint8[i + 1] << 8) & 0xFF00) +
152
- (uint8[i + 2] & 0xFF);
153
- output.push(tripletToBase64(tmp));
154
- }
155
- return output.join('')
156
- }
157
-
158
- function fromByteArray (uint8) {
159
- var tmp;
160
- var len = uint8.length;
161
- var extraBytes = len % 3; // if we have 1 byte left, pad 2 bytes
162
- var parts = [];
163
- var maxChunkLength = 16383; // must be multiple of 3
164
-
165
- // go through the array every three bytes, we'll deal with trailing stuff later
166
- for (var i = 0, len2 = len - extraBytes; i < len2; i += maxChunkLength) {
167
- parts.push(encodeChunk(uint8, i, (i + maxChunkLength) > len2 ? len2 : (i + maxChunkLength)));
168
- }
169
-
170
- // pad the end with zeros, but make sure to not forget the extra bytes
171
- if (extraBytes === 1) {
172
- tmp = uint8[len - 1];
173
- parts.push(
174
- lookup[tmp >> 2] +
175
- lookup[(tmp << 4) & 0x3F] +
176
- '=='
177
- );
178
- } else if (extraBytes === 2) {
179
- tmp = (uint8[len - 2] << 8) + uint8[len - 1];
180
- parts.push(
181
- lookup[tmp >> 10] +
182
- lookup[(tmp >> 4) & 0x3F] +
183
- lookup[(tmp << 2) & 0x3F] +
184
- '='
185
- );
186
- }
187
-
188
- return parts.join('')
189
- }
190
- return base64Js;
191
- }
192
-
193
- var base64JsExports = requireBase64Js();
194
- var base64 = /*@__PURE__*/getDefaultExportFromCjs(base64JsExports);
195
-
196
- var sha256$1 = {exports: {}};
197
-
198
- var _nodeResolve_empty = {};
199
-
200
- var _nodeResolve_empty$1 = /*#__PURE__*/Object.freeze({
201
- __proto__: null,
202
- default: _nodeResolve_empty
203
- });
204
-
205
- var require$$1 = /*@__PURE__*/getAugmentedNamespace(_nodeResolve_empty$1);
206
-
207
- /**
208
- * [js-sha256]{@link https://github.com/emn178/js-sha256}
209
- *
210
- * @version 0.10.1
211
- * @author Chen, Yi-Cyuan [emn178@gmail.com]
212
- * @copyright Chen, Yi-Cyuan 2014-2023
213
- * @license MIT
214
- */
215
-
216
- var hasRequiredSha256;
217
-
218
- function requireSha256 () {
219
- if (hasRequiredSha256) return sha256$1.exports;
220
- hasRequiredSha256 = 1;
221
- (function (module) {
222
- /*jslint bitwise: true */
223
- (function () {
224
-
225
- var ERROR = 'input is invalid type';
226
- var WINDOW = typeof window === 'object';
227
- var root = WINDOW ? window : {};
228
- if (root.JS_SHA256_NO_WINDOW) {
229
- WINDOW = false;
230
- }
231
- var WEB_WORKER = !WINDOW && typeof self === 'object';
232
- var NODE_JS = !root.JS_SHA256_NO_NODE_JS && typeof process === 'object' && process.versions && process.versions.node;
233
- if (NODE_JS) {
234
- root = commonjsGlobal;
235
- } else if (WEB_WORKER) {
236
- root = self;
237
- }
238
- var COMMON_JS = !root.JS_SHA256_NO_COMMON_JS && 'object' === 'object' && module.exports;
239
- var ARRAY_BUFFER = !root.JS_SHA256_NO_ARRAY_BUFFER && typeof ArrayBuffer !== 'undefined';
240
- var HEX_CHARS = '0123456789abcdef'.split('');
241
- var EXTRA = [-2147483648, 8388608, 32768, 128];
242
- var SHIFT = [24, 16, 8, 0];
243
- var K = [
244
- 0x428a2f98, 0x71374491, 0xb5c0fbcf, 0xe9b5dba5, 0x3956c25b, 0x59f111f1, 0x923f82a4, 0xab1c5ed5,
245
- 0xd807aa98, 0x12835b01, 0x243185be, 0x550c7dc3, 0x72be5d74, 0x80deb1fe, 0x9bdc06a7, 0xc19bf174,
246
- 0xe49b69c1, 0xefbe4786, 0x0fc19dc6, 0x240ca1cc, 0x2de92c6f, 0x4a7484aa, 0x5cb0a9dc, 0x76f988da,
247
- 0x983e5152, 0xa831c66d, 0xb00327c8, 0xbf597fc7, 0xc6e00bf3, 0xd5a79147, 0x06ca6351, 0x14292967,
248
- 0x27b70a85, 0x2e1b2138, 0x4d2c6dfc, 0x53380d13, 0x650a7354, 0x766a0abb, 0x81c2c92e, 0x92722c85,
249
- 0xa2bfe8a1, 0xa81a664b, 0xc24b8b70, 0xc76c51a3, 0xd192e819, 0xd6990624, 0xf40e3585, 0x106aa070,
250
- 0x19a4c116, 0x1e376c08, 0x2748774c, 0x34b0bcb5, 0x391c0cb3, 0x4ed8aa4a, 0x5b9cca4f, 0x682e6ff3,
251
- 0x748f82ee, 0x78a5636f, 0x84c87814, 0x8cc70208, 0x90befffa, 0xa4506ceb, 0xbef9a3f7, 0xc67178f2
252
- ];
253
- var OUTPUT_TYPES = ['hex', 'array', 'digest', 'arrayBuffer'];
254
-
255
- var blocks = [];
256
-
257
- if (root.JS_SHA256_NO_NODE_JS || !Array.isArray) {
258
- Array.isArray = function (obj) {
259
- return Object.prototype.toString.call(obj) === '[object Array]';
260
- };
261
- }
262
-
263
- if (ARRAY_BUFFER && (root.JS_SHA256_NO_ARRAY_BUFFER_IS_VIEW || !ArrayBuffer.isView)) {
264
- ArrayBuffer.isView = function (obj) {
265
- return typeof obj === 'object' && obj.buffer && obj.buffer.constructor === ArrayBuffer;
266
- };
267
- }
268
-
269
- var createOutputMethod = function (outputType, is224) {
270
- return function (message) {
271
- return new Sha256(is224, true).update(message)[outputType]();
272
- };
273
- };
274
-
275
- var createMethod = function (is224) {
276
- var method = createOutputMethod('hex', is224);
277
- if (NODE_JS) {
278
- method = nodeWrap(method, is224);
279
- }
280
- method.create = function () {
281
- return new Sha256(is224);
282
- };
283
- method.update = function (message) {
284
- return method.create().update(message);
285
- };
286
- for (var i = 0; i < OUTPUT_TYPES.length; ++i) {
287
- var type = OUTPUT_TYPES[i];
288
- method[type] = createOutputMethod(type, is224);
289
- }
290
- return method;
291
- };
292
-
293
- var nodeWrap = function (method, is224) {
294
- var crypto = require$$1;
295
- var Buffer = require$$1.Buffer;
296
- var algorithm = is224 ? 'sha224' : 'sha256';
297
- var bufferFrom;
298
- if (Buffer.from && !root.JS_SHA256_NO_BUFFER_FROM) {
299
- bufferFrom = Buffer.from;
300
- } else {
301
- bufferFrom = function (message) {
302
- return new Buffer(message);
303
- };
304
- }
305
- var nodeMethod = function (message) {
306
- if (typeof message === 'string') {
307
- return crypto.createHash(algorithm).update(message, 'utf8').digest('hex');
308
- } else {
309
- if (message === null || message === undefined) {
310
- throw new Error(ERROR);
311
- } else if (message.constructor === ArrayBuffer) {
312
- message = new Uint8Array(message);
313
- }
314
- }
315
- if (Array.isArray(message) || ArrayBuffer.isView(message) ||
316
- message.constructor === Buffer) {
317
- return crypto.createHash(algorithm).update(bufferFrom(message)).digest('hex');
318
- } else {
319
- return method(message);
320
- }
321
- };
322
- return nodeMethod;
323
- };
324
-
325
- var createHmacOutputMethod = function (outputType, is224) {
326
- return function (key, message) {
327
- return new HmacSha256(key, is224, true).update(message)[outputType]();
328
- };
329
- };
330
-
331
- var createHmacMethod = function (is224) {
332
- var method = createHmacOutputMethod('hex', is224);
333
- method.create = function (key) {
334
- return new HmacSha256(key, is224);
335
- };
336
- method.update = function (key, message) {
337
- return method.create(key).update(message);
338
- };
339
- for (var i = 0; i < OUTPUT_TYPES.length; ++i) {
340
- var type = OUTPUT_TYPES[i];
341
- method[type] = createHmacOutputMethod(type, is224);
342
- }
343
- return method;
344
- };
345
-
346
- function Sha256(is224, sharedMemory) {
347
- if (sharedMemory) {
348
- blocks[0] = blocks[16] = blocks[1] = blocks[2] = blocks[3] =
349
- blocks[4] = blocks[5] = blocks[6] = blocks[7] =
350
- blocks[8] = blocks[9] = blocks[10] = blocks[11] =
351
- blocks[12] = blocks[13] = blocks[14] = blocks[15] = 0;
352
- this.blocks = blocks;
353
- } else {
354
- this.blocks = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
355
- }
356
-
357
- if (is224) {
358
- this.h0 = 0xc1059ed8;
359
- this.h1 = 0x367cd507;
360
- this.h2 = 0x3070dd17;
361
- this.h3 = 0xf70e5939;
362
- this.h4 = 0xffc00b31;
363
- this.h5 = 0x68581511;
364
- this.h6 = 0x64f98fa7;
365
- this.h7 = 0xbefa4fa4;
366
- } else { // 256
367
- this.h0 = 0x6a09e667;
368
- this.h1 = 0xbb67ae85;
369
- this.h2 = 0x3c6ef372;
370
- this.h3 = 0xa54ff53a;
371
- this.h4 = 0x510e527f;
372
- this.h5 = 0x9b05688c;
373
- this.h6 = 0x1f83d9ab;
374
- this.h7 = 0x5be0cd19;
375
- }
376
-
377
- this.block = this.start = this.bytes = this.hBytes = 0;
378
- this.finalized = this.hashed = false;
379
- this.first = true;
380
- this.is224 = is224;
381
- }
382
-
383
- Sha256.prototype.update = function (message) {
384
- if (this.finalized) {
385
- return;
386
- }
387
- var notString, type = typeof message;
388
- if (type !== 'string') {
389
- if (type === 'object') {
390
- if (message === null) {
391
- throw new Error(ERROR);
392
- } else if (ARRAY_BUFFER && message.constructor === ArrayBuffer) {
393
- message = new Uint8Array(message);
394
- } else if (!Array.isArray(message)) {
395
- if (!ARRAY_BUFFER || !ArrayBuffer.isView(message)) {
396
- throw new Error(ERROR);
397
- }
398
- }
399
- } else {
400
- throw new Error(ERROR);
401
- }
402
- notString = true;
403
- }
404
- var code, index = 0, i, length = message.length, blocks = this.blocks;
405
-
406
- while (index < length) {
407
- if (this.hashed) {
408
- this.hashed = false;
409
- blocks[0] = this.block;
410
- blocks[16] = blocks[1] = blocks[2] = blocks[3] =
411
- blocks[4] = blocks[5] = blocks[6] = blocks[7] =
412
- blocks[8] = blocks[9] = blocks[10] = blocks[11] =
413
- blocks[12] = blocks[13] = blocks[14] = blocks[15] = 0;
414
- }
415
-
416
- if (notString) {
417
- for (i = this.start; index < length && i < 64; ++index) {
418
- blocks[i >> 2] |= message[index] << SHIFT[i++ & 3];
419
- }
420
- } else {
421
- for (i = this.start; index < length && i < 64; ++index) {
422
- code = message.charCodeAt(index);
423
- if (code < 0x80) {
424
- blocks[i >> 2] |= code << SHIFT[i++ & 3];
425
- } else if (code < 0x800) {
426
- blocks[i >> 2] |= (0xc0 | (code >> 6)) << SHIFT[i++ & 3];
427
- blocks[i >> 2] |= (0x80 | (code & 0x3f)) << SHIFT[i++ & 3];
428
- } else if (code < 0xd800 || code >= 0xe000) {
429
- blocks[i >> 2] |= (0xe0 | (code >> 12)) << SHIFT[i++ & 3];
430
- blocks[i >> 2] |= (0x80 | ((code >> 6) & 0x3f)) << SHIFT[i++ & 3];
431
- blocks[i >> 2] |= (0x80 | (code & 0x3f)) << SHIFT[i++ & 3];
432
- } else {
433
- code = 0x10000 + (((code & 0x3ff) << 10) | (message.charCodeAt(++index) & 0x3ff));
434
- blocks[i >> 2] |= (0xf0 | (code >> 18)) << SHIFT[i++ & 3];
435
- blocks[i >> 2] |= (0x80 | ((code >> 12) & 0x3f)) << SHIFT[i++ & 3];
436
- blocks[i >> 2] |= (0x80 | ((code >> 6) & 0x3f)) << SHIFT[i++ & 3];
437
- blocks[i >> 2] |= (0x80 | (code & 0x3f)) << SHIFT[i++ & 3];
438
- }
439
- }
440
- }
441
-
442
- this.lastByteIndex = i;
443
- this.bytes += i - this.start;
444
- if (i >= 64) {
445
- this.block = blocks[16];
446
- this.start = i - 64;
447
- this.hash();
448
- this.hashed = true;
449
- } else {
450
- this.start = i;
451
- }
452
- }
453
- if (this.bytes > 4294967295) {
454
- this.hBytes += this.bytes / 4294967296 << 0;
455
- this.bytes = this.bytes % 4294967296;
456
- }
457
- return this;
458
- };
459
-
460
- Sha256.prototype.finalize = function () {
461
- if (this.finalized) {
462
- return;
463
- }
464
- this.finalized = true;
465
- var blocks = this.blocks, i = this.lastByteIndex;
466
- blocks[16] = this.block;
467
- blocks[i >> 2] |= EXTRA[i & 3];
468
- this.block = blocks[16];
469
- if (i >= 56) {
470
- if (!this.hashed) {
471
- this.hash();
472
- }
473
- blocks[0] = this.block;
474
- blocks[16] = blocks[1] = blocks[2] = blocks[3] =
475
- blocks[4] = blocks[5] = blocks[6] = blocks[7] =
476
- blocks[8] = blocks[9] = blocks[10] = blocks[11] =
477
- blocks[12] = blocks[13] = blocks[14] = blocks[15] = 0;
478
- }
479
- blocks[14] = this.hBytes << 3 | this.bytes >>> 29;
480
- blocks[15] = this.bytes << 3;
481
- this.hash();
482
- };
483
-
484
- Sha256.prototype.hash = function () {
485
- var a = this.h0, b = this.h1, c = this.h2, d = this.h3, e = this.h4, f = this.h5, g = this.h6,
486
- h = this.h7, blocks = this.blocks, j, s0, s1, maj, t1, t2, ch, ab, da, cd, bc;
487
-
488
- for (j = 16; j < 64; ++j) {
489
- // rightrotate
490
- t1 = blocks[j - 15];
491
- s0 = ((t1 >>> 7) | (t1 << 25)) ^ ((t1 >>> 18) | (t1 << 14)) ^ (t1 >>> 3);
492
- t1 = blocks[j - 2];
493
- s1 = ((t1 >>> 17) | (t1 << 15)) ^ ((t1 >>> 19) | (t1 << 13)) ^ (t1 >>> 10);
494
- blocks[j] = blocks[j - 16] + s0 + blocks[j - 7] + s1 << 0;
495
- }
496
-
497
- bc = b & c;
498
- for (j = 0; j < 64; j += 4) {
499
- if (this.first) {
500
- if (this.is224) {
501
- ab = 300032;
502
- t1 = blocks[0] - 1413257819;
503
- h = t1 - 150054599 << 0;
504
- d = t1 + 24177077 << 0;
505
- } else {
506
- ab = 704751109;
507
- t1 = blocks[0] - 210244248;
508
- h = t1 - 1521486534 << 0;
509
- d = t1 + 143694565 << 0;
510
- }
511
- this.first = false;
512
- } else {
513
- s0 = ((a >>> 2) | (a << 30)) ^ ((a >>> 13) | (a << 19)) ^ ((a >>> 22) | (a << 10));
514
- s1 = ((e >>> 6) | (e << 26)) ^ ((e >>> 11) | (e << 21)) ^ ((e >>> 25) | (e << 7));
515
- ab = a & b;
516
- maj = ab ^ (a & c) ^ bc;
517
- ch = (e & f) ^ (~e & g);
518
- t1 = h + s1 + ch + K[j] + blocks[j];
519
- t2 = s0 + maj;
520
- h = d + t1 << 0;
521
- d = t1 + t2 << 0;
522
- }
523
- s0 = ((d >>> 2) | (d << 30)) ^ ((d >>> 13) | (d << 19)) ^ ((d >>> 22) | (d << 10));
524
- s1 = ((h >>> 6) | (h << 26)) ^ ((h >>> 11) | (h << 21)) ^ ((h >>> 25) | (h << 7));
525
- da = d & a;
526
- maj = da ^ (d & b) ^ ab;
527
- ch = (h & e) ^ (~h & f);
528
- t1 = g + s1 + ch + K[j + 1] + blocks[j + 1];
529
- t2 = s0 + maj;
530
- g = c + t1 << 0;
531
- c = t1 + t2 << 0;
532
- s0 = ((c >>> 2) | (c << 30)) ^ ((c >>> 13) | (c << 19)) ^ ((c >>> 22) | (c << 10));
533
- s1 = ((g >>> 6) | (g << 26)) ^ ((g >>> 11) | (g << 21)) ^ ((g >>> 25) | (g << 7));
534
- cd = c & d;
535
- maj = cd ^ (c & a) ^ da;
536
- ch = (g & h) ^ (~g & e);
537
- t1 = f + s1 + ch + K[j + 2] + blocks[j + 2];
538
- t2 = s0 + maj;
539
- f = b + t1 << 0;
540
- b = t1 + t2 << 0;
541
- s0 = ((b >>> 2) | (b << 30)) ^ ((b >>> 13) | (b << 19)) ^ ((b >>> 22) | (b << 10));
542
- s1 = ((f >>> 6) | (f << 26)) ^ ((f >>> 11) | (f << 21)) ^ ((f >>> 25) | (f << 7));
543
- bc = b & c;
544
- maj = bc ^ (b & d) ^ cd;
545
- ch = (f & g) ^ (~f & h);
546
- t1 = e + s1 + ch + K[j + 3] + blocks[j + 3];
547
- t2 = s0 + maj;
548
- e = a + t1 << 0;
549
- a = t1 + t2 << 0;
550
- this.chromeBugWorkAround = true;
551
- }
552
-
553
- this.h0 = this.h0 + a << 0;
554
- this.h1 = this.h1 + b << 0;
555
- this.h2 = this.h2 + c << 0;
556
- this.h3 = this.h3 + d << 0;
557
- this.h4 = this.h4 + e << 0;
558
- this.h5 = this.h5 + f << 0;
559
- this.h6 = this.h6 + g << 0;
560
- this.h7 = this.h7 + h << 0;
561
- };
562
-
563
- Sha256.prototype.hex = function () {
564
- this.finalize();
565
-
566
- var h0 = this.h0, h1 = this.h1, h2 = this.h2, h3 = this.h3, h4 = this.h4, h5 = this.h5,
567
- h6 = this.h6, h7 = this.h7;
568
-
569
- var hex = HEX_CHARS[(h0 >> 28) & 0x0F] + HEX_CHARS[(h0 >> 24) & 0x0F] +
570
- HEX_CHARS[(h0 >> 20) & 0x0F] + HEX_CHARS[(h0 >> 16) & 0x0F] +
571
- HEX_CHARS[(h0 >> 12) & 0x0F] + HEX_CHARS[(h0 >> 8) & 0x0F] +
572
- HEX_CHARS[(h0 >> 4) & 0x0F] + HEX_CHARS[h0 & 0x0F] +
573
- HEX_CHARS[(h1 >> 28) & 0x0F] + HEX_CHARS[(h1 >> 24) & 0x0F] +
574
- HEX_CHARS[(h1 >> 20) & 0x0F] + HEX_CHARS[(h1 >> 16) & 0x0F] +
575
- HEX_CHARS[(h1 >> 12) & 0x0F] + HEX_CHARS[(h1 >> 8) & 0x0F] +
576
- HEX_CHARS[(h1 >> 4) & 0x0F] + HEX_CHARS[h1 & 0x0F] +
577
- HEX_CHARS[(h2 >> 28) & 0x0F] + HEX_CHARS[(h2 >> 24) & 0x0F] +
578
- HEX_CHARS[(h2 >> 20) & 0x0F] + HEX_CHARS[(h2 >> 16) & 0x0F] +
579
- HEX_CHARS[(h2 >> 12) & 0x0F] + HEX_CHARS[(h2 >> 8) & 0x0F] +
580
- HEX_CHARS[(h2 >> 4) & 0x0F] + HEX_CHARS[h2 & 0x0F] +
581
- HEX_CHARS[(h3 >> 28) & 0x0F] + HEX_CHARS[(h3 >> 24) & 0x0F] +
582
- HEX_CHARS[(h3 >> 20) & 0x0F] + HEX_CHARS[(h3 >> 16) & 0x0F] +
583
- HEX_CHARS[(h3 >> 12) & 0x0F] + HEX_CHARS[(h3 >> 8) & 0x0F] +
584
- HEX_CHARS[(h3 >> 4) & 0x0F] + HEX_CHARS[h3 & 0x0F] +
585
- HEX_CHARS[(h4 >> 28) & 0x0F] + HEX_CHARS[(h4 >> 24) & 0x0F] +
586
- HEX_CHARS[(h4 >> 20) & 0x0F] + HEX_CHARS[(h4 >> 16) & 0x0F] +
587
- HEX_CHARS[(h4 >> 12) & 0x0F] + HEX_CHARS[(h4 >> 8) & 0x0F] +
588
- HEX_CHARS[(h4 >> 4) & 0x0F] + HEX_CHARS[h4 & 0x0F] +
589
- HEX_CHARS[(h5 >> 28) & 0x0F] + HEX_CHARS[(h5 >> 24) & 0x0F] +
590
- HEX_CHARS[(h5 >> 20) & 0x0F] + HEX_CHARS[(h5 >> 16) & 0x0F] +
591
- HEX_CHARS[(h5 >> 12) & 0x0F] + HEX_CHARS[(h5 >> 8) & 0x0F] +
592
- HEX_CHARS[(h5 >> 4) & 0x0F] + HEX_CHARS[h5 & 0x0F] +
593
- HEX_CHARS[(h6 >> 28) & 0x0F] + HEX_CHARS[(h6 >> 24) & 0x0F] +
594
- HEX_CHARS[(h6 >> 20) & 0x0F] + HEX_CHARS[(h6 >> 16) & 0x0F] +
595
- HEX_CHARS[(h6 >> 12) & 0x0F] + HEX_CHARS[(h6 >> 8) & 0x0F] +
596
- HEX_CHARS[(h6 >> 4) & 0x0F] + HEX_CHARS[h6 & 0x0F];
597
- if (!this.is224) {
598
- hex += HEX_CHARS[(h7 >> 28) & 0x0F] + HEX_CHARS[(h7 >> 24) & 0x0F] +
599
- HEX_CHARS[(h7 >> 20) & 0x0F] + HEX_CHARS[(h7 >> 16) & 0x0F] +
600
- HEX_CHARS[(h7 >> 12) & 0x0F] + HEX_CHARS[(h7 >> 8) & 0x0F] +
601
- HEX_CHARS[(h7 >> 4) & 0x0F] + HEX_CHARS[h7 & 0x0F];
602
- }
603
- return hex;
604
- };
605
-
606
- Sha256.prototype.toString = Sha256.prototype.hex;
607
-
608
- Sha256.prototype.digest = function () {
609
- this.finalize();
610
-
611
- var h0 = this.h0, h1 = this.h1, h2 = this.h2, h3 = this.h3, h4 = this.h4, h5 = this.h5,
612
- h6 = this.h6, h7 = this.h7;
613
-
614
- var arr = [
615
- (h0 >> 24) & 0xFF, (h0 >> 16) & 0xFF, (h0 >> 8) & 0xFF, h0 & 0xFF,
616
- (h1 >> 24) & 0xFF, (h1 >> 16) & 0xFF, (h1 >> 8) & 0xFF, h1 & 0xFF,
617
- (h2 >> 24) & 0xFF, (h2 >> 16) & 0xFF, (h2 >> 8) & 0xFF, h2 & 0xFF,
618
- (h3 >> 24) & 0xFF, (h3 >> 16) & 0xFF, (h3 >> 8) & 0xFF, h3 & 0xFF,
619
- (h4 >> 24) & 0xFF, (h4 >> 16) & 0xFF, (h4 >> 8) & 0xFF, h4 & 0xFF,
620
- (h5 >> 24) & 0xFF, (h5 >> 16) & 0xFF, (h5 >> 8) & 0xFF, h5 & 0xFF,
621
- (h6 >> 24) & 0xFF, (h6 >> 16) & 0xFF, (h6 >> 8) & 0xFF, h6 & 0xFF
622
- ];
623
- if (!this.is224) {
624
- arr.push((h7 >> 24) & 0xFF, (h7 >> 16) & 0xFF, (h7 >> 8) & 0xFF, h7 & 0xFF);
625
- }
626
- return arr;
627
- };
628
-
629
- Sha256.prototype.array = Sha256.prototype.digest;
630
-
631
- Sha256.prototype.arrayBuffer = function () {
632
- this.finalize();
633
-
634
- var buffer = new ArrayBuffer(this.is224 ? 28 : 32);
635
- var dataView = new DataView(buffer);
636
- dataView.setUint32(0, this.h0);
637
- dataView.setUint32(4, this.h1);
638
- dataView.setUint32(8, this.h2);
639
- dataView.setUint32(12, this.h3);
640
- dataView.setUint32(16, this.h4);
641
- dataView.setUint32(20, this.h5);
642
- dataView.setUint32(24, this.h6);
643
- if (!this.is224) {
644
- dataView.setUint32(28, this.h7);
645
- }
646
- return buffer;
647
- };
648
-
649
- function HmacSha256(key, is224, sharedMemory) {
650
- var i, type = typeof key;
651
- if (type === 'string') {
652
- var bytes = [], length = key.length, index = 0, code;
653
- for (i = 0; i < length; ++i) {
654
- code = key.charCodeAt(i);
655
- if (code < 0x80) {
656
- bytes[index++] = code;
657
- } else if (code < 0x800) {
658
- bytes[index++] = (0xc0 | (code >> 6));
659
- bytes[index++] = (0x80 | (code & 0x3f));
660
- } else if (code < 0xd800 || code >= 0xe000) {
661
- bytes[index++] = (0xe0 | (code >> 12));
662
- bytes[index++] = (0x80 | ((code >> 6) & 0x3f));
663
- bytes[index++] = (0x80 | (code & 0x3f));
664
- } else {
665
- code = 0x10000 + (((code & 0x3ff) << 10) | (key.charCodeAt(++i) & 0x3ff));
666
- bytes[index++] = (0xf0 | (code >> 18));
667
- bytes[index++] = (0x80 | ((code >> 12) & 0x3f));
668
- bytes[index++] = (0x80 | ((code >> 6) & 0x3f));
669
- bytes[index++] = (0x80 | (code & 0x3f));
670
- }
671
- }
672
- key = bytes;
673
- } else {
674
- if (type === 'object') {
675
- if (key === null) {
676
- throw new Error(ERROR);
677
- } else if (ARRAY_BUFFER && key.constructor === ArrayBuffer) {
678
- key = new Uint8Array(key);
679
- } else if (!Array.isArray(key)) {
680
- if (!ARRAY_BUFFER || !ArrayBuffer.isView(key)) {
681
- throw new Error(ERROR);
682
- }
683
- }
684
- } else {
685
- throw new Error(ERROR);
686
- }
687
- }
688
-
689
- if (key.length > 64) {
690
- key = (new Sha256(is224, true)).update(key).array();
691
- }
692
-
693
- var oKeyPad = [], iKeyPad = [];
694
- for (i = 0; i < 64; ++i) {
695
- var b = key[i] || 0;
696
- oKeyPad[i] = 0x5c ^ b;
697
- iKeyPad[i] = 0x36 ^ b;
698
- }
699
-
700
- Sha256.call(this, is224, sharedMemory);
701
-
702
- this.update(iKeyPad);
703
- this.oKeyPad = oKeyPad;
704
- this.inner = true;
705
- this.sharedMemory = sharedMemory;
706
- }
707
- HmacSha256.prototype = new Sha256();
708
-
709
- HmacSha256.prototype.finalize = function () {
710
- Sha256.prototype.finalize.call(this);
711
- if (this.inner) {
712
- this.inner = false;
713
- var innerHash = this.array();
714
- Sha256.call(this, this.is224, this.sharedMemory);
715
- this.update(this.oKeyPad);
716
- this.update(innerHash);
717
- Sha256.prototype.finalize.call(this);
718
- }
719
- };
720
-
721
- var exports = createMethod();
722
- exports.sha256 = exports;
723
- exports.sha224 = createMethod(true);
724
- exports.sha256.hmac = createHmacMethod();
725
- exports.sha224.hmac = createHmacMethod(true);
726
-
727
- if (COMMON_JS) {
728
- module.exports = exports;
729
- } else {
730
- root.sha256 = exports.sha256;
731
- root.sha224 = exports.sha224;
732
- }
733
- })();
734
- } (sha256$1));
735
- return sha256$1.exports;
736
- }
737
-
738
- var sha256Exports = requireSha256();
739
- var sha256 = /*@__PURE__*/getDefaultExportFromCjs(sha256Exports);
740
-
741
- class InvalidTokenError extends Error {
742
- }
743
- InvalidTokenError.prototype.name = "InvalidTokenError";
744
- function b64DecodeUnicode(str) {
745
- return decodeURIComponent(atob(str).replace(/(.)/g, (m, p) => {
746
- let code = p.charCodeAt(0).toString(16).toUpperCase();
747
- if (code.length < 2) {
748
- code = "0" + code;
749
- }
750
- return "%" + code;
751
- }));
752
- }
753
- function base64UrlDecode(str) {
754
- let output = str.replace(/-/g, "+").replace(/_/g, "/");
755
- switch (output.length % 4) {
756
- case 0:
757
- break;
758
- case 2:
759
- output += "==";
760
- break;
761
- case 3:
762
- output += "=";
763
- break;
764
- default:
765
- throw new Error("base64 string is not of the correct length");
766
- }
767
- try {
768
- return b64DecodeUnicode(output);
769
- }
770
- catch (err) {
771
- return atob(output);
772
- }
773
- }
774
- function jwtDecode(token, options) {
775
- if (typeof token !== "string") {
776
- throw new InvalidTokenError("Invalid token specified: must be a string");
777
- }
778
- options || (options = {});
779
- const pos = options.header === true ? 0 : 1;
780
- const part = token.split(".")[pos];
781
- if (typeof part !== "string") {
782
- throw new InvalidTokenError(`Invalid token specified: missing part #${pos + 1}`);
783
- }
784
- let decoded;
785
- try {
786
- decoded = base64UrlDecode(part);
787
- }
788
- catch (e) {
789
- throw new InvalidTokenError(`Invalid token specified: invalid base64 for part #${pos + 1} (${e.message})`);
790
- }
791
- try {
792
- return JSON.parse(decoded);
793
- }
794
- catch (e) {
795
- throw new InvalidTokenError(`Invalid token specified: invalid json for part #${pos + 1} (${e.message})`);
796
- }
797
- }
798
-
799
- /*
800
- * Copyright 2016 Red Hat, Inc. and/or its affiliates
801
- * and other contributors as indicated by the @author tags.
802
- *
803
- * Licensed under the Apache License, Version 2.0 (the "License");
804
- * you may not use this file except in compliance with the License.
805
- * You may obtain a copy of the License at
806
- *
807
- * http://www.apache.org/licenses/LICENSE-2.0
808
- *
809
- * Unless required by applicable law or agreed to in writing, software
810
- * distributed under the License is distributed on an "AS IS" BASIS,
811
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
812
- * See the License for the specific language governing permissions and
813
- * limitations under the License.
814
- */
815
-
816
- if (typeof Promise === 'undefined') {
817
- throw Error('Keycloak requires an environment that supports Promises. Make sure that you include the appropriate polyfill.');
818
- }
819
-
820
- function Keycloak (config) {
821
- if (!(this instanceof Keycloak)) {
822
- throw new Error("The 'Keycloak' constructor must be invoked with 'new'.")
823
- }
824
-
825
- var kc = this;
826
- var adapter;
827
- var refreshQueue = [];
828
- var callbackStorage;
829
-
830
- var loginIframe = {
831
- enable: true,
832
- callbackList: [],
833
- interval: 5
834
- };
835
-
836
- var scripts = document.getElementsByTagName('script');
837
- for (var i = 0; i < scripts.length; i++) {
838
- if ((scripts[i].src.indexOf('keycloak.js') !== -1 || scripts[i].src.indexOf('keycloak.min.js') !== -1) && scripts[i].src.indexOf('version=') !== -1) {
839
- kc.iframeVersion = scripts[i].src.substring(scripts[i].src.indexOf('version=') + 8).split('&')[0];
840
- }
841
- }
842
-
843
- var useNonce = true;
844
- var logInfo = createLogger(console.info);
845
- var logWarn = createLogger(console.warn);
846
-
847
- kc.init = function (initOptions) {
848
- if (kc.didInitialize) {
849
- throw new Error("A 'Keycloak' instance can only be initialized once.");
850
- }
851
-
852
- kc.didInitialize = true;
853
-
854
- kc.authenticated = false;
855
-
856
- callbackStorage = createCallbackStorage();
857
- var adapters = ['default', 'cordova', 'cordova-native'];
858
-
859
- if (initOptions && adapters.indexOf(initOptions.adapter) > -1) {
860
- adapter = loadAdapter(initOptions.adapter);
861
- } else if (initOptions && typeof initOptions.adapter === "object") {
862
- adapter = initOptions.adapter;
863
- } else {
864
- if (window.Cordova || window.cordova) {
865
- adapter = loadAdapter('cordova');
866
- } else {
867
- adapter = loadAdapter();
868
- }
869
- }
870
-
871
- if (initOptions) {
872
- if (typeof initOptions.useNonce !== 'undefined') {
873
- useNonce = initOptions.useNonce;
874
- }
875
-
876
- if (typeof initOptions.checkLoginIframe !== 'undefined') {
877
- loginIframe.enable = initOptions.checkLoginIframe;
878
- }
879
-
880
- if (initOptions.checkLoginIframeInterval) {
881
- loginIframe.interval = initOptions.checkLoginIframeInterval;
882
- }
883
-
884
- if (initOptions.onLoad === 'login-required') {
885
- kc.loginRequired = true;
886
- }
887
-
888
- if (initOptions.responseMode) {
889
- if (initOptions.responseMode === 'query' || initOptions.responseMode === 'fragment') {
890
- kc.responseMode = initOptions.responseMode;
891
- } else {
892
- throw 'Invalid value for responseMode';
893
- }
894
- }
895
-
896
- if (initOptions.flow) {
897
- switch (initOptions.flow) {
898
- case 'standard':
899
- kc.responseType = 'code';
900
- break;
901
- case 'implicit':
902
- kc.responseType = 'id_token token';
903
- break;
904
- case 'hybrid':
905
- kc.responseType = 'code id_token token';
906
- break;
907
- default:
908
- throw 'Invalid value for flow';
909
- }
910
- kc.flow = initOptions.flow;
911
- }
912
-
913
- if (initOptions.timeSkew != null) {
914
- kc.timeSkew = initOptions.timeSkew;
915
- }
916
-
917
- if(initOptions.redirectUri) {
918
- kc.redirectUri = initOptions.redirectUri;
919
- }
920
-
921
- if (initOptions.silentCheckSsoRedirectUri) {
922
- kc.silentCheckSsoRedirectUri = initOptions.silentCheckSsoRedirectUri;
923
- }
924
-
925
- if (typeof initOptions.silentCheckSsoFallback === 'boolean') {
926
- kc.silentCheckSsoFallback = initOptions.silentCheckSsoFallback;
927
- } else {
928
- kc.silentCheckSsoFallback = true;
929
- }
930
-
931
- if (initOptions.pkceMethod) {
932
- if (initOptions.pkceMethod !== "S256") {
933
- throw 'Invalid value for pkceMethod';
934
- }
935
- kc.pkceMethod = initOptions.pkceMethod;
936
- }
937
-
938
- if (typeof initOptions.enableLogging === 'boolean') {
939
- kc.enableLogging = initOptions.enableLogging;
940
- } else {
941
- kc.enableLogging = false;
942
- }
943
-
944
- if (typeof initOptions.scope === 'string') {
945
- kc.scope = initOptions.scope;
946
- }
947
-
948
- if (typeof initOptions.acrValues === 'string') {
949
- kc.acrValues = initOptions.acrValues;
950
- }
951
-
952
- if (typeof initOptions.messageReceiveTimeout === 'number' && initOptions.messageReceiveTimeout > 0) {
953
- kc.messageReceiveTimeout = initOptions.messageReceiveTimeout;
954
- } else {
955
- kc.messageReceiveTimeout = 10000;
956
- }
957
- }
958
-
959
- if (!kc.responseMode) {
960
- kc.responseMode = 'fragment';
961
- }
962
- if (!kc.responseType) {
963
- kc.responseType = 'code';
964
- kc.flow = 'standard';
965
- }
966
-
967
- var promise = createPromise();
968
-
969
- var initPromise = createPromise();
970
- initPromise.promise.then(function() {
971
- kc.onReady && kc.onReady(kc.authenticated);
972
- promise.setSuccess(kc.authenticated);
973
- }).catch(function(error) {
974
- promise.setError(error);
975
- });
976
-
977
- var configPromise = loadConfig();
978
-
979
- function onLoad() {
980
- var doLogin = function(prompt) {
981
- if (!prompt) {
982
- options.prompt = 'none';
983
- }
984
-
985
- if (initOptions && initOptions.locale) {
986
- options.locale = initOptions.locale;
987
- }
988
- kc.login(options).then(function () {
989
- initPromise.setSuccess();
990
- }).catch(function (error) {
991
- initPromise.setError(error);
992
- });
993
- };
994
-
995
- var checkSsoSilently = function() {
996
- var ifrm = document.createElement("iframe");
997
- var src = kc.createLoginUrl({prompt: 'none', redirectUri: kc.silentCheckSsoRedirectUri});
998
- ifrm.setAttribute("src", src);
999
- ifrm.setAttribute("sandbox", "allow-storage-access-by-user-activation allow-scripts allow-same-origin");
1000
- ifrm.setAttribute("title", "keycloak-silent-check-sso");
1001
- ifrm.style.display = "none";
1002
- document.body.appendChild(ifrm);
1003
-
1004
- var messageCallback = function(event) {
1005
- if (event.origin !== window.location.origin || ifrm.contentWindow !== event.source) {
1006
- return;
1007
- }
1008
-
1009
- var oauth = parseCallback(event.data);
1010
- processCallback(oauth, initPromise);
1011
-
1012
- document.body.removeChild(ifrm);
1013
- window.removeEventListener("message", messageCallback);
1014
- };
1015
-
1016
- window.addEventListener("message", messageCallback);
1017
- };
1018
-
1019
- var options = {};
1020
- switch (initOptions.onLoad) {
1021
- case 'check-sso':
1022
- if (loginIframe.enable) {
1023
- setupCheckLoginIframe().then(function() {
1024
- checkLoginIframe().then(function (unchanged) {
1025
- if (!unchanged) {
1026
- kc.silentCheckSsoRedirectUri ? checkSsoSilently() : doLogin(false);
1027
- } else {
1028
- initPromise.setSuccess();
1029
- }
1030
- }).catch(function (error) {
1031
- initPromise.setError(error);
1032
- });
1033
- });
1034
- } else {
1035
- kc.silentCheckSsoRedirectUri ? checkSsoSilently() : doLogin(false);
1036
- }
1037
- break;
1038
- case 'login-required':
1039
- doLogin(true);
1040
- break;
1041
- default:
1042
- throw 'Invalid value for onLoad';
1043
- }
1044
- }
1045
-
1046
- function processInit() {
1047
- var callback = parseCallback(window.location.href);
1048
-
1049
- if (callback) {
1050
- window.history.replaceState(window.history.state, null, callback.newUrl);
1051
- }
1052
-
1053
- if (callback && callback.valid) {
1054
- return setupCheckLoginIframe().then(function() {
1055
- processCallback(callback, initPromise);
1056
- }).catch(function (error) {
1057
- initPromise.setError(error);
1058
- });
1059
- } else if (initOptions) {
1060
- if (initOptions.token && initOptions.refreshToken) {
1061
- setToken(initOptions.token, initOptions.refreshToken, initOptions.idToken);
1062
-
1063
- if (loginIframe.enable) {
1064
- setupCheckLoginIframe().then(function() {
1065
- checkLoginIframe().then(function (unchanged) {
1066
- if (unchanged) {
1067
- kc.onAuthSuccess && kc.onAuthSuccess();
1068
- initPromise.setSuccess();
1069
- scheduleCheckIframe();
1070
- } else {
1071
- initPromise.setSuccess();
1072
- }
1073
- }).catch(function (error) {
1074
- initPromise.setError(error);
1075
- });
1076
- });
1077
- } else {
1078
- kc.updateToken(-1).then(function() {
1079
- kc.onAuthSuccess && kc.onAuthSuccess();
1080
- initPromise.setSuccess();
1081
- }).catch(function(error) {
1082
- kc.onAuthError && kc.onAuthError();
1083
- if (initOptions.onLoad) {
1084
- onLoad();
1085
- } else {
1086
- initPromise.setError(error);
1087
- }
1088
- });
1089
- }
1090
- } else if (initOptions.onLoad) {
1091
- onLoad();
1092
- } else {
1093
- initPromise.setSuccess();
1094
- }
1095
- } else {
1096
- initPromise.setSuccess();
1097
- }
1098
- }
1099
-
1100
- function domReady() {
1101
- var promise = createPromise();
1102
-
1103
- var checkReadyState = function () {
1104
- if (document.readyState === 'interactive' || document.readyState === 'complete') {
1105
- document.removeEventListener('readystatechange', checkReadyState);
1106
- promise.setSuccess();
1107
- }
1108
- };
1109
- document.addEventListener('readystatechange', checkReadyState);
1110
-
1111
- checkReadyState(); // just in case the event was already fired and we missed it (in case the init is done later than at the load time, i.e. it's done from code)
1112
-
1113
- return promise.promise;
1114
- }
1115
-
1116
- configPromise.then(function () {
1117
- domReady()
1118
- .then(check3pCookiesSupported)
1119
- .then(processInit)
1120
- .catch(function (error) {
1121
- promise.setError(error);
1122
- });
1123
- });
1124
- configPromise.catch(function (error) {
1125
- promise.setError(error);
1126
- });
1127
-
1128
- return promise.promise;
1129
- };
1130
-
1131
- kc.login = function (options) {
1132
- return adapter.login(options);
1133
- };
1134
-
1135
- function generateRandomData(len) {
1136
- // use web crypto APIs if possible
1137
- var array = null;
1138
- var crypto = window.crypto || window.msCrypto;
1139
- if (crypto && crypto.getRandomValues && window.Uint8Array) {
1140
- array = new Uint8Array(len);
1141
- crypto.getRandomValues(array);
1142
- return array;
1143
- }
1144
-
1145
- // fallback to Math random
1146
- array = new Array(len);
1147
- for (var j = 0; j < array.length; j++) {
1148
- array[j] = Math.floor(256 * Math.random());
1149
- }
1150
- return array;
1151
- }
1152
-
1153
- function generateCodeVerifier(len) {
1154
- return generateRandomString(len, 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789');
1155
- }
1156
-
1157
- function generateRandomString(len, alphabet){
1158
- var randomData = generateRandomData(len);
1159
- var chars = new Array(len);
1160
- for (var i = 0; i < len; i++) {
1161
- chars[i] = alphabet.charCodeAt(randomData[i] % alphabet.length);
1162
- }
1163
- return String.fromCharCode.apply(null, chars);
1164
- }
1165
-
1166
- function generatePkceChallenge(pkceMethod, codeVerifier) {
1167
- switch (pkceMethod) {
1168
- // The use of the "plain" method is considered insecure and therefore not supported.
1169
- case "S256":
1170
- // hash codeVerifier, then encode as url-safe base64 without padding
1171
- var hashBytes = new Uint8Array(sha256.arrayBuffer(codeVerifier));
1172
- var encodedHash = base64.fromByteArray(hashBytes)
1173
- .replace(/\+/g, '-')
1174
- .replace(/\//g, '_')
1175
- .replace(/\=/g, '');
1176
- return encodedHash;
1177
- default:
1178
- throw 'Invalid value for pkceMethod';
1179
- }
1180
- }
1181
-
1182
- function buildClaimsParameter(requestedAcr){
1183
- var claims = {
1184
- id_token: {
1185
- acr: requestedAcr
1186
- }
1187
- };
1188
- return JSON.stringify(claims);
1189
- }
1190
-
1191
- kc.createLoginUrl = function(options) {
1192
- var state = createUUID();
1193
- var nonce = createUUID();
1194
-
1195
- var redirectUri = adapter.redirectUri(options);
1196
-
1197
- var callbackState = {
1198
- state: state,
1199
- nonce: nonce,
1200
- redirectUri: encodeURIComponent(redirectUri)
1201
- };
1202
-
1203
- if (options && options.prompt) {
1204
- callbackState.prompt = options.prompt;
1205
- }
1206
-
1207
- var baseUrl;
1208
- if (options && options.action == 'register') {
1209
- baseUrl = kc.endpoints.register();
1210
- } else {
1211
- baseUrl = kc.endpoints.authorize();
1212
- }
1213
-
1214
- var scope = options && options.scope || kc.scope;
1215
- if (!scope) {
1216
- // if scope is not set, default to "openid"
1217
- scope = "openid";
1218
- } else if (scope.indexOf("openid") === -1) {
1219
- // if openid scope is missing, prefix the given scopes with it
1220
- scope = "openid " + scope;
1221
- }
1222
-
1223
- var url = baseUrl
1224
- + '?client_id=' + encodeURIComponent(kc.clientId)
1225
- + '&redirect_uri=' + encodeURIComponent(redirectUri)
1226
- + '&state=' + encodeURIComponent(state)
1227
- + '&response_mode=' + encodeURIComponent(kc.responseMode)
1228
- + '&response_type=' + encodeURIComponent(kc.responseType)
1229
- + '&scope=' + encodeURIComponent(scope);
1230
- if (useNonce) {
1231
- url = url + '&nonce=' + encodeURIComponent(nonce);
1232
- }
1233
-
1234
- if (options && options.prompt) {
1235
- url += '&prompt=' + encodeURIComponent(options.prompt);
1236
- }
1237
-
1238
- if (options && options.maxAge) {
1239
- url += '&max_age=' + encodeURIComponent(options.maxAge);
1240
- }
1241
-
1242
- if (options && options.loginHint) {
1243
- url += '&login_hint=' + encodeURIComponent(options.loginHint);
1244
- }
1245
-
1246
- if (options && options.idpHint) {
1247
- url += '&kc_idp_hint=' + encodeURIComponent(options.idpHint);
1248
- }
1249
-
1250
- if (options && options.action && options.action != 'register') {
1251
- url += '&kc_action=' + encodeURIComponent(options.action);
1252
- }
1253
-
1254
- if (options && options.locale) {
1255
- url += '&ui_locales=' + encodeURIComponent(options.locale);
1256
- }
1257
-
1258
- if (options && options.acr) {
1259
- var claimsParameter = buildClaimsParameter(options.acr);
1260
- url += '&claims=' + encodeURIComponent(claimsParameter);
1261
- }
1262
-
1263
- if ((options && options.acrValues) || kc.acrValues) {
1264
- url += '&acr_values=' + encodeURIComponent(options.acrValues || kc.acrValues);
1265
- }
1266
-
1267
- if (kc.pkceMethod) {
1268
- var codeVerifier = generateCodeVerifier(96);
1269
- callbackState.pkceCodeVerifier = codeVerifier;
1270
- var pkceChallenge = generatePkceChallenge(kc.pkceMethod, codeVerifier);
1271
- url += '&code_challenge=' + pkceChallenge;
1272
- url += '&code_challenge_method=' + kc.pkceMethod;
1273
- }
1274
-
1275
- callbackStorage.add(callbackState);
1276
-
1277
- return url;
1278
- };
1279
-
1280
- kc.logout = function(options) {
1281
- return adapter.logout(options);
1282
- };
1283
-
1284
- kc.createLogoutUrl = function(options) {
1285
- var url = kc.endpoints.logout()
1286
- + '?client_id=' + encodeURIComponent(kc.clientId)
1287
- + '&post_logout_redirect_uri=' + encodeURIComponent(adapter.redirectUri(options, false));
1288
-
1289
- if (kc.idToken) {
1290
- url += '&id_token_hint=' + encodeURIComponent(kc.idToken);
1291
- }
1292
-
1293
- return url;
1294
- };
1295
-
1296
- kc.register = function (options) {
1297
- return adapter.register(options);
1298
- };
1299
-
1300
- kc.createRegisterUrl = function(options) {
1301
- if (!options) {
1302
- options = {};
1303
- }
1304
- options.action = 'register';
1305
- return kc.createLoginUrl(options);
1306
- };
1307
-
1308
- kc.createAccountUrl = function(options) {
1309
- var realm = getRealmUrl();
1310
- var url = undefined;
1311
- if (typeof realm !== 'undefined') {
1312
- url = realm
1313
- + '/account'
1314
- + '?referrer=' + encodeURIComponent(kc.clientId)
1315
- + '&referrer_uri=' + encodeURIComponent(adapter.redirectUri(options));
1316
- }
1317
- return url;
1318
- };
1319
-
1320
- kc.accountManagement = function() {
1321
- return adapter.accountManagement();
1322
- };
1323
-
1324
- kc.hasRealmRole = function (role) {
1325
- var access = kc.realmAccess;
1326
- return !!access && access.roles.indexOf(role) >= 0;
1327
- };
1328
-
1329
- kc.hasResourceRole = function(role, resource) {
1330
- if (!kc.resourceAccess) {
1331
- return false;
1332
- }
1333
-
1334
- var access = kc.resourceAccess[resource || kc.clientId];
1335
- return !!access && access.roles.indexOf(role) >= 0;
1336
- };
1337
-
1338
- kc.loadUserProfile = function() {
1339
- var url = getRealmUrl() + '/account';
1340
- var req = new XMLHttpRequest();
1341
- req.open('GET', url, true);
1342
- req.setRequestHeader('Accept', 'application/json');
1343
- req.setRequestHeader('Authorization', 'bearer ' + kc.token);
1344
-
1345
- var promise = createPromise();
1346
-
1347
- req.onreadystatechange = function () {
1348
- if (req.readyState == 4) {
1349
- if (req.status == 200) {
1350
- kc.profile = JSON.parse(req.responseText);
1351
- promise.setSuccess(kc.profile);
1352
- } else {
1353
- promise.setError();
1354
- }
1355
- }
1356
- };
1357
-
1358
- req.send();
1359
-
1360
- return promise.promise;
1361
- };
1362
-
1363
- kc.loadUserInfo = function() {
1364
- var url = kc.endpoints.userinfo();
1365
- var req = new XMLHttpRequest();
1366
- req.open('GET', url, true);
1367
- req.setRequestHeader('Accept', 'application/json');
1368
- req.setRequestHeader('Authorization', 'bearer ' + kc.token);
1369
-
1370
- var promise = createPromise();
1371
-
1372
- req.onreadystatechange = function () {
1373
- if (req.readyState == 4) {
1374
- if (req.status == 200) {
1375
- kc.userInfo = JSON.parse(req.responseText);
1376
- promise.setSuccess(kc.userInfo);
1377
- } else {
1378
- promise.setError();
1379
- }
1380
- }
1381
- };
1382
-
1383
- req.send();
1384
-
1385
- return promise.promise;
1386
- };
1387
-
1388
- kc.isTokenExpired = function(minValidity) {
1389
- if (!kc.tokenParsed || (!kc.refreshToken && kc.flow != 'implicit' )) {
1390
- throw 'Not authenticated';
1391
- }
1392
-
1393
- if (kc.timeSkew == null) {
1394
- logInfo('[KEYCLOAK] Unable to determine if token is expired as timeskew is not set');
1395
- return true;
1396
- }
1397
-
1398
- var expiresIn = kc.tokenParsed['exp'] - Math.ceil(new Date().getTime() / 1000) + kc.timeSkew;
1399
- if (minValidity) {
1400
- if (isNaN(minValidity)) {
1401
- throw 'Invalid minValidity';
1402
- }
1403
- expiresIn -= minValidity;
1404
- }
1405
- return expiresIn < 0;
1406
- };
1407
-
1408
- kc.updateToken = function(minValidity) {
1409
- var promise = createPromise();
1410
-
1411
- if (!kc.refreshToken) {
1412
- promise.setError();
1413
- return promise.promise;
1414
- }
1415
-
1416
- minValidity = minValidity || 5;
1417
-
1418
- var exec = function() {
1419
- var refreshToken = false;
1420
- if (minValidity == -1) {
1421
- refreshToken = true;
1422
- logInfo('[KEYCLOAK] Refreshing token: forced refresh');
1423
- } else if (!kc.tokenParsed || kc.isTokenExpired(minValidity)) {
1424
- refreshToken = true;
1425
- logInfo('[KEYCLOAK] Refreshing token: token expired');
1426
- }
1427
-
1428
- if (!refreshToken) {
1429
- promise.setSuccess(false);
1430
- } else {
1431
- var params = 'grant_type=refresh_token&' + 'refresh_token=' + kc.refreshToken;
1432
- var url = kc.endpoints.token();
1433
-
1434
- refreshQueue.push(promise);
1435
-
1436
- if (refreshQueue.length == 1) {
1437
- var req = new XMLHttpRequest();
1438
- req.open('POST', url, true);
1439
- req.setRequestHeader('Content-type', 'application/x-www-form-urlencoded');
1440
- req.withCredentials = true;
1441
-
1442
- params += '&client_id=' + encodeURIComponent(kc.clientId);
1443
-
1444
- var timeLocal = new Date().getTime();
1445
-
1446
- req.onreadystatechange = function () {
1447
- if (req.readyState == 4) {
1448
- if (req.status == 200) {
1449
- logInfo('[KEYCLOAK] Token refreshed');
1450
-
1451
- timeLocal = (timeLocal + new Date().getTime()) / 2;
1452
-
1453
- var tokenResponse = JSON.parse(req.responseText);
1454
-
1455
- setToken(tokenResponse['access_token'], tokenResponse['refresh_token'], tokenResponse['id_token'], timeLocal);
1456
-
1457
- kc.onAuthRefreshSuccess && kc.onAuthRefreshSuccess();
1458
- for (var p = refreshQueue.pop(); p != null; p = refreshQueue.pop()) {
1459
- p.setSuccess(true);
1460
- }
1461
- } else {
1462
- logWarn('[KEYCLOAK] Failed to refresh token');
1463
-
1464
- if (req.status == 400) {
1465
- kc.clearToken();
1466
- }
1467
-
1468
- kc.onAuthRefreshError && kc.onAuthRefreshError();
1469
- for (var p = refreshQueue.pop(); p != null; p = refreshQueue.pop()) {
1470
- p.setError(true);
1471
- }
1472
- }
1473
- }
1474
- };
1475
-
1476
- req.send(params);
1477
- }
1478
- }
1479
- };
1480
-
1481
- if (loginIframe.enable) {
1482
- var iframePromise = checkLoginIframe();
1483
- iframePromise.then(function() {
1484
- exec();
1485
- }).catch(function(error) {
1486
- promise.setError(error);
1487
- });
1488
- } else {
1489
- exec();
1490
- }
1491
-
1492
- return promise.promise;
1493
- };
1494
-
1495
- kc.clearToken = function() {
1496
- if (kc.token) {
1497
- setToken(null, null, null);
1498
- kc.onAuthLogout && kc.onAuthLogout();
1499
- if (kc.loginRequired) {
1500
- kc.login();
1501
- }
1502
- }
1503
- };
1504
-
1505
- function getRealmUrl() {
1506
- if (typeof kc.authServerUrl !== 'undefined') {
1507
- if (kc.authServerUrl.charAt(kc.authServerUrl.length - 1) == '/') {
1508
- return kc.authServerUrl + 'realms/' + encodeURIComponent(kc.realm);
1509
- } else {
1510
- return kc.authServerUrl + '/realms/' + encodeURIComponent(kc.realm);
1511
- }
1512
- } else {
1513
- return undefined;
1514
- }
1515
- }
1516
-
1517
- function getOrigin() {
1518
- if (!window.location.origin) {
1519
- return window.location.protocol + "//" + window.location.hostname + (window.location.port ? ':' + window.location.port: '');
1520
- } else {
1521
- return window.location.origin;
1522
- }
1523
- }
1524
-
1525
- function processCallback(oauth, promise) {
1526
- var code = oauth.code;
1527
- var error = oauth.error;
1528
- var prompt = oauth.prompt;
1529
-
1530
- var timeLocal = new Date().getTime();
1531
-
1532
- if (oauth['kc_action_status']) {
1533
- kc.onActionUpdate && kc.onActionUpdate(oauth['kc_action_status']);
1534
- }
1535
-
1536
- if (error) {
1537
- if (prompt != 'none') {
1538
- var errorData = { error: error, error_description: oauth.error_description };
1539
- kc.onAuthError && kc.onAuthError(errorData);
1540
- promise && promise.setError(errorData);
1541
- } else {
1542
- promise && promise.setSuccess();
1543
- }
1544
- return;
1545
- } else if ((kc.flow != 'standard') && (oauth.access_token || oauth.id_token)) {
1546
- authSuccess(oauth.access_token, null, oauth.id_token, true);
1547
- }
1548
-
1549
- if ((kc.flow != 'implicit') && code) {
1550
- var params = 'code=' + code + '&grant_type=authorization_code';
1551
- var url = kc.endpoints.token();
1552
-
1553
- var req = new XMLHttpRequest();
1554
- req.open('POST', url, true);
1555
- req.setRequestHeader('Content-type', 'application/x-www-form-urlencoded');
1556
-
1557
- params += '&client_id=' + encodeURIComponent(kc.clientId);
1558
- params += '&redirect_uri=' + oauth.redirectUri;
1559
-
1560
- if (oauth.pkceCodeVerifier) {
1561
- params += '&code_verifier=' + oauth.pkceCodeVerifier;
1562
- }
1563
-
1564
- req.withCredentials = true;
1565
-
1566
- req.onreadystatechange = function() {
1567
- if (req.readyState == 4) {
1568
- if (req.status == 200) {
1569
-
1570
- var tokenResponse = JSON.parse(req.responseText);
1571
- authSuccess(tokenResponse['access_token'], tokenResponse['refresh_token'], tokenResponse['id_token'], kc.flow === 'standard');
1572
- scheduleCheckIframe();
1573
- } else {
1574
- kc.onAuthError && kc.onAuthError();
1575
- promise && promise.setError();
1576
- }
1577
- }
1578
- };
1579
-
1580
- req.send(params);
1581
- }
1582
-
1583
- function authSuccess(accessToken, refreshToken, idToken, fulfillPromise) {
1584
- timeLocal = (timeLocal + new Date().getTime()) / 2;
1585
-
1586
- setToken(accessToken, refreshToken, idToken, timeLocal);
1587
-
1588
- if (useNonce && ((kc.tokenParsed && kc.tokenParsed.nonce != oauth.storedNonce) ||
1589
- (kc.refreshTokenParsed && kc.refreshTokenParsed.nonce != oauth.storedNonce) ||
1590
- (kc.idTokenParsed && kc.idTokenParsed.nonce != oauth.storedNonce))) {
1591
-
1592
- logInfo('[KEYCLOAK] Invalid nonce, clearing token');
1593
- kc.clearToken();
1594
- promise && promise.setError();
1595
- } else {
1596
- if (fulfillPromise) {
1597
- kc.onAuthSuccess && kc.onAuthSuccess();
1598
- promise && promise.setSuccess();
1599
- }
1600
- }
1601
- }
1602
-
1603
- }
1604
-
1605
- function loadConfig(url) {
1606
- var promise = createPromise();
1607
- var configUrl;
1608
-
1609
- if (!config) {
1610
- configUrl = 'keycloak.json';
1611
- } else if (typeof config === 'string') {
1612
- configUrl = config;
1613
- }
1614
-
1615
- function setupOidcEndoints(oidcConfiguration) {
1616
- if (! oidcConfiguration) {
1617
- kc.endpoints = {
1618
- authorize: function() {
1619
- return getRealmUrl() + '/protocol/openid-connect/auth';
1620
- },
1621
- token: function() {
1622
- return getRealmUrl() + '/protocol/openid-connect/token';
1623
- },
1624
- logout: function() {
1625
- return getRealmUrl() + '/protocol/openid-connect/logout';
1626
- },
1627
- checkSessionIframe: function() {
1628
- var src = getRealmUrl() + '/protocol/openid-connect/login-status-iframe.html';
1629
- if (kc.iframeVersion) {
1630
- src = src + '?version=' + kc.iframeVersion;
1631
- }
1632
- return src;
1633
- },
1634
- thirdPartyCookiesIframe: function() {
1635
- var src = getRealmUrl() + '/protocol/openid-connect/3p-cookies/step1.html';
1636
- if (kc.iframeVersion) {
1637
- src = src + '?version=' + kc.iframeVersion;
1638
- }
1639
- return src;
1640
- },
1641
- register: function() {
1642
- return getRealmUrl() + '/protocol/openid-connect/registrations';
1643
- },
1644
- userinfo: function() {
1645
- return getRealmUrl() + '/protocol/openid-connect/userinfo';
1646
- }
1647
- };
1648
- } else {
1649
- kc.endpoints = {
1650
- authorize: function() {
1651
- return oidcConfiguration.authorization_endpoint;
1652
- },
1653
- token: function() {
1654
- return oidcConfiguration.token_endpoint;
1655
- },
1656
- logout: function() {
1657
- if (!oidcConfiguration.end_session_endpoint) {
1658
- throw "Not supported by the OIDC server";
1659
- }
1660
- return oidcConfiguration.end_session_endpoint;
1661
- },
1662
- checkSessionIframe: function() {
1663
- if (!oidcConfiguration.check_session_iframe) {
1664
- throw "Not supported by the OIDC server";
1665
- }
1666
- return oidcConfiguration.check_session_iframe;
1667
- },
1668
- register: function() {
1669
- throw 'Redirection to "Register user" page not supported in standard OIDC mode';
1670
- },
1671
- userinfo: function() {
1672
- if (!oidcConfiguration.userinfo_endpoint) {
1673
- throw "Not supported by the OIDC server";
1674
- }
1675
- return oidcConfiguration.userinfo_endpoint;
1676
- }
1677
- };
1678
- }
1679
- }
1680
-
1681
- if (configUrl) {
1682
- var req = new XMLHttpRequest();
1683
- req.open('GET', configUrl, true);
1684
- req.setRequestHeader('Accept', 'application/json');
1685
-
1686
- req.onreadystatechange = function () {
1687
- if (req.readyState == 4) {
1688
- if (req.status == 200 || fileLoaded(req)) {
1689
- var config = JSON.parse(req.responseText);
1690
-
1691
- kc.authServerUrl = config['auth-server-url'];
1692
- kc.realm = config['realm'];
1693
- kc.clientId = config['resource'];
1694
- setupOidcEndoints(null);
1695
- promise.setSuccess();
1696
- } else {
1697
- promise.setError();
1698
- }
1699
- }
1700
- };
1701
-
1702
- req.send();
1703
- } else {
1704
- if (!config.clientId) {
1705
- throw 'clientId missing';
1706
- }
1707
-
1708
- kc.clientId = config.clientId;
1709
-
1710
- var oidcProvider = config['oidcProvider'];
1711
- if (!oidcProvider) {
1712
- if (!config['url']) {
1713
- var scripts = document.getElementsByTagName('script');
1714
- for (var i = 0; i < scripts.length; i++) {
1715
- if (scripts[i].src.match(/.*keycloak\.js/)) {
1716
- config.url = scripts[i].src.substr(0, scripts[i].src.indexOf('/js/keycloak.js'));
1717
- break;
1718
- }
1719
- }
1720
- }
1721
- if (!config.realm) {
1722
- throw 'realm missing';
1723
- }
1724
-
1725
- kc.authServerUrl = config.url;
1726
- kc.realm = config.realm;
1727
- setupOidcEndoints(null);
1728
- promise.setSuccess();
1729
- } else {
1730
- if (typeof oidcProvider === 'string') {
1731
- var oidcProviderConfigUrl;
1732
- if (oidcProvider.charAt(oidcProvider.length - 1) == '/') {
1733
- oidcProviderConfigUrl = oidcProvider + '.well-known/openid-configuration';
1734
- } else {
1735
- oidcProviderConfigUrl = oidcProvider + '/.well-known/openid-configuration';
1736
- }
1737
- var req = new XMLHttpRequest();
1738
- req.open('GET', oidcProviderConfigUrl, true);
1739
- req.setRequestHeader('Accept', 'application/json');
1740
-
1741
- req.onreadystatechange = function () {
1742
- if (req.readyState == 4) {
1743
- if (req.status == 200 || fileLoaded(req)) {
1744
- var oidcProviderConfig = JSON.parse(req.responseText);
1745
- setupOidcEndoints(oidcProviderConfig);
1746
- promise.setSuccess();
1747
- } else {
1748
- promise.setError();
1749
- }
1750
- }
1751
- };
1752
-
1753
- req.send();
1754
- } else {
1755
- setupOidcEndoints(oidcProvider);
1756
- promise.setSuccess();
1757
- }
1758
- }
1759
- }
1760
-
1761
- return promise.promise;
1762
- }
1763
-
1764
- function fileLoaded(xhr) {
1765
- return xhr.status == 0 && xhr.responseText && xhr.responseURL.startsWith('file:');
1766
- }
1767
-
1768
- function setToken(token, refreshToken, idToken, timeLocal) {
1769
- if (kc.tokenTimeoutHandle) {
1770
- clearTimeout(kc.tokenTimeoutHandle);
1771
- kc.tokenTimeoutHandle = null;
1772
- }
1773
-
1774
- if (refreshToken) {
1775
- kc.refreshToken = refreshToken;
1776
- kc.refreshTokenParsed = jwtDecode(refreshToken);
1777
- } else {
1778
- delete kc.refreshToken;
1779
- delete kc.refreshTokenParsed;
1780
- }
1781
-
1782
- if (idToken) {
1783
- kc.idToken = idToken;
1784
- kc.idTokenParsed = jwtDecode(idToken);
1785
- } else {
1786
- delete kc.idToken;
1787
- delete kc.idTokenParsed;
1788
- }
1789
-
1790
- if (token) {
1791
- kc.token = token;
1792
- kc.tokenParsed = jwtDecode(token);
1793
- kc.sessionId = kc.tokenParsed.session_state;
1794
- kc.authenticated = true;
1795
- kc.subject = kc.tokenParsed.sub;
1796
- kc.realmAccess = kc.tokenParsed.realm_access;
1797
- kc.resourceAccess = kc.tokenParsed.resource_access;
1798
-
1799
- if (timeLocal) {
1800
- kc.timeSkew = Math.floor(timeLocal / 1000) - kc.tokenParsed.iat;
1801
- }
1802
-
1803
- if (kc.timeSkew != null) {
1804
- logInfo('[KEYCLOAK] Estimated time difference between browser and server is ' + kc.timeSkew + ' seconds');
1805
-
1806
- if (kc.onTokenExpired) {
1807
- var expiresIn = (kc.tokenParsed['exp'] - (new Date().getTime() / 1000) + kc.timeSkew) * 1000;
1808
- logInfo('[KEYCLOAK] Token expires in ' + Math.round(expiresIn / 1000) + ' s');
1809
- if (expiresIn <= 0) {
1810
- kc.onTokenExpired();
1811
- } else {
1812
- kc.tokenTimeoutHandle = setTimeout(kc.onTokenExpired, expiresIn);
1813
- }
1814
- }
1815
- }
1816
- } else {
1817
- delete kc.token;
1818
- delete kc.tokenParsed;
1819
- delete kc.subject;
1820
- delete kc.realmAccess;
1821
- delete kc.resourceAccess;
1822
-
1823
- kc.authenticated = false;
1824
- }
1825
- }
1826
-
1827
- function createUUID() {
1828
- var hexDigits = '0123456789abcdef';
1829
- var s = generateRandomString(36, hexDigits).split("");
1830
- s[14] = '4';
1831
- s[19] = hexDigits.substr((s[19] & 0x3) | 0x8, 1);
1832
- s[8] = s[13] = s[18] = s[23] = '-';
1833
- var uuid = s.join('');
1834
- return uuid;
1835
- }
1836
-
1837
- function parseCallback(url) {
1838
- var oauth = parseCallbackUrl(url);
1839
- if (!oauth) {
1840
- return;
1841
- }
1842
-
1843
- var oauthState = callbackStorage.get(oauth.state);
1844
-
1845
- if (oauthState) {
1846
- oauth.valid = true;
1847
- oauth.redirectUri = oauthState.redirectUri;
1848
- oauth.storedNonce = oauthState.nonce;
1849
- oauth.prompt = oauthState.prompt;
1850
- oauth.pkceCodeVerifier = oauthState.pkceCodeVerifier;
1851
- }
1852
-
1853
- return oauth;
1854
- }
1855
-
1856
- function parseCallbackUrl(url) {
1857
- var supportedParams;
1858
- switch (kc.flow) {
1859
- case 'standard':
1860
- supportedParams = ['code', 'state', 'session_state', 'kc_action_status', 'iss'];
1861
- break;
1862
- case 'implicit':
1863
- supportedParams = ['access_token', 'token_type', 'id_token', 'state', 'session_state', 'expires_in', 'kc_action_status', 'iss'];
1864
- break;
1865
- case 'hybrid':
1866
- supportedParams = ['access_token', 'token_type', 'id_token', 'code', 'state', 'session_state', 'expires_in', 'kc_action_status', 'iss'];
1867
- break;
1868
- }
1869
-
1870
- supportedParams.push('error');
1871
- supportedParams.push('error_description');
1872
- supportedParams.push('error_uri');
1873
-
1874
- var queryIndex = url.indexOf('?');
1875
- var fragmentIndex = url.indexOf('#');
1876
-
1877
- var newUrl;
1878
- var parsed;
1879
-
1880
- if (kc.responseMode === 'query' && queryIndex !== -1) {
1881
- newUrl = url.substring(0, queryIndex);
1882
- parsed = parseCallbackParams(url.substring(queryIndex + 1, fragmentIndex !== -1 ? fragmentIndex : url.length), supportedParams);
1883
- if (parsed.paramsString !== '') {
1884
- newUrl += '?' + parsed.paramsString;
1885
- }
1886
- if (fragmentIndex !== -1) {
1887
- newUrl += url.substring(fragmentIndex);
1888
- }
1889
- } else if (kc.responseMode === 'fragment' && fragmentIndex !== -1) {
1890
- newUrl = url.substring(0, fragmentIndex);
1891
- parsed = parseCallbackParams(url.substring(fragmentIndex + 1), supportedParams);
1892
- if (parsed.paramsString !== '') {
1893
- newUrl += '#' + parsed.paramsString;
1894
- }
1895
- }
1896
-
1897
- if (parsed && parsed.oauthParams) {
1898
- if (kc.flow === 'standard' || kc.flow === 'hybrid') {
1899
- if ((parsed.oauthParams.code || parsed.oauthParams.error) && parsed.oauthParams.state) {
1900
- parsed.oauthParams.newUrl = newUrl;
1901
- return parsed.oauthParams;
1902
- }
1903
- } else if (kc.flow === 'implicit') {
1904
- if ((parsed.oauthParams.access_token || parsed.oauthParams.error) && parsed.oauthParams.state) {
1905
- parsed.oauthParams.newUrl = newUrl;
1906
- return parsed.oauthParams;
1907
- }
1908
- }
1909
- }
1910
- }
1911
-
1912
- function parseCallbackParams(paramsString, supportedParams) {
1913
- var p = paramsString.split('&');
1914
- var result = {
1915
- paramsString: '',
1916
- oauthParams: {}
1917
- };
1918
- for (var i = 0; i < p.length; i++) {
1919
- var split = p[i].indexOf("=");
1920
- var key = p[i].slice(0, split);
1921
- if (supportedParams.indexOf(key) !== -1) {
1922
- result.oauthParams[key] = p[i].slice(split + 1);
1923
- } else {
1924
- if (result.paramsString !== '') {
1925
- result.paramsString += '&';
1926
- }
1927
- result.paramsString += p[i];
1928
- }
1929
- }
1930
- return result;
1931
- }
1932
-
1933
- function createPromise() {
1934
- // Need to create a native Promise which also preserves the
1935
- // interface of the custom promise type previously used by the API
1936
- var p = {
1937
- setSuccess: function(result) {
1938
- p.resolve(result);
1939
- },
1940
-
1941
- setError: function(result) {
1942
- p.reject(result);
1943
- }
1944
- };
1945
- p.promise = new Promise(function(resolve, reject) {
1946
- p.resolve = resolve;
1947
- p.reject = reject;
1948
- });
1949
-
1950
- return p;
1951
- }
1952
-
1953
- // Function to extend existing native Promise with timeout
1954
- function applyTimeoutToPromise(promise, timeout, errorMessage) {
1955
- var timeoutHandle = null;
1956
- var timeoutPromise = new Promise(function (resolve, reject) {
1957
- timeoutHandle = setTimeout(function () {
1958
- reject({ "error": errorMessage });
1959
- }, timeout);
1960
- });
1961
-
1962
- return Promise.race([promise, timeoutPromise]).finally(function () {
1963
- clearTimeout(timeoutHandle);
1964
- });
1965
- }
1966
-
1967
- function setupCheckLoginIframe() {
1968
- var promise = createPromise();
1969
-
1970
- if (!loginIframe.enable) {
1971
- promise.setSuccess();
1972
- return promise.promise;
1973
- }
1974
-
1975
- if (loginIframe.iframe) {
1976
- promise.setSuccess();
1977
- return promise.promise;
1978
- }
1979
-
1980
- var iframe = document.createElement('iframe');
1981
- loginIframe.iframe = iframe;
1982
-
1983
- iframe.onload = function() {
1984
- var authUrl = kc.endpoints.authorize();
1985
- if (authUrl.charAt(0) === '/') {
1986
- loginIframe.iframeOrigin = getOrigin();
1987
- } else {
1988
- loginIframe.iframeOrigin = authUrl.substring(0, authUrl.indexOf('/', 8));
1989
- }
1990
- promise.setSuccess();
1991
- };
1992
-
1993
- var src = kc.endpoints.checkSessionIframe();
1994
- iframe.setAttribute('src', src );
1995
- iframe.setAttribute('sandbox', 'allow-storage-access-by-user-activation allow-scripts allow-same-origin');
1996
- iframe.setAttribute('title', 'keycloak-session-iframe' );
1997
- iframe.style.display = 'none';
1998
- document.body.appendChild(iframe);
1999
-
2000
- var messageCallback = function(event) {
2001
- if ((event.origin !== loginIframe.iframeOrigin) || (loginIframe.iframe.contentWindow !== event.source)) {
2002
- return;
2003
- }
2004
-
2005
- if (!(event.data == 'unchanged' || event.data == 'changed' || event.data == 'error')) {
2006
- return;
2007
- }
2008
-
2009
-
2010
- if (event.data != 'unchanged') {
2011
- kc.clearToken();
2012
- }
2013
-
2014
- var callbacks = loginIframe.callbackList.splice(0, loginIframe.callbackList.length);
2015
-
2016
- for (var i = callbacks.length - 1; i >= 0; --i) {
2017
- var promise = callbacks[i];
2018
- if (event.data == 'error') {
2019
- promise.setError();
2020
- } else {
2021
- promise.setSuccess(event.data == 'unchanged');
2022
- }
2023
- }
2024
- };
2025
-
2026
- window.addEventListener('message', messageCallback, false);
2027
-
2028
- return promise.promise;
2029
- }
2030
-
2031
- function scheduleCheckIframe() {
2032
- if (loginIframe.enable) {
2033
- if (kc.token) {
2034
- setTimeout(function() {
2035
- checkLoginIframe().then(function(unchanged) {
2036
- if (unchanged) {
2037
- scheduleCheckIframe();
2038
- }
2039
- });
2040
- }, loginIframe.interval * 1000);
2041
- }
2042
- }
2043
- }
2044
-
2045
- function checkLoginIframe() {
2046
- var promise = createPromise();
2047
-
2048
- if (loginIframe.iframe && loginIframe.iframeOrigin ) {
2049
- var msg = kc.clientId + ' ' + (kc.sessionId ? kc.sessionId : '');
2050
- loginIframe.callbackList.push(promise);
2051
- var origin = loginIframe.iframeOrigin;
2052
- if (loginIframe.callbackList.length == 1) {
2053
- loginIframe.iframe.contentWindow.postMessage(msg, origin);
2054
- }
2055
- } else {
2056
- promise.setSuccess();
2057
- }
2058
-
2059
- return promise.promise;
2060
- }
2061
-
2062
- function check3pCookiesSupported() {
2063
- var promise = createPromise();
2064
-
2065
- if (loginIframe.enable || kc.silentCheckSsoRedirectUri) {
2066
- var iframe = document.createElement('iframe');
2067
- iframe.setAttribute('src', kc.endpoints.thirdPartyCookiesIframe());
2068
- iframe.setAttribute('sandbox', 'allow-storage-access-by-user-activation allow-scripts allow-same-origin');
2069
- iframe.setAttribute('title', 'keycloak-3p-check-iframe' );
2070
- iframe.style.display = 'none';
2071
- document.body.appendChild(iframe);
2072
-
2073
- var messageCallback = function(event) {
2074
- if (iframe.contentWindow !== event.source) {
2075
- return;
2076
- }
2077
-
2078
- if (event.data !== "supported" && event.data !== "unsupported") {
2079
- return;
2080
- } else if (event.data === "unsupported") {
2081
- logWarn(
2082
- "[KEYCLOAK] Your browser is blocking access to 3rd-party cookies, this means:\n\n" +
2083
- " - It is not possible to retrieve tokens without redirecting to the Keycloak server (a.k.a. no support for silent authentication).\n" +
2084
- " - It is not possible to automatically detect changes to the session status (such as the user logging out in another tab).\n\n" +
2085
- "For more information see: https://www.keycloak.org/docs/latest/securing_apps/#_modern_browsers"
2086
- );
2087
-
2088
- loginIframe.enable = false;
2089
- if (kc.silentCheckSsoFallback) {
2090
- kc.silentCheckSsoRedirectUri = false;
2091
- }
2092
- }
2093
-
2094
- document.body.removeChild(iframe);
2095
- window.removeEventListener("message", messageCallback);
2096
- promise.setSuccess();
2097
- };
2098
-
2099
- window.addEventListener('message', messageCallback, false);
2100
- } else {
2101
- promise.setSuccess();
2102
- }
2103
-
2104
- return applyTimeoutToPromise(promise.promise, kc.messageReceiveTimeout, "Timeout when waiting for 3rd party check iframe message.");
2105
- }
2106
-
2107
- function loadAdapter(type) {
2108
- if (!type || type == 'default') {
2109
- return {
2110
- login: function(options) {
2111
- window.location.assign(kc.createLoginUrl(options));
2112
- return createPromise().promise;
2113
- },
2114
-
2115
- logout: function(options) {
2116
- window.location.replace(kc.createLogoutUrl(options));
2117
- return createPromise().promise;
2118
- },
2119
-
2120
- register: function(options) {
2121
- window.location.assign(kc.createRegisterUrl(options));
2122
- return createPromise().promise;
2123
- },
2124
-
2125
- accountManagement : function() {
2126
- var accountUrl = kc.createAccountUrl();
2127
- if (typeof accountUrl !== 'undefined') {
2128
- window.location.href = accountUrl;
2129
- } else {
2130
- throw "Not supported by the OIDC server";
2131
- }
2132
- return createPromise().promise;
2133
- },
2134
-
2135
- redirectUri: function(options, encodeHash) {
2136
-
2137
- if (options && options.redirectUri) {
2138
- return options.redirectUri;
2139
- } else if (kc.redirectUri) {
2140
- return kc.redirectUri;
2141
- } else {
2142
- return location.href;
2143
- }
2144
- }
2145
- };
2146
- }
2147
-
2148
- if (type == 'cordova') {
2149
- loginIframe.enable = false;
2150
- var cordovaOpenWindowWrapper = function(loginUrl, target, options) {
2151
- if (window.cordova && window.cordova.InAppBrowser) {
2152
- // Use inappbrowser for IOS and Android if available
2153
- return window.cordova.InAppBrowser.open(loginUrl, target, options);
2154
- } else {
2155
- return window.open(loginUrl, target, options);
2156
- }
2157
- };
2158
-
2159
- var shallowCloneCordovaOptions = function (userOptions) {
2160
- if (userOptions && userOptions.cordovaOptions) {
2161
- return Object.keys(userOptions.cordovaOptions).reduce(function (options, optionName) {
2162
- options[optionName] = userOptions.cordovaOptions[optionName];
2163
- return options;
2164
- }, {});
2165
- } else {
2166
- return {};
2167
- }
2168
- };
2169
-
2170
- var formatCordovaOptions = function (cordovaOptions) {
2171
- return Object.keys(cordovaOptions).reduce(function (options, optionName) {
2172
- options.push(optionName+"="+cordovaOptions[optionName]);
2173
- return options;
2174
- }, []).join(",");
2175
- };
2176
-
2177
- var createCordovaOptions = function (userOptions) {
2178
- var cordovaOptions = shallowCloneCordovaOptions(userOptions);
2179
- cordovaOptions.location = 'no';
2180
- if (userOptions && userOptions.prompt == 'none') {
2181
- cordovaOptions.hidden = 'yes';
2182
- }
2183
- return formatCordovaOptions(cordovaOptions);
2184
- };
2185
-
2186
- var getCordovaRedirectUri = function() {
2187
- return kc.redirectUri || 'http://localhost';
2188
- };
2189
-
2190
- return {
2191
- login: function(options) {
2192
- var promise = createPromise();
2193
-
2194
- var cordovaOptions = createCordovaOptions(options);
2195
- var loginUrl = kc.createLoginUrl(options);
2196
- var ref = cordovaOpenWindowWrapper(loginUrl, '_blank', cordovaOptions);
2197
- var completed = false;
2198
-
2199
- var closed = false;
2200
- var closeBrowser = function() {
2201
- closed = true;
2202
- ref.close();
2203
- };
2204
-
2205
- ref.addEventListener('loadstart', function(event) {
2206
- if (event.url.indexOf(getCordovaRedirectUri()) == 0) {
2207
- var callback = parseCallback(event.url);
2208
- processCallback(callback, promise);
2209
- closeBrowser();
2210
- completed = true;
2211
- }
2212
- });
2213
-
2214
- ref.addEventListener('loaderror', function(event) {
2215
- if (!completed) {
2216
- if (event.url.indexOf(getCordovaRedirectUri()) == 0) {
2217
- var callback = parseCallback(event.url);
2218
- processCallback(callback, promise);
2219
- closeBrowser();
2220
- completed = true;
2221
- } else {
2222
- promise.setError();
2223
- closeBrowser();
2224
- }
2225
- }
2226
- });
2227
-
2228
- ref.addEventListener('exit', function(event) {
2229
- if (!closed) {
2230
- promise.setError({
2231
- reason: "closed_by_user"
2232
- });
2233
- }
2234
- });
2235
-
2236
- return promise.promise;
2237
- },
2238
-
2239
- logout: function(options) {
2240
- var promise = createPromise();
2241
-
2242
- var logoutUrl = kc.createLogoutUrl(options);
2243
- var ref = cordovaOpenWindowWrapper(logoutUrl, '_blank', 'location=no,hidden=yes,clearcache=yes');
2244
-
2245
- var error;
2246
-
2247
- ref.addEventListener('loadstart', function(event) {
2248
- if (event.url.indexOf(getCordovaRedirectUri()) == 0) {
2249
- ref.close();
2250
- }
2251
- });
2252
-
2253
- ref.addEventListener('loaderror', function(event) {
2254
- if (event.url.indexOf(getCordovaRedirectUri()) == 0) {
2255
- ref.close();
2256
- } else {
2257
- error = true;
2258
- ref.close();
2259
- }
2260
- });
2261
-
2262
- ref.addEventListener('exit', function(event) {
2263
- if (error) {
2264
- promise.setError();
2265
- } else {
2266
- kc.clearToken();
2267
- promise.setSuccess();
2268
- }
2269
- });
2270
-
2271
- return promise.promise;
2272
- },
2273
-
2274
- register : function(options) {
2275
- var promise = createPromise();
2276
- var registerUrl = kc.createRegisterUrl();
2277
- var cordovaOptions = createCordovaOptions(options);
2278
- var ref = cordovaOpenWindowWrapper(registerUrl, '_blank', cordovaOptions);
2279
- ref.addEventListener('loadstart', function(event) {
2280
- if (event.url.indexOf(getCordovaRedirectUri()) == 0) {
2281
- ref.close();
2282
- var oauth = parseCallback(event.url);
2283
- processCallback(oauth, promise);
2284
- }
2285
- });
2286
- return promise.promise;
2287
- },
2288
-
2289
- accountManagement : function() {
2290
- var accountUrl = kc.createAccountUrl();
2291
- if (typeof accountUrl !== 'undefined') {
2292
- var ref = cordovaOpenWindowWrapper(accountUrl, '_blank', 'location=no');
2293
- ref.addEventListener('loadstart', function(event) {
2294
- if (event.url.indexOf(getCordovaRedirectUri()) == 0) {
2295
- ref.close();
2296
- }
2297
- });
2298
- } else {
2299
- throw "Not supported by the OIDC server";
2300
- }
2301
- },
2302
-
2303
- redirectUri: function(options) {
2304
- return getCordovaRedirectUri();
2305
- }
2306
- }
2307
- }
2308
-
2309
- if (type == 'cordova-native') {
2310
- loginIframe.enable = false;
2311
-
2312
- return {
2313
- login: function(options) {
2314
- var promise = createPromise();
2315
- var loginUrl = kc.createLoginUrl(options);
2316
-
2317
- universalLinks.subscribe('keycloak', function(event) {
2318
- universalLinks.unsubscribe('keycloak');
2319
- window.cordova.plugins.browsertab.close();
2320
- var oauth = parseCallback(event.url);
2321
- processCallback(oauth, promise);
2322
- });
2323
-
2324
- window.cordova.plugins.browsertab.openUrl(loginUrl);
2325
- return promise.promise;
2326
- },
2327
-
2328
- logout: function(options) {
2329
- var promise = createPromise();
2330
- var logoutUrl = kc.createLogoutUrl(options);
2331
-
2332
- universalLinks.subscribe('keycloak', function(event) {
2333
- universalLinks.unsubscribe('keycloak');
2334
- window.cordova.plugins.browsertab.close();
2335
- kc.clearToken();
2336
- promise.setSuccess();
2337
- });
2338
-
2339
- window.cordova.plugins.browsertab.openUrl(logoutUrl);
2340
- return promise.promise;
2341
- },
2342
-
2343
- register : function(options) {
2344
- var promise = createPromise();
2345
- var registerUrl = kc.createRegisterUrl(options);
2346
- universalLinks.subscribe('keycloak' , function(event) {
2347
- universalLinks.unsubscribe('keycloak');
2348
- window.cordova.plugins.browsertab.close();
2349
- var oauth = parseCallback(event.url);
2350
- processCallback(oauth, promise);
2351
- });
2352
- window.cordova.plugins.browsertab.openUrl(registerUrl);
2353
- return promise.promise;
2354
-
2355
- },
2356
-
2357
- accountManagement : function() {
2358
- var accountUrl = kc.createAccountUrl();
2359
- if (typeof accountUrl !== 'undefined') {
2360
- window.cordova.plugins.browsertab.openUrl(accountUrl);
2361
- } else {
2362
- throw "Not supported by the OIDC server";
2363
- }
2364
- },
2365
-
2366
- redirectUri: function(options) {
2367
- if (options && options.redirectUri) {
2368
- return options.redirectUri;
2369
- } else if (kc.redirectUri) {
2370
- return kc.redirectUri;
2371
- } else {
2372
- return "http://localhost";
2373
- }
2374
- }
2375
- }
2376
- }
2377
-
2378
- throw 'invalid adapter type: ' + type;
2379
- }
2380
-
2381
- var LocalStorage = function() {
2382
- if (!(this instanceof LocalStorage)) {
2383
- return new LocalStorage();
2384
- }
2385
-
2386
- localStorage.setItem('kc-test', 'test');
2387
- localStorage.removeItem('kc-test');
2388
-
2389
- var cs = this;
2390
-
2391
- function clearExpired() {
2392
- var time = new Date().getTime();
2393
- for (var i = 0; i < localStorage.length; i++) {
2394
- var key = localStorage.key(i);
2395
- if (key && key.indexOf('kc-callback-') == 0) {
2396
- var value = localStorage.getItem(key);
2397
- if (value) {
2398
- try {
2399
- var expires = JSON.parse(value).expires;
2400
- if (!expires || expires < time) {
2401
- localStorage.removeItem(key);
2402
- }
2403
- } catch (err) {
2404
- localStorage.removeItem(key);
2405
- }
2406
- }
2407
- }
2408
- }
2409
- }
2410
-
2411
- cs.get = function(state) {
2412
- if (!state) {
2413
- return;
2414
- }
2415
-
2416
- var key = 'kc-callback-' + state;
2417
- var value = localStorage.getItem(key);
2418
- if (value) {
2419
- localStorage.removeItem(key);
2420
- value = JSON.parse(value);
2421
- }
2422
-
2423
- clearExpired();
2424
- return value;
2425
- };
2426
-
2427
- cs.add = function(state) {
2428
- clearExpired();
2429
-
2430
- var key = 'kc-callback-' + state.state;
2431
- state.expires = new Date().getTime() + (60 * 60 * 1000);
2432
- localStorage.setItem(key, JSON.stringify(state));
2433
- };
2434
- };
2435
-
2436
- var CookieStorage = function() {
2437
- if (!(this instanceof CookieStorage)) {
2438
- return new CookieStorage();
2439
- }
2440
-
2441
- var cs = this;
2442
-
2443
- cs.get = function(state) {
2444
- if (!state) {
2445
- return;
2446
- }
2447
-
2448
- var value = getCookie('kc-callback-' + state);
2449
- setCookie('kc-callback-' + state, '', cookieExpiration(-100));
2450
- if (value) {
2451
- return JSON.parse(value);
2452
- }
2453
- };
2454
-
2455
- cs.add = function(state) {
2456
- setCookie('kc-callback-' + state.state, JSON.stringify(state), cookieExpiration(60));
2457
- };
2458
-
2459
- cs.removeItem = function(key) {
2460
- setCookie(key, '', cookieExpiration(-100));
2461
- };
2462
-
2463
- var cookieExpiration = function (minutes) {
2464
- var exp = new Date();
2465
- exp.setTime(exp.getTime() + (minutes*60*1000));
2466
- return exp;
2467
- };
2468
-
2469
- var getCookie = function (key) {
2470
- var name = key + '=';
2471
- var ca = document.cookie.split(';');
2472
- for (var i = 0; i < ca.length; i++) {
2473
- var c = ca[i];
2474
- while (c.charAt(0) == ' ') {
2475
- c = c.substring(1);
2476
- }
2477
- if (c.indexOf(name) == 0) {
2478
- return c.substring(name.length, c.length);
2479
- }
2480
- }
2481
- return '';
2482
- };
2483
-
2484
- var setCookie = function (key, value, expirationDate) {
2485
- var cookie = key + '=' + value + '; '
2486
- + 'expires=' + expirationDate.toUTCString() + '; ';
2487
- document.cookie = cookie;
2488
- };
2489
- };
2490
-
2491
- function createCallbackStorage() {
2492
- try {
2493
- return new LocalStorage();
2494
- } catch (err) {
2495
- }
2496
-
2497
- return new CookieStorage();
2498
- }
2499
-
2500
- function createLogger(fn) {
2501
- return function() {
2502
- if (kc.enableLogging) {
2503
- fn.apply(console, Array.prototype.slice.call(arguments));
2504
- }
2505
- };
2506
- }
2507
- }
2508
-
2509
- /**
2510
- * Jdenticon 3.3.0
2511
- * http://jdenticon.com
2512
- *
2513
- * Built: 2024-05-10T09:48:41.921Z
2514
- *
2515
- * MIT License
2516
- *
2517
- * Copyright (c) 2014-2024 Daniel Mester Pirttijärvi
2518
- *
2519
- * Permission is hereby granted, free of charge, to any person obtaining a copy
2520
- * of this software and associated documentation files (the "Software"), to deal
2521
- * in the Software without restriction, including without limitation the rights
2522
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
2523
- * copies of the Software, and to permit persons to whom the Software is
2524
- * furnished to do so, subject to the following conditions:
2525
- *
2526
- * The above copyright notice and this permission notice shall be included in all
2527
- * copies or substantial portions of the Software.
2528
- *
2529
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
2530
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
2531
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
2532
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
2533
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
2534
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
2535
- * SOFTWARE.
2536
- */
2537
-
2538
- var jdenticonModule;
2539
- var hasRequiredJdenticonModule;
2540
-
2541
- function requireJdenticonModule () {
2542
- if (hasRequiredJdenticonModule) return jdenticonModule;
2543
- hasRequiredJdenticonModule = 1;
2544
-
2545
- /**
2546
- * Parses a substring of the hash as a number.
2547
- * @param {number} startPosition
2548
- * @param {number=} octets
2549
- */
2550
- function parseHex(hash, startPosition, octets) {
2551
- return parseInt(hash.substr(startPosition, octets), 16);
2552
- }
2553
-
2554
- function decToHex(v) {
2555
- v |= 0; // Ensure integer value
2556
- return v < 0 ? "00" :
2557
- v < 16 ? "0" + v.toString(16) :
2558
- v < 256 ? v.toString(16) :
2559
- "ff";
2560
- }
2561
-
2562
- function hueToRgb(m1, m2, h) {
2563
- h = h < 0 ? h + 6 : h > 6 ? h - 6 : h;
2564
- return decToHex(255 * (
2565
- h < 1 ? m1 + (m2 - m1) * h :
2566
- h < 3 ? m2 :
2567
- h < 4 ? m1 + (m2 - m1) * (4 - h) :
2568
- m1));
2569
- }
2570
-
2571
- /**
2572
- * @param {string} color Color value to parse. Currently hexadecimal strings on the format #rgb[a] and #rrggbb[aa] are supported.
2573
- * @returns {string}
2574
- */
2575
- function parseColor(color) {
2576
- if (/^#[0-9a-f]{3,8}$/i.test(color)) {
2577
- var result;
2578
- var colorLength = color.length;
2579
-
2580
- if (colorLength < 6) {
2581
- var r = color[1],
2582
- g = color[2],
2583
- b = color[3],
2584
- a = color[4] || "";
2585
- result = "#" + r + r + g + g + b + b + a + a;
2586
- }
2587
- if (colorLength == 7 || colorLength > 8) {
2588
- result = color;
2589
- }
2590
-
2591
- return result;
2592
- }
2593
- }
2594
-
2595
- /**
2596
- * Converts a hexadecimal color to a CSS3 compatible color.
2597
- * @param {string} hexColor Color on the format "#RRGGBB" or "#RRGGBBAA"
2598
- * @returns {string}
2599
- */
2600
- function toCss3Color(hexColor) {
2601
- var a = parseHex(hexColor, 7, 2);
2602
- var result;
2603
-
2604
- if (isNaN(a)) {
2605
- result = hexColor;
2606
- } else {
2607
- var r = parseHex(hexColor, 1, 2),
2608
- g = parseHex(hexColor, 3, 2),
2609
- b = parseHex(hexColor, 5, 2);
2610
- result = "rgba(" + r + "," + g + "," + b + "," + (a / 255).toFixed(2) + ")";
2611
- }
2612
-
2613
- return result;
2614
- }
2615
-
2616
- /**
2617
- * Converts an HSL color to a hexadecimal RGB color.
2618
- * @param {number} hue Hue in range [0, 1]
2619
- * @param {number} saturation Saturation in range [0, 1]
2620
- * @param {number} lightness Lightness in range [0, 1]
2621
- * @returns {string}
2622
- */
2623
- function hsl(hue, saturation, lightness) {
2624
- // Based on http://www.w3.org/TR/2011/REC-css3-color-20110607/#hsl-color
2625
- var result;
2626
-
2627
- if (saturation == 0) {
2628
- var partialHex = decToHex(lightness * 255);
2629
- result = partialHex + partialHex + partialHex;
2630
- }
2631
- else {
2632
- var m2 = lightness <= 0.5 ? lightness * (saturation + 1) : lightness + saturation - lightness * saturation,
2633
- m1 = lightness * 2 - m2;
2634
- result =
2635
- hueToRgb(m1, m2, hue * 6 + 2) +
2636
- hueToRgb(m1, m2, hue * 6) +
2637
- hueToRgb(m1, m2, hue * 6 - 2);
2638
- }
2639
-
2640
- return "#" + result;
2641
- }
2642
-
2643
- /**
2644
- * Converts an HSL color to a hexadecimal RGB color. This function will correct the lightness for the "dark" hues
2645
- * @param {number} hue Hue in range [0, 1]
2646
- * @param {number} saturation Saturation in range [0, 1]
2647
- * @param {number} lightness Lightness in range [0, 1]
2648
- * @returns {string}
2649
- */
2650
- function correctedHsl(hue, saturation, lightness) {
2651
- // The corrector specifies the perceived middle lightness for each hue
2652
- var correctors = [ 0.55, 0.5, 0.5, 0.46, 0.6, 0.55, 0.55 ],
2653
- corrector = correctors[(hue * 6 + 0.5) | 0];
2654
-
2655
- // Adjust the input lightness relative to the corrector
2656
- lightness = lightness < 0.5 ? lightness * corrector * 2 : corrector + (lightness - 0.5) * (1 - corrector) * 2;
2657
-
2658
- return hsl(hue, saturation, lightness);
2659
- }
2660
-
2661
- // In the future we can replace `GLOBAL` with `globalThis`, but for now use the old school global detection for
2662
- // backward compatibility.
2663
-
2664
- var GLOBAL =
2665
- typeof window !== "undefined" ? window :
2666
- typeof self !== "undefined" ? self :
2667
- typeof commonjsGlobal !== "undefined" ? commonjsGlobal :
2668
- {};
2669
-
2670
- /**
2671
- * @typedef {Object} ParsedConfiguration
2672
- * @property {number} colorSaturation
2673
- * @property {number} grayscaleSaturation
2674
- * @property {string} backColor
2675
- * @property {number} iconPadding
2676
- * @property {function(number):number} hue
2677
- * @property {function(number):number} colorLightness
2678
- * @property {function(number):number} grayscaleLightness
2679
- */
2680
-
2681
- var CONFIG_PROPERTIES = {
2682
- W/*GLOBAL*/: "jdenticon_config",
2683
- n/*MODULE*/: "config",
2684
- };
2685
-
2686
- var rootConfigurationHolder = {};
2687
-
2688
- /**
2689
- * Defines the deprecated `config` property on the root Jdenticon object without printing a warning in the console
2690
- * when it is being used.
2691
- * @param {!Object} rootObject
2692
- */
2693
- function defineConfigProperty(rootObject) {
2694
- rootConfigurationHolder = rootObject;
2695
- }
2696
-
2697
- /**
2698
- * Sets a new icon style configuration. The new configuration is not merged with the previous one. *
2699
- * @param {Object} newConfiguration - New configuration object.
2700
- */
2701
- function configure(newConfiguration) {
2702
- if (arguments.length) {
2703
- rootConfigurationHolder[CONFIG_PROPERTIES.n/*MODULE*/] = newConfiguration;
2704
- }
2705
- return rootConfigurationHolder[CONFIG_PROPERTIES.n/*MODULE*/];
2706
- }
2707
-
2708
- /**
2709
- * Gets the normalized current Jdenticon color configuration. Missing fields have default values.
2710
- * @param {Object|number|undefined} paddingOrLocalConfig - Configuration passed to the called API method. A
2711
- * local configuration overrides the global configuration in it entirety. This parameter can for backward
2712
- * compatibility also contain a padding value. A padding value only overrides the global padding, not the
2713
- * entire global configuration.
2714
- * @param {number} defaultPadding - Padding used if no padding is specified in neither the configuration nor
2715
- * explicitly to the API method.
2716
- * @returns {ParsedConfiguration}
2717
- */
2718
- function getConfiguration(paddingOrLocalConfig, defaultPadding) {
2719
- var configObject =
2720
- typeof paddingOrLocalConfig == "object" && paddingOrLocalConfig ||
2721
- rootConfigurationHolder[CONFIG_PROPERTIES.n/*MODULE*/] ||
2722
- GLOBAL[CONFIG_PROPERTIES.W/*GLOBAL*/] ||
2723
- { },
2724
-
2725
- lightnessConfig = configObject["lightness"] || { },
2726
-
2727
- // In versions < 2.1.0 there was no grayscale saturation -
2728
- // saturation was the color saturation.
2729
- saturation = configObject["saturation"] || { },
2730
- colorSaturation = "color" in saturation ? saturation["color"] : saturation,
2731
- grayscaleSaturation = saturation["grayscale"],
2732
-
2733
- backColor = configObject["backColor"],
2734
- padding = configObject["padding"];
2735
-
2736
- /**
2737
- * Creates a lightness range.
2738
- */
2739
- function lightness(configName, defaultRange) {
2740
- var range = lightnessConfig[configName];
2741
-
2742
- // Check if the lightness range is an array-like object. This way we ensure the
2743
- // array contain two values at the same time.
2744
- if (!(range && range.length > 1)) {
2745
- range = defaultRange;
2746
- }
2747
-
2748
- /**
2749
- * Gets a lightness relative the specified value in the specified lightness range.
2750
- */
2751
- return function (value) {
2752
- value = range[0] + value * (range[1] - range[0]);
2753
- return value < 0 ? 0 : value > 1 ? 1 : value;
2754
- };
2755
- }
2756
-
2757
- /**
2758
- * Gets a hue allowed by the configured hue restriction,
2759
- * provided the originally computed hue.
2760
- */
2761
- function hueFunction(originalHue) {
2762
- var hueConfig = configObject["hues"];
2763
- var hue;
2764
-
2765
- // Check if 'hues' is an array-like object. This way we also ensure that
2766
- // the array is not empty, which would mean no hue restriction.
2767
- if (hueConfig && hueConfig.length > 0) {
2768
- // originalHue is in the range [0, 1]
2769
- // Multiply with 0.999 to change the range to [0, 1) and then truncate the index.
2770
- hue = hueConfig[0 | (0.999 * originalHue * hueConfig.length)];
2771
- }
2772
-
2773
- return typeof hue == "number" ?
2774
-
2775
- // A hue was specified. We need to convert the hue from
2776
- // degrees on any turn - e.g. 746° is a perfectly valid hue -
2777
- // to turns in the range [0, 1).
2778
- ((((hue / 360) % 1) + 1) % 1) :
2779
-
2780
- // No hue configured => use original hue
2781
- originalHue;
2782
- }
2783
-
2784
- return {
2785
- X/*hue*/: hueFunction,
2786
- o/*colorSaturation*/: typeof colorSaturation == "number" ? colorSaturation : 0.5,
2787
- F/*grayscaleSaturation*/: typeof grayscaleSaturation == "number" ? grayscaleSaturation : 0,
2788
- p/*colorLightness*/: lightness("color", [0.4, 0.8]),
2789
- G/*grayscaleLightness*/: lightness("grayscale", [0.3, 0.9]),
2790
- H/*backColor*/: parseColor(backColor),
2791
- Y/*iconPadding*/:
2792
- typeof paddingOrLocalConfig == "number" ? paddingOrLocalConfig :
2793
- typeof padding == "number" ? padding :
2794
- defaultPadding
2795
- }
2796
- }
2797
-
2798
- /**
2799
- * Represents a point.
2800
- */
2801
- function Point(x, y) {
2802
- this.x = x;
2803
- this.y = y;
2804
- }
2805
-
2806
- /**
2807
- * Translates and rotates a point before being passed on to the canvas context. This was previously done by the canvas context itself,
2808
- * but this caused a rendering issue in Chrome on sizes > 256 where the rotation transformation of inverted paths was not done properly.
2809
- */
2810
- function Transform(x, y, size, rotation) {
2811
- this.q/*_x*/ = x;
2812
- this.t/*_y*/ = y;
2813
- this.I/*_size*/ = size;
2814
- this.Z/*_rotation*/ = rotation;
2815
- }
2816
-
2817
- /**
2818
- * Transforms the specified point based on the translation and rotation specification for this Transform.
2819
- * @param {number} x x-coordinate
2820
- * @param {number} y y-coordinate
2821
- * @param {number=} w The width of the transformed rectangle. If greater than 0, this will ensure the returned point is of the upper left corner of the transformed rectangle.
2822
- * @param {number=} h The height of the transformed rectangle. If greater than 0, this will ensure the returned point is of the upper left corner of the transformed rectangle.
2823
- */
2824
- Transform.prototype.J/*transformIconPoint*/ = function transformIconPoint (x, y, w, h) {
2825
- var right = this.q/*_x*/ + this.I/*_size*/,
2826
- bottom = this.t/*_y*/ + this.I/*_size*/,
2827
- rotation = this.Z/*_rotation*/;
2828
- return rotation === 1 ? new Point(right - y - (h || 0), this.t/*_y*/ + x) :
2829
- rotation === 2 ? new Point(right - x - (w || 0), bottom - y - (h || 0)) :
2830
- rotation === 3 ? new Point(this.q/*_x*/ + y, bottom - x - (w || 0)) :
2831
- new Point(this.q/*_x*/ + x, this.t/*_y*/ + y);
2832
- };
2833
-
2834
- var NO_TRANSFORM = new Transform(0, 0, 0, 0);
2835
-
2836
-
2837
-
2838
- /**
2839
- * Provides helper functions for rendering common basic shapes.
2840
- */
2841
- function Graphics(renderer) {
2842
- /**
2843
- * @type {Renderer}
2844
- * @private
2845
- */
2846
- this.K/*_renderer*/ = renderer;
2847
-
2848
- /**
2849
- * @type {Transform}
2850
- */
2851
- this.u/*currentTransform*/ = NO_TRANSFORM;
2852
- }
2853
- var Graphics__prototype = Graphics.prototype;
2854
-
2855
- /**
2856
- * Adds a polygon to the underlying renderer.
2857
- * @param {Array<number>} points The points of the polygon clockwise on the format [ x0, y0, x1, y1, ..., xn, yn ]
2858
- * @param {boolean=} invert Specifies if the polygon will be inverted.
2859
- */
2860
- Graphics__prototype.g/*addPolygon*/ = function addPolygon (points, invert) {
2861
- var this$1$1 = this;
2862
-
2863
- var di = invert ? -2 : 2,
2864
- transformedPoints = [];
2865
-
2866
- for (var i = invert ? points.length - 2 : 0; i < points.length && i >= 0; i += di) {
2867
- transformedPoints.push(this$1$1.u/*currentTransform*/.J/*transformIconPoint*/(points[i], points[i + 1]));
2868
- }
2869
-
2870
- this.K/*_renderer*/.g/*addPolygon*/(transformedPoints);
2871
- };
2872
-
2873
- /**
2874
- * Adds a polygon to the underlying renderer.
2875
- * Source: http://stackoverflow.com/a/2173084
2876
- * @param {number} x The x-coordinate of the upper left corner of the rectangle holding the entire ellipse.
2877
- * @param {number} y The y-coordinate of the upper left corner of the rectangle holding the entire ellipse.
2878
- * @param {number} size The size of the ellipse.
2879
- * @param {boolean=} invert Specifies if the ellipse will be inverted.
2880
- */
2881
- Graphics__prototype.h/*addCircle*/ = function addCircle (x, y, size, invert) {
2882
- var p = this.u/*currentTransform*/.J/*transformIconPoint*/(x, y, size, size);
2883
- this.K/*_renderer*/.h/*addCircle*/(p, size, invert);
2884
- };
2885
-
2886
- /**
2887
- * Adds a rectangle to the underlying renderer.
2888
- * @param {number} x The x-coordinate of the upper left corner of the rectangle.
2889
- * @param {number} y The y-coordinate of the upper left corner of the rectangle.
2890
- * @param {number} w The width of the rectangle.
2891
- * @param {number} h The height of the rectangle.
2892
- * @param {boolean=} invert Specifies if the rectangle will be inverted.
2893
- */
2894
- Graphics__prototype.i/*addRectangle*/ = function addRectangle (x, y, w, h, invert) {
2895
- this.g/*addPolygon*/([
2896
- x, y,
2897
- x + w, y,
2898
- x + w, y + h,
2899
- x, y + h
2900
- ], invert);
2901
- };
2902
-
2903
- /**
2904
- * Adds a right triangle to the underlying renderer.
2905
- * @param {number} x The x-coordinate of the upper left corner of the rectangle holding the triangle.
2906
- * @param {number} y The y-coordinate of the upper left corner of the rectangle holding the triangle.
2907
- * @param {number} w The width of the triangle.
2908
- * @param {number} h The height of the triangle.
2909
- * @param {number} r The rotation of the triangle (clockwise). 0 = right corner of the triangle in the lower left corner of the bounding rectangle.
2910
- * @param {boolean=} invert Specifies if the triangle will be inverted.
2911
- */
2912
- Graphics__prototype.j/*addTriangle*/ = function addTriangle (x, y, w, h, r, invert) {
2913
- var points = [
2914
- x + w, y,
2915
- x + w, y + h,
2916
- x, y + h,
2917
- x, y
2918
- ];
2919
- points.splice(((r || 0) % 4) * 2, 2);
2920
- this.g/*addPolygon*/(points, invert);
2921
- };
2922
-
2923
- /**
2924
- * Adds a rhombus to the underlying renderer.
2925
- * @param {number} x The x-coordinate of the upper left corner of the rectangle holding the rhombus.
2926
- * @param {number} y The y-coordinate of the upper left corner of the rectangle holding the rhombus.
2927
- * @param {number} w The width of the rhombus.
2928
- * @param {number} h The height of the rhombus.
2929
- * @param {boolean=} invert Specifies if the rhombus will be inverted.
2930
- */
2931
- Graphics__prototype.L/*addRhombus*/ = function addRhombus (x, y, w, h, invert) {
2932
- this.g/*addPolygon*/([
2933
- x + w / 2, y,
2934
- x + w, y + h / 2,
2935
- x + w / 2, y + h,
2936
- x, y + h / 2
2937
- ], invert);
2938
- };
2939
-
2940
- /**
2941
- * @param {number} index
2942
- * @param {Graphics} g
2943
- * @param {number} cell
2944
- * @param {number} positionIndex
2945
- */
2946
- function centerShape(index, g, cell, positionIndex) {
2947
- index = index % 14;
2948
-
2949
- var k, m, w, h, inner, outer;
2950
-
2951
- !index ? (
2952
- k = cell * 0.42,
2953
- g.g/*addPolygon*/([
2954
- 0, 0,
2955
- cell, 0,
2956
- cell, cell - k * 2,
2957
- cell - k, cell,
2958
- 0, cell
2959
- ])) :
2960
-
2961
- index == 1 ? (
2962
- w = 0 | (cell * 0.5),
2963
- h = 0 | (cell * 0.8),
2964
-
2965
- g.j/*addTriangle*/(cell - w, 0, w, h, 2)) :
2966
-
2967
- index == 2 ? (
2968
- w = 0 | (cell / 3),
2969
- g.i/*addRectangle*/(w, w, cell - w, cell - w)) :
2970
-
2971
- index == 3 ? (
2972
- inner = cell * 0.1,
2973
- // Use fixed outer border widths in small icons to ensure the border is drawn
2974
- outer =
2975
- cell < 6 ? 1 :
2976
- cell < 8 ? 2 :
2977
- (0 | (cell * 0.25)),
2978
-
2979
- inner =
2980
- inner > 1 ? (0 | inner) : // large icon => truncate decimals
2981
- inner > 0.5 ? 1 : // medium size icon => fixed width
2982
- inner, // small icon => anti-aliased border
2983
-
2984
- g.i/*addRectangle*/(outer, outer, cell - inner - outer, cell - inner - outer)) :
2985
-
2986
- index == 4 ? (
2987
- m = 0 | (cell * 0.15),
2988
- w = 0 | (cell * 0.5),
2989
- g.h/*addCircle*/(cell - w - m, cell - w - m, w)) :
2990
-
2991
- index == 5 ? (
2992
- inner = cell * 0.1,
2993
- outer = inner * 4,
2994
-
2995
- // Align edge to nearest pixel in large icons
2996
- outer > 3 && (outer = 0 | outer),
2997
-
2998
- g.i/*addRectangle*/(0, 0, cell, cell),
2999
- g.g/*addPolygon*/([
3000
- outer, outer,
3001
- cell - inner, outer,
3002
- outer + (cell - outer - inner) / 2, cell - inner
3003
- ], true)) :
3004
-
3005
- index == 6 ?
3006
- g.g/*addPolygon*/([
3007
- 0, 0,
3008
- cell, 0,
3009
- cell, cell * 0.7,
3010
- cell * 0.4, cell * 0.4,
3011
- cell * 0.7, cell,
3012
- 0, cell
3013
- ]) :
3014
-
3015
- index == 7 ?
3016
- g.j/*addTriangle*/(cell / 2, cell / 2, cell / 2, cell / 2, 3) :
3017
-
3018
- index == 8 ? (
3019
- g.i/*addRectangle*/(0, 0, cell, cell / 2),
3020
- g.i/*addRectangle*/(0, cell / 2, cell / 2, cell / 2),
3021
- g.j/*addTriangle*/(cell / 2, cell / 2, cell / 2, cell / 2, 1)) :
3022
-
3023
- index == 9 ? (
3024
- inner = cell * 0.14,
3025
- // Use fixed outer border widths in small icons to ensure the border is drawn
3026
- outer =
3027
- cell < 4 ? 1 :
3028
- cell < 6 ? 2 :
3029
- (0 | (cell * 0.35)),
3030
-
3031
- inner =
3032
- cell < 8 ? inner : // small icon => anti-aliased border
3033
- (0 | inner), // large icon => truncate decimals
3034
-
3035
- g.i/*addRectangle*/(0, 0, cell, cell),
3036
- g.i/*addRectangle*/(outer, outer, cell - outer - inner, cell - outer - inner, true)) :
3037
-
3038
- index == 10 ? (
3039
- inner = cell * 0.12,
3040
- outer = inner * 3,
3041
-
3042
- g.i/*addRectangle*/(0, 0, cell, cell),
3043
- g.h/*addCircle*/(outer, outer, cell - inner - outer, true)) :
3044
-
3045
- index == 11 ?
3046
- g.j/*addTriangle*/(cell / 2, cell / 2, cell / 2, cell / 2, 3) :
3047
-
3048
- index == 12 ? (
3049
- m = cell * 0.25,
3050
- g.i/*addRectangle*/(0, 0, cell, cell),
3051
- g.L/*addRhombus*/(m, m, cell - m, cell - m, true)) :
3052
-
3053
- // 13
3054
- (
3055
- !positionIndex && (
3056
- m = cell * 0.4, w = cell * 1.2,
3057
- g.h/*addCircle*/(m, m, w)
3058
- )
3059
- );
3060
- }
3061
-
3062
- /**
3063
- * @param {number} index
3064
- * @param {Graphics} g
3065
- * @param {number} cell
3066
- */
3067
- function outerShape(index, g, cell) {
3068
- index = index % 4;
3069
-
3070
- var m;
3071
-
3072
- !index ?
3073
- g.j/*addTriangle*/(0, 0, cell, cell, 0) :
3074
-
3075
- index == 1 ?
3076
- g.j/*addTriangle*/(0, cell / 2, cell, cell / 2, 0) :
3077
-
3078
- index == 2 ?
3079
- g.L/*addRhombus*/(0, 0, cell, cell) :
3080
-
3081
- // 3
3082
- (
3083
- m = cell / 6,
3084
- g.h/*addCircle*/(m, m, cell - 2 * m)
3085
- );
3086
- }
3087
-
3088
- /**
3089
- * Gets a set of identicon color candidates for a specified hue and config.
3090
- * @param {number} hue
3091
- * @param {ParsedConfiguration} config
3092
- */
3093
- function colorTheme(hue, config) {
3094
- hue = config.X/*hue*/(hue);
3095
- return [
3096
- // Dark gray
3097
- correctedHsl(hue, config.F/*grayscaleSaturation*/, config.G/*grayscaleLightness*/(0)),
3098
- // Mid color
3099
- correctedHsl(hue, config.o/*colorSaturation*/, config.p/*colorLightness*/(0.5)),
3100
- // Light gray
3101
- correctedHsl(hue, config.F/*grayscaleSaturation*/, config.G/*grayscaleLightness*/(1)),
3102
- // Light color
3103
- correctedHsl(hue, config.o/*colorSaturation*/, config.p/*colorLightness*/(1)),
3104
- // Dark color
3105
- correctedHsl(hue, config.o/*colorSaturation*/, config.p/*colorLightness*/(0))
3106
- ];
3107
- }
3108
-
3109
- /**
3110
- * Draws an identicon to a specified renderer.
3111
- * @param {Renderer} renderer
3112
- * @param {string} hash
3113
- * @param {Object|number=} config
3114
- */
3115
- function iconGenerator(renderer, hash, config) {
3116
- var parsedConfig = getConfiguration(config, 0.08);
3117
-
3118
- // Set background color
3119
- if (parsedConfig.H/*backColor*/) {
3120
- renderer.m/*setBackground*/(parsedConfig.H/*backColor*/);
3121
- }
3122
-
3123
- // Calculate padding and round to nearest integer
3124
- var size = renderer.k/*iconSize*/;
3125
- var padding = (0.5 + size * parsedConfig.Y/*iconPadding*/) | 0;
3126
- size -= padding * 2;
3127
-
3128
- var graphics = new Graphics(renderer);
3129
-
3130
- // Calculate cell size and ensure it is an integer
3131
- var cell = 0 | (size / 4);
3132
-
3133
- // Since the cell size is integer based, the actual icon will be slightly smaller than specified => center icon
3134
- var x = 0 | (padding + size / 2 - cell * 2);
3135
- var y = 0 | (padding + size / 2 - cell * 2);
3136
-
3137
- function renderShape(colorIndex, shapes, index, rotationIndex, positions) {
3138
- var shapeIndex = parseHex(hash, index, 1);
3139
- var r = rotationIndex ? parseHex(hash, rotationIndex, 1) : 0;
3140
-
3141
- renderer.M/*beginShape*/(availableColors[selectedColorIndexes[colorIndex]]);
3142
-
3143
- for (var i = 0; i < positions.length; i++) {
3144
- graphics.u/*currentTransform*/ = new Transform(x + positions[i][0] * cell, y + positions[i][1] * cell, cell, r++ % 4);
3145
- shapes(shapeIndex, graphics, cell, i);
3146
- }
3147
-
3148
- renderer.N/*endShape*/();
3149
- }
3150
-
3151
- // AVAILABLE COLORS
3152
- var hue = parseHex(hash, -7) / 0xfffffff,
3153
-
3154
- // Available colors for this icon
3155
- availableColors = colorTheme(hue, parsedConfig),
3156
-
3157
- // The index of the selected colors
3158
- selectedColorIndexes = [];
3159
-
3160
- var index;
3161
-
3162
- function isDuplicate(values) {
3163
- if (values.indexOf(index) >= 0) {
3164
- for (var i = 0; i < values.length; i++) {
3165
- if (selectedColorIndexes.indexOf(values[i]) >= 0) {
3166
- return true;
3167
- }
3168
- }
3169
- }
3170
- }
3171
-
3172
- for (var i = 0; i < 3; i++) {
3173
- index = parseHex(hash, 8 + i, 1) % availableColors.length;
3174
- if (isDuplicate([0, 4]) || // Disallow dark gray and dark color combo
3175
- isDuplicate([2, 3])) { // Disallow light gray and light color combo
3176
- index = 1;
3177
- }
3178
- selectedColorIndexes.push(index);
3179
- }
3180
-
3181
- // ACTUAL RENDERING
3182
- // Sides
3183
- renderShape(0, outerShape, 2, 3, [[1, 0], [2, 0], [2, 3], [1, 3], [0, 1], [3, 1], [3, 2], [0, 2]]);
3184
- // Corners
3185
- renderShape(1, outerShape, 4, 5, [[0, 0], [3, 0], [3, 3], [0, 3]]);
3186
- // Center
3187
- renderShape(2, centerShape, 1, null, [[1, 1], [2, 1], [2, 2], [1, 2]]);
3188
-
3189
- renderer.finish();
3190
- }
3191
-
3192
- /**
3193
- * Computes a SHA1 hash for any value and returns it as a hexadecimal string.
3194
- *
3195
- * This function is optimized for minimal code size and rather short messages.
3196
- *
3197
- * @param {string} message
3198
- */
3199
- function sha1(message) {
3200
- var HASH_SIZE_HALF_BYTES = 40;
3201
- var BLOCK_SIZE_WORDS = 16;
3202
-
3203
- // Variables
3204
- // `var` is used to be able to minimize the number of `var` keywords.
3205
- var i = 0,
3206
- f = 0,
3207
-
3208
- // Use `encodeURI` to UTF8 encode the message without any additional libraries
3209
- // We could use `unescape` + `encodeURI` to minimize the code, but that would be slightly risky
3210
- // since `unescape` is deprecated.
3211
- urlEncodedMessage = encodeURI(message) + "%80", // trailing '1' bit padding
3212
-
3213
- // This can be changed to a preallocated Uint32Array array for greater performance and larger code size
3214
- data = [],
3215
- dataSize,
3216
-
3217
- hashBuffer = [],
3218
-
3219
- a = 0x67452301,
3220
- b = 0xefcdab89,
3221
- c = ~a,
3222
- d = ~b,
3223
- e = 0xc3d2e1f0,
3224
- hash = [a, b, c, d, e],
3225
-
3226
- blockStartIndex = 0,
3227
- hexHash = "";
3228
-
3229
- /**
3230
- * Rotates the value a specified number of bits to the left.
3231
- * @param {number} value Value to rotate
3232
- * @param {number} shift Bit count to shift.
3233
- */
3234
- function rotl(value, shift) {
3235
- return (value << shift) | (value >>> (32 - shift));
3236
- }
3237
-
3238
- // Message data
3239
- for ( ; i < urlEncodedMessage.length; f++) {
3240
- data[f >> 2] = data[f >> 2] |
3241
- (
3242
- (
3243
- urlEncodedMessage[i] == "%"
3244
- // Percent encoded byte
3245
- ? parseInt(urlEncodedMessage.substring(i + 1, i += 3), 16)
3246
- // Unencoded byte
3247
- : urlEncodedMessage.charCodeAt(i++)
3248
- )
3249
-
3250
- // Read bytes in reverse order (big endian words)
3251
- << ((3 - (f & 3)) * 8)
3252
- );
3253
- }
3254
-
3255
- // f is now the length of the utf8 encoded message
3256
- // 7 = 8 bytes (64 bit) for message size, -1 to round down
3257
- // >> 6 = integer division with block size
3258
- dataSize = (((f + 7) >> 6) + 1) * BLOCK_SIZE_WORDS;
3259
-
3260
- // Message size in bits.
3261
- // SHA1 uses a 64 bit integer to represent the size, but since we only support short messages only the least
3262
- // significant 32 bits are set. -8 is for the '1' bit padding byte.
3263
- data[dataSize - 1] = f * 8 - 8;
3264
-
3265
- // Compute hash
3266
- for ( ; blockStartIndex < dataSize; blockStartIndex += BLOCK_SIZE_WORDS) {
3267
- for (i = 0; i < 80; i++) {
3268
- f = rotl(a, 5) + e + (
3269
- // Ch
3270
- i < 20 ? ((b & c) ^ ((~b) & d)) + 0x5a827999 :
3271
-
3272
- // Parity
3273
- i < 40 ? (b ^ c ^ d) + 0x6ed9eba1 :
3274
-
3275
- // Maj
3276
- i < 60 ? ((b & c) ^ (b & d) ^ (c & d)) + 0x8f1bbcdc :
3277
-
3278
- // Parity
3279
- (b ^ c ^ d) + 0xca62c1d6
3280
- ) + (
3281
- hashBuffer[i] = i < BLOCK_SIZE_WORDS
3282
- // Bitwise OR is used to coerse `undefined` to 0
3283
- ? (data[blockStartIndex + i] | 0)
3284
- : rotl(hashBuffer[i - 3] ^ hashBuffer[i - 8] ^ hashBuffer[i - 14] ^ hashBuffer[i - 16], 1)
3285
- );
3286
-
3287
- e = d;
3288
- d = c;
3289
- c = rotl(b, 30);
3290
- b = a;
3291
- a = f;
3292
- }
3293
-
3294
- hash[0] = a = ((hash[0] + a) | 0);
3295
- hash[1] = b = ((hash[1] + b) | 0);
3296
- hash[2] = c = ((hash[2] + c) | 0);
3297
- hash[3] = d = ((hash[3] + d) | 0);
3298
- hash[4] = e = ((hash[4] + e) | 0);
3299
- }
3300
-
3301
- // Format hex hash
3302
- for (i = 0; i < HASH_SIZE_HALF_BYTES; i++) {
3303
- hexHash += (
3304
- (
3305
- // Get word (2^3 half-bytes per word)
3306
- hash[i >> 3] >>>
3307
-
3308
- // Append half-bytes in reverse order
3309
- ((7 - (i & 7)) * 4)
3310
- )
3311
- // Clamp to half-byte
3312
- & 0xf
3313
- ).toString(16);
3314
- }
3315
-
3316
- return hexHash;
3317
- }
3318
-
3319
- /**
3320
- * Inputs a value that might be a valid hash string for Jdenticon and returns it
3321
- * if it is determined valid, otherwise a falsy value is returned.
3322
- */
3323
- function isValidHash(hashCandidate) {
3324
- return /^[0-9a-f]{11,}$/i.test(hashCandidate) && hashCandidate;
3325
- }
3326
-
3327
- /**
3328
- * Computes a hash for the specified value. Currently SHA1 is used. This function
3329
- * always returns a valid hash.
3330
- */
3331
- function computeHash(value) {
3332
- return sha1(value == null ? "" : "" + value);
3333
- }
3334
-
3335
-
3336
-
3337
- /**
3338
- * Renderer redirecting drawing commands to a canvas context.
3339
- * @implements {Renderer}
3340
- */
3341
- function CanvasRenderer(ctx, iconSize) {
3342
- var canvas = ctx.canvas;
3343
- var width = canvas.width;
3344
- var height = canvas.height;
3345
-
3346
- ctx.save();
3347
-
3348
- if (!iconSize) {
3349
- iconSize = Math.min(width, height);
3350
-
3351
- ctx.translate(
3352
- ((width - iconSize) / 2) | 0,
3353
- ((height - iconSize) / 2) | 0);
3354
- }
3355
-
3356
- /**
3357
- * @private
3358
- */
3359
- this.l/*_ctx*/ = ctx;
3360
- this.k/*iconSize*/ = iconSize;
3361
-
3362
- ctx.clearRect(0, 0, iconSize, iconSize);
3363
- }
3364
- var CanvasRenderer__prototype = CanvasRenderer.prototype;
3365
-
3366
- /**
3367
- * Fills the background with the specified color.
3368
- * @param {string} fillColor Fill color on the format #rrggbb[aa].
3369
- */
3370
- CanvasRenderer__prototype.m/*setBackground*/ = function setBackground (fillColor) {
3371
- var ctx = this.l/*_ctx*/;
3372
- var iconSize = this.k/*iconSize*/;
3373
-
3374
- ctx.fillStyle = toCss3Color(fillColor);
3375
- ctx.fillRect(0, 0, iconSize, iconSize);
3376
- };
3377
-
3378
- /**
3379
- * Marks the beginning of a new shape of the specified color. Should be ended with a call to endShape.
3380
- * @param {string} fillColor Fill color on format #rrggbb[aa].
3381
- */
3382
- CanvasRenderer__prototype.M/*beginShape*/ = function beginShape (fillColor) {
3383
- var ctx = this.l/*_ctx*/;
3384
- ctx.fillStyle = toCss3Color(fillColor);
3385
- ctx.beginPath();
3386
- };
3387
-
3388
- /**
3389
- * Marks the end of the currently drawn shape. This causes the queued paths to be rendered on the canvas.
3390
- */
3391
- CanvasRenderer__prototype.N/*endShape*/ = function endShape () {
3392
- this.l/*_ctx*/.fill();
3393
- };
3394
-
3395
- /**
3396
- * Adds a polygon to the rendering queue.
3397
- * @param points An array of Point objects.
3398
- */
3399
- CanvasRenderer__prototype.g/*addPolygon*/ = function addPolygon (points) {
3400
- var ctx = this.l/*_ctx*/;
3401
- ctx.moveTo(points[0].x, points[0].y);
3402
- for (var i = 1; i < points.length; i++) {
3403
- ctx.lineTo(points[i].x, points[i].y);
3404
- }
3405
- ctx.closePath();
3406
- };
3407
-
3408
- /**
3409
- * Adds a circle to the rendering queue.
3410
- * @param {Point} point The upper left corner of the circle bounding box.
3411
- * @param {number} diameter The diameter of the circle.
3412
- * @param {boolean} counterClockwise True if the circle is drawn counter-clockwise (will result in a hole if rendered on a clockwise path).
3413
- */
3414
- CanvasRenderer__prototype.h/*addCircle*/ = function addCircle (point, diameter, counterClockwise) {
3415
- var ctx = this.l/*_ctx*/,
3416
- radius = diameter / 2;
3417
- ctx.moveTo(point.x + radius, point.y + radius);
3418
- ctx.arc(point.x + radius, point.y + radius, radius, 0, Math.PI * 2, counterClockwise);
3419
- ctx.closePath();
3420
- };
3421
-
3422
- /**
3423
- * Called when the icon has been completely drawn.
3424
- */
3425
- CanvasRenderer__prototype.finish = function finish () {
3426
- this.l/*_ctx*/.restore();
3427
- };
3428
-
3429
- var ICON_TYPE_SVG = 1;
3430
-
3431
- var ICON_TYPE_CANVAS = 2;
3432
-
3433
- var ATTRIBUTES = {
3434
- O/*HASH*/: "data-jdenticon-hash",
3435
- v/*VALUE*/: "data-jdenticon-value"
3436
- };
3437
-
3438
- var IS_RENDERED_PROPERTY = "jdenticonRendered";
3439
-
3440
- var ICON_SELECTOR = "[" + ATTRIBUTES.O/*HASH*/ +"],[" + ATTRIBUTES.v/*VALUE*/ +"]";
3441
-
3442
- var documentQuerySelectorAll = /** @type {!Function} */ (
3443
- typeof document !== "undefined" && document.querySelectorAll.bind(document));
3444
-
3445
- function getIdenticonType(el) {
3446
- if (el) {
3447
- var tagName = el["tagName"];
3448
-
3449
- if (/^svg$/i.test(tagName)) {
3450
- return ICON_TYPE_SVG;
3451
- }
3452
-
3453
- if (/^canvas$/i.test(tagName) && "getContext" in el) {
3454
- return ICON_TYPE_CANVAS;
3455
- }
3456
- }
3457
- }
3458
-
3459
- /**
3460
- * Draws an identicon to a context.
3461
- * @param {CanvasRenderingContext2D} ctx - Canvas context on which the icon will be drawn at location (0, 0).
3462
- * @param {*} hashOrValue - A hexadecimal hash string or any value that will be hashed by Jdenticon.
3463
- * @param {number} size - Icon size in pixels.
3464
- * @param {Object|number=} config - Optional configuration. If specified, this configuration object overrides any
3465
- * global configuration in its entirety. For backward compatibility a padding value in the range [0.0, 0.5) can be
3466
- * specified in place of a configuration object.
3467
- */
3468
- function drawIcon(ctx, hashOrValue, size, config) {
3469
- if (!ctx) {
3470
- throw new Error("No canvas specified.");
3471
- }
3472
-
3473
- iconGenerator(new CanvasRenderer(ctx, size),
3474
- isValidHash(hashOrValue) || computeHash(hashOrValue),
3475
- config);
3476
-
3477
- var canvas = ctx.canvas;
3478
- if (canvas) {
3479
- canvas[IS_RENDERED_PROPERTY] = true;
3480
- }
3481
- }
3482
-
3483
- /**
3484
- * Prepares a measure to be used as a measure in an SVG path, by
3485
- * rounding the measure to a single decimal. This reduces the file
3486
- * size of the generated SVG with more than 50% in some cases.
3487
- */
3488
- function svgValue(value) {
3489
- return ((value * 10 + 0.5) | 0) / 10;
3490
- }
3491
-
3492
- /**
3493
- * Represents an SVG path element.
3494
- */
3495
- function SvgPath() {
3496
- /**
3497
- * This property holds the data string (path.d) of the SVG path.
3498
- * @type {string}
3499
- */
3500
- this.A/*dataString*/ = "";
3501
- }
3502
- var SvgPath__prototype = SvgPath.prototype;
3503
-
3504
- /**
3505
- * Adds a polygon with the current fill color to the SVG path.
3506
- * @param points An array of Point objects.
3507
- */
3508
- SvgPath__prototype.g/*addPolygon*/ = function addPolygon (points) {
3509
- var dataString = "";
3510
- for (var i = 0; i < points.length; i++) {
3511
- dataString += (i ? "L" : "M") + svgValue(points[i].x) + " " + svgValue(points[i].y);
3512
- }
3513
- this.A/*dataString*/ += dataString + "Z";
3514
- };
3515
-
3516
- /**
3517
- * Adds a circle with the current fill color to the SVG path.
3518
- * @param {Point} point The upper left corner of the circle bounding box.
3519
- * @param {number} diameter The diameter of the circle.
3520
- * @param {boolean} counterClockwise True if the circle is drawn counter-clockwise (will result in a hole if rendered on a clockwise path).
3521
- */
3522
- SvgPath__prototype.h/*addCircle*/ = function addCircle (point, diameter, counterClockwise) {
3523
- var sweepFlag = counterClockwise ? 0 : 1,
3524
- svgRadius = svgValue(diameter / 2),
3525
- svgDiameter = svgValue(diameter),
3526
- svgArc = "a" + svgRadius + "," + svgRadius + " 0 1," + sweepFlag + " ";
3527
-
3528
- this.A/*dataString*/ +=
3529
- "M" + svgValue(point.x) + " " + svgValue(point.y + diameter / 2) +
3530
- svgArc + svgDiameter + ",0" +
3531
- svgArc + (-svgDiameter) + ",0";
3532
- };
3533
-
3534
-
3535
-
3536
- /**
3537
- * Renderer producing SVG output.
3538
- * @implements {Renderer}
3539
- */
3540
- function SvgRenderer(target) {
3541
-
3542
- /**
3543
- * @type {Object.<string,SvgPath>}
3544
- * @private
3545
- */
3546
- this.C/*_pathsByColor*/ = { };
3547
-
3548
- /**
3549
- * @type {SvgElement|SvgWriter}
3550
- * @private
3551
- */
3552
- this.P/*_target*/ = target;
3553
-
3554
- /**
3555
- * @type {number}
3556
- */
3557
- this.k/*iconSize*/ = target.k/*iconSize*/;
3558
- }
3559
- var SvgRenderer__prototype = SvgRenderer.prototype;
3560
-
3561
- /**
3562
- * Fills the background with the specified color.
3563
- * @param {string} fillColor Fill color on the format #rrggbb[aa].
3564
- */
3565
- SvgRenderer__prototype.m/*setBackground*/ = function setBackground (fillColor) {
3566
- var match = /^(#......)(..)?/.exec(fillColor),
3567
- opacity = match[2] ? parseHex(match[2], 0) / 255 : 1;
3568
- this.P/*_target*/.m/*setBackground*/(match[1], opacity);
3569
- };
3570
-
3571
- /**
3572
- * Marks the beginning of a new shape of the specified color. Should be ended with a call to endShape.
3573
- * @param {string} color Fill color on format #xxxxxx.
3574
- */
3575
- SvgRenderer__prototype.M/*beginShape*/ = function beginShape (color) {
3576
- this.B/*_path*/ = this.C/*_pathsByColor*/[color] || (this.C/*_pathsByColor*/[color] = new SvgPath());
3577
- };
3578
-
3579
- /**
3580
- * Marks the end of the currently drawn shape.
3581
- */
3582
- SvgRenderer__prototype.N/*endShape*/ = function endShape () { };
3583
-
3584
- /**
3585
- * Adds a polygon with the current fill color to the SVG.
3586
- * @param points An array of Point objects.
3587
- */
3588
- SvgRenderer__prototype.g/*addPolygon*/ = function addPolygon (points) {
3589
- this.B/*_path*/.g/*addPolygon*/(points);
3590
- };
3591
-
3592
- /**
3593
- * Adds a circle with the current fill color to the SVG.
3594
- * @param {Point} point The upper left corner of the circle bounding box.
3595
- * @param {number} diameter The diameter of the circle.
3596
- * @param {boolean} counterClockwise True if the circle is drawn counter-clockwise (will result in a hole if rendered on a clockwise path).
3597
- */
3598
- SvgRenderer__prototype.h/*addCircle*/ = function addCircle (point, diameter, counterClockwise) {
3599
- this.B/*_path*/.h/*addCircle*/(point, diameter, counterClockwise);
3600
- };
3601
-
3602
- /**
3603
- * Called when the icon has been completely drawn.
3604
- */
3605
- SvgRenderer__prototype.finish = function finish () {
3606
- var this$1$1 = this;
3607
-
3608
- var pathsByColor = this.C/*_pathsByColor*/;
3609
- for (var color in pathsByColor) {
3610
- // hasOwnProperty cannot be shadowed in pathsByColor
3611
- // eslint-disable-next-line no-prototype-builtins
3612
- if (pathsByColor.hasOwnProperty(color)) {
3613
- this$1$1.P/*_target*/.R/*appendPath*/(color, pathsByColor[color].A/*dataString*/);
3614
- }
3615
- }
3616
- };
3617
-
3618
- var SVG_CONSTANTS = {
3619
- S/*XMLNS*/: "http://www.w3.org/2000/svg",
3620
- T/*WIDTH*/: "width",
3621
- U/*HEIGHT*/: "height",
3622
- };
3623
-
3624
- /**
3625
- * Renderer producing SVG output.
3626
- */
3627
- function SvgWriter(iconSize) {
3628
- /**
3629
- * @type {number}
3630
- */
3631
- this.k/*iconSize*/ = iconSize;
3632
-
3633
- /**
3634
- * @type {string}
3635
- * @private
3636
- */
3637
- this.D/*_s*/ =
3638
- '<svg xmlns="' + SVG_CONSTANTS.S/*XMLNS*/ + '" width="' +
3639
- iconSize + '" height="' + iconSize + '" viewBox="0 0 ' +
3640
- iconSize + ' ' + iconSize + '">';
3641
- }
3642
- var SvgWriter__prototype = SvgWriter.prototype;
3643
-
3644
- /**
3645
- * Fills the background with the specified color.
3646
- * @param {string} fillColor Fill color on the format #rrggbb.
3647
- * @param {number} opacity Opacity in the range [0.0, 1.0].
3648
- */
3649
- SvgWriter__prototype.m/*setBackground*/ = function setBackground (fillColor, opacity) {
3650
- if (opacity) {
3651
- this.D/*_s*/ += '<rect width="100%" height="100%" fill="' +
3652
- fillColor + '" opacity="' + opacity.toFixed(2) + '"/>';
3653
- }
3654
- };
3655
-
3656
- /**
3657
- * Writes a path to the SVG string.
3658
- * @param {string} color Fill color on format #rrggbb.
3659
- * @param {string} dataString The SVG path data string.
3660
- */
3661
- SvgWriter__prototype.R/*appendPath*/ = function appendPath (color, dataString) {
3662
- this.D/*_s*/ += '<path fill="' + color + '" d="' + dataString + '"/>';
3663
- };
3664
-
3665
- /**
3666
- * Gets the rendered image as an SVG string.
3667
- */
3668
- SvgWriter__prototype.toString = function toString () {
3669
- return this.D/*_s*/ + "</svg>";
3670
- };
3671
-
3672
- /**
3673
- * Draws an identicon as an SVG string.
3674
- * @param {*} hashOrValue - A hexadecimal hash string or any value that will be hashed by Jdenticon.
3675
- * @param {number} size - Icon size in pixels.
3676
- * @param {Object|number=} config - Optional configuration. If specified, this configuration object overrides any
3677
- * global configuration in its entirety. For backward compatibility a padding value in the range [0.0, 0.5) can be
3678
- * specified in place of a configuration object.
3679
- * @returns {string} SVG string
3680
- */
3681
- function toSvg(hashOrValue, size, config) {
3682
- var writer = new SvgWriter(size);
3683
- iconGenerator(new SvgRenderer(writer),
3684
- isValidHash(hashOrValue) || computeHash(hashOrValue),
3685
- config);
3686
- return writer.toString();
3687
- }
3688
-
3689
- /**
3690
- * Creates a new element and adds it to the specified parent.
3691
- * @param {Element} parentNode
3692
- * @param {string} name
3693
- * @param {...(string|number)} keyValuePairs
3694
- */
3695
- function SvgElement_append(parentNode, name) {
3696
- var keyValuePairs = [], len = arguments.length - 2;
3697
- while ( len-- > 0 ) keyValuePairs[ len ] = arguments[ len + 2 ];
3698
-
3699
- var el = document.createElementNS(SVG_CONSTANTS.S/*XMLNS*/, name);
3700
-
3701
- for (var i = 0; i + 1 < keyValuePairs.length; i += 2) {
3702
- el.setAttribute(
3703
- /** @type {string} */(keyValuePairs[i]),
3704
- /** @type {string} */(keyValuePairs[i + 1])
3705
- );
3706
- }
3707
-
3708
- parentNode.appendChild(el);
3709
- }
3710
-
3711
-
3712
- /**
3713
- * Renderer producing SVG output.
3714
- */
3715
- function SvgElement(element) {
3716
- // Don't use the clientWidth and clientHeight properties on SVG elements
3717
- // since Firefox won't serve a proper value of these properties on SVG
3718
- // elements (https://bugzilla.mozilla.org/show_bug.cgi?id=874811)
3719
- // Instead use 100px as a hardcoded size (the svg viewBox will rescale
3720
- // the icon to the correct dimensions)
3721
- var iconSize = this.k/*iconSize*/ = Math.min(
3722
- (Number(element.getAttribute(SVG_CONSTANTS.T/*WIDTH*/)) || 100),
3723
- (Number(element.getAttribute(SVG_CONSTANTS.U/*HEIGHT*/)) || 100)
3724
- );
3725
-
3726
- /**
3727
- * @type {Element}
3728
- * @private
3729
- */
3730
- this.V/*_el*/ = element;
3731
-
3732
- // Clear current SVG child elements
3733
- while (element.firstChild) {
3734
- element.removeChild(element.firstChild);
3735
- }
3736
-
3737
- // Set viewBox attribute to ensure the svg scales nicely.
3738
- element.setAttribute("viewBox", "0 0 " + iconSize + " " + iconSize);
3739
- element.setAttribute("preserveAspectRatio", "xMidYMid meet");
3740
- }
3741
- var SvgElement__prototype = SvgElement.prototype;
3742
-
3743
- /**
3744
- * Fills the background with the specified color.
3745
- * @param {string} fillColor Fill color on the format #rrggbb.
3746
- * @param {number} opacity Opacity in the range [0.0, 1.0].
3747
- */
3748
- SvgElement__prototype.m/*setBackground*/ = function setBackground (fillColor, opacity) {
3749
- if (opacity) {
3750
- SvgElement_append(this.V/*_el*/, "rect",
3751
- SVG_CONSTANTS.T/*WIDTH*/, "100%",
3752
- SVG_CONSTANTS.U/*HEIGHT*/, "100%",
3753
- "fill", fillColor,
3754
- "opacity", opacity);
3755
- }
3756
- };
3757
-
3758
- /**
3759
- * Appends a path to the SVG element.
3760
- * @param {string} color Fill color on format #xxxxxx.
3761
- * @param {string} dataString The SVG path data string.
3762
- */
3763
- SvgElement__prototype.R/*appendPath*/ = function appendPath (color, dataString) {
3764
- SvgElement_append(this.V/*_el*/, "path",
3765
- "fill", color,
3766
- "d", dataString);
3767
- };
3768
-
3769
- /**
3770
- * Updates all canvas elements with the `data-jdenticon-hash` or `data-jdenticon-value` attribute.
3771
- */
3772
- function updateAll() {
3773
- if (documentQuerySelectorAll) {
3774
- update(ICON_SELECTOR);
3775
- }
3776
- }
3777
-
3778
- /**
3779
- * Updates the identicon in the specified `<canvas>` or `<svg>` elements.
3780
- * @param {(string|Element)} el - Specifies the container in which the icon is rendered as a DOM element of the type
3781
- * `<svg>` or `<canvas>`, or a CSS selector to such an element.
3782
- * @param {*=} hashOrValue - Optional hash or value to be rendered. If not specified, the `data-jdenticon-hash` or
3783
- * `data-jdenticon-value` attribute will be evaluated.
3784
- * @param {Object|number=} config - Optional configuration. If specified, this configuration object overrides any
3785
- * global configuration in its entirety. For backward compability a padding value in the range [0.0, 0.5) can be
3786
- * specified in place of a configuration object.
3787
- */
3788
- function update(el, hashOrValue, config) {
3789
- renderDomElement(el, hashOrValue, config, function (el, iconType) {
3790
- if (iconType) {
3791
- return iconType == ICON_TYPE_SVG ?
3792
- new SvgRenderer(new SvgElement(el)) :
3793
- new CanvasRenderer(/** @type {HTMLCanvasElement} */(el).getContext("2d"));
3794
- }
3795
- });
3796
- }
3797
-
3798
- /**
3799
- * Updates the identicon in the specified `<canvas>` elements.
3800
- * @param {(string|Element)} el - Specifies the container in which the icon is rendered as a DOM element of the type
3801
- * `<canvas>`, or a CSS selector to such an element.
3802
- * @param {*=} hashOrValue - Optional hash or value to be rendered. If not specified, the `data-jdenticon-hash` or
3803
- * `data-jdenticon-value` attribute will be evaluated.
3804
- * @param {Object|number=} config - Optional configuration. If specified, this configuration object overrides any
3805
- * global configuration in its entirety. For backward compability a padding value in the range [0.0, 0.5) can be
3806
- * specified in place of a configuration object.
3807
- */
3808
- function updateCanvas(el, hashOrValue, config) {
3809
- renderDomElement(el, hashOrValue, config, function (el, iconType) {
3810
- if (iconType == ICON_TYPE_CANVAS) {
3811
- return new CanvasRenderer(/** @type {HTMLCanvasElement} */(el).getContext("2d"));
3812
- }
3813
- });
3814
- }
3815
-
3816
- /**
3817
- * Updates the identicon in the specified `<svg>` elements.
3818
- * @param {(string|Element)} el - Specifies the container in which the icon is rendered as a DOM element of the type
3819
- * `<svg>`, or a CSS selector to such an element.
3820
- * @param {*=} hashOrValue - Optional hash or value to be rendered. If not specified, the `data-jdenticon-hash` or
3821
- * `data-jdenticon-value` attribute will be evaluated.
3822
- * @param {Object|number=} config - Optional configuration. If specified, this configuration object overrides any
3823
- * global configuration in its entirety. For backward compability a padding value in the range [0.0, 0.5) can be
3824
- * specified in place of a configuration object.
3825
- */
3826
- function updateSvg(el, hashOrValue, config) {
3827
- renderDomElement(el, hashOrValue, config, function (el, iconType) {
3828
- if (iconType == ICON_TYPE_SVG) {
3829
- return new SvgRenderer(new SvgElement(el));
3830
- }
3831
- });
3832
- }
3833
-
3834
- /**
3835
- * Updates the identicon in the specified canvas or svg elements.
3836
- * @param {(string|Element)} el - Specifies the container in which the icon is rendered as a DOM element of the type
3837
- * `<svg>` or `<canvas>`, or a CSS selector to such an element.
3838
- * @param {*} hashOrValue - Optional hash or value to be rendered. If not specified, the `data-jdenticon-hash` or
3839
- * `data-jdenticon-value` attribute will be evaluated.
3840
- * @param {Object|number|undefined} config
3841
- * @param {function(Element,number):Renderer} rendererFactory - Factory function for creating an icon renderer.
3842
- */
3843
- function renderDomElement(el, hashOrValue, config, rendererFactory) {
3844
- if (typeof el === "string") {
3845
- if (documentQuerySelectorAll) {
3846
- var elements = documentQuerySelectorAll(el);
3847
- for (var i = 0; i < elements.length; i++) {
3848
- renderDomElement(elements[i], hashOrValue, config, rendererFactory);
3849
- }
3850
- }
3851
- return;
3852
- }
3853
-
3854
- // Hash selection. The result from getValidHash or computeHash is
3855
- // accepted as a valid hash.
3856
- var hash =
3857
- // 1. Explicit valid hash
3858
- isValidHash(hashOrValue) ||
3859
-
3860
- // 2. Explicit value (`!= null` catches both null and undefined)
3861
- hashOrValue != null && computeHash(hashOrValue) ||
3862
-
3863
- // 3. `data-jdenticon-hash` attribute
3864
- isValidHash(el.getAttribute(ATTRIBUTES.O/*HASH*/)) ||
3865
-
3866
- // 4. `data-jdenticon-value` attribute.
3867
- // We want to treat an empty attribute as an empty value.
3868
- // Some browsers return empty string even if the attribute
3869
- // is not specified, so use hasAttribute to determine if
3870
- // the attribute is specified.
3871
- el.hasAttribute(ATTRIBUTES.v/*VALUE*/) && computeHash(el.getAttribute(ATTRIBUTES.v/*VALUE*/));
3872
-
3873
- if (!hash) {
3874
- // No hash specified. Don't render an icon.
3875
- return;
3876
- }
3877
-
3878
- var renderer = rendererFactory(el, getIdenticonType(el));
3879
- if (renderer) {
3880
- // Draw icon
3881
- iconGenerator(renderer, hash, config);
3882
- el[IS_RENDERED_PROPERTY] = true;
3883
- }
3884
- }
3885
-
3886
- // This file is compiled to dist/jdenticon-module.js
3887
-
3888
- var jdenticon = updateAll;
3889
-
3890
- defineConfigProperty(jdenticon);
3891
-
3892
- // Export public API
3893
- jdenticon["configure"] = configure;
3894
- jdenticon["drawIcon"] = drawIcon;
3895
- jdenticon["toSvg"] = toSvg;
3896
- jdenticon["update"] = update;
3897
- jdenticon["updateCanvas"] = updateCanvas;
3898
- jdenticon["updateSvg"] = updateSvg;
3899
-
3900
- /**
3901
- * Specifies the version of the Jdenticon package in use.
3902
- * @type {string}
3903
- */
3904
- jdenticon["version"] = "3.3.0";
3905
-
3906
- /**
3907
- * Specifies which bundle of Jdenticon that is used.
3908
- * @type {string}
3909
- */
3910
- jdenticon["bundle"] = "browser-cjs";
3911
-
3912
- jdenticonModule = jdenticon;
3913
-
3914
- return jdenticonModule;
3915
- }
3916
-
3917
- var jdenticonModuleExports = requireJdenticonModule();
3918
-
3919
- const DEFAULT_CONFIG = {
3920
- keycloak: {
3921
- url: 'https://keycloak.ds2.icelab.cloud',
3922
- realm: 'ds2',
3923
- clientId: 'dashbtn'
3924
- },
3925
- defaultLink: { name: 'Portal', url: 'https://portal.ds2.icelab.cloud' },
3926
- menuViewType: 'grid',
3927
- cookieName: 'ZDZW_cookie',
3928
- menu: {
3929
- global: {
3930
- name: 'Applications',
3931
- links: []
3932
- },
3933
- local: {
3934
- name: 'Applications',
3935
- enableCustomLocalMenu: true,
3936
- links: []
3937
- }
3938
- },
3939
- loading: {
3940
- isLoading: true,
3941
- duration: 800
3942
- },
3943
- allowedGlobalDomain: '',
3944
- whitelistedUrls: ''
3945
- };
3946
- // Fetch config from API
3947
- class ConfigService {
3948
- constructor() {
3949
- this._config = DEFAULT_CONFIG;
3950
- }
3951
- static getInstance() {
3952
- if (!ConfigService.instance) {
3953
- ConfigService.instance = new ConfigService();
3954
- }
3955
- return ConfigService.instance;
3956
- }
3957
- async fetchConfig(portalApiUrl) {
3958
- try {
3959
- const res = await fetch(portalApiUrl + '/developer/dashbuttons/config');
3960
- if (!res.ok)
3961
- throw new Error('Failed to fetch config');
3962
- const data = await res.json();
3963
- this._config = Object.assign(Object.assign({}, DEFAULT_CONFIG), data); // Merge API data with defaults
3964
- }
3965
- catch (e) {
3966
- console.warn('Using default config due to API failure', e);
3967
- this._config = DEFAULT_CONFIG; // fallback to defaults
3968
- }
3969
- return this._config;
3970
- }
3971
- /**
3972
- * Return cached config without calling API
3973
- */
3974
- get config() {
3975
- return this._config;
3976
- }
3977
- }
3978
- const configService = ConfigService.getInstance();
3979
-
3980
- // const getRootDomain = (hostOrUrl: string): string => {
3981
- // // Ensure we can parse it with URL
3982
- // const url = hostOrUrl.startsWith("http") ? new URL(hostOrUrl) : new URL(`https://${hostOrUrl}`);
3983
- // const hostname = url.hostname;
3984
- // const port = url.port ? `:${url.port}` : "";
3985
- // const parts = hostname.split(".");
3986
- // // localhost → return with port
3987
- // if (hostname === "localhost") return hostname + port;
3988
- // // sslip.io → keep last 3 parts
3989
- // if (hostname.endsWith(".sslip.io")) return parts.slice(-5).join(".") + port;
3990
- // // Normal domains → remove first label
3991
- // return parts.slice(1).join(".") + port;
3992
- // };
3993
- const getRootDomain = (hostOrUrl) => {
3994
- const url = hostOrUrl.startsWith("http")
3995
- ? new URL(hostOrUrl)
3996
- : new URL(`https://${hostOrUrl}`);
3997
- const hostname = url.hostname;
3998
- const port = url.port ? `:${url.port}` : "";
3999
- const parts = hostname.split(".");
4000
- // localhost → return with port
4001
- if (hostname === "localhost")
4002
- return hostname + port;
4003
- // sslip.io → keep last 3 parts
4004
- if (hostname.endsWith(".sslip.io"))
4005
- return parts.slice(-5).join(".") + port;
4006
- // Keep full hostname
4007
- return hostname + port;
4008
- };
4009
- const getUrlProtocol = (url, defaultProtocol = "https://") => {
4010
- if (!url)
4011
- return defaultProtocol;
4012
- const trimmed = url.trim();
4013
- // Match protocol (http:// or https://)
4014
- const match = trimmed.match(/^(https?:\/\/)/i);
4015
- return match ? match[1] : defaultProtocol;
4016
- };
4017
- class MenuService {
4018
- async getMenuConfig(url) {
4019
- try {
4020
- const res = await fetch(url);
4021
- if (!res.ok)
4022
- throw new Error('API error');
4023
- return await res.json();
4024
- }
4025
- catch (_a) {
4026
- return { data: [], total: 0, page: 1, perPage: 0, totalPages: 0 };
4027
- }
4028
- }
4029
- setDefaultProtocol(url) {
4030
- // If protocol already exists (http:// or https://), keep it
4031
- if (/^https?:\/\//i.test(url)) {
4032
- return url;
4033
- }
4034
- // Otherwise default to https
4035
- return `https://${url}`;
4036
- }
4037
- async getMenuLinks(BASE_URL) {
4038
- const normalizedBaseUrl = this.setDefaultProtocol(BASE_URL);
4039
- // Create a URL object from normalizedBaseUrl
4040
- const urlObj = new URL(normalizedBaseUrl);
4041
- // Add the 'containerisationbackend' subdomain
4042
- urlObj.hostname = `containerisationbackend.${urlObj.hostname}`;
4043
- const { data } = await this.getMenuConfig(`${urlObj.origin}/developer/charts/installed`);
4044
- return data.map(d => {
4045
- var _a, _b, _c;
4046
- const frontendUrlPrefix = (_a = d.metadata) === null || _a === void 0 ? void 0 : _a.frontendUrlPrefix;
4047
- const rootDomain = getRootDomain(BASE_URL);
4048
- const generatedUrl = `${getUrlProtocol(BASE_URL)}${frontendUrlPrefix}.${rootDomain}`;
4049
- return {
4050
- name: d.installChartName,
4051
- url: frontendUrlPrefix ? generatedUrl : "",
4052
- category: (_c = (_b = d.metadata) === null || _b === void 0 ? void 0 : _b.category) !== null && _c !== void 0 ? _c : "",
4053
- };
4054
- });
4055
- }
4056
- }
4057
- const menuService = new MenuService();
4058
-
4059
- const dashButtonCss = () => `.fa{font-family:var(--fa-style-family,"Font Awesome 6 Free");font-weight:var(--fa-style,900)}.fa,.fa-brands,.fa-regular,.fa-solid,.fab,.far,.fas{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:var(--fa-display,inline-block);font-style:normal;font-variant:normal;line-height:1;text-rendering:auto}.fa-brands:before,.fa-regular:before,.fa-solid:before,.fa:before,.fab:before,.far:before,.fas:before{content:var(--fa)}.fa-classic,.fa-regular,.fa-solid,.far,.fas{font-family:"Font Awesome 6 Free"}.fa-brands,.fab{font-family:"Font Awesome 6 Brands"}.fa-1x{font-size:1em}.fa-2x{font-size:2em}.fa-3x{font-size:3em}.fa-4x{font-size:4em}.fa-5x{font-size:5em}.fa-6x{font-size:6em}.fa-7x{font-size:7em}.fa-8x{font-size:8em}.fa-9x{font-size:9em}.fa-10x{font-size:10em}.fa-2xs{font-size:.625em;line-height:.1em;vertical-align:.225em}.fa-xs{font-size:.75em;line-height:.08333em;vertical-align:.125em}.fa-sm{font-size:.875em;line-height:.07143em;vertical-align:.05357em}.fa-lg{font-size:1.25em;line-height:.05em;vertical-align:-.075em}.fa-xl{font-size:1.5em;line-height:.04167em;vertical-align:-.125em}.fa-2xl{font-size:2em;line-height:.03125em;vertical-align:-.1875em}.fa-fw{text-align:center;width:1.25em}.fa-ul{list-style-type:none;margin-left:var(--fa-li-margin,2.5em);padding-left:0}.fa-ul>li{position:relative}.fa-li{left:calc(var(--fa-li-width, 2em)*-1);position:absolute;text-align:center;width:var(--fa-li-width,2em);line-height:inherit}.fa-border{border-radius:var(--fa-border-radius,.1em);border:var(--fa-border-width,.08em) var(--fa-border-style,solid) var(--fa-border-color,#eee);padding:var(--fa-border-padding,.2em .25em .15em)}.fa-pull-left{float:left;margin-right:var(--fa-pull-margin,.3em)}.fa-pull-right{float:right;margin-left:var(--fa-pull-margin,.3em)}.fa-beat{animation-name:fa-beat;animation-delay:var(--fa-animation-delay,0s);animation-direction:var(--fa-animation-direction,normal);animation-duration:var(--fa-animation-duration,1s);animation-iteration-count:var(--fa-animation-iteration-count,infinite);animation-timing-function:var(--fa-animation-timing,ease-in-out)}.fa-bounce{animation-name:fa-bounce;animation-delay:var(--fa-animation-delay,0s);animation-direction:var(--fa-animation-direction,normal);animation-duration:var(--fa-animation-duration,1s);animation-iteration-count:var(--fa-animation-iteration-count,infinite);animation-timing-function:var(--fa-animation-timing,cubic-bezier(.28,.84,.42,1))}.fa-fade{animation-name:fa-fade;animation-iteration-count:var(--fa-animation-iteration-count,infinite);animation-timing-function:var(--fa-animation-timing,cubic-bezier(.4,0,.6,1))}.fa-beat-fade,.fa-fade{animation-delay:var(--fa-animation-delay,0s);animation-direction:var(--fa-animation-direction,normal);animation-duration:var(--fa-animation-duration,1s)}.fa-beat-fade{animation-name:fa-beat-fade;animation-iteration-count:var(--fa-animation-iteration-count,infinite);animation-timing-function:var(--fa-animation-timing,cubic-bezier(.4,0,.6,1))}.fa-flip{animation-name:fa-flip;animation-delay:var(--fa-animation-delay,0s);animation-direction:var(--fa-animation-direction,normal);animation-duration:var(--fa-animation-duration,1s);animation-iteration-count:var(--fa-animation-iteration-count,infinite);animation-timing-function:var(--fa-animation-timing,ease-in-out)}.fa-shake{animation-name:fa-shake;animation-duration:var(--fa-animation-duration,1s);animation-iteration-count:var(--fa-animation-iteration-count,infinite);animation-timing-function:var(--fa-animation-timing,linear)}.fa-shake,.fa-spin{animation-delay:var(--fa-animation-delay,0s);animation-direction:var(--fa-animation-direction,normal)}.fa-spin{animation-name:fa-spin;animation-duration:var(--fa-animation-duration,2s);animation-iteration-count:var(--fa-animation-iteration-count,infinite);animation-timing-function:var(--fa-animation-timing,linear)}.fa-spin-reverse{--fa-animation-direction:reverse}.fa-pulse,.fa-spin-pulse{animation-name:fa-spin;animation-direction:var(--fa-animation-direction,normal);animation-duration:var(--fa-animation-duration,1s);animation-iteration-count:var(--fa-animation-iteration-count,infinite);animation-timing-function:var(--fa-animation-timing,steps(8))}@media (prefers-reduced-motion:reduce){.fa-beat,.fa-beat-fade,.fa-bounce,.fa-fade,.fa-flip,.fa-pulse,.fa-shake,.fa-spin,.fa-spin-pulse{animation-delay:-1ms;animation-duration:1ms;animation-iteration-count:1;transition-delay:0s;transition-duration:0s}}@keyframes fa-beat{0%,90%{transform:scale(1)}45%{transform:scale(var(--fa-beat-scale,1.25))}}@keyframes fa-bounce{0%{transform:scale(1) translateY(0)}10%{transform:scale(var(--fa-bounce-start-scale-x,1.1),var(--fa-bounce-start-scale-y,.9)) translateY(0)}30%{transform:scale(var(--fa-bounce-jump-scale-x,.9),var(--fa-bounce-jump-scale-y,1.1)) translateY(var(--fa-bounce-height,-.5em))}50%{transform:scale(var(--fa-bounce-land-scale-x,1.05),var(--fa-bounce-land-scale-y,.95)) translateY(0)}57%{transform:scale(1) translateY(var(--fa-bounce-rebound,-.125em))}64%{transform:scale(1) translateY(0)}to{transform:scale(1) translateY(0)}}@keyframes fa-fade{50%{opacity:var(--fa-fade-opacity,.4)}}@keyframes fa-beat-fade{0%,to{opacity:var(--fa-beat-fade-opacity,.4);transform:scale(1)}50%{opacity:1;transform:scale(var(--fa-beat-fade-scale,1.125))}}@keyframes fa-flip{50%{transform:rotate3d(var(--fa-flip-x,0),var(--fa-flip-y,1),var(--fa-flip-z,0),var(--fa-flip-angle,-180deg))}}@keyframes fa-shake{0%{transform:rotate(-15deg)}4%{transform:rotate(15deg)}8%,24%{transform:rotate(-18deg)}12%,28%{transform:rotate(18deg)}16%{transform:rotate(-22deg)}20%{transform:rotate(22deg)}32%{transform:rotate(-12deg)}36%{transform:rotate(12deg)}40%,to{transform:rotate(0deg)}}@keyframes fa-spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}.fa-rotate-90{transform:rotate(90deg)}.fa-rotate-180{transform:rotate(180deg)}.fa-rotate-270{transform:rotate(270deg)}.fa-flip-horizontal{transform:scaleX(-1)}.fa-flip-vertical{transform:scaleY(-1)}.fa-flip-both,.fa-flip-horizontal.fa-flip-vertical{transform:scale(-1)}.fa-rotate-by{transform:rotate(var(--fa-rotate-angle,0))}.fa-stack{display:inline-block;height:2em;line-height:2em;position:relative;vertical-align:middle;width:2.5em}.fa-stack-1x,.fa-stack-2x{left:0;position:absolute;text-align:center;width:100%;z-index:var(--fa-stack-z-index,auto)}.fa-stack-1x{line-height:inherit}.fa-stack-2x{font-size:2em}.fa-inverse{color:var(--fa-inverse,#fff)}.fa-0{--fa:"\\30"}.fa-1{--fa:"\\31"}.fa-2{--fa:"\\32"}.fa-3{--fa:"\\33"}.fa-4{--fa:"\\34"}.fa-5{--fa:"\\35"}.fa-6{--fa:"\\36"}.fa-7{--fa:"\\37"}.fa-8{--fa:"\\38"}.fa-9{--fa:"\\39"}.fa-fill-drip{--fa:"\\f576"}.fa-arrows-to-circle{--fa:"\\e4bd"}.fa-chevron-circle-right,.fa-circle-chevron-right{--fa:"\\f138"}.fa-at{--fa:"\\40"}.fa-trash-alt,.fa-trash-can{--fa:"\\f2ed"}.fa-text-height{--fa:"\\f034"}.fa-user-times,.fa-user-xmark{--fa:"\\f235"}.fa-stethoscope{--fa:"\\f0f1"}.fa-comment-alt,.fa-message{--fa:"\\f27a"}.fa-info{--fa:"\\f129"}.fa-compress-alt,.fa-down-left-and-up-right-to-center{--fa:"\\f422"}.fa-explosion{--fa:"\\e4e9"}.fa-file-alt,.fa-file-lines,.fa-file-text{--fa:"\\f15c"}.fa-wave-square{--fa:"\\f83e"}.fa-ring{--fa:"\\f70b"}.fa-building-un{--fa:"\\e4d9"}.fa-dice-three{--fa:"\\f527"}.fa-calendar-alt,.fa-calendar-days{--fa:"\\f073"}.fa-anchor-circle-check{--fa:"\\e4aa"}.fa-building-circle-arrow-right{--fa:"\\e4d1"}.fa-volleyball,.fa-volleyball-ball{--fa:"\\f45f"}.fa-arrows-up-to-line{--fa:"\\e4c2"}.fa-sort-desc,.fa-sort-down{--fa:"\\f0dd"}.fa-circle-minus,.fa-minus-circle{--fa:"\\f056"}.fa-door-open{--fa:"\\f52b"}.fa-right-from-bracket,.fa-sign-out-alt{--fa:"\\f2f5"}.fa-atom{--fa:"\\f5d2"}.fa-soap{--fa:"\\e06e"}.fa-heart-music-camera-bolt,.fa-icons{--fa:"\\f86d"}.fa-microphone-alt-slash,.fa-microphone-lines-slash{--fa:"\\f539"}.fa-bridge-circle-check{--fa:"\\e4c9"}.fa-pump-medical{--fa:"\\e06a"}.fa-fingerprint{--fa:"\\f577"}.fa-hand-point-right{--fa:"\\f0a4"}.fa-magnifying-glass-location,.fa-search-location{--fa:"\\f689"}.fa-forward-step,.fa-step-forward{--fa:"\\f051"}.fa-face-smile-beam,.fa-smile-beam{--fa:"\\f5b8"}.fa-flag-checkered{--fa:"\\f11e"}.fa-football,.fa-football-ball{--fa:"\\f44e"}.fa-school-circle-exclamation{--fa:"\\e56c"}.fa-crop{--fa:"\\f125"}.fa-angle-double-down,.fa-angles-down{--fa:"\\f103"}.fa-users-rectangle{--fa:"\\e594"}.fa-people-roof{--fa:"\\e537"}.fa-people-line{--fa:"\\e534"}.fa-beer,.fa-beer-mug-empty{--fa:"\\f0fc"}.fa-diagram-predecessor{--fa:"\\e477"}.fa-arrow-up-long,.fa-long-arrow-up{--fa:"\\f176"}.fa-burn,.fa-fire-flame-simple{--fa:"\\f46a"}.fa-male,.fa-person{--fa:"\\f183"}.fa-laptop{--fa:"\\f109"}.fa-file-csv{--fa:"\\f6dd"}.fa-menorah{--fa:"\\f676"}.fa-truck-plane{--fa:"\\e58f"}.fa-record-vinyl{--fa:"\\f8d9"}.fa-face-grin-stars,.fa-grin-stars{--fa:"\\f587"}.fa-bong{--fa:"\\f55c"}.fa-pastafarianism,.fa-spaghetti-monster-flying{--fa:"\\f67b"}.fa-arrow-down-up-across-line{--fa:"\\e4af"}.fa-spoon,.fa-utensil-spoon{--fa:"\\f2e5"}.fa-jar-wheat{--fa:"\\e517"}.fa-envelopes-bulk,.fa-mail-bulk{--fa:"\\f674"}.fa-file-circle-exclamation{--fa:"\\e4eb"}.fa-circle-h,.fa-hospital-symbol{--fa:"\\f47e"}.fa-pager{--fa:"\\f815"}.fa-address-book,.fa-contact-book{--fa:"\\f2b9"}.fa-strikethrough{--fa:"\\f0cc"}.fa-k{--fa:"\\4b"}.fa-landmark-flag{--fa:"\\e51c"}.fa-pencil,.fa-pencil-alt{--fa:"\\f303"}.fa-backward{--fa:"\\f04a"}.fa-caret-right{--fa:"\\f0da"}.fa-comments{--fa:"\\f086"}.fa-file-clipboard,.fa-paste{--fa:"\\f0ea"}.fa-code-pull-request{--fa:"\\e13c"}.fa-clipboard-list{--fa:"\\f46d"}.fa-truck-loading,.fa-truck-ramp-box{--fa:"\\f4de"}.fa-user-check{--fa:"\\f4fc"}.fa-vial-virus{--fa:"\\e597"}.fa-sheet-plastic{--fa:"\\e571"}.fa-blog{--fa:"\\f781"}.fa-user-ninja{--fa:"\\f504"}.fa-person-arrow-up-from-line{--fa:"\\e539"}.fa-scroll-torah,.fa-torah{--fa:"\\f6a0"}.fa-broom-ball,.fa-quidditch,.fa-quidditch-broom-ball{--fa:"\\f458"}.fa-toggle-off{--fa:"\\f204"}.fa-archive,.fa-box-archive{--fa:"\\f187"}.fa-person-drowning{--fa:"\\e545"}.fa-arrow-down-9-1,.fa-sort-numeric-desc,.fa-sort-numeric-down-alt{--fa:"\\f886"}.fa-face-grin-tongue-squint,.fa-grin-tongue-squint{--fa:"\\f58a"}.fa-spray-can{--fa:"\\f5bd"}.fa-truck-monster{--fa:"\\f63b"}.fa-w{--fa:"\\57"}.fa-earth-africa,.fa-globe-africa{--fa:"\\f57c"}.fa-rainbow{--fa:"\\f75b"}.fa-circle-notch{--fa:"\\f1ce"}.fa-tablet-alt,.fa-tablet-screen-button{--fa:"\\f3fa"}.fa-paw{--fa:"\\f1b0"}.fa-cloud{--fa:"\\f0c2"}.fa-trowel-bricks{--fa:"\\e58a"}.fa-face-flushed,.fa-flushed{--fa:"\\f579"}.fa-hospital-user{--fa:"\\f80d"}.fa-tent-arrow-left-right{--fa:"\\e57f"}.fa-gavel,.fa-legal{--fa:"\\f0e3"}.fa-binoculars{--fa:"\\f1e5"}.fa-microphone-slash{--fa:"\\f131"}.fa-box-tissue{--fa:"\\e05b"}.fa-motorcycle{--fa:"\\f21c"}.fa-bell-concierge,.fa-concierge-bell{--fa:"\\f562"}.fa-pen-ruler,.fa-pencil-ruler{--fa:"\\f5ae"}.fa-people-arrows,.fa-people-arrows-left-right{--fa:"\\e068"}.fa-mars-and-venus-burst{--fa:"\\e523"}.fa-caret-square-right,.fa-square-caret-right{--fa:"\\f152"}.fa-cut,.fa-scissors{--fa:"\\f0c4"}.fa-sun-plant-wilt{--fa:"\\e57a"}.fa-toilets-portable{--fa:"\\e584"}.fa-hockey-puck{--fa:"\\f453"}.fa-table{--fa:"\\f0ce"}.fa-magnifying-glass-arrow-right{--fa:"\\e521"}.fa-digital-tachograph,.fa-tachograph-digital{--fa:"\\f566"}.fa-users-slash{--fa:"\\e073"}.fa-clover{--fa:"\\e139"}.fa-mail-reply,.fa-reply{--fa:"\\f3e5"}.fa-star-and-crescent{--fa:"\\f699"}.fa-house-fire{--fa:"\\e50c"}.fa-minus-square,.fa-square-minus{--fa:"\\f146"}.fa-helicopter{--fa:"\\f533"}.fa-compass{--fa:"\\f14e"}.fa-caret-square-down,.fa-square-caret-down{--fa:"\\f150"}.fa-file-circle-question{--fa:"\\e4ef"}.fa-laptop-code{--fa:"\\f5fc"}.fa-swatchbook{--fa:"\\f5c3"}.fa-prescription-bottle{--fa:"\\f485"}.fa-bars,.fa-navicon{--fa:"\\f0c9"}.fa-people-group{--fa:"\\e533"}.fa-hourglass-3,.fa-hourglass-end{--fa:"\\f253"}.fa-heart-broken,.fa-heart-crack{--fa:"\\f7a9"}.fa-external-link-square-alt,.fa-square-up-right{--fa:"\\f360"}.fa-face-kiss-beam,.fa-kiss-beam{--fa:"\\f597"}.fa-film{--fa:"\\f008"}.fa-ruler-horizontal{--fa:"\\f547"}.fa-people-robbery{--fa:"\\e536"}.fa-lightbulb{--fa:"\\f0eb"}.fa-caret-left{--fa:"\\f0d9"}.fa-circle-exclamation,.fa-exclamation-circle{--fa:"\\f06a"}.fa-school-circle-xmark{--fa:"\\e56d"}.fa-arrow-right-from-bracket,.fa-sign-out{--fa:"\\f08b"}.fa-chevron-circle-down,.fa-circle-chevron-down{--fa:"\\f13a"}.fa-unlock-alt,.fa-unlock-keyhole{--fa:"\\f13e"}.fa-cloud-showers-heavy{--fa:"\\f740"}.fa-headphones-alt,.fa-headphones-simple{--fa:"\\f58f"}.fa-sitemap{--fa:"\\f0e8"}.fa-circle-dollar-to-slot,.fa-donate{--fa:"\\f4b9"}.fa-memory{--fa:"\\f538"}.fa-road-spikes{--fa:"\\e568"}.fa-fire-burner{--fa:"\\e4f1"}.fa-flag{--fa:"\\f024"}.fa-hanukiah{--fa:"\\f6e6"}.fa-feather{--fa:"\\f52d"}.fa-volume-down,.fa-volume-low{--fa:"\\f027"}.fa-comment-slash{--fa:"\\f4b3"}.fa-cloud-sun-rain{--fa:"\\f743"}.fa-compress{--fa:"\\f066"}.fa-wheat-alt,.fa-wheat-awn{--fa:"\\e2cd"}.fa-ankh{--fa:"\\f644"}.fa-hands-holding-child{--fa:"\\e4fa"}.fa-asterisk{--fa:"\\2a"}.fa-check-square,.fa-square-check{--fa:"\\f14a"}.fa-peseta-sign{--fa:"\\e221"}.fa-header,.fa-heading{--fa:"\\f1dc"}.fa-ghost{--fa:"\\f6e2"}.fa-list,.fa-list-squares{--fa:"\\f03a"}.fa-phone-square-alt,.fa-square-phone-flip{--fa:"\\f87b"}.fa-cart-plus{--fa:"\\f217"}.fa-gamepad{--fa:"\\f11b"}.fa-circle-dot,.fa-dot-circle{--fa:"\\f192"}.fa-dizzy,.fa-face-dizzy{--fa:"\\f567"}.fa-egg{--fa:"\\f7fb"}.fa-house-medical-circle-xmark{--fa:"\\e513"}.fa-campground{--fa:"\\f6bb"}.fa-folder-plus{--fa:"\\f65e"}.fa-futbol,.fa-futbol-ball,.fa-soccer-ball{--fa:"\\f1e3"}.fa-paint-brush,.fa-paintbrush{--fa:"\\f1fc"}.fa-lock{--fa:"\\f023"}.fa-gas-pump{--fa:"\\f52f"}.fa-hot-tub,.fa-hot-tub-person{--fa:"\\f593"}.fa-map-location,.fa-map-marked{--fa:"\\f59f"}.fa-house-flood-water{--fa:"\\e50e"}.fa-tree{--fa:"\\f1bb"}.fa-bridge-lock{--fa:"\\e4cc"}.fa-sack-dollar{--fa:"\\f81d"}.fa-edit,.fa-pen-to-square{--fa:"\\f044"}.fa-car-side{--fa:"\\f5e4"}.fa-share-alt,.fa-share-nodes{--fa:"\\f1e0"}.fa-heart-circle-minus{--fa:"\\e4ff"}.fa-hourglass-2,.fa-hourglass-half{--fa:"\\f252"}.fa-microscope{--fa:"\\f610"}.fa-sink{--fa:"\\e06d"}.fa-bag-shopping,.fa-shopping-bag{--fa:"\\f290"}.fa-arrow-down-z-a,.fa-sort-alpha-desc,.fa-sort-alpha-down-alt{--fa:"\\f881"}.fa-mitten{--fa:"\\f7b5"}.fa-person-rays{--fa:"\\e54d"}.fa-users{--fa:"\\f0c0"}.fa-eye-slash{--fa:"\\f070"}.fa-flask-vial{--fa:"\\e4f3"}.fa-hand,.fa-hand-paper{--fa:"\\f256"}.fa-om{--fa:"\\f679"}.fa-worm{--fa:"\\e599"}.fa-house-circle-xmark{--fa:"\\e50b"}.fa-plug{--fa:"\\f1e6"}.fa-chevron-up{--fa:"\\f077"}.fa-hand-spock{--fa:"\\f259"}.fa-stopwatch{--fa:"\\f2f2"}.fa-face-kiss,.fa-kiss{--fa:"\\f596"}.fa-bridge-circle-xmark{--fa:"\\e4cb"}.fa-face-grin-tongue,.fa-grin-tongue{--fa:"\\f589"}.fa-chess-bishop{--fa:"\\f43a"}.fa-face-grin-wink,.fa-grin-wink{--fa:"\\f58c"}.fa-deaf,.fa-deafness,.fa-ear-deaf,.fa-hard-of-hearing{--fa:"\\f2a4"}.fa-road-circle-check{--fa:"\\e564"}.fa-dice-five{--fa:"\\f523"}.fa-rss-square,.fa-square-rss{--fa:"\\f143"}.fa-land-mine-on{--fa:"\\e51b"}.fa-i-cursor{--fa:"\\f246"}.fa-stamp{--fa:"\\f5bf"}.fa-stairs{--fa:"\\e289"}.fa-i{--fa:"\\49"}.fa-hryvnia,.fa-hryvnia-sign{--fa:"\\f6f2"}.fa-pills{--fa:"\\f484"}.fa-face-grin-wide,.fa-grin-alt{--fa:"\\f581"}.fa-tooth{--fa:"\\f5c9"}.fa-v{--fa:"\\56"}.fa-bangladeshi-taka-sign{--fa:"\\e2e6"}.fa-bicycle{--fa:"\\f206"}.fa-rod-asclepius,.fa-rod-snake,.fa-staff-aesculapius,.fa-staff-snake{--fa:"\\e579"}.fa-head-side-cough-slash{--fa:"\\e062"}.fa-ambulance,.fa-truck-medical{--fa:"\\f0f9"}.fa-wheat-awn-circle-exclamation{--fa:"\\e598"}.fa-snowman{--fa:"\\f7d0"}.fa-mortar-pestle{--fa:"\\f5a7"}.fa-road-barrier{--fa:"\\e562"}.fa-school{--fa:"\\f549"}.fa-igloo{--fa:"\\f7ae"}.fa-joint{--fa:"\\f595"}.fa-angle-right{--fa:"\\f105"}.fa-horse{--fa:"\\f6f0"}.fa-q{--fa:"\\51"}.fa-g{--fa:"\\47"}.fa-notes-medical{--fa:"\\f481"}.fa-temperature-2,.fa-temperature-half,.fa-thermometer-2,.fa-thermometer-half{--fa:"\\f2c9"}.fa-dong-sign{--fa:"\\e169"}.fa-capsules{--fa:"\\f46b"}.fa-poo-bolt,.fa-poo-storm{--fa:"\\f75a"}.fa-face-frown-open,.fa-frown-open{--fa:"\\f57a"}.fa-hand-point-up{--fa:"\\f0a6"}.fa-money-bill{--fa:"\\f0d6"}.fa-bookmark{--fa:"\\f02e"}.fa-align-justify{--fa:"\\f039"}.fa-umbrella-beach{--fa:"\\f5ca"}.fa-helmet-un{--fa:"\\e503"}.fa-bullseye{--fa:"\\f140"}.fa-bacon{--fa:"\\f7e5"}.fa-hand-point-down{--fa:"\\f0a7"}.fa-arrow-up-from-bracket{--fa:"\\e09a"}.fa-folder,.fa-folder-blank{--fa:"\\f07b"}.fa-file-medical-alt,.fa-file-waveform{--fa:"\\f478"}.fa-radiation{--fa:"\\f7b9"}.fa-chart-simple{--fa:"\\e473"}.fa-mars-stroke{--fa:"\\f229"}.fa-vial{--fa:"\\f492"}.fa-dashboard,.fa-gauge,.fa-gauge-med,.fa-tachometer-alt-average{--fa:"\\f624"}.fa-magic-wand-sparkles,.fa-wand-magic-sparkles{--fa:"\\e2ca"}.fa-e{--fa:"\\45"}.fa-pen-alt,.fa-pen-clip{--fa:"\\f305"}.fa-bridge-circle-exclamation{--fa:"\\e4ca"}.fa-user{--fa:"\\f007"}.fa-school-circle-check{--fa:"\\e56b"}.fa-dumpster{--fa:"\\f793"}.fa-shuttle-van,.fa-van-shuttle{--fa:"\\f5b6"}.fa-building-user{--fa:"\\e4da"}.fa-caret-square-left,.fa-square-caret-left{--fa:"\\f191"}.fa-highlighter{--fa:"\\f591"}.fa-key{--fa:"\\f084"}.fa-bullhorn{--fa:"\\f0a1"}.fa-globe{--fa:"\\f0ac"}.fa-synagogue{--fa:"\\f69b"}.fa-person-half-dress{--fa:"\\e548"}.fa-road-bridge{--fa:"\\e563"}.fa-location-arrow{--fa:"\\f124"}.fa-c{--fa:"\\43"}.fa-tablet-button{--fa:"\\f10a"}.fa-building-lock{--fa:"\\e4d6"}.fa-pizza-slice{--fa:"\\f818"}.fa-money-bill-wave{--fa:"\\f53a"}.fa-area-chart,.fa-chart-area{--fa:"\\f1fe"}.fa-house-flag{--fa:"\\e50d"}.fa-person-circle-minus{--fa:"\\e540"}.fa-ban,.fa-cancel{--fa:"\\f05e"}.fa-camera-rotate{--fa:"\\e0d8"}.fa-air-freshener,.fa-spray-can-sparkles{--fa:"\\f5d0"}.fa-star{--fa:"\\f005"}.fa-repeat{--fa:"\\f363"}.fa-cross{--fa:"\\f654"}.fa-box{--fa:"\\f466"}.fa-venus-mars{--fa:"\\f228"}.fa-arrow-pointer,.fa-mouse-pointer{--fa:"\\f245"}.fa-expand-arrows-alt,.fa-maximize{--fa:"\\f31e"}.fa-charging-station{--fa:"\\f5e7"}.fa-shapes,.fa-triangle-circle-square{--fa:"\\f61f"}.fa-random,.fa-shuffle{--fa:"\\f074"}.fa-person-running,.fa-running{--fa:"\\f70c"}.fa-mobile-retro{--fa:"\\e527"}.fa-grip-lines-vertical{--fa:"\\f7a5"}.fa-spider{--fa:"\\f717"}.fa-hands-bound{--fa:"\\e4f9"}.fa-file-invoice-dollar{--fa:"\\f571"}.fa-plane-circle-exclamation{--fa:"\\e556"}.fa-x-ray{--fa:"\\f497"}.fa-spell-check{--fa:"\\f891"}.fa-slash{--fa:"\\f715"}.fa-computer-mouse,.fa-mouse{--fa:"\\f8cc"}.fa-arrow-right-to-bracket,.fa-sign-in{--fa:"\\f090"}.fa-shop-slash,.fa-store-alt-slash{--fa:"\\e070"}.fa-server{--fa:"\\f233"}.fa-virus-covid-slash{--fa:"\\e4a9"}.fa-shop-lock{--fa:"\\e4a5"}.fa-hourglass-1,.fa-hourglass-start{--fa:"\\f251"}.fa-blender-phone{--fa:"\\f6b6"}.fa-building-wheat{--fa:"\\e4db"}.fa-person-breastfeeding{--fa:"\\e53a"}.fa-right-to-bracket,.fa-sign-in-alt{--fa:"\\f2f6"}.fa-venus{--fa:"\\f221"}.fa-passport{--fa:"\\f5ab"}.fa-thumb-tack-slash,.fa-thumbtack-slash{--fa:"\\e68f"}.fa-heart-pulse,.fa-heartbeat{--fa:"\\f21e"}.fa-people-carry,.fa-people-carry-box{--fa:"\\f4ce"}.fa-temperature-high{--fa:"\\f769"}.fa-microchip{--fa:"\\f2db"}.fa-crown{--fa:"\\f521"}.fa-weight-hanging{--fa:"\\f5cd"}.fa-xmarks-lines{--fa:"\\e59a"}.fa-file-prescription{--fa:"\\f572"}.fa-weight,.fa-weight-scale{--fa:"\\f496"}.fa-user-friends,.fa-user-group{--fa:"\\f500"}.fa-arrow-up-a-z,.fa-sort-alpha-up{--fa:"\\f15e"}.fa-chess-knight{--fa:"\\f441"}.fa-face-laugh-squint,.fa-laugh-squint{--fa:"\\f59b"}.fa-wheelchair{--fa:"\\f193"}.fa-arrow-circle-up,.fa-circle-arrow-up{--fa:"\\f0aa"}.fa-toggle-on{--fa:"\\f205"}.fa-person-walking,.fa-walking{--fa:"\\f554"}.fa-l{--fa:"\\4c"}.fa-fire{--fa:"\\f06d"}.fa-bed-pulse,.fa-procedures{--fa:"\\f487"}.fa-shuttle-space,.fa-space-shuttle{--fa:"\\f197"}.fa-face-laugh,.fa-laugh{--fa:"\\f599"}.fa-folder-open{--fa:"\\f07c"}.fa-heart-circle-plus{--fa:"\\e500"}.fa-code-fork{--fa:"\\e13b"}.fa-city{--fa:"\\f64f"}.fa-microphone-alt,.fa-microphone-lines{--fa:"\\f3c9"}.fa-pepper-hot{--fa:"\\f816"}.fa-unlock{--fa:"\\f09c"}.fa-colon-sign{--fa:"\\e140"}.fa-headset{--fa:"\\f590"}.fa-store-slash{--fa:"\\e071"}.fa-road-circle-xmark{--fa:"\\e566"}.fa-user-minus{--fa:"\\f503"}.fa-mars-stroke-up,.fa-mars-stroke-v{--fa:"\\f22a"}.fa-champagne-glasses,.fa-glass-cheers{--fa:"\\f79f"}.fa-clipboard{--fa:"\\f328"}.fa-house-circle-exclamation{--fa:"\\e50a"}.fa-file-arrow-up,.fa-file-upload{--fa:"\\f574"}.fa-wifi,.fa-wifi-3,.fa-wifi-strong{--fa:"\\f1eb"}.fa-bath,.fa-bathtub{--fa:"\\f2cd"}.fa-underline{--fa:"\\f0cd"}.fa-user-edit,.fa-user-pen{--fa:"\\f4ff"}.fa-signature{--fa:"\\f5b7"}.fa-stroopwafel{--fa:"\\f551"}.fa-bold{--fa:"\\f032"}.fa-anchor-lock{--fa:"\\e4ad"}.fa-building-ngo{--fa:"\\e4d7"}.fa-manat-sign{--fa:"\\e1d5"}.fa-not-equal{--fa:"\\f53e"}.fa-border-style,.fa-border-top-left{--fa:"\\f853"}.fa-map-location-dot,.fa-map-marked-alt{--fa:"\\f5a0"}.fa-jedi{--fa:"\\f669"}.fa-poll,.fa-square-poll-vertical{--fa:"\\f681"}.fa-mug-hot{--fa:"\\f7b6"}.fa-battery-car,.fa-car-battery{--fa:"\\f5df"}.fa-gift{--fa:"\\f06b"}.fa-dice-two{--fa:"\\f528"}.fa-chess-queen{--fa:"\\f445"}.fa-glasses{--fa:"\\f530"}.fa-chess-board{--fa:"\\f43c"}.fa-building-circle-check{--fa:"\\e4d2"}.fa-person-chalkboard{--fa:"\\e53d"}.fa-mars-stroke-h,.fa-mars-stroke-right{--fa:"\\f22b"}.fa-hand-back-fist,.fa-hand-rock{--fa:"\\f255"}.fa-caret-square-up,.fa-square-caret-up{--fa:"\\f151"}.fa-cloud-showers-water{--fa:"\\e4e4"}.fa-bar-chart,.fa-chart-bar{--fa:"\\f080"}.fa-hands-bubbles,.fa-hands-wash{--fa:"\\e05e"}.fa-less-than-equal{--fa:"\\f537"}.fa-train{--fa:"\\f238"}.fa-eye-low-vision,.fa-low-vision{--fa:"\\f2a8"}.fa-crow{--fa:"\\f520"}.fa-sailboat{--fa:"\\e445"}.fa-window-restore{--fa:"\\f2d2"}.fa-plus-square,.fa-square-plus{--fa:"\\f0fe"}.fa-torii-gate{--fa:"\\f6a1"}.fa-frog{--fa:"\\f52e"}.fa-bucket{--fa:"\\e4cf"}.fa-image{--fa:"\\f03e"}.fa-microphone{--fa:"\\f130"}.fa-cow{--fa:"\\f6c8"}.fa-caret-up{--fa:"\\f0d8"}.fa-screwdriver{--fa:"\\f54a"}.fa-folder-closed{--fa:"\\e185"}.fa-house-tsunami{--fa:"\\e515"}.fa-square-nfi{--fa:"\\e576"}.fa-arrow-up-from-ground-water{--fa:"\\e4b5"}.fa-glass-martini-alt,.fa-martini-glass{--fa:"\\f57b"}.fa-square-binary{--fa:"\\e69b"}.fa-rotate-back,.fa-rotate-backward,.fa-rotate-left,.fa-undo-alt{--fa:"\\f2ea"}.fa-columns,.fa-table-columns{--fa:"\\f0db"}.fa-lemon{--fa:"\\f094"}.fa-head-side-mask{--fa:"\\e063"}.fa-handshake{--fa:"\\f2b5"}.fa-gem{--fa:"\\f3a5"}.fa-dolly,.fa-dolly-box{--fa:"\\f472"}.fa-smoking{--fa:"\\f48d"}.fa-compress-arrows-alt,.fa-minimize{--fa:"\\f78c"}.fa-monument{--fa:"\\f5a6"}.fa-snowplow{--fa:"\\f7d2"}.fa-angle-double-right,.fa-angles-right{--fa:"\\f101"}.fa-cannabis{--fa:"\\f55f"}.fa-circle-play,.fa-play-circle{--fa:"\\f144"}.fa-tablets{--fa:"\\f490"}.fa-ethernet{--fa:"\\f796"}.fa-eur,.fa-euro,.fa-euro-sign{--fa:"\\f153"}.fa-chair{--fa:"\\f6c0"}.fa-check-circle,.fa-circle-check{--fa:"\\f058"}.fa-circle-stop,.fa-stop-circle{--fa:"\\f28d"}.fa-compass-drafting,.fa-drafting-compass{--fa:"\\f568"}.fa-plate-wheat{--fa:"\\e55a"}.fa-icicles{--fa:"\\f7ad"}.fa-person-shelter{--fa:"\\e54f"}.fa-neuter{--fa:"\\f22c"}.fa-id-badge{--fa:"\\f2c1"}.fa-marker{--fa:"\\f5a1"}.fa-face-laugh-beam,.fa-laugh-beam{--fa:"\\f59a"}.fa-helicopter-symbol{--fa:"\\e502"}.fa-universal-access{--fa:"\\f29a"}.fa-chevron-circle-up,.fa-circle-chevron-up{--fa:"\\f139"}.fa-lari-sign{--fa:"\\e1c8"}.fa-volcano{--fa:"\\f770"}.fa-person-walking-dashed-line-arrow-right{--fa:"\\e553"}.fa-gbp,.fa-pound-sign,.fa-sterling-sign{--fa:"\\f154"}.fa-viruses{--fa:"\\e076"}.fa-square-person-confined{--fa:"\\e577"}.fa-user-tie{--fa:"\\f508"}.fa-arrow-down-long,.fa-long-arrow-down{--fa:"\\f175"}.fa-tent-arrow-down-to-line{--fa:"\\e57e"}.fa-certificate{--fa:"\\f0a3"}.fa-mail-reply-all,.fa-reply-all{--fa:"\\f122"}.fa-suitcase{--fa:"\\f0f2"}.fa-person-skating,.fa-skating{--fa:"\\f7c5"}.fa-filter-circle-dollar,.fa-funnel-dollar{--fa:"\\f662"}.fa-camera-retro{--fa:"\\f083"}.fa-arrow-circle-down,.fa-circle-arrow-down{--fa:"\\f0ab"}.fa-arrow-right-to-file,.fa-file-import{--fa:"\\f56f"}.fa-external-link-square,.fa-square-arrow-up-right{--fa:"\\f14c"}.fa-box-open{--fa:"\\f49e"}.fa-scroll{--fa:"\\f70e"}.fa-spa{--fa:"\\f5bb"}.fa-location-pin-lock{--fa:"\\e51f"}.fa-pause{--fa:"\\f04c"}.fa-hill-avalanche{--fa:"\\e507"}.fa-temperature-0,.fa-temperature-empty,.fa-thermometer-0,.fa-thermometer-empty{--fa:"\\f2cb"}.fa-bomb{--fa:"\\f1e2"}.fa-registered{--fa:"\\f25d"}.fa-address-card,.fa-contact-card,.fa-vcard{--fa:"\\f2bb"}.fa-balance-scale-right,.fa-scale-unbalanced-flip{--fa:"\\f516"}.fa-subscript{--fa:"\\f12c"}.fa-diamond-turn-right,.fa-directions{--fa:"\\f5eb"}.fa-burst{--fa:"\\e4dc"}.fa-house-laptop,.fa-laptop-house{--fa:"\\e066"}.fa-face-tired,.fa-tired{--fa:"\\f5c8"}.fa-money-bills{--fa:"\\e1f3"}.fa-smog{--fa:"\\f75f"}.fa-crutch{--fa:"\\f7f7"}.fa-cloud-arrow-up,.fa-cloud-upload,.fa-cloud-upload-alt{--fa:"\\f0ee"}.fa-palette{--fa:"\\f53f"}.fa-arrows-turn-right{--fa:"\\e4c0"}.fa-vest{--fa:"\\e085"}.fa-ferry{--fa:"\\e4ea"}.fa-arrows-down-to-people{--fa:"\\e4b9"}.fa-seedling,.fa-sprout{--fa:"\\f4d8"}.fa-arrows-alt-h,.fa-left-right{--fa:"\\f337"}.fa-boxes-packing{--fa:"\\e4c7"}.fa-arrow-circle-left,.fa-circle-arrow-left{--fa:"\\f0a8"}.fa-group-arrows-rotate{--fa:"\\e4f6"}.fa-bowl-food{--fa:"\\e4c6"}.fa-candy-cane{--fa:"\\f786"}.fa-arrow-down-wide-short,.fa-sort-amount-asc,.fa-sort-amount-down{--fa:"\\f160"}.fa-cloud-bolt,.fa-thunderstorm{--fa:"\\f76c"}.fa-remove-format,.fa-text-slash{--fa:"\\f87d"}.fa-face-smile-wink,.fa-smile-wink{--fa:"\\f4da"}.fa-file-word{--fa:"\\f1c2"}.fa-file-powerpoint{--fa:"\\f1c4"}.fa-arrows-h,.fa-arrows-left-right{--fa:"\\f07e"}.fa-house-lock{--fa:"\\e510"}.fa-cloud-arrow-down,.fa-cloud-download,.fa-cloud-download-alt{--fa:"\\f0ed"}.fa-children{--fa:"\\e4e1"}.fa-blackboard,.fa-chalkboard{--fa:"\\f51b"}.fa-user-alt-slash,.fa-user-large-slash{--fa:"\\f4fa"}.fa-envelope-open{--fa:"\\f2b6"}.fa-handshake-alt-slash,.fa-handshake-simple-slash{--fa:"\\e05f"}.fa-mattress-pillow{--fa:"\\e525"}.fa-guarani-sign{--fa:"\\e19a"}.fa-arrows-rotate,.fa-refresh,.fa-sync{--fa:"\\f021"}.fa-fire-extinguisher{--fa:"\\f134"}.fa-cruzeiro-sign{--fa:"\\e152"}.fa-greater-than-equal{--fa:"\\f532"}.fa-shield-alt,.fa-shield-halved{--fa:"\\f3ed"}.fa-atlas,.fa-book-atlas{--fa:"\\f558"}.fa-virus{--fa:"\\e074"}.fa-envelope-circle-check{--fa:"\\e4e8"}.fa-layer-group{--fa:"\\f5fd"}.fa-arrows-to-dot{--fa:"\\e4be"}.fa-archway{--fa:"\\f557"}.fa-heart-circle-check{--fa:"\\e4fd"}.fa-house-chimney-crack,.fa-house-damage{--fa:"\\f6f1"}.fa-file-archive,.fa-file-zipper{--fa:"\\f1c6"}.fa-square{--fa:"\\f0c8"}.fa-glass-martini,.fa-martini-glass-empty{--fa:"\\f000"}.fa-couch{--fa:"\\f4b8"}.fa-cedi-sign{--fa:"\\e0df"}.fa-italic{--fa:"\\f033"}.fa-table-cells-column-lock{--fa:"\\e678"}.fa-church{--fa:"\\f51d"}.fa-comments-dollar{--fa:"\\f653"}.fa-democrat{--fa:"\\f747"}.fa-z{--fa:"\\5a"}.fa-person-skiing,.fa-skiing{--fa:"\\f7c9"}.fa-road-lock{--fa:"\\e567"}.fa-a{--fa:"\\41"}.fa-temperature-arrow-down,.fa-temperature-down{--fa:"\\e03f"}.fa-feather-alt,.fa-feather-pointed{--fa:"\\f56b"}.fa-p{--fa:"\\50"}.fa-snowflake{--fa:"\\f2dc"}.fa-newspaper{--fa:"\\f1ea"}.fa-ad,.fa-rectangle-ad{--fa:"\\f641"}.fa-arrow-circle-right,.fa-circle-arrow-right{--fa:"\\f0a9"}.fa-filter-circle-xmark{--fa:"\\e17b"}.fa-locust{--fa:"\\e520"}.fa-sort,.fa-unsorted{--fa:"\\f0dc"}.fa-list-1-2,.fa-list-numeric,.fa-list-ol{--fa:"\\f0cb"}.fa-person-dress-burst{--fa:"\\e544"}.fa-money-check-alt,.fa-money-check-dollar{--fa:"\\f53d"}.fa-vector-square{--fa:"\\f5cb"}.fa-bread-slice{--fa:"\\f7ec"}.fa-language{--fa:"\\f1ab"}.fa-face-kiss-wink-heart,.fa-kiss-wink-heart{--fa:"\\f598"}.fa-filter{--fa:"\\f0b0"}.fa-question{--fa:"\\3f"}.fa-file-signature{--fa:"\\f573"}.fa-arrows-alt,.fa-up-down-left-right{--fa:"\\f0b2"}.fa-house-chimney-user{--fa:"\\e065"}.fa-hand-holding-heart{--fa:"\\f4be"}.fa-puzzle-piece{--fa:"\\f12e"}.fa-money-check{--fa:"\\f53c"}.fa-star-half-alt,.fa-star-half-stroke{--fa:"\\f5c0"}.fa-code{--fa:"\\f121"}.fa-glass-whiskey,.fa-whiskey-glass{--fa:"\\f7a0"}.fa-building-circle-exclamation{--fa:"\\e4d3"}.fa-magnifying-glass-chart{--fa:"\\e522"}.fa-arrow-up-right-from-square,.fa-external-link{--fa:"\\f08e"}.fa-cubes-stacked{--fa:"\\e4e6"}.fa-krw,.fa-won,.fa-won-sign{--fa:"\\f159"}.fa-virus-covid{--fa:"\\e4a8"}.fa-austral-sign{--fa:"\\e0a9"}.fa-f{--fa:"\\46"}.fa-leaf{--fa:"\\f06c"}.fa-road{--fa:"\\f018"}.fa-cab,.fa-taxi{--fa:"\\f1ba"}.fa-person-circle-plus{--fa:"\\e541"}.fa-chart-pie,.fa-pie-chart{--fa:"\\f200"}.fa-bolt-lightning{--fa:"\\e0b7"}.fa-sack-xmark{--fa:"\\e56a"}.fa-file-excel{--fa:"\\f1c3"}.fa-file-contract{--fa:"\\f56c"}.fa-fish-fins{--fa:"\\e4f2"}.fa-building-flag{--fa:"\\e4d5"}.fa-face-grin-beam,.fa-grin-beam{--fa:"\\f582"}.fa-object-ungroup{--fa:"\\f248"}.fa-poop{--fa:"\\f619"}.fa-location-pin,.fa-map-marker{--fa:"\\f041"}.fa-kaaba{--fa:"\\f66b"}.fa-toilet-paper{--fa:"\\f71e"}.fa-hard-hat,.fa-hat-hard,.fa-helmet-safety{--fa:"\\f807"}.fa-eject{--fa:"\\f052"}.fa-arrow-alt-circle-right,.fa-circle-right{--fa:"\\f35a"}.fa-plane-circle-check{--fa:"\\e555"}.fa-face-rolling-eyes,.fa-meh-rolling-eyes{--fa:"\\f5a5"}.fa-object-group{--fa:"\\f247"}.fa-chart-line,.fa-line-chart{--fa:"\\f201"}.fa-mask-ventilator{--fa:"\\e524"}.fa-arrow-right{--fa:"\\f061"}.fa-map-signs,.fa-signs-post{--fa:"\\f277"}.fa-cash-register{--fa:"\\f788"}.fa-person-circle-question{--fa:"\\e542"}.fa-h{--fa:"\\48"}.fa-tarp{--fa:"\\e57b"}.fa-screwdriver-wrench,.fa-tools{--fa:"\\f7d9"}.fa-arrows-to-eye{--fa:"\\e4bf"}.fa-plug-circle-bolt{--fa:"\\e55b"}.fa-heart{--fa:"\\f004"}.fa-mars-and-venus{--fa:"\\f224"}.fa-home-user,.fa-house-user{--fa:"\\e1b0"}.fa-dumpster-fire{--fa:"\\f794"}.fa-house-crack{--fa:"\\e3b1"}.fa-cocktail,.fa-martini-glass-citrus{--fa:"\\f561"}.fa-face-surprise,.fa-surprise{--fa:"\\f5c2"}.fa-bottle-water{--fa:"\\e4c5"}.fa-circle-pause,.fa-pause-circle{--fa:"\\f28b"}.fa-toilet-paper-slash{--fa:"\\e072"}.fa-apple-alt,.fa-apple-whole{--fa:"\\f5d1"}.fa-kitchen-set{--fa:"\\e51a"}.fa-r{--fa:"\\52"}.fa-temperature-1,.fa-temperature-quarter,.fa-thermometer-1,.fa-thermometer-quarter{--fa:"\\f2ca"}.fa-cube{--fa:"\\f1b2"}.fa-bitcoin-sign{--fa:"\\e0b4"}.fa-shield-dog{--fa:"\\e573"}.fa-solar-panel{--fa:"\\f5ba"}.fa-lock-open{--fa:"\\f3c1"}.fa-elevator{--fa:"\\e16d"}.fa-money-bill-transfer{--fa:"\\e528"}.fa-money-bill-trend-up{--fa:"\\e529"}.fa-house-flood-water-circle-arrow-right{--fa:"\\e50f"}.fa-poll-h,.fa-square-poll-horizontal{--fa:"\\f682"}.fa-circle{--fa:"\\f111"}.fa-backward-fast,.fa-fast-backward{--fa:"\\f049"}.fa-recycle{--fa:"\\f1b8"}.fa-user-astronaut{--fa:"\\f4fb"}.fa-plane-slash{--fa:"\\e069"}.fa-trademark{--fa:"\\f25c"}.fa-basketball,.fa-basketball-ball{--fa:"\\f434"}.fa-satellite-dish{--fa:"\\f7c0"}.fa-arrow-alt-circle-up,.fa-circle-up{--fa:"\\f35b"}.fa-mobile-alt,.fa-mobile-screen-button{--fa:"\\f3cd"}.fa-volume-high,.fa-volume-up{--fa:"\\f028"}.fa-users-rays{--fa:"\\e593"}.fa-wallet{--fa:"\\f555"}.fa-clipboard-check{--fa:"\\f46c"}.fa-file-audio{--fa:"\\f1c7"}.fa-burger,.fa-hamburger{--fa:"\\f805"}.fa-wrench{--fa:"\\f0ad"}.fa-bugs{--fa:"\\e4d0"}.fa-rupee,.fa-rupee-sign{--fa:"\\f156"}.fa-file-image{--fa:"\\f1c5"}.fa-circle-question,.fa-question-circle{--fa:"\\f059"}.fa-plane-departure{--fa:"\\f5b0"}.fa-handshake-slash{--fa:"\\e060"}.fa-book-bookmark{--fa:"\\e0bb"}.fa-code-branch{--fa:"\\f126"}.fa-hat-cowboy{--fa:"\\f8c0"}.fa-bridge{--fa:"\\e4c8"}.fa-phone-alt,.fa-phone-flip{--fa:"\\f879"}.fa-truck-front{--fa:"\\e2b7"}.fa-cat{--fa:"\\f6be"}.fa-anchor-circle-exclamation{--fa:"\\e4ab"}.fa-truck-field{--fa:"\\e58d"}.fa-route{--fa:"\\f4d7"}.fa-clipboard-question{--fa:"\\e4e3"}.fa-panorama{--fa:"\\e209"}.fa-comment-medical{--fa:"\\f7f5"}.fa-teeth-open{--fa:"\\f62f"}.fa-file-circle-minus{--fa:"\\e4ed"}.fa-tags{--fa:"\\f02c"}.fa-wine-glass{--fa:"\\f4e3"}.fa-fast-forward,.fa-forward-fast{--fa:"\\f050"}.fa-face-meh-blank,.fa-meh-blank{--fa:"\\f5a4"}.fa-parking,.fa-square-parking{--fa:"\\f540"}.fa-house-signal{--fa:"\\e012"}.fa-bars-progress,.fa-tasks-alt{--fa:"\\f828"}.fa-faucet-drip{--fa:"\\e006"}.fa-cart-flatbed,.fa-dolly-flatbed{--fa:"\\f474"}.fa-ban-smoking,.fa-smoking-ban{--fa:"\\f54d"}.fa-terminal{--fa:"\\f120"}.fa-mobile-button{--fa:"\\f10b"}.fa-house-medical-flag{--fa:"\\e514"}.fa-basket-shopping,.fa-shopping-basket{--fa:"\\f291"}.fa-tape{--fa:"\\f4db"}.fa-bus-alt,.fa-bus-simple{--fa:"\\f55e"}.fa-eye{--fa:"\\f06e"}.fa-face-sad-cry,.fa-sad-cry{--fa:"\\f5b3"}.fa-audio-description{--fa:"\\f29e"}.fa-person-military-to-person{--fa:"\\e54c"}.fa-file-shield{--fa:"\\e4f0"}.fa-user-slash{--fa:"\\f506"}.fa-pen{--fa:"\\f304"}.fa-tower-observation{--fa:"\\e586"}.fa-file-code{--fa:"\\f1c9"}.fa-signal,.fa-signal-5,.fa-signal-perfect{--fa:"\\f012"}.fa-bus{--fa:"\\f207"}.fa-heart-circle-xmark{--fa:"\\e501"}.fa-home-lg,.fa-house-chimney{--fa:"\\e3af"}.fa-window-maximize{--fa:"\\f2d0"}.fa-face-frown,.fa-frown{--fa:"\\f119"}.fa-prescription{--fa:"\\f5b1"}.fa-shop,.fa-store-alt{--fa:"\\f54f"}.fa-floppy-disk,.fa-save{--fa:"\\f0c7"}.fa-vihara{--fa:"\\f6a7"}.fa-balance-scale-left,.fa-scale-unbalanced{--fa:"\\f515"}.fa-sort-asc,.fa-sort-up{--fa:"\\f0de"}.fa-comment-dots,.fa-commenting{--fa:"\\f4ad"}.fa-plant-wilt{--fa:"\\e5aa"}.fa-diamond{--fa:"\\f219"}.fa-face-grin-squint,.fa-grin-squint{--fa:"\\f585"}.fa-hand-holding-dollar,.fa-hand-holding-usd{--fa:"\\f4c0"}.fa-chart-diagram{--fa:"\\e695"}.fa-bacterium{--fa:"\\e05a"}.fa-hand-pointer{--fa:"\\f25a"}.fa-drum-steelpan{--fa:"\\f56a"}.fa-hand-scissors{--fa:"\\f257"}.fa-hands-praying,.fa-praying-hands{--fa:"\\f684"}.fa-arrow-right-rotate,.fa-arrow-rotate-forward,.fa-arrow-rotate-right,.fa-redo{--fa:"\\f01e"}.fa-biohazard{--fa:"\\f780"}.fa-location,.fa-location-crosshairs{--fa:"\\f601"}.fa-mars-double{--fa:"\\f227"}.fa-child-dress{--fa:"\\e59c"}.fa-users-between-lines{--fa:"\\e591"}.fa-lungs-virus{--fa:"\\e067"}.fa-face-grin-tears,.fa-grin-tears{--fa:"\\f588"}.fa-phone{--fa:"\\f095"}.fa-calendar-times,.fa-calendar-xmark{--fa:"\\f273"}.fa-child-reaching{--fa:"\\e59d"}.fa-head-side-virus{--fa:"\\e064"}.fa-user-cog,.fa-user-gear{--fa:"\\f4fe"}.fa-arrow-up-1-9,.fa-sort-numeric-up{--fa:"\\f163"}.fa-door-closed{--fa:"\\f52a"}.fa-shield-virus{--fa:"\\e06c"}.fa-dice-six{--fa:"\\f526"}.fa-mosquito-net{--fa:"\\e52c"}.fa-file-fragment{--fa:"\\e697"}.fa-bridge-water{--fa:"\\e4ce"}.fa-person-booth{--fa:"\\f756"}.fa-text-width{--fa:"\\f035"}.fa-hat-wizard{--fa:"\\f6e8"}.fa-pen-fancy{--fa:"\\f5ac"}.fa-digging,.fa-person-digging{--fa:"\\f85e"}.fa-trash{--fa:"\\f1f8"}.fa-gauge-simple,.fa-gauge-simple-med,.fa-tachometer-average{--fa:"\\f629"}.fa-book-medical{--fa:"\\f7e6"}.fa-poo{--fa:"\\f2fe"}.fa-quote-right,.fa-quote-right-alt{--fa:"\\f10e"}.fa-shirt,.fa-t-shirt,.fa-tshirt{--fa:"\\f553"}.fa-cubes{--fa:"\\f1b3"}.fa-divide{--fa:"\\f529"}.fa-tenge,.fa-tenge-sign{--fa:"\\f7d7"}.fa-headphones{--fa:"\\f025"}.fa-hands-holding{--fa:"\\f4c2"}.fa-hands-clapping{--fa:"\\e1a8"}.fa-republican{--fa:"\\f75e"}.fa-arrow-left{--fa:"\\f060"}.fa-person-circle-xmark{--fa:"\\e543"}.fa-ruler{--fa:"\\f545"}.fa-align-left{--fa:"\\f036"}.fa-dice-d6{--fa:"\\f6d1"}.fa-restroom{--fa:"\\f7bd"}.fa-j{--fa:"\\4a"}.fa-users-viewfinder{--fa:"\\e595"}.fa-file-video{--fa:"\\f1c8"}.fa-external-link-alt,.fa-up-right-from-square{--fa:"\\f35d"}.fa-table-cells,.fa-th{--fa:"\\f00a"}.fa-file-pdf{--fa:"\\f1c1"}.fa-bible,.fa-book-bible{--fa:"\\f647"}.fa-o{--fa:"\\4f"}.fa-medkit,.fa-suitcase-medical{--fa:"\\f0fa"}.fa-user-secret{--fa:"\\f21b"}.fa-otter{--fa:"\\f700"}.fa-female,.fa-person-dress{--fa:"\\f182"}.fa-comment-dollar{--fa:"\\f651"}.fa-briefcase-clock,.fa-business-time{--fa:"\\f64a"}.fa-table-cells-large,.fa-th-large{--fa:"\\f009"}.fa-book-tanakh,.fa-tanakh{--fa:"\\f827"}.fa-phone-volume,.fa-volume-control-phone{--fa:"\\f2a0"}.fa-hat-cowboy-side{--fa:"\\f8c1"}.fa-clipboard-user{--fa:"\\f7f3"}.fa-child{--fa:"\\f1ae"}.fa-lira-sign{--fa:"\\f195"}.fa-satellite{--fa:"\\f7bf"}.fa-plane-lock{--fa:"\\e558"}.fa-tag{--fa:"\\f02b"}.fa-comment{--fa:"\\f075"}.fa-birthday-cake,.fa-cake,.fa-cake-candles{--fa:"\\f1fd"}.fa-envelope{--fa:"\\f0e0"}.fa-angle-double-up,.fa-angles-up{--fa:"\\f102"}.fa-paperclip{--fa:"\\f0c6"}.fa-arrow-right-to-city{--fa:"\\e4b3"}.fa-ribbon{--fa:"\\f4d6"}.fa-lungs{--fa:"\\f604"}.fa-arrow-up-9-1,.fa-sort-numeric-up-alt{--fa:"\\f887"}.fa-litecoin-sign{--fa:"\\e1d3"}.fa-border-none{--fa:"\\f850"}.fa-circle-nodes{--fa:"\\e4e2"}.fa-parachute-box{--fa:"\\f4cd"}.fa-indent{--fa:"\\f03c"}.fa-truck-field-un{--fa:"\\e58e"}.fa-hourglass,.fa-hourglass-empty{--fa:"\\f254"}.fa-mountain{--fa:"\\f6fc"}.fa-user-doctor,.fa-user-md{--fa:"\\f0f0"}.fa-circle-info,.fa-info-circle{--fa:"\\f05a"}.fa-cloud-meatball{--fa:"\\f73b"}.fa-camera,.fa-camera-alt{--fa:"\\f030"}.fa-square-virus{--fa:"\\e578"}.fa-meteor{--fa:"\\f753"}.fa-car-on{--fa:"\\e4dd"}.fa-sleigh{--fa:"\\f7cc"}.fa-arrow-down-1-9,.fa-sort-numeric-asc,.fa-sort-numeric-down{--fa:"\\f162"}.fa-hand-holding-droplet,.fa-hand-holding-water{--fa:"\\f4c1"}.fa-water{--fa:"\\f773"}.fa-calendar-check{--fa:"\\f274"}.fa-braille{--fa:"\\f2a1"}.fa-prescription-bottle-alt,.fa-prescription-bottle-medical{--fa:"\\f486"}.fa-landmark{--fa:"\\f66f"}.fa-truck{--fa:"\\f0d1"}.fa-crosshairs{--fa:"\\f05b"}.fa-person-cane{--fa:"\\e53c"}.fa-tent{--fa:"\\e57d"}.fa-vest-patches{--fa:"\\e086"}.fa-check-double{--fa:"\\f560"}.fa-arrow-down-a-z,.fa-sort-alpha-asc,.fa-sort-alpha-down{--fa:"\\f15d"}.fa-money-bill-wheat{--fa:"\\e52a"}.fa-cookie{--fa:"\\f563"}.fa-arrow-left-rotate,.fa-arrow-rotate-back,.fa-arrow-rotate-backward,.fa-arrow-rotate-left,.fa-undo{--fa:"\\f0e2"}.fa-hard-drive,.fa-hdd{--fa:"\\f0a0"}.fa-face-grin-squint-tears,.fa-grin-squint-tears{--fa:"\\f586"}.fa-dumbbell{--fa:"\\f44b"}.fa-list-alt,.fa-rectangle-list{--fa:"\\f022"}.fa-tarp-droplet{--fa:"\\e57c"}.fa-house-medical-circle-check{--fa:"\\e511"}.fa-person-skiing-nordic,.fa-skiing-nordic{--fa:"\\f7ca"}.fa-calendar-plus{--fa:"\\f271"}.fa-plane-arrival{--fa:"\\f5af"}.fa-arrow-alt-circle-left,.fa-circle-left{--fa:"\\f359"}.fa-subway,.fa-train-subway{--fa:"\\f239"}.fa-chart-gantt{--fa:"\\e0e4"}.fa-indian-rupee,.fa-indian-rupee-sign,.fa-inr{--fa:"\\e1bc"}.fa-crop-alt,.fa-crop-simple{--fa:"\\f565"}.fa-money-bill-1,.fa-money-bill-alt{--fa:"\\f3d1"}.fa-left-long,.fa-long-arrow-alt-left{--fa:"\\f30a"}.fa-dna{--fa:"\\f471"}.fa-virus-slash{--fa:"\\e075"}.fa-minus,.fa-subtract{--fa:"\\f068"}.fa-chess{--fa:"\\f439"}.fa-arrow-left-long,.fa-long-arrow-left{--fa:"\\f177"}.fa-plug-circle-check{--fa:"\\e55c"}.fa-street-view{--fa:"\\f21d"}.fa-franc-sign{--fa:"\\e18f"}.fa-volume-off{--fa:"\\f026"}.fa-american-sign-language-interpreting,.fa-asl-interpreting,.fa-hands-american-sign-language-interpreting,.fa-hands-asl-interpreting{--fa:"\\f2a3"}.fa-cog,.fa-gear{--fa:"\\f013"}.fa-droplet-slash,.fa-tint-slash{--fa:"\\f5c7"}.fa-mosque{--fa:"\\f678"}.fa-mosquito{--fa:"\\e52b"}.fa-star-of-david{--fa:"\\f69a"}.fa-person-military-rifle{--fa:"\\e54b"}.fa-cart-shopping,.fa-shopping-cart{--fa:"\\f07a"}.fa-vials{--fa:"\\f493"}.fa-plug-circle-plus{--fa:"\\e55f"}.fa-place-of-worship{--fa:"\\f67f"}.fa-grip-vertical{--fa:"\\f58e"}.fa-hexagon-nodes{--fa:"\\e699"}.fa-arrow-turn-up,.fa-level-up{--fa:"\\f148"}.fa-u{--fa:"\\55"}.fa-square-root-alt,.fa-square-root-variable{--fa:"\\f698"}.fa-clock,.fa-clock-four{--fa:"\\f017"}.fa-backward-step,.fa-step-backward{--fa:"\\f048"}.fa-pallet{--fa:"\\f482"}.fa-faucet{--fa:"\\e005"}.fa-baseball-bat-ball{--fa:"\\f432"}.fa-s{--fa:"\\53"}.fa-timeline{--fa:"\\e29c"}.fa-keyboard{--fa:"\\f11c"}.fa-caret-down{--fa:"\\f0d7"}.fa-clinic-medical,.fa-house-chimney-medical{--fa:"\\f7f2"}.fa-temperature-3,.fa-temperature-three-quarters,.fa-thermometer-3,.fa-thermometer-three-quarters{--fa:"\\f2c8"}.fa-mobile-android-alt,.fa-mobile-screen{--fa:"\\f3cf"}.fa-plane-up{--fa:"\\e22d"}.fa-piggy-bank{--fa:"\\f4d3"}.fa-battery-3,.fa-battery-half{--fa:"\\f242"}.fa-mountain-city{--fa:"\\e52e"}.fa-coins{--fa:"\\f51e"}.fa-khanda{--fa:"\\f66d"}.fa-sliders,.fa-sliders-h{--fa:"\\f1de"}.fa-folder-tree{--fa:"\\f802"}.fa-network-wired{--fa:"\\f6ff"}.fa-map-pin{--fa:"\\f276"}.fa-hamsa{--fa:"\\f665"}.fa-cent-sign{--fa:"\\e3f5"}.fa-flask{--fa:"\\f0c3"}.fa-person-pregnant{--fa:"\\e31e"}.fa-wand-sparkles{--fa:"\\f72b"}.fa-ellipsis-v,.fa-ellipsis-vertical{--fa:"\\f142"}.fa-ticket{--fa:"\\f145"}.fa-power-off{--fa:"\\f011"}.fa-long-arrow-alt-right,.fa-right-long{--fa:"\\f30b"}.fa-flag-usa{--fa:"\\f74d"}.fa-laptop-file{--fa:"\\e51d"}.fa-teletype,.fa-tty{--fa:"\\f1e4"}.fa-diagram-next{--fa:"\\e476"}.fa-person-rifle{--fa:"\\e54e"}.fa-house-medical-circle-exclamation{--fa:"\\e512"}.fa-closed-captioning{--fa:"\\f20a"}.fa-hiking,.fa-person-hiking{--fa:"\\f6ec"}.fa-venus-double{--fa:"\\f226"}.fa-images{--fa:"\\f302"}.fa-calculator{--fa:"\\f1ec"}.fa-people-pulling{--fa:"\\e535"}.fa-n{--fa:"\\4e"}.fa-cable-car,.fa-tram{--fa:"\\f7da"}.fa-cloud-rain{--fa:"\\f73d"}.fa-building-circle-xmark{--fa:"\\e4d4"}.fa-ship{--fa:"\\f21a"}.fa-arrows-down-to-line{--fa:"\\e4b8"}.fa-download{--fa:"\\f019"}.fa-face-grin,.fa-grin{--fa:"\\f580"}.fa-backspace,.fa-delete-left{--fa:"\\f55a"}.fa-eye-dropper,.fa-eye-dropper-empty,.fa-eyedropper{--fa:"\\f1fb"}.fa-file-circle-check{--fa:"\\e5a0"}.fa-forward{--fa:"\\f04e"}.fa-mobile,.fa-mobile-android,.fa-mobile-phone{--fa:"\\f3ce"}.fa-face-meh,.fa-meh{--fa:"\\f11a"}.fa-align-center{--fa:"\\f037"}.fa-book-dead,.fa-book-skull{--fa:"\\f6b7"}.fa-drivers-license,.fa-id-card{--fa:"\\f2c2"}.fa-dedent,.fa-outdent{--fa:"\\f03b"}.fa-heart-circle-exclamation{--fa:"\\e4fe"}.fa-home,.fa-home-alt,.fa-home-lg-alt,.fa-house{--fa:"\\f015"}.fa-calendar-week{--fa:"\\f784"}.fa-laptop-medical{--fa:"\\f812"}.fa-b{--fa:"\\42"}.fa-file-medical{--fa:"\\f477"}.fa-dice-one{--fa:"\\f525"}.fa-kiwi-bird{--fa:"\\f535"}.fa-arrow-right-arrow-left,.fa-exchange{--fa:"\\f0ec"}.fa-redo-alt,.fa-rotate-forward,.fa-rotate-right{--fa:"\\f2f9"}.fa-cutlery,.fa-utensils{--fa:"\\f2e7"}.fa-arrow-up-wide-short,.fa-sort-amount-up{--fa:"\\f161"}.fa-mill-sign{--fa:"\\e1ed"}.fa-bowl-rice{--fa:"\\e2eb"}.fa-skull{--fa:"\\f54c"}.fa-broadcast-tower,.fa-tower-broadcast{--fa:"\\f519"}.fa-truck-pickup{--fa:"\\f63c"}.fa-long-arrow-alt-up,.fa-up-long{--fa:"\\f30c"}.fa-stop{--fa:"\\f04d"}.fa-code-merge{--fa:"\\f387"}.fa-upload{--fa:"\\f093"}.fa-hurricane{--fa:"\\f751"}.fa-mound{--fa:"\\e52d"}.fa-toilet-portable{--fa:"\\e583"}.fa-compact-disc{--fa:"\\f51f"}.fa-file-arrow-down,.fa-file-download{--fa:"\\f56d"}.fa-caravan{--fa:"\\f8ff"}.fa-shield-cat{--fa:"\\e572"}.fa-bolt,.fa-zap{--fa:"\\f0e7"}.fa-glass-water{--fa:"\\e4f4"}.fa-oil-well{--fa:"\\e532"}.fa-vault{--fa:"\\e2c5"}.fa-mars{--fa:"\\f222"}.fa-toilet{--fa:"\\f7d8"}.fa-plane-circle-xmark{--fa:"\\e557"}.fa-cny,.fa-jpy,.fa-rmb,.fa-yen,.fa-yen-sign{--fa:"\\f157"}.fa-rouble,.fa-rub,.fa-ruble,.fa-ruble-sign{--fa:"\\f158"}.fa-sun{--fa:"\\f185"}.fa-guitar{--fa:"\\f7a6"}.fa-face-laugh-wink,.fa-laugh-wink{--fa:"\\f59c"}.fa-horse-head{--fa:"\\f7ab"}.fa-bore-hole{--fa:"\\e4c3"}.fa-industry{--fa:"\\f275"}.fa-arrow-alt-circle-down,.fa-circle-down{--fa:"\\f358"}.fa-arrows-turn-to-dots{--fa:"\\e4c1"}.fa-florin-sign{--fa:"\\e184"}.fa-arrow-down-short-wide,.fa-sort-amount-desc,.fa-sort-amount-down-alt{--fa:"\\f884"}.fa-less-than{--fa:"\\3c"}.fa-angle-down{--fa:"\\f107"}.fa-car-tunnel{--fa:"\\e4de"}.fa-head-side-cough{--fa:"\\e061"}.fa-grip-lines{--fa:"\\f7a4"}.fa-thumbs-down{--fa:"\\f165"}.fa-user-lock{--fa:"\\f502"}.fa-arrow-right-long,.fa-long-arrow-right{--fa:"\\f178"}.fa-anchor-circle-xmark{--fa:"\\e4ac"}.fa-ellipsis,.fa-ellipsis-h{--fa:"\\f141"}.fa-chess-pawn{--fa:"\\f443"}.fa-first-aid,.fa-kit-medical{--fa:"\\f479"}.fa-person-through-window{--fa:"\\e5a9"}.fa-toolbox{--fa:"\\f552"}.fa-hands-holding-circle{--fa:"\\e4fb"}.fa-bug{--fa:"\\f188"}.fa-credit-card,.fa-credit-card-alt{--fa:"\\f09d"}.fa-automobile,.fa-car{--fa:"\\f1b9"}.fa-hand-holding-hand{--fa:"\\e4f7"}.fa-book-open-reader,.fa-book-reader{--fa:"\\f5da"}.fa-mountain-sun{--fa:"\\e52f"}.fa-arrows-left-right-to-line{--fa:"\\e4ba"}.fa-dice-d20{--fa:"\\f6cf"}.fa-truck-droplet{--fa:"\\e58c"}.fa-file-circle-xmark{--fa:"\\e5a1"}.fa-temperature-arrow-up,.fa-temperature-up{--fa:"\\e040"}.fa-medal{--fa:"\\f5a2"}.fa-bed{--fa:"\\f236"}.fa-h-square,.fa-square-h{--fa:"\\f0fd"}.fa-podcast{--fa:"\\f2ce"}.fa-temperature-4,.fa-temperature-full,.fa-thermometer-4,.fa-thermometer-full{--fa:"\\f2c7"}.fa-bell{--fa:"\\f0f3"}.fa-superscript{--fa:"\\f12b"}.fa-plug-circle-xmark{--fa:"\\e560"}.fa-star-of-life{--fa:"\\f621"}.fa-phone-slash{--fa:"\\f3dd"}.fa-paint-roller{--fa:"\\f5aa"}.fa-hands-helping,.fa-handshake-angle{--fa:"\\f4c4"}.fa-location-dot,.fa-map-marker-alt{--fa:"\\f3c5"}.fa-file{--fa:"\\f15b"}.fa-greater-than{--fa:"\\3e"}.fa-person-swimming,.fa-swimmer{--fa:"\\f5c4"}.fa-arrow-down{--fa:"\\f063"}.fa-droplet,.fa-tint{--fa:"\\f043"}.fa-eraser{--fa:"\\f12d"}.fa-earth,.fa-earth-america,.fa-earth-americas,.fa-globe-americas{--fa:"\\f57d"}.fa-person-burst{--fa:"\\e53b"}.fa-dove{--fa:"\\f4ba"}.fa-battery-0,.fa-battery-empty{--fa:"\\f244"}.fa-socks{--fa:"\\f696"}.fa-inbox{--fa:"\\f01c"}.fa-section{--fa:"\\e447"}.fa-gauge-high,.fa-tachometer-alt,.fa-tachometer-alt-fast{--fa:"\\f625"}.fa-envelope-open-text{--fa:"\\f658"}.fa-hospital,.fa-hospital-alt,.fa-hospital-wide{--fa:"\\f0f8"}.fa-wine-bottle{--fa:"\\f72f"}.fa-chess-rook{--fa:"\\f447"}.fa-bars-staggered,.fa-reorder,.fa-stream{--fa:"\\f550"}.fa-dharmachakra{--fa:"\\f655"}.fa-hotdog{--fa:"\\f80f"}.fa-blind,.fa-person-walking-with-cane{--fa:"\\f29d"}.fa-drum{--fa:"\\f569"}.fa-ice-cream{--fa:"\\f810"}.fa-heart-circle-bolt{--fa:"\\e4fc"}.fa-fax{--fa:"\\f1ac"}.fa-paragraph{--fa:"\\f1dd"}.fa-check-to-slot,.fa-vote-yea{--fa:"\\f772"}.fa-star-half{--fa:"\\f089"}.fa-boxes,.fa-boxes-alt,.fa-boxes-stacked{--fa:"\\f468"}.fa-chain,.fa-link{--fa:"\\f0c1"}.fa-assistive-listening-systems,.fa-ear-listen{--fa:"\\f2a2"}.fa-tree-city{--fa:"\\e587"}.fa-play{--fa:"\\f04b"}.fa-font{--fa:"\\f031"}.fa-table-cells-row-lock{--fa:"\\e67a"}.fa-rupiah-sign{--fa:"\\e23d"}.fa-magnifying-glass,.fa-search{--fa:"\\f002"}.fa-ping-pong-paddle-ball,.fa-table-tennis,.fa-table-tennis-paddle-ball{--fa:"\\f45d"}.fa-diagnoses,.fa-person-dots-from-line{--fa:"\\f470"}.fa-trash-can-arrow-up,.fa-trash-restore-alt{--fa:"\\f82a"}.fa-naira-sign{--fa:"\\e1f6"}.fa-cart-arrow-down{--fa:"\\f218"}.fa-walkie-talkie{--fa:"\\f8ef"}.fa-file-edit,.fa-file-pen{--fa:"\\f31c"}.fa-receipt{--fa:"\\f543"}.fa-pen-square,.fa-pencil-square,.fa-square-pen{--fa:"\\f14b"}.fa-suitcase-rolling{--fa:"\\f5c1"}.fa-person-circle-exclamation{--fa:"\\e53f"}.fa-chevron-down{--fa:"\\f078"}.fa-battery,.fa-battery-5,.fa-battery-full{--fa:"\\f240"}.fa-skull-crossbones{--fa:"\\f714"}.fa-code-compare{--fa:"\\e13a"}.fa-list-dots,.fa-list-ul{--fa:"\\f0ca"}.fa-school-lock{--fa:"\\e56f"}.fa-tower-cell{--fa:"\\e585"}.fa-down-long,.fa-long-arrow-alt-down{--fa:"\\f309"}.fa-ranking-star{--fa:"\\e561"}.fa-chess-king{--fa:"\\f43f"}.fa-person-harassing{--fa:"\\e549"}.fa-brazilian-real-sign{--fa:"\\e46c"}.fa-landmark-alt,.fa-landmark-dome{--fa:"\\f752"}.fa-arrow-up{--fa:"\\f062"}.fa-television,.fa-tv,.fa-tv-alt{--fa:"\\f26c"}.fa-shrimp{--fa:"\\e448"}.fa-list-check,.fa-tasks{--fa:"\\f0ae"}.fa-jug-detergent{--fa:"\\e519"}.fa-circle-user,.fa-user-circle{--fa:"\\f2bd"}.fa-user-shield{--fa:"\\f505"}.fa-wind{--fa:"\\f72e"}.fa-car-burst,.fa-car-crash{--fa:"\\f5e1"}.fa-y{--fa:"\\59"}.fa-person-snowboarding,.fa-snowboarding{--fa:"\\f7ce"}.fa-shipping-fast,.fa-truck-fast{--fa:"\\f48b"}.fa-fish{--fa:"\\f578"}.fa-user-graduate{--fa:"\\f501"}.fa-adjust,.fa-circle-half-stroke{--fa:"\\f042"}.fa-clapperboard{--fa:"\\e131"}.fa-circle-radiation,.fa-radiation-alt{--fa:"\\f7ba"}.fa-baseball,.fa-baseball-ball{--fa:"\\f433"}.fa-jet-fighter-up{--fa:"\\e518"}.fa-diagram-project,.fa-project-diagram{--fa:"\\f542"}.fa-copy{--fa:"\\f0c5"}.fa-volume-mute,.fa-volume-times,.fa-volume-xmark{--fa:"\\f6a9"}.fa-hand-sparkles{--fa:"\\e05d"}.fa-grip,.fa-grip-horizontal{--fa:"\\f58d"}.fa-share-from-square,.fa-share-square{--fa:"\\f14d"}.fa-child-combatant,.fa-child-rifle{--fa:"\\e4e0"}.fa-gun{--fa:"\\e19b"}.fa-phone-square,.fa-square-phone{--fa:"\\f098"}.fa-add,.fa-plus{--fa:"\\2b"}.fa-expand{--fa:"\\f065"}.fa-computer{--fa:"\\e4e5"}.fa-close,.fa-multiply,.fa-remove,.fa-times,.fa-xmark{--fa:"\\f00d"}.fa-arrows,.fa-arrows-up-down-left-right{--fa:"\\f047"}.fa-chalkboard-teacher,.fa-chalkboard-user{--fa:"\\f51c"}.fa-peso-sign{--fa:"\\e222"}.fa-building-shield{--fa:"\\e4d8"}.fa-baby{--fa:"\\f77c"}.fa-users-line{--fa:"\\e592"}.fa-quote-left,.fa-quote-left-alt{--fa:"\\f10d"}.fa-tractor{--fa:"\\f722"}.fa-trash-arrow-up,.fa-trash-restore{--fa:"\\f829"}.fa-arrow-down-up-lock{--fa:"\\e4b0"}.fa-lines-leaning{--fa:"\\e51e"}.fa-ruler-combined{--fa:"\\f546"}.fa-copyright{--fa:"\\f1f9"}.fa-equals{--fa:"\\3d"}.fa-blender{--fa:"\\f517"}.fa-teeth{--fa:"\\f62e"}.fa-ils,.fa-shekel,.fa-shekel-sign,.fa-sheqel,.fa-sheqel-sign{--fa:"\\f20b"}.fa-map{--fa:"\\f279"}.fa-rocket{--fa:"\\f135"}.fa-photo-film,.fa-photo-video{--fa:"\\f87c"}.fa-folder-minus{--fa:"\\f65d"}.fa-hexagon-nodes-bolt{--fa:"\\e69a"}.fa-store{--fa:"\\f54e"}.fa-arrow-trend-up{--fa:"\\e098"}.fa-plug-circle-minus{--fa:"\\e55e"}.fa-sign,.fa-sign-hanging{--fa:"\\f4d9"}.fa-bezier-curve{--fa:"\\f55b"}.fa-bell-slash{--fa:"\\f1f6"}.fa-tablet,.fa-tablet-android{--fa:"\\f3fb"}.fa-school-flag{--fa:"\\e56e"}.fa-fill{--fa:"\\f575"}.fa-angle-up{--fa:"\\f106"}.fa-drumstick-bite{--fa:"\\f6d7"}.fa-holly-berry{--fa:"\\f7aa"}.fa-chevron-left{--fa:"\\f053"}.fa-bacteria{--fa:"\\e059"}.fa-hand-lizard{--fa:"\\f258"}.fa-notdef{--fa:"\\e1fe"}.fa-disease{--fa:"\\f7fa"}.fa-briefcase-medical{--fa:"\\f469"}.fa-genderless{--fa:"\\f22d"}.fa-chevron-right{--fa:"\\f054"}.fa-retweet{--fa:"\\f079"}.fa-car-alt,.fa-car-rear{--fa:"\\f5de"}.fa-pump-soap{--fa:"\\e06b"}.fa-video-slash{--fa:"\\f4e2"}.fa-battery-2,.fa-battery-quarter{--fa:"\\f243"}.fa-radio{--fa:"\\f8d7"}.fa-baby-carriage,.fa-carriage-baby{--fa:"\\f77d"}.fa-traffic-light{--fa:"\\f637"}.fa-thermometer{--fa:"\\f491"}.fa-vr-cardboard{--fa:"\\f729"}.fa-hand-middle-finger{--fa:"\\f806"}.fa-percent,.fa-percentage{--fa:"\\25"}.fa-truck-moving{--fa:"\\f4df"}.fa-glass-water-droplet{--fa:"\\e4f5"}.fa-display{--fa:"\\e163"}.fa-face-smile,.fa-smile{--fa:"\\f118"}.fa-thumb-tack,.fa-thumbtack{--fa:"\\f08d"}.fa-trophy{--fa:"\\f091"}.fa-person-praying,.fa-pray{--fa:"\\f683"}.fa-hammer{--fa:"\\f6e3"}.fa-hand-peace{--fa:"\\f25b"}.fa-rotate,.fa-sync-alt{--fa:"\\f2f1"}.fa-spinner{--fa:"\\f110"}.fa-robot{--fa:"\\f544"}.fa-peace{--fa:"\\f67c"}.fa-cogs,.fa-gears{--fa:"\\f085"}.fa-warehouse{--fa:"\\f494"}.fa-arrow-up-right-dots{--fa:"\\e4b7"}.fa-splotch{--fa:"\\f5bc"}.fa-face-grin-hearts,.fa-grin-hearts{--fa:"\\f584"}.fa-dice-four{--fa:"\\f524"}.fa-sim-card{--fa:"\\f7c4"}.fa-transgender,.fa-transgender-alt{--fa:"\\f225"}.fa-mercury{--fa:"\\f223"}.fa-arrow-turn-down,.fa-level-down{--fa:"\\f149"}.fa-person-falling-burst{--fa:"\\e547"}.fa-award{--fa:"\\f559"}.fa-ticket-alt,.fa-ticket-simple{--fa:"\\f3ff"}.fa-building{--fa:"\\f1ad"}.fa-angle-double-left,.fa-angles-left{--fa:"\\f100"}.fa-qrcode{--fa:"\\f029"}.fa-clock-rotate-left,.fa-history{--fa:"\\f1da"}.fa-face-grin-beam-sweat,.fa-grin-beam-sweat{--fa:"\\f583"}.fa-arrow-right-from-file,.fa-file-export{--fa:"\\f56e"}.fa-shield,.fa-shield-blank{--fa:"\\f132"}.fa-arrow-up-short-wide,.fa-sort-amount-up-alt{--fa:"\\f885"}.fa-comment-nodes{--fa:"\\e696"}.fa-house-medical{--fa:"\\e3b2"}.fa-golf-ball,.fa-golf-ball-tee{--fa:"\\f450"}.fa-chevron-circle-left,.fa-circle-chevron-left{--fa:"\\f137"}.fa-house-chimney-window{--fa:"\\e00d"}.fa-pen-nib{--fa:"\\f5ad"}.fa-tent-arrow-turn-left{--fa:"\\e580"}.fa-tents{--fa:"\\e582"}.fa-magic,.fa-wand-magic{--fa:"\\f0d0"}.fa-dog{--fa:"\\f6d3"}.fa-carrot{--fa:"\\f787"}.fa-moon{--fa:"\\f186"}.fa-wine-glass-alt,.fa-wine-glass-empty{--fa:"\\f5ce"}.fa-cheese{--fa:"\\f7ef"}.fa-yin-yang{--fa:"\\f6ad"}.fa-music{--fa:"\\f001"}.fa-code-commit{--fa:"\\f386"}.fa-temperature-low{--fa:"\\f76b"}.fa-biking,.fa-person-biking{--fa:"\\f84a"}.fa-broom{--fa:"\\f51a"}.fa-shield-heart{--fa:"\\e574"}.fa-gopuram{--fa:"\\f664"}.fa-earth-oceania,.fa-globe-oceania{--fa:"\\e47b"}.fa-square-xmark,.fa-times-square,.fa-xmark-square{--fa:"\\f2d3"}.fa-hashtag{--fa:"\\23"}.fa-expand-alt,.fa-up-right-and-down-left-from-center{--fa:"\\f424"}.fa-oil-can{--fa:"\\f613"}.fa-t{--fa:"\\54"}.fa-hippo{--fa:"\\f6ed"}.fa-chart-column{--fa:"\\e0e3"}.fa-infinity{--fa:"\\f534"}.fa-vial-circle-check{--fa:"\\e596"}.fa-person-arrow-down-to-line{--fa:"\\e538"}.fa-voicemail{--fa:"\\f897"}.fa-fan{--fa:"\\f863"}.fa-person-walking-luggage{--fa:"\\e554"}.fa-arrows-alt-v,.fa-up-down{--fa:"\\f338"}.fa-cloud-moon-rain{--fa:"\\f73c"}.fa-calendar{--fa:"\\f133"}.fa-trailer{--fa:"\\e041"}.fa-bahai,.fa-haykal{--fa:"\\f666"}.fa-sd-card{--fa:"\\f7c2"}.fa-dragon{--fa:"\\f6d5"}.fa-shoe-prints{--fa:"\\f54b"}.fa-circle-plus,.fa-plus-circle{--fa:"\\f055"}.fa-face-grin-tongue-wink,.fa-grin-tongue-wink{--fa:"\\f58b"}.fa-hand-holding{--fa:"\\f4bd"}.fa-plug-circle-exclamation{--fa:"\\e55d"}.fa-chain-broken,.fa-chain-slash,.fa-link-slash,.fa-unlink{--fa:"\\f127"}.fa-clone{--fa:"\\f24d"}.fa-person-walking-arrow-loop-left{--fa:"\\e551"}.fa-arrow-up-z-a,.fa-sort-alpha-up-alt{--fa:"\\f882"}.fa-fire-alt,.fa-fire-flame-curved{--fa:"\\f7e4"}.fa-tornado{--fa:"\\f76f"}.fa-file-circle-plus{--fa:"\\e494"}.fa-book-quran,.fa-quran{--fa:"\\f687"}.fa-anchor{--fa:"\\f13d"}.fa-border-all{--fa:"\\f84c"}.fa-angry,.fa-face-angry{--fa:"\\f556"}.fa-cookie-bite{--fa:"\\f564"}.fa-arrow-trend-down{--fa:"\\e097"}.fa-feed,.fa-rss{--fa:"\\f09e"}.fa-draw-polygon{--fa:"\\f5ee"}.fa-balance-scale,.fa-scale-balanced{--fa:"\\f24e"}.fa-gauge-simple-high,.fa-tachometer,.fa-tachometer-fast{--fa:"\\f62a"}.fa-shower{--fa:"\\f2cc"}.fa-desktop,.fa-desktop-alt{--fa:"\\f390"}.fa-m{--fa:"\\4d"}.fa-table-list,.fa-th-list{--fa:"\\f00b"}.fa-comment-sms,.fa-sms{--fa:"\\f7cd"}.fa-book{--fa:"\\f02d"}.fa-user-plus{--fa:"\\f234"}.fa-check{--fa:"\\f00c"}.fa-battery-4,.fa-battery-three-quarters{--fa:"\\f241"}.fa-house-circle-check{--fa:"\\e509"}.fa-angle-left{--fa:"\\f104"}.fa-diagram-successor{--fa:"\\e47a"}.fa-truck-arrow-right{--fa:"\\e58b"}.fa-arrows-split-up-and-left{--fa:"\\e4bc"}.fa-fist-raised,.fa-hand-fist{--fa:"\\f6de"}.fa-cloud-moon{--fa:"\\f6c3"}.fa-briefcase{--fa:"\\f0b1"}.fa-person-falling{--fa:"\\e546"}.fa-image-portrait,.fa-portrait{--fa:"\\f3e0"}.fa-user-tag{--fa:"\\f507"}.fa-rug{--fa:"\\e569"}.fa-earth-europe,.fa-globe-europe{--fa:"\\f7a2"}.fa-cart-flatbed-suitcase,.fa-luggage-cart{--fa:"\\f59d"}.fa-rectangle-times,.fa-rectangle-xmark,.fa-times-rectangle,.fa-window-close{--fa:"\\f410"}.fa-baht-sign{--fa:"\\e0ac"}.fa-book-open{--fa:"\\f518"}.fa-book-journal-whills,.fa-journal-whills{--fa:"\\f66a"}.fa-handcuffs{--fa:"\\e4f8"}.fa-exclamation-triangle,.fa-triangle-exclamation,.fa-warning{--fa:"\\f071"}.fa-database{--fa:"\\f1c0"}.fa-mail-forward,.fa-share{--fa:"\\f064"}.fa-bottle-droplet{--fa:"\\e4c4"}.fa-mask-face{--fa:"\\e1d7"}.fa-hill-rockslide{--fa:"\\e508"}.fa-exchange-alt,.fa-right-left{--fa:"\\f362"}.fa-paper-plane{--fa:"\\f1d8"}.fa-road-circle-exclamation{--fa:"\\e565"}.fa-dungeon{--fa:"\\f6d9"}.fa-align-right{--fa:"\\f038"}.fa-money-bill-1-wave,.fa-money-bill-wave-alt{--fa:"\\f53b"}.fa-life-ring{--fa:"\\f1cd"}.fa-hands,.fa-sign-language,.fa-signing{--fa:"\\f2a7"}.fa-calendar-day{--fa:"\\f783"}.fa-ladder-water,.fa-swimming-pool,.fa-water-ladder{--fa:"\\f5c5"}.fa-arrows-up-down,.fa-arrows-v{--fa:"\\f07d"}.fa-face-grimace,.fa-grimace{--fa:"\\f57f"}.fa-wheelchair-alt,.fa-wheelchair-move{--fa:"\\e2ce"}.fa-level-down-alt,.fa-turn-down{--fa:"\\f3be"}.fa-person-walking-arrow-right{--fa:"\\e552"}.fa-envelope-square,.fa-square-envelope{--fa:"\\f199"}.fa-dice{--fa:"\\f522"}.fa-bowling-ball{--fa:"\\f436"}.fa-brain{--fa:"\\f5dc"}.fa-band-aid,.fa-bandage{--fa:"\\f462"}.fa-calendar-minus{--fa:"\\f272"}.fa-circle-xmark,.fa-times-circle,.fa-xmark-circle{--fa:"\\f057"}.fa-gifts{--fa:"\\f79c"}.fa-hotel{--fa:"\\f594"}.fa-earth-asia,.fa-globe-asia{--fa:"\\f57e"}.fa-id-card-alt,.fa-id-card-clip{--fa:"\\f47f"}.fa-magnifying-glass-plus,.fa-search-plus{--fa:"\\f00e"}.fa-thumbs-up{--fa:"\\f164"}.fa-user-clock{--fa:"\\f4fd"}.fa-allergies,.fa-hand-dots{--fa:"\\f461"}.fa-file-invoice{--fa:"\\f570"}.fa-window-minimize{--fa:"\\f2d1"}.fa-coffee,.fa-mug-saucer{--fa:"\\f0f4"}.fa-brush{--fa:"\\f55d"}.fa-file-half-dashed{--fa:"\\e698"}.fa-mask{--fa:"\\f6fa"}.fa-magnifying-glass-minus,.fa-search-minus{--fa:"\\f010"}.fa-ruler-vertical{--fa:"\\f548"}.fa-user-alt,.fa-user-large{--fa:"\\f406"}.fa-train-tram{--fa:"\\e5b4"}.fa-user-nurse{--fa:"\\f82f"}.fa-syringe{--fa:"\\f48e"}.fa-cloud-sun{--fa:"\\f6c4"}.fa-stopwatch-20{--fa:"\\e06f"}.fa-square-full{--fa:"\\f45c"}.fa-magnet{--fa:"\\f076"}.fa-jar{--fa:"\\e516"}.fa-note-sticky,.fa-sticky-note{--fa:"\\f249"}.fa-bug-slash{--fa:"\\e490"}.fa-arrow-up-from-water-pump{--fa:"\\e4b6"}.fa-bone{--fa:"\\f5d7"}.fa-table-cells-row-unlock{--fa:"\\e691"}.fa-user-injured{--fa:"\\f728"}.fa-face-sad-tear,.fa-sad-tear{--fa:"\\f5b4"}.fa-plane{--fa:"\\f072"}.fa-tent-arrows-down{--fa:"\\e581"}.fa-exclamation{--fa:"\\21"}.fa-arrows-spin{--fa:"\\e4bb"}.fa-print{--fa:"\\f02f"}.fa-try,.fa-turkish-lira,.fa-turkish-lira-sign{--fa:"\\e2bb"}.fa-dollar,.fa-dollar-sign,.fa-usd{--fa:"\\24"}.fa-x{--fa:"\\58"}.fa-magnifying-glass-dollar,.fa-search-dollar{--fa:"\\f688"}.fa-users-cog,.fa-users-gear{--fa:"\\f509"}.fa-person-military-pointing{--fa:"\\e54a"}.fa-bank,.fa-building-columns,.fa-institution,.fa-museum,.fa-university{--fa:"\\f19c"}.fa-umbrella{--fa:"\\f0e9"}.fa-trowel{--fa:"\\e589"}.fa-d{--fa:"\\44"}.fa-stapler{--fa:"\\e5af"}.fa-masks-theater,.fa-theater-masks{--fa:"\\f630"}.fa-kip-sign{--fa:"\\e1c4"}.fa-hand-point-left{--fa:"\\f0a5"}.fa-handshake-alt,.fa-handshake-simple{--fa:"\\f4c6"}.fa-fighter-jet,.fa-jet-fighter{--fa:"\\f0fb"}.fa-share-alt-square,.fa-square-share-nodes{--fa:"\\f1e1"}.fa-barcode{--fa:"\\f02a"}.fa-plus-minus{--fa:"\\e43c"}.fa-video,.fa-video-camera{--fa:"\\f03d"}.fa-graduation-cap,.fa-mortar-board{--fa:"\\f19d"}.fa-hand-holding-medical{--fa:"\\e05c"}.fa-person-circle-check{--fa:"\\e53e"}.fa-level-up-alt,.fa-turn-up{--fa:"\\f3bf"}.fa-sr-only,.fa-sr-only-focusable:not(:focus),.sr-only,.sr-only-focusable:not(:focus){position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}:host,:root{--fa-style-family-brands:"Font Awesome 6 Brands";--fa-font-brands:normal 400 1em/1 "Font Awesome 6 Brands"}@font-face{font-family:"Font Awesome 6 Brands";font-style:normal;font-weight:400;font-display:block;src:url(../webfonts/fa-brands-400.woff2) format("woff2"),url(../webfonts/fa-brands-400.ttf) format("truetype")}.fa-brands,.fab{font-weight:400}.fa-monero{--fa:"\\f3d0"}.fa-hooli{--fa:"\\f427"}.fa-yelp{--fa:"\\f1e9"}.fa-cc-visa{--fa:"\\f1f0"}.fa-lastfm{--fa:"\\f202"}.fa-shopware{--fa:"\\f5b5"}.fa-creative-commons-nc{--fa:"\\f4e8"}.fa-aws{--fa:"\\f375"}.fa-redhat{--fa:"\\f7bc"}.fa-yoast{--fa:"\\f2b1"}.fa-cloudflare{--fa:"\\e07d"}.fa-ups{--fa:"\\f7e0"}.fa-pixiv{--fa:"\\e640"}.fa-wpexplorer{--fa:"\\f2de"}.fa-dyalog{--fa:"\\f399"}.fa-bity{--fa:"\\f37a"}.fa-stackpath{--fa:"\\f842"}.fa-buysellads{--fa:"\\f20d"}.fa-first-order{--fa:"\\f2b0"}.fa-modx{--fa:"\\f285"}.fa-guilded{--fa:"\\e07e"}.fa-vnv{--fa:"\\f40b"}.fa-js-square,.fa-square-js{--fa:"\\f3b9"}.fa-microsoft{--fa:"\\f3ca"}.fa-qq{--fa:"\\f1d6"}.fa-orcid{--fa:"\\f8d2"}.fa-java{--fa:"\\f4e4"}.fa-invision{--fa:"\\f7b0"}.fa-creative-commons-pd-alt{--fa:"\\f4ed"}.fa-centercode{--fa:"\\f380"}.fa-glide-g{--fa:"\\f2a6"}.fa-drupal{--fa:"\\f1a9"}.fa-jxl{--fa:"\\e67b"}.fa-dart-lang{--fa:"\\e693"}.fa-hire-a-helper{--fa:"\\f3b0"}.fa-creative-commons-by{--fa:"\\f4e7"}.fa-unity{--fa:"\\e049"}.fa-whmcs{--fa:"\\f40d"}.fa-rocketchat{--fa:"\\f3e8"}.fa-vk{--fa:"\\f189"}.fa-untappd{--fa:"\\f405"}.fa-mailchimp{--fa:"\\f59e"}.fa-css3-alt{--fa:"\\f38b"}.fa-reddit-square,.fa-square-reddit{--fa:"\\f1a2"}.fa-vimeo-v{--fa:"\\f27d"}.fa-contao{--fa:"\\f26d"}.fa-square-font-awesome{--fa:"\\e5ad"}.fa-deskpro{--fa:"\\f38f"}.fa-brave{--fa:"\\e63c"}.fa-sistrix{--fa:"\\f3ee"}.fa-instagram-square,.fa-square-instagram{--fa:"\\e055"}.fa-battle-net{--fa:"\\f835"}.fa-the-red-yeti{--fa:"\\f69d"}.fa-hacker-news-square,.fa-square-hacker-news{--fa:"\\f3af"}.fa-edge{--fa:"\\f282"}.fa-threads{--fa:"\\e618"}.fa-napster{--fa:"\\f3d2"}.fa-snapchat-square,.fa-square-snapchat{--fa:"\\f2ad"}.fa-google-plus-g{--fa:"\\f0d5"}.fa-artstation{--fa:"\\f77a"}.fa-markdown{--fa:"\\f60f"}.fa-sourcetree{--fa:"\\f7d3"}.fa-google-plus{--fa:"\\f2b3"}.fa-diaspora{--fa:"\\f791"}.fa-foursquare{--fa:"\\f180"}.fa-stack-overflow{--fa:"\\f16c"}.fa-github-alt{--fa:"\\f113"}.fa-phoenix-squadron{--fa:"\\f511"}.fa-pagelines{--fa:"\\f18c"}.fa-algolia{--fa:"\\f36c"}.fa-red-river{--fa:"\\f3e3"}.fa-creative-commons-sa{--fa:"\\f4ef"}.fa-safari{--fa:"\\f267"}.fa-google{--fa:"\\f1a0"}.fa-font-awesome-alt,.fa-square-font-awesome-stroke{--fa:"\\f35c"}.fa-atlassian{--fa:"\\f77b"}.fa-linkedin-in{--fa:"\\f0e1"}.fa-digital-ocean{--fa:"\\f391"}.fa-nimblr{--fa:"\\f5a8"}.fa-chromecast{--fa:"\\f838"}.fa-evernote{--fa:"\\f839"}.fa-hacker-news{--fa:"\\f1d4"}.fa-creative-commons-sampling{--fa:"\\f4f0"}.fa-adversal{--fa:"\\f36a"}.fa-creative-commons{--fa:"\\f25e"}.fa-watchman-monitoring{--fa:"\\e087"}.fa-fonticons{--fa:"\\f280"}.fa-weixin{--fa:"\\f1d7"}.fa-shirtsinbulk{--fa:"\\f214"}.fa-codepen{--fa:"\\f1cb"}.fa-git-alt{--fa:"\\f841"}.fa-lyft{--fa:"\\f3c3"}.fa-rev{--fa:"\\f5b2"}.fa-windows{--fa:"\\f17a"}.fa-wizards-of-the-coast{--fa:"\\f730"}.fa-square-viadeo,.fa-viadeo-square{--fa:"\\f2aa"}.fa-meetup{--fa:"\\f2e0"}.fa-centos{--fa:"\\f789"}.fa-adn{--fa:"\\f170"}.fa-cloudsmith{--fa:"\\f384"}.fa-opensuse{--fa:"\\e62b"}.fa-pied-piper-alt{--fa:"\\f1a8"}.fa-dribbble-square,.fa-square-dribbble{--fa:"\\f397"}.fa-codiepie{--fa:"\\f284"}.fa-node{--fa:"\\f419"}.fa-mix{--fa:"\\f3cb"}.fa-steam{--fa:"\\f1b6"}.fa-cc-apple-pay{--fa:"\\f416"}.fa-scribd{--fa:"\\f28a"}.fa-debian{--fa:"\\e60b"}.fa-openid{--fa:"\\f19b"}.fa-instalod{--fa:"\\e081"}.fa-files-pinwheel{--fa:"\\e69f"}.fa-expeditedssl{--fa:"\\f23e"}.fa-sellcast{--fa:"\\f2da"}.fa-square-twitter,.fa-twitter-square{--fa:"\\f081"}.fa-r-project{--fa:"\\f4f7"}.fa-delicious{--fa:"\\f1a5"}.fa-freebsd{--fa:"\\f3a4"}.fa-vuejs{--fa:"\\f41f"}.fa-accusoft{--fa:"\\f369"}.fa-ioxhost{--fa:"\\f208"}.fa-fonticons-fi{--fa:"\\f3a2"}.fa-app-store{--fa:"\\f36f"}.fa-cc-mastercard{--fa:"\\f1f1"}.fa-itunes-note{--fa:"\\f3b5"}.fa-golang{--fa:"\\e40f"}.fa-kickstarter,.fa-square-kickstarter{--fa:"\\f3bb"}.fa-grav{--fa:"\\f2d6"}.fa-weibo{--fa:"\\f18a"}.fa-uncharted{--fa:"\\e084"}.fa-firstdraft{--fa:"\\f3a1"}.fa-square-youtube,.fa-youtube-square{--fa:"\\f431"}.fa-wikipedia-w{--fa:"\\f266"}.fa-rendact,.fa-wpressr{--fa:"\\f3e4"}.fa-angellist{--fa:"\\f209"}.fa-galactic-republic{--fa:"\\f50c"}.fa-nfc-directional{--fa:"\\e530"}.fa-skype{--fa:"\\f17e"}.fa-joget{--fa:"\\f3b7"}.fa-fedora{--fa:"\\f798"}.fa-stripe-s{--fa:"\\f42a"}.fa-meta{--fa:"\\e49b"}.fa-laravel{--fa:"\\f3bd"}.fa-hotjar{--fa:"\\f3b1"}.fa-bluetooth-b{--fa:"\\f294"}.fa-square-letterboxd{--fa:"\\e62e"}.fa-sticker-mule{--fa:"\\f3f7"}.fa-creative-commons-zero{--fa:"\\f4f3"}.fa-hips{--fa:"\\f452"}.fa-css{--fa:"\\e6a2"}.fa-behance{--fa:"\\f1b4"}.fa-reddit{--fa:"\\f1a1"}.fa-discord{--fa:"\\f392"}.fa-chrome{--fa:"\\f268"}.fa-app-store-ios{--fa:"\\f370"}.fa-cc-discover{--fa:"\\f1f2"}.fa-wpbeginner{--fa:"\\f297"}.fa-confluence{--fa:"\\f78d"}.fa-shoelace{--fa:"\\e60c"}.fa-mdb{--fa:"\\f8ca"}.fa-dochub{--fa:"\\f394"}.fa-accessible-icon{--fa:"\\f368"}.fa-ebay{--fa:"\\f4f4"}.fa-amazon{--fa:"\\f270"}.fa-unsplash{--fa:"\\e07c"}.fa-yarn{--fa:"\\f7e3"}.fa-square-steam,.fa-steam-square{--fa:"\\f1b7"}.fa-500px{--fa:"\\f26e"}.fa-square-vimeo,.fa-vimeo-square{--fa:"\\f194"}.fa-asymmetrik{--fa:"\\f372"}.fa-font-awesome,.fa-font-awesome-flag,.fa-font-awesome-logo-full{--fa:"\\f2b4"}.fa-gratipay{--fa:"\\f184"}.fa-apple{--fa:"\\f179"}.fa-hive{--fa:"\\e07f"}.fa-gitkraken{--fa:"\\f3a6"}.fa-keybase{--fa:"\\f4f5"}.fa-apple-pay{--fa:"\\f415"}.fa-padlet{--fa:"\\e4a0"}.fa-amazon-pay{--fa:"\\f42c"}.fa-github-square,.fa-square-github{--fa:"\\f092"}.fa-stumbleupon{--fa:"\\f1a4"}.fa-fedex{--fa:"\\f797"}.fa-phoenix-framework{--fa:"\\f3dc"}.fa-shopify{--fa:"\\e057"}.fa-neos{--fa:"\\f612"}.fa-square-threads{--fa:"\\e619"}.fa-hackerrank{--fa:"\\f5f7"}.fa-researchgate{--fa:"\\f4f8"}.fa-swift{--fa:"\\f8e1"}.fa-angular{--fa:"\\f420"}.fa-speakap{--fa:"\\f3f3"}.fa-angrycreative{--fa:"\\f36e"}.fa-y-combinator{--fa:"\\f23b"}.fa-empire{--fa:"\\f1d1"}.fa-envira{--fa:"\\f299"}.fa-google-scholar{--fa:"\\e63b"}.fa-gitlab-square,.fa-square-gitlab{--fa:"\\e5ae"}.fa-studiovinari{--fa:"\\f3f8"}.fa-pied-piper{--fa:"\\f2ae"}.fa-wordpress{--fa:"\\f19a"}.fa-product-hunt{--fa:"\\f288"}.fa-firefox{--fa:"\\f269"}.fa-linode{--fa:"\\f2b8"}.fa-goodreads{--fa:"\\f3a8"}.fa-odnoklassniki-square,.fa-square-odnoklassniki{--fa:"\\f264"}.fa-jsfiddle{--fa:"\\f1cc"}.fa-sith{--fa:"\\f512"}.fa-themeisle{--fa:"\\f2b2"}.fa-page4{--fa:"\\f3d7"}.fa-hashnode{--fa:"\\e499"}.fa-react{--fa:"\\f41b"}.fa-cc-paypal{--fa:"\\f1f4"}.fa-squarespace{--fa:"\\f5be"}.fa-cc-stripe{--fa:"\\f1f5"}.fa-creative-commons-share{--fa:"\\f4f2"}.fa-bitcoin{--fa:"\\f379"}.fa-keycdn{--fa:"\\f3ba"}.fa-opera{--fa:"\\f26a"}.fa-itch-io{--fa:"\\f83a"}.fa-umbraco{--fa:"\\f8e8"}.fa-galactic-senate{--fa:"\\f50d"}.fa-ubuntu{--fa:"\\f7df"}.fa-draft2digital{--fa:"\\f396"}.fa-stripe{--fa:"\\f429"}.fa-houzz{--fa:"\\f27c"}.fa-gg{--fa:"\\f260"}.fa-dhl{--fa:"\\f790"}.fa-pinterest-square,.fa-square-pinterest{--fa:"\\f0d3"}.fa-xing{--fa:"\\f168"}.fa-blackberry{--fa:"\\f37b"}.fa-creative-commons-pd{--fa:"\\f4ec"}.fa-playstation{--fa:"\\f3df"}.fa-quinscape{--fa:"\\f459"}.fa-less{--fa:"\\f41d"}.fa-blogger-b{--fa:"\\f37d"}.fa-opencart{--fa:"\\f23d"}.fa-vine{--fa:"\\f1ca"}.fa-signal-messenger{--fa:"\\e663"}.fa-paypal{--fa:"\\f1ed"}.fa-gitlab{--fa:"\\f296"}.fa-typo3{--fa:"\\f42b"}.fa-reddit-alien{--fa:"\\f281"}.fa-yahoo{--fa:"\\f19e"}.fa-dailymotion{--fa:"\\e052"}.fa-affiliatetheme{--fa:"\\f36b"}.fa-pied-piper-pp{--fa:"\\f1a7"}.fa-bootstrap{--fa:"\\f836"}.fa-odnoklassniki{--fa:"\\f263"}.fa-nfc-symbol{--fa:"\\e531"}.fa-mintbit{--fa:"\\e62f"}.fa-ethereum{--fa:"\\f42e"}.fa-speaker-deck{--fa:"\\f83c"}.fa-creative-commons-nc-eu{--fa:"\\f4e9"}.fa-patreon{--fa:"\\f3d9"}.fa-avianex{--fa:"\\f374"}.fa-ello{--fa:"\\f5f1"}.fa-gofore{--fa:"\\f3a7"}.fa-bimobject{--fa:"\\f378"}.fa-brave-reverse{--fa:"\\e63d"}.fa-facebook-f{--fa:"\\f39e"}.fa-google-plus-square,.fa-square-google-plus{--fa:"\\f0d4"}.fa-web-awesome{--fa:"\\e682"}.fa-mandalorian{--fa:"\\f50f"}.fa-first-order-alt{--fa:"\\f50a"}.fa-osi{--fa:"\\f41a"}.fa-google-wallet{--fa:"\\f1ee"}.fa-d-and-d-beyond{--fa:"\\f6ca"}.fa-periscope{--fa:"\\f3da"}.fa-fulcrum{--fa:"\\f50b"}.fa-cloudscale{--fa:"\\f383"}.fa-forumbee{--fa:"\\f211"}.fa-mizuni{--fa:"\\f3cc"}.fa-schlix{--fa:"\\f3ea"}.fa-square-xing,.fa-xing-square{--fa:"\\f169"}.fa-bandcamp{--fa:"\\f2d5"}.fa-wpforms{--fa:"\\f298"}.fa-cloudversify{--fa:"\\f385"}.fa-usps{--fa:"\\f7e1"}.fa-megaport{--fa:"\\f5a3"}.fa-magento{--fa:"\\f3c4"}.fa-spotify{--fa:"\\f1bc"}.fa-optin-monster{--fa:"\\f23c"}.fa-fly{--fa:"\\f417"}.fa-square-bluesky{--fa:"\\e6a3"}.fa-aviato{--fa:"\\f421"}.fa-itunes{--fa:"\\f3b4"}.fa-cuttlefish{--fa:"\\f38c"}.fa-blogger{--fa:"\\f37c"}.fa-flickr{--fa:"\\f16e"}.fa-viber{--fa:"\\f409"}.fa-soundcloud{--fa:"\\f1be"}.fa-digg{--fa:"\\f1a6"}.fa-tencent-weibo{--fa:"\\f1d5"}.fa-letterboxd{--fa:"\\e62d"}.fa-symfony{--fa:"\\f83d"}.fa-maxcdn{--fa:"\\f136"}.fa-etsy{--fa:"\\f2d7"}.fa-facebook-messenger{--fa:"\\f39f"}.fa-audible{--fa:"\\f373"}.fa-think-peaks{--fa:"\\f731"}.fa-bilibili{--fa:"\\e3d9"}.fa-erlang{--fa:"\\f39d"}.fa-x-twitter{--fa:"\\e61b"}.fa-cotton-bureau{--fa:"\\f89e"}.fa-dashcube{--fa:"\\f210"}.fa-42-group,.fa-innosoft{--fa:"\\e080"}.fa-stack-exchange{--fa:"\\f18d"}.fa-elementor{--fa:"\\f430"}.fa-pied-piper-square,.fa-square-pied-piper{--fa:"\\e01e"}.fa-creative-commons-nd{--fa:"\\f4eb"}.fa-palfed{--fa:"\\f3d8"}.fa-superpowers{--fa:"\\f2dd"}.fa-resolving{--fa:"\\f3e7"}.fa-xbox{--fa:"\\f412"}.fa-square-web-awesome-stroke{--fa:"\\e684"}.fa-searchengin{--fa:"\\f3eb"}.fa-tiktok{--fa:"\\e07b"}.fa-facebook-square,.fa-square-facebook{--fa:"\\f082"}.fa-renren{--fa:"\\f18b"}.fa-linux{--fa:"\\f17c"}.fa-glide{--fa:"\\f2a5"}.fa-linkedin{--fa:"\\f08c"}.fa-hubspot{--fa:"\\f3b2"}.fa-deploydog{--fa:"\\f38e"}.fa-twitch{--fa:"\\f1e8"}.fa-flutter{--fa:"\\e694"}.fa-ravelry{--fa:"\\f2d9"}.fa-mixer{--fa:"\\e056"}.fa-lastfm-square,.fa-square-lastfm{--fa:"\\f203"}.fa-vimeo{--fa:"\\f40a"}.fa-mendeley{--fa:"\\f7b3"}.fa-uniregistry{--fa:"\\f404"}.fa-figma{--fa:"\\f799"}.fa-creative-commons-remix{--fa:"\\f4ee"}.fa-cc-amazon-pay{--fa:"\\f42d"}.fa-dropbox{--fa:"\\f16b"}.fa-instagram{--fa:"\\f16d"}.fa-cmplid{--fa:"\\e360"}.fa-upwork{--fa:"\\e641"}.fa-facebook{--fa:"\\f09a"}.fa-gripfire{--fa:"\\f3ac"}.fa-jedi-order{--fa:"\\f50e"}.fa-uikit{--fa:"\\f403"}.fa-fort-awesome-alt{--fa:"\\f3a3"}.fa-phabricator{--fa:"\\f3db"}.fa-ussunnah{--fa:"\\f407"}.fa-earlybirds{--fa:"\\f39a"}.fa-trade-federation{--fa:"\\f513"}.fa-autoprefixer{--fa:"\\f41c"}.fa-whatsapp{--fa:"\\f232"}.fa-square-upwork{--fa:"\\e67c"}.fa-slideshare{--fa:"\\f1e7"}.fa-google-play{--fa:"\\f3ab"}.fa-viadeo{--fa:"\\f2a9"}.fa-line{--fa:"\\f3c0"}.fa-google-drive{--fa:"\\f3aa"}.fa-servicestack{--fa:"\\f3ec"}.fa-simplybuilt{--fa:"\\f215"}.fa-bitbucket{--fa:"\\f171"}.fa-imdb{--fa:"\\f2d8"}.fa-deezer{--fa:"\\e077"}.fa-raspberry-pi{--fa:"\\f7bb"}.fa-jira{--fa:"\\f7b1"}.fa-docker{--fa:"\\f395"}.fa-screenpal{--fa:"\\e570"}.fa-bluetooth{--fa:"\\f293"}.fa-gitter{--fa:"\\f426"}.fa-d-and-d{--fa:"\\f38d"}.fa-microblog{--fa:"\\e01a"}.fa-cc-diners-club{--fa:"\\f24c"}.fa-gg-circle{--fa:"\\f261"}.fa-pied-piper-hat{--fa:"\\f4e5"}.fa-kickstarter-k{--fa:"\\f3bc"}.fa-yandex{--fa:"\\f413"}.fa-readme{--fa:"\\f4d5"}.fa-html5{--fa:"\\f13b"}.fa-sellsy{--fa:"\\f213"}.fa-square-web-awesome{--fa:"\\e683"}.fa-sass{--fa:"\\f41e"}.fa-wirsindhandwerk,.fa-wsh{--fa:"\\e2d0"}.fa-buromobelexperte{--fa:"\\f37f"}.fa-salesforce{--fa:"\\f83b"}.fa-octopus-deploy{--fa:"\\e082"}.fa-medapps{--fa:"\\f3c6"}.fa-ns8{--fa:"\\f3d5"}.fa-pinterest-p{--fa:"\\f231"}.fa-apper{--fa:"\\f371"}.fa-fort-awesome{--fa:"\\f286"}.fa-waze{--fa:"\\f83f"}.fa-bluesky{--fa:"\\e671"}.fa-cc-jcb{--fa:"\\f24b"}.fa-snapchat,.fa-snapchat-ghost{--fa:"\\f2ab"}.fa-fantasy-flight-games{--fa:"\\f6dc"}.fa-rust{--fa:"\\e07a"}.fa-wix{--fa:"\\f5cf"}.fa-behance-square,.fa-square-behance{--fa:"\\f1b5"}.fa-supple{--fa:"\\f3f9"}.fa-webflow{--fa:"\\e65c"}.fa-rebel{--fa:"\\f1d0"}.fa-css3{--fa:"\\f13c"}.fa-staylinked{--fa:"\\f3f5"}.fa-kaggle{--fa:"\\f5fa"}.fa-space-awesome{--fa:"\\e5ac"}.fa-deviantart{--fa:"\\f1bd"}.fa-cpanel{--fa:"\\f388"}.fa-goodreads-g{--fa:"\\f3a9"}.fa-git-square,.fa-square-git{--fa:"\\f1d2"}.fa-square-tumblr,.fa-tumblr-square{--fa:"\\f174"}.fa-trello{--fa:"\\f181"}.fa-creative-commons-nc-jp{--fa:"\\f4ea"}.fa-get-pocket{--fa:"\\f265"}.fa-perbyte{--fa:"\\e083"}.fa-grunt{--fa:"\\f3ad"}.fa-weebly{--fa:"\\f5cc"}.fa-connectdevelop{--fa:"\\f20e"}.fa-leanpub{--fa:"\\f212"}.fa-black-tie{--fa:"\\f27e"}.fa-themeco{--fa:"\\f5c6"}.fa-python{--fa:"\\f3e2"}.fa-android{--fa:"\\f17b"}.fa-bots{--fa:"\\e340"}.fa-free-code-camp{--fa:"\\f2c5"}.fa-hornbill{--fa:"\\f592"}.fa-js{--fa:"\\f3b8"}.fa-ideal{--fa:"\\e013"}.fa-git{--fa:"\\f1d3"}.fa-dev{--fa:"\\f6cc"}.fa-sketch{--fa:"\\f7c6"}.fa-yandex-international{--fa:"\\f414"}.fa-cc-amex{--fa:"\\f1f3"}.fa-uber{--fa:"\\f402"}.fa-github{--fa:"\\f09b"}.fa-php{--fa:"\\f457"}.fa-alipay{--fa:"\\f642"}.fa-youtube{--fa:"\\f167"}.fa-skyatlas{--fa:"\\f216"}.fa-firefox-browser{--fa:"\\e007"}.fa-replyd{--fa:"\\f3e6"}.fa-suse{--fa:"\\f7d6"}.fa-jenkins{--fa:"\\f3b6"}.fa-twitter{--fa:"\\f099"}.fa-rockrms{--fa:"\\f3e9"}.fa-pinterest{--fa:"\\f0d2"}.fa-buffer{--fa:"\\f837"}.fa-npm{--fa:"\\f3d4"}.fa-yammer{--fa:"\\f840"}.fa-btc{--fa:"\\f15a"}.fa-dribbble{--fa:"\\f17d"}.fa-stumbleupon-circle{--fa:"\\f1a3"}.fa-internet-explorer{--fa:"\\f26b"}.fa-stubber{--fa:"\\e5c7"}.fa-telegram,.fa-telegram-plane{--fa:"\\f2c6"}.fa-old-republic{--fa:"\\f510"}.fa-odysee{--fa:"\\e5c6"}.fa-square-whatsapp,.fa-whatsapp-square{--fa:"\\f40c"}.fa-node-js{--fa:"\\f3d3"}.fa-edge-legacy{--fa:"\\e078"}.fa-slack,.fa-slack-hash{--fa:"\\f198"}.fa-medrt{--fa:"\\f3c8"}.fa-usb{--fa:"\\f287"}.fa-tumblr{--fa:"\\f173"}.fa-vaadin{--fa:"\\f408"}.fa-quora{--fa:"\\f2c4"}.fa-square-x-twitter{--fa:"\\e61a"}.fa-reacteurope{--fa:"\\f75d"}.fa-medium,.fa-medium-m{--fa:"\\f23a"}.fa-amilia{--fa:"\\f36d"}.fa-mixcloud{--fa:"\\f289"}.fa-flipboard{--fa:"\\f44d"}.fa-viacoin{--fa:"\\f237"}.fa-critical-role{--fa:"\\f6c9"}.fa-sitrox{--fa:"\\e44a"}.fa-discourse{--fa:"\\f393"}.fa-joomla{--fa:"\\f1aa"}.fa-mastodon{--fa:"\\f4f6"}.fa-airbnb{--fa:"\\f834"}.fa-wolf-pack-battalion{--fa:"\\f514"}.fa-buy-n-large{--fa:"\\f8a6"}.fa-gulp{--fa:"\\f3ae"}.fa-creative-commons-sampling-plus{--fa:"\\f4f1"}.fa-strava{--fa:"\\f428"}.fa-ember{--fa:"\\f423"}.fa-canadian-maple-leaf{--fa:"\\f785"}.fa-teamspeak{--fa:"\\f4f9"}.fa-pushed{--fa:"\\f3e1"}.fa-wordpress-simple{--fa:"\\f411"}.fa-nutritionix{--fa:"\\f3d6"}.fa-wodu{--fa:"\\e088"}.fa-google-pay{--fa:"\\e079"}.fa-intercom{--fa:"\\f7af"}.fa-zhihu{--fa:"\\f63f"}.fa-korvue{--fa:"\\f42f"}.fa-pix{--fa:"\\e43a"}.fa-steam-symbol{--fa:"\\f3f6"}:host,:root{--fa-font-regular:normal 400 1em/1 "Font Awesome 6 Free"}@font-face{font-family:"Font Awesome 6 Free";font-style:normal;font-weight:400;font-display:block;src:url(../webfonts/fa-regular-400.woff2) format("woff2"),url(../webfonts/fa-regular-400.ttf) format("truetype")}.fa-regular,.far{font-weight:400}:host,:root{--fa-style-family-classic:"Font Awesome 6 Free";--fa-font-solid:normal 900 1em/1 "Font Awesome 6 Free"}@font-face{font-family:"Font Awesome 6 Free";font-style:normal;font-weight:900;font-display:block;src:url(../webfonts/fa-solid-900.woff2) format("woff2"),url(../webfonts/fa-solid-900.ttf) format("truetype")}.fa-solid,.fas{font-weight:900}@font-face{font-family:"Font Awesome 5 Brands";font-display:block;font-weight:400;src:url(../webfonts/fa-brands-400.woff2) format("woff2"),url(../webfonts/fa-brands-400.ttf) format("truetype")}@font-face{font-family:"Font Awesome 5 Free";font-display:block;font-weight:900;src:url(../webfonts/fa-solid-900.woff2) format("woff2"),url(../webfonts/fa-solid-900.ttf) format("truetype")}@font-face{font-family:"Font Awesome 5 Free";font-display:block;font-weight:400;src:url(../webfonts/fa-regular-400.woff2) format("woff2"),url(../webfonts/fa-regular-400.ttf) format("truetype")}@font-face{font-family:"FontAwesome";font-display:block;src:url(../webfonts/fa-solid-900.woff2) format("woff2"),url(../webfonts/fa-solid-900.ttf) format("truetype")}@font-face{font-family:"FontAwesome";font-display:block;src:url(../webfonts/fa-brands-400.woff2) format("woff2"),url(../webfonts/fa-brands-400.ttf) format("truetype")}@font-face{font-family:"FontAwesome";font-display:block;src:url(../webfonts/fa-regular-400.woff2) format("woff2"),url(../webfonts/fa-regular-400.ttf) format("truetype");unicode-range:u+f003,u+f006,u+f014,u+f016-f017,u+f01a-f01b,u+f01d,u+f022,u+f03e,u+f044,u+f046,u+f05c-f05d,u+f06e,u+f070,u+f087-f088,u+f08a,u+f094,u+f096-f097,u+f09d,u+f0a0,u+f0a2,u+f0a4-f0a7,u+f0c5,u+f0c7,u+f0e5-f0e6,u+f0eb,u+f0f6-f0f8,u+f10c,u+f114-f115,u+f118-f11a,u+f11c-f11d,u+f133,u+f147,u+f14e,u+f150-f152,u+f185-f186,u+f18e,u+f190-f192,u+f196,u+f1c1-f1c9,u+f1d9,u+f1db,u+f1e3,u+f1ea,u+f1f7,u+f1f9,u+f20a,u+f247-f248,u+f24a,u+f24d,u+f255-f25b,u+f25d,u+f271-f274,u+f278,u+f27b,u+f28c,u+f28e,u+f29c,u+f2b5,u+f2b7,u+f2ba,u+f2bc,u+f2be,u+f2c0-f2c1,u+f2c3,u+f2d0,u+f2d2,u+f2d4,u+f2dc}@font-face{font-family:"FontAwesome";font-display:block;src:url(../webfonts/fa-v4compatibility.woff2) format("woff2"),url(../webfonts/fa-v4compatibility.ttf) format("truetype");unicode-range:u+f041,u+f047,u+f065-f066,u+f07d-f07e,u+f080,u+f08b,u+f08e,u+f090,u+f09a,u+f0ac,u+f0ae,u+f0b2,u+f0d0,u+f0d6,u+f0e4,u+f0ec,u+f10a-f10b,u+f123,u+f13e,u+f148-f149,u+f14c,u+f156,u+f15e,u+f160-f161,u+f163,u+f175-f178,u+f195,u+f1f8,u+f219,u+f27a}.button{display:flex;height:50px;padding:0;background:#3e7671;border:none;outline:none;border-radius:5px;overflow:hidden;font-size:16px;font-weight:500;cursor:pointer;min-width:220px;max-width:220px}.button:hover{background:#008168}.button:active{background:#3e7671}.button-text{display:block;margin:auto;padding:0 10px;color:#fff;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;width:50%;text-transform:capitalize}.button-icon{margin:auto;padding:10px;font-size:20px;color:#ffffff}.button-profile{margin:auto}.button-profile svg{display:flex;margin-left:4px;background-color:#fff;border-radius:4px}.profile-image{display:flex;margin-left:4px;width:40px;height:40px;border-radius:4px;background-color:#fff}.button-text-full-width{width:auto!important}.button-link{text-decoration:none!important}.dropdown{position:relative;display:inline-block}.dropdown-content{display:none;position:absolute;right:0;background-color:#f9f9f9;min-width:180px;box-shadow:0px 8px 16px 0px rgba(0,0,0,0.2);z-index:1;border-radius:5px;text-align:left!important}.dropdown-content-link a{color:#71797E;padding:16px 20px;text-decoration:none;display:block;cursor:pointer;font-size:1rem!important}.dropdown-content-link a:hover{background-color:#f1f1f1;color:#000;opacity:0.7}.dropdown:hover .dropdown-content{display:block}.modal{display:none;position:fixed;z-index:1;padding-top:100px;left:0;top:0;width:100%;height:100%;overflow:auto;background-color:rgb(0,0,0);background-color:rgba(0,0,0,0.4);text-align:center}.modal-content{background-color:#fefefe;margin:auto;padding:20px;border:1px solid #888;width:40%}.modal-body{max-height:50vh;overflow-y:auto}.close{color:#aaaaaa;float:right;font-size:28px;font-weight:bold}.close:hover,.close:focus{color:#000;text-decoration:none;cursor:pointer}.modal-app{background-color:#c3e9bc;padding:15px;margin:10px;border-radius:5px}.external-app-link{text-decoration:none;color:#000}.gray-text{color:#606060}.green-text{color:#3e7671}#countdown{position:relative;margin:auto;margin-top:30px;height:40px;width:40px;text-align:center}#countdown-number{color:#2e2e2e;display:inline-block;line-height:40px}#countdown svg{position:absolute;top:0;right:0;width:40px;height:40px;transform:rotateY(-180deg) rotateZ(-90deg)}#countdown svg circle{stroke-dasharray:113px;stroke-dashoffset:0px;stroke-linecap:round;stroke-width:4px;stroke:#008168;fill:none;animation:countdown 6s linear infinite forwards}@keyframes countdown{from{stroke-dashoffset:0px}to{stroke-dashoffset:113px}}.lds-ring{color:#fff}.lds-ring{display:flex;justify-content:center;align-items:center;margin:auto;position:relative}.lds-ring div{box-sizing:border-box;display:block;position:absolute;width:25px;height:25px;margin:3px;border:2px solid currentColor;border-radius:50%;animation:lds-ring 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;border-color:currentColor transparent transparent transparent}.lds-ring div:nth-child(1){animation-delay:-0.45s}.lds-ring div:nth-child(2){animation-delay:-0.3s}.lds-ring div:nth-child(3){animation-delay:-0.15s}@keyframes lds-ring{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}.dropdown-content .dropdown-user-profile{padding:12px 10px 8px 18px;border-bottom:1px solid #aaaaaa}.dropdown-content .dropdown-user-profile .username{font-size:16px;color:#2e2e2e;text-transform:capitalize}.dropdown-content .dropdown-user-profile .first-last-name{font-size:13px;color:#606060}.menu-bar-icons{color:#008168;display:inline-block;margin-right:8px;font-size:18px}.other-links-list{padding:14px;background-color:#f1f1f1;margin-bottom:8px;text-align:start;border-radius:5px}.tab-list{margin:0px 40px;padding:0;list-style:none;display:flex;position:relative;width:85%;border-bottom:1px solid #aaa}.tab-item{flex:1;text-align:center;transition:.3s;opacity:0.5}.tab-toggle{display:none}.tab-content{display:none}.tab-toggle:nth-child(1):checked~.tab-list .tab-item:nth-child(1),.tab-toggle:nth-child(2):checked~.tab-list .tab-item:nth-child(2){opacity:1;color:#008168;border-bottom:2px solid #008168}.tab-toggle:nth-child(2):checked~.tab-list::before{transform:translateX(100%)}.tab-toggle:nth-child(3):checked~.tab-list::before{transform:translateX(200%)}.tab-toggle:nth-child(1):checked~.tab-container .tab-content:nth-child(1),.tab-toggle:nth-child(2):checked~.tab-container .tab-content:nth-child(2){display:block}.tab-trigger{display:block;padding:10px 0}.tab-container{padding:15px 30px}.grid-view-menu{display:grid;gap:4px;grid-template-columns:repeat(3, 1fr);align-content:start;padding:8px;max-height:230px;overflow-y:auto}.grid-view-link{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;width:75px;height:70px;padding:6px;text-decoration:none;font-size:13px;color:#128f8b;text-align:center;transition:transform 0.2s ease, background-color 0.1s ease;position:relative;z-index:1;border-radius:3px;cursor:pointer}.grid-view-link:hover{background-color:#eeeeee;transform:scale(1.1);z-index:5}.grid-view-link-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#71797e;width:100%}.grid-view-link:hover .grid-view-link-text{white-space:pre-wrap;overflow:visible;text-overflow:unset}.grid-view-link i{transition:transform 0.2s ease}.grid-view-link:hover i{transform:scale(1.1)}hr.solid{border-top:1px solid #bbb;margin:2px 0}.restricted-overlay{position:fixed;inset:0;background:linear-gradient(135deg, #0f3d3e, #128f8b);display:flex;justify-content:center;align-items:center;padding:20px;z-index:9999999;font-family:"Segoe UI", sans-serif}.restricted-card{background:#ffffff;border-radius:10px;padding:50px;max-width:540px;width:100%;text-align:center;box-shadow:0 25px 70px rgba(0, 0, 0, 0.25);animation:fadeInUp 0.3s ease}.restricted-icon{font-size:48px;color:#128f8b;margin-bottom:30px}.restricted-card h2{margin-bottom:10px;color:#128f8b}.restricted-message{color:#555;font-size:16px;margin-bottom:30px;line-height:1.5}.restricted-links h4{margin-bottom:20px;color:#128f8b}.link-grid{display:grid;grid-template-columns:repeat(auto-fit, minmax(120px, 1fr));gap:20px;margin-bottom:25px}.restricted-link{background:#ecf2f2;padding:10px;border-radius:10px;text-decoration:none;color:#128f8b;font-size:13px;display:flex;flex-direction:column;align-items:center;gap:4px;transition:all 0.2s ease}.restricted-link:hover{background:#128f8b;color:#fff}.restricted-actions{display:flex;justify-content:center;gap:15px}.btn-primary{background:#128f8b;color:#fff;padding:10px 20px;border-radius:8px;text-decoration:none;font-weight:500;transition:0.2s}.btn-primary:hover{background:#0f6e6b}.btn-secondary{background:transparent;border:2px solid #128f8b;color:#128f8b;padding:8px 18px;border-radius:8px;cursor:pointer;transition:0.2s}.btn-danger{background:transparent;border:2px solid #dc3545;color:#dc3545;padding:8px 18px;border-radius:8px;cursor:pointer;transition:0.2s}.btn-secondary:hover{background:#128f8b;color:#fff}@keyframes fadeInUp{from{opacity:0;transform:translateY(15px)}to{opacity:1;transform:translateY(0)}}`;
4060
-
4061
- const DashButtonComponent = class {
4062
- constructor(hostRef) {
4063
- registerInstance(this, hostRef);
4064
- this.showPostLoginText = false;
4065
- this.silentCheckSso = false;
4066
- this.authMethod = "check-sso";
4067
- this.portalApiUrl = "";
4068
- this.plmUrl = "https://productlicensemanager-zdzw.cloud.zdzw-project.com";
4069
- this.showUnauthorizedModal = false;
4070
- this.primaryColor = "";
4071
- this.accentColor = "";
4072
- this.notificationPosition = "left";
4073
- this.keycloak = null;
4074
- this.isAuth = false;
4075
- this.givenUserName = "";
4076
- this.silentCheckSsoRedirectUri = window.location.origin + '/assets/verificar-sso.html';
4077
- this.appList = [];
4078
- this.avatarSvg = jdenticonModuleExports.toSvg("init-avatar", 40);
4079
- this.isLoading = false;
4080
- this.isRestricted = false;
4081
- }
4082
- componentDidLoad() {
4083
- console.log("New version!!!");
4084
- // Add a click listener to this specific component instance
4085
- this.el.addEventListener('click', (event) => {
4086
- const path = event.composedPath();
4087
- // Ensure this click originated from inside the notification module
4088
- const isInsideNotification = path.some((target) => target && target.tagName === 'NOTIFICATION-COMPONENT');
4089
- // If the click is outside the notification module (e.g., somewhere else in dash-button), exit early
4090
- if (!isInsideNotification) {
4091
- return;
4092
- }
4093
- // 2. Identify the specific link element inside the path array
4094
- const clickedLink = path.find((target) => target && (target.tagName === 'A' || (typeof target.hasAttribute === 'function' && target.hasAttribute('href'))));
4095
- if (clickedLink) {
4096
- const destinationUrl = clickedLink.getAttribute('href');
4097
- if (destinationUrl) {
4098
- // Prevent the default behavior ONLY for the notification component links
4099
- event.preventDefault();
4100
- event.stopPropagation();
4101
- // Check if the link contains the unique class name
4102
- const isHomeIconLink = clickedLink.classList.contains('button-link');
4103
- if (isHomeIconLink) {
4104
- console.log('Notification module home link intercepted. Opening in new tab:', destinationUrl);
4105
- window.open(destinationUrl, '_blank', 'noopener,noreferrer');
4106
- }
4107
- else {
4108
- console.log('Notification module standard link intercepted. Navigating in current view:', destinationUrl);
4109
- window.location.href = destinationUrl;
4110
- }
4111
- }
4112
- }
4113
- });
4114
- }
4115
- async componentWillLoad() {
4116
- var _a, _b, _c, _d;
4117
- // Fetch config from API
4118
- this.config = await configService.fetchConfig(this.portalApiUrl);
4119
- console.log(this.config);
4120
- if (!this.config)
4121
- return; // prevent Keycloak init if fetch failed
4122
- // render will show spinner
4123
- if ((_b = (_a = this.config) === null || _a === void 0 ? void 0 : _a.loading) === null || _b === void 0 ? void 0 : _b.isLoading) {
4124
- this.isLoading = true;
4125
- setTimeout(() => {
4126
- this.isLoading = false;
4127
- }, (_d = (_c = this.config) === null || _c === void 0 ? void 0 : _c.loading) === null || _d === void 0 ? void 0 : _d.duration);
4128
- }
4129
- // Initialize Keycloak
4130
- this.keycloak = new Keycloak({
4131
- url: this.config.keycloak.url,
4132
- realm: this.config.keycloak.realm,
4133
- clientId: this.config.keycloak.clientId
4134
- });
4135
- //
4136
- // Init Keycloak
4137
- //
4138
- this.initKeycloak().then(() => {
4139
- // Check if the user is authenticated
4140
- if (this.isAuth) {
4141
- // Get organization URL and load local menu items
4142
- // If the user has not set an organization URL, they can configure it in the Portal profile page
4143
- this.loadOrganizationUrlAndLinks();
4144
- // Validate user access permission for the application.
4145
- // If unauthorized, display the restricted access modal.
4146
- this.validateAppAccessByUrl();
4147
- }
4148
- });
4149
- }
4150
- async initKeycloak() {
4151
- // Remove the initiation time permission localstorage object
4152
- localStorage.removeItem("ZDZW_app_permission");
4153
- await this.keycloak.init({
4154
- onLoad: this.authMethod,
4155
- checkLoginIframe: false,
4156
- silentCheckSsoRedirectUri: this.silentCheckSso ? this.silentCheckSsoRedirectUri : '',
4157
- }).then((res) => {
4158
- var _a, _b, _c;
4159
- if (res) {
4160
- this.isAuth = true;
4161
- localStorage.setItem("keycloak", JSON.stringify(this.keycloak));
4162
- // document.cookie = "DASH_BTN=" + JSON.parse(localStorage.getItem('keycloak')).token;
4163
- document.cookie = this.config.cookieName + "=" + JSON.parse((_a = localStorage.getItem('keycloak')) !== null && _a !== void 0 ? _a : '{}').token;
4164
- // Set userName
4165
- this.givenUserName = JSON.parse((_b = localStorage.getItem('keycloak')) !== null && _b !== void 0 ? _b : '{}').idTokenParsed.preferred_username;
4166
- // Set user avatar
4167
- this.avatarSvg = jdenticonModuleExports.toSvg(JSON.parse((_c = localStorage.getItem('keycloak')) !== null && _c !== void 0 ? _c : '{}').idTokenParsed.sub, 40);
4168
- }
4169
- });
4170
- }
4171
- async loadOrganizationUrlAndLinks() {
4172
- var _a, _b, _c;
4173
- // Read org URL safely
4174
- try {
4175
- const kc = JSON.parse(localStorage.getItem("keycloak") || "{}");
4176
- this.organizationUrl = ((_a = kc === null || kc === void 0 ? void 0 : kc.idTokenParsed) === null || _a === void 0 ? void 0 : _a.organizationUrl) || null;
4177
- }
4178
- catch (_d) {
4179
- this.organizationUrl = null;
4180
- }
4181
- // If no organization, do nothing
4182
- if (!this.organizationUrl)
4183
- return;
4184
- // If config or menu not ready, skip
4185
- if (!((_c = (_b = this.config) === null || _b === void 0 ? void 0 : _b.menu) === null || _c === void 0 ? void 0 : _c.local))
4186
- return;
4187
- // Only load when custom menu is NOT enabled
4188
- if (!this.config.menu.local.enableCustomLocalMenu) {
4189
- try {
4190
- this.localMenuLinks = await menuService.getMenuLinks(this.organizationUrl);
4191
- }
4192
- catch (e) {
4193
- console.error("Failed to load local menu", e);
4194
- this.localMenuLinks = [];
4195
- }
4196
- }
4197
- }
4198
- // First, check global links
4199
- // Then, check the token's organization URL
4200
- // Finally, check against dashbutton configuration: allowedGlobalDomain and whitelistedUrls
4201
- validateAppAccessByUrl() {
4202
- var _a, _b, _c, _d, _e, _f;
4203
- const normalizeUrl = (url) => url.replace(/\/+$/, '');
4204
- const currentUrl = normalizeUrl(window.location.href);
4205
- const currentOrigin = normalizeUrl(window.location.origin);
4206
- const globalLinks = ((_c = (_b = (_a = this.config) === null || _a === void 0 ? void 0 : _a.menu) === null || _b === void 0 ? void 0 : _b.global) === null || _c === void 0 ? void 0 : _c.links) || [];
4207
- const allowedGlobalDomain = ((_d = this.config) === null || _d === void 0 ? void 0 : _d.allowedGlobalDomain) || '';
4208
- const whitelistedUrls = ((_e = this.config) === null || _e === void 0 ? void 0 : _e.whitelistedUrls) || '';
4209
- // First, check global links
4210
- const matchGlobal = globalLinks.some(link => {
4211
- try {
4212
- const linkOrigin = normalizeUrl(new URL(link.url).origin);
4213
- return currentOrigin === linkOrigin;
4214
- }
4215
- catch (_a) {
4216
- return false;
4217
- }
4218
- });
4219
- // Then check the token organization URL
4220
- const tokenParsed = (_f = this.keycloak) === null || _f === void 0 ? void 0 : _f.tokenParsed;
4221
- const allowedOrg = tokenParsed === null || tokenParsed === void 0 ? void 0 : tokenParsed.organizationUrl;
4222
- const matchOrganization = allowedOrg && currentUrl.includes(normalizeUrl(allowedOrg));
4223
- // Check allowedGlobalDomain (single domain)
4224
- const matchAllowedDomain = allowedGlobalDomain &&
4225
- currentOrigin.includes(normalizeUrl(allowedGlobalDomain));
4226
- // Check whitelistedUrls (comma-separated string)
4227
- const whitelistedArray = whitelistedUrls
4228
- ? whitelistedUrls.split(',').map(url => normalizeUrl(url.trim()))
4229
- : [];
4230
- const matchWhitelisted = whitelistedArray.some(url => currentUrl.includes(url));
4231
- // Final validation
4232
- const isAllowed = matchGlobal ||
4233
- matchOrganization ||
4234
- matchAllowedDomain ||
4235
- matchWhitelisted;
4236
- this.isRestricted = !isAllowed;
4237
- }
4238
- login() {
4239
- this.keycloak.login();
4240
- }
4241
- logout() {
4242
- localStorage.removeItem("keycloak");
4243
- // document.cookie = "DASH_BTN=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;";
4244
- document.cookie = this.config.cookieName + "=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;";
4245
- this.keycloak.logout();
4246
- }
4247
- showModal() {
4248
- const appModal = this.el.shadowRoot.querySelector('#appListModal');
4249
- appModal.style.display = "block";
4250
- }
4251
- closeModal() {
4252
- const appModal = this.el.shadowRoot.querySelector('#appListModal');
4253
- appModal.style.display = "none";
4254
- }
4255
- renderNotificationComponent() {
4256
- var _a;
4257
- const token = (_a = this.keycloak) === null || _a === void 0 ? void 0 : _a.idTokenParsed;
4258
- const owner = (token === null || token === void 0 ? void 0 : token.preferred_username) || (token === null || token === void 0 ? void 0 : token.sub) || '';
4259
- const orgUrlRaw = (token === null || token === void 0 ? void 0 : token.organizationUrl) || '';
4260
- const orgHost = orgUrlRaw
4261
- ? new URL(orgUrlRaw.startsWith('http') ? orgUrlRaw : `https://${orgUrlRaw}`).hostname
4262
- : '';
4263
- return orgHost && owner ? (h("notification-component", { owner: owner, "max-records": 10, "display-type": "icon", "notification-url": `https://notifications.${orgHost}/notifications-api`, "socket-connect": true, "socket-url": `wss://repository.${orgHost}/socket`, "list-url": `https://notifications.${orgHost}/notifications` })) : null;
4264
- }
4265
- render() {
4266
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w;
4267
- return h("div", { key: 'a2d1650d96fcbbfa5128da4315e70dc0c2682dfd' }, h("div", { key: '975ab012c618442f627f00a9ee29773c08d55824' }, (() => {
4268
- var _a, _b, _c, _d, _e, _f, _g, _h;
4269
- // GLOBAL LOADING SPINNER
4270
- if (this.isLoading) {
4271
- return (h("a", { id: "login-btn", class: "button button-link" }, h("div", { class: "lds-ring" }, h("div", null), h("div", null), h("div", null), h("div", null))));
4272
- }
4273
- if (this.isRestricted) {
4274
- return (h("div", { class: "restricted-overlay" }, h("div", { class: "restricted-card" }, h("div", { class: "restricted-icon" }, h("i", { class: "fa-solid fa-shield-halved" })), h("h2", null, "Access Restricted"), h("p", { class: "restricted-message" }, "You do not have permission to access this application. Please contact your administrator if you believe this is an error."), ((_d = (_c = (_b = (_a = this.config) === null || _a === void 0 ? void 0 : _a.menu) === null || _b === void 0 ? void 0 : _b.global) === null || _c === void 0 ? void 0 : _c.links) === null || _d === void 0 ? void 0 : _d.length) > 0 && (h("div", { class: "restricted-links" }, h("h4", null, "Publicly Available Modules"), h("div", { class: "link-grid" }, this.config.menu.global.links.map(item => (h("a", { href: item.url, target: "_blank", class: "restricted-link" }, h("i", { class: item.icon }), h("span", null, item.name))))))), h("div", { class: "restricted-actions" }, ((_f = (_e = this.config) === null || _e === void 0 ? void 0 : _e.defaultLink) === null || _f === void 0 ? void 0 : _f.url) && (h("a", { href: this.config.defaultLink.url, target: "_blank", class: "btn-primary" }, "Go to Portal")), h("button", { class: "btn-danger", onClick: this.logout.bind(this) }, "Logout")))));
4275
- }
4276
- if (this.isAuth && this.showPostLoginText) {
4277
- return (h("a", { style: { background: this.primaryColor != undefined ? this.primaryColor : "" }, href: this.redirectUri, id: "login-btn", class: "button button-link" }, h("span", { style: { color: this.accentColor != undefined ? this.accentColor : "" }, class: "button-text button-text-full-width" }, "Go to Dashboard")));
4278
- }
4279
- else if (this.isAuth) {
4280
- return (h("div", { class: "profile-actions", style: { display: "inline-flex", alignItems: "center", gap: "15px" } }, this.notificationPosition !== "right" && this.renderNotificationComponent(), h("div", { id: "profile-btn", class: "dropdown" }, h("button", { style: { background: this.primaryColor != undefined ? this.primaryColor : "" }, type: "button", class: "button" }, h("span", { class: "button-profile" }, JSON.parse((_g = localStorage.getItem('keycloak')) !== null && _g !== void 0 ? _g : '{}').idTokenParsed.imageUrl ?
4281
- h("img", { class: "profile-image", src: "https://s-damith.github.io/test-avatar/images/e24da9c5-0b1f-46fa-82cd-7c711c77b5c7.png" })
4282
- :
4283
- h("div", { innerHTML: this.avatarSvg })), h("span", { style: { color: this.accentColor != undefined ? this.accentColor : "" }, id: "given-name", class: "button-text" }, this.givenUserName), h("div", { class: "button-icon" }, (this.config.menuViewType == "grid") ? h("i", { class: "fa-solid fa-grip-vertical" }) : h("i", { class: "fa-solid fa-bars" }))), h("div", { class: "dropdown-content" }, h("div", { class: "dropdown-user-profile" }, h("div", { class: "username" }, "@", this.givenUserName), h("div", { class: "first-last-name" }, JSON.parse((_h = localStorage.getItem('keycloak')) !== null && _h !== void 0 ? _h : '{}').idTokenParsed.name)), (this.config.menuViewType == "grid") ? (h("div", null, h("div", { class: "grid-view-menu" }, this.config.menu.global.links.map(item => {
4284
- return (h("a", { href: item.url, target: '_blank', class: "grid-view-link" }, h("i", { class: item.icon + " fa-2x" }), h("div", { class: "grid-view-link-text" }, item.name)));
4285
- })), this.config.menu.global.links.length != 0 && h("hr", { class: "solid" }), h("div", { class: "grid-view-menu", style: this.config.menu.global.links.length === 0
4286
- ? { marginBottom: '12px' }
4287
- : undefined }, h("a", { onClick: this.showModal.bind(this), class: "grid-view-link" }, h("i", { class: "fa-regular fa-window-restore fa-2x" }), h("div", { class: "grid-view-link-text" }, "Modules")), h("a", { href: this.config.defaultLink.url, target: '_blank', class: "grid-view-link" }, h("i", { class: "fa-solid fa-globe fa-2x" }), h("div", { class: "grid-view-link-text" }, this.config.defaultLink.name)), h("a", { onClick: this.logout.bind(this), class: "grid-view-link" }, h("i", { class: "fa-solid fa-right-from-bracket fa-2x" }), h("div", { class: "grid-view-link-text" }, "Logout"))))) : (
4288
- // List View
4289
- h("div", { class: "dropdown-content-link" }, this.config.menu.global.links.map(item => {
4290
- return (h("a", { href: item.url, target: '_blank', id: "applications-btn" }, h("i", { class: item.icon + " menu-bar-icons" }), item.name));
4291
- }), h("a", { onClick: this.showModal.bind(this), id: "applications-btn" }, h("i", { class: "fa-regular fa-window-restore menu-bar-icons" }), "Modules"), h("a", { href: this.config.defaultLink.url, target: '_blank', id: "applications-btn" }, h("i", { class: "fa-solid fa-globe menu-bar-icons" }), this.config.defaultLink.name), h("a", { onClick: this.logout.bind(this), id: "logout-btn" }, h("i", { class: "fa-solid fa-right-from-bracket menu-bar-icons" }), "Logout"))))), this.notificationPosition === "right" && this.renderNotificationComponent()));
4292
- }
4293
- else {
4294
- return (h("button", { style: { background: this.primaryColor != undefined ? this.primaryColor : "" }, onClick: this.login.bind(this), id: "login-btn", type: "button", class: "button" }, h("span", { style: { color: this.accentColor != undefined ? this.accentColor : "" }, class: "button-text" }, "Login")));
4295
- }
4296
- })()), h("div", { key: '3a9e8bd2730ba8d71f1e8416bab4d745a68dda9a', id: "appListModal", class: "modal" }, h("div", { key: '8f85ebe690af26900e003755e68fa5cd1401b502', class: "modal-content" }, h("span", { key: '445d67c3803859bbec76177291fd71389ccf5917', onClick: this.closeModal.bind(this), class: "close" }, "\u00D7"), h("div", { key: '0a0df9bb6fc5258568fb9363353f58486a30f744', class: "box" }, h("input", { key: 'eec587753688b1ac0bd1a3b87975f0b9692d7719', type: "radio", class: "tab-toggle", name: "tab-toggle", id: "tab1", checked: true }), h("ul", { key: '4db9fff924d2f38e3e42b83bd96fe2589dc2c701', class: "tab-list" }, h("li", { key: '99e9a21d90012e521aa10d21194f44013dbd5931', class: "tab-item" }, h("label", { key: 'c4fadd0b70b3e944860056a37e9d5f52b7c625b5', class: "tab-trigger", htmlFor: "tab1" }, h("i", { key: '5252821523386c869725b0e13bf662ec03f24d81', class: "fa-solid fa-table-list menu-bar-icons" }), " ", this.config.menu.local.name))), h("div", { key: '2da9e2383580f6d5130883051c4b0d1cba1354a7', class: "tab-container" }, h("div", { key: 'a51f2e9b923836b63b9ff2453d08dc3ee93213e6', class: "tab-content" }, h("div", { key: '9c7146fa59070eace7bcb1b76fb2b59468e23b5c', class: "modal-body" }, !((_c = (_b = (_a = this.config) === null || _a === void 0 ? void 0 : _a.menu) === null || _b === void 0 ? void 0 : _b.local) === null || _c === void 0 ? void 0 : _c.enableCustomLocalMenu) ? (
4297
- // <div>{this.localMenuLinks}</div>
4298
- (_d = this.localMenuLinks) === null || _d === void 0 ? void 0 : _d.map((app, index) => {
4299
- const isDisabled = !app.url;
4300
- return (h("a", { key: index, class: "external-app-link", href: isDisabled ? undefined : app.url, target: isDisabled ? undefined : "_blank", rel: isDisabled ? undefined : "noopener noreferrer", onClick: isDisabled ? (e) => e.preventDefault() : undefined }, h("div", { class: "modal-app" }, h("div", null, app.name))));
4301
- })) : ((_e = this.config.menu.local.links) === null || _e === void 0 ? void 0 : _e.map((app, index) => (h("a", { key: index, class: "external-app-link", target: "_blank", rel: "noopener noreferrer", href: app.url }, h("div", { class: "modal-app" }, h("div", null, app.name)))))), !this.organizationUrl ? (h("div", null, h("h3", { class: "gray-text" }, "Organization Domain URL not set"), h("p", { class: "gray-text" }, "Please set your Organization Domain URL on the Portal profile page."))) : (((!((_h = (_g = (_f = this.config) === null || _f === void 0 ? void 0 : _f.menu) === null || _g === void 0 ? void 0 : _g.local) === null || _h === void 0 ? void 0 : _h.enableCustomLocalMenu) &&
4302
- ((_k = (_j = this.localMenuLinks) === null || _j === void 0 ? void 0 : _j.length) !== null && _k !== void 0 ? _k : 0) === 0) ||
4303
- (((_o = (_m = (_l = this.config) === null || _l === void 0 ? void 0 : _l.menu) === null || _m === void 0 ? void 0 : _m.local) === null || _o === void 0 ? void 0 : _o.enableCustomLocalMenu) &&
4304
- ((_t = (_s = (_r = (_q = (_p = this.config) === null || _p === void 0 ? void 0 : _p.menu) === null || _q === void 0 ? void 0 : _q.local) === null || _r === void 0 ? void 0 : _r.links) === null || _s === void 0 ? void 0 : _s.length) !== null && _t !== void 0 ? _t : 0) === 0)) && (h("div", null, h("h3", { class: "gray-text" }, "No installed ", ((_w = (_v = (_u = this.config) === null || _u === void 0 ? void 0 : _u.menu) === null || _v === void 0 ? void 0 : _v.local) === null || _w === void 0 ? void 0 : _w.name) || "menu", " found."), h("p", { class: "gray-text" }, "Please contact administration.")))))))))), h("div", { key: '2a36c585f0f83380bc08b30141df91c1532b4a28', id: "appPermissionErrorModal", class: "modal" }, h("div", { key: '8fbbb80e22591c105c5010689d2f91909652ed8c', class: "modal-content" }, h("img", { key: '1621c2b97802968da0e6429e1b1571eb4080ef68', src: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFAAAABQCAYAAACOEfKtAAAACXBIWXMAAAsTAAALEwEAmpwYAAAGD0lEQVR4nO2cbU8TWRTH/W5WEAmF4nNiieFFoeBjYhQUWzUWYkpbDfGFCR9CoolvQF9aWgG3kMCG8LACC1ikuCuUh7bH/M/MmW131S2ZqTDjPcmkdub2tvPj3HP/55yJR44oU6ZMmTJlyg7YOsL9pI7+shkogGFzDqMAhhVAOsiQozwwrACS8sCwfXd+tYTDCiApDwwf/FJUSzisAJKjNhFlPzYF0KQpgCZNATRpCqBJUwBNmgJo0hRAk6YAmjQF0KkAs4uLtPz8OU2HQpRqaaFkQwPFq6v5SHo8fA7XVgYGKLu0dGC/81ABLORylB4cpInLl+nt0aP7OiauXKH00BAV8vlfE2AmkaCxpiYDSKK6mqaammjx+nX6FAzS348e0VYkwgf+jXO4Nun18lj53PuLF2kjmfx1AOa3t2mmt9cAkDxxghauXaPN3l7KxmJlHRgLmKNutzHPTCTCczsa4G4mQ6nWVr7h4WPHaL6trQTc+r17NOf30/iZMzTmdtNwVRWPA2Scm/H56FMgQNlolMfDO/9ob+cxmDPl99PuxoYzAe5mMrzcxOvWAALgolFauXmTxurry45/gPvnjRsG+LW7d3lOWdKVhHggAPPb24bnvW9ooL96evjGP4dC9NvJkwaY0fPnaa6vjzLJJG19+ED5bJY/u5NOUyYep/lnz2jk3Ll/4p/Hw/B4ru5unls8Mb+z4xyAM3rMg5cIvHRXFyVqavg8oKy+elXWjooxqy9f0luXy5gTm4xAFE+cjcWcATCTSGgxr6rKWLaAF9fj1u+BAOW2tsqeL7+7S5OdnRq8mhpaf/CA5xSI8EiJiRsjI/YGWMjlDKmCDUOWrXje3NOnRIWCaXh45biqL+f59nYjHlqtE38qwPTgoLHMeLeNRo2YB8+zEp7ExK1olI+Rujo+t/b6tX0BTugZBnQebha7rcQ8K5Ytw9O9WWKi7M7QiZKx2BJgdnHRyDDE+0SqYMOwEt7k7dvaxqJLHHwXvpMzFpeLtpeX7QdwZWCAbwjpmYhkkSrlxqVy4WEc4q1IHBbbsRhNXrjA71devLAfwOlQiH88lhJuBhkGbxx9fZbDE4NO5LTO5+OxCB14P93dbT+AKZ9P84ZgkG8GqRjeQ9ZUAh4MYhvXxs+e5fHwRBbWra32A5j0ePjHf9H1mST+2YWFisCDba+u8vV3tbWGNuT3jY32AxjXS06QFLgZKUH9aPct7O3RVFfXf+BlHj6kZG2tBq+j47tpGs5LoYKrNpGI9v74cfsDHNazg+/dvFl4sNzmprHz2x5g8l9LWMTuzsePli7bYkMBgqVMfb39l3CqpeXbm0g8XhF439xEgkGjOmN7GTOjA4XU2Be8zs6y4MFmnzzRpJLfXypjenrsK6Qnvd4SSQGxCyFtNbxiIb1+/74mpL1e+wrp7NISp1ElqZwuZZB2WQkPZqRyevz7Eg5zCc22qVxxMUGWMRL94sTfKnjYfd+dPq15261bpcWEq1fJvuWsoSEt/3W7tRZlNMolJylxWQEPJTGRP6lTpwz5YpSz3ryxcUE1nzcaSeieFTeArIKH3Fq8GSX9koJqc7O9C6owNL0lO5CKsZTfzS7bqTt3+LPxornxKu2Cz6Oj5IymUkTLCOB54iWAKOIaMRE7JXbS/zOMwYYhMQ9/gOLOnPxBZh8/dlhb06+Vs9B6FIi4cYmJInGgEyGIkbHgc8idkWHgHHRecVsTMU/mwuuY3tYcv3TJWW1NGJrdJY113WtkdxaJU84BqSK7rRFXdc/Dd+w5rbFeDHG8rc2IiQj2UmwQsY1iKFIxlKSg46AjARfnkGGISOZHO6JRnkNiHjzPsY92iGFZoultLNu6OtZs+3m4CCIZnxGpIjGvUsv2UAEUQ9NblrSUoNDDQP4KT+TH2/QWJT/eFgjwNaRnnGHI4x3NzRXZbQ89QBg0GsQ2Wo+SnZR1uFycYbBI3kdv2XEAiw35KqQMGkDoYaCeaDzi29jIuziuYYyVua1jANrFFECTpgCaNAXQpCmAJk0BNGkKoElTACsNUB39ZTFQAMMW/78xypQpU6ZMmbIjP9e+AkAlsBlIjsPOAAAAAElFTkSuQmCC" }), h("h2", { key: 'f9a6ba63c8d9ca116ad61a1eae25fca676b88767', class: "green-text margin-b" }, "You don't have permission to access this application."), h("h3", { key: '12783289a6b8ef86c096457555f3371cbbde39dc', class: "green-text" }, "Please contact the administration."), (this.config.defaultLink.url && this.showUnauthorizedModal) ?
4305
- h("div", null, h("h4", { class: "gray-text" }, "You will be automatically redirected to the portal."), h("div", { id: "countdown" }, h("div", { id: "countdown-number" }), h("svg", null, h("circle", { r: "18", cx: "20", cy: "20" }))))
4306
- : h("div", null))));
4307
- }
4308
- get el() { return getElement(this); }
4309
- };
4310
- DashButtonComponent.style = dashButtonCss();
4311
-
4312
- export { DashButtonComponent as dash_button };