@public-ui/theme-default 3.0.2-23b676ffff02d65bc7f05613310ad885935cd160.0 → 3.0.2-4f2652e383001617fed2c8414b4cf7ac25f38716.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +740 -617
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +740 -617
- package/dist/index.mjs.map +1 -1
- package/package.json +4 -4
package/dist/index.cjs
CHANGED
|
@@ -3,9 +3,11 @@
|
|
|
3
3
|
/*!
|
|
4
4
|
* KoliBri - The accessible HTML-Standard
|
|
5
5
|
*/
|
|
6
|
-
|
|
6
|
+
function getDefaultExportFromCjs (x) {
|
|
7
|
+
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
|
|
8
|
+
}
|
|
7
9
|
|
|
8
|
-
var loglevel = {exports: {}};
|
|
10
|
+
var loglevel$1 = {exports: {}};
|
|
9
11
|
|
|
10
12
|
/*
|
|
11
13
|
* loglevel - https://github.com/pimterry/loglevel
|
|
@@ -13,356 +15,366 @@ var loglevel = {exports: {}};
|
|
|
13
15
|
* Copyright (c) 2013 Tim Perry
|
|
14
16
|
* Licensed under the MIT license.
|
|
15
17
|
*/
|
|
18
|
+
var loglevel = loglevel$1.exports;
|
|
19
|
+
|
|
20
|
+
var hasRequiredLoglevel;
|
|
21
|
+
|
|
22
|
+
function requireLoglevel () {
|
|
23
|
+
if (hasRequiredLoglevel) return loglevel$1.exports;
|
|
24
|
+
hasRequiredLoglevel = 1;
|
|
25
|
+
(function (module) {
|
|
26
|
+
(function (root, definition) {
|
|
27
|
+
if (module.exports) {
|
|
28
|
+
module.exports = definition();
|
|
29
|
+
} else {
|
|
30
|
+
root.log = definition();
|
|
31
|
+
}
|
|
32
|
+
}(loglevel, function () {
|
|
33
|
+
|
|
34
|
+
// Slightly dubious tricks to cut down minimized file size
|
|
35
|
+
var noop = function() {};
|
|
36
|
+
var undefinedType = "undefined";
|
|
37
|
+
var isIE = (typeof window !== undefinedType) && (typeof window.navigator !== undefinedType) && (
|
|
38
|
+
/Trident\/|MSIE /.test(window.navigator.userAgent)
|
|
39
|
+
);
|
|
40
|
+
|
|
41
|
+
var logMethods = [
|
|
42
|
+
"trace",
|
|
43
|
+
"debug",
|
|
44
|
+
"info",
|
|
45
|
+
"warn",
|
|
46
|
+
"error"
|
|
47
|
+
];
|
|
48
|
+
|
|
49
|
+
var _loggersByName = {};
|
|
50
|
+
var defaultLogger = null;
|
|
51
|
+
|
|
52
|
+
// Cross-browser bind equivalent that works at least back to IE6
|
|
53
|
+
function bindMethod(obj, methodName) {
|
|
54
|
+
var method = obj[methodName];
|
|
55
|
+
if (typeof method.bind === 'function') {
|
|
56
|
+
return method.bind(obj);
|
|
57
|
+
} else {
|
|
58
|
+
try {
|
|
59
|
+
return Function.prototype.bind.call(method, obj);
|
|
60
|
+
} catch (e) {
|
|
61
|
+
// Missing bind shim or IE8 + Modernizr, fallback to wrapping
|
|
62
|
+
return function() {
|
|
63
|
+
return Function.prototype.apply.apply(method, [obj, arguments]);
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
// Trace() doesn't print the message in IE, so for that case we need to wrap it
|
|
70
|
+
function traceForIE() {
|
|
71
|
+
if (console.log) {
|
|
72
|
+
if (console.log.apply) {
|
|
73
|
+
console.log.apply(console, arguments);
|
|
74
|
+
} else {
|
|
75
|
+
// In old IE, native console methods themselves don't have apply().
|
|
76
|
+
Function.prototype.apply.apply(console.log, [console, arguments]);
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
if (console.trace) console.trace();
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
// Build the best logging method possible for this env
|
|
83
|
+
// Wherever possible we want to bind, not wrap, to preserve stack traces
|
|
84
|
+
function realMethod(methodName) {
|
|
85
|
+
if (methodName === 'debug') {
|
|
86
|
+
methodName = 'log';
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
if (typeof console === undefinedType) {
|
|
90
|
+
return false; // No method possible, for now - fixed later by enableLoggingWhenConsoleArrives
|
|
91
|
+
} else if (methodName === 'trace' && isIE) {
|
|
92
|
+
return traceForIE;
|
|
93
|
+
} else if (console[methodName] !== undefined) {
|
|
94
|
+
return bindMethod(console, methodName);
|
|
95
|
+
} else if (console.log !== undefined) {
|
|
96
|
+
return bindMethod(console, 'log');
|
|
97
|
+
} else {
|
|
98
|
+
return noop;
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
// These private functions always need `this` to be set properly
|
|
103
|
+
|
|
104
|
+
function replaceLoggingMethods() {
|
|
105
|
+
/*jshint validthis:true */
|
|
106
|
+
var level = this.getLevel();
|
|
107
|
+
|
|
108
|
+
// Replace the actual methods.
|
|
109
|
+
for (var i = 0; i < logMethods.length; i++) {
|
|
110
|
+
var methodName = logMethods[i];
|
|
111
|
+
this[methodName] = (i < level) ?
|
|
112
|
+
noop :
|
|
113
|
+
this.methodFactory(methodName, level, this.name);
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
// Define log.log as an alias for log.debug
|
|
117
|
+
this.log = this.debug;
|
|
118
|
+
|
|
119
|
+
// Return any important warnings.
|
|
120
|
+
if (typeof console === undefinedType && level < this.levels.SILENT) {
|
|
121
|
+
return "No console available for logging";
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
// In old IE versions, the console isn't present until you first open it.
|
|
126
|
+
// We build realMethod() replacements here that regenerate logging methods
|
|
127
|
+
function enableLoggingWhenConsoleArrives(methodName) {
|
|
128
|
+
return function () {
|
|
129
|
+
if (typeof console !== undefinedType) {
|
|
130
|
+
replaceLoggingMethods.call(this);
|
|
131
|
+
this[methodName].apply(this, arguments);
|
|
132
|
+
}
|
|
133
|
+
};
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
// By default, we use closely bound real methods wherever possible, and
|
|
137
|
+
// otherwise we wait for a console to appear, and then try again.
|
|
138
|
+
function defaultMethodFactory(methodName, _level, _loggerName) {
|
|
139
|
+
/*jshint validthis:true */
|
|
140
|
+
return realMethod(methodName) ||
|
|
141
|
+
enableLoggingWhenConsoleArrives.apply(this, arguments);
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
function Logger(name, factory) {
|
|
145
|
+
// Private instance variables.
|
|
146
|
+
var self = this;
|
|
147
|
+
/**
|
|
148
|
+
* The level inherited from a parent logger (or a global default). We
|
|
149
|
+
* cache this here rather than delegating to the parent so that it stays
|
|
150
|
+
* in sync with the actual logging methods that we have installed (the
|
|
151
|
+
* parent could change levels but we might not have rebuilt the loggers
|
|
152
|
+
* in this child yet).
|
|
153
|
+
* @type {number}
|
|
154
|
+
*/
|
|
155
|
+
var inheritedLevel;
|
|
156
|
+
/**
|
|
157
|
+
* The default level for this logger, if any. If set, this overrides
|
|
158
|
+
* `inheritedLevel`.
|
|
159
|
+
* @type {number|null}
|
|
160
|
+
*/
|
|
161
|
+
var defaultLevel;
|
|
162
|
+
/**
|
|
163
|
+
* A user-specific level for this logger. If set, this overrides
|
|
164
|
+
* `defaultLevel`.
|
|
165
|
+
* @type {number|null}
|
|
166
|
+
*/
|
|
167
|
+
var userLevel;
|
|
168
|
+
|
|
169
|
+
var storageKey = "loglevel";
|
|
170
|
+
if (typeof name === "string") {
|
|
171
|
+
storageKey += ":" + name;
|
|
172
|
+
} else if (typeof name === "symbol") {
|
|
173
|
+
storageKey = undefined;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
function persistLevelIfPossible(levelNum) {
|
|
177
|
+
var levelName = (logMethods[levelNum] || 'silent').toUpperCase();
|
|
178
|
+
|
|
179
|
+
if (typeof window === undefinedType || !storageKey) return;
|
|
180
|
+
|
|
181
|
+
// Use localStorage if available
|
|
182
|
+
try {
|
|
183
|
+
window.localStorage[storageKey] = levelName;
|
|
184
|
+
return;
|
|
185
|
+
} catch (ignore) {}
|
|
186
|
+
|
|
187
|
+
// Use session cookie as fallback
|
|
188
|
+
try {
|
|
189
|
+
window.document.cookie =
|
|
190
|
+
encodeURIComponent(storageKey) + "=" + levelName + ";";
|
|
191
|
+
} catch (ignore) {}
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
function getPersistedLevel() {
|
|
195
|
+
var storedLevel;
|
|
196
|
+
|
|
197
|
+
if (typeof window === undefinedType || !storageKey) return;
|
|
198
|
+
|
|
199
|
+
try {
|
|
200
|
+
storedLevel = window.localStorage[storageKey];
|
|
201
|
+
} catch (ignore) {}
|
|
202
|
+
|
|
203
|
+
// Fallback to cookies if local storage gives us nothing
|
|
204
|
+
if (typeof storedLevel === undefinedType) {
|
|
205
|
+
try {
|
|
206
|
+
var cookie = window.document.cookie;
|
|
207
|
+
var cookieName = encodeURIComponent(storageKey);
|
|
208
|
+
var location = cookie.indexOf(cookieName + "=");
|
|
209
|
+
if (location !== -1) {
|
|
210
|
+
storedLevel = /^([^;]+)/.exec(
|
|
211
|
+
cookie.slice(location + cookieName.length + 1)
|
|
212
|
+
)[1];
|
|
213
|
+
}
|
|
214
|
+
} catch (ignore) {}
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
// If the stored level is not valid, treat it as if nothing was stored.
|
|
218
|
+
if (self.levels[storedLevel] === undefined) {
|
|
219
|
+
storedLevel = undefined;
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
return storedLevel;
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
function clearPersistedLevel() {
|
|
226
|
+
if (typeof window === undefinedType || !storageKey) return;
|
|
227
|
+
|
|
228
|
+
// Use localStorage if available
|
|
229
|
+
try {
|
|
230
|
+
window.localStorage.removeItem(storageKey);
|
|
231
|
+
} catch (ignore) {}
|
|
232
|
+
|
|
233
|
+
// Use session cookie as fallback
|
|
234
|
+
try {
|
|
235
|
+
window.document.cookie =
|
|
236
|
+
encodeURIComponent(storageKey) + "=; expires=Thu, 01 Jan 1970 00:00:00 UTC";
|
|
237
|
+
} catch (ignore) {}
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
function normalizeLevel(input) {
|
|
241
|
+
var level = input;
|
|
242
|
+
if (typeof level === "string" && self.levels[level.toUpperCase()] !== undefined) {
|
|
243
|
+
level = self.levels[level.toUpperCase()];
|
|
244
|
+
}
|
|
245
|
+
if (typeof level === "number" && level >= 0 && level <= self.levels.SILENT) {
|
|
246
|
+
return level;
|
|
247
|
+
} else {
|
|
248
|
+
throw new TypeError("log.setLevel() called with invalid level: " + input);
|
|
249
|
+
}
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
/*
|
|
253
|
+
*
|
|
254
|
+
* Public logger API - see https://github.com/pimterry/loglevel for details
|
|
255
|
+
*
|
|
256
|
+
*/
|
|
257
|
+
|
|
258
|
+
self.name = name;
|
|
259
|
+
|
|
260
|
+
self.levels = { "TRACE": 0, "DEBUG": 1, "INFO": 2, "WARN": 3,
|
|
261
|
+
"ERROR": 4, "SILENT": 5};
|
|
262
|
+
|
|
263
|
+
self.methodFactory = factory || defaultMethodFactory;
|
|
264
|
+
|
|
265
|
+
self.getLevel = function () {
|
|
266
|
+
if (userLevel != null) {
|
|
267
|
+
return userLevel;
|
|
268
|
+
} else if (defaultLevel != null) {
|
|
269
|
+
return defaultLevel;
|
|
270
|
+
} else {
|
|
271
|
+
return inheritedLevel;
|
|
272
|
+
}
|
|
273
|
+
};
|
|
274
|
+
|
|
275
|
+
self.setLevel = function (level, persist) {
|
|
276
|
+
userLevel = normalizeLevel(level);
|
|
277
|
+
if (persist !== false) { // defaults to true
|
|
278
|
+
persistLevelIfPossible(userLevel);
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
// NOTE: in v2, this should call rebuild(), which updates children.
|
|
282
|
+
return replaceLoggingMethods.call(self);
|
|
283
|
+
};
|
|
284
|
+
|
|
285
|
+
self.setDefaultLevel = function (level) {
|
|
286
|
+
defaultLevel = normalizeLevel(level);
|
|
287
|
+
if (!getPersistedLevel()) {
|
|
288
|
+
self.setLevel(level, false);
|
|
289
|
+
}
|
|
290
|
+
};
|
|
291
|
+
|
|
292
|
+
self.resetLevel = function () {
|
|
293
|
+
userLevel = null;
|
|
294
|
+
clearPersistedLevel();
|
|
295
|
+
replaceLoggingMethods.call(self);
|
|
296
|
+
};
|
|
297
|
+
|
|
298
|
+
self.enableAll = function(persist) {
|
|
299
|
+
self.setLevel(self.levels.TRACE, persist);
|
|
300
|
+
};
|
|
301
|
+
|
|
302
|
+
self.disableAll = function(persist) {
|
|
303
|
+
self.setLevel(self.levels.SILENT, persist);
|
|
304
|
+
};
|
|
305
|
+
|
|
306
|
+
self.rebuild = function () {
|
|
307
|
+
if (defaultLogger !== self) {
|
|
308
|
+
inheritedLevel = normalizeLevel(defaultLogger.getLevel());
|
|
309
|
+
}
|
|
310
|
+
replaceLoggingMethods.call(self);
|
|
311
|
+
|
|
312
|
+
if (defaultLogger === self) {
|
|
313
|
+
for (var childName in _loggersByName) {
|
|
314
|
+
_loggersByName[childName].rebuild();
|
|
315
|
+
}
|
|
316
|
+
}
|
|
317
|
+
};
|
|
318
|
+
|
|
319
|
+
// Initialize all the internal levels.
|
|
320
|
+
inheritedLevel = normalizeLevel(
|
|
321
|
+
defaultLogger ? defaultLogger.getLevel() : "WARN"
|
|
322
|
+
);
|
|
323
|
+
var initialLevel = getPersistedLevel();
|
|
324
|
+
if (initialLevel != null) {
|
|
325
|
+
userLevel = normalizeLevel(initialLevel);
|
|
326
|
+
}
|
|
327
|
+
replaceLoggingMethods.call(self);
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
/*
|
|
331
|
+
*
|
|
332
|
+
* Top-level API
|
|
333
|
+
*
|
|
334
|
+
*/
|
|
335
|
+
|
|
336
|
+
defaultLogger = new Logger();
|
|
337
|
+
|
|
338
|
+
defaultLogger.getLogger = function getLogger(name) {
|
|
339
|
+
if ((typeof name !== "symbol" && typeof name !== "string") || name === "") {
|
|
340
|
+
throw new TypeError("You must supply a name when creating a logger.");
|
|
341
|
+
}
|
|
342
|
+
|
|
343
|
+
var logger = _loggersByName[name];
|
|
344
|
+
if (!logger) {
|
|
345
|
+
logger = _loggersByName[name] = new Logger(
|
|
346
|
+
name,
|
|
347
|
+
defaultLogger.methodFactory
|
|
348
|
+
);
|
|
349
|
+
}
|
|
350
|
+
return logger;
|
|
351
|
+
};
|
|
352
|
+
|
|
353
|
+
// Grab the current global log variable in case of overwrite
|
|
354
|
+
var _log = (typeof window !== undefinedType) ? window.log : undefined;
|
|
355
|
+
defaultLogger.noConflict = function() {
|
|
356
|
+
if (typeof window !== undefinedType &&
|
|
357
|
+
window.log === defaultLogger) {
|
|
358
|
+
window.log = _log;
|
|
359
|
+
}
|
|
360
|
+
|
|
361
|
+
return defaultLogger;
|
|
362
|
+
};
|
|
363
|
+
|
|
364
|
+
defaultLogger.getLoggers = function getLoggers() {
|
|
365
|
+
return _loggersByName;
|
|
366
|
+
};
|
|
367
|
+
|
|
368
|
+
// ES6 default export, for compatibility
|
|
369
|
+
defaultLogger['default'] = defaultLogger;
|
|
370
|
+
|
|
371
|
+
return defaultLogger;
|
|
372
|
+
}));
|
|
373
|
+
} (loglevel$1));
|
|
374
|
+
return loglevel$1.exports;
|
|
375
|
+
}
|
|
16
376
|
|
|
17
|
-
(
|
|
18
|
-
(function (root, definition) {
|
|
19
|
-
if (module.exports) {
|
|
20
|
-
module.exports = definition();
|
|
21
|
-
} else {
|
|
22
|
-
root.log = definition();
|
|
23
|
-
}
|
|
24
|
-
}(commonjsGlobal, function () {
|
|
25
|
-
|
|
26
|
-
// Slightly dubious tricks to cut down minimized file size
|
|
27
|
-
var noop = function() {};
|
|
28
|
-
var undefinedType = "undefined";
|
|
29
|
-
var isIE = (typeof window !== undefinedType) && (typeof window.navigator !== undefinedType) && (
|
|
30
|
-
/Trident\/|MSIE /.test(window.navigator.userAgent)
|
|
31
|
-
);
|
|
32
|
-
|
|
33
|
-
var logMethods = [
|
|
34
|
-
"trace",
|
|
35
|
-
"debug",
|
|
36
|
-
"info",
|
|
37
|
-
"warn",
|
|
38
|
-
"error"
|
|
39
|
-
];
|
|
40
|
-
|
|
41
|
-
var _loggersByName = {};
|
|
42
|
-
var defaultLogger = null;
|
|
43
|
-
|
|
44
|
-
// Cross-browser bind equivalent that works at least back to IE6
|
|
45
|
-
function bindMethod(obj, methodName) {
|
|
46
|
-
var method = obj[methodName];
|
|
47
|
-
if (typeof method.bind === 'function') {
|
|
48
|
-
return method.bind(obj);
|
|
49
|
-
} else {
|
|
50
|
-
try {
|
|
51
|
-
return Function.prototype.bind.call(method, obj);
|
|
52
|
-
} catch (e) {
|
|
53
|
-
// Missing bind shim or IE8 + Modernizr, fallback to wrapping
|
|
54
|
-
return function() {
|
|
55
|
-
return Function.prototype.apply.apply(method, [obj, arguments]);
|
|
56
|
-
};
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
// Trace() doesn't print the message in IE, so for that case we need to wrap it
|
|
62
|
-
function traceForIE() {
|
|
63
|
-
if (console.log) {
|
|
64
|
-
if (console.log.apply) {
|
|
65
|
-
console.log.apply(console, arguments);
|
|
66
|
-
} else {
|
|
67
|
-
// In old IE, native console methods themselves don't have apply().
|
|
68
|
-
Function.prototype.apply.apply(console.log, [console, arguments]);
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
if (console.trace) console.trace();
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
// Build the best logging method possible for this env
|
|
75
|
-
// Wherever possible we want to bind, not wrap, to preserve stack traces
|
|
76
|
-
function realMethod(methodName) {
|
|
77
|
-
if (methodName === 'debug') {
|
|
78
|
-
methodName = 'log';
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
if (typeof console === undefinedType) {
|
|
82
|
-
return false; // No method possible, for now - fixed later by enableLoggingWhenConsoleArrives
|
|
83
|
-
} else if (methodName === 'trace' && isIE) {
|
|
84
|
-
return traceForIE;
|
|
85
|
-
} else if (console[methodName] !== undefined) {
|
|
86
|
-
return bindMethod(console, methodName);
|
|
87
|
-
} else if (console.log !== undefined) {
|
|
88
|
-
return bindMethod(console, 'log');
|
|
89
|
-
} else {
|
|
90
|
-
return noop;
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
// These private functions always need `this` to be set properly
|
|
95
|
-
|
|
96
|
-
function replaceLoggingMethods() {
|
|
97
|
-
/*jshint validthis:true */
|
|
98
|
-
var level = this.getLevel();
|
|
99
|
-
|
|
100
|
-
// Replace the actual methods.
|
|
101
|
-
for (var i = 0; i < logMethods.length; i++) {
|
|
102
|
-
var methodName = logMethods[i];
|
|
103
|
-
this[methodName] = (i < level) ?
|
|
104
|
-
noop :
|
|
105
|
-
this.methodFactory(methodName, level, this.name);
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
// Define log.log as an alias for log.debug
|
|
109
|
-
this.log = this.debug;
|
|
110
|
-
|
|
111
|
-
// Return any important warnings.
|
|
112
|
-
if (typeof console === undefinedType && level < this.levels.SILENT) {
|
|
113
|
-
return "No console available for logging";
|
|
114
|
-
}
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
// In old IE versions, the console isn't present until you first open it.
|
|
118
|
-
// We build realMethod() replacements here that regenerate logging methods
|
|
119
|
-
function enableLoggingWhenConsoleArrives(methodName) {
|
|
120
|
-
return function () {
|
|
121
|
-
if (typeof console !== undefinedType) {
|
|
122
|
-
replaceLoggingMethods.call(this);
|
|
123
|
-
this[methodName].apply(this, arguments);
|
|
124
|
-
}
|
|
125
|
-
};
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
// By default, we use closely bound real methods wherever possible, and
|
|
129
|
-
// otherwise we wait for a console to appear, and then try again.
|
|
130
|
-
function defaultMethodFactory(methodName, _level, _loggerName) {
|
|
131
|
-
/*jshint validthis:true */
|
|
132
|
-
return realMethod(methodName) ||
|
|
133
|
-
enableLoggingWhenConsoleArrives.apply(this, arguments);
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
function Logger(name, factory) {
|
|
137
|
-
// Private instance variables.
|
|
138
|
-
var self = this;
|
|
139
|
-
/**
|
|
140
|
-
* The level inherited from a parent logger (or a global default). We
|
|
141
|
-
* cache this here rather than delegating to the parent so that it stays
|
|
142
|
-
* in sync with the actual logging methods that we have installed (the
|
|
143
|
-
* parent could change levels but we might not have rebuilt the loggers
|
|
144
|
-
* in this child yet).
|
|
145
|
-
* @type {number}
|
|
146
|
-
*/
|
|
147
|
-
var inheritedLevel;
|
|
148
|
-
/**
|
|
149
|
-
* The default level for this logger, if any. If set, this overrides
|
|
150
|
-
* `inheritedLevel`.
|
|
151
|
-
* @type {number|null}
|
|
152
|
-
*/
|
|
153
|
-
var defaultLevel;
|
|
154
|
-
/**
|
|
155
|
-
* A user-specific level for this logger. If set, this overrides
|
|
156
|
-
* `defaultLevel`.
|
|
157
|
-
* @type {number|null}
|
|
158
|
-
*/
|
|
159
|
-
var userLevel;
|
|
160
|
-
|
|
161
|
-
var storageKey = "loglevel";
|
|
162
|
-
if (typeof name === "string") {
|
|
163
|
-
storageKey += ":" + name;
|
|
164
|
-
} else if (typeof name === "symbol") {
|
|
165
|
-
storageKey = undefined;
|
|
166
|
-
}
|
|
167
|
-
|
|
168
|
-
function persistLevelIfPossible(levelNum) {
|
|
169
|
-
var levelName = (logMethods[levelNum] || 'silent').toUpperCase();
|
|
170
|
-
|
|
171
|
-
if (typeof window === undefinedType || !storageKey) return;
|
|
172
|
-
|
|
173
|
-
// Use localStorage if available
|
|
174
|
-
try {
|
|
175
|
-
window.localStorage[storageKey] = levelName;
|
|
176
|
-
return;
|
|
177
|
-
} catch (ignore) {}
|
|
178
|
-
|
|
179
|
-
// Use session cookie as fallback
|
|
180
|
-
try {
|
|
181
|
-
window.document.cookie =
|
|
182
|
-
encodeURIComponent(storageKey) + "=" + levelName + ";";
|
|
183
|
-
} catch (ignore) {}
|
|
184
|
-
}
|
|
185
|
-
|
|
186
|
-
function getPersistedLevel() {
|
|
187
|
-
var storedLevel;
|
|
188
|
-
|
|
189
|
-
if (typeof window === undefinedType || !storageKey) return;
|
|
190
|
-
|
|
191
|
-
try {
|
|
192
|
-
storedLevel = window.localStorage[storageKey];
|
|
193
|
-
} catch (ignore) {}
|
|
194
|
-
|
|
195
|
-
// Fallback to cookies if local storage gives us nothing
|
|
196
|
-
if (typeof storedLevel === undefinedType) {
|
|
197
|
-
try {
|
|
198
|
-
var cookie = window.document.cookie;
|
|
199
|
-
var cookieName = encodeURIComponent(storageKey);
|
|
200
|
-
var location = cookie.indexOf(cookieName + "=");
|
|
201
|
-
if (location !== -1) {
|
|
202
|
-
storedLevel = /^([^;]+)/.exec(
|
|
203
|
-
cookie.slice(location + cookieName.length + 1)
|
|
204
|
-
)[1];
|
|
205
|
-
}
|
|
206
|
-
} catch (ignore) {}
|
|
207
|
-
}
|
|
208
|
-
|
|
209
|
-
// If the stored level is not valid, treat it as if nothing was stored.
|
|
210
|
-
if (self.levels[storedLevel] === undefined) {
|
|
211
|
-
storedLevel = undefined;
|
|
212
|
-
}
|
|
213
|
-
|
|
214
|
-
return storedLevel;
|
|
215
|
-
}
|
|
216
|
-
|
|
217
|
-
function clearPersistedLevel() {
|
|
218
|
-
if (typeof window === undefinedType || !storageKey) return;
|
|
219
|
-
|
|
220
|
-
// Use localStorage if available
|
|
221
|
-
try {
|
|
222
|
-
window.localStorage.removeItem(storageKey);
|
|
223
|
-
} catch (ignore) {}
|
|
224
|
-
|
|
225
|
-
// Use session cookie as fallback
|
|
226
|
-
try {
|
|
227
|
-
window.document.cookie =
|
|
228
|
-
encodeURIComponent(storageKey) + "=; expires=Thu, 01 Jan 1970 00:00:00 UTC";
|
|
229
|
-
} catch (ignore) {}
|
|
230
|
-
}
|
|
231
|
-
|
|
232
|
-
function normalizeLevel(input) {
|
|
233
|
-
var level = input;
|
|
234
|
-
if (typeof level === "string" && self.levels[level.toUpperCase()] !== undefined) {
|
|
235
|
-
level = self.levels[level.toUpperCase()];
|
|
236
|
-
}
|
|
237
|
-
if (typeof level === "number" && level >= 0 && level <= self.levels.SILENT) {
|
|
238
|
-
return level;
|
|
239
|
-
} else {
|
|
240
|
-
throw new TypeError("log.setLevel() called with invalid level: " + input);
|
|
241
|
-
}
|
|
242
|
-
}
|
|
243
|
-
|
|
244
|
-
/*
|
|
245
|
-
*
|
|
246
|
-
* Public logger API - see https://github.com/pimterry/loglevel for details
|
|
247
|
-
*
|
|
248
|
-
*/
|
|
249
|
-
|
|
250
|
-
self.name = name;
|
|
251
|
-
|
|
252
|
-
self.levels = { "TRACE": 0, "DEBUG": 1, "INFO": 2, "WARN": 3,
|
|
253
|
-
"ERROR": 4, "SILENT": 5};
|
|
254
|
-
|
|
255
|
-
self.methodFactory = factory || defaultMethodFactory;
|
|
256
|
-
|
|
257
|
-
self.getLevel = function () {
|
|
258
|
-
if (userLevel != null) {
|
|
259
|
-
return userLevel;
|
|
260
|
-
} else if (defaultLevel != null) {
|
|
261
|
-
return defaultLevel;
|
|
262
|
-
} else {
|
|
263
|
-
return inheritedLevel;
|
|
264
|
-
}
|
|
265
|
-
};
|
|
266
|
-
|
|
267
|
-
self.setLevel = function (level, persist) {
|
|
268
|
-
userLevel = normalizeLevel(level);
|
|
269
|
-
if (persist !== false) { // defaults to true
|
|
270
|
-
persistLevelIfPossible(userLevel);
|
|
271
|
-
}
|
|
272
|
-
|
|
273
|
-
// NOTE: in v2, this should call rebuild(), which updates children.
|
|
274
|
-
return replaceLoggingMethods.call(self);
|
|
275
|
-
};
|
|
276
|
-
|
|
277
|
-
self.setDefaultLevel = function (level) {
|
|
278
|
-
defaultLevel = normalizeLevel(level);
|
|
279
|
-
if (!getPersistedLevel()) {
|
|
280
|
-
self.setLevel(level, false);
|
|
281
|
-
}
|
|
282
|
-
};
|
|
283
|
-
|
|
284
|
-
self.resetLevel = function () {
|
|
285
|
-
userLevel = null;
|
|
286
|
-
clearPersistedLevel();
|
|
287
|
-
replaceLoggingMethods.call(self);
|
|
288
|
-
};
|
|
289
|
-
|
|
290
|
-
self.enableAll = function(persist) {
|
|
291
|
-
self.setLevel(self.levels.TRACE, persist);
|
|
292
|
-
};
|
|
293
|
-
|
|
294
|
-
self.disableAll = function(persist) {
|
|
295
|
-
self.setLevel(self.levels.SILENT, persist);
|
|
296
|
-
};
|
|
297
|
-
|
|
298
|
-
self.rebuild = function () {
|
|
299
|
-
if (defaultLogger !== self) {
|
|
300
|
-
inheritedLevel = normalizeLevel(defaultLogger.getLevel());
|
|
301
|
-
}
|
|
302
|
-
replaceLoggingMethods.call(self);
|
|
303
|
-
|
|
304
|
-
if (defaultLogger === self) {
|
|
305
|
-
for (var childName in _loggersByName) {
|
|
306
|
-
_loggersByName[childName].rebuild();
|
|
307
|
-
}
|
|
308
|
-
}
|
|
309
|
-
};
|
|
310
|
-
|
|
311
|
-
// Initialize all the internal levels.
|
|
312
|
-
inheritedLevel = normalizeLevel(
|
|
313
|
-
defaultLogger ? defaultLogger.getLevel() : "WARN"
|
|
314
|
-
);
|
|
315
|
-
var initialLevel = getPersistedLevel();
|
|
316
|
-
if (initialLevel != null) {
|
|
317
|
-
userLevel = normalizeLevel(initialLevel);
|
|
318
|
-
}
|
|
319
|
-
replaceLoggingMethods.call(self);
|
|
320
|
-
}
|
|
321
|
-
|
|
322
|
-
/*
|
|
323
|
-
*
|
|
324
|
-
* Top-level API
|
|
325
|
-
*
|
|
326
|
-
*/
|
|
327
|
-
|
|
328
|
-
defaultLogger = new Logger();
|
|
329
|
-
|
|
330
|
-
defaultLogger.getLogger = function getLogger(name) {
|
|
331
|
-
if ((typeof name !== "symbol" && typeof name !== "string") || name === "") {
|
|
332
|
-
throw new TypeError("You must supply a name when creating a logger.");
|
|
333
|
-
}
|
|
334
|
-
|
|
335
|
-
var logger = _loggersByName[name];
|
|
336
|
-
if (!logger) {
|
|
337
|
-
logger = _loggersByName[name] = new Logger(
|
|
338
|
-
name,
|
|
339
|
-
defaultLogger.methodFactory
|
|
340
|
-
);
|
|
341
|
-
}
|
|
342
|
-
return logger;
|
|
343
|
-
};
|
|
344
|
-
|
|
345
|
-
// Grab the current global log variable in case of overwrite
|
|
346
|
-
var _log = (typeof window !== undefinedType) ? window.log : undefined;
|
|
347
|
-
defaultLogger.noConflict = function() {
|
|
348
|
-
if (typeof window !== undefinedType &&
|
|
349
|
-
window.log === defaultLogger) {
|
|
350
|
-
window.log = _log;
|
|
351
|
-
}
|
|
352
|
-
|
|
353
|
-
return defaultLogger;
|
|
354
|
-
};
|
|
355
|
-
|
|
356
|
-
defaultLogger.getLoggers = function getLoggers() {
|
|
357
|
-
return _loggersByName;
|
|
358
|
-
};
|
|
359
|
-
|
|
360
|
-
// ES6 default export, for compatibility
|
|
361
|
-
defaultLogger['default'] = defaultLogger;
|
|
362
|
-
|
|
363
|
-
return defaultLogger;
|
|
364
|
-
}));
|
|
365
|
-
}(loglevel));
|
|
377
|
+
requireLoglevel();
|
|
366
378
|
|
|
367
379
|
const I=(t,e)=>s=>s(t,e),P=(t,e)=>s=>s(t,e,{append:false}),$=()=>{const t=typeof process<"u"&&process.env?process.env:{},e=t.NODE_ENV==="test",s="VITEST"in t,a="JEST_WORKER_ID"in t,o="PLAYWRIGHT_TEST_BASE_URL"in t,r=t.CI==="true",i=t.TEST==="true"||t.IS_TEST==="true",c=typeof navigator<"u"&&navigator.webdriver===true,m=typeof navigator<"u"&&/playwright|puppeteer|webdriver|selenium|testcafe/i.test(navigator.userAgent);return e||s||a||o||r||i||c||m},n$1={A11yUi:{CSS_STYLE_CACHE:new Map,IS_TEST_ENVIRONMENT:$(),PERFORMANCE_MEASURES:new Map,STYLING_TASK_QUEUE:new Map,THEMES:new Map,showAverageTimes:()=>{const t={};for(const[s,a]of n$1.A11yUi.PERFORMANCE_MEASURES.entries())t[s]=[a.totalTime/a.count,a.count];const e=Object.entries(t).sort((s,a)=>a[1][0]-s[1][0]);return console.table(Object.fromEntries(e.map(([s,[a,o]])=>[s,{"avg (ms)":parseFloat(a.toFixed(2)),count:o}]))),t}}};const w=new Set,W=/--[^;]+/g,q=/:/,J=typeof MutationObserver<"u";let N=()=>{Math.min(25+Math.log2(n$1.A11yUi.STYLING_TASK_QUEUE.size+1)*20,250);};const X=(t,e)=>{let s=e.match(W);if(Array.isArray(s)){s=s.filter(o=>q.test(o));const a=document.createElement("style");a.innerHTML=`.${t} {${s.join(";")}}`,document.querySelector("head")?.appendChild(a);}w.add(t);},y=(t,e)=>{const s=n$1.A11yUi.THEMES.get(t);return s instanceof Map&&s.has(e)?s.get(e):""},Z=t=>{for(const e of Array.from(t.childNodes))if(e instanceof HTMLStyleElement&&e.tagName==="STYLE"&&e.dataset.themingFallback===void 0)t.removeChild(e);else break},ee=(t,e)=>{try{if(n$1.A11yUi.Theme?.mode==="ssr")throw new Error("SSR");const s=[];e.forEach(a=>{const o=new CSSStyleSheet;o.replaceSync(a),s.push(o);}),t.adoptedStyleSheets=s;}catch{[...e].reverse().forEach((a,o)=>{if(typeof a!="string"||a.length===0)return;const r=document.createElement("style");switch(r.dataset.themingFallback="",o){case 4:r.dataset.themingBaseA11y="";break;case 3:r.dataset.themingBaseGlobal="";break;case 2:r.dataset.themingBaseComponent="";break;case 1:r.dataset.themingCustomGlobal="";break;case 0:r.dataset.themingCustomComponent="";break;default:r.dataset.themingUnknown="";break}r.innerHTML=a,t.insertBefore(r,t.firstChild);});}},te=(t,e,s)=>{if(s!==false){const a=[...Array.from(t.childNodes).filter(r=>r instanceof HTMLStyleElement&&r.tagName==="STYLE")];let o;try{o=[...Array.from(t.adoptedStyleSheets)];}catch{o=[];}s?.mode==="before"?(a.reverse().forEach(r=>e.unshift(r.innerHTML)),o.reverse().forEach(r=>e.unshift(Array.from(r.cssRules).map(i=>i.cssText).join("")))):s?.mode==="after"&&(a.forEach(r=>e.push(r.innerHTML)),o.forEach(r=>e.push(Array.from(r.cssRules).map(i=>i.cssText).join(""))));}},se=(t,e,s)=>{const a=e.name||"default";let o;try{if(t.shadowRoot===null)throw new Error("ShadowRoot is null");o=t.shadowRoot;}catch{o=t;}if(n$1.A11yUi.CSS_STYLE_CACHE.get(a)?.has(t.tagName))v(t,o,n$1.A11yUi.CSS_STYLE_CACHE.get(a)?.get(t.tagName),s);else {const r=y(a,"PROPERTIES"),i=y(a,"GLOBAL"),c=y(a,t.tagName);w.has(a)===false&&X(a,i);const m=[r,i,c];te(o,m,e.encroachCss),e.cache===true&&(n$1.A11yUi.CSS_STYLE_CACHE.has(a)===false&&n$1.A11yUi.CSS_STYLE_CACHE.set(a,new Map),n$1.A11yUi.CSS_STYLE_CACHE.get(a)?.set(t.tagName,m)),v(t,o,m,s);}},v=(t,e,s,a)=>{const o=performance.now();if(Z(e),ee(e,s),H(t),a(),n$1.A11yUi.PERFORMANCE_MEASURES.has(t.tagName)){const r=n$1.A11yUi.PERFORMANCE_MEASURES.get(t.tagName);r.count+=1,r.totalTime+=performance.now()-o;}else n$1.A11yUi.PERFORMANCE_MEASURES.set(t.tagName,{count:1,totalTime:performance.now()-o});},L=t=>{const e=n$1.A11yUi.STYLING_TASK_QUEUE.get(t);if(e){const{resetCss:s,themeDetails:a}=e;se(t,a,s),H(t);}};const oe={attributes:true,attributeFilter:[],childList:false,subtree:false},R=J?new MutationObserver((t,e)=>{for(const s of t){const a=s.target;a.classList.contains("hydrated")&&(L(a),e.observe(a,oe));}}):null;R&&(N=()=>{});const H=t=>{n$1.A11yUi.STYLING_TASK_QUEUE.delete(t),N();};class ie{Prefix;Key;Tag;createTheme=(e,s)=>P(e,s);createTranslation=(e,s)=>I(e,s);constructor(e,s,a){this.Prefix=e,this.Key=Object.getOwnPropertyNames(s),this.Tag=Object.getOwnPropertyNames(a);}}
|
|
368
380
|
|
|
@@ -522,229 +534,329 @@ devHint(`We appreciate any feedback, comments, screenshots, or demo links of an
|
|
|
522
534
|
|
|
523
535
|
var rgbaConvert = {exports: {}};
|
|
524
536
|
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
rgbaConvert.exports
|
|
529
|
-
|
|
530
|
-
rgbaConvert.exports
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
537
|
+
var hasRequiredRgbaConvert;
|
|
538
|
+
|
|
539
|
+
function requireRgbaConvert () {
|
|
540
|
+
if (hasRequiredRgbaConvert) return rgbaConvert.exports;
|
|
541
|
+
hasRequiredRgbaConvert = 1;
|
|
542
|
+
rgbaConvert.exports = arr;
|
|
543
|
+
rgbaConvert.exports.arr = arr;
|
|
544
|
+
rgbaConvert.exports.obj = obj;
|
|
545
|
+
rgbaConvert.exports.css = css;
|
|
546
|
+
rgbaConvert.exports.hex = hex;
|
|
547
|
+
rgbaConvert.exports.num = num;
|
|
548
|
+
|
|
549
|
+
function arr(data) {
|
|
550
|
+
var a = parse(data);
|
|
551
|
+
if (a.length == 3) {
|
|
552
|
+
return a.concat(255)
|
|
553
|
+
} else {
|
|
554
|
+
a[3] = Math.round(a[3]);
|
|
555
|
+
return a
|
|
556
|
+
}
|
|
557
|
+
}
|
|
558
|
+
|
|
559
|
+
function obj(data) {
|
|
560
|
+
var a = parse(data);
|
|
561
|
+
return {
|
|
562
|
+
r: a[0],
|
|
563
|
+
g: a[1],
|
|
564
|
+
b: a[2],
|
|
565
|
+
a: a.length == 3
|
|
566
|
+
? 255
|
|
567
|
+
: Math.round(a[3])
|
|
568
|
+
}
|
|
569
|
+
}
|
|
570
|
+
|
|
571
|
+
function css(data) {
|
|
572
|
+
var a = parse(data);
|
|
573
|
+
if (a.length == 3) a.push(255);
|
|
574
|
+
|
|
575
|
+
return a[3] == 255
|
|
576
|
+
? 'rgb(' + a[0] + ', ' + a[1] + ', ' + a[2] + ')'
|
|
577
|
+
: a[3] == 0
|
|
578
|
+
? 'rgba(' + a[0] + ', ' + a[1] + ', ' + a[2] + ', 0)'
|
|
579
|
+
: 'rgba(' + a[0] + ', ' + a[1] + ', ' + a[2] + ', ' + String(a[3] / 255).substr(1) + ')'
|
|
580
|
+
}
|
|
581
|
+
|
|
582
|
+
function hex(data) {
|
|
583
|
+
var a = parse(data);
|
|
584
|
+
if (a.length == 3) a.push(255);
|
|
585
|
+
var opaque = a[3] == 255;
|
|
586
|
+
var r = num2hex(a[0]);
|
|
587
|
+
var g = num2hex(a[1]);
|
|
588
|
+
var b = num2hex(a[2]);
|
|
589
|
+
var a = num2hex(Math.round(a[3]));
|
|
590
|
+
var is = isshort(r, g, b, a);
|
|
591
|
+
if (opaque) {
|
|
592
|
+
return is
|
|
593
|
+
? '#' + r.charAt(0) + g.charAt(0) + b.charAt(0)
|
|
594
|
+
: '#' + r + g + b
|
|
595
|
+
}
|
|
596
|
+
return is
|
|
597
|
+
? '#' + r.charAt(0) + g.charAt(0) + b.charAt(0) + a.charAt(0)
|
|
598
|
+
: '#' + r + g + b + a
|
|
599
|
+
}
|
|
600
|
+
|
|
601
|
+
function num(data) {
|
|
602
|
+
var a = parse(data);
|
|
603
|
+
if (a.length == 3) a.push(255);
|
|
604
|
+
else a[3] = Math.round(a[3]);
|
|
605
|
+
return ((a[3] << 24) >>> 0 | a[0] << 16 | a[1] << 8 | a[2]) >>> 0
|
|
606
|
+
}
|
|
607
|
+
|
|
608
|
+
function parse(data) {
|
|
609
|
+
if (typeof data == 'string') {
|
|
610
|
+
data = data.toLowerCase();
|
|
611
|
+
return name(data)
|
|
612
|
+
|| hex3(data)
|
|
613
|
+
|| hex6(data)
|
|
614
|
+
|| rgb(data)
|
|
615
|
+
|| rgba(data)
|
|
616
|
+
|| [0, 0, 0, 255]
|
|
617
|
+
}
|
|
618
|
+
return object(data)
|
|
619
|
+
|| array(data)
|
|
620
|
+
|| number(data)
|
|
621
|
+
|| [0, 0, 0, 255]
|
|
622
|
+
}
|
|
623
|
+
|
|
624
|
+
function num2hex(num) {
|
|
625
|
+
var s = num.toString(16);
|
|
626
|
+
return s.length == 1
|
|
627
|
+
? '0' + s
|
|
628
|
+
: s
|
|
629
|
+
}
|
|
630
|
+
|
|
631
|
+
function isshort(r, g, b, a) {
|
|
632
|
+
var h = ['ff', '00', '11', '22', '33', '44', '55', '66',
|
|
633
|
+
'77', '88', '99', 'aa', 'bb', 'cc', 'dd', 'ee'];
|
|
634
|
+
return h.indexOf(r) != -1
|
|
635
|
+
&& h.indexOf(g) != -1
|
|
636
|
+
&& h.indexOf(b) != -1
|
|
637
|
+
&& h.indexOf(a) != -1
|
|
638
|
+
}
|
|
639
|
+
|
|
640
|
+
function name(str) {
|
|
641
|
+
if (str == 'red') return [255, 0, 0]
|
|
642
|
+
if (str == 'green') return [0, 255, 0]
|
|
643
|
+
if (str == 'blue') return [0, 0, 255]
|
|
644
|
+
if (str == 'black') return [0, 0, 0]
|
|
645
|
+
if (str == 'white') return [255, 255, 255]
|
|
646
|
+
if (str == 'cyan') return [0, 255, 255]
|
|
647
|
+
if (str == 'gray') return [128, 128, 128]
|
|
648
|
+
if (str == 'grey') return [128, 128, 128]
|
|
649
|
+
if (str == 'magenta') return [255, 0, 255]
|
|
650
|
+
// ok, not the real css `pink` but my personal `magenta` alias
|
|
651
|
+
// `pink` is simpler than `fuchsia`, whatever...
|
|
652
|
+
if (str == 'pink') return [255, 0, 255]
|
|
653
|
+
if (str == 'yellow') return [255, 255, 0]
|
|
654
|
+
}
|
|
655
|
+
|
|
656
|
+
function hex2num(str) {
|
|
657
|
+
return str.length == 1
|
|
658
|
+
? parseInt(str + str, 16)
|
|
659
|
+
: parseInt(str, 16)
|
|
660
|
+
}
|
|
661
|
+
|
|
662
|
+
function hex3(str) {
|
|
663
|
+
var s = str.replace(/^#/,'');
|
|
664
|
+
var l = s.length;
|
|
665
|
+
if (l == 3 || l == 4) {
|
|
666
|
+
var r = hex2num(s[0]);
|
|
667
|
+
var g = hex2num(s[1]);
|
|
668
|
+
var b = hex2num(s[2]);
|
|
669
|
+
var a = l == 3
|
|
670
|
+
? 255
|
|
671
|
+
: hex2num(s[3]);
|
|
672
|
+
|
|
673
|
+
if (isNaN(r) || isNaN(g) || isNaN(b) || isNaN(a)) return
|
|
674
|
+
|
|
675
|
+
return [r, g, b, a]
|
|
676
|
+
}
|
|
677
|
+
}
|
|
678
|
+
|
|
679
|
+
function hex6(str) {
|
|
680
|
+
var s = str.replace(/^#/,'');
|
|
681
|
+
var l = s.length;
|
|
682
|
+
if (l == 6 || l == 8) {
|
|
683
|
+
var r = hex2num(s.slice(0, 2));
|
|
684
|
+
var g = hex2num(s.slice(2, 4));
|
|
685
|
+
var b = hex2num(s.slice(4, 6));
|
|
686
|
+
var a = l == 6
|
|
687
|
+
? 255
|
|
688
|
+
: hex2num(s.slice(6, 8));
|
|
689
|
+
|
|
690
|
+
if (isNaN(r) || isNaN(g) || isNaN(b) || isNaN(a)) return
|
|
691
|
+
|
|
692
|
+
return [r, g, b, a]
|
|
693
|
+
}
|
|
694
|
+
}
|
|
695
|
+
|
|
696
|
+
function getnum(val, integer) {
|
|
697
|
+
if (typeof val != 'number') return -1
|
|
698
|
+
if (integer === true && Math.floor(val) !== val) return -1
|
|
699
|
+
return val >= 0 && val <= 255
|
|
700
|
+
? val
|
|
701
|
+
: -1
|
|
702
|
+
}
|
|
703
|
+
|
|
704
|
+
function object(obj) {
|
|
705
|
+
if (Object.prototype.toString.call(obj) === '[object Object]'
|
|
706
|
+
&& Object.getPrototypeOf(obj) === Object.getPrototypeOf({})) {
|
|
707
|
+
var r = getnum(obj.r != undefined ? obj.r : obj.red != undefined ? obj.red : 0, true);
|
|
708
|
+
var g = getnum(obj.g != undefined ? obj.g : obj.green != undefined ? obj.green : 0, true);
|
|
709
|
+
var b = getnum(obj.b != undefined ? obj.b : obj.blue != undefined ? obj.blue : 0, true);
|
|
710
|
+
var a = getnum(obj.a != undefined ? obj.a : obj.alpha != undefined ? obj.alpha : 255, true);
|
|
711
|
+
if (r != -1 && g != -1 && b != -1 && a != -1) {
|
|
712
|
+
return [r, g, b, a]
|
|
713
|
+
}
|
|
714
|
+
}
|
|
715
|
+
}
|
|
716
|
+
|
|
717
|
+
function array(arr) {
|
|
718
|
+
if (Array.isArray(arr) && (arr.length == 3 || arr.length == 4)) {
|
|
719
|
+
var r = getnum(arr[0], true);
|
|
720
|
+
var g = getnum(arr[1], true);
|
|
721
|
+
var b = getnum(arr[2], true);
|
|
722
|
+
var a = getnum(arr[3] != undefined ? arr[3] : 255, true);
|
|
723
|
+
if (r != -1 && g != -1 && b != -1 && a != -1) {
|
|
724
|
+
return [r, g, b, a]
|
|
725
|
+
}
|
|
726
|
+
}
|
|
727
|
+
}
|
|
728
|
+
|
|
729
|
+
function number(num) {
|
|
730
|
+
if (typeof num == 'number' && Math.floor(num) == num && num <= 4294967295 && num >= 0) {
|
|
731
|
+
var a = num >> 24 & 255;
|
|
732
|
+
var r = num >> 16 & 255;
|
|
733
|
+
var g = num >> 8 & 255;
|
|
734
|
+
var b = num & 255;
|
|
735
|
+
return [r, g, b, a]
|
|
736
|
+
}
|
|
737
|
+
}
|
|
738
|
+
|
|
739
|
+
function rgb(str) {
|
|
740
|
+
if (str.substr(0, 4) == 'rgb(') {
|
|
741
|
+
str = str.match(/^rgb\(([^)]+)\)/)[1];
|
|
742
|
+
var t = str.split(/ *, */).map(Number);
|
|
743
|
+
var r = getnum(t[0], true);
|
|
744
|
+
var g = getnum(t[1], true);
|
|
745
|
+
var b = getnum(t[2], true);
|
|
746
|
+
if (r != -1 && g != -1 && b != -1) {
|
|
747
|
+
return [r, g, b, 255]
|
|
748
|
+
}
|
|
749
|
+
}
|
|
750
|
+
}
|
|
751
|
+
|
|
752
|
+
function rgba(str) {
|
|
753
|
+
if (str.substr(0, 5) == 'rgba(') {
|
|
754
|
+
str = str.match(/^rgba\(([^)]+)\)/)[1];
|
|
755
|
+
var t = str.split(/ *, */).map(Number);
|
|
756
|
+
var r = getnum(t[0], true);
|
|
757
|
+
var g = getnum(t[1], true);
|
|
758
|
+
var b = getnum(t[2], true);
|
|
759
|
+
var a = getnum(t[3] * 255);
|
|
760
|
+
if (r != -1 && g != -1 && b != -1 && a != -1) {
|
|
761
|
+
return [r, g, b, a]
|
|
762
|
+
}
|
|
763
|
+
}
|
|
764
|
+
}
|
|
765
|
+
return rgbaConvert.exports;
|
|
540
766
|
}
|
|
541
767
|
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
768
|
+
requireRgbaConvert();
|
|
769
|
+
|
|
770
|
+
var cjs$1 = {};
|
|
771
|
+
|
|
772
|
+
var hasRequiredCjs$1;
|
|
773
|
+
|
|
774
|
+
function requireCjs$1 () {
|
|
775
|
+
if (hasRequiredCjs$1) return cjs$1;
|
|
776
|
+
hasRequiredCjs$1 = 1;
|
|
777
|
+
(function (exports) {
|
|
778
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
779
|
+
exports.querySelectorAll = void 0;
|
|
780
|
+
const pushNodes = (set, domNodes) => {
|
|
781
|
+
domNodes.forEach((domNode) => {
|
|
782
|
+
if (set.has(domNode) === false) {
|
|
783
|
+
set.add(domNode);
|
|
784
|
+
}
|
|
785
|
+
});
|
|
786
|
+
};
|
|
787
|
+
const querySelectorAll = (selector, node = document) => {
|
|
788
|
+
if (node instanceof Document ||
|
|
789
|
+
node instanceof HTMLElement ||
|
|
790
|
+
node instanceof ShadowRoot) {
|
|
791
|
+
const domNodes = new Set();
|
|
792
|
+
pushNodes(domNodes, node.querySelectorAll(selector));
|
|
793
|
+
const nodeList = node.querySelectorAll('[class*="hydrated"]');
|
|
794
|
+
for (let i = 0; i < nodeList.length; i++) {
|
|
795
|
+
const shadowRoot = nodeList[i].shadowRoot;
|
|
796
|
+
if (typeof shadowRoot === "object" && shadowRoot !== null) {
|
|
797
|
+
pushNodes(domNodes, (0, exports.querySelectorAll)(selector, shadowRoot));
|
|
798
|
+
}
|
|
799
|
+
else {
|
|
800
|
+
pushNodes(domNodes, (0, exports.querySelectorAll)(selector, nodeList[i]));
|
|
801
|
+
}
|
|
802
|
+
}
|
|
803
|
+
return Array.from(domNodes);
|
|
804
|
+
}
|
|
805
|
+
else {
|
|
806
|
+
throw new Error(`The parameter document for the method querySelectorAll is not type of Document, HTMLElement or ShadowRoot.`);
|
|
807
|
+
}
|
|
808
|
+
};
|
|
809
|
+
exports.querySelectorAll = querySelectorAll;
|
|
810
|
+
|
|
811
|
+
} (cjs$1));
|
|
812
|
+
return cjs$1;
|
|
552
813
|
}
|
|
553
814
|
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
815
|
+
requireCjs$1();
|
|
816
|
+
|
|
817
|
+
var cjs = {};
|
|
818
|
+
|
|
819
|
+
var hasRequiredCjs;
|
|
820
|
+
|
|
821
|
+
function requireCjs () {
|
|
822
|
+
if (hasRequiredCjs) return cjs;
|
|
823
|
+
hasRequiredCjs = 1;
|
|
824
|
+
(function (exports) {
|
|
825
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
826
|
+
exports.querySelector = void 0;
|
|
827
|
+
const querySelector = (selector, node = document) => {
|
|
828
|
+
if (node instanceof Document ||
|
|
829
|
+
node instanceof HTMLElement ||
|
|
830
|
+
node instanceof ShadowRoot) {
|
|
831
|
+
let domNode = node.querySelector(selector);
|
|
832
|
+
if (domNode === null) {
|
|
833
|
+
const nodeList = node.querySelectorAll('[class*="hydrated"]');
|
|
834
|
+
for (let i = 0; i < nodeList.length; i++) {
|
|
835
|
+
const shadowRoot = nodeList[i].shadowRoot;
|
|
836
|
+
if (typeof shadowRoot === "object" && shadowRoot !== null) {
|
|
837
|
+
domNode = (0, exports.querySelector)(selector, shadowRoot);
|
|
838
|
+
}
|
|
839
|
+
else {
|
|
840
|
+
domNode = (0, exports.querySelector)(selector, nodeList[i]);
|
|
841
|
+
}
|
|
842
|
+
if (domNode !== null) {
|
|
843
|
+
break;
|
|
844
|
+
}
|
|
845
|
+
}
|
|
846
|
+
}
|
|
847
|
+
return domNode;
|
|
848
|
+
}
|
|
849
|
+
else {
|
|
850
|
+
throw new Error(`The parameter document for the method querySelector is not type of Document, HTMLElement or ShadowRoot.`);
|
|
851
|
+
}
|
|
852
|
+
};
|
|
853
|
+
exports.querySelector = querySelector;
|
|
854
|
+
|
|
855
|
+
} (cjs));
|
|
856
|
+
return cjs;
|
|
563
857
|
}
|
|
564
858
|
|
|
565
|
-
|
|
566
|
-
var a = parse(data);
|
|
567
|
-
if (a.length == 3) a.push(255);
|
|
568
|
-
var opaque = a[3] == 255;
|
|
569
|
-
var r = num2hex(a[0]);
|
|
570
|
-
var g = num2hex(a[1]);
|
|
571
|
-
var b = num2hex(a[2]);
|
|
572
|
-
var a = num2hex(Math.round(a[3]));
|
|
573
|
-
var is = isshort(r, g, b, a);
|
|
574
|
-
if (opaque) {
|
|
575
|
-
return is
|
|
576
|
-
? '#' + r.charAt(0) + g.charAt(0) + b.charAt(0)
|
|
577
|
-
: '#' + r + g + b
|
|
578
|
-
}
|
|
579
|
-
return is
|
|
580
|
-
? '#' + r.charAt(0) + g.charAt(0) + b.charAt(0) + a.charAt(0)
|
|
581
|
-
: '#' + r + g + b + a
|
|
582
|
-
}
|
|
583
|
-
|
|
584
|
-
function num(data) {
|
|
585
|
-
var a = parse(data);
|
|
586
|
-
if (a.length == 3) a.push(255);
|
|
587
|
-
else a[3] = Math.round(a[3]);
|
|
588
|
-
return ((a[3] << 24) >>> 0 | a[0] << 16 | a[1] << 8 | a[2]) >>> 0
|
|
589
|
-
}
|
|
590
|
-
|
|
591
|
-
function parse(data) {
|
|
592
|
-
if (typeof data == 'string') {
|
|
593
|
-
data = data.toLowerCase();
|
|
594
|
-
return name(data)
|
|
595
|
-
|| hex3(data)
|
|
596
|
-
|| hex6(data)
|
|
597
|
-
|| rgb(data)
|
|
598
|
-
|| rgba(data)
|
|
599
|
-
|| [0, 0, 0, 255]
|
|
600
|
-
}
|
|
601
|
-
return object(data)
|
|
602
|
-
|| array(data)
|
|
603
|
-
|| number(data)
|
|
604
|
-
|| [0, 0, 0, 255]
|
|
605
|
-
}
|
|
606
|
-
|
|
607
|
-
function num2hex(num) {
|
|
608
|
-
var s = num.toString(16);
|
|
609
|
-
return s.length == 1
|
|
610
|
-
? '0' + s
|
|
611
|
-
: s
|
|
612
|
-
}
|
|
613
|
-
|
|
614
|
-
function isshort(r, g, b, a) {
|
|
615
|
-
var h = ['ff', '00', '11', '22', '33', '44', '55', '66',
|
|
616
|
-
'77', '88', '99', 'aa', 'bb', 'cc', 'dd', 'ee'];
|
|
617
|
-
return h.indexOf(r) != -1
|
|
618
|
-
&& h.indexOf(g) != -1
|
|
619
|
-
&& h.indexOf(b) != -1
|
|
620
|
-
&& h.indexOf(a) != -1
|
|
621
|
-
}
|
|
622
|
-
|
|
623
|
-
function name(str) {
|
|
624
|
-
if (str == 'red') return [255, 0, 0]
|
|
625
|
-
if (str == 'green') return [0, 255, 0]
|
|
626
|
-
if (str == 'blue') return [0, 0, 255]
|
|
627
|
-
if (str == 'black') return [0, 0, 0]
|
|
628
|
-
if (str == 'white') return [255, 255, 255]
|
|
629
|
-
if (str == 'cyan') return [0, 255, 255]
|
|
630
|
-
if (str == 'gray') return [128, 128, 128]
|
|
631
|
-
if (str == 'grey') return [128, 128, 128]
|
|
632
|
-
if (str == 'magenta') return [255, 0, 255]
|
|
633
|
-
// ok, not the real css `pink` but my personal `magenta` alias
|
|
634
|
-
// `pink` is simpler than `fuchsia`, whatever...
|
|
635
|
-
if (str == 'pink') return [255, 0, 255]
|
|
636
|
-
if (str == 'yellow') return [255, 255, 0]
|
|
637
|
-
}
|
|
638
|
-
|
|
639
|
-
function hex2num(str) {
|
|
640
|
-
return str.length == 1
|
|
641
|
-
? parseInt(str + str, 16)
|
|
642
|
-
: parseInt(str, 16)
|
|
643
|
-
}
|
|
644
|
-
|
|
645
|
-
function hex3(str) {
|
|
646
|
-
var s = str.replace(/^#/,'');
|
|
647
|
-
var l = s.length;
|
|
648
|
-
if (l == 3 || l == 4) {
|
|
649
|
-
var r = hex2num(s[0]);
|
|
650
|
-
var g = hex2num(s[1]);
|
|
651
|
-
var b = hex2num(s[2]);
|
|
652
|
-
var a = l == 3
|
|
653
|
-
? 255
|
|
654
|
-
: hex2num(s[3]);
|
|
655
|
-
|
|
656
|
-
if (isNaN(r) || isNaN(g) || isNaN(b) || isNaN(a)) return
|
|
657
|
-
|
|
658
|
-
return [r, g, b, a]
|
|
659
|
-
}
|
|
660
|
-
}
|
|
661
|
-
|
|
662
|
-
function hex6(str) {
|
|
663
|
-
var s = str.replace(/^#/,'');
|
|
664
|
-
var l = s.length;
|
|
665
|
-
if (l == 6 || l == 8) {
|
|
666
|
-
var r = hex2num(s.slice(0, 2));
|
|
667
|
-
var g = hex2num(s.slice(2, 4));
|
|
668
|
-
var b = hex2num(s.slice(4, 6));
|
|
669
|
-
var a = l == 6
|
|
670
|
-
? 255
|
|
671
|
-
: hex2num(s.slice(6, 8));
|
|
672
|
-
|
|
673
|
-
if (isNaN(r) || isNaN(g) || isNaN(b) || isNaN(a)) return
|
|
674
|
-
|
|
675
|
-
return [r, g, b, a]
|
|
676
|
-
}
|
|
677
|
-
}
|
|
678
|
-
|
|
679
|
-
function getnum(val, integer) {
|
|
680
|
-
if (typeof val != 'number') return -1
|
|
681
|
-
if (integer === true && Math.floor(val) !== val) return -1
|
|
682
|
-
return val >= 0 && val <= 255
|
|
683
|
-
? val
|
|
684
|
-
: -1
|
|
685
|
-
}
|
|
686
|
-
|
|
687
|
-
function object(obj) {
|
|
688
|
-
if (Object.prototype.toString.call(obj) === '[object Object]'
|
|
689
|
-
&& Object.getPrototypeOf(obj) === Object.getPrototypeOf({})) {
|
|
690
|
-
var r = getnum(obj.r != undefined ? obj.r : obj.red != undefined ? obj.red : 0, true);
|
|
691
|
-
var g = getnum(obj.g != undefined ? obj.g : obj.green != undefined ? obj.green : 0, true);
|
|
692
|
-
var b = getnum(obj.b != undefined ? obj.b : obj.blue != undefined ? obj.blue : 0, true);
|
|
693
|
-
var a = getnum(obj.a != undefined ? obj.a : obj.alpha != undefined ? obj.alpha : 255, true);
|
|
694
|
-
if (r != -1 && g != -1 && b != -1 && a != -1) {
|
|
695
|
-
return [r, g, b, a]
|
|
696
|
-
}
|
|
697
|
-
}
|
|
698
|
-
}
|
|
699
|
-
|
|
700
|
-
function array(arr) {
|
|
701
|
-
if (Array.isArray(arr) && (arr.length == 3 || arr.length == 4)) {
|
|
702
|
-
var r = getnum(arr[0], true);
|
|
703
|
-
var g = getnum(arr[1], true);
|
|
704
|
-
var b = getnum(arr[2], true);
|
|
705
|
-
var a = getnum(arr[3] != undefined ? arr[3] : 255, true);
|
|
706
|
-
if (r != -1 && g != -1 && b != -1 && a != -1) {
|
|
707
|
-
return [r, g, b, a]
|
|
708
|
-
}
|
|
709
|
-
}
|
|
710
|
-
}
|
|
711
|
-
|
|
712
|
-
function number(num) {
|
|
713
|
-
if (typeof num == 'number' && Math.floor(num) == num && num <= 4294967295 && num >= 0) {
|
|
714
|
-
var a = num >> 24 & 255;
|
|
715
|
-
var r = num >> 16 & 255;
|
|
716
|
-
var g = num >> 8 & 255;
|
|
717
|
-
var b = num & 255;
|
|
718
|
-
return [r, g, b, a]
|
|
719
|
-
}
|
|
720
|
-
}
|
|
721
|
-
|
|
722
|
-
function rgb(str) {
|
|
723
|
-
if (str.substr(0, 4) == 'rgb(') {
|
|
724
|
-
str = str.match(/^rgb\(([^)]+)\)/)[1];
|
|
725
|
-
var t = str.split(/ *, */).map(Number);
|
|
726
|
-
var r = getnum(t[0], true);
|
|
727
|
-
var g = getnum(t[1], true);
|
|
728
|
-
var b = getnum(t[2], true);
|
|
729
|
-
if (r != -1 && g != -1 && b != -1) {
|
|
730
|
-
return [r, g, b, 255]
|
|
731
|
-
}
|
|
732
|
-
}
|
|
733
|
-
}
|
|
734
|
-
|
|
735
|
-
function rgba(str) {
|
|
736
|
-
if (str.substr(0, 5) == 'rgba(') {
|
|
737
|
-
str = str.match(/^rgba\(([^)]+)\)/)[1];
|
|
738
|
-
var t = str.split(/ *, */).map(Number);
|
|
739
|
-
var r = getnum(t[0], true);
|
|
740
|
-
var g = getnum(t[1], true);
|
|
741
|
-
var b = getnum(t[2], true);
|
|
742
|
-
var a = getnum(t[3] * 255);
|
|
743
|
-
if (r != -1 && g != -1 && b != -1 && a != -1) {
|
|
744
|
-
return [r, g, b, a]
|
|
745
|
-
}
|
|
746
|
-
}
|
|
747
|
-
}
|
|
859
|
+
requireCjs();
|
|
748
860
|
|
|
749
861
|
let processEnv = 'development';
|
|
750
862
|
try {
|
|
@@ -761,8 +873,6 @@ var KoliBriProgressVariantEnum;
|
|
|
761
873
|
KoliBriProgressVariantEnum["cycle"] = "cycle";
|
|
762
874
|
})(KoliBriProgressVariantEnum || (KoliBriProgressVariantEnum = {}));
|
|
763
875
|
|
|
764
|
-
const KoliBri = new ie('kol', KeyEnum, TagEnum);
|
|
765
|
-
|
|
766
876
|
/*!
|
|
767
877
|
* KoliBri - The accessible HTML-Standard
|
|
768
878
|
*/
|
|
@@ -790,61 +900,72 @@ var KolEvent;
|
|
|
790
900
|
/*!
|
|
791
901
|
* KoliBri - The accessible HTML-Standard
|
|
792
902
|
*/
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
*/
|
|
903
|
+
|
|
904
|
+
var easyBem;
|
|
905
|
+
var hasRequiredEasyBem;
|
|
906
|
+
|
|
907
|
+
function requireEasyBem () {
|
|
908
|
+
if (hasRequiredEasyBem) return easyBem;
|
|
909
|
+
hasRequiredEasyBem = 1;
|
|
801
910
|
|
|
802
|
-
/**
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
if (!elementOrMods) {
|
|
811
|
-
return componentName;
|
|
812
|
-
}
|
|
911
|
+
/**
|
|
912
|
+
* BEM class name factory.
|
|
913
|
+
*
|
|
914
|
+
* @typedef {Function} Bem
|
|
915
|
+
* @param {String|Object} [elementOrMods] Element name or hash object with mods
|
|
916
|
+
* @param {Object} [mods] Hash object with mods
|
|
917
|
+
* @returns {String}
|
|
918
|
+
*/
|
|
813
919
|
|
|
814
|
-
|
|
920
|
+
/**
|
|
921
|
+
* Returns BEM class name factory.
|
|
922
|
+
*
|
|
923
|
+
* @param {String} componentName Block name
|
|
924
|
+
* @returns {Bem}
|
|
925
|
+
*/
|
|
926
|
+
easyBem = function bem(componentName) {
|
|
927
|
+
return function (elementOrMods, mods) {
|
|
928
|
+
if (!elementOrMods) {
|
|
929
|
+
return componentName;
|
|
930
|
+
}
|
|
815
931
|
|
|
816
|
-
|
|
817
|
-
element = elementOrMods;
|
|
818
|
-
} else {
|
|
819
|
-
mods = elementOrMods;
|
|
820
|
-
}
|
|
932
|
+
var element;
|
|
821
933
|
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
934
|
+
if (typeof elementOrMods === 'string') {
|
|
935
|
+
element = elementOrMods;
|
|
936
|
+
} else {
|
|
937
|
+
mods = elementOrMods;
|
|
938
|
+
}
|
|
826
939
|
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
940
|
+
var base = componentName;
|
|
941
|
+
if (element) {
|
|
942
|
+
base += '__' + element;
|
|
943
|
+
}
|
|
831
944
|
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
: (base + '--' + name + '_' + value)
|
|
837
|
-
);
|
|
838
|
-
}
|
|
945
|
+
return base + (
|
|
946
|
+
mods
|
|
947
|
+
? Object.keys(mods).reduce(function (result, name) {
|
|
948
|
+
var value = mods[name];
|
|
839
949
|
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
950
|
+
if (value) {
|
|
951
|
+
result += ' ' + (
|
|
952
|
+
typeof value === 'boolean'
|
|
953
|
+
? (base + '--' + name)
|
|
954
|
+
: (base + '--' + name + '_' + value)
|
|
955
|
+
);
|
|
956
|
+
}
|
|
957
|
+
|
|
958
|
+
return result;
|
|
959
|
+
}, '')
|
|
960
|
+
: ''
|
|
961
|
+
);
|
|
962
|
+
};
|
|
963
|
+
};
|
|
964
|
+
return easyBem;
|
|
965
|
+
}
|
|
846
966
|
|
|
847
|
-
|
|
967
|
+
var easyBemExports = requireEasyBem();
|
|
968
|
+
var r = /*@__PURE__*/getDefaultExportFromCjs(easyBemExports);
|
|
848
969
|
|
|
849
970
|
function s(){const e=new Map;return (t,n,o)=>{try{return e.get(t)(n,o)}catch{return e.set(t,r(t)).get(t)(n,o)}}}
|
|
850
971
|
|
|
@@ -869,6 +990,8 @@ bem('kol-icon', 'icon');
|
|
|
869
990
|
* KoliBri - The accessible HTML-Standard
|
|
870
991
|
*/
|
|
871
992
|
|
|
993
|
+
const KoliBri = new ie('kol', KeyEnum, TagEnum);
|
|
994
|
+
|
|
872
995
|
var Bundesministerium;
|
|
873
996
|
(function (Bundesministerium) {
|
|
874
997
|
Bundesministerium["Die Bundesregierung"] = "BReg";
|