axe-core 4.5.1-canary.a37db59 → 4.5.2-canary.1a7eecb

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.5.1-canary.a37db59
1
+ /*! axe v4.5.2-canary.1a7eecb
2
2
  * Copyright (c) 2022 Deque Systems, Inc.
3
3
  *
4
4
  * Your use of this Source Code Form is subject to the terms of the Mozilla Public
@@ -22,7 +22,7 @@
22
22
  }, _typeof(obj);
23
23
  }
24
24
  var axe = axe || {};
25
- axe.version = '4.5.1-canary.a37db59';
25
+ axe.version = '4.5.2-canary.1a7eecb';
26
26
  if (typeof define === 'function' && define.amd) {
27
27
  define('axe-core', [], function() {
28
28
  return axe;
@@ -50,6 +50,9 @@
50
50
  SupportError.prototype.constructor = SupportError;
51
51
  'use strict';
52
52
  var _excluded = [ 'node' ], _excluded2 = [ 'node' ], _excluded3 = [ 'variant' ], _excluded4 = [ 'matches' ], _excluded5 = [ 'chromium' ], _excluded6 = [ 'noImplicit' ], _excluded7 = [ 'noPresentational' ], _excluded8 = [ 'nodes' ], _excluded9 = [ 'node' ], _excluded10 = [ 'relatedNodes' ], _excluded11 = [ 'environmentData' ], _excluded12 = [ 'environmentData' ], _excluded13 = [ 'node' ], _excluded14 = [ 'environmentData' ], _excluded15 = [ 'environmentData' ], _excluded16 = [ 'environmentData' ];
53
+ function _toArray(arr) {
54
+ return _arrayWithHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableRest();
55
+ }
53
56
  function _defineProperty(obj, key, value) {
54
57
  if (key in obj) {
55
58
  Object.defineProperty(obj, key, {
@@ -5182,6 +5185,9 @@
5182
5185
  shadowSelect: function shadowSelect() {
5183
5186
  return _shadowSelect;
5184
5187
  },
5188
+ shadowSelectAll: function shadowSelectAll() {
5189
+ return _shadowSelectAll;
5190
+ },
5185
5191
  shouldPreload: function shouldPreload() {
5186
5192
  return _shouldPreload;
5187
5193
  },
@@ -8826,7 +8832,8 @@
8826
8832
  },
8827
8833
  checkbox: {
8828
8834
  type: 'widget',
8829
- allowedAttrs: [ 'aria-checked', 'aria-readonly', 'aria-required' ],
8835
+ requiredAttrs: [ 'aria-checked' ],
8836
+ allowedAttrs: [ 'aria-readonly', 'aria-required' ],
8830
8837
  superclassRole: [ 'input' ],
8831
8838
  accessibleNameRequired: true,
8832
8839
  nameFromContent: true,
@@ -8980,7 +8987,7 @@
8980
8987
  },
8981
8988
  list: {
8982
8989
  type: 'structure',
8983
- requiredOwned: [ 'group', 'listitem' ],
8990
+ requiredOwned: [ 'listitem' ],
8984
8991
  allowedAttrs: [ 'aria-expanded' ],
8985
8992
  superclassRole: [ 'section' ]
8986
8993
  },
@@ -8993,7 +9000,7 @@
8993
9000
  },
8994
9001
  listitem: {
8995
9002
  type: 'structure',
8996
- requiredContext: [ 'list', 'group' ],
9003
+ requiredContext: [ 'list' ],
8997
9004
  allowedAttrs: [ 'aria-level', 'aria-posinset', 'aria-setsize', 'aria-expanded' ],
8998
9005
  superclassRole: [ 'section' ],
8999
9006
  nameFromContent: true
@@ -9042,7 +9049,8 @@
9042
9049
  menuitemcheckbox: {
9043
9050
  type: 'widget',
9044
9051
  requiredContext: [ 'menu', 'menubar', 'group' ],
9045
- allowedAttrs: [ 'aria-checked', 'aria-posinset', 'aria-readonly', 'aria-setsize' ],
9052
+ requiredAttrs: [ 'aria-checked' ],
9053
+ allowedAttrs: [ 'aria-posinset', 'aria-readonly', 'aria-setsize' ],
9046
9054
  superclassRole: [ 'checkbox', 'menuitem' ],
9047
9055
  accessibleNameRequired: true,
9048
9056
  nameFromContent: true,
@@ -9051,7 +9059,8 @@
9051
9059
  menuitemradio: {
9052
9060
  type: 'widget',
9053
9061
  requiredContext: [ 'menu', 'menubar', 'group' ],
9054
- allowedAttrs: [ 'aria-checked', 'aria-posinset', 'aria-readonly', 'aria-setsize' ],
9062
+ requiredAttrs: [ 'aria-checked' ],
9063
+ allowedAttrs: [ 'aria-posinset', 'aria-readonly', 'aria-setsize' ],
9055
9064
  superclassRole: [ 'menuitemcheckbox', 'radio' ],
9056
9065
  accessibleNameRequired: true,
9057
9066
  nameFromContent: true,
@@ -9059,8 +9068,8 @@
9059
9068
  },
9060
9069
  meter: {
9061
9070
  type: 'structure',
9062
- allowedAttrs: [ 'aria-valuetext' ],
9063
- requiredAttrs: [ 'aria-valuemax', 'aria-valuemin', 'aria-valuenow' ],
9071
+ requiredAttrs: [ 'aria-valuenow' ],
9072
+ allowedAttrs: [ 'aria-valuemax', 'aria-valuemin', 'aria-valuetext' ],
9064
9073
  superclassRole: [ 'range' ],
9065
9074
  accessibleNameRequired: true,
9066
9075
  childrenPresentational: true
@@ -9113,7 +9122,8 @@
9113
9122
  },
9114
9123
  radio: {
9115
9124
  type: 'widget',
9116
- allowedAttrs: [ 'aria-checked', 'aria-posinset', 'aria-setsize', 'aria-required' ],
9125
+ requiredAttrs: [ 'aria-checked' ],
9126
+ allowedAttrs: [ 'aria-posinset', 'aria-setsize', 'aria-required' ],
9117
9127
  superclassRole: [ 'input' ],
9118
9128
  accessibleNameRequired: true,
9119
9129
  nameFromContent: true,
@@ -9196,7 +9206,8 @@
9196
9206
  },
9197
9207
  separator: {
9198
9208
  type: 'structure',
9199
- allowedAttrs: [ 'aria-valuemax', 'aria-valuemin', 'aria-valuenow', 'aria-orientation', 'aria-valuetext' ],
9209
+ requiredAttrs: [ 'aria-valuenow' ],
9210
+ allowedAttrs: [ 'aria-valuemax', 'aria-valuemin', 'aria-orientation', 'aria-valuetext' ],
9200
9211
  superclassRole: [ 'structure', 'widget' ],
9201
9212
  childrenPresentational: true
9202
9213
  },
@@ -9664,7 +9675,7 @@
9664
9675
  },
9665
9676
  button: {
9666
9677
  contentTypes: [ 'interactive', 'phrasing', 'flow' ],
9667
- allowedRoles: [ 'checkbox', 'link', 'menuitem', 'menuitemcheckbox', 'menuitemradio', 'option', 'radio', 'switch', 'tab' ],
9678
+ allowedRoles: [ 'checkbox', 'combobox', 'link', 'menuitem', 'menuitemcheckbox', 'menuitemradio', 'option', 'radio', 'switch', 'tab' ],
9668
9679
  namingMethods: [ 'subtreeText' ]
9669
9680
  },
9670
9681
  canvas: {
@@ -9875,7 +9886,7 @@
9875
9886
  type: 'button'
9876
9887
  }
9877
9888
  },
9878
- allowedRoles: [ 'link', 'menuitem', 'menuitemcheckbox', 'menuitemradio', 'option', 'radio', 'switch', 'tab' ]
9889
+ allowedRoles: [ 'checkbox', 'combobox', 'link', 'menuitem', 'menuitemcheckbox', 'menuitemradio', 'option', 'radio', 'switch', 'tab' ]
9879
9890
  },
9880
9891
  buttonType: {
9881
9892
  matches: {
@@ -10696,7 +10707,8 @@
10696
10707
  return Math.round((color + base) * 255);
10697
10708
  }).concat(alpha);
10698
10709
  }
10699
- function Color(red, green, blue, alpha) {
10710
+ function Color(red, green, blue) {
10711
+ var alpha = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 1;
10700
10712
  this.red = red;
10701
10713
  this.green = green;
10702
10714
  this.blue = blue;
@@ -10707,6 +10719,15 @@
10707
10719
  var blueString = Math.round(this.blue).toString(16);
10708
10720
  return '#' + (this.red > 15.5 ? redString : '0' + redString) + (this.green > 15.5 ? greenString : '0' + greenString) + (this.blue > 15.5 ? blueString : '0' + blueString);
10709
10721
  };
10722
+ this.toJSON = function toJSON() {
10723
+ var red2 = this.red, green2 = this.green, blue2 = this.blue, alpha2 = this.alpha;
10724
+ return {
10725
+ red: red2,
10726
+ green: green2,
10727
+ blue: blue2,
10728
+ alpha: alpha2
10729
+ };
10730
+ };
10710
10731
  var hexRegex = /^#[0-9a-f]{3,8}$/i;
10711
10732
  var colorFnRegex = /^((?:rgb|hsl)a?)\s*\(([^\)]*)\)/i;
10712
10733
  this.parseString = function parseString(colorString) {
@@ -10716,15 +10737,15 @@
10716
10737
  this.green = green2;
10717
10738
  this.blue = blue2;
10718
10739
  this.alpha = colorString === 'transparent' ? 0 : 1;
10719
- return;
10740
+ return this;
10720
10741
  }
10721
10742
  if (colorString.match(colorFnRegex)) {
10722
10743
  this.parseColorFnString(colorString);
10723
- return;
10744
+ return this;
10724
10745
  }
10725
10746
  if (colorString.match(hexRegex)) {
10726
10747
  this.parseHexString(colorString);
10727
- return;
10748
+ return this;
10728
10749
  }
10729
10750
  throw new Error('Unable to parse color "'.concat(colorString, '"'));
10730
10751
  };
@@ -11741,37 +11762,6 @@
11741
11762
  height: height
11742
11763
  };
11743
11764
  }
11744
- function pushUniqueFrame(context, frame) {
11745
- if (!_isVisibleToScreenReaders(frame) || find_by_default(context.frames, 'node', frame)) {
11746
- return;
11747
- }
11748
- context.frames.push(createFrameContext(frame, context));
11749
- }
11750
- function isPageContext(_ref35) {
11751
- var include = _ref35.include;
11752
- return include.length === 1 && include[0].actualNode === document.documentElement;
11753
- }
11754
- function pushUniqueFrameSelector(context, type, selectorArray) {
11755
- context.frames = context.frames || [];
11756
- var frameSelector = selectorArray.shift();
11757
- var frames = document.querySelectorAll(frameSelector);
11758
- Array.from(frames).forEach(function(frame) {
11759
- context.frames.forEach(function(contextFrame) {
11760
- if (contextFrame.node === frame) {
11761
- contextFrame[type].push(selectorArray);
11762
- }
11763
- });
11764
- if (!context.frames.find(function(result) {
11765
- return result.node === frame;
11766
- })) {
11767
- var result = createFrameContext(frame, context);
11768
- if (selectorArray) {
11769
- result[type].push(selectorArray);
11770
- }
11771
- context.frames.push(result);
11772
- }
11773
- });
11774
- }
11775
11765
  function normalizeContext(context) {
11776
11766
  if (context && _typeof(context) === 'object' || context instanceof window.NodeList) {
11777
11767
  if (context instanceof window.Node) {
@@ -11795,7 +11785,7 @@
11795
11785
  }
11796
11786
  if (typeof context === 'string') {
11797
11787
  return {
11798
- include: [ context ],
11788
+ include: [ [ context ] ],
11799
11789
  exclude: []
11800
11790
  };
11801
11791
  }
@@ -11805,62 +11795,59 @@
11805
11795
  };
11806
11796
  }
11807
11797
  function parseSelectorArray(context, type) {
11808
- var item, result = [], nodeList;
11809
- for (var i = 0, l = context[type].length; i < l; i++) {
11810
- item = context[type][i];
11798
+ var result = [];
11799
+ for (var _i11 = 0, l = context[type].length; _i11 < l; _i11++) {
11800
+ var item = context[type][_i11];
11811
11801
  if (typeof item === 'string') {
11812
- nodeList = Array.from(document.querySelectorAll(item));
11813
- result = result.concat(nodeList.map(function(node) {
11802
+ var nodeList = Array.from(document.querySelectorAll(item));
11803
+ result.push.apply(result, _toConsumableArray(nodeList.map(function(node) {
11814
11804
  return get_node_from_tree_default(node);
11815
- }));
11805
+ })));
11816
11806
  break;
11817
- } else if (item && item.length && !(item instanceof window.Node)) {
11818
- if (item.length > 1) {
11819
- pushUniqueFrameSelector(context, type, item);
11820
- } else {
11821
- nodeList = Array.from(document.querySelectorAll(item[0]));
11822
- result = result.concat(nodeList.map(function(node) {
11823
- return get_node_from_tree_default(node);
11824
- }));
11825
- }
11826
- } else if (item instanceof window.Node) {
11807
+ }
11808
+ if (item instanceof window.Node) {
11827
11809
  if (item.documentElement instanceof window.Node) {
11828
11810
  result.push(context.flatTree[0]);
11829
11811
  } else {
11830
11812
  result.push(get_node_from_tree_default(item));
11831
11813
  }
11814
+ continue;
11815
+ }
11816
+ if (item && item.length) {
11817
+ if (item.length > 1) {
11818
+ pushUniqueFrameSelector(context, type, item);
11819
+ } else {
11820
+ var _nodeList = Array.from(document.querySelectorAll(item[0]));
11821
+ result.push.apply(result, _toConsumableArray(_nodeList.map(function(node) {
11822
+ return get_node_from_tree_default(node);
11823
+ })));
11824
+ }
11832
11825
  }
11833
11826
  }
11834
11827
  return result.filter(function(r) {
11835
11828
  return r;
11836
11829
  });
11837
11830
  }
11838
- function validateContext(context) {
11839
- if (context.include.length === 0) {
11840
- if (context.frames.length === 0) {
11841
- var env = _respondable.isInFrame() ? 'frame' : 'page';
11842
- return new Error('No elements found for include in ' + env + ' Context');
11843
- }
11844
- context.frames.forEach(function(frame, i) {
11845
- if (frame.include.length === 0) {
11846
- return new Error('No elements found for include in Context of frame ' + i);
11831
+ function pushUniqueFrameSelector(context, type, selectorArray) {
11832
+ context.frames = context.frames || [];
11833
+ var frameSelector = selectorArray.shift();
11834
+ var frames = document.querySelectorAll(frameSelector);
11835
+ Array.from(frames).forEach(function(frame) {
11836
+ context.frames.forEach(function(contextFrame) {
11837
+ if (contextFrame.node === frame) {
11838
+ contextFrame[type].push(selectorArray);
11847
11839
  }
11848
11840
  });
11849
- }
11850
- }
11851
- function getRootNode2(_ref36) {
11852
- var include = _ref36.include, exclude = _ref36.exclude;
11853
- var selectors = Array.from(include).concat(Array.from(exclude));
11854
- for (var i = 0; i < selectors.length; ++i) {
11855
- var item = selectors[i];
11856
- if (item instanceof window.Element) {
11857
- return item.ownerDocument.documentElement;
11858
- }
11859
- if (item instanceof window.Document) {
11860
- return item.documentElement;
11841
+ if (!context.frames.find(function(result) {
11842
+ return result.node === frame;
11843
+ })) {
11844
+ var result = createFrameContext(frame, context);
11845
+ if (selectorArray) {
11846
+ result[type].push(selectorArray);
11847
+ }
11848
+ context.frames.push(result);
11861
11849
  }
11862
- }
11863
- return document.documentElement;
11850
+ });
11864
11851
  }
11865
11852
  function Context(spec, flatTree) {
11866
11853
  var _spec, _spec2, _spec3, _spec4, _this2 = this;
@@ -11887,15 +11874,42 @@
11887
11874
  frame.page = _this2.page;
11888
11875
  });
11889
11876
  }
11890
- var err2 = validateContext(this);
11891
- if (err2 instanceof Error) {
11892
- throw err2;
11893
- }
11877
+ validateContext(this);
11894
11878
  if (!Array.isArray(this.include)) {
11895
11879
  this.include = Array.from(this.include);
11896
11880
  }
11897
11881
  this.include.sort(node_sorter_default);
11898
11882
  }
11883
+ function pushUniqueFrame(context, frame) {
11884
+ if (!_isVisibleToScreenReaders(frame) || find_by_default(context.frames, 'node', frame)) {
11885
+ return;
11886
+ }
11887
+ context.frames.push(createFrameContext(frame, context));
11888
+ }
11889
+ function isPageContext(_ref35) {
11890
+ var include = _ref35.include;
11891
+ return include.length === 1 && include[0].actualNode === document.documentElement;
11892
+ }
11893
+ function validateContext(context) {
11894
+ if (context.include.length === 0 && context.frames.length === 0) {
11895
+ var env = _respondable.isInFrame() ? 'frame' : 'page';
11896
+ throw new Error('No elements found for include in ' + env + ' Context');
11897
+ }
11898
+ }
11899
+ function getRootNode2(_ref36) {
11900
+ var include = _ref36.include, exclude = _ref36.exclude;
11901
+ var selectors = Array.from(include).concat(Array.from(exclude));
11902
+ for (var _i12 = 0; _i12 < selectors.length; _i12++) {
11903
+ var item = selectors[_i12];
11904
+ if (item instanceof window.Element) {
11905
+ return item.ownerDocument.documentElement;
11906
+ }
11907
+ if (item instanceof window.Document) {
11908
+ return item.documentElement;
11909
+ }
11910
+ }
11911
+ return document.documentElement;
11912
+ }
11899
11913
  function _getFrameContexts(context) {
11900
11914
  var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
11901
11915
  if (options.iframes === false) {
@@ -12546,9 +12560,9 @@
12546
12560
  var childAny = null;
12547
12561
  var combinedLength = (((_currentLevel$anyLeve = currentLevel.anyLevel) === null || _currentLevel$anyLeve === void 0 ? void 0 : _currentLevel$anyLeve.length) || 0) + (((_currentLevel$thisLev = currentLevel.thisLevel) === null || _currentLevel$thisLev === void 0 ? void 0 : _currentLevel$thisLev.length) || 0);
12548
12562
  var added = false;
12549
- for (var _i11 = 0; _i11 < combinedLength; _i11++) {
12563
+ for (var _i13 = 0; _i13 < combinedLength; _i13++) {
12550
12564
  var _currentLevel$anyLeve2, _currentLevel$anyLeve3, _currentLevel$anyLeve4;
12551
- var exp = _i11 < (((_currentLevel$anyLeve2 = currentLevel.anyLevel) === null || _currentLevel$anyLeve2 === void 0 ? void 0 : _currentLevel$anyLeve2.length) || 0) ? currentLevel.anyLevel[_i11] : currentLevel.thisLevel[_i11 - (((_currentLevel$anyLeve3 = currentLevel.anyLevel) === null || _currentLevel$anyLeve3 === void 0 ? void 0 : _currentLevel$anyLeve3.length) || 0)];
12565
+ var exp = _i13 < (((_currentLevel$anyLeve2 = currentLevel.anyLevel) === null || _currentLevel$anyLeve2 === void 0 ? void 0 : _currentLevel$anyLeve2.length) || 0) ? currentLevel.anyLevel[_i13] : currentLevel.thisLevel[_i13 - (((_currentLevel$anyLeve3 = currentLevel.anyLevel) === null || _currentLevel$anyLeve3 === void 0 ? void 0 : _currentLevel$anyLeve3.length) || 0)];
12552
12566
  if ((!exp[0].id || vNode.shadowId === currentLevel.parentShadowId) && _matchesExpression(vNode, exp[0])) {
12553
12567
  if (exp.length === 1) {
12554
12568
  if (!added && (!filter || filter(vNode))) {
@@ -12972,9 +12986,9 @@
12972
12986
  result = nodes;
12973
12987
  nodes = temp;
12974
12988
  }
12975
- for (var _i12 = 0, l = nodes.length; _i12 < l; _i12++) {
12976
- if (!result.includes(nodes[_i12])) {
12977
- result.push(nodes[_i12]);
12989
+ for (var _i14 = 0, l = nodes.length; _i14 < l; _i14++) {
12990
+ if (!result.includes(nodes[_i14])) {
12991
+ result.push(nodes[_i14]);
12978
12992
  }
12979
12993
  }
12980
12994
  return result;
@@ -13000,8 +13014,8 @@
13000
13014
  }
13001
13015
  var outerIncludes = getOuterIncludes(context.include);
13002
13016
  var isInContext = getContextFilter(context);
13003
- for (var _i13 = 0; _i13 < outerIncludes.length; _i13++) {
13004
- candidate = outerIncludes[_i13];
13017
+ for (var _i15 = 0; _i15 < outerIncludes.length; _i15++) {
13018
+ candidate = outerIncludes[_i15];
13005
13019
  var nodes = query_selector_all_filter_default(candidate, selector, isInContext);
13006
13020
  result = pushNode(result, nodes);
13007
13021
  }
@@ -13052,6 +13066,36 @@
13052
13066
  }
13053
13067
  return selectRecursive(selectors, elm.shadowRoot);
13054
13068
  }
13069
+ function _shadowSelectAll(selectors) {
13070
+ var doc = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : document;
13071
+ var selectorArr = Array.isArray(selectors) ? _toConsumableArray(selectors) : [ selectors ];
13072
+ if (selectors.length === 0) {
13073
+ return [];
13074
+ }
13075
+ return selectAllRecursive(selectorArr, doc);
13076
+ }
13077
+ function selectAllRecursive(_ref45, doc) {
13078
+ var _ref46 = _toArray(_ref45), selectorStr = _ref46[0], restSelector = _ref46.slice(1);
13079
+ var elms = doc.querySelectorAll(selectorStr);
13080
+ if (restSelector.length === 0) {
13081
+ return Array.from(elms);
13082
+ }
13083
+ var selected = [];
13084
+ var _iterator5 = _createForOfIteratorHelper(elms), _step5;
13085
+ try {
13086
+ for (_iterator5.s(); !(_step5 = _iterator5.n()).done; ) {
13087
+ var elm = _step5.value;
13088
+ if (elm !== null && elm !== void 0 && elm.shadowRoot) {
13089
+ selected.push.apply(selected, _toConsumableArray(selectAllRecursive(restSelector, elm.shadowRoot)));
13090
+ }
13091
+ }
13092
+ } catch (err) {
13093
+ _iterator5.e(err);
13094
+ } finally {
13095
+ _iterator5.f();
13096
+ }
13097
+ return selected;
13098
+ }
13055
13099
  function validInputTypes() {
13056
13100
  return [ 'hidden', 'text', 'search', 'tel', 'url', 'email', 'password', 'date', 'month', 'week', 'time', 'datetime-local', 'number', 'range', 'color', 'checkbox', 'radio', 'file', 'submit', 'image', 'reset', 'button' ];
13057
13101
  }
@@ -13062,8 +13106,8 @@
13062
13106
  while (lang.length < 3) {
13063
13107
  lang += '`';
13064
13108
  }
13065
- for (var _i14 = 0; _i14 <= lang.length - 1; _i14++) {
13066
- var index = lang.charCodeAt(_i14) - 96;
13109
+ for (var _i16 = 0; _i16 <= lang.length - 1; _i16++) {
13110
+ var index = lang.charCodeAt(_i16) - 96;
13067
13111
  array = array[index];
13068
13112
  if (!array) {
13069
13113
  return false;
@@ -13135,9 +13179,9 @@
13135
13179
  nodeTypeToName[nodeNamesToTypes[nodeName2]] = nodeName2;
13136
13180
  });
13137
13181
  function normaliseProps(serialNode) {
13138
- var _serialNode$nodeName, _ref45, _serialNode$nodeType;
13182
+ var _serialNode$nodeName, _ref47, _serialNode$nodeType;
13139
13183
  var nodeName2 = (_serialNode$nodeName = serialNode.nodeName) !== null && _serialNode$nodeName !== void 0 ? _serialNode$nodeName : nodeTypeToName[serialNode.nodeType];
13140
- var nodeType = (_ref45 = (_serialNode$nodeType = serialNode.nodeType) !== null && _serialNode$nodeType !== void 0 ? _serialNode$nodeType : nodeNamesToTypes[serialNode.nodeName]) !== null && _ref45 !== void 0 ? _ref45 : 1;
13184
+ var nodeType = (_ref47 = (_serialNode$nodeType = serialNode.nodeType) !== null && _serialNode$nodeType !== void 0 ? _serialNode$nodeType : nodeNamesToTypes[serialNode.nodeName]) !== null && _ref47 !== void 0 ? _ref47 : 1;
13141
13185
  assert_default(typeof nodeType === 'number', 'nodeType has to be a number, got \''.concat(nodeType, '\''));
13142
13186
  assert_default(typeof nodeName2 === 'string', 'nodeName has to be a string, got \''.concat(nodeName2, '\''));
13143
13187
  nodeName2 = nodeName2.toLowerCase();
@@ -13158,8 +13202,8 @@
13158
13202
  delete props.attributes;
13159
13203
  return Object.freeze(props);
13160
13204
  }
13161
- function normaliseAttrs(_ref46) {
13162
- var _ref46$attributes = _ref46.attributes, attributes2 = _ref46$attributes === void 0 ? {} : _ref46$attributes;
13205
+ function normaliseAttrs(_ref48) {
13206
+ var _ref48$attributes = _ref48.attributes, attributes2 = _ref48$attributes === void 0 ? {} : _ref48$attributes;
13163
13207
  var attrMap = {
13164
13208
  htmlFor: 'for',
13165
13209
  className: 'class'
@@ -13504,7 +13548,7 @@
13504
13548
  }
13505
13549
  var is_unsupported_role_default = isUnsupportedRole;
13506
13550
  function isValidRole(role) {
13507
- var _ref47 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, allowAbstract = _ref47.allowAbstract, _ref47$flagUnsupporte = _ref47.flagUnsupported, flagUnsupported = _ref47$flagUnsupporte === void 0 ? false : _ref47$flagUnsupporte;
13551
+ var _ref49 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, allowAbstract = _ref49.allowAbstract, _ref49$flagUnsupporte = _ref49.flagUnsupported, flagUnsupported = _ref49$flagUnsupporte === void 0 ? false : _ref49$flagUnsupporte;
13508
13552
  var roleDefinition = standards_default.ariaRoles[role];
13509
13553
  var isRoleUnsupported = is_unsupported_role_default(role);
13510
13554
  if (!roleDefinition || flagUnsupported && isRoleUnsupported) {
@@ -13514,7 +13558,7 @@
13514
13558
  }
13515
13559
  var is_valid_role_default = isValidRole;
13516
13560
  function getExplicitRole(vNode) {
13517
- var _ref48 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, fallback = _ref48.fallback, abstracts = _ref48.abstracts, dpub = _ref48.dpub;
13561
+ var _ref50 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, fallback = _ref50.fallback, abstracts = _ref50.abstracts, dpub = _ref50.dpub;
13518
13562
  vNode = vNode instanceof abstract_virtual_node_default ? vNode : get_node_from_tree_default(vNode);
13519
13563
  if (vNode.props.nodeType !== 1) {
13520
13564
  return null;
@@ -13893,7 +13937,7 @@
13893
13937
  matches_default2.semanticRole = semantic_role_default;
13894
13938
  var matches_default3 = matches_default2;
13895
13939
  function getElementSpec(vNode) {
13896
- var _ref49 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, _ref49$noMatchAccessi = _ref49.noMatchAccessibleName, noMatchAccessibleName = _ref49$noMatchAccessi === void 0 ? false : _ref49$noMatchAccessi;
13940
+ var _ref51 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, _ref51$noMatchAccessi = _ref51.noMatchAccessibleName, noMatchAccessibleName = _ref51$noMatchAccessi === void 0 ? false : _ref51$noMatchAccessi;
13897
13941
  var standard = standards_default.htmlElms[vNode.props.nodeName];
13898
13942
  if (!standard) {
13899
13943
  return {};
@@ -13908,8 +13952,8 @@
13908
13952
  }
13909
13953
  var _variant$variantName = variant[variantName], matches4 = _variant$variantName.matches, props = _objectWithoutProperties(_variant$variantName, _excluded4);
13910
13954
  var matchProperties = Array.isArray(matches4) ? matches4 : [ matches4 ];
13911
- for (var _i15 = 0; _i15 < matchProperties.length && noMatchAccessibleName; _i15++) {
13912
- if (matchProperties[_i15].hasOwnProperty('hasAccessibleName')) {
13955
+ for (var _i17 = 0; _i17 < matchProperties.length && noMatchAccessibleName; _i17++) {
13956
+ if (matchProperties[_i17].hasOwnProperty('hasAccessibleName')) {
13913
13957
  return standard;
13914
13958
  }
13915
13959
  }
@@ -13930,7 +13974,7 @@
13930
13974
  }
13931
13975
  var get_element_spec_default = getElementSpec;
13932
13976
  function implicitRole2(node) {
13933
- var _ref50 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, chromium = _ref50.chromium;
13977
+ var _ref52 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, chromium = _ref52.chromium;
13934
13978
  var vNode = node instanceof abstract_virtual_node_default ? node : get_node_from_tree_default(node);
13935
13979
  node = vNode.actualNode;
13936
13980
  if (!vNode) {
@@ -13980,8 +14024,8 @@
13980
14024
  }
13981
14025
  return getInheritedRole(vNode.parent, explicitRoleOptions);
13982
14026
  }
13983
- function resolveImplicitRole(vNode, _ref51) {
13984
- var chromium = _ref51.chromium, explicitRoleOptions = _objectWithoutProperties(_ref51, _excluded5);
14027
+ function resolveImplicitRole(vNode, _ref53) {
14028
+ var chromium = _ref53.chromium, explicitRoleOptions = _objectWithoutProperties(_ref53, _excluded5);
13985
14029
  var implicitRole3 = implicit_role_default(vNode, {
13986
14030
  chromium: chromium
13987
14031
  });
@@ -14001,8 +14045,8 @@
14001
14045
  return hasGlobalAria || _isFocusable(vNode);
14002
14046
  }
14003
14047
  function resolveRole(node) {
14004
- var _ref52 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
14005
- var noImplicit = _ref52.noImplicit, roleOptions = _objectWithoutProperties(_ref52, _excluded6);
14048
+ var _ref54 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
14049
+ var noImplicit = _ref54.noImplicit, roleOptions = _objectWithoutProperties(_ref54, _excluded6);
14006
14050
  var vNode = node instanceof abstract_virtual_node_default ? node : get_node_from_tree_default(node);
14007
14051
  if (vNode.props.nodeType !== 1) {
14008
14052
  return null;
@@ -14020,8 +14064,8 @@
14020
14064
  return explicitRole2;
14021
14065
  }
14022
14066
  function getRole(node) {
14023
- var _ref53 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
14024
- var noPresentational = _ref53.noPresentational, options = _objectWithoutProperties(_ref53, _excluded7);
14067
+ var _ref55 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
14068
+ var noPresentational = _ref55.noPresentational, options = _objectWithoutProperties(_ref55, _excluded7);
14025
14069
  var role = resolveRole(node, options);
14026
14070
  if (noPresentational && [ 'presentation', 'none' ].includes(role)) {
14027
14071
  return null;
@@ -14042,7 +14086,7 @@
14042
14086
  }
14043
14087
  var title_text_default = titleText;
14044
14088
  function namedFromContents(vNode) {
14045
- var _ref54 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, strict = _ref54.strict;
14089
+ var _ref56 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, strict = _ref56.strict;
14046
14090
  vNode = vNode instanceof abstract_virtual_node_default ? vNode : get_node_from_tree_default(vNode);
14047
14091
  if (vNode.props.nodeType !== 1) {
14048
14092
  return false;
@@ -14167,12 +14211,12 @@
14167
14211
  button: ''
14168
14212
  };
14169
14213
  var nativeTextMethods = {
14170
- valueText: function valueText(_ref55) {
14171
- var actualNode = _ref55.actualNode;
14214
+ valueText: function valueText(_ref57) {
14215
+ var actualNode = _ref57.actualNode;
14172
14216
  return actualNode.value || '';
14173
14217
  },
14174
- buttonDefaultText: function buttonDefaultText(_ref56) {
14175
- var actualNode = _ref56.actualNode;
14218
+ buttonDefaultText: function buttonDefaultText(_ref58) {
14219
+ var actualNode = _ref58.actualNode;
14176
14220
  return defaultButtonValues[actualNode.type] || '';
14177
14221
  },
14178
14222
  tableCaptionText: descendantText.bind(null, 'caption'),
@@ -14192,8 +14236,8 @@
14192
14236
  function attrText(attr, vNode) {
14193
14237
  return vNode.attr(attr) || '';
14194
14238
  }
14195
- function descendantText(nodeName2, _ref57, context) {
14196
- var actualNode = _ref57.actualNode;
14239
+ function descendantText(nodeName2, _ref59, context) {
14240
+ var actualNode = _ref59.actualNode;
14197
14241
  nodeName2 = nodeName2.toLowerCase();
14198
14242
  var nodeNames2 = [ nodeName2, actualNode.nodeName.toLowerCase() ].join(',');
14199
14243
  var candidate = actualNode.querySelector(nodeNames2);
@@ -14682,7 +14726,7 @@
14682
14726
  locations: [ 'billing', 'shipping' ]
14683
14727
  };
14684
14728
  function isValidAutocomplete(autocompleteValue) {
14685
- var _ref58 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, _ref58$looseTyped = _ref58.looseTyped, looseTyped = _ref58$looseTyped === void 0 ? false : _ref58$looseTyped, _ref58$stateTerms = _ref58.stateTerms, stateTerms = _ref58$stateTerms === void 0 ? [] : _ref58$stateTerms, _ref58$locations = _ref58.locations, locations = _ref58$locations === void 0 ? [] : _ref58$locations, _ref58$qualifiers = _ref58.qualifiers, qualifiers = _ref58$qualifiers === void 0 ? [] : _ref58$qualifiers, _ref58$standaloneTerm = _ref58.standaloneTerms, standaloneTerms = _ref58$standaloneTerm === void 0 ? [] : _ref58$standaloneTerm, _ref58$qualifiedTerms = _ref58.qualifiedTerms, qualifiedTerms = _ref58$qualifiedTerms === void 0 ? [] : _ref58$qualifiedTerms;
14729
+ var _ref60 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, _ref60$looseTyped = _ref60.looseTyped, looseTyped = _ref60$looseTyped === void 0 ? false : _ref60$looseTyped, _ref60$stateTerms = _ref60.stateTerms, stateTerms = _ref60$stateTerms === void 0 ? [] : _ref60$stateTerms, _ref60$locations = _ref60.locations, locations = _ref60$locations === void 0 ? [] : _ref60$locations, _ref60$qualifiers = _ref60.qualifiers, qualifiers = _ref60$qualifiers === void 0 ? [] : _ref60$qualifiers, _ref60$standaloneTerm = _ref60.standaloneTerms, standaloneTerms = _ref60$standaloneTerm === void 0 ? [] : _ref60$standaloneTerm, _ref60$qualifiedTerms = _ref60.qualifiedTerms, qualifiedTerms = _ref60$qualifiedTerms === void 0 ? [] : _ref60$qualifiedTerms;
14686
14730
  autocompleteValue = autocompleteValue.toLowerCase().trim();
14687
14731
  stateTerms = stateTerms.concat(_autocomplete.stateTerms);
14688
14732
  if (stateTerms.includes(autocompleteValue) || autocompleteValue === '') {
@@ -14833,8 +14877,8 @@
14833
14877
  idRefs[id] = idRefs[id] || [];
14834
14878
  idRefs[id].push(node);
14835
14879
  }
14836
- for (var _i16 = 0; _i16 < refAttrs.length; ++_i16) {
14837
- var attr = refAttrs[_i16];
14880
+ for (var _i18 = 0; _i18 < refAttrs.length; ++_i18) {
14881
+ var attr = refAttrs[_i18];
14838
14882
  var attrValue = sanitize_default(node.getAttribute(attr) || '');
14839
14883
  if (!attrValue) {
14840
14884
  continue;
@@ -14846,9 +14890,9 @@
14846
14890
  }
14847
14891
  }
14848
14892
  }
14849
- for (var _i17 = 0; _i17 < node.childNodes.length; _i17++) {
14850
- if (node.childNodes[_i17].nodeType === 1) {
14851
- cacheIdRefs(node.childNodes[_i17], idRefs, refAttrs);
14893
+ for (var _i19 = 0; _i19 < node.childNodes.length; _i19++) {
14894
+ if (node.childNodes[_i19].nodeType === 1) {
14895
+ cacheIdRefs(node.childNodes[_i19], idRefs, refAttrs);
14852
14896
  }
14853
14897
  }
14854
14898
  }
@@ -16695,8 +16739,8 @@
16695
16739
  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' ]
16696
16740
  } ];
16697
16741
  lookupTable.evaluateRoleForElement = {
16698
- A: function A(_ref59) {
16699
- var node = _ref59.node, out = _ref59.out;
16742
+ A: function A(_ref61) {
16743
+ var node = _ref61.node, out = _ref61.out;
16700
16744
  if (node.namespaceURI === 'http://www.w3.org/2000/svg') {
16701
16745
  return true;
16702
16746
  }
@@ -16705,19 +16749,19 @@
16705
16749
  }
16706
16750
  return true;
16707
16751
  },
16708
- AREA: function AREA(_ref60) {
16709
- var node = _ref60.node;
16752
+ AREA: function AREA(_ref62) {
16753
+ var node = _ref62.node;
16710
16754
  return !node.href;
16711
16755
  },
16712
- BUTTON: function BUTTON(_ref61) {
16713
- var node = _ref61.node, role = _ref61.role, out = _ref61.out;
16756
+ BUTTON: function BUTTON(_ref63) {
16757
+ var node = _ref63.node, role = _ref63.role, out = _ref63.out;
16714
16758
  if (node.getAttribute('type') === 'menu') {
16715
16759
  return role === 'menuitem';
16716
16760
  }
16717
16761
  return out;
16718
16762
  },
16719
- IMG: function IMG(_ref62) {
16720
- var node = _ref62.node, role = _ref62.role, out = _ref62.out;
16763
+ IMG: function IMG(_ref64) {
16764
+ var node = _ref64.node, role = _ref64.role, out = _ref64.out;
16721
16765
  switch (node.alt) {
16722
16766
  case null:
16723
16767
  return out;
@@ -16729,8 +16773,8 @@
16729
16773
  return role !== 'presentation' && role !== 'none';
16730
16774
  }
16731
16775
  },
16732
- INPUT: function INPUT(_ref63) {
16733
- var node = _ref63.node, role = _ref63.role, out = _ref63.out;
16776
+ INPUT: function INPUT(_ref65) {
16777
+ var node = _ref65.node, role = _ref65.role, out = _ref65.out;
16734
16778
  switch (node.type) {
16735
16779
  case 'button':
16736
16780
  case 'image':
@@ -16760,32 +16804,32 @@
16760
16804
  return false;
16761
16805
  }
16762
16806
  },
16763
- LI: function LI(_ref64) {
16764
- var node = _ref64.node, out = _ref64.out;
16807
+ LI: function LI(_ref66) {
16808
+ var node = _ref66.node, out = _ref66.out;
16765
16809
  var hasImplicitListitemRole = axe.utils.matchesSelector(node, 'ol li, ul li');
16766
16810
  if (hasImplicitListitemRole) {
16767
16811
  return out;
16768
16812
  }
16769
16813
  return true;
16770
16814
  },
16771
- MENU: function MENU(_ref65) {
16772
- var node = _ref65.node;
16815
+ MENU: function MENU(_ref67) {
16816
+ var node = _ref67.node;
16773
16817
  if (node.getAttribute('type') === 'context') {
16774
16818
  return false;
16775
16819
  }
16776
16820
  return true;
16777
16821
  },
16778
- OPTION: function OPTION(_ref66) {
16779
- var node = _ref66.node;
16822
+ OPTION: function OPTION(_ref68) {
16823
+ var node = _ref68.node;
16780
16824
  var withinOptionList = axe.utils.matchesSelector(node, 'select > option, datalist > option, optgroup > option');
16781
16825
  return !withinOptionList;
16782
16826
  },
16783
- SELECT: function SELECT(_ref67) {
16784
- var node = _ref67.node, role = _ref67.role;
16827
+ SELECT: function SELECT(_ref69) {
16828
+ var node = _ref69.node, role = _ref69.role;
16785
16829
  return !node.multiple && node.size <= 1 && role === 'menu';
16786
16830
  },
16787
- SVG: function SVG(_ref68) {
16788
- var node = _ref68.node, out = _ref68.out;
16831
+ SVG: function SVG(_ref70) {
16832
+ var node = _ref70.node, out = _ref70.out;
16789
16833
  if (node.parentNode && node.parentNode.namespaceURI === 'http://www.w3.org/2000/svg') {
16790
16834
  return true;
16791
16835
  }
@@ -16935,9 +16979,9 @@
16935
16979
  preChecks[attr] = validateRowAttrs;
16936
16980
  });
16937
16981
  if (allowed) {
16938
- for (var _i18 = 0; _i18 < attrs.length; _i18++) {
16982
+ for (var _i20 = 0; _i20 < attrs.length; _i20++) {
16939
16983
  var _preChecks$attrName;
16940
- var attrName = attrs[_i18];
16984
+ var attrName = attrs[_i20];
16941
16985
  if (validate_attr_default(attrName) && (_preChecks$attrName = preChecks[attrName]) !== null && _preChecks$attrName !== void 0 && _preChecks$attrName.call(preChecks)) {
16942
16986
  invalid.push(attrName + '="' + virtualNode.attr(attrName) + '"');
16943
16987
  } else if (validate_attr_default(attrName) && !allowed.includes(attrName)) {
@@ -17101,40 +17145,43 @@
17101
17145
  function ariaRequiredAttrEvaluate(node) {
17102
17146
  var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
17103
17147
  var virtualNode = arguments.length > 2 ? arguments[2] : undefined;
17104
- var missing = [];
17105
- var attrs = virtualNode.attrNames;
17106
17148
  var role = get_explicit_role_default(virtualNode);
17107
- if (attrs.length) {
17108
- var required = required_attr_default(role);
17109
- var elmSpec = get_element_spec_default(virtualNode);
17110
- if (Array.isArray(options[role])) {
17111
- required = unique_array_default(options[role], required);
17112
- }
17113
- if (role && required) {
17114
- for (var _i19 = 0, l = required.length; _i19 < l; _i19++) {
17115
- var attr = required[_i19];
17116
- if (!virtualNode.attr(attr) && !(elmSpec.implicitAttrs && typeof elmSpec.implicitAttrs[attr] !== 'undefined')) {
17117
- missing.push(attr);
17118
- }
17119
- }
17120
- }
17149
+ var attrs = virtualNode.attrNames;
17150
+ var requiredAttrs = required_attr_default(role);
17151
+ if (Array.isArray(options[role])) {
17152
+ requiredAttrs = unique_array_default(options[role], requiredAttrs);
17121
17153
  }
17122
- var comboboxMissingControls = role === 'combobox' && missing.includes('aria-controls');
17123
- if (comboboxMissingControls && (virtualNode.hasAttr('aria-owns') || virtualNode.attr('aria-expanded') !== 'true')) {
17124
- missing.splice(missing.indexOf('aria-controls', 1));
17154
+ if (!role || !attrs.length || !requiredAttrs.length) {
17155
+ return true;
17125
17156
  }
17126
- if (missing.length) {
17127
- this.data(missing);
17157
+ if (isStaticSeparator(virtualNode, role) || isClosedCombobox(virtualNode, role)) {
17158
+ return true;
17159
+ }
17160
+ var elmSpec = get_element_spec_default(virtualNode);
17161
+ var missingAttrs = requiredAttrs.filter(function(requiredAttr2) {
17162
+ return !virtualNode.attr(requiredAttr2) && !hasImplicitAttr(elmSpec, requiredAttr2);
17163
+ });
17164
+ if (missingAttrs.length) {
17165
+ this.data(missingAttrs);
17128
17166
  return false;
17129
17167
  }
17130
17168
  return true;
17131
17169
  }
17132
- var aria_required_attr_evaluate_default = ariaRequiredAttrEvaluate;
17170
+ function isStaticSeparator(vNode, role) {
17171
+ return role === 'separator' && !_isFocusable(vNode);
17172
+ }
17173
+ function hasImplicitAttr(elmSpec, attr) {
17174
+ var _elmSpec$implicitAttr;
17175
+ return ((_elmSpec$implicitAttr = elmSpec.implicitAttrs) === null || _elmSpec$implicitAttr === void 0 ? void 0 : _elmSpec$implicitAttr[attr]) !== void 0;
17176
+ }
17177
+ function isClosedCombobox(vNode, role) {
17178
+ return role === 'combobox' && vNode.attr('aria-expanded') === 'false';
17179
+ }
17133
17180
  function getOwnedRoles(virtualNode, required) {
17134
17181
  var ownedRoles = [];
17135
17182
  var ownedElements = get_owned_virtual_default(virtualNode);
17136
- var _loop5 = function _loop5(_i20) {
17137
- var ownedElement = ownedElements[_i20];
17183
+ var _loop5 = function _loop5(_i21) {
17184
+ var ownedElement = ownedElements[_i21];
17138
17185
  var role = get_role_default(ownedElement, {
17139
17186
  noPresentational: true
17140
17187
  });
@@ -17153,14 +17200,14 @@
17153
17200
  });
17154
17201
  }
17155
17202
  };
17156
- for (var _i20 = 0; _i20 < ownedElements.length; _i20++) {
17157
- _loop5(_i20);
17203
+ for (var _i21 = 0; _i21 < ownedElements.length; _i21++) {
17204
+ _loop5(_i21);
17158
17205
  }
17159
17206
  return ownedRoles;
17160
17207
  }
17161
17208
  function missingRequiredChildren(virtualNode, role, required, ownedRoles) {
17162
- var _loop6 = function _loop6(_i21) {
17163
- var role2 = ownedRoles[_i21].role;
17209
+ var _loop6 = function _loop6(_i22) {
17210
+ var role2 = ownedRoles[_i22].role;
17164
17211
  if (required.includes(role2)) {
17165
17212
  required = required.filter(function(requiredRole) {
17166
17213
  return requiredRole !== role2;
@@ -17170,8 +17217,8 @@
17170
17217
  };
17171
17218
  }
17172
17219
  };
17173
- for (var _i21 = 0; _i21 < ownedRoles.length; _i21++) {
17174
- var _ret2 = _loop6(_i21);
17220
+ for (var _i22 = 0; _i22 < ownedRoles.length; _i22++) {
17221
+ var _ret2 = _loop6(_i22);
17175
17222
  if (_typeof(_ret2) === 'object') {
17176
17223
  return _ret2.v;
17177
17224
  }
@@ -17191,13 +17238,13 @@
17191
17238
  return true;
17192
17239
  }
17193
17240
  var ownedRoles = getOwnedRoles(virtualNode, required);
17194
- var unallowed = ownedRoles.filter(function(_ref69) {
17195
- var role2 = _ref69.role;
17241
+ var unallowed = ownedRoles.filter(function(_ref71) {
17242
+ var role2 = _ref71.role;
17196
17243
  return !required.includes(role2);
17197
17244
  });
17198
17245
  if (unallowed.length) {
17199
- this.relatedNodes(unallowed.map(function(_ref70) {
17200
- var ownedElement = _ref70.ownedElement;
17246
+ this.relatedNodes(unallowed.map(function(_ref72) {
17247
+ var ownedElement = _ref72.ownedElement;
17201
17248
  return ownedElement;
17202
17249
  }));
17203
17250
  this.data({
@@ -17271,8 +17318,8 @@
17271
17318
  }
17272
17319
  var owners = getAriaOwners(node);
17273
17320
  if (owners) {
17274
- for (var _i22 = 0, l = owners.length; _i22 < l; _i22++) {
17275
- missingParents = getMissingContext(get_node_from_tree_default(owners[_i22]), ownGroupRoles, missingParents, true);
17321
+ for (var _i23 = 0, l = owners.length; _i23 < l; _i23++) {
17322
+ missingParents = getMissingContext(get_node_from_tree_default(owners[_i23]), ownGroupRoles, missingParents, true);
17276
17323
  if (!missingParents) {
17277
17324
  return true;
17278
17325
  }
@@ -17566,7 +17613,7 @@
17566
17613
  return get_contrast_default;
17567
17614
  },
17568
17615
  getForegroundColor: function getForegroundColor() {
17569
- return get_foreground_color_default;
17616
+ return _getForegroundColor;
17570
17617
  },
17571
17618
  getOwnBackgroundColor: function getOwnBackgroundColor() {
17572
17619
  return get_own_background_color_default;
@@ -17728,6 +17775,9 @@
17728
17775
  var g = simpleAlphaCompositing(fgColor.green, fgColor.alpha, bgColor.green, bgColor.alpha, blendMode);
17729
17776
  var b = simpleAlphaCompositing(fgColor.blue, fgColor.alpha, bgColor.blue, bgColor.alpha, blendMode);
17730
17777
  var \u03b1o = clamp(fgColor.alpha + bgColor.alpha * (1 - fgColor.alpha), 0, 1);
17778
+ if (\u03b1o === 0) {
17779
+ return new color_default(r, g, b, \u03b1o);
17780
+ }
17731
17781
  var Cr = Math.round(r / \u03b1o);
17732
17782
  var Cg = Math.round(g / \u03b1o);
17733
17783
  var Cb = Math.round(b / \u03b1o);
@@ -17757,11 +17807,11 @@
17757
17807
  return position === 'static';
17758
17808
  }
17759
17809
  function calculateObscuringElement(elmIndex, elmStack, originalElm) {
17760
- for (var _i23 = elmIndex - 1; _i23 >= 0; _i23--) {
17761
- if (!isInlineDescendant(originalElm, elmStack[_i23])) {
17810
+ for (var _i24 = elmIndex - 1; _i24 >= 0; _i24--) {
17811
+ if (!isInlineDescendant(originalElm, elmStack[_i24])) {
17762
17812
  return true;
17763
17813
  }
17764
- elmStack.splice(_i23, 1);
17814
+ elmStack.splice(_i24, 1);
17765
17815
  }
17766
17816
  return false;
17767
17817
  }
@@ -17798,7 +17848,7 @@
17798
17848
  }
17799
17849
  var get_background_stack_default = getBackgroundStack;
17800
17850
  function getTextShadowColors(node) {
17801
- var _ref71 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, minRatio = _ref71.minRatio, maxRatio = _ref71.maxRatio;
17851
+ var _ref73 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, minRatio = _ref73.minRatio, maxRatio = _ref73.maxRatio;
17802
17852
  var style = window.getComputedStyle(node);
17803
17853
  var textShadow = style.getPropertyValue('text-shadow');
17804
17854
  if (textShadow === 'none') {
@@ -17809,8 +17859,8 @@
17809
17859
  assert_default(isNaN(fontSize) === false, 'Unable to determine font-size value '.concat(fontSizeStr));
17810
17860
  var shadowColors = [];
17811
17861
  var shadows = parseTextShadows(textShadow);
17812
- shadows.forEach(function(_ref72) {
17813
- var colorStr = _ref72.colorStr, pixels = _ref72.pixels;
17862
+ shadows.forEach(function(_ref74) {
17863
+ var colorStr = _ref74.colorStr, pixels = _ref74.pixels;
17814
17864
  colorStr = colorStr || style.getPropertyValue('color');
17815
17865
  var _pixels = _slicedToArray(pixels, 3), offsetY = _pixels[0], offsetX = _pixels[1], _pixels$ = _pixels[2], blurRadius = _pixels$ === void 0 ? 0 : _pixels$;
17816
17866
  if ((!minRatio || blurRadius >= fontSize * minRatio) && (!maxRatio || blurRadius < fontSize * maxRatio)) {
@@ -17860,8 +17910,8 @@
17860
17910
  }
17861
17911
  return shadows;
17862
17912
  }
17863
- function textShadowColor(_ref73) {
17864
- var colorStr = _ref73.colorStr, offsetX = _ref73.offsetX, offsetY = _ref73.offsetY, blurRadius = _ref73.blurRadius, fontSize = _ref73.fontSize;
17913
+ function textShadowColor(_ref75) {
17914
+ var colorStr = _ref75.colorStr, offsetX = _ref75.offsetX, offsetY = _ref75.offsetY, blurRadius = _ref75.blurRadius, fontSize = _ref75.fontSize;
17865
17915
  if (offsetX > blurRadius || offsetY > blurRadius) {
17866
17916
  return new color_default(0, 0, 0, 0);
17867
17917
  }
@@ -17987,7 +18037,60 @@
17987
18037
  return (Math.max(fL, bL) + .05) / (Math.min(fL, bL) + .05);
17988
18038
  }
17989
18039
  var get_contrast_default = getContrast;
17990
- function getOpacity(node) {
18040
+ function _getForegroundColor(node, _, bgColor) {
18041
+ var _bgColor;
18042
+ var options = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};
18043
+ var nodeStyle = window.getComputedStyle(node);
18044
+ var opacity = getOpacity(node, nodeStyle);
18045
+ var strokeColor = getStrokeColor(nodeStyle, options);
18046
+ if (strokeColor && strokeColor.alpha * opacity === 1) {
18047
+ strokeColor.alpha = 1;
18048
+ return strokeColor;
18049
+ }
18050
+ var textColor = getTextColor(nodeStyle);
18051
+ var fgColor = strokeColor ? flatten_colors_default(strokeColor, textColor) : textColor;
18052
+ if (fgColor.alpha * opacity === 1) {
18053
+ fgColor.alpha = 1;
18054
+ return fgColor;
18055
+ }
18056
+ var textShadowColors = get_text_shadow_colors_default(node, {
18057
+ minRatio: 0
18058
+ });
18059
+ fgColor = textShadowColors.reduce(function(colorA, colorB) {
18060
+ return flatten_colors_default(colorA, colorB);
18061
+ }, fgColor);
18062
+ if (fgColor.alpha * opacity === 1) {
18063
+ fgColor.alpha = 1;
18064
+ return fgColor;
18065
+ }
18066
+ (_bgColor = bgColor) !== null && _bgColor !== void 0 ? _bgColor : bgColor = _getBackgroundColor2(node, []);
18067
+ if (bgColor === null) {
18068
+ var reason = incomplete_data_default.get('bgColor');
18069
+ incomplete_data_default.set('fgColor', reason);
18070
+ return null;
18071
+ }
18072
+ fgColor.alpha = fgColor.alpha * opacity;
18073
+ return flatten_colors_default(fgColor, bgColor);
18074
+ }
18075
+ function getTextColor(nodeStyle) {
18076
+ return new color_default().parseString(nodeStyle.getPropertyValue('-webkit-text-fill-color') || nodeStyle.getPropertyValue('color'));
18077
+ }
18078
+ function getStrokeColor(nodeStyle, _ref76) {
18079
+ var _ref76$textStrokeEmMi = _ref76.textStrokeEmMin, textStrokeEmMin = _ref76$textStrokeEmMi === void 0 ? 0 : _ref76$textStrokeEmMi;
18080
+ var strokeWidth = parseFloat(nodeStyle.getPropertyValue('-webkit-text-stroke-width'));
18081
+ if (strokeWidth === 0) {
18082
+ return null;
18083
+ }
18084
+ var fontSize = nodeStyle.getPropertyValue('font-size');
18085
+ var relativeStrokeWidth = strokeWidth / parseFloat(fontSize);
18086
+ if (isNaN(relativeStrokeWidth) || relativeStrokeWidth < textStrokeEmMin) {
18087
+ return null;
18088
+ }
18089
+ var strokeColor = nodeStyle.getPropertyValue('-webkit-text-stroke-color');
18090
+ return new color_default().parseString(strokeColor);
18091
+ }
18092
+ function getOpacity(node, nodeStyle) {
18093
+ var _nodeStyle;
17991
18094
  if (!node) {
17992
18095
  return 1;
17993
18096
  }
@@ -17995,7 +18098,7 @@
17995
18098
  if (vNode && vNode._opacity !== void 0 && vNode._opacity !== null) {
17996
18099
  return vNode._opacity;
17997
18100
  }
17998
- var nodeStyle = window.getComputedStyle(node);
18101
+ (_nodeStyle = nodeStyle) !== null && _nodeStyle !== void 0 ? _nodeStyle : nodeStyle = window.getComputedStyle(node);
17999
18102
  var opacity = nodeStyle.getPropertyValue('opacity');
18000
18103
  var finalOpacity = opacity * getOpacity(node.parentElement);
18001
18104
  if (vNode) {
@@ -18003,32 +18106,6 @@
18003
18106
  }
18004
18107
  return finalOpacity;
18005
18108
  }
18006
- function getForegroundColor(node, _, bgColor) {
18007
- var nodeStyle = window.getComputedStyle(node);
18008
- var fgColor = new color_default();
18009
- fgColor.parseString(nodeStyle.getPropertyValue('color'));
18010
- var opacity = getOpacity(node);
18011
- fgColor.alpha = fgColor.alpha * opacity;
18012
- if (fgColor.alpha === 1) {
18013
- return fgColor;
18014
- }
18015
- if (!bgColor) {
18016
- bgColor = _getBackgroundColor2(node, []);
18017
- }
18018
- if (bgColor === null) {
18019
- var reason = incomplete_data_default.get('bgColor');
18020
- incomplete_data_default.set('fgColor', reason);
18021
- return null;
18022
- }
18023
- if (fgColor.alpha < 1) {
18024
- var textShadowColors = get_text_shadow_colors_default(node, {
18025
- minRatio: 0
18026
- });
18027
- return [ fgColor ].concat(_toConsumableArray(textShadowColors), [ bgColor ]).reduce(flatten_shadow_colors_default);
18028
- }
18029
- return flatten_colors_default(fgColor, bgColor);
18030
- }
18031
- var get_foreground_color_default = getForegroundColor;
18032
18109
  function hasValidContrastRatio(bg, fg, fontSize, isBold) {
18033
18110
  var contrast = get_contrast_default(bg, fg);
18034
18111
  var isSmallFont = isBold && Math.ceil(fontSize * 72) / 96 < 14 || !isBold && Math.ceil(fontSize * 72) / 96 < 18;
@@ -18061,7 +18138,7 @@
18061
18138
  var bold = parseFloat(fontWeight) >= boldValue || fontWeight === 'bold';
18062
18139
  var ptSize = Math.ceil(fontSize * 72) / 96;
18063
18140
  var isSmallFont = bold && ptSize < boldTextPt || !bold && ptSize < largeTextPt;
18064
- var _ref74 = isSmallFont ? contrastRatio.normal : contrastRatio.large, expected = _ref74.expected, minThreshold = _ref74.minThreshold, maxThreshold = _ref74.maxThreshold;
18141
+ var _ref77 = isSmallFont ? contrastRatio.normal : contrastRatio.large, expected = _ref77.expected, minThreshold = _ref77.minThreshold, maxThreshold = _ref77.maxThreshold;
18065
18142
  var pseudoElm = findPseudoElement(virtualNode, {
18066
18143
  ignorePseudo: ignorePseudo,
18067
18144
  pseudoSizeThreshold: pseudoSizeThreshold
@@ -18078,7 +18155,7 @@
18078
18155
  }
18079
18156
  var bgNodes = [];
18080
18157
  var bgColor = _getBackgroundColor2(node, bgNodes, shadowOutlineEmMax);
18081
- var fgColor = get_foreground_color_default(node, false, bgColor);
18158
+ var fgColor = _getForegroundColor(node, false, bgColor, options);
18082
18159
  var shadowColors = get_text_shadow_colors_default(node, {
18083
18160
  minRatio: .001,
18084
18161
  maxRatio: shadowOutlineEmMax
@@ -18140,8 +18217,8 @@
18140
18217
  }
18141
18218
  return isValid;
18142
18219
  }
18143
- function findPseudoElement(vNode, _ref75) {
18144
- var _ref75$pseudoSizeThre = _ref75.pseudoSizeThreshold, pseudoSizeThreshold = _ref75$pseudoSizeThre === void 0 ? .25 : _ref75$pseudoSizeThre, _ref75$ignorePseudo = _ref75.ignorePseudo, ignorePseudo = _ref75$ignorePseudo === void 0 ? false : _ref75$ignorePseudo;
18220
+ function findPseudoElement(vNode, _ref78) {
18221
+ var _ref78$pseudoSizeThre = _ref78.pseudoSizeThreshold, pseudoSizeThreshold = _ref78$pseudoSizeThre === void 0 ? .25 : _ref78$pseudoSizeThre, _ref78$ignorePseudo = _ref78.ignorePseudo, ignorePseudo = _ref78$ignorePseudo === void 0 ? false : _ref78$ignorePseudo;
18145
18222
  if (ignorePseudo) {
18146
18223
  return;
18147
18224
  }
@@ -18183,7 +18260,7 @@
18183
18260
  }
18184
18261
  function parseUnit(str) {
18185
18262
  var unitRegex = /^([0-9.]+)([a-z]+)$/i;
18186
- var _ref76 = str.match(unitRegex) || [], _ref77 = _slicedToArray(_ref76, 3), _ref77$ = _ref77[1], value = _ref77$ === void 0 ? '' : _ref77$, _ref77$2 = _ref77[2], unit = _ref77$2 === void 0 ? '' : _ref77$2;
18263
+ var _ref79 = str.match(unitRegex) || [], _ref80 = _slicedToArray(_ref79, 3), _ref80$ = _ref80[1], value = _ref80$ === void 0 ? '' : _ref80$, _ref80$2 = _ref80[2], unit = _ref80$2 === void 0 ? '' : _ref80$2;
18187
18264
  return {
18188
18265
  value: parseFloat(value),
18189
18266
  unit: unit.toLowerCase()
@@ -18212,8 +18289,8 @@
18212
18289
  return void 0;
18213
18290
  }
18214
18291
  this.relatedNodes([ parentBlock ]);
18215
- var nodeColor = get_foreground_color_default(node);
18216
- var parentColor = get_foreground_color_default(parentBlock);
18292
+ var nodeColor = _getForegroundColor(node);
18293
+ var parentColor = _getForegroundColor(parentBlock);
18217
18294
  var nodeBackgroundColor = _getBackgroundColor2(node);
18218
18295
  var parentBackgroundColor = _getBackgroundColor2(parentBlock);
18219
18296
  var textContrast = nodeColor && parentColor ? getContrast2(nodeColor, parentColor) : void 0;
@@ -18524,8 +18601,8 @@
18524
18601
  }
18525
18602
  var focusable_element_evaluate_default = focusableElementEvaluate;
18526
18603
  function focusableModalOpenEvaluate(node, options, virtualNode) {
18527
- var tabbableElements = virtualNode.tabbableElements.map(function(_ref78) {
18528
- var actualNode = _ref78.actualNode;
18604
+ var tabbableElements = virtualNode.tabbableElements.map(function(_ref81) {
18605
+ var actualNode = _ref81.actualNode;
18529
18606
  return actualNode;
18530
18607
  });
18531
18608
  if (!tabbableElements || !tabbableElements.length) {
@@ -18803,7 +18880,7 @@
18803
18880
  return sanitize_default(noUnicodeStr);
18804
18881
  }
18805
18882
  function labelContentNameMismatchEvaluate(node, options, virtualNode) {
18806
- var _ref79 = options || {}, pixelThreshold = _ref79.pixelThreshold, occuranceThreshold = _ref79.occuranceThreshold;
18883
+ var _ref82 = options || {}, pixelThreshold = _ref82.pixelThreshold, occuranceThreshold = _ref82.occuranceThreshold;
18807
18884
  var accText = accessible_text_default(node).toLowerCase();
18808
18885
  if (is_human_interpretable_default(accText) < 1) {
18809
18886
  return void 0;
@@ -19004,8 +19081,8 @@
19004
19081
  this.relatedNodes(relatedNodes);
19005
19082
  return true;
19006
19083
  }
19007
- function getInvalidSelector(vChild, nested, _ref80) {
19008
- var _ref80$validRoles = _ref80.validRoles, validRoles = _ref80$validRoles === void 0 ? [] : _ref80$validRoles, _ref80$validNodeNames = _ref80.validNodeNames, validNodeNames = _ref80$validNodeNames === void 0 ? [] : _ref80$validNodeNames;
19084
+ function getInvalidSelector(vChild, nested, _ref83) {
19085
+ var _ref83$validRoles = _ref83.validRoles, validRoles = _ref83$validRoles === void 0 ? [] : _ref83$validRoles, _ref83$validNodeNames = _ref83.validNodeNames, validNodeNames = _ref83$validNodeNames === void 0 ? [] : _ref83$validNodeNames;
19009
19086
  var _vChild$props = vChild.props, nodeName2 = _vChild$props.nodeName, nodeType = _vChild$props.nodeType, nodeValue = _vChild$props.nodeValue;
19010
19087
  var selector = nested ? 'div > ' : '';
19011
19088
  if (nodeType === 3 && nodeValue.trim() !== '') {
@@ -19238,8 +19315,8 @@
19238
19315
  }
19239
19316
  var no_autoplay_audio_evaluate_default = noAutoplayAudioEvaluate;
19240
19317
  function cssOrientationLockEvaluate(node, options, virtualNode, context) {
19241
- var _ref81 = context || {}, _ref81$cssom = _ref81.cssom, cssom = _ref81$cssom === void 0 ? void 0 : _ref81$cssom;
19242
- var _ref82 = options || {}, _ref82$degreeThreshol = _ref82.degreeThreshold, degreeThreshold = _ref82$degreeThreshol === void 0 ? 0 : _ref82$degreeThreshol;
19318
+ var _ref84 = context || {}, _ref84$cssom = _ref84.cssom, cssom = _ref84$cssom === void 0 ? void 0 : _ref84$cssom;
19319
+ var _ref85 = options || {}, _ref85$degreeThreshol = _ref85.degreeThreshold, degreeThreshold = _ref85$degreeThreshol === void 0 ? 0 : _ref85$degreeThreshol;
19243
19320
  if (!cssom || !cssom.length) {
19244
19321
  return void 0;
19245
19322
  }
@@ -19247,14 +19324,14 @@
19247
19324
  var relatedElements = [];
19248
19325
  var rulesGroupByDocumentFragment = groupCssomByDocument(cssom);
19249
19326
  var _loop7 = function _loop7() {
19250
- var key = _Object$keys2[_i24];
19327
+ var key = _Object$keys2[_i25];
19251
19328
  var _rulesGroupByDocument = rulesGroupByDocumentFragment[key], root = _rulesGroupByDocument.root, rules = _rulesGroupByDocument.rules;
19252
19329
  var orientationRules = rules.filter(isMediaRuleWithOrientation);
19253
19330
  if (!orientationRules.length) {
19254
19331
  return 'continue';
19255
19332
  }
19256
- orientationRules.forEach(function(_ref83) {
19257
- var cssRules = _ref83.cssRules;
19333
+ orientationRules.forEach(function(_ref86) {
19334
+ var cssRules = _ref86.cssRules;
19258
19335
  Array.from(cssRules).forEach(function(cssRule) {
19259
19336
  var locked = getIsOrientationLocked(cssRule);
19260
19337
  if (locked && cssRule.selectorText.toUpperCase() !== 'HTML') {
@@ -19265,7 +19342,7 @@
19265
19342
  });
19266
19343
  });
19267
19344
  };
19268
- for (var _i24 = 0, _Object$keys2 = Object.keys(rulesGroupByDocumentFragment); _i24 < _Object$keys2.length; _i24++) {
19345
+ for (var _i25 = 0, _Object$keys2 = Object.keys(rulesGroupByDocumentFragment); _i25 < _Object$keys2.length; _i25++) {
19269
19346
  var _ret3 = _loop7();
19270
19347
  if (_ret3 === 'continue') {
19271
19348
  continue;
@@ -19279,8 +19356,8 @@
19279
19356
  }
19280
19357
  return false;
19281
19358
  function groupCssomByDocument(cssObjectModel) {
19282
- return cssObjectModel.reduce(function(out, _ref84) {
19283
- var sheet = _ref84.sheet, root = _ref84.root, shadowId = _ref84.shadowId;
19359
+ return cssObjectModel.reduce(function(out, _ref87) {
19360
+ var sheet = _ref87.sheet, root = _ref87.root, shadowId = _ref87.shadowId;
19284
19361
  var key = shadowId ? shadowId : 'topDocument';
19285
19362
  if (!out[key]) {
19286
19363
  out[key] = {
@@ -19296,15 +19373,15 @@
19296
19373
  return out;
19297
19374
  }, {});
19298
19375
  }
19299
- function isMediaRuleWithOrientation(_ref85) {
19300
- var type = _ref85.type, cssText = _ref85.cssText;
19376
+ function isMediaRuleWithOrientation(_ref88) {
19377
+ var type = _ref88.type, cssText = _ref88.cssText;
19301
19378
  if (type !== 4) {
19302
19379
  return false;
19303
19380
  }
19304
19381
  return /orientation:\s*landscape/i.test(cssText) || /orientation:\s*portrait/i.test(cssText);
19305
19382
  }
19306
- function getIsOrientationLocked(_ref86) {
19307
- var selectorText = _ref86.selectorText, style = _ref86.style;
19383
+ function getIsOrientationLocked(_ref89) {
19384
+ var selectorText = _ref89.selectorText, style = _ref89.style;
19308
19385
  if (!selectorText || style.length <= 0) {
19309
19386
  return false;
19310
19387
  }
@@ -19351,7 +19428,7 @@
19351
19428
  }
19352
19429
  }
19353
19430
  function getAngleInDegrees(angleWithUnit) {
19354
- var _ref87 = angleWithUnit.match(/(deg|grad|rad|turn)/) || [], _ref88 = _slicedToArray(_ref87, 1), unit = _ref88[0];
19431
+ var _ref90 = angleWithUnit.match(/(deg|grad|rad|turn)/) || [], _ref91 = _slicedToArray(_ref90, 1), unit = _ref91[0];
19355
19432
  if (!unit) {
19356
19433
  return;
19357
19434
  }
@@ -19400,7 +19477,7 @@
19400
19477
  }
19401
19478
  var css_orientation_lock_evaluate_default = cssOrientationLockEvaluate;
19402
19479
  function metaViewportScaleEvaluate(node, options, virtualNode) {
19403
- var _ref89 = options || {}, _ref89$scaleMinimum = _ref89.scaleMinimum, scaleMinimum = _ref89$scaleMinimum === void 0 ? 2 : _ref89$scaleMinimum, _ref89$lowerBound = _ref89.lowerBound, lowerBound = _ref89$lowerBound === void 0 ? false : _ref89$lowerBound;
19480
+ var _ref92 = options || {}, _ref92$scaleMinimum = _ref92.scaleMinimum, scaleMinimum = _ref92$scaleMinimum === void 0 ? 2 : _ref92$scaleMinimum, _ref92$lowerBound = _ref92.lowerBound, lowerBound = _ref92$lowerBound === void 0 ? false : _ref92$lowerBound;
19404
19481
  var content = virtualNode.attr('content') || '';
19405
19482
  if (!content) {
19406
19483
  return true;
@@ -19449,10 +19526,10 @@
19449
19526
  var minOffset = (options === null || options === void 0 ? void 0 : options.minOffset) || 24;
19450
19527
  var closeNeighbors = [];
19451
19528
  var closestOffset = minOffset;
19452
- var _iterator5 = _createForOfIteratorHelper(_findNearbyElms(vNode, minOffset)), _step5;
19529
+ var _iterator6 = _createForOfIteratorHelper(_findNearbyElms(vNode, minOffset)), _step6;
19453
19530
  try {
19454
- for (_iterator5.s(); !(_step5 = _iterator5.n()).done; ) {
19455
- var vNeighbor = _step5.value;
19531
+ for (_iterator6.s(); !(_step6 = _iterator6.n()).done; ) {
19532
+ var vNeighbor = _step6.value;
19456
19533
  if (get_role_type_default(vNeighbor) !== 'widget' || !_isFocusable(vNeighbor)) {
19457
19534
  continue;
19458
19535
  }
@@ -19464,9 +19541,9 @@
19464
19541
  closeNeighbors.push(vNeighbor);
19465
19542
  }
19466
19543
  } catch (err) {
19467
- _iterator5.e(err);
19544
+ _iterator6.e(err);
19468
19545
  } finally {
19469
- _iterator5.f();
19546
+ _iterator6.f();
19470
19547
  }
19471
19548
  if (closeNeighbors.length === 0) {
19472
19549
  this.data({
@@ -19475,8 +19552,8 @@
19475
19552
  });
19476
19553
  return true;
19477
19554
  }
19478
- this.relatedNodes(closeNeighbors.map(function(_ref90) {
19479
- var actualNode = _ref90.actualNode;
19555
+ this.relatedNodes(closeNeighbors.map(function(_ref93) {
19556
+ var actualNode = _ref93.actualNode;
19480
19557
  return actualNode;
19481
19558
  }));
19482
19559
  if (!closeNeighbors.some(_isInTabOrder)) {
@@ -19554,10 +19631,10 @@
19554
19631
  function filterByElmsOverlap(vNode, nearbyElms) {
19555
19632
  var fullyObscuringElms = [];
19556
19633
  var partialObscuringElms = [];
19557
- var _iterator6 = _createForOfIteratorHelper(nearbyElms), _step6;
19634
+ var _iterator7 = _createForOfIteratorHelper(nearbyElms), _step7;
19558
19635
  try {
19559
- for (_iterator6.s(); !(_step6 = _iterator6.n()).done; ) {
19560
- var vNeighbor = _step6.value;
19636
+ for (_iterator7.s(); !(_step7 = _iterator7.n()).done; ) {
19637
+ var vNeighbor = _step7.value;
19561
19638
  if (!isDescendantNotInTabOrder(vNode, vNeighbor) && _hasVisualOverlap(vNode, vNeighbor) && getCssPointerEvents(vNeighbor) !== 'none') {
19562
19639
  if (isEnclosedRect(vNode, vNeighbor)) {
19563
19640
  fullyObscuringElms.push(vNeighbor);
@@ -19567,9 +19644,9 @@
19567
19644
  }
19568
19645
  }
19569
19646
  } catch (err) {
19570
- _iterator6.e(err);
19647
+ _iterator7.e(err);
19571
19648
  } finally {
19572
- _iterator6.f();
19649
+ _iterator7.f();
19573
19650
  }
19574
19651
  return {
19575
19652
  fullyObscuringElms: fullyObscuringElms,
@@ -19581,8 +19658,8 @@
19581
19658
  if (obscuredNodes.length === 0) {
19582
19659
  return null;
19583
19660
  }
19584
- var obscuringRects = obscuredNodes.map(function(_ref91) {
19585
- var rect = _ref91.boundingClientRect;
19661
+ var obscuringRects = obscuredNodes.map(function(_ref94) {
19662
+ var rect = _ref94.boundingClientRect;
19586
19663
  return rect;
19587
19664
  });
19588
19665
  var unobscuredRects = _splitRects(nodeRect, obscuringRects);
@@ -19622,13 +19699,13 @@
19622
19699
  function isDescendantNotInTabOrder(vAncestor, vNode) {
19623
19700
  return vAncestor.actualNode.contains(vNode.actualNode) && !_isInTabOrder(vNode);
19624
19701
  }
19625
- function rectHasMinimumSize(minSize, _ref92) {
19626
- var width = _ref92.width, height = _ref92.height;
19702
+ function rectHasMinimumSize(minSize, _ref95) {
19703
+ var width = _ref95.width, height = _ref95.height;
19627
19704
  return width + roundingMargin2 >= minSize && height + roundingMargin2 >= minSize;
19628
19705
  }
19629
19706
  function mapActualNodes(vNodes) {
19630
- return vNodes.map(function(_ref93) {
19631
- var actualNode = _ref93.actualNode;
19707
+ return vNodes.map(function(_ref96) {
19708
+ var actualNode = _ref96.actualNode;
19632
19709
  return actualNode;
19633
19710
  });
19634
19711
  }
@@ -19654,14 +19731,14 @@
19654
19731
  }
19655
19732
  function getHeadingOrder(results) {
19656
19733
  results = _toConsumableArray(results);
19657
- results.sort(function(_ref94, _ref95) {
19658
- var nodeA = _ref94.node;
19659
- var nodeB = _ref95.node;
19734
+ results.sort(function(_ref97, _ref98) {
19735
+ var nodeA = _ref97.node;
19736
+ var nodeB = _ref98.node;
19660
19737
  return nodeA.ancestry.length - nodeB.ancestry.length;
19661
19738
  });
19662
19739
  var headingOrder = results.reduce(mergeHeadingOrder, []);
19663
- return headingOrder.filter(function(_ref96) {
19664
- var level = _ref96.level;
19740
+ return headingOrder.filter(function(_ref99) {
19741
+ var level = _ref99.level;
19665
19742
  return level !== -1;
19666
19743
  });
19667
19744
  }
@@ -19712,7 +19789,7 @@
19712
19789
  var headingRole = role && role.includes('heading');
19713
19790
  var ariaHeadingLevel = vNode.attr('aria-level');
19714
19791
  var ariaLevel = parseInt(ariaHeadingLevel, 10);
19715
- var _ref97 = vNode.props.nodeName.match(/h(\d)/) || [], _ref98 = _slicedToArray(_ref97, 2), headingLevel = _ref98[1];
19792
+ var _ref100 = vNode.props.nodeName.match(/h(\d)/) || [], _ref101 = _slicedToArray(_ref100, 2), headingLevel = _ref101[1];
19716
19793
  if (!headingRole) {
19717
19794
  return -1;
19718
19795
  }
@@ -19776,8 +19853,8 @@
19776
19853
  if (results.length < 2) {
19777
19854
  return results;
19778
19855
  }
19779
- var incompleteResults = results.filter(function(_ref99) {
19780
- var result = _ref99.result;
19856
+ var incompleteResults = results.filter(function(_ref102) {
19857
+ var result = _ref102.result;
19781
19858
  return result !== void 0;
19782
19859
  });
19783
19860
  var uniqueResults = [];
@@ -19789,12 +19866,12 @@
19789
19866
  if (nameMap[name]) {
19790
19867
  return 'continue';
19791
19868
  }
19792
- var sameNameResults = incompleteResults.filter(function(_ref100, resultNum) {
19793
- var data2 = _ref100.data;
19869
+ var sameNameResults = incompleteResults.filter(function(_ref103, resultNum) {
19870
+ var data2 = _ref103.data;
19794
19871
  return data2.name === name && resultNum !== index;
19795
19872
  });
19796
- var isSameUrl = sameNameResults.every(function(_ref101) {
19797
- var data2 = _ref101.data;
19873
+ var isSameUrl = sameNameResults.every(function(_ref104) {
19874
+ var data2 = _ref104.data;
19798
19875
  return isIdenticalObject(data2.urlProps, urlProps);
19799
19876
  });
19800
19877
  if (sameNameResults.length && !isSameUrl) {
@@ -20213,7 +20290,7 @@
20213
20290
  var separatorRegex = /[;,\s]/;
20214
20291
  var validRedirectNumRegex = /^[0-9.]+$/;
20215
20292
  function metaRefreshEvaluate(node, options, virtualNode) {
20216
- var _ref102 = options || {}, minDelay = _ref102.minDelay, maxDelay = _ref102.maxDelay;
20293
+ var _ref105 = options || {}, minDelay = _ref105.minDelay, maxDelay = _ref105.maxDelay;
20217
20294
  var content = (virtualNode.attr('content') || '').trim();
20218
20295
  var _content$split = content.split(separatorRegex), _content$split2 = _slicedToArray(_content$split, 1), redirectStr = _content$split2[0];
20219
20296
  if (!redirectStr.match(validRedirectNumRegex)) {
@@ -20253,16 +20330,16 @@
20253
20330
  var outerText = elm.textContent.trim();
20254
20331
  var innerText = outerText;
20255
20332
  while (innerText === outerText && nextNode !== void 0) {
20256
- var _i25 = -1;
20333
+ var _i26 = -1;
20257
20334
  elm = nextNode;
20258
20335
  if (elm.children.length === 0) {
20259
20336
  return elm;
20260
20337
  }
20261
20338
  do {
20262
- _i25++;
20263
- innerText = elm.children[_i25].textContent.trim();
20264
- } while (innerText === '' && _i25 + 1 < elm.children.length);
20265
- nextNode = elm.children[_i25];
20339
+ _i26++;
20340
+ innerText = elm.children[_i26].textContent.trim();
20341
+ } while (innerText === '' && _i26 + 1 < elm.children.length);
20342
+ nextNode = elm.children[_i26];
20266
20343
  }
20267
20344
  return elm;
20268
20345
  }
@@ -20325,19 +20402,19 @@
20325
20402
  return;
20326
20403
  }
20327
20404
  var frameAncestry = r.node.ancestry.slice(0, -1);
20328
- var _iterator7 = _createForOfIteratorHelper(iframeResults), _step7;
20405
+ var _iterator8 = _createForOfIteratorHelper(iframeResults), _step8;
20329
20406
  try {
20330
- for (_iterator7.s(); !(_step7 = _iterator7.n()).done; ) {
20331
- var iframeResult = _step7.value;
20407
+ for (_iterator8.s(); !(_step8 = _iterator8.n()).done; ) {
20408
+ var iframeResult = _step8.value;
20332
20409
  if (match_ancestry_default(frameAncestry, iframeResult.node.ancestry)) {
20333
20410
  r.result = iframeResult.result;
20334
20411
  break;
20335
20412
  }
20336
20413
  }
20337
20414
  } catch (err) {
20338
- _iterator7.e(err);
20415
+ _iterator8.e(err);
20339
20416
  } finally {
20340
- _iterator7.f();
20417
+ _iterator8.f();
20341
20418
  }
20342
20419
  });
20343
20420
  iframeResults.forEach(function(r) {
@@ -20385,8 +20462,8 @@
20385
20462
  } else if (node !== document.body && has_content_default(node, true)) {
20386
20463
  return [ virtualNode ];
20387
20464
  } else {
20388
- return virtualNode.children.filter(function(_ref103) {
20389
- var actualNode = _ref103.actualNode;
20465
+ return virtualNode.children.filter(function(_ref106) {
20466
+ var actualNode = _ref106.actualNode;
20390
20467
  return actualNode.nodeType === 1;
20391
20468
  }).map(function(vNode) {
20392
20469
  return findRegionlessElms(vNode, options);
@@ -20539,8 +20616,8 @@
20539
20616
  }
20540
20617
  return false;
20541
20618
  }
20542
- function getNumberValue(domNode, _ref104) {
20543
- var cssProperty = _ref104.cssProperty, absoluteValues = _ref104.absoluteValues, normalValue = _ref104.normalValue;
20619
+ function getNumberValue(domNode, _ref107) {
20620
+ var cssProperty = _ref107.cssProperty, absoluteValues = _ref107.absoluteValues, normalValue = _ref107.normalValue;
20544
20621
  var computedStyle = window.getComputedStyle(domNode);
20545
20622
  var cssPropValue = computedStyle.getPropertyValue(cssProperty);
20546
20623
  if (cssPropValue === 'normal') {
@@ -20617,8 +20694,8 @@
20617
20694
  if (!virtualNode.children) {
20618
20695
  return void 0;
20619
20696
  }
20620
- var titleNode = virtualNode.children.find(function(_ref105) {
20621
- var props = _ref105.props;
20697
+ var titleNode = virtualNode.children.find(function(_ref108) {
20698
+ var props = _ref108.props;
20622
20699
  return props.nodeName === 'title';
20623
20700
  });
20624
20701
  if (!titleNode) {
@@ -20820,8 +20897,8 @@
20820
20897
  var aria = /^aria-/;
20821
20898
  var attrs = virtualNode.attrNames;
20822
20899
  if (attrs.length) {
20823
- for (var _i26 = 0, l = attrs.length; _i26 < l; _i26++) {
20824
- if (aria.test(attrs[_i26])) {
20900
+ for (var _i27 = 0, l = attrs.length; _i27 < l; _i27++) {
20901
+ if (aria.test(attrs[_i27])) {
20825
20902
  return true;
20826
20903
  }
20827
20904
  }
@@ -21205,7 +21282,7 @@
21205
21282
  if (!role || [ 'none', 'presentation' ].includes(role)) {
21206
21283
  return true;
21207
21284
  }
21208
- var _ref106 = aria_roles_default[role] || {}, accessibleNameRequired = _ref106.accessibleNameRequired;
21285
+ var _ref109 = aria_roles_default[role] || {}, accessibleNameRequired = _ref109.accessibleNameRequired;
21209
21286
  if (accessibleNameRequired || _isFocusable(virtualNode)) {
21210
21287
  return true;
21211
21288
  }
@@ -21373,7 +21450,7 @@
21373
21450
  'aria-labelledby-evaluate': aria_labelledby_evaluate_default,
21374
21451
  'aria-level-evaluate': aria_level_evaluate_default,
21375
21452
  'aria-prohibited-attr-evaluate': ariaProhibitedAttrEvaluate,
21376
- 'aria-required-attr-evaluate': aria_required_attr_evaluate_default,
21453
+ 'aria-required-attr-evaluate': ariaRequiredAttrEvaluate,
21377
21454
  'aria-required-children-evaluate': aria_required_children_evaluate_default,
21378
21455
  'aria-required-children-matches': aria_required_children_matches_default,
21379
21456
  'aria-required-parent-evaluate': aria_required_parent_evaluate_default,
@@ -22113,8 +22190,8 @@
22113
22190
  lang: this.lang
22114
22191
  };
22115
22192
  var checkIDs = Object.keys(this.data.checks);
22116
- for (var _i27 = 0; _i27 < checkIDs.length; _i27++) {
22117
- var id = checkIDs[_i27];
22193
+ for (var _i28 = 0; _i28 < checkIDs.length; _i28++) {
22194
+ var id = checkIDs[_i28];
22118
22195
  var check = this.data.checks[id];
22119
22196
  var _check$messages = check.messages, pass = _check$messages.pass, fail = _check$messages.fail, incomplete = _check$messages.incomplete;
22120
22197
  locale.checks[id] = {
@@ -22124,8 +22201,8 @@
22124
22201
  };
22125
22202
  }
22126
22203
  var ruleIDs = Object.keys(this.data.rules);
22127
- for (var _i28 = 0; _i28 < ruleIDs.length; _i28++) {
22128
- var _id = ruleIDs[_i28];
22204
+ for (var _i29 = 0; _i29 < ruleIDs.length; _i29++) {
22205
+ var _id = ruleIDs[_i29];
22129
22206
  var rule = this.data.rules[_id];
22130
22207
  var description = rule.description, help = rule.help;
22131
22208
  locale.rules[_id] = {
@@ -22134,8 +22211,8 @@
22134
22211
  };
22135
22212
  }
22136
22213
  var failureSummaries = Object.keys(this.data.failureSummaries);
22137
- for (var _i29 = 0; _i29 < failureSummaries.length; _i29++) {
22138
- var type = failureSummaries[_i29];
22214
+ for (var _i30 = 0; _i30 < failureSummaries.length; _i30++) {
22215
+ var type = failureSummaries[_i30];
22139
22216
  var failureSummary2 = this.data.failureSummaries[type];
22140
22217
  var failureMessage = failureSummary2.failureMessage;
22141
22218
  locale.failureSummaries[type] = {
@@ -22158,8 +22235,8 @@
22158
22235
  key: '_applyCheckLocale',
22159
22236
  value: function _applyCheckLocale(checks) {
22160
22237
  var keys = Object.keys(checks);
22161
- for (var _i30 = 0; _i30 < keys.length; _i30++) {
22162
- var id = keys[_i30];
22238
+ for (var _i31 = 0; _i31 < keys.length; _i31++) {
22239
+ var id = keys[_i31];
22163
22240
  if (!this.data.checks[id]) {
22164
22241
  throw new Error('Locale provided for unknown check: "'.concat(id, '"'));
22165
22242
  }
@@ -22170,8 +22247,8 @@
22170
22247
  key: '_applyRuleLocale',
22171
22248
  value: function _applyRuleLocale(rules) {
22172
22249
  var keys = Object.keys(rules);
22173
- for (var _i31 = 0; _i31 < keys.length; _i31++) {
22174
- var id = keys[_i31];
22250
+ for (var _i32 = 0; _i32 < keys.length; _i32++) {
22251
+ var id = keys[_i32];
22175
22252
  if (!this.data.rules[id]) {
22176
22253
  throw new Error('Locale provided for unknown rule: "'.concat(id, '"'));
22177
22254
  }
@@ -22182,8 +22259,8 @@
22182
22259
  key: '_applyFailureSummaries',
22183
22260
  value: function _applyFailureSummaries(messages) {
22184
22261
  var keys = Object.keys(messages);
22185
- for (var _i32 = 0; _i32 < keys.length; _i32++) {
22186
- var key = keys[_i32];
22262
+ for (var _i33 = 0; _i33 < keys.length; _i33++) {
22263
+ var key = keys[_i33];
22187
22264
  if (!this.data.failureSummaries[key]) {
22188
22265
  throw new Error('Locale provided for unknown failureMessage: "'.concat(key, '"'));
22189
22266
  }
@@ -22215,10 +22292,10 @@
22215
22292
  value: function setAllowedOrigins(allowedOrigins) {
22216
22293
  var defaultOrigin = getDefaultOrigin();
22217
22294
  this.allowedOrigins = [];
22218
- var _iterator8 = _createForOfIteratorHelper(allowedOrigins), _step8;
22295
+ var _iterator9 = _createForOfIteratorHelper(allowedOrigins), _step9;
22219
22296
  try {
22220
- for (_iterator8.s(); !(_step8 = _iterator8.n()).done; ) {
22221
- var origin = _step8.value;
22297
+ for (_iterator9.s(); !(_step9 = _iterator9.n()).done; ) {
22298
+ var origin = _step9.value;
22222
22299
  if (origin === constants_default.allOrigins) {
22223
22300
  this.allowedOrigins = [ '*' ];
22224
22301
  return;
@@ -22229,9 +22306,9 @@
22229
22306
  }
22230
22307
  }
22231
22308
  } catch (err) {
22232
- _iterator8.e(err);
22309
+ _iterator9.e(err);
22233
22310
  } finally {
22234
- _iterator8.f();
22311
+ _iterator9.f();
22235
22312
  }
22236
22313
  }
22237
22314
  }, {
@@ -22532,8 +22609,8 @@
22532
22609
  });
22533
22610
  };
22534
22611
  }
22535
- function getHelpUrl(_ref107, ruleId, version) {
22536
- var brand = _ref107.brand, application = _ref107.application, lang = _ref107.lang;
22612
+ function getHelpUrl(_ref110, ruleId, version) {
22613
+ var brand = _ref110.brand, application = _ref110.application, lang = _ref110.lang;
22537
22614
  return constants_default.helpUrlBase + brand + '/' + (version || axe.version.substring(0, axe.version.lastIndexOf('.'))) + '/' + ruleId + '?application=' + encodeURIComponent(application) + (lang && lang !== 'en' ? '&lang=' + encodeURIComponent(lang) : '');
22538
22615
  }
22539
22616
  var audit_default = Audit;
@@ -22744,9 +22821,9 @@
22744
22821
  });
22745
22822
  }
22746
22823
  var run_virtual_rule_default = runVirtualRule;
22747
- function normalizeRunParams(_ref108) {
22748
- var _ref110, _options$reporter, _axe$_audit;
22749
- var _ref109 = _slicedToArray(_ref108, 3), context = _ref109[0], options = _ref109[1], callback = _ref109[2];
22824
+ function normalizeRunParams(_ref111) {
22825
+ var _ref113, _options$reporter, _axe$_audit;
22826
+ var _ref112 = _slicedToArray(_ref111, 3), context = _ref112[0], options = _ref112[1], callback = _ref112[2];
22750
22827
  var typeErr = new TypeError('axe.run arguments are invalid');
22751
22828
  if (!isContext(context)) {
22752
22829
  if (callback !== void 0) {
@@ -22767,7 +22844,7 @@
22767
22844
  throw typeErr;
22768
22845
  }
22769
22846
  options = clone_default(options);
22770
- options.reporter = (_ref110 = (_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 && _ref110 !== void 0 ? _ref110 : 'v1';
22847
+ options.reporter = (_ref113 = (_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 && _ref113 !== void 0 ? _ref113 : 'v1';
22771
22848
  return {
22772
22849
  context: context,
22773
22850
  options: options,
@@ -22892,14 +22969,14 @@
22892
22969
  return new Promise(function(res, rej) {
22893
22970
  axe._audit.run(contextObj, options, res, rej);
22894
22971
  }).then(function(results) {
22895
- results = results.map(function(_ref111) {
22896
- var nodes = _ref111.nodes, result = _objectWithoutProperties(_ref111, _excluded8);
22972
+ results = results.map(function(_ref114) {
22973
+ var nodes = _ref114.nodes, result = _objectWithoutProperties(_ref114, _excluded8);
22897
22974
  return _extends({
22898
22975
  nodes: nodes.map(serializeNode)
22899
22976
  }, result);
22900
22977
  });
22901
- var frames = contextObj.frames.map(function(_ref112) {
22902
- var node = _ref112.node;
22978
+ var frames = contextObj.frames.map(function(_ref115) {
22979
+ var node = _ref115.node;
22903
22980
  return new dq_element_default(node, options).toJSON();
22904
22981
  });
22905
22982
  var environmentData;
@@ -22919,13 +22996,13 @@
22919
22996
  return Promise.reject(err2);
22920
22997
  });
22921
22998
  }
22922
- function serializeNode(_ref113) {
22923
- var node = _ref113.node, nodeResult = _objectWithoutProperties(_ref113, _excluded9);
22999
+ function serializeNode(_ref116) {
23000
+ var node = _ref116.node, nodeResult = _objectWithoutProperties(_ref116, _excluded9);
22924
23001
  nodeResult.node = node.toJSON();
22925
- for (var _i33 = 0, _arr2 = [ 'any', 'all', 'none' ]; _i33 < _arr2.length; _i33++) {
22926
- var type = _arr2[_i33];
22927
- nodeResult[type] = nodeResult[type].map(function(_ref114) {
22928
- var relatedNodes = _ref114.relatedNodes, checkResult = _objectWithoutProperties(_ref114, _excluded10);
23002
+ for (var _i34 = 0, _arr2 = [ 'any', 'all', 'none' ]; _i34 < _arr2.length; _i34++) {
23003
+ var type = _arr2[_i34];
23004
+ nodeResult[type] = nodeResult[type].map(function(_ref117) {
23005
+ var relatedNodes = _ref117.relatedNodes, checkResult = _objectWithoutProperties(_ref117, _excluded10);
22929
23006
  return _extends({}, checkResult, {
22930
23007
  relatedNodes: relatedNodes.map(function(node2) {
22931
23008
  return node2.toJSON();
@@ -22936,14 +23013,14 @@
22936
23013
  return nodeResult;
22937
23014
  }
22938
23015
  function finishRun(partialResults) {
22939
- var _ref116, _options$reporter2, _axe$_audit2;
23016
+ var _ref119, _options$reporter2, _axe$_audit2;
22940
23017
  var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
22941
23018
  options = clone_default(options);
22942
- var _ref115 = partialResults.find(function(r) {
23019
+ var _ref118 = partialResults.find(function(r) {
22943
23020
  return r.environmentData;
22944
- }) || {}, environmentData = _ref115.environmentData;
23021
+ }) || {}, environmentData = _ref118.environmentData;
22945
23022
  axe._audit.normalizeOptions(options);
22946
- options.reporter = (_ref116 = (_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 && _ref116 !== void 0 ? _ref116 : 'v1';
23023
+ options.reporter = (_ref119 = (_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 && _ref119 !== void 0 ? _ref119 : 'v1';
22947
23024
  setFrameSpec(partialResults);
22948
23025
  var results = merge_results_default(partialResults);
22949
23026
  results = axe._audit.after(results, options);
@@ -22955,10 +23032,10 @@
22955
23032
  }
22956
23033
  function setFrameSpec(partialResults) {
22957
23034
  var frameStack = [];
22958
- var _iterator9 = _createForOfIteratorHelper(partialResults), _step9;
23035
+ var _iterator10 = _createForOfIteratorHelper(partialResults), _step10;
22959
23036
  try {
22960
- for (_iterator9.s(); !(_step9 = _iterator9.n()).done; ) {
22961
- var partialResult = _step9.value;
23037
+ for (_iterator10.s(); !(_step10 = _iterator10.n()).done; ) {
23038
+ var partialResult = _step10.value;
22962
23039
  var frameSpec = frameStack.shift();
22963
23040
  if (!partialResult) {
22964
23041
  continue;
@@ -22968,13 +23045,13 @@
22968
23045
  frameStack.unshift.apply(frameStack, _toConsumableArray(frameSpecs));
22969
23046
  }
22970
23047
  } catch (err) {
22971
- _iterator9.e(err);
23048
+ _iterator10.e(err);
22972
23049
  } finally {
22973
- _iterator9.f();
23050
+ _iterator10.f();
22974
23051
  }
22975
23052
  }
22976
- function getMergedFrameSpecs(_ref117) {
22977
- var childFrameSpecs = _ref117.frames, parentFrameSpec = _ref117.frameSpec;
23053
+ function getMergedFrameSpecs(_ref120) {
23054
+ var childFrameSpecs = _ref120.frames, parentFrameSpec = _ref120.frameSpec;
22978
23055
  if (!parentFrameSpec) {
22979
23056
  return childFrameSpecs;
22980
23057
  }
@@ -23034,12 +23111,12 @@
23034
23111
  var transformedResults = results.map(function(result) {
23035
23112
  var transformedResult = _extends({}, result);
23036
23113
  var types = [ 'passes', 'violations', 'incomplete', 'inapplicable' ];
23037
- for (var _i34 = 0, _types = types; _i34 < _types.length; _i34++) {
23038
- var type = _types[_i34];
23114
+ for (var _i35 = 0, _types = types; _i35 < _types.length; _i35++) {
23115
+ var type = _types[_i35];
23039
23116
  if (transformedResult[type] && Array.isArray(transformedResult[type])) {
23040
- transformedResult[type] = transformedResult[type].map(function(_ref118) {
23117
+ transformedResult[type] = transformedResult[type].map(function(_ref121) {
23041
23118
  var _node;
23042
- var node = _ref118.node, typeResult = _objectWithoutProperties(_ref118, _excluded13);
23119
+ var node = _ref121.node, typeResult = _objectWithoutProperties(_ref121, _excluded13);
23043
23120
  node = typeof ((_node = node) === null || _node === void 0 ? void 0 : _node.toJSON) === 'function' ? node.toJSON() : node;
23044
23121
  return _extends({
23045
23122
  node: node
@@ -24769,7 +24846,7 @@
24769
24846
  selector: '[role]',
24770
24847
  matches: 'aria-required-children-matches',
24771
24848
  tags: [ 'cat.aria', 'wcag2a', 'wcag131' ],
24772
- actIds: [ 'bc4a75' ],
24849
+ actIds: [ 'bc4a75', 'ff89c9' ],
24773
24850
  all: [],
24774
24851
  any: [ {
24775
24852
  options: {
@@ -25004,7 +25081,8 @@
25004
25081
  }
25005
25082
  },
25006
25083
  pseudoSizeThreshold: .25,
25007
- shadowOutlineEmMax: .1
25084
+ shadowOutlineEmMax: .1,
25085
+ textStrokeEmMin: .03
25008
25086
  },
25009
25087
  id: 'color-contrast-enhanced'
25010
25088
  } ],
@@ -25033,7 +25111,8 @@
25033
25111
  }
25034
25112
  },
25035
25113
  pseudoSizeThreshold: .25,
25036
- shadowOutlineEmMax: .2
25114
+ shadowOutlineEmMax: .2,
25115
+ textStrokeEmMin: .03
25037
25116
  },
25038
25117
  id: 'color-contrast'
25039
25118
  } ],
@@ -25237,7 +25316,7 @@
25237
25316
  none: []
25238
25317
  }, {
25239
25318
  id: 'html-lang-valid',
25240
- selector: 'html[lang], html[xml\\:lang]',
25319
+ selector: 'html[lang]:not([lang=""]), html[xml\\:lang]:not([xml\\:lang=""])',
25241
25320
  tags: [ 'cat.language', 'wcag2a', 'wcag311', 'ACT' ],
25242
25321
  actIds: [ 'bf051a' ],
25243
25322
  all: [],
@@ -25962,7 +26041,8 @@
25962
26041
  }
25963
26042
  },
25964
26043
  pseudoSizeThreshold: .25,
25965
- shadowOutlineEmMax: .1
26044
+ shadowOutlineEmMax: .1,
26045
+ textStrokeEmMin: .03
25966
26046
  }
25967
26047
  }, {
25968
26048
  id: 'color-contrast',
@@ -25983,7 +26063,8 @@
25983
26063
  }
25984
26064
  },
25985
26065
  pseudoSizeThreshold: .25,
25986
- shadowOutlineEmMax: .2
26066
+ shadowOutlineEmMax: .2,
26067
+ textStrokeEmMin: .03
25987
26068
  }
25988
26069
  }, {
25989
26070
  id: 'link-in-text-block-style',