axe-core 4.8.2-canary.513b091 → 4.8.2-canary.56f104f

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/axe.js CHANGED
@@ -1,4 +1,4 @@
1
- /*! axe v4.8.2-canary.513b091
1
+ /*! axe v4.8.2-canary.56f104f
2
2
  * Copyright (c) 2015 - 2023 Deque Systems, Inc.
3
3
  *
4
4
  * Your use of this Source Code Form is subject to the terms of the Mozilla Public
@@ -13,16 +13,16 @@
13
13
  var global = window;
14
14
  var document = window.document;
15
15
  'use strict';
16
- function _typeof(obj) {
16
+ function _typeof(o) {
17
17
  '@babel/helpers - typeof';
18
- return _typeof = 'function' == typeof Symbol && 'symbol' == typeof Symbol.iterator ? function(obj) {
19
- return typeof obj;
20
- } : function(obj) {
21
- return obj && 'function' == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? 'symbol' : typeof obj;
22
- }, _typeof(obj);
18
+ return _typeof = 'function' == typeof Symbol && 'symbol' == typeof Symbol.iterator ? function(o) {
19
+ return typeof o;
20
+ } : function(o) {
21
+ return o && 'function' == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? 'symbol' : typeof o;
22
+ }, _typeof(o);
23
23
  }
24
24
  var axe = axe || {};
25
- axe.version = '4.8.2-canary.513b091';
25
+ axe.version = '4.8.2-canary.56f104f';
26
26
  if (typeof define === 'function' && define.amd) {
27
27
  define('axe-core', [], function() {
28
28
  return axe;
@@ -159,56 +159,6 @@
159
159
  };
160
160
  return _getPrototypeOf(o);
161
161
  }
162
- function _classPrivateFieldInitSpec(obj, privateMap, value) {
163
- _checkPrivateRedeclaration(obj, privateMap);
164
- privateMap.set(obj, value);
165
- }
166
- function _classPrivateMethodInitSpec(obj, privateSet) {
167
- _checkPrivateRedeclaration(obj, privateSet);
168
- privateSet.add(obj);
169
- }
170
- function _checkPrivateRedeclaration(obj, privateCollection) {
171
- if (privateCollection.has(obj)) {
172
- throw new TypeError('Cannot initialize the same private elements twice on an object');
173
- }
174
- }
175
- function _classPrivateFieldGet(receiver, privateMap) {
176
- var descriptor = _classExtractFieldDescriptor(receiver, privateMap, 'get');
177
- return _classApplyDescriptorGet(receiver, descriptor);
178
- }
179
- function _classApplyDescriptorGet(receiver, descriptor) {
180
- if (descriptor.get) {
181
- return descriptor.get.call(receiver);
182
- }
183
- return descriptor.value;
184
- }
185
- function _classPrivateMethodGet(receiver, privateSet, fn) {
186
- if (!privateSet.has(receiver)) {
187
- throw new TypeError('attempted to get private field on non-instance');
188
- }
189
- return fn;
190
- }
191
- function _classPrivateFieldSet(receiver, privateMap, value) {
192
- var descriptor = _classExtractFieldDescriptor(receiver, privateMap, 'set');
193
- _classApplyDescriptorSet(receiver, descriptor, value);
194
- return value;
195
- }
196
- function _classExtractFieldDescriptor(receiver, privateMap, action) {
197
- if (!privateMap.has(receiver)) {
198
- throw new TypeError('attempted to ' + action + ' private field on non-instance');
199
- }
200
- return privateMap.get(receiver);
201
- }
202
- function _classApplyDescriptorSet(receiver, descriptor, value) {
203
- if (descriptor.set) {
204
- descriptor.set.call(receiver, value);
205
- } else {
206
- if (!descriptor.writable) {
207
- throw new TypeError('attempted to set read only private field');
208
- }
209
- descriptor.value = value;
210
- }
211
- }
212
162
  function _objectWithoutProperties(source, excluded) {
213
163
  if (source == null) {
214
164
  return {};
@@ -282,34 +232,33 @@
282
232
  function _nonIterableRest() {
283
233
  throw new TypeError('Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.');
284
234
  }
285
- function _iterableToArrayLimit(arr, i) {
286
- var _i = null == arr ? null : 'undefined' != typeof Symbol && arr[Symbol.iterator] || arr['@@iterator'];
287
- if (null != _i) {
288
- var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1;
235
+ function _iterableToArrayLimit(r, l) {
236
+ var t = null == r ? null : 'undefined' != typeof Symbol && r[Symbol.iterator] || r['@@iterator'];
237
+ if (null != t) {
238
+ var e, n, i, u, a = [], f = !0, o = !1;
289
239
  try {
290
- if (_x = (_i = _i.call(arr)).next, 0 === i) {
291
- if (Object(_i) !== _i) {
240
+ if (i = (t = t.call(r)).next, 0 === l) {
241
+ if (Object(t) !== t) {
292
242
  return;
293
243
  }
294
- _n = !1;
244
+ f = !1;
295
245
  } else {
296
- for (;!(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0) {
297
- }
246
+ for (;!(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0) {}
298
247
  }
299
- } catch (err) {
300
- _d = !0, _e = err;
248
+ } catch (r) {
249
+ o = !0, n = r;
301
250
  } finally {
302
251
  try {
303
- if (!_n && null != _i['return'] && (_r = _i['return'](), Object(_r) !== _r)) {
252
+ if (!f && null != t['return'] && (u = t['return'](), Object(u) !== u)) {
304
253
  return;
305
254
  }
306
255
  } finally {
307
- if (_d) {
308
- throw _e;
256
+ if (o) {
257
+ throw n;
309
258
  }
310
259
  }
311
260
  }
312
- return _arr;
261
+ return a;
313
262
  }
314
263
  }
315
264
  function _arrayWithHoles(arr) {
@@ -385,8 +334,8 @@
385
334
  value: o[i++]
386
335
  };
387
336
  },
388
- e: function e(_e2) {
389
- throw _e2;
337
+ e: function e(_e) {
338
+ throw _e;
390
339
  },
391
340
  f: F
392
341
  };
@@ -403,9 +352,9 @@
403
352
  normalCompletion = step.done;
404
353
  return step;
405
354
  },
406
- e: function e(_e3) {
355
+ e: function e(_e2) {
407
356
  didErr = true;
408
- err = _e3;
357
+ err = _e2;
409
358
  },
410
359
  f: function f() {
411
360
  try {
@@ -447,16 +396,15 @@
447
396
  }
448
397
  return arr2;
449
398
  }
450
- function _typeof(obj) {
399
+ function _typeof(o) {
451
400
  '@babel/helpers - typeof';
452
- return _typeof = 'function' == typeof Symbol && 'symbol' == typeof Symbol.iterator ? function(obj) {
453
- return typeof obj;
454
- } : function(obj) {
455
- return obj && 'function' == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? 'symbol' : typeof obj;
456
- }, _typeof(obj);
401
+ return _typeof = 'function' == typeof Symbol && 'symbol' == typeof Symbol.iterator ? function(o) {
402
+ return typeof o;
403
+ } : function(o) {
404
+ return o && 'function' == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? 'symbol' : typeof o;
405
+ }, _typeof(o);
457
406
  }
458
407
  (function() {
459
- var _processFormat, _path, _getPath, _space;
460
408
  var __create = Object.create;
461
409
  var __defProp = Object.defineProperty;
462
410
  var __getProtoOf = Object.getPrototypeOf;
@@ -4960,14 +4908,16 @@
4960
4908
  })(typeof globalThis !== 'undefined' ? globalThis : typeof self !== 'undefined' ? self : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : exports);
4961
4909
  });
4962
4910
  var require_global = __commonJS(function(exports, module) {
4911
+ 'use strict';
4963
4912
  var check = function check(it) {
4964
- return it && it.Math == Math && it;
4913
+ return it && it.Math === Math && it;
4965
4914
  };
4966
4915
  module.exports = check((typeof globalThis === 'undefined' ? 'undefined' : _typeof(globalThis)) == 'object' && globalThis) || check((typeof window === 'undefined' ? 'undefined' : _typeof(window)) == 'object' && window) || check((typeof self === 'undefined' ? 'undefined' : _typeof(self)) == 'object' && self) || check((typeof global === 'undefined' ? 'undefined' : _typeof(global)) == 'object' && global) || function() {
4967
4916
  return this;
4968
- }() || Function('return this')();
4917
+ }() || exports || Function('return this')();
4969
4918
  });
4970
4919
  var require_fails = __commonJS(function(exports, module) {
4920
+ 'use strict';
4971
4921
  module.exports = function(exec) {
4972
4922
  try {
4973
4923
  return !!exec();
@@ -4977,6 +4927,7 @@
4977
4927
  };
4978
4928
  });
4979
4929
  var require_function_bind_native = __commonJS(function(exports, module) {
4930
+ 'use strict';
4980
4931
  var fails = require_fails();
4981
4932
  module.exports = !fails(function() {
4982
4933
  var test = function() {}.bind();
@@ -4984,6 +4935,7 @@
4984
4935
  });
4985
4936
  });
4986
4937
  var require_function_apply = __commonJS(function(exports, module) {
4938
+ 'use strict';
4987
4939
  var NATIVE_BIND = require_function_bind_native();
4988
4940
  var FunctionPrototype = Function.prototype;
4989
4941
  var apply = FunctionPrototype.apply;
@@ -4993,6 +4945,7 @@
4993
4945
  });
4994
4946
  });
4995
4947
  var require_function_uncurry_this = __commonJS(function(exports, module) {
4948
+ 'use strict';
4996
4949
  var NATIVE_BIND = require_function_bind_native();
4997
4950
  var FunctionPrototype = Function.prototype;
4998
4951
  var call = FunctionPrototype.call;
@@ -5004,6 +4957,7 @@
5004
4957
  };
5005
4958
  });
5006
4959
  var require_classof_raw = __commonJS(function(exports, module) {
4960
+ 'use strict';
5007
4961
  var uncurryThis = require_function_uncurry_this();
5008
4962
  var toString = uncurryThis({}.toString);
5009
4963
  var stringSlice = uncurryThis(''.slice);
@@ -5012,6 +4966,7 @@
5012
4966
  };
5013
4967
  });
5014
4968
  var require_function_uncurry_this_clause = __commonJS(function(exports, module) {
4969
+ 'use strict';
5015
4970
  var classofRaw = require_classof_raw();
5016
4971
  var uncurryThis = require_function_uncurry_this();
5017
4972
  module.exports = function(fn) {
@@ -5021,6 +4976,7 @@
5021
4976
  };
5022
4977
  });
5023
4978
  var require_document_all = __commonJS(function(exports, module) {
4979
+ 'use strict';
5024
4980
  var documentAll = (typeof document === 'undefined' ? 'undefined' : _typeof(document)) == 'object' && document.all;
5025
4981
  var IS_HTMLDDA = typeof documentAll == 'undefined' && documentAll !== void 0;
5026
4982
  module.exports = {
@@ -5029,6 +4985,7 @@
5029
4985
  };
5030
4986
  });
5031
4987
  var require_is_callable2 = __commonJS(function(exports, module) {
4988
+ 'use strict';
5032
4989
  var $documentAll = require_document_all();
5033
4990
  var documentAll = $documentAll.all;
5034
4991
  module.exports = $documentAll.IS_HTMLDDA ? function(argument) {
@@ -5038,16 +4995,18 @@
5038
4995
  };
5039
4996
  });
5040
4997
  var require_descriptors = __commonJS(function(exports, module) {
4998
+ 'use strict';
5041
4999
  var fails = require_fails();
5042
5000
  module.exports = !fails(function() {
5043
5001
  return Object.defineProperty({}, 1, {
5044
5002
  get: function get() {
5045
5003
  return 7;
5046
5004
  }
5047
- })[1] != 7;
5005
+ })[1] !== 7;
5048
5006
  });
5049
5007
  });
5050
5008
  var require_function_call = __commonJS(function(exports, module) {
5009
+ 'use strict';
5051
5010
  var NATIVE_BIND = require_function_bind_native();
5052
5011
  var call = Function.prototype.call;
5053
5012
  module.exports = NATIVE_BIND ? call.bind(call) : function() {
@@ -5067,6 +5026,7 @@
5067
5026
  } : $propertyIsEnumerable;
5068
5027
  });
5069
5028
  var require_create_property_descriptor = __commonJS(function(exports, module) {
5029
+ 'use strict';
5070
5030
  module.exports = function(bitmap, value) {
5071
5031
  return {
5072
5032
  enumerable: !(bitmap & 1),
@@ -5077,6 +5037,7 @@
5077
5037
  };
5078
5038
  });
5079
5039
  var require_indexed_object = __commonJS(function(exports, module) {
5040
+ 'use strict';
5080
5041
  var uncurryThis = require_function_uncurry_this();
5081
5042
  var fails = require_fails();
5082
5043
  var classof = require_classof_raw();
@@ -5085,25 +5046,28 @@
5085
5046
  module.exports = fails(function() {
5086
5047
  return !$Object('z').propertyIsEnumerable(0);
5087
5048
  }) ? function(it) {
5088
- return classof(it) == 'String' ? split(it, '') : $Object(it);
5049
+ return classof(it) === 'String' ? split(it, '') : $Object(it);
5089
5050
  } : $Object;
5090
5051
  });
5091
5052
  var require_is_null_or_undefined = __commonJS(function(exports, module) {
5053
+ 'use strict';
5092
5054
  module.exports = function(it) {
5093
5055
  return it === null || it === void 0;
5094
5056
  };
5095
5057
  });
5096
5058
  var require_require_object_coercible = __commonJS(function(exports, module) {
5059
+ 'use strict';
5097
5060
  var isNullOrUndefined = require_is_null_or_undefined();
5098
5061
  var $TypeError = TypeError;
5099
5062
  module.exports = function(it) {
5100
5063
  if (isNullOrUndefined(it)) {
5101
- throw $TypeError('Can\'t call method on ' + it);
5064
+ throw new $TypeError('Can\'t call method on ' + it);
5102
5065
  }
5103
5066
  return it;
5104
5067
  };
5105
5068
  });
5106
5069
  var require_to_indexed_object = __commonJS(function(exports, module) {
5070
+ 'use strict';
5107
5071
  var IndexedObject = require_indexed_object();
5108
5072
  var requireObjectCoercible = require_require_object_coercible();
5109
5073
  module.exports = function(it) {
@@ -5111,6 +5075,7 @@
5111
5075
  };
5112
5076
  });
5113
5077
  var require_is_object2 = __commonJS(function(exports, module) {
5078
+ 'use strict';
5114
5079
  var isCallable = require_is_callable2();
5115
5080
  var $documentAll = require_document_all();
5116
5081
  var documentAll = $documentAll.all;
@@ -5121,9 +5086,11 @@
5121
5086
  };
5122
5087
  });
5123
5088
  var require_path = __commonJS(function(exports, module) {
5089
+ 'use strict';
5124
5090
  module.exports = {};
5125
5091
  });
5126
5092
  var require_get_built_in = __commonJS(function(exports, module) {
5093
+ 'use strict';
5127
5094
  var path = require_path();
5128
5095
  var global2 = require_global();
5129
5096
  var isCallable = require_is_callable2();
@@ -5135,14 +5102,16 @@
5135
5102
  };
5136
5103
  });
5137
5104
  var require_object_is_prototype_of = __commonJS(function(exports, module) {
5105
+ 'use strict';
5138
5106
  var uncurryThis = require_function_uncurry_this();
5139
5107
  module.exports = uncurryThis({}.isPrototypeOf);
5140
5108
  });
5141
5109
  var require_engine_user_agent = __commonJS(function(exports, module) {
5142
- var getBuiltIn = require_get_built_in();
5143
- module.exports = getBuiltIn('navigator', 'userAgent') || '';
5110
+ 'use strict';
5111
+ module.exports = typeof navigator != 'undefined' && String(navigator.userAgent) || '';
5144
5112
  });
5145
5113
  var require_engine_v8_version = __commonJS(function(exports, module) {
5114
+ 'use strict';
5146
5115
  var global2 = require_global();
5147
5116
  var userAgent = require_engine_user_agent();
5148
5117
  var process2 = global2.process;
@@ -5167,18 +5136,23 @@
5167
5136
  module.exports = version;
5168
5137
  });
5169
5138
  var require_symbol_constructor_detection = __commonJS(function(exports, module) {
5139
+ 'use strict';
5170
5140
  var V8_VERSION = require_engine_v8_version();
5171
5141
  var fails = require_fails();
5142
+ var global2 = require_global();
5143
+ var $String = global2.String;
5172
5144
  module.exports = !!Object.getOwnPropertySymbols && !fails(function() {
5173
- var symbol = Symbol();
5174
- return !String(symbol) || !(Object(symbol) instanceof Symbol) || !Symbol.sham && V8_VERSION && V8_VERSION < 41;
5145
+ var symbol = Symbol('symbol detection');
5146
+ return !$String(symbol) || !(Object(symbol) instanceof Symbol) || !Symbol.sham && V8_VERSION && V8_VERSION < 41;
5175
5147
  });
5176
5148
  });
5177
5149
  var require_use_symbol_as_uid = __commonJS(function(exports, module) {
5150
+ 'use strict';
5178
5151
  var NATIVE_SYMBOL = require_symbol_constructor_detection();
5179
5152
  module.exports = NATIVE_SYMBOL && !Symbol.sham && _typeof(Symbol.iterator) == 'symbol';
5180
5153
  });
5181
5154
  var require_is_symbol2 = __commonJS(function(exports, module) {
5155
+ 'use strict';
5182
5156
  var getBuiltIn = require_get_built_in();
5183
5157
  var isCallable = require_is_callable2();
5184
5158
  var isPrototypeOf = require_object_is_prototype_of();
@@ -5192,6 +5166,7 @@
5192
5166
  };
5193
5167
  });
5194
5168
  var require_try_to_string = __commonJS(function(exports, module) {
5169
+ 'use strict';
5195
5170
  var $String = String;
5196
5171
  module.exports = function(argument) {
5197
5172
  try {
@@ -5202,6 +5177,7 @@
5202
5177
  };
5203
5178
  });
5204
5179
  var require_a_callable = __commonJS(function(exports, module) {
5180
+ 'use strict';
5205
5181
  var isCallable = require_is_callable2();
5206
5182
  var tryToString = require_try_to_string();
5207
5183
  var $TypeError = TypeError;
@@ -5209,10 +5185,11 @@
5209
5185
  if (isCallable(argument)) {
5210
5186
  return argument;
5211
5187
  }
5212
- throw $TypeError(tryToString(argument) + ' is not a function');
5188
+ throw new $TypeError(tryToString(argument) + ' is not a function');
5213
5189
  };
5214
5190
  });
5215
5191
  var require_get_method = __commonJS(function(exports, module) {
5192
+ 'use strict';
5216
5193
  var aCallable = require_a_callable();
5217
5194
  var isNullOrUndefined = require_is_null_or_undefined();
5218
5195
  module.exports = function(V, P) {
@@ -5221,6 +5198,7 @@
5221
5198
  };
5222
5199
  });
5223
5200
  var require_ordinary_to_primitive = __commonJS(function(exports, module) {
5201
+ 'use strict';
5224
5202
  var call = require_function_call();
5225
5203
  var isCallable = require_is_callable2();
5226
5204
  var isObject = require_is_object2();
@@ -5236,13 +5214,15 @@
5236
5214
  if (pref !== 'string' && isCallable(fn = input.toString) && !isObject(val = call(fn, input))) {
5237
5215
  return val;
5238
5216
  }
5239
- throw $TypeError('Can\'t convert object to primitive value');
5217
+ throw new $TypeError('Can\'t convert object to primitive value');
5240
5218
  };
5241
5219
  });
5242
5220
  var require_is_pure = __commonJS(function(exports, module) {
5221
+ 'use strict';
5243
5222
  module.exports = true;
5244
5223
  });
5245
5224
  var require_define_global_property = __commonJS(function(exports, module) {
5225
+ 'use strict';
5246
5226
  var global2 = require_global();
5247
5227
  var defineProperty = Object.defineProperty;
5248
5228
  module.exports = function(key, value) {
@@ -5259,6 +5239,7 @@
5259
5239
  };
5260
5240
  });
5261
5241
  var require_shared_store = __commonJS(function(exports, module) {
5242
+ 'use strict';
5262
5243
  var global2 = require_global();
5263
5244
  var defineGlobalProperty = require_define_global_property();
5264
5245
  var SHARED = '__core-js_shared__';
@@ -5266,19 +5247,21 @@
5266
5247
  module.exports = store;
5267
5248
  });
5268
5249
  var require_shared = __commonJS(function(exports, module) {
5250
+ 'use strict';
5269
5251
  var IS_PURE = require_is_pure();
5270
5252
  var store = require_shared_store();
5271
5253
  (module.exports = function(key, value) {
5272
5254
  return store[key] || (store[key] = value !== void 0 ? value : {});
5273
5255
  })('versions', []).push({
5274
- version: '3.26.1',
5256
+ version: '3.33.0',
5275
5257
  mode: IS_PURE ? 'pure' : 'global',
5276
- copyright: '\xa9 2014-2022 Denis Pushkarev (zloirock.ru)',
5277
- license: 'https://github.com/zloirock/core-js/blob/v3.26.1/LICENSE',
5258
+ copyright: '\xa9 2014-2023 Denis Pushkarev (zloirock.ru)',
5259
+ license: 'https://github.com/zloirock/core-js/blob/v3.33.0/LICENSE',
5278
5260
  source: 'https://github.com/zloirock/core-js'
5279
5261
  });
5280
5262
  });
5281
5263
  var require_to_object = __commonJS(function(exports, module) {
5264
+ 'use strict';
5282
5265
  var requireObjectCoercible = require_require_object_coercible();
5283
5266
  var $Object = Object;
5284
5267
  module.exports = function(argument) {
@@ -5286,6 +5269,7 @@
5286
5269
  };
5287
5270
  });
5288
5271
  var require_has_own_property = __commonJS(function(exports, module) {
5272
+ 'use strict';
5289
5273
  var uncurryThis = require_function_uncurry_this();
5290
5274
  var toObject = require_to_object();
5291
5275
  var hasOwnProperty2 = uncurryThis({}.hasOwnProperty);
@@ -5294,6 +5278,7 @@
5294
5278
  };
5295
5279
  });
5296
5280
  var require_uid = __commonJS(function(exports, module) {
5281
+ 'use strict';
5297
5282
  var uncurryThis = require_function_uncurry_this();
5298
5283
  var id = 0;
5299
5284
  var postfix = Math.random();
@@ -5303,31 +5288,25 @@
5303
5288
  };
5304
5289
  });
5305
5290
  var require_well_known_symbol = __commonJS(function(exports, module) {
5291
+ 'use strict';
5306
5292
  var global2 = require_global();
5307
5293
  var shared = require_shared();
5308
5294
  var hasOwn2 = require_has_own_property();
5309
5295
  var uid = require_uid();
5310
5296
  var NATIVE_SYMBOL = require_symbol_constructor_detection();
5311
5297
  var USE_SYMBOL_AS_UID = require_use_symbol_as_uid();
5312
- var WellKnownSymbolsStore = shared('wks');
5313
5298
  var Symbol2 = global2.Symbol;
5314
- var symbolFor = Symbol2 && Symbol2['for'];
5315
- var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol2 : Symbol2 && Symbol2.withoutSetter || uid;
5299
+ var WellKnownSymbolsStore = shared('wks');
5300
+ var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol2['for'] || Symbol2 : Symbol2 && Symbol2.withoutSetter || uid;
5316
5301
  module.exports = function(name) {
5317
- if (!hasOwn2(WellKnownSymbolsStore, name) || !(NATIVE_SYMBOL || typeof WellKnownSymbolsStore[name] == 'string')) {
5318
- var description = 'Symbol.' + name;
5319
- if (NATIVE_SYMBOL && hasOwn2(Symbol2, name)) {
5320
- WellKnownSymbolsStore[name] = Symbol2[name];
5321
- } else if (USE_SYMBOL_AS_UID && symbolFor) {
5322
- WellKnownSymbolsStore[name] = symbolFor(description);
5323
- } else {
5324
- WellKnownSymbolsStore[name] = createWellKnownSymbol(description);
5325
- }
5302
+ if (!hasOwn2(WellKnownSymbolsStore, name)) {
5303
+ WellKnownSymbolsStore[name] = NATIVE_SYMBOL && hasOwn2(Symbol2, name) ? Symbol2[name] : createWellKnownSymbol('Symbol.' + name);
5326
5304
  }
5327
5305
  return WellKnownSymbolsStore[name];
5328
5306
  };
5329
5307
  });
5330
5308
  var require_to_primitive = __commonJS(function(exports, module) {
5309
+ 'use strict';
5331
5310
  var call = require_function_call();
5332
5311
  var isObject = require_is_object2();
5333
5312
  var isSymbol = require_is_symbol2();
@@ -5350,7 +5329,7 @@
5350
5329
  if (!isObject(result) || isSymbol(result)) {
5351
5330
  return result;
5352
5331
  }
5353
- throw $TypeError('Can\'t convert object to primitive value');
5332
+ throw new $TypeError('Can\'t convert object to primitive value');
5354
5333
  }
5355
5334
  if (pref === void 0) {
5356
5335
  pref = 'number';
@@ -5359,6 +5338,7 @@
5359
5338
  };
5360
5339
  });
5361
5340
  var require_to_property_key = __commonJS(function(exports, module) {
5341
+ 'use strict';
5362
5342
  var toPrimitive = require_to_primitive();
5363
5343
  var isSymbol = require_is_symbol2();
5364
5344
  module.exports = function(argument) {
@@ -5367,6 +5347,7 @@
5367
5347
  };
5368
5348
  });
5369
5349
  var require_document_create_element = __commonJS(function(exports, module) {
5350
+ 'use strict';
5370
5351
  var global2 = require_global();
5371
5352
  var isObject = require_is_object2();
5372
5353
  var document2 = global2.document;
@@ -5376,6 +5357,7 @@
5376
5357
  };
5377
5358
  });
5378
5359
  var require_ie8_dom_define = __commonJS(function(exports, module) {
5360
+ 'use strict';
5379
5361
  var DESCRIPTORS = require_descriptors();
5380
5362
  var fails = require_fails();
5381
5363
  var createElement = require_document_create_element();
@@ -5384,10 +5366,11 @@
5384
5366
  get: function get() {
5385
5367
  return 7;
5386
5368
  }
5387
- }).a != 7;
5369
+ }).a !== 7;
5388
5370
  });
5389
5371
  });
5390
5372
  var require_object_get_own_property_descriptor = __commonJS(function(exports) {
5373
+ 'use strict';
5391
5374
  var DESCRIPTORS = require_descriptors();
5392
5375
  var call = require_function_call();
5393
5376
  var propertyIsEnumerableModule = require_object_property_is_enumerable();
@@ -5411,12 +5394,13 @@
5411
5394
  };
5412
5395
  });
5413
5396
  var require_is_forced = __commonJS(function(exports, module) {
5397
+ 'use strict';
5414
5398
  var fails = require_fails();
5415
5399
  var isCallable = require_is_callable2();
5416
5400
  var replacement = /#|\.prototype\./;
5417
5401
  var isForced = function isForced(feature, detection) {
5418
5402
  var value = data[normalize(feature)];
5419
- return value == POLYFILL ? true : value == NATIVE ? false : isCallable(detection) ? fails(detection) : !!detection;
5403
+ return value === POLYFILL ? true : value === NATIVE ? false : isCallable(detection) ? fails(detection) : !!detection;
5420
5404
  };
5421
5405
  var normalize = isForced.normalize = function(string) {
5422
5406
  return String(string).replace(replacement, '.').toLowerCase();
@@ -5427,6 +5411,7 @@
5427
5411
  module.exports = isForced;
5428
5412
  });
5429
5413
  var require_function_bind_context = __commonJS(function(exports, module) {
5414
+ 'use strict';
5430
5415
  var uncurryThis = require_function_uncurry_this_clause();
5431
5416
  var aCallable = require_a_callable();
5432
5417
  var NATIVE_BIND = require_function_bind_native();
@@ -5439,16 +5424,18 @@
5439
5424
  };
5440
5425
  });
5441
5426
  var require_v8_prototype_define_bug = __commonJS(function(exports, module) {
5427
+ 'use strict';
5442
5428
  var DESCRIPTORS = require_descriptors();
5443
5429
  var fails = require_fails();
5444
5430
  module.exports = DESCRIPTORS && fails(function() {
5445
5431
  return Object.defineProperty(function() {}, 'prototype', {
5446
5432
  value: 42,
5447
5433
  writable: false
5448
- }).prototype != 42;
5434
+ }).prototype !== 42;
5449
5435
  });
5450
5436
  });
5451
5437
  var require_an_object = __commonJS(function(exports, module) {
5438
+ 'use strict';
5452
5439
  var isObject = require_is_object2();
5453
5440
  var $String = String;
5454
5441
  var $TypeError = TypeError;
@@ -5456,10 +5443,11 @@
5456
5443
  if (isObject(argument)) {
5457
5444
  return argument;
5458
5445
  }
5459
- throw $TypeError($String(argument) + ' is not an object');
5446
+ throw new $TypeError($String(argument) + ' is not an object');
5460
5447
  };
5461
5448
  });
5462
5449
  var require_object_define_property = __commonJS(function(exports) {
5450
+ 'use strict';
5463
5451
  var DESCRIPTORS = require_descriptors();
5464
5452
  var IE8_DOM_DEFINE = require_ie8_dom_define();
5465
5453
  var V8_PROTOTYPE_DEFINE_BUG = require_v8_prototype_define_bug();
@@ -5497,7 +5485,7 @@
5497
5485
  } catch (error) {}
5498
5486
  }
5499
5487
  if ('get' in Attributes || 'set' in Attributes) {
5500
- throw $TypeError('Accessors not supported');
5488
+ throw new $TypeError('Accessors not supported');
5501
5489
  }
5502
5490
  if ('value' in Attributes) {
5503
5491
  O[P] = Attributes.value;
@@ -5506,6 +5494,7 @@
5506
5494
  };
5507
5495
  });
5508
5496
  var require_create_non_enumerable_property = __commonJS(function(exports, module) {
5497
+ 'use strict';
5509
5498
  var DESCRIPTORS = require_descriptors();
5510
5499
  var definePropertyModule = require_object_define_property();
5511
5500
  var createPropertyDescriptor = require_create_property_descriptor();
@@ -5593,7 +5582,7 @@
5593
5582
  createNonEnumerableProperty(path, VIRTUAL_PROTOTYPE, {});
5594
5583
  }
5595
5584
  createNonEnumerableProperty(path[VIRTUAL_PROTOTYPE], key, sourceProperty);
5596
- if (options.real && targetPrototype && !targetPrototype[key]) {
5585
+ if (options.real && targetPrototype && (FORCED || !targetPrototype[key])) {
5597
5586
  createNonEnumerableProperty(targetPrototype, key, sourceProperty);
5598
5587
  }
5599
5588
  }
@@ -5601,6 +5590,7 @@
5601
5590
  };
5602
5591
  });
5603
5592
  var require_es_object_has_own = __commonJS(function() {
5593
+ 'use strict';
5604
5594
  var $ = require_export();
5605
5595
  var hasOwn2 = require_has_own_property();
5606
5596
  $({
@@ -5611,15 +5601,18 @@
5611
5601
  });
5612
5602
  });
5613
5603
  var require_has_own = __commonJS(function(exports, module) {
5604
+ 'use strict';
5614
5605
  require_es_object_has_own();
5615
5606
  var path = require_path();
5616
5607
  module.exports = path.Object.hasOwn;
5617
5608
  });
5618
5609
  var require_has_own2 = __commonJS(function(exports, module) {
5610
+ 'use strict';
5619
5611
  var parent = require_has_own();
5620
5612
  module.exports = parent;
5621
5613
  });
5622
5614
  var require_has_own3 = __commonJS(function(exports, module) {
5615
+ 'use strict';
5623
5616
  var parent = require_has_own2();
5624
5617
  module.exports = parent;
5625
5618
  });
@@ -7670,8 +7663,8 @@
7670
7663
  return nodeResults === null || nodeResults === void 0 ? void 0 : nodeResults.map(function(_ref7) {
7671
7664
  var node = _ref7.node, nodeResult = _objectWithoutProperties(_ref7, _excluded);
7672
7665
  nodeResult.node = nodeSerializer.dqElmToSpec(node);
7673
- for (var _i2 = 0, _arr2 = [ 'any', 'all', 'none' ]; _i2 < _arr2.length; _i2++) {
7674
- var type2 = _arr2[_i2];
7666
+ for (var _i2 = 0, _arr = [ 'any', 'all', 'none' ]; _i2 < _arr.length; _i2++) {
7667
+ var type2 = _arr[_i2];
7675
7668
  nodeResult[type2] = nodeResult[type2].map(function(_ref8) {
7676
7669
  var relatedNodes = _ref8.relatedNodes, checkResult = _objectWithoutProperties(_ref8, _excluded2);
7677
7670
  checkResult.relatedNodes = relatedNodes.map(nodeSerializer.dqElmToSpec);
@@ -8892,10 +8885,10 @@
8892
8885
  }
8893
8886
  }
8894
8887
  function _findNearbyElms(vNode) {
8895
- var _vNode$_grid2, _vNode$_grid2$cells;
8888
+ var _vNode$_grid2;
8896
8889
  var margin = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
8897
8890
  _createGrid();
8898
- if (!((_vNode$_grid2 = vNode._grid) !== null && _vNode$_grid2 !== void 0 && (_vNode$_grid2$cells = _vNode$_grid2.cells) !== null && _vNode$_grid2$cells !== void 0 && _vNode$_grid2$cells.length)) {
8891
+ if (!((_vNode$_grid2 = vNode._grid) !== null && _vNode$_grid2 !== void 0 && (_vNode$_grid2 = _vNode$_grid2.cells) !== null && _vNode$_grid2 !== void 0 && _vNode$_grid2.length)) {
8899
8892
  return [];
8900
8893
  }
8901
8894
  var rect = vNode.boundingClientRect;
@@ -12973,7 +12966,7 @@
12973
12966
  var stacks = points.map(function(point) {
12974
12967
  return Array.from(document.elementsFromPoint(point.x, point.y));
12975
12968
  });
12976
- var _loop4 = function _loop4(_i10) {
12969
+ var _loop4 = function _loop4() {
12977
12970
  var modalElement = stacks[_i10].find(function(elm) {
12978
12971
  var style = window.getComputedStyle(elm);
12979
12972
  return parseInt(style.width, 10) >= percentWidth && parseInt(style.height, 10) >= percentHeight && style.getPropertyValue('pointer-events') !== 'none' && (style.position === 'absolute' || style.position === 'fixed');
@@ -12986,10 +12979,10 @@
12986
12979
  v: true
12987
12980
  };
12988
12981
  }
12989
- };
12982
+ }, _ret;
12990
12983
  for (var _i10 = 0; _i10 < stacks.length; _i10++) {
12991
- var _ret = _loop4(_i10);
12992
- if (_typeof(_ret) === 'object') {
12984
+ _ret = _loop4();
12985
+ if (_ret) {
12993
12986
  return _ret.v;
12994
12987
  }
12995
12988
  }
@@ -13229,16 +13222,16 @@
13229
13222
  }
13230
13223
  var util = Object.freeze({
13231
13224
  __proto__: null,
13232
- isString: isString,
13233
- type: type,
13234
- toPrecision: toPrecision,
13235
- parseFunction: parseFunction,
13236
- last: last,
13237
13225
  interpolate: interpolate,
13238
13226
  interpolateInv: interpolateInv,
13227
+ isString: isString,
13228
+ last: last,
13239
13229
  mapRange: mapRange,
13230
+ multiplyMatrices: multiplyMatrices,
13240
13231
  parseCoordGrammar: parseCoordGrammar,
13241
- multiplyMatrices: multiplyMatrices
13232
+ parseFunction: parseFunction,
13233
+ toPrecision: toPrecision,
13234
+ type: type
13242
13235
  });
13243
13236
  var Hooks = function() {
13244
13237
  function Hooks() {
@@ -13319,17 +13312,10 @@
13319
13312
  }
13320
13313
  }
13321
13314
  var \u03b5$4 = 75e-6;
13322
- var _ColorSpace = (_processFormat = new WeakSet(), _path = new WeakMap(), _getPath = new WeakSet(),
13323
- function() {
13315
+ var _ColorSpace = function() {
13324
13316
  function _ColorSpace(options) {
13325
13317
  var _options$coords, _ref39, _options$white, _options$formats, _this$formats$functio, _this$formats, _this$formats2;
13326
13318
  _classCallCheck(this, _ColorSpace);
13327
- _classPrivateMethodInitSpec(this, _getPath);
13328
- _classPrivateMethodInitSpec(this, _processFormat);
13329
- _classPrivateFieldInitSpec(this, _path, {
13330
- writable: true,
13331
- value: void 0
13332
- });
13333
13319
  this.id = options.id;
13334
13320
  this.name = options.name;
13335
13321
  this.base = options.base ? _ColorSpace.get(options.base) : null;
@@ -13338,15 +13324,20 @@
13338
13324
  this.fromBase = options.fromBase;
13339
13325
  this.toBase = options.toBase;
13340
13326
  }
13341
- var _coords = (_options$coords = options.coords) !== null && _options$coords !== void 0 ? _options$coords : this.base.coords;
13342
- this.coords = _coords;
13327
+ var coords = (_options$coords = options.coords) !== null && _options$coords !== void 0 ? _options$coords : this.base.coords;
13328
+ for (var name in coords) {
13329
+ if (!('name' in coords[name])) {
13330
+ coords[name].name = name;
13331
+ }
13332
+ }
13333
+ this.coords = coords;
13343
13334
  var white2 = (_ref39 = (_options$white = options.white) !== null && _options$white !== void 0 ? _options$white : this.base.white) !== null && _ref39 !== void 0 ? _ref39 : 'D65';
13344
13335
  this.white = getWhite(white2);
13345
13336
  this.formats = (_options$formats = options.formats) !== null && _options$formats !== void 0 ? _options$formats : {};
13346
- for (var name in this.formats) {
13347
- var format = this.formats[name];
13337
+ for (var _name in this.formats) {
13338
+ var format = this.formats[_name];
13348
13339
  format.type || (format.type = 'function');
13349
- format.name || (format.name = name);
13340
+ format.name || (format.name = _name);
13350
13341
  }
13351
13342
  if (options.cssId && !((_this$formats$functio = this.formats.functions) !== null && _this$formats$functio !== void 0 && _this$formats$functio.color)) {
13352
13343
  this.formats.color = {
@@ -13359,7 +13350,12 @@
13359
13350
  this.formats.color.id = this.id;
13360
13351
  }
13361
13352
  this.referred = options.referred;
13362
- _classPrivateFieldSet(this, _path, _classPrivateMethodGet(this, _getPath, _getPath2).call(this).reverse());
13353
+ Object.defineProperty(this, 'path', {
13354
+ value: getPath(this).reverse(),
13355
+ writable: false,
13356
+ enumerable: true,
13357
+ configurable: true
13358
+ });
13363
13359
  hooks.run('colorspace-init-end', this);
13364
13360
  }
13365
13361
  _createClass(_ColorSpace, [ {
@@ -13388,8 +13384,8 @@
13388
13384
  }, {
13389
13385
  key: 'cssId',
13390
13386
  get: function get() {
13391
- var _this$formats$functio2, _this$formats$functio3;
13392
- return ((_this$formats$functio2 = this.formats.functions) === null || _this$formats$functio2 === void 0 ? void 0 : (_this$formats$functio3 = _this$formats$functio2.color) === null || _this$formats$functio3 === void 0 ? void 0 : _this$formats$functio3.id) || this.id;
13387
+ var _this$formats$functio2;
13388
+ return ((_this$formats$functio2 = this.formats.functions) === null || _this$formats$functio2 === void 0 || (_this$formats$functio2 = _this$formats$functio2.color) === null || _this$formats$functio2 === void 0 ? void 0 : _this$formats$functio2.id) || this.id;
13393
13389
  }
13394
13390
  }, {
13395
13391
  key: 'isPolar',
@@ -13405,7 +13401,7 @@
13405
13401
  key: 'getFormat',
13406
13402
  value: function getFormat(format) {
13407
13403
  if (_typeof(format) === 'object') {
13408
- format = _classPrivateMethodGet(this, _processFormat, _processFormat2).call(this, format);
13404
+ format = processFormat(format, this);
13409
13405
  return format;
13410
13406
  }
13411
13407
  var ret;
@@ -13415,11 +13411,19 @@
13415
13411
  ret = this.formats[format];
13416
13412
  }
13417
13413
  if (ret) {
13418
- ret = _classPrivateMethodGet(this, _processFormat, _processFormat2).call(this, ret);
13414
+ ret = processFormat(ret, this);
13419
13415
  return ret;
13420
13416
  }
13421
13417
  return null;
13422
13418
  }
13419
+ }, {
13420
+ key: 'equals',
13421
+ value: function equals(space) {
13422
+ if (!space) {
13423
+ return false;
13424
+ }
13425
+ return this === space || this.id === space.id;
13426
+ }
13423
13427
  }, {
13424
13428
  key: 'to',
13425
13429
  value: function to(space, coords) {
@@ -13429,17 +13433,17 @@
13429
13433
  coords = _ref41[1];
13430
13434
  }
13431
13435
  space = _ColorSpace.get(space);
13432
- if (this === space) {
13436
+ if (this.equals(space)) {
13433
13437
  return coords;
13434
13438
  }
13435
13439
  coords = coords.map(function(c4) {
13436
13440
  return Number.isNaN(c4) ? 0 : c4;
13437
13441
  });
13438
- var myPath = _classPrivateFieldGet(this, _path);
13439
- var otherPath = _classPrivateFieldGet(space, _path);
13442
+ var myPath = this.path;
13443
+ var otherPath = space.path;
13440
13444
  var connectionSpace, connectionSpaceIndex;
13441
13445
  for (var _i12 = 0; _i12 < myPath.length; _i12++) {
13442
- if (myPath[_i12] === otherPath[_i12]) {
13446
+ if (myPath[_i12].equals(otherPath[_i12])) {
13443
13447
  connectionSpace = myPath[_i12];
13444
13448
  connectionSpaceIndex = _i12;
13445
13449
  } else {
@@ -13599,14 +13603,28 @@
13599
13603
  }
13600
13604
  } ]);
13601
13605
  return _ColorSpace;
13602
- }());
13603
- function _processFormat2(format) {
13606
+ }();
13607
+ var ColorSpace = _ColorSpace;
13608
+ __publicField(ColorSpace, 'registry', {});
13609
+ __publicField(ColorSpace, 'DEFAULT_FORMAT', {
13610
+ type: 'functions',
13611
+ name: 'color'
13612
+ });
13613
+ function getPath(space) {
13614
+ var ret = [ space ];
13615
+ for (var s = space; s = s.base; ) {
13616
+ ret.push(s);
13617
+ }
13618
+ return ret;
13619
+ }
13620
+ function processFormat(format) {
13621
+ var _ref44 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, coords = _ref44.coords;
13604
13622
  if (format.coords && !format.coordGrammar) {
13605
13623
  format.type || (format.type = 'function');
13606
13624
  format.name || (format.name = 'color');
13607
13625
  format.coordGrammar = parseCoordGrammar(format.coords);
13608
- var coordFormats = Object.entries(this.coords).map(function(_ref151, i) {
13609
- var _ref152 = _slicedToArray(_ref151, 2), id = _ref152[0], coordMeta = _ref152[1];
13626
+ var coordFormats = Object.entries(coords).map(function(_ref45, i) {
13627
+ var _ref46 = _slicedToArray(_ref45, 2), id = _ref46[0], coordMeta = _ref46[1];
13610
13628
  var outputType = format.coordGrammar[i][0];
13611
13629
  var fromRange = coordMeta.range || coordMeta.refRange;
13612
13630
  var toRange = outputType.range, suffix = '';
@@ -13622,8 +13640,8 @@
13622
13640
  suffix: suffix
13623
13641
  };
13624
13642
  });
13625
- format.serializeCoords = function(coords, precision) {
13626
- return coords.map(function(c4, i) {
13643
+ format.serializeCoords = function(coords2, precision) {
13644
+ return coords2.map(function(c4, i) {
13627
13645
  var _coordFormats$i = coordFormats[i], fromRange = _coordFormats$i.fromRange, toRange = _coordFormats$i.toRange, suffix = _coordFormats$i.suffix;
13628
13646
  if (fromRange && toRange) {
13629
13647
  c4 = mapRange(fromRange, toRange, c4);
@@ -13638,19 +13656,6 @@
13638
13656
  }
13639
13657
  return format;
13640
13658
  }
13641
- function _getPath2() {
13642
- var ret = [ this ];
13643
- for (var _space2 = this; _space2 = _space2.base; ) {
13644
- ret.push(_space2);
13645
- }
13646
- return ret;
13647
- }
13648
- var ColorSpace = _ColorSpace;
13649
- __publicField(ColorSpace, 'registry', {});
13650
- __publicField(ColorSpace, 'DEFAULT_FORMAT', {
13651
- type: 'functions',
13652
- name: 'color'
13653
- });
13654
13659
  var XYZ_D65 = new ColorSpace({
13655
13660
  id: 'xyz-d65',
13656
13661
  name: 'XYZ D65',
@@ -13720,6 +13725,7 @@
13720
13725
  }(ColorSpace);
13721
13726
  function parse2(str) {
13722
13727
  var _String;
13728
+ var _ref47 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, meta = _ref47.meta;
13723
13729
  var env = {
13724
13730
  str: (_String = String(str)) === null || _String === void 0 ? void 0 : _String.trim()
13725
13731
  };
@@ -13729,124 +13735,117 @@
13729
13735
  }
13730
13736
  env.parsed = parseFunction(env.str);
13731
13737
  if (env.parsed) {
13732
- var _ret2 = function() {
13733
- var name = env.parsed.name;
13734
- if (name === 'color') {
13735
- var id = env.parsed.args.shift();
13736
- var alpha = env.parsed.rawArgs.indexOf('/') > 0 ? env.parsed.args.pop() : 1;
13737
- var _iterator8 = _createForOfIteratorHelper(ColorSpace.all), _step8;
13738
- try {
13739
- for (_iterator8.s(); !(_step8 = _iterator8.n()).done; ) {
13740
- var space = _step8.value;
13741
- var colorSpec = space.getFormat('color');
13742
- if (colorSpec) {
13743
- var _colorSpec$ids;
13744
- if (id === colorSpec.id || (_colorSpec$ids = colorSpec.ids) !== null && _colorSpec$ids !== void 0 && _colorSpec$ids.includes(id)) {
13745
- var _ret3 = function() {
13746
- var argCount = Object.keys(space.coords).length;
13747
- var coords = Array(argCount).fill(0);
13748
- coords.forEach(function(_, i) {
13749
- return coords[i] = env.parsed.args[i] || 0;
13750
- });
13751
- return {
13752
- v: {
13753
- v: {
13754
- spaceId: space.id,
13755
- coords: coords,
13756
- alpha: alpha
13757
- }
13758
- }
13759
- };
13760
- }();
13761
- if (_typeof(_ret3) === 'object') {
13762
- return _ret3.v;
13763
- }
13738
+ var name = env.parsed.name;
13739
+ if (name === 'color') {
13740
+ var id = env.parsed.args.shift();
13741
+ var alpha = env.parsed.rawArgs.indexOf('/') > 0 ? env.parsed.args.pop() : 1;
13742
+ var _iterator8 = _createForOfIteratorHelper(ColorSpace.all), _step8;
13743
+ try {
13744
+ for (_iterator8.s(); !(_step8 = _iterator8.n()).done; ) {
13745
+ var space = _step8.value;
13746
+ var colorSpec = space.getFormat('color');
13747
+ if (colorSpec) {
13748
+ var _colorSpec$ids;
13749
+ if (id === colorSpec.id || (_colorSpec$ids = colorSpec.ids) !== null && _colorSpec$ids !== void 0 && _colorSpec$ids.includes(id)) {
13750
+ var coords = Object.keys(space.coords).map(function(_, i) {
13751
+ return env.parsed.args[i] || 0;
13752
+ });
13753
+ if (meta) {
13754
+ meta.formatId = 'color';
13764
13755
  }
13756
+ return {
13757
+ spaceId: space.id,
13758
+ coords: coords,
13759
+ alpha: alpha
13760
+ };
13765
13761
  }
13766
13762
  }
13767
- } catch (err) {
13768
- _iterator8.e(err);
13769
- } finally {
13770
- _iterator8.f();
13771
- }
13772
- var didYouMean = '';
13773
- if (id in ColorSpace.registry) {
13774
- var _ColorSpace$registry$, _ColorSpace$registry$2, _ColorSpace$registry$3;
13775
- var cssId = (_ColorSpace$registry$ = ColorSpace.registry[id].formats) === null || _ColorSpace$registry$ === void 0 ? void 0 : (_ColorSpace$registry$2 = _ColorSpace$registry$.functions) === null || _ColorSpace$registry$2 === void 0 ? void 0 : (_ColorSpace$registry$3 = _ColorSpace$registry$2.color) === null || _ColorSpace$registry$3 === void 0 ? void 0 : _ColorSpace$registry$3.id;
13776
- if (cssId) {
13777
- didYouMean = 'Did you mean color('.concat(cssId, ')?');
13778
- }
13779
13763
  }
13780
- throw new TypeError('Cannot parse color('.concat(id, '). ') + (didYouMean || 'Missing a plugin?'));
13781
- } else {
13782
- var _iterator9 = _createForOfIteratorHelper(ColorSpace.all), _step9;
13783
- try {
13784
- var _loop5 = function _loop5() {
13785
- var space = _step9.value;
13786
- var format = space.getFormat(name);
13787
- if (format && format.type === 'function') {
13788
- var _alpha = 1;
13789
- if (format.lastAlpha || last(env.parsed.args).alpha) {
13790
- _alpha = env.parsed.args.pop();
13791
- }
13792
- var coords = env.parsed.args;
13793
- if (format.coordGrammar) {
13794
- Object.entries(space.coords).forEach(function(_ref44, i) {
13795
- var _coords$i;
13796
- var _ref45 = _slicedToArray(_ref44, 2), id = _ref45[0], coordMeta = _ref45[1];
13797
- var coordGrammar2 = format.coordGrammar[i];
13798
- var providedType = (_coords$i = coords[i]) === null || _coords$i === void 0 ? void 0 : _coords$i.type;
13799
- coordGrammar2 = coordGrammar2.find(function(c4) {
13800
- return c4 == providedType;
13801
- });
13802
- if (!coordGrammar2) {
13803
- var coordName = coordMeta.name || id;
13804
- throw new TypeError(''.concat(providedType, ' not allowed for ').concat(coordName, ' in ').concat(name, '()'));
13805
- }
13806
- var fromRange = coordGrammar2.range;
13807
- if (providedType === '<percentage>') {
13808
- fromRange || (fromRange = [ 0, 1 ]);
13809
- }
13810
- var toRange = coordMeta.range || coordMeta.refRange;
13811
- if (fromRange && toRange) {
13812
- coords[i] = mapRange(fromRange, toRange, coords[i]);
13813
- }
13764
+ } catch (err) {
13765
+ _iterator8.e(err);
13766
+ } finally {
13767
+ _iterator8.f();
13768
+ }
13769
+ var didYouMean = '';
13770
+ if (id in ColorSpace.registry) {
13771
+ var _ColorSpace$registry$;
13772
+ var cssId = (_ColorSpace$registry$ = ColorSpace.registry[id].formats) === null || _ColorSpace$registry$ === void 0 || (_ColorSpace$registry$ = _ColorSpace$registry$.functions) === null || _ColorSpace$registry$ === void 0 || (_ColorSpace$registry$ = _ColorSpace$registry$.color) === null || _ColorSpace$registry$ === void 0 ? void 0 : _ColorSpace$registry$.id;
13773
+ if (cssId) {
13774
+ didYouMean = 'Did you mean color('.concat(cssId, ')?');
13775
+ }
13776
+ }
13777
+ throw new TypeError('Cannot parse color('.concat(id, '). ') + (didYouMean || 'Missing a plugin?'));
13778
+ } else {
13779
+ var _iterator9 = _createForOfIteratorHelper(ColorSpace.all), _step9;
13780
+ try {
13781
+ var _loop5 = function _loop5() {
13782
+ var space = _step9.value;
13783
+ var format = space.getFormat(name);
13784
+ if (format && format.type === 'function') {
13785
+ var _alpha = 1;
13786
+ if (format.lastAlpha || last(env.parsed.args).alpha) {
13787
+ _alpha = env.parsed.args.pop();
13788
+ }
13789
+ var _coords = env.parsed.args;
13790
+ var types;
13791
+ if (format.coordGrammar) {
13792
+ types = Object.entries(space.coords).map(function(_ref48, i) {
13793
+ var _coords$i;
13794
+ var _ref49 = _slicedToArray(_ref48, 2), id = _ref49[0], coordMeta = _ref49[1];
13795
+ var coordGrammar2 = format.coordGrammar[i];
13796
+ var providedType = (_coords$i = _coords[i]) === null || _coords$i === void 0 ? void 0 : _coords$i.type;
13797
+ var type2 = coordGrammar2.find(function(c4) {
13798
+ return c4 == providedType;
13814
13799
  });
13815
- }
13816
- return {
13817
- v: {
13818
- v: {
13819
- spaceId: space.id,
13820
- coords: coords,
13821
- alpha: _alpha
13822
- }
13800
+ if (!type2) {
13801
+ var coordName = coordMeta.name || id;
13802
+ throw new TypeError(''.concat(providedType, ' not allowed for ').concat(coordName, ' in ').concat(name, '()'));
13823
13803
  }
13824
- };
13804
+ var fromRange = type2.range;
13805
+ if (providedType === '<percentage>') {
13806
+ fromRange || (fromRange = [ 0, 1 ]);
13807
+ }
13808
+ var toRange = coordMeta.range || coordMeta.refRange;
13809
+ if (fromRange && toRange) {
13810
+ _coords[i] = mapRange(fromRange, toRange, _coords[i]);
13811
+ }
13812
+ return type2;
13813
+ });
13825
13814
  }
13826
- };
13827
- for (_iterator9.s(); !(_step9 = _iterator9.n()).done; ) {
13828
- var _ret4 = _loop5();
13829
- if (_typeof(_ret4) === 'object') {
13830
- return _ret4.v;
13815
+ if (meta) {
13816
+ Object.assign(meta, {
13817
+ formatId: format.name,
13818
+ types: types
13819
+ });
13831
13820
  }
13821
+ return {
13822
+ v: {
13823
+ spaceId: space.id,
13824
+ coords: _coords,
13825
+ alpha: _alpha
13826
+ }
13827
+ };
13828
+ }
13829
+ }, _ret2;
13830
+ for (_iterator9.s(); !(_step9 = _iterator9.n()).done; ) {
13831
+ _ret2 = _loop5();
13832
+ if (_ret2) {
13833
+ return _ret2.v;
13832
13834
  }
13833
- } catch (err) {
13834
- _iterator9.e(err);
13835
- } finally {
13836
- _iterator9.f();
13837
13835
  }
13836
+ } catch (err) {
13837
+ _iterator9.e(err);
13838
+ } finally {
13839
+ _iterator9.f();
13838
13840
  }
13839
- }();
13840
- if (_typeof(_ret2) === 'object') {
13841
- return _ret2.v;
13842
13841
  }
13843
13842
  } else {
13844
13843
  var _iterator10 = _createForOfIteratorHelper(ColorSpace.all), _step10;
13845
13844
  try {
13846
13845
  for (_iterator10.s(); !(_step10 = _iterator10.n()).done; ) {
13847
- var space = _step10.value;
13848
- for (var formatId in space.formats) {
13849
- var format = space.formats[formatId];
13846
+ var _space = _step10.value;
13847
+ for (var formatId in _space.formats) {
13848
+ var format = _space.formats[formatId];
13850
13849
  if (format.type !== 'custom') {
13851
13850
  continue;
13852
13851
  }
@@ -13857,6 +13856,9 @@
13857
13856
  if (color) {
13858
13857
  var _color$alpha;
13859
13858
  (_color$alpha = color.alpha) !== null && _color$alpha !== void 0 ? _color$alpha : color.alpha = 1;
13859
+ if (meta) {
13860
+ meta.formatId = formatId;
13861
+ }
13860
13862
  return color;
13861
13863
  }
13862
13864
  }
@@ -13974,7 +13976,7 @@
13974
13976
  },
13975
13977
  formats: {
13976
13978
  lab: {
13977
- coords: [ '<number> | <percentage>', '<number>', '<number>' ]
13979
+ coords: [ '<number> | <percentage>', '<number> | <percentage>[-1,1]', '<number> | <percentage>[-1,1]' ]
13978
13980
  }
13979
13981
  }
13980
13982
  });
@@ -13998,9 +14000,9 @@
13998
14000
  } else if (arc === 'longer') {
13999
14001
  if (-180 < angleDiff && angleDiff < 180) {
14000
14002
  if (angleDiff > 0) {
14001
- a2 += 360;
14002
- } else {
14003
14003
  a1 += 360;
14004
+ } else {
14005
+ a2 += 360;
14004
14006
  }
14005
14007
  }
14006
14008
  } else if (arc === 'shorter') {
@@ -14054,7 +14056,7 @@
14054
14056
  },
14055
14057
  formats: {
14056
14058
  lch: {
14057
- coords: [ '<number> | <percentage>', '<number>', '<number> | <angle>' ]
14059
+ coords: [ '<number> | <percentage>', '<number> | <percentage>', '<number> | <angle>' ]
14058
14060
  }
14059
14061
  }
14060
14062
  });
@@ -14063,7 +14065,7 @@
14063
14065
  var r2d = 180 / \u03c0$1;
14064
14066
  var d2r$1 = \u03c0$1 / 180;
14065
14067
  function deltaE2000(color, sample) {
14066
- var _ref46 = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}, _ref46$kL = _ref46.kL, kL = _ref46$kL === void 0 ? 1 : _ref46$kL, _ref46$kC = _ref46.kC, kC = _ref46$kC === void 0 ? 1 : _ref46$kC, _ref46$kH = _ref46.kH, kH = _ref46$kH === void 0 ? 1 : _ref46$kH;
14068
+ var _ref50 = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}, _ref50$kL = _ref50.kL, kL = _ref50$kL === void 0 ? 1 : _ref50$kL, _ref50$kC = _ref50.kC, kC = _ref50$kC === void 0 ? 1 : _ref50$kC, _ref50$kH = _ref50.kH, kH = _ref50$kH === void 0 ? 1 : _ref50$kH;
14067
14069
  var _lab$from = lab.from(color), _lab$from2 = _slicedToArray(_lab$from, 3), L1 = _lab$from2[0], a1 = _lab$from2[1], b1 = _lab$from2[2];
14068
14070
  var C1 = lch.from(lab, [ L1, a1, b1 ])[1];
14069
14071
  var _lab$from3 = lab.from(sample), _lab$from4 = _slicedToArray(_lab$from3, 3), L2 = _lab$from4[0], a2 = _lab$from4[1], b2 = _lab$from4[2];
@@ -14143,7 +14145,7 @@
14143
14145
  var \u03b5$2 = 75e-6;
14144
14146
  function inGamut(color) {
14145
14147
  var space = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : color.space;
14146
- var _ref47 = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}, _ref47$epsilon = _ref47.epsilon, epsilon = _ref47$epsilon === void 0 ? \u03b5$2 : _ref47$epsilon;
14148
+ var _ref51 = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}, _ref51$epsilon = _ref51.epsilon, epsilon = _ref51$epsilon === void 0 ? \u03b5$2 : _ref51$epsilon;
14147
14149
  color = getColor(color);
14148
14150
  space = ColorSpace.get(space);
14149
14151
  var coords = color.coords;
@@ -14162,7 +14164,7 @@
14162
14164
  };
14163
14165
  }
14164
14166
  function toGamut(color) {
14165
- var _ref48 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, _ref48$method = _ref48.method, method = _ref48$method === void 0 ? defaults.gamut_mapping : _ref48$method, _ref48$space = _ref48.space, space = _ref48$space === void 0 ? color.space : _ref48$space;
14167
+ var _ref52 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, _ref52$method = _ref52.method, method = _ref52$method === void 0 ? defaults.gamut_mapping : _ref52$method, _ref52$space = _ref52.space, space = _ref52$space === void 0 ? color.space : _ref52$space;
14166
14168
  if (isString(arguments[1])) {
14167
14169
  space = arguments[1];
14168
14170
  }
@@ -14170,7 +14172,7 @@
14170
14172
  if (inGamut(color, space, {
14171
14173
  epsilon: 0
14172
14174
  })) {
14173
- return color;
14175
+ return getColor(color);
14174
14176
  }
14175
14177
  var spaceColor = to(color, space);
14176
14178
  if (method !== 'clip' && !inGamut(color, space)) {
@@ -14232,7 +14234,7 @@
14232
14234
  }
14233
14235
  toGamut.returns = 'color';
14234
14236
  function to(color, space) {
14235
- var _ref49 = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}, inGamut2 = _ref49.inGamut;
14237
+ var _ref53 = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}, inGamut2 = _ref53.inGamut;
14236
14238
  color = getColor(color);
14237
14239
  space = ColorSpace.get(space);
14238
14240
  var coords = space.from(color);
@@ -14248,13 +14250,13 @@
14248
14250
  }
14249
14251
  to.returns = 'color';
14250
14252
  function serialize(color) {
14251
- var _ref51, _color$space$getForma;
14252
- var _ref50 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
14253
- var _ref50$precision = _ref50.precision, precision = _ref50$precision === void 0 ? defaults.precision : _ref50$precision, _ref50$format = _ref50.format, format = _ref50$format === void 0 ? 'default' : _ref50$format, _ref50$inGamut = _ref50.inGamut, inGamut$1 = _ref50$inGamut === void 0 ? true : _ref50$inGamut, customOptions = _objectWithoutProperties(_ref50, _excluded9);
14253
+ var _ref55, _color$space$getForma;
14254
+ var _ref54 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
14255
+ var _ref54$precision = _ref54.precision, precision = _ref54$precision === void 0 ? defaults.precision : _ref54$precision, _ref54$format = _ref54.format, format = _ref54$format === void 0 ? 'default' : _ref54$format, _ref54$inGamut = _ref54.inGamut, inGamut$1 = _ref54$inGamut === void 0 ? true : _ref54$inGamut, customOptions = _objectWithoutProperties(_ref54, _excluded9);
14254
14256
  var ret;
14255
14257
  color = getColor(color);
14256
14258
  var formatId = format;
14257
- format = (_ref51 = (_color$space$getForma = color.space.getFormat(format)) !== null && _color$space$getForma !== void 0 ? _color$space$getForma : color.space.getFormat('default')) !== null && _ref51 !== void 0 ? _ref51 : ColorSpace.DEFAULT_FORMAT;
14259
+ format = (_ref55 = (_color$space$getForma = color.space.getFormat(format)) !== null && _color$space$getForma !== void 0 ? _color$space$getForma : color.space.getFormat('default')) !== null && _ref55 !== void 0 ? _ref55 : ColorSpace.DEFAULT_FORMAT;
14258
14260
  inGamut$1 || (inGamut$1 = format.toGamut);
14259
14261
  var coords = color.coords;
14260
14262
  coords = coords.map(function(c4) {
@@ -14573,7 +14575,7 @@
14573
14575
  };
14574
14576
  },
14575
14577
  serialize: function serialize(coords, alpha) {
14576
- var _ref52 = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}, _ref52$collapse = _ref52.collapse, collapse = _ref52$collapse === void 0 ? true : _ref52$collapse;
14578
+ var _ref56 = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}, _ref56$collapse = _ref56.collapse, collapse = _ref56$collapse === void 0 ? true : _ref56$collapse;
14577
14579
  if (alpha < 1) {
14578
14580
  coords.push(alpha);
14579
14581
  }
@@ -14631,8 +14633,8 @@
14631
14633
  });
14632
14634
  defaults.display_space = sRGB;
14633
14635
  if (typeof CSS !== 'undefined' && CSS.supports) {
14634
- for (var _i15 = 0, _arr3 = [ lab, REC2020, P3 ]; _i15 < _arr3.length; _i15++) {
14635
- var space = _arr3[_i15];
14636
+ for (var _i15 = 0, _arr2 = [ lab, REC2020, P3 ]; _i15 < _arr2.length; _i15++) {
14637
+ var space = _arr2[_i15];
14636
14638
  var coords = space.getMinCoords();
14637
14639
  var color = {
14638
14640
  space: space,
@@ -14647,8 +14649,8 @@
14647
14649
  }
14648
14650
  }
14649
14651
  function _display(color) {
14650
- var _ref53 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
14651
- var _ref53$space = _ref53.space, space = _ref53$space === void 0 ? defaults.display_space : _ref53$space, options = _objectWithoutProperties(_ref53, _excluded10);
14652
+ var _ref57 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
14653
+ var _ref57$space = _ref57.space, space = _ref57$space === void 0 ? defaults.display_space : _ref57$space, options = _objectWithoutProperties(_ref57, _excluded10);
14652
14654
  var ret = serialize(color, options);
14653
14655
  if (typeof CSS === 'undefined' || CSS.supports('color', ret) || !defaults.display_space) {
14654
14656
  ret = new String(ret);
@@ -14699,8 +14701,8 @@
14699
14701
  var luminance = Object.freeze({
14700
14702
  __proto__: null,
14701
14703
  getLuminance: getLuminance,
14702
- setLuminance: setLuminance,
14703
- register: register$2
14704
+ register: register$2,
14705
+ setLuminance: setLuminance
14704
14706
  });
14705
14707
  function contrastWCAG21(color1, color2) {
14706
14708
  color1 = getColor(color1);
@@ -14708,9 +14710,9 @@
14708
14710
  var Y1 = Math.max(getLuminance(color1), 0);
14709
14711
  var Y2 = Math.max(getLuminance(color2), 0);
14710
14712
  if (Y2 > Y1) {
14711
- var _ref54 = [ Y2, Y1 ];
14712
- Y1 = _ref54[0];
14713
- Y2 = _ref54[1];
14713
+ var _ref58 = [ Y2, Y1 ];
14714
+ Y1 = _ref58[0];
14715
+ Y2 = _ref58[1];
14714
14716
  }
14715
14717
  return (Y1 + .05) / (Y2 + .05);
14716
14718
  }
@@ -14784,9 +14786,9 @@
14784
14786
  var Y1 = Math.max(getLuminance(color1), 0);
14785
14787
  var Y2 = Math.max(getLuminance(color2), 0);
14786
14788
  if (Y2 > Y1) {
14787
- var _ref55 = [ Y2, Y1 ];
14788
- Y1 = _ref55[0];
14789
- Y2 = _ref55[1];
14789
+ var _ref59 = [ Y2, Y1 ];
14790
+ Y1 = _ref59[0];
14791
+ Y2 = _ref59[1];
14790
14792
  }
14791
14793
  var denom = Y1 + Y2;
14792
14794
  return denom === 0 ? 0 : (Y1 - Y2) / denom;
@@ -14798,9 +14800,9 @@
14798
14800
  var Y1 = Math.max(getLuminance(color1), 0);
14799
14801
  var Y2 = Math.max(getLuminance(color2), 0);
14800
14802
  if (Y2 > Y1) {
14801
- var _ref56 = [ Y2, Y1 ];
14802
- Y1 = _ref56[0];
14803
- Y2 = _ref56[1];
14803
+ var _ref60 = [ Y2, Y1 ];
14804
+ Y1 = _ref60[0];
14805
+ Y2 = _ref60[1];
14804
14806
  }
14805
14807
  return Y2 === 0 ? max : (Y1 - Y2) / Y2;
14806
14808
  }
@@ -14853,7 +14855,7 @@
14853
14855
  },
14854
14856
  formats: {
14855
14857
  'lab-d65': {
14856
- coords: [ '<number> | <percentage>', '<number>', '<number>' ]
14858
+ coords: [ '<number> | <percentage>', '<number> | <percentage>[-1,1]', '<number> | <percentage>[-1,1]' ]
14857
14859
  }
14858
14860
  }
14859
14861
  });
@@ -14869,12 +14871,12 @@
14869
14871
  }
14870
14872
  var contrastMethods = Object.freeze({
14871
14873
  __proto__: null,
14872
- contrastWCAG21: contrastWCAG21,
14873
14874
  contrastAPCA: contrastAPCA,
14874
- contrastMichelson: contrastMichelson,
14875
- contrastWeber: contrastWeber,
14875
+ contrastDeltaPhi: contrastDeltaPhi,
14876
14876
  contrastLstar: contrastLstar,
14877
- contrastDeltaPhi: contrastDeltaPhi
14877
+ contrastMichelson: contrastMichelson,
14878
+ contrastWCAG21: contrastWCAG21,
14879
+ contrastWeber: contrastWeber
14878
14880
  });
14879
14881
  function contrast(background, foreground) {
14880
14882
  var o = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
@@ -14923,9 +14925,9 @@
14923
14925
  }
14924
14926
  var chromaticity = Object.freeze({
14925
14927
  __proto__: null,
14928
+ register: register$1,
14926
14929
  uv: uv,
14927
- xy: xy,
14928
- register: register$1
14930
+ xy: xy
14929
14931
  });
14930
14932
  function deltaE76(color, sample) {
14931
14933
  return distance(color, sample, 'lab');
@@ -14933,7 +14935,7 @@
14933
14935
  var \u03c0 = Math.PI;
14934
14936
  var d2r = \u03c0 / 180;
14935
14937
  function deltaECMC(color, sample) {
14936
- var _ref57 = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}, _ref57$l = _ref57.l, l = _ref57$l === void 0 ? 2 : _ref57$l, _ref57$c = _ref57.c, c4 = _ref57$c === void 0 ? 1 : _ref57$c;
14938
+ var _ref61 = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}, _ref61$l = _ref61.l, l = _ref61$l === void 0 ? 2 : _ref61$l, _ref61$c = _ref61.c, c4 = _ref61$c === void 0 ? 1 : _ref61$c;
14937
14939
  var _lab$from5 = lab.from(color), _lab$from6 = _slicedToArray(_lab$from5, 3), L1 = _lab$from6[0], a1 = _lab$from6[1], b1 = _lab$from6[2];
14938
14940
  var _lch$from = lch.from(lab, [ L1, a1, b1 ]), _lch$from2 = _slicedToArray(_lch$from, 3), C1 = _lch$from2[1], H1 = _lch$from2[2];
14939
14941
  var _lab$from7 = lab.from(sample), _lab$from8 = _slicedToArray(_lab$from7, 3), L2 = _lab$from8[0], a2 = _lab$from8[1], b2 = _lab$from8[2];
@@ -15188,7 +15190,7 @@
15188
15190
  var LabtoLMS_M = [ [ .9999999984505198, .39633779217376786, .2158037580607588 ], [ 1.0000000088817609, -.10556134232365635, -.06385417477170591 ], [ 1.0000000546724108, -.08948418209496575, -1.2914855378640917 ] ];
15189
15191
  var OKLab = new ColorSpace({
15190
15192
  id: 'oklab',
15191
- name: 'OKLab',
15193
+ name: 'Oklab',
15192
15194
  coords: {
15193
15195
  l: {
15194
15196
  refRange: [ 0, 1 ],
@@ -15219,7 +15221,7 @@
15219
15221
  },
15220
15222
  formats: {
15221
15223
  oklab: {
15222
- coords: [ '<number> | <percentage>', '<number>', '<number>' ]
15224
+ coords: [ '<percentage> | <number>', '<number> | <percentage>[-1,1]', '<number> | <percentage>[-1,1]' ]
15223
15225
  }
15224
15226
  }
15225
15227
  });
@@ -15231,15 +15233,14 @@
15231
15233
  var \u0394b = b1 - b2;
15232
15234
  return Math.sqrt(Math.pow(\u0394L, 2) + Math.pow(\u0394a, 2) + Math.pow(\u0394b, 2));
15233
15235
  }
15234
- var deltaEMethods = Object.freeze({
15235
- __proto__: null,
15236
+ var deltaEMethods = {
15236
15237
  deltaE76: deltaE76,
15237
15238
  deltaECMC: deltaECMC,
15238
15239
  deltaE2000: deltaE2000,
15239
15240
  deltaEJz: deltaEJz,
15240
15241
  deltaEITP: deltaEITP,
15241
15242
  deltaEOK: deltaEOK
15242
- });
15243
+ };
15243
15244
  function deltaE(c12, c22) {
15244
15245
  var o = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
15245
15246
  if (isString(o)) {
@@ -15275,19 +15276,19 @@
15275
15276
  }
15276
15277
  var variations = Object.freeze({
15277
15278
  __proto__: null,
15278
- lighten: lighten,
15279
- darken: darken
15279
+ darken: darken,
15280
+ lighten: lighten
15280
15281
  });
15281
15282
  function mix(c12, c22) {
15282
15283
  var p2 = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : .5;
15283
15284
  var o = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};
15284
- var _ref58 = [ getColor(c12), getColor(c22) ];
15285
- c12 = _ref58[0];
15286
- c22 = _ref58[1];
15285
+ var _ref62 = [ getColor(c12), getColor(c22) ];
15286
+ c12 = _ref62[0];
15287
+ c22 = _ref62[1];
15287
15288
  if (type(p2) === 'object') {
15288
- var _ref59 = [ .5, p2 ];
15289
- p2 = _ref59[0];
15290
- o = _ref59[1];
15289
+ var _ref63 = [ .5, p2 ];
15290
+ p2 = _ref63[0];
15291
+ o = _ref63[1];
15291
15292
  }
15292
15293
  var _o3 = o, space = _o3.space, outputSpace = _o3.outputSpace, premultiplied = _o3.premultiplied;
15293
15294
  var r = range(c12, c22, {
@@ -15309,9 +15310,9 @@
15309
15310
  }
15310
15311
  var _options = options, maxDeltaE = _options.maxDeltaE, deltaEMethod = _options.deltaEMethod, _options$steps = _options.steps, steps2 = _options$steps === void 0 ? 2 : _options$steps, _options$maxSteps = _options.maxSteps, maxSteps = _options$maxSteps === void 0 ? 1e3 : _options$maxSteps, rangeOptions = _objectWithoutProperties(_options, _excluded13);
15311
15312
  if (!colorRange) {
15312
- var _ref60 = [ getColor(c12), getColor(c22) ];
15313
- c12 = _ref60[0];
15314
- c22 = _ref60[1];
15313
+ var _ref64 = [ getColor(c12), getColor(c22) ];
15314
+ c12 = _ref64[0];
15315
+ c22 = _ref64[1];
15315
15316
  colorRange = range(c12, c22, rangeOptions);
15316
15317
  }
15317
15318
  var totalDelta = deltaE(c12, c22);
@@ -15394,7 +15395,7 @@
15394
15395
  if (space.coords.h && space.coords.h.type === 'angle') {
15395
15396
  var arc = options.hue = options.hue || 'shorter';
15396
15397
  var hue = [ space, 'h' ];
15397
- var _ref61 = [ get(color1, hue), get(color2, hue) ], \u03b81 = _ref61[0], \u03b82 = _ref61[1];
15398
+ var _ref65 = [ get(color1, hue), get(color2, hue) ], \u03b81 = _ref65[0], \u03b82 = _ref65[1];
15398
15399
  var _adjust = adjust(arc, [ \u03b81, \u03b82 ]);
15399
15400
  var _adjust2 = _slicedToArray(_adjust, 2);
15400
15401
  \u03b81 = _adjust2[0];
@@ -15452,11 +15453,11 @@
15452
15453
  }
15453
15454
  var interpolation = Object.freeze({
15454
15455
  __proto__: null,
15456
+ isRange: isRange,
15455
15457
  mix: mix,
15456
- steps: steps,
15457
15458
  range: range,
15458
- isRange: isRange,
15459
- register: register
15459
+ register: register,
15460
+ steps: steps
15460
15461
  });
15461
15462
  var HSL = new ColorSpace({
15462
15463
  id: 'hsl',
@@ -15673,7 +15674,7 @@
15673
15674
  });
15674
15675
  var oklch = new ColorSpace({
15675
15676
  id: 'oklch',
15676
- name: 'OKLCh',
15677
+ name: 'Oklch',
15677
15678
  coords: {
15678
15679
  l: {
15679
15680
  refRange: [ 0, 1 ],
@@ -15716,7 +15717,7 @@
15716
15717
  },
15717
15718
  formats: {
15718
15719
  oklch: {
15719
- coords: [ '<number> | <percentage>', '<number>', '<number> | <angle>' ]
15720
+ coords: [ '<number> | <percentage>', '<number> | <percentage>[0,1]', '<number> | <angle>' ]
15720
15721
  }
15721
15722
  }
15722
15723
  });
@@ -15767,7 +15768,7 @@
15767
15768
  if (val <= .5) {
15768
15769
  return Math.pow(val, 2) / 3 * scale;
15769
15770
  }
15770
- return Math.exp((val - c) / a + b) / 12 * scale;
15771
+ return (Math.exp((val - c) / a) + b) / 12 * scale;
15771
15772
  });
15772
15773
  },
15773
15774
  fromBase: function fromBase(RGB) {
@@ -15796,8 +15797,8 @@
15796
15797
  env.M = adapt(env.W1, env.W2, env.options.method);
15797
15798
  }
15798
15799
  });
15799
- function defineCAT(_ref62) {
15800
- var id = _ref62.id, toCone_M = _ref62.toCone_M, fromCone_M = _ref62.fromCone_M;
15800
+ function defineCAT(_ref66) {
15801
+ var id = _ref66.id, toCone_M = _ref66.toCone_M, fromCone_M = _ref66.fromCone_M;
15801
15802
  CATs[id] = arguments[0];
15802
15803
  }
15803
15804
  function adapt(W1, W2) {
@@ -15919,43 +15920,39 @@
15919
15920
  });
15920
15921
  var spaces = Object.freeze({
15921
15922
  __proto__: null,
15922
- XYZ_D65: XYZ_D65,
15923
- XYZ_D50: XYZ_D50,
15924
- XYZ_ABS_D65: XYZ_Abs_D65,
15925
- Lab_D65: lab_d65,
15926
- Lab: lab,
15927
- LCH: lch,
15928
- sRGB_Linear: sRGBLinear,
15929
- sRGB: sRGB,
15923
+ A98RGB: a98rgb,
15924
+ A98RGB_Linear: A98Linear,
15925
+ ACEScc: acescc,
15926
+ ACEScg: ACEScg,
15930
15927
  HSL: HSL,
15931
- HWB: hwb,
15932
15928
  HSV: HSV,
15933
- P3_Linear: P3Linear,
15929
+ HWB: hwb,
15930
+ ICTCP: ictcp,
15931
+ JzCzHz: jzczhz,
15932
+ Jzazbz: Jzazbz,
15933
+ LCH: lch,
15934
+ Lab: lab,
15935
+ Lab_D65: lab_d65,
15936
+ OKLCH: oklch,
15937
+ OKLab: OKLab,
15934
15938
  P3: P3,
15935
- A98RGB_Linear: A98Linear,
15936
- A98RGB: a98rgb,
15937
- ProPhoto_Linear: ProPhotoLinear,
15939
+ P3_Linear: P3Linear,
15938
15940
  ProPhoto: prophoto,
15939
- REC_2020_Linear: REC2020Linear,
15941
+ ProPhoto_Linear: ProPhotoLinear,
15940
15942
  REC_2020: REC2020,
15941
- OKLab: OKLab,
15942
- OKLCH: oklch,
15943
- Jzazbz: Jzazbz,
15944
- JzCzHz: jzczhz,
15945
- ICTCP: ictcp,
15946
- REC_2100_PQ: rec2100Pq,
15943
+ REC_2020_Linear: REC2020Linear,
15947
15944
  REC_2100_HLG: rec2100Hlg,
15948
- ACEScg: ACEScg,
15949
- ACEScc: acescc
15945
+ REC_2100_PQ: rec2100Pq,
15946
+ XYZ_ABS_D65: XYZ_Abs_D65,
15947
+ XYZ_D50: XYZ_D50,
15948
+ XYZ_D65: XYZ_D65,
15949
+ sRGB: sRGB,
15950
+ sRGB_Linear: sRGBLinear
15950
15951
  });
15951
- var Color = (_space = new WeakMap(), function() {
15952
+ var Color = function() {
15952
15953
  function Color() {
15953
15954
  var _this2 = this;
15954
15955
  _classCallCheck(this, Color);
15955
- _classPrivateFieldInitSpec(this, _space, {
15956
- writable: true,
15957
- value: void 0
15958
- });
15959
15956
  var color;
15960
15957
  for (var _len3 = arguments.length, args = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {
15961
15958
  args[_key3] = arguments[_key3];
@@ -15973,7 +15970,12 @@
15973
15970
  coords = args[1];
15974
15971
  alpha = args[2];
15975
15972
  }
15976
- _classPrivateFieldSet(this, _space, ColorSpace.get(space));
15973
+ Object.defineProperty(this, 'space', {
15974
+ value: ColorSpace.get(space),
15975
+ writable: false,
15976
+ enumerable: true,
15977
+ configurable: true
15978
+ });
15977
15979
  this.coords = coords ? coords.slice() : [ 0, 0, 0 ];
15978
15980
  this.alpha = alpha < 1 ? alpha : 1;
15979
15981
  for (var _i17 = 0; _i17 < this.coords.length; _i17++) {
@@ -15991,19 +15993,14 @@
15991
15993
  }
15992
15994
  });
15993
15995
  };
15994
- for (var id in _classPrivateFieldGet(this, _space).coords) {
15996
+ for (var id in this.space.coords) {
15995
15997
  _loop6(id);
15996
15998
  }
15997
15999
  }
15998
16000
  _createClass(Color, [ {
15999
- key: 'space',
16000
- get: function get() {
16001
- return _classPrivateFieldGet(this, _space);
16002
- }
16003
- }, {
16004
16001
  key: 'spaceId',
16005
16002
  get: function get() {
16006
- return _classPrivateFieldGet(this, _space).id;
16003
+ return this.space.id;
16007
16004
  }
16008
16005
  }, {
16009
16006
  key: 'clone',
@@ -16095,7 +16092,7 @@
16095
16092
  }
16096
16093
  } ]);
16097
16094
  return Color;
16098
- }());
16095
+ }();
16099
16096
  Color.defineFunctions({
16100
16097
  get: get,
16101
16098
  getAll: getAll,
@@ -16127,7 +16124,7 @@
16127
16124
  hooks.add('colorspace-init-end', function(space) {
16128
16125
  var _space$aliases;
16129
16126
  addSpaceAccessors(space.id, space);
16130
- (_space$aliases = space.aliases) === null || _space$aliases === void 0 ? void 0 : _space$aliases.forEach(function(alias) {
16127
+ (_space$aliases = space.aliases) === null || _space$aliases === void 0 || _space$aliases.forEach(function(alias) {
16131
16128
  addSpaceAccessors(alias, space);
16132
16129
  });
16133
16130
  });
@@ -16185,6 +16182,9 @@
16185
16182
  Color.extend({
16186
16183
  deltaE: deltaE
16187
16184
  });
16185
+ Object.assign(Color, {
16186
+ deltaEMethods: deltaEMethods
16187
+ });
16188
16188
  Color.extend(variations);
16189
16189
  Color.extend({
16190
16190
  contrast: contrast
@@ -16394,8 +16394,8 @@
16394
16394
  if (!refs || !refs.length) {
16395
16395
  return false;
16396
16396
  }
16397
- return refs.some(function(_ref63) {
16398
- var actualNode = _ref63.actualNode;
16397
+ return refs.some(function(_ref67) {
16398
+ var actualNode = _ref67.actualNode;
16399
16399
  return isVisible(actualNode, screenReader, recursed);
16400
16400
  });
16401
16401
  }
@@ -16407,7 +16407,7 @@
16407
16407
  var vNode = el instanceof abstract_virtual_node_default ? el : get_node_from_tree_default(el);
16408
16408
  el = vNode ? vNode.actualNode : el;
16409
16409
  var cacheName = '_isVisible' + (screenReader ? 'ScreenReader' : '');
16410
- var _ref64 = (_window$Node2 = window.Node) !== null && _window$Node2 !== void 0 ? _window$Node2 : {}, DOCUMENT_NODE = _ref64.DOCUMENT_NODE, DOCUMENT_FRAGMENT_NODE = _ref64.DOCUMENT_FRAGMENT_NODE;
16410
+ var _ref68 = (_window$Node2 = window.Node) !== null && _window$Node2 !== void 0 ? _window$Node2 : {}, DOCUMENT_NODE = _ref68.DOCUMENT_NODE, DOCUMENT_FRAGMENT_NODE = _ref68.DOCUMENT_FRAGMENT_NODE;
16411
16411
  var nodeType = vNode ? vNode.props.nodeType : el.nodeType;
16412
16412
  var nodeName2 = vNode ? vNode.props.nodeName : el.nodeName.toLowerCase();
16413
16413
  if (vNode && typeof vNode[cacheName] !== 'undefined') {
@@ -16807,7 +16807,7 @@
16807
16807
  expressions.forEach(function(expression) {
16808
16808
  var _matchingNodes$nodes;
16809
16809
  var matchingNodes = findMatchingNodes(expression, selectorMap, shadowId);
16810
- matchingNodes === null || matchingNodes === void 0 ? void 0 : (_matchingNodes$nodes = matchingNodes.nodes) === null || _matchingNodes$nodes === void 0 ? void 0 : _matchingNodes$nodes.forEach(function(node) {
16810
+ matchingNodes === null || matchingNodes === void 0 || (_matchingNodes$nodes = matchingNodes.nodes) === null || _matchingNodes$nodes === void 0 || _matchingNodes$nodes.forEach(function(node) {
16811
16811
  if (matchingNodes.isComplexSelector && !_matchesExpression(node, expression)) {
16812
16812
  return;
16813
16813
  }
@@ -17213,22 +17213,22 @@
17213
17213
  if (!win.navigator || _typeof(win.navigator) !== 'object') {
17214
17214
  return {};
17215
17215
  }
17216
- var navigator = win.navigator, innerHeight = win.innerHeight, innerWidth = win.innerWidth;
17217
- var _ref65 = getOrientation(win) || {}, angle = _ref65.angle, type2 = _ref65.type;
17216
+ var navigator2 = win.navigator, innerHeight = win.innerHeight, innerWidth = win.innerWidth;
17217
+ var _ref69 = getOrientation(win) || {}, angle = _ref69.angle, type2 = _ref69.type;
17218
17218
  return {
17219
- userAgent: navigator.userAgent,
17219
+ userAgent: navigator2.userAgent,
17220
17220
  windowWidth: innerWidth,
17221
17221
  windowHeight: innerHeight,
17222
17222
  orientationAngle: angle,
17223
17223
  orientationType: type2
17224
17224
  };
17225
17225
  }
17226
- function getOrientation(_ref66) {
17227
- var screen = _ref66.screen;
17226
+ function getOrientation(_ref70) {
17227
+ var screen = _ref70.screen;
17228
17228
  return screen.orientation || screen.msOrientation || screen.mozOrientation;
17229
17229
  }
17230
- function createFrameContext(frame, _ref67) {
17231
- var focusable = _ref67.focusable, page = _ref67.page;
17230
+ function createFrameContext(frame, _ref71) {
17231
+ var focusable = _ref71.focusable, page = _ref71.page;
17232
17232
  return {
17233
17233
  node: frame,
17234
17234
  include: [],
@@ -17467,8 +17467,8 @@
17467
17467
  }
17468
17468
  context.frames.push(createFrameContext(frame, context));
17469
17469
  }
17470
- function isPageContext(_ref68) {
17471
- var include = _ref68.include;
17470
+ function isPageContext(_ref72) {
17471
+ var include = _ref72.include;
17472
17472
  return include.length === 1 && include[0].actualNode === document.documentElement;
17473
17473
  }
17474
17474
  function validateContext(context) {
@@ -17477,8 +17477,8 @@
17477
17477
  throw new Error('No elements found for include in ' + env + ' Context');
17478
17478
  }
17479
17479
  }
17480
- function getRootNode2(_ref69) {
17481
- var include = _ref69.include, exclude = _ref69.exclude;
17480
+ function getRootNode2(_ref73) {
17481
+ var include = _ref73.include, exclude = _ref73.exclude;
17482
17482
  var selectors = Array.from(include).concat(Array.from(exclude));
17483
17483
  for (var _i23 = 0; _i23 < selectors.length; _i23++) {
17484
17484
  var item = selectors[_i23];
@@ -17497,8 +17497,8 @@
17497
17497
  return [];
17498
17498
  }
17499
17499
  var _Context = new Context(context), frames = _Context.frames;
17500
- return frames.map(function(_ref70) {
17501
- var node = _ref70.node, frameContext = _objectWithoutProperties(_ref70, _excluded14);
17500
+ return frames.map(function(_ref74) {
17501
+ var node = _ref74.node, frameContext = _objectWithoutProperties(_ref74, _excluded14);
17502
17502
  frameContext.initiator = false;
17503
17503
  var frameSelector = _getAncestry(node);
17504
17504
  return {
@@ -17508,8 +17508,8 @@
17508
17508
  });
17509
17509
  }
17510
17510
  function _getRule(ruleId) {
17511
- var rule = axe._audit.rules.find(function(_ref71) {
17512
- var id = _ref71.id;
17511
+ var rule = axe._audit.rules.find(function(_ref75) {
17512
+ var id = _ref75.id;
17513
17513
  return id === ruleId;
17514
17514
  });
17515
17515
  if (!rule) {
@@ -17648,8 +17648,8 @@
17648
17648
  return !!standards_default.htmlElms[nodeName2];
17649
17649
  }
17650
17650
  var is_html_element_default = isHtmlElement;
17651
- function _isNodeInContext(node, _ref72) {
17652
- var _ref72$include = _ref72.include, include = _ref72$include === void 0 ? [] : _ref72$include, _ref72$exclude = _ref72.exclude, exclude = _ref72$exclude === void 0 ? [] : _ref72$exclude;
17651
+ function _isNodeInContext(node, _ref76) {
17652
+ var _ref76$include = _ref76.include, include = _ref76$include === void 0 ? [] : _ref76$include, _ref76$exclude = _ref76.exclude, exclude = _ref76$exclude === void 0 ? [] : _ref76$exclude;
17653
17653
  var filterInclude = include.filter(function(candidate) {
17654
17654
  return _contains(candidate, node);
17655
17655
  });
@@ -18215,8 +18215,8 @@
18215
18215
  return matchExpressions(domTree, expressions, filter);
18216
18216
  }
18217
18217
  var query_selector_all_filter_default = querySelectorAllFilter;
18218
- function preloadCssom(_ref73) {
18219
- var _ref73$treeRoot = _ref73.treeRoot, treeRoot = _ref73$treeRoot === void 0 ? axe._tree[0] : _ref73$treeRoot;
18218
+ function preloadCssom(_ref77) {
18219
+ var _ref77$treeRoot = _ref77.treeRoot, treeRoot = _ref77$treeRoot === void 0 ? axe._tree[0] : _ref77$treeRoot;
18220
18220
  var rootNodes = getAllRootNodesInTree(treeRoot);
18221
18221
  if (!rootNodes.length) {
18222
18222
  return Promise.resolve();
@@ -18246,8 +18246,8 @@
18246
18246
  }
18247
18247
  function getCssomForAllRootNodes(rootNodes, convertDataToStylesheet) {
18248
18248
  var promises = [];
18249
- rootNodes.forEach(function(_ref74, index) {
18250
- var rootNode = _ref74.rootNode, shadowId = _ref74.shadowId;
18249
+ rootNodes.forEach(function(_ref78, index) {
18250
+ var rootNode = _ref78.rootNode, shadowId = _ref78.shadowId;
18251
18251
  var sheets = getStylesheetsOfRootNode(rootNode, shadowId, convertDataToStylesheet);
18252
18252
  if (!sheets) {
18253
18253
  return Promise.all(promises);
@@ -18333,10 +18333,10 @@
18333
18333
  return true;
18334
18334
  });
18335
18335
  }
18336
- function preloadMedia(_ref75) {
18337
- var _ref75$treeRoot = _ref75.treeRoot, treeRoot = _ref75$treeRoot === void 0 ? axe._tree[0] : _ref75$treeRoot;
18338
- var mediaVirtualNodes = query_selector_all_filter_default(treeRoot, 'video, audio', function(_ref76) {
18339
- var actualNode = _ref76.actualNode;
18336
+ function preloadMedia(_ref79) {
18337
+ var _ref79$treeRoot = _ref79.treeRoot, treeRoot = _ref79$treeRoot === void 0 ? axe._tree[0] : _ref79$treeRoot;
18338
+ var mediaVirtualNodes = query_selector_all_filter_default(treeRoot, 'video, audio', function(_ref80) {
18339
+ var actualNode = _ref80.actualNode;
18340
18340
  if (actualNode.hasAttribute('src')) {
18341
18341
  return !!actualNode.getAttribute('src');
18342
18342
  }
@@ -18348,8 +18348,8 @@
18348
18348
  }
18349
18349
  return true;
18350
18350
  });
18351
- return Promise.all(mediaVirtualNodes.map(function(_ref77) {
18352
- var actualNode = _ref77.actualNode;
18351
+ return Promise.all(mediaVirtualNodes.map(function(_ref81) {
18352
+ var actualNode = _ref81.actualNode;
18353
18353
  return isMediaElementReady(actualNode);
18354
18354
  }));
18355
18355
  }
@@ -18652,8 +18652,8 @@
18652
18652
  }
18653
18653
  }
18654
18654
  function setScrollState(scrollState) {
18655
- scrollState.forEach(function(_ref79) {
18656
- var elm = _ref79.elm, top = _ref79.top, left = _ref79.left;
18655
+ scrollState.forEach(function(_ref83) {
18656
+ var elm = _ref83.elm, top = _ref83.top, left = _ref83.left;
18657
18657
  return setScroll(elm, top, left);
18658
18658
  });
18659
18659
  }
@@ -18681,8 +18681,8 @@
18681
18681
  }
18682
18682
  return selectAllRecursive(selectorArr, doc);
18683
18683
  }
18684
- function selectAllRecursive(_ref80, doc) {
18685
- var _ref81 = _toArray(_ref80), selectorStr = _ref81[0], restSelector = _ref81.slice(1);
18684
+ function selectAllRecursive(_ref84, doc) {
18685
+ var _ref85 = _toArray(_ref84), selectorStr = _ref85[0], restSelector = _ref85.slice(1);
18686
18686
  var elms = doc.querySelectorAll(selectorStr);
18687
18687
  if (restSelector.length === 0) {
18688
18688
  return Array.from(elms);
@@ -18786,9 +18786,9 @@
18786
18786
  nodeTypeToName[nodeNamesToTypes[nodeName2]] = nodeName2;
18787
18787
  });
18788
18788
  function normaliseProps(serialNode) {
18789
- var _serialNode$nodeName, _ref82, _serialNode$nodeType;
18789
+ var _serialNode$nodeName, _ref86, _serialNode$nodeType;
18790
18790
  var nodeName2 = (_serialNode$nodeName = serialNode.nodeName) !== null && _serialNode$nodeName !== void 0 ? _serialNode$nodeName : nodeTypeToName[serialNode.nodeType];
18791
- var nodeType = (_ref82 = (_serialNode$nodeType = serialNode.nodeType) !== null && _serialNode$nodeType !== void 0 ? _serialNode$nodeType : nodeNamesToTypes[serialNode.nodeName]) !== null && _ref82 !== void 0 ? _ref82 : 1;
18791
+ var nodeType = (_ref86 = (_serialNode$nodeType = serialNode.nodeType) !== null && _serialNode$nodeType !== void 0 ? _serialNode$nodeType : nodeNamesToTypes[serialNode.nodeName]) !== null && _ref86 !== void 0 ? _ref86 : 1;
18792
18792
  assert_default(typeof nodeType === 'number', 'nodeType has to be a number, got \''.concat(nodeType, '\''));
18793
18793
  assert_default(typeof nodeName2 === 'string', 'nodeName has to be a string, got \''.concat(nodeName2, '\''));
18794
18794
  nodeName2 = nodeName2.toLowerCase();
@@ -18809,8 +18809,8 @@
18809
18809
  delete props.attributes;
18810
18810
  return Object.freeze(props);
18811
18811
  }
18812
- function normaliseAttrs(_ref83) {
18813
- var _ref83$attributes = _ref83.attributes, attributes2 = _ref83$attributes === void 0 ? {} : _ref83$attributes;
18812
+ function normaliseAttrs(_ref87) {
18813
+ var _ref87$attributes = _ref87.attributes, attributes2 = _ref87$attributes === void 0 ? {} : _ref87$attributes;
18814
18814
  var attrMap = {
18815
18815
  htmlFor: 'for',
18816
18816
  className: 'class'
@@ -21376,8 +21376,8 @@
21376
21376
  nodeName: [ 'abbr', 'address', 'canvas', 'div', 'p', 'pre', 'blockquote', 'ins', 'del', 'output', 'span', 'table', 'tbody', 'thead', 'tfoot', 'td', 'em', 'strong', 'small', 's', 'cite', 'q', 'dfn', 'abbr', 'time', 'code', 'var', 'samp', 'kbd', 'sub', 'sup', 'i', 'b', 'u', 'mark', 'ruby', 'rt', 'rp', 'bdi', 'bdo', 'br', 'wbr', 'th', 'tr' ]
21377
21377
  } ];
21378
21378
  lookupTable.evaluateRoleForElement = {
21379
- A: function A(_ref84) {
21380
- var node = _ref84.node, out = _ref84.out;
21379
+ A: function A(_ref88) {
21380
+ var node = _ref88.node, out = _ref88.out;
21381
21381
  if (node.namespaceURI === 'http://www.w3.org/2000/svg') {
21382
21382
  return true;
21383
21383
  }
@@ -21386,19 +21386,19 @@
21386
21386
  }
21387
21387
  return true;
21388
21388
  },
21389
- AREA: function AREA(_ref85) {
21390
- var node = _ref85.node;
21389
+ AREA: function AREA(_ref89) {
21390
+ var node = _ref89.node;
21391
21391
  return !node.href;
21392
21392
  },
21393
- BUTTON: function BUTTON(_ref86) {
21394
- var node = _ref86.node, role = _ref86.role, out = _ref86.out;
21393
+ BUTTON: function BUTTON(_ref90) {
21394
+ var node = _ref90.node, role = _ref90.role, out = _ref90.out;
21395
21395
  if (node.getAttribute('type') === 'menu') {
21396
21396
  return role === 'menuitem';
21397
21397
  }
21398
21398
  return out;
21399
21399
  },
21400
- IMG: function IMG(_ref87) {
21401
- var node = _ref87.node, role = _ref87.role, out = _ref87.out;
21400
+ IMG: function IMG(_ref91) {
21401
+ var node = _ref91.node, role = _ref91.role, out = _ref91.out;
21402
21402
  switch (node.alt) {
21403
21403
  case null:
21404
21404
  return out;
@@ -21410,8 +21410,8 @@
21410
21410
  return role !== 'presentation' && role !== 'none';
21411
21411
  }
21412
21412
  },
21413
- INPUT: function INPUT(_ref88) {
21414
- var node = _ref88.node, role = _ref88.role, out = _ref88.out;
21413
+ INPUT: function INPUT(_ref92) {
21414
+ var node = _ref92.node, role = _ref92.role, out = _ref92.out;
21415
21415
  switch (node.type) {
21416
21416
  case 'button':
21417
21417
  case 'image':
@@ -21441,32 +21441,32 @@
21441
21441
  return false;
21442
21442
  }
21443
21443
  },
21444
- LI: function LI(_ref89) {
21445
- var node = _ref89.node, out = _ref89.out;
21444
+ LI: function LI(_ref93) {
21445
+ var node = _ref93.node, out = _ref93.out;
21446
21446
  var hasImplicitListitemRole = axe.utils.matchesSelector(node, 'ol li, ul li');
21447
21447
  if (hasImplicitListitemRole) {
21448
21448
  return out;
21449
21449
  }
21450
21450
  return true;
21451
21451
  },
21452
- MENU: function MENU(_ref90) {
21453
- var node = _ref90.node;
21452
+ MENU: function MENU(_ref94) {
21453
+ var node = _ref94.node;
21454
21454
  if (node.getAttribute('type') === 'context') {
21455
21455
  return false;
21456
21456
  }
21457
21457
  return true;
21458
21458
  },
21459
- OPTION: function OPTION(_ref91) {
21460
- var node = _ref91.node;
21459
+ OPTION: function OPTION(_ref95) {
21460
+ var node = _ref95.node;
21461
21461
  var withinOptionList = axe.utils.matchesSelector(node, 'select > option, datalist > option, optgroup > option');
21462
21462
  return !withinOptionList;
21463
21463
  },
21464
- SELECT: function SELECT(_ref92) {
21465
- var node = _ref92.node, role = _ref92.role;
21464
+ SELECT: function SELECT(_ref96) {
21465
+ var node = _ref96.node, role = _ref96.role;
21466
21466
  return !node.multiple && node.size <= 1 && role === 'menu';
21467
21467
  },
21468
- SVG: function SVG(_ref93) {
21469
- var node = _ref93.node, out = _ref93.out;
21468
+ SVG: function SVG(_ref97) {
21469
+ var node = _ref97.node, out = _ref97.out;
21470
21470
  if (node.parentNode && node.parentNode.namespaceURI === 'http://www.w3.org/2000/svg') {
21471
21471
  return true;
21472
21472
  }
@@ -21492,7 +21492,7 @@
21492
21492
  var is_accessible_ref_default = isAccessibleRef;
21493
21493
  function _isComboboxPopup(virtualNode) {
21494
21494
  var _popupRoles;
21495
- var _ref94 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, popupRoles = _ref94.popupRoles;
21495
+ var _ref98 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, popupRoles = _ref98.popupRoles;
21496
21496
  var role = get_role_default(virtualNode);
21497
21497
  (_popupRoles = popupRoles) !== null && _popupRoles !== void 0 ? _popupRoles : popupRoles = aria_attrs_default['aria-haspopup'].values;
21498
21498
  if (!popupRoles.includes(role)) {
@@ -21675,8 +21675,8 @@
21675
21675
  if (!virtualNode.children) {
21676
21676
  return void 0;
21677
21677
  }
21678
- var titleNode = virtualNode.children.find(function(_ref95) {
21679
- var props = _ref95.props;
21678
+ var titleNode = virtualNode.children.find(function(_ref99) {
21679
+ var props = _ref99.props;
21680
21680
  return props.nodeName === 'title';
21681
21681
  });
21682
21682
  if (!titleNode) {
@@ -21813,8 +21813,8 @@
21813
21813
  }
21814
21814
  return false;
21815
21815
  }
21816
- function getNumberValue(domNode, _ref96) {
21817
- var cssProperty = _ref96.cssProperty, absoluteValues = _ref96.absoluteValues, normalValue = _ref96.normalValue;
21816
+ function getNumberValue(domNode, _ref100) {
21817
+ var cssProperty = _ref100.cssProperty, absoluteValues = _ref100.absoluteValues, normalValue = _ref100.normalValue;
21818
21818
  var computedStyle = window.getComputedStyle(domNode);
21819
21819
  var cssPropValue = computedStyle.getPropertyValue(cssProperty);
21820
21820
  if (cssPropValue === 'normal') {
@@ -21961,8 +21961,8 @@
21961
21961
  } else if (node !== document.body && has_content_default(node, true)) {
21962
21962
  return [ virtualNode ];
21963
21963
  } else {
21964
- return virtualNode.children.filter(function(_ref97) {
21965
- var actualNode = _ref97.actualNode;
21964
+ return virtualNode.children.filter(function(_ref101) {
21965
+ var actualNode = _ref101.actualNode;
21966
21966
  return actualNode.nodeType === 1;
21967
21967
  }).map(function(vNode) {
21968
21968
  return findRegionlessElms(vNode, options);
@@ -22107,7 +22107,7 @@
22107
22107
  var separatorRegex = /[;,\s]/;
22108
22108
  var validRedirectNumRegex = /^[0-9.]+$/;
22109
22109
  function metaRefreshEvaluate(node, options, virtualNode) {
22110
- var _ref98 = options || {}, minDelay = _ref98.minDelay, maxDelay = _ref98.maxDelay;
22110
+ var _ref102 = options || {}, minDelay = _ref102.minDelay, maxDelay = _ref102.maxDelay;
22111
22111
  var content = (virtualNode.attr('content') || '').trim();
22112
22112
  var _content$split = content.split(separatorRegex), _content$split2 = _slicedToArray(_content$split, 1), redirectStr = _content$split2[0];
22113
22113
  if (!redirectStr.match(validRedirectNumRegex)) {
@@ -22447,10 +22447,10 @@
22447
22447
  var OPAQUE_STROKE_OFFSET_MIN_PX = 1.5;
22448
22448
  var edges = [ 'top', 'right', 'bottom', 'left' ];
22449
22449
  function _getStrokeColorsFromShadows(parsedShadows) {
22450
- var _ref99 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, _ref99$ignoreEdgeCoun = _ref99.ignoreEdgeCount, ignoreEdgeCount = _ref99$ignoreEdgeCoun === void 0 ? false : _ref99$ignoreEdgeCoun;
22450
+ var _ref103 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, _ref103$ignoreEdgeCou = _ref103.ignoreEdgeCount, ignoreEdgeCount = _ref103$ignoreEdgeCou === void 0 ? false : _ref103$ignoreEdgeCou;
22451
22451
  var shadowMap = getShadowColorsMap(parsedShadows);
22452
- var shadowsByColor = Object.entries(shadowMap).map(function(_ref100) {
22453
- var _ref101 = _slicedToArray(_ref100, 2), colorStr = _ref101[0], sides = _ref101[1];
22452
+ var shadowsByColor = Object.entries(shadowMap).map(function(_ref104) {
22453
+ var _ref105 = _slicedToArray(_ref104, 2), colorStr = _ref105[0], sides = _ref105[1];
22454
22454
  var edgeCount = edges.filter(function(side) {
22455
22455
  return sides[side].length !== 0;
22456
22456
  }).length;
@@ -22460,8 +22460,8 @@
22460
22460
  edgeCount: edgeCount
22461
22461
  };
22462
22462
  });
22463
- if (!ignoreEdgeCount && shadowsByColor.some(function(_ref102) {
22464
- var edgeCount = _ref102.edgeCount;
22463
+ if (!ignoreEdgeCount && shadowsByColor.some(function(_ref106) {
22464
+ var edgeCount = _ref106.edgeCount;
22465
22465
  return edgeCount > 1 && edgeCount < 4;
22466
22466
  })) {
22467
22467
  return null;
@@ -22503,8 +22503,8 @@
22503
22503
  }
22504
22504
  return colorMap;
22505
22505
  }
22506
- function shadowGroupToColor(_ref103) {
22507
- var colorStr = _ref103.colorStr, sides = _ref103.sides, edgeCount = _ref103.edgeCount;
22506
+ function shadowGroupToColor(_ref107) {
22507
+ var colorStr = _ref107.colorStr, sides = _ref107.sides, edgeCount = _ref107.edgeCount;
22508
22508
  if (edgeCount !== 4) {
22509
22509
  return null;
22510
22510
  }
@@ -22555,8 +22555,8 @@
22555
22555
  throw new Error('Unable to process text-shadows: '.concat(str));
22556
22556
  }
22557
22557
  }
22558
- shadows.forEach(function(_ref104) {
22559
- var pixels = _ref104.pixels;
22558
+ shadows.forEach(function(_ref108) {
22559
+ var pixels = _ref108.pixels;
22560
22560
  if (pixels.length === 2) {
22561
22561
  pixels.push(0);
22562
22562
  }
@@ -22564,7 +22564,7 @@
22564
22564
  return shadows;
22565
22565
  }
22566
22566
  function _getTextShadowColors(node) {
22567
- var _ref105 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, minRatio = _ref105.minRatio, maxRatio = _ref105.maxRatio, ignoreEdgeCount = _ref105.ignoreEdgeCount;
22567
+ var _ref109 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, minRatio = _ref109.minRatio, maxRatio = _ref109.maxRatio, ignoreEdgeCount = _ref109.ignoreEdgeCount;
22568
22568
  var shadowColors = [];
22569
22569
  var style = window.getComputedStyle(node);
22570
22570
  var textShadow = style.getPropertyValue('text-shadow');
@@ -22627,8 +22627,8 @@
22627
22627
  }
22628
22628
  return shadowColors;
22629
22629
  }
22630
- function textShadowColor(_ref106) {
22631
- var colorStr = _ref106.colorStr, offsetX = _ref106.offsetX, offsetY = _ref106.offsetY, blurRadius = _ref106.blurRadius, fontSize = _ref106.fontSize;
22630
+ function textShadowColor(_ref110) {
22631
+ var colorStr = _ref110.colorStr, offsetX = _ref110.offsetX, offsetY = _ref110.offsetY, blurRadius = _ref110.blurRadius, fontSize = _ref110.fontSize;
22632
22632
  if (offsetX > blurRadius || offsetY > blurRadius) {
22633
22633
  return new color_default(0, 0, 0, 0);
22634
22634
  }
@@ -22657,13 +22657,13 @@
22657
22657
  var _stackingOrder2;
22658
22658
  var bgVNode = get_node_from_tree_default(bgElm);
22659
22659
  var bgColor = getOwnBackgroundColor2(bgVNode);
22660
- var stackingOrder = bgVNode._stackingOrder.filter(function(_ref107) {
22661
- var vNode = _ref107.vNode;
22660
+ var stackingOrder = bgVNode._stackingOrder.filter(function(_ref111) {
22661
+ var vNode = _ref111.vNode;
22662
22662
  return !!vNode;
22663
22663
  });
22664
- stackingOrder.forEach(function(_ref108, index) {
22664
+ stackingOrder.forEach(function(_ref112, index) {
22665
22665
  var _stackingOrder;
22666
- var vNode = _ref108.vNode;
22666
+ var vNode = _ref112.vNode;
22667
22667
  var ancestorVNode2 = (_stackingOrder = stackingOrder[index - 1]) === null || _stackingOrder === void 0 ? void 0 : _stackingOrder.vNode;
22668
22668
  var context2 = addToStackingContext(contextMap, vNode, ancestorVNode2);
22669
22669
  if (index === 0 && !contextMap.get(vNode)) {
@@ -22899,8 +22899,8 @@
22899
22899
  function getTextColor(nodeStyle) {
22900
22900
  return new color_default().parseString(nodeStyle.getPropertyValue('-webkit-text-fill-color') || nodeStyle.getPropertyValue('color'));
22901
22901
  }
22902
- function getStrokeColor(nodeStyle, _ref109) {
22903
- var _ref109$textStrokeEmM = _ref109.textStrokeEmMin, textStrokeEmMin = _ref109$textStrokeEmM === void 0 ? 0 : _ref109$textStrokeEmM;
22902
+ function getStrokeColor(nodeStyle, _ref113) {
22903
+ var _ref113$textStrokeEmM = _ref113.textStrokeEmMin, textStrokeEmMin = _ref113$textStrokeEmM === void 0 ? 0 : _ref113$textStrokeEmM;
22904
22904
  var strokeWidth = parseFloat(nodeStyle.getPropertyValue('-webkit-text-stroke-width'));
22905
22905
  if (strokeWidth === 0) {
22906
22906
  return null;
@@ -23062,8 +23062,8 @@
23062
23062
  if (results.length < 2) {
23063
23063
  return results;
23064
23064
  }
23065
- var incompleteResults = results.filter(function(_ref110) {
23066
- var result = _ref110.result;
23065
+ var incompleteResults = results.filter(function(_ref114) {
23066
+ var result = _ref114.result;
23067
23067
  return result !== void 0;
23068
23068
  });
23069
23069
  var uniqueResults = [];
@@ -23073,14 +23073,14 @@
23073
23073
  var currentResult = incompleteResults[index];
23074
23074
  var _currentResult$data = currentResult.data, name = _currentResult$data.name, urlProps = _currentResult$data.urlProps;
23075
23075
  if (nameMap[name]) {
23076
- return 'continue';
23076
+ return 1;
23077
23077
  }
23078
- var sameNameResults = incompleteResults.filter(function(_ref111, resultNum) {
23079
- var data = _ref111.data;
23078
+ var sameNameResults = incompleteResults.filter(function(_ref115, resultNum) {
23079
+ var data = _ref115.data;
23080
23080
  return data.name === name && resultNum !== index;
23081
23081
  });
23082
- var isSameUrl = sameNameResults.every(function(_ref112) {
23083
- var data = _ref112.data;
23082
+ var isSameUrl = sameNameResults.every(function(_ref116) {
23083
+ var data = _ref116.data;
23084
23084
  return isIdenticalObject(data.urlProps, urlProps);
23085
23085
  });
23086
23086
  if (sameNameResults.length && !isSameUrl) {
@@ -23094,8 +23094,7 @@
23094
23094
  uniqueResults.push(currentResult);
23095
23095
  };
23096
23096
  for (var index = 0; index < incompleteResults.length; index++) {
23097
- var _ret5 = _loop7(index);
23098
- if (_ret5 === 'continue') {
23097
+ if (_loop7(index)) {
23099
23098
  continue;
23100
23099
  }
23101
23100
  }
@@ -23107,7 +23106,7 @@
23107
23106
  var headingRole = role && role.includes('heading');
23108
23107
  var ariaHeadingLevel = vNode.attr('aria-level');
23109
23108
  var ariaLevel = parseInt(ariaHeadingLevel, 10);
23110
- var _ref113 = vNode.props.nodeName.match(/h(\d)/) || [], _ref114 = _slicedToArray(_ref113, 2), headingLevel = _ref114[1];
23109
+ var _ref117 = vNode.props.nodeName.match(/h(\d)/) || [], _ref118 = _slicedToArray(_ref117, 2), headingLevel = _ref118[1];
23111
23110
  if (!headingRole) {
23112
23111
  return -1;
23113
23112
  }
@@ -23167,14 +23166,14 @@
23167
23166
  }
23168
23167
  function getHeadingOrder(results) {
23169
23168
  results = _toConsumableArray(results);
23170
- results.sort(function(_ref115, _ref116) {
23171
- var nodeA = _ref115.node;
23172
- var nodeB = _ref116.node;
23169
+ results.sort(function(_ref119, _ref120) {
23170
+ var nodeA = _ref119.node;
23171
+ var nodeB = _ref120.node;
23173
23172
  return nodeA.ancestry.length - nodeB.ancestry.length;
23174
23173
  });
23175
23174
  var headingOrder = results.reduce(mergeHeadingOrder, []);
23176
- return headingOrder.filter(function(_ref117) {
23177
- var level = _ref117.level;
23175
+ return headingOrder.filter(function(_ref121) {
23176
+ var level = _ref121.level;
23178
23177
  return level !== -1;
23179
23178
  });
23180
23179
  }
@@ -23304,8 +23303,8 @@
23304
23303
  if (obscuredNodes.length === 0) {
23305
23304
  return null;
23306
23305
  }
23307
- var obscuringRects = obscuredNodes.map(function(_ref118) {
23308
- var rect = _ref118.boundingClientRect;
23306
+ var obscuringRects = obscuredNodes.map(function(_ref122) {
23307
+ var rect = _ref122.boundingClientRect;
23309
23308
  return rect;
23310
23309
  });
23311
23310
  var unobscuredRects = _splitRects(nodeRect, obscuringRects);
@@ -23346,8 +23345,8 @@
23346
23345
  return vAncestor.actualNode.contains(vNode.actualNode) && !_isInTabOrder(vNode);
23347
23346
  }
23348
23347
  function mapActualNodes(vNodes) {
23349
- return vNodes.map(function(_ref119) {
23350
- var actualNode = _ref119.actualNode;
23348
+ return vNodes.map(function(_ref123) {
23349
+ var actualNode = _ref123.actualNode;
23351
23350
  return actualNode;
23352
23351
  });
23353
23352
  }
@@ -23382,8 +23381,8 @@
23382
23381
  });
23383
23382
  return true;
23384
23383
  }
23385
- this.relatedNodes(closeNeighbors.map(function(_ref120) {
23386
- var actualNode = _ref120.actualNode;
23384
+ this.relatedNodes(closeNeighbors.map(function(_ref124) {
23385
+ var actualNode = _ref124.actualNode;
23387
23386
  return actualNode;
23388
23387
  }));
23389
23388
  if (!closeNeighbors.some(_isInTabOrder)) {
@@ -23404,7 +23403,7 @@
23404
23403
  return Math.round(num * 10) / 10;
23405
23404
  }
23406
23405
  function metaViewportScaleEvaluate(node, options, virtualNode) {
23407
- var _ref121 = options || {}, _ref121$scaleMinimum = _ref121.scaleMinimum, scaleMinimum = _ref121$scaleMinimum === void 0 ? 2 : _ref121$scaleMinimum, _ref121$lowerBound = _ref121.lowerBound, lowerBound = _ref121$lowerBound === void 0 ? false : _ref121$lowerBound;
23406
+ var _ref125 = options || {}, _ref125$scaleMinimum = _ref125.scaleMinimum, scaleMinimum = _ref125$scaleMinimum === void 0 ? 2 : _ref125$scaleMinimum, _ref125$lowerBound = _ref125.lowerBound, lowerBound = _ref125$lowerBound === void 0 ? false : _ref125$lowerBound;
23408
23407
  var content = virtualNode.attr('content') || '';
23409
23408
  if (!content) {
23410
23409
  return true;
@@ -23449,8 +23448,8 @@
23449
23448
  }
23450
23449
  var meta_viewport_scale_evaluate_default = metaViewportScaleEvaluate;
23451
23450
  function cssOrientationLockEvaluate(node, options, virtualNode, context) {
23452
- var _ref122 = context || {}, _ref122$cssom = _ref122.cssom, cssom = _ref122$cssom === void 0 ? void 0 : _ref122$cssom;
23453
- var _ref123 = options || {}, _ref123$degreeThresho = _ref123.degreeThreshold, degreeThreshold = _ref123$degreeThresho === void 0 ? 0 : _ref123$degreeThresho;
23451
+ var _ref126 = context || {}, _ref126$cssom = _ref126.cssom, cssom = _ref126$cssom === void 0 ? void 0 : _ref126$cssom;
23452
+ var _ref127 = options || {}, _ref127$degreeThresho = _ref127.degreeThreshold, degreeThreshold = _ref127$degreeThresho === void 0 ? 0 : _ref127$degreeThresho;
23454
23453
  if (!cssom || !cssom.length) {
23455
23454
  return void 0;
23456
23455
  }
@@ -23462,10 +23461,10 @@
23462
23461
  var _rulesGroupByDocument = rulesGroupByDocumentFragment[key], root = _rulesGroupByDocument.root, rules = _rulesGroupByDocument.rules;
23463
23462
  var orientationRules = rules.filter(isMediaRuleWithOrientation);
23464
23463
  if (!orientationRules.length) {
23465
- return 'continue';
23464
+ return 1;
23466
23465
  }
23467
- orientationRules.forEach(function(_ref124) {
23468
- var cssRules = _ref124.cssRules;
23466
+ orientationRules.forEach(function(_ref128) {
23467
+ var cssRules = _ref128.cssRules;
23469
23468
  Array.from(cssRules).forEach(function(cssRule) {
23470
23469
  var locked = getIsOrientationLocked(cssRule);
23471
23470
  if (locked && cssRule.selectorText.toUpperCase() !== 'HTML') {
@@ -23477,8 +23476,7 @@
23477
23476
  });
23478
23477
  };
23479
23478
  for (var _i33 = 0, _Object$keys3 = Object.keys(rulesGroupByDocumentFragment); _i33 < _Object$keys3.length; _i33++) {
23480
- var _ret6 = _loop8();
23481
- if (_ret6 === 'continue') {
23479
+ if (_loop8()) {
23482
23480
  continue;
23483
23481
  }
23484
23482
  }
@@ -23490,8 +23488,8 @@
23490
23488
  }
23491
23489
  return false;
23492
23490
  function groupCssomByDocument(cssObjectModel) {
23493
- return cssObjectModel.reduce(function(out, _ref125) {
23494
- var sheet = _ref125.sheet, root = _ref125.root, shadowId = _ref125.shadowId;
23491
+ return cssObjectModel.reduce(function(out, _ref129) {
23492
+ var sheet = _ref129.sheet, root = _ref129.root, shadowId = _ref129.shadowId;
23495
23493
  var key = shadowId ? shadowId : 'topDocument';
23496
23494
  if (!out[key]) {
23497
23495
  out[key] = {
@@ -23507,15 +23505,15 @@
23507
23505
  return out;
23508
23506
  }, {});
23509
23507
  }
23510
- function isMediaRuleWithOrientation(_ref126) {
23511
- var type2 = _ref126.type, cssText = _ref126.cssText;
23508
+ function isMediaRuleWithOrientation(_ref130) {
23509
+ var type2 = _ref130.type, cssText = _ref130.cssText;
23512
23510
  if (type2 !== 4) {
23513
23511
  return false;
23514
23512
  }
23515
23513
  return /orientation:\s*landscape/i.test(cssText) || /orientation:\s*portrait/i.test(cssText);
23516
23514
  }
23517
- function getIsOrientationLocked(_ref127) {
23518
- var selectorText = _ref127.selectorText, style = _ref127.style;
23515
+ function getIsOrientationLocked(_ref131) {
23516
+ var selectorText = _ref131.selectorText, style = _ref131.style;
23519
23517
  if (!selectorText || style.length <= 0) {
23520
23518
  return false;
23521
23519
  }
@@ -23570,7 +23568,7 @@
23570
23568
  }
23571
23569
  }
23572
23570
  function getAngleInDegrees(angleWithUnit) {
23573
- var _ref128 = angleWithUnit.match(/(deg|grad|rad|turn)/) || [], _ref129 = _slicedToArray(_ref128, 1), unit = _ref129[0];
23571
+ var _ref132 = angleWithUnit.match(/(deg|grad|rad|turn)/) || [], _ref133 = _slicedToArray(_ref132, 1), unit = _ref133[0];
23574
23572
  if (!unit) {
23575
23573
  return 0;
23576
23574
  }
@@ -23848,7 +23846,7 @@
23848
23846
  if (!issues.includes(issue)) {
23849
23847
  issues.push(issue);
23850
23848
  }
23851
- if ((vChild === null || vChild === void 0 ? void 0 : (_vChild$actualNode = vChild.actualNode) === null || _vChild$actualNode === void 0 ? void 0 : _vChild$actualNode.nodeType) === 1) {
23849
+ if ((vChild === null || vChild === void 0 || (_vChild$actualNode = vChild.actualNode) === null || _vChild$actualNode === void 0 ? void 0 : _vChild$actualNode.nodeType) === 1) {
23852
23850
  relatedNodes.push(vChild.actualNode);
23853
23851
  }
23854
23852
  }
@@ -23861,8 +23859,8 @@
23861
23859
  this.relatedNodes(relatedNodes);
23862
23860
  return true;
23863
23861
  }
23864
- function getInvalidSelector(vChild, nested, _ref130) {
23865
- var _ref130$validRoles = _ref130.validRoles, validRoles = _ref130$validRoles === void 0 ? [] : _ref130$validRoles, _ref130$validNodeName = _ref130.validNodeNames, validNodeNames = _ref130$validNodeName === void 0 ? [] : _ref130$validNodeName;
23862
+ function getInvalidSelector(vChild, nested, _ref134) {
23863
+ var _ref134$validRoles = _ref134.validRoles, validRoles = _ref134$validRoles === void 0 ? [] : _ref134$validRoles, _ref134$validNodeName = _ref134.validNodeNames, validNodeNames = _ref134$validNodeName === void 0 ? [] : _ref134$validNodeName;
23866
23864
  var _vChild$props = vChild.props, nodeName2 = _vChild$props.nodeName, nodeType = _vChild$props.nodeType, nodeValue = _vChild$props.nodeValue;
23867
23865
  var selector = nested ? 'div > ' : '';
23868
23866
  if (nodeType === 3 && nodeValue.trim() !== '') {
@@ -24319,8 +24317,8 @@
24319
24317
  }
24320
24318
  var focusable_no_name_evaluate_default = focusableNoNameEvaluate;
24321
24319
  function focusableModalOpenEvaluate(node, options, virtualNode) {
24322
- var tabbableElements = virtualNode.tabbableElements.map(function(_ref131) {
24323
- var actualNode = _ref131.actualNode;
24320
+ var tabbableElements = virtualNode.tabbableElements.map(function(_ref135) {
24321
+ var actualNode = _ref135.actualNode;
24324
24322
  return actualNode;
24325
24323
  });
24326
24324
  if (!tabbableElements || !tabbableElements.length) {
@@ -24608,8 +24606,8 @@
24608
24606
  return blockLike2.indexOf(display2) !== -1 || display2.substr(0, 6) === 'table-';
24609
24607
  }
24610
24608
  function hasPseudoContent(node) {
24611
- for (var _i34 = 0, _arr4 = [ 'before', 'after' ]; _i34 < _arr4.length; _i34++) {
24612
- var pseudo = _arr4[_i34];
24609
+ for (var _i34 = 0, _arr3 = [ 'before', 'after' ]; _i34 < _arr3.length; _i34++) {
24610
+ var pseudo = _arr3[_i34];
24613
24611
  var style = window.getComputedStyle(node, ':'.concat(pseudo));
24614
24612
  var content = style.getPropertyValue('content');
24615
24613
  if (content !== 'none') {
@@ -24715,7 +24713,7 @@
24715
24713
  var bold = parseFloat(fontWeight) >= boldValue || fontWeight === 'bold';
24716
24714
  var ptSize = Math.ceil(fontSize * 72) / 96;
24717
24715
  var isSmallFont = bold && ptSize < boldTextPt || !bold && ptSize < largeTextPt;
24718
- var _ref132 = isSmallFont ? contrastRatio.normal : contrastRatio.large, expected = _ref132.expected, minThreshold = _ref132.minThreshold, maxThreshold = _ref132.maxThreshold;
24716
+ var _ref136 = isSmallFont ? contrastRatio.normal : contrastRatio.large, expected = _ref136.expected, minThreshold = _ref136.minThreshold, maxThreshold = _ref136.maxThreshold;
24719
24717
  var pseudoElm = findPseudoElement(virtualNode, {
24720
24718
  ignorePseudo: ignorePseudo,
24721
24719
  pseudoSizeThreshold: pseudoSizeThreshold
@@ -24800,8 +24798,8 @@
24800
24798
  }
24801
24799
  return isValid;
24802
24800
  }
24803
- function findPseudoElement(vNode, _ref133) {
24804
- var _ref133$pseudoSizeThr = _ref133.pseudoSizeThreshold, pseudoSizeThreshold = _ref133$pseudoSizeThr === void 0 ? .25 : _ref133$pseudoSizeThr, _ref133$ignorePseudo = _ref133.ignorePseudo, ignorePseudo = _ref133$ignorePseudo === void 0 ? false : _ref133$ignorePseudo;
24801
+ function findPseudoElement(vNode, _ref137) {
24802
+ var _ref137$pseudoSizeThr = _ref137.pseudoSizeThreshold, pseudoSizeThreshold = _ref137$pseudoSizeThr === void 0 ? .25 : _ref137$pseudoSizeThr, _ref137$ignorePseudo = _ref137.ignorePseudo, ignorePseudo = _ref137$ignorePseudo === void 0 ? false : _ref137$ignorePseudo;
24805
24803
  if (ignorePseudo) {
24806
24804
  return;
24807
24805
  }
@@ -24843,7 +24841,7 @@
24843
24841
  }
24844
24842
  function parseUnit(str) {
24845
24843
  var unitRegex = /^([0-9.]+)([a-z]+)$/i;
24846
- var _ref134 = str.match(unitRegex) || [], _ref135 = _slicedToArray(_ref134, 3), _ref135$ = _ref135[1], value = _ref135$ === void 0 ? '' : _ref135$, _ref135$2 = _ref135[2], unit = _ref135$2 === void 0 ? '' : _ref135$2;
24844
+ var _ref138 = str.match(unitRegex) || [], _ref139 = _slicedToArray(_ref138, 3), _ref139$ = _ref139[1], value = _ref139$ === void 0 ? '' : _ref139$, _ref139$2 = _ref139[2], unit = _ref139$2 === void 0 ? '' : _ref139$2;
24847
24845
  return {
24848
24846
  value: parseFloat(value),
24849
24847
  unit: unit.toLowerCase()
@@ -25210,19 +25208,19 @@
25210
25208
  return true;
25211
25209
  }
25212
25210
  var ownedRoles = getOwnedRoles(virtualNode, required);
25213
- var unallowed = ownedRoles.filter(function(_ref136) {
25214
- var role = _ref136.role, vNode = _ref136.vNode;
25211
+ var unallowed = ownedRoles.filter(function(_ref140) {
25212
+ var role = _ref140.role, vNode = _ref140.vNode;
25215
25213
  return vNode.props.nodeType === 1 && !required.includes(role);
25216
25214
  });
25217
25215
  if (unallowed.length) {
25218
- this.relatedNodes(unallowed.map(function(_ref137) {
25219
- var vNode = _ref137.vNode;
25216
+ this.relatedNodes(unallowed.map(function(_ref141) {
25217
+ var vNode = _ref141.vNode;
25220
25218
  return vNode;
25221
25219
  }));
25222
25220
  this.data({
25223
25221
  messageKey: 'unallowed',
25224
- values: unallowed.map(function(_ref138) {
25225
- var vNode = _ref138.vNode, attr = _ref138.attr;
25222
+ values: unallowed.map(function(_ref142) {
25223
+ var vNode = _ref142.vNode, attr = _ref142.attr;
25226
25224
  return getUnallowedSelector(vNode, attr);
25227
25225
  }).filter(function(selector, index, array) {
25228
25226
  return array.indexOf(selector) === index;
@@ -25251,7 +25249,7 @@
25251
25249
  });
25252
25250
  }
25253
25251
  if (vNode.props.nodeType !== 1 || !_isVisibleToScreenReaders(vNode)) {
25254
- return 'continue';
25252
+ return 1;
25255
25253
  }
25256
25254
  var role = get_role_default(vNode, {
25257
25255
  noPresentational: true
@@ -25272,16 +25270,15 @@
25272
25270
  }
25273
25271
  };
25274
25272
  while (vNode = ownedVirtual.shift()) {
25275
- var _ret7 = _loop9();
25276
- if (_ret7 === 'continue') {
25273
+ if (_loop9()) {
25277
25274
  continue;
25278
25275
  }
25279
25276
  }
25280
25277
  return ownedRoles;
25281
25278
  }
25282
25279
  function hasRequiredChildren(required, ownedRoles) {
25283
- return ownedRoles.some(function(_ref139) {
25284
- var role = _ref139.role;
25280
+ return ownedRoles.some(function(_ref143) {
25281
+ var role = _ref143.role;
25285
25282
  return role && required.includes(role);
25286
25283
  });
25287
25284
  }
@@ -25306,8 +25303,8 @@
25306
25303
  }
25307
25304
  return nodeName2;
25308
25305
  }
25309
- function isContent(_ref140) {
25310
- var vNode = _ref140.vNode;
25306
+ function isContent(_ref144) {
25307
+ var vNode = _ref144.vNode;
25311
25308
  if (vNode.props.nodeType === 3) {
25312
25309
  return vNode.props.nodeValue.trim().length > 0;
25313
25310
  }
@@ -25448,9 +25445,9 @@
25448
25445
  }
25449
25446
  function ariaConditionalRowAttr(node) {
25450
25447
  var _invalidTableRowAttrs, _invalidTableRowAttrs2;
25451
- var _ref141 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, invalidTableRowAttrs = _ref141.invalidTableRowAttrs;
25448
+ var _ref145 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, invalidTableRowAttrs = _ref145.invalidTableRowAttrs;
25452
25449
  var virtualNode = arguments.length > 2 ? arguments[2] : undefined;
25453
- var invalidAttrs = (_invalidTableRowAttrs = invalidTableRowAttrs === null || invalidTableRowAttrs === void 0 ? void 0 : (_invalidTableRowAttrs2 = invalidTableRowAttrs.filter) === null || _invalidTableRowAttrs2 === void 0 ? void 0 : _invalidTableRowAttrs2.call(invalidTableRowAttrs, function(invalidAttr) {
25450
+ var invalidAttrs = (_invalidTableRowAttrs = invalidTableRowAttrs === null || invalidTableRowAttrs === void 0 || (_invalidTableRowAttrs2 = invalidTableRowAttrs.filter) === null || _invalidTableRowAttrs2 === void 0 ? void 0 : _invalidTableRowAttrs2.call(invalidTableRowAttrs, function(invalidAttr) {
25454
25451
  return virtualNode.hasAttr(invalidAttr);
25455
25452
  })) !== null && _invalidTableRowAttrs !== void 0 ? _invalidTableRowAttrs : [];
25456
25453
  if (invalidAttrs.length === 0) {
@@ -25682,7 +25679,7 @@
25682
25679
  if (!role || [ 'none', 'presentation' ].includes(role)) {
25683
25680
  return true;
25684
25681
  }
25685
- var _ref142 = aria_roles_default[role] || {}, accessibleNameRequired = _ref142.accessibleNameRequired;
25682
+ var _ref146 = aria_roles_default[role] || {}, accessibleNameRequired = _ref146.accessibleNameRequired;
25686
25683
  if (accessibleNameRequired || _isFocusable(virtualNode)) {
25687
25684
  return true;
25688
25685
  }
@@ -27294,8 +27291,8 @@
27294
27291
  });
27295
27292
  };
27296
27293
  }
27297
- function getHelpUrl(_ref143, ruleId, version) {
27298
- var brand = _ref143.brand, application = _ref143.application, lang = _ref143.lang;
27294
+ function getHelpUrl(_ref147, ruleId, version) {
27295
+ var brand = _ref147.brand, application = _ref147.application, lang = _ref147.lang;
27299
27296
  return constants_default.helpUrlBase + brand + '/' + (version || axe.version.substring(0, axe.version.lastIndexOf('.'))) + '/' + ruleId + '?application=' + encodeURIComponent(application) + (lang && lang !== 'en' ? '&lang=' + encodeURIComponent(lang) : '');
27300
27297
  }
27301
27298
  function setupGlobals(context) {
@@ -27509,9 +27506,9 @@
27509
27506
  toolOptions: options
27510
27507
  });
27511
27508
  }
27512
- function normalizeRunParams(_ref144) {
27513
- var _ref146, _options$reporter, _axe$_audit;
27514
- var _ref145 = _slicedToArray(_ref144, 3), context = _ref145[0], options = _ref145[1], callback = _ref145[2];
27509
+ function normalizeRunParams(_ref148) {
27510
+ var _ref150, _options$reporter, _axe$_audit;
27511
+ var _ref149 = _slicedToArray(_ref148, 3), context = _ref149[0], options = _ref149[1], callback = _ref149[2];
27515
27512
  var typeErr = new TypeError('axe.run arguments are invalid');
27516
27513
  if (!isContextSpec(context)) {
27517
27514
  if (callback !== void 0) {
@@ -27532,7 +27529,7 @@
27532
27529
  throw typeErr;
27533
27530
  }
27534
27531
  options = _clone(options);
27535
- options.reporter = (_ref146 = (_options$reporter = options.reporter) !== null && _options$reporter !== void 0 ? _options$reporter : (_axe$_audit = axe._audit) === null || _axe$_audit === void 0 ? void 0 : _axe$_audit.reporter) !== null && _ref146 !== void 0 ? _ref146 : 'v1';
27532
+ options.reporter = (_ref150 = (_options$reporter = options.reporter) !== null && _options$reporter !== void 0 ? _options$reporter : (_axe$_audit = axe._audit) === null || _axe$_audit === void 0 ? void 0 : _axe$_audit.reporter) !== null && _ref150 !== void 0 ? _ref150 : 'v1';
27536
27533
  return {
27537
27534
  context: context,
27538
27535
  options: options,
@@ -27647,8 +27644,8 @@
27647
27644
  axe._audit.run(contextObj, options, res, rej);
27648
27645
  }).then(function(results) {
27649
27646
  results = node_serializer_default.mapRawResults(results);
27650
- var frames = contextObj.frames.map(function(_ref147) {
27651
- var node = _ref147.node;
27647
+ var frames = contextObj.frames.map(function(_ref151) {
27648
+ var node = _ref151.node;
27652
27649
  return node_serializer_default.toSpec(node);
27653
27650
  });
27654
27651
  var environmentData;
@@ -27669,14 +27666,14 @@
27669
27666
  });
27670
27667
  }
27671
27668
  function finishRun(partialResults) {
27672
- var _ref149, _options$reporter2, _axe$_audit2;
27669
+ var _ref153, _options$reporter2, _axe$_audit2;
27673
27670
  var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
27674
27671
  options = _clone(options);
27675
- var _ref148 = partialResults.find(function(r) {
27672
+ var _ref152 = partialResults.find(function(r) {
27676
27673
  return r.environmentData;
27677
- }) || {}, environmentData = _ref148.environmentData;
27674
+ }) || {}, environmentData = _ref152.environmentData;
27678
27675
  axe._audit.normalizeOptions(options);
27679
- options.reporter = (_ref149 = (_options$reporter2 = options.reporter) !== null && _options$reporter2 !== void 0 ? _options$reporter2 : (_axe$_audit2 = axe._audit) === null || _axe$_audit2 === void 0 ? void 0 : _axe$_audit2.reporter) !== null && _ref149 !== void 0 ? _ref149 : 'v1';
27676
+ options.reporter = (_ref153 = (_options$reporter2 = options.reporter) !== null && _options$reporter2 !== void 0 ? _options$reporter2 : (_axe$_audit2 = axe._audit) === null || _axe$_audit2 === void 0 ? void 0 : _axe$_audit2.reporter) !== null && _ref153 !== void 0 ? _ref153 : 'v1';
27680
27677
  setFrameSpec(partialResults);
27681
27678
  var results = merge_results_default(partialResults);
27682
27679
  results = axe._audit.after(results, options);
@@ -27706,8 +27703,8 @@
27706
27703
  _iterator23.f();
27707
27704
  }
27708
27705
  }
27709
- function getMergedFrameSpecs(_ref150) {
27710
- var childFrameSpecs = _ref150.frames, parentFrameSpec = _ref150.frameSpec;
27706
+ function getMergedFrameSpecs(_ref154) {
27707
+ var childFrameSpecs = _ref154.frames, parentFrameSpec = _ref154.frameSpec;
27711
27708
  if (!parentFrameSpec) {
27712
27709
  return childFrameSpecs;
27713
27710
  }