axe-core 4.10.0-canary.9673d21 → 4.10.0-canary.a9710d7
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 +223 -225
- package/axe.min.js +2 -2
- package/locales/_template.json +13 -13
- package/locales/ru.json +412 -412
- package/package.json +2 -1
- package/sri-history.json +3 -3
package/axe.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! axe v4.10.0-canary.
|
|
1
|
+
/*! axe v4.10.0-canary.a9710d7
|
|
2
2
|
* Copyright (c) 2015 - 2024 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(o);
|
|
23
23
|
}
|
|
24
24
|
var axe = axe || {};
|
|
25
|
-
axe.version = '4.10.0-canary.
|
|
25
|
+
axe.version = '4.10.0-canary.a9710d7';
|
|
26
26
|
if (typeof define === 'function' && define.amd) {
|
|
27
27
|
define('axe-core', [], function() {
|
|
28
28
|
return axe;
|
|
@@ -11738,7 +11738,7 @@
|
|
|
11738
11738
|
},
|
|
11739
11739
|
form: {
|
|
11740
11740
|
contentTypes: [ 'flow' ],
|
|
11741
|
-
allowedRoles: [ 'search', 'none', 'presentation' ]
|
|
11741
|
+
allowedRoles: [ 'form', 'search', 'none', 'presentation' ]
|
|
11742
11742
|
},
|
|
11743
11743
|
h1: {
|
|
11744
11744
|
contentTypes: [ 'heading', 'flow' ],
|
|
@@ -13299,13 +13299,11 @@
|
|
|
13299
13299
|
button: ''
|
|
13300
13300
|
};
|
|
13301
13301
|
var nativeTextMethods = {
|
|
13302
|
-
valueText: function valueText(
|
|
13303
|
-
|
|
13304
|
-
return actualNode.value || '';
|
|
13302
|
+
valueText: function valueText(vNode) {
|
|
13303
|
+
return vNode.props.value || '';
|
|
13305
13304
|
},
|
|
13306
|
-
buttonDefaultText: function buttonDefaultText(
|
|
13307
|
-
|
|
13308
|
-
return defaultButtonValues[actualNode.type] || '';
|
|
13305
|
+
buttonDefaultText: function buttonDefaultText(vNode) {
|
|
13306
|
+
return defaultButtonValues[vNode.props.type] || '';
|
|
13309
13307
|
},
|
|
13310
13308
|
tableCaptionText: descendantText.bind(null, 'caption'),
|
|
13311
13309
|
figureText: descendantText.bind(null, 'figcaption'),
|
|
@@ -13324,8 +13322,8 @@
|
|
|
13324
13322
|
function attrText(attr, vNode) {
|
|
13325
13323
|
return vNode.attr(attr) || '';
|
|
13326
13324
|
}
|
|
13327
|
-
function descendantText(nodeName2,
|
|
13328
|
-
var actualNode =
|
|
13325
|
+
function descendantText(nodeName2, _ref35, context) {
|
|
13326
|
+
var actualNode = _ref35.actualNode;
|
|
13329
13327
|
nodeName2 = nodeName2.toLowerCase();
|
|
13330
13328
|
var nodeNames2 = [ nodeName2, actualNode.nodeName.toLowerCase() ].join(',');
|
|
13331
13329
|
var candidate = actualNode.querySelector(nodeNames2);
|
|
@@ -13593,7 +13591,7 @@
|
|
|
13593
13591
|
locations: [ 'billing', 'shipping' ]
|
|
13594
13592
|
};
|
|
13595
13593
|
function isValidAutocomplete(autocompleteValue) {
|
|
13596
|
-
var
|
|
13594
|
+
var _ref36 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, _ref36$looseTyped = _ref36.looseTyped, looseTyped = _ref36$looseTyped === void 0 ? false : _ref36$looseTyped, _ref36$stateTerms = _ref36.stateTerms, stateTerms = _ref36$stateTerms === void 0 ? [] : _ref36$stateTerms, _ref36$locations = _ref36.locations, locations = _ref36$locations === void 0 ? [] : _ref36$locations, _ref36$qualifiers = _ref36.qualifiers, qualifiers = _ref36$qualifiers === void 0 ? [] : _ref36$qualifiers, _ref36$standaloneTerm = _ref36.standaloneTerms, standaloneTerms = _ref36$standaloneTerm === void 0 ? [] : _ref36$standaloneTerm, _ref36$qualifiedTerms = _ref36.qualifiedTerms, qualifiedTerms = _ref36$qualifiedTerms === void 0 ? [] : _ref36$qualifiedTerms, _ref36$ignoredValues = _ref36.ignoredValues, ignoredValues = _ref36$ignoredValues === void 0 ? [] : _ref36$ignoredValues;
|
|
13597
13595
|
autocompleteValue = autocompleteValue.toLowerCase().trim();
|
|
13598
13596
|
stateTerms = stateTerms.concat(_autocomplete.stateTerms);
|
|
13599
13597
|
if (stateTerms.includes(autocompleteValue) || autocompleteValue === '') {
|
|
@@ -13861,8 +13859,8 @@
|
|
|
13861
13859
|
if (hiddenTextElms.includes(elm.props.nodeName)) {
|
|
13862
13860
|
return false;
|
|
13863
13861
|
}
|
|
13864
|
-
return elm.children.some(function(
|
|
13865
|
-
var props =
|
|
13862
|
+
return elm.children.some(function(_ref37) {
|
|
13863
|
+
var props = _ref37.props;
|
|
13866
13864
|
return props.nodeType === 3 && props.nodeValue.trim();
|
|
13867
13865
|
});
|
|
13868
13866
|
}
|
|
@@ -14587,7 +14585,7 @@
|
|
|
14587
14585
|
var \u03b5$4 = 75e-6;
|
|
14588
14586
|
var _ColorSpace2 = (_Class_brand = new WeakSet(), _path = new WeakMap(), function() {
|
|
14589
14587
|
function _ColorSpace(options) {
|
|
14590
|
-
var _options$coords,
|
|
14588
|
+
var _options$coords, _ref38, _options$white, _options$formats, _this$formats$functio, _this$formats, _this$formats2;
|
|
14591
14589
|
_classCallCheck(this, _ColorSpace);
|
|
14592
14590
|
_classPrivateMethodInitSpec(this, _Class_brand);
|
|
14593
14591
|
_classPrivateFieldInitSpec(this, _path, void 0);
|
|
@@ -14601,7 +14599,7 @@
|
|
|
14601
14599
|
}
|
|
14602
14600
|
var _coords = (_options$coords = options.coords) !== null && _options$coords !== void 0 ? _options$coords : this.base.coords;
|
|
14603
14601
|
this.coords = _coords;
|
|
14604
|
-
var white2 = (
|
|
14602
|
+
var white2 = (_ref38 = (_options$white = options.white) !== null && _options$white !== void 0 ? _options$white : this.base.white) !== null && _ref38 !== void 0 ? _ref38 : 'D65';
|
|
14605
14603
|
this.white = getWhite(white2);
|
|
14606
14604
|
this.formats = (_options$formats = options.formats) !== null && _options$formats !== void 0 ? _options$formats : {};
|
|
14607
14605
|
for (var name in this.formats) {
|
|
@@ -14626,7 +14624,7 @@
|
|
|
14626
14624
|
return _createClass(_ColorSpace, [ {
|
|
14627
14625
|
key: 'inGamut',
|
|
14628
14626
|
value: function inGamut(coords) {
|
|
14629
|
-
var
|
|
14627
|
+
var _ref39 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, _ref39$epsilon = _ref39.epsilon, epsilon = _ref39$epsilon === void 0 ? \u03b5$4 : _ref39$epsilon;
|
|
14630
14628
|
if (this.isPolar) {
|
|
14631
14629
|
coords = this.toBase(coords);
|
|
14632
14630
|
return this.base.inGamut(coords, {
|
|
@@ -14685,9 +14683,9 @@
|
|
|
14685
14683
|
key: 'to',
|
|
14686
14684
|
value: function to(space, coords) {
|
|
14687
14685
|
if (arguments.length === 1) {
|
|
14688
|
-
var
|
|
14689
|
-
space =
|
|
14690
|
-
coords =
|
|
14686
|
+
var _ref40 = [ space.space, space.coords ];
|
|
14687
|
+
space = _ref40[0];
|
|
14688
|
+
coords = _ref40[1];
|
|
14691
14689
|
}
|
|
14692
14690
|
space = _ColorSpace2.get(space);
|
|
14693
14691
|
if (this === space) {
|
|
@@ -14722,9 +14720,9 @@
|
|
|
14722
14720
|
key: 'from',
|
|
14723
14721
|
value: function from(space, coords) {
|
|
14724
14722
|
if (arguments.length === 1) {
|
|
14725
|
-
var
|
|
14726
|
-
space =
|
|
14727
|
-
coords =
|
|
14723
|
+
var _ref41 = [ space.space, space.coords ];
|
|
14724
|
+
space = _ref41[0];
|
|
14725
|
+
coords = _ref41[1];
|
|
14728
14726
|
}
|
|
14729
14727
|
space = _ColorSpace2.get(space);
|
|
14730
14728
|
return space.to(this, coords);
|
|
@@ -14816,9 +14814,9 @@
|
|
|
14816
14814
|
coord = ref;
|
|
14817
14815
|
}
|
|
14818
14816
|
} else if (Array.isArray(ref)) {
|
|
14819
|
-
var
|
|
14820
|
-
space =
|
|
14821
|
-
coord =
|
|
14817
|
+
var _ref42 = _slicedToArray(ref, 2);
|
|
14818
|
+
space = _ref42[0];
|
|
14819
|
+
coord = _ref42[1];
|
|
14822
14820
|
} else {
|
|
14823
14821
|
space = ref.space;
|
|
14824
14822
|
coord = ref.coordId;
|
|
@@ -14865,8 +14863,8 @@
|
|
|
14865
14863
|
format.type || (format.type = 'function');
|
|
14866
14864
|
format.name || (format.name = 'color');
|
|
14867
14865
|
format.coordGrammar = parseCoordGrammar(format.coords);
|
|
14868
|
-
var coordFormats = Object.entries(this.coords).map(function(
|
|
14869
|
-
var
|
|
14866
|
+
var coordFormats = Object.entries(this.coords).map(function(_ref150, i) {
|
|
14867
|
+
var _ref151 = _slicedToArray(_ref150, 2), id = _ref151[0], coordMeta = _ref151[1];
|
|
14870
14868
|
var outputType = format.coordGrammar[i][0];
|
|
14871
14869
|
var fromRange = coordMeta.range || coordMeta.refRange;
|
|
14872
14870
|
var toRange = outputType.range, suffix = '';
|
|
@@ -15048,9 +15046,9 @@
|
|
|
15048
15046
|
}
|
|
15049
15047
|
var coords = env.parsed.args;
|
|
15050
15048
|
if (format.coordGrammar) {
|
|
15051
|
-
Object.entries(space.coords).forEach(function(
|
|
15049
|
+
Object.entries(space.coords).forEach(function(_ref43, i) {
|
|
15052
15050
|
var _coords$i;
|
|
15053
|
-
var
|
|
15051
|
+
var _ref44 = _slicedToArray(_ref43, 2), id = _ref44[0], coordMeta = _ref44[1];
|
|
15054
15052
|
var coordGrammar2 = format.coordGrammar[i];
|
|
15055
15053
|
var providedType = (_coords$i = coords[i]) === null || _coords$i === void 0 ? void 0 : _coords$i.type;
|
|
15056
15054
|
coordGrammar2 = coordGrammar2.find(function(c4) {
|
|
@@ -15314,7 +15312,7 @@
|
|
|
15314
15312
|
var r2d = 180 / \u03c0$1;
|
|
15315
15313
|
var d2r$1 = \u03c0$1 / 180;
|
|
15316
15314
|
function deltaE2000(color, sample) {
|
|
15317
|
-
var
|
|
15315
|
+
var _ref45 = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}, _ref45$kL = _ref45.kL, kL = _ref45$kL === void 0 ? 1 : _ref45$kL, _ref45$kC = _ref45.kC, kC = _ref45$kC === void 0 ? 1 : _ref45$kC, _ref45$kH = _ref45.kH, kH = _ref45$kH === void 0 ? 1 : _ref45$kH;
|
|
15318
15316
|
var _lab$from = lab.from(color), _lab$from2 = _slicedToArray(_lab$from, 3), L1 = _lab$from2[0], a1 = _lab$from2[1], b1 = _lab$from2[2];
|
|
15319
15317
|
var C1 = lch.from(lab, [ L1, a1, b1 ])[1];
|
|
15320
15318
|
var _lab$from3 = lab.from(sample), _lab$from4 = _slicedToArray(_lab$from3, 3), L2 = _lab$from4[0], a2 = _lab$from4[1], b2 = _lab$from4[2];
|
|
@@ -15394,7 +15392,7 @@
|
|
|
15394
15392
|
var \u03b5$2 = 75e-6;
|
|
15395
15393
|
function inGamut(color) {
|
|
15396
15394
|
var space = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : color.space;
|
|
15397
|
-
var
|
|
15395
|
+
var _ref46 = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}, _ref46$epsilon = _ref46.epsilon, epsilon = _ref46$epsilon === void 0 ? \u03b5$2 : _ref46$epsilon;
|
|
15398
15396
|
color = getColor(color);
|
|
15399
15397
|
space = ColorSpace.get(space);
|
|
15400
15398
|
var coords = color.coords;
|
|
@@ -15413,7 +15411,7 @@
|
|
|
15413
15411
|
};
|
|
15414
15412
|
}
|
|
15415
15413
|
function toGamut(color) {
|
|
15416
|
-
var
|
|
15414
|
+
var _ref47 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, _ref47$method = _ref47.method, method = _ref47$method === void 0 ? defaults.gamut_mapping : _ref47$method, _ref47$space = _ref47.space, space = _ref47$space === void 0 ? color.space : _ref47$space;
|
|
15417
15415
|
if (isString(arguments[1])) {
|
|
15418
15416
|
space = arguments[1];
|
|
15419
15417
|
}
|
|
@@ -15483,7 +15481,7 @@
|
|
|
15483
15481
|
}
|
|
15484
15482
|
toGamut.returns = 'color';
|
|
15485
15483
|
function to(color, space) {
|
|
15486
|
-
var
|
|
15484
|
+
var _ref48 = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}, inGamut2 = _ref48.inGamut;
|
|
15487
15485
|
color = getColor(color);
|
|
15488
15486
|
space = ColorSpace.get(space);
|
|
15489
15487
|
var coords = space.from(color);
|
|
@@ -15499,13 +15497,13 @@
|
|
|
15499
15497
|
}
|
|
15500
15498
|
to.returns = 'color';
|
|
15501
15499
|
function serialize(color) {
|
|
15502
|
-
var
|
|
15503
|
-
var
|
|
15504
|
-
var
|
|
15500
|
+
var _ref50, _color$space$getForma;
|
|
15501
|
+
var _ref49 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
15502
|
+
var _ref49$precision = _ref49.precision, precision = _ref49$precision === void 0 ? defaults.precision : _ref49$precision, _ref49$format = _ref49.format, format = _ref49$format === void 0 ? 'default' : _ref49$format, _ref49$inGamut = _ref49.inGamut, inGamut$1 = _ref49$inGamut === void 0 ? true : _ref49$inGamut, customOptions = _objectWithoutProperties(_ref49, _excluded9);
|
|
15505
15503
|
var ret;
|
|
15506
15504
|
color = getColor(color);
|
|
15507
15505
|
var formatId = format;
|
|
15508
|
-
format = (
|
|
15506
|
+
format = (_ref50 = (_color$space$getForma = color.space.getFormat(format)) !== null && _color$space$getForma !== void 0 ? _color$space$getForma : color.space.getFormat('default')) !== null && _ref50 !== void 0 ? _ref50 : ColorSpace.DEFAULT_FORMAT;
|
|
15509
15507
|
inGamut$1 || (inGamut$1 = format.toGamut);
|
|
15510
15508
|
var coords = color.coords;
|
|
15511
15509
|
coords = coords.map(function(c4) {
|
|
@@ -15824,7 +15822,7 @@
|
|
|
15824
15822
|
};
|
|
15825
15823
|
},
|
|
15826
15824
|
serialize: function serialize(coords, alpha) {
|
|
15827
|
-
var
|
|
15825
|
+
var _ref51 = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}, _ref51$collapse = _ref51.collapse, collapse = _ref51$collapse === void 0 ? true : _ref51$collapse;
|
|
15828
15826
|
if (alpha < 1) {
|
|
15829
15827
|
coords.push(alpha);
|
|
15830
15828
|
}
|
|
@@ -15899,8 +15897,8 @@
|
|
|
15899
15897
|
}
|
|
15900
15898
|
function _display(color) {
|
|
15901
15899
|
var _CSS2;
|
|
15902
|
-
var
|
|
15903
|
-
var
|
|
15900
|
+
var _ref52 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
15901
|
+
var _ref52$space = _ref52.space, space = _ref52$space === void 0 ? defaults.display_space : _ref52$space, options = _objectWithoutProperties(_ref52, _excluded10);
|
|
15904
15902
|
var ret = serialize(color, options);
|
|
15905
15903
|
if (typeof CSS === 'undefined' || (_CSS2 = CSS) !== null && _CSS2 !== void 0 && _CSS2.supports('color', ret) || !defaults.display_space) {
|
|
15906
15904
|
ret = new String(ret);
|
|
@@ -15960,9 +15958,9 @@
|
|
|
15960
15958
|
var Y1 = Math.max(getLuminance(color1), 0);
|
|
15961
15959
|
var Y2 = Math.max(getLuminance(color2), 0);
|
|
15962
15960
|
if (Y2 > Y1) {
|
|
15963
|
-
var
|
|
15964
|
-
Y1 =
|
|
15965
|
-
Y2 =
|
|
15961
|
+
var _ref53 = [ Y2, Y1 ];
|
|
15962
|
+
Y1 = _ref53[0];
|
|
15963
|
+
Y2 = _ref53[1];
|
|
15966
15964
|
}
|
|
15967
15965
|
return (Y1 + .05) / (Y2 + .05);
|
|
15968
15966
|
}
|
|
@@ -16036,9 +16034,9 @@
|
|
|
16036
16034
|
var Y1 = Math.max(getLuminance(color1), 0);
|
|
16037
16035
|
var Y2 = Math.max(getLuminance(color2), 0);
|
|
16038
16036
|
if (Y2 > Y1) {
|
|
16039
|
-
var
|
|
16040
|
-
Y1 =
|
|
16041
|
-
Y2 =
|
|
16037
|
+
var _ref54 = [ Y2, Y1 ];
|
|
16038
|
+
Y1 = _ref54[0];
|
|
16039
|
+
Y2 = _ref54[1];
|
|
16042
16040
|
}
|
|
16043
16041
|
var denom = Y1 + Y2;
|
|
16044
16042
|
return denom === 0 ? 0 : (Y1 - Y2) / denom;
|
|
@@ -16050,9 +16048,9 @@
|
|
|
16050
16048
|
var Y1 = Math.max(getLuminance(color1), 0);
|
|
16051
16049
|
var Y2 = Math.max(getLuminance(color2), 0);
|
|
16052
16050
|
if (Y2 > Y1) {
|
|
16053
|
-
var
|
|
16054
|
-
Y1 =
|
|
16055
|
-
Y2 =
|
|
16051
|
+
var _ref55 = [ Y2, Y1 ];
|
|
16052
|
+
Y1 = _ref55[0];
|
|
16053
|
+
Y2 = _ref55[1];
|
|
16056
16054
|
}
|
|
16057
16055
|
return Y2 === 0 ? max : (Y1 - Y2) / Y2;
|
|
16058
16056
|
}
|
|
@@ -16185,7 +16183,7 @@
|
|
|
16185
16183
|
var \u03c0 = Math.PI;
|
|
16186
16184
|
var d2r = \u03c0 / 180;
|
|
16187
16185
|
function deltaECMC(color, sample) {
|
|
16188
|
-
var
|
|
16186
|
+
var _ref56 = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}, _ref56$l = _ref56.l, l = _ref56$l === void 0 ? 2 : _ref56$l, _ref56$c = _ref56.c, c4 = _ref56$c === void 0 ? 1 : _ref56$c;
|
|
16189
16187
|
var _lab$from5 = lab.from(color), _lab$from6 = _slicedToArray(_lab$from5, 3), L1 = _lab$from6[0], a1 = _lab$from6[1], b1 = _lab$from6[2];
|
|
16190
16188
|
var _lch$from = lch.from(lab, [ L1, a1, b1 ]), _lch$from2 = _slicedToArray(_lch$from, 3), C1 = _lch$from2[1], H1 = _lch$from2[2];
|
|
16191
16189
|
var _lab$from7 = lab.from(sample), _lab$from8 = _slicedToArray(_lab$from7, 3), L2 = _lab$from8[0], a2 = _lab$from8[1], b2 = _lab$from8[2];
|
|
@@ -16533,13 +16531,13 @@
|
|
|
16533
16531
|
function mix(c12, c22) {
|
|
16534
16532
|
var p2 = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : .5;
|
|
16535
16533
|
var o = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};
|
|
16536
|
-
var
|
|
16537
|
-
c12 =
|
|
16538
|
-
c22 =
|
|
16534
|
+
var _ref57 = [ getColor(c12), getColor(c22) ];
|
|
16535
|
+
c12 = _ref57[0];
|
|
16536
|
+
c22 = _ref57[1];
|
|
16539
16537
|
if (type(p2) === 'object') {
|
|
16540
|
-
var
|
|
16541
|
-
p2 =
|
|
16542
|
-
o =
|
|
16538
|
+
var _ref58 = [ .5, p2 ];
|
|
16539
|
+
p2 = _ref58[0];
|
|
16540
|
+
o = _ref58[1];
|
|
16543
16541
|
}
|
|
16544
16542
|
var _o3 = o, space = _o3.space, outputSpace = _o3.outputSpace, premultiplied = _o3.premultiplied;
|
|
16545
16543
|
var r = range(c12, c22, {
|
|
@@ -16561,9 +16559,9 @@
|
|
|
16561
16559
|
}
|
|
16562
16560
|
var _options2 = options, maxDeltaE = _options2.maxDeltaE, deltaEMethod = _options2.deltaEMethod, _options2$steps = _options2.steps, steps2 = _options2$steps === void 0 ? 2 : _options2$steps, _options2$maxSteps = _options2.maxSteps, maxSteps = _options2$maxSteps === void 0 ? 1e3 : _options2$maxSteps, rangeOptions = _objectWithoutProperties(_options2, _excluded13);
|
|
16563
16561
|
if (!colorRange) {
|
|
16564
|
-
var
|
|
16565
|
-
c12 =
|
|
16566
|
-
c22 =
|
|
16562
|
+
var _ref59 = [ getColor(c12), getColor(c22) ];
|
|
16563
|
+
c12 = _ref59[0];
|
|
16564
|
+
c22 = _ref59[1];
|
|
16567
16565
|
colorRange = range(c12, c22, rangeOptions);
|
|
16568
16566
|
}
|
|
16569
16567
|
var totalDelta = deltaE(c12, c22);
|
|
@@ -16646,7 +16644,7 @@
|
|
|
16646
16644
|
if (space.coords.h && space.coords.h.type === 'angle') {
|
|
16647
16645
|
var arc = options.hue = options.hue || 'shorter';
|
|
16648
16646
|
var hue = [ space, 'h' ];
|
|
16649
|
-
var
|
|
16647
|
+
var _ref60 = [ get(color1, hue), get(color2, hue) ], \u03b81 = _ref60[0], \u03b82 = _ref60[1];
|
|
16650
16648
|
var _adjust = adjust(arc, [ \u03b81, \u03b82 ]);
|
|
16651
16649
|
var _adjust2 = _slicedToArray(_adjust, 2);
|
|
16652
16650
|
\u03b81 = _adjust2[0];
|
|
@@ -17048,8 +17046,8 @@
|
|
|
17048
17046
|
env.M = adapt(env.W1, env.W2, env.options.method);
|
|
17049
17047
|
}
|
|
17050
17048
|
});
|
|
17051
|
-
function defineCAT(
|
|
17052
|
-
var id =
|
|
17049
|
+
function defineCAT(_ref61) {
|
|
17050
|
+
var id = _ref61.id, toCone_M = _ref61.toCone_M, fromCone_M = _ref61.fromCone_M;
|
|
17053
17051
|
CATs[id] = arguments[0];
|
|
17054
17052
|
}
|
|
17055
17053
|
function adapt(W1, W2) {
|
|
@@ -17766,8 +17764,8 @@
|
|
|
17766
17764
|
if (!refs || !refs.length) {
|
|
17767
17765
|
return false;
|
|
17768
17766
|
}
|
|
17769
|
-
return refs.some(function(
|
|
17770
|
-
var actualNode =
|
|
17767
|
+
return refs.some(function(_ref62) {
|
|
17768
|
+
var actualNode = _ref62.actualNode;
|
|
17771
17769
|
return isVisible(actualNode, screenReader, recursed);
|
|
17772
17770
|
});
|
|
17773
17771
|
}
|
|
@@ -17779,7 +17777,7 @@
|
|
|
17779
17777
|
var vNode = el instanceof abstract_virtual_node_default ? el : get_node_from_tree_default(el);
|
|
17780
17778
|
el = vNode ? vNode.actualNode : el;
|
|
17781
17779
|
var cacheName = '_isVisible' + (screenReader ? 'ScreenReader' : '');
|
|
17782
|
-
var
|
|
17780
|
+
var _ref63 = (_window$Node2 = window.Node) !== null && _window$Node2 !== void 0 ? _window$Node2 : {}, DOCUMENT_NODE = _ref63.DOCUMENT_NODE, DOCUMENT_FRAGMENT_NODE = _ref63.DOCUMENT_FRAGMENT_NODE;
|
|
17783
17781
|
var nodeType = vNode ? vNode.props.nodeType : el.nodeType;
|
|
17784
17782
|
var nodeName2 = vNode ? vNode.props.nodeName : el.nodeName.toLowerCase();
|
|
17785
17783
|
if (vNode && typeof vNode[cacheName] !== 'undefined') {
|
|
@@ -18586,7 +18584,7 @@
|
|
|
18586
18584
|
return {};
|
|
18587
18585
|
}
|
|
18588
18586
|
var navigator2 = win.navigator, innerHeight = win.innerHeight, innerWidth = win.innerWidth;
|
|
18589
|
-
var
|
|
18587
|
+
var _ref64 = getOrientation(win) || {}, angle = _ref64.angle, type2 = _ref64.type;
|
|
18590
18588
|
return {
|
|
18591
18589
|
userAgent: navigator2.userAgent,
|
|
18592
18590
|
windowWidth: innerWidth,
|
|
@@ -18595,12 +18593,12 @@
|
|
|
18595
18593
|
orientationType: type2
|
|
18596
18594
|
};
|
|
18597
18595
|
}
|
|
18598
|
-
function getOrientation(
|
|
18599
|
-
var screen =
|
|
18596
|
+
function getOrientation(_ref65) {
|
|
18597
|
+
var screen = _ref65.screen;
|
|
18600
18598
|
return screen.orientation || screen.msOrientation || screen.mozOrientation;
|
|
18601
18599
|
}
|
|
18602
|
-
function createFrameContext(frame,
|
|
18603
|
-
var focusable =
|
|
18600
|
+
function createFrameContext(frame, _ref66) {
|
|
18601
|
+
var focusable = _ref66.focusable, page = _ref66.page;
|
|
18604
18602
|
return {
|
|
18605
18603
|
node: frame,
|
|
18606
18604
|
include: [],
|
|
@@ -18813,8 +18811,8 @@
|
|
|
18813
18811
|
}
|
|
18814
18812
|
context.frames.push(createFrameContext(frame, context));
|
|
18815
18813
|
}
|
|
18816
|
-
function isPageContext(
|
|
18817
|
-
var include =
|
|
18814
|
+
function isPageContext(_ref67) {
|
|
18815
|
+
var include = _ref67.include;
|
|
18818
18816
|
return include.length === 1 && include[0].actualNode === document.documentElement;
|
|
18819
18817
|
}
|
|
18820
18818
|
function validateContext(context) {
|
|
@@ -18823,8 +18821,8 @@
|
|
|
18823
18821
|
throw new Error('No elements found for include in ' + env + ' Context');
|
|
18824
18822
|
}
|
|
18825
18823
|
}
|
|
18826
|
-
function getRootNode2(
|
|
18827
|
-
var include =
|
|
18824
|
+
function getRootNode2(_ref68) {
|
|
18825
|
+
var include = _ref68.include, exclude = _ref68.exclude;
|
|
18828
18826
|
var selectors = Array.from(include).concat(Array.from(exclude));
|
|
18829
18827
|
for (var _i27 = 0; _i27 < selectors.length; _i27++) {
|
|
18830
18828
|
var item = selectors[_i27];
|
|
@@ -18843,8 +18841,8 @@
|
|
|
18843
18841
|
return [];
|
|
18844
18842
|
}
|
|
18845
18843
|
var _Context = new Context(context), frames = _Context.frames;
|
|
18846
|
-
return frames.map(function(
|
|
18847
|
-
var node =
|
|
18844
|
+
return frames.map(function(_ref69) {
|
|
18845
|
+
var node = _ref69.node, frameContext = _objectWithoutProperties(_ref69, _excluded14);
|
|
18848
18846
|
frameContext.initiator = false;
|
|
18849
18847
|
var frameSelector = _getAncestry(node);
|
|
18850
18848
|
return {
|
|
@@ -18854,8 +18852,8 @@
|
|
|
18854
18852
|
});
|
|
18855
18853
|
}
|
|
18856
18854
|
function _getRule(ruleId) {
|
|
18857
|
-
var rule = axe._audit.rules.find(function(
|
|
18858
|
-
var id =
|
|
18855
|
+
var rule = axe._audit.rules.find(function(_ref70) {
|
|
18856
|
+
var id = _ref70.id;
|
|
18859
18857
|
return id === ruleId;
|
|
18860
18858
|
});
|
|
18861
18859
|
if (!rule) {
|
|
@@ -19020,8 +19018,8 @@
|
|
|
19020
19018
|
return !!standards_default.htmlElms[nodeName2];
|
|
19021
19019
|
}
|
|
19022
19020
|
var is_html_element_default = isHtmlElement;
|
|
19023
|
-
function _isNodeInContext(node,
|
|
19024
|
-
var
|
|
19021
|
+
function _isNodeInContext(node, _ref71) {
|
|
19022
|
+
var _ref71$include = _ref71.include, include = _ref71$include === void 0 ? [] : _ref71$include, _ref71$exclude = _ref71.exclude, exclude = _ref71$exclude === void 0 ? [] : _ref71$exclude;
|
|
19025
19023
|
var filterInclude = include.filter(function(candidate) {
|
|
19026
19024
|
return _contains(candidate, node);
|
|
19027
19025
|
});
|
|
@@ -19377,8 +19375,8 @@
|
|
|
19377
19375
|
return matchExpressions(domTree, expressions, filter);
|
|
19378
19376
|
}
|
|
19379
19377
|
var query_selector_all_filter_default = querySelectorAllFilter;
|
|
19380
|
-
function preloadCssom(
|
|
19381
|
-
var
|
|
19378
|
+
function preloadCssom(_ref72) {
|
|
19379
|
+
var _ref72$treeRoot = _ref72.treeRoot, treeRoot = _ref72$treeRoot === void 0 ? axe._tree[0] : _ref72$treeRoot;
|
|
19382
19380
|
var rootNodes = getAllRootNodesInTree(treeRoot);
|
|
19383
19381
|
if (!rootNodes.length) {
|
|
19384
19382
|
return Promise.resolve();
|
|
@@ -19408,8 +19406,8 @@
|
|
|
19408
19406
|
}
|
|
19409
19407
|
function getCssomForAllRootNodes(rootNodes, convertDataToStylesheet) {
|
|
19410
19408
|
var promises = [];
|
|
19411
|
-
rootNodes.forEach(function(
|
|
19412
|
-
var rootNode =
|
|
19409
|
+
rootNodes.forEach(function(_ref73, index) {
|
|
19410
|
+
var rootNode = _ref73.rootNode, shadowId = _ref73.shadowId;
|
|
19413
19411
|
var sheets = getStylesheetsOfRootNode(rootNode, shadowId, convertDataToStylesheet);
|
|
19414
19412
|
if (!sheets) {
|
|
19415
19413
|
return Promise.all(promises);
|
|
@@ -19495,10 +19493,10 @@
|
|
|
19495
19493
|
return true;
|
|
19496
19494
|
});
|
|
19497
19495
|
}
|
|
19498
|
-
function preloadMedia(
|
|
19499
|
-
var
|
|
19500
|
-
var mediaVirtualNodes = query_selector_all_filter_default(treeRoot, 'video, audio', function(
|
|
19501
|
-
var actualNode =
|
|
19496
|
+
function preloadMedia(_ref74) {
|
|
19497
|
+
var _ref74$treeRoot = _ref74.treeRoot, treeRoot = _ref74$treeRoot === void 0 ? axe._tree[0] : _ref74$treeRoot;
|
|
19498
|
+
var mediaVirtualNodes = query_selector_all_filter_default(treeRoot, 'video, audio', function(_ref75) {
|
|
19499
|
+
var actualNode = _ref75.actualNode;
|
|
19502
19500
|
if (actualNode.hasAttribute('src')) {
|
|
19503
19501
|
return !!actualNode.getAttribute('src');
|
|
19504
19502
|
}
|
|
@@ -19510,8 +19508,8 @@
|
|
|
19510
19508
|
}
|
|
19511
19509
|
return true;
|
|
19512
19510
|
});
|
|
19513
|
-
return Promise.all(mediaVirtualNodes.map(function(
|
|
19514
|
-
var actualNode =
|
|
19511
|
+
return Promise.all(mediaVirtualNodes.map(function(_ref76) {
|
|
19512
|
+
var actualNode = _ref76.actualNode;
|
|
19515
19513
|
return isMediaElementReady(actualNode);
|
|
19516
19514
|
}));
|
|
19517
19515
|
}
|
|
@@ -19814,8 +19812,8 @@
|
|
|
19814
19812
|
}
|
|
19815
19813
|
}
|
|
19816
19814
|
function setScrollState(scrollState) {
|
|
19817
|
-
scrollState.forEach(function(
|
|
19818
|
-
var elm =
|
|
19815
|
+
scrollState.forEach(function(_ref78) {
|
|
19816
|
+
var elm = _ref78.elm, top = _ref78.top, left = _ref78.left;
|
|
19819
19817
|
return setScroll(elm, top, left);
|
|
19820
19818
|
});
|
|
19821
19819
|
}
|
|
@@ -19843,8 +19841,8 @@
|
|
|
19843
19841
|
}
|
|
19844
19842
|
return selectAllRecursive(selectorArr, doc);
|
|
19845
19843
|
}
|
|
19846
|
-
function selectAllRecursive(
|
|
19847
|
-
var
|
|
19844
|
+
function selectAllRecursive(_ref79, doc) {
|
|
19845
|
+
var _ref80 = _toArray(_ref79), selectorStr = _ref80[0], restSelector = _ref80.slice(1);
|
|
19848
19846
|
var elms = doc.querySelectorAll(selectorStr);
|
|
19849
19847
|
if (restSelector.length === 0) {
|
|
19850
19848
|
return Array.from(elms);
|
|
@@ -19946,9 +19944,9 @@
|
|
|
19946
19944
|
nodeTypeToName[nodeNamesToTypes[nodeName2]] = nodeName2;
|
|
19947
19945
|
});
|
|
19948
19946
|
function normaliseProps(serialNode) {
|
|
19949
|
-
var _serialNode$nodeName,
|
|
19947
|
+
var _serialNode$nodeName, _ref81, _serialNode$nodeType;
|
|
19950
19948
|
var nodeName2 = (_serialNode$nodeName = serialNode.nodeName) !== null && _serialNode$nodeName !== void 0 ? _serialNode$nodeName : nodeTypeToName[serialNode.nodeType];
|
|
19951
|
-
var nodeType = (
|
|
19949
|
+
var nodeType = (_ref81 = (_serialNode$nodeType = serialNode.nodeType) !== null && _serialNode$nodeType !== void 0 ? _serialNode$nodeType : nodeNamesToTypes[serialNode.nodeName]) !== null && _ref81 !== void 0 ? _ref81 : 1;
|
|
19952
19950
|
assert_default(typeof nodeType === 'number', 'nodeType has to be a number, got \''.concat(nodeType, '\''));
|
|
19953
19951
|
assert_default(typeof nodeName2 === 'string', 'nodeName has to be a string, got \''.concat(nodeName2, '\''));
|
|
19954
19952
|
nodeName2 = nodeName2.toLowerCase();
|
|
@@ -19969,8 +19967,8 @@
|
|
|
19969
19967
|
delete props.attributes;
|
|
19970
19968
|
return Object.freeze(props);
|
|
19971
19969
|
}
|
|
19972
|
-
function normaliseAttrs(
|
|
19973
|
-
var
|
|
19970
|
+
function normaliseAttrs(_ref82) {
|
|
19971
|
+
var _ref82$attributes = _ref82.attributes, attributes2 = _ref82$attributes === void 0 ? {} : _ref82$attributes;
|
|
19974
19972
|
var attrMap = {
|
|
19975
19973
|
htmlFor: 'for',
|
|
19976
19974
|
className: 'class'
|
|
@@ -22535,8 +22533,8 @@
|
|
|
22535
22533
|
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' ]
|
|
22536
22534
|
} ];
|
|
22537
22535
|
lookupTable.evaluateRoleForElement = {
|
|
22538
|
-
A: function A(
|
|
22539
|
-
var node =
|
|
22536
|
+
A: function A(_ref83) {
|
|
22537
|
+
var node = _ref83.node, out = _ref83.out;
|
|
22540
22538
|
if (node.namespaceURI === 'http://www.w3.org/2000/svg') {
|
|
22541
22539
|
return true;
|
|
22542
22540
|
}
|
|
@@ -22545,19 +22543,19 @@
|
|
|
22545
22543
|
}
|
|
22546
22544
|
return true;
|
|
22547
22545
|
},
|
|
22548
|
-
AREA: function AREA(
|
|
22549
|
-
var node =
|
|
22546
|
+
AREA: function AREA(_ref84) {
|
|
22547
|
+
var node = _ref84.node;
|
|
22550
22548
|
return !node.href;
|
|
22551
22549
|
},
|
|
22552
|
-
BUTTON: function BUTTON(
|
|
22553
|
-
var node =
|
|
22550
|
+
BUTTON: function BUTTON(_ref85) {
|
|
22551
|
+
var node = _ref85.node, role = _ref85.role, out = _ref85.out;
|
|
22554
22552
|
if (node.getAttribute('type') === 'menu') {
|
|
22555
22553
|
return role === 'menuitem';
|
|
22556
22554
|
}
|
|
22557
22555
|
return out;
|
|
22558
22556
|
},
|
|
22559
|
-
IMG: function IMG(
|
|
22560
|
-
var node =
|
|
22557
|
+
IMG: function IMG(_ref86) {
|
|
22558
|
+
var node = _ref86.node, role = _ref86.role, out = _ref86.out;
|
|
22561
22559
|
switch (node.alt) {
|
|
22562
22560
|
case null:
|
|
22563
22561
|
return out;
|
|
@@ -22569,8 +22567,8 @@
|
|
|
22569
22567
|
return role !== 'presentation' && role !== 'none';
|
|
22570
22568
|
}
|
|
22571
22569
|
},
|
|
22572
|
-
INPUT: function INPUT(
|
|
22573
|
-
var node =
|
|
22570
|
+
INPUT: function INPUT(_ref87) {
|
|
22571
|
+
var node = _ref87.node, role = _ref87.role, out = _ref87.out;
|
|
22574
22572
|
switch (node.type) {
|
|
22575
22573
|
case 'button':
|
|
22576
22574
|
case 'image':
|
|
@@ -22600,32 +22598,32 @@
|
|
|
22600
22598
|
return false;
|
|
22601
22599
|
}
|
|
22602
22600
|
},
|
|
22603
|
-
LI: function LI(
|
|
22604
|
-
var node =
|
|
22601
|
+
LI: function LI(_ref88) {
|
|
22602
|
+
var node = _ref88.node, out = _ref88.out;
|
|
22605
22603
|
var hasImplicitListitemRole = axe.utils.matchesSelector(node, 'ol li, ul li');
|
|
22606
22604
|
if (hasImplicitListitemRole) {
|
|
22607
22605
|
return out;
|
|
22608
22606
|
}
|
|
22609
22607
|
return true;
|
|
22610
22608
|
},
|
|
22611
|
-
MENU: function MENU(
|
|
22612
|
-
var node =
|
|
22609
|
+
MENU: function MENU(_ref89) {
|
|
22610
|
+
var node = _ref89.node;
|
|
22613
22611
|
if (node.getAttribute('type') === 'context') {
|
|
22614
22612
|
return false;
|
|
22615
22613
|
}
|
|
22616
22614
|
return true;
|
|
22617
22615
|
},
|
|
22618
|
-
OPTION: function OPTION(
|
|
22619
|
-
var node =
|
|
22616
|
+
OPTION: function OPTION(_ref90) {
|
|
22617
|
+
var node = _ref90.node;
|
|
22620
22618
|
var withinOptionList = axe.utils.matchesSelector(node, 'select > option, datalist > option, optgroup > option');
|
|
22621
22619
|
return !withinOptionList;
|
|
22622
22620
|
},
|
|
22623
|
-
SELECT: function SELECT(
|
|
22624
|
-
var node =
|
|
22621
|
+
SELECT: function SELECT(_ref91) {
|
|
22622
|
+
var node = _ref91.node, role = _ref91.role;
|
|
22625
22623
|
return !node.multiple && node.size <= 1 && role === 'menu';
|
|
22626
22624
|
},
|
|
22627
|
-
SVG: function SVG(
|
|
22628
|
-
var node =
|
|
22625
|
+
SVG: function SVG(_ref92) {
|
|
22626
|
+
var node = _ref92.node, out = _ref92.out;
|
|
22629
22627
|
if (node.parentNode && node.parentNode.namespaceURI === 'http://www.w3.org/2000/svg') {
|
|
22630
22628
|
return true;
|
|
22631
22629
|
}
|
|
@@ -22651,7 +22649,7 @@
|
|
|
22651
22649
|
var is_accessible_ref_default = isAccessibleRef;
|
|
22652
22650
|
function _isComboboxPopup(virtualNode) {
|
|
22653
22651
|
var _popupRoles;
|
|
22654
|
-
var
|
|
22652
|
+
var _ref93 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, popupRoles = _ref93.popupRoles;
|
|
22655
22653
|
var role = get_role_default(virtualNode);
|
|
22656
22654
|
(_popupRoles = popupRoles) !== null && _popupRoles !== void 0 ? _popupRoles : popupRoles = aria_attrs_default['aria-haspopup'].values;
|
|
22657
22655
|
if (!popupRoles.includes(role)) {
|
|
@@ -22834,8 +22832,8 @@
|
|
|
22834
22832
|
if (!virtualNode.children) {
|
|
22835
22833
|
return void 0;
|
|
22836
22834
|
}
|
|
22837
|
-
var titleNode = virtualNode.children.find(function(
|
|
22838
|
-
var props =
|
|
22835
|
+
var titleNode = virtualNode.children.find(function(_ref94) {
|
|
22836
|
+
var props = _ref94.props;
|
|
22839
22837
|
return props.nodeName === 'title';
|
|
22840
22838
|
});
|
|
22841
22839
|
if (!titleNode) {
|
|
@@ -22972,8 +22970,8 @@
|
|
|
22972
22970
|
}
|
|
22973
22971
|
return false;
|
|
22974
22972
|
}
|
|
22975
|
-
function getNumberValue(domNode,
|
|
22976
|
-
var cssProperty =
|
|
22973
|
+
function getNumberValue(domNode, _ref95) {
|
|
22974
|
+
var cssProperty = _ref95.cssProperty, absoluteValues = _ref95.absoluteValues, normalValue = _ref95.normalValue;
|
|
22977
22975
|
var computedStyle = window.getComputedStyle(domNode);
|
|
22978
22976
|
var cssPropValue = computedStyle.getPropertyValue(cssProperty);
|
|
22979
22977
|
if (cssPropValue === 'normal') {
|
|
@@ -23120,8 +23118,8 @@
|
|
|
23120
23118
|
} else if (node !== document.body && has_content_default(node, true) && !isShallowlyHidden(virtualNode)) {
|
|
23121
23119
|
return [ virtualNode ];
|
|
23122
23120
|
} else {
|
|
23123
|
-
return virtualNode.children.filter(function(
|
|
23124
|
-
var actualNode =
|
|
23121
|
+
return virtualNode.children.filter(function(_ref96) {
|
|
23122
|
+
var actualNode = _ref96.actualNode;
|
|
23125
23123
|
return actualNode.nodeType === 1;
|
|
23126
23124
|
}).map(function(vNode) {
|
|
23127
23125
|
return findRegionlessElms(vNode, options);
|
|
@@ -23269,7 +23267,7 @@
|
|
|
23269
23267
|
var separatorRegex = /[;,\s]/;
|
|
23270
23268
|
var validRedirectNumRegex = /^[0-9.]+$/;
|
|
23271
23269
|
function metaRefreshEvaluate(node, options, virtualNode) {
|
|
23272
|
-
var
|
|
23270
|
+
var _ref97 = options || {}, minDelay = _ref97.minDelay, maxDelay = _ref97.maxDelay;
|
|
23273
23271
|
var content = (virtualNode.attr('content') || '').trim();
|
|
23274
23272
|
var _content$split = content.split(separatorRegex), _content$split2 = _slicedToArray(_content$split, 1), redirectStr = _content$split2[0];
|
|
23275
23273
|
if (!redirectStr.match(validRedirectNumRegex)) {
|
|
@@ -23632,10 +23630,10 @@
|
|
|
23632
23630
|
var OPAQUE_STROKE_OFFSET_MIN_PX = 1.5;
|
|
23633
23631
|
var edges = [ 'top', 'right', 'bottom', 'left' ];
|
|
23634
23632
|
function _getStrokeColorsFromShadows(parsedShadows) {
|
|
23635
|
-
var
|
|
23633
|
+
var _ref98 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, _ref98$ignoreEdgeCoun = _ref98.ignoreEdgeCount, ignoreEdgeCount = _ref98$ignoreEdgeCoun === void 0 ? false : _ref98$ignoreEdgeCoun;
|
|
23636
23634
|
var shadowMap = getShadowColorsMap(parsedShadows);
|
|
23637
|
-
var shadowsByColor = Object.entries(shadowMap).map(function(
|
|
23638
|
-
var
|
|
23635
|
+
var shadowsByColor = Object.entries(shadowMap).map(function(_ref99) {
|
|
23636
|
+
var _ref100 = _slicedToArray(_ref99, 2), colorStr = _ref100[0], sides = _ref100[1];
|
|
23639
23637
|
var edgeCount = edges.filter(function(side) {
|
|
23640
23638
|
return sides[side].length !== 0;
|
|
23641
23639
|
}).length;
|
|
@@ -23645,8 +23643,8 @@
|
|
|
23645
23643
|
edgeCount: edgeCount
|
|
23646
23644
|
};
|
|
23647
23645
|
});
|
|
23648
|
-
if (!ignoreEdgeCount && shadowsByColor.some(function(
|
|
23649
|
-
var edgeCount =
|
|
23646
|
+
if (!ignoreEdgeCount && shadowsByColor.some(function(_ref101) {
|
|
23647
|
+
var edgeCount = _ref101.edgeCount;
|
|
23650
23648
|
return edgeCount > 1 && edgeCount < 4;
|
|
23651
23649
|
})) {
|
|
23652
23650
|
return null;
|
|
@@ -23688,8 +23686,8 @@
|
|
|
23688
23686
|
}
|
|
23689
23687
|
return colorMap;
|
|
23690
23688
|
}
|
|
23691
|
-
function shadowGroupToColor(
|
|
23692
|
-
var colorStr =
|
|
23689
|
+
function shadowGroupToColor(_ref102) {
|
|
23690
|
+
var colorStr = _ref102.colorStr, sides = _ref102.sides, edgeCount = _ref102.edgeCount;
|
|
23693
23691
|
if (edgeCount !== 4) {
|
|
23694
23692
|
return null;
|
|
23695
23693
|
}
|
|
@@ -23740,8 +23738,8 @@
|
|
|
23740
23738
|
throw new Error('Unable to process text-shadows: '.concat(str));
|
|
23741
23739
|
}
|
|
23742
23740
|
}
|
|
23743
|
-
shadows.forEach(function(
|
|
23744
|
-
var pixels =
|
|
23741
|
+
shadows.forEach(function(_ref103) {
|
|
23742
|
+
var pixels = _ref103.pixels;
|
|
23745
23743
|
if (pixels.length === 2) {
|
|
23746
23744
|
pixels.push(0);
|
|
23747
23745
|
}
|
|
@@ -23749,7 +23747,7 @@
|
|
|
23749
23747
|
return shadows;
|
|
23750
23748
|
}
|
|
23751
23749
|
function _getTextShadowColors(node) {
|
|
23752
|
-
var
|
|
23750
|
+
var _ref104 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, minRatio = _ref104.minRatio, maxRatio = _ref104.maxRatio, ignoreEdgeCount = _ref104.ignoreEdgeCount;
|
|
23753
23751
|
var shadowColors = [];
|
|
23754
23752
|
var style = window.getComputedStyle(node);
|
|
23755
23753
|
var textShadow = style.getPropertyValue('text-shadow');
|
|
@@ -23812,8 +23810,8 @@
|
|
|
23812
23810
|
}
|
|
23813
23811
|
return shadowColors;
|
|
23814
23812
|
}
|
|
23815
|
-
function textShadowColor(
|
|
23816
|
-
var colorStr =
|
|
23813
|
+
function textShadowColor(_ref105) {
|
|
23814
|
+
var colorStr = _ref105.colorStr, offsetX = _ref105.offsetX, offsetY = _ref105.offsetY, blurRadius = _ref105.blurRadius, fontSize = _ref105.fontSize;
|
|
23817
23815
|
if (offsetX > blurRadius || offsetY > blurRadius) {
|
|
23818
23816
|
return new color_default(0, 0, 0, 0);
|
|
23819
23817
|
}
|
|
@@ -23842,13 +23840,13 @@
|
|
|
23842
23840
|
var _stackingOrder2;
|
|
23843
23841
|
var bgVNode = get_node_from_tree_default(bgElm);
|
|
23844
23842
|
var bgColor = getOwnBackgroundColor2(bgVNode);
|
|
23845
|
-
var stackingOrder = bgVNode._stackingOrder.filter(function(
|
|
23846
|
-
var vNode =
|
|
23843
|
+
var stackingOrder = bgVNode._stackingOrder.filter(function(_ref106) {
|
|
23844
|
+
var vNode = _ref106.vNode;
|
|
23847
23845
|
return !!vNode;
|
|
23848
23846
|
});
|
|
23849
|
-
stackingOrder.forEach(function(
|
|
23847
|
+
stackingOrder.forEach(function(_ref107, index) {
|
|
23850
23848
|
var _stackingOrder;
|
|
23851
|
-
var vNode =
|
|
23849
|
+
var vNode = _ref107.vNode;
|
|
23852
23850
|
var ancestorVNode2 = (_stackingOrder = stackingOrder[index - 1]) === null || _stackingOrder === void 0 ? void 0 : _stackingOrder.vNode;
|
|
23853
23851
|
var context2 = addToStackingContext(contextMap, vNode, ancestorVNode2);
|
|
23854
23852
|
if (index === 0 && !contextMap.get(vNode)) {
|
|
@@ -24084,8 +24082,8 @@
|
|
|
24084
24082
|
function getTextColor(nodeStyle) {
|
|
24085
24083
|
return new color_default().parseString(nodeStyle.getPropertyValue('-webkit-text-fill-color') || nodeStyle.getPropertyValue('color'));
|
|
24086
24084
|
}
|
|
24087
|
-
function getStrokeColor(nodeStyle,
|
|
24088
|
-
var
|
|
24085
|
+
function getStrokeColor(nodeStyle, _ref108) {
|
|
24086
|
+
var _ref108$textStrokeEmM = _ref108.textStrokeEmMin, textStrokeEmMin = _ref108$textStrokeEmM === void 0 ? 0 : _ref108$textStrokeEmM;
|
|
24089
24087
|
var strokeWidth = parseFloat(nodeStyle.getPropertyValue('-webkit-text-stroke-width'));
|
|
24090
24088
|
if (strokeWidth === 0) {
|
|
24091
24089
|
return null;
|
|
@@ -24247,8 +24245,8 @@
|
|
|
24247
24245
|
if (results.length < 2) {
|
|
24248
24246
|
return results;
|
|
24249
24247
|
}
|
|
24250
|
-
var incompleteResults = results.filter(function(
|
|
24251
|
-
var result =
|
|
24248
|
+
var incompleteResults = results.filter(function(_ref109) {
|
|
24249
|
+
var result = _ref109.result;
|
|
24252
24250
|
return result !== void 0;
|
|
24253
24251
|
});
|
|
24254
24252
|
var uniqueResults = [];
|
|
@@ -24260,12 +24258,12 @@
|
|
|
24260
24258
|
if (nameMap[name]) {
|
|
24261
24259
|
return 1;
|
|
24262
24260
|
}
|
|
24263
|
-
var sameNameResults = incompleteResults.filter(function(
|
|
24264
|
-
var data =
|
|
24261
|
+
var sameNameResults = incompleteResults.filter(function(_ref110, resultNum) {
|
|
24262
|
+
var data = _ref110.data;
|
|
24265
24263
|
return data.name === name && resultNum !== index;
|
|
24266
24264
|
});
|
|
24267
|
-
var isSameUrl = sameNameResults.every(function(
|
|
24268
|
-
var data =
|
|
24265
|
+
var isSameUrl = sameNameResults.every(function(_ref111) {
|
|
24266
|
+
var data = _ref111.data;
|
|
24269
24267
|
return isIdenticalObject(data.urlProps, urlProps);
|
|
24270
24268
|
});
|
|
24271
24269
|
if (sameNameResults.length && !isSameUrl) {
|
|
@@ -24291,7 +24289,7 @@
|
|
|
24291
24289
|
var headingRole = role && role.includes('heading');
|
|
24292
24290
|
var ariaHeadingLevel = vNode.attr('aria-level');
|
|
24293
24291
|
var ariaLevel = parseInt(ariaHeadingLevel, 10);
|
|
24294
|
-
var
|
|
24292
|
+
var _ref112 = vNode.props.nodeName.match(/h(\d)/) || [], _ref113 = _slicedToArray(_ref112, 2), headingLevel = _ref113[1];
|
|
24295
24293
|
if (!headingRole) {
|
|
24296
24294
|
return -1;
|
|
24297
24295
|
}
|
|
@@ -24351,14 +24349,14 @@
|
|
|
24351
24349
|
}
|
|
24352
24350
|
function getHeadingOrder(results) {
|
|
24353
24351
|
results = _toConsumableArray(results);
|
|
24354
|
-
results.sort(function(
|
|
24355
|
-
var nodeA =
|
|
24356
|
-
var nodeB =
|
|
24352
|
+
results.sort(function(_ref114, _ref115) {
|
|
24353
|
+
var nodeA = _ref114.node;
|
|
24354
|
+
var nodeB = _ref115.node;
|
|
24357
24355
|
return nodeA.ancestry.length - nodeB.ancestry.length;
|
|
24358
24356
|
});
|
|
24359
24357
|
var headingOrder = results.reduce(mergeHeadingOrder, []);
|
|
24360
|
-
return headingOrder.filter(function(
|
|
24361
|
-
var level =
|
|
24358
|
+
return headingOrder.filter(function(_ref116) {
|
|
24359
|
+
var level = _ref116.level;
|
|
24362
24360
|
return level !== -1;
|
|
24363
24361
|
});
|
|
24364
24362
|
}
|
|
@@ -24511,8 +24509,8 @@
|
|
|
24511
24509
|
}
|
|
24512
24510
|
function getLargestUnobscuredArea(vNode, obscuredNodes) {
|
|
24513
24511
|
var nodeRect = vNode.boundingClientRect;
|
|
24514
|
-
var obscuringRects = obscuredNodes.map(function(
|
|
24515
|
-
var rect =
|
|
24512
|
+
var obscuringRects = obscuredNodes.map(function(_ref117) {
|
|
24513
|
+
var rect = _ref117.boundingClientRect;
|
|
24516
24514
|
return rect;
|
|
24517
24515
|
});
|
|
24518
24516
|
var unobscuredRects;
|
|
@@ -24558,8 +24556,8 @@
|
|
|
24558
24556
|
return _contains(vAncestor, vNode) && !_isInTabOrder(vNode);
|
|
24559
24557
|
}
|
|
24560
24558
|
function mapActualNodes(vNodes) {
|
|
24561
|
-
return vNodes.map(function(
|
|
24562
|
-
var actualNode =
|
|
24559
|
+
return vNodes.map(function(_ref118) {
|
|
24560
|
+
var actualNode = _ref118.actualNode;
|
|
24563
24561
|
return actualNode;
|
|
24564
24562
|
});
|
|
24565
24563
|
}
|
|
@@ -24618,8 +24616,8 @@
|
|
|
24618
24616
|
});
|
|
24619
24617
|
return true;
|
|
24620
24618
|
}
|
|
24621
|
-
this.relatedNodes(closeNeighbors.map(function(
|
|
24622
|
-
var actualNode =
|
|
24619
|
+
this.relatedNodes(closeNeighbors.map(function(_ref119) {
|
|
24620
|
+
var actualNode = _ref119.actualNode;
|
|
24623
24621
|
return actualNode;
|
|
24624
24622
|
}));
|
|
24625
24623
|
if (!closeNeighbors.some(_isInTabOrder)) {
|
|
@@ -24640,7 +24638,7 @@
|
|
|
24640
24638
|
return Math.round(num * 10) / 10;
|
|
24641
24639
|
}
|
|
24642
24640
|
function metaViewportScaleEvaluate(node, options, virtualNode) {
|
|
24643
|
-
var
|
|
24641
|
+
var _ref120 = options || {}, _ref120$scaleMinimum = _ref120.scaleMinimum, scaleMinimum = _ref120$scaleMinimum === void 0 ? 2 : _ref120$scaleMinimum, _ref120$lowerBound = _ref120.lowerBound, lowerBound = _ref120$lowerBound === void 0 ? false : _ref120$lowerBound;
|
|
24644
24642
|
var content = virtualNode.attr('content') || '';
|
|
24645
24643
|
if (!content) {
|
|
24646
24644
|
return true;
|
|
@@ -24685,8 +24683,8 @@
|
|
|
24685
24683
|
}
|
|
24686
24684
|
var meta_viewport_scale_evaluate_default = metaViewportScaleEvaluate;
|
|
24687
24685
|
function cssOrientationLockEvaluate(node, options, virtualNode, context) {
|
|
24688
|
-
var
|
|
24689
|
-
var
|
|
24686
|
+
var _ref121 = context || {}, _ref121$cssom = _ref121.cssom, cssom = _ref121$cssom === void 0 ? void 0 : _ref121$cssom;
|
|
24687
|
+
var _ref122 = options || {}, _ref122$degreeThresho = _ref122.degreeThreshold, degreeThreshold = _ref122$degreeThresho === void 0 ? 0 : _ref122$degreeThresho;
|
|
24690
24688
|
if (!cssom || !cssom.length) {
|
|
24691
24689
|
return void 0;
|
|
24692
24690
|
}
|
|
@@ -24700,8 +24698,8 @@
|
|
|
24700
24698
|
if (!orientationRules.length) {
|
|
24701
24699
|
return 1;
|
|
24702
24700
|
}
|
|
24703
|
-
orientationRules.forEach(function(
|
|
24704
|
-
var cssRules =
|
|
24701
|
+
orientationRules.forEach(function(_ref123) {
|
|
24702
|
+
var cssRules = _ref123.cssRules;
|
|
24705
24703
|
Array.from(cssRules).forEach(function(cssRule) {
|
|
24706
24704
|
var locked = getIsOrientationLocked(cssRule);
|
|
24707
24705
|
if (locked && cssRule.selectorText.toUpperCase() !== 'HTML') {
|
|
@@ -24725,8 +24723,8 @@
|
|
|
24725
24723
|
}
|
|
24726
24724
|
return false;
|
|
24727
24725
|
function groupCssomByDocument(cssObjectModel) {
|
|
24728
|
-
return cssObjectModel.reduce(function(out,
|
|
24729
|
-
var sheet =
|
|
24726
|
+
return cssObjectModel.reduce(function(out, _ref124) {
|
|
24727
|
+
var sheet = _ref124.sheet, root = _ref124.root, shadowId = _ref124.shadowId;
|
|
24730
24728
|
var key = shadowId ? shadowId : 'topDocument';
|
|
24731
24729
|
if (!out[key]) {
|
|
24732
24730
|
out[key] = {
|
|
@@ -24742,15 +24740,15 @@
|
|
|
24742
24740
|
return out;
|
|
24743
24741
|
}, {});
|
|
24744
24742
|
}
|
|
24745
|
-
function isMediaRuleWithOrientation(
|
|
24746
|
-
var type2 =
|
|
24743
|
+
function isMediaRuleWithOrientation(_ref125) {
|
|
24744
|
+
var type2 = _ref125.type, cssText = _ref125.cssText;
|
|
24747
24745
|
if (type2 !== 4) {
|
|
24748
24746
|
return false;
|
|
24749
24747
|
}
|
|
24750
24748
|
return /orientation:\s*landscape/i.test(cssText) || /orientation:\s*portrait/i.test(cssText);
|
|
24751
24749
|
}
|
|
24752
|
-
function getIsOrientationLocked(
|
|
24753
|
-
var selectorText =
|
|
24750
|
+
function getIsOrientationLocked(_ref126) {
|
|
24751
|
+
var selectorText = _ref126.selectorText, style = _ref126.style;
|
|
24754
24752
|
if (!selectorText || style.length <= 0) {
|
|
24755
24753
|
return false;
|
|
24756
24754
|
}
|
|
@@ -24805,7 +24803,7 @@
|
|
|
24805
24803
|
}
|
|
24806
24804
|
}
|
|
24807
24805
|
function getAngleInDegrees(angleWithUnit) {
|
|
24808
|
-
var
|
|
24806
|
+
var _ref127 = angleWithUnit.match(/(deg|grad|rad|turn)/) || [], _ref128 = _slicedToArray(_ref127, 1), unit = _ref128[0];
|
|
24809
24807
|
if (!unit) {
|
|
24810
24808
|
return 0;
|
|
24811
24809
|
}
|
|
@@ -25096,8 +25094,8 @@
|
|
|
25096
25094
|
this.relatedNodes(relatedNodes);
|
|
25097
25095
|
return true;
|
|
25098
25096
|
}
|
|
25099
|
-
function getInvalidSelector(vChild, nested,
|
|
25100
|
-
var
|
|
25097
|
+
function getInvalidSelector(vChild, nested, _ref129) {
|
|
25098
|
+
var _ref129$validRoles = _ref129.validRoles, validRoles = _ref129$validRoles === void 0 ? [] : _ref129$validRoles, _ref129$validNodeName = _ref129.validNodeNames, validNodeNames = _ref129$validNodeName === void 0 ? [] : _ref129$validNodeName;
|
|
25101
25099
|
var _vChild$props = vChild.props, nodeName2 = _vChild$props.nodeName, nodeType = _vChild$props.nodeType, nodeValue = _vChild$props.nodeValue;
|
|
25102
25100
|
var selector = nested ? 'div > ' : '';
|
|
25103
25101
|
if (nodeType === 3 && nodeValue.trim() !== '') {
|
|
@@ -25549,8 +25547,8 @@
|
|
|
25549
25547
|
}
|
|
25550
25548
|
var focusable_no_name_evaluate_default = focusableNoNameEvaluate;
|
|
25551
25549
|
function focusableModalOpenEvaluate(node, options, virtualNode) {
|
|
25552
|
-
var tabbableElements = virtualNode.tabbableElements.map(function(
|
|
25553
|
-
var actualNode =
|
|
25550
|
+
var tabbableElements = virtualNode.tabbableElements.map(function(_ref130) {
|
|
25551
|
+
var actualNode = _ref130.actualNode;
|
|
25554
25552
|
return actualNode;
|
|
25555
25553
|
});
|
|
25556
25554
|
if (!tabbableElements || !tabbableElements.length) {
|
|
@@ -25945,7 +25943,7 @@
|
|
|
25945
25943
|
var bold = parseFloat(fontWeight) >= boldValue || fontWeight === 'bold';
|
|
25946
25944
|
var ptSize = Math.ceil(fontSize * 72) / 96;
|
|
25947
25945
|
var isSmallFont = bold && ptSize < boldTextPt || !bold && ptSize < largeTextPt;
|
|
25948
|
-
var
|
|
25946
|
+
var _ref131 = isSmallFont ? contrastRatio.normal : contrastRatio.large, expected = _ref131.expected, minThreshold = _ref131.minThreshold, maxThreshold = _ref131.maxThreshold;
|
|
25949
25947
|
var pseudoElm = findPseudoElement(virtualNode, {
|
|
25950
25948
|
ignorePseudo: ignorePseudo,
|
|
25951
25949
|
pseudoSizeThreshold: pseudoSizeThreshold
|
|
@@ -26030,8 +26028,8 @@
|
|
|
26030
26028
|
}
|
|
26031
26029
|
return isValid;
|
|
26032
26030
|
}
|
|
26033
|
-
function findPseudoElement(vNode,
|
|
26034
|
-
var
|
|
26031
|
+
function findPseudoElement(vNode, _ref132) {
|
|
26032
|
+
var _ref132$pseudoSizeThr = _ref132.pseudoSizeThreshold, pseudoSizeThreshold = _ref132$pseudoSizeThr === void 0 ? .25 : _ref132$pseudoSizeThr, _ref132$ignorePseudo = _ref132.ignorePseudo, ignorePseudo = _ref132$ignorePseudo === void 0 ? false : _ref132$ignorePseudo;
|
|
26035
26033
|
if (ignorePseudo) {
|
|
26036
26034
|
return;
|
|
26037
26035
|
}
|
|
@@ -26073,7 +26071,7 @@
|
|
|
26073
26071
|
}
|
|
26074
26072
|
function parseUnit(str) {
|
|
26075
26073
|
var unitRegex = /^([0-9.]+)([a-z]+)$/i;
|
|
26076
|
-
var
|
|
26074
|
+
var _ref133 = str.match(unitRegex) || [], _ref134 = _slicedToArray(_ref133, 3), _ref134$ = _ref134[1], value = _ref134$ === void 0 ? '' : _ref134$, _ref134$2 = _ref134[2], unit = _ref134$2 === void 0 ? '' : _ref134$2;
|
|
26077
26075
|
return {
|
|
26078
26076
|
value: parseFloat(value),
|
|
26079
26077
|
unit: unit.toLowerCase()
|
|
@@ -26451,19 +26449,19 @@
|
|
|
26451
26449
|
return true;
|
|
26452
26450
|
}
|
|
26453
26451
|
var ownedRoles = getOwnedRoles(virtualNode, required);
|
|
26454
|
-
var unallowed = ownedRoles.filter(function(
|
|
26455
|
-
var role =
|
|
26452
|
+
var unallowed = ownedRoles.filter(function(_ref135) {
|
|
26453
|
+
var role = _ref135.role, vNode = _ref135.vNode;
|
|
26456
26454
|
return vNode.props.nodeType === 1 && !required.includes(role);
|
|
26457
26455
|
});
|
|
26458
26456
|
if (unallowed.length) {
|
|
26459
|
-
this.relatedNodes(unallowed.map(function(
|
|
26460
|
-
var vNode =
|
|
26457
|
+
this.relatedNodes(unallowed.map(function(_ref136) {
|
|
26458
|
+
var vNode = _ref136.vNode;
|
|
26461
26459
|
return vNode;
|
|
26462
26460
|
}));
|
|
26463
26461
|
this.data({
|
|
26464
26462
|
messageKey: 'unallowed',
|
|
26465
|
-
values: unallowed.map(function(
|
|
26466
|
-
var vNode =
|
|
26463
|
+
values: unallowed.map(function(_ref137) {
|
|
26464
|
+
var vNode = _ref137.vNode, attr = _ref137.attr;
|
|
26467
26465
|
return getUnallowedSelector(vNode, attr);
|
|
26468
26466
|
}).filter(function(selector, index, array) {
|
|
26469
26467
|
return array.indexOf(selector) === index;
|
|
@@ -26526,8 +26524,8 @@
|
|
|
26526
26524
|
return ownedRoles;
|
|
26527
26525
|
}
|
|
26528
26526
|
function hasRequiredChildren(required, ownedRoles) {
|
|
26529
|
-
return ownedRoles.some(function(
|
|
26530
|
-
var role =
|
|
26527
|
+
return ownedRoles.some(function(_ref138) {
|
|
26528
|
+
var role = _ref138.role;
|
|
26531
26529
|
return role && required.includes(role);
|
|
26532
26530
|
});
|
|
26533
26531
|
}
|
|
@@ -26552,8 +26550,8 @@
|
|
|
26552
26550
|
}
|
|
26553
26551
|
return nodeName2;
|
|
26554
26552
|
}
|
|
26555
|
-
function isContent(
|
|
26556
|
-
var vNode =
|
|
26553
|
+
function isContent(_ref139) {
|
|
26554
|
+
var vNode = _ref139.vNode;
|
|
26557
26555
|
if (vNode.props.nodeType === 3) {
|
|
26558
26556
|
return vNode.props.nodeValue.trim().length > 0;
|
|
26559
26557
|
}
|
|
@@ -26711,7 +26709,7 @@
|
|
|
26711
26709
|
}
|
|
26712
26710
|
function ariaConditionalRowAttr(node) {
|
|
26713
26711
|
var _invalidTableRowAttrs, _invalidTableRowAttrs2;
|
|
26714
|
-
var
|
|
26712
|
+
var _ref140 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, invalidTableRowAttrs = _ref140.invalidTableRowAttrs;
|
|
26715
26713
|
var virtualNode = arguments.length > 2 ? arguments[2] : undefined;
|
|
26716
26714
|
var invalidAttrs = (_invalidTableRowAttrs = invalidTableRowAttrs === null || invalidTableRowAttrs === void 0 || (_invalidTableRowAttrs2 = invalidTableRowAttrs.filter) === null || _invalidTableRowAttrs2 === void 0 ? void 0 : _invalidTableRowAttrs2.call(invalidTableRowAttrs, function(invalidAttr) {
|
|
26717
26715
|
return virtualNode.hasAttr(invalidAttr);
|
|
@@ -26972,7 +26970,7 @@
|
|
|
26972
26970
|
if (!role || [ 'none', 'presentation' ].includes(role)) {
|
|
26973
26971
|
return true;
|
|
26974
26972
|
}
|
|
26975
|
-
var
|
|
26973
|
+
var _ref141 = aria_roles_default[role] || {}, accessibleNameRequired = _ref141.accessibleNameRequired;
|
|
26976
26974
|
if (accessibleNameRequired || _isFocusable(virtualNode)) {
|
|
26977
26975
|
return true;
|
|
26978
26976
|
}
|
|
@@ -28582,8 +28580,8 @@
|
|
|
28582
28580
|
});
|
|
28583
28581
|
};
|
|
28584
28582
|
}
|
|
28585
|
-
function getHelpUrl(
|
|
28586
|
-
var brand =
|
|
28583
|
+
function getHelpUrl(_ref142, ruleId, version) {
|
|
28584
|
+
var brand = _ref142.brand, application = _ref142.application, lang = _ref142.lang;
|
|
28587
28585
|
return constants_default.helpUrlBase + brand + '/' + (version || axe.version.substring(0, axe.version.lastIndexOf('.'))) + '/' + ruleId + '?application=' + encodeURIComponent(application) + (lang && lang !== 'en' ? '&lang=' + encodeURIComponent(lang) : '');
|
|
28588
28586
|
}
|
|
28589
28587
|
function setupGlobals(context) {
|
|
@@ -28797,9 +28795,9 @@
|
|
|
28797
28795
|
toolOptions: options
|
|
28798
28796
|
});
|
|
28799
28797
|
}
|
|
28800
|
-
function normalizeRunParams(
|
|
28801
|
-
var
|
|
28802
|
-
var
|
|
28798
|
+
function normalizeRunParams(_ref143) {
|
|
28799
|
+
var _ref145, _options$reporter, _axe$_audit;
|
|
28800
|
+
var _ref144 = _slicedToArray(_ref143, 3), context = _ref144[0], options = _ref144[1], callback = _ref144[2];
|
|
28803
28801
|
var typeErr = new TypeError('axe.run arguments are invalid');
|
|
28804
28802
|
if (!_isContextSpec(context)) {
|
|
28805
28803
|
if (callback !== void 0) {
|
|
@@ -28820,7 +28818,7 @@
|
|
|
28820
28818
|
throw typeErr;
|
|
28821
28819
|
}
|
|
28822
28820
|
options = _clone(options);
|
|
28823
|
-
options.reporter = (
|
|
28821
|
+
options.reporter = (_ref145 = (_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 && _ref145 !== void 0 ? _ref145 : 'v1';
|
|
28824
28822
|
return {
|
|
28825
28823
|
context: context,
|
|
28826
28824
|
options: options,
|
|
@@ -28935,8 +28933,8 @@
|
|
|
28935
28933
|
axe._audit.run(contextObj, options, res, rej);
|
|
28936
28934
|
}).then(function(results) {
|
|
28937
28935
|
results = node_serializer_default.mapRawResults(results);
|
|
28938
|
-
var frames = contextObj.frames.map(function(
|
|
28939
|
-
var node =
|
|
28936
|
+
var frames = contextObj.frames.map(function(_ref146) {
|
|
28937
|
+
var node = _ref146.node;
|
|
28940
28938
|
return node_serializer_default.toSpec(node);
|
|
28941
28939
|
});
|
|
28942
28940
|
var environmentData;
|
|
@@ -28957,14 +28955,14 @@
|
|
|
28957
28955
|
});
|
|
28958
28956
|
}
|
|
28959
28957
|
function finishRun(partialResults) {
|
|
28960
|
-
var
|
|
28958
|
+
var _ref148, _options$reporter2, _axe$_audit2;
|
|
28961
28959
|
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
28962
28960
|
options = _clone(options);
|
|
28963
|
-
var
|
|
28961
|
+
var _ref147 = partialResults.find(function(r) {
|
|
28964
28962
|
return r.environmentData;
|
|
28965
|
-
}) || {}, environmentData =
|
|
28963
|
+
}) || {}, environmentData = _ref147.environmentData;
|
|
28966
28964
|
axe._audit.normalizeOptions(options);
|
|
28967
|
-
options.reporter = (
|
|
28965
|
+
options.reporter = (_ref148 = (_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 && _ref148 !== void 0 ? _ref148 : 'v1';
|
|
28968
28966
|
setFrameSpec(partialResults);
|
|
28969
28967
|
var results = merge_results_default(partialResults);
|
|
28970
28968
|
results = axe._audit.after(results, options);
|
|
@@ -28994,8 +28992,8 @@
|
|
|
28994
28992
|
_iterator23.f();
|
|
28995
28993
|
}
|
|
28996
28994
|
}
|
|
28997
|
-
function getMergedFrameSpecs(
|
|
28998
|
-
var childFrameSpecs =
|
|
28995
|
+
function getMergedFrameSpecs(_ref149) {
|
|
28996
|
+
var childFrameSpecs = _ref149.frames, parentFrameSpec = _ref149.frameSpec;
|
|
28999
28997
|
if (!parentFrameSpec) {
|
|
29000
28998
|
return childFrameSpecs;
|
|
29001
28999
|
}
|
|
@@ -29200,8 +29198,8 @@
|
|
|
29200
29198
|
help: 'accesskey attribute value should be unique'
|
|
29201
29199
|
},
|
|
29202
29200
|
'area-alt': {
|
|
29203
|
-
description: 'Ensure <area> elements of image maps have
|
|
29204
|
-
help: 'Active <area> elements must have
|
|
29201
|
+
description: 'Ensure <area> elements of image maps have alternative text',
|
|
29202
|
+
help: 'Active <area> elements must have alternative text'
|
|
29205
29203
|
},
|
|
29206
29204
|
'aria-allowed-attr': {
|
|
29207
29205
|
description: 'Ensure an element\'s role supports its ARIA attributes',
|
|
@@ -29416,8 +29414,8 @@
|
|
|
29416
29414
|
help: 'Links with the same name must have a similar purpose'
|
|
29417
29415
|
},
|
|
29418
29416
|
'image-alt': {
|
|
29419
|
-
description: 'Ensure <img> elements have
|
|
29420
|
-
help: 'Images must have
|
|
29417
|
+
description: 'Ensure <img> elements have alternative text or a role of none or presentation',
|
|
29418
|
+
help: 'Images must have alternative text'
|
|
29421
29419
|
},
|
|
29422
29420
|
'image-redundant-alt': {
|
|
29423
29421
|
description: 'Ensure image alternative is not repeated as text',
|
|
@@ -29428,8 +29426,8 @@
|
|
|
29428
29426
|
help: 'Input buttons must have discernible text'
|
|
29429
29427
|
},
|
|
29430
29428
|
'input-image-alt': {
|
|
29431
|
-
description: 'Ensure <input type="image"> elements have
|
|
29432
|
-
help: 'Image buttons must have
|
|
29429
|
+
description: 'Ensure <input type="image"> elements have alternative text',
|
|
29430
|
+
help: 'Image buttons must have alternative text'
|
|
29433
29431
|
},
|
|
29434
29432
|
'label-content-name-mismatch': {
|
|
29435
29433
|
description: 'Ensure that elements labelled through their content must have their visible text as part of their accessible name',
|
|
@@ -29524,8 +29522,8 @@
|
|
|
29524
29522
|
help: '<video> or <audio> elements must not play automatically'
|
|
29525
29523
|
},
|
|
29526
29524
|
'object-alt': {
|
|
29527
|
-
description: 'Ensure <object> elements have
|
|
29528
|
-
help: '<object> elements must have
|
|
29525
|
+
description: 'Ensure <object> elements have alternative text',
|
|
29526
|
+
help: '<object> elements must have alternative text'
|
|
29529
29527
|
},
|
|
29530
29528
|
'p-as-heading': {
|
|
29531
29529
|
description: 'Ensure bold, italic text and font-size is not used to style <p> elements as a heading',
|
|
@@ -29544,7 +29542,7 @@
|
|
|
29544
29542
|
help: 'All page content should be contained by landmarks'
|
|
29545
29543
|
},
|
|
29546
29544
|
'role-img-alt': {
|
|
29547
|
-
description: 'Ensure [role="img"] elements have
|
|
29545
|
+
description: 'Ensure [role="img"] elements have alternative text',
|
|
29548
29546
|
help: '[role="img"] elements must have an alternative text'
|
|
29549
29547
|
},
|
|
29550
29548
|
'scope-attr-valid': {
|
|
@@ -30120,8 +30118,8 @@
|
|
|
30120
30118
|
'explicit-label': {
|
|
30121
30119
|
impact: 'critical',
|
|
30122
30120
|
messages: {
|
|
30123
|
-
pass: '
|
|
30124
|
-
fail: '
|
|
30121
|
+
pass: 'Element has an explicit <label>',
|
|
30122
|
+
fail: 'Element does not have an explicit <label>',
|
|
30125
30123
|
incomplete: 'Unable to determine if form element has an explicit <label>'
|
|
30126
30124
|
}
|
|
30127
30125
|
},
|
|
@@ -30143,8 +30141,8 @@
|
|
|
30143
30141
|
'implicit-label': {
|
|
30144
30142
|
impact: 'critical',
|
|
30145
30143
|
messages: {
|
|
30146
|
-
pass: '
|
|
30147
|
-
fail: '
|
|
30144
|
+
pass: 'Element has an implicit (wrapped) <label>',
|
|
30145
|
+
fail: 'Element does not have an implicit (wrapped) <label>',
|
|
30148
30146
|
incomplete: 'Unable to determine if form element has an implicit (wrapped) <label>'
|
|
30149
30147
|
}
|
|
30150
30148
|
},
|
|
@@ -31106,7 +31104,7 @@
|
|
|
31106
31104
|
attribute: 'title'
|
|
31107
31105
|
},
|
|
31108
31106
|
id: 'non-empty-title'
|
|
31109
|
-
}, 'presentational-role' ],
|
|
31107
|
+
}, 'implicit-label', 'explicit-label', 'presentational-role' ],
|
|
31110
31108
|
none: []
|
|
31111
31109
|
}, {
|
|
31112
31110
|
id: 'bypass',
|
|
@@ -31494,7 +31492,7 @@
|
|
|
31494
31492
|
attribute: 'title'
|
|
31495
31493
|
},
|
|
31496
31494
|
id: 'non-empty-title'
|
|
31497
|
-
}, 'presentational-role' ],
|
|
31495
|
+
}, 'implicit-label', 'explicit-label', 'presentational-role' ],
|
|
31498
31496
|
none: []
|
|
31499
31497
|
}, {
|
|
31500
31498
|
id: 'input-image-alt',
|
|
@@ -31514,7 +31512,7 @@
|
|
|
31514
31512
|
attribute: 'title'
|
|
31515
31513
|
},
|
|
31516
31514
|
id: 'non-empty-title'
|
|
31517
|
-
} ],
|
|
31515
|
+
}, 'implicit-label', 'explicit-label' ],
|
|
31518
31516
|
none: []
|
|
31519
31517
|
}, {
|
|
31520
31518
|
id: 'label-content-name-mismatch',
|