axe-core 4.7.2-canary.4deb0a0 → 4.7.2-canary.53c7ee4

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.7.2-canary.4deb0a0
1
+ /*! axe v4.7.2-canary.53c7ee4
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
@@ -22,7 +22,7 @@
22
22
  }, _typeof(obj);
23
23
  }
24
24
  var axe = axe || {};
25
- axe.version = '4.7.2-canary.4deb0a0';
25
+ axe.version = '4.7.2-canary.53c7ee4';
26
26
  if (typeof define === 'function' && define.amd) {
27
27
  define('axe-core', [], function() {
28
28
  return axe;
@@ -7184,6 +7184,9 @@
7184
7184
  getTabbableElements: function getTabbableElements() {
7185
7185
  return get_tabbable_elements_default;
7186
7186
  },
7187
+ getTargetSize: function getTargetSize() {
7188
+ return get_target_size_default;
7189
+ },
7187
7190
  getTextElementStack: function getTextElementStack() {
7188
7191
  return get_text_element_stack_default;
7189
7192
  },
@@ -7683,132 +7686,50 @@
7683
7686
  return new window.DOMRect(leftX, topY, rightX - leftX, bottomY - topY);
7684
7687
  }
7685
7688
  function _getOffset(vNodeA, vNodeB) {
7686
- var rectA = vNodeA.boundingClientRect;
7687
- var rectB = vNodeB.boundingClientRect;
7688
- var pointA = getFarthestPoint(rectA, rectB);
7689
- var pointB = getClosestPoint(pointA, rectA, rectB);
7690
- return pointDistance(pointA, pointB);
7691
- }
7692
- function getFarthestPoint(rectA, rectB) {
7693
- var dimensionProps = [ [ 'x', 'left', 'right', 'width' ], [ 'y', 'top', 'bottom', 'height' ] ];
7694
- var farthestPoint = {};
7695
- dimensionProps.forEach(function(_ref15) {
7696
- var _ref16 = _slicedToArray(_ref15, 4), axis = _ref16[0], start = _ref16[1], end = _ref16[2], diameter = _ref16[3];
7697
- if (rectB[start] < rectA[start] && rectB[end] > rectA[end]) {
7698
- farthestPoint[axis] = rectA[start] + rectA[diameter] / 2;
7699
- return;
7700
- }
7701
- var centerB = rectB[start] + rectB[diameter] / 2;
7702
- var startDistance = Math.abs(centerB - rectA[start]);
7703
- var endDistance = Math.abs(centerB - rectA[end]);
7704
- if (startDistance >= endDistance) {
7705
- farthestPoint[axis] = rectA[start];
7706
- } else {
7707
- farthestPoint[axis] = rectA[end];
7708
- }
7709
- });
7710
- return farthestPoint;
7711
- }
7712
- function getClosestPoint(_ref17, ownRect, adjacentRect) {
7713
- var x = _ref17.x, y = _ref17.y;
7714
- if (pointInRect({
7715
- x: x,
7716
- y: y
7717
- }, adjacentRect)) {
7718
- var closestPoint = getCornerInAdjacentRect({
7719
- x: x,
7720
- y: y
7721
- }, ownRect, adjacentRect);
7722
- if (closestPoint !== null) {
7723
- return closestPoint;
7724
- }
7725
- adjacentRect = ownRect;
7726
- }
7727
- var _adjacentRect = adjacentRect, top = _adjacentRect.top, right = _adjacentRect.right, bottom = _adjacentRect.bottom, left = _adjacentRect.left;
7728
- var xAligned = x >= left && x <= right;
7729
- var yAligned = y >= top && y <= bottom;
7730
- var closestX = Math.abs(left - x) < Math.abs(right - x) ? left : right;
7731
- var closestY = Math.abs(top - y) < Math.abs(bottom - y) ? top : bottom;
7732
- if (!xAligned && yAligned) {
7733
- return {
7734
- x: closestX,
7735
- y: y
7736
- };
7737
- } else if (xAligned && !yAligned) {
7738
- return {
7739
- x: x,
7740
- y: closestY
7741
- };
7742
- } else if (!xAligned && !yAligned) {
7743
- return {
7744
- x: closestX,
7745
- y: closestY
7746
- };
7689
+ var minRadiusNeighbour = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 12;
7690
+ var rectA = get_target_size_default(vNodeA);
7691
+ var rectB = get_target_size_default(vNodeB);
7692
+ if (rectA === null || rectB === null) {
7693
+ return 0;
7747
7694
  }
7748
- if (Math.abs(x - closestX) < Math.abs(y - closestY)) {
7749
- return {
7750
- x: closestX,
7751
- y: y
7752
- };
7695
+ var centerA = {
7696
+ x: rectA.x + rectA.width / 2,
7697
+ y: rectA.y + rectA.height / 2
7698
+ };
7699
+ var centerB = {
7700
+ x: rectB.x + rectB.width / 2,
7701
+ y: rectB.y + rectB.height / 2
7702
+ };
7703
+ var sideB = getClosestPoint(centerA, rectB);
7704
+ return Math.min(pointDistance(centerA, centerB) - minRadiusNeighbour, pointDistance(centerA, sideB));
7705
+ }
7706
+ function getClosestPoint(point, rect) {
7707
+ var x;
7708
+ var y;
7709
+ if (point.x < rect.left) {
7710
+ x = rect.left;
7711
+ } else if (point.x > rect.right) {
7712
+ x = rect.right;
7753
7713
  } else {
7754
- return {
7755
- x: x,
7756
- y: closestY
7757
- };
7714
+ x = point.x;
7758
7715
  }
7759
- }
7760
- function pointDistance(pointA, pointB) {
7761
- var xDistance = Math.abs(pointA.x - pointB.x);
7762
- var yDistance = Math.abs(pointA.y - pointB.y);
7763
- if (!xDistance || !yDistance) {
7764
- return xDistance || yDistance;
7765
- }
7766
- return Math.sqrt(Math.pow(xDistance, 2) + Math.pow(yDistance, 2));
7767
- }
7768
- function pointInRect(_ref18, rect) {
7769
- var x = _ref18.x, y = _ref18.y;
7770
- return y >= rect.top && x <= rect.right && y <= rect.bottom && x >= rect.left;
7771
- }
7772
- function getCornerInAdjacentRect(_ref19, ownRect, adjacentRect) {
7773
- var x = _ref19.x, y = _ref19.y;
7774
- var closestX, closestY;
7775
- if (x === ownRect.left && ownRect.right < adjacentRect.right) {
7776
- closestX = ownRect.right;
7777
- } else if (x === ownRect.right && ownRect.left > adjacentRect.left) {
7778
- closestX = ownRect.left;
7779
- }
7780
- if (y === ownRect.top && ownRect.bottom < adjacentRect.bottom) {
7781
- closestY = ownRect.bottom;
7782
- } else if (y === ownRect.bottom && ownRect.top > adjacentRect.top) {
7783
- closestY = ownRect.top;
7784
- }
7785
- if (!closestX && !closestY) {
7786
- return null;
7787
- } else if (!closestY) {
7788
- return {
7789
- x: closestX,
7790
- y: y
7791
- };
7792
- } else if (!closestX) {
7793
- return {
7794
- x: x,
7795
- y: closestY
7796
- };
7797
- }
7798
- if (Math.abs(x - closestX) < Math.abs(y - closestY)) {
7799
- return {
7800
- x: closestX,
7801
- y: y
7802
- };
7716
+ if (point.y < rect.top) {
7717
+ y = rect.top;
7718
+ } else if (point.y > rect.bottom) {
7719
+ y = rect.bottom;
7803
7720
  } else {
7804
- return {
7805
- x: x,
7806
- y: closestY
7807
- };
7721
+ y = point.y;
7808
7722
  }
7723
+ return {
7724
+ x: x,
7725
+ y: y
7726
+ };
7809
7727
  }
7810
- function _getRectCenter(_ref20) {
7811
- var left = _ref20.left, top = _ref20.top, width = _ref20.width, height = _ref20.height;
7728
+ function pointDistance(pointA, pointB) {
7729
+ return Math.hypot(pointA.x - pointB.x, pointA.y - pointB.y);
7730
+ }
7731
+ function _getRectCenter(_ref15) {
7732
+ var left = _ref15.left, top = _ref15.top, width = _ref15.width, height = _ref15.height;
7812
7733
  return new window.DOMPoint(left + width / 2, top + height / 2);
7813
7734
  }
7814
7735
  function _hasVisualOverlap(vNodeA, vNodeB) {
@@ -7877,6 +7798,9 @@
7877
7798
  });
7878
7799
  }
7879
7800
  if (rects.length === 0) {
7801
+ if (isEnclosedRect(inputRect, clipRect)) {
7802
+ return [];
7803
+ }
7880
7804
  rects.push(inputRect);
7881
7805
  }
7882
7806
  return rects.map(computeRect);
@@ -7885,12 +7809,10 @@
7885
7809
  return num > min && num < max2;
7886
7810
  };
7887
7811
  function computeRect(baseRect) {
7888
- return _extends({}, baseRect, {
7889
- x: baseRect.left,
7890
- y: baseRect.top,
7891
- height: baseRect.bottom - baseRect.top,
7892
- width: baseRect.right - baseRect.left
7893
- });
7812
+ return new window.DOMRect(baseRect.left, baseRect.top, baseRect.right - baseRect.left, baseRect.bottom - baseRect.top);
7813
+ }
7814
+ function isEnclosedRect(rectA, rectB) {
7815
+ return rectA.top >= rectB.top && rectA.left >= rectB.left && rectA.bottom <= rectB.bottom && rectA.right <= rectB.right;
7894
7816
  }
7895
7817
  var ROOT_LEVEL = 0;
7896
7818
  var DEFAULT_LEVEL = .1;
@@ -8027,8 +7949,8 @@
8027
7949
  function createStackingOrder(vNode, parentVNode, treeOrder) {
8028
7950
  var stackingOrder = parentVNode._stackingOrder.slice();
8029
7951
  if (isStackingContext(vNode, parentVNode)) {
8030
- var index = stackingOrder.findIndex(function(_ref21) {
8031
- var stackLevel2 = _ref21.stackLevel;
7952
+ var index = stackingOrder.findIndex(function(_ref16) {
7953
+ var stackLevel2 = _ref16.stackLevel;
8032
7954
  return [ ROOT_LEVEL, FLOAT_LEVEL, POSITION_LEVEL ].includes(stackLevel2);
8033
7955
  });
8034
7956
  if (index !== -1) {
@@ -8124,9 +8046,9 @@
8124
8046
  }
8125
8047
  }, {
8126
8048
  key: 'getCellFromPoint',
8127
- value: function getCellFromPoint(_ref22) {
8049
+ value: function getCellFromPoint(_ref17) {
8128
8050
  var _this$cells, _row;
8129
- var x = _ref22.x, y = _ref22.y;
8051
+ var x = _ref17.x, y = _ref17.y;
8130
8052
  assert_default(this.boundaries, 'Grid does not have cells added');
8131
8053
  var rowIndex = this.toGridIndex(y);
8132
8054
  var colIndex = this.toGridIndex(x);
@@ -8156,8 +8078,8 @@
8156
8078
  }
8157
8079
  }, {
8158
8080
  key: 'getGridPositionOfRect',
8159
- value: function getGridPositionOfRect(_ref23) {
8160
- var top = _ref23.top, right = _ref23.right, bottom = _ref23.bottom, left = _ref23.left;
8081
+ value: function getGridPositionOfRect(_ref18) {
8082
+ var top = _ref18.top, right = _ref18.right, bottom = _ref18.bottom, left = _ref18.left;
8161
8083
  var margin = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
8162
8084
  top = this.toGridIndex(top - margin);
8163
8085
  right = this.toGridIndex(right + margin - 1);
@@ -8246,7 +8168,7 @@
8246
8168
  }
8247
8169
  return (_dialogs$find = dialogs.find(function(dialog) {
8248
8170
  var _getNodeFromGrid;
8249
- var _ref24 = (_getNodeFromGrid = getNodeFromGrid(dialog)) !== null && _getNodeFromGrid !== void 0 ? _getNodeFromGrid : {}, vNode = _ref24.vNode, rect = _ref24.rect;
8171
+ var _ref19 = (_getNodeFromGrid = getNodeFromGrid(dialog)) !== null && _getNodeFromGrid !== void 0 ? _getNodeFromGrid : {}, vNode = _ref19.vNode, rect = _ref19.rect;
8250
8172
  if (!vNode) {
8251
8173
  return false;
8252
8174
  }
@@ -8287,7 +8209,7 @@
8287
8209
  }
8288
8210
  }
8289
8211
  function _isInert(vNode) {
8290
- var _ref25 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, skipAncestors = _ref25.skipAncestors, isAncestor = _ref25.isAncestor;
8212
+ var _ref20 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, skipAncestors = _ref20.skipAncestors, isAncestor = _ref20.isAncestor;
8291
8213
  if (skipAncestors) {
8292
8214
  return isInertSelf(vNode, isAncestor);
8293
8215
  }
@@ -8537,6 +8459,49 @@
8537
8459
  return tabbableElements;
8538
8460
  }
8539
8461
  var get_tabbable_elements_default = getTabbableElements;
8462
+ var roundingMargin = .05;
8463
+ var get_target_size_default = memoize_default(getTargetSize);
8464
+ function getTargetSize(vNode, minSize) {
8465
+ var nodeRect = vNode.boundingClientRect;
8466
+ var overlappingVNodes = _findNearbyElms(vNode).filter(function(vNeighbor) {
8467
+ return vNeighbor.getComputedStylePropertyValue('pointer-events') !== 'none' && _hasVisualOverlap(vNode, vNeighbor);
8468
+ });
8469
+ if (!overlappingVNodes.length) {
8470
+ return nodeRect;
8471
+ }
8472
+ return getLargestUnobscuredArea(vNode, overlappingVNodes, minSize);
8473
+ }
8474
+ function getLargestUnobscuredArea(vNode, obscuredNodes, minSize) {
8475
+ var nodeRect = vNode.boundingClientRect;
8476
+ if (obscuredNodes.length === 0) {
8477
+ return null;
8478
+ }
8479
+ var obscuringRects = obscuredNodes.map(function(_ref21) {
8480
+ var rect = _ref21.boundingClientRect;
8481
+ return rect;
8482
+ });
8483
+ var unobscuredRects = _splitRects(nodeRect, obscuringRects);
8484
+ if (!unobscuredRects.length) {
8485
+ return null;
8486
+ }
8487
+ return getLargestRect(unobscuredRects, minSize);
8488
+ }
8489
+ function getLargestRect(rects, minSize) {
8490
+ return rects.reduce(function(rectA, rectB) {
8491
+ var rectAisMinimum = rectHasMinimumSize(minSize, rectA);
8492
+ var rectBisMinimum = rectHasMinimumSize(minSize, rectB);
8493
+ if (rectAisMinimum !== rectBisMinimum) {
8494
+ return rectAisMinimum ? rectA : rectB;
8495
+ }
8496
+ var areaA = rectA.width * rectA.height;
8497
+ var areaB = rectB.width * rectB.height;
8498
+ return areaA > areaB ? rectA : rectB;
8499
+ });
8500
+ }
8501
+ function rectHasMinimumSize(minSize, _ref22) {
8502
+ var width = _ref22.width, height = _ref22.height;
8503
+ return width + roundingMargin >= minSize && height + roundingMargin >= minSize;
8504
+ }
8540
8505
  var text_exports = {};
8541
8506
  __export(text_exports, {
8542
8507
  accessibleText: function accessibleText() {
@@ -8942,7 +8907,7 @@
8942
8907
  checkbox: {
8943
8908
  type: 'widget',
8944
8909
  requiredAttrs: [ 'aria-checked' ],
8945
- allowedAttrs: [ 'aria-readonly', 'aria-required' ],
8910
+ allowedAttrs: [ 'aria-readonly', 'aria-expanded', 'aria-required' ],
8946
8911
  superclassRole: [ 'input' ],
8947
8912
  accessibleNameRequired: true,
8948
8913
  nameFromContent: true,
@@ -9362,7 +9327,7 @@
9362
9327
  switch: {
9363
9328
  type: 'widget',
9364
9329
  requiredAttrs: [ 'aria-checked' ],
9365
- allowedAttrs: [ 'aria-readonly', 'aria-required' ],
9330
+ allowedAttrs: [ 'aria-expanded', 'aria-readonly', 'aria-required' ],
9366
9331
  superclassRole: [ 'checkbox' ],
9367
9332
  accessibleNameRequired: true,
9368
9333
  nameFromContent: true,
@@ -10585,7 +10550,7 @@
10585
10550
  }
10586
10551
  var is_unsupported_role_default = isUnsupportedRole;
10587
10552
  function isValidRole(role) {
10588
- var _ref26 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, allowAbstract = _ref26.allowAbstract, _ref26$flagUnsupporte = _ref26.flagUnsupported, flagUnsupported = _ref26$flagUnsupporte === void 0 ? false : _ref26$flagUnsupporte;
10553
+ var _ref23 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, allowAbstract = _ref23.allowAbstract, _ref23$flagUnsupporte = _ref23.flagUnsupported, flagUnsupported = _ref23$flagUnsupporte === void 0 ? false : _ref23$flagUnsupporte;
10589
10554
  var roleDefinition = standards_default.ariaRoles[role];
10590
10555
  var isRoleUnsupported = is_unsupported_role_default(role);
10591
10556
  if (!roleDefinition || flagUnsupported && isRoleUnsupported) {
@@ -10595,7 +10560,7 @@
10595
10560
  }
10596
10561
  var is_valid_role_default = isValidRole;
10597
10562
  function getExplicitRole(vNode) {
10598
- var _ref27 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, fallback = _ref27.fallback, abstracts = _ref27.abstracts, dpub = _ref27.dpub;
10563
+ var _ref24 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, fallback = _ref24.fallback, abstracts = _ref24.abstracts, dpub = _ref24.dpub;
10599
10564
  vNode = vNode instanceof abstract_virtual_node_default ? vNode : get_node_from_tree_default(vNode);
10600
10565
  if (vNode.props.nodeType !== 1) {
10601
10566
  return null;
@@ -11027,7 +10992,7 @@
11027
10992
  matches_default.semanticRole = semantic_role_default;
11028
10993
  var matches_default2 = matches_default;
11029
10994
  function getElementSpec(vNode) {
11030
- var _ref28 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, _ref28$noMatchAccessi = _ref28.noMatchAccessibleName, noMatchAccessibleName = _ref28$noMatchAccessi === void 0 ? false : _ref28$noMatchAccessi;
10995
+ var _ref25 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, _ref25$noMatchAccessi = _ref25.noMatchAccessibleName, noMatchAccessibleName = _ref25$noMatchAccessi === void 0 ? false : _ref25$noMatchAccessi;
11031
10996
  var standard = standards_default.htmlElms[vNode.props.nodeName];
11032
10997
  if (!standard) {
11033
10998
  return {};
@@ -11064,7 +11029,7 @@
11064
11029
  }
11065
11030
  var get_element_spec_default = getElementSpec;
11066
11031
  function implicitRole2(node) {
11067
- var _ref29 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, chromium = _ref29.chromium;
11032
+ var _ref26 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, chromium = _ref26.chromium;
11068
11033
  var vNode = node instanceof abstract_virtual_node_default ? node : get_node_from_tree_default(node);
11069
11034
  node = vNode.actualNode;
11070
11035
  if (!vNode) {
@@ -11117,8 +11082,8 @@
11117
11082
  }
11118
11083
  return getInheritedRole(vNode.parent, explicitRoleOptions);
11119
11084
  }
11120
- function resolveImplicitRole(vNode, _ref30) {
11121
- var chromium = _ref30.chromium, explicitRoleOptions = _objectWithoutProperties(_ref30, _excluded4);
11085
+ function resolveImplicitRole(vNode, _ref27) {
11086
+ var chromium = _ref27.chromium, explicitRoleOptions = _objectWithoutProperties(_ref27, _excluded4);
11122
11087
  var implicitRole3 = implicit_role_default(vNode, {
11123
11088
  chromium: chromium
11124
11089
  });
@@ -11138,8 +11103,8 @@
11138
11103
  return hasGlobalAria || _isFocusable(vNode);
11139
11104
  }
11140
11105
  function resolveRole(node) {
11141
- var _ref31 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
11142
- var noImplicit = _ref31.noImplicit, roleOptions = _objectWithoutProperties(_ref31, _excluded5);
11106
+ var _ref28 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
11107
+ var noImplicit = _ref28.noImplicit, roleOptions = _objectWithoutProperties(_ref28, _excluded5);
11143
11108
  var _nodeLookup9 = _nodeLookup(node), vNode = _nodeLookup9.vNode;
11144
11109
  if (vNode.props.nodeType !== 1) {
11145
11110
  return null;
@@ -11157,8 +11122,8 @@
11157
11122
  return explicitRole2;
11158
11123
  }
11159
11124
  function getRole(node) {
11160
- var _ref32 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
11161
- var noPresentational = _ref32.noPresentational, options = _objectWithoutProperties(_ref32, _excluded6);
11125
+ var _ref29 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
11126
+ var noPresentational = _ref29.noPresentational, options = _objectWithoutProperties(_ref29, _excluded6);
11162
11127
  var role = resolveRole(node, options);
11163
11128
  if (noPresentational && [ 'presentation', 'none' ].includes(role)) {
11164
11129
  return null;
@@ -11179,7 +11144,7 @@
11179
11144
  }
11180
11145
  var title_text_default = titleText;
11181
11146
  function namedFromContents(vNode) {
11182
- var _ref33 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, strict = _ref33.strict;
11147
+ var _ref30 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, strict = _ref30.strict;
11183
11148
  vNode = vNode instanceof abstract_virtual_node_default ? vNode : get_node_from_tree_default(vNode);
11184
11149
  if (vNode.props.nodeType !== 1) {
11185
11150
  return false;
@@ -11304,12 +11269,12 @@
11304
11269
  button: ''
11305
11270
  };
11306
11271
  var nativeTextMethods = {
11307
- valueText: function valueText(_ref34) {
11308
- var actualNode = _ref34.actualNode;
11272
+ valueText: function valueText(_ref31) {
11273
+ var actualNode = _ref31.actualNode;
11309
11274
  return actualNode.value || '';
11310
11275
  },
11311
- buttonDefaultText: function buttonDefaultText(_ref35) {
11312
- var actualNode = _ref35.actualNode;
11276
+ buttonDefaultText: function buttonDefaultText(_ref32) {
11277
+ var actualNode = _ref32.actualNode;
11313
11278
  return defaultButtonValues[actualNode.type] || '';
11314
11279
  },
11315
11280
  tableCaptionText: descendantText.bind(null, 'caption'),
@@ -11329,8 +11294,8 @@
11329
11294
  function attrText(attr, vNode) {
11330
11295
  return vNode.attr(attr) || '';
11331
11296
  }
11332
- function descendantText(nodeName2, _ref36, context) {
11333
- var actualNode = _ref36.actualNode;
11297
+ function descendantText(nodeName2, _ref33, context) {
11298
+ var actualNode = _ref33.actualNode;
11334
11299
  nodeName2 = nodeName2.toLowerCase();
11335
11300
  var nodeNames2 = [ nodeName2, actualNode.nodeName.toLowerCase() ].join(',');
11336
11301
  var candidate = actualNode.querySelector(nodeNames2);
@@ -11766,7 +11731,7 @@
11766
11731
  locations: [ 'billing', 'shipping' ]
11767
11732
  };
11768
11733
  function isValidAutocomplete(autocompleteValue) {
11769
- var _ref37 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, _ref37$looseTyped = _ref37.looseTyped, looseTyped = _ref37$looseTyped === void 0 ? false : _ref37$looseTyped, _ref37$stateTerms = _ref37.stateTerms, stateTerms = _ref37$stateTerms === void 0 ? [] : _ref37$stateTerms, _ref37$locations = _ref37.locations, locations = _ref37$locations === void 0 ? [] : _ref37$locations, _ref37$qualifiers = _ref37.qualifiers, qualifiers = _ref37$qualifiers === void 0 ? [] : _ref37$qualifiers, _ref37$standaloneTerm = _ref37.standaloneTerms, standaloneTerms = _ref37$standaloneTerm === void 0 ? [] : _ref37$standaloneTerm, _ref37$qualifiedTerms = _ref37.qualifiedTerms, qualifiedTerms = _ref37$qualifiedTerms === void 0 ? [] : _ref37$qualifiedTerms;
11734
+ var _ref34 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, _ref34$looseTyped = _ref34.looseTyped, looseTyped = _ref34$looseTyped === void 0 ? false : _ref34$looseTyped, _ref34$stateTerms = _ref34.stateTerms, stateTerms = _ref34$stateTerms === void 0 ? [] : _ref34$stateTerms, _ref34$locations = _ref34.locations, locations = _ref34$locations === void 0 ? [] : _ref34$locations, _ref34$qualifiers = _ref34.qualifiers, qualifiers = _ref34$qualifiers === void 0 ? [] : _ref34$qualifiers, _ref34$standaloneTerm = _ref34.standaloneTerms, standaloneTerms = _ref34$standaloneTerm === void 0 ? [] : _ref34$standaloneTerm, _ref34$qualifiedTerms = _ref34.qualifiedTerms, qualifiedTerms = _ref34$qualifiedTerms === void 0 ? [] : _ref34$qualifiedTerms;
11770
11735
  autocompleteValue = autocompleteValue.toLowerCase().trim();
11771
11736
  stateTerms = stateTerms.concat(_autocomplete.stateTerms);
11772
11737
  if (stateTerms.includes(autocompleteValue) || autocompleteValue === '') {
@@ -12031,8 +11996,8 @@
12031
11996
  if (hiddenTextElms.includes(elm.props.nodeName)) {
12032
11997
  return false;
12033
11998
  }
12034
- return elm.children.some(function(_ref38) {
12035
- var props = _ref38.props;
11999
+ return elm.children.some(function(_ref35) {
12000
+ var props = _ref35.props;
12036
12001
  return props.nodeType === 3 && props.nodeValue.trim();
12037
12002
  });
12038
12003
  }
@@ -12581,7 +12546,7 @@
12581
12546
  var _ColorSpace = (_processFormat = new WeakSet(), _path = new WeakMap(), _getPath = new WeakSet(),
12582
12547
  function() {
12583
12548
  function _ColorSpace(options) {
12584
- var _options$coords, _ref39, _options$white, _options$formats, _this$formats$functio, _this$formats, _this$formats2;
12549
+ var _options$coords, _ref36, _options$white, _options$formats, _this$formats$functio, _this$formats, _this$formats2;
12585
12550
  _classCallCheck(this, _ColorSpace);
12586
12551
  _classPrivateMethodInitSpec(this, _getPath);
12587
12552
  _classPrivateMethodInitSpec(this, _processFormat);
@@ -12599,7 +12564,7 @@
12599
12564
  }
12600
12565
  var _coords = (_options$coords = options.coords) !== null && _options$coords !== void 0 ? _options$coords : this.base.coords;
12601
12566
  this.coords = _coords;
12602
- var white2 = (_ref39 = (_options$white = options.white) !== null && _options$white !== void 0 ? _options$white : this.base.white) !== null && _ref39 !== void 0 ? _ref39 : 'D65';
12567
+ var white2 = (_ref36 = (_options$white = options.white) !== null && _options$white !== void 0 ? _options$white : this.base.white) !== null && _ref36 !== void 0 ? _ref36 : 'D65';
12603
12568
  this.white = getWhite(white2);
12604
12569
  this.formats = (_options$formats = options.formats) !== null && _options$formats !== void 0 ? _options$formats : {};
12605
12570
  for (var name in this.formats) {
@@ -12624,7 +12589,7 @@
12624
12589
  _createClass(_ColorSpace, [ {
12625
12590
  key: 'inGamut',
12626
12591
  value: function inGamut(coords) {
12627
- var _ref40 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, _ref40$epsilon = _ref40.epsilon, epsilon = _ref40$epsilon === void 0 ? \u03b5$4 : _ref40$epsilon;
12592
+ var _ref37 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, _ref37$epsilon = _ref37.epsilon, epsilon = _ref37$epsilon === void 0 ? \u03b5$4 : _ref37$epsilon;
12628
12593
  if (this.isPolar) {
12629
12594
  coords = this.toBase(coords);
12630
12595
  return this.base.inGamut(coords, {
@@ -12683,9 +12648,9 @@
12683
12648
  key: 'to',
12684
12649
  value: function to(space, coords) {
12685
12650
  if (arguments.length === 1) {
12686
- var _ref41 = [ space.space, space.coords ];
12687
- space = _ref41[0];
12688
- coords = _ref41[1];
12651
+ var _ref38 = [ space.space, space.coords ];
12652
+ space = _ref38[0];
12653
+ coords = _ref38[1];
12689
12654
  }
12690
12655
  space = _ColorSpace.get(space);
12691
12656
  if (this === space) {
@@ -12720,9 +12685,9 @@
12720
12685
  key: 'from',
12721
12686
  value: function from(space, coords) {
12722
12687
  if (arguments.length === 1) {
12723
- var _ref42 = [ space.space, space.coords ];
12724
- space = _ref42[0];
12725
- coords = _ref42[1];
12688
+ var _ref39 = [ space.space, space.coords ];
12689
+ space = _ref39[0];
12690
+ coords = _ref39[1];
12726
12691
  }
12727
12692
  space = _ColorSpace.get(space);
12728
12693
  return space.to(this, coords);
@@ -12814,9 +12779,9 @@
12814
12779
  coord = ref;
12815
12780
  }
12816
12781
  } else if (Array.isArray(ref)) {
12817
- var _ref43 = _slicedToArray(ref, 2);
12818
- space = _ref43[0];
12819
- coord = _ref43[1];
12782
+ var _ref40 = _slicedToArray(ref, 2);
12783
+ space = _ref40[0];
12784
+ coord = _ref40[1];
12820
12785
  } else {
12821
12786
  space = ref.space;
12822
12787
  coord = ref.coordId;
@@ -12864,8 +12829,8 @@
12864
12829
  format.type || (format.type = 'function');
12865
12830
  format.name || (format.name = 'color');
12866
12831
  format.coordGrammar = parseCoordGrammar(format.coords);
12867
- var coordFormats = Object.entries(this.coords).map(function(_ref156, i) {
12868
- var _ref157 = _slicedToArray(_ref156, 2), id = _ref157[0], coordMeta = _ref157[1];
12832
+ var coordFormats = Object.entries(this.coords).map(function(_ref153, i) {
12833
+ var _ref154 = _slicedToArray(_ref153, 2), id = _ref154[0], coordMeta = _ref154[1];
12869
12834
  var outputType = format.coordGrammar[i][0];
12870
12835
  var fromRange = coordMeta.range || coordMeta.refRange;
12871
12836
  var toRange = outputType.range, suffix = '';
@@ -13050,9 +13015,9 @@
13050
13015
  }
13051
13016
  var coords = env.parsed.args;
13052
13017
  if (format.coordGrammar) {
13053
- Object.entries(space.coords).forEach(function(_ref44, i) {
13018
+ Object.entries(space.coords).forEach(function(_ref41, i) {
13054
13019
  var _coords$i;
13055
- var _ref45 = _slicedToArray(_ref44, 2), id = _ref45[0], coordMeta = _ref45[1];
13020
+ var _ref42 = _slicedToArray(_ref41, 2), id = _ref42[0], coordMeta = _ref42[1];
13056
13021
  var coordGrammar2 = format.coordGrammar[i];
13057
13022
  var providedType = (_coords$i = coords[i]) === null || _coords$i === void 0 ? void 0 : _coords$i.type;
13058
13023
  coordGrammar2 = coordGrammar2.find(function(c4) {
@@ -13322,7 +13287,7 @@
13322
13287
  var r2d = 180 / \u03c0$1;
13323
13288
  var d2r$1 = \u03c0$1 / 180;
13324
13289
  function deltaE2000(color, sample) {
13325
- 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;
13290
+ var _ref43 = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}, _ref43$kL = _ref43.kL, kL = _ref43$kL === void 0 ? 1 : _ref43$kL, _ref43$kC = _ref43.kC, kC = _ref43$kC === void 0 ? 1 : _ref43$kC, _ref43$kH = _ref43.kH, kH = _ref43$kH === void 0 ? 1 : _ref43$kH;
13326
13291
  var _lab$from = lab.from(color), _lab$from2 = _slicedToArray(_lab$from, 3), L1 = _lab$from2[0], a1 = _lab$from2[1], b1 = _lab$from2[2];
13327
13292
  var C1 = lch.from(lab, [ L1, a1, b1 ])[1];
13328
13293
  var _lab$from3 = lab.from(sample), _lab$from4 = _slicedToArray(_lab$from3, 3), L2 = _lab$from4[0], a2 = _lab$from4[1], b2 = _lab$from4[2];
@@ -13402,7 +13367,7 @@
13402
13367
  var \u03b5$2 = 75e-6;
13403
13368
  function inGamut(color) {
13404
13369
  var space = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : color.space;
13405
- var _ref47 = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}, _ref47$epsilon = _ref47.epsilon, epsilon = _ref47$epsilon === void 0 ? \u03b5$2 : _ref47$epsilon;
13370
+ var _ref44 = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}, _ref44$epsilon = _ref44.epsilon, epsilon = _ref44$epsilon === void 0 ? \u03b5$2 : _ref44$epsilon;
13406
13371
  color = getColor(color);
13407
13372
  space = ColorSpace.get(space);
13408
13373
  var coords = color.coords;
@@ -13421,7 +13386,7 @@
13421
13386
  };
13422
13387
  }
13423
13388
  function toGamut(color) {
13424
- 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;
13389
+ var _ref45 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, _ref45$method = _ref45.method, method = _ref45$method === void 0 ? defaults.gamut_mapping : _ref45$method, _ref45$space = _ref45.space, space = _ref45$space === void 0 ? color.space : _ref45$space;
13425
13390
  if (isString(arguments[1])) {
13426
13391
  space = arguments[1];
13427
13392
  }
@@ -13491,7 +13456,7 @@
13491
13456
  }
13492
13457
  toGamut.returns = 'color';
13493
13458
  function to(color, space) {
13494
- var _ref49 = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}, inGamut2 = _ref49.inGamut;
13459
+ var _ref46 = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}, inGamut2 = _ref46.inGamut;
13495
13460
  color = getColor(color);
13496
13461
  space = ColorSpace.get(space);
13497
13462
  var coords = space.from(color);
@@ -13507,13 +13472,13 @@
13507
13472
  }
13508
13473
  to.returns = 'color';
13509
13474
  function serialize(color) {
13510
- var _ref51, _color$space$getForma;
13511
- var _ref50 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
13512
- 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, _excluded7);
13475
+ var _ref48, _color$space$getForma;
13476
+ var _ref47 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
13477
+ var _ref47$precision = _ref47.precision, precision = _ref47$precision === void 0 ? defaults.precision : _ref47$precision, _ref47$format = _ref47.format, format = _ref47$format === void 0 ? 'default' : _ref47$format, _ref47$inGamut = _ref47.inGamut, inGamut$1 = _ref47$inGamut === void 0 ? true : _ref47$inGamut, customOptions = _objectWithoutProperties(_ref47, _excluded7);
13513
13478
  var ret;
13514
13479
  color = getColor(color);
13515
13480
  var formatId = format;
13516
- 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;
13481
+ format = (_ref48 = (_color$space$getForma = color.space.getFormat(format)) !== null && _color$space$getForma !== void 0 ? _color$space$getForma : color.space.getFormat('default')) !== null && _ref48 !== void 0 ? _ref48 : ColorSpace.DEFAULT_FORMAT;
13517
13482
  inGamut$1 || (inGamut$1 = format.toGamut);
13518
13483
  var coords = color.coords;
13519
13484
  coords = coords.map(function(c4) {
@@ -13832,7 +13797,7 @@
13832
13797
  };
13833
13798
  },
13834
13799
  serialize: function serialize(coords, alpha) {
13835
- var _ref52 = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}, _ref52$collapse = _ref52.collapse, collapse = _ref52$collapse === void 0 ? true : _ref52$collapse;
13800
+ var _ref49 = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}, _ref49$collapse = _ref49.collapse, collapse = _ref49$collapse === void 0 ? true : _ref49$collapse;
13836
13801
  if (alpha < 1) {
13837
13802
  coords.push(alpha);
13838
13803
  }
@@ -13906,8 +13871,8 @@
13906
13871
  }
13907
13872
  }
13908
13873
  function _display(color) {
13909
- var _ref53 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
13910
- var _ref53$space = _ref53.space, space = _ref53$space === void 0 ? defaults.display_space : _ref53$space, options = _objectWithoutProperties(_ref53, _excluded8);
13874
+ var _ref50 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
13875
+ var _ref50$space = _ref50.space, space = _ref50$space === void 0 ? defaults.display_space : _ref50$space, options = _objectWithoutProperties(_ref50, _excluded8);
13911
13876
  var ret = serialize(color, options);
13912
13877
  if (typeof CSS === 'undefined' || CSS.supports('color', ret) || !defaults.display_space) {
13913
13878
  ret = new String(ret);
@@ -13967,9 +13932,9 @@
13967
13932
  var Y1 = Math.max(getLuminance(color1), 0);
13968
13933
  var Y2 = Math.max(getLuminance(color2), 0);
13969
13934
  if (Y2 > Y1) {
13970
- var _ref54 = [ Y2, Y1 ];
13971
- Y1 = _ref54[0];
13972
- Y2 = _ref54[1];
13935
+ var _ref51 = [ Y2, Y1 ];
13936
+ Y1 = _ref51[0];
13937
+ Y2 = _ref51[1];
13973
13938
  }
13974
13939
  return (Y1 + .05) / (Y2 + .05);
13975
13940
  }
@@ -14043,9 +14008,9 @@
14043
14008
  var Y1 = Math.max(getLuminance(color1), 0);
14044
14009
  var Y2 = Math.max(getLuminance(color2), 0);
14045
14010
  if (Y2 > Y1) {
14046
- var _ref55 = [ Y2, Y1 ];
14047
- Y1 = _ref55[0];
14048
- Y2 = _ref55[1];
14011
+ var _ref52 = [ Y2, Y1 ];
14012
+ Y1 = _ref52[0];
14013
+ Y2 = _ref52[1];
14049
14014
  }
14050
14015
  var denom = Y1 + Y2;
14051
14016
  return denom === 0 ? 0 : (Y1 - Y2) / denom;
@@ -14057,9 +14022,9 @@
14057
14022
  var Y1 = Math.max(getLuminance(color1), 0);
14058
14023
  var Y2 = Math.max(getLuminance(color2), 0);
14059
14024
  if (Y2 > Y1) {
14060
- var _ref56 = [ Y2, Y1 ];
14061
- Y1 = _ref56[0];
14062
- Y2 = _ref56[1];
14025
+ var _ref53 = [ Y2, Y1 ];
14026
+ Y1 = _ref53[0];
14027
+ Y2 = _ref53[1];
14063
14028
  }
14064
14029
  return Y2 === 0 ? max : (Y1 - Y2) / Y2;
14065
14030
  }
@@ -14192,7 +14157,7 @@
14192
14157
  var \u03c0 = Math.PI;
14193
14158
  var d2r = \u03c0 / 180;
14194
14159
  function deltaECMC(color, sample) {
14195
- 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;
14160
+ var _ref54 = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}, _ref54$l = _ref54.l, l = _ref54$l === void 0 ? 2 : _ref54$l, _ref54$c = _ref54.c, c4 = _ref54$c === void 0 ? 1 : _ref54$c;
14196
14161
  var _lab$from5 = lab.from(color), _lab$from6 = _slicedToArray(_lab$from5, 3), L1 = _lab$from6[0], a1 = _lab$from6[1], b1 = _lab$from6[2];
14197
14162
  var _lch$from = lch.from(lab, [ L1, a1, b1 ]), _lch$from2 = _slicedToArray(_lch$from, 3), C1 = _lch$from2[1], H1 = _lch$from2[2];
14198
14163
  var _lab$from7 = lab.from(sample), _lab$from8 = _slicedToArray(_lab$from7, 3), L2 = _lab$from8[0], a2 = _lab$from8[1], b2 = _lab$from8[2];
@@ -14540,13 +14505,13 @@
14540
14505
  function mix(c12, c22) {
14541
14506
  var p2 = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : .5;
14542
14507
  var o = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};
14543
- var _ref58 = [ getColor(c12), getColor(c22) ];
14544
- c12 = _ref58[0];
14545
- c22 = _ref58[1];
14508
+ var _ref55 = [ getColor(c12), getColor(c22) ];
14509
+ c12 = _ref55[0];
14510
+ c22 = _ref55[1];
14546
14511
  if (type(p2) === 'object') {
14547
- var _ref59 = [ .5, p2 ];
14548
- p2 = _ref59[0];
14549
- o = _ref59[1];
14512
+ var _ref56 = [ .5, p2 ];
14513
+ p2 = _ref56[0];
14514
+ o = _ref56[1];
14550
14515
  }
14551
14516
  var _o3 = o, space = _o3.space, outputSpace = _o3.outputSpace, premultiplied = _o3.premultiplied;
14552
14517
  var r = range(c12, c22, {
@@ -14568,9 +14533,9 @@
14568
14533
  }
14569
14534
  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, _excluded11);
14570
14535
  if (!colorRange) {
14571
- var _ref60 = [ getColor(c12), getColor(c22) ];
14572
- c12 = _ref60[0];
14573
- c22 = _ref60[1];
14536
+ var _ref57 = [ getColor(c12), getColor(c22) ];
14537
+ c12 = _ref57[0];
14538
+ c22 = _ref57[1];
14574
14539
  colorRange = range(c12, c22, rangeOptions);
14575
14540
  }
14576
14541
  var totalDelta = deltaE(c12, c22);
@@ -14653,7 +14618,7 @@
14653
14618
  if (space.coords.h && space.coords.h.type === 'angle') {
14654
14619
  var arc = options.hue = options.hue || 'shorter';
14655
14620
  var hue = [ space, 'h' ];
14656
- var _ref61 = [ get(color1, hue), get(color2, hue) ], \u03b81 = _ref61[0], \u03b82 = _ref61[1];
14621
+ var _ref58 = [ get(color1, hue), get(color2, hue) ], \u03b81 = _ref58[0], \u03b82 = _ref58[1];
14657
14622
  var _adjust = adjust(arc, [ \u03b81, \u03b82 ]);
14658
14623
  var _adjust2 = _slicedToArray(_adjust, 2);
14659
14624
  \u03b81 = _adjust2[0];
@@ -15055,8 +15020,8 @@
15055
15020
  env.M = adapt(env.W1, env.W2, env.options.method);
15056
15021
  }
15057
15022
  });
15058
- function defineCAT(_ref62) {
15059
- var id = _ref62.id, toCone_M = _ref62.toCone_M, fromCone_M = _ref62.fromCone_M;
15023
+ function defineCAT(_ref59) {
15024
+ var id = _ref59.id, toCone_M = _ref59.toCone_M, fromCone_M = _ref59.fromCone_M;
15060
15025
  CATs[id] = arguments[0];
15061
15026
  }
15062
15027
  function adapt(W1, W2) {
@@ -15649,8 +15614,8 @@
15649
15614
  if (!refs || !refs.length) {
15650
15615
  return false;
15651
15616
  }
15652
- return refs.some(function(_ref63) {
15653
- var actualNode = _ref63.actualNode;
15617
+ return refs.some(function(_ref60) {
15618
+ var actualNode = _ref60.actualNode;
15654
15619
  return isVisible(actualNode, screenReader, recursed);
15655
15620
  });
15656
15621
  }
@@ -15662,7 +15627,7 @@
15662
15627
  var vNode = el instanceof abstract_virtual_node_default ? el : get_node_from_tree_default(el);
15663
15628
  el = vNode ? vNode.actualNode : el;
15664
15629
  var cacheName = '_isVisible' + (screenReader ? 'ScreenReader' : '');
15665
- 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;
15630
+ var _ref61 = (_window$Node2 = window.Node) !== null && _window$Node2 !== void 0 ? _window$Node2 : {}, DOCUMENT_NODE = _ref61.DOCUMENT_NODE, DOCUMENT_FRAGMENT_NODE = _ref61.DOCUMENT_FRAGMENT_NODE;
15666
15631
  var nodeType = vNode ? vNode.props.nodeType : el.nodeType;
15667
15632
  var nodeName2 = vNode ? vNode.props.nodeName : el.nodeName.toLowerCase();
15668
15633
  if (vNode && typeof vNode[cacheName] !== 'undefined') {
@@ -16471,7 +16436,7 @@
16471
16436
  return {};
16472
16437
  }
16473
16438
  var navigator = win.navigator, innerHeight = win.innerHeight, innerWidth = win.innerWidth;
16474
- var _ref65 = getOrientation(win) || {}, angle = _ref65.angle, type2 = _ref65.type;
16439
+ var _ref62 = getOrientation(win) || {}, angle = _ref62.angle, type2 = _ref62.type;
16475
16440
  return {
16476
16441
  userAgent: navigator.userAgent,
16477
16442
  windowWidth: innerWidth,
@@ -16480,12 +16445,12 @@
16480
16445
  orientationType: type2
16481
16446
  };
16482
16447
  }
16483
- function getOrientation(_ref66) {
16484
- var screen = _ref66.screen;
16448
+ function getOrientation(_ref63) {
16449
+ var screen = _ref63.screen;
16485
16450
  return screen.orientation || screen.msOrientation || screen.mozOrientation;
16486
16451
  }
16487
- function createFrameContext(frame, _ref67) {
16488
- var focusable = _ref67.focusable, page = _ref67.page;
16452
+ function createFrameContext(frame, _ref64) {
16453
+ var focusable = _ref64.focusable, page = _ref64.page;
16489
16454
  return {
16490
16455
  node: frame,
16491
16456
  include: [],
@@ -16724,8 +16689,8 @@
16724
16689
  }
16725
16690
  context.frames.push(createFrameContext(frame, context));
16726
16691
  }
16727
- function isPageContext(_ref68) {
16728
- var include = _ref68.include;
16692
+ function isPageContext(_ref65) {
16693
+ var include = _ref65.include;
16729
16694
  return include.length === 1 && include[0].actualNode === document.documentElement;
16730
16695
  }
16731
16696
  function validateContext(context) {
@@ -16734,8 +16699,8 @@
16734
16699
  throw new Error('No elements found for include in ' + env + ' Context');
16735
16700
  }
16736
16701
  }
16737
- function getRootNode2(_ref69) {
16738
- var include = _ref69.include, exclude = _ref69.exclude;
16702
+ function getRootNode2(_ref66) {
16703
+ var include = _ref66.include, exclude = _ref66.exclude;
16739
16704
  var selectors = Array.from(include).concat(Array.from(exclude));
16740
16705
  for (var _i22 = 0; _i22 < selectors.length; _i22++) {
16741
16706
  var item = selectors[_i22];
@@ -16754,8 +16719,8 @@
16754
16719
  return [];
16755
16720
  }
16756
16721
  var _Context = new Context(context), frames = _Context.frames;
16757
- return frames.map(function(_ref70) {
16758
- var node = _ref70.node, frameContext = _objectWithoutProperties(_ref70, _excluded12);
16722
+ return frames.map(function(_ref67) {
16723
+ var node = _ref67.node, frameContext = _objectWithoutProperties(_ref67, _excluded12);
16759
16724
  frameContext.initiator = false;
16760
16725
  var frameSelector = _getAncestry(node);
16761
16726
  return {
@@ -16765,8 +16730,8 @@
16765
16730
  });
16766
16731
  }
16767
16732
  function _getRule(ruleId) {
16768
- var rule = axe._audit.rules.find(function(_ref71) {
16769
- var id = _ref71.id;
16733
+ var rule = axe._audit.rules.find(function(_ref68) {
16734
+ var id = _ref68.id;
16770
16735
  return id === ruleId;
16771
16736
  });
16772
16737
  if (!rule) {
@@ -16905,8 +16870,8 @@
16905
16870
  return !!standards_default.htmlElms[nodeName2];
16906
16871
  }
16907
16872
  var is_html_element_default = isHtmlElement;
16908
- function _isNodeInContext(node, _ref72) {
16909
- var _ref72$include = _ref72.include, include = _ref72$include === void 0 ? [] : _ref72$include, _ref72$exclude = _ref72.exclude, exclude = _ref72$exclude === void 0 ? [] : _ref72$exclude;
16873
+ function _isNodeInContext(node, _ref69) {
16874
+ var _ref69$include = _ref69.include, include = _ref69$include === void 0 ? [] : _ref69$include, _ref69$exclude = _ref69.exclude, exclude = _ref69$exclude === void 0 ? [] : _ref69$exclude;
16910
16875
  var filterInclude = include.filter(function(candidate) {
16911
16876
  return _contains(candidate, node);
16912
16877
  });
@@ -17472,8 +17437,8 @@
17472
17437
  return matchExpressions(domTree, expressions, filter);
17473
17438
  }
17474
17439
  var query_selector_all_filter_default = querySelectorAllFilter;
17475
- function preloadCssom(_ref73) {
17476
- var _ref73$treeRoot = _ref73.treeRoot, treeRoot = _ref73$treeRoot === void 0 ? axe._tree[0] : _ref73$treeRoot;
17440
+ function preloadCssom(_ref70) {
17441
+ var _ref70$treeRoot = _ref70.treeRoot, treeRoot = _ref70$treeRoot === void 0 ? axe._tree[0] : _ref70$treeRoot;
17477
17442
  var rootNodes = getAllRootNodesInTree(treeRoot);
17478
17443
  if (!rootNodes.length) {
17479
17444
  return Promise.resolve();
@@ -17503,8 +17468,8 @@
17503
17468
  }
17504
17469
  function getCssomForAllRootNodes(rootNodes, convertDataToStylesheet) {
17505
17470
  var promises = [];
17506
- rootNodes.forEach(function(_ref74, index) {
17507
- var rootNode = _ref74.rootNode, shadowId = _ref74.shadowId;
17471
+ rootNodes.forEach(function(_ref71, index) {
17472
+ var rootNode = _ref71.rootNode, shadowId = _ref71.shadowId;
17508
17473
  var sheets = getStylesheetsOfRootNode(rootNode, shadowId, convertDataToStylesheet);
17509
17474
  if (!sheets) {
17510
17475
  return Promise.all(promises);
@@ -17588,10 +17553,10 @@
17588
17553
  return true;
17589
17554
  });
17590
17555
  }
17591
- function preloadMedia(_ref75) {
17592
- var _ref75$treeRoot = _ref75.treeRoot, treeRoot = _ref75$treeRoot === void 0 ? axe._tree[0] : _ref75$treeRoot;
17593
- var mediaVirtualNodes = query_selector_all_filter_default(treeRoot, 'video, audio', function(_ref76) {
17594
- var actualNode = _ref76.actualNode;
17556
+ function preloadMedia(_ref72) {
17557
+ var _ref72$treeRoot = _ref72.treeRoot, treeRoot = _ref72$treeRoot === void 0 ? axe._tree[0] : _ref72$treeRoot;
17558
+ var mediaVirtualNodes = query_selector_all_filter_default(treeRoot, 'video, audio', function(_ref73) {
17559
+ var actualNode = _ref73.actualNode;
17595
17560
  if (actualNode.hasAttribute('src')) {
17596
17561
  return !!actualNode.getAttribute('src');
17597
17562
  }
@@ -17603,8 +17568,8 @@
17603
17568
  }
17604
17569
  return true;
17605
17570
  });
17606
- return Promise.all(mediaVirtualNodes.map(function(_ref77) {
17607
- var actualNode = _ref77.actualNode;
17571
+ return Promise.all(mediaVirtualNodes.map(function(_ref74) {
17572
+ var actualNode = _ref74.actualNode;
17608
17573
  return isMediaElementReady(actualNode);
17609
17574
  }));
17610
17575
  }
@@ -17907,8 +17872,8 @@
17907
17872
  }
17908
17873
  }
17909
17874
  function setScrollState(scrollState) {
17910
- scrollState.forEach(function(_ref79) {
17911
- var elm = _ref79.elm, top = _ref79.top, left = _ref79.left;
17875
+ scrollState.forEach(function(_ref76) {
17876
+ var elm = _ref76.elm, top = _ref76.top, left = _ref76.left;
17912
17877
  return setScroll(elm, top, left);
17913
17878
  });
17914
17879
  }
@@ -17936,8 +17901,8 @@
17936
17901
  }
17937
17902
  return selectAllRecursive(selectorArr, doc);
17938
17903
  }
17939
- function selectAllRecursive(_ref80, doc) {
17940
- var _ref81 = _toArray(_ref80), selectorStr = _ref81[0], restSelector = _ref81.slice(1);
17904
+ function selectAllRecursive(_ref77, doc) {
17905
+ var _ref78 = _toArray(_ref77), selectorStr = _ref78[0], restSelector = _ref78.slice(1);
17941
17906
  var elms = doc.querySelectorAll(selectorStr);
17942
17907
  if (restSelector.length === 0) {
17943
17908
  return Array.from(elms);
@@ -18041,9 +18006,9 @@
18041
18006
  nodeTypeToName[nodeNamesToTypes[nodeName2]] = nodeName2;
18042
18007
  });
18043
18008
  function normaliseProps(serialNode) {
18044
- var _serialNode$nodeName, _ref82, _serialNode$nodeType;
18009
+ var _serialNode$nodeName, _ref79, _serialNode$nodeType;
18045
18010
  var nodeName2 = (_serialNode$nodeName = serialNode.nodeName) !== null && _serialNode$nodeName !== void 0 ? _serialNode$nodeName : nodeTypeToName[serialNode.nodeType];
18046
- var nodeType = (_ref82 = (_serialNode$nodeType = serialNode.nodeType) !== null && _serialNode$nodeType !== void 0 ? _serialNode$nodeType : nodeNamesToTypes[serialNode.nodeName]) !== null && _ref82 !== void 0 ? _ref82 : 1;
18011
+ var nodeType = (_ref79 = (_serialNode$nodeType = serialNode.nodeType) !== null && _serialNode$nodeType !== void 0 ? _serialNode$nodeType : nodeNamesToTypes[serialNode.nodeName]) !== null && _ref79 !== void 0 ? _ref79 : 1;
18047
18012
  assert_default(typeof nodeType === 'number', 'nodeType has to be a number, got \''.concat(nodeType, '\''));
18048
18013
  assert_default(typeof nodeName2 === 'string', 'nodeName has to be a string, got \''.concat(nodeName2, '\''));
18049
18014
  nodeName2 = nodeName2.toLowerCase();
@@ -18064,8 +18029,8 @@
18064
18029
  delete props.attributes;
18065
18030
  return Object.freeze(props);
18066
18031
  }
18067
- function normaliseAttrs(_ref83) {
18068
- var _ref83$attributes = _ref83.attributes, attributes2 = _ref83$attributes === void 0 ? {} : _ref83$attributes;
18032
+ function normaliseAttrs(_ref80) {
18033
+ var _ref80$attributes = _ref80.attributes, attributes2 = _ref80$attributes === void 0 ? {} : _ref80$attributes;
18069
18034
  var attrMap = {
18070
18035
  htmlFor: 'for',
18071
18036
  className: 'class'
@@ -20230,8 +20195,8 @@
20230
20195
  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' ]
20231
20196
  } ];
20232
20197
  lookupTable.evaluateRoleForElement = {
20233
- A: function A(_ref84) {
20234
- var node = _ref84.node, out = _ref84.out;
20198
+ A: function A(_ref81) {
20199
+ var node = _ref81.node, out = _ref81.out;
20235
20200
  if (node.namespaceURI === 'http://www.w3.org/2000/svg') {
20236
20201
  return true;
20237
20202
  }
@@ -20240,19 +20205,19 @@
20240
20205
  }
20241
20206
  return true;
20242
20207
  },
20243
- AREA: function AREA(_ref85) {
20244
- var node = _ref85.node;
20208
+ AREA: function AREA(_ref82) {
20209
+ var node = _ref82.node;
20245
20210
  return !node.href;
20246
20211
  },
20247
- BUTTON: function BUTTON(_ref86) {
20248
- var node = _ref86.node, role = _ref86.role, out = _ref86.out;
20212
+ BUTTON: function BUTTON(_ref83) {
20213
+ var node = _ref83.node, role = _ref83.role, out = _ref83.out;
20249
20214
  if (node.getAttribute('type') === 'menu') {
20250
20215
  return role === 'menuitem';
20251
20216
  }
20252
20217
  return out;
20253
20218
  },
20254
- IMG: function IMG(_ref87) {
20255
- var node = _ref87.node, role = _ref87.role, out = _ref87.out;
20219
+ IMG: function IMG(_ref84) {
20220
+ var node = _ref84.node, role = _ref84.role, out = _ref84.out;
20256
20221
  switch (node.alt) {
20257
20222
  case null:
20258
20223
  return out;
@@ -20264,8 +20229,8 @@
20264
20229
  return role !== 'presentation' && role !== 'none';
20265
20230
  }
20266
20231
  },
20267
- INPUT: function INPUT(_ref88) {
20268
- var node = _ref88.node, role = _ref88.role, out = _ref88.out;
20232
+ INPUT: function INPUT(_ref85) {
20233
+ var node = _ref85.node, role = _ref85.role, out = _ref85.out;
20269
20234
  switch (node.type) {
20270
20235
  case 'button':
20271
20236
  case 'image':
@@ -20295,32 +20260,32 @@
20295
20260
  return false;
20296
20261
  }
20297
20262
  },
20298
- LI: function LI(_ref89) {
20299
- var node = _ref89.node, out = _ref89.out;
20263
+ LI: function LI(_ref86) {
20264
+ var node = _ref86.node, out = _ref86.out;
20300
20265
  var hasImplicitListitemRole = axe.utils.matchesSelector(node, 'ol li, ul li');
20301
20266
  if (hasImplicitListitemRole) {
20302
20267
  return out;
20303
20268
  }
20304
20269
  return true;
20305
20270
  },
20306
- MENU: function MENU(_ref90) {
20307
- var node = _ref90.node;
20271
+ MENU: function MENU(_ref87) {
20272
+ var node = _ref87.node;
20308
20273
  if (node.getAttribute('type') === 'context') {
20309
20274
  return false;
20310
20275
  }
20311
20276
  return true;
20312
20277
  },
20313
- OPTION: function OPTION(_ref91) {
20314
- var node = _ref91.node;
20278
+ OPTION: function OPTION(_ref88) {
20279
+ var node = _ref88.node;
20315
20280
  var withinOptionList = axe.utils.matchesSelector(node, 'select > option, datalist > option, optgroup > option');
20316
20281
  return !withinOptionList;
20317
20282
  },
20318
- SELECT: function SELECT(_ref92) {
20319
- var node = _ref92.node, role = _ref92.role;
20283
+ SELECT: function SELECT(_ref89) {
20284
+ var node = _ref89.node, role = _ref89.role;
20320
20285
  return !node.multiple && node.size <= 1 && role === 'menu';
20321
20286
  },
20322
- SVG: function SVG(_ref93) {
20323
- var node = _ref93.node, out = _ref93.out;
20287
+ SVG: function SVG(_ref90) {
20288
+ var node = _ref90.node, out = _ref90.out;
20324
20289
  if (node.parentNode && node.parentNode.namespaceURI === 'http://www.w3.org/2000/svg') {
20325
20290
  return true;
20326
20291
  }
@@ -20346,7 +20311,7 @@
20346
20311
  var is_accessible_ref_default = isAccessibleRef;
20347
20312
  function _isComboboxPopup(virtualNode) {
20348
20313
  var _popupRoles;
20349
- var _ref94 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, popupRoles = _ref94.popupRoles;
20314
+ var _ref91 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, popupRoles = _ref91.popupRoles;
20350
20315
  var role = get_role_default(virtualNode);
20351
20316
  (_popupRoles = popupRoles) !== null && _popupRoles !== void 0 ? _popupRoles : popupRoles = aria_attrs_default['aria-haspopup'].values;
20352
20317
  if (!popupRoles.includes(role)) {
@@ -20565,7 +20530,7 @@
20565
20530
  }
20566
20531
  function ariaConditionalRowAttr(node) {
20567
20532
  var _invalidTableRowAttrs, _invalidTableRowAttrs2;
20568
- var _ref95 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, invalidTableRowAttrs = _ref95.invalidTableRowAttrs;
20533
+ var _ref92 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, invalidTableRowAttrs = _ref92.invalidTableRowAttrs;
20569
20534
  var virtualNode = arguments.length > 2 ? arguments[2] : undefined;
20570
20535
  var invalidAttrs = (_invalidTableRowAttrs = invalidTableRowAttrs === null || invalidTableRowAttrs === void 0 ? void 0 : (_invalidTableRowAttrs2 = invalidTableRowAttrs.filter) === null || _invalidTableRowAttrs2 === void 0 ? void 0 : _invalidTableRowAttrs2.call(invalidTableRowAttrs, function(invalidAttr) {
20571
20536
  return virtualNode.hasAttr(invalidAttr);
@@ -20768,19 +20733,19 @@
20768
20733
  return true;
20769
20734
  }
20770
20735
  var ownedRoles = getOwnedRoles(virtualNode, required);
20771
- var unallowed = ownedRoles.filter(function(_ref96) {
20772
- var role = _ref96.role, vNode = _ref96.vNode;
20736
+ var unallowed = ownedRoles.filter(function(_ref93) {
20737
+ var role = _ref93.role, vNode = _ref93.vNode;
20773
20738
  return vNode.props.nodeType === 1 && !required.includes(role);
20774
20739
  });
20775
20740
  if (unallowed.length) {
20776
- this.relatedNodes(unallowed.map(function(_ref97) {
20777
- var vNode = _ref97.vNode;
20741
+ this.relatedNodes(unallowed.map(function(_ref94) {
20742
+ var vNode = _ref94.vNode;
20778
20743
  return vNode;
20779
20744
  }));
20780
20745
  this.data({
20781
20746
  messageKey: 'unallowed',
20782
- values: unallowed.map(function(_ref98) {
20783
- var vNode = _ref98.vNode, attr = _ref98.attr;
20747
+ values: unallowed.map(function(_ref95) {
20748
+ var vNode = _ref95.vNode, attr = _ref95.attr;
20784
20749
  return getUnallowedSelector(vNode, attr);
20785
20750
  }).filter(function(selector, index, array) {
20786
20751
  return array.indexOf(selector) === index;
@@ -20838,8 +20803,8 @@
20838
20803
  return ownedRoles;
20839
20804
  }
20840
20805
  function hasRequiredChildren(required, ownedRoles) {
20841
- return ownedRoles.some(function(_ref99) {
20842
- var role = _ref99.role;
20806
+ return ownedRoles.some(function(_ref96) {
20807
+ var role = _ref96.role;
20843
20808
  return role && required.includes(role);
20844
20809
  });
20845
20810
  }
@@ -20864,8 +20829,8 @@
20864
20829
  }
20865
20830
  return nodeName2;
20866
20831
  }
20867
- function isContent(_ref100) {
20868
- var vNode = _ref100.vNode;
20832
+ function isContent(_ref97) {
20833
+ var vNode = _ref97.vNode;
20869
20834
  if (vNode.props.nodeType === 3) {
20870
20835
  return vNode.props.nodeValue.trim().length > 0;
20871
20836
  }
@@ -21504,10 +21469,10 @@
21504
21469
  var OPAQUE_STROKE_OFFSET_MIN_PX = 1.5;
21505
21470
  var edges = [ 'top', 'right', 'bottom', 'left' ];
21506
21471
  function _getStrokeColorsFromShadows(parsedShadows) {
21507
- var _ref101 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, _ref101$ignoreEdgeCou = _ref101.ignoreEdgeCount, ignoreEdgeCount = _ref101$ignoreEdgeCou === void 0 ? false : _ref101$ignoreEdgeCou;
21472
+ var _ref98 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, _ref98$ignoreEdgeCoun = _ref98.ignoreEdgeCount, ignoreEdgeCount = _ref98$ignoreEdgeCoun === void 0 ? false : _ref98$ignoreEdgeCoun;
21508
21473
  var shadowMap = getShadowColorsMap(parsedShadows);
21509
- var shadowsByColor = Object.entries(shadowMap).map(function(_ref102) {
21510
- var _ref103 = _slicedToArray(_ref102, 2), colorStr = _ref103[0], sides = _ref103[1];
21474
+ var shadowsByColor = Object.entries(shadowMap).map(function(_ref99) {
21475
+ var _ref100 = _slicedToArray(_ref99, 2), colorStr = _ref100[0], sides = _ref100[1];
21511
21476
  var edgeCount = edges.filter(function(side) {
21512
21477
  return sides[side].length !== 0;
21513
21478
  }).length;
@@ -21517,8 +21482,8 @@
21517
21482
  edgeCount: edgeCount
21518
21483
  };
21519
21484
  });
21520
- if (!ignoreEdgeCount && shadowsByColor.some(function(_ref104) {
21521
- var edgeCount = _ref104.edgeCount;
21485
+ if (!ignoreEdgeCount && shadowsByColor.some(function(_ref101) {
21486
+ var edgeCount = _ref101.edgeCount;
21522
21487
  return edgeCount > 1 && edgeCount < 4;
21523
21488
  })) {
21524
21489
  return null;
@@ -21560,8 +21525,8 @@
21560
21525
  }
21561
21526
  return colorMap;
21562
21527
  }
21563
- function shadowGroupToColor(_ref105) {
21564
- var colorStr = _ref105.colorStr, sides = _ref105.sides, edgeCount = _ref105.edgeCount;
21528
+ function shadowGroupToColor(_ref102) {
21529
+ var colorStr = _ref102.colorStr, sides = _ref102.sides, edgeCount = _ref102.edgeCount;
21565
21530
  if (edgeCount !== 4) {
21566
21531
  return null;
21567
21532
  }
@@ -21612,8 +21577,8 @@
21612
21577
  throw new Error('Unable to process text-shadows: '.concat(str));
21613
21578
  }
21614
21579
  }
21615
- shadows.forEach(function(_ref106) {
21616
- var pixels = _ref106.pixels;
21580
+ shadows.forEach(function(_ref103) {
21581
+ var pixels = _ref103.pixels;
21617
21582
  if (pixels.length === 2) {
21618
21583
  pixels.push(0);
21619
21584
  }
@@ -21621,7 +21586,7 @@
21621
21586
  return shadows;
21622
21587
  }
21623
21588
  function _getTextShadowColors(node) {
21624
- var _ref107 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, minRatio = _ref107.minRatio, maxRatio = _ref107.maxRatio, ignoreEdgeCount = _ref107.ignoreEdgeCount;
21589
+ var _ref104 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, minRatio = _ref104.minRatio, maxRatio = _ref104.maxRatio, ignoreEdgeCount = _ref104.ignoreEdgeCount;
21625
21590
  var shadowColors = [];
21626
21591
  var style = window.getComputedStyle(node);
21627
21592
  var textShadow = style.getPropertyValue('text-shadow');
@@ -21684,8 +21649,8 @@
21684
21649
  }
21685
21650
  return shadowColors;
21686
21651
  }
21687
- function textShadowColor(_ref108) {
21688
- var colorStr = _ref108.colorStr, offsetX = _ref108.offsetX, offsetY = _ref108.offsetY, blurRadius = _ref108.blurRadius, fontSize = _ref108.fontSize;
21652
+ function textShadowColor(_ref105) {
21653
+ var colorStr = _ref105.colorStr, offsetX = _ref105.offsetX, offsetY = _ref105.offsetY, blurRadius = _ref105.blurRadius, fontSize = _ref105.fontSize;
21689
21654
  if (offsetX > blurRadius || offsetY > blurRadius) {
21690
21655
  return new color_default(0, 0, 0, 0);
21691
21656
  }
@@ -21714,13 +21679,13 @@
21714
21679
  var _stackingOrder2;
21715
21680
  var bgVNode = get_node_from_tree_default(bgElm);
21716
21681
  var bgColor = getOwnBackgroundColor2(bgVNode);
21717
- var stackingOrder = bgVNode._stackingOrder.filter(function(_ref109) {
21718
- var vNode = _ref109.vNode;
21682
+ var stackingOrder = bgVNode._stackingOrder.filter(function(_ref106) {
21683
+ var vNode = _ref106.vNode;
21719
21684
  return !!vNode;
21720
21685
  });
21721
- stackingOrder.forEach(function(_ref110, index) {
21686
+ stackingOrder.forEach(function(_ref107, index) {
21722
21687
  var _stackingOrder;
21723
- var vNode = _ref110.vNode;
21688
+ var vNode = _ref107.vNode;
21724
21689
  var ancestorVNode2 = (_stackingOrder = stackingOrder[index - 1]) === null || _stackingOrder === void 0 ? void 0 : _stackingOrder.vNode;
21725
21690
  var context2 = addToStackingContext(contextMap, vNode, ancestorVNode2);
21726
21691
  if (index === 0 && !contextMap.get(vNode)) {
@@ -21956,8 +21921,8 @@
21956
21921
  function getTextColor(nodeStyle) {
21957
21922
  return new color_default().parseString(nodeStyle.getPropertyValue('-webkit-text-fill-color') || nodeStyle.getPropertyValue('color'));
21958
21923
  }
21959
- function getStrokeColor(nodeStyle, _ref111) {
21960
- var _ref111$textStrokeEmM = _ref111.textStrokeEmMin, textStrokeEmMin = _ref111$textStrokeEmM === void 0 ? 0 : _ref111$textStrokeEmM;
21924
+ function getStrokeColor(nodeStyle, _ref108) {
21925
+ var _ref108$textStrokeEmM = _ref108.textStrokeEmMin, textStrokeEmMin = _ref108$textStrokeEmM === void 0 ? 0 : _ref108$textStrokeEmM;
21961
21926
  var strokeWidth = parseFloat(nodeStyle.getPropertyValue('-webkit-text-stroke-width'));
21962
21927
  if (strokeWidth === 0) {
21963
21928
  return null;
@@ -22050,7 +22015,7 @@
22050
22015
  var bold = parseFloat(fontWeight) >= boldValue || fontWeight === 'bold';
22051
22016
  var ptSize = Math.ceil(fontSize * 72) / 96;
22052
22017
  var isSmallFont = bold && ptSize < boldTextPt || !bold && ptSize < largeTextPt;
22053
- var _ref112 = isSmallFont ? contrastRatio.normal : contrastRatio.large, expected = _ref112.expected, minThreshold = _ref112.minThreshold, maxThreshold = _ref112.maxThreshold;
22018
+ var _ref109 = isSmallFont ? contrastRatio.normal : contrastRatio.large, expected = _ref109.expected, minThreshold = _ref109.minThreshold, maxThreshold = _ref109.maxThreshold;
22054
22019
  var pseudoElm = findPseudoElement(virtualNode, {
22055
22020
  ignorePseudo: ignorePseudo,
22056
22021
  pseudoSizeThreshold: pseudoSizeThreshold
@@ -22135,8 +22100,8 @@
22135
22100
  }
22136
22101
  return isValid;
22137
22102
  }
22138
- function findPseudoElement(vNode, _ref113) {
22139
- var _ref113$pseudoSizeThr = _ref113.pseudoSizeThreshold, pseudoSizeThreshold = _ref113$pseudoSizeThr === void 0 ? .25 : _ref113$pseudoSizeThr, _ref113$ignorePseudo = _ref113.ignorePseudo, ignorePseudo = _ref113$ignorePseudo === void 0 ? false : _ref113$ignorePseudo;
22103
+ function findPseudoElement(vNode, _ref110) {
22104
+ var _ref110$pseudoSizeThr = _ref110.pseudoSizeThreshold, pseudoSizeThreshold = _ref110$pseudoSizeThr === void 0 ? .25 : _ref110$pseudoSizeThr, _ref110$ignorePseudo = _ref110.ignorePseudo, ignorePseudo = _ref110$ignorePseudo === void 0 ? false : _ref110$ignorePseudo;
22140
22105
  if (ignorePseudo) {
22141
22106
  return;
22142
22107
  }
@@ -22178,7 +22143,7 @@
22178
22143
  }
22179
22144
  function parseUnit(str) {
22180
22145
  var unitRegex = /^([0-9.]+)([a-z]+)$/i;
22181
- var _ref114 = str.match(unitRegex) || [], _ref115 = _slicedToArray(_ref114, 3), _ref115$ = _ref115[1], value = _ref115$ === void 0 ? '' : _ref115$, _ref115$2 = _ref115[2], unit = _ref115$2 === void 0 ? '' : _ref115$2;
22146
+ var _ref111 = str.match(unitRegex) || [], _ref112 = _slicedToArray(_ref111, 3), _ref112$ = _ref112[1], value = _ref112$ === void 0 ? '' : _ref112$, _ref112$2 = _ref112[2], unit = _ref112$2 === void 0 ? '' : _ref112$2;
22182
22147
  return {
22183
22148
  value: parseFloat(value),
22184
22149
  unit: unit.toLowerCase()
@@ -22546,8 +22511,8 @@
22546
22511
  }
22547
22512
  var focusable_element_evaluate_default = focusableElementEvaluate;
22548
22513
  function focusableModalOpenEvaluate(node, options, virtualNode) {
22549
- var tabbableElements = virtualNode.tabbableElements.map(function(_ref116) {
22550
- var actualNode = _ref116.actualNode;
22514
+ var tabbableElements = virtualNode.tabbableElements.map(function(_ref113) {
22515
+ var actualNode = _ref113.actualNode;
22551
22516
  return actualNode;
22552
22517
  });
22553
22518
  if (!tabbableElements || !tabbableElements.length) {
@@ -23028,8 +22993,8 @@
23028
22993
  this.relatedNodes(relatedNodes);
23029
22994
  return true;
23030
22995
  }
23031
- function getInvalidSelector(vChild, nested, _ref117) {
23032
- var _ref117$validRoles = _ref117.validRoles, validRoles = _ref117$validRoles === void 0 ? [] : _ref117$validRoles, _ref117$validNodeName = _ref117.validNodeNames, validNodeNames = _ref117$validNodeName === void 0 ? [] : _ref117$validNodeName;
22996
+ function getInvalidSelector(vChild, nested, _ref114) {
22997
+ var _ref114$validRoles = _ref114.validRoles, validRoles = _ref114$validRoles === void 0 ? [] : _ref114$validRoles, _ref114$validNodeName = _ref114.validNodeNames, validNodeNames = _ref114$validNodeName === void 0 ? [] : _ref114$validNodeName;
23033
22998
  var _vChild$props = vChild.props, nodeName2 = _vChild$props.nodeName, nodeType = _vChild$props.nodeType, nodeValue = _vChild$props.nodeValue;
23034
22999
  var selector = nested ? 'div > ' : '';
23035
23000
  if (nodeType === 3 && nodeValue.trim() !== '') {
@@ -23261,8 +23226,8 @@
23261
23226
  }
23262
23227
  var no_autoplay_audio_evaluate_default = noAutoplayAudioEvaluate;
23263
23228
  function cssOrientationLockEvaluate(node, options, virtualNode, context) {
23264
- var _ref118 = context || {}, _ref118$cssom = _ref118.cssom, cssom = _ref118$cssom === void 0 ? void 0 : _ref118$cssom;
23265
- var _ref119 = options || {}, _ref119$degreeThresho = _ref119.degreeThreshold, degreeThreshold = _ref119$degreeThresho === void 0 ? 0 : _ref119$degreeThresho;
23229
+ var _ref115 = context || {}, _ref115$cssom = _ref115.cssom, cssom = _ref115$cssom === void 0 ? void 0 : _ref115$cssom;
23230
+ var _ref116 = options || {}, _ref116$degreeThresho = _ref116.degreeThreshold, degreeThreshold = _ref116$degreeThresho === void 0 ? 0 : _ref116$degreeThresho;
23266
23231
  if (!cssom || !cssom.length) {
23267
23232
  return void 0;
23268
23233
  }
@@ -23276,8 +23241,8 @@
23276
23241
  if (!orientationRules.length) {
23277
23242
  return 'continue';
23278
23243
  }
23279
- orientationRules.forEach(function(_ref120) {
23280
- var cssRules = _ref120.cssRules;
23244
+ orientationRules.forEach(function(_ref117) {
23245
+ var cssRules = _ref117.cssRules;
23281
23246
  Array.from(cssRules).forEach(function(cssRule) {
23282
23247
  var locked = getIsOrientationLocked(cssRule);
23283
23248
  if (locked && cssRule.selectorText.toUpperCase() !== 'HTML') {
@@ -23302,8 +23267,8 @@
23302
23267
  }
23303
23268
  return false;
23304
23269
  function groupCssomByDocument(cssObjectModel) {
23305
- return cssObjectModel.reduce(function(out, _ref121) {
23306
- var sheet = _ref121.sheet, root = _ref121.root, shadowId = _ref121.shadowId;
23270
+ return cssObjectModel.reduce(function(out, _ref118) {
23271
+ var sheet = _ref118.sheet, root = _ref118.root, shadowId = _ref118.shadowId;
23307
23272
  var key = shadowId ? shadowId : 'topDocument';
23308
23273
  if (!out[key]) {
23309
23274
  out[key] = {
@@ -23319,15 +23284,15 @@
23319
23284
  return out;
23320
23285
  }, {});
23321
23286
  }
23322
- function isMediaRuleWithOrientation(_ref122) {
23323
- var type2 = _ref122.type, cssText = _ref122.cssText;
23287
+ function isMediaRuleWithOrientation(_ref119) {
23288
+ var type2 = _ref119.type, cssText = _ref119.cssText;
23324
23289
  if (type2 !== 4) {
23325
23290
  return false;
23326
23291
  }
23327
23292
  return /orientation:\s*landscape/i.test(cssText) || /orientation:\s*portrait/i.test(cssText);
23328
23293
  }
23329
- function getIsOrientationLocked(_ref123) {
23330
- var selectorText = _ref123.selectorText, style = _ref123.style;
23294
+ function getIsOrientationLocked(_ref120) {
23295
+ var selectorText = _ref120.selectorText, style = _ref120.style;
23331
23296
  if (!selectorText || style.length <= 0) {
23332
23297
  return false;
23333
23298
  }
@@ -23382,7 +23347,7 @@
23382
23347
  }
23383
23348
  }
23384
23349
  function getAngleInDegrees(angleWithUnit) {
23385
- var _ref124 = angleWithUnit.match(/(deg|grad|rad|turn)/) || [], _ref125 = _slicedToArray(_ref124, 1), unit = _ref125[0];
23350
+ var _ref121 = angleWithUnit.match(/(deg|grad|rad|turn)/) || [], _ref122 = _slicedToArray(_ref121, 1), unit = _ref122[0];
23386
23351
  if (!unit) {
23387
23352
  return 0;
23388
23353
  }
@@ -23431,7 +23396,7 @@
23431
23396
  }
23432
23397
  var css_orientation_lock_evaluate_default = cssOrientationLockEvaluate;
23433
23398
  function metaViewportScaleEvaluate(node, options, virtualNode) {
23434
- var _ref126 = options || {}, _ref126$scaleMinimum = _ref126.scaleMinimum, scaleMinimum = _ref126$scaleMinimum === void 0 ? 2 : _ref126$scaleMinimum, _ref126$lowerBound = _ref126.lowerBound, lowerBound = _ref126$lowerBound === void 0 ? false : _ref126$lowerBound;
23399
+ var _ref123 = options || {}, _ref123$scaleMinimum = _ref123.scaleMinimum, scaleMinimum = _ref123$scaleMinimum === void 0 ? 2 : _ref123$scaleMinimum, _ref123$lowerBound = _ref123.lowerBound, lowerBound = _ref123$lowerBound === void 0 ? false : _ref123$lowerBound;
23435
23400
  var content = virtualNode.attr('content') || '';
23436
23401
  if (!content) {
23437
23402
  return true;
@@ -23475,7 +23440,7 @@
23475
23440
  return true;
23476
23441
  }
23477
23442
  var meta_viewport_scale_evaluate_default = metaViewportScaleEvaluate;
23478
- var roundingMargin = .05;
23443
+ var roundingMargin2 = .05;
23479
23444
  function targetOffsetEvaluate(node, options, vNode) {
23480
23445
  var minOffset = (options === null || options === void 0 ? void 0 : options.minOffset) || 24;
23481
23446
  var closeNeighbors = [];
@@ -23487,8 +23452,8 @@
23487
23452
  if (get_role_type_default(vNeighbor) !== 'widget' || !_isFocusable(vNeighbor)) {
23488
23453
  continue;
23489
23454
  }
23490
- var offset = roundToSingleDecimal(_getOffset(vNode, vNeighbor));
23491
- if (offset + roundingMargin >= minOffset) {
23455
+ var offset = roundToSingleDecimal(_getOffset(vNode, vNeighbor, minOffset / 2)) * 2;
23456
+ if (offset + roundingMargin2 >= minOffset) {
23492
23457
  continue;
23493
23458
  }
23494
23459
  closestOffset = Math.min(closestOffset, offset);
@@ -23506,8 +23471,8 @@
23506
23471
  });
23507
23472
  return true;
23508
23473
  }
23509
- this.relatedNodes(closeNeighbors.map(function(_ref127) {
23510
- var actualNode = _ref127.actualNode;
23474
+ this.relatedNodes(closeNeighbors.map(function(_ref124) {
23475
+ var actualNode = _ref124.actualNode;
23511
23476
  return actualNode;
23512
23477
  }));
23513
23478
  if (!closeNeighbors.some(_isInTabOrder)) {
@@ -23527,11 +23492,11 @@
23527
23492
  function roundToSingleDecimal(num) {
23528
23493
  return Math.round(num * 10) / 10;
23529
23494
  }
23530
- var roundingMargin2 = .05;
23495
+ var roundingMargin3 = .05;
23531
23496
  function targetSize(node, options, vNode) {
23532
23497
  var minSize = (options === null || options === void 0 ? void 0 : options.minSize) || 24;
23533
23498
  var nodeRect = vNode.boundingClientRect;
23534
- var hasMinimumSize = rectHasMinimumSize.bind(null, minSize);
23499
+ var hasMinimumSize = rectHasMinimumSize2.bind(null, minSize);
23535
23500
  var nearbyElms = _findNearbyElms(vNode);
23536
23501
  var overflowingContent = filterOverflowingContent(vNode, nearbyElms);
23537
23502
  var _filterByElmsOverlap = filterByElmsOverlap(vNode, nearbyElms), fullyObscuringElms = _filterByElmsOverlap.fullyObscuringElms, partialObscuringElms = _filterByElmsOverlap.partialObscuringElms;
@@ -23550,7 +23515,7 @@
23550
23515
  return negativeOutcome;
23551
23516
  }
23552
23517
  var obscuredWidgets = filterFocusableWidgets(partialObscuringElms);
23553
- var largestInnerRect = getLargestUnobscuredArea(vNode, obscuredWidgets);
23518
+ var largestInnerRect = getLargestUnobscuredArea2(vNode, obscuredWidgets);
23554
23519
  if (overflowingContent.length) {
23555
23520
  if (fullyObscuringElms.length || !hasMinimumSize(largestInnerRect || nodeRect)) {
23556
23521
  this.data({
@@ -23579,7 +23544,7 @@
23579
23544
  }
23580
23545
  function filterOverflowingContent(vNode, nearbyElms) {
23581
23546
  return nearbyElms.filter(function(nearbyElm) {
23582
- return !isEnclosedRect(nearbyElm, vNode) && isDescendantNotInTabOrder(vNode, nearbyElm);
23547
+ return !isEnclosedRect2(nearbyElm, vNode) && isDescendantNotInTabOrder(vNode, nearbyElm);
23583
23548
  });
23584
23549
  }
23585
23550
  function filterByElmsOverlap(vNode, nearbyElms) {
@@ -23590,7 +23555,7 @@
23590
23555
  for (_iterator19.s(); !(_step19 = _iterator19.n()).done; ) {
23591
23556
  var vNeighbor = _step19.value;
23592
23557
  if (!isDescendantNotInTabOrder(vNode, vNeighbor) && _hasVisualOverlap(vNode, vNeighbor) && getCssPointerEvents(vNeighbor) !== 'none') {
23593
- if (isEnclosedRect(vNode, vNeighbor)) {
23558
+ if (isEnclosedRect2(vNode, vNeighbor)) {
23594
23559
  fullyObscuringElms.push(vNeighbor);
23595
23560
  } else {
23596
23561
  partialObscuringElms.push(vNeighbor);
@@ -23607,22 +23572,22 @@
23607
23572
  partialObscuringElms: partialObscuringElms
23608
23573
  };
23609
23574
  }
23610
- function getLargestUnobscuredArea(vNode, obscuredNodes) {
23575
+ function getLargestUnobscuredArea2(vNode, obscuredNodes) {
23611
23576
  var nodeRect = vNode.boundingClientRect;
23612
23577
  if (obscuredNodes.length === 0) {
23613
23578
  return null;
23614
23579
  }
23615
- var obscuringRects = obscuredNodes.map(function(_ref128) {
23616
- var rect = _ref128.boundingClientRect;
23580
+ var obscuringRects = obscuredNodes.map(function(_ref125) {
23581
+ var rect = _ref125.boundingClientRect;
23617
23582
  return rect;
23618
23583
  });
23619
23584
  var unobscuredRects = _splitRects(nodeRect, obscuringRects);
23620
- return getLargestRect(unobscuredRects);
23585
+ return getLargestRect2(unobscuredRects);
23621
23586
  }
23622
- function getLargestRect(rects, minSize) {
23587
+ function getLargestRect2(rects, minSize) {
23623
23588
  return rects.reduce(function(rectA, rectB) {
23624
- var rectAisMinimum = rectHasMinimumSize(minSize, rectA);
23625
- var rectBisMinimum = rectHasMinimumSize(minSize, rectB);
23589
+ var rectAisMinimum = rectHasMinimumSize2(minSize, rectA);
23590
+ var rectBisMinimum = rectHasMinimumSize2(minSize, rectB);
23626
23591
  if (rectAisMinimum !== rectBisMinimum) {
23627
23592
  return rectAisMinimum ? rectA : rectB;
23628
23593
  }
@@ -23636,7 +23601,7 @@
23636
23601
  return get_role_type_default(vNode) === 'widget' && _isFocusable(vNode);
23637
23602
  });
23638
23603
  }
23639
- function isEnclosedRect(vNodeA, vNodeB) {
23604
+ function isEnclosedRect2(vNodeA, vNodeB) {
23640
23605
  var rectA = vNodeA.boundingClientRect;
23641
23606
  var rectB = vNodeB.boundingClientRect;
23642
23607
  return rectA.top >= rectB.top && rectA.left >= rectB.left && rectA.bottom <= rectB.bottom && rectA.right <= rectB.right;
@@ -23653,13 +23618,13 @@
23653
23618
  function isDescendantNotInTabOrder(vAncestor, vNode) {
23654
23619
  return vAncestor.actualNode.contains(vNode.actualNode) && !_isInTabOrder(vNode);
23655
23620
  }
23656
- function rectHasMinimumSize(minSize, _ref129) {
23657
- var width = _ref129.width, height = _ref129.height;
23658
- return width + roundingMargin2 >= minSize && height + roundingMargin2 >= minSize;
23621
+ function rectHasMinimumSize2(minSize, _ref126) {
23622
+ var width = _ref126.width, height = _ref126.height;
23623
+ return width + roundingMargin3 >= minSize && height + roundingMargin3 >= minSize;
23659
23624
  }
23660
23625
  function mapActualNodes(vNodes) {
23661
- return vNodes.map(function(_ref130) {
23662
- var actualNode = _ref130.actualNode;
23626
+ return vNodes.map(function(_ref127) {
23627
+ var actualNode = _ref127.actualNode;
23663
23628
  return actualNode;
23664
23629
  });
23665
23630
  }
@@ -23685,14 +23650,14 @@
23685
23650
  }
23686
23651
  function getHeadingOrder(results) {
23687
23652
  results = _toConsumableArray(results);
23688
- results.sort(function(_ref131, _ref132) {
23689
- var nodeA = _ref131.node;
23690
- var nodeB = _ref132.node;
23653
+ results.sort(function(_ref128, _ref129) {
23654
+ var nodeA = _ref128.node;
23655
+ var nodeB = _ref129.node;
23691
23656
  return nodeA.ancestry.length - nodeB.ancestry.length;
23692
23657
  });
23693
23658
  var headingOrder = results.reduce(mergeHeadingOrder, []);
23694
- return headingOrder.filter(function(_ref133) {
23695
- var level = _ref133.level;
23659
+ return headingOrder.filter(function(_ref130) {
23660
+ var level = _ref130.level;
23696
23661
  return level !== -1;
23697
23662
  });
23698
23663
  }
@@ -23743,7 +23708,7 @@
23743
23708
  var headingRole = role && role.includes('heading');
23744
23709
  var ariaHeadingLevel = vNode.attr('aria-level');
23745
23710
  var ariaLevel = parseInt(ariaHeadingLevel, 10);
23746
- var _ref134 = vNode.props.nodeName.match(/h(\d)/) || [], _ref135 = _slicedToArray(_ref134, 2), headingLevel = _ref135[1];
23711
+ var _ref131 = vNode.props.nodeName.match(/h(\d)/) || [], _ref132 = _slicedToArray(_ref131, 2), headingLevel = _ref132[1];
23747
23712
  if (!headingRole) {
23748
23713
  return -1;
23749
23714
  }
@@ -23807,8 +23772,8 @@
23807
23772
  if (results.length < 2) {
23808
23773
  return results;
23809
23774
  }
23810
- var incompleteResults = results.filter(function(_ref136) {
23811
- var result = _ref136.result;
23775
+ var incompleteResults = results.filter(function(_ref133) {
23776
+ var result = _ref133.result;
23812
23777
  return result !== void 0;
23813
23778
  });
23814
23779
  var uniqueResults = [];
@@ -23820,12 +23785,12 @@
23820
23785
  if (nameMap[name]) {
23821
23786
  return 'continue';
23822
23787
  }
23823
- var sameNameResults = incompleteResults.filter(function(_ref137, resultNum) {
23824
- var data = _ref137.data;
23788
+ var sameNameResults = incompleteResults.filter(function(_ref134, resultNum) {
23789
+ var data = _ref134.data;
23825
23790
  return data.name === name && resultNum !== index;
23826
23791
  });
23827
- var isSameUrl = sameNameResults.every(function(_ref138) {
23828
- var data = _ref138.data;
23792
+ var isSameUrl = sameNameResults.every(function(_ref135) {
23793
+ var data = _ref135.data;
23829
23794
  return isIdenticalObject(data.urlProps, urlProps);
23830
23795
  });
23831
23796
  if (sameNameResults.length && !isSameUrl) {
@@ -24244,7 +24209,7 @@
24244
24209
  var separatorRegex = /[;,\s]/;
24245
24210
  var validRedirectNumRegex = /^[0-9.]+$/;
24246
24211
  function metaRefreshEvaluate(node, options, virtualNode) {
24247
- var _ref139 = options || {}, minDelay = _ref139.minDelay, maxDelay = _ref139.maxDelay;
24212
+ var _ref136 = options || {}, minDelay = _ref136.minDelay, maxDelay = _ref136.maxDelay;
24248
24213
  var content = (virtualNode.attr('content') || '').trim();
24249
24214
  var _content$split = content.split(separatorRegex), _content$split2 = _slicedToArray(_content$split, 1), redirectStr = _content$split2[0];
24250
24215
  if (!redirectStr.match(validRedirectNumRegex)) {
@@ -24415,8 +24380,8 @@
24415
24380
  } else if (node !== document.body && has_content_default(node, true)) {
24416
24381
  return [ virtualNode ];
24417
24382
  } else {
24418
- return virtualNode.children.filter(function(_ref140) {
24419
- var actualNode = _ref140.actualNode;
24383
+ return virtualNode.children.filter(function(_ref137) {
24384
+ var actualNode = _ref137.actualNode;
24420
24385
  return actualNode.nodeType === 1;
24421
24386
  }).map(function(vNode) {
24422
24387
  return findRegionlessElms(vNode, options);
@@ -24570,8 +24535,8 @@
24570
24535
  }
24571
24536
  return false;
24572
24537
  }
24573
- function getNumberValue(domNode, _ref141) {
24574
- var cssProperty = _ref141.cssProperty, absoluteValues = _ref141.absoluteValues, normalValue = _ref141.normalValue;
24538
+ function getNumberValue(domNode, _ref138) {
24539
+ var cssProperty = _ref138.cssProperty, absoluteValues = _ref138.absoluteValues, normalValue = _ref138.normalValue;
24575
24540
  var computedStyle = window.getComputedStyle(domNode);
24576
24541
  var cssPropValue = computedStyle.getPropertyValue(cssProperty);
24577
24542
  if (cssPropValue === 'normal') {
@@ -24648,8 +24613,8 @@
24648
24613
  if (!virtualNode.children) {
24649
24614
  return void 0;
24650
24615
  }
24651
- var titleNode = virtualNode.children.find(function(_ref142) {
24652
- var props = _ref142.props;
24616
+ var titleNode = virtualNode.children.find(function(_ref139) {
24617
+ var props = _ref139.props;
24653
24618
  return props.nodeName === 'title';
24654
24619
  });
24655
24620
  if (!titleNode) {
@@ -25240,7 +25205,7 @@
25240
25205
  if (!role || [ 'none', 'presentation' ].includes(role)) {
25241
25206
  return true;
25242
25207
  }
25243
- var _ref143 = aria_roles_default[role] || {}, accessibleNameRequired = _ref143.accessibleNameRequired;
25208
+ var _ref140 = aria_roles_default[role] || {}, accessibleNameRequired = _ref140.accessibleNameRequired;
25244
25209
  if (accessibleNameRequired || _isFocusable(virtualNode)) {
25245
25210
  return true;
25246
25211
  }
@@ -26553,8 +26518,8 @@
26553
26518
  });
26554
26519
  };
26555
26520
  }
26556
- function getHelpUrl(_ref144, ruleId, version) {
26557
- var brand = _ref144.brand, application = _ref144.application, lang = _ref144.lang;
26521
+ function getHelpUrl(_ref141, ruleId, version) {
26522
+ var brand = _ref141.brand, application = _ref141.application, lang = _ref141.lang;
26558
26523
  return constants_default.helpUrlBase + brand + '/' + (version || axe.version.substring(0, axe.version.lastIndexOf('.'))) + '/' + ruleId + '?application=' + encodeURIComponent(application) + (lang && lang !== 'en' ? '&lang=' + encodeURIComponent(lang) : '');
26559
26524
  }
26560
26525
  function setupGlobals(context) {
@@ -26767,9 +26732,9 @@
26767
26732
  toolOptions: options
26768
26733
  });
26769
26734
  }
26770
- function normalizeRunParams(_ref145) {
26771
- var _ref147, _options$reporter, _axe$_audit;
26772
- var _ref146 = _slicedToArray(_ref145, 3), context = _ref146[0], options = _ref146[1], callback = _ref146[2];
26735
+ function normalizeRunParams(_ref142) {
26736
+ var _ref144, _options$reporter, _axe$_audit;
26737
+ var _ref143 = _slicedToArray(_ref142, 3), context = _ref143[0], options = _ref143[1], callback = _ref143[2];
26773
26738
  var typeErr = new TypeError('axe.run arguments are invalid');
26774
26739
  if (!isContextSpec(context)) {
26775
26740
  if (callback !== void 0) {
@@ -26790,7 +26755,7 @@
26790
26755
  throw typeErr;
26791
26756
  }
26792
26757
  options = _clone(options);
26793
- options.reporter = (_ref147 = (_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 && _ref147 !== void 0 ? _ref147 : 'v1';
26758
+ options.reporter = (_ref144 = (_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 && _ref144 !== void 0 ? _ref144 : 'v1';
26794
26759
  return {
26795
26760
  context: context,
26796
26761
  options: options,
@@ -26903,14 +26868,14 @@
26903
26868
  return new Promise(function(res, rej) {
26904
26869
  axe._audit.run(contextObj, options, res, rej);
26905
26870
  }).then(function(results) {
26906
- results = results.map(function(_ref148) {
26907
- var nodes = _ref148.nodes, result = _objectWithoutProperties(_ref148, _excluded13);
26871
+ results = results.map(function(_ref145) {
26872
+ var nodes = _ref145.nodes, result = _objectWithoutProperties(_ref145, _excluded13);
26908
26873
  return _extends({
26909
26874
  nodes: nodes.map(serializeNode)
26910
26875
  }, result);
26911
26876
  });
26912
- var frames = contextObj.frames.map(function(_ref149) {
26913
- var node = _ref149.node;
26877
+ var frames = contextObj.frames.map(function(_ref146) {
26878
+ var node = _ref146.node;
26914
26879
  return new dq_element_default(node, options).toJSON();
26915
26880
  });
26916
26881
  var environmentData;
@@ -26930,13 +26895,13 @@
26930
26895
  return Promise.reject(err2);
26931
26896
  });
26932
26897
  }
26933
- function serializeNode(_ref150) {
26934
- var node = _ref150.node, nodeResult = _objectWithoutProperties(_ref150, _excluded14);
26898
+ function serializeNode(_ref147) {
26899
+ var node = _ref147.node, nodeResult = _objectWithoutProperties(_ref147, _excluded14);
26935
26900
  nodeResult.node = node.toJSON();
26936
26901
  for (var _i42 = 0, _arr4 = [ 'any', 'all', 'none' ]; _i42 < _arr4.length; _i42++) {
26937
26902
  var type2 = _arr4[_i42];
26938
- nodeResult[type2] = nodeResult[type2].map(function(_ref151) {
26939
- var relatedNodes = _ref151.relatedNodes, checkResult = _objectWithoutProperties(_ref151, _excluded15);
26903
+ nodeResult[type2] = nodeResult[type2].map(function(_ref148) {
26904
+ var relatedNodes = _ref148.relatedNodes, checkResult = _objectWithoutProperties(_ref148, _excluded15);
26940
26905
  return _extends({}, checkResult, {
26941
26906
  relatedNodes: relatedNodes.map(function(relatedNode) {
26942
26907
  return relatedNode.toJSON();
@@ -26947,14 +26912,14 @@
26947
26912
  return nodeResult;
26948
26913
  }
26949
26914
  function finishRun(partialResults) {
26950
- var _ref153, _options$reporter2, _axe$_audit2;
26915
+ var _ref150, _options$reporter2, _axe$_audit2;
26951
26916
  var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
26952
26917
  options = _clone(options);
26953
- var _ref152 = partialResults.find(function(r) {
26918
+ var _ref149 = partialResults.find(function(r) {
26954
26919
  return r.environmentData;
26955
- }) || {}, environmentData = _ref152.environmentData;
26920
+ }) || {}, environmentData = _ref149.environmentData;
26956
26921
  axe._audit.normalizeOptions(options);
26957
- 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';
26922
+ options.reporter = (_ref150 = (_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 && _ref150 !== void 0 ? _ref150 : 'v1';
26958
26923
  setFrameSpec(partialResults);
26959
26924
  var results = merge_results_default(partialResults);
26960
26925
  results = axe._audit.after(results, options);
@@ -26984,8 +26949,8 @@
26984
26949
  _iterator22.f();
26985
26950
  }
26986
26951
  }
26987
- function getMergedFrameSpecs(_ref154) {
26988
- var childFrameSpecs = _ref154.frames, parentFrameSpec = _ref154.frameSpec;
26952
+ function getMergedFrameSpecs(_ref151) {
26953
+ var childFrameSpecs = _ref151.frames, parentFrameSpec = _ref151.frameSpec;
26989
26954
  if (!parentFrameSpec) {
26990
26955
  return childFrameSpecs;
26991
26956
  }
@@ -27052,9 +27017,9 @@
27052
27017
  for (var _i43 = 0, _types = types; _i43 < _types.length; _i43++) {
27053
27018
  var type2 = _types[_i43];
27054
27019
  if (transformedResult[type2] && Array.isArray(transformedResult[type2])) {
27055
- transformedResult[type2] = transformedResult[type2].map(function(_ref155) {
27020
+ transformedResult[type2] = transformedResult[type2].map(function(_ref152) {
27056
27021
  var _node;
27057
- var node = _ref155.node, typeResult = _objectWithoutProperties(_ref155, _excluded18);
27022
+ var node = _ref152.node, typeResult = _objectWithoutProperties(_ref152, _excluded18);
27058
27023
  node = typeof ((_node = node) === null || _node === void 0 ? void 0 : _node.toJSON) === 'function' ? node.toJSON() : node;
27059
27024
  return _extends({
27060
27025
  node: node
@@ -28276,11 +28241,11 @@
28276
28241
  'target-offset': {
28277
28242
  impact: 'serious',
28278
28243
  messages: {
28279
- pass: 'Target has sufficient offset from its closest neighbor (${data.closestOffset}px should be at least ${data.minOffset}px)',
28280
- fail: 'Target has insufficient offset from its closest neighbor (${data.closestOffset}px should be at least ${data.minOffset}px)',
28244
+ pass: 'Target has sufficient space from its closest neighbors (${data.closestOffset}px should be at least ${data.minOffset}px)',
28245
+ fail: 'Target has insufficient space to its closest neighbors. Safe clickable space has a diameter of {$data.closestOffset}px instead of at least ${data.minOffset}px)',
28281
28246
  incomplete: {
28282
- default: 'Element with negative tabindex has insufficient offset from its closest neighbor (${data.closestOffset}px should be at least ${data.minOffset}px). Is this a target?',
28283
- nonTabbableNeighbor: 'Target has insufficient offset from a neighbor with negative tabindex (${data.closestOffset}px should be at least ${data.minOffset}px). Is the neighbor a target?'
28247
+ default: 'Element with negative tabindex has insufficient space to its closest neighbors. Safe clickable space has a diameter of {$data.closestOffset}px instead of at least ${data.minOffset}px). Is this a target?',
28248
+ nonTabbableNeighbor: 'Target has insufficient space to its closest neighbors. Safe clickable space has a diameter of {$data.closestOffset}px instead of at least ${data.minOffset}px). Is the neighbor a target?'
28284
28249
  }
28285
28250
  }
28286
28251
  },
@@ -28736,6 +28701,7 @@
28736
28701
  none: []
28737
28702
  }, {
28738
28703
  id: 'aria-braille-equivalent',
28704
+ reviewOnFail: true,
28739
28705
  impact: 'serious',
28740
28706
  selector: '[aria-brailleroledescription], [aria-braillelabel]',
28741
28707
  tags: [ 'cat.aria', 'wcag2a', 'wcag412', 'EN-301-549', 'EN-9.4.1.2' ],