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