- commit
- 158c704aa0d8c2e8fc6cc37770ae00666f8d8956
- parent
- f7efd39d6286c4bfddc070ebd6e8676f6bc948dd
- Author
- Tobias Bengfort <tobias.bengfort@posteo.de>
- Date
- 2026-02-19 00:02
build
Diffstat
| M | babel.js | 32920 | +++++++++++++++++++++++++++++++------------------------------ |
1 files changed, 16612 insertions, 16308 deletions
diff --git a/babel.js b/babel.js
@@ -1178,28 +1178,20 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate : 1178 1178 } 1179 1179 }; 1180 11801181 -1 const _getOwner = function(node, owners) {-1 1181 const _getOwner = function(node) { 1182 1182 if (node.nodeType === node.ELEMENT_NODE && node.id) {1183 -1 const selector = '[aria-owns~="' + CSS.escape(node.id) + '"]';1184 -1 if (owners) {1185 -1 for (const owner of owners) {1186 -1 if (owner.matches(selector)) {1187 -1 return owner;1188 -1 }1189 -1 }1190 -1 } else {1191 -1 return document.querySelector(selector);1192 -1 }-1 1183 const selector = `[aria-owns~="${CSS.escape(node.id)}"]`; -1 1184 return node.getRootNode().querySelector(selector); 1193 1185 } 1194 1186 }; 1195 11871196 -1 const _getParentNode = function(node, owners) {1197 -1 return _getOwner(node, owners) || node.parentNode;-1 1188 const _getParentNode = function(node) { -1 1189 return _getOwner(node) || node.parentNode || node.host; 1198 1190 }; 1199 11911200 -1 const detectLoop = function(node, owners) {-1 1192 const detectLoop = function(node) { 1201 1193 const seen = [node];1202 -1 while ((node = _getParentNode(node, owners))) {-1 1194 while ((node = _getParentNode(node))) { 1203 1195 if (seen.includes(node)) { 1204 1196 return true; 1205 1197 } @@ -1207,27 +1199,36 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate : 1207 1199 } 1208 1200 }; 1209 12011210 -1 const getOwner = function(node, owners) {1211 -1 const owner = _getOwner(node, owners);1212 -1 if (owner && !detectLoop(node, owners)) {-1 1202 const getOwner = function(node) { -1 1203 const owner = _getOwner(node); -1 1204 if (owner && !detectLoop(node)) { 1213 1205 return owner; 1214 1206 } 1215 1207 }; 1216 12081217 -1 const getParentNode = function(node, owners) {1218 -1 return getOwner(node, owners) || node.parentNode;-1 1209 const getParentNode = function(node) { -1 1210 return getOwner(node) || node.parentNode || node.host; 1219 1211 }; 1220 1212 1221 1213 const isHidden = function(node) { 1222 1214 return node.nodeType === node.ELEMENT_NODE && getAttribute(node, 'hidden'); 1223 1215 }; 1224 12161225 -1 const getChildNodes = function(node, owners) {-1 1217 const getChildNodes = function(node) { 1226 1218 const childNodes = []; -1 1219 let rawChildNodes = []; 1227 12201228 -1 for (let i = 0; i < node.childNodes.length; i++) {1229 -1 const child = node.childNodes[i];1230 -1 if (!getOwner(child, owners) && !isHidden(child)) {-1 1221 if (node.shadowRoot) { -1 1222 rawChildNodes = node.shadowRoot.childNodes; -1 1223 } else if (node.assignedNodes) { -1 1224 rawChildNodes = node.assignedNodes(); -1 1225 } else { -1 1226 rawChildNodes = node.childNodes; -1 1227 } -1 1228 -1 1229 for (let i = 0; i < rawChildNodes.length; i++) { -1 1230 const child = rawChildNodes[i]; -1 1231 if (!getOwner(child) && !isHidden(child)) { 1231 1232 childNodes.push(child); 1232 1233 } 1233 1234 } @@ -1235,9 +1236,9 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate : 1235 1236 if (node.nodeType === node.ELEMENT_NODE) { 1236 1237 const owns = getAttribute(node, 'owns') || []; 1237 1238 for (let i = 0; i < owns.length; i++) {1238 -1 const child = document.getElementById(owns[i]);-1 1239 const child = node.getRootNode().getElementById(owns[i]); 1239 1240 // double check with getOwner for consistency1240 -1 if (child && getOwner(child, owners) === node && !isHidden(child)) {-1 1241 if (child && getOwner(child) === node && !isHidden(child)) { 1241 1242 childNodes.push(child); 1242 1243 } 1243 1244 } @@ -1247,12 +1248,11 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate : 1247 1248 }; 1248 1249 1249 1250 const walk = function(root, fn) {1250 -1 const owners = document.querySelectorAll('[aria-owns]');1251 1251 let queue = [root]; 1252 1252 while (queue.length) { 1253 1253 const item = queue.shift(); 1254 1254 fn(item);1255 -1 queue = getChildNodes(item, owners).concat(queue);-1 1255 queue = getChildNodes(item).concat(queue); 1256 1256 } 1257 1257 }; 1258 1258 @@ -1359,13 +1359,17 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate : 1359 1359 for (let i = 0; i < children.length; i++) { 1360 1360 const node = children[i]; 1361 1361 if (node.nodeType === node.TEXT_NODE) {1362 -1 const styles = window.getComputedStyle(node.parentElement);1363 -1 if (styles.textTransform === 'uppercase') {1364 -1 ret += node.textContent.toUpperCase();1365 -1 } else if (styles.textTransform === 'lowercase') {1366 -1 ret += node.textContent.toLowerCase();1367 -1 } else if (styles.textTransform === 'capitalize') {1368 -1 ret += node.textContent.replace(/\b\w/g, c => c.toUpperCase());-1 1362 if (node.parentElement) { -1 1363 const styles = window.getComputedStyle(node.parentElement); -1 1364 if (styles.textTransform === 'uppercase') { -1 1365 ret += node.textContent.toUpperCase(); -1 1366 } else if (styles.textTransform === 'lowercase') { -1 1367 ret += node.textContent.toLowerCase(); -1 1368 } else if (styles.textTransform === 'capitalize') { -1 1369 ret += node.textContent.replace(/\b\w/g, c => c.toUpperCase()); -1 1370 } else { -1 1371 ret += node.textContent; -1 1372 } 1369 1373 } else { 1370 1374 ret += node.textContent; 1371 1375 } @@ -1407,7 +1411,7 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate : 1407 1411 if (!ongoingLabelledBy && el.matches('[aria-labelledby]')) { 1408 1412 const ids = el.getAttribute('aria-labelledby').split(/\s+/); 1409 1413 const strings = ids.map(id => {1410 -1 const label = document.getElementById(id);-1 1414 const label = el.getRootNode().getElementById(id); 1411 1415 return label ? getNameRaw(label, true, true, visited, true) : ''; 1412 1416 }); 1413 1417 ret = strings.join(' '); @@ -1518,7 +1522,7 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate : 1518 1522 if (el.matches('[aria-describedby]')) { 1519 1523 const ids = el.getAttribute('aria-describedby').split(/\s+/); 1520 1524 const strings = ids.map(id => {1521 -1 const label = document.getElementById(id);-1 1525 const label = el.getRootNode().getElementById(id); 1522 1526 return label ? getNameRaw(label, true, true) : ''; 1523 1527 }); 1524 1528 ret = strings.join(' '); @@ -1560,8 +1564,8 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate : 1560 1564 1561 1565 },{}],4:[function(require,module,exports){ 1562 1566 (function (process,setImmediate){(function (){1563 -1 /*! axe v4.10.31564 -1 * Copyright (c) 2015 - 2025 Deque Systems, Inc.-1 1567 /*! axe v4.11.1 -1 1568 * Copyright (c) 2015 - 2026 Deque Systems, Inc. 1565 1569 * 1566 1570 * Your use of this Source Code Form is subject to the terms of the Mozilla Public 1567 1571 * License, v. 2.0. If a copy of the MPL was not distributed with this @@ -1584,7 +1588,7 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate : 1584 1588 }, _typeof(o); 1585 1589 } 1586 1590 var axe = axe || {};1587 -1 axe.version = '4.10.3';-1 1591 axe.version = '4.11.1'; 1588 1592 if (typeof define === 'function' && define.amd) { 1589 1593 define('axe-core', [], function() { 1590 1594 return axe; @@ -1598,23 +1602,46 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate : 1598 1602 window.axe = axe; 1599 1603 } 1600 1604 var commons;1601 -1 function SupportError(error) {1602 -1 this.name = 'SupportError';1603 -1 this.cause = error.cause;1604 -1 this.message = '`'.concat(error.cause, '` - feature unsupported in your environment.');1605 -1 if (error.ruleId) {1606 -1 this.ruleId = error.ruleId;1607 -1 this.message += ' Skipping '.concat(this.ruleId, ' rule.');1608 -1 }1609 -1 this.stack = new Error().stack;1610 -1 }1611 -1 SupportError.prototype = Object.create(Error.prototype);1612 -1 SupportError.prototype.constructor = SupportError;1613 1605 'use strict';1614 -1 var _excluded = [ 'node' ], _excluded2 = [ 'relatedNodes' ], _excluded3 = [ 'node' ], _excluded4 = [ 'variant' ], _excluded5 = [ 'matches' ], _excluded6 = [ 'chromium' ], _excluded7 = [ 'noImplicit' ], _excluded8 = [ 'noPresentational' ], _excluded9 = [ 'precision', 'format', 'inGamut' ], _excluded10 = [ 'space' ], _excluded11 = [ 'algorithm' ], _excluded12 = [ 'method' ], _excluded13 = [ 'maxDeltaE', 'deltaEMethod', 'steps', 'maxSteps' ], _excluded14 = [ 'node' ], _excluded15 = [ 'environmentData' ], _excluded16 = [ 'environmentData' ], _excluded17 = [ 'environmentData' ], _excluded18 = [ 'environmentData' ], _excluded19 = [ 'environmentData' ];-1 1606 var _excluded = [ 'precision', 'format', 'inGamut' ], _excluded2 = [ 'space' ], _excluded3 = [ 'algorithm' ], _excluded4 = [ 'method' ], _excluded5 = [ 'maxDeltaE', 'deltaEMethod', 'steps', 'maxSteps' ], _excluded6 = [ 'variant' ], _excluded7 = [ 'matches' ], _excluded8 = [ 'chromium' ], _excluded9 = [ 'noImplicit' ], _excluded0 = [ 'noPresentational' ], _excluded1 = [ 'node' ], _excluded10 = [ 'relatedNodes' ], _excluded11 = [ 'node' ], _excluded12 = [ 'node' ], _excluded13 = [ 'environmentData' ], _excluded14 = [ 'environmentData' ], _excluded15 = [ 'environmentData' ], _excluded16 = [ 'environmentData' ], _excluded17 = [ 'environmentData' ]; 1615 1607 function _toArray(r) { 1616 1608 return _arrayWithHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableRest(); 1617 1609 } -1 1610 function _wrapNativeSuper(t) { -1 1611 var r = 'function' == typeof Map ? new Map() : void 0; -1 1612 return _wrapNativeSuper = function _wrapNativeSuper(t) { -1 1613 if (null === t || !_isNativeFunction(t)) { -1 1614 return t; -1 1615 } -1 1616 if ('function' != typeof t) { -1 1617 throw new TypeError('Super expression must either be null or a function'); -1 1618 } -1 1619 if (void 0 !== r) { -1 1620 if (r.has(t)) { -1 1621 return r.get(t); -1 1622 } -1 1623 r.set(t, Wrapper); -1 1624 } -1 1625 function Wrapper() { -1 1626 return _construct(t, arguments, _getPrototypeOf(this).constructor); -1 1627 } -1 1628 return Wrapper.prototype = Object.create(t.prototype, { -1 1629 constructor: { -1 1630 value: Wrapper, -1 1631 enumerable: !1, -1 1632 writable: !0, -1 1633 configurable: !0 -1 1634 } -1 1635 }), _setPrototypeOf(Wrapper, t); -1 1636 }, _wrapNativeSuper(t); -1 1637 } -1 1638 function _isNativeFunction(t) { -1 1639 try { -1 1640 return -1 !== Function.toString.call(t).indexOf('[native code]'); -1 1641 } catch (n) { -1 1642 return 'function' == typeof t; -1 1643 } -1 1644 } 1618 1645 function _defineProperty(e, r, t) { 1619 1646 return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { 1620 1647 value: t, @@ -1632,6 +1659,34 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate : 1632 1659 var p = new (t.bind.apply(t, o))(); 1633 1660 return r && _setPrototypeOf(p, r.prototype), p; 1634 1661 } -1 1662 function _objectWithoutProperties(e, t) { -1 1663 if (null == e) { -1 1664 return {}; -1 1665 } -1 1666 var o, r, i = _objectWithoutPropertiesLoose(e, t); -1 1667 if (Object.getOwnPropertySymbols) { -1 1668 var n = Object.getOwnPropertySymbols(e); -1 1669 for (r = 0; r < n.length; r++) { -1 1670 o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); -1 1671 } -1 1672 } -1 1673 return i; -1 1674 } -1 1675 function _objectWithoutPropertiesLoose(r, e) { -1 1676 if (null == r) { -1 1677 return {}; -1 1678 } -1 1679 var t = {}; -1 1680 for (var n in r) { -1 1681 if ({}.hasOwnProperty.call(r, n)) { -1 1682 if (-1 !== e.indexOf(n)) { -1 1683 continue; -1 1684 } -1 1685 t[n] = r[n]; -1 1686 } -1 1687 } -1 1688 return t; -1 1689 } 1635 1690 function _callSuper(t, o, e) { 1636 1691 return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); 1637 1692 } @@ -1682,6 +1737,33 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate : 1682 1737 return t.__proto__ = e, t; 1683 1738 }, _setPrototypeOf(t, e); 1684 1739 } -1 1740 function _extends() { -1 1741 return _extends = Object.assign ? Object.assign.bind() : function(n) { -1 1742 for (var e = 1; e < arguments.length; e++) { -1 1743 var t = arguments[e]; -1 1744 for (var r in t) { -1 1745 ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); -1 1746 } -1 1747 } -1 1748 return n; -1 1749 }, _extends.apply(null, arguments); -1 1750 } -1 1751 function _toConsumableArray(r) { -1 1752 return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread(); -1 1753 } -1 1754 function _nonIterableSpread() { -1 1755 throw new TypeError('Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.'); -1 1756 } -1 1757 function _iterableToArray(r) { -1 1758 if ('undefined' != typeof Symbol && null != r[Symbol.iterator] || null != r['@@iterator']) { -1 1759 return Array.from(r); -1 1760 } -1 1761 } -1 1762 function _arrayWithoutHoles(r) { -1 1763 if (Array.isArray(r)) { -1 1764 return _arrayLikeToArray(r); -1 1765 } -1 1766 } 1685 1767 function _classPrivateFieldInitSpec(e, t, a) { 1686 1768 _checkPrivateRedeclaration(e, t), t.set(e, a); 1687 1769 } @@ -1705,61 +1787,6 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate : 1705 1787 } 1706 1788 throw new TypeError('Private element is not present on this object'); 1707 1789 }1708 -1 function _objectWithoutProperties(e, t) {1709 -1 if (null == e) {1710 -1 return {};1711 -1 }1712 -1 var o, r, i = _objectWithoutPropertiesLoose(e, t);1713 -1 if (Object.getOwnPropertySymbols) {1714 -1 var s = Object.getOwnPropertySymbols(e);1715 -1 for (r = 0; r < s.length; r++) {1716 -1 o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);1717 -1 }1718 -1 }1719 -1 return i;1720 -1 }1721 -1 function _objectWithoutPropertiesLoose(r, e) {1722 -1 if (null == r) {1723 -1 return {};1724 -1 }1725 -1 var t = {};1726 -1 for (var n in r) {1727 -1 if ({}.hasOwnProperty.call(r, n)) {1728 -1 if (e.includes(n)) {1729 -1 continue;1730 -1 }1731 -1 t[n] = r[n];1732 -1 }1733 -1 }1734 -1 return t;1735 -1 }1736 -1 function _toConsumableArray(r) {1737 -1 return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread();1738 -1 }1739 -1 function _nonIterableSpread() {1740 -1 throw new TypeError('Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.');1741 -1 }1742 -1 function _iterableToArray(r) {1743 -1 if ('undefined' != typeof Symbol && null != r[Symbol.iterator] || null != r['@@iterator']) {1744 -1 return Array.from(r);1745 -1 }1746 -1 }1747 -1 function _arrayWithoutHoles(r) {1748 -1 if (Array.isArray(r)) {1749 -1 return _arrayLikeToArray(r);1750 -1 }1751 -1 }1752 -1 function _extends() {1753 -1 return _extends = Object.assign ? Object.assign.bind() : function(n) {1754 -1 for (var e = 1; e < arguments.length; e++) {1755 -1 var t = arguments[e];1756 -1 for (var r in t) {1757 -1 ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);1758 -1 }1759 -1 }1760 -1 return n;1761 -1 }, _extends.apply(null, arguments);1762 -1 }1763 1790 function _slicedToArray(r, e) { 1764 1791 return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); 1765 1792 } @@ -1983,6235 +2010,6238 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate : 1983 2010 __defNormalProp(obj, _typeof(key) !== 'symbol' ? key + '' : key, value); 1984 2011 return value; 1985 2012 };1986 -1 var require_noop = __commonJS(function(exports, module) {1987 -1 'use strict';1988 -1 module.exports = function() {};1989 -1 });1990 -1 var require_is_value = __commonJS(function(exports, module) {1991 -1 'use strict';1992 -1 var _undefined = require_noop()();1993 -1 module.exports = function(val) {1994 -1 return val !== _undefined && val !== null;1995 -1 };1996 -1 });1997 -1 var require_normalize_options = __commonJS(function(exports, module) {1998 -1 'use strict';1999 -1 var isValue = require_is_value();2000 -1 var forEach = Array.prototype.forEach;2001 -1 var create = Object.create;2002 -1 var process2 = function process2(src, obj) {2003 -1 var key;2004 -1 for (key in src) {2005 -1 obj[key] = src[key];-1 2013 var require_es6_promise = __commonJS(function(exports, module) { -1 2014 (function(global2, factory) { -1 2015 _typeof(exports) === 'object' && typeof module !== 'undefined' ? module.exports = factory() : typeof define === 'function' && define.amd ? define(factory) : global2.ES6Promise = factory(); -1 2016 })(exports, function() { -1 2017 'use strict'; -1 2018 function objectOrFunction(x) { -1 2019 var type2 = _typeof(x); -1 2020 return x !== null && (type2 === 'object' || type2 === 'function'); 2006 2021 }2007 -1 };2008 -1 module.exports = function(opts1) {2009 -1 var result = create(null);2010 -1 forEach.call(arguments, function(options) {2011 -1 if (!isValue(options)) {2012 -1 return;2013 -1 }2014 -1 process2(Object(options), result);2015 -1 });2016 -1 return result;2017 -1 };2018 -1 });2019 -1 var require_is_implemented = __commonJS(function(exports, module) {2020 -1 'use strict';2021 -1 module.exports = function() {2022 -1 var sign = Math.sign;2023 -1 if (typeof sign !== 'function') {2024 -1 return false;-1 2022 function isFunction(x) { -1 2023 return typeof x === 'function'; 2025 2024 }2026 -1 return sign(10) === 1 && sign(-20) === -1;2027 -1 };2028 -1 });2029 -1 var require_shim = __commonJS(function(exports, module) {2030 -1 'use strict';2031 -1 module.exports = function(value) {2032 -1 value = Number(value);2033 -1 if (isNaN(value) || value === 0) {2034 -1 return value;-1 2025 var _isArray = void 0; -1 2026 if (Array.isArray) { -1 2027 _isArray = Array.isArray; -1 2028 } else { -1 2029 _isArray = function _isArray(x) { -1 2030 return Object.prototype.toString.call(x) === '[object Array]'; -1 2031 }; 2035 2032 }2036 -1 return value > 0 ? 1 : -1;2037 -1 };2038 -1 });2039 -1 var require_sign = __commonJS(function(exports, module) {2040 -1 'use strict';2041 -1 module.exports = require_is_implemented()() ? Math.sign : require_shim();2042 -1 });2043 -1 var require_to_integer = __commonJS(function(exports, module) {2044 -1 'use strict';2045 -1 var sign = require_sign();2046 -1 var abs = Math.abs;2047 -1 var floor = Math.floor;2048 -1 module.exports = function(value) {2049 -1 if (isNaN(value)) {2050 -1 return 0;-1 2033 var isArray = _isArray; -1 2034 var len = 0; -1 2035 var vertxNext = void 0; -1 2036 var customSchedulerFn = void 0; -1 2037 var asap = function asap2(callback, arg) { -1 2038 queue2[len] = callback; -1 2039 queue2[len + 1] = arg; -1 2040 len += 2; -1 2041 if (len === 2) { -1 2042 if (customSchedulerFn) { -1 2043 customSchedulerFn(flush); -1 2044 } else { -1 2045 scheduleFlush(); -1 2046 } -1 2047 } -1 2048 }; -1 2049 function setScheduler(scheduleFn) { -1 2050 customSchedulerFn = scheduleFn; 2051 2051 }2052 -1 value = Number(value);2053 -1 if (value === 0 || !isFinite(value)) {2054 -1 return value;-1 2052 function setAsap(asapFn) { -1 2053 asap = asapFn; 2055 2054 }2056 -1 return sign(value) * floor(abs(value));2057 -1 };2058 -1 });2059 -1 var require_to_pos_integer = __commonJS(function(exports, module) {2060 -1 'use strict';2061 -1 var toInteger = require_to_integer();2062 -1 var max2 = Math.max;2063 -1 module.exports = function(value) {2064 -1 return max2(0, toInteger(value));2065 -1 };2066 -1 });2067 -1 var require_resolve_length = __commonJS(function(exports, module) {2068 -1 'use strict';2069 -1 var toPosInt = require_to_pos_integer();2070 -1 module.exports = function(optsLength, fnLength, isAsync) {2071 -1 var length;2072 -1 if (isNaN(optsLength)) {2073 -1 length = fnLength;2074 -1 if (!(length >= 0)) {2075 -1 return 1;2076 -1 }2077 -1 if (isAsync && length) {2078 -1 return length - 1;-1 2055 var browserWindow = typeof window !== 'undefined' ? window : void 0; -1 2056 var browserGlobal = browserWindow || {}; -1 2057 var BrowserMutationObserver = browserGlobal.MutationObserver || browserGlobal.WebKitMutationObserver; -1 2058 var isNode2 = typeof self === 'undefined' && typeof process !== 'undefined' && {}.toString.call(process) === '[object process]'; -1 2059 var isWorker = typeof Uint8ClampedArray !== 'undefined' && typeof importScripts !== 'undefined' && typeof MessageChannel !== 'undefined'; -1 2060 function useNextTick() { -1 2061 return function() { -1 2062 return process.nextTick(flush); -1 2063 }; -1 2064 } -1 2065 function useVertxTimer() { -1 2066 if (typeof vertxNext !== 'undefined') { -1 2067 return function() { -1 2068 vertxNext(flush); -1 2069 }; 2079 2070 }2080 -1 return length;-1 2071 return useSetTimeout(); 2081 2072 }2082 -1 if (optsLength === false) {2083 -1 return false;-1 2073 function useMutationObserver() { -1 2074 var iterations = 0; -1 2075 var observer = new BrowserMutationObserver(flush); -1 2076 var node = document.createTextNode(''); -1 2077 observer.observe(node, { -1 2078 characterData: true -1 2079 }); -1 2080 return function() { -1 2081 node.data = iterations = ++iterations % 2; -1 2082 }; 2084 2083 }2085 -1 return toPosInt(optsLength);2086 -1 };2087 -1 });2088 -1 var require_valid_callable = __commonJS(function(exports, module) {2089 -1 'use strict';2090 -1 module.exports = function(fn) {2091 -1 if (typeof fn !== 'function') {2092 -1 throw new TypeError(fn + ' is not a function');-1 2084 function useMessageChannel() { -1 2085 var channel = new MessageChannel(); -1 2086 channel.port1.onmessage = flush; -1 2087 return function() { -1 2088 return channel.port2.postMessage(0); -1 2089 }; 2093 2090 }2094 -1 return fn;2095 -1 };2096 -1 });2097 -1 var require_valid_value = __commonJS(function(exports, module) {2098 -1 'use strict';2099 -1 var isValue = require_is_value();2100 -1 module.exports = function(value) {2101 -1 if (!isValue(value)) {2102 -1 throw new TypeError('Cannot use null or undefined');-1 2091 function useSetTimeout() { -1 2092 var globalSetTimeout = setTimeout; -1 2093 return function() { -1 2094 return globalSetTimeout(flush, 1); -1 2095 }; 2103 2096 }2104 -1 return value;2105 -1 };2106 -1 });2107 -1 var require_iterate = __commonJS(function(exports, module) {2108 -1 'use strict';2109 -1 var callable = require_valid_callable();2110 -1 var value = require_valid_value();2111 -1 var bind = Function.prototype.bind;2112 -1 var call = Function.prototype.call;2113 -1 var keys = Object.keys;2114 -1 var objPropertyIsEnumerable = Object.prototype.propertyIsEnumerable;2115 -1 module.exports = function(method, defVal) {2116 -1 return function(obj, cb) {2117 -1 var list, thisArg = arguments[2], compareFn = arguments[3];2118 -1 obj = Object(value(obj));2119 -1 callable(cb);2120 -1 list = keys(obj);2121 -1 if (compareFn) {2122 -1 list.sort(typeof compareFn === 'function' ? bind.call(compareFn, obj) : void 0);2123 -1 }2124 -1 if (typeof method !== 'function') {2125 -1 method = list[method];-1 2097 var queue2 = new Array(1e3); -1 2098 function flush() { -1 2099 for (var i = 0; i < len; i += 2) { -1 2100 var callback = queue2[i]; -1 2101 var arg = queue2[i + 1]; -1 2102 callback(arg); -1 2103 queue2[i] = void 0; -1 2104 queue2[i + 1] = void 0; 2126 2105 }2127 -1 return call.call(method, list, function(key, index) {2128 -1 if (!objPropertyIsEnumerable.call(obj, key)) {2129 -1 return defVal;2130 -1 }2131 -1 return call.call(cb, thisArg, obj[key], key, obj, index);2132 -1 });2133 -1 };2134 -1 };2135 -1 });2136 -1 var require_for_each = __commonJS(function(exports, module) {2137 -1 'use strict';2138 -1 module.exports = require_iterate()('forEach');2139 -1 });2140 -1 var require_registered_extensions = __commonJS(function() {2141 -1 'use strict';2142 -1 });2143 -1 var require_is_implemented2 = __commonJS(function(exports, module) {2144 -1 'use strict';2145 -1 module.exports = function() {2146 -1 var assign = Object.assign, obj;2147 -1 if (typeof assign !== 'function') {2148 -1 return false;2149 -1 }2150 -1 obj = {2151 -1 foo: 'raz'2152 -1 };2153 -1 assign(obj, {2154 -1 bar: 'dwa'2155 -1 }, {2156 -1 trzy: 'trzy'2157 -1 });2158 -1 return obj.foo + obj.bar + obj.trzy === 'razdwatrzy';2159 -1 };2160 -1 });2161 -1 var require_is_implemented3 = __commonJS(function(exports, module) {2162 -1 'use strict';2163 -1 module.exports = function() {2164 -1 try {2165 -1 Object.keys('primitive');2166 -1 return true;2167 -1 } catch (e) {2168 -1 return false;-1 2106 len = 0; 2169 2107 }2170 -1 };2171 -1 });2172 -1 var require_shim2 = __commonJS(function(exports, module) {2173 -1 'use strict';2174 -1 var isValue = require_is_value();2175 -1 var keys = Object.keys;2176 -1 module.exports = function(object) {2177 -1 return keys(isValue(object) ? Object(object) : object);2178 -1 };2179 -1 });2180 -1 var require_keys = __commonJS(function(exports, module) {2181 -1 'use strict';2182 -1 module.exports = require_is_implemented3()() ? Object.keys : require_shim2();2183 -1 });2184 -1 var require_shim3 = __commonJS(function(exports, module) {2185 -1 'use strict';2186 -1 var keys = require_keys();2187 -1 var value = require_valid_value();2188 -1 var max2 = Math.max;2189 -1 module.exports = function(dest, src) {2190 -1 var error, i, length = max2(arguments.length, 2), assign;2191 -1 dest = Object(value(dest));2192 -1 assign = function assign(key) {-1 2108 function attemptVertx() { 2193 2109 try {2194 -1 dest[key] = src[key];-1 2110 var vertx = Function('return this')().require('vertx'); -1 2111 vertxNext = vertx.runOnLoop || vertx.runOnContext; -1 2112 return useVertxTimer(); 2195 2113 } catch (e) {2196 -1 if (!error) {2197 -1 error = e;2198 -1 }-1 2114 return useSetTimeout(); 2199 2115 }2200 -1 };2201 -1 for (i = 1; i < length; ++i) {2202 -1 src = arguments[i];2203 -1 keys(src).forEach(assign);2204 2116 }2205 -1 if (error !== void 0) {2206 -1 throw error;-1 2117 var scheduleFlush = void 0; -1 2118 if (isNode2) { -1 2119 scheduleFlush = useNextTick(); -1 2120 } else if (BrowserMutationObserver) { -1 2121 scheduleFlush = useMutationObserver(); -1 2122 } else if (isWorker) { -1 2123 scheduleFlush = useMessageChannel(); -1 2124 } else if (browserWindow === void 0 && true) { -1 2125 scheduleFlush = attemptVertx(); -1 2126 } else { -1 2127 scheduleFlush = useSetTimeout(); 2207 2128 }2208 -1 return dest;2209 -1 };2210 -1 });2211 -1 var require_assign = __commonJS(function(exports, module) {2212 -1 'use strict';2213 -1 module.exports = require_is_implemented2()() ? Object.assign : require_shim3();2214 -1 });2215 -1 var require_is_object = __commonJS(function(exports, module) {2216 -1 'use strict';2217 -1 var isValue = require_is_value();2218 -1 var map = {2219 -1 function: true,2220 -1 object: true2221 -1 };2222 -1 module.exports = function(value) {2223 -1 return isValue(value) && map[_typeof(value)] || false;2224 -1 };2225 -1 });2226 -1 var require_custom = __commonJS(function(exports, module) {2227 -1 'use strict';2228 -1 var assign = require_assign();2229 -1 var isObject = require_is_object();2230 -1 var isValue = require_is_value();2231 -1 var captureStackTrace = Error.captureStackTrace;2232 -1 module.exports = function(message) {2233 -1 var err2 = new Error(message), code = arguments[1], ext = arguments[2];2234 -1 if (!isValue(ext)) {2235 -1 if (isObject(code)) {2236 -1 ext = code;2237 -1 code = null;-1 2129 function then(onFulfillment, onRejection) { -1 2130 var parent = this; -1 2131 var child = new this.constructor(noop3); -1 2132 if (child[PROMISE_ID] === void 0) { -1 2133 makePromise(child); -1 2134 } -1 2135 var _state = parent._state; -1 2136 if (_state) { -1 2137 var callback = arguments[_state - 1]; -1 2138 asap(function() { -1 2139 return invokeCallback(_state, child, callback, parent._result); -1 2140 }); -1 2141 } else { -1 2142 subscribe2(parent, child, onFulfillment, onRejection); 2238 2143 } -1 2144 return child; 2239 2145 }2240 -1 if (isValue(ext)) {2241 -1 assign(err2, ext);-1 2146 function resolve$1(object) { -1 2147 var Constructor = this; -1 2148 if (object && _typeof(object) === 'object' && object.constructor === Constructor) { -1 2149 return object; -1 2150 } -1 2151 var promise = new Constructor(noop3); -1 2152 resolve(promise, object); -1 2153 return promise; 2242 2154 }2243 -1 if (isValue(code)) {2244 -1 err2.code = code;-1 2155 var PROMISE_ID = Math.random().toString(36).substring(2); -1 2156 function noop3() {} -1 2157 var PENDING = void 0; -1 2158 var FULFILLED = 1; -1 2159 var REJECTED = 2; -1 2160 function selfFulfillment() { -1 2161 return new TypeError('You cannot resolve a promise with itself'); 2245 2162 }2246 -1 if (captureStackTrace) {2247 -1 captureStackTrace(err2, module.exports);-1 2163 function cannotReturnOwn() { -1 2164 return new TypeError('A promises callback cannot return that same promise.'); 2248 2165 }2249 -1 return err2;2250 -1 };2251 -1 });2252 -1 var require_mixin = __commonJS(function(exports, module) {2253 -1 'use strict';2254 -1 var value = require_valid_value();2255 -1 var defineProperty = Object.defineProperty;2256 -1 var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;2257 -1 var getOwnPropertyNames = Object.getOwnPropertyNames;2258 -1 var getOwnPropertySymbols = Object.getOwnPropertySymbols;2259 -1 module.exports = function(target, source) {2260 -1 var error, sourceObject = Object(value(source));2261 -1 target = Object(value(target));2262 -1 getOwnPropertyNames(sourceObject).forEach(function(name) {-1 2166 function tryThen(then$$1, value, fulfillmentHandler, rejectionHandler) { 2263 2167 try {2264 -1 defineProperty(target, name, getOwnPropertyDescriptor(source, name));-1 2168 then$$1.call(value, fulfillmentHandler, rejectionHandler); 2265 2169 } catch (e) {2266 -1 error = e;-1 2170 return e; 2267 2171 }2268 -1 });2269 -1 if (typeof getOwnPropertySymbols === 'function') {2270 -1 getOwnPropertySymbols(sourceObject).forEach(function(symbol) {2271 -1 try {2272 -1 defineProperty(target, symbol, getOwnPropertyDescriptor(source, symbol));2273 -1 } catch (e) {2274 -1 error = e;2275 -1 }2276 -1 });2277 2172 }2278 -1 if (error !== void 0) {2279 -1 throw error;-1 2173 function handleForeignThenable(promise, thenable, then$$1) { -1 2174 asap(function(promise2) { -1 2175 var sealed = false; -1 2176 var error = tryThen(then$$1, thenable, function(value) { -1 2177 if (sealed) { -1 2178 return; -1 2179 } -1 2180 sealed = true; -1 2181 if (thenable !== value) { -1 2182 resolve(promise2, value); -1 2183 } else { -1 2184 fulfill(promise2, value); -1 2185 } -1 2186 }, function(reason) { -1 2187 if (sealed) { -1 2188 return; -1 2189 } -1 2190 sealed = true; -1 2191 reject(promise2, reason); -1 2192 }, 'Settle: ' + (promise2._label || ' unknown promise')); -1 2193 if (!sealed && error) { -1 2194 sealed = true; -1 2195 reject(promise2, error); -1 2196 } -1 2197 }, promise); 2280 2198 }2281 -1 return target;2282 -1 };2283 -1 });2284 -1 var require_define_length = __commonJS(function(exports, module) {2285 -1 'use strict';2286 -1 var toPosInt = require_to_pos_integer();2287 -1 var test = function test(arg1, arg2) {2288 -1 return arg2;2289 -1 };2290 -1 var desc;2291 -1 var defineProperty;2292 -1 var generate;2293 -1 var mixin;2294 -1 try {2295 -1 Object.defineProperty(test, 'length', {2296 -1 configurable: true,2297 -1 writable: false,2298 -1 enumerable: false,2299 -1 value: 12300 -1 });2301 -1 } catch (ignore) {}2302 -1 if (test.length === 1) {2303 -1 desc = {2304 -1 configurable: true,2305 -1 writable: false,2306 -1 enumerable: false2307 -1 };2308 -1 defineProperty = Object.defineProperty;2309 -1 module.exports = function(fn, length) {2310 -1 length = toPosInt(length);2311 -1 if (fn.length === length) {2312 -1 return fn;-1 2199 function handleOwnThenable(promise, thenable) { -1 2200 if (thenable._state === FULFILLED) { -1 2201 fulfill(promise, thenable._result); -1 2202 } else if (thenable._state === REJECTED) { -1 2203 reject(promise, thenable._result); -1 2204 } else { -1 2205 subscribe2(thenable, void 0, function(value) { -1 2206 return resolve(promise, value); -1 2207 }, function(reason) { -1 2208 return reject(promise, reason); -1 2209 }); 2313 2210 }2314 -1 desc.value = length;2315 -1 return defineProperty(fn, 'length', desc);2316 -1 };2317 -1 } else {2318 -1 mixin = require_mixin();2319 -1 generate = function() {2320 -1 var cache2 = [];2321 -1 return function(length) {2322 -1 var args, i = 0;2323 -1 if (cache2[length]) {2324 -1 return cache2[length];2325 -1 }2326 -1 args = [];2327 -1 while (length--) {2328 -1 args.push('a' + (++i).toString(36));-1 2211 } -1 2212 function handleMaybeThenable(promise, maybeThenable, then$$1) { -1 2213 if (maybeThenable.constructor === promise.constructor && then$$1 === then && maybeThenable.constructor.resolve === resolve$1) { -1 2214 handleOwnThenable(promise, maybeThenable); -1 2215 } else { -1 2216 if (then$$1 === void 0) { -1 2217 fulfill(promise, maybeThenable); -1 2218 } else if (isFunction(then$$1)) { -1 2219 handleForeignThenable(promise, maybeThenable, then$$1); -1 2220 } else { -1 2221 fulfill(promise, maybeThenable); 2329 2222 }2330 -1 return new Function('fn', 'return function (' + args.join(', ') + ') { return fn.apply(this, arguments); };');2331 -1 };2332 -1 }();2333 -1 module.exports = function(src, length) {2334 -1 var target;2335 -1 length = toPosInt(length);2336 -1 if (src.length === length) {2337 -1 return src;2338 2223 }2339 -1 target = generate(length)(src);2340 -1 try {2341 -1 mixin(target, src);2342 -1 } catch (ignore) {}2343 -1 return target;2344 -1 };2345 -1 }2346 -1 });2347 -1 var require_is = __commonJS(function(exports, module) {2348 -1 'use strict';2349 -1 var _undefined = void 0;2350 -1 module.exports = function(value) {2351 -1 return value !== _undefined && value !== null;2352 -1 };2353 -1 });2354 -1 var require_is2 = __commonJS(function(exports, module) {2355 -1 'use strict';2356 -1 var isValue = require_is();2357 -1 var possibleTypes = {2358 -1 object: true,2359 -1 function: true,2360 -1 undefined: true2361 -1 };2362 -1 module.exports = function(value) {2363 -1 if (!isValue(value)) {2364 -1 return false;2365 -1 }2366 -1 return hasOwnProperty.call(possibleTypes, _typeof(value));2367 -1 };2368 -1 });2369 -1 var require_is3 = __commonJS(function(exports, module) {2370 -1 'use strict';2371 -1 var isObject = require_is2();2372 -1 module.exports = function(value) {2373 -1 if (!isObject(value)) {2374 -1 return false;2375 2224 }2376 -1 try {2377 -1 if (!value.constructor) {2378 -1 return false;-1 2225 function resolve(promise, value) { -1 2226 if (promise === value) { -1 2227 reject(promise, selfFulfillment()); -1 2228 } else if (objectOrFunction(value)) { -1 2229 var then$$1 = void 0; -1 2230 try { -1 2231 then$$1 = value.then; -1 2232 } catch (error) { -1 2233 reject(promise, error); -1 2234 return; -1 2235 } -1 2236 handleMaybeThenable(promise, value, then$$1); -1 2237 } else { -1 2238 fulfill(promise, value); 2379 2239 }2380 -1 return value.constructor.prototype === value;2381 -1 } catch (error) {2382 -1 return false;2383 -1 }2384 -1 };2385 -1 });2386 -1 var require_is4 = __commonJS(function(exports, module) {2387 -1 'use strict';2388 -1 var isPrototype = require_is3();2389 -1 module.exports = function(value) {2390 -1 if (typeof value !== 'function') {2391 -1 return false;2392 -1 }2393 -1 if (!hasOwnProperty.call(value, 'length')) {2394 -1 return false;2395 2240 }2396 -1 try {2397 -1 if (typeof value.length !== 'number') {2398 -1 return false;-1 2241 function publishRejection(promise) { -1 2242 if (promise._onerror) { -1 2243 promise._onerror(promise._result); 2399 2244 }2400 -1 if (typeof value.call !== 'function') {2401 -1 return false;-1 2245 publish(promise); -1 2246 } -1 2247 function fulfill(promise, value) { -1 2248 if (promise._state !== PENDING) { -1 2249 return; 2402 2250 }2403 -1 if (typeof value.apply !== 'function') {2404 -1 return false;-1 2251 promise._result = value; -1 2252 promise._state = FULFILLED; -1 2253 if (promise._subscribers.length !== 0) { -1 2254 asap(publish, promise); 2405 2255 }2406 -1 } catch (error) {2407 -1 return false;2408 -1 }2409 -1 return !isPrototype(value);2410 -1 };2411 -1 });2412 -1 var require_is5 = __commonJS(function(exports, module) {2413 -1 'use strict';2414 -1 var isFunction = require_is4();2415 -1 var classRe = /^\s*class[\s{/}]/;2416 -1 var functionToString = Function.prototype.toString;2417 -1 module.exports = function(value) {2418 -1 if (!isFunction(value)) {2419 -1 return false;2420 -1 }2421 -1 if (classRe.test(functionToString.call(value))) {2422 -1 return false;2423 -1 }2424 -1 return true;2425 -1 };2426 -1 });2427 -1 var require_is_implemented4 = __commonJS(function(exports, module) {2428 -1 'use strict';2429 -1 var str = 'razdwatrzy';2430 -1 module.exports = function() {2431 -1 if (typeof str.contains !== 'function') {2432 -1 return false;2433 -1 }2434 -1 return str.contains('dwa') === true && str.contains('foo') === false;2435 -1 };2436 -1 });2437 -1 var require_shim4 = __commonJS(function(exports, module) {2438 -1 'use strict';2439 -1 var indexOf = String.prototype.indexOf;2440 -1 module.exports = function(searchString) {2441 -1 return indexOf.call(this, searchString, arguments[1]) > -1;2442 -1 };2443 -1 });2444 -1 var require_contains = __commonJS(function(exports, module) {2445 -1 'use strict';2446 -1 module.exports = require_is_implemented4()() ? String.prototype.contains : require_shim4();2447 -1 });2448 -1 var require_d = __commonJS(function(exports, module) {2449 -1 'use strict';2450 -1 var isValue = require_is();2451 -1 var isPlainFunction = require_is5();2452 -1 var assign = require_assign();2453 -1 var normalizeOpts = require_normalize_options();2454 -1 var contains3 = require_contains();2455 -1 var d2 = module.exports = function(dscr, value) {2456 -1 var c4, e, w, options, desc;2457 -1 if (arguments.length < 2 || typeof dscr !== 'string') {2458 -1 options = value;2459 -1 value = dscr;2460 -1 dscr = null;2461 -1 } else {2462 -1 options = arguments[2];2463 2256 }2464 -1 if (isValue(dscr)) {2465 -1 c4 = contains3.call(dscr, 'c');2466 -1 e = contains3.call(dscr, 'e');2467 -1 w = contains3.call(dscr, 'w');2468 -1 } else {2469 -1 c4 = w = true;2470 -1 e = false;-1 2257 function reject(promise, reason) { -1 2258 if (promise._state !== PENDING) { -1 2259 return; -1 2260 } -1 2261 promise._state = REJECTED; -1 2262 promise._result = reason; -1 2263 asap(publishRejection, promise); 2471 2264 }2472 -1 desc = {2473 -1 value: value,2474 -1 configurable: c4,2475 -1 enumerable: e,2476 -1 writable: w2477 -1 };2478 -1 return !options ? desc : assign(normalizeOpts(options), desc);2479 -1 };2480 -1 d2.gs = function(dscr, get2, set2) {2481 -1 var c4, e, options, desc;2482 -1 if (typeof dscr !== 'string') {2483 -1 options = set2;2484 -1 set2 = get2;2485 -1 get2 = dscr;2486 -1 dscr = null;2487 -1 } else {2488 -1 options = arguments[3];-1 2265 function subscribe2(parent, child, onFulfillment, onRejection) { -1 2266 var _subscribers = parent._subscribers; -1 2267 var length = _subscribers.length; -1 2268 parent._onerror = null; -1 2269 _subscribers[length] = child; -1 2270 _subscribers[length + FULFILLED] = onFulfillment; -1 2271 _subscribers[length + REJECTED] = onRejection; -1 2272 if (length === 0 && parent._state) { -1 2273 asap(publish, parent); -1 2274 } 2489 2275 }2490 -1 if (!isValue(get2)) {2491 -1 get2 = void 0;2492 -1 } else if (!isPlainFunction(get2)) {2493 -1 options = get2;2494 -1 get2 = set2 = void 0;2495 -1 } else if (!isValue(set2)) {2496 -1 set2 = void 0;2497 -1 } else if (!isPlainFunction(set2)) {2498 -1 options = set2;2499 -1 set2 = void 0;-1 2276 function publish(promise) { -1 2277 var subscribers = promise._subscribers; -1 2278 var settled = promise._state; -1 2279 if (subscribers.length === 0) { -1 2280 return; -1 2281 } -1 2282 var child = void 0, callback = void 0, detail = promise._result; -1 2283 for (var i = 0; i < subscribers.length; i += 3) { -1 2284 child = subscribers[i]; -1 2285 callback = subscribers[i + settled]; -1 2286 if (child) { -1 2287 invokeCallback(settled, child, callback, detail); -1 2288 } else { -1 2289 callback(detail); -1 2290 } -1 2291 } -1 2292 promise._subscribers.length = 0; 2500 2293 }2501 -1 if (isValue(dscr)) {2502 -1 c4 = contains3.call(dscr, 'c');2503 -1 e = contains3.call(dscr, 'e');2504 -1 } else {2505 -1 c4 = true;2506 -1 e = false;-1 2294 function invokeCallback(settled, promise, callback, detail) { -1 2295 var hasCallback = isFunction(callback), value = void 0, error = void 0, succeeded = true; -1 2296 if (hasCallback) { -1 2297 try { -1 2298 value = callback(detail); -1 2299 } catch (e) { -1 2300 succeeded = false; -1 2301 error = e; -1 2302 } -1 2303 if (promise === value) { -1 2304 reject(promise, cannotReturnOwn()); -1 2305 return; -1 2306 } -1 2307 } else { -1 2308 value = detail; -1 2309 } -1 2310 if (promise._state !== PENDING) {} else if (hasCallback && succeeded) { -1 2311 resolve(promise, value); -1 2312 } else if (succeeded === false) { -1 2313 reject(promise, error); -1 2314 } else if (settled === FULFILLED) { -1 2315 fulfill(promise, value); -1 2316 } else if (settled === REJECTED) { -1 2317 reject(promise, value); -1 2318 } 2507 2319 }2508 -1 desc = {2509 -1 get: get2,2510 -1 set: set2,2511 -1 configurable: c4,2512 -1 enumerable: e2513 -1 };2514 -1 return !options ? desc : assign(normalizeOpts(options), desc);2515 -1 };2516 -1 });2517 -1 var require_event_emitter = __commonJS(function(exports, module) {2518 -1 'use strict';2519 -1 var d2 = require_d();2520 -1 var callable = require_valid_callable();2521 -1 var apply = Function.prototype.apply;2522 -1 var call = Function.prototype.call;2523 -1 var create = Object.create;2524 -1 var defineProperty = Object.defineProperty;2525 -1 var defineProperties = Object.defineProperties;2526 -1 var hasOwnProperty2 = Object.prototype.hasOwnProperty;2527 -1 var descriptor = {2528 -1 configurable: true,2529 -1 enumerable: false,2530 -1 writable: true2531 -1 };2532 -1 var on;2533 -1 var once;2534 -1 var off;2535 -1 var emit;2536 -1 var methods;2537 -1 var descriptors;2538 -1 var base;2539 -1 on = function on(type2, listener) {2540 -1 var data;2541 -1 callable(listener);2542 -1 if (!hasOwnProperty2.call(this, '__ee__')) {2543 -1 data = descriptor.value = create(null);2544 -1 defineProperty(this, '__ee__', descriptor);2545 -1 descriptor.value = null;2546 -1 } else {2547 -1 data = this.__ee__;-1 2320 function initializePromise(promise, resolver) { -1 2321 try { -1 2322 resolver(function resolvePromise(value) { -1 2323 resolve(promise, value); -1 2324 }, function rejectPromise(reason) { -1 2325 reject(promise, reason); -1 2326 }); -1 2327 } catch (e) { -1 2328 reject(promise, e); -1 2329 } 2548 2330 }2549 -1 if (!data[type2]) {2550 -1 data[type2] = listener;2551 -1 } else if (_typeof(data[type2]) === 'object') {2552 -1 data[type2].push(listener);2553 -1 } else {2554 -1 data[type2] = [ data[type2], listener ];-1 2331 var id = 0; -1 2332 function nextId() { -1 2333 return id++; 2555 2334 }2556 -1 return this;2557 -1 };2558 -1 once = function once(type2, listener) {2559 -1 var _once, self2;2560 -1 callable(listener);2561 -1 self2 = this;2562 -1 on.call(this, type2, _once = function once2() {2563 -1 off.call(self2, type2, _once);2564 -1 apply.call(listener, this, arguments);2565 -1 });2566 -1 _once.__eeOnceListener__ = listener;2567 -1 return this;2568 -1 };2569 -1 off = function off(type2, listener) {2570 -1 var data, listeners, candidate, i;2571 -1 callable(listener);2572 -1 if (!hasOwnProperty2.call(this, '__ee__')) {2573 -1 return this;-1 2335 function makePromise(promise) { -1 2336 promise[PROMISE_ID] = id++; -1 2337 promise._state = void 0; -1 2338 promise._result = void 0; -1 2339 promise._subscribers = []; 2574 2340 }2575 -1 data = this.__ee__;2576 -1 if (!data[type2]) {2577 -1 return this;-1 2341 function validationError() { -1 2342 return new Error('Array Methods must be provided an Array'); 2578 2343 }2579 -1 listeners = data[type2];2580 -1 if (_typeof(listeners) === 'object') {2581 -1 for (i = 0; candidate = listeners[i]; ++i) {2582 -1 if (candidate === listener || candidate.__eeOnceListener__ === listener) {2583 -1 if (listeners.length === 2) {2584 -1 data[type2] = listeners[i ? 0 : 1];-1 2344 var Enumerator = function() { -1 2345 function Enumerator2(Constructor, input) { -1 2346 this._instanceConstructor = Constructor; -1 2347 this.promise = new Constructor(noop3); -1 2348 if (!this.promise[PROMISE_ID]) { -1 2349 makePromise(this.promise); -1 2350 } -1 2351 if (isArray(input)) { -1 2352 this.length = input.length; -1 2353 this._remaining = input.length; -1 2354 this._result = new Array(this.length); -1 2355 if (this.length === 0) { -1 2356 fulfill(this.promise, this._result); 2585 2357 } else {2586 -1 listeners.splice(i, 1);-1 2358 this.length = this.length || 0; -1 2359 this._enumerate(input); -1 2360 if (this._remaining === 0) { -1 2361 fulfill(this.promise, this._result); -1 2362 } 2587 2363 } -1 2364 } else { -1 2365 reject(this.promise, validationError()); 2588 2366 } 2589 2367 }2590 -1 } else {2591 -1 if (listeners === listener || listeners.__eeOnceListener__ === listener) {2592 -1 delete data[type2];2593 -1 }2594 -1 }2595 -1 return this;2596 -1 };2597 -1 emit = function emit(type2) {2598 -1 var i, l, listener, listeners, args;2599 -1 if (!hasOwnProperty2.call(this, '__ee__')) {2600 -1 return;2601 -1 }2602 -1 listeners = this.__ee__[type2];2603 -1 if (!listeners) {2604 -1 return;2605 -1 }2606 -1 if (_typeof(listeners) === 'object') {2607 -1 l = arguments.length;2608 -1 args = new Array(l - 1);2609 -1 for (i = 1; i < l; ++i) {2610 -1 args[i - 1] = arguments[i];2611 -1 }2612 -1 listeners = listeners.slice();2613 -1 for (i = 0; listener = listeners[i]; ++i) {2614 -1 apply.call(listener, this, args);2615 -1 }2616 -1 } else {2617 -1 switch (arguments.length) {2618 -1 case 1:2619 -1 call.call(listeners, this);2620 -1 break;2621 -12622 -1 case 2:2623 -1 call.call(listeners, this, arguments[1]);2624 -1 break;2625 -12626 -1 case 3:2627 -1 call.call(listeners, this, arguments[1], arguments[2]);2628 -1 break;2629 -12630 -1 default:2631 -1 l = arguments.length;2632 -1 args = new Array(l - 1);2633 -1 for (i = 1; i < l; ++i) {2634 -1 args[i - 1] = arguments[i];-1 2368 Enumerator2.prototype._enumerate = function _enumerate(input) { -1 2369 for (var i = 0; this._state === PENDING && i < input.length; i++) { -1 2370 this._eachEntry(input[i], i); 2635 2371 }2636 -1 apply.call(listeners, this, args);2637 -1 }2638 -1 }2639 -1 };2640 -1 methods = {2641 -1 on: on,2642 -1 once: once,2643 -1 off: off,2644 -1 emit: emit2645 -1 };2646 -1 descriptors = {2647 -1 on: d2(on),2648 -1 once: d2(once),2649 -1 off: d2(off),2650 -1 emit: d2(emit)2651 -1 };2652 -1 base = defineProperties({}, descriptors);2653 -1 module.exports = exports = function exports(o) {2654 -1 return o == null ? create(base) : defineProperties(Object(o), descriptors);2655 -1 };2656 -1 exports.methods = methods;2657 -1 });2658 -1 var require_is_implemented5 = __commonJS(function(exports, module) {2659 -1 'use strict';2660 -1 module.exports = function() {2661 -1 var from = Array.from, arr, result;2662 -1 if (typeof from !== 'function') {2663 -1 return false;-1 2372 }; -1 2373 Enumerator2.prototype._eachEntry = function _eachEntry(entry, i) { -1 2374 var c4 = this._instanceConstructor; -1 2375 var resolve$$1 = c4.resolve; -1 2376 if (resolve$$1 === resolve$1) { -1 2377 var _then = void 0; -1 2378 var error = void 0; -1 2379 var didError = false; -1 2380 try { -1 2381 _then = entry.then; -1 2382 } catch (e) { -1 2383 didError = true; -1 2384 error = e; -1 2385 } -1 2386 if (_then === then && entry._state !== PENDING) { -1 2387 this._settledAt(entry._state, i, entry._result); -1 2388 } else if (typeof _then !== 'function') { -1 2389 this._remaining--; -1 2390 this._result[i] = entry; -1 2391 } else if (c4 === Promise$1) { -1 2392 var promise = new c4(noop3); -1 2393 if (didError) { -1 2394 reject(promise, error); -1 2395 } else { -1 2396 handleMaybeThenable(promise, entry, _then); -1 2397 } -1 2398 this._willSettleAt(promise, i); -1 2399 } else { -1 2400 this._willSettleAt(new c4(function(resolve$$12) { -1 2401 return resolve$$12(entry); -1 2402 }), i); -1 2403 } -1 2404 } else { -1 2405 this._willSettleAt(resolve$$1(entry), i); -1 2406 } -1 2407 }; -1 2408 Enumerator2.prototype._settledAt = function _settledAt(state, i, value) { -1 2409 var promise = this.promise; -1 2410 if (promise._state === PENDING) { -1 2411 this._remaining--; -1 2412 if (state === REJECTED) { -1 2413 reject(promise, value); -1 2414 } else { -1 2415 this._result[i] = value; -1 2416 } -1 2417 } -1 2418 if (this._remaining === 0) { -1 2419 fulfill(promise, this._result); -1 2420 } -1 2421 }; -1 2422 Enumerator2.prototype._willSettleAt = function _willSettleAt(promise, i) { -1 2423 var enumerator = this; -1 2424 subscribe2(promise, void 0, function(value) { -1 2425 return enumerator._settledAt(FULFILLED, i, value); -1 2426 }, function(reason) { -1 2427 return enumerator._settledAt(REJECTED, i, reason); -1 2428 }); -1 2429 }; -1 2430 return Enumerator2; -1 2431 }(); -1 2432 function all(entries) { -1 2433 return new Enumerator(this, entries).promise; 2664 2434 }2665 -1 arr = [ 'raz', 'dwa' ];2666 -1 result = from(arr);2667 -1 return Boolean(result && result !== arr && result[1] === 'dwa');2668 -1 };2669 -1 });2670 -1 var require_is_implemented6 = __commonJS(function(exports, module) {2671 -1 'use strict';2672 -1 module.exports = function() {2673 -1 if ((typeof globalThis === 'undefined' ? 'undefined' : _typeof(globalThis)) !== 'object') {2674 -1 return false;-1 2435 function race(entries) { -1 2436 var Constructor = this; -1 2437 if (!isArray(entries)) { -1 2438 return new Constructor(function(_, reject2) { -1 2439 return reject2(new TypeError('You must pass an array to race.')); -1 2440 }); -1 2441 } else { -1 2442 return new Constructor(function(resolve2, reject2) { -1 2443 var length = entries.length; -1 2444 for (var i = 0; i < length; i++) { -1 2445 Constructor.resolve(entries[i]).then(resolve2, reject2); -1 2446 } -1 2447 }); -1 2448 } 2675 2449 }2676 -1 if (!globalThis) {2677 -1 return false;-1 2450 function reject$1(reason) { -1 2451 var Constructor = this; -1 2452 var promise = new Constructor(noop3); -1 2453 reject(promise, reason); -1 2454 return promise; 2678 2455 }2679 -1 return globalThis.Array === Array;2680 -1 };2681 -1 });2682 -1 var require_implementation = __commonJS(function(exports, module) {2683 -1 var naiveFallback = function naiveFallback() {2684 -1 if ((typeof self === 'undefined' ? 'undefined' : _typeof(self)) === 'object' && self) {2685 -1 return self;-1 2456 function needsResolver() { -1 2457 throw new TypeError('You must pass a resolver function as the first argument to the promise constructor'); 2686 2458 }2687 -1 if ((typeof window === 'undefined' ? 'undefined' : _typeof(window)) === 'object' && window) {2688 -1 return window;-1 2459 function needsNew() { -1 2460 throw new TypeError('Failed to construct \'Promise\': Please use the \'new\' operator, this object constructor cannot be called as a function.'); 2689 2461 }2690 -1 throw new Error('Unable to resolve global `this`');2691 -1 };2692 -1 module.exports = function() {2693 -1 if (this) {2694 -1 return this;-1 2462 var Promise$1 = function() { -1 2463 function Promise2(resolver) { -1 2464 this[PROMISE_ID] = nextId(); -1 2465 this._result = this._state = void 0; -1 2466 this._subscribers = []; -1 2467 if (noop3 !== resolver) { -1 2468 typeof resolver !== 'function' && needsResolver(); -1 2469 this instanceof Promise2 ? initializePromise(this, resolver) : needsNew(); -1 2470 } -1 2471 } -1 2472 Promise2.prototype['catch'] = function _catch(onRejection) { -1 2473 return this.then(null, onRejection); -1 2474 }; -1 2475 Promise2.prototype['finally'] = function _finally(callback) { -1 2476 var promise = this; -1 2477 var constructor = promise.constructor; -1 2478 if (isFunction(callback)) { -1 2479 return promise.then(function(value) { -1 2480 return constructor.resolve(callback()).then(function() { -1 2481 return value; -1 2482 }); -1 2483 }, function(reason) { -1 2484 return constructor.resolve(callback()).then(function() { -1 2485 throw reason; -1 2486 }); -1 2487 }); -1 2488 } -1 2489 return promise.then(callback, callback); -1 2490 }; -1 2491 return Promise2; -1 2492 }(); -1 2493 Promise$1.prototype.then = then; -1 2494 Promise$1.all = all; -1 2495 Promise$1.race = race; -1 2496 Promise$1.resolve = resolve$1; -1 2497 Promise$1.reject = reject$1; -1 2498 Promise$1._setScheduler = setScheduler; -1 2499 Promise$1._setAsap = setAsap; -1 2500 Promise$1._asap = asap; -1 2501 function polyfill() { -1 2502 var local = void 0; -1 2503 if (typeof global !== 'undefined') { -1 2504 local = global; -1 2505 } else if (typeof self !== 'undefined') { -1 2506 local = self; -1 2507 } else { -1 2508 try { -1 2509 local = Function('return this')(); -1 2510 } catch (e) { -1 2511 throw new Error('polyfill failed because global object is unavailable in this environment'); -1 2512 } -1 2513 } -1 2514 var P = local.Promise; -1 2515 if (P) { -1 2516 var promiseToString = null; -1 2517 try { -1 2518 promiseToString = Object.prototype.toString.call(P.resolve()); -1 2519 } catch (e) {} -1 2520 if (promiseToString === '[object Promise]' && !P.cast) { -1 2521 return; -1 2522 } -1 2523 } -1 2524 local.Promise = Promise$1; 2695 2525 }2696 -1 try {2697 -1 Object.defineProperty(Object.prototype, '__global__', {2698 -1 get: function get() {2699 -1 return this;2700 -1 },2701 -1 configurable: true2702 -1 });2703 -1 } catch (error) {2704 -1 return naiveFallback();-1 2526 Promise$1.polyfill = polyfill; -1 2527 Promise$1.Promise = Promise$1; -1 2528 return Promise$1; -1 2529 }); -1 2530 }); -1 2531 var require_typedarray = __commonJS(function(exports) { -1 2532 var MAX_ARRAY_LENGTH = 1e5; -1 2533 var ECMAScript = function() { -1 2534 var opts = Object.prototype.toString; -1 2535 var ophop = Object.prototype.hasOwnProperty; -1 2536 return { -1 2537 Class: function Class(v) { -1 2538 return opts.call(v).replace(/^\[object *|\]$/g, ''); -1 2539 }, -1 2540 HasProperty: function HasProperty(o, p2) { -1 2541 return p2 in o; -1 2542 }, -1 2543 HasOwnProperty: function HasOwnProperty(o, p2) { -1 2544 return ophop.call(o, p2); -1 2545 }, -1 2546 IsCallable: function IsCallable(o) { -1 2547 return typeof o === 'function'; -1 2548 }, -1 2549 ToInt32: function ToInt32(v) { -1 2550 return v >> 0; -1 2551 }, -1 2552 ToUint32: function ToUint32(v) { -1 2553 return v >>> 0; -1 2554 } -1 2555 }; -1 2556 }(); -1 2557 var LN2 = Math.LN2; -1 2558 var abs = Math.abs; -1 2559 var floor = Math.floor; -1 2560 var log2 = Math.log; -1 2561 var min = Math.min; -1 2562 var pow = Math.pow; -1 2563 var round = Math.round; -1 2564 function clamp3(v, minimum, max2) { -1 2565 return v < minimum ? minimum : v > max2 ? max2 : v; -1 2566 } -1 2567 var getOwnPropNames = Object.getOwnPropertyNames || function(o) { -1 2568 if (o !== Object(o)) { -1 2569 throw new TypeError('Object.getOwnPropertyNames called on non-object'); 2705 2570 }2706 -1 try {2707 -1 if (!__global__) {2708 -1 return naiveFallback();-1 2571 var props = [], p2; -1 2572 for (p2 in o) { -1 2573 if (ECMAScript.HasOwnProperty(o, p2)) { -1 2574 props.push(p2); 2709 2575 }2710 -1 return __global__;2711 -1 } finally {2712 -1 delete Object.prototype.__global__;2713 2576 }2714 -1 }();2715 -1 });2716 -1 var require_global_this = __commonJS(function(exports, module) {2717 -1 'use strict';2718 -1 module.exports = require_is_implemented6()() ? globalThis : require_implementation();2719 -1 });2720 -1 var require_is_implemented7 = __commonJS(function(exports, module) {2721 -1 'use strict';2722 -1 var global2 = require_global_this();2723 -1 var validTypes = {2724 -1 object: true,2725 -1 symbol: true-1 2577 return props; 2726 2578 };2727 -1 module.exports = function() {2728 -1 var Symbol2 = global2.Symbol;2729 -1 var symbol;2730 -1 if (typeof Symbol2 !== 'function') {2731 -1 return false;2732 -1 }2733 -1 symbol = Symbol2('test symbol');-1 2579 var defineProp; -1 2580 if (Object.defineProperty && function() { 2734 2581 try {2735 -1 String(symbol);-1 2582 Object.defineProperty({}, 'x', {}); -1 2583 return true; 2736 2584 } catch (e) { 2737 2585 return false; 2738 2586 }2739 -1 if (!validTypes[_typeof(Symbol2.iterator)]) {2740 -1 return false;-1 2587 }()) { -1 2588 defineProp = Object.defineProperty; -1 2589 } else { -1 2590 defineProp = function defineProp(o, p2, desc) { -1 2591 if (!o === Object(o)) { -1 2592 throw new TypeError('Object.defineProperty called on non-object'); -1 2593 } -1 2594 if (ECMAScript.HasProperty(desc, 'get') && Object.prototype.__defineGetter__) { -1 2595 Object.prototype.__defineGetter__.call(o, p2, desc.get); -1 2596 } -1 2597 if (ECMAScript.HasProperty(desc, 'set') && Object.prototype.__defineSetter__) { -1 2598 Object.prototype.__defineSetter__.call(o, p2, desc.set); -1 2599 } -1 2600 if (ECMAScript.HasProperty(desc, 'value')) { -1 2601 o[p2] = desc.value; -1 2602 } -1 2603 return o; -1 2604 }; -1 2605 } -1 2606 function configureProperties(obj) { -1 2607 if (getOwnPropNames && defineProp) { -1 2608 var props = getOwnPropNames(obj), i; -1 2609 for (i = 0; i < props.length; i += 1) { -1 2610 defineProp(obj, props[i], { -1 2611 value: obj[props[i]], -1 2612 writable: false, -1 2613 enumerable: false, -1 2614 configurable: false -1 2615 }); -1 2616 } 2741 2617 }2742 -1 if (!validTypes[_typeof(Symbol2.toPrimitive)]) {2743 -1 return false;-1 2618 } -1 2619 function makeArrayAccessors(obj) { -1 2620 if (!defineProp) { -1 2621 return; 2744 2622 }2745 -1 if (!validTypes[_typeof(Symbol2.toStringTag)]) {2746 -1 return false;-1 2623 if (obj.length > MAX_ARRAY_LENGTH) { -1 2624 throw new RangeError('Array too large for polyfill'); 2747 2625 }2748 -1 return true;2749 -1 };2750 -1 });2751 -1 var require_is_symbol = __commonJS(function(exports, module) {2752 -1 'use strict';2753 -1 module.exports = function(value) {2754 -1 if (!value) {2755 -1 return false;-1 2626 function makeArrayAccessor(index) { -1 2627 defineProp(obj, index, { -1 2628 get: function get() { -1 2629 return obj._getter(index); -1 2630 }, -1 2631 set: function set(v) { -1 2632 obj._setter(index, v); -1 2633 }, -1 2634 enumerable: true, -1 2635 configurable: false -1 2636 }); 2756 2637 }2757 -1 if (_typeof(value) === 'symbol') {2758 -1 return true;-1 2638 var i; -1 2639 for (i = 0; i < obj.length; i += 1) { -1 2640 makeArrayAccessor(i); 2759 2641 }2760 -1 if (!value.constructor) {2761 -1 return false;-1 2642 } -1 2643 function as_signed(value, bits) { -1 2644 var s = 32 - bits; -1 2645 return value << s >> s; -1 2646 } -1 2647 function as_unsigned(value, bits) { -1 2648 var s = 32 - bits; -1 2649 return value << s >>> s; -1 2650 } -1 2651 function packI8(n2) { -1 2652 return [ n2 & 255 ]; -1 2653 } -1 2654 function unpackI8(bytes) { -1 2655 return as_signed(bytes[0], 8); -1 2656 } -1 2657 function packU8(n2) { -1 2658 return [ n2 & 255 ]; -1 2659 } -1 2660 function unpackU8(bytes) { -1 2661 return as_unsigned(bytes[0], 8); -1 2662 } -1 2663 function packU8Clamped(n2) { -1 2664 n2 = round(Number(n2)); -1 2665 return [ n2 < 0 ? 0 : n2 > 255 ? 255 : n2 & 255 ]; -1 2666 } -1 2667 function packI16(n2) { -1 2668 return [ n2 >> 8 & 255, n2 & 255 ]; -1 2669 } -1 2670 function unpackI16(bytes) { -1 2671 return as_signed(bytes[0] << 8 | bytes[1], 16); -1 2672 } -1 2673 function packU16(n2) { -1 2674 return [ n2 >> 8 & 255, n2 & 255 ]; -1 2675 } -1 2676 function unpackU16(bytes) { -1 2677 return as_unsigned(bytes[0] << 8 | bytes[1], 16); -1 2678 } -1 2679 function packI32(n2) { -1 2680 return [ n2 >> 24 & 255, n2 >> 16 & 255, n2 >> 8 & 255, n2 & 255 ]; -1 2681 } -1 2682 function unpackI32(bytes) { -1 2683 return as_signed(bytes[0] << 24 | bytes[1] << 16 | bytes[2] << 8 | bytes[3], 32); -1 2684 } -1 2685 function packU32(n2) { -1 2686 return [ n2 >> 24 & 255, n2 >> 16 & 255, n2 >> 8 & 255, n2 & 255 ]; -1 2687 } -1 2688 function unpackU32(bytes) { -1 2689 return as_unsigned(bytes[0] << 24 | bytes[1] << 16 | bytes[2] << 8 | bytes[3], 32); -1 2690 } -1 2691 function packIEEE754(v, ebits, fbits) { -1 2692 var bias = (1 << ebits - 1) - 1; -1 2693 var s, e, f, i, bits, str, bytes; -1 2694 function roundToEven(n2) { -1 2695 var w = floor(n2); -1 2696 var fl = n2 - w; -1 2697 if (fl < .5) { -1 2698 return w; -1 2699 } -1 2700 if (fl > .5) { -1 2701 return w + 1; -1 2702 } -1 2703 return w % 2 ? w + 1 : w; 2762 2704 }2763 -1 if (value.constructor.name !== 'Symbol') {2764 -1 return false;-1 2705 if (v !== v) { -1 2706 e = (1 << ebits) - 1; -1 2707 f = pow(2, fbits - 1); -1 2708 s = 0; -1 2709 } else if (v === Infinity || v === -Infinity) { -1 2710 e = (1 << ebits) - 1; -1 2711 f = 0; -1 2712 s = v < 0 ? 1 : 0; -1 2713 } else if (v === 0) { -1 2714 e = 0; -1 2715 f = 0; -1 2716 s = 1 / v === -Infinity ? 1 : 0; -1 2717 } else { -1 2718 s = v < 0; -1 2719 v = abs(v); -1 2720 if (v >= pow(2, 1 - bias)) { -1 2721 e = min(floor(log2(v) / LN2), 1023); -1 2722 f = roundToEven(v / pow(2, e) * pow(2, fbits)); -1 2723 if (f / pow(2, fbits) >= 2) { -1 2724 e = e + 1; -1 2725 f = 1; -1 2726 } -1 2727 if (e > bias) { -1 2728 e = (1 << ebits) - 1; -1 2729 f = 0; -1 2730 } else { -1 2731 e = e + bias; -1 2732 f = f - pow(2, fbits); -1 2733 } -1 2734 } else { -1 2735 e = 0; -1 2736 f = roundToEven(v / pow(2, 1 - bias - fbits)); -1 2737 } 2765 2738 }2766 -1 return value[value.constructor.toStringTag] === 'Symbol';2767 -1 };2768 -1 });2769 -1 var require_validate_symbol = __commonJS(function(exports, module) {2770 -1 'use strict';2771 -1 var isSymbol = require_is_symbol();2772 -1 module.exports = function(value) {2773 -1 if (!isSymbol(value)) {2774 -1 throw new TypeError(value + ' is not a symbol');-1 2739 bits = []; -1 2740 for (i = fbits; i; i -= 1) { -1 2741 bits.push(f % 2 ? 1 : 0); -1 2742 f = floor(f / 2); 2775 2743 }2776 -1 return value;2777 -1 };2778 -1 });2779 -1 var require_generate_name = __commonJS(function(exports, module) {2780 -1 'use strict';2781 -1 var d2 = require_d();2782 -1 var create = Object.create;2783 -1 var defineProperty = Object.defineProperty;2784 -1 var objPrototype = Object.prototype;2785 -1 var created = create(null);2786 -1 module.exports = function(desc) {2787 -1 var postfix = 0, name, ie11BugWorkaround;2788 -1 while (created[desc + (postfix || '')]) {2789 -1 ++postfix;-1 2744 for (i = ebits; i; i -= 1) { -1 2745 bits.push(e % 2 ? 1 : 0); -1 2746 e = floor(e / 2); 2790 2747 }2791 -1 desc += postfix || '';2792 -1 created[desc] = true;2793 -1 name = '@@' + desc;2794 -1 defineProperty(objPrototype, name, d2.gs(null, function(value) {2795 -1 if (ie11BugWorkaround) {2796 -1 return;2797 -1 }2798 -1 ie11BugWorkaround = true;2799 -1 defineProperty(this, name, d2(value));2800 -1 ie11BugWorkaround = false;2801 -1 }));2802 -1 return name;2803 -1 };2804 -1 });2805 -1 var require_standard_symbols = __commonJS(function(exports, module) {2806 -1 'use strict';2807 -1 var d2 = require_d();2808 -1 var NativeSymbol = require_global_this().Symbol;2809 -1 module.exports = function(SymbolPolyfill) {2810 -1 return Object.defineProperties(SymbolPolyfill, {2811 -1 hasInstance: d2('', NativeSymbol && NativeSymbol.hasInstance || SymbolPolyfill('hasInstance')),2812 -1 isConcatSpreadable: d2('', NativeSymbol && NativeSymbol.isConcatSpreadable || SymbolPolyfill('isConcatSpreadable')),2813 -1 iterator: d2('', NativeSymbol && NativeSymbol.iterator || SymbolPolyfill('iterator')),2814 -1 match: d2('', NativeSymbol && NativeSymbol.match || SymbolPolyfill('match')),2815 -1 replace: d2('', NativeSymbol && NativeSymbol.replace || SymbolPolyfill('replace')),2816 -1 search: d2('', NativeSymbol && NativeSymbol.search || SymbolPolyfill('search')),2817 -1 species: d2('', NativeSymbol && NativeSymbol.species || SymbolPolyfill('species')),2818 -1 split: d2('', NativeSymbol && NativeSymbol.split || SymbolPolyfill('split')),2819 -1 toPrimitive: d2('', NativeSymbol && NativeSymbol.toPrimitive || SymbolPolyfill('toPrimitive')),2820 -1 toStringTag: d2('', NativeSymbol && NativeSymbol.toStringTag || SymbolPolyfill('toStringTag')),2821 -1 unscopables: d2('', NativeSymbol && NativeSymbol.unscopables || SymbolPolyfill('unscopables'))2822 -1 });2823 -1 };2824 -1 });2825 -1 var require_symbol_registry = __commonJS(function(exports, module) {2826 -1 'use strict';2827 -1 var d2 = require_d();2828 -1 var validateSymbol = require_validate_symbol();2829 -1 var registry = Object.create(null);2830 -1 module.exports = function(SymbolPolyfill) {2831 -1 return Object.defineProperties(SymbolPolyfill, {2832 -1 for: d2(function(key) {2833 -1 if (registry[key]) {2834 -1 return registry[key];2835 -1 }2836 -1 return registry[key] = SymbolPolyfill(String(key));2837 -1 }),2838 -1 keyFor: d2(function(symbol) {2839 -1 var key;2840 -1 validateSymbol(symbol);2841 -1 for (key in registry) {2842 -1 if (registry[key] === symbol) {2843 -1 return key;2844 -1 }2845 -1 }2846 -1 return void 0;2847 -1 })2848 -1 });2849 -1 };2850 -1 });2851 -1 var require_polyfill = __commonJS(function(exports, module) {2852 -1 'use strict';2853 -1 var d2 = require_d();2854 -1 var validateSymbol = require_validate_symbol();2855 -1 var NativeSymbol = require_global_this().Symbol;2856 -1 var generateName = require_generate_name();2857 -1 var setupStandardSymbols = require_standard_symbols();2858 -1 var setupSymbolRegistry = require_symbol_registry();2859 -1 var create = Object.create;2860 -1 var defineProperties = Object.defineProperties;2861 -1 var defineProperty = Object.defineProperty;2862 -1 var SymbolPolyfill;2863 -1 var HiddenSymbol;2864 -1 var isNativeSafe;2865 -1 if (typeof NativeSymbol === 'function') {2866 -1 try {2867 -1 String(NativeSymbol());2868 -1 isNativeSafe = true;2869 -1 } catch (ignore) {}2870 -1 } else {2871 -1 NativeSymbol = null;2872 -1 }2873 -1 HiddenSymbol = function Symbol2(description) {2874 -1 if (this instanceof HiddenSymbol) {2875 -1 throw new TypeError('Symbol is not a constructor');2876 -1 }2877 -1 return SymbolPolyfill(description);2878 -1 };2879 -1 module.exports = SymbolPolyfill = function Symbol2(description) {2880 -1 var symbol;2881 -1 if (this instanceof Symbol2) {2882 -1 throw new TypeError('Symbol is not a constructor');-1 2748 bits.push(s ? 1 : 0); -1 2749 bits.reverse(); -1 2750 str = bits.join(''); -1 2751 bytes = []; -1 2752 while (str.length) { -1 2753 bytes.push(parseInt(str.substring(0, 8), 2)); -1 2754 str = str.substring(8); 2883 2755 }2884 -1 if (isNativeSafe) {2885 -1 return NativeSymbol(description);-1 2756 return bytes; -1 2757 } -1 2758 function unpackIEEE754(bytes, ebits, fbits) { -1 2759 var bits = [], i, j, b2, str, bias, s, e, f; -1 2760 for (i = bytes.length; i; i -= 1) { -1 2761 b2 = bytes[i - 1]; -1 2762 for (j = 8; j; j -= 1) { -1 2763 bits.push(b2 % 2 ? 1 : 0); -1 2764 b2 = b2 >> 1; -1 2765 } 2886 2766 }2887 -1 symbol = create(HiddenSymbol.prototype);2888 -1 description = description === void 0 ? '' : String(description);2889 -1 return defineProperties(symbol, {2890 -1 __description__: d2('', description),2891 -1 __name__: d2('', generateName(description))2892 -1 });2893 -1 };2894 -1 setupStandardSymbols(SymbolPolyfill);2895 -1 setupSymbolRegistry(SymbolPolyfill);2896 -1 defineProperties(HiddenSymbol.prototype, {2897 -1 constructor: d2(SymbolPolyfill),2898 -1 toString: d2('', function() {2899 -1 return this.__name__;2900 -1 })2901 -1 });2902 -1 defineProperties(SymbolPolyfill.prototype, {2903 -1 toString: d2(function() {2904 -1 return 'Symbol (' + validateSymbol(this).__description__ + ')';2905 -1 }),2906 -1 valueOf: d2(function() {2907 -1 return validateSymbol(this);2908 -1 })2909 -1 });2910 -1 defineProperty(SymbolPolyfill.prototype, SymbolPolyfill.toPrimitive, d2('', function() {2911 -1 var symbol = validateSymbol(this);2912 -1 if (_typeof(symbol) === 'symbol') {2913 -1 return symbol;-1 2767 bits.reverse(); -1 2768 str = bits.join(''); -1 2769 bias = (1 << ebits - 1) - 1; -1 2770 s = parseInt(str.substring(0, 1), 2) ? -1 : 1; -1 2771 e = parseInt(str.substring(1, 1 + ebits), 2); -1 2772 f = parseInt(str.substring(1 + ebits), 2); -1 2773 if (e === (1 << ebits) - 1) { -1 2774 return f === 0 ? s * Infinity : NaN; -1 2775 } else if (e > 0) { -1 2776 return s * pow(2, e - bias) * (1 + f / pow(2, fbits)); -1 2777 } else if (f !== 0) { -1 2778 return s * pow(2, -(bias - 1)) * (f / pow(2, fbits)); 2914 2779 }2915 -1 return symbol.toString();2916 -1 }));2917 -1 defineProperty(SymbolPolyfill.prototype, SymbolPolyfill.toStringTag, d2('c', 'Symbol'));2918 -1 defineProperty(HiddenSymbol.prototype, SymbolPolyfill.toStringTag, d2('c', SymbolPolyfill.prototype[SymbolPolyfill.toStringTag]));2919 -1 defineProperty(HiddenSymbol.prototype, SymbolPolyfill.toPrimitive, d2('c', SymbolPolyfill.prototype[SymbolPolyfill.toPrimitive]));2920 -1 });2921 -1 var require_es6_symbol = __commonJS(function(exports, module) {2922 -1 'use strict';2923 -1 module.exports = require_is_implemented7()() ? require_global_this().Symbol : require_polyfill();2924 -1 });2925 -1 var require_is_arguments = __commonJS(function(exports, module) {2926 -1 'use strict';2927 -1 var objToString = Object.prototype.toString;2928 -1 var id = objToString.call(function() {2929 -1 return arguments;2930 -1 }());2931 -1 module.exports = function(value) {2932 -1 return objToString.call(value) === id;2933 -1 };2934 -1 });2935 -1 var require_is_function = __commonJS(function(exports, module) {2936 -1 'use strict';2937 -1 var objToString = Object.prototype.toString;2938 -1 var isFunctionStringTag = RegExp.prototype.test.bind(/^[object [A-Za-z0-9]*Function]$/);2939 -1 module.exports = function(value) {2940 -1 return typeof value === 'function' && isFunctionStringTag(objToString.call(value));2941 -1 };2942 -1 });2943 -1 var require_is_string = __commonJS(function(exports, module) {2944 -1 'use strict';2945 -1 var objToString = Object.prototype.toString;2946 -1 var id = objToString.call('');2947 -1 module.exports = function(value) {2948 -1 return typeof value === 'string' || value && _typeof(value) === 'object' && (value instanceof String || objToString.call(value) === id) || false;2949 -1 };2950 -1 });2951 -1 var require_shim5 = __commonJS(function(exports, module) {2952 -1 'use strict';2953 -1 var iteratorSymbol = require_es6_symbol().iterator;2954 -1 var isArguments = require_is_arguments();2955 -1 var isFunction = require_is_function();2956 -1 var toPosInt = require_to_pos_integer();2957 -1 var callable = require_valid_callable();2958 -1 var validValue = require_valid_value();2959 -1 var isValue = require_is_value();2960 -1 var isString2 = require_is_string();2961 -1 var isArray = Array.isArray;2962 -1 var call = Function.prototype.call;2963 -1 var desc = {2964 -1 configurable: true,2965 -1 enumerable: true,2966 -1 writable: true,2967 -1 value: null2968 -1 };2969 -1 var defineProperty = Object.defineProperty;2970 -1 module.exports = function(arrayLike) {2971 -1 var mapFn = arguments[1], thisArg = arguments[2], Context2, i, j, arr, length, code, iterator, result, getIterator, value;2972 -1 arrayLike = Object(validValue(arrayLike));2973 -1 if (isValue(mapFn)) {2974 -1 callable(mapFn);-1 2780 return s < 0 ? -0 : 0; -1 2781 } -1 2782 function unpackF64(b2) { -1 2783 return unpackIEEE754(b2, 11, 52); -1 2784 } -1 2785 function packF64(v) { -1 2786 return packIEEE754(v, 11, 52); -1 2787 } -1 2788 function unpackF32(b2) { -1 2789 return unpackIEEE754(b2, 8, 23); -1 2790 } -1 2791 function packF32(v) { -1 2792 return packIEEE754(v, 8, 23); -1 2793 } -1 2794 (function() { -1 2795 function ArrayBuffer(length) { -1 2796 length = ECMAScript.ToInt32(length); -1 2797 if (length < 0) { -1 2798 throw new RangeError('ArrayBuffer size is not a small enough positive integer'); -1 2799 } -1 2800 this.byteLength = length; -1 2801 this._bytes = []; -1 2802 this._bytes.length = length; -1 2803 var i; -1 2804 for (i = 0; i < this.byteLength; i += 1) { -1 2805 this._bytes[i] = 0; -1 2806 } -1 2807 configureProperties(this); 2975 2808 }2976 -1 if (!this || this === Array || !isFunction(this)) {2977 -1 if (!mapFn) {2978 -1 if (isArguments(arrayLike)) {2979 -1 length = arrayLike.length;2980 -1 if (length !== 1) {2981 -1 return Array.apply(null, arrayLike);-1 2809 exports.ArrayBuffer = exports.ArrayBuffer || ArrayBuffer; -1 2810 function ArrayBufferView() {} -1 2811 function makeConstructor(bytesPerElement, pack, unpack) { -1 2812 var _ctor; -1 2813 _ctor = function ctor(buffer, byteOffset, length) { -1 2814 var array, sequence, i, s; -1 2815 if (!arguments.length || typeof arguments[0] === 'number') { -1 2816 this.length = ECMAScript.ToInt32(arguments[0]); -1 2817 if (length < 0) { -1 2818 throw new RangeError('ArrayBufferView size is not a small enough positive integer'); 2982 2819 }2983 -1 arr = new Array(1);2984 -1 arr[0] = arrayLike[0];2985 -1 return arr;2986 -1 }2987 -1 if (isArray(arrayLike)) {2988 -1 arr = new Array(length = arrayLike.length);2989 -1 for (i = 0; i < length; ++i) {2990 -1 arr[i] = arrayLike[i];-1 2820 this.byteLength = this.length * this.BYTES_PER_ELEMENT; -1 2821 this.buffer = new ArrayBuffer(this.byteLength); -1 2822 this.byteOffset = 0; -1 2823 } else if (_typeof(arguments[0]) === 'object' && arguments[0].constructor === _ctor) { -1 2824 array = arguments[0]; -1 2825 this.length = array.length; -1 2826 this.byteLength = this.length * this.BYTES_PER_ELEMENT; -1 2827 this.buffer = new ArrayBuffer(this.byteLength); -1 2828 this.byteOffset = 0; -1 2829 for (i = 0; i < this.length; i += 1) { -1 2830 this._setter(i, array._getter(i)); 2991 2831 }2992 -1 return arr;-1 2832 } else if (_typeof(arguments[0]) === 'object' && !(arguments[0] instanceof ArrayBuffer || ECMAScript.Class(arguments[0]) === 'ArrayBuffer')) { -1 2833 sequence = arguments[0]; -1 2834 this.length = ECMAScript.ToUint32(sequence.length); -1 2835 this.byteLength = this.length * this.BYTES_PER_ELEMENT; -1 2836 this.buffer = new ArrayBuffer(this.byteLength); -1 2837 this.byteOffset = 0; -1 2838 for (i = 0; i < this.length; i += 1) { -1 2839 s = sequence[i]; -1 2840 this._setter(i, Number(s)); -1 2841 } -1 2842 } else if (_typeof(arguments[0]) === 'object' && (arguments[0] instanceof ArrayBuffer || ECMAScript.Class(arguments[0]) === 'ArrayBuffer')) { -1 2843 this.buffer = buffer; -1 2844 this.byteOffset = ECMAScript.ToUint32(byteOffset); -1 2845 if (this.byteOffset > this.buffer.byteLength) { -1 2846 throw new RangeError('byteOffset out of range'); -1 2847 } -1 2848 if (this.byteOffset % this.BYTES_PER_ELEMENT) { -1 2849 throw new RangeError('ArrayBuffer length minus the byteOffset is not a multiple of the element size.'); -1 2850 } -1 2851 if (arguments.length < 3) { -1 2852 this.byteLength = this.buffer.byteLength - this.byteOffset; -1 2853 if (this.byteLength % this.BYTES_PER_ELEMENT) { -1 2854 throw new RangeError('length of buffer minus byteOffset not a multiple of the element size'); -1 2855 } -1 2856 this.length = this.byteLength / this.BYTES_PER_ELEMENT; -1 2857 } else { -1 2858 this.length = ECMAScript.ToUint32(length); -1 2859 this.byteLength = this.length * this.BYTES_PER_ELEMENT; -1 2860 } -1 2861 if (this.byteOffset + this.byteLength > this.buffer.byteLength) { -1 2862 throw new RangeError('byteOffset and length reference an area beyond the end of the buffer'); -1 2863 } -1 2864 } else { -1 2865 throw new TypeError('Unexpected argument type(s)'); 2993 2866 }2994 -1 }2995 -1 arr = [];2996 -1 } else {2997 -1 Context2 = this;2998 -1 }2999 -1 if (!isArray(arrayLike)) {3000 -1 if ((getIterator = arrayLike[iteratorSymbol]) !== void 0) {3001 -1 iterator = callable(getIterator).call(arrayLike);3002 -1 if (Context2) {3003 -1 arr = new Context2();-1 2867 this.constructor = _ctor; -1 2868 configureProperties(this); -1 2869 makeArrayAccessors(this); -1 2870 }; -1 2871 _ctor.prototype = new ArrayBufferView(); -1 2872 _ctor.prototype.BYTES_PER_ELEMENT = bytesPerElement; -1 2873 _ctor.prototype._pack = pack; -1 2874 _ctor.prototype._unpack = unpack; -1 2875 _ctor.BYTES_PER_ELEMENT = bytesPerElement; -1 2876 _ctor.prototype._getter = function(index) { -1 2877 if (arguments.length < 1) { -1 2878 throw new SyntaxError('Not enough arguments'); 3004 2879 }3005 -1 result = iterator.next();3006 -1 i = 0;3007 -1 while (!result.done) {3008 -1 value = mapFn ? call.call(mapFn, thisArg, result.value, i) : result.value;3009 -1 if (Context2) {3010 -1 desc.value = value;3011 -1 defineProperty(arr, i, desc);3012 -1 } else {3013 -1 arr[i] = value;-1 2880 index = ECMAScript.ToUint32(index); -1 2881 if (index >= this.length) { -1 2882 return void 0; -1 2883 } -1 2884 var bytes = []; -1 2885 for (var i = 0, o = this.byteOffset + index * this.BYTES_PER_ELEMENT; i < this.BYTES_PER_ELEMENT; i += 1, -1 2886 o += 1) { -1 2887 bytes.push(this.buffer._bytes[o]); -1 2888 } -1 2889 return this._unpack(bytes); -1 2890 }; -1 2891 _ctor.prototype.get = _ctor.prototype._getter; -1 2892 _ctor.prototype._setter = function(index, value) { -1 2893 if (arguments.length < 2) { -1 2894 throw new SyntaxError('Not enough arguments'); -1 2895 } -1 2896 index = ECMAScript.ToUint32(index); -1 2897 if (index < this.length) { -1 2898 var bytes = this._pack(value); -1 2899 var i; -1 2900 var o; -1 2901 for (i = 0, o = this.byteOffset + index * this.BYTES_PER_ELEMENT; i < this.BYTES_PER_ELEMENT; i += 1, -1 2902 o += 1) { -1 2903 this.buffer._bytes[o] = bytes[i]; 3014 2904 }3015 -1 result = iterator.next();3016 -1 ++i;3017 2905 }3018 -1 length = i;3019 -1 } else if (isString2(arrayLike)) {3020 -1 length = arrayLike.length;3021 -1 if (Context2) {3022 -1 arr = new Context2();-1 2906 }; -1 2907 _ctor.prototype.set = function(index, value) { -1 2908 if (arguments.length < 1) { -1 2909 throw new SyntaxError('Not enough arguments'); 3023 2910 }3024 -1 for (i = 0, j = 0; i < length; ++i) {3025 -1 value = arrayLike[i];3026 -1 if (i + 1 < length) {3027 -1 code = value.charCodeAt(0);3028 -1 if (code >= 55296 && code <= 56319) {3029 -1 value += arrayLike[++i];3030 -1 }-1 2911 var array, sequence, offset, len, i, s, d2, byteOffset, byteLength, tmp; -1 2912 if (_typeof(arguments[0]) === 'object' && arguments[0].constructor === this.constructor) { -1 2913 array = arguments[0]; -1 2914 offset = ECMAScript.ToUint32(arguments[1]); -1 2915 if (offset + array.length > this.length) { -1 2916 throw new RangeError('Offset plus length of array is out of range'); 3031 2917 }3032 -1 value = mapFn ? call.call(mapFn, thisArg, value, j) : value;3033 -1 if (Context2) {3034 -1 desc.value = value;3035 -1 defineProperty(arr, j, desc);-1 2918 byteOffset = this.byteOffset + offset * this.BYTES_PER_ELEMENT; -1 2919 byteLength = array.length * this.BYTES_PER_ELEMENT; -1 2920 if (array.buffer === this.buffer) { -1 2921 tmp = []; -1 2922 for (i = 0, s = array.byteOffset; i < byteLength; i += 1, s += 1) { -1 2923 tmp[i] = array.buffer._bytes[s]; -1 2924 } -1 2925 for (i = 0, d2 = byteOffset; i < byteLength; i += 1, d2 += 1) { -1 2926 this.buffer._bytes[d2] = tmp[i]; -1 2927 } 3036 2928 } else {3037 -1 arr[j] = value;-1 2929 for (i = 0, s = array.byteOffset, d2 = byteOffset; i < byteLength; i += 1, -1 2930 s += 1, d2 += 1) { -1 2931 this.buffer._bytes[d2] = array.buffer._bytes[s]; -1 2932 } 3038 2933 }3039 -1 ++j;-1 2934 } else if (_typeof(arguments[0]) === 'object' && typeof arguments[0].length !== 'undefined') { -1 2935 sequence = arguments[0]; -1 2936 len = ECMAScript.ToUint32(sequence.length); -1 2937 offset = ECMAScript.ToUint32(arguments[1]); -1 2938 if (offset + len > this.length) { -1 2939 throw new RangeError('Offset plus length of array is out of range'); -1 2940 } -1 2941 for (i = 0; i < len; i += 1) { -1 2942 s = sequence[i]; -1 2943 this._setter(offset + i, Number(s)); -1 2944 } -1 2945 } else { -1 2946 throw new TypeError('Unexpected argument type(s)'); 3040 2947 }3041 -1 length = j;3042 -1 }-1 2948 }; -1 2949 _ctor.prototype.subarray = function(start, end) { -1 2950 start = ECMAScript.ToInt32(start); -1 2951 end = ECMAScript.ToInt32(end); -1 2952 if (arguments.length < 1) { -1 2953 start = 0; -1 2954 } -1 2955 if (arguments.length < 2) { -1 2956 end = this.length; -1 2957 } -1 2958 if (start < 0) { -1 2959 start = this.length + start; -1 2960 } -1 2961 if (end < 0) { -1 2962 end = this.length + end; -1 2963 } -1 2964 start = clamp3(start, 0, this.length); -1 2965 end = clamp3(end, 0, this.length); -1 2966 var len = end - start; -1 2967 if (len < 0) { -1 2968 len = 0; -1 2969 } -1 2970 return new this.constructor(this.buffer, this.byteOffset + start * this.BYTES_PER_ELEMENT, len); -1 2971 }; -1 2972 return _ctor; 3043 2973 }3044 -1 if (length === void 0) {3045 -1 length = toPosInt(arrayLike.length);3046 -1 if (Context2) {3047 -1 arr = new Context2(length);-1 2974 var Int8Array = makeConstructor(1, packI8, unpackI8); -1 2975 var Uint8Array2 = makeConstructor(1, packU8, unpackU8); -1 2976 var Uint8ClampedArray2 = makeConstructor(1, packU8Clamped, unpackU8); -1 2977 var Int16Array = makeConstructor(2, packI16, unpackI16); -1 2978 var Uint16Array = makeConstructor(2, packU16, unpackU16); -1 2979 var Int32Array = makeConstructor(4, packI32, unpackI32); -1 2980 var Uint32Array3 = makeConstructor(4, packU32, unpackU32); -1 2981 var Float32Array = makeConstructor(4, packF32, unpackF32); -1 2982 var Float64Array = makeConstructor(8, packF64, unpackF64); -1 2983 exports.Int8Array = exports.Int8Array || Int8Array; -1 2984 exports.Uint8Array = exports.Uint8Array || Uint8Array2; -1 2985 exports.Uint8ClampedArray = exports.Uint8ClampedArray || Uint8ClampedArray2; -1 2986 exports.Int16Array = exports.Int16Array || Int16Array; -1 2987 exports.Uint16Array = exports.Uint16Array || Uint16Array; -1 2988 exports.Int32Array = exports.Int32Array || Int32Array; -1 2989 exports.Uint32Array = exports.Uint32Array || Uint32Array3; -1 2990 exports.Float32Array = exports.Float32Array || Float32Array; -1 2991 exports.Float64Array = exports.Float64Array || Float64Array; -1 2992 })(); -1 2993 (function() { -1 2994 function r(array, index) { -1 2995 return ECMAScript.IsCallable(array.get) ? array.get(index) : array[index]; -1 2996 } -1 2997 var IS_BIG_ENDIAN = function() { -1 2998 var u16array = new exports.Uint16Array([ 4660 ]), u8array = new exports.Uint8Array(u16array.buffer); -1 2999 return r(u8array, 0) === 18; -1 3000 }(); -1 3001 function DataView(buffer, byteOffset, byteLength) { -1 3002 if (arguments.length === 0) { -1 3003 buffer = new exports.ArrayBuffer(0); -1 3004 } else if (!(buffer instanceof exports.ArrayBuffer || ECMAScript.Class(buffer) === 'ArrayBuffer')) { -1 3005 throw new TypeError('TypeError'); 3048 3006 }3049 -1 for (i = 0; i < length; ++i) {3050 -1 value = mapFn ? call.call(mapFn, thisArg, arrayLike[i], i) : arrayLike[i];3051 -1 if (Context2) {3052 -1 desc.value = value;3053 -1 defineProperty(arr, i, desc);3054 -1 } else {3055 -1 arr[i] = value;3056 -1 }-1 3007 this.buffer = buffer || new exports.ArrayBuffer(0); -1 3008 this.byteOffset = ECMAScript.ToUint32(byteOffset); -1 3009 if (this.byteOffset > this.buffer.byteLength) { -1 3010 throw new RangeError('byteOffset out of range'); -1 3011 } -1 3012 if (arguments.length < 3) { -1 3013 this.byteLength = this.buffer.byteLength - this.byteOffset; -1 3014 } else { -1 3015 this.byteLength = ECMAScript.ToUint32(byteLength); -1 3016 } -1 3017 if (this.byteOffset + this.byteLength > this.buffer.byteLength) { -1 3018 throw new RangeError('byteOffset and length reference an area beyond the end of the buffer'); 3057 3019 } -1 3020 configureProperties(this); 3058 3021 }3059 -1 if (Context2) {3060 -1 desc.value = null;3061 -1 arr.length = length;-1 3022 function makeGetter(arrayType) { -1 3023 return function(byteOffset, littleEndian) { -1 3024 byteOffset = ECMAScript.ToUint32(byteOffset); -1 3025 if (byteOffset + arrayType.BYTES_PER_ELEMENT > this.byteLength) { -1 3026 throw new RangeError('Array index out of range'); -1 3027 } -1 3028 byteOffset += this.byteOffset; -1 3029 var uint8Array = new exports.Uint8Array(this.buffer, byteOffset, arrayType.BYTES_PER_ELEMENT), bytes = [], i; -1 3030 for (i = 0; i < arrayType.BYTES_PER_ELEMENT; i += 1) { -1 3031 bytes.push(r(uint8Array, i)); -1 3032 } -1 3033 if (Boolean(littleEndian) === Boolean(IS_BIG_ENDIAN)) { -1 3034 bytes.reverse(); -1 3035 } -1 3036 return r(new arrayType(new exports.Uint8Array(bytes).buffer), 0); -1 3037 }; 3062 3038 }3063 -1 return arr;3064 -1 };3065 -1 });3066 -1 var require_from = __commonJS(function(exports, module) {3067 -1 'use strict';3068 -1 module.exports = require_is_implemented5()() ? Array.from : require_shim5();3069 -1 });3070 -1 var require_to_array = __commonJS(function(exports, module) {3071 -1 'use strict';3072 -1 var from = require_from();3073 -1 var isArray = Array.isArray;3074 -1 module.exports = function(arrayLike) {3075 -1 return isArray(arrayLike) ? arrayLike : from(arrayLike);3076 -1 };3077 -1 });3078 -1 var require_resolve_resolve = __commonJS(function(exports, module) {3079 -1 'use strict';3080 -1 var toArray2 = require_to_array();3081 -1 var isValue = require_is_value();3082 -1 var callable = require_valid_callable();3083 -1 var slice = Array.prototype.slice;3084 -1 var resolveArgs;3085 -1 resolveArgs = function resolveArgs(args) {3086 -1 return this.map(function(resolve, i) {3087 -1 return resolve ? resolve(args[i]) : args[i];3088 -1 }).concat(slice.call(args, this.length));3089 -1 };3090 -1 module.exports = function(resolvers) {3091 -1 resolvers = toArray2(resolvers);3092 -1 resolvers.forEach(function(resolve) {3093 -1 if (isValue(resolve)) {3094 -1 callable(resolve);3095 -1 }3096 -1 });3097 -1 return resolveArgs.bind(resolvers);3098 -1 };3099 -1 });3100 -1 var require_resolve_normalize = __commonJS(function(exports, module) {3101 -1 'use strict';3102 -1 var callable = require_valid_callable();3103 -1 module.exports = function(userNormalizer) {3104 -1 var normalizer;3105 -1 if (typeof userNormalizer === 'function') {3106 -1 return {3107 -1 set: userNormalizer,3108 -1 get: userNormalizer3109 -1 };3110 -1 }3111 -1 normalizer = {3112 -1 get: callable(userNormalizer.get)3113 -1 };3114 -1 if (userNormalizer.set !== void 0) {3115 -1 normalizer.set = callable(userNormalizer.set);3116 -1 if (userNormalizer['delete']) {3117 -1 normalizer['delete'] = callable(userNormalizer['delete']);3118 -1 }3119 -1 if (userNormalizer.clear) {3120 -1 normalizer.clear = callable(userNormalizer.clear);3121 -1 }3122 -1 return normalizer;3123 -1 }3124 -1 normalizer.set = normalizer.get;3125 -1 return normalizer;3126 -1 };3127 -1 });3128 -1 var require_configure_map = __commonJS(function(exports, module) {3129 -1 'use strict';3130 -1 var customError = require_custom();3131 -1 var defineLength = require_define_length();3132 -1 var d2 = require_d();3133 -1 var ee = require_event_emitter().methods;3134 -1 var resolveResolve = require_resolve_resolve();3135 -1 var resolveNormalize = require_resolve_normalize();3136 -1 var apply = Function.prototype.apply;3137 -1 var call = Function.prototype.call;3138 -1 var create = Object.create;3139 -1 var defineProperties = Object.defineProperties;3140 -1 var _on = ee.on;3141 -1 var emit = ee.emit;3142 -1 module.exports = function(original, length, options) {3143 -1 var cache2 = create(null), conf, memLength, get2, set2, del, _clear, extDel, extGet, extHas, normalizer, getListeners, setListeners, deleteListeners, memoized, resolve;3144 -1 if (length !== false) {3145 -1 memLength = length;3146 -1 } else if (isNaN(original.length)) {3147 -1 memLength = 1;3148 -1 } else {3149 -1 memLength = original.length;3150 -1 }3151 -1 if (options.normalizer) {3152 -1 normalizer = resolveNormalize(options.normalizer);3153 -1 get2 = normalizer.get;3154 -1 set2 = normalizer.set;3155 -1 del = normalizer['delete'];3156 -1 _clear = normalizer.clear;3157 -1 }3158 -1 if (options.resolvers != null) {3159 -1 resolve = resolveResolve(options.resolvers);3160 -1 }3161 -1 if (get2) {3162 -1 memoized = defineLength(function(arg) {3163 -1 var id, result, args = arguments;3164 -1 if (resolve) {3165 -1 args = resolve(args);3166 -1 }3167 -1 id = get2(args);3168 -1 if (id !== null) {3169 -1 if (hasOwnProperty.call(cache2, id)) {3170 -1 if (getListeners) {3171 -1 conf.emit('get', id, args, this);3172 -1 }3173 -1 return cache2[id];3174 -1 }3175 -1 }3176 -1 if (args.length === 1) {3177 -1 result = call.call(original, this, args[0]);3178 -1 } else {3179 -1 result = apply.call(original, this, args);3180 -1 }3181 -1 if (id === null) {3182 -1 id = get2(args);3183 -1 if (id !== null) {3184 -1 throw customError('Circular invocation', 'CIRCULAR_INVOCATION');3185 -1 }3186 -1 id = set2(args);3187 -1 } else if (hasOwnProperty.call(cache2, id)) {3188 -1 throw customError('Circular invocation', 'CIRCULAR_INVOCATION');3189 -1 }3190 -1 cache2[id] = result;3191 -1 if (setListeners) {3192 -1 conf.emit('set', id, null, result);3193 -1 }3194 -1 return result;3195 -1 }, memLength);3196 -1 } else if (length === 0) {3197 -1 memoized = function memoized() {3198 -1 var result;3199 -1 if (hasOwnProperty.call(cache2, 'data')) {3200 -1 if (getListeners) {3201 -1 conf.emit('get', 'data', arguments, this);3202 -1 }3203 -1 return cache2.data;3204 -1 }3205 -1 if (arguments.length) {3206 -1 result = apply.call(original, this, arguments);3207 -1 } else {3208 -1 result = call.call(original, this);3209 -1 }3210 -1 if (hasOwnProperty.call(cache2, 'data')) {3211 -1 throw customError('Circular invocation', 'CIRCULAR_INVOCATION');3212 -1 }3213 -1 cache2.data = result;3214 -1 if (setListeners) {3215 -1 conf.emit('set', 'data', null, result);3216 -1 }3217 -1 return result;3218 -1 };3219 -1 } else {3220 -1 memoized = function memoized(arg) {3221 -1 var result, args = arguments, id;3222 -1 if (resolve) {3223 -1 args = resolve(arguments);3224 -1 }3225 -1 id = String(args[0]);3226 -1 if (hasOwnProperty.call(cache2, id)) {3227 -1 if (getListeners) {3228 -1 conf.emit('get', id, args, this);3229 -1 }3230 -1 return cache2[id];3231 -1 }3232 -1 if (args.length === 1) {3233 -1 result = call.call(original, this, args[0]);3234 -1 } else {3235 -1 result = apply.call(original, this, args);-1 3039 DataView.prototype.getUint8 = makeGetter(exports.Uint8Array); -1 3040 DataView.prototype.getInt8 = makeGetter(exports.Int8Array); -1 3041 DataView.prototype.getUint16 = makeGetter(exports.Uint16Array); -1 3042 DataView.prototype.getInt16 = makeGetter(exports.Int16Array); -1 3043 DataView.prototype.getUint32 = makeGetter(exports.Uint32Array); -1 3044 DataView.prototype.getInt32 = makeGetter(exports.Int32Array); -1 3045 DataView.prototype.getFloat32 = makeGetter(exports.Float32Array); -1 3046 DataView.prototype.getFloat64 = makeGetter(exports.Float64Array); -1 3047 function makeSetter(arrayType) { -1 3048 return function(byteOffset, value, littleEndian) { -1 3049 byteOffset = ECMAScript.ToUint32(byteOffset); -1 3050 if (byteOffset + arrayType.BYTES_PER_ELEMENT > this.byteLength) { -1 3051 throw new RangeError('Array index out of range'); 3236 3052 }3237 -1 if (hasOwnProperty.call(cache2, id)) {3238 -1 throw customError('Circular invocation', 'CIRCULAR_INVOCATION');-1 3053 var typeArray = new arrayType([ value ]), byteArray = new exports.Uint8Array(typeArray.buffer), bytes = [], i, byteView; -1 3054 for (i = 0; i < arrayType.BYTES_PER_ELEMENT; i += 1) { -1 3055 bytes.push(r(byteArray, i)); 3239 3056 }3240 -1 cache2[id] = result;3241 -1 if (setListeners) {3242 -1 conf.emit('set', id, null, result);-1 3057 if (Boolean(littleEndian) === Boolean(IS_BIG_ENDIAN)) { -1 3058 bytes.reverse(); 3243 3059 }3244 -1 return result;-1 3060 byteView = new exports.Uint8Array(this.buffer, byteOffset, arrayType.BYTES_PER_ELEMENT); -1 3061 byteView.set(bytes); 3245 3062 }; 3246 3063 }3247 -1 conf = {3248 -1 original: original,3249 -1 memoized: memoized,3250 -1 profileName: options.profileName,3251 -1 get: function get(args) {3252 -1 if (resolve) {3253 -1 args = resolve(args);-1 3064 DataView.prototype.setUint8 = makeSetter(exports.Uint8Array); -1 3065 DataView.prototype.setInt8 = makeSetter(exports.Int8Array); -1 3066 DataView.prototype.setUint16 = makeSetter(exports.Uint16Array); -1 3067 DataView.prototype.setInt16 = makeSetter(exports.Int16Array); -1 3068 DataView.prototype.setUint32 = makeSetter(exports.Uint32Array); -1 3069 DataView.prototype.setInt32 = makeSetter(exports.Int32Array); -1 3070 DataView.prototype.setFloat32 = makeSetter(exports.Float32Array); -1 3071 DataView.prototype.setFloat64 = makeSetter(exports.Float64Array); -1 3072 exports.DataView = exports.DataView || DataView; -1 3073 })(); -1 3074 }); -1 3075 var require_weakmap_polyfill = __commonJS(function(exports) { -1 3076 (function(self2) { -1 3077 'use strict'; -1 3078 if (self2.WeakMap) { -1 3079 return; -1 3080 } -1 3081 var hasOwnProperty2 = Object.prototype.hasOwnProperty; -1 3082 var hasDefine = Object.defineProperty && function() { -1 3083 try { -1 3084 return Object.defineProperty({}, 'x', { -1 3085 value: 1 -1 3086 }).x === 1; -1 3087 } catch (e) {} -1 3088 }(); -1 3089 var defineProperty = function defineProperty(object, name, value) { -1 3090 if (hasDefine) { -1 3091 Object.defineProperty(object, name, { -1 3092 configurable: true, -1 3093 writable: true, -1 3094 value: value -1 3095 }); -1 3096 } else { -1 3097 object[name] = value; -1 3098 } -1 3099 }; -1 3100 self2.WeakMap = function() { -1 3101 function WeakMap2() { -1 3102 if (this === void 0) { -1 3103 throw new TypeError('Constructor WeakMap requires \'new\''); 3254 3104 }3255 -1 if (get2) {3256 -1 return get2(args);-1 3105 defineProperty(this, '_id', genId('_WeakMap')); -1 3106 if (arguments.length > 0) { -1 3107 throw new TypeError('WeakMap iterable is not supported'); 3257 3108 }3258 -1 return String(args[0]);3259 -1 },3260 -1 has: function has(id) {3261 -1 return hasOwnProperty.call(cache2, id);3262 -1 },3263 -1 delete: function _delete(id) {3264 -1 var result;3265 -1 if (!hasOwnProperty.call(cache2, id)) {3266 -1 return;-1 3109 } -1 3110 defineProperty(WeakMap2.prototype, 'delete', function(key) { -1 3111 checkInstance(this, 'delete'); -1 3112 if (!isObject(key)) { -1 3113 return false; 3267 3114 }3268 -1 if (del) {3269 -1 del(id);-1 3115 var entry = key[this._id]; -1 3116 if (entry && entry[0] === key) { -1 3117 delete key[this._id]; -1 3118 return true; 3270 3119 }3271 -1 result = cache2[id];3272 -1 delete cache2[id];3273 -1 if (deleteListeners) {3274 -1 conf.emit('delete', id, result);-1 3120 return false; -1 3121 }); -1 3122 defineProperty(WeakMap2.prototype, 'get', function(key) { -1 3123 checkInstance(this, 'get'); -1 3124 if (!isObject(key)) { -1 3125 return void 0; 3275 3126 }3276 -1 },3277 -1 clear: function clear() {3278 -1 var oldCache = cache2;3279 -1 if (_clear) {3280 -1 _clear();-1 3127 var entry = key[this._id]; -1 3128 if (entry && entry[0] === key) { -1 3129 return entry[1]; 3281 3130 }3282 -1 cache2 = create(null);3283 -1 conf.emit('clear', oldCache);3284 -1 },3285 -1 on: function on(type2, listener) {3286 -1 if (type2 === 'get') {3287 -1 getListeners = true;3288 -1 } else if (type2 === 'set') {3289 -1 setListeners = true;3290 -1 } else if (type2 === 'delete') {3291 -1 deleteListeners = true;-1 3131 return void 0; -1 3132 }); -1 3133 defineProperty(WeakMap2.prototype, 'has', function(key) { -1 3134 checkInstance(this, 'has'); -1 3135 if (!isObject(key)) { -1 3136 return false; 3292 3137 }3293 -1 return _on.call(this, type2, listener);3294 -1 },3295 -1 emit: emit,3296 -1 updateEnv: function updateEnv() {3297 -1 original = conf.original;3298 -1 }3299 -1 };3300 -1 if (get2) {3301 -1 extDel = defineLength(function(arg) {3302 -1 var id, args = arguments;3303 -1 if (resolve) {3304 -1 args = resolve(args);-1 3138 var entry = key[this._id]; -1 3139 if (entry && entry[0] === key) { -1 3140 return true; 3305 3141 }3306 -1 id = get2(args);3307 -1 if (id === null) {3308 -1 return;-1 3142 return false; -1 3143 }); -1 3144 defineProperty(WeakMap2.prototype, 'set', function(key, value) { -1 3145 checkInstance(this, 'set'); -1 3146 if (!isObject(key)) { -1 3147 throw new TypeError('Invalid value used as weak map key'); 3309 3148 }3310 -1 conf['delete'](id);3311 -1 }, memLength);3312 -1 } else if (length === 0) {3313 -1 extDel = function extDel() {3314 -1 return conf['delete']('data');3315 -1 };3316 -1 } else {3317 -1 extDel = function extDel(arg) {3318 -1 if (resolve) {3319 -1 arg = resolve(arguments)[0];-1 3149 var entry = key[this._id]; -1 3150 if (entry && entry[0] === key) { -1 3151 entry[1] = value; -1 3152 return this; -1 3153 } -1 3154 defineProperty(key, this._id, [ key, value ]); -1 3155 return this; -1 3156 }); -1 3157 function checkInstance(x, methodName) { -1 3158 if (!isObject(x) || !hasOwnProperty2.call(x, '_id')) { -1 3159 throw new TypeError(methodName + ' method called on incompatible receiver ' + _typeof(x)); 3320 3160 }3321 -1 return conf['delete'](arg);3322 -1 };3323 -1 }3324 -1 extGet = defineLength(function() {3325 -1 var id, args = arguments;3326 -1 if (length === 0) {3327 -1 return cache2.data;3328 -1 }3329 -1 if (resolve) {3330 -1 args = resolve(args);3331 -1 }3332 -1 if (get2) {3333 -1 id = get2(args);3334 -1 } else {3335 -1 id = String(args[0]);3336 -1 }3337 -1 return cache2[id];3338 -1 });3339 -1 extHas = defineLength(function() {3340 -1 var id, args = arguments;3341 -1 if (length === 0) {3342 -1 return conf.has('data');3343 -1 }3344 -1 if (resolve) {3345 -1 args = resolve(args);3346 3161 }3347 -1 if (get2) {3348 -1 id = get2(args);3349 -1 } else {3350 -1 id = String(args[0]);-1 3162 function genId(prefix) { -1 3163 return prefix + '_' + rand() + '.' + rand(); 3351 3164 }3352 -1 if (id === null) {3353 -1 return false;-1 3165 function rand() { -1 3166 return Math.random().toString().substring(2); 3354 3167 }3355 -1 return conf.has(id);3356 -1 });3357 -1 defineProperties(memoized, {3358 -1 __memoized__: d2(true),3359 -1 delete: d2(extDel),3360 -1 clear: d2(conf.clear),3361 -1 _get: d2(extGet),3362 -1 _has: d2(extHas)3363 -1 });3364 -1 return conf;3365 -1 };-1 3168 defineProperty(WeakMap2, '_polyfill', true); -1 3169 return WeakMap2; -1 3170 }(); -1 3171 function isObject(x) { -1 3172 return Object(x) === x; -1 3173 } -1 3174 })(typeof globalThis !== 'undefined' ? globalThis : typeof self !== 'undefined' ? self : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : exports); 3366 3175 });3367 -1 var require_plain = __commonJS(function(exports, module) {-1 3176 var require_global_this = __commonJS(function(exports, module) { 3368 3177 'use strict';3369 -1 var callable = require_valid_callable();3370 -1 var forEach = require_for_each();3371 -1 var extensions = require_registered_extensions();3372 -1 var configure4 = require_configure_map();3373 -1 var resolveLength = require_resolve_length();3374 -1 module.exports = function self2(fn) {3375 -1 var options, length, conf;3376 -1 callable(fn);3377 -1 options = Object(arguments[1]);3378 -1 if (options.async && options.promise) {3379 -1 throw new Error('Options \'async\' and \'promise\' cannot be used together');3380 -1 }3381 -1 if (hasOwnProperty.call(fn, '__memoized__') && !options.force) {3382 -1 return fn;3383 -1 }3384 -1 length = resolveLength(options.length, fn.length, options.async && extensions.async);3385 -1 conf = configure4(fn, length, options);3386 -1 forEach(extensions, function(extFn, name) {3387 -1 if (options[name]) {3388 -1 extFn(options[name], conf, options);3389 -1 }3390 -1 });3391 -1 if (self2.__profiler__) {3392 -1 self2.__profiler__(conf);3393 -1 }3394 -1 conf.updateEnv();3395 -1 return conf.memoized;-1 3178 var check = function check(it) { -1 3179 return it && it.Math === Math && it; 3396 3180 }; -1 3181 module.exports = check((typeof globalThis === 'undefined' ? 'undefined' : _typeof(globalThis)) == 'object' && globalThis) || check((typeof window === 'undefined' ? 'undefined' : _typeof(window)) == 'object' && window) || check((typeof self === 'undefined' ? 'undefined' : _typeof(self)) == 'object' && self) || check((typeof global === 'undefined' ? 'undefined' : _typeof(global)) == 'object' && global) || check(_typeof(exports) == 'object' && exports) || function() { -1 3182 return this; -1 3183 }() || Function('return this')(); 3397 3184 });3398 -1 var require_primitive = __commonJS(function(exports, module) {-1 3185 var require_fails = __commonJS(function(exports, module) { 3399 3186 'use strict';3400 -1 module.exports = function(args) {3401 -1 var id, i, length = args.length;3402 -1 if (!length) {3403 -1 return '\x02';3404 -1 }3405 -1 id = String(args[i = 0]);3406 -1 while (--length) {3407 -1 id += '\x01' + args[++i];-1 3187 module.exports = function(exec) { -1 3188 try { -1 3189 return !!exec(); -1 3190 } catch (error) { -1 3191 return true; 3408 3192 }3409 -1 return id;3410 3193 }; 3411 3194 });3412 -1 var require_get_primitive_fixed = __commonJS(function(exports, module) {-1 3195 var require_function_bind_native = __commonJS(function(exports, module) { 3413 3196 'use strict';3414 -1 module.exports = function(length) {3415 -1 if (!length) {3416 -1 return function() {3417 -1 return '';3418 -1 };3419 -1 }3420 -1 return function(args) {3421 -1 var id = String(args[0]), i = 0, currentLength = length;3422 -1 while (--currentLength) {3423 -1 id += '\x01' + args[++i];3424 -1 }3425 -1 return id;-1 3197 var fails = require_fails(); -1 3198 module.exports = !fails(function() { -1 3199 var test = function() {}.bind(); -1 3200 return typeof test != 'function' || test.hasOwnProperty('prototype'); -1 3201 }); -1 3202 }); -1 3203 var require_function_apply = __commonJS(function(exports, module) { -1 3204 'use strict'; -1 3205 var NATIVE_BIND = require_function_bind_native(); -1 3206 var FunctionPrototype = Function.prototype; -1 3207 var apply = FunctionPrototype.apply; -1 3208 var call = FunctionPrototype.call; -1 3209 module.exports = (typeof Reflect === 'undefined' ? 'undefined' : _typeof(Reflect)) == 'object' && Reflect.apply || (NATIVE_BIND ? call.bind(apply) : function() { -1 3210 return call.apply(apply, arguments); -1 3211 }); -1 3212 }); -1 3213 var require_function_uncurry_this = __commonJS(function(exports, module) { -1 3214 'use strict'; -1 3215 var NATIVE_BIND = require_function_bind_native(); -1 3216 var FunctionPrototype = Function.prototype; -1 3217 var call = FunctionPrototype.call; -1 3218 var uncurryThisWithBind = NATIVE_BIND && FunctionPrototype.bind.bind(call, call); -1 3219 module.exports = NATIVE_BIND ? uncurryThisWithBind : function(fn) { -1 3220 return function() { -1 3221 return call.apply(fn, arguments); 3426 3222 }; 3427 3223 }; 3428 3224 });3429 -1 var require_is_implemented8 = __commonJS(function(exports, module) {-1 3225 var require_classof_raw = __commonJS(function(exports, module) { 3430 3226 'use strict';3431 -1 module.exports = function() {3432 -1 var numberIsNaN = Number.isNaN;3433 -1 if (typeof numberIsNaN !== 'function') {3434 -1 return false;3435 -1 }3436 -1 return !numberIsNaN({}) && numberIsNaN(NaN) && !numberIsNaN(34);-1 3227 var uncurryThis = require_function_uncurry_this(); -1 3228 var toString = uncurryThis({}.toString); -1 3229 var stringSlice = uncurryThis(''.slice); -1 3230 module.exports = function(it) { -1 3231 return stringSlice(toString(it), 8, -1); 3437 3232 }; 3438 3233 });3439 -1 var require_shim6 = __commonJS(function(exports, module) {-1 3234 var require_function_uncurry_this_clause = __commonJS(function(exports, module) { 3440 3235 'use strict';3441 -1 module.exports = function(value) {3442 -1 return value !== value;-1 3236 var classofRaw = require_classof_raw(); -1 3237 var uncurryThis = require_function_uncurry_this(); -1 3238 module.exports = function(fn) { -1 3239 if (classofRaw(fn) === 'Function') { -1 3240 return uncurryThis(fn); -1 3241 } 3443 3242 }; 3444 3243 });3445 -1 var require_is_nan = __commonJS(function(exports, module) {-1 3244 var require_is_callable = __commonJS(function(exports, module) { 3446 3245 'use strict';3447 -1 module.exports = require_is_implemented8()() ? Number.isNaN : require_shim6();-1 3246 var documentAll = (typeof document === 'undefined' ? 'undefined' : _typeof(document)) == 'object' && document.all; -1 3247 module.exports = typeof documentAll == 'undefined' && documentAll !== void 0 ? function(argument) { -1 3248 return typeof argument == 'function' || argument === documentAll; -1 3249 } : function(argument) { -1 3250 return typeof argument == 'function'; -1 3251 }; 3448 3252 });3449 -1 var require_e_index_of = __commonJS(function(exports, module) {-1 3253 var require_descriptors = __commonJS(function(exports, module) { 3450 3254 'use strict';3451 -1 var numberIsNaN = require_is_nan();3452 -1 var toPosInt = require_to_pos_integer();3453 -1 var value = require_valid_value();3454 -1 var indexOf = Array.prototype.indexOf;3455 -1 var objHasOwnProperty = Object.prototype.hasOwnProperty;3456 -1 var abs = Math.abs;3457 -1 var floor = Math.floor;3458 -1 module.exports = function(searchElement) {3459 -1 var i, length, fromIndex, val;3460 -1 if (!numberIsNaN(searchElement)) {3461 -1 return indexOf.apply(this, arguments);3462 -1 }3463 -1 length = toPosInt(value(this).length);3464 -1 fromIndex = arguments[1];3465 -1 if (isNaN(fromIndex)) {3466 -1 fromIndex = 0;3467 -1 } else if (fromIndex >= 0) {3468 -1 fromIndex = floor(fromIndex);3469 -1 } else {3470 -1 fromIndex = toPosInt(this.length) - floor(abs(fromIndex));3471 -1 }3472 -1 for (i = fromIndex; i < length; ++i) {3473 -1 if (objHasOwnProperty.call(this, i)) {3474 -1 val = this[i];3475 -1 if (numberIsNaN(val)) {3476 -1 return i;3477 -1 }-1 3255 var fails = require_fails(); -1 3256 module.exports = !fails(function() { -1 3257 return Object.defineProperty({}, 1, { -1 3258 get: function get() { -1 3259 return 7; 3478 3260 }3479 -1 }3480 -1 return -1;-1 3261 })[1] !== 7; -1 3262 }); -1 3263 }); -1 3264 var require_function_call = __commonJS(function(exports, module) { -1 3265 'use strict'; -1 3266 var NATIVE_BIND = require_function_bind_native(); -1 3267 var call = Function.prototype.call; -1 3268 module.exports = NATIVE_BIND ? call.bind(call) : function() { -1 3269 return call.apply(call, arguments); 3481 3270 }; 3482 3271 });3483 -1 var require_get = __commonJS(function(exports, module) {-1 3272 var require_object_property_is_enumerable = __commonJS(function(exports) { 3484 3273 'use strict';3485 -1 var indexOf = require_e_index_of();3486 -1 var create = Object.create;3487 -1 module.exports = function() {3488 -1 var lastId = 0, map = [], cache2 = create(null);-1 3274 var $propertyIsEnumerable = {}.propertyIsEnumerable; -1 3275 var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor; -1 3276 var NASHORN_BUG = getOwnPropertyDescriptor && !$propertyIsEnumerable.call({ -1 3277 1: 2 -1 3278 }, 1); -1 3279 exports.f = NASHORN_BUG ? function propertyIsEnumerable(V) { -1 3280 var descriptor = getOwnPropertyDescriptor(this, V); -1 3281 return !!descriptor && descriptor.enumerable; -1 3282 } : $propertyIsEnumerable; -1 3283 }); -1 3284 var require_create_property_descriptor = __commonJS(function(exports, module) { -1 3285 'use strict'; -1 3286 module.exports = function(bitmap, value) { 3489 3287 return {3490 -1 get: function get(args) {3491 -1 var index = 0, set2 = map, i, length = args.length;3492 -1 if (length === 0) {3493 -1 return set2[length] || null;3494 -1 }3495 -1 if (set2 = set2[length]) {3496 -1 while (index < length - 1) {3497 -1 i = indexOf.call(set2[0], args[index]);3498 -1 if (i === -1) {3499 -1 return null;3500 -1 }3501 -1 set2 = set2[1][i];3502 -1 ++index;3503 -1 }3504 -1 i = indexOf.call(set2[0], args[index]);3505 -1 if (i === -1) {3506 -1 return null;3507 -1 }3508 -1 return set2[1][i] || null;3509 -1 }3510 -1 return null;3511 -1 },3512 -1 set: function set(args) {3513 -1 var index = 0, set2 = map, i, length = args.length;3514 -1 if (length === 0) {3515 -1 set2[length] = ++lastId;3516 -1 } else {3517 -1 if (!set2[length]) {3518 -1 set2[length] = [ [], [] ];3519 -1 }3520 -1 set2 = set2[length];3521 -1 while (index < length - 1) {3522 -1 i = indexOf.call(set2[0], args[index]);3523 -1 if (i === -1) {3524 -1 i = set2[0].push(args[index]) - 1;3525 -1 set2[1].push([ [], [] ]);3526 -1 }3527 -1 set2 = set2[1][i];3528 -1 ++index;3529 -1 }3530 -1 i = indexOf.call(set2[0], args[index]);3531 -1 if (i === -1) {3532 -1 i = set2[0].push(args[index]) - 1;3533 -1 }3534 -1 set2[1][i] = ++lastId;3535 -1 }3536 -1 cache2[lastId] = args;3537 -1 return lastId;3538 -1 },3539 -1 delete: function _delete(id) {3540 -1 var index = 0, set2 = map, i, args = cache2[id], length = args.length, path = [];3541 -1 if (length === 0) {3542 -1 delete set2[length];3543 -1 } else if (set2 = set2[length]) {3544 -1 while (index < length - 1) {3545 -1 i = indexOf.call(set2[0], args[index]);3546 -1 if (i === -1) {3547 -1 return;3548 -1 }3549 -1 path.push(set2, i);3550 -1 set2 = set2[1][i];3551 -1 ++index;3552 -1 }3553 -1 i = indexOf.call(set2[0], args[index]);3554 -1 if (i === -1) {3555 -1 return;3556 -1 }3557 -1 id = set2[1][i];3558 -1 set2[0].splice(i, 1);3559 -1 set2[1].splice(i, 1);3560 -1 while (!set2[0].length && path.length) {3561 -1 i = path.pop();3562 -1 set2 = path.pop();3563 -1 set2[0].splice(i, 1);3564 -1 set2[1].splice(i, 1);3565 -1 }3566 -1 }3567 -1 delete cache2[id];3568 -1 },3569 -1 clear: function clear() {3570 -1 map = [];3571 -1 cache2 = create(null);3572 -1 }-1 3288 enumerable: !(bitmap & 1), -1 3289 configurable: !(bitmap & 2), -1 3290 writable: !(bitmap & 4), -1 3291 value: value 3573 3292 }; 3574 3293 }; 3575 3294 });3576 -1 var require_get_1 = __commonJS(function(exports, module) {-1 3295 var require_indexed_object = __commonJS(function(exports, module) { 3577 3296 'use strict';3578 -1 var indexOf = require_e_index_of();3579 -1 module.exports = function() {3580 -1 var lastId = 0, argsMap = [], cache2 = [];3581 -1 return {3582 -1 get: function get(args) {3583 -1 var index = indexOf.call(argsMap, args[0]);3584 -1 return index === -1 ? null : cache2[index];3585 -1 },3586 -1 set: function set(args) {3587 -1 argsMap.push(args[0]);3588 -1 cache2.push(++lastId);3589 -1 return lastId;3590 -1 },3591 -1 delete: function _delete(id) {3592 -1 var index = indexOf.call(cache2, id);3593 -1 if (index !== -1) {3594 -1 argsMap.splice(index, 1);3595 -1 cache2.splice(index, 1);3596 -1 }3597 -1 },3598 -1 clear: function clear() {3599 -1 argsMap = [];3600 -1 cache2 = [];3601 -1 }3602 -1 };-1 3297 var uncurryThis = require_function_uncurry_this(); -1 3298 var fails = require_fails(); -1 3299 var classof = require_classof_raw(); -1 3300 var $Object = Object; -1 3301 var split = uncurryThis(''.split); -1 3302 module.exports = fails(function() { -1 3303 return !$Object('z').propertyIsEnumerable(0); -1 3304 }) ? function(it) { -1 3305 return classof(it) === 'String' ? split(it, '') : $Object(it); -1 3306 } : $Object; -1 3307 }); -1 3308 var require_is_null_or_undefined = __commonJS(function(exports, module) { -1 3309 'use strict'; -1 3310 module.exports = function(it) { -1 3311 return it === null || it === void 0; 3603 3312 }; 3604 3313 });3605 -1 var require_get_fixed = __commonJS(function(exports, module) {-1 3314 var require_require_object_coercible = __commonJS(function(exports, module) { 3606 3315 'use strict';3607 -1 var indexOf = require_e_index_of();3608 -1 var create = Object.create;3609 -1 module.exports = function(length) {3610 -1 var lastId = 0, map = [ [], [] ], cache2 = create(null);3611 -1 return {3612 -1 get: function get(args) {3613 -1 var index = 0, set2 = map, i;3614 -1 while (index < length - 1) {3615 -1 i = indexOf.call(set2[0], args[index]);3616 -1 if (i === -1) {3617 -1 return null;3618 -1 }3619 -1 set2 = set2[1][i];3620 -1 ++index;3621 -1 }3622 -1 i = indexOf.call(set2[0], args[index]);3623 -1 if (i === -1) {3624 -1 return null;3625 -1 }3626 -1 return set2[1][i] || null;3627 -1 },3628 -1 set: function set(args) {3629 -1 var index = 0, set2 = map, i;3630 -1 while (index < length - 1) {3631 -1 i = indexOf.call(set2[0], args[index]);3632 -1 if (i === -1) {3633 -1 i = set2[0].push(args[index]) - 1;3634 -1 set2[1].push([ [], [] ]);3635 -1 }3636 -1 set2 = set2[1][i];3637 -1 ++index;3638 -1 }3639 -1 i = indexOf.call(set2[0], args[index]);3640 -1 if (i === -1) {3641 -1 i = set2[0].push(args[index]) - 1;3642 -1 }3643 -1 set2[1][i] = ++lastId;3644 -1 cache2[lastId] = args;3645 -1 return lastId;3646 -1 },3647 -1 delete: function _delete(id) {3648 -1 var index = 0, set2 = map, i, path = [], args = cache2[id];3649 -1 while (index < length - 1) {3650 -1 i = indexOf.call(set2[0], args[index]);3651 -1 if (i === -1) {3652 -1 return;3653 -1 }3654 -1 path.push(set2, i);3655 -1 set2 = set2[1][i];3656 -1 ++index;3657 -1 }3658 -1 i = indexOf.call(set2[0], args[index]);3659 -1 if (i === -1) {3660 -1 return;3661 -1 }3662 -1 id = set2[1][i];3663 -1 set2[0].splice(i, 1);3664 -1 set2[1].splice(i, 1);3665 -1 while (!set2[0].length && path.length) {3666 -1 i = path.pop();3667 -1 set2 = path.pop();3668 -1 set2[0].splice(i, 1);3669 -1 set2[1].splice(i, 1);3670 -1 }3671 -1 delete cache2[id];3672 -1 },3673 -1 clear: function clear() {3674 -1 map = [ [], [] ];3675 -1 cache2 = create(null);3676 -1 }3677 -1 };-1 3316 var isNullOrUndefined = require_is_null_or_undefined(); -1 3317 var $TypeError = TypeError; -1 3318 module.exports = function(it) { -1 3319 if (isNullOrUndefined(it)) { -1 3320 throw new $TypeError('Can\'t call method on ' + it); -1 3321 } -1 3322 return it; 3678 3323 }; 3679 3324 });3680 -1 var require_map = __commonJS(function(exports, module) {-1 3325 var require_to_indexed_object = __commonJS(function(exports, module) { 3681 3326 'use strict';3682 -1 var callable = require_valid_callable();3683 -1 var forEach = require_for_each();3684 -1 var call = Function.prototype.call;3685 -1 module.exports = function(obj, cb) {3686 -1 var result = {}, thisArg = arguments[2];3687 -1 callable(cb);3688 -1 forEach(obj, function(value, key, targetObj, index) {3689 -1 result[key] = call.call(cb, thisArg, value, key, targetObj, index);3690 -1 });3691 -1 return result;-1 3327 var IndexedObject = require_indexed_object(); -1 3328 var requireObjectCoercible = require_require_object_coercible(); -1 3329 module.exports = function(it) { -1 3330 return IndexedObject(requireObjectCoercible(it)); 3692 3331 }; 3693 3332 });3694 -1 var require_next_tick = __commonJS(function(exports, module) {-1 3333 var require_is_object = __commonJS(function(exports, module) { 3695 3334 'use strict';3696 -1 var ensureCallable = function ensureCallable(fn) {3697 -1 if (typeof fn !== 'function') {3698 -1 throw new TypeError(fn + ' is not a function');3699 -1 }3700 -1 return fn;-1 3335 var isCallable = require_is_callable(); -1 3336 module.exports = function(it) { -1 3337 return _typeof(it) == 'object' ? it !== null : isCallable(it); 3701 3338 };3702 -1 var byObserver = function byObserver(Observer) {3703 -1 var node = document.createTextNode(''), queue2, currentQueue, i = 0;3704 -1 new Observer(function() {3705 -1 var callback;3706 -1 if (!queue2) {3707 -1 if (!currentQueue) {3708 -1 return;3709 -1 }3710 -1 queue2 = currentQueue;3711 -1 } else if (currentQueue) {3712 -1 queue2 = currentQueue.concat(queue2);3713 -1 }3714 -1 currentQueue = queue2;3715 -1 queue2 = null;3716 -1 if (typeof currentQueue === 'function') {3717 -1 callback = currentQueue;3718 -1 currentQueue = null;3719 -1 callback();3720 -1 return;3721 -1 }3722 -1 node.data = i = ++i % 2;3723 -1 while (currentQueue) {3724 -1 callback = currentQueue.shift();3725 -1 if (!currentQueue.length) {3726 -1 currentQueue = null;3727 -1 }3728 -1 callback();3729 -1 }3730 -1 }).observe(node, {3731 -1 characterData: true3732 -1 });3733 -1 return function(fn) {3734 -1 ensureCallable(fn);3735 -1 if (queue2) {3736 -1 if (typeof queue2 === 'function') {3737 -1 queue2 = [ queue2, fn ];3738 -1 } else {3739 -1 queue2.push(fn);3740 -1 }3741 -1 return;-1 3339 }); -1 3340 var require_path = __commonJS(function(exports, module) { -1 3341 'use strict'; -1 3342 module.exports = {}; -1 3343 }); -1 3344 var require_get_built_in = __commonJS(function(exports, module) { -1 3345 'use strict'; -1 3346 var path = require_path(); -1 3347 var globalThis2 = require_global_this(); -1 3348 var isCallable = require_is_callable(); -1 3349 var aFunction = function aFunction(variable) { -1 3350 return isCallable(variable) ? variable : void 0; -1 3351 }; -1 3352 module.exports = function(namespace, method) { -1 3353 return arguments.length < 2 ? aFunction(path[namespace]) || aFunction(globalThis2[namespace]) : path[namespace] && path[namespace][method] || globalThis2[namespace] && globalThis2[namespace][method]; -1 3354 }; -1 3355 }); -1 3356 var require_object_is_prototype_of = __commonJS(function(exports, module) { -1 3357 'use strict'; -1 3358 var uncurryThis = require_function_uncurry_this(); -1 3359 module.exports = uncurryThis({}.isPrototypeOf); -1 3360 }); -1 3361 var require_environment_user_agent = __commonJS(function(exports, module) { -1 3362 'use strict'; -1 3363 var globalThis2 = require_global_this(); -1 3364 var navigator = globalThis2.navigator; -1 3365 var userAgent = navigator && navigator.userAgent; -1 3366 module.exports = userAgent ? String(userAgent) : ''; -1 3367 }); -1 3368 var require_environment_v8_version = __commonJS(function(exports, module) { -1 3369 'use strict'; -1 3370 var globalThis2 = require_global_this(); -1 3371 var userAgent = require_environment_user_agent(); -1 3372 var process2 = globalThis2.process; -1 3373 var Deno = globalThis2.Deno; -1 3374 var versions = process2 && process2.versions || Deno && Deno.version; -1 3375 var v8 = versions && versions.v8; -1 3376 var match; -1 3377 var version; -1 3378 if (v8) { -1 3379 match = v8.split('.'); -1 3380 version = match[0] > 0 && match[0] < 4 ? 1 : +(match[0] + match[1]); -1 3381 } -1 3382 if (!version && userAgent) { -1 3383 match = userAgent.match(/Edge\/(\d+)/); -1 3384 if (!match || match[1] >= 74) { -1 3385 match = userAgent.match(/Chrome\/(\d+)/); -1 3386 if (match) { -1 3387 version = +match[1]; 3742 3388 }3743 -1 queue2 = fn;3744 -1 node.data = i = ++i % 2;3745 -1 };-1 3389 } -1 3390 } -1 3391 module.exports = version; -1 3392 }); -1 3393 var require_symbol_constructor_detection = __commonJS(function(exports, module) { -1 3394 'use strict'; -1 3395 var V8_VERSION = require_environment_v8_version(); -1 3396 var fails = require_fails(); -1 3397 var globalThis2 = require_global_this(); -1 3398 var $String = globalThis2.String; -1 3399 module.exports = !!Object.getOwnPropertySymbols && !fails(function() { -1 3400 var symbol = Symbol('symbol detection'); -1 3401 return !$String(symbol) || !(Object(symbol) instanceof Symbol) || !Symbol.sham && V8_VERSION && V8_VERSION < 41; -1 3402 }); -1 3403 }); -1 3404 var require_use_symbol_as_uid = __commonJS(function(exports, module) { -1 3405 'use strict'; -1 3406 var NATIVE_SYMBOL = require_symbol_constructor_detection(); -1 3407 module.exports = NATIVE_SYMBOL && !Symbol.sham && _typeof(Symbol.iterator) == 'symbol'; -1 3408 }); -1 3409 var require_is_symbol = __commonJS(function(exports, module) { -1 3410 'use strict'; -1 3411 var getBuiltIn = require_get_built_in(); -1 3412 var isCallable = require_is_callable(); -1 3413 var isPrototypeOf = require_object_is_prototype_of(); -1 3414 var USE_SYMBOL_AS_UID = require_use_symbol_as_uid(); -1 3415 var $Object = Object; -1 3416 module.exports = USE_SYMBOL_AS_UID ? function(it) { -1 3417 return _typeof(it) == 'symbol'; -1 3418 } : function(it) { -1 3419 var $Symbol = getBuiltIn('Symbol'); -1 3420 return isCallable($Symbol) && isPrototypeOf($Symbol.prototype, $Object(it)); 3746 3421 };3747 -1 module.exports = function() {3748 -1 if ((typeof process === 'undefined' ? 'undefined' : _typeof(process)) === 'object' && process && typeof process.nextTick === 'function') {3749 -1 return process.nextTick;-1 3422 }); -1 3423 var require_try_to_string = __commonJS(function(exports, module) { -1 3424 'use strict'; -1 3425 var $String = String; -1 3426 module.exports = function(argument) { -1 3427 try { -1 3428 return $String(argument); -1 3429 } catch (error) { -1 3430 return 'Object'; 3750 3431 }3751 -1 if (typeof queueMicrotask === 'function') {3752 -1 return function(cb) {3753 -1 queueMicrotask(ensureCallable(cb));3754 -1 };-1 3432 }; -1 3433 }); -1 3434 var require_a_callable = __commonJS(function(exports, module) { -1 3435 'use strict'; -1 3436 var isCallable = require_is_callable(); -1 3437 var tryToString = require_try_to_string(); -1 3438 var $TypeError = TypeError; -1 3439 module.exports = function(argument) { -1 3440 if (isCallable(argument)) { -1 3441 return argument; 3755 3442 }3756 -1 if ((typeof document === 'undefined' ? 'undefined' : _typeof(document)) === 'object' && document) {3757 -1 if (typeof MutationObserver === 'function') {3758 -1 return byObserver(MutationObserver);3759 -1 }3760 -1 if (typeof WebKitMutationObserver === 'function') {3761 -1 return byObserver(WebKitMutationObserver);3762 -1 }-1 3443 throw new $TypeError(tryToString(argument) + ' is not a function'); -1 3444 }; -1 3445 }); -1 3446 var require_get_method = __commonJS(function(exports, module) { -1 3447 'use strict'; -1 3448 var aCallable = require_a_callable(); -1 3449 var isNullOrUndefined = require_is_null_or_undefined(); -1 3450 module.exports = function(V, P) { -1 3451 var func = V[P]; -1 3452 return isNullOrUndefined(func) ? void 0 : aCallable(func); -1 3453 }; -1 3454 }); -1 3455 var require_ordinary_to_primitive = __commonJS(function(exports, module) { -1 3456 'use strict'; -1 3457 var call = require_function_call(); -1 3458 var isCallable = require_is_callable(); -1 3459 var isObject = require_is_object(); -1 3460 var $TypeError = TypeError; -1 3461 module.exports = function(input, pref) { -1 3462 var fn, val; -1 3463 if (pref === 'string' && isCallable(fn = input.toString) && !isObject(val = call(fn, input))) { -1 3464 return val; 3763 3465 }3764 -1 if (typeof setImmediate === 'function') {3765 -1 return function(cb) {3766 -1 setImmediate(ensureCallable(cb));3767 -1 };-1 3466 if (isCallable(fn = input.valueOf) && !isObject(val = call(fn, input))) { -1 3467 return val; 3768 3468 }3769 -1 if (typeof setTimeout === 'function' || (typeof setTimeout === 'undefined' ? 'undefined' : _typeof(setTimeout)) === 'object') {3770 -1 return function(cb) {3771 -1 setTimeout(ensureCallable(cb), 0);3772 -1 };-1 3469 if (pref !== 'string' && isCallable(fn = input.toString) && !isObject(val = call(fn, input))) { -1 3470 return val; 3773 3471 }3774 -1 return null;3775 -1 }();-1 3472 throw new $TypeError('Can\'t convert object to primitive value'); -1 3473 }; 3776 3474 });3777 -1 var require_async = __commonJS(function() {-1 3475 var require_is_pure = __commonJS(function(exports, module) { 3778 3476 'use strict';3779 -1 var aFrom = require_from();3780 -1 var objectMap = require_map();3781 -1 var mixin = require_mixin();3782 -1 var defineLength = require_define_length();3783 -1 var nextTick = require_next_tick();3784 -1 var slice = Array.prototype.slice;3785 -1 var apply = Function.prototype.apply;3786 -1 var create = Object.create;3787 -1 require_registered_extensions().async = function(tbi, conf) {3788 -1 var waiting = create(null), cache2 = create(null), base = conf.memoized, original = conf.original, currentCallback, currentContext, currentArgs;3789 -1 conf.memoized = defineLength(function(arg) {3790 -1 var args = arguments, last2 = args[args.length - 1];3791 -1 if (typeof last2 === 'function') {3792 -1 currentCallback = last2;3793 -1 args = slice.call(args, 0, -1);3794 -1 }3795 -1 return base.apply(currentContext = this, currentArgs = args);3796 -1 }, base);-1 3477 module.exports = true; -1 3478 }); -1 3479 var require_define_global_property = __commonJS(function(exports, module) { -1 3480 'use strict'; -1 3481 var globalThis2 = require_global_this(); -1 3482 var defineProperty = Object.defineProperty; -1 3483 module.exports = function(key, value) { 3797 3484 try {3798 -1 mixin(conf.memoized, base);3799 -1 } catch (ignore) {}3800 -1 conf.on('get', function(id) {3801 -1 var cb, context, args;3802 -1 if (!currentCallback) {3803 -1 return;3804 -1 }3805 -1 if (waiting[id]) {3806 -1 if (typeof waiting[id] === 'function') {3807 -1 waiting[id] = [ waiting[id], currentCallback ];3808 -1 } else {3809 -1 waiting[id].push(currentCallback);3810 -1 }3811 -1 currentCallback = null;3812 -1 return;3813 -1 }3814 -1 cb = currentCallback;3815 -1 context = currentContext;3816 -1 args = currentArgs;3817 -1 currentCallback = currentContext = currentArgs = null;3818 -1 nextTick(function() {3819 -1 var data;3820 -1 if (hasOwnProperty.call(cache2, id)) {3821 -1 data = cache2[id];3822 -1 conf.emit('getasync', id, args, context);3823 -1 apply.call(cb, data.context, data.args);3824 -1 } else {3825 -1 currentCallback = cb;3826 -1 currentContext = context;3827 -1 currentArgs = args;3828 -1 base.apply(context, args);3829 -1 }-1 3485 defineProperty(globalThis2, key, { -1 3486 value: value, -1 3487 configurable: true, -1 3488 writable: true 3830 3489 });3831 -1 });3832 -1 conf.original = function() {3833 -1 var args, cb, origCb, result;3834 -1 if (!currentCallback) {3835 -1 return apply.call(original, this, arguments);3836 -1 }3837 -1 args = aFrom(arguments);3838 -1 cb = function self2(err2) {3839 -1 var cb2, args2, id = self2.id;3840 -1 if (id == null) {3841 -1 nextTick(apply.bind(self2, this, arguments));3842 -1 return void 0;3843 -1 }3844 -1 delete self2.id;3845 -1 cb2 = waiting[id];3846 -1 delete waiting[id];3847 -1 if (!cb2) {3848 -1 return void 0;3849 -1 }3850 -1 args2 = aFrom(arguments);3851 -1 if (conf.has(id)) {3852 -1 if (err2) {3853 -1 conf['delete'](id);3854 -1 } else {3855 -1 cache2[id] = {3856 -1 context: this,3857 -1 args: args23858 -1 };3859 -1 conf.emit('setasync', id, typeof cb2 === 'function' ? 1 : cb2.length);3860 -1 }3861 -1 }3862 -1 if (typeof cb2 === 'function') {3863 -1 result = apply.call(cb2, this, args2);3864 -1 } else {3865 -1 cb2.forEach(function(cb3) {3866 -1 result = apply.call(cb3, this, args2);3867 -1 }, this);3868 -1 }3869 -1 return result;3870 -1 };3871 -1 origCb = currentCallback;3872 -1 currentCallback = currentContext = currentArgs = null;3873 -1 args.push(cb);3874 -1 result = apply.call(original, this, args);3875 -1 cb.cb = origCb;3876 -1 currentCallback = cb;3877 -1 return result;3878 -1 };3879 -1 conf.on('set', function(id) {3880 -1 if (!currentCallback) {3881 -1 conf['delete'](id);3882 -1 return;3883 -1 }3884 -1 if (waiting[id]) {3885 -1 if (typeof waiting[id] === 'function') {3886 -1 waiting[id] = [ waiting[id], currentCallback.cb ];3887 -1 } else {3888 -1 waiting[id].push(currentCallback.cb);3889 -1 }3890 -1 } else {3891 -1 waiting[id] = currentCallback.cb;3892 -1 }3893 -1 delete currentCallback.cb;3894 -1 currentCallback.id = id;3895 -1 currentCallback = null;3896 -1 });3897 -1 conf.on('delete', function(id) {3898 -1 var result;3899 -1 if (hasOwnProperty.call(waiting, id)) {3900 -1 return;3901 -1 }3902 -1 if (!cache2[id]) {3903 -1 return;3904 -1 }3905 -1 result = cache2[id];3906 -1 delete cache2[id];3907 -1 conf.emit('deleteasync', id, slice.call(result.args, 1));3908 -1 });3909 -1 conf.on('clear', function() {3910 -1 var oldCache = cache2;3911 -1 cache2 = create(null);3912 -1 conf.emit('clearasync', objectMap(oldCache, function(data) {3913 -1 return slice.call(data.args, 1);3914 -1 }));3915 -1 });-1 3490 } catch (error) { -1 3491 globalThis2[key] = value; -1 3492 } -1 3493 return value; 3916 3494 }; 3917 3495 });3918 -1 var require_primitive_set = __commonJS(function(exports, module) {-1 3496 var require_shared_store = __commonJS(function(exports, module) { 3919 3497 'use strict';3920 -1 var forEach = Array.prototype.forEach;3921 -1 var create = Object.create;3922 -1 module.exports = function(arg) {3923 -1 var set2 = create(null);3924 -1 forEach.call(arguments, function(name) {3925 -1 set2[name] = true;3926 -1 });3927 -1 return set2;-1 3498 var IS_PURE = require_is_pure(); -1 3499 var globalThis2 = require_global_this(); -1 3500 var defineGlobalProperty = require_define_global_property(); -1 3501 var SHARED = '__core-js_shared__'; -1 3502 var store = module.exports = globalThis2[SHARED] || defineGlobalProperty(SHARED, {}); -1 3503 (store.versions || (store.versions = [])).push({ -1 3504 version: '3.44.0', -1 3505 mode: IS_PURE ? 'pure' : 'global', -1 3506 copyright: '\xa9 2014-2025 Denis Pushkarev (zloirock.ru)', -1 3507 license: 'https://github.com/zloirock/core-js/blob/v3.44.0/LICENSE', -1 3508 source: 'https://github.com/zloirock/core-js' -1 3509 }); -1 3510 }); -1 3511 var require_shared = __commonJS(function(exports, module) { -1 3512 'use strict'; -1 3513 var store = require_shared_store(); -1 3514 module.exports = function(key, value) { -1 3515 return store[key] || (store[key] = value || {}); 3928 3516 }; 3929 3517 });3930 -1 var require_is_callable = __commonJS(function(exports, module) {-1 3518 var require_to_object = __commonJS(function(exports, module) { 3931 3519 'use strict';3932 -1 module.exports = function(obj) {3933 -1 return typeof obj === 'function';-1 3520 var requireObjectCoercible = require_require_object_coercible(); -1 3521 var $Object = Object; -1 3522 module.exports = function(argument) { -1 3523 return $Object(requireObjectCoercible(argument)); 3934 3524 }; 3935 3525 });3936 -1 var require_validate_stringifiable = __commonJS(function(exports, module) {-1 3526 var require_has_own_property = __commonJS(function(exports, module) { 3937 3527 'use strict';3938 -1 var isCallable = require_is_callable();3939 -1 module.exports = function(stringifiable) {3940 -1 try {3941 -1 if (stringifiable && isCallable(stringifiable.toString)) {3942 -1 return stringifiable.toString();3943 -1 }3944 -1 return String(stringifiable);3945 -1 } catch (e) {3946 -1 throw new TypeError('Passed argument cannot be stringifed');3947 -1 }-1 3528 var uncurryThis = require_function_uncurry_this(); -1 3529 var toObject = require_to_object(); -1 3530 var hasOwnProperty2 = uncurryThis({}.hasOwnProperty); -1 3531 module.exports = Object.hasOwn || function hasOwn2(it, key) { -1 3532 return hasOwnProperty2(toObject(it), key); 3948 3533 }; 3949 3534 });3950 -1 var require_validate_stringifiable_value = __commonJS(function(exports, module) {-1 3535 var require_uid = __commonJS(function(exports, module) { 3951 3536 'use strict';3952 -1 var ensureValue = require_valid_value();3953 -1 var stringifiable = require_validate_stringifiable();3954 -1 module.exports = function(value) {3955 -1 return stringifiable(ensureValue(value));-1 3537 var uncurryThis = require_function_uncurry_this(); -1 3538 var id = 0; -1 3539 var postfix = Math.random(); -1 3540 var toString = uncurryThis(1.1.toString); -1 3541 module.exports = function(key) { -1 3542 return 'Symbol(' + (key === void 0 ? '' : key) + ')_' + toString(++id + postfix, 36); 3956 3543 }; 3957 3544 });3958 -1 var require_safe_to_string = __commonJS(function(exports, module) {-1 3545 var require_well_known_symbol = __commonJS(function(exports, module) { 3959 3546 'use strict';3960 -1 var isCallable = require_is_callable();3961 -1 module.exports = function(value) {3962 -1 try {3963 -1 if (value && isCallable(value.toString)) {3964 -1 return value.toString();3965 -1 }3966 -1 return String(value);3967 -1 } catch (e) {3968 -1 return '<Non-coercible to string value>';-1 3547 var globalThis2 = require_global_this(); -1 3548 var shared = require_shared(); -1 3549 var hasOwn2 = require_has_own_property(); -1 3550 var uid = require_uid(); -1 3551 var NATIVE_SYMBOL = require_symbol_constructor_detection(); -1 3552 var USE_SYMBOL_AS_UID = require_use_symbol_as_uid(); -1 3553 var Symbol2 = globalThis2.Symbol; -1 3554 var WellKnownSymbolsStore = shared('wks'); -1 3555 var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol2['for'] || Symbol2 : Symbol2 && Symbol2.withoutSetter || uid; -1 3556 module.exports = function(name) { -1 3557 if (!hasOwn2(WellKnownSymbolsStore, name)) { -1 3558 WellKnownSymbolsStore[name] = NATIVE_SYMBOL && hasOwn2(Symbol2, name) ? Symbol2[name] : createWellKnownSymbol('Symbol.' + name); 3969 3559 } -1 3560 return WellKnownSymbolsStore[name]; 3970 3561 }; 3971 3562 });3972 -1 var require_to_short_string_representation = __commonJS(function(exports, module) {-1 3563 var require_to_primitive = __commonJS(function(exports, module) { 3973 3564 'use strict';3974 -1 var safeToString = require_safe_to_string();3975 -1 var reNewLine = /[\n\r\u2028\u2029]/g;3976 -1 module.exports = function(value) {3977 -1 var string = safeToString(value);3978 -1 if (string.length > 100) {3979 -1 string = string.slice(0, 99) + '\u2026';-1 3565 var call = require_function_call(); -1 3566 var isObject = require_is_object(); -1 3567 var isSymbol = require_is_symbol(); -1 3568 var getMethod = require_get_method(); -1 3569 var ordinaryToPrimitive = require_ordinary_to_primitive(); -1 3570 var wellKnownSymbol = require_well_known_symbol(); -1 3571 var $TypeError = TypeError; -1 3572 var TO_PRIMITIVE = wellKnownSymbol('toPrimitive'); -1 3573 module.exports = function(input, pref) { -1 3574 if (!isObject(input) || isSymbol(input)) { -1 3575 return input; 3980 3576 }3981 -1 string = string.replace(reNewLine, function(_char) {3982 -1 return JSON.stringify(_char).slice(1, -1);3983 -1 });3984 -1 return string;-1 3577 var exoticToPrim = getMethod(input, TO_PRIMITIVE); -1 3578 var result; -1 3579 if (exoticToPrim) { -1 3580 if (pref === void 0) { -1 3581 pref = 'default'; -1 3582 } -1 3583 result = call(exoticToPrim, input, pref); -1 3584 if (!isObject(result) || isSymbol(result)) { -1 3585 return result; -1 3586 } -1 3587 throw new $TypeError('Can\'t convert object to primitive value'); -1 3588 } -1 3589 if (pref === void 0) { -1 3590 pref = 'number'; -1 3591 } -1 3592 return ordinaryToPrimitive(input, pref); 3985 3593 }; 3986 3594 });3987 -1 var require_is_promise = __commonJS(function(exports, module) {3988 -1 module.exports = isPromise;3989 -1 module.exports['default'] = isPromise;3990 -1 function isPromise(obj) {3991 -1 return !!obj && (_typeof(obj) === 'object' || typeof obj === 'function') && typeof obj.then === 'function';3992 -1 }-1 3595 var require_to_property_key = __commonJS(function(exports, module) { -1 3596 'use strict'; -1 3597 var toPrimitive = require_to_primitive(); -1 3598 var isSymbol = require_is_symbol(); -1 3599 module.exports = function(argument) { -1 3600 var key = toPrimitive(argument, 'string'); -1 3601 return isSymbol(key) ? key : key + ''; -1 3602 }; 3993 3603 });3994 -1 var require_promise = __commonJS(function() {-1 3604 var require_document_create_element = __commonJS(function(exports, module) { 3995 3605 'use strict';3996 -1 var objectMap = require_map();3997 -1 var primitiveSet = require_primitive_set();3998 -1 var ensureString = require_validate_stringifiable_value();3999 -1 var toShortString = require_to_short_string_representation();4000 -1 var isPromise = require_is_promise();4001 -1 var nextTick = require_next_tick();4002 -1 var create = Object.create;4003 -1 var supportedModes = primitiveSet('then', 'then:finally', 'done', 'done:finally');4004 -1 require_registered_extensions().promise = function(mode, conf) {4005 -1 var waiting = create(null), cache2 = create(null), promises = create(null);4006 -1 if (mode === true) {4007 -1 mode = null;4008 -1 } else {4009 -1 mode = ensureString(mode);4010 -1 if (!supportedModes[mode]) {4011 -1 throw new TypeError('\'' + toShortString(mode) + '\' is not valid promise mode');-1 3606 var globalThis2 = require_global_this(); -1 3607 var isObject = require_is_object(); -1 3608 var document2 = globalThis2.document; -1 3609 var EXISTS = isObject(document2) && isObject(document2.createElement); -1 3610 module.exports = function(it) { -1 3611 return EXISTS ? document2.createElement(it) : {}; -1 3612 }; -1 3613 }); -1 3614 var require_ie8_dom_define = __commonJS(function(exports, module) { -1 3615 'use strict'; -1 3616 var DESCRIPTORS = require_descriptors(); -1 3617 var fails = require_fails(); -1 3618 var createElement = require_document_create_element(); -1 3619 module.exports = !DESCRIPTORS && !fails(function() { -1 3620 return Object.defineProperty(createElement('div'), 'a', { -1 3621 get: function get() { -1 3622 return 7; 4012 3623 } -1 3624 }).a !== 7; -1 3625 }); -1 3626 }); -1 3627 var require_object_get_own_property_descriptor = __commonJS(function(exports) { -1 3628 'use strict'; -1 3629 var DESCRIPTORS = require_descriptors(); -1 3630 var call = require_function_call(); -1 3631 var propertyIsEnumerableModule = require_object_property_is_enumerable(); -1 3632 var createPropertyDescriptor = require_create_property_descriptor(); -1 3633 var toIndexedObject = require_to_indexed_object(); -1 3634 var toPropertyKey = require_to_property_key(); -1 3635 var hasOwn2 = require_has_own_property(); -1 3636 var IE8_DOM_DEFINE = require_ie8_dom_define(); -1 3637 var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor; -1 3638 exports.f = DESCRIPTORS ? $getOwnPropertyDescriptor : function getOwnPropertyDescriptor(O, P) { -1 3639 O = toIndexedObject(O); -1 3640 P = toPropertyKey(P); -1 3641 if (IE8_DOM_DEFINE) { -1 3642 try { -1 3643 return $getOwnPropertyDescriptor(O, P); -1 3644 } catch (error) {} -1 3645 } -1 3646 if (hasOwn2(O, P)) { -1 3647 return createPropertyDescriptor(!call(propertyIsEnumerableModule.f, O, P), O[P]); 4013 3648 }4014 -1 conf.on('set', function(id, ignore, promise) {4015 -1 var isFailed = false;4016 -1 if (!isPromise(promise)) {4017 -1 cache2[id] = promise;4018 -1 conf.emit('setasync', id, 1);4019 -1 return;4020 -1 }4021 -1 waiting[id] = 1;4022 -1 promises[id] = promise;4023 -1 var onSuccess = function onSuccess(result) {4024 -1 var count = waiting[id];4025 -1 if (isFailed) {4026 -1 throw new Error('Memoizee error: Detected unordered then|done & finally resolution, which in turn makes proper detection of success/failure impossible (when in \'done:finally\' mode)\nConsider to rely on \'then\' or \'done\' mode instead.');4027 -1 }4028 -1 if (!count) {4029 -1 return;4030 -1 }4031 -1 delete waiting[id];4032 -1 cache2[id] = result;4033 -1 conf.emit('setasync', id, count);4034 -1 };4035 -1 var onFailure = function onFailure() {4036 -1 isFailed = true;4037 -1 if (!waiting[id]) {4038 -1 return;4039 -1 }4040 -1 delete waiting[id];4041 -1 delete promises[id];4042 -1 conf['delete'](id);4043 -1 };4044 -1 var resolvedMode = mode;4045 -1 if (!resolvedMode) {4046 -1 resolvedMode = 'then';4047 -1 }4048 -1 if (resolvedMode === 'then') {4049 -1 var nextTickFailure = function nextTickFailure() {4050 -1 nextTick(onFailure);4051 -1 };4052 -1 promise = promise.then(function(result) {4053 -1 nextTick(onSuccess.bind(this, result));4054 -1 }, nextTickFailure);4055 -1 if (typeof promise['finally'] === 'function') {4056 -1 promise['finally'](nextTickFailure);4057 -1 }4058 -1 } else if (resolvedMode === 'done') {4059 -1 if (typeof promise.done !== 'function') {4060 -1 throw new Error('Memoizee error: Retrieved promise does not implement \'done\' in \'done\' mode');4061 -1 }4062 -1 promise.done(onSuccess, onFailure);4063 -1 } else if (resolvedMode === 'done:finally') {4064 -1 if (typeof promise.done !== 'function') {4065 -1 throw new Error('Memoizee error: Retrieved promise does not implement \'done\' in \'done:finally\' mode');4066 -1 }4067 -1 if (typeof promise['finally'] !== 'function') {4068 -1 throw new Error('Memoizee error: Retrieved promise does not implement \'finally\' in \'done:finally\' mode');4069 -1 }4070 -1 promise.done(onSuccess);4071 -1 promise['finally'](onFailure);4072 -1 }4073 -1 });4074 -1 conf.on('get', function(id, args, context) {4075 -1 var promise;4076 -1 if (waiting[id]) {4077 -1 ++waiting[id];4078 -1 return;4079 -1 }4080 -1 promise = promises[id];4081 -1 var emit = function emit() {4082 -1 conf.emit('getasync', id, args, context);4083 -1 };4084 -1 if (isPromise(promise)) {4085 -1 if (typeof promise.done === 'function') {4086 -1 promise.done(emit);4087 -1 } else {4088 -1 promise.then(function() {4089 -1 nextTick(emit);4090 -1 });4091 -1 }4092 -1 } else {4093 -1 emit();4094 -1 }4095 -1 });4096 -1 conf.on('delete', function(id) {4097 -1 delete promises[id];4098 -1 if (waiting[id]) {4099 -1 delete waiting[id];4100 -1 return;4101 -1 }4102 -1 if (!hasOwnProperty.call(cache2, id)) {4103 -1 return;4104 -1 }4105 -1 var result = cache2[id];4106 -1 delete cache2[id];4107 -1 conf.emit('deleteasync', id, [ result ]);4108 -1 });4109 -1 conf.on('clear', function() {4110 -1 var oldCache = cache2;4111 -1 cache2 = create(null);4112 -1 waiting = create(null);4113 -1 promises = create(null);4114 -1 conf.emit('clearasync', objectMap(oldCache, function(data) {4115 -1 return [ data ];4116 -1 }));4117 -1 });4118 3649 }; 4119 3650 });4120 -1 var require_dispose = __commonJS(function() {-1 3651 var require_is_forced = __commonJS(function(exports, module) { 4121 3652 'use strict';4122 -1 var callable = require_valid_callable();4123 -1 var forEach = require_for_each();4124 -1 var extensions = require_registered_extensions();4125 -1 var apply = Function.prototype.apply;4126 -1 extensions.dispose = function(dispose, conf, options) {4127 -1 var del;4128 -1 callable(dispose);4129 -1 if (options.async && extensions.async || options.promise && extensions.promise) {4130 -1 conf.on('deleteasync', del = function del(id, resultArray) {4131 -1 apply.call(dispose, null, resultArray);4132 -1 });4133 -1 conf.on('clearasync', function(cache2) {4134 -1 forEach(cache2, function(result, id) {4135 -1 del(id, result);4136 -1 });4137 -1 });4138 -1 return;4139 -1 }4140 -1 conf.on('delete', del = function del(id, result) {4141 -1 dispose(result);4142 -1 });4143 -1 conf.on('clear', function(cache2) {4144 -1 forEach(cache2, function(result, id) {4145 -1 del(id, result);4146 -1 });4147 -1 });-1 3653 var fails = require_fails(); -1 3654 var isCallable = require_is_callable(); -1 3655 var replacement = /#|\.prototype\./; -1 3656 var isForced = function isForced(feature, detection) { -1 3657 var value = data[normalize(feature)]; -1 3658 return value === POLYFILL ? true : value === NATIVE ? false : isCallable(detection) ? fails(detection) : !!detection; 4148 3659 }; -1 3660 var normalize = isForced.normalize = function(string) { -1 3661 return String(string).replace(replacement, '.').toLowerCase(); -1 3662 }; -1 3663 var data = isForced.data = {}; -1 3664 var NATIVE = isForced.NATIVE = 'N'; -1 3665 var POLYFILL = isForced.POLYFILL = 'P'; -1 3666 module.exports = isForced; 4149 3667 });4150 -1 var require_max_timeout = __commonJS(function(exports, module) {-1 3668 var require_function_bind_context = __commonJS(function(exports, module) { 4151 3669 'use strict';4152 -1 module.exports = 2147483647;-1 3670 var uncurryThis = require_function_uncurry_this_clause(); -1 3671 var aCallable = require_a_callable(); -1 3672 var NATIVE_BIND = require_function_bind_native(); -1 3673 var bind = uncurryThis(uncurryThis.bind); -1 3674 module.exports = function(fn, that) { -1 3675 aCallable(fn); -1 3676 return that === void 0 ? fn : NATIVE_BIND ? bind(fn, that) : function() { -1 3677 return fn.apply(that, arguments); -1 3678 }; -1 3679 }; 4153 3680 });4154 -1 var require_valid_timeout = __commonJS(function(exports, module) {-1 3681 var require_v8_prototype_define_bug = __commonJS(function(exports, module) { 4155 3682 'use strict';4156 -1 var toPosInt = require_to_pos_integer();4157 -1 var maxTimeout = require_max_timeout();4158 -1 module.exports = function(value) {4159 -1 value = toPosInt(value);4160 -1 if (value > maxTimeout) {4161 -1 throw new TypeError(value + ' exceeds maximum possible timeout');-1 3683 var DESCRIPTORS = require_descriptors(); -1 3684 var fails = require_fails(); -1 3685 module.exports = DESCRIPTORS && fails(function() { -1 3686 return Object.defineProperty(function() {}, 'prototype', { -1 3687 value: 42, -1 3688 writable: false -1 3689 }).prototype !== 42; -1 3690 }); -1 3691 }); -1 3692 var require_an_object = __commonJS(function(exports, module) { -1 3693 'use strict'; -1 3694 var isObject = require_is_object(); -1 3695 var $String = String; -1 3696 var $TypeError = TypeError; -1 3697 module.exports = function(argument) { -1 3698 if (isObject(argument)) { -1 3699 return argument; 4162 3700 }4163 -1 return value;-1 3701 throw new $TypeError($String(argument) + ' is not an object'); 4164 3702 }; 4165 3703 });4166 -1 var require_max_age = __commonJS(function() {-1 3704 var require_object_define_property = __commonJS(function(exports) { 4167 3705 'use strict';4168 -1 var aFrom = require_from();4169 -1 var forEach = require_for_each();4170 -1 var nextTick = require_next_tick();4171 -1 var isPromise = require_is_promise();4172 -1 var timeout = require_valid_timeout();4173 -1 var extensions = require_registered_extensions();4174 -1 var noop3 = Function.prototype;4175 -1 var max2 = Math.max;4176 -1 var min = Math.min;4177 -1 var create = Object.create;4178 -1 extensions.maxAge = function(maxAge, conf, options) {4179 -1 var timeouts, postfix, preFetchAge, preFetchTimeouts;4180 -1 maxAge = timeout(maxAge);4181 -1 if (!maxAge) {4182 -1 return;4183 -1 }4184 -1 timeouts = create(null);4185 -1 postfix = options.async && extensions.async || options.promise && extensions.promise ? 'async' : '';4186 -1 conf.on('set' + postfix, function(id) {4187 -1 timeouts[id] = setTimeout(function() {4188 -1 conf['delete'](id);4189 -1 }, maxAge);4190 -1 if (typeof timeouts[id].unref === 'function') {4191 -1 timeouts[id].unref();4192 -1 }4193 -1 if (!preFetchTimeouts) {4194 -1 return;4195 -1 }4196 -1 if (preFetchTimeouts[id]) {4197 -1 if (preFetchTimeouts[id] !== 'nextTick') {4198 -1 clearTimeout(preFetchTimeouts[id]);4199 -1 }-1 3706 var DESCRIPTORS = require_descriptors(); -1 3707 var IE8_DOM_DEFINE = require_ie8_dom_define(); -1 3708 var V8_PROTOTYPE_DEFINE_BUG = require_v8_prototype_define_bug(); -1 3709 var anObject = require_an_object(); -1 3710 var toPropertyKey = require_to_property_key(); -1 3711 var $TypeError = TypeError; -1 3712 var $defineProperty = Object.defineProperty; -1 3713 var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor; -1 3714 var ENUMERABLE = 'enumerable'; -1 3715 var CONFIGURABLE = 'configurable'; -1 3716 var WRITABLE = 'writable'; -1 3717 exports.f = DESCRIPTORS ? V8_PROTOTYPE_DEFINE_BUG ? function defineProperty(O, P, Attributes) { -1 3718 anObject(O); -1 3719 P = toPropertyKey(P); -1 3720 anObject(Attributes); -1 3721 if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) { -1 3722 var current = $getOwnPropertyDescriptor(O, P); -1 3723 if (current && current[WRITABLE]) { -1 3724 O[P] = Attributes.value; -1 3725 Attributes = { -1 3726 configurable: CONFIGURABLE in Attributes ? Attributes[CONFIGURABLE] : current[CONFIGURABLE], -1 3727 enumerable: ENUMERABLE in Attributes ? Attributes[ENUMERABLE] : current[ENUMERABLE], -1 3728 writable: false -1 3729 }; 4200 3730 }4201 -1 preFetchTimeouts[id] = setTimeout(function() {4202 -1 delete preFetchTimeouts[id];4203 -1 }, preFetchAge);4204 -1 if (typeof preFetchTimeouts[id].unref === 'function') {4205 -1 preFetchTimeouts[id].unref();-1 3731 } -1 3732 return $defineProperty(O, P, Attributes); -1 3733 } : $defineProperty : function defineProperty(O, P, Attributes) { -1 3734 anObject(O); -1 3735 P = toPropertyKey(P); -1 3736 anObject(Attributes); -1 3737 if (IE8_DOM_DEFINE) { -1 3738 try { -1 3739 return $defineProperty(O, P, Attributes); -1 3740 } catch (error) {} -1 3741 } -1 3742 if ('get' in Attributes || 'set' in Attributes) { -1 3743 throw new $TypeError('Accessors not supported'); -1 3744 } -1 3745 if ('value' in Attributes) { -1 3746 O[P] = Attributes.value; -1 3747 } -1 3748 return O; -1 3749 }; -1 3750 }); -1 3751 var require_create_non_enumerable_property = __commonJS(function(exports, module) { -1 3752 'use strict'; -1 3753 var DESCRIPTORS = require_descriptors(); -1 3754 var definePropertyModule = require_object_define_property(); -1 3755 var createPropertyDescriptor = require_create_property_descriptor(); -1 3756 module.exports = DESCRIPTORS ? function(object, key, value) { -1 3757 return definePropertyModule.f(object, key, createPropertyDescriptor(1, value)); -1 3758 } : function(object, key, value) { -1 3759 object[key] = value; -1 3760 return object; -1 3761 }; -1 3762 }); -1 3763 var require_export = __commonJS(function(exports, module) { -1 3764 'use strict'; -1 3765 var globalThis2 = require_global_this(); -1 3766 var apply = require_function_apply(); -1 3767 var uncurryThis = require_function_uncurry_this_clause(); -1 3768 var isCallable = require_is_callable(); -1 3769 var getOwnPropertyDescriptor = require_object_get_own_property_descriptor().f; -1 3770 var isForced = require_is_forced(); -1 3771 var path = require_path(); -1 3772 var bind = require_function_bind_context(); -1 3773 var createNonEnumerableProperty = require_create_non_enumerable_property(); -1 3774 var hasOwn2 = require_has_own_property(); -1 3775 require_shared_store(); -1 3776 var wrapConstructor = function wrapConstructor(NativeConstructor) { -1 3777 var _Wrapper = function Wrapper(a2, b2, c4) { -1 3778 if (this instanceof _Wrapper) { -1 3779 switch (arguments.length) { -1 3780 case 0: -1 3781 return new NativeConstructor(); -1 3782 -1 3783 case 1: -1 3784 return new NativeConstructor(a2); -1 3785 -1 3786 case 2: -1 3787 return new NativeConstructor(a2, b2); -1 3788 } -1 3789 return new NativeConstructor(a2, b2, c4); 4206 3790 }4207 -1 });4208 -1 conf.on('delete' + postfix, function(id) {4209 -1 clearTimeout(timeouts[id]);4210 -1 delete timeouts[id];4211 -1 if (!preFetchTimeouts) {4212 -1 return;-1 3791 return apply(NativeConstructor, this, arguments); -1 3792 }; -1 3793 _Wrapper.prototype = NativeConstructor.prototype; -1 3794 return _Wrapper; -1 3795 }; -1 3796 module.exports = function(options, source) { -1 3797 var TARGET = options.target; -1 3798 var GLOBAL = options.global; -1 3799 var STATIC = options.stat; -1 3800 var PROTO = options.proto; -1 3801 var nativeSource = GLOBAL ? globalThis2 : STATIC ? globalThis2[TARGET] : globalThis2[TARGET] && globalThis2[TARGET].prototype; -1 3802 var target = GLOBAL ? path : path[TARGET] || createNonEnumerableProperty(path, TARGET, {})[TARGET]; -1 3803 var targetPrototype = target.prototype; -1 3804 var FORCED, USE_NATIVE, VIRTUAL_PROTOTYPE; -1 3805 var key, sourceProperty, targetProperty, nativeProperty, resultProperty, descriptor; -1 3806 for (key in source) { -1 3807 FORCED = isForced(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced); -1 3808 USE_NATIVE = !FORCED && nativeSource && hasOwn2(nativeSource, key); -1 3809 targetProperty = target[key]; -1 3810 if (USE_NATIVE) { -1 3811 if (options.dontCallGetSet) { -1 3812 descriptor = getOwnPropertyDescriptor(nativeSource, key); -1 3813 nativeProperty = descriptor && descriptor.value; -1 3814 } else { -1 3815 nativeProperty = nativeSource[key]; -1 3816 } 4213 3817 }4214 -1 if (preFetchTimeouts[id] !== 'nextTick') {4215 -1 clearTimeout(preFetchTimeouts[id]);-1 3818 sourceProperty = USE_NATIVE && nativeProperty ? nativeProperty : source[key]; -1 3819 if (!FORCED && !PROTO && _typeof(targetProperty) == _typeof(sourceProperty)) { -1 3820 continue; 4216 3821 }4217 -1 delete preFetchTimeouts[id];4218 -1 });4219 -1 if (options.preFetch) {4220 -1 if (options.preFetch === true || isNaN(options.preFetch)) {4221 -1 preFetchAge = .333;-1 3822 if (options.bind && USE_NATIVE) { -1 3823 resultProperty = bind(sourceProperty, globalThis2); -1 3824 } else if (options.wrap && USE_NATIVE) { -1 3825 resultProperty = wrapConstructor(sourceProperty); -1 3826 } else if (PROTO && isCallable(sourceProperty)) { -1 3827 resultProperty = uncurryThis(sourceProperty); 4222 3828 } else {4223 -1 preFetchAge = max2(min(Number(options.preFetch), 1), 0);-1 3829 resultProperty = sourceProperty; 4224 3830 }4225 -1 if (preFetchAge) {4226 -1 preFetchTimeouts = {};4227 -1 preFetchAge = (1 - preFetchAge) * maxAge;4228 -1 conf.on('get' + postfix, function(id, args, context) {4229 -1 if (!preFetchTimeouts[id]) {4230 -1 preFetchTimeouts[id] = 'nextTick';4231 -1 nextTick(function() {4232 -1 var result;4233 -1 if (preFetchTimeouts[id] !== 'nextTick') {4234 -1 return;4235 -1 }4236 -1 delete preFetchTimeouts[id];4237 -1 conf['delete'](id);4238 -1 if (options.async) {4239 -1 args = aFrom(args);4240 -1 args.push(noop3);4241 -1 }4242 -1 result = conf.memoized.apply(context, args);4243 -1 if (options.promise) {4244 -1 if (isPromise(result)) {4245 -1 if (typeof result.done === 'function') {4246 -1 result.done(noop3, noop3);4247 -1 } else {4248 -1 result.then(noop3, noop3);4249 -1 }4250 -1 }4251 -1 }4252 -1 });4253 -1 }4254 -1 });-1 3831 if (options.sham || sourceProperty && sourceProperty.sham || targetProperty && targetProperty.sham) { -1 3832 createNonEnumerableProperty(resultProperty, 'sham', true); 4255 3833 }4256 -1 }4257 -1 conf.on('clear' + postfix, function() {4258 -1 forEach(timeouts, function(id) {4259 -1 clearTimeout(id);4260 -1 });4261 -1 timeouts = {};4262 -1 if (preFetchTimeouts) {4263 -1 forEach(preFetchTimeouts, function(id) {4264 -1 if (id !== 'nextTick') {4265 -1 clearTimeout(id);4266 -1 }4267 -1 });4268 -1 preFetchTimeouts = {};-1 3834 createNonEnumerableProperty(target, key, resultProperty); -1 3835 if (PROTO) { -1 3836 VIRTUAL_PROTOTYPE = TARGET + 'Prototype'; -1 3837 if (!hasOwn2(path, VIRTUAL_PROTOTYPE)) { -1 3838 createNonEnumerableProperty(path, VIRTUAL_PROTOTYPE, {}); -1 3839 } -1 3840 createNonEnumerableProperty(path[VIRTUAL_PROTOTYPE], key, sourceProperty); -1 3841 if (options.real && targetPrototype && (FORCED || !targetPrototype[key])) { -1 3842 createNonEnumerableProperty(targetPrototype, key, sourceProperty); -1 3843 } 4269 3844 }4270 -1 });-1 3845 } 4271 3846 }; 4272 3847 });4273 -1 var require_lru_queue = __commonJS(function(exports, module) {-1 3848 var require_es_object_has_own = __commonJS(function() { 4274 3849 'use strict';4275 -1 var toPosInt = require_to_pos_integer();4276 -1 var create = Object.create;4277 -1 var hasOwnProperty2 = Object.prototype.hasOwnProperty;4278 -1 module.exports = function(limit) {4279 -1 var size = 0, base = 1, queue2 = create(null), map = create(null), index = 0, del;4280 -1 limit = toPosInt(limit);4281 -1 return {4282 -1 hit: function hit(id) {4283 -1 var oldIndex = map[id], nuIndex = ++index;4284 -1 queue2[nuIndex] = id;4285 -1 map[id] = nuIndex;4286 -1 if (!oldIndex) {4287 -1 ++size;4288 -1 if (size <= limit) {4289 -1 return;4290 -1 }4291 -1 id = queue2[base];4292 -1 del(id);4293 -1 return id;4294 -1 }4295 -1 delete queue2[oldIndex];4296 -1 if (base !== oldIndex) {4297 -1 return;4298 -1 }4299 -1 while (!hasOwnProperty2.call(queue2, ++base)) {4300 -1 continue;4301 -1 }4302 -1 },4303 -1 delete: del = function del(id) {4304 -1 var oldIndex = map[id];4305 -1 if (!oldIndex) {4306 -1 return;4307 -1 }4308 -1 delete queue2[oldIndex];4309 -1 delete map[id];4310 -1 --size;4311 -1 if (base !== oldIndex) {4312 -1 return;4313 -1 }4314 -1 if (!size) {4315 -1 index = 0;4316 -1 base = 1;4317 -1 return;4318 -1 }4319 -1 while (!hasOwnProperty2.call(queue2, ++base)) {4320 -1 continue;4321 -1 }4322 -1 },4323 -1 clear: function clear() {4324 -1 size = 0;4325 -1 base = 1;4326 -1 queue2 = create(null);4327 -1 map = create(null);4328 -1 index = 0;4329 -1 }4330 -1 };-1 3850 var $ = require_export(); -1 3851 var hasOwn2 = require_has_own_property(); -1 3852 $({ -1 3853 target: 'Object', -1 3854 stat: true -1 3855 }, { -1 3856 hasOwn: hasOwn2 -1 3857 }); -1 3858 }); -1 3859 var require_has_own = __commonJS(function(exports, module) { -1 3860 'use strict'; -1 3861 require_es_object_has_own(); -1 3862 var path = require_path(); -1 3863 module.exports = path.Object.hasOwn; -1 3864 }); -1 3865 var require_has_own2 = __commonJS(function(exports, module) { -1 3866 'use strict'; -1 3867 var parent = require_has_own(); -1 3868 module.exports = parent; -1 3869 }); -1 3870 var require_has_own3 = __commonJS(function(exports, module) { -1 3871 'use strict'; -1 3872 var parent = require_has_own2(); -1 3873 module.exports = parent; -1 3874 }); -1 3875 var require_shared_key = __commonJS(function(exports, module) { -1 3876 'use strict'; -1 3877 var shared = require_shared(); -1 3878 var uid = require_uid(); -1 3879 var keys = shared('keys'); -1 3880 module.exports = function(key) { -1 3881 return keys[key] || (keys[key] = uid(key)); 4331 3882 }; 4332 3883 });4333 -1 var require_max = __commonJS(function() {-1 3884 var require_correct_prototype_getter = __commonJS(function(exports, module) { 4334 3885 'use strict';4335 -1 var toPosInteger = require_to_pos_integer();4336 -1 var lruQueue = require_lru_queue();4337 -1 var extensions = require_registered_extensions();4338 -1 extensions.max = function(max2, conf, options) {4339 -1 var postfix, queue2, hit;4340 -1 max2 = toPosInteger(max2);4341 -1 if (!max2) {4342 -1 return;-1 3886 var fails = require_fails(); -1 3887 module.exports = !fails(function() { -1 3888 function F() {} -1 3889 F.prototype.constructor = null; -1 3890 return Object.getPrototypeOf(new F()) !== F.prototype; -1 3891 }); -1 3892 }); -1 3893 var require_object_get_prototype_of = __commonJS(function(exports, module) { -1 3894 'use strict'; -1 3895 var hasOwn2 = require_has_own_property(); -1 3896 var isCallable = require_is_callable(); -1 3897 var toObject = require_to_object(); -1 3898 var sharedKey = require_shared_key(); -1 3899 var CORRECT_PROTOTYPE_GETTER = require_correct_prototype_getter(); -1 3900 var IE_PROTO = sharedKey('IE_PROTO'); -1 3901 var $Object = Object; -1 3902 var ObjectPrototype = $Object.prototype; -1 3903 module.exports = CORRECT_PROTOTYPE_GETTER ? $Object.getPrototypeOf : function(O) { -1 3904 var object = toObject(O); -1 3905 if (hasOwn2(object, IE_PROTO)) { -1 3906 return object[IE_PROTO]; 4343 3907 }4344 -1 queue2 = lruQueue(max2);4345 -1 postfix = options.async && extensions.async || options.promise && extensions.promise ? 'async' : '';4346 -1 conf.on('set' + postfix, hit = function hit(id) {4347 -1 id = queue2.hit(id);4348 -1 if (id === void 0) {4349 -1 return;4350 -1 }4351 -1 conf['delete'](id);4352 -1 });4353 -1 conf.on('get' + postfix, hit);4354 -1 conf.on('delete' + postfix, queue2['delete']);4355 -1 conf.on('clear' + postfix, queue2.clear);-1 3908 var constructor = object.constructor; -1 3909 if (isCallable(constructor) && object instanceof constructor) { -1 3910 return constructor.prototype; -1 3911 } -1 3912 return object instanceof $Object ? ObjectPrototype : null; 4356 3913 }; 4357 3914 });4358 -1 var require_ref_counter = __commonJS(function() {-1 3915 var require_math_trunc = __commonJS(function(exports, module) { 4359 3916 'use strict';4360 -1 var d2 = require_d();4361 -1 var extensions = require_registered_extensions();4362 -1 var create = Object.create;4363 -1 var defineProperties = Object.defineProperties;4364 -1 extensions.refCounter = function(ignore, conf, options) {4365 -1 var cache2, postfix;4366 -1 cache2 = create(null);4367 -1 postfix = options.async && extensions.async || options.promise && extensions.promise ? 'async' : '';4368 -1 conf.on('set' + postfix, function(id, length) {4369 -1 cache2[id] = length || 1;4370 -1 });4371 -1 conf.on('get' + postfix, function(id) {4372 -1 ++cache2[id];4373 -1 });4374 -1 conf.on('delete' + postfix, function(id) {4375 -1 delete cache2[id];4376 -1 });4377 -1 conf.on('clear' + postfix, function() {4378 -1 cache2 = {};4379 -1 });4380 -1 defineProperties(conf.memoized, {4381 -1 deleteRef: d2(function() {4382 -1 var id = conf.get(arguments);4383 -1 if (id === null) {4384 -1 return null;4385 -1 }4386 -1 if (!cache2[id]) {4387 -1 return null;4388 -1 }4389 -1 if (!--cache2[id]) {4390 -1 conf['delete'](id);4391 -1 return true;4392 -1 }4393 -1 return false;4394 -1 }),4395 -1 getRefCount: d2(function() {4396 -1 var id = conf.get(arguments);4397 -1 if (id === null) {4398 -1 return 0;4399 -1 }4400 -1 if (!cache2[id]) {4401 -1 return 0;4402 -1 }4403 -1 return cache2[id];4404 -1 })4405 -1 });-1 3917 var ceil = Math.ceil; -1 3918 var floor = Math.floor; -1 3919 module.exports = Math.trunc || function trunc(x) { -1 3920 var n2 = +x; -1 3921 return (n2 > 0 ? floor : ceil)(n2); 4406 3922 }; 4407 3923 });4408 -1 var require_memoizee = __commonJS(function(exports, module) {-1 3924 var require_to_integer_or_infinity = __commonJS(function(exports, module) { 4409 3925 'use strict';4410 -1 var normalizeOpts = require_normalize_options();4411 -1 var resolveLength = require_resolve_length();4412 -1 var plain = require_plain();4413 -1 module.exports = function(fn) {4414 -1 var options = normalizeOpts(arguments[1]), length;4415 -1 if (!options.normalizer) {4416 -1 length = options.length = resolveLength(options.length, fn.length, options.async);4417 -1 if (length !== 0) {4418 -1 if (options.primitive) {4419 -1 if (length === false) {4420 -1 options.normalizer = require_primitive();4421 -1 } else if (length > 1) {4422 -1 options.normalizer = require_get_primitive_fixed()(length);-1 3926 var trunc = require_math_trunc(); -1 3927 module.exports = function(argument) { -1 3928 var number = +argument; -1 3929 return number !== number || number === 0 ? 0 : trunc(number); -1 3930 }; -1 3931 }); -1 3932 var require_to_absolute_index = __commonJS(function(exports, module) { -1 3933 'use strict'; -1 3934 var toIntegerOrInfinity = require_to_integer_or_infinity(); -1 3935 var max2 = Math.max; -1 3936 var min = Math.min; -1 3937 module.exports = function(index, length) { -1 3938 var integer = toIntegerOrInfinity(index); -1 3939 return integer < 0 ? max2(integer + length, 0) : min(integer, length); -1 3940 }; -1 3941 }); -1 3942 var require_to_length = __commonJS(function(exports, module) { -1 3943 'use strict'; -1 3944 var toIntegerOrInfinity = require_to_integer_or_infinity(); -1 3945 var min = Math.min; -1 3946 module.exports = function(argument) { -1 3947 var len = toIntegerOrInfinity(argument); -1 3948 return len > 0 ? min(len, 9007199254740991) : 0; -1 3949 }; -1 3950 }); -1 3951 var require_length_of_array_like = __commonJS(function(exports, module) { -1 3952 'use strict'; -1 3953 var toLength = require_to_length(); -1 3954 module.exports = function(obj) { -1 3955 return toLength(obj.length); -1 3956 }; -1 3957 }); -1 3958 var require_array_includes = __commonJS(function(exports, module) { -1 3959 'use strict'; -1 3960 var toIndexedObject = require_to_indexed_object(); -1 3961 var toAbsoluteIndex = require_to_absolute_index(); -1 3962 var lengthOfArrayLike = require_length_of_array_like(); -1 3963 var createMethod = function createMethod(IS_INCLUDES) { -1 3964 return function($this, el, fromIndex) { -1 3965 var O = toIndexedObject($this); -1 3966 var length = lengthOfArrayLike(O); -1 3967 if (length === 0) { -1 3968 return !IS_INCLUDES && -1; -1 3969 } -1 3970 var index = toAbsoluteIndex(fromIndex, length); -1 3971 var value; -1 3972 if (IS_INCLUDES && el !== el) { -1 3973 while (length > index) { -1 3974 value = O[index++]; -1 3975 if (value !== value) { -1 3976 return true; -1 3977 } -1 3978 } -1 3979 } else { -1 3980 for (;length > index; index++) { -1 3981 if ((IS_INCLUDES || index in O) && O[index] === el) { -1 3982 return IS_INCLUDES || index || 0; 4423 3983 }4424 -1 } else if (length === false) {4425 -1 options.normalizer = require_get()();4426 -1 } else if (length === 1) {4427 -1 options.normalizer = require_get_1()();4428 -1 } else {4429 -1 options.normalizer = require_get_fixed()(length);4430 3984 } 4431 3985 } -1 3986 return !IS_INCLUDES && -1; -1 3987 }; -1 3988 }; -1 3989 module.exports = { -1 3990 includes: createMethod(true), -1 3991 indexOf: createMethod(false) -1 3992 }; -1 3993 }); -1 3994 var require_hidden_keys = __commonJS(function(exports, module) { -1 3995 'use strict'; -1 3996 module.exports = {}; -1 3997 }); -1 3998 var require_object_keys_internal = __commonJS(function(exports, module) { -1 3999 'use strict'; -1 4000 var uncurryThis = require_function_uncurry_this(); -1 4001 var hasOwn2 = require_has_own_property(); -1 4002 var toIndexedObject = require_to_indexed_object(); -1 4003 var indexOf = require_array_includes().indexOf; -1 4004 var hiddenKeys = require_hidden_keys(); -1 4005 var push = uncurryThis([].push); -1 4006 module.exports = function(object, names) { -1 4007 var O = toIndexedObject(object); -1 4008 var i = 0; -1 4009 var result = []; -1 4010 var key; -1 4011 for (key in O) { -1 4012 !hasOwn2(hiddenKeys, key) && hasOwn2(O, key) && push(result, key); 4432 4013 }4433 -1 if (options.async) {4434 -1 require_async();4435 -1 }4436 -1 if (options.promise) {4437 -1 require_promise();4438 -1 }4439 -1 if (options.dispose) {4440 -1 require_dispose();4441 -1 }4442 -1 if (options.maxAge) {4443 -1 require_max_age();4444 -1 }4445 -1 if (options.max) {4446 -1 require_max();4447 -1 }4448 -1 if (options.refCounter) {4449 -1 require_ref_counter();-1 4014 while (names.length > i) { -1 4015 if (hasOwn2(O, key = names[i++])) { -1 4016 ~indexOf(result, key) || push(result, key); -1 4017 } 4450 4018 }4451 -1 return plain(fn, options);-1 4019 return result; 4452 4020 }; 4453 4021 });4454 -1 var require_utils = __commonJS(function(exports) {-1 4022 var require_enum_bug_keys = __commonJS(function(exports, module) { 4455 4023 'use strict';4456 -1 Object.defineProperty(exports, '__esModule', {4457 -1 value: true-1 4024 module.exports = [ 'constructor', 'hasOwnProperty', 'isPrototypeOf', 'propertyIsEnumerable', 'toLocaleString', 'toString', 'valueOf' ]; -1 4025 }); -1 4026 var require_object_keys = __commonJS(function(exports, module) { -1 4027 'use strict'; -1 4028 var internalObjectKeys = require_object_keys_internal(); -1 4029 var enumBugKeys = require_enum_bug_keys(); -1 4030 module.exports = Object.keys || function keys(O) { -1 4031 return internalObjectKeys(O, enumBugKeys); -1 4032 }; -1 4033 }); -1 4034 var require_object_to_array = __commonJS(function(exports, module) { -1 4035 'use strict'; -1 4036 var DESCRIPTORS = require_descriptors(); -1 4037 var fails = require_fails(); -1 4038 var uncurryThis = require_function_uncurry_this(); -1 4039 var objectGetPrototypeOf = require_object_get_prototype_of(); -1 4040 var objectKeys = require_object_keys(); -1 4041 var toIndexedObject = require_to_indexed_object(); -1 4042 var $propertyIsEnumerable = require_object_property_is_enumerable().f; -1 4043 var propertyIsEnumerable = uncurryThis($propertyIsEnumerable); -1 4044 var push = uncurryThis([].push); -1 4045 var IE_BUG = DESCRIPTORS && fails(function() { -1 4046 var O = Object.create(null); -1 4047 O[2] = 2; -1 4048 return !propertyIsEnumerable(O, 2); 4458 4049 });4459 -1 function isIdentStart(c4) {4460 -1 return c4 >= 'a' && c4 <= 'z' || c4 >= 'A' && c4 <= 'Z' || c4 === '-' || c4 === '_';4461 -1 }4462 -1 exports.isIdentStart = isIdentStart;4463 -1 function isIdent(c4) {4464 -1 return c4 >= 'a' && c4 <= 'z' || c4 >= 'A' && c4 <= 'Z' || c4 >= '0' && c4 <= '9' || c4 === '-' || c4 === '_';4465 -1 }4466 -1 exports.isIdent = isIdent;4467 -1 function isHex(c4) {4468 -1 return c4 >= 'a' && c4 <= 'f' || c4 >= 'A' && c4 <= 'F' || c4 >= '0' && c4 <= '9';4469 -1 }4470 -1 exports.isHex = isHex;4471 -1 function escapeIdentifier(s) {4472 -1 var len = s.length;4473 -1 var result = '';4474 -1 var i = 0;4475 -1 while (i < len) {4476 -1 var chr = s.charAt(i);4477 -1 if (exports.identSpecialChars[chr]) {4478 -1 result += '\\' + chr;4479 -1 } else {4480 -1 if (!(chr === '_' || chr === '-' || chr >= 'A' && chr <= 'Z' || chr >= 'a' && chr <= 'z' || i !== 0 && chr >= '0' && chr <= '9')) {4481 -1 var charCode = chr.charCodeAt(0);4482 -1 if ((charCode & 63488) === 55296) {4483 -1 var extraCharCode = s.charCodeAt(i++);4484 -1 if ((charCode & 64512) !== 55296 || (extraCharCode & 64512) !== 56320) {4485 -1 throw Error('UCS-2(decode): illegal sequence');4486 -1 }4487 -1 charCode = ((charCode & 1023) << 10) + (extraCharCode & 1023) + 65536;4488 -1 }4489 -1 result += '\\' + charCode.toString(16) + ' ';4490 -1 } else {4491 -1 result += chr;-1 4050 var createMethod = function createMethod(TO_ENTRIES) { -1 4051 return function(it) { -1 4052 var O = toIndexedObject(it); -1 4053 var keys = objectKeys(O); -1 4054 var IE_WORKAROUND = IE_BUG && objectGetPrototypeOf(O) === null; -1 4055 var length = keys.length; -1 4056 var i = 0; -1 4057 var result = []; -1 4058 var key; -1 4059 while (length > i) { -1 4060 key = keys[i++]; -1 4061 if (!DESCRIPTORS || (IE_WORKAROUND ? key in O : propertyIsEnumerable(O, key))) { -1 4062 push(result, TO_ENTRIES ? [ key, O[key] ] : O[key]); 4492 4063 } 4493 4064 }4494 -1 i++;4495 -1 }4496 -1 return result;4497 -1 }4498 -1 exports.escapeIdentifier = escapeIdentifier;4499 -1 function escapeStr(s) {4500 -1 var len = s.length;4501 -1 var result = '';4502 -1 var i = 0;4503 -1 var replacement;4504 -1 while (i < len) {4505 -1 var chr = s.charAt(i);4506 -1 if (chr === '"') {4507 -1 chr = '\\"';4508 -1 } else if (chr === '\\') {4509 -1 chr = '\\\\';4510 -1 } else if ((replacement = exports.strReplacementsRev[chr]) !== void 0) {4511 -1 chr = replacement;4512 -1 }4513 -1 result += chr;4514 -1 i++;4515 -1 }4516 -1 return '"' + result + '"';4517 -1 }4518 -1 exports.escapeStr = escapeStr;4519 -1 exports.identSpecialChars = {4520 -1 '!': true,4521 -1 '"': true,4522 -1 '#': true,4523 -1 $: true,4524 -1 '%': true,4525 -1 '&': true,4526 -1 '\'': true,4527 -1 '(': true,4528 -1 ')': true,4529 -1 '*': true,4530 -1 '+': true,4531 -1 ',': true,4532 -1 '.': true,4533 -1 '/': true,4534 -1 ';': true,4535 -1 '<': true,4536 -1 '=': true,4537 -1 '>': true,4538 -1 '?': true,4539 -1 '@': true,4540 -1 '[': true,4541 -1 '\\': true,4542 -1 ']': true,4543 -1 '^': true,4544 -1 '`': true,4545 -1 '{': true,4546 -1 '|': true,4547 -1 '}': true,4548 -1 '~': true-1 4065 return result; -1 4066 }; 4549 4067 };4550 -1 exports.strReplacementsRev = {4551 -1 '\n': '\\n',4552 -1 '\r': '\\r',4553 -1 '\t': '\\t',4554 -1 '\f': '\\f',4555 -1 '\v': '\\v'-1 4068 module.exports = { -1 4069 entries: createMethod(true), -1 4070 values: createMethod(false) 4556 4071 };4557 -1 exports.singleQuoteEscapeChars = {4558 -1 n: '\n',4559 -1 r: '\r',4560 -1 t: '\t',4561 -1 f: '\f',4562 -1 '\\': '\\',4563 -1 '\'': '\''-1 4072 }); -1 4073 var require_es_object_values = __commonJS(function() { -1 4074 'use strict'; -1 4075 var $ = require_export(); -1 4076 var $values = require_object_to_array().values; -1 4077 $({ -1 4078 target: 'Object', -1 4079 stat: true -1 4080 }, { -1 4081 values: function values2(O) { -1 4082 return $values(O); -1 4083 } -1 4084 }); -1 4085 }); -1 4086 var require_values = __commonJS(function(exports, module) { -1 4087 'use strict'; -1 4088 require_es_object_values(); -1 4089 var path = require_path(); -1 4090 module.exports = path.Object.values; -1 4091 }); -1 4092 var require_values2 = __commonJS(function(exports, module) { -1 4093 'use strict'; -1 4094 var parent = require_values(); -1 4095 module.exports = parent; -1 4096 }); -1 4097 var require_values3 = __commonJS(function(exports, module) { -1 4098 'use strict'; -1 4099 var parent = require_values2(); -1 4100 module.exports = parent; -1 4101 }); -1 4102 var require_to_string_tag_support = __commonJS(function(exports, module) { -1 4103 'use strict'; -1 4104 var wellKnownSymbol = require_well_known_symbol(); -1 4105 var TO_STRING_TAG = wellKnownSymbol('toStringTag'); -1 4106 var test = {}; -1 4107 test[TO_STRING_TAG] = 'z'; -1 4108 module.exports = String(test) === '[object z]'; -1 4109 }); -1 4110 var require_classof = __commonJS(function(exports, module) { -1 4111 'use strict'; -1 4112 var TO_STRING_TAG_SUPPORT = require_to_string_tag_support(); -1 4113 var isCallable = require_is_callable(); -1 4114 var classofRaw = require_classof_raw(); -1 4115 var wellKnownSymbol = require_well_known_symbol(); -1 4116 var TO_STRING_TAG = wellKnownSymbol('toStringTag'); -1 4117 var $Object = Object; -1 4118 var CORRECT_ARGUMENTS = classofRaw(function() { -1 4119 return arguments; -1 4120 }()) === 'Arguments'; -1 4121 var tryGet = function tryGet(it, key) { -1 4122 try { -1 4123 return it[key]; -1 4124 } catch (error) {} 4564 4125 };4565 -1 exports.doubleQuotesEscapeChars = {4566 -1 n: '\n',4567 -1 r: '\r',4568 -1 t: '\t',4569 -1 f: '\f',4570 -1 '\\': '\\',4571 -1 '"': '"'-1 4126 module.exports = TO_STRING_TAG_SUPPORT ? classofRaw : function(it) { -1 4127 var O, tag, result; -1 4128 return it === void 0 ? 'Undefined' : it === null ? 'Null' : typeof (tag = tryGet(O = $Object(it), TO_STRING_TAG)) == 'string' ? tag : CORRECT_ARGUMENTS ? classofRaw(O) : (result = classofRaw(O)) === 'Object' && isCallable(O.callee) ? 'Arguments' : result; 4572 4129 }; 4573 4130 });4574 -1 var require_parser_context = __commonJS(function(exports) {-1 4131 var require_to_string = __commonJS(function(exports, module) { 4575 4132 'use strict';4576 -1 Object.defineProperty(exports, '__esModule', {4577 -1 value: true4578 -1 });4579 -1 var utils_1 = require_utils();4580 -1 function parseCssSelector(str, pos, pseudos, attrEqualityMods, ruleNestingOperators, substitutesEnabled) {4581 -1 var l = str.length;4582 -1 var chr = '';4583 -1 function getStr(quote, escapeTable) {4584 -1 var result = '';4585 -1 pos++;4586 -1 chr = str.charAt(pos);4587 -1 while (pos < l) {4588 -1 if (chr === quote) {4589 -1 pos++;4590 -1 return result;4591 -1 } else if (chr === '\\') {4592 -1 pos++;4593 -1 chr = str.charAt(pos);4594 -1 var esc = void 0;4595 -1 if (chr === quote) {4596 -1 result += quote;4597 -1 } else if ((esc = escapeTable[chr]) !== void 0) {4598 -1 result += esc;4599 -1 } else if (utils_1.isHex(chr)) {4600 -1 var hex = chr;4601 -1 pos++;4602 -1 chr = str.charAt(pos);4603 -1 while (utils_1.isHex(chr)) {4604 -1 hex += chr;4605 -1 pos++;4606 -1 chr = str.charAt(pos);4607 -1 }4608 -1 if (chr === ' ') {4609 -1 pos++;4610 -1 chr = str.charAt(pos);4611 -1 }4612 -1 result += String.fromCharCode(parseInt(hex, 16));4613 -1 continue;4614 -1 } else {4615 -1 result += chr;4616 -1 }4617 -1 } else {4618 -1 result += chr;4619 -1 }4620 -1 pos++;4621 -1 chr = str.charAt(pos);4622 -1 }4623 -1 return result;4624 -1 }4625 -1 function getIdent() {4626 -1 var result = '';4627 -1 chr = str.charAt(pos);4628 -1 while (pos < l) {4629 -1 if (utils_1.isIdent(chr)) {4630 -1 result += chr;4631 -1 } else if (chr === '\\') {4632 -1 pos++;4633 -1 if (pos >= l) {4634 -1 throw Error('Expected symbol but end of file reached.');4635 -1 }4636 -1 chr = str.charAt(pos);4637 -1 if (utils_1.identSpecialChars[chr]) {4638 -1 result += chr;4639 -1 } else if (utils_1.isHex(chr)) {4640 -1 var hex = chr;4641 -1 pos++;4642 -1 chr = str.charAt(pos);4643 -1 while (utils_1.isHex(chr)) {4644 -1 hex += chr;4645 -1 pos++;4646 -1 chr = str.charAt(pos);4647 -1 }4648 -1 if (chr === ' ') {4649 -1 pos++;4650 -1 chr = str.charAt(pos);4651 -1 }4652 -1 result += String.fromCharCode(parseInt(hex, 16));4653 -1 continue;4654 -1 } else {4655 -1 result += chr;4656 -1 }4657 -1 } else {4658 -1 return result;4659 -1 }4660 -1 pos++;4661 -1 chr = str.charAt(pos);4662 -1 }4663 -1 return result;4664 -1 }4665 -1 function skipWhitespace() {4666 -1 chr = str.charAt(pos);4667 -1 var result = false;4668 -1 while (chr === ' ' || chr === '\t' || chr === '\n' || chr === '\r' || chr === '\f') {4669 -1 result = true;4670 -1 pos++;4671 -1 chr = str.charAt(pos);4672 -1 }4673 -1 return result;4674 -1 }4675 -1 function parse3() {4676 -1 var res = parseSelector();4677 -1 if (pos < l) {4678 -1 throw Error('Rule expected but "' + str.charAt(pos) + '" found.');4679 -1 }4680 -1 return res;-1 4133 var classof = require_classof(); -1 4134 var $String = String; -1 4135 module.exports = function(argument) { -1 4136 if (classof(argument) === 'Symbol') { -1 4137 throw new TypeError('Cannot convert a Symbol value to a string'); 4681 4138 }4682 -1 function parseSelector() {4683 -1 var selector = parseSingleSelector();4684 -1 if (!selector) {4685 -1 return null;-1 4139 return $String(argument); -1 4140 }; -1 4141 }); -1 4142 var require_string_multibyte = __commonJS(function(exports, module) { -1 4143 'use strict'; -1 4144 var uncurryThis = require_function_uncurry_this(); -1 4145 var toIntegerOrInfinity = require_to_integer_or_infinity(); -1 4146 var toString = require_to_string(); -1 4147 var requireObjectCoercible = require_require_object_coercible(); -1 4148 var charAt = uncurryThis(''.charAt); -1 4149 var charCodeAt = uncurryThis(''.charCodeAt); -1 4150 var stringSlice = uncurryThis(''.slice); -1 4151 var createMethod = function createMethod(CONVERT_TO_STRING) { -1 4152 return function($this, pos) { -1 4153 var S = toString(requireObjectCoercible($this)); -1 4154 var position = toIntegerOrInfinity(pos); -1 4155 var size = S.length; -1 4156 var first, second; -1 4157 if (position < 0 || position >= size) { -1 4158 return CONVERT_TO_STRING ? '' : void 0; 4686 4159 }4687 -1 var res = selector;4688 -1 chr = str.charAt(pos);4689 -1 while (chr === ',') {4690 -1 pos++;4691 -1 skipWhitespace();4692 -1 if (res.type !== 'selectors') {4693 -1 res = {4694 -1 type: 'selectors',4695 -1 selectors: [ selector ]4696 -1 };4697 -1 }4698 -1 selector = parseSingleSelector();4699 -1 if (!selector) {4700 -1 throw Error('Rule expected after ",".');4701 -1 }4702 -1 res.selectors.push(selector);-1 4160 first = charCodeAt(S, position); -1 4161 return first < 55296 || first > 56319 || position + 1 === size || (second = charCodeAt(S, position + 1)) < 56320 || second > 57343 ? CONVERT_TO_STRING ? charAt(S, position) : first : CONVERT_TO_STRING ? stringSlice(S, position, position + 2) : (first - 55296 << 10) + (second - 56320) + 65536; -1 4162 }; -1 4163 }; -1 4164 module.exports = { -1 4165 codeAt: createMethod(false), -1 4166 charAt: createMethod(true) -1 4167 }; -1 4168 }); -1 4169 var require_weak_map_basic_detection = __commonJS(function(exports, module) { -1 4170 'use strict'; -1 4171 var globalThis2 = require_global_this(); -1 4172 var isCallable = require_is_callable(); -1 4173 var WeakMap2 = globalThis2.WeakMap; -1 4174 module.exports = isCallable(WeakMap2) && /native code/.test(String(WeakMap2)); -1 4175 }); -1 4176 var require_internal_state = __commonJS(function(exports, module) { -1 4177 'use strict'; -1 4178 var NATIVE_WEAK_MAP = require_weak_map_basic_detection(); -1 4179 var globalThis2 = require_global_this(); -1 4180 var isObject = require_is_object(); -1 4181 var createNonEnumerableProperty = require_create_non_enumerable_property(); -1 4182 var hasOwn2 = require_has_own_property(); -1 4183 var shared = require_shared_store(); -1 4184 var sharedKey = require_shared_key(); -1 4185 var hiddenKeys = require_hidden_keys(); -1 4186 var OBJECT_ALREADY_INITIALIZED = 'Object already initialized'; -1 4187 var TypeError2 = globalThis2.TypeError; -1 4188 var WeakMap2 = globalThis2.WeakMap; -1 4189 var set2; -1 4190 var get2; -1 4191 var has; -1 4192 var enforce = function enforce(it) { -1 4193 return has(it) ? get2(it) : set2(it, {}); -1 4194 }; -1 4195 var getterFor = function getterFor(TYPE) { -1 4196 return function(it) { -1 4197 var state; -1 4198 if (!isObject(it) || (state = get2(it)).type !== TYPE) { -1 4199 throw new TypeError2('Incompatible receiver, ' + TYPE + ' required'); 4703 4200 }4704 -1 return res;4705 -1 }4706 -1 function parseSingleSelector() {4707 -1 skipWhitespace();4708 -1 var selector = {4709 -1 type: 'ruleSet'4710 -1 };4711 -1 var rule = parseRule();4712 -1 if (!rule) {4713 -1 return null;-1 4201 return state; -1 4202 }; -1 4203 }; -1 4204 if (NATIVE_WEAK_MAP || shared.state) { -1 4205 store = shared.state || (shared.state = new WeakMap2()); -1 4206 store.get = store.get; -1 4207 store.has = store.has; -1 4208 store.set = store.set; -1 4209 set2 = function set2(it, metadata) { -1 4210 if (store.has(it)) { -1 4211 throw new TypeError2(OBJECT_ALREADY_INITIALIZED); 4714 4212 }4715 -1 var currentRule = selector;4716 -1 while (rule) {4717 -1 rule.type = 'rule';4718 -1 currentRule.rule = rule;4719 -1 currentRule = rule;4720 -1 skipWhitespace();4721 -1 chr = str.charAt(pos);4722 -1 if (pos >= l || chr === ',' || chr === ')') {4723 -1 break;4724 -1 }4725 -1 if (ruleNestingOperators[chr]) {4726 -1 var op = chr;4727 -1 pos++;4728 -1 skipWhitespace();4729 -1 rule = parseRule();4730 -1 if (!rule) {4731 -1 throw Error('Rule expected after "' + op + '".');4732 -1 }4733 -1 rule.nestingOperator = op;4734 -1 } else {4735 -1 rule = parseRule();4736 -1 if (rule) {4737 -1 rule.nestingOperator = null;4738 -1 }4739 -1 }-1 4213 metadata.facade = it; -1 4214 store.set(it, metadata); -1 4215 return metadata; -1 4216 }; -1 4217 get2 = function get2(it) { -1 4218 return store.get(it) || {}; -1 4219 }; -1 4220 has = function has(it) { -1 4221 return store.has(it); -1 4222 }; -1 4223 } else { -1 4224 STATE = sharedKey('state'); -1 4225 hiddenKeys[STATE] = true; -1 4226 set2 = function set2(it, metadata) { -1 4227 if (hasOwn2(it, STATE)) { -1 4228 throw new TypeError2(OBJECT_ALREADY_INITIALIZED); 4740 4229 }4741 -1 return selector;-1 4230 metadata.facade = it; -1 4231 createNonEnumerableProperty(it, STATE, metadata); -1 4232 return metadata; -1 4233 }; -1 4234 get2 = function get2(it) { -1 4235 return hasOwn2(it, STATE) ? it[STATE] : {}; -1 4236 }; -1 4237 has = function has(it) { -1 4238 return hasOwn2(it, STATE); -1 4239 }; -1 4240 } -1 4241 var store; -1 4242 var STATE; -1 4243 module.exports = { -1 4244 set: set2, -1 4245 get: get2, -1 4246 has: has, -1 4247 enforce: enforce, -1 4248 getterFor: getterFor -1 4249 }; -1 4250 }); -1 4251 var require_function_name = __commonJS(function(exports, module) { -1 4252 'use strict'; -1 4253 var DESCRIPTORS = require_descriptors(); -1 4254 var hasOwn2 = require_has_own_property(); -1 4255 var FunctionPrototype = Function.prototype; -1 4256 var getDescriptor = DESCRIPTORS && Object.getOwnPropertyDescriptor; -1 4257 var EXISTS = hasOwn2(FunctionPrototype, 'name'); -1 4258 var PROPER = EXISTS && function something() {}.name === 'something'; -1 4259 var CONFIGURABLE = EXISTS && (!DESCRIPTORS || DESCRIPTORS && getDescriptor(FunctionPrototype, 'name').configurable); -1 4260 module.exports = { -1 4261 EXISTS: EXISTS, -1 4262 PROPER: PROPER, -1 4263 CONFIGURABLE: CONFIGURABLE -1 4264 }; -1 4265 }); -1 4266 var require_object_define_properties = __commonJS(function(exports) { -1 4267 'use strict'; -1 4268 var DESCRIPTORS = require_descriptors(); -1 4269 var V8_PROTOTYPE_DEFINE_BUG = require_v8_prototype_define_bug(); -1 4270 var definePropertyModule = require_object_define_property(); -1 4271 var anObject = require_an_object(); -1 4272 var toIndexedObject = require_to_indexed_object(); -1 4273 var objectKeys = require_object_keys(); -1 4274 exports.f = DESCRIPTORS && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) { -1 4275 anObject(O); -1 4276 var props = toIndexedObject(Properties); -1 4277 var keys = objectKeys(Properties); -1 4278 var length = keys.length; -1 4279 var index = 0; -1 4280 var key; -1 4281 while (length > index) { -1 4282 definePropertyModule.f(O, key = keys[index++], props[key]); 4742 4283 }4743 -1 function parseRule() {4744 -1 var rule = null;4745 -1 while (pos < l) {4746 -1 chr = str.charAt(pos);4747 -1 if (chr === '*') {4748 -1 pos++;4749 -1 (rule = rule || {}).tagName = '*';4750 -1 } else if (utils_1.isIdentStart(chr) || chr === '\\') {4751 -1 (rule = rule || {}).tagName = getIdent();4752 -1 } else if (chr === '.') {4753 -1 pos++;4754 -1 rule = rule || {};4755 -1 (rule.classNames = rule.classNames || []).push(getIdent());4756 -1 } else if (chr === '#') {4757 -1 pos++;4758 -1 (rule = rule || {}).id = getIdent();4759 -1 } else if (chr === '[') {4760 -1 pos++;4761 -1 skipWhitespace();4762 -1 var attr = {4763 -1 name: getIdent()4764 -1 };4765 -1 skipWhitespace();4766 -1 if (chr === ']') {4767 -1 pos++;4768 -1 } else {4769 -1 var operator = '';4770 -1 if (attrEqualityMods[chr]) {4771 -1 operator = chr;4772 -1 pos++;4773 -1 chr = str.charAt(pos);4774 -1 }4775 -1 if (pos >= l) {4776 -1 throw Error('Expected "=" but end of file reached.');4777 -1 }4778 -1 if (chr !== '=') {4779 -1 throw Error('Expected "=" but "' + chr + '" found.');4780 -1 }4781 -1 attr.operator = operator + '=';4782 -1 pos++;4783 -1 skipWhitespace();4784 -1 var attrValue = '';4785 -1 attr.valueType = 'string';4786 -1 if (chr === '"') {4787 -1 attrValue = getStr('"', utils_1.doubleQuotesEscapeChars);4788 -1 } else if (chr === '\'') {4789 -1 attrValue = getStr('\'', utils_1.singleQuoteEscapeChars);4790 -1 } else if (substitutesEnabled && chr === '$') {4791 -1 pos++;4792 -1 attrValue = getIdent();4793 -1 attr.valueType = 'substitute';4794 -1 } else {4795 -1 while (pos < l) {4796 -1 if (chr === ']') {4797 -1 break;4798 -1 }4799 -1 attrValue += chr;4800 -1 pos++;4801 -1 chr = str.charAt(pos);4802 -1 }4803 -1 attrValue = attrValue.trim();4804 -1 }4805 -1 skipWhitespace();4806 -1 if (pos >= l) {4807 -1 throw Error('Expected "]" but end of file reached.');4808 -1 }4809 -1 if (chr !== ']') {4810 -1 throw Error('Expected "]" but "' + chr + '" found.');4811 -1 }4812 -1 pos++;4813 -1 attr.value = attrValue;4814 -1 }4815 -1 rule = rule || {};4816 -1 (rule.attrs = rule.attrs || []).push(attr);4817 -1 } else if (chr === ':') {4818 -1 pos++;4819 -1 var pseudoName = getIdent();4820 -1 var pseudo = {4821 -1 name: pseudoName4822 -1 };4823 -1 if (chr === '(') {4824 -1 pos++;4825 -1 var value = '';4826 -1 skipWhitespace();4827 -1 if (pseudos[pseudoName] === 'selector') {4828 -1 pseudo.valueType = 'selector';4829 -1 value = parseSelector();4830 -1 } else {4831 -1 pseudo.valueType = pseudos[pseudoName] || 'string';4832 -1 if (chr === '"') {4833 -1 value = getStr('"', utils_1.doubleQuotesEscapeChars);4834 -1 } else if (chr === '\'') {4835 -1 value = getStr('\'', utils_1.singleQuoteEscapeChars);4836 -1 } else if (substitutesEnabled && chr === '$') {4837 -1 pos++;4838 -1 value = getIdent();4839 -1 pseudo.valueType = 'substitute';4840 -1 } else {4841 -1 while (pos < l) {4842 -1 if (chr === ')') {4843 -1 break;4844 -1 }4845 -1 value += chr;4846 -1 pos++;4847 -1 chr = str.charAt(pos);4848 -1 }4849 -1 value = value.trim();4850 -1 }4851 -1 skipWhitespace();4852 -1 }4853 -1 if (pos >= l) {4854 -1 throw Error('Expected ")" but end of file reached.');4855 -1 }4856 -1 if (chr !== ')') {4857 -1 throw Error('Expected ")" but "' + chr + '" found.');4858 -1 }4859 -1 pos++;4860 -1 pseudo.value = value;4861 -1 }4862 -1 rule = rule || {};4863 -1 (rule.pseudos = rule.pseudos || []).push(pseudo);4864 -1 } else {4865 -1 break;4866 -1 }-1 4284 return O; -1 4285 }; -1 4286 }); -1 4287 var require_html = __commonJS(function(exports, module) { -1 4288 'use strict'; -1 4289 var getBuiltIn = require_get_built_in(); -1 4290 module.exports = getBuiltIn('document', 'documentElement'); -1 4291 }); -1 4292 var require_object_create = __commonJS(function(exports, module) { -1 4293 'use strict'; -1 4294 var anObject = require_an_object(); -1 4295 var definePropertiesModule = require_object_define_properties(); -1 4296 var enumBugKeys = require_enum_bug_keys(); -1 4297 var hiddenKeys = require_hidden_keys(); -1 4298 var html = require_html(); -1 4299 var documentCreateElement = require_document_create_element(); -1 4300 var sharedKey = require_shared_key(); -1 4301 var GT = '>'; -1 4302 var LT = '<'; -1 4303 var PROTOTYPE = 'prototype'; -1 4304 var SCRIPT = 'script'; -1 4305 var IE_PROTO = sharedKey('IE_PROTO'); -1 4306 var EmptyConstructor = function EmptyConstructor() {}; -1 4307 var scriptTag = function scriptTag(content) { -1 4308 return LT + SCRIPT + GT + content + LT + '/' + SCRIPT + GT; -1 4309 }; -1 4310 var NullProtoObjectViaActiveX = function NullProtoObjectViaActiveX(activeXDocument2) { -1 4311 activeXDocument2.write(scriptTag('')); -1 4312 activeXDocument2.close(); -1 4313 var temp = activeXDocument2.parentWindow.Object; -1 4314 activeXDocument2 = null; -1 4315 return temp; -1 4316 }; -1 4317 var NullProtoObjectViaIFrame = function NullProtoObjectViaIFrame() { -1 4318 var iframe = documentCreateElement('iframe'); -1 4319 var JS = 'java' + SCRIPT + ':'; -1 4320 var iframeDocument; -1 4321 iframe.style.display = 'none'; -1 4322 html.appendChild(iframe); -1 4323 iframe.src = String(JS); -1 4324 iframeDocument = iframe.contentWindow.document; -1 4325 iframeDocument.open(); -1 4326 iframeDocument.write(scriptTag('document.F=Object')); -1 4327 iframeDocument.close(); -1 4328 return iframeDocument.F; -1 4329 }; -1 4330 var activeXDocument; -1 4331 var _NullProtoObject = function NullProtoObject() { -1 4332 try { -1 4333 activeXDocument = new ActiveXObject('htmlfile'); -1 4334 } catch (error) {} -1 4335 _NullProtoObject = typeof document != 'undefined' ? document.domain && activeXDocument ? NullProtoObjectViaActiveX(activeXDocument) : NullProtoObjectViaIFrame() : NullProtoObjectViaActiveX(activeXDocument); -1 4336 var length = enumBugKeys.length; -1 4337 while (length--) { -1 4338 delete _NullProtoObject[PROTOTYPE][enumBugKeys[length]]; -1 4339 } -1 4340 return _NullProtoObject(); -1 4341 }; -1 4342 hiddenKeys[IE_PROTO] = true; -1 4343 module.exports = Object.create || function create(O, Properties) { -1 4344 var result; -1 4345 if (O !== null) { -1 4346 EmptyConstructor[PROTOTYPE] = anObject(O); -1 4347 result = new EmptyConstructor(); -1 4348 EmptyConstructor[PROTOTYPE] = null; -1 4349 result[IE_PROTO] = O; -1 4350 } else { -1 4351 result = _NullProtoObject(); -1 4352 } -1 4353 return Properties === void 0 ? result : definePropertiesModule.f(result, Properties); -1 4354 }; -1 4355 }); -1 4356 var require_define_built_in = __commonJS(function(exports, module) { -1 4357 'use strict'; -1 4358 var createNonEnumerableProperty = require_create_non_enumerable_property(); -1 4359 module.exports = function(target, key, value, options) { -1 4360 if (options && options.enumerable) { -1 4361 target[key] = value; -1 4362 } else { -1 4363 createNonEnumerableProperty(target, key, value); -1 4364 } -1 4365 return target; -1 4366 }; -1 4367 }); -1 4368 var require_iterators_core = __commonJS(function(exports, module) { -1 4369 'use strict'; -1 4370 var fails = require_fails(); -1 4371 var isCallable = require_is_callable(); -1 4372 var isObject = require_is_object(); -1 4373 var create = require_object_create(); -1 4374 var getPrototypeOf = require_object_get_prototype_of(); -1 4375 var defineBuiltIn = require_define_built_in(); -1 4376 var wellKnownSymbol = require_well_known_symbol(); -1 4377 var IS_PURE = require_is_pure(); -1 4378 var ITERATOR = wellKnownSymbol('iterator'); -1 4379 var BUGGY_SAFARI_ITERATORS = false; -1 4380 var IteratorPrototype; -1 4381 var PrototypeOfArrayIteratorPrototype; -1 4382 var arrayIterator; -1 4383 if ([].keys) { -1 4384 arrayIterator = [].keys(); -1 4385 if (!('next' in arrayIterator)) { -1 4386 BUGGY_SAFARI_ITERATORS = true; -1 4387 } else { -1 4388 PrototypeOfArrayIteratorPrototype = getPrototypeOf(getPrototypeOf(arrayIterator)); -1 4389 if (PrototypeOfArrayIteratorPrototype !== Object.prototype) { -1 4390 IteratorPrototype = PrototypeOfArrayIteratorPrototype; 4867 4391 }4868 -1 return rule;4869 4392 }4870 -1 return parse3();4871 4393 }4872 -1 exports.parseCssSelector = parseCssSelector;-1 4394 var NEW_ITERATOR_PROTOTYPE = !isObject(IteratorPrototype) || fails(function() { -1 4395 var test = {}; -1 4396 return IteratorPrototype[ITERATOR].call(test) !== test; -1 4397 }); -1 4398 if (NEW_ITERATOR_PROTOTYPE) { -1 4399 IteratorPrototype = {}; -1 4400 } else if (IS_PURE) { -1 4401 IteratorPrototype = create(IteratorPrototype); -1 4402 } -1 4403 if (!isCallable(IteratorPrototype[ITERATOR])) { -1 4404 defineBuiltIn(IteratorPrototype, ITERATOR, function() { -1 4405 return this; -1 4406 }); -1 4407 } -1 4408 module.exports = { -1 4409 IteratorPrototype: IteratorPrototype, -1 4410 BUGGY_SAFARI_ITERATORS: BUGGY_SAFARI_ITERATORS -1 4411 }; 4873 4412 });4874 -1 var require_render = __commonJS(function(exports) {-1 4413 var require_object_to_string = __commonJS(function(exports, module) { 4875 4414 'use strict';4876 -1 Object.defineProperty(exports, '__esModule', {4877 -1 value: true4878 -1 });4879 -1 var utils_1 = require_utils();4880 -1 function renderEntity(entity) {4881 -1 var res = '';4882 -1 switch (entity.type) {4883 -1 case 'ruleSet':4884 -1 var currentEntity = entity.rule;4885 -1 var parts = [];4886 -1 while (currentEntity) {4887 -1 if (currentEntity.nestingOperator) {4888 -1 parts.push(currentEntity.nestingOperator);4889 -1 }4890 -1 parts.push(renderEntity(currentEntity));4891 -1 currentEntity = currentEntity.rule;4892 -1 }4893 -1 res = parts.join(' ');4894 -1 break;4895 -14896 -1 case 'selectors':4897 -1 res = entity.selectors.map(renderEntity).join(', ');4898 -1 break;4899 -14900 -1 case 'rule':4901 -1 if (entity.tagName) {4902 -1 if (entity.tagName === '*') {4903 -1 res = '*';4904 -1 } else {4905 -1 res = utils_1.escapeIdentifier(entity.tagName);4906 -1 }4907 -1 }4908 -1 if (entity.id) {4909 -1 res += '#' + utils_1.escapeIdentifier(entity.id);4910 -1 }4911 -1 if (entity.classNames) {4912 -1 res += entity.classNames.map(function(cn) {4913 -1 return '.' + utils_1.escapeIdentifier(cn);4914 -1 }).join('');4915 -1 }4916 -1 if (entity.attrs) {4917 -1 res += entity.attrs.map(function(attr) {4918 -1 if ('operator' in attr) {4919 -1 if (attr.valueType === 'substitute') {4920 -1 return '[' + utils_1.escapeIdentifier(attr.name) + attr.operator + '$' + attr.value + ']';4921 -1 } else {4922 -1 return '[' + utils_1.escapeIdentifier(attr.name) + attr.operator + utils_1.escapeStr(attr.value) + ']';4923 -1 }4924 -1 } else {4925 -1 return '[' + utils_1.escapeIdentifier(attr.name) + ']';4926 -1 }4927 -1 }).join('');-1 4415 var TO_STRING_TAG_SUPPORT = require_to_string_tag_support(); -1 4416 var classof = require_classof(); -1 4417 module.exports = TO_STRING_TAG_SUPPORT ? {}.toString : function toString() { -1 4418 return '[object ' + classof(this) + ']'; -1 4419 }; -1 4420 }); -1 4421 var require_set_to_string_tag = __commonJS(function(exports, module) { -1 4422 'use strict'; -1 4423 var TO_STRING_TAG_SUPPORT = require_to_string_tag_support(); -1 4424 var defineProperty = require_object_define_property().f; -1 4425 var createNonEnumerableProperty = require_create_non_enumerable_property(); -1 4426 var hasOwn2 = require_has_own_property(); -1 4427 var toString = require_object_to_string(); -1 4428 var wellKnownSymbol = require_well_known_symbol(); -1 4429 var TO_STRING_TAG = wellKnownSymbol('toStringTag'); -1 4430 module.exports = function(it, TAG, STATIC, SET_METHOD) { -1 4431 var target = STATIC ? it : it && it.prototype; -1 4432 if (target) { -1 4433 if (!hasOwn2(target, TO_STRING_TAG)) { -1 4434 defineProperty(target, TO_STRING_TAG, { -1 4435 configurable: true, -1 4436 value: TAG -1 4437 }); 4928 4438 }4929 -1 if (entity.pseudos) {4930 -1 res += entity.pseudos.map(function(pseudo) {4931 -1 if (pseudo.valueType) {4932 -1 if (pseudo.valueType === 'selector') {4933 -1 return ':' + utils_1.escapeIdentifier(pseudo.name) + '(' + renderEntity(pseudo.value) + ')';4934 -1 } else if (pseudo.valueType === 'substitute') {4935 -1 return ':' + utils_1.escapeIdentifier(pseudo.name) + '($' + pseudo.value + ')';4936 -1 } else if (pseudo.valueType === 'numeric') {4937 -1 return ':' + utils_1.escapeIdentifier(pseudo.name) + '(' + pseudo.value + ')';4938 -1 } else {4939 -1 return ':' + utils_1.escapeIdentifier(pseudo.name) + '(' + utils_1.escapeIdentifier(pseudo.value) + ')';4940 -1 }4941 -1 } else {4942 -1 return ':' + utils_1.escapeIdentifier(pseudo.name);4943 -1 }4944 -1 }).join('');-1 4439 if (SET_METHOD && !TO_STRING_TAG_SUPPORT) { -1 4440 createNonEnumerableProperty(target, 'toString', toString); 4945 4441 }4946 -1 break;4947 -14948 -1 default:4949 -1 throw Error('Unknown entity type: "' + entity.type + '".');4950 4442 }4951 -1 return res;4952 -1 }4953 -1 exports.renderEntity = renderEntity;-1 4443 }; 4954 4444 });4955 -1 var require_lib = __commonJS(function(exports) {-1 4445 var require_iterators = __commonJS(function(exports, module) { 4956 4446 'use strict';4957 -1 Object.defineProperty(exports, '__esModule', {4958 -1 value: true4959 -1 });4960 -1 var parser_context_1 = require_parser_context();4961 -1 var render_1 = require_render();4962 -1 var CssSelectorParser3 = function() {4963 -1 function CssSelectorParser4() {4964 -1 this.pseudos = {};4965 -1 this.attrEqualityMods = {};4966 -1 this.ruleNestingOperators = {};4967 -1 this.substitutesEnabled = false;-1 4447 module.exports = {}; -1 4448 }); -1 4449 var require_iterator_create_constructor = __commonJS(function(exports, module) { -1 4450 'use strict'; -1 4451 var IteratorPrototype = require_iterators_core().IteratorPrototype; -1 4452 var create = require_object_create(); -1 4453 var createPropertyDescriptor = require_create_property_descriptor(); -1 4454 var setToStringTag = require_set_to_string_tag(); -1 4455 var Iterators = require_iterators(); -1 4456 var returnThis = function returnThis() { -1 4457 return this; -1 4458 }; -1 4459 module.exports = function(IteratorConstructor, NAME, next, ENUMERABLE_NEXT) { -1 4460 var TO_STRING_TAG = NAME + ' Iterator'; -1 4461 IteratorConstructor.prototype = create(IteratorPrototype, { -1 4462 next: createPropertyDescriptor(+!ENUMERABLE_NEXT, next) -1 4463 }); -1 4464 setToStringTag(IteratorConstructor, TO_STRING_TAG, false, true); -1 4465 Iterators[TO_STRING_TAG] = returnThis; -1 4466 return IteratorConstructor; -1 4467 }; -1 4468 }); -1 4469 var require_function_uncurry_this_accessor = __commonJS(function(exports, module) { -1 4470 'use strict'; -1 4471 var uncurryThis = require_function_uncurry_this(); -1 4472 var aCallable = require_a_callable(); -1 4473 module.exports = function(object, key, method) { -1 4474 try { -1 4475 return uncurryThis(aCallable(Object.getOwnPropertyDescriptor(object, key)[method])); -1 4476 } catch (error) {} -1 4477 }; -1 4478 }); -1 4479 var require_is_possible_prototype = __commonJS(function(exports, module) { -1 4480 'use strict'; -1 4481 var isObject = require_is_object(); -1 4482 module.exports = function(argument) { -1 4483 return isObject(argument) || argument === null; -1 4484 }; -1 4485 }); -1 4486 var require_a_possible_prototype = __commonJS(function(exports, module) { -1 4487 'use strict'; -1 4488 var isPossiblePrototype = require_is_possible_prototype(); -1 4489 var $String = String; -1 4490 var $TypeError = TypeError; -1 4491 module.exports = function(argument) { -1 4492 if (isPossiblePrototype(argument)) { -1 4493 return argument; 4968 4494 }4969 -1 CssSelectorParser4.prototype.registerSelectorPseudos = function() {4970 -1 var pseudos = [];4971 -1 for (var _i = 0; _i < arguments.length; _i++) {4972 -1 pseudos[_i] = arguments[_i];-1 4495 throw new $TypeError('Can\'t set ' + $String(argument) + ' as a prototype'); -1 4496 }; -1 4497 }); -1 4498 var require_object_set_prototype_of = __commonJS(function(exports, module) { -1 4499 'use strict'; -1 4500 var uncurryThisAccessor = require_function_uncurry_this_accessor(); -1 4501 var isObject = require_is_object(); -1 4502 var requireObjectCoercible = require_require_object_coercible(); -1 4503 var aPossiblePrototype = require_a_possible_prototype(); -1 4504 module.exports = Object.setPrototypeOf || ('__proto__' in {} ? function() { -1 4505 var CORRECT_SETTER = false; -1 4506 var test = {}; -1 4507 var setter; -1 4508 try { -1 4509 setter = uncurryThisAccessor(Object.prototype, '__proto__', 'set'); -1 4510 setter(test, []); -1 4511 CORRECT_SETTER = test instanceof Array; -1 4512 } catch (error) {} -1 4513 return function setPrototypeOf(O, proto) { -1 4514 requireObjectCoercible(O); -1 4515 aPossiblePrototype(proto); -1 4516 if (!isObject(O)) { -1 4517 return O; 4973 4518 }4974 -1 for (var _a = 0, pseudos_1 = pseudos; _a < pseudos_1.length; _a++) {4975 -1 var pseudo = pseudos_1[_a];4976 -1 this.pseudos[pseudo] = 'selector';-1 4519 if (CORRECT_SETTER) { -1 4520 setter(O, proto); -1 4521 } else { -1 4522 O.__proto__ = proto; 4977 4523 }4978 -1 return this;-1 4524 return O; 4979 4525 };4980 -1 CssSelectorParser4.prototype.unregisterSelectorPseudos = function() {4981 -1 var pseudos = [];4982 -1 for (var _i = 0; _i < arguments.length; _i++) {4983 -1 pseudos[_i] = arguments[_i];4984 -1 }4985 -1 for (var _a = 0, pseudos_2 = pseudos; _a < pseudos_2.length; _a++) {4986 -1 var pseudo = pseudos_2[_a];4987 -1 delete this.pseudos[pseudo];-1 4526 }() : void 0); -1 4527 }); -1 4528 var require_iterator_define = __commonJS(function(exports, module) { -1 4529 'use strict'; -1 4530 var $ = require_export(); -1 4531 var call = require_function_call(); -1 4532 var IS_PURE = require_is_pure(); -1 4533 var FunctionName = require_function_name(); -1 4534 var isCallable = require_is_callable(); -1 4535 var createIteratorConstructor = require_iterator_create_constructor(); -1 4536 var getPrototypeOf = require_object_get_prototype_of(); -1 4537 var setPrototypeOf = require_object_set_prototype_of(); -1 4538 var setToStringTag = require_set_to_string_tag(); -1 4539 var createNonEnumerableProperty = require_create_non_enumerable_property(); -1 4540 var defineBuiltIn = require_define_built_in(); -1 4541 var wellKnownSymbol = require_well_known_symbol(); -1 4542 var Iterators = require_iterators(); -1 4543 var IteratorsCore = require_iterators_core(); -1 4544 var PROPER_FUNCTION_NAME = FunctionName.PROPER; -1 4545 var CONFIGURABLE_FUNCTION_NAME = FunctionName.CONFIGURABLE; -1 4546 var IteratorPrototype = IteratorsCore.IteratorPrototype; -1 4547 var BUGGY_SAFARI_ITERATORS = IteratorsCore.BUGGY_SAFARI_ITERATORS; -1 4548 var ITERATOR = wellKnownSymbol('iterator'); -1 4549 var KEYS = 'keys'; -1 4550 var VALUES = 'values'; -1 4551 var ENTRIES = 'entries'; -1 4552 var returnThis = function returnThis() { -1 4553 return this; -1 4554 }; -1 4555 module.exports = function(Iterable, NAME, IteratorConstructor, next, DEFAULT, IS_SET, FORCED) { -1 4556 createIteratorConstructor(IteratorConstructor, NAME, next); -1 4557 var getIterationMethod = function getIterationMethod(KIND) { -1 4558 if (KIND === DEFAULT && defaultIterator) { -1 4559 return defaultIterator; 4988 4560 }4989 -1 return this;4990 -1 };4991 -1 CssSelectorParser4.prototype.registerNumericPseudos = function() {4992 -1 var pseudos = [];4993 -1 for (var _i = 0; _i < arguments.length; _i++) {4994 -1 pseudos[_i] = arguments[_i];-1 4561 if (!BUGGY_SAFARI_ITERATORS && KIND && KIND in IterablePrototype) { -1 4562 return IterablePrototype[KIND]; 4995 4563 }4996 -1 for (var _a = 0, pseudos_3 = pseudos; _a < pseudos_3.length; _a++) {4997 -1 var pseudo = pseudos_3[_a];4998 -1 this.pseudos[pseudo] = 'numeric';-1 4564 switch (KIND) { -1 4565 case KEYS: -1 4566 return function keys() { -1 4567 return new IteratorConstructor(this, KIND); -1 4568 }; -1 4569 -1 4570 case VALUES: -1 4571 return function values2() { -1 4572 return new IteratorConstructor(this, KIND); -1 4573 }; -1 4574 -1 4575 case ENTRIES: -1 4576 return function entries() { -1 4577 return new IteratorConstructor(this, KIND); -1 4578 }; 4999 4579 }5000 -1 return this;-1 4580 return function() { -1 4581 return new IteratorConstructor(this); -1 4582 }; 5001 4583 };5002 -1 CssSelectorParser4.prototype.unregisterNumericPseudos = function() {5003 -1 var pseudos = [];5004 -1 for (var _i = 0; _i < arguments.length; _i++) {5005 -1 pseudos[_i] = arguments[_i];5006 -1 }5007 -1 for (var _a = 0, pseudos_4 = pseudos; _a < pseudos_4.length; _a++) {5008 -1 var pseudo = pseudos_4[_a];5009 -1 delete this.pseudos[pseudo];5010 -1 }5011 -1 return this;5012 -1 };5013 -1 CssSelectorParser4.prototype.registerNestingOperators = function() {5014 -1 var operators = [];5015 -1 for (var _i = 0; _i < arguments.length; _i++) {5016 -1 operators[_i] = arguments[_i];5017 -1 }5018 -1 for (var _a = 0, operators_1 = operators; _a < operators_1.length; _a++) {5019 -1 var operator = operators_1[_a];5020 -1 this.ruleNestingOperators[operator] = true;5021 -1 }5022 -1 return this;5023 -1 };5024 -1 CssSelectorParser4.prototype.unregisterNestingOperators = function() {5025 -1 var operators = [];5026 -1 for (var _i = 0; _i < arguments.length; _i++) {5027 -1 operators[_i] = arguments[_i];5028 -1 }5029 -1 for (var _a = 0, operators_2 = operators; _a < operators_2.length; _a++) {5030 -1 var operator = operators_2[_a];5031 -1 delete this.ruleNestingOperators[operator];5032 -1 }5033 -1 return this;5034 -1 };5035 -1 CssSelectorParser4.prototype.registerAttrEqualityMods = function() {5036 -1 var mods = [];5037 -1 for (var _i = 0; _i < arguments.length; _i++) {5038 -1 mods[_i] = arguments[_i];5039 -1 }5040 -1 for (var _a = 0, mods_1 = mods; _a < mods_1.length; _a++) {5041 -1 var mod = mods_1[_a];5042 -1 this.attrEqualityMods[mod] = true;5043 -1 }5044 -1 return this;5045 -1 };5046 -1 CssSelectorParser4.prototype.unregisterAttrEqualityMods = function() {5047 -1 var mods = [];5048 -1 for (var _i = 0; _i < arguments.length; _i++) {5049 -1 mods[_i] = arguments[_i];5050 -1 }5051 -1 for (var _a = 0, mods_2 = mods; _a < mods_2.length; _a++) {5052 -1 var mod = mods_2[_a];5053 -1 delete this.attrEqualityMods[mod];-1 4584 var TO_STRING_TAG = NAME + ' Iterator'; -1 4585 var INCORRECT_VALUES_NAME = false; -1 4586 var IterablePrototype = Iterable.prototype; -1 4587 var nativeIterator = IterablePrototype[ITERATOR] || IterablePrototype['@@iterator'] || DEFAULT && IterablePrototype[DEFAULT]; -1 4588 var defaultIterator = !BUGGY_SAFARI_ITERATORS && nativeIterator || getIterationMethod(DEFAULT); -1 4589 var anyNativeIterator = NAME === 'Array' ? IterablePrototype.entries || nativeIterator : nativeIterator; -1 4590 var CurrentIteratorPrototype, methods, KEY; -1 4591 if (anyNativeIterator) { -1 4592 CurrentIteratorPrototype = getPrototypeOf(anyNativeIterator.call(new Iterable())); -1 4593 if (CurrentIteratorPrototype !== Object.prototype && CurrentIteratorPrototype.next) { -1 4594 if (!IS_PURE && getPrototypeOf(CurrentIteratorPrototype) !== IteratorPrototype) { -1 4595 if (setPrototypeOf) { -1 4596 setPrototypeOf(CurrentIteratorPrototype, IteratorPrototype); -1 4597 } else if (!isCallable(CurrentIteratorPrototype[ITERATOR])) { -1 4598 defineBuiltIn(CurrentIteratorPrototype, ITERATOR, returnThis); -1 4599 } -1 4600 } -1 4601 setToStringTag(CurrentIteratorPrototype, TO_STRING_TAG, true, true); -1 4602 if (IS_PURE) { -1 4603 Iterators[TO_STRING_TAG] = returnThis; -1 4604 } 5054 4605 }5055 -1 return this;5056 -1 };5057 -1 CssSelectorParser4.prototype.enableSubstitutes = function() {5058 -1 this.substitutesEnabled = true;5059 -1 return this;5060 -1 };5061 -1 CssSelectorParser4.prototype.disableSubstitutes = function() {5062 -1 this.substitutesEnabled = false;5063 -1 return this;5064 -1 };5065 -1 CssSelectorParser4.prototype.parse = function(str) {5066 -1 return parser_context_1.parseCssSelector(str, 0, this.pseudos, this.attrEqualityMods, this.ruleNestingOperators, this.substitutesEnabled);5067 -1 };5068 -1 CssSelectorParser4.prototype.render = function(path) {5069 -1 return render_1.renderEntity(path).trim();5070 -1 };5071 -1 return CssSelectorParser4;5072 -1 }();5073 -1 exports.CssSelectorParser = CssSelectorParser3;5074 -1 });5075 -1 var require_es6_promise = __commonJS(function(exports, module) {5076 -1 (function(global2, factory) {5077 -1 _typeof(exports) === 'object' && typeof module !== 'undefined' ? module.exports = factory() : typeof define === 'function' && define.amd ? define(factory) : global2.ES6Promise = factory();5078 -1 })(exports, function() {5079 -1 'use strict';5080 -1 function objectOrFunction(x) {5081 -1 var type2 = _typeof(x);5082 -1 return x !== null && (type2 === 'object' || type2 === 'function');5083 4606 }5084 -1 function isFunction(x) {5085 -1 return typeof x === 'function';-1 4607 if (PROPER_FUNCTION_NAME && DEFAULT === VALUES && nativeIterator && nativeIterator.name !== VALUES) { -1 4608 if (!IS_PURE && CONFIGURABLE_FUNCTION_NAME) { -1 4609 createNonEnumerableProperty(IterablePrototype, 'name', VALUES); -1 4610 } else { -1 4611 INCORRECT_VALUES_NAME = true; -1 4612 defaultIterator = function values2() { -1 4613 return call(nativeIterator, this); -1 4614 }; -1 4615 } 5086 4616 }5087 -1 var _isArray = void 0;5088 -1 if (Array.isArray) {5089 -1 _isArray = Array.isArray;5090 -1 } else {5091 -1 _isArray = function _isArray(x) {5092 -1 return Object.prototype.toString.call(x) === '[object Array]';-1 4617 if (DEFAULT) { -1 4618 methods = { -1 4619 values: getIterationMethod(VALUES), -1 4620 keys: IS_SET ? defaultIterator : getIterationMethod(KEYS), -1 4621 entries: getIterationMethod(ENTRIES) 5093 4622 };5094 -1 }5095 -1 var isArray = _isArray;5096 -1 var len = 0;5097 -1 var vertxNext = void 0;5098 -1 var customSchedulerFn = void 0;5099 -1 var asap = function asap2(callback, arg) {5100 -1 queue2[len] = callback;5101 -1 queue2[len + 1] = arg;5102 -1 len += 2;5103 -1 if (len === 2) {5104 -1 if (customSchedulerFn) {5105 -1 customSchedulerFn(flush);5106 -1 } else {5107 -1 scheduleFlush();-1 4623 if (FORCED) { -1 4624 for (KEY in methods) { -1 4625 if (BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME || !(KEY in IterablePrototype)) { -1 4626 defineBuiltIn(IterablePrototype, KEY, methods[KEY]); -1 4627 } 5108 4628 } -1 4629 } else { -1 4630 $({ -1 4631 target: NAME, -1 4632 proto: true, -1 4633 forced: BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME -1 4634 }, methods); 5109 4635 }5110 -1 };5111 -1 function setScheduler(scheduleFn) {5112 -1 customSchedulerFn = scheduleFn;5113 4636 }5114 -1 function setAsap(asapFn) {5115 -1 asap = asapFn;-1 4637 if ((!IS_PURE || FORCED) && IterablePrototype[ITERATOR] !== defaultIterator) { -1 4638 defineBuiltIn(IterablePrototype, ITERATOR, defaultIterator, { -1 4639 name: DEFAULT -1 4640 }); 5116 4641 }5117 -1 var browserWindow = typeof window !== 'undefined' ? window : void 0;5118 -1 var browserGlobal = browserWindow || {};5119 -1 var BrowserMutationObserver = browserGlobal.MutationObserver || browserGlobal.WebKitMutationObserver;5120 -1 var isNode2 = typeof self === 'undefined' && typeof process !== 'undefined' && {}.toString.call(process) === '[object process]';5121 -1 var isWorker = typeof Uint8ClampedArray !== 'undefined' && typeof importScripts !== 'undefined' && typeof MessageChannel !== 'undefined';5122 -1 function useNextTick() {5123 -1 return function() {5124 -1 return process.nextTick(flush);5125 -1 };-1 4642 Iterators[NAME] = defaultIterator; -1 4643 return methods; -1 4644 }; -1 4645 }); -1 4646 var require_create_iter_result_object = __commonJS(function(exports, module) { -1 4647 'use strict'; -1 4648 module.exports = function(value, done) { -1 4649 return { -1 4650 value: value, -1 4651 done: done -1 4652 }; -1 4653 }; -1 4654 }); -1 4655 var require_es_string_iterator = __commonJS(function() { -1 4656 'use strict'; -1 4657 var charAt = require_string_multibyte().charAt; -1 4658 var toString = require_to_string(); -1 4659 var InternalStateModule = require_internal_state(); -1 4660 var defineIterator = require_iterator_define(); -1 4661 var createIterResultObject = require_create_iter_result_object(); -1 4662 var STRING_ITERATOR = 'String Iterator'; -1 4663 var setInternalState = InternalStateModule.set; -1 4664 var getInternalState = InternalStateModule.getterFor(STRING_ITERATOR); -1 4665 defineIterator(String, 'String', function(iterated) { -1 4666 setInternalState(this, { -1 4667 type: STRING_ITERATOR, -1 4668 string: toString(iterated), -1 4669 index: 0 -1 4670 }); -1 4671 }, function next() { -1 4672 var state = getInternalState(this); -1 4673 var string = state.string; -1 4674 var index = state.index; -1 4675 var point; -1 4676 if (index >= string.length) { -1 4677 return createIterResultObject(void 0, true); 5126 4678 }5127 -1 function useVertxTimer() {5128 -1 if (typeof vertxNext !== 'undefined') {5129 -1 return function() {5130 -1 vertxNext(flush);5131 -1 };-1 4679 point = charAt(string, index); -1 4680 state.index += point.length; -1 4681 return createIterResultObject(point, false); -1 4682 }); -1 4683 }); -1 4684 var require_iterator_close = __commonJS(function(exports, module) { -1 4685 'use strict'; -1 4686 var call = require_function_call(); -1 4687 var anObject = require_an_object(); -1 4688 var getMethod = require_get_method(); -1 4689 module.exports = function(iterator, kind, value) { -1 4690 var innerResult, innerError; -1 4691 anObject(iterator); -1 4692 try { -1 4693 innerResult = getMethod(iterator, 'return'); -1 4694 if (!innerResult) { -1 4695 if (kind === 'throw') { -1 4696 throw value; -1 4697 } -1 4698 return value; 5132 4699 }5133 -1 return useSetTimeout();-1 4700 innerResult = call(innerResult, iterator); -1 4701 } catch (error) { -1 4702 innerError = true; -1 4703 innerResult = error; 5134 4704 }5135 -1 function useMutationObserver() {5136 -1 var iterations = 0;5137 -1 var observer = new BrowserMutationObserver(flush);5138 -1 var node = document.createTextNode('');5139 -1 observer.observe(node, {5140 -1 characterData: true5141 -1 });5142 -1 return function() {5143 -1 node.data = iterations = ++iterations % 2;5144 -1 };-1 4705 if (kind === 'throw') { -1 4706 throw value; 5145 4707 }5146 -1 function useMessageChannel() {5147 -1 var channel = new MessageChannel();5148 -1 channel.port1.onmessage = flush;5149 -1 return function() {5150 -1 return channel.port2.postMessage(0);5151 -1 };-1 4708 if (innerError) { -1 4709 throw innerResult; 5152 4710 }5153 -1 function useSetTimeout() {5154 -1 var globalSetTimeout = setTimeout;5155 -1 return function() {5156 -1 return globalSetTimeout(flush, 1);5157 -1 };-1 4711 anObject(innerResult); -1 4712 return value; -1 4713 }; -1 4714 }); -1 4715 var require_call_with_safe_iteration_closing = __commonJS(function(exports, module) { -1 4716 'use strict'; -1 4717 var anObject = require_an_object(); -1 4718 var iteratorClose = require_iterator_close(); -1 4719 module.exports = function(iterator, fn, value, ENTRIES) { -1 4720 try { -1 4721 return ENTRIES ? fn(anObject(value)[0], value[1]) : fn(value); -1 4722 } catch (error) { -1 4723 iteratorClose(iterator, 'throw', error); 5158 4724 }5159 -1 var queue2 = new Array(1e3);5160 -1 function flush() {5161 -1 for (var i = 0; i < len; i += 2) {5162 -1 var callback = queue2[i];5163 -1 var arg = queue2[i + 1];5164 -1 callback(arg);5165 -1 queue2[i] = void 0;5166 -1 queue2[i + 1] = void 0;5167 -1 }5168 -1 len = 0;-1 4725 }; -1 4726 }); -1 4727 var require_is_array_iterator_method = __commonJS(function(exports, module) { -1 4728 'use strict'; -1 4729 var wellKnownSymbol = require_well_known_symbol(); -1 4730 var Iterators = require_iterators(); -1 4731 var ITERATOR = wellKnownSymbol('iterator'); -1 4732 var ArrayPrototype = Array.prototype; -1 4733 module.exports = function(it) { -1 4734 return it !== void 0 && (Iterators.Array === it || ArrayPrototype[ITERATOR] === it); -1 4735 }; -1 4736 }); -1 4737 var require_inspect_source = __commonJS(function(exports, module) { -1 4738 'use strict'; -1 4739 var uncurryThis = require_function_uncurry_this(); -1 4740 var isCallable = require_is_callable(); -1 4741 var store = require_shared_store(); -1 4742 var functionToString = uncurryThis(Function.toString); -1 4743 if (!isCallable(store.inspectSource)) { -1 4744 store.inspectSource = function(it) { -1 4745 return functionToString(it); -1 4746 }; -1 4747 } -1 4748 module.exports = store.inspectSource; -1 4749 }); -1 4750 var require_is_constructor = __commonJS(function(exports, module) { -1 4751 'use strict'; -1 4752 var uncurryThis = require_function_uncurry_this(); -1 4753 var fails = require_fails(); -1 4754 var isCallable = require_is_callable(); -1 4755 var classof = require_classof(); -1 4756 var getBuiltIn = require_get_built_in(); -1 4757 var inspectSource = require_inspect_source(); -1 4758 var noop3 = function noop3() {}; -1 4759 var construct = getBuiltIn('Reflect', 'construct'); -1 4760 var constructorRegExp = /^\s*(?:class|function)\b/; -1 4761 var exec = uncurryThis(constructorRegExp.exec); -1 4762 var INCORRECT_TO_STRING = !constructorRegExp.test(noop3); -1 4763 var isConstructorModern = function isConstructor(argument) { -1 4764 if (!isCallable(argument)) { -1 4765 return false; 5169 4766 }5170 -1 function attemptVertx() {5171 -1 try {5172 -1 var vertx = Function('return this')().require('vertx');5173 -1 vertxNext = vertx.runOnLoop || vertx.runOnContext;5174 -1 return useVertxTimer();5175 -1 } catch (e) {5176 -1 return useSetTimeout();5177 -1 }-1 4767 try { -1 4768 construct(noop3, [], argument); -1 4769 return true; -1 4770 } catch (error) { -1 4771 return false; 5178 4772 }5179 -1 var scheduleFlush = void 0;5180 -1 if (isNode2) {5181 -1 scheduleFlush = useNextTick();5182 -1 } else if (BrowserMutationObserver) {5183 -1 scheduleFlush = useMutationObserver();5184 -1 } else if (isWorker) {5185 -1 scheduleFlush = useMessageChannel();5186 -1 } else if (browserWindow === void 0 && true) {5187 -1 scheduleFlush = attemptVertx();5188 -1 } else {5189 -1 scheduleFlush = useSetTimeout();-1 4773 }; -1 4774 var isConstructorLegacy = function isConstructor(argument) { -1 4775 if (!isCallable(argument)) { -1 4776 return false; 5190 4777 }5191 -1 function then(onFulfillment, onRejection) {5192 -1 var parent = this;5193 -1 var child = new this.constructor(noop3);5194 -1 if (child[PROMISE_ID] === void 0) {5195 -1 makePromise(child);5196 -1 }5197 -1 var _state = parent._state;5198 -1 if (_state) {5199 -1 var callback = arguments[_state - 1];5200 -1 asap(function() {5201 -1 return invokeCallback(_state, child, callback, parent._result);5202 -1 });5203 -1 } else {5204 -1 subscribe2(parent, child, onFulfillment, onRejection);5205 -1 }5206 -1 return child;-1 4778 switch (classof(argument)) { -1 4779 case 'AsyncFunction': -1 4780 case 'GeneratorFunction': -1 4781 case 'AsyncGeneratorFunction': -1 4782 return false; 5207 4783 }5208 -1 function resolve$1(object) {5209 -1 var Constructor = this;5210 -1 if (object && _typeof(object) === 'object' && object.constructor === Constructor) {5211 -1 return object;5212 -1 }5213 -1 var promise = new Constructor(noop3);5214 -1 resolve(promise, object);5215 -1 return promise;-1 4784 try { -1 4785 return INCORRECT_TO_STRING || !!exec(constructorRegExp, inspectSource(argument)); -1 4786 } catch (error) { -1 4787 return true; 5216 4788 }5217 -1 var PROMISE_ID = Math.random().toString(36).substring(2);5218 -1 function noop3() {}5219 -1 var PENDING = void 0;5220 -1 var FULFILLED = 1;5221 -1 var REJECTED = 2;5222 -1 function selfFulfillment() {5223 -1 return new TypeError('You cannot resolve a promise with itself');-1 4789 }; -1 4790 isConstructorLegacy.sham = true; -1 4791 module.exports = !construct || fails(function() { -1 4792 var called; -1 4793 return isConstructorModern(isConstructorModern.call) || !isConstructorModern(Object) || !isConstructorModern(function() { -1 4794 called = true; -1 4795 }) || called; -1 4796 }) ? isConstructorLegacy : isConstructorModern; -1 4797 }); -1 4798 var require_create_property = __commonJS(function(exports, module) { -1 4799 'use strict'; -1 4800 var DESCRIPTORS = require_descriptors(); -1 4801 var definePropertyModule = require_object_define_property(); -1 4802 var createPropertyDescriptor = require_create_property_descriptor(); -1 4803 module.exports = function(object, key, value) { -1 4804 if (DESCRIPTORS) { -1 4805 definePropertyModule.f(object, key, createPropertyDescriptor(0, value)); -1 4806 } else { -1 4807 object[key] = value; 5224 4808 }5225 -1 function cannotReturnOwn() {5226 -1 return new TypeError('A promises callback cannot return that same promise.');-1 4809 }; -1 4810 }); -1 4811 var require_get_iterator_method = __commonJS(function(exports, module) { -1 4812 'use strict'; -1 4813 var classof = require_classof(); -1 4814 var getMethod = require_get_method(); -1 4815 var isNullOrUndefined = require_is_null_or_undefined(); -1 4816 var Iterators = require_iterators(); -1 4817 var wellKnownSymbol = require_well_known_symbol(); -1 4818 var ITERATOR = wellKnownSymbol('iterator'); -1 4819 module.exports = function(it) { -1 4820 if (!isNullOrUndefined(it)) { -1 4821 return getMethod(it, ITERATOR) || getMethod(it, '@@iterator') || Iterators[classof(it)]; 5227 4822 }5228 -1 function tryThen(then$$1, value, fulfillmentHandler, rejectionHandler) {5229 -1 try {5230 -1 then$$1.call(value, fulfillmentHandler, rejectionHandler);5231 -1 } catch (e) {5232 -1 return e;5233 -1 }-1 4823 }; -1 4824 }); -1 4825 var require_get_iterator = __commonJS(function(exports, module) { -1 4826 'use strict'; -1 4827 var call = require_function_call(); -1 4828 var aCallable = require_a_callable(); -1 4829 var anObject = require_an_object(); -1 4830 var tryToString = require_try_to_string(); -1 4831 var getIteratorMethod = require_get_iterator_method(); -1 4832 var $TypeError = TypeError; -1 4833 module.exports = function(argument, usingIterator) { -1 4834 var iteratorMethod = arguments.length < 2 ? getIteratorMethod(argument) : usingIterator; -1 4835 if (aCallable(iteratorMethod)) { -1 4836 return anObject(call(iteratorMethod, argument)); 5234 4837 }5235 -1 function handleForeignThenable(promise, thenable, then$$1) {5236 -1 asap(function(promise2) {5237 -1 var sealed = false;5238 -1 var error = tryThen(then$$1, thenable, function(value) {5239 -1 if (sealed) {5240 -1 return;5241 -1 }5242 -1 sealed = true;5243 -1 if (thenable !== value) {5244 -1 resolve(promise2, value);5245 -1 } else {5246 -1 fulfill(promise2, value);5247 -1 }5248 -1 }, function(reason) {5249 -1 if (sealed) {5250 -1 return;5251 -1 }5252 -1 sealed = true;5253 -1 reject(promise2, reason);5254 -1 }, 'Settle: ' + (promise2._label || ' unknown promise'));5255 -1 if (!sealed && error) {5256 -1 sealed = true;5257 -1 reject(promise2, error);5258 -1 }5259 -1 }, promise);-1 4838 throw new $TypeError(tryToString(argument) + ' is not iterable'); -1 4839 }; -1 4840 }); -1 4841 var require_array_from = __commonJS(function(exports, module) { -1 4842 'use strict'; -1 4843 var bind = require_function_bind_context(); -1 4844 var call = require_function_call(); -1 4845 var toObject = require_to_object(); -1 4846 var callWithSafeIterationClosing = require_call_with_safe_iteration_closing(); -1 4847 var isArrayIteratorMethod = require_is_array_iterator_method(); -1 4848 var isConstructor = require_is_constructor(); -1 4849 var lengthOfArrayLike = require_length_of_array_like(); -1 4850 var createProperty = require_create_property(); -1 4851 var getIterator = require_get_iterator(); -1 4852 var getIteratorMethod = require_get_iterator_method(); -1 4853 var $Array = Array; -1 4854 module.exports = function from(arrayLike) { -1 4855 var O = toObject(arrayLike); -1 4856 var IS_CONSTRUCTOR = isConstructor(this); -1 4857 var argumentsLength = arguments.length; -1 4858 var mapfn = argumentsLength > 1 ? arguments[1] : void 0; -1 4859 var mapping = mapfn !== void 0; -1 4860 if (mapping) { -1 4861 mapfn = bind(mapfn, argumentsLength > 2 ? arguments[2] : void 0); 5260 4862 }5261 -1 function handleOwnThenable(promise, thenable) {5262 -1 if (thenable._state === FULFILLED) {5263 -1 fulfill(promise, thenable._result);5264 -1 } else if (thenable._state === REJECTED) {5265 -1 reject(promise, thenable._result);5266 -1 } else {5267 -1 subscribe2(thenable, void 0, function(value) {5268 -1 return resolve(promise, value);5269 -1 }, function(reason) {5270 -1 return reject(promise, reason);5271 -1 });-1 4863 var iteratorMethod = getIteratorMethod(O); -1 4864 var index = 0; -1 4865 var length, result, step, iterator, next, value; -1 4866 if (iteratorMethod && !(this === $Array && isArrayIteratorMethod(iteratorMethod))) { -1 4867 result = IS_CONSTRUCTOR ? new this() : []; -1 4868 iterator = getIterator(O, iteratorMethod); -1 4869 next = iterator.next; -1 4870 for (;!(step = call(next, iterator)).done; index++) { -1 4871 value = mapping ? callWithSafeIterationClosing(iterator, mapfn, [ step.value, index ], true) : step.value; -1 4872 createProperty(result, index, value); -1 4873 } -1 4874 } else { -1 4875 length = lengthOfArrayLike(O); -1 4876 result = IS_CONSTRUCTOR ? new this(length) : $Array(length); -1 4877 for (;length > index; index++) { -1 4878 value = mapping ? mapfn(O[index], index) : O[index]; -1 4879 createProperty(result, index, value); 5272 4880 } 5273 4881 }5274 -1 function handleMaybeThenable(promise, maybeThenable, then$$1) {5275 -1 if (maybeThenable.constructor === promise.constructor && then$$1 === then && maybeThenable.constructor.resolve === resolve$1) {5276 -1 handleOwnThenable(promise, maybeThenable);5277 -1 } else {5278 -1 if (then$$1 === void 0) {5279 -1 fulfill(promise, maybeThenable);5280 -1 } else if (isFunction(then$$1)) {5281 -1 handleForeignThenable(promise, maybeThenable, then$$1);5282 -1 } else {5283 -1 fulfill(promise, maybeThenable);5284 -1 }-1 4882 result.length = index; -1 4883 return result; -1 4884 }; -1 4885 }); -1 4886 var require_check_correctness_of_iteration = __commonJS(function(exports, module) { -1 4887 'use strict'; -1 4888 var wellKnownSymbol = require_well_known_symbol(); -1 4889 var ITERATOR = wellKnownSymbol('iterator'); -1 4890 var SAFE_CLOSING = false; -1 4891 try { -1 4892 called = 0; -1 4893 iteratorWithReturn = { -1 4894 next: function next() { -1 4895 return { -1 4896 done: !!called++ -1 4897 }; -1 4898 }, -1 4899 return: function _return() { -1 4900 SAFE_CLOSING = true; -1 4901 } -1 4902 }; -1 4903 iteratorWithReturn[ITERATOR] = function() { -1 4904 return this; -1 4905 }; -1 4906 Array.from(iteratorWithReturn, function() { -1 4907 throw 2; -1 4908 }); -1 4909 } catch (error) {} -1 4910 var called; -1 4911 var iteratorWithReturn; -1 4912 module.exports = function(exec, SKIP_CLOSING) { -1 4913 try { -1 4914 if (!SKIP_CLOSING && !SAFE_CLOSING) { -1 4915 return false; 5285 4916 } -1 4917 } catch (error) { -1 4918 return false; 5286 4919 }5287 -1 function resolve(promise, value) {5288 -1 if (promise === value) {5289 -1 reject(promise, selfFulfillment());5290 -1 } else if (objectOrFunction(value)) {5291 -1 var then$$1 = void 0;5292 -1 try {5293 -1 then$$1 = value.then;5294 -1 } catch (error) {5295 -1 reject(promise, error);5296 -1 return;5297 -1 }5298 -1 handleMaybeThenable(promise, value, then$$1);-1 4920 var ITERATION_SUPPORT = false; -1 4921 try { -1 4922 var object = {}; -1 4923 object[ITERATOR] = function() { -1 4924 return { -1 4925 next: function next() { -1 4926 return { -1 4927 done: ITERATION_SUPPORT = true -1 4928 }; -1 4929 } -1 4930 }; -1 4931 }; -1 4932 exec(object); -1 4933 } catch (error) {} -1 4934 return ITERATION_SUPPORT; -1 4935 }; -1 4936 }); -1 4937 var require_es_array_from = __commonJS(function() { -1 4938 'use strict'; -1 4939 var $ = require_export(); -1 4940 var from = require_array_from(); -1 4941 var checkCorrectnessOfIteration = require_check_correctness_of_iteration(); -1 4942 var INCORRECT_ITERATION = !checkCorrectnessOfIteration(function(iterable) { -1 4943 Array.from(iterable); -1 4944 }); -1 4945 $({ -1 4946 target: 'Array', -1 4947 stat: true, -1 4948 forced: INCORRECT_ITERATION -1 4949 }, { -1 4950 from: from -1 4951 }); -1 4952 }); -1 4953 var require_from = __commonJS(function(exports, module) { -1 4954 'use strict'; -1 4955 require_es_string_iterator(); -1 4956 require_es_array_from(); -1 4957 var path = require_path(); -1 4958 module.exports = path.Array.from; -1 4959 }); -1 4960 var require_from2 = __commonJS(function(exports, module) { -1 4961 'use strict'; -1 4962 var parent = require_from(); -1 4963 module.exports = parent; -1 4964 }); -1 4965 var require_from3 = __commonJS(function(exports, module) { -1 4966 'use strict'; -1 4967 var parent = require_from2(); -1 4968 module.exports = parent; -1 4969 }); -1 4970 var require_utils = __commonJS(function(exports) { -1 4971 'use strict'; -1 4972 Object.defineProperty(exports, '__esModule', { -1 4973 value: true -1 4974 }); -1 4975 function isIdentStart(c4) { -1 4976 return c4 >= 'a' && c4 <= 'z' || c4 >= 'A' && c4 <= 'Z' || c4 === '-' || c4 === '_'; -1 4977 } -1 4978 exports.isIdentStart = isIdentStart; -1 4979 function isIdent(c4) { -1 4980 return c4 >= 'a' && c4 <= 'z' || c4 >= 'A' && c4 <= 'Z' || c4 >= '0' && c4 <= '9' || c4 === '-' || c4 === '_'; -1 4981 } -1 4982 exports.isIdent = isIdent; -1 4983 function isHex(c4) { -1 4984 return c4 >= 'a' && c4 <= 'f' || c4 >= 'A' && c4 <= 'F' || c4 >= '0' && c4 <= '9'; -1 4985 } -1 4986 exports.isHex = isHex; -1 4987 function escapeIdentifier(s) { -1 4988 var len = s.length; -1 4989 var result = ''; -1 4990 var i = 0; -1 4991 while (i < len) { -1 4992 var chr = s.charAt(i); -1 4993 if (exports.identSpecialChars[chr]) { -1 4994 result += '\\' + chr; 5299 4995 } else {5300 -1 fulfill(promise, value);-1 4996 if (!(chr === '_' || chr === '-' || chr >= 'A' && chr <= 'Z' || chr >= 'a' && chr <= 'z' || i !== 0 && chr >= '0' && chr <= '9')) { -1 4997 var charCode = chr.charCodeAt(0); -1 4998 if ((charCode & 63488) === 55296) { -1 4999 var extraCharCode = s.charCodeAt(i++); -1 5000 if ((charCode & 64512) !== 55296 || (extraCharCode & 64512) !== 56320) { -1 5001 throw Error('UCS-2(decode): illegal sequence'); -1 5002 } -1 5003 charCode = ((charCode & 1023) << 10) + (extraCharCode & 1023) + 65536; -1 5004 } -1 5005 result += '\\' + charCode.toString(16) + ' '; -1 5006 } else { -1 5007 result += chr; -1 5008 } 5301 5009 } -1 5010 i++; 5302 5011 }5303 -1 function publishRejection(promise) {5304 -1 if (promise._onerror) {5305 -1 promise._onerror(promise._result);-1 5012 return result; -1 5013 } -1 5014 exports.escapeIdentifier = escapeIdentifier; -1 5015 function escapeStr(s) { -1 5016 var len = s.length; -1 5017 var result = ''; -1 5018 var i = 0; -1 5019 var replacement; -1 5020 while (i < len) { -1 5021 var chr = s.charAt(i); -1 5022 if (chr === '"') { -1 5023 chr = '\\"'; -1 5024 } else if (chr === '\\') { -1 5025 chr = '\\\\'; -1 5026 } else if ((replacement = exports.strReplacementsRev[chr]) !== void 0) { -1 5027 chr = replacement; 5306 5028 }5307 -1 publish(promise);-1 5029 result += chr; -1 5030 i++; 5308 5031 }5309 -1 function fulfill(promise, value) {5310 -1 if (promise._state !== PENDING) {5311 -1 return;5312 -1 }5313 -1 promise._result = value;5314 -1 promise._state = FULFILLED;5315 -1 if (promise._subscribers.length !== 0) {5316 -1 asap(publish, promise);-1 5032 return '"' + result + '"'; -1 5033 } -1 5034 exports.escapeStr = escapeStr; -1 5035 exports.identSpecialChars = { -1 5036 '!': true, -1 5037 '"': true, -1 5038 '#': true, -1 5039 $: true, -1 5040 '%': true, -1 5041 '&': true, -1 5042 '\'': true, -1 5043 '(': true, -1 5044 ')': true, -1 5045 '*': true, -1 5046 '+': true, -1 5047 ',': true, -1 5048 '.': true, -1 5049 '/': true, -1 5050 ';': true, -1 5051 '<': true, -1 5052 '=': true, -1 5053 '>': true, -1 5054 '?': true, -1 5055 '@': true, -1 5056 '[': true, -1 5057 '\\': true, -1 5058 ']': true, -1 5059 '^': true, -1 5060 '`': true, -1 5061 '{': true, -1 5062 '|': true, -1 5063 '}': true, -1 5064 '~': true -1 5065 }; -1 5066 exports.strReplacementsRev = { -1 5067 '\n': '\\n', -1 5068 '\r': '\\r', -1 5069 '\t': '\\t', -1 5070 '\f': '\\f', -1 5071 '\v': '\\v' -1 5072 }; -1 5073 exports.singleQuoteEscapeChars = { -1 5074 n: '\n', -1 5075 r: '\r', -1 5076 t: '\t', -1 5077 f: '\f', -1 5078 '\\': '\\', -1 5079 '\'': '\'' -1 5080 }; -1 5081 exports.doubleQuotesEscapeChars = { -1 5082 n: '\n', -1 5083 r: '\r', -1 5084 t: '\t', -1 5085 f: '\f', -1 5086 '\\': '\\', -1 5087 '"': '"' -1 5088 }; -1 5089 }); -1 5090 var require_parser_context = __commonJS(function(exports) { -1 5091 'use strict'; -1 5092 Object.defineProperty(exports, '__esModule', { -1 5093 value: true -1 5094 }); -1 5095 var utils_1 = require_utils(); -1 5096 function parseCssSelector(str, pos, pseudos, attrEqualityMods, ruleNestingOperators, substitutesEnabled) { -1 5097 var l = str.length; -1 5098 var chr = ''; -1 5099 function getStr(quote, escapeTable) { -1 5100 var result = ''; -1 5101 pos++; -1 5102 chr = str.charAt(pos); -1 5103 while (pos < l) { -1 5104 if (chr === quote) { -1 5105 pos++; -1 5106 return result; -1 5107 } else if (chr === '\\') { -1 5108 pos++; -1 5109 chr = str.charAt(pos); -1 5110 var esc = void 0; -1 5111 if (chr === quote) { -1 5112 result += quote; -1 5113 } else if ((esc = escapeTable[chr]) !== void 0) { -1 5114 result += esc; -1 5115 } else if (utils_1.isHex(chr)) { -1 5116 var hex = chr; -1 5117 pos++; -1 5118 chr = str.charAt(pos); -1 5119 while (utils_1.isHex(chr)) { -1 5120 hex += chr; -1 5121 pos++; -1 5122 chr = str.charAt(pos); -1 5123 } -1 5124 if (chr === ' ') { -1 5125 pos++; -1 5126 chr = str.charAt(pos); -1 5127 } -1 5128 result += String.fromCharCode(parseInt(hex, 16)); -1 5129 continue; -1 5130 } else { -1 5131 result += chr; -1 5132 } -1 5133 } else { -1 5134 result += chr; -1 5135 } -1 5136 pos++; -1 5137 chr = str.charAt(pos); 5317 5138 } -1 5139 return result; 5318 5140 }5319 -1 function reject(promise, reason) {5320 -1 if (promise._state !== PENDING) {5321 -1 return;-1 5141 function getIdent() { -1 5142 var result = ''; -1 5143 chr = str.charAt(pos); -1 5144 while (pos < l) { -1 5145 if (utils_1.isIdent(chr)) { -1 5146 result += chr; -1 5147 } else if (chr === '\\') { -1 5148 pos++; -1 5149 if (pos >= l) { -1 5150 throw Error('Expected symbol but end of file reached.'); -1 5151 } -1 5152 chr = str.charAt(pos); -1 5153 if (utils_1.identSpecialChars[chr]) { -1 5154 result += chr; -1 5155 } else if (utils_1.isHex(chr)) { -1 5156 var hex = chr; -1 5157 pos++; -1 5158 chr = str.charAt(pos); -1 5159 while (utils_1.isHex(chr)) { -1 5160 hex += chr; -1 5161 pos++; -1 5162 chr = str.charAt(pos); -1 5163 } -1 5164 if (chr === ' ') { -1 5165 pos++; -1 5166 chr = str.charAt(pos); -1 5167 } -1 5168 result += String.fromCharCode(parseInt(hex, 16)); -1 5169 continue; -1 5170 } else { -1 5171 result += chr; -1 5172 } -1 5173 } else { -1 5174 return result; -1 5175 } -1 5176 pos++; -1 5177 chr = str.charAt(pos); 5322 5178 }5323 -1 promise._state = REJECTED;5324 -1 promise._result = reason;5325 -1 asap(publishRejection, promise);-1 5179 return result; 5326 5180 }5327 -1 function subscribe2(parent, child, onFulfillment, onRejection) {5328 -1 var _subscribers = parent._subscribers;5329 -1 var length = _subscribers.length;5330 -1 parent._onerror = null;5331 -1 _subscribers[length] = child;5332 -1 _subscribers[length + FULFILLED] = onFulfillment;5333 -1 _subscribers[length + REJECTED] = onRejection;5334 -1 if (length === 0 && parent._state) {5335 -1 asap(publish, parent);-1 5181 function skipWhitespace() { -1 5182 chr = str.charAt(pos); -1 5183 var result = false; -1 5184 while (chr === ' ' || chr === '\t' || chr === '\n' || chr === '\r' || chr === '\f') { -1 5185 result = true; -1 5186 pos++; -1 5187 chr = str.charAt(pos); 5336 5188 } -1 5189 return result; 5337 5190 }5338 -1 function publish(promise) {5339 -1 var subscribers = promise._subscribers;5340 -1 var settled = promise._state;5341 -1 if (subscribers.length === 0) {5342 -1 return;5343 -1 }5344 -1 var child = void 0, callback = void 0, detail = promise._result;5345 -1 for (var i = 0; i < subscribers.length; i += 3) {5346 -1 child = subscribers[i];5347 -1 callback = subscribers[i + settled];5348 -1 if (child) {5349 -1 invokeCallback(settled, child, callback, detail);5350 -1 } else {5351 -1 callback(detail);5352 -1 }-1 5191 function parse3() { -1 5192 var res = parseSelector(); -1 5193 if (pos < l) { -1 5194 throw Error('Rule expected but "' + str.charAt(pos) + '" found.'); 5353 5195 }5354 -1 promise._subscribers.length = 0;-1 5196 return res; 5355 5197 }5356 -1 function invokeCallback(settled, promise, callback, detail) {5357 -1 var hasCallback = isFunction(callback), value = void 0, error = void 0, succeeded = true;5358 -1 if (hasCallback) {5359 -1 try {5360 -1 value = callback(detail);5361 -1 } catch (e) {5362 -1 succeeded = false;5363 -1 error = e;-1 5198 function parseSelector() { -1 5199 var selector = parseSingleSelector(); -1 5200 if (!selector) { -1 5201 return null; -1 5202 } -1 5203 var res = selector; -1 5204 chr = str.charAt(pos); -1 5205 while (chr === ',') { -1 5206 pos++; -1 5207 skipWhitespace(); -1 5208 if (res.type !== 'selectors') { -1 5209 res = { -1 5210 type: 'selectors', -1 5211 selectors: [ selector ] -1 5212 }; 5364 5213 }5365 -1 if (promise === value) {5366 -1 reject(promise, cannotReturnOwn());5367 -1 return;-1 5214 selector = parseSingleSelector(); -1 5215 if (!selector) { -1 5216 throw Error('Rule expected after ",".'); 5368 5217 }5369 -1 } else {5370 -1 value = detail;5371 -1 }5372 -1 if (promise._state !== PENDING) {} else if (hasCallback && succeeded) {5373 -1 resolve(promise, value);5374 -1 } else if (succeeded === false) {5375 -1 reject(promise, error);5376 -1 } else if (settled === FULFILLED) {5377 -1 fulfill(promise, value);5378 -1 } else if (settled === REJECTED) {5379 -1 reject(promise, value);-1 5218 res.selectors.push(selector); 5380 5219 } -1 5220 return res; 5381 5221 }5382 -1 function initializePromise(promise, resolver) {5383 -1 try {5384 -1 resolver(function resolvePromise(value) {5385 -1 resolve(promise, value);5386 -1 }, function rejectPromise(reason) {5387 -1 reject(promise, reason);5388 -1 });5389 -1 } catch (e) {5390 -1 reject(promise, e);-1 5222 function parseSingleSelector() { -1 5223 skipWhitespace(); -1 5224 var selector = { -1 5225 type: 'ruleSet' -1 5226 }; -1 5227 var rule = parseRule(); -1 5228 if (!rule) { -1 5229 return null; 5391 5230 }5392 -1 }5393 -1 var id = 0;5394 -1 function nextId() {5395 -1 return id++;5396 -1 }5397 -1 function makePromise(promise) {5398 -1 promise[PROMISE_ID] = id++;5399 -1 promise._state = void 0;5400 -1 promise._result = void 0;5401 -1 promise._subscribers = [];5402 -1 }5403 -1 function validationError() {5404 -1 return new Error('Array Methods must be provided an Array');5405 -1 }5406 -1 var Enumerator = function() {5407 -1 function Enumerator2(Constructor, input) {5408 -1 this._instanceConstructor = Constructor;5409 -1 this.promise = new Constructor(noop3);5410 -1 if (!this.promise[PROMISE_ID]) {5411 -1 makePromise(this.promise);-1 5231 var currentRule = selector; -1 5232 while (rule) { -1 5233 rule.type = 'rule'; -1 5234 currentRule.rule = rule; -1 5235 currentRule = rule; -1 5236 skipWhitespace(); -1 5237 chr = str.charAt(pos); -1 5238 if (pos >= l || chr === ',' || chr === ')') { -1 5239 break; 5412 5240 }5413 -1 if (isArray(input)) {5414 -1 this.length = input.length;5415 -1 this._remaining = input.length;5416 -1 this._result = new Array(this.length);5417 -1 if (this.length === 0) {5418 -1 fulfill(this.promise, this._result);5419 -1 } else {5420 -1 this.length = this.length || 0;5421 -1 this._enumerate(input);5422 -1 if (this._remaining === 0) {5423 -1 fulfill(this.promise, this._result);5424 -1 }-1 5241 if (ruleNestingOperators[chr]) { -1 5242 var op = chr; -1 5243 pos++; -1 5244 skipWhitespace(); -1 5245 rule = parseRule(); -1 5246 if (!rule) { -1 5247 throw Error('Rule expected after "' + op + '".'); 5425 5248 } -1 5249 rule.nestingOperator = op; 5426 5250 } else {5427 -1 reject(this.promise, validationError());5428 -1 }5429 -1 }5430 -1 Enumerator2.prototype._enumerate = function _enumerate(input) {5431 -1 for (var i = 0; this._state === PENDING && i < input.length; i++) {5432 -1 this._eachEntry(input[i], i);5433 -1 }5434 -1 };5435 -1 Enumerator2.prototype._eachEntry = function _eachEntry(entry, i) {5436 -1 var c4 = this._instanceConstructor;5437 -1 var resolve$$1 = c4.resolve;5438 -1 if (resolve$$1 === resolve$1) {5439 -1 var _then = void 0;5440 -1 var error = void 0;5441 -1 var didError = false;5442 -1 try {5443 -1 _then = entry.then;5444 -1 } catch (e) {5445 -1 didError = true;5446 -1 error = e;5447 -1 }5448 -1 if (_then === then && entry._state !== PENDING) {5449 -1 this._settledAt(entry._state, i, entry._result);5450 -1 } else if (typeof _then !== 'function') {5451 -1 this._remaining--;5452 -1 this._result[i] = entry;5453 -1 } else if (c4 === Promise$1) {5454 -1 var promise = new c4(noop3);5455 -1 if (didError) {5456 -1 reject(promise, error);5457 -1 } else {5458 -1 handleMaybeThenable(promise, entry, _then);5459 -1 }5460 -1 this._willSettleAt(promise, i);5461 -1 } else {5462 -1 this._willSettleAt(new c4(function(resolve$$12) {5463 -1 return resolve$$12(entry);5464 -1 }), i);-1 5251 rule = parseRule(); -1 5252 if (rule) { -1 5253 rule.nestingOperator = null; 5465 5254 }5466 -1 } else {5467 -1 this._willSettleAt(resolve$$1(entry), i);5468 5255 }5469 -1 };5470 -1 Enumerator2.prototype._settledAt = function _settledAt(state, i, value) {5471 -1 var promise = this.promise;5472 -1 if (promise._state === PENDING) {5473 -1 this._remaining--;5474 -1 if (state === REJECTED) {5475 -1 reject(promise, value);-1 5256 } -1 5257 return selector; -1 5258 } -1 5259 function parseRule() { -1 5260 var rule = null; -1 5261 while (pos < l) { -1 5262 chr = str.charAt(pos); -1 5263 if (chr === '*') { -1 5264 pos++; -1 5265 (rule = rule || {}).tagName = '*'; -1 5266 } else if (utils_1.isIdentStart(chr) || chr === '\\') { -1 5267 (rule = rule || {}).tagName = getIdent(); -1 5268 } else if (chr === '.') { -1 5269 pos++; -1 5270 rule = rule || {}; -1 5271 (rule.classNames = rule.classNames || []).push(getIdent()); -1 5272 } else if (chr === '#') { -1 5273 pos++; -1 5274 (rule = rule || {}).id = getIdent(); -1 5275 } else if (chr === '[') { -1 5276 pos++; -1 5277 skipWhitespace(); -1 5278 var attr = { -1 5279 name: getIdent() -1 5280 }; -1 5281 skipWhitespace(); -1 5282 if (chr === ']') { -1 5283 pos++; 5476 5284 } else {5477 -1 this._result[i] = value;-1 5285 var operator = ''; -1 5286 if (attrEqualityMods[chr]) { -1 5287 operator = chr; -1 5288 pos++; -1 5289 chr = str.charAt(pos); -1 5290 } -1 5291 if (pos >= l) { -1 5292 throw Error('Expected "=" but end of file reached.'); -1 5293 } -1 5294 if (chr !== '=') { -1 5295 throw Error('Expected "=" but "' + chr + '" found.'); -1 5296 } -1 5297 attr.operator = operator + '='; -1 5298 pos++; -1 5299 skipWhitespace(); -1 5300 var attrValue = ''; -1 5301 attr.valueType = 'string'; -1 5302 if (chr === '"') { -1 5303 attrValue = getStr('"', utils_1.doubleQuotesEscapeChars); -1 5304 } else if (chr === '\'') { -1 5305 attrValue = getStr('\'', utils_1.singleQuoteEscapeChars); -1 5306 } else if (substitutesEnabled && chr === '$') { -1 5307 pos++; -1 5308 attrValue = getIdent(); -1 5309 attr.valueType = 'substitute'; -1 5310 } else { -1 5311 while (pos < l) { -1 5312 if (chr === ']') { -1 5313 break; -1 5314 } -1 5315 attrValue += chr; -1 5316 pos++; -1 5317 chr = str.charAt(pos); -1 5318 } -1 5319 attrValue = attrValue.trim(); -1 5320 } -1 5321 skipWhitespace(); -1 5322 if (pos >= l) { -1 5323 throw Error('Expected "]" but end of file reached.'); -1 5324 } -1 5325 if (chr !== ']') { -1 5326 throw Error('Expected "]" but "' + chr + '" found.'); -1 5327 } -1 5328 pos++; -1 5329 attr.value = attrValue; 5478 5330 }5479 -1 }5480 -1 if (this._remaining === 0) {5481 -1 fulfill(promise, this._result);5482 -1 }5483 -1 };5484 -1 Enumerator2.prototype._willSettleAt = function _willSettleAt(promise, i) {5485 -1 var enumerator = this;5486 -1 subscribe2(promise, void 0, function(value) {5487 -1 return enumerator._settledAt(FULFILLED, i, value);5488 -1 }, function(reason) {5489 -1 return enumerator._settledAt(REJECTED, i, reason);5490 -1 });5491 -1 };5492 -1 return Enumerator2;5493 -1 }();5494 -1 function all(entries) {5495 -1 return new Enumerator(this, entries).promise;5496 -1 }5497 -1 function race(entries) {5498 -1 var Constructor = this;5499 -1 if (!isArray(entries)) {5500 -1 return new Constructor(function(_, reject2) {5501 -1 return reject2(new TypeError('You must pass an array to race.'));5502 -1 });5503 -1 } else {5504 -1 return new Constructor(function(resolve2, reject2) {5505 -1 var length = entries.length;5506 -1 for (var i = 0; i < length; i++) {5507 -1 Constructor.resolve(entries[i]).then(resolve2, reject2);-1 5331 rule = rule || {}; -1 5332 (rule.attrs = rule.attrs || []).push(attr); -1 5333 } else if (chr === ':') { -1 5334 pos++; -1 5335 var pseudoName = getIdent(); -1 5336 var pseudo = { -1 5337 name: pseudoName -1 5338 }; -1 5339 if (chr === '(') { -1 5340 pos++; -1 5341 var value = ''; -1 5342 skipWhitespace(); -1 5343 if (pseudos[pseudoName] === 'selector') { -1 5344 pseudo.valueType = 'selector'; -1 5345 value = parseSelector(); -1 5346 } else { -1 5347 pseudo.valueType = pseudos[pseudoName] || 'string'; -1 5348 if (chr === '"') { -1 5349 value = getStr('"', utils_1.doubleQuotesEscapeChars); -1 5350 } else if (chr === '\'') { -1 5351 value = getStr('\'', utils_1.singleQuoteEscapeChars); -1 5352 } else if (substitutesEnabled && chr === '$') { -1 5353 pos++; -1 5354 value = getIdent(); -1 5355 pseudo.valueType = 'substitute'; -1 5356 } else { -1 5357 while (pos < l) { -1 5358 if (chr === ')') { -1 5359 break; -1 5360 } -1 5361 value += chr; -1 5362 pos++; -1 5363 chr = str.charAt(pos); -1 5364 } -1 5365 value = value.trim(); -1 5366 } -1 5367 skipWhitespace(); -1 5368 } -1 5369 if (pos >= l) { -1 5370 throw Error('Expected ")" but end of file reached.'); -1 5371 } -1 5372 if (chr !== ')') { -1 5373 throw Error('Expected ")" but "' + chr + '" found.'); -1 5374 } -1 5375 pos++; -1 5376 pseudo.value = value; 5508 5377 }5509 -1 });-1 5378 rule = rule || {}; -1 5379 (rule.pseudos = rule.pseudos || []).push(pseudo); -1 5380 } else { -1 5381 break; -1 5382 } 5510 5383 } -1 5384 return rule; 5511 5385 }5512 -1 function reject$1(reason) {5513 -1 var Constructor = this;5514 -1 var promise = new Constructor(noop3);5515 -1 reject(promise, reason);5516 -1 return promise;5517 -1 }5518 -1 function needsResolver() {5519 -1 throw new TypeError('You must pass a resolver function as the first argument to the promise constructor');5520 -1 }5521 -1 function needsNew() {5522 -1 throw new TypeError('Failed to construct \'Promise\': Please use the \'new\' operator, this object constructor cannot be called as a function.');5523 -1 }5524 -1 var Promise$1 = function() {5525 -1 function Promise2(resolver) {5526 -1 this[PROMISE_ID] = nextId();5527 -1 this._result = this._state = void 0;5528 -1 this._subscribers = [];5529 -1 if (noop3 !== resolver) {5530 -1 typeof resolver !== 'function' && needsResolver();5531 -1 this instanceof Promise2 ? initializePromise(this, resolver) : needsNew();-1 5386 return parse3(); -1 5387 } -1 5388 exports.parseCssSelector = parseCssSelector; -1 5389 }); -1 5390 var require_render = __commonJS(function(exports) { -1 5391 'use strict'; -1 5392 Object.defineProperty(exports, '__esModule', { -1 5393 value: true -1 5394 }); -1 5395 var utils_1 = require_utils(); -1 5396 function renderEntity(entity) { -1 5397 var res = ''; -1 5398 switch (entity.type) { -1 5399 case 'ruleSet': -1 5400 var currentEntity = entity.rule; -1 5401 var parts = []; -1 5402 while (currentEntity) { -1 5403 if (currentEntity.nestingOperator) { -1 5404 parts.push(currentEntity.nestingOperator); 5532 5405 } -1 5406 parts.push(renderEntity(currentEntity)); -1 5407 currentEntity = currentEntity.rule; 5533 5408 }5534 -1 Promise2.prototype['catch'] = function _catch(onRejection) {5535 -1 return this.then(null, onRejection);5536 -1 };5537 -1 Promise2.prototype['finally'] = function _finally(callback) {5538 -1 var promise = this;5539 -1 var constructor = promise.constructor;5540 -1 if (isFunction(callback)) {5541 -1 return promise.then(function(value) {5542 -1 return constructor.resolve(callback()).then(function() {5543 -1 return value;5544 -1 });5545 -1 }, function(reason) {5546 -1 return constructor.resolve(callback()).then(function() {5547 -1 throw reason;5548 -1 });5549 -1 });5550 -1 }5551 -1 return promise.then(callback, callback);5552 -1 };5553 -1 return Promise2;5554 -1 }();5555 -1 Promise$1.prototype.then = then;5556 -1 Promise$1.all = all;5557 -1 Promise$1.race = race;5558 -1 Promise$1.resolve = resolve$1;5559 -1 Promise$1.reject = reject$1;5560 -1 Promise$1._setScheduler = setScheduler;5561 -1 Promise$1._setAsap = setAsap;5562 -1 Promise$1._asap = asap;5563 -1 function polyfill() {5564 -1 var local = void 0;5565 -1 if (typeof global !== 'undefined') {5566 -1 local = global;5567 -1 } else if (typeof self !== 'undefined') {5568 -1 local = self;5569 -1 } else {5570 -1 try {5571 -1 local = Function('return this')();5572 -1 } catch (e) {5573 -1 throw new Error('polyfill failed because global object is unavailable in this environment');-1 5409 res = parts.join(' '); -1 5410 break; -1 5411 -1 5412 case 'selectors': -1 5413 res = entity.selectors.map(renderEntity).join(', '); -1 5414 break; -1 5415 -1 5416 case 'rule': -1 5417 if (entity.tagName) { -1 5418 if (entity.tagName === '*') { -1 5419 res = '*'; -1 5420 } else { -1 5421 res = utils_1.escapeIdentifier(entity.tagName); 5574 5422 } 5575 5423 }5576 -1 var P = local.Promise;5577 -1 if (P) {5578 -1 var promiseToString = null;5579 -1 try {5580 -1 promiseToString = Object.prototype.toString.call(P.resolve());5581 -1 } catch (e) {}5582 -1 if (promiseToString === '[object Promise]' && !P.cast) {5583 -1 return;5584 -1 }-1 5424 if (entity.id) { -1 5425 res += '#' + utils_1.escapeIdentifier(entity.id); 5585 5426 }5586 -1 local.Promise = Promise$1;5587 -1 }5588 -1 Promise$1.polyfill = polyfill;5589 -1 Promise$1.Promise = Promise$1;5590 -1 return Promise$1;5591 -1 });5592 -1 });5593 -1 var require_typedarray = __commonJS(function(exports) {5594 -1 var MAX_ARRAY_LENGTH = 1e5;5595 -1 var ECMAScript = function() {5596 -1 var opts = Object.prototype.toString;5597 -1 var ophop = Object.prototype.hasOwnProperty;5598 -1 return {5599 -1 Class: function Class(v) {5600 -1 return opts.call(v).replace(/^\[object *|\]$/g, '');5601 -1 },5602 -1 HasProperty: function HasProperty(o, p2) {5603 -1 return p2 in o;5604 -1 },5605 -1 HasOwnProperty: function HasOwnProperty(o, p2) {5606 -1 return ophop.call(o, p2);5607 -1 },5608 -1 IsCallable: function IsCallable(o) {5609 -1 return typeof o === 'function';5610 -1 },5611 -1 ToInt32: function ToInt32(v) {5612 -1 return v >> 0;5613 -1 },5614 -1 ToUint32: function ToUint32(v) {5615 -1 return v >>> 0;-1 5427 if (entity.classNames) { -1 5428 res += entity.classNames.map(function(cn) { -1 5429 return '.' + utils_1.escapeIdentifier(cn); -1 5430 }).join(''); 5616 5431 }5617 -1 };5618 -1 }();5619 -1 var LN2 = Math.LN2;5620 -1 var abs = Math.abs;5621 -1 var floor = Math.floor;5622 -1 var log2 = Math.log;5623 -1 var min = Math.min;5624 -1 var pow = Math.pow;5625 -1 var round = Math.round;5626 -1 function clamp3(v, minimum, max2) {5627 -1 return v < minimum ? minimum : v > max2 ? max2 : v;5628 -1 }5629 -1 var getOwnPropNames = Object.getOwnPropertyNames || function(o) {5630 -1 if (o !== Object(o)) {5631 -1 throw new TypeError('Object.getOwnPropertyNames called on non-object');5632 -1 }5633 -1 var props = [], p2;5634 -1 for (p2 in o) {5635 -1 if (ECMAScript.HasOwnProperty(o, p2)) {5636 -1 props.push(p2);-1 5432 if (entity.attrs) { -1 5433 res += entity.attrs.map(function(attr) { -1 5434 if ('operator' in attr) { -1 5435 if (attr.valueType === 'substitute') { -1 5436 return '[' + utils_1.escapeIdentifier(attr.name) + attr.operator + '$' + attr.value + ']'; -1 5437 } else { -1 5438 return '[' + utils_1.escapeIdentifier(attr.name) + attr.operator + utils_1.escapeStr(attr.value) + ']'; -1 5439 } -1 5440 } else { -1 5441 return '[' + utils_1.escapeIdentifier(attr.name) + ']'; -1 5442 } -1 5443 }).join(''); -1 5444 } -1 5445 if (entity.pseudos) { -1 5446 res += entity.pseudos.map(function(pseudo) { -1 5447 if (pseudo.valueType) { -1 5448 if (pseudo.valueType === 'selector') { -1 5449 return ':' + utils_1.escapeIdentifier(pseudo.name) + '(' + renderEntity(pseudo.value) + ')'; -1 5450 } else if (pseudo.valueType === 'substitute') { -1 5451 return ':' + utils_1.escapeIdentifier(pseudo.name) + '($' + pseudo.value + ')'; -1 5452 } else if (pseudo.valueType === 'numeric') { -1 5453 return ':' + utils_1.escapeIdentifier(pseudo.name) + '(' + pseudo.value + ')'; -1 5454 } else { -1 5455 return ':' + utils_1.escapeIdentifier(pseudo.name) + '(' + utils_1.escapeIdentifier(pseudo.value) + ')'; -1 5456 } -1 5457 } else { -1 5458 return ':' + utils_1.escapeIdentifier(pseudo.name); -1 5459 } -1 5460 }).join(''); 5637 5461 } -1 5462 break; -1 5463 -1 5464 default: -1 5465 throw Error('Unknown entity type: "' + entity.type + '".'); 5638 5466 }5639 -1 return props;5640 -1 };5641 -1 var defineProp;5642 -1 if (Object.defineProperty && function() {5643 -1 try {5644 -1 Object.defineProperty({}, 'x', {});5645 -1 return true;5646 -1 } catch (e) {5647 -1 return false;-1 5467 return res; -1 5468 } -1 5469 exports.renderEntity = renderEntity; -1 5470 }); -1 5471 var require_lib = __commonJS(function(exports) { -1 5472 'use strict'; -1 5473 Object.defineProperty(exports, '__esModule', { -1 5474 value: true -1 5475 }); -1 5476 var parser_context_1 = require_parser_context(); -1 5477 var render_1 = require_render(); -1 5478 var CssSelectorParser2 = function() { -1 5479 function CssSelectorParser3() { -1 5480 this.pseudos = {}; -1 5481 this.attrEqualityMods = {}; -1 5482 this.ruleNestingOperators = {}; -1 5483 this.substitutesEnabled = false; 5648 5484 }5649 -1 }()) {5650 -1 defineProp = Object.defineProperty;5651 -1 } else {5652 -1 defineProp = function defineProp(o, p2, desc) {5653 -1 if (!o === Object(o)) {5654 -1 throw new TypeError('Object.defineProperty called on non-object');-1 5485 CssSelectorParser3.prototype.registerSelectorPseudos = function() { -1 5486 var pseudos = []; -1 5487 for (var _i = 0; _i < arguments.length; _i++) { -1 5488 pseudos[_i] = arguments[_i]; 5655 5489 }5656 -1 if (ECMAScript.HasProperty(desc, 'get') && Object.prototype.__defineGetter__) {5657 -1 Object.prototype.__defineGetter__.call(o, p2, desc.get);-1 5490 for (var _a = 0, pseudos_1 = pseudos; _a < pseudos_1.length; _a++) { -1 5491 var pseudo = pseudos_1[_a]; -1 5492 this.pseudos[pseudo] = 'selector'; 5658 5493 }5659 -1 if (ECMAScript.HasProperty(desc, 'set') && Object.prototype.__defineSetter__) {5660 -1 Object.prototype.__defineSetter__.call(o, p2, desc.set);-1 5494 return this; -1 5495 }; -1 5496 CssSelectorParser3.prototype.unregisterSelectorPseudos = function() { -1 5497 var pseudos = []; -1 5498 for (var _i = 0; _i < arguments.length; _i++) { -1 5499 pseudos[_i] = arguments[_i]; 5661 5500 }5662 -1 if (ECMAScript.HasProperty(desc, 'value')) {5663 -1 o[p2] = desc.value;-1 5501 for (var _a = 0, pseudos_2 = pseudos; _a < pseudos_2.length; _a++) { -1 5502 var pseudo = pseudos_2[_a]; -1 5503 delete this.pseudos[pseudo]; 5664 5504 }5665 -1 return o;-1 5505 return this; 5666 5506 };5667 -1 }5668 -1 function configureProperties(obj) {5669 -1 if (getOwnPropNames && defineProp) {5670 -1 var props = getOwnPropNames(obj), i;5671 -1 for (i = 0; i < props.length; i += 1) {5672 -1 defineProp(obj, props[i], {5673 -1 value: obj[props[i]],5674 -1 writable: false,5675 -1 enumerable: false,5676 -1 configurable: false5677 -1 });-1 5507 CssSelectorParser3.prototype.registerNumericPseudos = function() { -1 5508 var pseudos = []; -1 5509 for (var _i = 0; _i < arguments.length; _i++) { -1 5510 pseudos[_i] = arguments[_i]; 5678 5511 }5679 -1 }5680 -1 }5681 -1 function makeArrayAccessors(obj) {5682 -1 if (!defineProp) {5683 -1 return;5684 -1 }5685 -1 if (obj.length > MAX_ARRAY_LENGTH) {5686 -1 throw new RangeError('Array too large for polyfill');5687 -1 }5688 -1 function makeArrayAccessor(index) {5689 -1 defineProp(obj, index, {5690 -1 get: function get() {5691 -1 return obj._getter(index);5692 -1 },5693 -1 set: function set(v) {5694 -1 obj._setter(index, v);5695 -1 },5696 -1 enumerable: true,5697 -1 configurable: false5698 -1 });5699 -1 }5700 -1 var i;5701 -1 for (i = 0; i < obj.length; i += 1) {5702 -1 makeArrayAccessor(i);5703 -1 }5704 -1 }5705 -1 function as_signed(value, bits) {5706 -1 var s = 32 - bits;5707 -1 return value << s >> s;5708 -1 }5709 -1 function as_unsigned(value, bits) {5710 -1 var s = 32 - bits;5711 -1 return value << s >>> s;5712 -1 }5713 -1 function packI8(n2) {5714 -1 return [ n2 & 255 ];5715 -1 }5716 -1 function unpackI8(bytes) {5717 -1 return as_signed(bytes[0], 8);5718 -1 }5719 -1 function packU8(n2) {5720 -1 return [ n2 & 255 ];5721 -1 }5722 -1 function unpackU8(bytes) {5723 -1 return as_unsigned(bytes[0], 8);5724 -1 }5725 -1 function packU8Clamped(n2) {5726 -1 n2 = round(Number(n2));5727 -1 return [ n2 < 0 ? 0 : n2 > 255 ? 255 : n2 & 255 ];5728 -1 }5729 -1 function packI16(n2) {5730 -1 return [ n2 >> 8 & 255, n2 & 255 ];5731 -1 }5732 -1 function unpackI16(bytes) {5733 -1 return as_signed(bytes[0] << 8 | bytes[1], 16);5734 -1 }5735 -1 function packU16(n2) {5736 -1 return [ n2 >> 8 & 255, n2 & 255 ];5737 -1 }5738 -1 function unpackU16(bytes) {5739 -1 return as_unsigned(bytes[0] << 8 | bytes[1], 16);5740 -1 }5741 -1 function packI32(n2) {5742 -1 return [ n2 >> 24 & 255, n2 >> 16 & 255, n2 >> 8 & 255, n2 & 255 ];5743 -1 }5744 -1 function unpackI32(bytes) {5745 -1 return as_signed(bytes[0] << 24 | bytes[1] << 16 | bytes[2] << 8 | bytes[3], 32);5746 -1 }5747 -1 function packU32(n2) {5748 -1 return [ n2 >> 24 & 255, n2 >> 16 & 255, n2 >> 8 & 255, n2 & 255 ];5749 -1 }5750 -1 function unpackU32(bytes) {5751 -1 return as_unsigned(bytes[0] << 24 | bytes[1] << 16 | bytes[2] << 8 | bytes[3], 32);5752 -1 }5753 -1 function packIEEE754(v, ebits, fbits) {5754 -1 var bias = (1 << ebits - 1) - 1;5755 -1 var s, e, f, i, bits, str, bytes;5756 -1 function roundToEven(n2) {5757 -1 var w = floor(n2);5758 -1 var fl = n2 - w;5759 -1 if (fl < .5) {5760 -1 return w;-1 5512 for (var _a = 0, pseudos_3 = pseudos; _a < pseudos_3.length; _a++) { -1 5513 var pseudo = pseudos_3[_a]; -1 5514 this.pseudos[pseudo] = 'numeric'; 5761 5515 }5762 -1 if (fl > .5) {5763 -1 return w + 1;-1 5516 return this; -1 5517 }; -1 5518 CssSelectorParser3.prototype.unregisterNumericPseudos = function() { -1 5519 var pseudos = []; -1 5520 for (var _i = 0; _i < arguments.length; _i++) { -1 5521 pseudos[_i] = arguments[_i]; 5764 5522 }5765 -1 return w % 2 ? w + 1 : w;5766 -1 }5767 -1 if (v !== v) {5768 -1 e = (1 << ebits) - 1;5769 -1 f = pow(2, fbits - 1);5770 -1 s = 0;5771 -1 } else if (v === Infinity || v === -Infinity) {5772 -1 e = (1 << ebits) - 1;5773 -1 f = 0;5774 -1 s = v < 0 ? 1 : 0;5775 -1 } else if (v === 0) {5776 -1 e = 0;5777 -1 f = 0;5778 -1 s = 1 / v === -Infinity ? 1 : 0;5779 -1 } else {5780 -1 s = v < 0;5781 -1 v = abs(v);5782 -1 if (v >= pow(2, 1 - bias)) {5783 -1 e = min(floor(log2(v) / LN2), 1023);5784 -1 f = roundToEven(v / pow(2, e) * pow(2, fbits));5785 -1 if (f / pow(2, fbits) >= 2) {5786 -1 e = e + 1;5787 -1 f = 1;5788 -1 }5789 -1 if (e > bias) {5790 -1 e = (1 << ebits) - 1;5791 -1 f = 0;5792 -1 } else {5793 -1 e = e + bias;5794 -1 f = f - pow(2, fbits);5795 -1 }5796 -1 } else {5797 -1 e = 0;5798 -1 f = roundToEven(v / pow(2, 1 - bias - fbits));-1 5523 for (var _a = 0, pseudos_4 = pseudos; _a < pseudos_4.length; _a++) { -1 5524 var pseudo = pseudos_4[_a]; -1 5525 delete this.pseudos[pseudo]; 5799 5526 }5800 -1 }5801 -1 bits = [];5802 -1 for (i = fbits; i; i -= 1) {5803 -1 bits.push(f % 2 ? 1 : 0);5804 -1 f = floor(f / 2);5805 -1 }5806 -1 for (i = ebits; i; i -= 1) {5807 -1 bits.push(e % 2 ? 1 : 0);5808 -1 e = floor(e / 2);5809 -1 }5810 -1 bits.push(s ? 1 : 0);5811 -1 bits.reverse();5812 -1 str = bits.join('');5813 -1 bytes = [];5814 -1 while (str.length) {5815 -1 bytes.push(parseInt(str.substring(0, 8), 2));5816 -1 str = str.substring(8);5817 -1 }5818 -1 return bytes;5819 -1 }5820 -1 function unpackIEEE754(bytes, ebits, fbits) {5821 -1 var bits = [], i, j, b2, str, bias, s, e, f;5822 -1 for (i = bytes.length; i; i -= 1) {5823 -1 b2 = bytes[i - 1];5824 -1 for (j = 8; j; j -= 1) {5825 -1 bits.push(b2 % 2 ? 1 : 0);5826 -1 b2 = b2 >> 1;-1 5527 return this; -1 5528 }; -1 5529 CssSelectorParser3.prototype.registerNestingOperators = function() { -1 5530 var operators = []; -1 5531 for (var _i = 0; _i < arguments.length; _i++) { -1 5532 operators[_i] = arguments[_i]; 5827 5533 }5828 -1 }5829 -1 bits.reverse();5830 -1 str = bits.join('');5831 -1 bias = (1 << ebits - 1) - 1;5832 -1 s = parseInt(str.substring(0, 1), 2) ? -1 : 1;5833 -1 e = parseInt(str.substring(1, 1 + ebits), 2);5834 -1 f = parseInt(str.substring(1 + ebits), 2);5835 -1 if (e === (1 << ebits) - 1) {5836 -1 return f === 0 ? s * Infinity : NaN;5837 -1 } else if (e > 0) {5838 -1 return s * pow(2, e - bias) * (1 + f / pow(2, fbits));5839 -1 } else if (f !== 0) {5840 -1 return s * pow(2, -(bias - 1)) * (f / pow(2, fbits));5841 -1 }5842 -1 return s < 0 ? -0 : 0;5843 -1 }5844 -1 function unpackF64(b2) {5845 -1 return unpackIEEE754(b2, 11, 52);5846 -1 }5847 -1 function packF64(v) {5848 -1 return packIEEE754(v, 11, 52);5849 -1 }5850 -1 function unpackF32(b2) {5851 -1 return unpackIEEE754(b2, 8, 23);5852 -1 }5853 -1 function packF32(v) {5854 -1 return packIEEE754(v, 8, 23);5855 -1 }5856 -1 (function() {5857 -1 function ArrayBuffer(length) {5858 -1 length = ECMAScript.ToInt32(length);5859 -1 if (length < 0) {5860 -1 throw new RangeError('ArrayBuffer size is not a small enough positive integer');-1 5534 for (var _a = 0, operators_1 = operators; _a < operators_1.length; _a++) { -1 5535 var operator = operators_1[_a]; -1 5536 this.ruleNestingOperators[operator] = true; 5861 5537 }5862 -1 this.byteLength = length;5863 -1 this._bytes = [];5864 -1 this._bytes.length = length;5865 -1 var i;5866 -1 for (i = 0; i < this.byteLength; i += 1) {5867 -1 this._bytes[i] = 0;-1 5538 return this; -1 5539 }; -1 5540 CssSelectorParser3.prototype.unregisterNestingOperators = function() { -1 5541 var operators = []; -1 5542 for (var _i = 0; _i < arguments.length; _i++) { -1 5543 operators[_i] = arguments[_i]; 5868 5544 }5869 -1 configureProperties(this);5870 -1 }5871 -1 exports.ArrayBuffer = exports.ArrayBuffer || ArrayBuffer;5872 -1 function ArrayBufferView() {}5873 -1 function makeConstructor(bytesPerElement, pack, unpack) {5874 -1 var _ctor;5875 -1 _ctor = function ctor(buffer, byteOffset, length) {5876 -1 var array, sequence, i, s;5877 -1 if (!arguments.length || typeof arguments[0] === 'number') {5878 -1 this.length = ECMAScript.ToInt32(arguments[0]);5879 -1 if (length < 0) {5880 -1 throw new RangeError('ArrayBufferView size is not a small enough positive integer');5881 -1 }5882 -1 this.byteLength = this.length * this.BYTES_PER_ELEMENT;5883 -1 this.buffer = new ArrayBuffer(this.byteLength);5884 -1 this.byteOffset = 0;5885 -1 } else if (_typeof(arguments[0]) === 'object' && arguments[0].constructor === _ctor) {5886 -1 array = arguments[0];5887 -1 this.length = array.length;5888 -1 this.byteLength = this.length * this.BYTES_PER_ELEMENT;5889 -1 this.buffer = new ArrayBuffer(this.byteLength);5890 -1 this.byteOffset = 0;5891 -1 for (i = 0; i < this.length; i += 1) {5892 -1 this._setter(i, array._getter(i));5893 -1 }5894 -1 } else if (_typeof(arguments[0]) === 'object' && !(arguments[0] instanceof ArrayBuffer || ECMAScript.Class(arguments[0]) === 'ArrayBuffer')) {5895 -1 sequence = arguments[0];5896 -1 this.length = ECMAScript.ToUint32(sequence.length);5897 -1 this.byteLength = this.length * this.BYTES_PER_ELEMENT;5898 -1 this.buffer = new ArrayBuffer(this.byteLength);5899 -1 this.byteOffset = 0;5900 -1 for (i = 0; i < this.length; i += 1) {5901 -1 s = sequence[i];5902 -1 this._setter(i, Number(s));5903 -1 }5904 -1 } else if (_typeof(arguments[0]) === 'object' && (arguments[0] instanceof ArrayBuffer || ECMAScript.Class(arguments[0]) === 'ArrayBuffer')) {5905 -1 this.buffer = buffer;5906 -1 this.byteOffset = ECMAScript.ToUint32(byteOffset);5907 -1 if (this.byteOffset > this.buffer.byteLength) {5908 -1 throw new RangeError('byteOffset out of range');5909 -1 }5910 -1 if (this.byteOffset % this.BYTES_PER_ELEMENT) {5911 -1 throw new RangeError('ArrayBuffer length minus the byteOffset is not a multiple of the element size.');-1 5545 for (var _a = 0, operators_2 = operators; _a < operators_2.length; _a++) { -1 5546 var operator = operators_2[_a]; -1 5547 delete this.ruleNestingOperators[operator]; -1 5548 } -1 5549 return this; -1 5550 }; -1 5551 CssSelectorParser3.prototype.registerAttrEqualityMods = function() { -1 5552 var mods = []; -1 5553 for (var _i = 0; _i < arguments.length; _i++) { -1 5554 mods[_i] = arguments[_i]; -1 5555 } -1 5556 for (var _a = 0, mods_1 = mods; _a < mods_1.length; _a++) { -1 5557 var mod = mods_1[_a]; -1 5558 this.attrEqualityMods[mod] = true; -1 5559 } -1 5560 return this; -1 5561 }; -1 5562 CssSelectorParser3.prototype.unregisterAttrEqualityMods = function() { -1 5563 var mods = []; -1 5564 for (var _i = 0; _i < arguments.length; _i++) { -1 5565 mods[_i] = arguments[_i]; -1 5566 } -1 5567 for (var _a = 0, mods_2 = mods; _a < mods_2.length; _a++) { -1 5568 var mod = mods_2[_a]; -1 5569 delete this.attrEqualityMods[mod]; -1 5570 } -1 5571 return this; -1 5572 }; -1 5573 CssSelectorParser3.prototype.enableSubstitutes = function() { -1 5574 this.substitutesEnabled = true; -1 5575 return this; -1 5576 }; -1 5577 CssSelectorParser3.prototype.disableSubstitutes = function() { -1 5578 this.substitutesEnabled = false; -1 5579 return this; -1 5580 }; -1 5581 CssSelectorParser3.prototype.parse = function(str) { -1 5582 return parser_context_1.parseCssSelector(str, 0, this.pseudos, this.attrEqualityMods, this.ruleNestingOperators, this.substitutesEnabled); -1 5583 }; -1 5584 CssSelectorParser3.prototype.render = function(path) { -1 5585 return render_1.renderEntity(path).trim(); -1 5586 }; -1 5587 return CssSelectorParser3; -1 5588 }(); -1 5589 exports.CssSelectorParser = CssSelectorParser2; -1 5590 }); -1 5591 var require_doT = __commonJS(function(exports, module) { -1 5592 (function() { -1 5593 'use strict'; -1 5594 var doT2 = { -1 5595 name: 'doT', -1 5596 version: '1.1.1', -1 5597 templateSettings: { -1 5598 evaluate: /\{\{([\s\S]+?(\}?)+)\}\}/g, -1 5599 interpolate: /\{\{=([\s\S]+?)\}\}/g, -1 5600 encode: /\{\{!([\s\S]+?)\}\}/g, -1 5601 use: /\{\{#([\s\S]+?)\}\}/g, -1 5602 useParams: /(^|[^\w$])def(?:\.|\[[\'\"])([\w$\.]+)(?:[\'\"]\])?\s*\:\s*([\w$\.]+|\"[^\"]+\"|\'[^\']+\'|\{[^\}]+\})/g, -1 5603 define: /\{\{##\s*([\w\.$]+)\s*(\:|=)([\s\S]+?)#\}\}/g, -1 5604 defineParams: /^\s*([\w$]+):([\s\S]+)/, -1 5605 conditional: /\{\{\?(\?)?\s*([\s\S]*?)\s*\}\}/g, -1 5606 iterate: /\{\{~\s*(?:\}\}|([\s\S]+?)\s*\:\s*([\w$]+)\s*(?:\:\s*([\w$]+))?\s*\}\})/g, -1 5607 varname: 'it', -1 5608 strip: true, -1 5609 append: true, -1 5610 selfcontained: false, -1 5611 doNotSkipEncoded: false -1 5612 }, -1 5613 template: void 0, -1 5614 compile: void 0, -1 5615 log: true -1 5616 }; -1 5617 (function() { -1 5618 if ((typeof globalThis === 'undefined' ? 'undefined' : _typeof(globalThis)) === 'object') { -1 5619 return; -1 5620 } -1 5621 try { -1 5622 Object.defineProperty(Object.prototype, '__magic__', { -1 5623 get: function get() { -1 5624 return this; -1 5625 }, -1 5626 configurable: true -1 5627 }); -1 5628 __magic__.globalThis = __magic__; -1 5629 delete Object.prototype.__magic__; -1 5630 } catch (e) { -1 5631 window.globalThis = function() { -1 5632 if (typeof self !== 'undefined') { -1 5633 return self; 5912 5634 }5913 -1 if (arguments.length < 3) {5914 -1 this.byteLength = this.buffer.byteLength - this.byteOffset;5915 -1 if (this.byteLength % this.BYTES_PER_ELEMENT) {5916 -1 throw new RangeError('length of buffer minus byteOffset not a multiple of the element size');5917 -1 }5918 -1 this.length = this.byteLength / this.BYTES_PER_ELEMENT;5919 -1 } else {5920 -1 this.length = ECMAScript.ToUint32(length);5921 -1 this.byteLength = this.length * this.BYTES_PER_ELEMENT;-1 5635 if (typeof window !== 'undefined') { -1 5636 return window; 5922 5637 }5923 -1 if (this.byteOffset + this.byteLength > this.buffer.byteLength) {5924 -1 throw new RangeError('byteOffset and length reference an area beyond the end of the buffer');-1 5638 if (typeof global !== 'undefined') { -1 5639 return global; 5925 5640 }5926 -1 } else {5927 -1 throw new TypeError('Unexpected argument type(s)');5928 -1 }5929 -1 this.constructor = _ctor;5930 -1 configureProperties(this);5931 -1 makeArrayAccessors(this);5932 -1 };5933 -1 _ctor.prototype = new ArrayBufferView();5934 -1 _ctor.prototype.BYTES_PER_ELEMENT = bytesPerElement;5935 -1 _ctor.prototype._pack = pack;5936 -1 _ctor.prototype._unpack = unpack;5937 -1 _ctor.BYTES_PER_ELEMENT = bytesPerElement;5938 -1 _ctor.prototype._getter = function(index) {5939 -1 if (arguments.length < 1) {5940 -1 throw new SyntaxError('Not enough arguments');5941 -1 }5942 -1 index = ECMAScript.ToUint32(index);5943 -1 if (index >= this.length) {5944 -1 return void 0;5945 -1 }5946 -1 var bytes = [];5947 -1 for (var i = 0, o = this.byteOffset + index * this.BYTES_PER_ELEMENT; i < this.BYTES_PER_ELEMENT; i += 1,5948 -1 o += 1) {5949 -1 bytes.push(this.buffer._bytes[o]);5950 -1 }5951 -1 return this._unpack(bytes);5952 -1 };5953 -1 _ctor.prototype.get = _ctor.prototype._getter;5954 -1 _ctor.prototype._setter = function(index, value) {5955 -1 if (arguments.length < 2) {5956 -1 throw new SyntaxError('Not enough arguments');5957 -1 }5958 -1 index = ECMAScript.ToUint32(index);5959 -1 if (index < this.length) {5960 -1 var bytes = this._pack(value);5961 -1 var i;5962 -1 var o;5963 -1 for (i = 0, o = this.byteOffset + index * this.BYTES_PER_ELEMENT; i < this.BYTES_PER_ELEMENT; i += 1,5964 -1 o += 1) {5965 -1 this.buffer._bytes[o] = bytes[i];-1 5641 if (typeof this !== 'undefined') { -1 5642 return this; 5966 5643 }5967 -1 }-1 5644 throw new Error('Unable to locate global `this`'); -1 5645 }(); -1 5646 } -1 5647 })(); -1 5648 doT2.encodeHTMLSource = function(doNotSkipEncoded) { -1 5649 var encodeHTMLRules = { -1 5650 '&': '&', -1 5651 '<': '<', -1 5652 '>': '>', -1 5653 '"': '"', -1 5654 '\'': ''', -1 5655 '/': '/' -1 5656 }, matchHTML = doNotSkipEncoded ? /[&<>"'\/]/g : /&(?!#?\w+;)|<|>|"|'|\//g; -1 5657 return function(code) { -1 5658 return code ? code.toString().replace(matchHTML, function(m3) { -1 5659 return encodeHTMLRules[m3] || m3; -1 5660 }) : ''; 5968 5661 };5969 -1 _ctor.prototype.set = function(index, value) {5970 -1 if (arguments.length < 1) {5971 -1 throw new SyntaxError('Not enough arguments');-1 5662 }; -1 5663 if (typeof module !== 'undefined' && module.exports) { -1 5664 module.exports = doT2; -1 5665 } else if (typeof define === 'function' && define.amd) { -1 5666 define(function() { -1 5667 return doT2; -1 5668 }); -1 5669 } else { -1 5670 globalThis.doT = doT2; -1 5671 } -1 5672 var startend = { -1 5673 append: { -1 5674 start: '\'+(', -1 5675 end: ')+\'', -1 5676 startencode: '\'+encodeHTML(' -1 5677 }, -1 5678 split: { -1 5679 start: '\';out+=(', -1 5680 end: ');out+=\'', -1 5681 startencode: '\';out+=encodeHTML(' -1 5682 } -1 5683 }, skip = /$^/; -1 5684 function resolveDefs(c4, block, def) { -1 5685 return (typeof block === 'string' ? block : block.toString()).replace(c4.define || skip, function(m3, code, assign, value) { -1 5686 if (code.indexOf('def.') === 0) { -1 5687 code = code.substring(4); 5972 5688 }5973 -1 var array, sequence, offset, len, i, s, d2, byteOffset, byteLength, tmp;5974 -1 if (_typeof(arguments[0]) === 'object' && arguments[0].constructor === this.constructor) {5975 -1 array = arguments[0];5976 -1 offset = ECMAScript.ToUint32(arguments[1]);5977 -1 if (offset + array.length > this.length) {5978 -1 throw new RangeError('Offset plus length of array is out of range');5979 -1 }5980 -1 byteOffset = this.byteOffset + offset * this.BYTES_PER_ELEMENT;5981 -1 byteLength = array.length * this.BYTES_PER_ELEMENT;5982 -1 if (array.buffer === this.buffer) {5983 -1 tmp = [];5984 -1 for (i = 0, s = array.byteOffset; i < byteLength; i += 1, s += 1) {5985 -1 tmp[i] = array.buffer._bytes[s];-1 5689 if (!(code in def)) { -1 5690 if (assign === ':') { -1 5691 if (c4.defineParams) { -1 5692 value.replace(c4.defineParams, function(m4, param, v) { -1 5693 def[code] = { -1 5694 arg: param, -1 5695 text: v -1 5696 }; -1 5697 }); 5986 5698 }5987 -1 for (i = 0, d2 = byteOffset; i < byteLength; i += 1, d2 += 1) {5988 -1 this.buffer._bytes[d2] = tmp[i];-1 5699 if (!(code in def)) { -1 5700 def[code] = value; 5989 5701 } 5990 5702 } else {5991 -1 for (i = 0, s = array.byteOffset, d2 = byteOffset; i < byteLength; i += 1,5992 -1 s += 1, d2 += 1) {5993 -1 this.buffer._bytes[d2] = array.buffer._bytes[s];5994 -1 }5995 -1 }5996 -1 } else if (_typeof(arguments[0]) === 'object' && typeof arguments[0].length !== 'undefined') {5997 -1 sequence = arguments[0];5998 -1 len = ECMAScript.ToUint32(sequence.length);5999 -1 offset = ECMAScript.ToUint32(arguments[1]);6000 -1 if (offset + len > this.length) {6001 -1 throw new RangeError('Offset plus length of array is out of range');6002 -1 }6003 -1 for (i = 0; i < len; i += 1) {6004 -1 s = sequence[i];6005 -1 this._setter(offset + i, Number(s));-1 5703 new Function('def', 'def[\'' + code + '\']=' + value)(def); 6006 5704 }6007 -1 } else {6008 -1 throw new TypeError('Unexpected argument type(s)');6009 -1 }6010 -1 };6011 -1 _ctor.prototype.subarray = function(start, end) {6012 -1 start = ECMAScript.ToInt32(start);6013 -1 end = ECMAScript.ToInt32(end);6014 -1 if (arguments.length < 1) {6015 -1 start = 0;6016 5705 }6017 -1 if (arguments.length < 2) {6018 -1 end = this.length;-1 5706 return ''; -1 5707 }).replace(c4.use || skip, function(m3, code) { -1 5708 if (c4.useParams) { -1 5709 code = code.replace(c4.useParams, function(m4, s, d2, param) { -1 5710 if (def[d2] && def[d2].arg && param) { -1 5711 var rw = (d2 + ':' + param).replace(/'|\\/g, '_'); -1 5712 def.__exp = def.__exp || {}; -1 5713 def.__exp[rw] = def[d2].text.replace(new RegExp('(^|[^\\w$])' + def[d2].arg + '([^\\w$])', 'g'), '$1' + param + '$2'); -1 5714 return s + 'def.__exp[\'' + rw + '\']'; -1 5715 } -1 5716 }); 6019 5717 }6020 -1 if (start < 0) {6021 -1 start = this.length + start;-1 5718 var v = new Function('def', 'return ' + code)(def); -1 5719 return v ? resolveDefs(c4, v, def) : v; -1 5720 }); -1 5721 } -1 5722 function unescape(code) { -1 5723 return code.replace(/\\('|\\)/g, '$1').replace(/[\r\t\n]/g, ' '); -1 5724 } -1 5725 doT2.template = function(tmpl, c4, def) { -1 5726 c4 = c4 || doT2.templateSettings; -1 5727 var cse = c4.append ? startend.append : startend.split, needhtmlencode, sid = 0, indv, str = c4.use || c4.define ? resolveDefs(c4, tmpl, def || {}) : tmpl; -1 5728 str = ('var out=\'' + (c4.strip ? str.replace(/(^|\r|\n)\t* +| +\t*(\r|\n|$)/g, ' ').replace(/\r|\n|\t|\/\*[\s\S]*?\*\//g, '') : str).replace(/'|\\/g, '\\$&').replace(c4.interpolate || skip, function(m3, code) { -1 5729 return cse.start + unescape(code) + cse.end; -1 5730 }).replace(c4.encode || skip, function(m3, code) { -1 5731 needhtmlencode = true; -1 5732 return cse.startencode + unescape(code) + cse.end; -1 5733 }).replace(c4.conditional || skip, function(m3, elsecase, code) { -1 5734 return elsecase ? code ? '\';}else if(' + unescape(code) + '){out+=\'' : '\';}else{out+=\'' : code ? '\';if(' + unescape(code) + '){out+=\'' : '\';}out+=\''; -1 5735 }).replace(c4.iterate || skip, function(m3, iterate, vname, iname) { -1 5736 if (!iterate) { -1 5737 return '\';} } out+=\''; 6022 5738 }6023 -1 if (end < 0) {6024 -1 end = this.length + end;-1 5739 sid += 1; -1 5740 indv = iname || 'i' + sid; -1 5741 iterate = unescape(iterate); -1 5742 return '\';var arr' + sid + '=' + iterate + ';if(arr' + sid + '){var ' + vname + ',' + indv + '=-1,l' + sid + '=arr' + sid + '.length-1;while(' + indv + '<l' + sid + '){' + vname + '=arr' + sid + '[' + indv + '+=1];out+=\''; -1 5743 }).replace(c4.evaluate || skip, function(m3, code) { -1 5744 return '\';' + unescape(code) + 'out+=\''; -1 5745 }) + '\';return out;').replace(/\n/g, '\\n').replace(/\t/g, '\\t').replace(/\r/g, '\\r').replace(/(\s|;|\}|^|\{)out\+='';/g, '$1').replace(/\+''/g, ''); -1 5746 if (needhtmlencode) { -1 5747 if (!c4.selfcontained && globalThis && !globalThis._encodeHTML) { -1 5748 globalThis._encodeHTML = doT2.encodeHTMLSource(c4.doNotSkipEncoded); 6025 5749 }6026 -1 start = clamp3(start, 0, this.length);6027 -1 end = clamp3(end, 0, this.length);6028 -1 var len = end - start;6029 -1 if (len < 0) {6030 -1 len = 0;-1 5750 str = 'var encodeHTML = typeof _encodeHTML !== \'undefined\' ? _encodeHTML : (' + doT2.encodeHTMLSource.toString() + '(' + (c4.doNotSkipEncoded || '') + '));' + str; -1 5751 } -1 5752 try { -1 5753 return new Function(c4.varname, str); -1 5754 } catch (e) { -1 5755 if (typeof console !== 'undefined') { -1 5756 console.log('Could not create a template function: ' + str); 6031 5757 }6032 -1 return new this.constructor(this.buffer, this.byteOffset + start * this.BYTES_PER_ELEMENT, len);6033 -1 };6034 -1 return _ctor;6035 -1 }6036 -1 var Int8Array = makeConstructor(1, packI8, unpackI8);6037 -1 var Uint8Array2 = makeConstructor(1, packU8, unpackU8);6038 -1 var Uint8ClampedArray2 = makeConstructor(1, packU8Clamped, unpackU8);6039 -1 var Int16Array = makeConstructor(2, packI16, unpackI16);6040 -1 var Uint16Array = makeConstructor(2, packU16, unpackU16);6041 -1 var Int32Array = makeConstructor(4, packI32, unpackI32);6042 -1 var Uint32Array3 = makeConstructor(4, packU32, unpackU32);6043 -1 var Float32Array = makeConstructor(4, packF32, unpackF32);6044 -1 var Float64Array = makeConstructor(8, packF64, unpackF64);6045 -1 exports.Int8Array = exports.Int8Array || Int8Array;6046 -1 exports.Uint8Array = exports.Uint8Array || Uint8Array2;6047 -1 exports.Uint8ClampedArray = exports.Uint8ClampedArray || Uint8ClampedArray2;6048 -1 exports.Int16Array = exports.Int16Array || Int16Array;6049 -1 exports.Uint16Array = exports.Uint16Array || Uint16Array;6050 -1 exports.Int32Array = exports.Int32Array || Int32Array;6051 -1 exports.Uint32Array = exports.Uint32Array || Uint32Array3;6052 -1 exports.Float32Array = exports.Float32Array || Float32Array;6053 -1 exports.Float64Array = exports.Float64Array || Float64Array;-1 5758 throw e; -1 5759 } -1 5760 }; -1 5761 doT2.compile = function(tmpl, def) { -1 5762 return doT2.template(tmpl, null, def); -1 5763 }; 6054 5764 })();6055 -1 (function() {6056 -1 function r(array, index) {6057 -1 return ECMAScript.IsCallable(array.get) ? array.get(index) : array[index];-1 5765 }); -1 5766 var require_noop = __commonJS(function(exports, module) { -1 5767 'use strict'; -1 5768 module.exports = function() {}; -1 5769 }); -1 5770 var require_is_value = __commonJS(function(exports, module) { -1 5771 'use strict'; -1 5772 var _undefined = require_noop()(); -1 5773 module.exports = function(val) { -1 5774 return val !== _undefined && val !== null; -1 5775 }; -1 5776 }); -1 5777 var require_normalize_options = __commonJS(function(exports, module) { -1 5778 'use strict'; -1 5779 var isValue = require_is_value(); -1 5780 var forEach = Array.prototype.forEach; -1 5781 var create = Object.create; -1 5782 var process2 = function process2(src, obj) { -1 5783 var key; -1 5784 for (key in src) { -1 5785 obj[key] = src[key]; 6058 5786 }6059 -1 var IS_BIG_ENDIAN = function() {6060 -1 var u16array = new exports.Uint16Array([ 4660 ]), u8array = new exports.Uint8Array(u16array.buffer);6061 -1 return r(u8array, 0) === 18;6062 -1 }();6063 -1 function DataView(buffer, byteOffset, byteLength) {6064 -1 if (arguments.length === 0) {6065 -1 buffer = new exports.ArrayBuffer(0);6066 -1 } else if (!(buffer instanceof exports.ArrayBuffer || ECMAScript.Class(buffer) === 'ArrayBuffer')) {6067 -1 throw new TypeError('TypeError');6068 -1 }6069 -1 this.buffer = buffer || new exports.ArrayBuffer(0);6070 -1 this.byteOffset = ECMAScript.ToUint32(byteOffset);6071 -1 if (this.byteOffset > this.buffer.byteLength) {6072 -1 throw new RangeError('byteOffset out of range');-1 5787 }; -1 5788 module.exports = function(opts1) { -1 5789 var result = create(null); -1 5790 forEach.call(arguments, function(options) { -1 5791 if (!isValue(options)) { -1 5792 return; 6073 5793 }6074 -1 if (arguments.length < 3) {6075 -1 this.byteLength = this.buffer.byteLength - this.byteOffset;6076 -1 } else {6077 -1 this.byteLength = ECMAScript.ToUint32(byteLength);6078 -1 }6079 -1 if (this.byteOffset + this.byteLength > this.buffer.byteLength) {6080 -1 throw new RangeError('byteOffset and length reference an area beyond the end of the buffer');6081 -1 }6082 -1 configureProperties(this);6083 -1 }6084 -1 function makeGetter(arrayType) {6085 -1 return function(byteOffset, littleEndian) {6086 -1 byteOffset = ECMAScript.ToUint32(byteOffset);6087 -1 if (byteOffset + arrayType.BYTES_PER_ELEMENT > this.byteLength) {6088 -1 throw new RangeError('Array index out of range');6089 -1 }6090 -1 byteOffset += this.byteOffset;6091 -1 var uint8Array = new exports.Uint8Array(this.buffer, byteOffset, arrayType.BYTES_PER_ELEMENT), bytes = [], i;6092 -1 for (i = 0; i < arrayType.BYTES_PER_ELEMENT; i += 1) {6093 -1 bytes.push(r(uint8Array, i));6094 -1 }6095 -1 if (Boolean(littleEndian) === Boolean(IS_BIG_ENDIAN)) {6096 -1 bytes.reverse();6097 -1 }6098 -1 return r(new arrayType(new exports.Uint8Array(bytes).buffer), 0);6099 -1 };6100 -1 }6101 -1 DataView.prototype.getUint8 = makeGetter(exports.Uint8Array);6102 -1 DataView.prototype.getInt8 = makeGetter(exports.Int8Array);6103 -1 DataView.prototype.getUint16 = makeGetter(exports.Uint16Array);6104 -1 DataView.prototype.getInt16 = makeGetter(exports.Int16Array);6105 -1 DataView.prototype.getUint32 = makeGetter(exports.Uint32Array);6106 -1 DataView.prototype.getInt32 = makeGetter(exports.Int32Array);6107 -1 DataView.prototype.getFloat32 = makeGetter(exports.Float32Array);6108 -1 DataView.prototype.getFloat64 = makeGetter(exports.Float64Array);6109 -1 function makeSetter(arrayType) {6110 -1 return function(byteOffset, value, littleEndian) {6111 -1 byteOffset = ECMAScript.ToUint32(byteOffset);6112 -1 if (byteOffset + arrayType.BYTES_PER_ELEMENT > this.byteLength) {6113 -1 throw new RangeError('Array index out of range');6114 -1 }6115 -1 var typeArray = new arrayType([ value ]), byteArray = new exports.Uint8Array(typeArray.buffer), bytes = [], i, byteView;6116 -1 for (i = 0; i < arrayType.BYTES_PER_ELEMENT; i += 1) {6117 -1 bytes.push(r(byteArray, i));6118 -1 }6119 -1 if (Boolean(littleEndian) === Boolean(IS_BIG_ENDIAN)) {6120 -1 bytes.reverse();6121 -1 }6122 -1 byteView = new exports.Uint8Array(this.buffer, byteOffset, arrayType.BYTES_PER_ELEMENT);6123 -1 byteView.set(bytes);6124 -1 };6125 -1 }6126 -1 DataView.prototype.setUint8 = makeSetter(exports.Uint8Array);6127 -1 DataView.prototype.setInt8 = makeSetter(exports.Int8Array);6128 -1 DataView.prototype.setUint16 = makeSetter(exports.Uint16Array);6129 -1 DataView.prototype.setInt16 = makeSetter(exports.Int16Array);6130 -1 DataView.prototype.setUint32 = makeSetter(exports.Uint32Array);6131 -1 DataView.prototype.setInt32 = makeSetter(exports.Int32Array);6132 -1 DataView.prototype.setFloat32 = makeSetter(exports.Float32Array);6133 -1 DataView.prototype.setFloat64 = makeSetter(exports.Float64Array);6134 -1 exports.DataView = exports.DataView || DataView;6135 -1 })();6136 -1 });6137 -1 var require_weakmap_polyfill = __commonJS(function(exports) {6138 -1 (function(self2) {6139 -1 'use strict';6140 -1 if (self2.WeakMap) {6141 -1 return;6142 -1 }6143 -1 var hasOwnProperty2 = Object.prototype.hasOwnProperty;6144 -1 var hasDefine = Object.defineProperty && function() {6145 -1 try {6146 -1 return Object.defineProperty({}, 'x', {6147 -1 value: 16148 -1 }).x === 1;6149 -1 } catch (e) {}6150 -1 }();6151 -1 var defineProperty = function defineProperty(object, name, value) {6152 -1 if (hasDefine) {6153 -1 Object.defineProperty(object, name, {6154 -1 configurable: true,6155 -1 writable: true,6156 -1 value: value6157 -1 });6158 -1 } else {6159 -1 object[name] = value;6160 -1 }6161 -1 };6162 -1 self2.WeakMap = function() {6163 -1 function WeakMap2() {6164 -1 if (this === void 0) {6165 -1 throw new TypeError('Constructor WeakMap requires \'new\'');6166 -1 }6167 -1 defineProperty(this, '_id', genId('_WeakMap'));6168 -1 if (arguments.length > 0) {6169 -1 throw new TypeError('WeakMap iterable is not supported');6170 -1 }6171 -1 }6172 -1 defineProperty(WeakMap2.prototype, 'delete', function(key) {6173 -1 checkInstance(this, 'delete');6174 -1 if (!isObject(key)) {6175 -1 return false;6176 -1 }6177 -1 var entry = key[this._id];6178 -1 if (entry && entry[0] === key) {6179 -1 delete key[this._id];6180 -1 return true;6181 -1 }6182 -1 return false;6183 -1 });6184 -1 defineProperty(WeakMap2.prototype, 'get', function(key) {6185 -1 checkInstance(this, 'get');6186 -1 if (!isObject(key)) {6187 -1 return void 0;6188 -1 }6189 -1 var entry = key[this._id];6190 -1 if (entry && entry[0] === key) {6191 -1 return entry[1];6192 -1 }6193 -1 return void 0;6194 -1 });6195 -1 defineProperty(WeakMap2.prototype, 'has', function(key) {6196 -1 checkInstance(this, 'has');6197 -1 if (!isObject(key)) {6198 -1 return false;6199 -1 }6200 -1 var entry = key[this._id];6201 -1 if (entry && entry[0] === key) {6202 -1 return true;6203 -1 }6204 -1 return false;6205 -1 });6206 -1 defineProperty(WeakMap2.prototype, 'set', function(key, value) {6207 -1 checkInstance(this, 'set');6208 -1 if (!isObject(key)) {6209 -1 throw new TypeError('Invalid value used as weak map key');6210 -1 }6211 -1 var entry = key[this._id];6212 -1 if (entry && entry[0] === key) {6213 -1 entry[1] = value;6214 -1 return this;6215 -1 }6216 -1 defineProperty(key, this._id, [ key, value ]);6217 -1 return this;6218 -1 });6219 -1 function checkInstance(x, methodName) {6220 -1 if (!isObject(x) || !hasOwnProperty2.call(x, '_id')) {6221 -1 throw new TypeError(methodName + ' method called on incompatible receiver ' + _typeof(x));6222 -1 }6223 -1 }6224 -1 function genId(prefix) {6225 -1 return prefix + '_' + rand() + '.' + rand();6226 -1 }6227 -1 function rand() {6228 -1 return Math.random().toString().substring(2);6229 -1 }6230 -1 defineProperty(WeakMap2, '_polyfill', true);6231 -1 return WeakMap2;6232 -1 }();6233 -1 function isObject(x) {6234 -1 return Object(x) === x;6235 -1 }6236 -1 })(typeof globalThis !== 'undefined' ? globalThis : typeof self !== 'undefined' ? self : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : exports);6237 -1 });6238 -1 var require_global = __commonJS(function(exports, module) {6239 -1 'use strict';6240 -1 var check = function check(it) {6241 -1 return it && it.Math === Math && it;-1 5794 process2(Object(options), result); -1 5795 }); -1 5796 return result; 6242 5797 };6243 -1 module.exports = check((typeof globalThis === 'undefined' ? 'undefined' : _typeof(globalThis)) == 'object' && globalThis) || check((typeof window === 'undefined' ? 'undefined' : _typeof(window)) == 'object' && window) || check((typeof self === 'undefined' ? 'undefined' : _typeof(self)) == 'object' && self) || check((typeof global === 'undefined' ? 'undefined' : _typeof(global)) == 'object' && global) || function() {6244 -1 return this;6245 -1 }() || exports || Function('return this')();6246 5798 });6247 -1 var require_fails = __commonJS(function(exports, module) {-1 5799 var require_is_implemented = __commonJS(function(exports, module) { 6248 5800 'use strict';6249 -1 module.exports = function(exec) {6250 -1 try {6251 -1 return !!exec();6252 -1 } catch (error) {6253 -1 return true;-1 5801 module.exports = function() { -1 5802 var sign = Math.sign; -1 5803 if (typeof sign !== 'function') { -1 5804 return false; 6254 5805 } -1 5806 return sign(10) === 1 && sign(-20) === -1; 6255 5807 }; 6256 5808 });6257 -1 var require_function_bind_native = __commonJS(function(exports, module) {-1 5809 var require_shim = __commonJS(function(exports, module) { 6258 5810 'use strict';6259 -1 var fails = require_fails();6260 -1 module.exports = !fails(function() {6261 -1 var test = function() {}.bind();6262 -1 return typeof test != 'function' || test.hasOwnProperty('prototype');6263 -1 });-1 5811 module.exports = function(value) { -1 5812 value = Number(value); -1 5813 if (isNaN(value) || value === 0) { -1 5814 return value; -1 5815 } -1 5816 return value > 0 ? 1 : -1; -1 5817 }; 6264 5818 });6265 -1 var require_function_apply = __commonJS(function(exports, module) {-1 5819 var require_sign = __commonJS(function(exports, module) { 6266 5820 'use strict';6267 -1 var NATIVE_BIND = require_function_bind_native();6268 -1 var FunctionPrototype = Function.prototype;6269 -1 var apply = FunctionPrototype.apply;6270 -1 var call = FunctionPrototype.call;6271 -1 module.exports = (typeof Reflect === 'undefined' ? 'undefined' : _typeof(Reflect)) == 'object' && Reflect.apply || (NATIVE_BIND ? call.bind(apply) : function() {6272 -1 return call.apply(apply, arguments);6273 -1 });-1 5821 module.exports = require_is_implemented()() ? Math.sign : require_shim(); 6274 5822 });6275 -1 var require_function_uncurry_this = __commonJS(function(exports, module) {-1 5823 var require_to_integer = __commonJS(function(exports, module) { 6276 5824 'use strict';6277 -1 var NATIVE_BIND = require_function_bind_native();6278 -1 var FunctionPrototype = Function.prototype;6279 -1 var call = FunctionPrototype.call;6280 -1 var uncurryThisWithBind = NATIVE_BIND && FunctionPrototype.bind.bind(call, call);6281 -1 module.exports = NATIVE_BIND ? uncurryThisWithBind : function(fn) {6282 -1 return function() {6283 -1 return call.apply(fn, arguments);6284 -1 };-1 5825 var sign = require_sign(); -1 5826 var abs = Math.abs; -1 5827 var floor = Math.floor; -1 5828 module.exports = function(value) { -1 5829 if (isNaN(value)) { -1 5830 return 0; -1 5831 } -1 5832 value = Number(value); -1 5833 if (value === 0 || !isFinite(value)) { -1 5834 return value; -1 5835 } -1 5836 return sign(value) * floor(abs(value)); 6285 5837 }; 6286 5838 });6287 -1 var require_classof_raw = __commonJS(function(exports, module) {-1 5839 var require_to_pos_integer = __commonJS(function(exports, module) { 6288 5840 'use strict';6289 -1 var uncurryThis = require_function_uncurry_this();6290 -1 var toString = uncurryThis({}.toString);6291 -1 var stringSlice = uncurryThis(''.slice);6292 -1 module.exports = function(it) {6293 -1 return stringSlice(toString(it), 8, -1);-1 5841 var toInteger = require_to_integer(); -1 5842 var max2 = Math.max; -1 5843 module.exports = function(value) { -1 5844 return max2(0, toInteger(value)); 6294 5845 }; 6295 5846 });6296 -1 var require_function_uncurry_this_clause = __commonJS(function(exports, module) {-1 5847 var require_resolve_length = __commonJS(function(exports, module) { 6297 5848 'use strict';6298 -1 var classofRaw = require_classof_raw();6299 -1 var uncurryThis = require_function_uncurry_this();6300 -1 module.exports = function(fn) {6301 -1 if (classofRaw(fn) === 'Function') {6302 -1 return uncurryThis(fn);-1 5849 var toPosInt = require_to_pos_integer(); -1 5850 module.exports = function(optsLength, fnLength, isAsync) { -1 5851 var length; -1 5852 if (isNaN(optsLength)) { -1 5853 length = fnLength; -1 5854 if (!(length >= 0)) { -1 5855 return 1; -1 5856 } -1 5857 if (isAsync && length) { -1 5858 return length - 1; -1 5859 } -1 5860 return length; -1 5861 } -1 5862 if (optsLength === false) { -1 5863 return false; 6303 5864 } -1 5865 return toPosInt(optsLength); 6304 5866 }; 6305 5867 });6306 -1 var require_document_all = __commonJS(function(exports, module) {-1 5868 var require_valid_callable = __commonJS(function(exports, module) { 6307 5869 'use strict';6308 -1 var documentAll = (typeof document === 'undefined' ? 'undefined' : _typeof(document)) == 'object' && document.all;6309 -1 var IS_HTMLDDA = typeof documentAll == 'undefined' && documentAll !== void 0;6310 -1 module.exports = {6311 -1 all: documentAll,6312 -1 IS_HTMLDDA: IS_HTMLDDA-1 5870 module.exports = function(fn) { -1 5871 if (typeof fn !== 'function') { -1 5872 throw new TypeError(fn + ' is not a function'); -1 5873 } -1 5874 return fn; 6313 5875 }; 6314 5876 });6315 -1 var require_is_callable2 = __commonJS(function(exports, module) {-1 5877 var require_valid_value = __commonJS(function(exports, module) { 6316 5878 'use strict';6317 -1 var $documentAll = require_document_all();6318 -1 var documentAll = $documentAll.all;6319 -1 module.exports = $documentAll.IS_HTMLDDA ? function(argument) {6320 -1 return typeof argument == 'function' || argument === documentAll;6321 -1 } : function(argument) {6322 -1 return typeof argument == 'function';-1 5879 var isValue = require_is_value(); -1 5880 module.exports = function(value) { -1 5881 if (!isValue(value)) { -1 5882 throw new TypeError('Cannot use null or undefined'); -1 5883 } -1 5884 return value; 6323 5885 }; 6324 5886 });6325 -1 var require_descriptors = __commonJS(function(exports, module) {6326 -1 'use strict';6327 -1 var fails = require_fails();6328 -1 module.exports = !fails(function() {6329 -1 return Object.defineProperty({}, 1, {6330 -1 get: function get() {6331 -1 return 7;6332 -1 }6333 -1 })[1] !== 7;6334 -1 });6335 -1 });6336 -1 var require_function_call = __commonJS(function(exports, module) {-1 5887 var require_iterate = __commonJS(function(exports, module) { 6337 5888 'use strict';6338 -1 var NATIVE_BIND = require_function_bind_native();-1 5889 var callable = require_valid_callable(); -1 5890 var value = require_valid_value(); -1 5891 var bind = Function.prototype.bind; 6339 5892 var call = Function.prototype.call;6340 -1 module.exports = NATIVE_BIND ? call.bind(call) : function() {6341 -1 return call.apply(call, arguments);6342 -1 };6343 -1 });6344 -1 var require_object_property_is_enumerable = __commonJS(function(exports) {6345 -1 'use strict';6346 -1 var $propertyIsEnumerable = {}.propertyIsEnumerable;6347 -1 var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;6348 -1 var NASHORN_BUG = getOwnPropertyDescriptor && !$propertyIsEnumerable.call({6349 -1 1: 26350 -1 }, 1);6351 -1 exports.f = NASHORN_BUG ? function propertyIsEnumerable(V) {6352 -1 var descriptor = getOwnPropertyDescriptor(this, V);6353 -1 return !!descriptor && descriptor.enumerable;6354 -1 } : $propertyIsEnumerable;6355 -1 });6356 -1 var require_create_property_descriptor = __commonJS(function(exports, module) {6357 -1 'use strict';6358 -1 module.exports = function(bitmap, value) {6359 -1 return {6360 -1 enumerable: !(bitmap & 1),6361 -1 configurable: !(bitmap & 2),6362 -1 writable: !(bitmap & 4),6363 -1 value: value-1 5893 var keys = Object.keys; -1 5894 var objPropertyIsEnumerable = Object.prototype.propertyIsEnumerable; -1 5895 module.exports = function(method, defVal) { -1 5896 return function(obj, cb) { -1 5897 var list, thisArg = arguments[2], compareFn = arguments[3]; -1 5898 obj = Object(value(obj)); -1 5899 callable(cb); -1 5900 list = keys(obj); -1 5901 if (compareFn) { -1 5902 list.sort(typeof compareFn === 'function' ? bind.call(compareFn, obj) : void 0); -1 5903 } -1 5904 if (typeof method !== 'function') { -1 5905 method = list[method]; -1 5906 } -1 5907 return call.call(method, list, function(key, index) { -1 5908 if (!objPropertyIsEnumerable.call(obj, key)) { -1 5909 return defVal; -1 5910 } -1 5911 return call.call(cb, thisArg, obj[key], key, obj, index); -1 5912 }); 6364 5913 }; 6365 5914 }; 6366 5915 });6367 -1 var require_indexed_object = __commonJS(function(exports, module) {-1 5916 var require_for_each = __commonJS(function(exports, module) { 6368 5917 'use strict';6369 -1 var uncurryThis = require_function_uncurry_this();6370 -1 var fails = require_fails();6371 -1 var classof = require_classof_raw();6372 -1 var $Object = Object;6373 -1 var split = uncurryThis(''.split);6374 -1 module.exports = fails(function() {6375 -1 return !$Object('z').propertyIsEnumerable(0);6376 -1 }) ? function(it) {6377 -1 return classof(it) === 'String' ? split(it, '') : $Object(it);6378 -1 } : $Object;-1 5918 module.exports = require_iterate()('forEach'); 6379 5919 });6380 -1 var require_is_null_or_undefined = __commonJS(function(exports, module) {-1 5920 var require_registered_extensions = __commonJS(function() { 6381 5921 'use strict';6382 -1 module.exports = function(it) {6383 -1 return it === null || it === void 0;6384 -1 };6385 5922 });6386 -1 var require_require_object_coercible = __commonJS(function(exports, module) {-1 5923 var require_is_implemented2 = __commonJS(function(exports, module) { 6387 5924 'use strict';6388 -1 var isNullOrUndefined = require_is_null_or_undefined();6389 -1 var $TypeError = TypeError;6390 -1 module.exports = function(it) {6391 -1 if (isNullOrUndefined(it)) {6392 -1 throw new $TypeError('Can\'t call method on ' + it);-1 5925 module.exports = function() { -1 5926 var assign = Object.assign, obj; -1 5927 if (typeof assign !== 'function') { -1 5928 return false; 6393 5929 }6394 -1 return it;-1 5930 obj = { -1 5931 foo: 'raz' -1 5932 }; -1 5933 assign(obj, { -1 5934 bar: 'dwa' -1 5935 }, { -1 5936 trzy: 'trzy' -1 5937 }); -1 5938 return obj.foo + obj.bar + obj.trzy === 'razdwatrzy'; 6395 5939 }; 6396 5940 });6397 -1 var require_to_indexed_object = __commonJS(function(exports, module) {-1 5941 var require_is_implemented3 = __commonJS(function(exports, module) { 6398 5942 'use strict';6399 -1 var IndexedObject = require_indexed_object();6400 -1 var requireObjectCoercible = require_require_object_coercible();6401 -1 module.exports = function(it) {6402 -1 return IndexedObject(requireObjectCoercible(it));-1 5943 module.exports = function() { -1 5944 try { -1 5945 Object.keys('primitive'); -1 5946 return true; -1 5947 } catch (e) { -1 5948 return false; -1 5949 } 6403 5950 }; 6404 5951 });6405 -1 var require_is_object2 = __commonJS(function(exports, module) {-1 5952 var require_shim2 = __commonJS(function(exports, module) { 6406 5953 'use strict';6407 -1 var isCallable = require_is_callable2();6408 -1 var $documentAll = require_document_all();6409 -1 var documentAll = $documentAll.all;6410 -1 module.exports = $documentAll.IS_HTMLDDA ? function(it) {6411 -1 return _typeof(it) == 'object' ? it !== null : isCallable(it) || it === documentAll;6412 -1 } : function(it) {6413 -1 return _typeof(it) == 'object' ? it !== null : isCallable(it);-1 5954 var isValue = require_is_value(); -1 5955 var keys = Object.keys; -1 5956 module.exports = function(object) { -1 5957 return keys(isValue(object) ? Object(object) : object); 6414 5958 }; 6415 5959 });6416 -1 var require_path = __commonJS(function(exports, module) {-1 5960 var require_keys = __commonJS(function(exports, module) { 6417 5961 'use strict';6418 -1 module.exports = {};-1 5962 module.exports = require_is_implemented3()() ? Object.keys : require_shim2(); 6419 5963 });6420 -1 var require_get_built_in = __commonJS(function(exports, module) {-1 5964 var require_shim3 = __commonJS(function(exports, module) { 6421 5965 'use strict';6422 -1 var path = require_path();6423 -1 var global2 = require_global();6424 -1 var isCallable = require_is_callable2();6425 -1 var aFunction = function aFunction(variable) {6426 -1 return isCallable(variable) ? variable : void 0;6427 -1 };6428 -1 module.exports = function(namespace, method) {6429 -1 return arguments.length < 2 ? aFunction(path[namespace]) || aFunction(global2[namespace]) : path[namespace] && path[namespace][method] || global2[namespace] && global2[namespace][method];-1 5966 var keys = require_keys(); -1 5967 var value = require_valid_value(); -1 5968 var max2 = Math.max; -1 5969 module.exports = function(dest, src) { -1 5970 var error, i, length = max2(arguments.length, 2), assign; -1 5971 dest = Object(value(dest)); -1 5972 assign = function assign(key) { -1 5973 try { -1 5974 dest[key] = src[key]; -1 5975 } catch (e) { -1 5976 if (!error) { -1 5977 error = e; -1 5978 } -1 5979 } -1 5980 }; -1 5981 for (i = 1; i < length; ++i) { -1 5982 src = arguments[i]; -1 5983 keys(src).forEach(assign); -1 5984 } -1 5985 if (error !== void 0) { -1 5986 throw error; -1 5987 } -1 5988 return dest; 6430 5989 }; 6431 5990 });6432 -1 var require_object_is_prototype_of = __commonJS(function(exports, module) {-1 5991 var require_assign = __commonJS(function(exports, module) { 6433 5992 'use strict';6434 -1 var uncurryThis = require_function_uncurry_this();6435 -1 module.exports = uncurryThis({}.isPrototypeOf);-1 5993 module.exports = require_is_implemented2()() ? Object.assign : require_shim3(); 6436 5994 });6437 -1 var require_engine_user_agent = __commonJS(function(exports, module) {-1 5995 var require_is_object2 = __commonJS(function(exports, module) { 6438 5996 'use strict';6439 -1 module.exports = typeof navigator != 'undefined' && String(navigator.userAgent) || '';-1 5997 var isValue = require_is_value(); -1 5998 var map = { -1 5999 function: true, -1 6000 object: true -1 6001 }; -1 6002 module.exports = function(value) { -1 6003 return isValue(value) && map[_typeof(value)] || false; -1 6004 }; 6440 6005 });6441 -1 var require_engine_v8_version = __commonJS(function(exports, module) {-1 6006 var require_custom = __commonJS(function(exports, module) { 6442 6007 'use strict';6443 -1 var global2 = require_global();6444 -1 var userAgent = require_engine_user_agent();6445 -1 var process2 = global2.process;6446 -1 var Deno = global2.Deno;6447 -1 var versions = process2 && process2.versions || Deno && Deno.version;6448 -1 var v8 = versions && versions.v8;6449 -1 var match;6450 -1 var version;6451 -1 if (v8) {6452 -1 match = v8.split('.');6453 -1 version = match[0] > 0 && match[0] < 4 ? 1 : +(match[0] + match[1]);6454 -1 }6455 -1 if (!version && userAgent) {6456 -1 match = userAgent.match(/Edge\/(\d+)/);6457 -1 if (!match || match[1] >= 74) {6458 -1 match = userAgent.match(/Chrome\/(\d+)/);6459 -1 if (match) {6460 -1 version = +match[1];-1 6008 var assign = require_assign(); -1 6009 var isObject = require_is_object2(); -1 6010 var isValue = require_is_value(); -1 6011 var captureStackTrace = Error.captureStackTrace; -1 6012 module.exports = function(message) { -1 6013 var err2 = new Error(message), code = arguments[1], ext = arguments[2]; -1 6014 if (!isValue(ext)) { -1 6015 if (isObject(code)) { -1 6016 ext = code; -1 6017 code = null; 6461 6018 } 6462 6019 }6463 -1 }6464 -1 module.exports = version;6465 -1 });6466 -1 var require_symbol_constructor_detection = __commonJS(function(exports, module) {6467 -1 'use strict';6468 -1 var V8_VERSION = require_engine_v8_version();6469 -1 var fails = require_fails();6470 -1 var global2 = require_global();6471 -1 var $String = global2.String;6472 -1 module.exports = !!Object.getOwnPropertySymbols && !fails(function() {6473 -1 var symbol = Symbol('symbol detection');6474 -1 return !$String(symbol) || !(Object(symbol) instanceof Symbol) || !Symbol.sham && V8_VERSION && V8_VERSION < 41;6475 -1 });6476 -1 });6477 -1 var require_use_symbol_as_uid = __commonJS(function(exports, module) {6478 -1 'use strict';6479 -1 var NATIVE_SYMBOL = require_symbol_constructor_detection();6480 -1 module.exports = NATIVE_SYMBOL && !Symbol.sham && _typeof(Symbol.iterator) == 'symbol';-1 6020 if (isValue(ext)) { -1 6021 assign(err2, ext); -1 6022 } -1 6023 if (isValue(code)) { -1 6024 err2.code = code; -1 6025 } -1 6026 if (captureStackTrace) { -1 6027 captureStackTrace(err2, module.exports); -1 6028 } -1 6029 return err2; -1 6030 }; 6481 6031 });6482 -1 var require_is_symbol2 = __commonJS(function(exports, module) {-1 6032 var require_mixin = __commonJS(function(exports, module) { 6483 6033 'use strict';6484 -1 var getBuiltIn = require_get_built_in();6485 -1 var isCallable = require_is_callable2();6486 -1 var isPrototypeOf = require_object_is_prototype_of();6487 -1 var USE_SYMBOL_AS_UID = require_use_symbol_as_uid();6488 -1 var $Object = Object;6489 -1 module.exports = USE_SYMBOL_AS_UID ? function(it) {6490 -1 return _typeof(it) == 'symbol';6491 -1 } : function(it) {6492 -1 var $Symbol = getBuiltIn('Symbol');6493 -1 return isCallable($Symbol) && isPrototypeOf($Symbol.prototype, $Object(it));6494 -1 };6495 -1 });6496 -1 var require_try_to_string = __commonJS(function(exports, module) {6497 -1 'use strict';6498 -1 var $String = String;6499 -1 module.exports = function(argument) {6500 -1 try {6501 -1 return $String(argument);6502 -1 } catch (error) {6503 -1 return 'Object';-1 6034 var value = require_valid_value(); -1 6035 var defineProperty = Object.defineProperty; -1 6036 var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor; -1 6037 var getOwnPropertyNames = Object.getOwnPropertyNames; -1 6038 var getOwnPropertySymbols = Object.getOwnPropertySymbols; -1 6039 module.exports = function(target, source) { -1 6040 var error, sourceObject = Object(value(source)); -1 6041 target = Object(value(target)); -1 6042 getOwnPropertyNames(sourceObject).forEach(function(name) { -1 6043 try { -1 6044 defineProperty(target, name, getOwnPropertyDescriptor(source, name)); -1 6045 } catch (e) { -1 6046 error = e; -1 6047 } -1 6048 }); -1 6049 if (typeof getOwnPropertySymbols === 'function') { -1 6050 getOwnPropertySymbols(sourceObject).forEach(function(symbol) { -1 6051 try { -1 6052 defineProperty(target, symbol, getOwnPropertyDescriptor(source, symbol)); -1 6053 } catch (e) { -1 6054 error = e; -1 6055 } -1 6056 }); -1 6057 } -1 6058 if (error !== void 0) { -1 6059 throw error; 6504 6060 } -1 6061 return target; 6505 6062 }; 6506 6063 });6507 -1 var require_a_callable = __commonJS(function(exports, module) {-1 6064 var require_define_length = __commonJS(function(exports, module) { 6508 6065 'use strict';6509 -1 var isCallable = require_is_callable2();6510 -1 var tryToString = require_try_to_string();6511 -1 var $TypeError = TypeError;6512 -1 module.exports = function(argument) {6513 -1 if (isCallable(argument)) {6514 -1 return argument;6515 -1 }6516 -1 throw new $TypeError(tryToString(argument) + ' is not a function');-1 6066 var toPosInt = require_to_pos_integer(); -1 6067 var test = function test(arg1, arg2) { -1 6068 return arg2; 6517 6069 }; -1 6070 var desc; -1 6071 var defineProperty; -1 6072 var generate; -1 6073 var mixin; -1 6074 try { -1 6075 Object.defineProperty(test, 'length', { -1 6076 configurable: true, -1 6077 writable: false, -1 6078 enumerable: false, -1 6079 value: 1 -1 6080 }); -1 6081 } catch (ignore) {} -1 6082 if (test.length === 1) { -1 6083 desc = { -1 6084 configurable: true, -1 6085 writable: false, -1 6086 enumerable: false -1 6087 }; -1 6088 defineProperty = Object.defineProperty; -1 6089 module.exports = function(fn, length) { -1 6090 length = toPosInt(length); -1 6091 if (fn.length === length) { -1 6092 return fn; -1 6093 } -1 6094 desc.value = length; -1 6095 return defineProperty(fn, 'length', desc); -1 6096 }; -1 6097 } else { -1 6098 mixin = require_mixin(); -1 6099 generate = function() { -1 6100 var cache2 = []; -1 6101 return function(length) { -1 6102 var args, i = 0; -1 6103 if (cache2[length]) { -1 6104 return cache2[length]; -1 6105 } -1 6106 args = []; -1 6107 while (length--) { -1 6108 args.push('a' + (++i).toString(36)); -1 6109 } -1 6110 return new Function('fn', 'return function (' + args.join(', ') + ') { return fn.apply(this, arguments); };'); -1 6111 }; -1 6112 }(); -1 6113 module.exports = function(src, length) { -1 6114 var target; -1 6115 length = toPosInt(length); -1 6116 if (src.length === length) { -1 6117 return src; -1 6118 } -1 6119 target = generate(length)(src); -1 6120 try { -1 6121 mixin(target, src); -1 6122 } catch (ignore) {} -1 6123 return target; -1 6124 }; -1 6125 } 6518 6126 });6519 -1 var require_get_method = __commonJS(function(exports, module) {-1 6127 var require_is = __commonJS(function(exports, module) { 6520 6128 'use strict';6521 -1 var aCallable = require_a_callable();6522 -1 var isNullOrUndefined = require_is_null_or_undefined();6523 -1 module.exports = function(V, P) {6524 -1 var func = V[P];6525 -1 return isNullOrUndefined(func) ? void 0 : aCallable(func);-1 6129 var _undefined = void 0; -1 6130 module.exports = function(value) { -1 6131 return value !== _undefined && value !== null; 6526 6132 }; 6527 6133 });6528 -1 var require_ordinary_to_primitive = __commonJS(function(exports, module) {-1 6134 var require_is2 = __commonJS(function(exports, module) { 6529 6135 'use strict';6530 -1 var call = require_function_call();6531 -1 var isCallable = require_is_callable2();6532 -1 var isObject = require_is_object2();6533 -1 var $TypeError = TypeError;6534 -1 module.exports = function(input, pref) {6535 -1 var fn, val;6536 -1 if (pref === 'string' && isCallable(fn = input.toString) && !isObject(val = call(fn, input))) {6537 -1 return val;6538 -1 }6539 -1 if (isCallable(fn = input.valueOf) && !isObject(val = call(fn, input))) {6540 -1 return val;6541 -1 }6542 -1 if (pref !== 'string' && isCallable(fn = input.toString) && !isObject(val = call(fn, input))) {6543 -1 return val;-1 6136 var isValue = require_is(); -1 6137 var possibleTypes = { -1 6138 object: true, -1 6139 function: true, -1 6140 undefined: true -1 6141 }; -1 6142 module.exports = function(value) { -1 6143 if (!isValue(value)) { -1 6144 return false; 6544 6145 }6545 -1 throw new $TypeError('Can\'t convert object to primitive value');-1 6146 return hasOwnProperty.call(possibleTypes, _typeof(value)); 6546 6147 }; 6547 6148 });6548 -1 var require_is_pure = __commonJS(function(exports, module) {6549 -1 'use strict';6550 -1 module.exports = true;6551 -1 });6552 -1 var require_define_global_property = __commonJS(function(exports, module) {-1 6149 var require_is3 = __commonJS(function(exports, module) { 6553 6150 'use strict';6554 -1 var global2 = require_global();6555 -1 var defineProperty = Object.defineProperty;6556 -1 module.exports = function(key, value) {-1 6151 var isObject = require_is2(); -1 6152 module.exports = function(value) { -1 6153 if (!isObject(value)) { -1 6154 return false; -1 6155 } 6557 6156 try {6558 -1 defineProperty(global2, key, {6559 -1 value: value,6560 -1 configurable: true,6561 -1 writable: true6562 -1 });-1 6157 if (!value.constructor) { -1 6158 return false; -1 6159 } -1 6160 return value.constructor.prototype === value; 6563 6161 } catch (error) {6564 -1 global2[key] = value;-1 6162 return false; 6565 6163 }6566 -1 return value;6567 -1 };6568 -1 });6569 -1 var require_shared_store = __commonJS(function(exports, module) {6570 -1 'use strict';6571 -1 var global2 = require_global();6572 -1 var defineGlobalProperty = require_define_global_property();6573 -1 var SHARED = '__core-js_shared__';6574 -1 var store = global2[SHARED] || defineGlobalProperty(SHARED, {});6575 -1 module.exports = store;6576 -1 });6577 -1 var require_shared = __commonJS(function(exports, module) {6578 -1 'use strict';6579 -1 var IS_PURE = require_is_pure();6580 -1 var store = require_shared_store();6581 -1 (module.exports = function(key, value) {6582 -1 return store[key] || (store[key] = value !== void 0 ? value : {});6583 -1 })('versions', []).push({6584 -1 version: '3.33.0',6585 -1 mode: IS_PURE ? 'pure' : 'global',6586 -1 copyright: '\xa9 2014-2023 Denis Pushkarev (zloirock.ru)',6587 -1 license: 'https://github.com/zloirock/core-js/blob/v3.33.0/LICENSE',6588 -1 source: 'https://github.com/zloirock/core-js'6589 -1 });6590 -1 });6591 -1 var require_to_object = __commonJS(function(exports, module) {6592 -1 'use strict';6593 -1 var requireObjectCoercible = require_require_object_coercible();6594 -1 var $Object = Object;6595 -1 module.exports = function(argument) {6596 -1 return $Object(requireObjectCoercible(argument));6597 -1 };6598 -1 });6599 -1 var require_has_own_property = __commonJS(function(exports, module) {6600 -1 'use strict';6601 -1 var uncurryThis = require_function_uncurry_this();6602 -1 var toObject = require_to_object();6603 -1 var hasOwnProperty2 = uncurryThis({}.hasOwnProperty);6604 -1 module.exports = Object.hasOwn || function hasOwn2(it, key) {6605 -1 return hasOwnProperty2(toObject(it), key);6606 -1 };6607 -1 });6608 -1 var require_uid = __commonJS(function(exports, module) {6609 -1 'use strict';6610 -1 var uncurryThis = require_function_uncurry_this();6611 -1 var id = 0;6612 -1 var postfix = Math.random();6613 -1 var toString = uncurryThis(1..toString);6614 -1 module.exports = function(key) {6615 -1 return 'Symbol(' + (key === void 0 ? '' : key) + ')_' + toString(++id + postfix, 36);6616 6164 }; 6617 6165 });6618 -1 var require_well_known_symbol = __commonJS(function(exports, module) {-1 6166 var require_is4 = __commonJS(function(exports, module) { 6619 6167 'use strict';6620 -1 var global2 = require_global();6621 -1 var shared = require_shared();6622 -1 var hasOwn2 = require_has_own_property();6623 -1 var uid = require_uid();6624 -1 var NATIVE_SYMBOL = require_symbol_constructor_detection();6625 -1 var USE_SYMBOL_AS_UID = require_use_symbol_as_uid();6626 -1 var Symbol2 = global2.Symbol;6627 -1 var WellKnownSymbolsStore = shared('wks');6628 -1 var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol2['for'] || Symbol2 : Symbol2 && Symbol2.withoutSetter || uid;6629 -1 module.exports = function(name) {6630 -1 if (!hasOwn2(WellKnownSymbolsStore, name)) {6631 -1 WellKnownSymbolsStore[name] = NATIVE_SYMBOL && hasOwn2(Symbol2, name) ? Symbol2[name] : createWellKnownSymbol('Symbol.' + name);-1 6168 var isPrototype = require_is3(); -1 6169 module.exports = function(value) { -1 6170 if (typeof value !== 'function') { -1 6171 return false; 6632 6172 }6633 -1 return WellKnownSymbolsStore[name];6634 -1 };6635 -1 });6636 -1 var require_to_primitive = __commonJS(function(exports, module) {6637 -1 'use strict';6638 -1 var call = require_function_call();6639 -1 var isObject = require_is_object2();6640 -1 var isSymbol = require_is_symbol2();6641 -1 var getMethod = require_get_method();6642 -1 var ordinaryToPrimitive = require_ordinary_to_primitive();6643 -1 var wellKnownSymbol = require_well_known_symbol();6644 -1 var $TypeError = TypeError;6645 -1 var TO_PRIMITIVE = wellKnownSymbol('toPrimitive');6646 -1 module.exports = function(input, pref) {6647 -1 if (!isObject(input) || isSymbol(input)) {6648 -1 return input;-1 6173 if (!hasOwnProperty.call(value, 'length')) { -1 6174 return false; 6649 6175 }6650 -1 var exoticToPrim = getMethod(input, TO_PRIMITIVE);6651 -1 var result;6652 -1 if (exoticToPrim) {6653 -1 if (pref === void 0) {6654 -1 pref = 'default';-1 6176 try { -1 6177 if (typeof value.length !== 'number') { -1 6178 return false; 6655 6179 }6656 -1 result = call(exoticToPrim, input, pref);6657 -1 if (!isObject(result) || isSymbol(result)) {6658 -1 return result;-1 6180 if (typeof value.call !== 'function') { -1 6181 return false; 6659 6182 }6660 -1 throw new $TypeError('Can\'t convert object to primitive value');6661 -1 }6662 -1 if (pref === void 0) {6663 -1 pref = 'number';-1 6183 if (typeof value.apply !== 'function') { -1 6184 return false; -1 6185 } -1 6186 } catch (error) { -1 6187 return false; 6664 6188 }6665 -1 return ordinaryToPrimitive(input, pref);6666 -1 };6667 -1 });6668 -1 var require_to_property_key = __commonJS(function(exports, module) {6669 -1 'use strict';6670 -1 var toPrimitive = require_to_primitive();6671 -1 var isSymbol = require_is_symbol2();6672 -1 module.exports = function(argument) {6673 -1 var key = toPrimitive(argument, 'string');6674 -1 return isSymbol(key) ? key : key + '';6675 -1 };6676 -1 });6677 -1 var require_document_create_element = __commonJS(function(exports, module) {6678 -1 'use strict';6679 -1 var global2 = require_global();6680 -1 var isObject = require_is_object2();6681 -1 var document2 = global2.document;6682 -1 var EXISTS = isObject(document2) && isObject(document2.createElement);6683 -1 module.exports = function(it) {6684 -1 return EXISTS ? document2.createElement(it) : {};-1 6189 return !isPrototype(value); 6685 6190 }; 6686 6191 });6687 -1 var require_ie8_dom_define = __commonJS(function(exports, module) {6688 -1 'use strict';6689 -1 var DESCRIPTORS = require_descriptors();6690 -1 var fails = require_fails();6691 -1 var createElement = require_document_create_element();6692 -1 module.exports = !DESCRIPTORS && !fails(function() {6693 -1 return Object.defineProperty(createElement('div'), 'a', {6694 -1 get: function get() {6695 -1 return 7;6696 -1 }6697 -1 }).a !== 7;6698 -1 });6699 -1 });6700 -1 var require_object_get_own_property_descriptor = __commonJS(function(exports) {-1 6192 var require_is5 = __commonJS(function(exports, module) { 6701 6193 'use strict';6702 -1 var DESCRIPTORS = require_descriptors();6703 -1 var call = require_function_call();6704 -1 var propertyIsEnumerableModule = require_object_property_is_enumerable();6705 -1 var createPropertyDescriptor = require_create_property_descriptor();6706 -1 var toIndexedObject = require_to_indexed_object();6707 -1 var toPropertyKey = require_to_property_key();6708 -1 var hasOwn2 = require_has_own_property();6709 -1 var IE8_DOM_DEFINE = require_ie8_dom_define();6710 -1 var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;6711 -1 exports.f = DESCRIPTORS ? $getOwnPropertyDescriptor : function getOwnPropertyDescriptor(O, P) {6712 -1 O = toIndexedObject(O);6713 -1 P = toPropertyKey(P);6714 -1 if (IE8_DOM_DEFINE) {6715 -1 try {6716 -1 return $getOwnPropertyDescriptor(O, P);6717 -1 } catch (error) {}-1 6194 var isFunction = require_is4(); -1 6195 var classRe = /^\s*class[\s{/}]/; -1 6196 var functionToString = Function.prototype.toString; -1 6197 module.exports = function(value) { -1 6198 if (!isFunction(value)) { -1 6199 return false; 6718 6200 }6719 -1 if (hasOwn2(O, P)) {6720 -1 return createPropertyDescriptor(!call(propertyIsEnumerableModule.f, O, P), O[P]);-1 6201 if (classRe.test(functionToString.call(value))) { -1 6202 return false; 6721 6203 } -1 6204 return true; 6722 6205 }; 6723 6206 });6724 -1 var require_is_forced = __commonJS(function(exports, module) {-1 6207 var require_is_implemented4 = __commonJS(function(exports, module) { 6725 6208 'use strict';6726 -1 var fails = require_fails();6727 -1 var isCallable = require_is_callable2();6728 -1 var replacement = /#|\.prototype\./;6729 -1 var isForced = function isForced(feature, detection) {6730 -1 var value = data[normalize(feature)];6731 -1 return value === POLYFILL ? true : value === NATIVE ? false : isCallable(detection) ? fails(detection) : !!detection;6732 -1 };6733 -1 var normalize = isForced.normalize = function(string) {6734 -1 return String(string).replace(replacement, '.').toLowerCase();-1 6209 var str = 'razdwatrzy'; -1 6210 module.exports = function() { -1 6211 if (typeof str.contains !== 'function') { -1 6212 return false; -1 6213 } -1 6214 return str.contains('dwa') === true && str.contains('foo') === false; 6735 6215 };6736 -1 var data = isForced.data = {};6737 -1 var NATIVE = isForced.NATIVE = 'N';6738 -1 var POLYFILL = isForced.POLYFILL = 'P';6739 -1 module.exports = isForced;6740 6216 });6741 -1 var require_function_bind_context = __commonJS(function(exports, module) {-1 6217 var require_shim4 = __commonJS(function(exports, module) { 6742 6218 'use strict';6743 -1 var uncurryThis = require_function_uncurry_this_clause();6744 -1 var aCallable = require_a_callable();6745 -1 var NATIVE_BIND = require_function_bind_native();6746 -1 var bind = uncurryThis(uncurryThis.bind);6747 -1 module.exports = function(fn, that) {6748 -1 aCallable(fn);6749 -1 return that === void 0 ? fn : NATIVE_BIND ? bind(fn, that) : function() {6750 -1 return fn.apply(that, arguments);6751 -1 };-1 6219 var indexOf = String.prototype.indexOf; -1 6220 module.exports = function(searchString) { -1 6221 return indexOf.call(this, searchString, arguments[1]) > -1; 6752 6222 }; 6753 6223 });6754 -1 var require_v8_prototype_define_bug = __commonJS(function(exports, module) {-1 6224 var require_contains = __commonJS(function(exports, module) { 6755 6225 'use strict';6756 -1 var DESCRIPTORS = require_descriptors();6757 -1 var fails = require_fails();6758 -1 module.exports = DESCRIPTORS && fails(function() {6759 -1 return Object.defineProperty(function() {}, 'prototype', {6760 -1 value: 42,6761 -1 writable: false6762 -1 }).prototype !== 42;6763 -1 });-1 6226 module.exports = require_is_implemented4()() ? String.prototype.contains : require_shim4(); 6764 6227 });6765 -1 var require_an_object = __commonJS(function(exports, module) {-1 6228 var require_d = __commonJS(function(exports, module) { 6766 6229 'use strict';6767 -1 var isObject = require_is_object2();6768 -1 var $String = String;6769 -1 var $TypeError = TypeError;6770 -1 module.exports = function(argument) {6771 -1 if (isObject(argument)) {6772 -1 return argument;-1 6230 var isValue = require_is(); -1 6231 var isPlainFunction = require_is5(); -1 6232 var assign = require_assign(); -1 6233 var normalizeOpts = require_normalize_options(); -1 6234 var contains3 = require_contains(); -1 6235 var d2 = module.exports = function(dscr, value) { -1 6236 var c4, e, w, options, desc; -1 6237 if (arguments.length < 2 || typeof dscr !== 'string') { -1 6238 options = value; -1 6239 value = dscr; -1 6240 dscr = null; -1 6241 } else { -1 6242 options = arguments[2]; 6773 6243 }6774 -1 throw new $TypeError($String(argument) + ' is not an object');6775 -1 };6776 -1 });6777 -1 var require_object_define_property = __commonJS(function(exports) {6778 -1 'use strict';6779 -1 var DESCRIPTORS = require_descriptors();6780 -1 var IE8_DOM_DEFINE = require_ie8_dom_define();6781 -1 var V8_PROTOTYPE_DEFINE_BUG = require_v8_prototype_define_bug();6782 -1 var anObject = require_an_object();6783 -1 var toPropertyKey = require_to_property_key();6784 -1 var $TypeError = TypeError;6785 -1 var $defineProperty = Object.defineProperty;6786 -1 var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;6787 -1 var ENUMERABLE = 'enumerable';6788 -1 var CONFIGURABLE = 'configurable';6789 -1 var WRITABLE = 'writable';6790 -1 exports.f = DESCRIPTORS ? V8_PROTOTYPE_DEFINE_BUG ? function defineProperty(O, P, Attributes) {6791 -1 anObject(O);6792 -1 P = toPropertyKey(P);6793 -1 anObject(Attributes);6794 -1 if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {6795 -1 var current = $getOwnPropertyDescriptor(O, P);6796 -1 if (current && current[WRITABLE]) {6797 -1 O[P] = Attributes.value;6798 -1 Attributes = {6799 -1 configurable: CONFIGURABLE in Attributes ? Attributes[CONFIGURABLE] : current[CONFIGURABLE],6800 -1 enumerable: ENUMERABLE in Attributes ? Attributes[ENUMERABLE] : current[ENUMERABLE],6801 -1 writable: false6802 -1 };6803 -1 }-1 6244 if (isValue(dscr)) { -1 6245 c4 = contains3.call(dscr, 'c'); -1 6246 e = contains3.call(dscr, 'e'); -1 6247 w = contains3.call(dscr, 'w'); -1 6248 } else { -1 6249 c4 = w = true; -1 6250 e = false; 6804 6251 }6805 -1 return $defineProperty(O, P, Attributes);6806 -1 } : $defineProperty : function defineProperty(O, P, Attributes) {6807 -1 anObject(O);6808 -1 P = toPropertyKey(P);6809 -1 anObject(Attributes);6810 -1 if (IE8_DOM_DEFINE) {6811 -1 try {6812 -1 return $defineProperty(O, P, Attributes);6813 -1 } catch (error) {}-1 6252 desc = { -1 6253 value: value, -1 6254 configurable: c4, -1 6255 enumerable: e, -1 6256 writable: w -1 6257 }; -1 6258 return !options ? desc : assign(normalizeOpts(options), desc); -1 6259 }; -1 6260 d2.gs = function(dscr, get2, set2) { -1 6261 var c4, e, options, desc; -1 6262 if (typeof dscr !== 'string') { -1 6263 options = set2; -1 6264 set2 = get2; -1 6265 get2 = dscr; -1 6266 dscr = null; -1 6267 } else { -1 6268 options = arguments[3]; 6814 6269 }6815 -1 if ('get' in Attributes || 'set' in Attributes) {6816 -1 throw new $TypeError('Accessors not supported');-1 6270 if (!isValue(get2)) { -1 6271 get2 = void 0; -1 6272 } else if (!isPlainFunction(get2)) { -1 6273 options = get2; -1 6274 get2 = set2 = void 0; -1 6275 } else if (!isValue(set2)) { -1 6276 set2 = void 0; -1 6277 } else if (!isPlainFunction(set2)) { -1 6278 options = set2; -1 6279 set2 = void 0; 6817 6280 }6818 -1 if ('value' in Attributes) {6819 -1 O[P] = Attributes.value;-1 6281 if (isValue(dscr)) { -1 6282 c4 = contains3.call(dscr, 'c'); -1 6283 e = contains3.call(dscr, 'e'); -1 6284 } else { -1 6285 c4 = true; -1 6286 e = false; 6820 6287 }6821 -1 return O;-1 6288 desc = { -1 6289 get: get2, -1 6290 set: set2, -1 6291 configurable: c4, -1 6292 enumerable: e -1 6293 }; -1 6294 return !options ? desc : assign(normalizeOpts(options), desc); 6822 6295 }; 6823 6296 });6824 -1 var require_create_non_enumerable_property = __commonJS(function(exports, module) {-1 6297 var require_event_emitter = __commonJS(function(exports, module) { 6825 6298 'use strict';6826 -1 var DESCRIPTORS = require_descriptors();6827 -1 var definePropertyModule = require_object_define_property();6828 -1 var createPropertyDescriptor = require_create_property_descriptor();6829 -1 module.exports = DESCRIPTORS ? function(object, key, value) {6830 -1 return definePropertyModule.f(object, key, createPropertyDescriptor(1, value));6831 -1 } : function(object, key, value) {6832 -1 object[key] = value;6833 -1 return object;-1 6299 var d2 = require_d(); -1 6300 var callable = require_valid_callable(); -1 6301 var apply = Function.prototype.apply; -1 6302 var call = Function.prototype.call; -1 6303 var create = Object.create; -1 6304 var defineProperty = Object.defineProperty; -1 6305 var defineProperties = Object.defineProperties; -1 6306 var hasOwnProperty2 = Object.prototype.hasOwnProperty; -1 6307 var descriptor = { -1 6308 configurable: true, -1 6309 enumerable: false, -1 6310 writable: true 6834 6311 };6835 -1 });6836 -1 var require_export = __commonJS(function(exports, module) {6837 -1 'use strict';6838 -1 var global2 = require_global();6839 -1 var apply = require_function_apply();6840 -1 var uncurryThis = require_function_uncurry_this_clause();6841 -1 var isCallable = require_is_callable2();6842 -1 var getOwnPropertyDescriptor = require_object_get_own_property_descriptor().f;6843 -1 var isForced = require_is_forced();6844 -1 var path = require_path();6845 -1 var bind = require_function_bind_context();6846 -1 var createNonEnumerableProperty = require_create_non_enumerable_property();6847 -1 var hasOwn2 = require_has_own_property();6848 -1 var wrapConstructor = function wrapConstructor(NativeConstructor) {6849 -1 var _Wrapper = function Wrapper(a2, b2, c4) {6850 -1 if (this instanceof _Wrapper) {6851 -1 switch (arguments.length) {6852 -1 case 0:6853 -1 return new NativeConstructor();6854 -16855 -1 case 1:6856 -1 return new NativeConstructor(a2);6857 -16858 -1 case 2:6859 -1 return new NativeConstructor(a2, b2);6860 -1 }6861 -1 return new NativeConstructor(a2, b2, c4);6862 -1 }6863 -1 return apply(NativeConstructor, this, arguments);6864 -1 };6865 -1 _Wrapper.prototype = NativeConstructor.prototype;6866 -1 return _Wrapper;-1 6312 var on; -1 6313 var once; -1 6314 var off; -1 6315 var emit; -1 6316 var methods; -1 6317 var descriptors; -1 6318 var base; -1 6319 on = function on(type2, listener) { -1 6320 var data; -1 6321 callable(listener); -1 6322 if (!hasOwnProperty2.call(this, '__ee__')) { -1 6323 data = descriptor.value = create(null); -1 6324 defineProperty(this, '__ee__', descriptor); -1 6325 descriptor.value = null; -1 6326 } else { -1 6327 data = this.__ee__; -1 6328 } -1 6329 if (!data[type2]) { -1 6330 data[type2] = listener; -1 6331 } else if (_typeof(data[type2]) === 'object') { -1 6332 data[type2].push(listener); -1 6333 } else { -1 6334 data[type2] = [ data[type2], listener ]; -1 6335 } -1 6336 return this; 6867 6337 };6868 -1 module.exports = function(options, source) {6869 -1 var TARGET = options.target;6870 -1 var GLOBAL = options.global;6871 -1 var STATIC = options.stat;6872 -1 var PROTO = options.proto;6873 -1 var nativeSource = GLOBAL ? global2 : STATIC ? global2[TARGET] : (global2[TARGET] || {}).prototype;6874 -1 var target = GLOBAL ? path : path[TARGET] || createNonEnumerableProperty(path, TARGET, {})[TARGET];6875 -1 var targetPrototype = target.prototype;6876 -1 var FORCED, USE_NATIVE, VIRTUAL_PROTOTYPE;6877 -1 var key, sourceProperty, targetProperty, nativeProperty, resultProperty, descriptor;6878 -1 for (key in source) {6879 -1 FORCED = isForced(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);6880 -1 USE_NATIVE = !FORCED && nativeSource && hasOwn2(nativeSource, key);6881 -1 targetProperty = target[key];6882 -1 if (USE_NATIVE) {6883 -1 if (options.dontCallGetSet) {6884 -1 descriptor = getOwnPropertyDescriptor(nativeSource, key);6885 -1 nativeProperty = descriptor && descriptor.value;6886 -1 } else {6887 -1 nativeProperty = nativeSource[key];-1 6338 once = function once(type2, listener) { -1 6339 var _once, self2; -1 6340 callable(listener); -1 6341 self2 = this; -1 6342 on.call(this, type2, _once = function once2() { -1 6343 off.call(self2, type2, _once); -1 6344 apply.call(listener, this, arguments); -1 6345 }); -1 6346 _once.__eeOnceListener__ = listener; -1 6347 return this; -1 6348 }; -1 6349 off = function off(type2, listener) { -1 6350 var data, listeners, candidate, i; -1 6351 callable(listener); -1 6352 if (!hasOwnProperty2.call(this, '__ee__')) { -1 6353 return this; -1 6354 } -1 6355 data = this.__ee__; -1 6356 if (!data[type2]) { -1 6357 return this; -1 6358 } -1 6359 listeners = data[type2]; -1 6360 if (_typeof(listeners) === 'object') { -1 6361 for (i = 0; candidate = listeners[i]; ++i) { -1 6362 if (candidate === listener || candidate.__eeOnceListener__ === listener) { -1 6363 if (listeners.length === 2) { -1 6364 data[type2] = listeners[i ? 0 : 1]; -1 6365 } else { -1 6366 listeners.splice(i, 1); -1 6367 } 6888 6368 } 6889 6369 }6890 -1 sourceProperty = USE_NATIVE && nativeProperty ? nativeProperty : source[key];6891 -1 if (USE_NATIVE && _typeof(targetProperty) == _typeof(sourceProperty)) {6892 -1 continue;-1 6370 } else { -1 6371 if (listeners === listener || listeners.__eeOnceListener__ === listener) { -1 6372 delete data[type2]; 6893 6373 }6894 -1 if (options.bind && USE_NATIVE) {6895 -1 resultProperty = bind(sourceProperty, global2);6896 -1 } else if (options.wrap && USE_NATIVE) {6897 -1 resultProperty = wrapConstructor(sourceProperty);6898 -1 } else if (PROTO && isCallable(sourceProperty)) {6899 -1 resultProperty = uncurryThis(sourceProperty);6900 -1 } else {6901 -1 resultProperty = sourceProperty;-1 6374 } -1 6375 return this; -1 6376 }; -1 6377 emit = function emit(type2) { -1 6378 var i, l, listener, listeners, args; -1 6379 if (!hasOwnProperty2.call(this, '__ee__')) { -1 6380 return; -1 6381 } -1 6382 listeners = this.__ee__[type2]; -1 6383 if (!listeners) { -1 6384 return; -1 6385 } -1 6386 if (_typeof(listeners) === 'object') { -1 6387 l = arguments.length; -1 6388 args = new Array(l - 1); -1 6389 for (i = 1; i < l; ++i) { -1 6390 args[i - 1] = arguments[i]; 6902 6391 }6903 -1 if (options.sham || sourceProperty && sourceProperty.sham || targetProperty && targetProperty.sham) {6904 -1 createNonEnumerableProperty(resultProperty, 'sham', true);-1 6392 listeners = listeners.slice(); -1 6393 for (i = 0; listener = listeners[i]; ++i) { -1 6394 apply.call(listener, this, args); 6905 6395 }6906 -1 createNonEnumerableProperty(target, key, resultProperty);6907 -1 if (PROTO) {6908 -1 VIRTUAL_PROTOTYPE = TARGET + 'Prototype';6909 -1 if (!hasOwn2(path, VIRTUAL_PROTOTYPE)) {6910 -1 createNonEnumerableProperty(path, VIRTUAL_PROTOTYPE, {});6911 -1 }6912 -1 createNonEnumerableProperty(path[VIRTUAL_PROTOTYPE], key, sourceProperty);6913 -1 if (options.real && targetPrototype && (FORCED || !targetPrototype[key])) {6914 -1 createNonEnumerableProperty(targetPrototype, key, sourceProperty);-1 6396 } else { -1 6397 switch (arguments.length) { -1 6398 case 1: -1 6399 call.call(listeners, this); -1 6400 break; -1 6401 -1 6402 case 2: -1 6403 call.call(listeners, this, arguments[1]); -1 6404 break; -1 6405 -1 6406 case 3: -1 6407 call.call(listeners, this, arguments[1], arguments[2]); -1 6408 break; -1 6409 -1 6410 default: -1 6411 l = arguments.length; -1 6412 args = new Array(l - 1); -1 6413 for (i = 1; i < l; ++i) { -1 6414 args[i - 1] = arguments[i]; 6915 6415 } -1 6416 apply.call(listeners, this, args); 6916 6417 } 6917 6418 } 6918 6419 }; -1 6420 methods = { -1 6421 on: on, -1 6422 once: once, -1 6423 off: off, -1 6424 emit: emit -1 6425 }; -1 6426 descriptors = { -1 6427 on: d2(on), -1 6428 once: d2(once), -1 6429 off: d2(off), -1 6430 emit: d2(emit) -1 6431 }; -1 6432 base = defineProperties({}, descriptors); -1 6433 module.exports = exports = function exports(o) { -1 6434 return o == null ? create(base) : defineProperties(Object(o), descriptors); -1 6435 }; -1 6436 exports.methods = methods; 6919 6437 });6920 -1 var require_es_object_has_own = __commonJS(function() {6921 -1 'use strict';6922 -1 var $ = require_export();6923 -1 var hasOwn2 = require_has_own_property();6924 -1 $({6925 -1 target: 'Object',6926 -1 stat: true6927 -1 }, {6928 -1 hasOwn: hasOwn26929 -1 });6930 -1 });6931 -1 var require_has_own = __commonJS(function(exports, module) {6932 -1 'use strict';6933 -1 require_es_object_has_own();6934 -1 var path = require_path();6935 -1 module.exports = path.Object.hasOwn;6936 -1 });6937 -1 var require_has_own2 = __commonJS(function(exports, module) {-1 6438 var require_is_implemented5 = __commonJS(function(exports, module) { 6938 6439 'use strict';6939 -1 var parent = require_has_own();6940 -1 module.exports = parent;-1 6440 module.exports = function() { -1 6441 var from = Array.from, arr, result; -1 6442 if (typeof from !== 'function') { -1 6443 return false; -1 6444 } -1 6445 arr = [ 'raz', 'dwa' ]; -1 6446 result = from(arr); -1 6447 return Boolean(result && result !== arr && result[1] === 'dwa'); -1 6448 }; 6941 6449 });6942 -1 var require_has_own3 = __commonJS(function(exports, module) {-1 6450 var require_is_implemented6 = __commonJS(function(exports, module) { 6943 6451 'use strict';6944 -1 var parent = require_has_own2();6945 -1 module.exports = parent;-1 6452 module.exports = function() { -1 6453 if ((typeof globalThis === 'undefined' ? 'undefined' : _typeof(globalThis)) !== 'object') { -1 6454 return false; -1 6455 } -1 6456 if (!globalThis) { -1 6457 return false; -1 6458 } -1 6459 return globalThis.Array === Array; -1 6460 }; 6946 6461 });6947 -1 var require_shared_key = __commonJS(function(exports, module) {6948 -1 'use strict';6949 -1 var shared = require_shared();6950 -1 var uid = require_uid();6951 -1 var keys = shared('keys');6952 -1 module.exports = function(key) {6953 -1 return keys[key] || (keys[key] = uid(key));-1 6462 var require_implementation = __commonJS(function(exports, module) { -1 6463 var naiveFallback = function naiveFallback() { -1 6464 if ((typeof self === 'undefined' ? 'undefined' : _typeof(self)) === 'object' && self) { -1 6465 return self; -1 6466 } -1 6467 if ((typeof window === 'undefined' ? 'undefined' : _typeof(window)) === 'object' && window) { -1 6468 return window; -1 6469 } -1 6470 throw new Error('Unable to resolve global `this`'); 6954 6471 }; -1 6472 module.exports = function() { -1 6473 if (this) { -1 6474 return this; -1 6475 } -1 6476 try { -1 6477 Object.defineProperty(Object.prototype, '__global__', { -1 6478 get: function get() { -1 6479 return this; -1 6480 }, -1 6481 configurable: true -1 6482 }); -1 6483 } catch (error) { -1 6484 return naiveFallback(); -1 6485 } -1 6486 try { -1 6487 if (!__global__) { -1 6488 return naiveFallback(); -1 6489 } -1 6490 return __global__; -1 6491 } finally { -1 6492 delete Object.prototype.__global__; -1 6493 } -1 6494 }(); 6955 6495 });6956 -1 var require_correct_prototype_getter = __commonJS(function(exports, module) {-1 6496 var require_global_this2 = __commonJS(function(exports, module) { 6957 6497 'use strict';6958 -1 var fails = require_fails();6959 -1 module.exports = !fails(function() {6960 -1 function F() {}6961 -1 F.prototype.constructor = null;6962 -1 return Object.getPrototypeOf(new F()) !== F.prototype;6963 -1 });-1 6498 module.exports = require_is_implemented6()() ? globalThis : require_implementation(); 6964 6499 });6965 -1 var require_object_get_prototype_of = __commonJS(function(exports, module) {-1 6500 var require_is_implemented7 = __commonJS(function(exports, module) { 6966 6501 'use strict';6967 -1 var hasOwn2 = require_has_own_property();6968 -1 var isCallable = require_is_callable2();6969 -1 var toObject = require_to_object();6970 -1 var sharedKey = require_shared_key();6971 -1 var CORRECT_PROTOTYPE_GETTER = require_correct_prototype_getter();6972 -1 var IE_PROTO = sharedKey('IE_PROTO');6973 -1 var $Object = Object;6974 -1 var ObjectPrototype = $Object.prototype;6975 -1 module.exports = CORRECT_PROTOTYPE_GETTER ? $Object.getPrototypeOf : function(O) {6976 -1 var object = toObject(O);6977 -1 if (hasOwn2(object, IE_PROTO)) {6978 -1 return object[IE_PROTO];-1 6502 var global2 = require_global_this2(); -1 6503 var validTypes = { -1 6504 object: true, -1 6505 symbol: true -1 6506 }; -1 6507 module.exports = function() { -1 6508 var Symbol2 = global2.Symbol; -1 6509 var symbol; -1 6510 if (typeof Symbol2 !== 'function') { -1 6511 return false; 6979 6512 }6980 -1 var constructor = object.constructor;6981 -1 if (isCallable(constructor) && object instanceof constructor) {6982 -1 return constructor.prototype;-1 6513 symbol = Symbol2('test symbol'); -1 6514 try { -1 6515 String(symbol); -1 6516 } catch (e) { -1 6517 return false; 6983 6518 }6984 -1 return object instanceof $Object ? ObjectPrototype : null;6985 -1 };6986 -1 });6987 -1 var require_math_trunc = __commonJS(function(exports, module) {6988 -1 'use strict';6989 -1 var ceil = Math.ceil;6990 -1 var floor = Math.floor;6991 -1 module.exports = Math.trunc || function trunc(x) {6992 -1 var n2 = +x;6993 -1 return (n2 > 0 ? floor : ceil)(n2);-1 6519 if (!validTypes[_typeof(Symbol2.iterator)]) { -1 6520 return false; -1 6521 } -1 6522 if (!validTypes[_typeof(Symbol2.toPrimitive)]) { -1 6523 return false; -1 6524 } -1 6525 if (!validTypes[_typeof(Symbol2.toStringTag)]) { -1 6526 return false; -1 6527 } -1 6528 return true; 6994 6529 }; 6995 6530 });6996 -1 var require_to_integer_or_infinity = __commonJS(function(exports, module) {-1 6531 var require_is_symbol2 = __commonJS(function(exports, module) { 6997 6532 'use strict';6998 -1 var trunc = require_math_trunc();6999 -1 module.exports = function(argument) {7000 -1 var number = +argument;7001 -1 return number !== number || number === 0 ? 0 : trunc(number);-1 6533 module.exports = function(value) { -1 6534 if (!value) { -1 6535 return false; -1 6536 } -1 6537 if (_typeof(value) === 'symbol') { -1 6538 return true; -1 6539 } -1 6540 if (!value.constructor) { -1 6541 return false; -1 6542 } -1 6543 if (value.constructor.name !== 'Symbol') { -1 6544 return false; -1 6545 } -1 6546 return value[value.constructor.toStringTag] === 'Symbol'; 7002 6547 }; 7003 6548 });7004 -1 var require_to_absolute_index = __commonJS(function(exports, module) {-1 6549 var require_validate_symbol = __commonJS(function(exports, module) { 7005 6550 'use strict';7006 -1 var toIntegerOrInfinity = require_to_integer_or_infinity();7007 -1 var max2 = Math.max;7008 -1 var min = Math.min;7009 -1 module.exports = function(index, length) {7010 -1 var integer = toIntegerOrInfinity(index);7011 -1 return integer < 0 ? max2(integer + length, 0) : min(integer, length);-1 6551 var isSymbol = require_is_symbol2(); -1 6552 module.exports = function(value) { -1 6553 if (!isSymbol(value)) { -1 6554 throw new TypeError(value + ' is not a symbol'); -1 6555 } -1 6556 return value; 7012 6557 }; 7013 6558 });7014 -1 var require_to_length = __commonJS(function(exports, module) {-1 6559 var require_generate_name = __commonJS(function(exports, module) { 7015 6560 'use strict';7016 -1 var toIntegerOrInfinity = require_to_integer_or_infinity();7017 -1 var min = Math.min;7018 -1 module.exports = function(argument) {7019 -1 return argument > 0 ? min(toIntegerOrInfinity(argument), 9007199254740991) : 0;-1 6561 var d2 = require_d(); -1 6562 var create = Object.create; -1 6563 var defineProperty = Object.defineProperty; -1 6564 var objPrototype = Object.prototype; -1 6565 var created = create(null); -1 6566 module.exports = function(desc) { -1 6567 var postfix = 0, name, ie11BugWorkaround; -1 6568 while (created[desc + (postfix || '')]) { -1 6569 ++postfix; -1 6570 } -1 6571 desc += postfix || ''; -1 6572 created[desc] = true; -1 6573 name = '@@' + desc; -1 6574 defineProperty(objPrototype, name, d2.gs(null, function(value) { -1 6575 if (ie11BugWorkaround) { -1 6576 return; -1 6577 } -1 6578 ie11BugWorkaround = true; -1 6579 defineProperty(this, name, d2(value)); -1 6580 ie11BugWorkaround = false; -1 6581 })); -1 6582 return name; 7020 6583 }; 7021 6584 });7022 -1 var require_length_of_array_like = __commonJS(function(exports, module) {-1 6585 var require_standard_symbols = __commonJS(function(exports, module) { 7023 6586 'use strict';7024 -1 var toLength = require_to_length();7025 -1 module.exports = function(obj) {7026 -1 return toLength(obj.length);-1 6587 var d2 = require_d(); -1 6588 var NativeSymbol = require_global_this2().Symbol; -1 6589 module.exports = function(SymbolPolyfill) { -1 6590 return Object.defineProperties(SymbolPolyfill, { -1 6591 hasInstance: d2('', NativeSymbol && NativeSymbol.hasInstance || SymbolPolyfill('hasInstance')), -1 6592 isConcatSpreadable: d2('', NativeSymbol && NativeSymbol.isConcatSpreadable || SymbolPolyfill('isConcatSpreadable')), -1 6593 iterator: d2('', NativeSymbol && NativeSymbol.iterator || SymbolPolyfill('iterator')), -1 6594 match: d2('', NativeSymbol && NativeSymbol.match || SymbolPolyfill('match')), -1 6595 replace: d2('', NativeSymbol && NativeSymbol.replace || SymbolPolyfill('replace')), -1 6596 search: d2('', NativeSymbol && NativeSymbol.search || SymbolPolyfill('search')), -1 6597 species: d2('', NativeSymbol && NativeSymbol.species || SymbolPolyfill('species')), -1 6598 split: d2('', NativeSymbol && NativeSymbol.split || SymbolPolyfill('split')), -1 6599 toPrimitive: d2('', NativeSymbol && NativeSymbol.toPrimitive || SymbolPolyfill('toPrimitive')), -1 6600 toStringTag: d2('', NativeSymbol && NativeSymbol.toStringTag || SymbolPolyfill('toStringTag')), -1 6601 unscopables: d2('', NativeSymbol && NativeSymbol.unscopables || SymbolPolyfill('unscopables')) -1 6602 }); 7027 6603 }; 7028 6604 });7029 -1 var require_array_includes = __commonJS(function(exports, module) {-1 6605 var require_symbol_registry = __commonJS(function(exports, module) { 7030 6606 'use strict';7031 -1 var toIndexedObject = require_to_indexed_object();7032 -1 var toAbsoluteIndex = require_to_absolute_index();7033 -1 var lengthOfArrayLike = require_length_of_array_like();7034 -1 var createMethod = function createMethod(IS_INCLUDES) {7035 -1 return function($this, el, fromIndex) {7036 -1 var O = toIndexedObject($this);7037 -1 var length = lengthOfArrayLike(O);7038 -1 var index = toAbsoluteIndex(fromIndex, length);7039 -1 var value;7040 -1 if (IS_INCLUDES && el !== el) {7041 -1 while (length > index) {7042 -1 value = O[index++];7043 -1 if (value !== value) {7044 -1 return true;7045 -1 }-1 6607 var d2 = require_d(); -1 6608 var validateSymbol = require_validate_symbol(); -1 6609 var registry = Object.create(null); -1 6610 module.exports = function(SymbolPolyfill) { -1 6611 return Object.defineProperties(SymbolPolyfill, { -1 6612 for: d2(function(key) { -1 6613 if (registry[key]) { -1 6614 return registry[key]; 7046 6615 }7047 -1 } else {7048 -1 for (;length > index; index++) {7049 -1 if ((IS_INCLUDES || index in O) && O[index] === el) {7050 -1 return IS_INCLUDES || index || 0;-1 6616 return registry[key] = SymbolPolyfill(String(key)); -1 6617 }), -1 6618 keyFor: d2(function(symbol) { -1 6619 var key; -1 6620 validateSymbol(symbol); -1 6621 for (key in registry) { -1 6622 if (registry[key] === symbol) { -1 6623 return key; 7051 6624 } 7052 6625 }7053 -1 }7054 -1 return !IS_INCLUDES && -1;7055 -1 };7056 -1 };7057 -1 module.exports = {7058 -1 includes: createMethod(true),7059 -1 indexOf: createMethod(false)-1 6626 return void 0; -1 6627 }) -1 6628 }); 7060 6629 }; 7061 6630 });7062 -1 var require_hidden_keys = __commonJS(function(exports, module) {7063 -1 'use strict';7064 -1 module.exports = {};7065 -1 });7066 -1 var require_object_keys_internal = __commonJS(function(exports, module) {-1 6631 var require_polyfill = __commonJS(function(exports, module) { 7067 6632 'use strict';7068 -1 var uncurryThis = require_function_uncurry_this();7069 -1 var hasOwn2 = require_has_own_property();7070 -1 var toIndexedObject = require_to_indexed_object();7071 -1 var indexOf = require_array_includes().indexOf;7072 -1 var hiddenKeys = require_hidden_keys();7073 -1 var push = uncurryThis([].push);7074 -1 module.exports = function(object, names) {7075 -1 var O = toIndexedObject(object);7076 -1 var i = 0;7077 -1 var result = [];7078 -1 var key;7079 -1 for (key in O) {7080 -1 !hasOwn2(hiddenKeys, key) && hasOwn2(O, key) && push(result, key);-1 6633 var d2 = require_d(); -1 6634 var validateSymbol = require_validate_symbol(); -1 6635 var NativeSymbol = require_global_this2().Symbol; -1 6636 var generateName = require_generate_name(); -1 6637 var setupStandardSymbols = require_standard_symbols(); -1 6638 var setupSymbolRegistry = require_symbol_registry(); -1 6639 var create = Object.create; -1 6640 var defineProperties = Object.defineProperties; -1 6641 var defineProperty = Object.defineProperty; -1 6642 var SymbolPolyfill; -1 6643 var HiddenSymbol; -1 6644 var isNativeSafe; -1 6645 if (typeof NativeSymbol === 'function') { -1 6646 try { -1 6647 String(NativeSymbol()); -1 6648 isNativeSafe = true; -1 6649 } catch (ignore) {} -1 6650 } else { -1 6651 NativeSymbol = null; -1 6652 } -1 6653 HiddenSymbol = function Symbol2(description) { -1 6654 if (this instanceof HiddenSymbol) { -1 6655 throw new TypeError('Symbol is not a constructor'); 7081 6656 }7082 -1 while (names.length > i) {7083 -1 if (hasOwn2(O, key = names[i++])) {7084 -1 ~indexOf(result, key) || push(result, key);7085 -1 }-1 6657 return SymbolPolyfill(description); -1 6658 }; -1 6659 module.exports = SymbolPolyfill = function Symbol2(description) { -1 6660 var symbol; -1 6661 if (this instanceof Symbol2) { -1 6662 throw new TypeError('Symbol is not a constructor'); 7086 6663 }7087 -1 return result;-1 6664 if (isNativeSafe) { -1 6665 return NativeSymbol(description); -1 6666 } -1 6667 symbol = create(HiddenSymbol.prototype); -1 6668 description = description === void 0 ? '' : String(description); -1 6669 return defineProperties(symbol, { -1 6670 __description__: d2('', description), -1 6671 __name__: d2('', generateName(description)) -1 6672 }); 7088 6673 };7089 -1 });7090 -1 var require_enum_bug_keys = __commonJS(function(exports, module) {7091 -1 'use strict';7092 -1 module.exports = [ 'constructor', 'hasOwnProperty', 'isPrototypeOf', 'propertyIsEnumerable', 'toLocaleString', 'toString', 'valueOf' ];7093 -1 });7094 -1 var require_object_keys = __commonJS(function(exports, module) {7095 -1 'use strict';7096 -1 var internalObjectKeys = require_object_keys_internal();7097 -1 var enumBugKeys = require_enum_bug_keys();7098 -1 module.exports = Object.keys || function keys(O) {7099 -1 return internalObjectKeys(O, enumBugKeys);7100 -1 };7101 -1 });7102 -1 var require_object_to_array = __commonJS(function(exports, module) {7103 -1 'use strict';7104 -1 var DESCRIPTORS = require_descriptors();7105 -1 var fails = require_fails();7106 -1 var uncurryThis = require_function_uncurry_this();7107 -1 var objectGetPrototypeOf = require_object_get_prototype_of();7108 -1 var objectKeys = require_object_keys();7109 -1 var toIndexedObject = require_to_indexed_object();7110 -1 var $propertyIsEnumerable = require_object_property_is_enumerable().f;7111 -1 var propertyIsEnumerable = uncurryThis($propertyIsEnumerable);7112 -1 var push = uncurryThis([].push);7113 -1 var IE_BUG = DESCRIPTORS && fails(function() {7114 -1 var O = Object.create(null);7115 -1 O[2] = 2;7116 -1 return !propertyIsEnumerable(O, 2);-1 6674 setupStandardSymbols(SymbolPolyfill); -1 6675 setupSymbolRegistry(SymbolPolyfill); -1 6676 defineProperties(HiddenSymbol.prototype, { -1 6677 constructor: d2(SymbolPolyfill), -1 6678 toString: d2('', function() { -1 6679 return this.__name__; -1 6680 }) 7117 6681 });7118 -1 var createMethod = function createMethod(TO_ENTRIES) {7119 -1 return function(it) {7120 -1 var O = toIndexedObject(it);7121 -1 var keys = objectKeys(O);7122 -1 var IE_WORKAROUND = IE_BUG && objectGetPrototypeOf(O) === null;7123 -1 var length = keys.length;7124 -1 var i = 0;7125 -1 var result = [];7126 -1 var key;7127 -1 while (length > i) {7128 -1 key = keys[i++];7129 -1 if (!DESCRIPTORS || (IE_WORKAROUND ? key in O : propertyIsEnumerable(O, key))) {7130 -1 push(result, TO_ENTRIES ? [ key, O[key] ] : O[key]);7131 -1 }7132 -1 }7133 -1 return result;7134 -1 };7135 -1 };7136 -1 module.exports = {7137 -1 entries: createMethod(true),7138 -1 values: createMethod(false)7139 -1 };7140 -1 });7141 -1 var require_es_object_values = __commonJS(function() {7142 -1 'use strict';7143 -1 var $ = require_export();7144 -1 var $values = require_object_to_array().values;7145 -1 $({7146 -1 target: 'Object',7147 -1 stat: true7148 -1 }, {7149 -1 values: function values2(O) {7150 -1 return $values(O);7151 -1 }-1 6682 defineProperties(SymbolPolyfill.prototype, { -1 6683 toString: d2(function() { -1 6684 return 'Symbol (' + validateSymbol(this).__description__ + ')'; -1 6685 }), -1 6686 valueOf: d2(function() { -1 6687 return validateSymbol(this); -1 6688 }) 7152 6689 }); -1 6690 defineProperty(SymbolPolyfill.prototype, SymbolPolyfill.toPrimitive, d2('', function() { -1 6691 var symbol = validateSymbol(this); -1 6692 if (_typeof(symbol) === 'symbol') { -1 6693 return symbol; -1 6694 } -1 6695 return symbol.toString(); -1 6696 })); -1 6697 defineProperty(SymbolPolyfill.prototype, SymbolPolyfill.toStringTag, d2('c', 'Symbol')); -1 6698 defineProperty(HiddenSymbol.prototype, SymbolPolyfill.toStringTag, d2('c', SymbolPolyfill.prototype[SymbolPolyfill.toStringTag])); -1 6699 defineProperty(HiddenSymbol.prototype, SymbolPolyfill.toPrimitive, d2('c', SymbolPolyfill.prototype[SymbolPolyfill.toPrimitive])); 7153 6700 });7154 -1 var require_values = __commonJS(function(exports, module) {7155 -1 'use strict';7156 -1 require_es_object_values();7157 -1 var path = require_path();7158 -1 module.exports = path.Object.values;7159 -1 });7160 -1 var require_values2 = __commonJS(function(exports, module) {7161 -1 'use strict';7162 -1 var parent = require_values();7163 -1 module.exports = parent;7164 -1 });7165 -1 var require_values3 = __commonJS(function(exports, module) {7166 -1 'use strict';7167 -1 var parent = require_values2();7168 -1 module.exports = parent;7169 -1 });7170 -1 var require_to_string_tag_support = __commonJS(function(exports, module) {-1 6701 var require_es6_symbol = __commonJS(function(exports, module) { 7171 6702 'use strict';7172 -1 var wellKnownSymbol = require_well_known_symbol();7173 -1 var TO_STRING_TAG = wellKnownSymbol('toStringTag');7174 -1 var test = {};7175 -1 test[TO_STRING_TAG] = 'z';7176 -1 module.exports = String(test) === '[object z]';-1 6703 module.exports = require_is_implemented7()() ? require_global_this2().Symbol : require_polyfill(); 7177 6704 });7178 -1 var require_classof = __commonJS(function(exports, module) {-1 6705 var require_is_arguments = __commonJS(function(exports, module) { 7179 6706 'use strict';7180 -1 var TO_STRING_TAG_SUPPORT = require_to_string_tag_support();7181 -1 var isCallable = require_is_callable2();7182 -1 var classofRaw = require_classof_raw();7183 -1 var wellKnownSymbol = require_well_known_symbol();7184 -1 var TO_STRING_TAG = wellKnownSymbol('toStringTag');7185 -1 var $Object = Object;7186 -1 var CORRECT_ARGUMENTS = classofRaw(function() {-1 6707 var objToString = Object.prototype.toString; -1 6708 var id = objToString.call(function() { 7187 6709 return arguments;7188 -1 }()) === 'Arguments';7189 -1 var tryGet = function tryGet(it, key) {7190 -1 try {7191 -1 return it[key];7192 -1 } catch (error) {}7193 -1 };7194 -1 module.exports = TO_STRING_TAG_SUPPORT ? classofRaw : function(it) {7195 -1 var O, tag, result;7196 -1 return it === void 0 ? 'Undefined' : it === null ? 'Null' : typeof (tag = tryGet(O = $Object(it), TO_STRING_TAG)) == 'string' ? tag : CORRECT_ARGUMENTS ? classofRaw(O) : (result = classofRaw(O)) === 'Object' && isCallable(O.callee) ? 'Arguments' : result;-1 6710 }()); -1 6711 module.exports = function(value) { -1 6712 return objToString.call(value) === id; 7197 6713 }; 7198 6714 });7199 -1 var require_to_string = __commonJS(function(exports, module) {-1 6715 var require_is_function = __commonJS(function(exports, module) { 7200 6716 'use strict';7201 -1 var classof = require_classof();7202 -1 var $String = String;7203 -1 module.exports = function(argument) {7204 -1 if (classof(argument) === 'Symbol') {7205 -1 throw new TypeError('Cannot convert a Symbol value to a string');7206 -1 }7207 -1 return $String(argument);-1 6717 var objToString = Object.prototype.toString; -1 6718 var isFunctionStringTag = RegExp.prototype.test.bind(/^[object [A-Za-z0-9]*Function]$/); -1 6719 module.exports = function(value) { -1 6720 return typeof value === 'function' && isFunctionStringTag(objToString.call(value)); 7208 6721 }; 7209 6722 });7210 -1 var require_string_multibyte = __commonJS(function(exports, module) {-1 6723 var require_is_string = __commonJS(function(exports, module) { 7211 6724 'use strict';7212 -1 var uncurryThis = require_function_uncurry_this();7213 -1 var toIntegerOrInfinity = require_to_integer_or_infinity();7214 -1 var toString = require_to_string();7215 -1 var requireObjectCoercible = require_require_object_coercible();7216 -1 var charAt = uncurryThis(''.charAt);7217 -1 var charCodeAt = uncurryThis(''.charCodeAt);7218 -1 var stringSlice = uncurryThis(''.slice);7219 -1 var createMethod = function createMethod(CONVERT_TO_STRING) {7220 -1 return function($this, pos) {7221 -1 var S = toString(requireObjectCoercible($this));7222 -1 var position = toIntegerOrInfinity(pos);7223 -1 var size = S.length;7224 -1 var first, second;7225 -1 if (position < 0 || position >= size) {7226 -1 return CONVERT_TO_STRING ? '' : void 0;7227 -1 }7228 -1 first = charCodeAt(S, position);7229 -1 return first < 55296 || first > 56319 || position + 1 === size || (second = charCodeAt(S, position + 1)) < 56320 || second > 57343 ? CONVERT_TO_STRING ? charAt(S, position) : first : CONVERT_TO_STRING ? stringSlice(S, position, position + 2) : (first - 55296 << 10) + (second - 56320) + 65536;7230 -1 };7231 -1 };7232 -1 module.exports = {7233 -1 codeAt: createMethod(false),7234 -1 charAt: createMethod(true)-1 6725 var objToString = Object.prototype.toString; -1 6726 var id = objToString.call(''); -1 6727 module.exports = function(value) { -1 6728 return typeof value === 'string' || value && _typeof(value) === 'object' && (value instanceof String || objToString.call(value) === id) || false; 7235 6729 }; 7236 6730 });7237 -1 var require_weak_map_basic_detection = __commonJS(function(exports, module) {7238 -1 'use strict';7239 -1 var global2 = require_global();7240 -1 var isCallable = require_is_callable2();7241 -1 var WeakMap2 = global2.WeakMap;7242 -1 module.exports = isCallable(WeakMap2) && /native code/.test(String(WeakMap2));7243 -1 });7244 -1 var require_internal_state = __commonJS(function(exports, module) {-1 6731 var require_shim5 = __commonJS(function(exports, module) { 7245 6732 'use strict';7246 -1 var NATIVE_WEAK_MAP = require_weak_map_basic_detection();7247 -1 var global2 = require_global();7248 -1 var isObject = require_is_object2();7249 -1 var createNonEnumerableProperty = require_create_non_enumerable_property();7250 -1 var hasOwn2 = require_has_own_property();7251 -1 var shared = require_shared_store();7252 -1 var sharedKey = require_shared_key();7253 -1 var hiddenKeys = require_hidden_keys();7254 -1 var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';7255 -1 var TypeError2 = global2.TypeError;7256 -1 var WeakMap2 = global2.WeakMap;7257 -1 var set2;7258 -1 var get2;7259 -1 var has;7260 -1 var enforce = function enforce(it) {7261 -1 return has(it) ? get2(it) : set2(it, {});-1 6733 var iteratorSymbol = require_es6_symbol().iterator; -1 6734 var isArguments = require_is_arguments(); -1 6735 var isFunction = require_is_function(); -1 6736 var toPosInt = require_to_pos_integer(); -1 6737 var callable = require_valid_callable(); -1 6738 var validValue = require_valid_value(); -1 6739 var isValue = require_is_value(); -1 6740 var isString2 = require_is_string(); -1 6741 var isArray = Array.isArray; -1 6742 var call = Function.prototype.call; -1 6743 var desc = { -1 6744 configurable: true, -1 6745 enumerable: true, -1 6746 writable: true, -1 6747 value: null 7262 6748 };7263 -1 var getterFor = function getterFor(TYPE) {7264 -1 return function(it) {7265 -1 var state;7266 -1 if (!isObject(it) || (state = get2(it)).type !== TYPE) {7267 -1 throw new TypeError2('Incompatible receiver, ' + TYPE + ' required');-1 6749 var defineProperty = Object.defineProperty; -1 6750 module.exports = function(arrayLike) { -1 6751 var mapFn = arguments[1], thisArg = arguments[2], Context2, i, j, arr, length, code, iterator, result, getIterator, value; -1 6752 arrayLike = Object(validValue(arrayLike)); -1 6753 if (isValue(mapFn)) { -1 6754 callable(mapFn); -1 6755 } -1 6756 if (!this || this === Array || !isFunction(this)) { -1 6757 if (!mapFn) { -1 6758 if (isArguments(arrayLike)) { -1 6759 length = arrayLike.length; -1 6760 if (length !== 1) { -1 6761 return Array.apply(null, arrayLike); -1 6762 } -1 6763 arr = new Array(1); -1 6764 arr[0] = arrayLike[0]; -1 6765 return arr; -1 6766 } -1 6767 if (isArray(arrayLike)) { -1 6768 arr = new Array(length = arrayLike.length); -1 6769 for (i = 0; i < length; ++i) { -1 6770 arr[i] = arrayLike[i]; -1 6771 } -1 6772 return arr; -1 6773 } 7268 6774 }7269 -1 return state;7270 -1 };7271 -1 };7272 -1 if (NATIVE_WEAK_MAP || shared.state) {7273 -1 store = shared.state || (shared.state = new WeakMap2());7274 -1 store.get = store.get;7275 -1 store.has = store.has;7276 -1 store.set = store.set;7277 -1 set2 = function set2(it, metadata) {7278 -1 if (store.has(it)) {7279 -1 throw new TypeError2(OBJECT_ALREADY_INITIALIZED);-1 6775 arr = []; -1 6776 } else { -1 6777 Context2 = this; -1 6778 } -1 6779 if (!isArray(arrayLike)) { -1 6780 if ((getIterator = arrayLike[iteratorSymbol]) !== void 0) { -1 6781 iterator = callable(getIterator).call(arrayLike); -1 6782 if (Context2) { -1 6783 arr = new Context2(); -1 6784 } -1 6785 result = iterator.next(); -1 6786 i = 0; -1 6787 while (!result.done) { -1 6788 value = mapFn ? call.call(mapFn, thisArg, result.value, i) : result.value; -1 6789 if (Context2) { -1 6790 desc.value = value; -1 6791 defineProperty(arr, i, desc); -1 6792 } else { -1 6793 arr[i] = value; -1 6794 } -1 6795 result = iterator.next(); -1 6796 ++i; -1 6797 } -1 6798 length = i; -1 6799 } else if (isString2(arrayLike)) { -1 6800 length = arrayLike.length; -1 6801 if (Context2) { -1 6802 arr = new Context2(); -1 6803 } -1 6804 for (i = 0, j = 0; i < length; ++i) { -1 6805 value = arrayLike[i]; -1 6806 if (i + 1 < length) { -1 6807 code = value.charCodeAt(0); -1 6808 if (code >= 55296 && code <= 56319) { -1 6809 value += arrayLike[++i]; -1 6810 } -1 6811 } -1 6812 value = mapFn ? call.call(mapFn, thisArg, value, j) : value; -1 6813 if (Context2) { -1 6814 desc.value = value; -1 6815 defineProperty(arr, j, desc); -1 6816 } else { -1 6817 arr[j] = value; -1 6818 } -1 6819 ++j; -1 6820 } -1 6821 length = j; 7280 6822 }7281 -1 metadata.facade = it;7282 -1 store.set(it, metadata);7283 -1 return metadata;7284 -1 };7285 -1 get2 = function get2(it) {7286 -1 return store.get(it) || {};7287 -1 };7288 -1 has = function has(it) {7289 -1 return store.has(it);7290 -1 };7291 -1 } else {7292 -1 STATE = sharedKey('state');7293 -1 hiddenKeys[STATE] = true;7294 -1 set2 = function set2(it, metadata) {7295 -1 if (hasOwn2(it, STATE)) {7296 -1 throw new TypeError2(OBJECT_ALREADY_INITIALIZED);-1 6823 } -1 6824 if (length === void 0) { -1 6825 length = toPosInt(arrayLike.length); -1 6826 if (Context2) { -1 6827 arr = new Context2(length); 7297 6828 }7298 -1 metadata.facade = it;7299 -1 createNonEnumerableProperty(it, STATE, metadata);7300 -1 return metadata;7301 -1 };7302 -1 get2 = function get2(it) {7303 -1 return hasOwn2(it, STATE) ? it[STATE] : {};7304 -1 };7305 -1 has = function has(it) {7306 -1 return hasOwn2(it, STATE);7307 -1 };7308 -1 }7309 -1 var store;7310 -1 var STATE;7311 -1 module.exports = {7312 -1 set: set2,7313 -1 get: get2,7314 -1 has: has,7315 -1 enforce: enforce,7316 -1 getterFor: getterFor-1 6829 for (i = 0; i < length; ++i) { -1 6830 value = mapFn ? call.call(mapFn, thisArg, arrayLike[i], i) : arrayLike[i]; -1 6831 if (Context2) { -1 6832 desc.value = value; -1 6833 defineProperty(arr, i, desc); -1 6834 } else { -1 6835 arr[i] = value; -1 6836 } -1 6837 } -1 6838 } -1 6839 if (Context2) { -1 6840 desc.value = null; -1 6841 arr.length = length; -1 6842 } -1 6843 return arr; 7317 6844 }; 7318 6845 });7319 -1 var require_function_name = __commonJS(function(exports, module) {-1 6846 var require_from4 = __commonJS(function(exports, module) { 7320 6847 'use strict';7321 -1 var DESCRIPTORS = require_descriptors();7322 -1 var hasOwn2 = require_has_own_property();7323 -1 var FunctionPrototype = Function.prototype;7324 -1 var getDescriptor = DESCRIPTORS && Object.getOwnPropertyDescriptor;7325 -1 var EXISTS = hasOwn2(FunctionPrototype, 'name');7326 -1 var PROPER = EXISTS && function something() {}.name === 'something';7327 -1 var CONFIGURABLE = EXISTS && (!DESCRIPTORS || DESCRIPTORS && getDescriptor(FunctionPrototype, 'name').configurable);7328 -1 module.exports = {7329 -1 EXISTS: EXISTS,7330 -1 PROPER: PROPER,7331 -1 CONFIGURABLE: CONFIGURABLE7332 -1 };-1 6848 module.exports = require_is_implemented5()() ? Array.from : require_shim5(); 7333 6849 });7334 -1 var require_object_define_properties = __commonJS(function(exports) {-1 6850 var require_to_array = __commonJS(function(exports, module) { 7335 6851 'use strict';7336 -1 var DESCRIPTORS = require_descriptors();7337 -1 var V8_PROTOTYPE_DEFINE_BUG = require_v8_prototype_define_bug();7338 -1 var definePropertyModule = require_object_define_property();7339 -1 var anObject = require_an_object();7340 -1 var toIndexedObject = require_to_indexed_object();7341 -1 var objectKeys = require_object_keys();7342 -1 exports.f = DESCRIPTORS && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) {7343 -1 anObject(O);7344 -1 var props = toIndexedObject(Properties);7345 -1 var keys = objectKeys(Properties);7346 -1 var length = keys.length;7347 -1 var index = 0;7348 -1 var key;7349 -1 while (length > index) {7350 -1 definePropertyModule.f(O, key = keys[index++], props[key]);7351 -1 }7352 -1 return O;-1 6852 var from = require_from4(); -1 6853 var isArray = Array.isArray; -1 6854 module.exports = function(arrayLike) { -1 6855 return isArray(arrayLike) ? arrayLike : from(arrayLike); 7353 6856 }; 7354 6857 });7355 -1 var require_html = __commonJS(function(exports, module) {7356 -1 'use strict';7357 -1 var getBuiltIn = require_get_built_in();7358 -1 module.exports = getBuiltIn('document', 'documentElement');7359 -1 });7360 -1 var require_object_create = __commonJS(function(exports, module) {-1 6858 var require_resolve_resolve = __commonJS(function(exports, module) { 7361 6859 'use strict';7362 -1 var anObject = require_an_object();7363 -1 var definePropertiesModule = require_object_define_properties();7364 -1 var enumBugKeys = require_enum_bug_keys();7365 -1 var hiddenKeys = require_hidden_keys();7366 -1 var html = require_html();7367 -1 var documentCreateElement = require_document_create_element();7368 -1 var sharedKey = require_shared_key();7369 -1 var GT = '>';7370 -1 var LT = '<';7371 -1 var PROTOTYPE = 'prototype';7372 -1 var SCRIPT = 'script';7373 -1 var IE_PROTO = sharedKey('IE_PROTO');7374 -1 var EmptyConstructor = function EmptyConstructor() {};7375 -1 var scriptTag = function scriptTag(content) {7376 -1 return LT + SCRIPT + GT + content + LT + '/' + SCRIPT + GT;7377 -1 };7378 -1 var NullProtoObjectViaActiveX = function NullProtoObjectViaActiveX(activeXDocument2) {7379 -1 activeXDocument2.write(scriptTag(''));7380 -1 activeXDocument2.close();7381 -1 var temp = activeXDocument2.parentWindow.Object;7382 -1 activeXDocument2 = null;7383 -1 return temp;7384 -1 };7385 -1 var NullProtoObjectViaIFrame = function NullProtoObjectViaIFrame() {7386 -1 var iframe = documentCreateElement('iframe');7387 -1 var JS = 'java' + SCRIPT + ':';7388 -1 var iframeDocument;7389 -1 iframe.style.display = 'none';7390 -1 html.appendChild(iframe);7391 -1 iframe.src = String(JS);7392 -1 iframeDocument = iframe.contentWindow.document;7393 -1 iframeDocument.open();7394 -1 iframeDocument.write(scriptTag('document.F=Object'));7395 -1 iframeDocument.close();7396 -1 return iframeDocument.F;7397 -1 };7398 -1 var activeXDocument;7399 -1 var _NullProtoObject = function NullProtoObject() {7400 -1 try {7401 -1 activeXDocument = new ActiveXObject('htmlfile');7402 -1 } catch (error) {}7403 -1 _NullProtoObject = typeof document != 'undefined' ? document.domain && activeXDocument ? NullProtoObjectViaActiveX(activeXDocument) : NullProtoObjectViaIFrame() : NullProtoObjectViaActiveX(activeXDocument);7404 -1 var length = enumBugKeys.length;7405 -1 while (length--) {7406 -1 delete _NullProtoObject[PROTOTYPE][enumBugKeys[length]];7407 -1 }7408 -1 return _NullProtoObject();-1 6860 var toArray2 = require_to_array(); -1 6861 var isValue = require_is_value(); -1 6862 var callable = require_valid_callable(); -1 6863 var slice = Array.prototype.slice; -1 6864 var resolveArgs; -1 6865 resolveArgs = function resolveArgs(args) { -1 6866 return this.map(function(resolve, i) { -1 6867 return resolve ? resolve(args[i]) : args[i]; -1 6868 }).concat(slice.call(args, this.length)); 7409 6869 };7410 -1 hiddenKeys[IE_PROTO] = true;7411 -1 module.exports = Object.create || function create(O, Properties) {7412 -1 var result;7413 -1 if (O !== null) {7414 -1 EmptyConstructor[PROTOTYPE] = anObject(O);7415 -1 result = new EmptyConstructor();7416 -1 EmptyConstructor[PROTOTYPE] = null;7417 -1 result[IE_PROTO] = O;7418 -1 } else {7419 -1 result = _NullProtoObject();7420 -1 }7421 -1 return Properties === void 0 ? result : definePropertiesModule.f(result, Properties);-1 6870 module.exports = function(resolvers) { -1 6871 resolvers = toArray2(resolvers); -1 6872 resolvers.forEach(function(resolve) { -1 6873 if (isValue(resolve)) { -1 6874 callable(resolve); -1 6875 } -1 6876 }); -1 6877 return resolveArgs.bind(resolvers); 7422 6878 }; 7423 6879 });7424 -1 var require_define_built_in = __commonJS(function(exports, module) {-1 6880 var require_resolve_normalize = __commonJS(function(exports, module) { 7425 6881 'use strict';7426 -1 var createNonEnumerableProperty = require_create_non_enumerable_property();7427 -1 module.exports = function(target, key, value, options) {7428 -1 if (options && options.enumerable) {7429 -1 target[key] = value;7430 -1 } else {7431 -1 createNonEnumerableProperty(target, key, value);-1 6882 var callable = require_valid_callable(); -1 6883 module.exports = function(userNormalizer) { -1 6884 var normalizer; -1 6885 if (typeof userNormalizer === 'function') { -1 6886 return { -1 6887 set: userNormalizer, -1 6888 get: userNormalizer -1 6889 }; 7432 6890 }7433 -1 return target;-1 6891 normalizer = { -1 6892 get: callable(userNormalizer.get) -1 6893 }; -1 6894 if (userNormalizer.set !== void 0) { -1 6895 normalizer.set = callable(userNormalizer.set); -1 6896 if (userNormalizer['delete']) { -1 6897 normalizer['delete'] = callable(userNormalizer['delete']); -1 6898 } -1 6899 if (userNormalizer.clear) { -1 6900 normalizer.clear = callable(userNormalizer.clear); -1 6901 } -1 6902 return normalizer; -1 6903 } -1 6904 normalizer.set = normalizer.get; -1 6905 return normalizer; 7434 6906 }; 7435 6907 });7436 -1 var require_iterators_core = __commonJS(function(exports, module) {-1 6908 var require_configure_map = __commonJS(function(exports, module) { 7437 6909 'use strict';7438 -1 var fails = require_fails();7439 -1 var isCallable = require_is_callable2();7440 -1 var isObject = require_is_object2();7441 -1 var create = require_object_create();7442 -1 var getPrototypeOf = require_object_get_prototype_of();7443 -1 var defineBuiltIn = require_define_built_in();7444 -1 var wellKnownSymbol = require_well_known_symbol();7445 -1 var IS_PURE = require_is_pure();7446 -1 var ITERATOR = wellKnownSymbol('iterator');7447 -1 var BUGGY_SAFARI_ITERATORS = false;7448 -1 var IteratorPrototype;7449 -1 var PrototypeOfArrayIteratorPrototype;7450 -1 var arrayIterator;7451 -1 if ([].keys) {7452 -1 arrayIterator = [].keys();7453 -1 if (!('next' in arrayIterator)) {7454 -1 BUGGY_SAFARI_ITERATORS = true;-1 6910 var customError = require_custom(); -1 6911 var defineLength = require_define_length(); -1 6912 var d2 = require_d(); -1 6913 var ee = require_event_emitter().methods; -1 6914 var resolveResolve = require_resolve_resolve(); -1 6915 var resolveNormalize = require_resolve_normalize(); -1 6916 var apply = Function.prototype.apply; -1 6917 var call = Function.prototype.call; -1 6918 var create = Object.create; -1 6919 var defineProperties = Object.defineProperties; -1 6920 var _on = ee.on; -1 6921 var emit = ee.emit; -1 6922 module.exports = function(original, length, options) { -1 6923 var cache2 = create(null), conf, memLength, get2, set2, del, _clear, extDel, extGet, extHas, normalizer, getListeners, setListeners, deleteListeners, memoized, resolve; -1 6924 if (length !== false) { -1 6925 memLength = length; -1 6926 } else if (isNaN(original.length)) { -1 6927 memLength = 1; 7455 6928 } else {7456 -1 PrototypeOfArrayIteratorPrototype = getPrototypeOf(getPrototypeOf(arrayIterator));7457 -1 if (PrototypeOfArrayIteratorPrototype !== Object.prototype) {7458 -1 IteratorPrototype = PrototypeOfArrayIteratorPrototype;-1 6929 memLength = original.length; -1 6930 } -1 6931 if (options.normalizer) { -1 6932 normalizer = resolveNormalize(options.normalizer); -1 6933 get2 = normalizer.get; -1 6934 set2 = normalizer.set; -1 6935 del = normalizer['delete']; -1 6936 _clear = normalizer.clear; -1 6937 } -1 6938 if (options.resolvers != null) { -1 6939 resolve = resolveResolve(options.resolvers); -1 6940 } -1 6941 if (get2) { -1 6942 memoized = defineLength(function(arg) { -1 6943 var id, result, args = arguments; -1 6944 if (resolve) { -1 6945 args = resolve(args); -1 6946 } -1 6947 id = get2(args); -1 6948 if (id !== null) { -1 6949 if (hasOwnProperty.call(cache2, id)) { -1 6950 if (getListeners) { -1 6951 conf.emit('get', id, args, this); -1 6952 } -1 6953 return cache2[id]; -1 6954 } -1 6955 } -1 6956 if (args.length === 1) { -1 6957 result = call.call(original, this, args[0]); -1 6958 } else { -1 6959 result = apply.call(original, this, args); -1 6960 } -1 6961 if (id === null) { -1 6962 id = get2(args); -1 6963 if (id !== null) { -1 6964 throw customError('Circular invocation', 'CIRCULAR_INVOCATION'); -1 6965 } -1 6966 id = set2(args); -1 6967 } else if (hasOwnProperty.call(cache2, id)) { -1 6968 throw customError('Circular invocation', 'CIRCULAR_INVOCATION'); -1 6969 } -1 6970 cache2[id] = result; -1 6971 if (setListeners) { -1 6972 conf.emit('set', id, null, result); -1 6973 } -1 6974 return result; -1 6975 }, memLength); -1 6976 } else if (length === 0) { -1 6977 memoized = function memoized() { -1 6978 var result; -1 6979 if (hasOwnProperty.call(cache2, 'data')) { -1 6980 if (getListeners) { -1 6981 conf.emit('get', 'data', arguments, this); -1 6982 } -1 6983 return cache2.data; -1 6984 } -1 6985 if (arguments.length) { -1 6986 result = apply.call(original, this, arguments); -1 6987 } else { -1 6988 result = call.call(original, this); -1 6989 } -1 6990 if (hasOwnProperty.call(cache2, 'data')) { -1 6991 throw customError('Circular invocation', 'CIRCULAR_INVOCATION'); -1 6992 } -1 6993 cache2.data = result; -1 6994 if (setListeners) { -1 6995 conf.emit('set', 'data', null, result); -1 6996 } -1 6997 return result; -1 6998 }; -1 6999 } else { -1 7000 memoized = function memoized(arg) { -1 7001 var result, args = arguments, id; -1 7002 if (resolve) { -1 7003 args = resolve(arguments); -1 7004 } -1 7005 id = String(args[0]); -1 7006 if (hasOwnProperty.call(cache2, id)) { -1 7007 if (getListeners) { -1 7008 conf.emit('get', id, args, this); -1 7009 } -1 7010 return cache2[id]; -1 7011 } -1 7012 if (args.length === 1) { -1 7013 result = call.call(original, this, args[0]); -1 7014 } else { -1 7015 result = apply.call(original, this, args); -1 7016 } -1 7017 if (hasOwnProperty.call(cache2, id)) { -1 7018 throw customError('Circular invocation', 'CIRCULAR_INVOCATION'); -1 7019 } -1 7020 cache2[id] = result; -1 7021 if (setListeners) { -1 7022 conf.emit('set', id, null, result); -1 7023 } -1 7024 return result; -1 7025 }; -1 7026 } -1 7027 conf = { -1 7028 original: original, -1 7029 memoized: memoized, -1 7030 profileName: options.profileName, -1 7031 get: function get(args) { -1 7032 if (resolve) { -1 7033 args = resolve(args); -1 7034 } -1 7035 if (get2) { -1 7036 return get2(args); -1 7037 } -1 7038 return String(args[0]); -1 7039 }, -1 7040 has: function has(id) { -1 7041 return hasOwnProperty.call(cache2, id); -1 7042 }, -1 7043 delete: function _delete(id) { -1 7044 var result; -1 7045 if (!hasOwnProperty.call(cache2, id)) { -1 7046 return; -1 7047 } -1 7048 if (del) { -1 7049 del(id); -1 7050 } -1 7051 result = cache2[id]; -1 7052 delete cache2[id]; -1 7053 if (deleteListeners) { -1 7054 conf.emit('delete', id, result); -1 7055 } -1 7056 }, -1 7057 clear: function clear() { -1 7058 var oldCache = cache2; -1 7059 if (_clear) { -1 7060 _clear(); -1 7061 } -1 7062 cache2 = create(null); -1 7063 conf.emit('clear', oldCache); -1 7064 }, -1 7065 on: function on(type2, listener) { -1 7066 if (type2 === 'get') { -1 7067 getListeners = true; -1 7068 } else if (type2 === 'set') { -1 7069 setListeners = true; -1 7070 } else if (type2 === 'delete') { -1 7071 deleteListeners = true; -1 7072 } -1 7073 return _on.call(this, type2, listener); -1 7074 }, -1 7075 emit: emit, -1 7076 updateEnv: function updateEnv() { -1 7077 original = conf.original; 7459 7078 } -1 7079 }; -1 7080 if (get2) { -1 7081 extDel = defineLength(function(arg) { -1 7082 var id, args = arguments; -1 7083 if (resolve) { -1 7084 args = resolve(args); -1 7085 } -1 7086 id = get2(args); -1 7087 if (id === null) { -1 7088 return; -1 7089 } -1 7090 conf['delete'](id); -1 7091 }, memLength); -1 7092 } else if (length === 0) { -1 7093 extDel = function extDel() { -1 7094 return conf['delete']('data'); -1 7095 }; -1 7096 } else { -1 7097 extDel = function extDel(arg) { -1 7098 if (resolve) { -1 7099 arg = resolve(arguments)[0]; -1 7100 } -1 7101 return conf['delete'](arg); -1 7102 }; 7460 7103 }7461 -1 }7462 -1 var NEW_ITERATOR_PROTOTYPE = !isObject(IteratorPrototype) || fails(function() {7463 -1 var test = {};7464 -1 return IteratorPrototype[ITERATOR].call(test) !== test;7465 -1 });7466 -1 if (NEW_ITERATOR_PROTOTYPE) {7467 -1 IteratorPrototype = {};7468 -1 } else if (IS_PURE) {7469 -1 IteratorPrototype = create(IteratorPrototype);7470 -1 }7471 -1 if (!isCallable(IteratorPrototype[ITERATOR])) {7472 -1 defineBuiltIn(IteratorPrototype, ITERATOR, function() {7473 -1 return this;-1 7104 extGet = defineLength(function() { -1 7105 var id, args = arguments; -1 7106 if (length === 0) { -1 7107 return cache2.data; -1 7108 } -1 7109 if (resolve) { -1 7110 args = resolve(args); -1 7111 } -1 7112 if (get2) { -1 7113 id = get2(args); -1 7114 } else { -1 7115 id = String(args[0]); -1 7116 } -1 7117 return cache2[id]; 7474 7118 });7475 -1 }7476 -1 module.exports = {7477 -1 IteratorPrototype: IteratorPrototype,7478 -1 BUGGY_SAFARI_ITERATORS: BUGGY_SAFARI_ITERATORS7479 -1 };7480 -1 });7481 -1 var require_object_to_string = __commonJS(function(exports, module) {7482 -1 'use strict';7483 -1 var TO_STRING_TAG_SUPPORT = require_to_string_tag_support();7484 -1 var classof = require_classof();7485 -1 module.exports = TO_STRING_TAG_SUPPORT ? {}.toString : function toString() {7486 -1 return '[object ' + classof(this) + ']';-1 7119 extHas = defineLength(function() { -1 7120 var id, args = arguments; -1 7121 if (length === 0) { -1 7122 return conf.has('data'); -1 7123 } -1 7124 if (resolve) { -1 7125 args = resolve(args); -1 7126 } -1 7127 if (get2) { -1 7128 id = get2(args); -1 7129 } else { -1 7130 id = String(args[0]); -1 7131 } -1 7132 if (id === null) { -1 7133 return false; -1 7134 } -1 7135 return conf.has(id); -1 7136 }); -1 7137 defineProperties(memoized, { -1 7138 __memoized__: d2(true), -1 7139 delete: d2(extDel), -1 7140 clear: d2(conf.clear), -1 7141 _get: d2(extGet), -1 7142 _has: d2(extHas) -1 7143 }); -1 7144 return conf; 7487 7145 }; 7488 7146 });7489 -1 var require_set_to_string_tag = __commonJS(function(exports, module) {-1 7147 var require_plain = __commonJS(function(exports, module) { 7490 7148 'use strict';7491 -1 var TO_STRING_TAG_SUPPORT = require_to_string_tag_support();7492 -1 var defineProperty = require_object_define_property().f;7493 -1 var createNonEnumerableProperty = require_create_non_enumerable_property();7494 -1 var hasOwn2 = require_has_own_property();7495 -1 var toString = require_object_to_string();7496 -1 var wellKnownSymbol = require_well_known_symbol();7497 -1 var TO_STRING_TAG = wellKnownSymbol('toStringTag');7498 -1 module.exports = function(it, TAG, STATIC, SET_METHOD) {7499 -1 if (it) {7500 -1 var target = STATIC ? it : it.prototype;7501 -1 if (!hasOwn2(target, TO_STRING_TAG)) {7502 -1 defineProperty(target, TO_STRING_TAG, {7503 -1 configurable: true,7504 -1 value: TAG7505 -1 });7506 -1 }7507 -1 if (SET_METHOD && !TO_STRING_TAG_SUPPORT) {7508 -1 createNonEnumerableProperty(target, 'toString', toString);-1 7149 var callable = require_valid_callable(); -1 7150 var forEach = require_for_each(); -1 7151 var extensions = require_registered_extensions(); -1 7152 var configure4 = require_configure_map(); -1 7153 var resolveLength = require_resolve_length(); -1 7154 module.exports = function self2(fn) { -1 7155 var options, length, conf; -1 7156 callable(fn); -1 7157 options = Object(arguments[1]); -1 7158 if (options.async && options.promise) { -1 7159 throw new Error('Options \'async\' and \'promise\' cannot be used together'); -1 7160 } -1 7161 if (hasOwnProperty.call(fn, '__memoized__') && !options.force) { -1 7162 return fn; -1 7163 } -1 7164 length = resolveLength(options.length, fn.length, options.async && extensions.async); -1 7165 conf = configure4(fn, length, options); -1 7166 forEach(extensions, function(extFn, name) { -1 7167 if (options[name]) { -1 7168 extFn(options[name], conf, options); 7509 7169 } -1 7170 }); -1 7171 if (self2.__profiler__) { -1 7172 self2.__profiler__(conf); 7510 7173 } -1 7174 conf.updateEnv(); -1 7175 return conf.memoized; 7511 7176 }; 7512 7177 });7513 -1 var require_iterators = __commonJS(function(exports, module) {-1 7178 var require_primitive = __commonJS(function(exports, module) { 7514 7179 'use strict';7515 -1 module.exports = {};-1 7180 module.exports = function(args) { -1 7181 var id, i, length = args.length; -1 7182 if (!length) { -1 7183 return '\x02'; -1 7184 } -1 7185 id = String(args[i = 0]); -1 7186 while (--length) { -1 7187 id += '\x01' + args[++i]; -1 7188 } -1 7189 return id; -1 7190 }; 7516 7191 });7517 -1 var require_iterator_create_constructor = __commonJS(function(exports, module) {-1 7192 var require_get_primitive_fixed = __commonJS(function(exports, module) { 7518 7193 'use strict';7519 -1 var IteratorPrototype = require_iterators_core().IteratorPrototype;7520 -1 var create = require_object_create();7521 -1 var createPropertyDescriptor = require_create_property_descriptor();7522 -1 var setToStringTag = require_set_to_string_tag();7523 -1 var Iterators = require_iterators();7524 -1 var returnThis = function returnThis() {7525 -1 return this;7526 -1 };7527 -1 module.exports = function(IteratorConstructor, NAME, next, ENUMERABLE_NEXT) {7528 -1 var TO_STRING_TAG = NAME + ' Iterator';7529 -1 IteratorConstructor.prototype = create(IteratorPrototype, {7530 -1 next: createPropertyDescriptor(+!ENUMERABLE_NEXT, next)7531 -1 });7532 -1 setToStringTag(IteratorConstructor, TO_STRING_TAG, false, true);7533 -1 Iterators[TO_STRING_TAG] = returnThis;7534 -1 return IteratorConstructor;-1 7194 module.exports = function(length) { -1 7195 if (!length) { -1 7196 return function() { -1 7197 return ''; -1 7198 }; -1 7199 } -1 7200 return function(args) { -1 7201 var id = String(args[0]), i = 0, currentLength = length; -1 7202 while (--currentLength) { -1 7203 id += '\x01' + args[++i]; -1 7204 } -1 7205 return id; -1 7206 }; 7535 7207 }; 7536 7208 });7537 -1 var require_function_uncurry_this_accessor = __commonJS(function(exports, module) {-1 7209 var require_is_implemented8 = __commonJS(function(exports, module) { 7538 7210 'use strict';7539 -1 var uncurryThis = require_function_uncurry_this();7540 -1 var aCallable = require_a_callable();7541 -1 module.exports = function(object, key, method) {7542 -1 try {7543 -1 return uncurryThis(aCallable(Object.getOwnPropertyDescriptor(object, key)[method]));7544 -1 } catch (error) {}-1 7211 module.exports = function() { -1 7212 var numberIsNaN = Number.isNaN; -1 7213 if (typeof numberIsNaN !== 'function') { -1 7214 return false; -1 7215 } -1 7216 return !numberIsNaN({}) && numberIsNaN(NaN) && !numberIsNaN(34); 7545 7217 }; 7546 7218 });7547 -1 var require_a_possible_prototype = __commonJS(function(exports, module) {-1 7219 var require_shim6 = __commonJS(function(exports, module) { 7548 7220 'use strict';7549 -1 var isCallable = require_is_callable2();7550 -1 var $String = String;7551 -1 var $TypeError = TypeError;7552 -1 module.exports = function(argument) {7553 -1 if (_typeof(argument) == 'object' || isCallable(argument)) {7554 -1 return argument;7555 -1 }7556 -1 throw new $TypeError('Can\'t set ' + $String(argument) + ' as a prototype');-1 7221 module.exports = function(value) { -1 7222 return value !== value; 7557 7223 }; 7558 7224 });7559 -1 var require_object_set_prototype_of = __commonJS(function(exports, module) {-1 7225 var require_is_nan = __commonJS(function(exports, module) { 7560 7226 'use strict';7561 -1 var uncurryThisAccessor = require_function_uncurry_this_accessor();7562 -1 var anObject = require_an_object();7563 -1 var aPossiblePrototype = require_a_possible_prototype();7564 -1 module.exports = Object.setPrototypeOf || ('__proto__' in {} ? function() {7565 -1 var CORRECT_SETTER = false;7566 -1 var test = {};7567 -1 var setter;7568 -1 try {7569 -1 setter = uncurryThisAccessor(Object.prototype, '__proto__', 'set');7570 -1 setter(test, []);7571 -1 CORRECT_SETTER = test instanceof Array;7572 -1 } catch (error) {}7573 -1 return function setPrototypeOf(O, proto) {7574 -1 anObject(O);7575 -1 aPossiblePrototype(proto);7576 -1 if (CORRECT_SETTER) {7577 -1 setter(O, proto);7578 -1 } else {7579 -1 O.__proto__ = proto;7580 -1 }7581 -1 return O;7582 -1 };7583 -1 }() : void 0);-1 7227 module.exports = require_is_implemented8()() ? Number.isNaN : require_shim6(); 7584 7228 });7585 -1 var require_iterator_define = __commonJS(function(exports, module) {-1 7229 var require_e_index_of = __commonJS(function(exports, module) { 7586 7230 'use strict';7587 -1 var $ = require_export();7588 -1 var call = require_function_call();7589 -1 var IS_PURE = require_is_pure();7590 -1 var FunctionName = require_function_name();7591 -1 var isCallable = require_is_callable2();7592 -1 var createIteratorConstructor = require_iterator_create_constructor();7593 -1 var getPrototypeOf = require_object_get_prototype_of();7594 -1 var setPrototypeOf = require_object_set_prototype_of();7595 -1 var setToStringTag = require_set_to_string_tag();7596 -1 var createNonEnumerableProperty = require_create_non_enumerable_property();7597 -1 var defineBuiltIn = require_define_built_in();7598 -1 var wellKnownSymbol = require_well_known_symbol();7599 -1 var Iterators = require_iterators();7600 -1 var IteratorsCore = require_iterators_core();7601 -1 var PROPER_FUNCTION_NAME = FunctionName.PROPER;7602 -1 var CONFIGURABLE_FUNCTION_NAME = FunctionName.CONFIGURABLE;7603 -1 var IteratorPrototype = IteratorsCore.IteratorPrototype;7604 -1 var BUGGY_SAFARI_ITERATORS = IteratorsCore.BUGGY_SAFARI_ITERATORS;7605 -1 var ITERATOR = wellKnownSymbol('iterator');7606 -1 var KEYS = 'keys';7607 -1 var VALUES = 'values';7608 -1 var ENTRIES = 'entries';7609 -1 var returnThis = function returnThis() {7610 -1 return this;7611 -1 };7612 -1 module.exports = function(Iterable, NAME, IteratorConstructor, next, DEFAULT, IS_SET, FORCED) {7613 -1 createIteratorConstructor(IteratorConstructor, NAME, next);7614 -1 var getIterationMethod = function getIterationMethod(KIND) {7615 -1 if (KIND === DEFAULT && defaultIterator) {7616 -1 return defaultIterator;7617 -1 }7618 -1 if (!BUGGY_SAFARI_ITERATORS && KIND && KIND in IterablePrototype) {7619 -1 return IterablePrototype[KIND];7620 -1 }7621 -1 switch (KIND) {7622 -1 case KEYS:7623 -1 return function keys() {7624 -1 return new IteratorConstructor(this, KIND);7625 -1 };7626 -17627 -1 case VALUES:7628 -1 return function values2() {7629 -1 return new IteratorConstructor(this, KIND);7630 -1 };7631 -17632 -1 case ENTRIES:7633 -1 return function entries() {7634 -1 return new IteratorConstructor(this, KIND);7635 -1 };7636 -1 }7637 -1 return function() {7638 -1 return new IteratorConstructor(this);7639 -1 };7640 -1 };7641 -1 var TO_STRING_TAG = NAME + ' Iterator';7642 -1 var INCORRECT_VALUES_NAME = false;7643 -1 var IterablePrototype = Iterable.prototype;7644 -1 var nativeIterator = IterablePrototype[ITERATOR] || IterablePrototype['@@iterator'] || DEFAULT && IterablePrototype[DEFAULT];7645 -1 var defaultIterator = !BUGGY_SAFARI_ITERATORS && nativeIterator || getIterationMethod(DEFAULT);7646 -1 var anyNativeIterator = NAME === 'Array' ? IterablePrototype.entries || nativeIterator : nativeIterator;7647 -1 var CurrentIteratorPrototype, methods, KEY;7648 -1 if (anyNativeIterator) {7649 -1 CurrentIteratorPrototype = getPrototypeOf(anyNativeIterator.call(new Iterable()));7650 -1 if (CurrentIteratorPrototype !== Object.prototype && CurrentIteratorPrototype.next) {7651 -1 if (!IS_PURE && getPrototypeOf(CurrentIteratorPrototype) !== IteratorPrototype) {7652 -1 if (setPrototypeOf) {7653 -1 setPrototypeOf(CurrentIteratorPrototype, IteratorPrototype);7654 -1 } else if (!isCallable(CurrentIteratorPrototype[ITERATOR])) {7655 -1 defineBuiltIn(CurrentIteratorPrototype, ITERATOR, returnThis);7656 -1 }7657 -1 }7658 -1 setToStringTag(CurrentIteratorPrototype, TO_STRING_TAG, true, true);7659 -1 if (IS_PURE) {7660 -1 Iterators[TO_STRING_TAG] = returnThis;-1 7231 var numberIsNaN = require_is_nan(); -1 7232 var toPosInt = require_to_pos_integer(); -1 7233 var value = require_valid_value(); -1 7234 var indexOf = Array.prototype.indexOf; -1 7235 var objHasOwnProperty = Object.prototype.hasOwnProperty; -1 7236 var abs = Math.abs; -1 7237 var floor = Math.floor; -1 7238 module.exports = function(searchElement) { -1 7239 var i, length, fromIndex, val; -1 7240 if (!numberIsNaN(searchElement)) { -1 7241 return indexOf.apply(this, arguments); -1 7242 } -1 7243 length = toPosInt(value(this).length); -1 7244 fromIndex = arguments[1]; -1 7245 if (isNaN(fromIndex)) { -1 7246 fromIndex = 0; -1 7247 } else if (fromIndex >= 0) { -1 7248 fromIndex = floor(fromIndex); -1 7249 } else { -1 7250 fromIndex = toPosInt(this.length) - floor(abs(fromIndex)); -1 7251 } -1 7252 for (i = fromIndex; i < length; ++i) { -1 7253 if (objHasOwnProperty.call(this, i)) { -1 7254 val = this[i]; -1 7255 if (numberIsNaN(val)) { -1 7256 return i; 7661 7257 } 7662 7258 } 7663 7259 }7664 -1 if (PROPER_FUNCTION_NAME && DEFAULT === VALUES && nativeIterator && nativeIterator.name !== VALUES) {7665 -1 if (!IS_PURE && CONFIGURABLE_FUNCTION_NAME) {7666 -1 createNonEnumerableProperty(IterablePrototype, 'name', VALUES);7667 -1 } else {7668 -1 INCORRECT_VALUES_NAME = true;7669 -1 defaultIterator = function values2() {7670 -1 return call(nativeIterator, this);7671 -1 };7672 -1 }7673 -1 }7674 -1 if (DEFAULT) {7675 -1 methods = {7676 -1 values: getIterationMethod(VALUES),7677 -1 keys: IS_SET ? defaultIterator : getIterationMethod(KEYS),7678 -1 entries: getIterationMethod(ENTRIES)7679 -1 };7680 -1 if (FORCED) {7681 -1 for (KEY in methods) {7682 -1 if (BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME || !(KEY in IterablePrototype)) {7683 -1 defineBuiltIn(IterablePrototype, KEY, methods[KEY]);-1 7260 return -1; -1 7261 }; -1 7262 }); -1 7263 var require_get = __commonJS(function(exports, module) { -1 7264 'use strict'; -1 7265 var indexOf = require_e_index_of(); -1 7266 var create = Object.create; -1 7267 module.exports = function() { -1 7268 var lastId = 0, map = [], cache2 = create(null); -1 7269 return { -1 7270 get: function get(args) { -1 7271 var index = 0, set2 = map, i, length = args.length; -1 7272 if (length === 0) { -1 7273 return set2[length] || null; -1 7274 } -1 7275 if (set2 = set2[length]) { -1 7276 while (index < length - 1) { -1 7277 i = indexOf.call(set2[0], args[index]); -1 7278 if (i === -1) { -1 7279 return null; -1 7280 } -1 7281 set2 = set2[1][i]; -1 7282 ++index; -1 7283 } -1 7284 i = indexOf.call(set2[0], args[index]); -1 7285 if (i === -1) { -1 7286 return null; 7684 7287 } -1 7288 return set2[1][i] || null; 7685 7289 }7686 -1 } else {7687 -1 $({7688 -1 target: NAME,7689 -1 proto: true,7690 -1 forced: BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME7691 -1 }, methods);-1 7290 return null; -1 7291 }, -1 7292 set: function set(args) { -1 7293 var index = 0, set2 = map, i, length = args.length; -1 7294 if (length === 0) { -1 7295 set2[length] = ++lastId; -1 7296 } else { -1 7297 if (!set2[length]) { -1 7298 set2[length] = [ [], [] ]; -1 7299 } -1 7300 set2 = set2[length]; -1 7301 while (index < length - 1) { -1 7302 i = indexOf.call(set2[0], args[index]); -1 7303 if (i === -1) { -1 7304 i = set2[0].push(args[index]) - 1; -1 7305 set2[1].push([ [], [] ]); -1 7306 } -1 7307 set2 = set2[1][i]; -1 7308 ++index; -1 7309 } -1 7310 i = indexOf.call(set2[0], args[index]); -1 7311 if (i === -1) { -1 7312 i = set2[0].push(args[index]) - 1; -1 7313 } -1 7314 set2[1][i] = ++lastId; -1 7315 } -1 7316 cache2[lastId] = args; -1 7317 return lastId; -1 7318 }, -1 7319 delete: function _delete(id) { -1 7320 var index = 0, set2 = map, i, args = cache2[id], length = args.length, path = []; -1 7321 if (length === 0) { -1 7322 delete set2[length]; -1 7323 } else if (set2 = set2[length]) { -1 7324 while (index < length - 1) { -1 7325 i = indexOf.call(set2[0], args[index]); -1 7326 if (i === -1) { -1 7327 return; -1 7328 } -1 7329 path.push(set2, i); -1 7330 set2 = set2[1][i]; -1 7331 ++index; -1 7332 } -1 7333 i = indexOf.call(set2[0], args[index]); -1 7334 if (i === -1) { -1 7335 return; -1 7336 } -1 7337 id = set2[1][i]; -1 7338 set2[0].splice(i, 1); -1 7339 set2[1].splice(i, 1); -1 7340 while (!set2[0].length && path.length) { -1 7341 i = path.pop(); -1 7342 set2 = path.pop(); -1 7343 set2[0].splice(i, 1); -1 7344 set2[1].splice(i, 1); -1 7345 } -1 7346 } -1 7347 delete cache2[id]; -1 7348 }, -1 7349 clear: function clear() { -1 7350 map = []; -1 7351 cache2 = create(null); 7692 7352 }7693 -1 }7694 -1 if ((!IS_PURE || FORCED) && IterablePrototype[ITERATOR] !== defaultIterator) {7695 -1 defineBuiltIn(IterablePrototype, ITERATOR, defaultIterator, {7696 -1 name: DEFAULT7697 -1 });7698 -1 }7699 -1 Iterators[NAME] = defaultIterator;7700 -1 return methods;-1 7353 }; 7701 7354 }; 7702 7355 });7703 -1 var require_create_iter_result_object = __commonJS(function(exports, module) {-1 7356 var require_get_1 = __commonJS(function(exports, module) { 7704 7357 'use strict';7705 -1 module.exports = function(value, done) {-1 7358 var indexOf = require_e_index_of(); -1 7359 module.exports = function() { -1 7360 var lastId = 0, argsMap = [], cache2 = []; 7706 7361 return {7707 -1 value: value,7708 -1 done: done-1 7362 get: function get(args) { -1 7363 var index = indexOf.call(argsMap, args[0]); -1 7364 return index === -1 ? null : cache2[index]; -1 7365 }, -1 7366 set: function set(args) { -1 7367 argsMap.push(args[0]); -1 7368 cache2.push(++lastId); -1 7369 return lastId; -1 7370 }, -1 7371 delete: function _delete(id) { -1 7372 var index = indexOf.call(cache2, id); -1 7373 if (index !== -1) { -1 7374 argsMap.splice(index, 1); -1 7375 cache2.splice(index, 1); -1 7376 } -1 7377 }, -1 7378 clear: function clear() { -1 7379 argsMap = []; -1 7380 cache2 = []; -1 7381 } 7709 7382 }; 7710 7383 }; 7711 7384 });7712 -1 var require_es_string_iterator = __commonJS(function() {7713 -1 'use strict';7714 -1 var charAt = require_string_multibyte().charAt;7715 -1 var toString = require_to_string();7716 -1 var InternalStateModule = require_internal_state();7717 -1 var defineIterator = require_iterator_define();7718 -1 var createIterResultObject = require_create_iter_result_object();7719 -1 var STRING_ITERATOR = 'String Iterator';7720 -1 var setInternalState = InternalStateModule.set;7721 -1 var getInternalState = InternalStateModule.getterFor(STRING_ITERATOR);7722 -1 defineIterator(String, 'String', function(iterated) {7723 -1 setInternalState(this, {7724 -1 type: STRING_ITERATOR,7725 -1 string: toString(iterated),7726 -1 index: 07727 -1 });7728 -1 }, function next() {7729 -1 var state = getInternalState(this);7730 -1 var string = state.string;7731 -1 var index = state.index;7732 -1 var point;7733 -1 if (index >= string.length) {7734 -1 return createIterResultObject(void 0, true);7735 -1 }7736 -1 point = charAt(string, index);7737 -1 state.index += point.length;7738 -1 return createIterResultObject(point, false);7739 -1 });7740 -1 });7741 -1 var require_iterator_close = __commonJS(function(exports, module) {-1 7385 var require_get_fixed = __commonJS(function(exports, module) { 7742 7386 'use strict';7743 -1 var call = require_function_call();7744 -1 var anObject = require_an_object();7745 -1 var getMethod = require_get_method();7746 -1 module.exports = function(iterator, kind, value) {7747 -1 var innerResult, innerError;7748 -1 anObject(iterator);7749 -1 try {7750 -1 innerResult = getMethod(iterator, 'return');7751 -1 if (!innerResult) {7752 -1 if (kind === 'throw') {7753 -1 throw value;-1 7387 var indexOf = require_e_index_of(); -1 7388 var create = Object.create; -1 7389 module.exports = function(length) { -1 7390 var lastId = 0, map = [ [], [] ], cache2 = create(null); -1 7391 return { -1 7392 get: function get(args) { -1 7393 var index = 0, set2 = map, i; -1 7394 while (index < length - 1) { -1 7395 i = indexOf.call(set2[0], args[index]); -1 7396 if (i === -1) { -1 7397 return null; -1 7398 } -1 7399 set2 = set2[1][i]; -1 7400 ++index; 7754 7401 }7755 -1 return value;-1 7402 i = indexOf.call(set2[0], args[index]); -1 7403 if (i === -1) { -1 7404 return null; -1 7405 } -1 7406 return set2[1][i] || null; -1 7407 }, -1 7408 set: function set(args) { -1 7409 var index = 0, set2 = map, i; -1 7410 while (index < length - 1) { -1 7411 i = indexOf.call(set2[0], args[index]); -1 7412 if (i === -1) { -1 7413 i = set2[0].push(args[index]) - 1; -1 7414 set2[1].push([ [], [] ]); -1 7415 } -1 7416 set2 = set2[1][i]; -1 7417 ++index; -1 7418 } -1 7419 i = indexOf.call(set2[0], args[index]); -1 7420 if (i === -1) { -1 7421 i = set2[0].push(args[index]) - 1; -1 7422 } -1 7423 set2[1][i] = ++lastId; -1 7424 cache2[lastId] = args; -1 7425 return lastId; -1 7426 }, -1 7427 delete: function _delete(id) { -1 7428 var index = 0, set2 = map, i, path = [], args = cache2[id]; -1 7429 while (index < length - 1) { -1 7430 i = indexOf.call(set2[0], args[index]); -1 7431 if (i === -1) { -1 7432 return; -1 7433 } -1 7434 path.push(set2, i); -1 7435 set2 = set2[1][i]; -1 7436 ++index; -1 7437 } -1 7438 i = indexOf.call(set2[0], args[index]); -1 7439 if (i === -1) { -1 7440 return; -1 7441 } -1 7442 id = set2[1][i]; -1 7443 set2[0].splice(i, 1); -1 7444 set2[1].splice(i, 1); -1 7445 while (!set2[0].length && path.length) { -1 7446 i = path.pop(); -1 7447 set2 = path.pop(); -1 7448 set2[0].splice(i, 1); -1 7449 set2[1].splice(i, 1); -1 7450 } -1 7451 delete cache2[id]; -1 7452 }, -1 7453 clear: function clear() { -1 7454 map = [ [], [] ]; -1 7455 cache2 = create(null); 7756 7456 }7757 -1 innerResult = call(innerResult, iterator);7758 -1 } catch (error) {7759 -1 innerError = true;7760 -1 innerResult = error;7761 -1 }7762 -1 if (kind === 'throw') {7763 -1 throw value;7764 -1 }7765 -1 if (innerError) {7766 -1 throw innerResult;7767 -1 }7768 -1 anObject(innerResult);7769 -1 return value;-1 7457 }; 7770 7458 }; 7771 7459 });7772 -1 var require_call_with_safe_iteration_closing = __commonJS(function(exports, module) {-1 7460 var require_map = __commonJS(function(exports, module) { 7773 7461 'use strict';7774 -1 var anObject = require_an_object();7775 -1 var iteratorClose = require_iterator_close();7776 -1 module.exports = function(iterator, fn, value, ENTRIES) {7777 -1 try {7778 -1 return ENTRIES ? fn(anObject(value)[0], value[1]) : fn(value);7779 -1 } catch (error) {7780 -1 iteratorClose(iterator, 'throw', error);7781 -1 }-1 7462 var callable = require_valid_callable(); -1 7463 var forEach = require_for_each(); -1 7464 var call = Function.prototype.call; -1 7465 module.exports = function(obj, cb) { -1 7466 var result = {}, thisArg = arguments[2]; -1 7467 callable(cb); -1 7468 forEach(obj, function(value, key, targetObj, index) { -1 7469 result[key] = call.call(cb, thisArg, value, key, targetObj, index); -1 7470 }); -1 7471 return result; 7782 7472 }; 7783 7473 });7784 -1 var require_is_array_iterator_method = __commonJS(function(exports, module) {-1 7474 var require_next_tick = __commonJS(function(exports, module) { 7785 7475 'use strict';7786 -1 var wellKnownSymbol = require_well_known_symbol();7787 -1 var Iterators = require_iterators();7788 -1 var ITERATOR = wellKnownSymbol('iterator');7789 -1 var ArrayPrototype = Array.prototype;7790 -1 module.exports = function(it) {7791 -1 return it !== void 0 && (Iterators.Array === it || ArrayPrototype[ITERATOR] === it);-1 7476 var ensureCallable = function ensureCallable(fn) { -1 7477 if (typeof fn !== 'function') { -1 7478 throw new TypeError(fn + ' is not a function'); -1 7479 } -1 7480 return fn; 7792 7481 };7793 -1 });7794 -1 var require_inspect_source = __commonJS(function(exports, module) {7795 -1 'use strict';7796 -1 var uncurryThis = require_function_uncurry_this();7797 -1 var isCallable = require_is_callable2();7798 -1 var store = require_shared_store();7799 -1 var functionToString = uncurryThis(Function.toString);7800 -1 if (!isCallable(store.inspectSource)) {7801 -1 store.inspectSource = function(it) {7802 -1 return functionToString(it);-1 7482 var byObserver = function byObserver(Observer) { -1 7483 var node = document.createTextNode(''), queue2, currentQueue, i = 0; -1 7484 new Observer(function() { -1 7485 var callback; -1 7486 if (!queue2) { -1 7487 if (!currentQueue) { -1 7488 return; -1 7489 } -1 7490 queue2 = currentQueue; -1 7491 } else if (currentQueue) { -1 7492 queue2 = currentQueue.concat(queue2); -1 7493 } -1 7494 currentQueue = queue2; -1 7495 queue2 = null; -1 7496 if (typeof currentQueue === 'function') { -1 7497 callback = currentQueue; -1 7498 currentQueue = null; -1 7499 callback(); -1 7500 return; -1 7501 } -1 7502 node.data = i = ++i % 2; -1 7503 while (currentQueue) { -1 7504 callback = currentQueue.shift(); -1 7505 if (!currentQueue.length) { -1 7506 currentQueue = null; -1 7507 } -1 7508 callback(); -1 7509 } -1 7510 }).observe(node, { -1 7511 characterData: true -1 7512 }); -1 7513 return function(fn) { -1 7514 ensureCallable(fn); -1 7515 if (queue2) { -1 7516 if (typeof queue2 === 'function') { -1 7517 queue2 = [ queue2, fn ]; -1 7518 } else { -1 7519 queue2.push(fn); -1 7520 } -1 7521 return; -1 7522 } -1 7523 queue2 = fn; -1 7524 node.data = i = ++i % 2; 7803 7525 };7804 -1 }7805 -1 module.exports = store.inspectSource;7806 -1 });7807 -1 var require_is_constructor = __commonJS(function(exports, module) {7808 -1 'use strict';7809 -1 var uncurryThis = require_function_uncurry_this();7810 -1 var fails = require_fails();7811 -1 var isCallable = require_is_callable2();7812 -1 var classof = require_classof();7813 -1 var getBuiltIn = require_get_built_in();7814 -1 var inspectSource = require_inspect_source();7815 -1 var noop3 = function noop3() {};7816 -1 var empty = [];7817 -1 var construct = getBuiltIn('Reflect', 'construct');7818 -1 var constructorRegExp = /^\s*(?:class|function)\b/;7819 -1 var exec = uncurryThis(constructorRegExp.exec);7820 -1 var INCORRECT_TO_STRING = !constructorRegExp.test(noop3);7821 -1 var isConstructorModern = function isConstructor(argument) {7822 -1 if (!isCallable(argument)) {7823 -1 return false;7824 -1 }7825 -1 try {7826 -1 construct(noop3, empty, argument);7827 -1 return true;7828 -1 } catch (error) {7829 -1 return false;7830 -1 }7831 7526 };7832 -1 var isConstructorLegacy = function isConstructor(argument) {7833 -1 if (!isCallable(argument)) {7834 -1 return false;7835 -1 }7836 -1 switch (classof(argument)) {7837 -1 case 'AsyncFunction':7838 -1 case 'GeneratorFunction':7839 -1 case 'AsyncGeneratorFunction':7840 -1 return false;-1 7527 module.exports = function() { -1 7528 if ((typeof process === 'undefined' ? 'undefined' : _typeof(process)) === 'object' && process && typeof process.nextTick === 'function') { -1 7529 return process.nextTick; 7841 7530 }7842 -1 try {7843 -1 return INCORRECT_TO_STRING || !!exec(constructorRegExp, inspectSource(argument));7844 -1 } catch (error) {7845 -1 return true;-1 7531 if (typeof queueMicrotask === 'function') { -1 7532 return function(cb) { -1 7533 queueMicrotask(ensureCallable(cb)); -1 7534 }; 7846 7535 }7847 -1 };7848 -1 isConstructorLegacy.sham = true;7849 -1 module.exports = !construct || fails(function() {7850 -1 var called;7851 -1 return isConstructorModern(isConstructorModern.call) || !isConstructorModern(Object) || !isConstructorModern(function() {7852 -1 called = true;7853 -1 }) || called;7854 -1 }) ? isConstructorLegacy : isConstructorModern;7855 -1 });7856 -1 var require_create_property = __commonJS(function(exports, module) {7857 -1 'use strict';7858 -1 var toPropertyKey = require_to_property_key();7859 -1 var definePropertyModule = require_object_define_property();7860 -1 var createPropertyDescriptor = require_create_property_descriptor();7861 -1 module.exports = function(object, key, value) {7862 -1 var propertyKey = toPropertyKey(key);7863 -1 if (propertyKey in object) {7864 -1 definePropertyModule.f(object, propertyKey, createPropertyDescriptor(0, value));7865 -1 } else {7866 -1 object[propertyKey] = value;-1 7536 if ((typeof document === 'undefined' ? 'undefined' : _typeof(document)) === 'object' && document) { -1 7537 if (typeof MutationObserver === 'function') { -1 7538 return byObserver(MutationObserver); -1 7539 } -1 7540 if (typeof WebKitMutationObserver === 'function') { -1 7541 return byObserver(WebKitMutationObserver); -1 7542 } 7867 7543 }7868 -1 };7869 -1 });7870 -1 var require_get_iterator_method = __commonJS(function(exports, module) {7871 -1 'use strict';7872 -1 var classof = require_classof();7873 -1 var getMethod = require_get_method();7874 -1 var isNullOrUndefined = require_is_null_or_undefined();7875 -1 var Iterators = require_iterators();7876 -1 var wellKnownSymbol = require_well_known_symbol();7877 -1 var ITERATOR = wellKnownSymbol('iterator');7878 -1 module.exports = function(it) {7879 -1 if (!isNullOrUndefined(it)) {7880 -1 return getMethod(it, ITERATOR) || getMethod(it, '@@iterator') || Iterators[classof(it)];-1 7544 if (typeof setImmediate === 'function') { -1 7545 return function(cb) { -1 7546 setImmediate(ensureCallable(cb)); -1 7547 }; 7881 7548 }7882 -1 };7883 -1 });7884 -1 var require_get_iterator = __commonJS(function(exports, module) {7885 -1 'use strict';7886 -1 var call = require_function_call();7887 -1 var aCallable = require_a_callable();7888 -1 var anObject = require_an_object();7889 -1 var tryToString = require_try_to_string();7890 -1 var getIteratorMethod = require_get_iterator_method();7891 -1 var $TypeError = TypeError;7892 -1 module.exports = function(argument, usingIterator) {7893 -1 var iteratorMethod = arguments.length < 2 ? getIteratorMethod(argument) : usingIterator;7894 -1 if (aCallable(iteratorMethod)) {7895 -1 return anObject(call(iteratorMethod, argument));-1 7549 if (typeof setTimeout === 'function' || (typeof setTimeout === 'undefined' ? 'undefined' : _typeof(setTimeout)) === 'object') { -1 7550 return function(cb) { -1 7551 setTimeout(ensureCallable(cb), 0); -1 7552 }; 7896 7553 }7897 -1 throw new $TypeError(tryToString(argument) + ' is not iterable');7898 -1 };-1 7554 return null; -1 7555 }(); 7899 7556 });7900 -1 var require_array_from = __commonJS(function(exports, module) {-1 7557 var require_async = __commonJS(function() { 7901 7558 'use strict';7902 -1 var bind = require_function_bind_context();7903 -1 var call = require_function_call();7904 -1 var toObject = require_to_object();7905 -1 var callWithSafeIterationClosing = require_call_with_safe_iteration_closing();7906 -1 var isArrayIteratorMethod = require_is_array_iterator_method();7907 -1 var isConstructor = require_is_constructor();7908 -1 var lengthOfArrayLike = require_length_of_array_like();7909 -1 var createProperty = require_create_property();7910 -1 var getIterator = require_get_iterator();7911 -1 var getIteratorMethod = require_get_iterator_method();7912 -1 var $Array = Array;7913 -1 module.exports = function from(arrayLike) {7914 -1 var O = toObject(arrayLike);7915 -1 var IS_CONSTRUCTOR = isConstructor(this);7916 -1 var argumentsLength = arguments.length;7917 -1 var mapfn = argumentsLength > 1 ? arguments[1] : void 0;7918 -1 var mapping = mapfn !== void 0;7919 -1 if (mapping) {7920 -1 mapfn = bind(mapfn, argumentsLength > 2 ? arguments[2] : void 0);7921 -1 }7922 -1 var iteratorMethod = getIteratorMethod(O);7923 -1 var index = 0;7924 -1 var length, result, step, iterator, next, value;7925 -1 if (iteratorMethod && !(this === $Array && isArrayIteratorMethod(iteratorMethod))) {7926 -1 iterator = getIterator(O, iteratorMethod);7927 -1 next = iterator.next;7928 -1 result = IS_CONSTRUCTOR ? new this() : [];7929 -1 for (;!(step = call(next, iterator)).done; index++) {7930 -1 value = mapping ? callWithSafeIterationClosing(iterator, mapfn, [ step.value, index ], true) : step.value;7931 -1 createProperty(result, index, value);-1 7559 var aFrom = require_from4(); -1 7560 var objectMap = require_map(); -1 7561 var mixin = require_mixin(); -1 7562 var defineLength = require_define_length(); -1 7563 var nextTick = require_next_tick(); -1 7564 var slice = Array.prototype.slice; -1 7565 var apply = Function.prototype.apply; -1 7566 var create = Object.create; -1 7567 require_registered_extensions().async = function(tbi, conf) { -1 7568 var waiting = create(null), cache2 = create(null), base = conf.memoized, original = conf.original, currentCallback, currentContext, currentArgs; -1 7569 conf.memoized = defineLength(function(arg) { -1 7570 var args = arguments, last2 = args[args.length - 1]; -1 7571 if (typeof last2 === 'function') { -1 7572 currentCallback = last2; -1 7573 args = slice.call(args, 0, -1); 7932 7574 }7933 -1 } else {7934 -1 length = lengthOfArrayLike(O);7935 -1 result = IS_CONSTRUCTOR ? new this(length) : $Array(length);7936 -1 for (;length > index; index++) {7937 -1 value = mapping ? mapfn(O[index], index) : O[index];7938 -1 createProperty(result, index, value);-1 7575 return base.apply(currentContext = this, currentArgs = args); -1 7576 }, base); -1 7577 try { -1 7578 mixin(conf.memoized, base); -1 7579 } catch (ignore) {} -1 7580 conf.on('get', function(id) { -1 7581 var cb, context, args; -1 7582 if (!currentCallback) { -1 7583 return; 7939 7584 }7940 -1 }7941 -1 result.length = index;7942 -1 return result;7943 -1 };7944 -1 });7945 -1 var require_check_correctness_of_iteration = __commonJS(function(exports, module) {7946 -1 'use strict';7947 -1 var wellKnownSymbol = require_well_known_symbol();7948 -1 var ITERATOR = wellKnownSymbol('iterator');7949 -1 var SAFE_CLOSING = false;7950 -1 try {7951 -1 called = 0;7952 -1 iteratorWithReturn = {7953 -1 next: function next() {7954 -1 return {7955 -1 done: !!called++7956 -1 };7957 -1 },7958 -1 return: function _return() {7959 -1 SAFE_CLOSING = true;-1 7585 if (waiting[id]) { -1 7586 if (typeof waiting[id] === 'function') { -1 7587 waiting[id] = [ waiting[id], currentCallback ]; -1 7588 } else { -1 7589 waiting[id].push(currentCallback); -1 7590 } -1 7591 currentCallback = null; -1 7592 return; 7960 7593 }7961 -1 };7962 -1 iteratorWithReturn[ITERATOR] = function() {7963 -1 return this;7964 -1 };7965 -1 Array.from(iteratorWithReturn, function() {7966 -1 throw 2;-1 7594 cb = currentCallback; -1 7595 context = currentContext; -1 7596 args = currentArgs; -1 7597 currentCallback = currentContext = currentArgs = null; -1 7598 nextTick(function() { -1 7599 var data; -1 7600 if (hasOwnProperty.call(cache2, id)) { -1 7601 data = cache2[id]; -1 7602 conf.emit('getasync', id, args, context); -1 7603 apply.call(cb, data.context, data.args); -1 7604 } else { -1 7605 currentCallback = cb; -1 7606 currentContext = context; -1 7607 currentArgs = args; -1 7608 base.apply(context, args); -1 7609 } -1 7610 }); 7967 7611 });7968 -1 } catch (error) {}7969 -1 var called;7970 -1 var iteratorWithReturn;7971 -1 module.exports = function(exec, SKIP_CLOSING) {7972 -1 try {7973 -1 if (!SKIP_CLOSING && !SAFE_CLOSING) {7974 -1 return false;-1 7612 conf.original = function() { -1 7613 var args, cb, origCb, result; -1 7614 if (!currentCallback) { -1 7615 return apply.call(original, this, arguments); 7975 7616 }7976 -1 } catch (error) {7977 -1 return false;7978 -1 }7979 -1 var ITERATION_SUPPORT = false;7980 -1 try {7981 -1 var object = {};7982 -1 object[ITERATOR] = function() {7983 -1 return {7984 -1 next: function next() {7985 -1 return {7986 -1 done: ITERATION_SUPPORT = true-1 7617 args = aFrom(arguments); -1 7618 cb = function self2(err2) { -1 7619 var cb2, args2, id = self2.id; -1 7620 if (id == null) { -1 7621 nextTick(apply.bind(self2, this, arguments)); -1 7622 return void 0; -1 7623 } -1 7624 delete self2.id; -1 7625 cb2 = waiting[id]; -1 7626 delete waiting[id]; -1 7627 if (!cb2) { -1 7628 return void 0; -1 7629 } -1 7630 args2 = aFrom(arguments); -1 7631 if (conf.has(id)) { -1 7632 if (err2) { -1 7633 conf['delete'](id); -1 7634 } else { -1 7635 cache2[id] = { -1 7636 context: this, -1 7637 args: args2 7987 7638 }; -1 7639 conf.emit('setasync', id, typeof cb2 === 'function' ? 1 : cb2.length); 7988 7640 }7989 -1 };-1 7641 } -1 7642 if (typeof cb2 === 'function') { -1 7643 result = apply.call(cb2, this, args2); -1 7644 } else { -1 7645 cb2.forEach(function(cb3) { -1 7646 result = apply.call(cb3, this, args2); -1 7647 }, this); -1 7648 } -1 7649 return result; 7990 7650 };7991 -1 exec(object);7992 -1 } catch (error) {}7993 -1 return ITERATION_SUPPORT;-1 7651 origCb = currentCallback; -1 7652 currentCallback = currentContext = currentArgs = null; -1 7653 args.push(cb); -1 7654 result = apply.call(original, this, args); -1 7655 cb.cb = origCb; -1 7656 currentCallback = cb; -1 7657 return result; -1 7658 }; -1 7659 conf.on('set', function(id) { -1 7660 if (!currentCallback) { -1 7661 conf['delete'](id); -1 7662 return; -1 7663 } -1 7664 if (waiting[id]) { -1 7665 if (typeof waiting[id] === 'function') { -1 7666 waiting[id] = [ waiting[id], currentCallback.cb ]; -1 7667 } else { -1 7668 waiting[id].push(currentCallback.cb); -1 7669 } -1 7670 } else { -1 7671 waiting[id] = currentCallback.cb; -1 7672 } -1 7673 delete currentCallback.cb; -1 7674 currentCallback.id = id; -1 7675 currentCallback = null; -1 7676 }); -1 7677 conf.on('delete', function(id) { -1 7678 var result; -1 7679 if (hasOwnProperty.call(waiting, id)) { -1 7680 return; -1 7681 } -1 7682 if (!cache2[id]) { -1 7683 return; -1 7684 } -1 7685 result = cache2[id]; -1 7686 delete cache2[id]; -1 7687 conf.emit('deleteasync', id, slice.call(result.args, 1)); -1 7688 }); -1 7689 conf.on('clear', function() { -1 7690 var oldCache = cache2; -1 7691 cache2 = create(null); -1 7692 conf.emit('clearasync', objectMap(oldCache, function(data) { -1 7693 return slice.call(data.args, 1); -1 7694 })); -1 7695 }); 7994 7696 }; 7995 7697 });7996 -1 var require_es_array_from = __commonJS(function() {-1 7698 var require_primitive_set = __commonJS(function(exports, module) { 7997 7699 'use strict';7998 -1 var $ = require_export();7999 -1 var from = require_array_from();8000 -1 var checkCorrectnessOfIteration = require_check_correctness_of_iteration();8001 -1 var INCORRECT_ITERATION = !checkCorrectnessOfIteration(function(iterable) {8002 -1 Array.from(iterable);8003 -1 });8004 -1 $({8005 -1 target: 'Array',8006 -1 stat: true,8007 -1 forced: INCORRECT_ITERATION8008 -1 }, {8009 -1 from: from8010 -1 });-1 7700 var forEach = Array.prototype.forEach; -1 7701 var create = Object.create; -1 7702 module.exports = function(arg) { -1 7703 var set2 = create(null); -1 7704 forEach.call(arguments, function(name) { -1 7705 set2[name] = true; -1 7706 }); -1 7707 return set2; -1 7708 }; 8011 7709 });8012 -1 var require_from2 = __commonJS(function(exports, module) {-1 7710 var require_is_callable2 = __commonJS(function(exports, module) { 8013 7711 'use strict';8014 -1 require_es_string_iterator();8015 -1 require_es_array_from();8016 -1 var path = require_path();8017 -1 module.exports = path.Array.from;-1 7712 module.exports = function(obj) { -1 7713 return typeof obj === 'function'; -1 7714 }; 8018 7715 });8019 -1 var require_from3 = __commonJS(function(exports, module) {-1 7716 var require_validate_stringifiable = __commonJS(function(exports, module) { 8020 7717 'use strict';8021 -1 var parent = require_from2();8022 -1 module.exports = parent;-1 7718 var isCallable = require_is_callable2(); -1 7719 module.exports = function(stringifiable) { -1 7720 try { -1 7721 if (stringifiable && isCallable(stringifiable.toString)) { -1 7722 return stringifiable.toString(); -1 7723 } -1 7724 return String(stringifiable); -1 7725 } catch (e) { -1 7726 throw new TypeError('Passed argument cannot be stringifed'); -1 7727 } -1 7728 }; 8023 7729 });8024 -1 var require_from4 = __commonJS(function(exports, module) {-1 7730 var require_validate_stringifiable_value = __commonJS(function(exports, module) { 8025 7731 'use strict';8026 -1 var parent = require_from3();8027 -1 module.exports = parent;-1 7732 var ensureValue = require_valid_value(); -1 7733 var stringifiable = require_validate_stringifiable(); -1 7734 module.exports = function(value) { -1 7735 return stringifiable(ensureValue(value)); -1 7736 }; 8028 7737 });8029 -1 var require_doT = __commonJS(function(exports, module) {8030 -1 (function() {8031 -1 'use strict';8032 -1 var doT3 = {8033 -1 name: 'doT',8034 -1 version: '1.1.1',8035 -1 templateSettings: {8036 -1 evaluate: /\{\{([\s\S]+?(\}?)+)\}\}/g,8037 -1 interpolate: /\{\{=([\s\S]+?)\}\}/g,8038 -1 encode: /\{\{!([\s\S]+?)\}\}/g,8039 -1 use: /\{\{#([\s\S]+?)\}\}/g,8040 -1 useParams: /(^|[^\w$])def(?:\.|\[[\'\"])([\w$\.]+)(?:[\'\"]\])?\s*\:\s*([\w$\.]+|\"[^\"]+\"|\'[^\']+\'|\{[^\}]+\})/g,8041 -1 define: /\{\{##\s*([\w\.$]+)\s*(\:|=)([\s\S]+?)#\}\}/g,8042 -1 defineParams: /^\s*([\w$]+):([\s\S]+)/,8043 -1 conditional: /\{\{\?(\?)?\s*([\s\S]*?)\s*\}\}/g,8044 -1 iterate: /\{\{~\s*(?:\}\}|([\s\S]+?)\s*\:\s*([\w$]+)\s*(?:\:\s*([\w$]+))?\s*\}\})/g,8045 -1 varname: 'it',8046 -1 strip: true,8047 -1 append: true,8048 -1 selfcontained: false,8049 -1 doNotSkipEncoded: false8050 -1 },8051 -1 template: void 0,8052 -1 compile: void 0,8053 -1 log: true8054 -1 };8055 -1 (function() {8056 -1 if ((typeof globalThis === 'undefined' ? 'undefined' : _typeof(globalThis)) === 'object') {8057 -1 return;8058 -1 }8059 -1 try {8060 -1 Object.defineProperty(Object.prototype, '__magic__', {8061 -1 get: function get() {8062 -1 return this;8063 -1 },8064 -1 configurable: true8065 -1 });8066 -1 __magic__.globalThis = __magic__;8067 -1 delete Object.prototype.__magic__;8068 -1 } catch (e) {8069 -1 window.globalThis = function() {8070 -1 if (typeof self !== 'undefined') {8071 -1 return self;8072 -1 }8073 -1 if (typeof window !== 'undefined') {8074 -1 return window;8075 -1 }8076 -1 if (typeof global !== 'undefined') {8077 -1 return global;8078 -1 }8079 -1 if (typeof this !== 'undefined') {8080 -1 return this;8081 -1 }8082 -1 throw new Error('Unable to locate global `this`');8083 -1 }();-1 7738 var require_safe_to_string = __commonJS(function(exports, module) { -1 7739 'use strict'; -1 7740 var isCallable = require_is_callable2(); -1 7741 module.exports = function(value) { -1 7742 try { -1 7743 if (value && isCallable(value.toString)) { -1 7744 return value.toString(); 8084 7745 }8085 -1 })();8086 -1 doT3.encodeHTMLSource = function(doNotSkipEncoded) {8087 -1 var encodeHTMLRules = {8088 -1 '&': '&',8089 -1 '<': '<',8090 -1 '>': '>',8091 -1 '"': '"',8092 -1 '\'': ''',8093 -1 '/': '/'8094 -1 }, matchHTML = doNotSkipEncoded ? /[&<>"'\/]/g : /&(?!#?\w+;)|<|>|"|'|\//g;8095 -1 return function(code) {8096 -1 return code ? code.toString().replace(matchHTML, function(m3) {8097 -1 return encodeHTMLRules[m3] || m3;8098 -1 }) : '';8099 -1 };8100 -1 };8101 -1 if (typeof module !== 'undefined' && module.exports) {8102 -1 module.exports = doT3;8103 -1 } else if (typeof define === 'function' && define.amd) {8104 -1 define(function() {8105 -1 return doT3;8106 -1 });-1 7746 return String(value); -1 7747 } catch (e) { -1 7748 return '<Non-coercible to string value>'; -1 7749 } -1 7750 }; -1 7751 }); -1 7752 var require_to_short_string_representation = __commonJS(function(exports, module) { -1 7753 'use strict'; -1 7754 var safeToString = require_safe_to_string(); -1 7755 var reNewLine = /[\n\r\u2028\u2029]/g; -1 7756 module.exports = function(value) { -1 7757 var string = safeToString(value); -1 7758 if (string.length > 100) { -1 7759 string = string.slice(0, 99) + '\u2026'; -1 7760 } -1 7761 string = string.replace(reNewLine, function(_char) { -1 7762 return JSON.stringify(_char).slice(1, -1); -1 7763 }); -1 7764 return string; -1 7765 }; -1 7766 }); -1 7767 var require_is_promise = __commonJS(function(exports, module) { -1 7768 module.exports = isPromise; -1 7769 module.exports['default'] = isPromise; -1 7770 function isPromise(obj) { -1 7771 return !!obj && (_typeof(obj) === 'object' || typeof obj === 'function') && typeof obj.then === 'function'; -1 7772 } -1 7773 }); -1 7774 var require_promise = __commonJS(function() { -1 7775 'use strict'; -1 7776 var objectMap = require_map(); -1 7777 var primitiveSet = require_primitive_set(); -1 7778 var ensureString = require_validate_stringifiable_value(); -1 7779 var toShortString = require_to_short_string_representation(); -1 7780 var isPromise = require_is_promise(); -1 7781 var nextTick = require_next_tick(); -1 7782 var create = Object.create; -1 7783 var supportedModes = primitiveSet('then', 'then:finally', 'done', 'done:finally'); -1 7784 require_registered_extensions().promise = function(mode, conf) { -1 7785 var waiting = create(null), cache2 = create(null), promises = create(null); -1 7786 if (mode === true) { -1 7787 mode = null; 8107 7788 } else {8108 -1 globalThis.doT = doT3;-1 7789 mode = ensureString(mode); -1 7790 if (!supportedModes[mode]) { -1 7791 throw new TypeError('\'' + toShortString(mode) + '\' is not valid promise mode'); -1 7792 } 8109 7793 }8110 -1 var startend = {8111 -1 append: {8112 -1 start: '\'+(',8113 -1 end: ')+\'',8114 -1 startencode: '\'+encodeHTML('8115 -1 },8116 -1 split: {8117 -1 start: '\';out+=(',8118 -1 end: ');out+=\'',8119 -1 startencode: '\';out+=encodeHTML('-1 7794 conf.on('set', function(id, ignore, promise) { -1 7795 var isFailed = false; -1 7796 if (!isPromise(promise)) { -1 7797 cache2[id] = promise; -1 7798 conf.emit('setasync', id, 1); -1 7799 return; 8120 7800 }8121 -1 }, skip = /$^/;8122 -1 function resolveDefs(c4, block, def) {8123 -1 return (typeof block === 'string' ? block : block.toString()).replace(c4.define || skip, function(m3, code, assign, value) {8124 -1 if (code.indexOf('def.') === 0) {8125 -1 code = code.substring(4);-1 7801 waiting[id] = 1; -1 7802 promises[id] = promise; -1 7803 var onSuccess = function onSuccess(result) { -1 7804 var count = waiting[id]; -1 7805 if (isFailed) { -1 7806 throw new Error('Memoizee error: Detected unordered then|done & finally resolution, which in turn makes proper detection of success/failure impossible (when in \'done:finally\' mode)\nConsider to rely on \'then\' or \'done\' mode instead.'); 8126 7807 }8127 -1 if (!(code in def)) {8128 -1 if (assign === ':') {8129 -1 if (c4.defineParams) {8130 -1 value.replace(c4.defineParams, function(m4, param, v) {8131 -1 def[code] = {8132 -1 arg: param,8133 -1 text: v8134 -1 };8135 -1 });8136 -1 }8137 -1 if (!(code in def)) {8138 -1 def[code] = value;8139 -1 }8140 -1 } else {8141 -1 new Function('def', 'def[\'' + code + '\']=' + value)(def);8142 -1 }-1 7808 if (!count) { -1 7809 return; 8143 7810 }8144 -1 return '';8145 -1 }).replace(c4.use || skip, function(m3, code) {8146 -1 if (c4.useParams) {8147 -1 code = code.replace(c4.useParams, function(m4, s, d2, param) {8148 -1 if (def[d2] && def[d2].arg && param) {8149 -1 var rw = (d2 + ':' + param).replace(/'|\\/g, '_');8150 -1 def.__exp = def.__exp || {};8151 -1 def.__exp[rw] = def[d2].text.replace(new RegExp('(^|[^\\w$])' + def[d2].arg + '([^\\w$])', 'g'), '$1' + param + '$2');8152 -1 return s + 'def.__exp[\'' + rw + '\']';8153 -1 }8154 -1 });-1 7811 delete waiting[id]; -1 7812 cache2[id] = result; -1 7813 conf.emit('setasync', id, count); -1 7814 }; -1 7815 var onFailure = function onFailure() { -1 7816 isFailed = true; -1 7817 if (!waiting[id]) { -1 7818 return; 8155 7819 }8156 -1 var v = new Function('def', 'return ' + code)(def);8157 -1 return v ? resolveDefs(c4, v, def) : v;8158 -1 });8159 -1 }8160 -1 function unescape(code) {8161 -1 return code.replace(/\\('|\\)/g, '$1').replace(/[\r\t\n]/g, ' ');8162 -1 }8163 -1 doT3.template = function(tmpl, c4, def) {8164 -1 c4 = c4 || doT3.templateSettings;8165 -1 var cse = c4.append ? startend.append : startend.split, needhtmlencode, sid = 0, indv, str = c4.use || c4.define ? resolveDefs(c4, tmpl, def || {}) : tmpl;8166 -1 str = ('var out=\'' + (c4.strip ? str.replace(/(^|\r|\n)\t* +| +\t*(\r|\n|$)/g, ' ').replace(/\r|\n|\t|\/\*[\s\S]*?\*\//g, '') : str).replace(/'|\\/g, '\\$&').replace(c4.interpolate || skip, function(m3, code) {8167 -1 return cse.start + unescape(code) + cse.end;8168 -1 }).replace(c4.encode || skip, function(m3, code) {8169 -1 needhtmlencode = true;8170 -1 return cse.startencode + unescape(code) + cse.end;8171 -1 }).replace(c4.conditional || skip, function(m3, elsecase, code) {8172 -1 return elsecase ? code ? '\';}else if(' + unescape(code) + '){out+=\'' : '\';}else{out+=\'' : code ? '\';if(' + unescape(code) + '){out+=\'' : '\';}out+=\'';8173 -1 }).replace(c4.iterate || skip, function(m3, iterate, vname, iname) {8174 -1 if (!iterate) {8175 -1 return '\';} } out+=\'';-1 7820 delete waiting[id]; -1 7821 delete promises[id]; -1 7822 conf['delete'](id); -1 7823 }; -1 7824 var resolvedMode = mode; -1 7825 if (!resolvedMode) { -1 7826 resolvedMode = 'then'; -1 7827 } -1 7828 if (resolvedMode === 'then') { -1 7829 var nextTickFailure = function nextTickFailure() { -1 7830 nextTick(onFailure); -1 7831 }; -1 7832 promise = promise.then(function(result) { -1 7833 nextTick(onSuccess.bind(this, result)); -1 7834 }, nextTickFailure); -1 7835 if (typeof promise['finally'] === 'function') { -1 7836 promise['finally'](nextTickFailure); 8176 7837 }8177 -1 sid += 1;8178 -1 indv = iname || 'i' + sid;8179 -1 iterate = unescape(iterate);8180 -1 return '\';var arr' + sid + '=' + iterate + ';if(arr' + sid + '){var ' + vname + ',' + indv + '=-1,l' + sid + '=arr' + sid + '.length-1;while(' + indv + '<l' + sid + '){' + vname + '=arr' + sid + '[' + indv + '+=1];out+=\'';8181 -1 }).replace(c4.evaluate || skip, function(m3, code) {8182 -1 return '\';' + unescape(code) + 'out+=\'';8183 -1 }) + '\';return out;').replace(/\n/g, '\\n').replace(/\t/g, '\\t').replace(/\r/g, '\\r').replace(/(\s|;|\}|^|\{)out\+='';/g, '$1').replace(/\+''/g, '');8184 -1 if (needhtmlencode) {8185 -1 if (!c4.selfcontained && globalThis && !globalThis._encodeHTML) {8186 -1 globalThis._encodeHTML = doT3.encodeHTMLSource(c4.doNotSkipEncoded);-1 7838 } else if (resolvedMode === 'done') { -1 7839 if (typeof promise.done !== 'function') { -1 7840 throw new Error('Memoizee error: Retrieved promise does not implement \'done\' in \'done\' mode'); -1 7841 } -1 7842 promise.done(onSuccess, onFailure); -1 7843 } else if (resolvedMode === 'done:finally') { -1 7844 if (typeof promise.done !== 'function') { -1 7845 throw new Error('Memoizee error: Retrieved promise does not implement \'done\' in \'done:finally\' mode'); -1 7846 } -1 7847 if (typeof promise['finally'] !== 'function') { -1 7848 throw new Error('Memoizee error: Retrieved promise does not implement \'finally\' in \'done:finally\' mode'); 8187 7849 }8188 -1 str = 'var encodeHTML = typeof _encodeHTML !== \'undefined\' ? _encodeHTML : (' + doT3.encodeHTMLSource.toString() + '(' + (c4.doNotSkipEncoded || '') + '));' + str;-1 7850 promise.done(onSuccess); -1 7851 promise['finally'](onFailure); 8189 7852 }8190 -1 try {8191 -1 return new Function(c4.varname, str);8192 -1 } catch (e) {8193 -1 if (typeof console !== 'undefined') {8194 -1 console.log('Could not create a template function: ' + str);-1 7853 }); -1 7854 conf.on('get', function(id, args, context) { -1 7855 var promise; -1 7856 if (waiting[id]) { -1 7857 ++waiting[id]; -1 7858 return; -1 7859 } -1 7860 promise = promises[id]; -1 7861 var emit = function emit() { -1 7862 conf.emit('getasync', id, args, context); -1 7863 }; -1 7864 if (isPromise(promise)) { -1 7865 if (typeof promise.done === 'function') { -1 7866 promise.done(emit); -1 7867 } else { -1 7868 promise.then(function() { -1 7869 nextTick(emit); -1 7870 }); 8195 7871 }8196 -1 throw e;-1 7872 } else { -1 7873 emit(); 8197 7874 }8198 -1 };8199 -1 doT3.compile = function(tmpl, def) {8200 -1 return doT3.template(tmpl, null, def);8201 -1 };8202 -1 })();8203 -1 });8204 -1 var definitions = [ {8205 -1 name: 'NA',8206 -1 value: 'inapplicable',8207 -1 priority: 0,8208 -1 group: 'inapplicable'8209 -1 }, {8210 -1 name: 'PASS',8211 -1 value: 'passed',8212 -1 priority: 1,8213 -1 group: 'passes'8214 -1 }, {-1 7875 }); -1 7876 conf.on('delete', function(id) { -1 7877 delete promises[id]; -1 7878 if (waiting[id]) { -1 7879 delete waiting[id]; -1 7880 return; -1 7881 } -1 7882 if (!hasOwnProperty.call(cache2, id)) { -1 7883 return; -1 7884 } -1 7885 var result = cache2[id]; -1 7886 delete cache2[id]; -1 7887 conf.emit('deleteasync', id, [ result ]); -1 7888 }); -1 7889 conf.on('clear', function() { -1 7890 var oldCache = cache2; -1 7891 cache2 = create(null); -1 7892 waiting = create(null); -1 7893 promises = create(null); -1 7894 conf.emit('clearasync', objectMap(oldCache, function(data) { -1 7895 return [ data ]; -1 7896 })); -1 7897 }); -1 7898 }; -1 7899 }); -1 7900 var require_dispose = __commonJS(function() { -1 7901 'use strict'; -1 7902 var callable = require_valid_callable(); -1 7903 var forEach = require_for_each(); -1 7904 var extensions = require_registered_extensions(); -1 7905 var apply = Function.prototype.apply; -1 7906 extensions.dispose = function(dispose, conf, options) { -1 7907 var del; -1 7908 callable(dispose); -1 7909 if (options.async && extensions.async || options.promise && extensions.promise) { -1 7910 conf.on('deleteasync', del = function del(id, resultArray) { -1 7911 apply.call(dispose, null, resultArray); -1 7912 }); -1 7913 conf.on('clearasync', function(cache2) { -1 7914 forEach(cache2, function(result, id) { -1 7915 del(id, result); -1 7916 }); -1 7917 }); -1 7918 return; -1 7919 } -1 7920 conf.on('delete', del = function del(id, result) { -1 7921 dispose(result); -1 7922 }); -1 7923 conf.on('clear', function(cache2) { -1 7924 forEach(cache2, function(result, id) { -1 7925 del(id, result); -1 7926 }); -1 7927 }); -1 7928 }; -1 7929 }); -1 7930 var require_max_timeout = __commonJS(function(exports, module) { -1 7931 'use strict'; -1 7932 module.exports = 2147483647; -1 7933 }); -1 7934 var require_valid_timeout = __commonJS(function(exports, module) { -1 7935 'use strict'; -1 7936 var toPosInt = require_to_pos_integer(); -1 7937 var maxTimeout = require_max_timeout(); -1 7938 module.exports = function(value) { -1 7939 value = toPosInt(value); -1 7940 if (value > maxTimeout) { -1 7941 throw new TypeError(value + ' exceeds maximum possible timeout'); -1 7942 } -1 7943 return value; -1 7944 }; -1 7945 }); -1 7946 var require_max_age = __commonJS(function() { -1 7947 'use strict'; -1 7948 var aFrom = require_from4(); -1 7949 var forEach = require_for_each(); -1 7950 var nextTick = require_next_tick(); -1 7951 var isPromise = require_is_promise(); -1 7952 var timeout = require_valid_timeout(); -1 7953 var extensions = require_registered_extensions(); -1 7954 var noop3 = Function.prototype; -1 7955 var max2 = Math.max; -1 7956 var min = Math.min; -1 7957 var create = Object.create; -1 7958 extensions.maxAge = function(maxAge, conf, options) { -1 7959 var timeouts, postfix, preFetchAge, preFetchTimeouts; -1 7960 maxAge = timeout(maxAge); -1 7961 if (!maxAge) { -1 7962 return; -1 7963 } -1 7964 timeouts = create(null); -1 7965 postfix = options.async && extensions.async || options.promise && extensions.promise ? 'async' : ''; -1 7966 conf.on('set' + postfix, function(id) { -1 7967 timeouts[id] = setTimeout(function() { -1 7968 conf['delete'](id); -1 7969 }, maxAge); -1 7970 if (typeof timeouts[id].unref === 'function') { -1 7971 timeouts[id].unref(); -1 7972 } -1 7973 if (!preFetchTimeouts) { -1 7974 return; -1 7975 } -1 7976 if (preFetchTimeouts[id]) { -1 7977 if (preFetchTimeouts[id] !== 'nextTick') { -1 7978 clearTimeout(preFetchTimeouts[id]); -1 7979 } -1 7980 } -1 7981 preFetchTimeouts[id] = setTimeout(function() { -1 7982 delete preFetchTimeouts[id]; -1 7983 }, preFetchAge); -1 7984 if (typeof preFetchTimeouts[id].unref === 'function') { -1 7985 preFetchTimeouts[id].unref(); -1 7986 } -1 7987 }); -1 7988 conf.on('delete' + postfix, function(id) { -1 7989 clearTimeout(timeouts[id]); -1 7990 delete timeouts[id]; -1 7991 if (!preFetchTimeouts) { -1 7992 return; -1 7993 } -1 7994 if (preFetchTimeouts[id] !== 'nextTick') { -1 7995 clearTimeout(preFetchTimeouts[id]); -1 7996 } -1 7997 delete preFetchTimeouts[id]; -1 7998 }); -1 7999 if (options.preFetch) { -1 8000 if (options.preFetch === true || isNaN(options.preFetch)) { -1 8001 preFetchAge = .333; -1 8002 } else { -1 8003 preFetchAge = max2(min(Number(options.preFetch), 1), 0); -1 8004 } -1 8005 if (preFetchAge) { -1 8006 preFetchTimeouts = {}; -1 8007 preFetchAge = (1 - preFetchAge) * maxAge; -1 8008 conf.on('get' + postfix, function(id, args, context) { -1 8009 if (!preFetchTimeouts[id]) { -1 8010 preFetchTimeouts[id] = 'nextTick'; -1 8011 nextTick(function() { -1 8012 var result; -1 8013 if (preFetchTimeouts[id] !== 'nextTick') { -1 8014 return; -1 8015 } -1 8016 delete preFetchTimeouts[id]; -1 8017 conf['delete'](id); -1 8018 if (options.async) { -1 8019 args = aFrom(args); -1 8020 args.push(noop3); -1 8021 } -1 8022 result = conf.memoized.apply(context, args); -1 8023 if (options.promise) { -1 8024 if (isPromise(result)) { -1 8025 if (typeof result.done === 'function') { -1 8026 result.done(noop3, noop3); -1 8027 } else { -1 8028 result.then(noop3, noop3); -1 8029 } -1 8030 } -1 8031 } -1 8032 }); -1 8033 } -1 8034 }); -1 8035 } -1 8036 } -1 8037 conf.on('clear' + postfix, function() { -1 8038 forEach(timeouts, function(id) { -1 8039 clearTimeout(id); -1 8040 }); -1 8041 timeouts = {}; -1 8042 if (preFetchTimeouts) { -1 8043 forEach(preFetchTimeouts, function(id) { -1 8044 if (id !== 'nextTick') { -1 8045 clearTimeout(id); -1 8046 } -1 8047 }); -1 8048 preFetchTimeouts = {}; -1 8049 } -1 8050 }); -1 8051 }; -1 8052 }); -1 8053 var require_lru_queue = __commonJS(function(exports, module) { -1 8054 'use strict'; -1 8055 var toPosInt = require_to_pos_integer(); -1 8056 var create = Object.create; -1 8057 var hasOwnProperty2 = Object.prototype.hasOwnProperty; -1 8058 module.exports = function(limit) { -1 8059 var size = 0, base = 1, queue2 = create(null), map = create(null), index = 0, del; -1 8060 limit = toPosInt(limit); -1 8061 return { -1 8062 hit: function hit(id) { -1 8063 var oldIndex = map[id], nuIndex = ++index; -1 8064 queue2[nuIndex] = id; -1 8065 map[id] = nuIndex; -1 8066 if (!oldIndex) { -1 8067 ++size; -1 8068 if (size <= limit) { -1 8069 return; -1 8070 } -1 8071 id = queue2[base]; -1 8072 del(id); -1 8073 return id; -1 8074 } -1 8075 delete queue2[oldIndex]; -1 8076 if (base !== oldIndex) { -1 8077 return; -1 8078 } -1 8079 while (!hasOwnProperty2.call(queue2, ++base)) { -1 8080 continue; -1 8081 } -1 8082 }, -1 8083 delete: del = function del(id) { -1 8084 var oldIndex = map[id]; -1 8085 if (!oldIndex) { -1 8086 return; -1 8087 } -1 8088 delete queue2[oldIndex]; -1 8089 delete map[id]; -1 8090 --size; -1 8091 if (base !== oldIndex) { -1 8092 return; -1 8093 } -1 8094 if (!size) { -1 8095 index = 0; -1 8096 base = 1; -1 8097 return; -1 8098 } -1 8099 while (!hasOwnProperty2.call(queue2, ++base)) { -1 8100 continue; -1 8101 } -1 8102 }, -1 8103 clear: function clear() { -1 8104 size = 0; -1 8105 base = 1; -1 8106 queue2 = create(null); -1 8107 map = create(null); -1 8108 index = 0; -1 8109 } -1 8110 }; -1 8111 }; -1 8112 }); -1 8113 var require_max = __commonJS(function() { -1 8114 'use strict'; -1 8115 var toPosInteger = require_to_pos_integer(); -1 8116 var lruQueue = require_lru_queue(); -1 8117 var extensions = require_registered_extensions(); -1 8118 extensions.max = function(max2, conf, options) { -1 8119 var postfix, queue2, hit; -1 8120 max2 = toPosInteger(max2); -1 8121 if (!max2) { -1 8122 return; -1 8123 } -1 8124 queue2 = lruQueue(max2); -1 8125 postfix = options.async && extensions.async || options.promise && extensions.promise ? 'async' : ''; -1 8126 conf.on('set' + postfix, hit = function hit(id) { -1 8127 id = queue2.hit(id); -1 8128 if (id === void 0) { -1 8129 return; -1 8130 } -1 8131 conf['delete'](id); -1 8132 }); -1 8133 conf.on('get' + postfix, hit); -1 8134 conf.on('delete' + postfix, queue2['delete']); -1 8135 conf.on('clear' + postfix, queue2.clear); -1 8136 }; -1 8137 }); -1 8138 var require_ref_counter = __commonJS(function() { -1 8139 'use strict'; -1 8140 var d2 = require_d(); -1 8141 var extensions = require_registered_extensions(); -1 8142 var create = Object.create; -1 8143 var defineProperties = Object.defineProperties; -1 8144 extensions.refCounter = function(ignore, conf, options) { -1 8145 var cache2, postfix; -1 8146 cache2 = create(null); -1 8147 postfix = options.async && extensions.async || options.promise && extensions.promise ? 'async' : ''; -1 8148 conf.on('set' + postfix, function(id, length) { -1 8149 cache2[id] = length || 1; -1 8150 }); -1 8151 conf.on('get' + postfix, function(id) { -1 8152 ++cache2[id]; -1 8153 }); -1 8154 conf.on('delete' + postfix, function(id) { -1 8155 delete cache2[id]; -1 8156 }); -1 8157 conf.on('clear' + postfix, function() { -1 8158 cache2 = {}; -1 8159 }); -1 8160 defineProperties(conf.memoized, { -1 8161 deleteRef: d2(function() { -1 8162 var id = conf.get(arguments); -1 8163 if (id === null) { -1 8164 return null; -1 8165 } -1 8166 if (!cache2[id]) { -1 8167 return null; -1 8168 } -1 8169 if (!--cache2[id]) { -1 8170 conf['delete'](id); -1 8171 return true; -1 8172 } -1 8173 return false; -1 8174 }), -1 8175 getRefCount: d2(function() { -1 8176 var id = conf.get(arguments); -1 8177 if (id === null) { -1 8178 return 0; -1 8179 } -1 8180 if (!cache2[id]) { -1 8181 return 0; -1 8182 } -1 8183 return cache2[id]; -1 8184 }) -1 8185 }); -1 8186 }; -1 8187 }); -1 8188 var require_memoizee = __commonJS(function(exports, module) { -1 8189 'use strict'; -1 8190 var normalizeOpts = require_normalize_options(); -1 8191 var resolveLength = require_resolve_length(); -1 8192 var plain = require_plain(); -1 8193 module.exports = function(fn) { -1 8194 var options = normalizeOpts(arguments[1]), length; -1 8195 if (!options.normalizer) { -1 8196 length = options.length = resolveLength(options.length, fn.length, options.async); -1 8197 if (length !== 0) { -1 8198 if (options.primitive) { -1 8199 if (length === false) { -1 8200 options.normalizer = require_primitive(); -1 8201 } else if (length > 1) { -1 8202 options.normalizer = require_get_primitive_fixed()(length); -1 8203 } -1 8204 } else if (length === false) { -1 8205 options.normalizer = require_get()(); -1 8206 } else if (length === 1) { -1 8207 options.normalizer = require_get_1()(); -1 8208 } else { -1 8209 options.normalizer = require_get_fixed()(length); -1 8210 } -1 8211 } -1 8212 } -1 8213 if (options.async) { -1 8214 require_async(); -1 8215 } -1 8216 if (options.promise) { -1 8217 require_promise(); -1 8218 } -1 8219 if (options.dispose) { -1 8220 require_dispose(); -1 8221 } -1 8222 if (options.maxAge) { -1 8223 require_max_age(); -1 8224 } -1 8225 if (options.max) { -1 8226 require_max(); -1 8227 } -1 8228 if (options.refCounter) { -1 8229 require_ref_counter(); -1 8230 } -1 8231 return plain(fn, options); -1 8232 }; -1 8233 }); -1 8234 var definitions = [ { -1 8235 name: 'NA', -1 8236 value: 'inapplicable', -1 8237 priority: 0, -1 8238 group: 'inapplicable' -1 8239 }, { -1 8240 name: 'PASS', -1 8241 value: 'passed', -1 8242 priority: 1, -1 8243 group: 'passes' -1 8244 }, { 8215 8245 name: 'CANTTELL', 8216 8246 value: 'cantTell', 8217 8247 priority: 2, @@ -8235,7 +8265,8 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate : 8235 8265 timeout: 1e4 8236 8266 }), 8237 8267 allOrigins: '<unsafe_all_origins>',8238 -1 sameOrigin: '<same_origin>'-1 8268 sameOrigin: '<same_origin>', -1 8269 serializableErrorProps: Object.freeze([ 'message', 'stack', 'name', 'code', 'ruleId', 'method' ]) 8239 8270 }; 8240 8271 definitions.forEach(function(definition) { 8241 8272 var name = definition.name; @@ -8304,6 +8335,9 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate : 8304 8335 DqElement: function DqElement() { 8305 8336 return dq_element_default; 8306 8337 }, -1 8338 RuleError: function RuleError() { -1 8339 return rule_error_default; -1 8340 }, 8307 8341 aggregate: function aggregate() { 8308 8342 return aggregate_default; 8309 8343 }, @@ -8326,7 +8360,7 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate : 8326 8360 return check_helper_default; 8327 8361 }, 8328 8362 clone: function clone() {8329 -1 return _clone;-1 8363 return clone2; 8330 8364 }, 8331 8365 closest: function closest() { 8332 8366 return closest_default; @@ -8550,6 +8584,9 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate : 8550 8584 sendCommandToFrame: function sendCommandToFrame() { 8551 8585 return _sendCommandToFrame; 8552 8586 }, -1 8587 serializeError: function serializeError() { -1 8588 return _serializeError; -1 8589 }, 8553 8590 setScrollState: function setScrollState() { 8554 8591 return set_scroll_state_default; 8555 8592 }, @@ -8845,9 +8882,9 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate : 8845 8882 } 8846 8883 if (domain && domain.includes(':')) { 8847 8884 var _splitString9 = splitString(domain, domain.indexOf(':'));8848 -1 var _splitString10 = _slicedToArray(_splitString9, 2);8849 -1 domain = _splitString10[0];8850 -1 port = _splitString10[1];-1 8885 var _splitString0 = _slicedToArray(_splitString9, 2); -1 8886 domain = _splitString0[0]; -1 8887 port = _splitString0[1]; 8851 8888 } 8852 8889 path = url; 8853 8890 return { @@ -8920,10808 +8957,10881 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate : 8920 8957 }; 8921 8958 }(); 8922 8959 var element_matches_default = matchesSelector;8923 -1 var import_memoizee = __toModule(require_memoizee());8924 -1 axe._memoizedFns = [];8925 -1 function memoizeImplementation(fn) {8926 -1 var memoized = (0, import_memoizee['default'])(fn);8927 -1 axe._memoizedFns.push(memoized);8928 -1 return memoized;8929 -1 }8930 -1 var memoize_default = memoizeImplementation;8931 -1 var isXHTML = memoize_default(function(doc) {8932 -1 if (!(doc !== null && doc !== void 0 && doc.createElement)) {8933 -1 return false;-1 8960 var imports_exports = {}; -1 8961 __export(imports_exports, { -1 8962 ArrayFrom: function ArrayFrom() { -1 8963 return import_from2['default']; -1 8964 }, -1 8965 Colorjs: function Colorjs() { -1 8966 return _Color; -1 8967 }, -1 8968 CssSelectorParser: function CssSelectorParser() { -1 8969 return import_css_selector_parser.CssSelectorParser; -1 8970 }, -1 8971 doT: function doT() { -1 8972 return import_dot['default']; -1 8973 }, -1 8974 emojiRegexText: function emojiRegexText() { -1 8975 return emoji_regex_default; -1 8976 }, -1 8977 memoize: function memoize() { -1 8978 return import_memoizee['default']; 8934 8979 }8935 -1 return doc.createElement('A').localName === 'A';8936 8980 });8937 -1 var is_xhtml_default = isXHTML;8938 -1 function _getShadowSelector(generateSelector2, elm) {8939 -1 var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};8940 -1 if (!elm) {8941 -1 return '';8942 -1 }8943 -1 var doc = elm.getRootNode && elm.getRootNode() || document;8944 -1 if (doc.nodeType !== 11) {8945 -1 return generateSelector2(elm, options, doc);-1 8981 var import_es6_promise = __toModule(require_es6_promise()); -1 8982 var import_typedarray = __toModule(require_typedarray()); -1 8983 var import_weakmap_polyfill = __toModule(require_weakmap_polyfill()); -1 8984 var import_has_own = __toModule(require_has_own3()); -1 8985 var import_values = __toModule(require_values3()); -1 8986 var import_from = __toModule(require_from3()); -1 8987 if (!('hasOwn' in Object)) { -1 8988 Object.hasOwn = import_has_own['default']; -1 8989 } -1 8990 if (!('values' in Object)) { -1 8991 Object.values = import_values['default']; -1 8992 } -1 8993 if (!('Promise' in window)) { -1 8994 import_es6_promise['default'].polyfill(); -1 8995 } -1 8996 if (!('Uint32Array' in window)) { -1 8997 window.Uint32Array = import_typedarray.Uint32Array; -1 8998 } -1 8999 if (window.Uint32Array) { -1 9000 if (!('some' in window.Uint32Array.prototype)) { -1 9001 Object.defineProperty(window.Uint32Array.prototype, 'some', { -1 9002 value: Array.prototype.some -1 9003 }); 8946 9004 }8947 -1 var stack = [];8948 -1 while (doc.nodeType === 11) {8949 -1 if (!doc.host) {8950 -1 return '';8951 -1 }8952 -1 stack.unshift({8953 -1 elm: elm,8954 -1 doc: doc-1 9005 if (!('reduce' in window.Uint32Array.prototype)) { -1 9006 Object.defineProperty(window.Uint32Array.prototype, 'reduce', { -1 9007 value: Array.prototype.reduce 8955 9008 });8956 -1 elm = doc.host;8957 -1 doc = elm.getRootNode();8958 9009 }8959 -1 stack.unshift({8960 -1 elm: elm,8961 -1 doc: doc8962 -1 });8963 -1 return stack.map(function(item) {8964 -1 return generateSelector2(item.elm, options, item.doc);8965 -1 });8966 9010 }8967 -1 var ignoredAttributes = [ 'class', 'style', 'id', 'selected', 'checked', 'disabled', 'tabindex', 'aria-checked', 'aria-selected', 'aria-invalid', 'aria-activedescendant', 'aria-busy', 'aria-disabled', 'aria-expanded', 'aria-grabbed', 'aria-pressed', 'aria-valuenow', 'xmlns' ];8968 -1 var MAXATTRIBUTELENGTH = 31;8969 -1 var attrCharsRegex = /([\\"])/g;8970 -1 var newlineChars = /(\r\n|\r|\n)/g;8971 -1 function escapeAttribute(str) {8972 -1 return str.replace(attrCharsRegex, '\\$1').replace(newlineChars, '\\a ');-1 9011 if (typeof Object.assign !== 'function') { -1 9012 (function() { -1 9013 Object.assign = function(target) { -1 9014 if (target === void 0 || target === null) { -1 9015 throw new TypeError('Cannot convert undefined or null to object'); -1 9016 } -1 9017 var output = Object(target); -1 9018 for (var index = 1; index < arguments.length; index++) { -1 9019 var source = arguments[index]; -1 9020 if (source !== void 0 && source !== null) { -1 9021 for (var nextKey in source) { -1 9022 if (source.hasOwnProperty(nextKey)) { -1 9023 output[nextKey] = source[nextKey]; -1 9024 } -1 9025 } -1 9026 } -1 9027 } -1 9028 return output; -1 9029 }; -1 9030 })(); 8973 9031 }8974 -1 function getAttributeNameValue(node, at) {8975 -1 var name = at.name;8976 -1 var atnv;8977 -1 if (name.indexOf('href') !== -1 || name.indexOf('src') !== -1) {8978 -1 var friendly = get_friendly_uri_end_default(node.getAttribute(name));8979 -1 if (friendly) {8980 -1 atnv = escape_selector_default(at.name) + '$="' + escapeAttribute(friendly) + '"';8981 -1 } else {8982 -1 atnv = escape_selector_default(at.name) + '="' + escapeAttribute(node.getAttribute(name)) + '"';-1 9032 if (!Array.prototype.find) { -1 9033 Object.defineProperty(Array.prototype, 'find', { -1 9034 value: function value(predicate) { -1 9035 if (this === null) { -1 9036 throw new TypeError('Array.prototype.find called on null or undefined'); -1 9037 } -1 9038 if (typeof predicate !== 'function') { -1 9039 throw new TypeError('predicate must be a function'); -1 9040 } -1 9041 var list = Object(this); -1 9042 var length = list.length >>> 0; -1 9043 var thisArg = arguments[1]; -1 9044 var value; -1 9045 for (var i = 0; i < length; i++) { -1 9046 value = list[i]; -1 9047 if (predicate.call(thisArg, value, i, list)) { -1 9048 return value; -1 9049 } -1 9050 } -1 9051 return void 0; 8983 9052 }8984 -1 } else {8985 -1 atnv = escape_selector_default(name) + '="' + escapeAttribute(at.value) + '"';8986 -1 }8987 -1 return atnv;8988 -1 }8989 -1 function countSort(a2, b2) {8990 -1 return a2.count < b2.count ? -1 : a2.count === b2.count ? 0 : 1;-1 9053 }); 8991 9054 }8992 -1 function filterAttributes(at) {8993 -1 return !ignoredAttributes.includes(at.name) && at.name.indexOf(':') === -1 && (!at.value || at.value.length < MAXATTRIBUTELENGTH);-1 9055 if (!Array.prototype.findIndex) { -1 9056 Object.defineProperty(Array.prototype, 'findIndex', { -1 9057 value: function value(predicate, thisArg) { -1 9058 if (this === null) { -1 9059 throw new TypeError('Array.prototype.find called on null or undefined'); -1 9060 } -1 9061 if (typeof predicate !== 'function') { -1 9062 throw new TypeError('predicate must be a function'); -1 9063 } -1 9064 var list = Object(this); -1 9065 var length = list.length >>> 0; -1 9066 var value; -1 9067 for (var i = 0; i < length; i++) { -1 9068 value = list[i]; -1 9069 if (predicate.call(thisArg, value, i, list)) { -1 9070 return i; -1 9071 } -1 9072 } -1 9073 return -1; -1 9074 } -1 9075 }); 8994 9076 }8995 -1 function _getSelectorData(domTree) {8996 -1 var data = {8997 -1 classes: {},8998 -1 tags: {},8999 -1 attributes: {}9000 -1 };9001 -1 domTree = Array.isArray(domTree) ? domTree : [ domTree ];9002 -1 var currentLevel = domTree.slice();9003 -1 var stack = [];9004 -1 var _loop2 = function _loop2() {9005 -1 var current = currentLevel.pop();9006 -1 var node = current.actualNode;9007 -1 if (!!node.querySelectorAll) {9008 -1 var tag = node.nodeName;9009 -1 if (data.tags[tag]) {9010 -1 data.tags[tag]++;-1 9077 if (!Array.prototype.includes) { -1 9078 Object.defineProperty(Array.prototype, 'includes', { -1 9079 value: function value(searchElement) { -1 9080 var O = Object(this); -1 9081 var len = parseInt(O.length, 10) || 0; -1 9082 if (len === 0) { -1 9083 return false; -1 9084 } -1 9085 var n2 = parseInt(arguments[1], 10) || 0; -1 9086 var k; -1 9087 if (n2 >= 0) { -1 9088 k = n2; 9011 9089 } else {9012 -1 data.tags[tag] = 1;-1 9090 k = len + n2; -1 9091 if (k < 0) { -1 9092 k = 0; -1 9093 } 9013 9094 }9014 -1 if (node.classList) {9015 -1 Array.from(node.classList).forEach(function(cl) {9016 -1 var ind = escape_selector_default(cl);9017 -1 if (data.classes[ind]) {9018 -1 data.classes[ind]++;9019 -1 } else {9020 -1 data.classes[ind] = 1;9021 -1 }9022 -1 });-1 9095 var currentElement; -1 9096 while (k < len) { -1 9097 currentElement = O[k]; -1 9098 if (searchElement === currentElement || searchElement !== searchElement && currentElement !== currentElement) { -1 9099 return true; -1 9100 } -1 9101 k++; 9023 9102 }9024 -1 if (node.hasAttributes()) {9025 -1 Array.from(get_node_attributes_default(node)).filter(filterAttributes).forEach(function(at) {9026 -1 var atnv = getAttributeNameValue(node, at);9027 -1 if (atnv) {9028 -1 if (data.attributes[atnv]) {9029 -1 data.attributes[atnv]++;9030 -1 } else {9031 -1 data.attributes[atnv] = 1;9032 -1 }9033 -1 }9034 -1 });-1 9103 return false; -1 9104 } -1 9105 }); -1 9106 } -1 9107 if (!Array.prototype.some) { -1 9108 Object.defineProperty(Array.prototype, 'some', { -1 9109 value: function value(fun) { -1 9110 if (this == null) { -1 9111 throw new TypeError('Array.prototype.some called on null or undefined'); -1 9112 } -1 9113 if (typeof fun !== 'function') { -1 9114 throw new TypeError(); -1 9115 } -1 9116 var t = Object(this); -1 9117 var len = t.length >>> 0; -1 9118 var thisArg = arguments.length >= 2 ? arguments[1] : void 0; -1 9119 for (var i = 0; i < len; i++) { -1 9120 if (i in t && fun.call(thisArg, t[i], i, t)) { -1 9121 return true; -1 9122 } 9035 9123 } -1 9124 return false; 9036 9125 }9037 -1 if (current.children.length) {9038 -1 stack.push(currentLevel);9039 -1 currentLevel = current.children.slice();-1 9126 }); -1 9127 } -1 9128 if (!Array.from) { -1 9129 Array.from = import_from['default']; -1 9130 } -1 9131 if (!String.prototype.includes) { -1 9132 String.prototype.includes = function(search, start) { -1 9133 if (typeof start !== 'number') { -1 9134 start = 0; 9040 9135 }9041 -1 while (!currentLevel.length && stack.length) {9042 -1 currentLevel = stack.pop();-1 9136 if (start + search.length > this.length) { -1 9137 return false; -1 9138 } else { -1 9139 return this.indexOf(search, start) !== -1; 9043 9140 } 9044 9141 };9045 -1 while (currentLevel.length) {9046 -1 _loop2();9047 -1 }9048 -1 return data;9049 9142 }9050 -1 function uncommonClasses(node, selectorData) {9051 -1 var retVal = [];9052 -1 var classData = selectorData.classes;9053 -1 var tagData = selectorData.tags;9054 -1 if (node.classList) {9055 -1 Array.from(node.classList).forEach(function(cl) {9056 -1 var ind = escape_selector_default(cl);9057 -1 if (classData[ind] < tagData[node.nodeName]) {9058 -1 retVal.push({9059 -1 name: ind,9060 -1 count: classData[ind],9061 -1 species: 'class'9062 -1 });9063 -1 }9064 -1 });9065 -1 }9066 -1 return retVal.sort(countSort);-1 9143 if (!Array.prototype.flat) { -1 9144 Object.defineProperty(Array.prototype, 'flat', { -1 9145 configurable: true, -1 9146 value: function flat() { -1 9147 var depth = isNaN(arguments[0]) ? 1 : Number(arguments[0]); -1 9148 return depth ? Array.prototype.reduce.call(this, function(acc, cur) { -1 9149 if (Array.isArray(cur)) { -1 9150 acc.push.apply(acc, flat.call(cur, depth - 1)); -1 9151 } else { -1 9152 acc.push(cur); -1 9153 } -1 9154 return acc; -1 9155 }, []) : Array.prototype.slice.call(this); -1 9156 }, -1 9157 writable: true -1 9158 }); 9067 9159 }9068 -1 function getNthChildString(elm, selector) {9069 -1 var siblings = elm.parentNode && Array.from(elm.parentNode.children || '') || [];9070 -1 var hasMatchingSiblings = siblings.find(function(sibling) {9071 -1 return sibling !== elm && element_matches_default(sibling, selector);-1 9160 if (window.Node && !('isConnected' in window.Node.prototype)) { -1 9161 Object.defineProperty(window.Node.prototype, 'isConnected', { -1 9162 get: function get() { -1 9163 return !this.ownerDocument || !(this.ownerDocument.compareDocumentPosition(this) & this.DOCUMENT_POSITION_DISCONNECTED); -1 9164 } 9072 9165 });9073 -1 if (hasMatchingSiblings) {9074 -1 var nthChild = 1 + siblings.indexOf(elm);9075 -1 return ':nth-child(' + nthChild + ')';9076 -1 } else {9077 -1 return '';9078 -1 }9079 9166 }9080 -1 function getElmId(elm) {9081 -1 if (!elm.getAttribute('id')) {9082 -1 return;-1 9167 var import_css_selector_parser = __toModule(require_lib()); -1 9168 var import_dot = __toModule(require_doT()); -1 9169 var emoji_regex_default = function emoji_regex_default() { -1 9170 return /[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF43\uDF45-\uDF4A\uDF4C-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDF44(?:\u200D\uD83D\uDFEB)?|\uDF4B(?:\u200D\uD83D\uDFE9)?|\uDFC3(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E-\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED8\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])))?))?|\uDD75(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3C-\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE8A\uDE8E-\uDEC2\uDEC6\uDEC8\uDECD-\uDEDC\uDEDF-\uDEEA\uDEEF]|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g; -1 9171 }; -1 9172 var import_memoizee = __toModule(require_memoizee()); -1 9173 function multiplyMatrices(A, B) { -1 9174 var m3 = A.length; -1 9175 if (!Array.isArray(A[0])) { -1 9176 A = [ A ]; 9083 9177 }9084 -1 var doc = elm.getRootNode && elm.getRootNode() || document;9085 -1 var id = '#' + escape_selector_default(elm.getAttribute('id') || '');9086 -1 if (!id.match(/player_uid_/) && doc.querySelectorAll(id).length === 1) {9087 -1 return id;-1 9178 if (!Array.isArray(B[0])) { -1 9179 B = B.map(function(x) { -1 9180 return [ x ]; -1 9181 }); 9088 9182 }9089 -1 }9090 -1 function getBaseSelector(elm) {9091 -1 var xhtml = is_xhtml_default(document);9092 -1 return escape_selector_default(xhtml ? elm.localName : elm.nodeName.toLowerCase());9093 -1 }9094 -1 function uncommonAttributes(node, selectorData) {9095 -1 var retVal = [];9096 -1 var attData = selectorData.attributes;9097 -1 var tagData = selectorData.tags;9098 -1 if (node.hasAttributes()) {9099 -1 Array.from(get_node_attributes_default(node)).filter(filterAttributes).forEach(function(at) {9100 -1 var atnv = getAttributeNameValue(node, at);9101 -1 if (atnv && attData[atnv] < tagData[node.nodeName]) {9102 -1 retVal.push({9103 -1 name: atnv,9104 -1 count: attData[atnv],9105 -1 species: 'attribute'9106 -1 });-1 9183 var p2 = B[0].length; -1 9184 var B_cols = B[0].map(function(_, i) { -1 9185 return B.map(function(x) { -1 9186 return x[i]; -1 9187 }); -1 9188 }); -1 9189 var product = A.map(function(row) { -1 9190 return B_cols.map(function(col) { -1 9191 var ret = 0; -1 9192 if (!Array.isArray(row)) { -1 9193 var _iterator2 = _createForOfIteratorHelper(col), _step2; -1 9194 try { -1 9195 for (_iterator2.s(); !(_step2 = _iterator2.n()).done; ) { -1 9196 var c4 = _step2.value; -1 9197 ret += row * c4; -1 9198 } -1 9199 } catch (err) { -1 9200 _iterator2.e(err); -1 9201 } finally { -1 9202 _iterator2.f(); -1 9203 } -1 9204 return ret; -1 9205 } -1 9206 for (var i = 0; i < row.length; i++) { -1 9207 ret += row[i] * (col[i] || 0); 9107 9208 } -1 9209 return ret; 9108 9210 }); -1 9211 }); -1 9212 if (m3 === 1) { -1 9213 product = product[0]; 9109 9214 }9110 -1 return retVal.sort(countSort);9111 -1 }9112 -1 function getThreeLeastCommonFeatures(elm, selectorData) {9113 -1 var selector = '';9114 -1 var features;9115 -1 var clss = uncommonClasses(elm, selectorData);9116 -1 var atts = uncommonAttributes(elm, selectorData);9117 -1 if (clss.length && clss[0].count === 1) {9118 -1 features = [ clss[0] ];9119 -1 } else if (atts.length && atts[0].count === 1) {9120 -1 features = [ atts[0] ];9121 -1 selector = getBaseSelector(elm);9122 -1 } else {9123 -1 features = clss.concat(atts);9124 -1 features.sort(countSort);9125 -1 features = features.slice(0, 3);9126 -1 if (!features.some(function(feat) {9127 -1 return feat.species === 'class';9128 -1 })) {9129 -1 selector = getBaseSelector(elm);9130 -1 } else {9131 -1 features.sort(function(a2, b2) {9132 -1 return a2.species !== b2.species && a2.species === 'class' ? -1 : a2.species === b2.species ? 0 : 1;9133 -1 });9134 -1 }-1 9215 if (p2 === 1) { -1 9216 return product.map(function(x) { -1 9217 return x[0]; -1 9218 }); 9135 9219 }9136 -1 return selector += features.reduce(function(val, feat) {9137 -1 switch (feat.species) {9138 -1 case 'class':9139 -1 return val + '.' + feat.name;9140 -19141 -1 case 'attribute':9142 -1 return val + '[' + feat.name + ']';9143 -1 }9144 -1 return val;9145 -1 }, '');-1 9220 return product; 9146 9221 }9147 -1 function generateSelector(elm, options, doc) {9148 -1 if (!axe._selectorData) {9149 -1 throw new Error('Expect axe._selectorData to be set up');9150 -1 }9151 -1 var _options$toRoot = options.toRoot, toRoot = _options$toRoot === void 0 ? false : _options$toRoot;9152 -1 var selector;9153 -1 var similar;9154 -1 do {9155 -1 var features = getElmId(elm);9156 -1 if (!features) {9157 -1 features = getThreeLeastCommonFeatures(elm, axe._selectorData);9158 -1 features += getNthChildString(elm, features);9159 -1 }9160 -1 if (selector) {9161 -1 selector = features + ' > ' + selector;9162 -1 } else {9163 -1 selector = features;9164 -1 }9165 -1 if (!similar || similar.length > constants_default.selectorSimilarFilterLimit) {9166 -1 similar = findSimilar(doc, selector);9167 -1 } else {9168 -1 similar = similar.filter(function(item) {9169 -1 return element_matches_default(item, selector);9170 -1 });9171 -1 }9172 -1 elm = elm.parentElement;9173 -1 } while ((similar.length > 1 || toRoot) && elm && elm.nodeType !== 11);9174 -1 if (similar.length === 1) {9175 -1 return selector;9176 -1 } else if (selector.indexOf(' > ') !== -1) {9177 -1 return ':root' + selector.substring(selector.indexOf(' > '));9178 -1 }9179 -1 return ':root';-1 9222 function isString(str) { -1 9223 return type(str) === 'string'; 9180 9224 }9181 -1 function getSelector(elm, options) {9182 -1 return _getShadowSelector(generateSelector, elm, options);-1 9225 function type(o) { -1 9226 var str = Object.prototype.toString.call(o); -1 9227 return (str.match(/^\[object\s+(.*?)\]$/)[1] || '').toLowerCase(); 9183 9228 }9184 -1 var get_selector_default = memoize_default(getSelector);9185 -1 var findSimilar = memoize_default(function(doc, selector) {9186 -1 return Array.from(doc.querySelectorAll(selector));9187 -1 });9188 -1 function generateAncestry(node) {9189 -1 var nodeName2 = node.nodeName.toLowerCase();9190 -1 var parentElement = node.parentElement;9191 -1 var parentNode = node.parentNode;9192 -1 var nthChild = '';9193 -1 if (nodeName2 !== 'head' && nodeName2 !== 'body' && (parentNode === null || parentNode === void 0 ? void 0 : parentNode.children.length) > 1) {9194 -1 var index = Array.prototype.indexOf.call(parentNode.children, node) + 1;9195 -1 nthChild = ':nth-child('.concat(index, ')');9196 -1 }9197 -1 if (!parentElement) {9198 -1 return nodeName2 + nthChild;-1 9229 function toPrecision(n2, precision) { -1 9230 n2 = +n2; -1 9231 precision = +precision; -1 9232 var integerLength = (Math.floor(n2) + '').length; -1 9233 if (precision > integerLength) { -1 9234 return +n2.toFixed(precision - integerLength); -1 9235 } else { -1 9236 var p10 = Math.pow(10, integerLength - precision); -1 9237 return Math.round(n2 / p10) * p10; 9199 9238 }9200 -1 return generateAncestry(parentElement) + ' > ' + nodeName2 + nthChild;9201 -1 }9202 -1 function _getAncestry(elm, options) {9203 -1 return _getShadowSelector(generateAncestry, elm, options);9204 9239 }9205 -1 function getXPathArray(node, path) {9206 -1 var sibling, count;9207 -1 if (!node) {9208 -1 return [];9209 -1 }9210 -1 if (!path && node.nodeType === 9) {9211 -1 path = [ {9212 -1 str: 'html'9213 -1 } ];9214 -1 return path;9215 -1 }9216 -1 path = path || [];9217 -1 if (node.parentNode && node.parentNode !== node) {9218 -1 path = getXPathArray(node.parentNode, path);-1 9240 function parseFunction(str) { -1 9241 if (!str) { -1 9242 return; 9219 9243 }9220 -1 if (node.previousSibling) {9221 -1 count = 1;9222 -1 sibling = node.previousSibling;9223 -1 do {9224 -1 if (sibling.nodeType === 1 && sibling.nodeName === node.nodeName) {9225 -1 count++;-1 9244 str = str.trim(); -1 9245 var isFunctionRegex = /^([a-z]+)\((.+?)\)$/i; -1 9246 var isNumberRegex = /^-?[\d.]+$/; -1 9247 var parts = str.match(isFunctionRegex); -1 9248 if (parts) { -1 9249 var args = []; -1 9250 parts[2].replace(/\/?\s*([-\w.]+(?:%|deg)?)/g, function($0, arg) { -1 9251 if (/%$/.test(arg)) { -1 9252 arg = new Number(arg.slice(0, -1) / 100); -1 9253 arg.type = '<percentage>'; -1 9254 } else if (/deg$/.test(arg)) { -1 9255 arg = new Number(+arg.slice(0, -3)); -1 9256 arg.type = '<angle>'; -1 9257 arg.unit = 'deg'; -1 9258 } else if (isNumberRegex.test(arg)) { -1 9259 arg = new Number(arg); -1 9260 arg.type = '<number>'; 9226 9261 }9227 -1 sibling = sibling.previousSibling;9228 -1 } while (sibling);9229 -1 if (count === 1) {9230 -1 count = null;9231 -1 }9232 -1 } else if (node.nextSibling) {9233 -1 sibling = node.nextSibling;9234 -1 do {9235 -1 if (sibling.nodeType === 1 && sibling.nodeName === node.nodeName) {9236 -1 count = 1;9237 -1 sibling = null;9238 -1 } else {9239 -1 count = null;9240 -1 sibling = sibling.previousSibling;-1 9262 if ($0.startsWith('/')) { -1 9263 arg = arg instanceof Number ? arg : new Number(arg); -1 9264 arg.alpha = true; 9241 9265 }9242 -1 } while (sibling);9243 -1 }9244 -1 if (node.nodeType === 1) {9245 -1 var element = {};9246 -1 element.str = node.nodeName.toLowerCase();9247 -1 var id = node.getAttribute && escape_selector_default(node.getAttribute('id'));9248 -1 if (id && node.ownerDocument.querySelectorAll('#' + id).length === 1) {9249 -1 element.id = node.getAttribute('id');9250 -1 }9251 -1 if (count > 1) {9252 -1 element.count = count;9253 -1 }9254 -1 path.push(element);-1 9266 args.push(arg); -1 9267 }); -1 9268 return { -1 9269 name: parts[1].toLowerCase(), -1 9270 rawName: parts[1], -1 9271 rawArgs: parts[2], -1 9272 args: args -1 9273 }; 9255 9274 }9256 -1 return path;9257 -1 }9258 -1 function xpathToString(xpathArray) {9259 -1 return xpathArray.reduce(function(str, elm) {9260 -1 if (elm.id) {9261 -1 return '/'.concat(elm.str, '[@id=\'').concat(elm.id, '\']');9262 -1 } else {9263 -1 return str + '/'.concat(elm.str) + (elm.count > 0 ? '['.concat(elm.count, ']') : '');9264 -1 }9265 -1 }, '');9266 9275 }9267 -1 function getXpath(node) {9268 -1 var xpathArray = getXPathArray(node);9269 -1 return xpathToString(xpathArray);-1 9276 function last(arr) { -1 9277 return arr[arr.length - 1]; 9270 9278 }9271 -1 var get_xpath_default = getXpath;9272 -1 var _cache = {};9273 -1 var cache = {9274 -1 set: function set(key, value) {9275 -1 validateKey(key);9276 -1 _cache[key] = value;9277 -1 },9278 -1 get: function get(key, creator) {9279 -1 validateCreator(creator);9280 -1 if (key in _cache) {9281 -1 return _cache[key];9282 -1 }9283 -1 if (typeof creator === 'function') {9284 -1 var value = creator();9285 -1 assert_default(value !== void 0, 'Cache creator function should not return undefined');9286 -1 this.set(key, value);9287 -1 return _cache[key];9288 -1 }9289 -1 },9290 -1 clear: function clear() {9291 -1 _cache = {};-1 9279 function interpolate(start, end, p2) { -1 9280 if (isNaN(start)) { -1 9281 return end; 9292 9282 }9293 -1 };9294 -1 function validateKey(key) {9295 -1 assert_default(typeof key === 'string', 'key must be a string, ' + _typeof(key) + ' given');9296 -1 assert_default(key !== '', 'key must not be empty');9297 -1 }9298 -1 function validateCreator(creator) {9299 -1 assert_default(typeof creator === 'function' || typeof creator === 'undefined', 'creator must be a function or undefined, ' + _typeof(creator) + ' given');-1 9283 if (isNaN(end)) { -1 9284 return start; -1 9285 } -1 9286 return start + (end - start) * p2; 9300 9287 }9301 -1 var cache_default = cache;9302 -1 function getNodeFromTree(vNode, node) {9303 -1 var el = node || vNode;9304 -1 return cache_default.get('nodeMap') ? cache_default.get('nodeMap').get(el) : null;-1 9288 function interpolateInv(start, end, value) { -1 9289 return (value - start) / (end - start); 9305 9290 }9306 -1 var get_node_from_tree_default = getNodeFromTree;9307 -1 var CACHE_KEY = 'DqElm.RunOptions';9308 -1 function truncate(str, maxLength) {9309 -1 maxLength = maxLength || 300;9310 -1 if (str.length > maxLength) {9311 -1 var index = str.indexOf('>');9312 -1 str = str.substring(0, index + 1);9313 -1 }9314 -1 return str;-1 9291 function mapRange(from, to2, value) { -1 9292 return interpolate(to2[0], to2[1], interpolateInv(from[0], from[1], value)); 9315 9293 }9316 -1 function getSource(element) {9317 -1 if (!(element !== null && element !== void 0 && element.outerHTML)) {9318 -1 return '';9319 -1 }9320 -1 var source = element.outerHTML;9321 -1 if (!source && typeof window.XMLSerializer === 'function') {9322 -1 source = new window.XMLSerializer().serializeToString(element);9323 -1 }9324 -1 return truncate(source || '');-1 9294 function parseCoordGrammar(coordGrammars) { -1 9295 return coordGrammars.map(function(coordGrammar2) { -1 9296 return coordGrammar2.split('|').map(function(type2) { -1 9297 type2 = type2.trim(); -1 9298 var range2 = type2.match(/^(<[a-z]+>)\[(-?[.\d]+),\s*(-?[.\d]+)\]?$/); -1 9299 if (range2) { -1 9300 var ret = new String(range2[1]); -1 9301 ret.range = [ +range2[2], +range2[3] ]; -1 9302 return ret; -1 9303 } -1 9304 return type2; -1 9305 }); -1 9306 }); 9325 9307 }9326 -1 var DqElement = memoize_default(function DqElement2(elm, options, spec) {9327 -1 var _options, _spec, _this$spec$selector, _this$_virtualNode;9328 -1 (_options = options) !== null && _options !== void 0 ? _options : options = null;9329 -1 (_spec = spec) !== null && _spec !== void 0 ? _spec : spec = {};9330 -1 if (!options) {9331 -1 var _cache_default$get;9332 -1 options = (_cache_default$get = cache_default.get(CACHE_KEY)) !== null && _cache_default$get !== void 0 ? _cache_default$get : {};-1 9308 var util = Object.freeze({ -1 9309 __proto__: null, -1 9310 isString: isString, -1 9311 type: type, -1 9312 toPrecision: toPrecision, -1 9313 parseFunction: parseFunction, -1 9314 last: last, -1 9315 interpolate: interpolate, -1 9316 interpolateInv: interpolateInv, -1 9317 mapRange: mapRange, -1 9318 parseCoordGrammar: parseCoordGrammar, -1 9319 multiplyMatrices: multiplyMatrices -1 9320 }); -1 9321 var Hooks = function() { -1 9322 function Hooks() { -1 9323 _classCallCheck(this, Hooks); 9333 9324 }9334 -1 this.spec = spec;9335 -1 if (elm instanceof abstract_virtual_node_default) {9336 -1 this._virtualNode = elm;9337 -1 this._element = elm.actualNode;9338 -1 } else {9339 -1 this._element = elm;9340 -1 this._virtualNode = get_node_from_tree_default(elm);9341 -1 }9342 -1 this.fromFrame = ((_this$spec$selector = this.spec.selector) === null || _this$spec$selector === void 0 ? void 0 : _this$spec$selector.length) > 1;9343 -1 this._includeElementInJson = options.elementRef;9344 -1 if (options.absolutePaths) {9345 -1 this._options = {9346 -1 toRoot: true9347 -1 };9348 -1 }9349 -1 this.nodeIndexes = [];9350 -1 if (Array.isArray(this.spec.nodeIndexes)) {9351 -1 this.nodeIndexes = this.spec.nodeIndexes;9352 -1 } else if (typeof ((_this$_virtualNode = this._virtualNode) === null || _this$_virtualNode === void 0 ? void 0 : _this$_virtualNode.nodeIndex) === 'number') {9353 -1 this.nodeIndexes = [ this._virtualNode.nodeIndex ];9354 -1 }9355 -1 this.source = null;9356 -1 if (!axe._audit.noHtml) {9357 -1 var _this$spec$source;9358 -1 this.source = (_this$spec$source = this.spec.source) !== null && _this$spec$source !== void 0 ? _this$spec$source : getSource(this._element);9359 -1 }9360 -1 return this;9361 -1 });9362 -1 DqElement.prototype = {9363 -1 get selector() {9364 -1 return this.spec.selector || [ get_selector_default(this.element, this._options) ];9365 -1 },9366 -1 get ancestry() {9367 -1 return this.spec.ancestry || [ _getAncestry(this.element) ];9368 -1 },9369 -1 get xpath() {9370 -1 return this.spec.xpath || [ get_xpath_default(this.element) ];9371 -1 },9372 -1 get element() {9373 -1 return this._element;9374 -1 },9375 -1 toJSON: function toJSON() {9376 -1 var spec = {9377 -1 selector: this.selector,9378 -1 source: this.source,9379 -1 xpath: this.xpath,9380 -1 ancestry: this.ancestry,9381 -1 nodeIndexes: this.nodeIndexes,9382 -1 fromFrame: this.fromFrame9383 -1 };9384 -1 if (this._includeElementInJson) {9385 -1 spec.element = this._element;9386 -1 }9387 -1 return spec;9388 -1 }9389 -1 };9390 -1 DqElement.fromFrame = function fromFrame(node, options, frame) {9391 -1 var spec = DqElement.mergeSpecs(node, frame);9392 -1 return new DqElement(frame.element, options, spec);9393 -1 };9394 -1 DqElement.mergeSpecs = function mergeSpecs(child, parentFrame) {9395 -1 return _extends({}, child, {9396 -1 selector: [].concat(_toConsumableArray(parentFrame.selector), _toConsumableArray(child.selector)),9397 -1 ancestry: [].concat(_toConsumableArray(parentFrame.ancestry), _toConsumableArray(child.ancestry)),9398 -1 xpath: [].concat(_toConsumableArray(parentFrame.xpath), _toConsumableArray(child.xpath)),9399 -1 nodeIndexes: [].concat(_toConsumableArray(parentFrame.nodeIndexes), _toConsumableArray(child.nodeIndexes)),9400 -1 fromFrame: true9401 -1 });9402 -1 };9403 -1 DqElement.setRunOptions = function setRunOptions(_ref2) {9404 -1 var elementRef = _ref2.elementRef, absolutePaths = _ref2.absolutePaths;9405 -1 cache_default.set(CACHE_KEY, {9406 -1 elementRef: elementRef,9407 -1 absolutePaths: absolutePaths9408 -1 });9409 -1 };9410 -1 var dq_element_default = DqElement;9411 -1 function checkHelper(checkResult, options, resolve, reject) {9412 -1 return {9413 -1 isAsync: false,9414 -1 async: function async() {9415 -1 this.isAsync = true;9416 -1 return function(result) {9417 -1 if (result instanceof Error === false) {9418 -1 checkResult.result = result;9419 -1 resolve(checkResult);9420 -1 } else {9421 -1 reject(result);-1 9325 return _createClass(Hooks, [ { -1 9326 key: 'add', -1 9327 value: function add(name, callback, first) { -1 9328 if (typeof arguments[0] != 'string') { -1 9329 for (var name in arguments[0]) { -1 9330 this.add(name, arguments[0][name], arguments[1]); 9422 9331 }9423 -1 };9424 -1 },9425 -1 data: function data(_data) {9426 -1 checkResult.data = _data;9427 -1 },9428 -1 relatedNodes: function relatedNodes(nodes) {9429 -1 if (!window.Node) {9430 9332 return; 9431 9333 }9432 -1 if (nodes instanceof window.Node || nodes instanceof abstract_virtual_node_default) {9433 -1 nodes = [ nodes ];9434 -1 } else {9435 -1 nodes = to_array_default(nodes);9436 -1 }9437 -1 checkResult.relatedNodes = [];9438 -1 nodes.forEach(function(node) {9439 -1 if (node instanceof abstract_virtual_node_default) {9440 -1 node = node.actualNode;9441 -1 }9442 -1 if (node instanceof window.Node) {9443 -1 var dqElm = new dq_element_default(node);9444 -1 checkResult.relatedNodes.push(dqElm);-1 9334 (Array.isArray(name) ? name : [ name ]).forEach(function(name2) { -1 9335 this[name2] = this[name2] || []; -1 9336 if (callback) { -1 9337 this[name2][first ? 'unshift' : 'push'](callback); 9445 9338 } -1 9339 }, this); -1 9340 } -1 9341 }, { -1 9342 key: 'run', -1 9343 value: function run(name, env) { -1 9344 this[name] = this[name] || []; -1 9345 this[name].forEach(function(callback) { -1 9346 callback.call(env && env.context ? env.context : env, env); 9446 9347 }); 9447 9348 }9448 -1 };9449 -1 }9450 -1 var check_helper_default = checkHelper;9451 -1 function _clone(obj) {9452 -1 return cloneRecused(obj, new Map());9453 -1 }9454 -1 function cloneRecused(obj, seen) {9455 -1 var _window, _window2;9456 -1 if (obj === null || _typeof(obj) !== 'object') {9457 -1 return obj;9458 -1 }9459 -1 if ((_window = window) !== null && _window !== void 0 && _window.Node && obj instanceof window.Node || (_window2 = window) !== null && _window2 !== void 0 && _window2.HTMLCollection && obj instanceof window.HTMLCollection || 'nodeName' in obj && 'nodeType' in obj && 'ownerDocument' in obj) {9460 -1 return obj;9461 -1 }9462 -1 if (seen.has(obj)) {9463 -1 return seen.get(obj);-1 9349 } ]); -1 9350 }(); -1 9351 var hooks = new Hooks(); -1 9352 var defaults = { -1 9353 gamut_mapping: 'lch.c', -1 9354 precision: 5, -1 9355 deltaE: '76' -1 9356 }; -1 9357 var WHITES = { -1 9358 D50: [ .3457 / .3585, 1, (1 - .3457 - .3585) / .3585 ], -1 9359 D65: [ .3127 / .329, 1, (1 - .3127 - .329) / .329 ] -1 9360 }; -1 9361 function getWhite(name) { -1 9362 if (Array.isArray(name)) { -1 9363 return name; 9464 9364 }9465 -1 if (Array.isArray(obj)) {9466 -1 var out2 = [];9467 -1 seen.set(obj, out2);9468 -1 obj.forEach(function(value) {9469 -1 out2.push(cloneRecused(value, seen));9470 -1 });9471 -1 return out2;-1 9365 return WHITES[name]; -1 9366 } -1 9367 function adapt$1(W1, W2, XYZ) { -1 9368 var options = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {}; -1 9369 W1 = getWhite(W1); -1 9370 W2 = getWhite(W2); -1 9371 if (!W1 || !W2) { -1 9372 throw new TypeError('Missing white point to convert '.concat(!W1 ? 'from' : '').concat(!W1 && !W2 ? '/' : '').concat(!W2 ? 'to' : '')); 9472 9373 }9473 -1 var out = {};9474 -1 seen.set(obj, out);9475 -1 for (var key in obj) {9476 -1 out[key] = cloneRecused(obj[key], seen);-1 9374 if (W1 === W2) { -1 9375 return XYZ; 9477 9376 }9478 -1 return out;9479 -1 }9480 -1 var import_css_selector_parser = __toModule(require_lib());9481 -1 var parser = new import_css_selector_parser.CssSelectorParser();9482 -1 parser.registerSelectorPseudos('not');9483 -1 parser.registerSelectorPseudos('is');9484 -1 parser.registerNestingOperators('>');9485 -1 parser.registerAttrEqualityMods('^', '$', '*', '~');9486 -1 var css_parser_default = parser;9487 -1 function _matches(vNode, selector) {9488 -1 var expressions = _convertSelector(selector);9489 -1 return expressions.some(function(expression) {9490 -1 return _matchesExpression(vNode, expression);9491 -1 });9492 -1 }9493 -1 function matchesTag(vNode, exp) {9494 -1 return vNode.props.nodeType === 1 && (exp.tag === '*' || vNode.props.nodeName === exp.tag);9495 -1 }9496 -1 function matchesClasses(vNode, exp) {9497 -1 return !exp.classes || exp.classes.every(function(cl) {9498 -1 return vNode.hasClass(cl.value);9499 -1 });9500 -1 }9501 -1 function matchesAttributes(vNode, exp) {9502 -1 return !exp.attributes || exp.attributes.every(function(att) {9503 -1 var nodeAtt = vNode.attr(att.key);9504 -1 return nodeAtt !== null && att.test(nodeAtt);9505 -1 });9506 -1 }9507 -1 function matchesId(vNode, exp) {9508 -1 return !exp.id || vNode.props.id === exp.id;9509 -1 }9510 -1 function matchesPseudos(target, exp) {9511 -1 if (!exp.pseudos || exp.pseudos.every(function(pseudo) {9512 -1 if (pseudo.name === 'not') {9513 -1 return !pseudo.expressions.some(function(expression) {9514 -1 return _matchesExpression(target, expression);9515 -1 });9516 -1 } else if (pseudo.name === 'is') {9517 -1 return pseudo.expressions.some(function(expression) {9518 -1 return _matchesExpression(target, expression);9519 -1 });-1 9377 var env = { -1 9378 W1: W1, -1 9379 W2: W2, -1 9380 XYZ: XYZ, -1 9381 options: options -1 9382 }; -1 9383 hooks.run('chromatic-adaptation-start', env); -1 9384 if (!env.M) { -1 9385 if (env.W1 === WHITES.D65 && env.W2 === WHITES.D50) { -1 9386 env.M = [ [ 1.0479298208405488, .022946793341019088, -.05019222954313557 ], [ .029627815688159344, .990434484573249, -.01707382502938514 ], [ -.009243058152591178, .015055144896577895, .7518742899580008 ] ]; -1 9387 } else if (env.W1 === WHITES.D50 && env.W2 === WHITES.D65) { -1 9388 env.M = [ [ .9554734527042182, -.023098536874261423, .0632593086610217 ], [ -.028369706963208136, 1.0099954580058226, .021041398966943008 ], [ .012314001688319899, -.020507696433477912, 1.3303659366080753 ] ]; 9520 9389 }9521 -1 throw new Error('the pseudo selector ' + pseudo.name + ' has not yet been implemented');9522 -1 })) {9523 -1 return true;9524 9390 }9525 -1 return false;9526 -1 }9527 -1 function matchExpression(vNode, expression) {9528 -1 return matchesTag(vNode, expression) && matchesClasses(vNode, expression) && matchesAttributes(vNode, expression) && matchesId(vNode, expression) && matchesPseudos(vNode, expression);9529 -1 }9530 -1 var escapeRegExp = function() {9531 -1 var from = /(?=[\-\[\]{}()*+?.\\\^$|,#\s])/g;9532 -1 var to2 = '\\';9533 -1 return function(string) {9534 -1 return string.replace(from, to2);9535 -1 };9536 -1 }();9537 -1 var reUnescape = /\\/g;9538 -1 function convertAttributes(atts) {9539 -1 if (!atts) {9540 -1 return;-1 9391 hooks.run('chromatic-adaptation-end', env); -1 9392 if (env.M) { -1 9393 return multiplyMatrices(env.M, env.XYZ); -1 9394 } else { -1 9395 throw new TypeError('Only Bradford CAT with white points D50 and D65 supported for now.'); 9541 9396 }9542 -1 return atts.map(function(att) {9543 -1 var attributeKey = att.name.replace(reUnescape, '');9544 -1 var attributeValue = (att.value || '').replace(reUnescape, '');9545 -1 var test, regexp;9546 -1 switch (att.operator) {9547 -1 case '^=':9548 -1 regexp = new RegExp('^' + escapeRegExp(attributeValue));9549 -1 break;9550 -19551 -1 case '$=':9552 -1 regexp = new RegExp(escapeRegExp(attributeValue) + '$');9553 -1 break;9554 -19555 -1 case '~=':9556 -1 regexp = new RegExp('(^|\\s)' + escapeRegExp(attributeValue) + '(\\s|$)');9557 -1 break;9558 -19559 -1 case '|=':9560 -1 regexp = new RegExp('^' + escapeRegExp(attributeValue) + '(-|$)');9561 -1 break;9562 -19563 -1 case '=':9564 -1 test = function test(value) {9565 -1 return attributeValue === value;9566 -1 };9567 -1 break;9568 -19569 -1 case '*=':9570 -1 test = function test(value) {9571 -1 return value && value.includes(attributeValue);9572 -1 };9573 -1 break;9574 -19575 -1 case '!=':9576 -1 test = function test(value) {9577 -1 return attributeValue !== value;9578 -1 };9579 -1 break;9580 -19581 -1 default:9582 -1 test = function test(value) {9583 -1 return value !== null;9584 -1 };-1 9397 } -1 9398 var \u03b5$4 = 75e-6; -1 9399 var _ColorSpace2 = (_Class_brand = new WeakSet(), _path = new WeakMap(), function() { -1 9400 function _ColorSpace(options) { -1 9401 var _options$coords, _ref2, _options$white, _options$formats, _this$formats$functio, _this$formats, _this$formats2; -1 9402 _classCallCheck(this, _ColorSpace); -1 9403 _classPrivateMethodInitSpec(this, _Class_brand); -1 9404 _classPrivateFieldInitSpec(this, _path, void 0); -1 9405 this.id = options.id; -1 9406 this.name = options.name; -1 9407 this.base = options.base ? _ColorSpace2.get(options.base) : null; -1 9408 this.aliases = options.aliases; -1 9409 if (this.base) { -1 9410 this.fromBase = options.fromBase; -1 9411 this.toBase = options.toBase; 9585 9412 }9586 -1 if (attributeValue === '' && /^[*$^]=$/.test(att.operator)) {9587 -1 test = function test() {9588 -1 return false;9589 -1 };-1 9413 var _coords = (_options$coords = options.coords) !== null && _options$coords !== void 0 ? _options$coords : this.base.coords; -1 9414 this.coords = _coords; -1 9415 var white2 = (_ref2 = (_options$white = options.white) !== null && _options$white !== void 0 ? _options$white : this.base.white) !== null && _ref2 !== void 0 ? _ref2 : 'D65'; -1 9416 this.white = getWhite(white2); -1 9417 this.formats = (_options$formats = options.formats) !== null && _options$formats !== void 0 ? _options$formats : {}; -1 9418 for (var name in this.formats) { -1 9419 var format = this.formats[name]; -1 9420 format.type || (format.type = 'function'); -1 9421 format.name || (format.name = name); 9590 9422 }9591 -1 if (!test) {9592 -1 test = function test(value) {9593 -1 return value && regexp.test(value);-1 9423 if (options.cssId && !((_this$formats$functio = this.formats.functions) !== null && _this$formats$functio !== void 0 && _this$formats$functio.color)) { -1 9424 this.formats.color = { -1 9425 id: options.cssId 9594 9426 }; -1 9427 Object.defineProperty(this, 'cssId', { -1 9428 value: options.cssId -1 9429 }); -1 9430 } else if ((_this$formats = this.formats) !== null && _this$formats !== void 0 && _this$formats.color && !((_this$formats2 = this.formats) !== null && _this$formats2 !== void 0 && _this$formats2.color.id)) { -1 9431 this.formats.color.id = this.id; 9595 9432 }9596 -1 return {9597 -1 key: attributeKey,9598 -1 value: attributeValue,9599 -1 type: typeof att.value === 'undefined' ? 'attrExist' : 'attrValue',9600 -1 test: test9601 -1 };9602 -1 });9603 -1 }9604 -1 function convertClasses(classes) {9605 -1 if (!classes) {9606 -1 return;9607 -1 }9608 -1 return classes.map(function(className) {9609 -1 className = className.replace(reUnescape, '');9610 -1 return {9611 -1 value: className,9612 -1 regexp: new RegExp('(^|\\s)' + escapeRegExp(className) + '(\\s|$)')9613 -1 };9614 -1 });9615 -1 }9616 -1 function convertPseudos(pseudos) {9617 -1 if (!pseudos) {9618 -1 return;-1 9433 this.referred = options.referred; -1 9434 _classPrivateFieldSet(_path, this, _assertClassBrand(_Class_brand, this, _getPath).call(this).reverse()); -1 9435 hooks.run('colorspace-init-end', this); 9619 9436 }9620 -1 return pseudos.map(function(p2) {9621 -1 var expressions;9622 -1 if ([ 'is', 'not' ].includes(p2.name)) {9623 -1 expressions = p2.value;9624 -1 expressions = expressions.selectors ? expressions.selectors : [ expressions ];9625 -1 expressions = convertExpressions(expressions);9626 -1 }9627 -1 return {9628 -1 name: p2.name,9629 -1 expressions: expressions,9630 -1 value: p2.value9631 -1 };9632 -1 });9633 -1 }9634 -1 function convertExpressions(expressions) {9635 -1 return expressions.map(function(exp) {9636 -1 var newExp = [];9637 -1 var rule = exp.rule;9638 -1 while (rule) {9639 -1 newExp.push({9640 -1 tag: rule.tagName ? rule.tagName.toLowerCase() : '*',9641 -1 combinator: rule.nestingOperator ? rule.nestingOperator : ' ',9642 -1 id: rule.id,9643 -1 attributes: convertAttributes(rule.attrs),9644 -1 classes: convertClasses(rule.classNames),9645 -1 pseudos: convertPseudos(rule.pseudos)-1 9437 return _createClass(_ColorSpace, [ { -1 9438 key: 'inGamut', -1 9439 value: function inGamut(coords) { -1 9440 var _ref3 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, _ref3$epsilon = _ref3.epsilon, epsilon = _ref3$epsilon === void 0 ? \u03b5$4 : _ref3$epsilon; -1 9441 if (this.isPolar) { -1 9442 coords = this.toBase(coords); -1 9443 return this.base.inGamut(coords, { -1 9444 epsilon: epsilon -1 9445 }); -1 9446 } -1 9447 var coordMeta = Object.values(this.coords); -1 9448 return coords.every(function(c4, i) { -1 9449 var meta = coordMeta[i]; -1 9450 if (meta.type !== 'angle' && meta.range) { -1 9451 if (Number.isNaN(c4)) { -1 9452 return true; -1 9453 } -1 9454 var _meta$range = _slicedToArray(meta.range, 2), min = _meta$range[0], max2 = _meta$range[1]; -1 9455 return (min === void 0 || c4 >= min - epsilon) && (max2 === void 0 || c4 <= max2 + epsilon); -1 9456 } -1 9457 return true; 9646 9458 });9647 -1 rule = rule.rule;9648 9459 }9649 -1 return newExp;9650 -1 });9651 -1 }9652 -1 function _convertSelector(selector) {9653 -1 var expressions = css_parser_default.parse(selector);9654 -1 expressions = expressions.selectors ? expressions.selectors : [ expressions ];9655 -1 return convertExpressions(expressions);9656 -1 }9657 -1 function optimizedMatchesExpression(vNode, expressions, index, matchAnyParent) {9658 -1 if (!vNode) {9659 -1 return false;9660 -1 }9661 -1 var isArray = Array.isArray(expressions);9662 -1 var expression = isArray ? expressions[index] : expressions;9663 -1 var machedExpression = matchExpression(vNode, expression);9664 -1 while (!machedExpression && matchAnyParent && vNode.parent) {9665 -1 vNode = vNode.parent;9666 -1 machedExpression = matchExpression(vNode, expression);9667 -1 }9668 -1 if (index > 0) {9669 -1 if ([ ' ', '>' ].includes(expression.combinator) === false) {9670 -1 throw new Error('axe.utils.matchesExpression does not support the combinator: ' + expression.combinator);-1 9460 }, { -1 9461 key: 'cssId', -1 9462 get: function get() { -1 9463 var _this$formats$functio2; -1 9464 return ((_this$formats$functio2 = this.formats.functions) === null || _this$formats$functio2 === void 0 || (_this$formats$functio2 = _this$formats$functio2.color) === null || _this$formats$functio2 === void 0 ? void 0 : _this$formats$functio2.id) || this.id; 9671 9465 }9672 -1 machedExpression = machedExpression && optimizedMatchesExpression(vNode.parent, expressions, index - 1, expression.combinator === ' ');9673 -1 }9674 -1 return machedExpression;9675 -1 }9676 -1 function _matchesExpression(vNode, expressions, matchAnyParent) {9677 -1 return optimizedMatchesExpression(vNode, expressions, expressions.length - 1, matchAnyParent);9678 -1 }9679 -1 function closest(vNode, selector) {9680 -1 while (vNode) {9681 -1 if (_matches(vNode, selector)) {9682 -1 return vNode;-1 9466 }, { -1 9467 key: 'isPolar', -1 9468 get: function get() { -1 9469 for (var id in this.coords) { -1 9470 if (this.coords[id].type === 'angle') { -1 9471 return true; -1 9472 } -1 9473 } -1 9474 return false; 9683 9475 }9684 -1 if (typeof vNode.parent === 'undefined') {9685 -1 throw new TypeError('Cannot resolve parent for non-DOM nodes');-1 9476 }, { -1 9477 key: 'getFormat', -1 9478 value: function getFormat(format) { -1 9479 if (_typeof(format) === 'object') { -1 9480 format = _assertClassBrand(_Class_brand, this, _processFormat).call(this, format); -1 9481 return format; -1 9482 } -1 9483 var ret; -1 9484 if (format === 'default') { -1 9485 ret = Object.values(this.formats)[0]; -1 9486 } else { -1 9487 ret = this.formats[format]; -1 9488 } -1 9489 if (ret) { -1 9490 ret = _assertClassBrand(_Class_brand, this, _processFormat).call(this, ret); -1 9491 return ret; -1 9492 } -1 9493 return null; 9686 9494 }9687 -1 vNode = vNode.parent;9688 -1 }9689 -1 return null;9690 -1 }9691 -1 var closest_default = closest;9692 -1 function noop() {}9693 -1 function funcGuard(f) {9694 -1 if (typeof f !== 'function') {9695 -1 throw new TypeError('Queue methods require functions as arguments');9696 -1 }9697 -1 }9698 -1 function queue() {9699 -1 var tasks = [];9700 -1 var started = 0;9701 -1 var remaining = 0;9702 -1 var completeQueue = noop;9703 -1 var complete = false;9704 -1 var err2;9705 -1 var defaultFail = function defaultFail(e) {9706 -1 err2 = e;9707 -1 setTimeout(function() {9708 -1 if (err2 !== void 0 && err2 !== null) {9709 -1 log_default('Uncaught error (of queue)', err2);-1 9495 }, { -1 9496 key: 'to', -1 9497 value: function to(space, coords) { -1 9498 if (arguments.length === 1) { -1 9499 var _ref4 = [ space.space, space.coords ]; -1 9500 space = _ref4[0]; -1 9501 coords = _ref4[1]; 9710 9502 }9711 -1 }, 1);9712 -1 };9713 -1 var failed = defaultFail;9714 -1 function createResolve(i) {9715 -1 return function(r) {9716 -1 tasks[i] = r;9717 -1 remaining -= 1;9718 -1 if (!remaining && completeQueue !== noop) {9719 -1 complete = true;9720 -1 completeQueue(tasks);-1 9503 space = _ColorSpace2.get(space); -1 9504 if (this === space) { -1 9505 return coords; 9721 9506 }9722 -1 };9723 -1 }9724 -1 function abort(msg) {9725 -1 completeQueue = noop;9726 -1 failed(msg);9727 -1 return tasks;9728 -1 }9729 -1 function pop() {9730 -1 var length = tasks.length;9731 -1 for (;started < length; started++) {9732 -1 var task = tasks[started];9733 -1 try {9734 -1 task.call(null, createResolve(started), abort);9735 -1 } catch (e) {9736 -1 abort(e);-1 9507 coords = coords.map(function(c4) { -1 9508 return Number.isNaN(c4) ? 0 : c4; -1 9509 }); -1 9510 var myPath = _classPrivateFieldGet(_path, this); -1 9511 var otherPath = _classPrivateFieldGet(_path, space); -1 9512 var connectionSpace, connectionSpaceIndex; -1 9513 for (var i = 0; i < myPath.length; i++) { -1 9514 if (myPath[i] === otherPath[i]) { -1 9515 connectionSpace = myPath[i]; -1 9516 connectionSpaceIndex = i; -1 9517 } else { -1 9518 break; -1 9519 } -1 9520 } -1 9521 if (!connectionSpace) { -1 9522 throw new Error('Cannot convert between color spaces '.concat(this, ' and ').concat(space, ': no connection space was found')); -1 9523 } -1 9524 for (var _i2 = myPath.length - 1; _i2 > connectionSpaceIndex; _i2--) { -1 9525 coords = myPath[_i2].toBase(coords); 9737 9526 } -1 9527 for (var _i3 = connectionSpaceIndex + 1; _i3 < otherPath.length; _i3++) { -1 9528 coords = otherPath[_i3].fromBase(coords); -1 9529 } -1 9530 return coords; 9738 9531 }9739 -1 }9740 -1 var q = {9741 -1 defer: function defer(fn) {9742 -1 if (_typeof(fn) === 'object' && fn.then && fn['catch']) {9743 -1 var defer = fn;9744 -1 fn = function fn(resolve, reject) {9745 -1 defer.then(resolve)['catch'](reject);9746 -1 };-1 9532 }, { -1 9533 key: 'from', -1 9534 value: function from(space, coords) { -1 9535 if (arguments.length === 1) { -1 9536 var _ref5 = [ space.space, space.coords ]; -1 9537 space = _ref5[0]; -1 9538 coords = _ref5[1]; 9747 9539 }9748 -1 funcGuard(fn);9749 -1 if (err2 !== void 0) {9750 -1 return;9751 -1 } else if (complete) {9752 -1 throw new Error('Queue already completed');-1 9540 space = _ColorSpace2.get(space); -1 9541 return space.to(this, coords); -1 9542 } -1 9543 }, { -1 9544 key: 'toString', -1 9545 value: function toString() { -1 9546 return ''.concat(this.name, ' (').concat(this.id, ')'); -1 9547 } -1 9548 }, { -1 9549 key: 'getMinCoords', -1 9550 value: function getMinCoords() { -1 9551 var ret = []; -1 9552 for (var id in this.coords) { -1 9553 var _range2$min; -1 9554 var meta = this.coords[id]; -1 9555 var range2 = meta.range || meta.refRange; -1 9556 ret.push((_range2$min = range2 === null || range2 === void 0 ? void 0 : range2.min) !== null && _range2$min !== void 0 ? _range2$min : 0); 9753 9557 }9754 -1 tasks.push(fn);9755 -1 ++remaining;9756 -1 pop();9757 -1 return q;9758 -1 },9759 -1 then: function then(fn) {9760 -1 funcGuard(fn);9761 -1 if (completeQueue !== noop) {9762 -1 throw new Error('queue `then` already set');-1 9558 return ret; -1 9559 } -1 9560 } ], [ { -1 9561 key: 'all', -1 9562 get: function get() { -1 9563 return _toConsumableArray(new Set(Object.values(_ColorSpace2.registry))); -1 9564 } -1 9565 }, { -1 9566 key: 'register', -1 9567 value: function register(id, space) { -1 9568 if (arguments.length === 1) { -1 9569 space = arguments[0]; -1 9570 id = space.id; 9763 9571 }9764 -1 if (!err2) {9765 -1 completeQueue = fn;9766 -1 if (!remaining) {9767 -1 complete = true;9768 -1 completeQueue(tasks);-1 9572 space = this.get(space); -1 9573 if (this.registry[id] && this.registry[id] !== space) { -1 9574 throw new Error('Duplicate color space registration: \''.concat(id, '\'')); -1 9575 } -1 9576 this.registry[id] = space; -1 9577 if (arguments.length === 1 && space.aliases) { -1 9578 var _iterator3 = _createForOfIteratorHelper(space.aliases), _step3; -1 9579 try { -1 9580 for (_iterator3.s(); !(_step3 = _iterator3.n()).done; ) { -1 9581 var alias = _step3.value; -1 9582 this.register(alias, space); -1 9583 } -1 9584 } catch (err) { -1 9585 _iterator3.e(err); -1 9586 } finally { -1 9587 _iterator3.f(); 9769 9588 } 9770 9589 }9771 -1 return q;9772 -1 },9773 -1 catch: function _catch(fn) {9774 -1 funcGuard(fn);9775 -1 if (failed !== defaultFail) {9776 -1 throw new Error('queue `catch` already set');-1 9590 return space; -1 9591 } -1 9592 }, { -1 9593 key: 'get', -1 9594 value: function get(space) { -1 9595 if (!space || space instanceof _ColorSpace2) { -1 9596 return space; 9777 9597 }9778 -1 if (!err2) {9779 -1 failed = fn;-1 9598 var argType = type(space); -1 9599 if (argType === 'string') { -1 9600 var ret = _ColorSpace2.registry[space.toLowerCase()]; -1 9601 if (!ret) { -1 9602 throw new TypeError('No color space found with id = "'.concat(space, '"')); -1 9603 } -1 9604 return ret; -1 9605 } -1 9606 for (var _len = arguments.length, alternatives = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) { -1 9607 alternatives[_key - 1] = arguments[_key]; -1 9608 } -1 9609 if (alternatives.length) { -1 9610 return _ColorSpace2.get.apply(_ColorSpace2, alternatives); -1 9611 } -1 9612 throw new TypeError(''.concat(space, ' is not a valid color space')); -1 9613 } -1 9614 }, { -1 9615 key: 'resolveCoord', -1 9616 value: function resolveCoord(ref, workingSpace) { -1 9617 var coordType = type(ref); -1 9618 var space, coord; -1 9619 if (coordType === 'string') { -1 9620 if (ref.includes('.')) { -1 9621 var _ref$split = ref.split('.'); -1 9622 var _ref$split2 = _slicedToArray(_ref$split, 2); -1 9623 space = _ref$split2[0]; -1 9624 coord = _ref$split2[1]; -1 9625 } else { -1 9626 space = void 0; -1 9627 coord = ref; -1 9628 } -1 9629 } else if (Array.isArray(ref)) { -1 9630 var _ref6 = _slicedToArray(ref, 2); -1 9631 space = _ref6[0]; -1 9632 coord = _ref6[1]; 9780 9633 } else {9781 -1 fn(err2);9782 -1 err2 = null;-1 9634 space = ref.space; -1 9635 coord = ref.coordId; 9783 9636 }9784 -1 return q;9785 -1 },9786 -1 abort: abort9787 -1 };9788 -1 return q;9789 -1 }9790 -1 var queue_default = queue;9791 -1 var uuid;9792 -1 var _rng;9793 -1 var _crypto = window.crypto || window.msCrypto;9794 -1 if (!_rng && _crypto && _crypto.getRandomValues) {9795 -1 var _rnds8 = new Uint8Array(16);9796 -1 _rng = function whatwgRNG() {9797 -1 _crypto.getRandomValues(_rnds8);9798 -1 return _rnds8;9799 -1 };9800 -1 }9801 -1 if (!_rng) {9802 -1 var _rnds = new Array(16);9803 -1 _rng = function _rng() {9804 -1 for (var i = 0, r; i < 16; i++) {9805 -1 if ((i & 3) === 0) {9806 -1 r = Math.random() * 4294967296;-1 9637 space = _ColorSpace2.get(space); -1 9638 if (!space) { -1 9639 space = workingSpace; 9807 9640 }9808 -1 _rnds[i] = r >>> ((i & 3) << 3) & 255;-1 9641 if (!space) { -1 9642 throw new TypeError('Cannot resolve coordinate reference '.concat(ref, ': No color space specified and relative references are not allowed here')); -1 9643 } -1 9644 coordType = type(coord); -1 9645 if (coordType === 'number' || coordType === 'string' && coord >= 0) { -1 9646 var meta = Object.entries(space.coords)[coord]; -1 9647 if (meta) { -1 9648 return _extends({ -1 9649 space: space, -1 9650 id: meta[0], -1 9651 index: coord -1 9652 }, meta[1]); -1 9653 } -1 9654 } -1 9655 space = _ColorSpace2.get(space); -1 9656 var normalizedCoord = coord.toLowerCase(); -1 9657 var i = 0; -1 9658 for (var id in space.coords) { -1 9659 var _meta$name; -1 9660 var _meta = space.coords[id]; -1 9661 if (id.toLowerCase() === normalizedCoord || ((_meta$name = _meta.name) === null || _meta$name === void 0 ? void 0 : _meta$name.toLowerCase()) === normalizedCoord) { -1 9662 return _extends({ -1 9663 space: space, -1 9664 id: id, -1 9665 index: i -1 9666 }, _meta); -1 9667 } -1 9668 i++; -1 9669 } -1 9670 throw new TypeError('No "'.concat(coord, '" coordinate found in ').concat(space.name, '. Its coordinates are: ').concat(Object.keys(space.coords).join(', '))); 9809 9671 }9810 -1 return _rnds;9811 -1 };-1 9672 } ]); -1 9673 }()); -1 9674 function _processFormat(format) { -1 9675 if (format.coords && !format.coordGrammar) { -1 9676 format.type || (format.type = 'function'); -1 9677 format.name || (format.name = 'color'); -1 9678 format.coordGrammar = parseCoordGrammar(format.coords); -1 9679 var coordFormats = Object.entries(this.coords).map(function(_ref149, i) { -1 9680 var _ref150 = _slicedToArray(_ref149, 2), id = _ref150[0], coordMeta = _ref150[1]; -1 9681 var outputType = format.coordGrammar[i][0]; -1 9682 var fromRange = coordMeta.range || coordMeta.refRange; -1 9683 var toRange = outputType.range, suffix = ''; -1 9684 if (outputType == '<percentage>') { -1 9685 toRange = [ 0, 100 ]; -1 9686 suffix = '%'; -1 9687 } else if (outputType == '<angle>') { -1 9688 suffix = 'deg'; -1 9689 } -1 9690 return { -1 9691 fromRange: fromRange, -1 9692 toRange: toRange, -1 9693 suffix: suffix -1 9694 }; -1 9695 }); -1 9696 format.serializeCoords = function(coords, precision) { -1 9697 return coords.map(function(c4, i) { -1 9698 var _coordFormats$i = coordFormats[i], fromRange = _coordFormats$i.fromRange, toRange = _coordFormats$i.toRange, suffix = _coordFormats$i.suffix; -1 9699 if (fromRange && toRange) { -1 9700 c4 = mapRange(fromRange, toRange, c4); -1 9701 } -1 9702 c4 = toPrecision(c4, precision); -1 9703 if (suffix) { -1 9704 c4 += suffix; -1 9705 } -1 9706 return c4; -1 9707 }); -1 9708 }; -1 9709 } -1 9710 return format; 9812 9711 }9813 -1 var BufferClass = typeof window.Buffer == 'function' ? window.Buffer : Array;9814 -1 var _byteToHex = [];9815 -1 var _hexToByte = {};9816 -1 for (var i = 0; i < 256; i++) {9817 -1 _byteToHex[i] = (i + 256).toString(16).substr(1);9818 -1 _hexToByte[_byteToHex[i]] = i;-1 9712 function _getPath() { -1 9713 var ret = [ this ]; -1 9714 for (var _space2 = this; _space2 = _space2.base; ) { -1 9715 ret.push(_space2); -1 9716 } -1 9717 return ret; 9819 9718 }9820 -1 function parse(s, buf, offset) {9821 -1 var i = buf && offset || 0, ii = 0;9822 -1 buf = buf || [];9823 -1 s.toLowerCase().replace(/[0-9a-f]{2}/g, function(oct) {9824 -1 if (ii < 16) {9825 -1 buf[i + ii++] = _hexToByte[oct];-1 9719 var ColorSpace = _ColorSpace2; -1 9720 __publicField(ColorSpace, 'registry', {}); -1 9721 __publicField(ColorSpace, 'DEFAULT_FORMAT', { -1 9722 type: 'functions', -1 9723 name: 'color' -1 9724 }); -1 9725 var XYZ_D65 = new ColorSpace({ -1 9726 id: 'xyz-d65', -1 9727 name: 'XYZ D65', -1 9728 coords: { -1 9729 x: { -1 9730 name: 'X' -1 9731 }, -1 9732 y: { -1 9733 name: 'Y' -1 9734 }, -1 9735 z: { -1 9736 name: 'Z' 9826 9737 }9827 -1 });9828 -1 while (ii < 16) {9829 -1 buf[i + ii++] = 0;-1 9738 }, -1 9739 white: 'D65', -1 9740 formats: { -1 9741 color: { -1 9742 ids: [ 'xyz-d65', 'xyz' ] -1 9743 } -1 9744 }, -1 9745 aliases: [ 'xyz' ] -1 9746 }); -1 9747 var RGBColorSpace = function(_ColorSpace3) { -1 9748 function RGBColorSpace(options) { -1 9749 var _options$referred; -1 9750 var _this; -1 9751 _classCallCheck(this, RGBColorSpace); -1 9752 if (!options.coords) { -1 9753 options.coords = { -1 9754 r: { -1 9755 range: [ 0, 1 ], -1 9756 name: 'Red' -1 9757 }, -1 9758 g: { -1 9759 range: [ 0, 1 ], -1 9760 name: 'Green' -1 9761 }, -1 9762 b: { -1 9763 range: [ 0, 1 ], -1 9764 name: 'Blue' -1 9765 } -1 9766 }; -1 9767 } -1 9768 if (!options.base) { -1 9769 options.base = XYZ_D65; -1 9770 } -1 9771 if (options.toXYZ_M && options.fromXYZ_M) { -1 9772 var _options$toBase, _options$fromBase; -1 9773 (_options$toBase = options.toBase) !== null && _options$toBase !== void 0 ? _options$toBase : options.toBase = function(rgb) { -1 9774 var xyz = multiplyMatrices(options.toXYZ_M, rgb); -1 9775 if (_this.white !== _this.base.white) { -1 9776 xyz = adapt$1(_this.white, _this.base.white, xyz); -1 9777 } -1 9778 return xyz; -1 9779 }; -1 9780 (_options$fromBase = options.fromBase) !== null && _options$fromBase !== void 0 ? _options$fromBase : options.fromBase = function(xyz) { -1 9781 xyz = adapt$1(_this.base.white, _this.white, xyz); -1 9782 return multiplyMatrices(options.fromXYZ_M, xyz); -1 9783 }; -1 9784 } -1 9785 (_options$referred = options.referred) !== null && _options$referred !== void 0 ? _options$referred : options.referred = 'display'; -1 9786 return _this = _callSuper(this, RGBColorSpace, [ options ]); 9830 9787 }9831 -1 return buf;9832 -1 }9833 -1 function unparse(buf, offset) {9834 -1 var i = offset || 0, bth = _byteToHex;9835 -1 return bth[buf[i++]] + bth[buf[i++]] + bth[buf[i++]] + bth[buf[i++]] + '-' + bth[buf[i++]] + bth[buf[i++]] + '-' + bth[buf[i++]] + bth[buf[i++]] + '-' + bth[buf[i++]] + bth[buf[i++]] + '-' + bth[buf[i++]] + bth[buf[i++]] + bth[buf[i++]] + bth[buf[i++]] + bth[buf[i++]] + bth[buf[i++]];-1 9788 _inherits(RGBColorSpace, _ColorSpace3); -1 9789 return _createClass(RGBColorSpace); -1 9790 }(ColorSpace); -1 9791 function parse(str) { -1 9792 var _String; -1 9793 var env = { -1 9794 str: (_String = String(str)) === null || _String === void 0 ? void 0 : _String.trim() -1 9795 }; -1 9796 hooks.run('parse-start', env); -1 9797 if (env.color) { -1 9798 return env.color; -1 9799 } -1 9800 env.parsed = parseFunction(env.str); -1 9801 if (env.parsed) { -1 9802 var name = env.parsed.name; -1 9803 if (name === 'color') { -1 9804 var id = env.parsed.args.shift(); -1 9805 var alpha = env.parsed.rawArgs.indexOf('/') > 0 ? env.parsed.args.pop() : 1; -1 9806 var _iterator4 = _createForOfIteratorHelper(ColorSpace.all), _step4; -1 9807 try { -1 9808 var _loop2 = function _loop2() { -1 9809 var space = _step4.value; -1 9810 var colorSpec = space.getFormat('color'); -1 9811 if (colorSpec) { -1 9812 var _colorSpec$ids; -1 9813 if (id === colorSpec.id || (_colorSpec$ids = colorSpec.ids) !== null && _colorSpec$ids !== void 0 && _colorSpec$ids.includes(id)) { -1 9814 var argCount = Object.keys(space.coords).length; -1 9815 var coords = Array(argCount).fill(0); -1 9816 coords.forEach(function(_, i) { -1 9817 return coords[i] = env.parsed.args[i] || 0; -1 9818 }); -1 9819 return { -1 9820 v: { -1 9821 spaceId: space.id, -1 9822 coords: coords, -1 9823 alpha: alpha -1 9824 } -1 9825 }; -1 9826 } -1 9827 } -1 9828 }, _ret; -1 9829 for (_iterator4.s(); !(_step4 = _iterator4.n()).done; ) { -1 9830 _ret = _loop2(); -1 9831 if (_ret) { -1 9832 return _ret.v; -1 9833 } -1 9834 } -1 9835 } catch (err) { -1 9836 _iterator4.e(err); -1 9837 } finally { -1 9838 _iterator4.f(); -1 9839 } -1 9840 var didYouMean = ''; -1 9841 if (id in ColorSpace.registry) { -1 9842 var _ColorSpace$registry$; -1 9843 var cssId = (_ColorSpace$registry$ = ColorSpace.registry[id].formats) === null || _ColorSpace$registry$ === void 0 || (_ColorSpace$registry$ = _ColorSpace$registry$.functions) === null || _ColorSpace$registry$ === void 0 || (_ColorSpace$registry$ = _ColorSpace$registry$.color) === null || _ColorSpace$registry$ === void 0 ? void 0 : _ColorSpace$registry$.id; -1 9844 if (cssId) { -1 9845 didYouMean = 'Did you mean color('.concat(cssId, ')?'); -1 9846 } -1 9847 } -1 9848 throw new TypeError('Cannot parse color('.concat(id, '). ') + (didYouMean || 'Missing a plugin?')); -1 9849 } else { -1 9850 var _iterator5 = _createForOfIteratorHelper(ColorSpace.all), _step5; -1 9851 try { -1 9852 var _loop3 = function _loop3() { -1 9853 var space = _step5.value; -1 9854 var format = space.getFormat(name); -1 9855 if (format && format.type === 'function') { -1 9856 var _alpha = 1; -1 9857 if (format.lastAlpha || last(env.parsed.args).alpha) { -1 9858 _alpha = env.parsed.args.pop(); -1 9859 } -1 9860 var coords = env.parsed.args; -1 9861 if (format.coordGrammar) { -1 9862 Object.entries(space.coords).forEach(function(_ref7, i) { -1 9863 var _coords$i; -1 9864 var _ref8 = _slicedToArray(_ref7, 2), id = _ref8[0], coordMeta = _ref8[1]; -1 9865 var coordGrammar2 = format.coordGrammar[i]; -1 9866 var providedType = (_coords$i = coords[i]) === null || _coords$i === void 0 ? void 0 : _coords$i.type; -1 9867 coordGrammar2 = coordGrammar2.find(function(c4) { -1 9868 return c4 == providedType; -1 9869 }); -1 9870 if (!coordGrammar2) { -1 9871 var coordName = coordMeta.name || id; -1 9872 throw new TypeError(''.concat(providedType, ' not allowed for ').concat(coordName, ' in ').concat(name, '()')); -1 9873 } -1 9874 var fromRange = coordGrammar2.range; -1 9875 if (providedType === '<percentage>') { -1 9876 fromRange || (fromRange = [ 0, 1 ]); -1 9877 } -1 9878 var toRange = coordMeta.range || coordMeta.refRange; -1 9879 if (fromRange && toRange) { -1 9880 coords[i] = mapRange(fromRange, toRange, coords[i]); -1 9881 } -1 9882 }); -1 9883 } -1 9884 return { -1 9885 v: { -1 9886 spaceId: space.id, -1 9887 coords: coords, -1 9888 alpha: _alpha -1 9889 } -1 9890 }; -1 9891 } -1 9892 }, _ret2; -1 9893 for (_iterator5.s(); !(_step5 = _iterator5.n()).done; ) { -1 9894 _ret2 = _loop3(); -1 9895 if (_ret2) { -1 9896 return _ret2.v; -1 9897 } -1 9898 } -1 9899 } catch (err) { -1 9900 _iterator5.e(err); -1 9901 } finally { -1 9902 _iterator5.f(); -1 9903 } -1 9904 } -1 9905 } else { -1 9906 var _iterator6 = _createForOfIteratorHelper(ColorSpace.all), _step6; -1 9907 try { -1 9908 for (_iterator6.s(); !(_step6 = _iterator6.n()).done; ) { -1 9909 var space = _step6.value; -1 9910 for (var formatId in space.formats) { -1 9911 var format = space.formats[formatId]; -1 9912 if (format.type !== 'custom') { -1 9913 continue; -1 9914 } -1 9915 if (format.test && !format.test(env.str)) { -1 9916 continue; -1 9917 } -1 9918 var color = format.parse(env.str); -1 9919 if (color) { -1 9920 var _color$alpha; -1 9921 (_color$alpha = color.alpha) !== null && _color$alpha !== void 0 ? _color$alpha : color.alpha = 1; -1 9922 return color; -1 9923 } -1 9924 } -1 9925 } -1 9926 } catch (err) { -1 9927 _iterator6.e(err); -1 9928 } finally { -1 9929 _iterator6.f(); -1 9930 } -1 9931 } -1 9932 throw new TypeError('Could not parse '.concat(str, ' as a color. Missing a plugin?')); 9836 9933 }9837 -1 var _seedBytes = _rng();9838 -1 var _nodeId = [ _seedBytes[0] | 1, _seedBytes[1], _seedBytes[2], _seedBytes[3], _seedBytes[4], _seedBytes[5] ];9839 -1 var _clockseq = (_seedBytes[6] << 8 | _seedBytes[7]) & 16383;9840 -1 var _lastMSecs = 0;9841 -1 var _lastNSecs = 0;9842 -1 function v1(options, buf, offset) {9843 -1 var i = buf && offset || 0;9844 -1 var b2 = buf || [];9845 -1 options = options || {};9846 -1 var clockseq = options.clockseq != null ? options.clockseq : _clockseq;9847 -1 var msecs = options.msecs != null ? options.msecs : new Date().getTime();9848 -1 var nsecs = options.nsecs != null ? options.nsecs : _lastNSecs + 1;9849 -1 var dt = msecs - _lastMSecs + (nsecs - _lastNSecs) / 1e4;9850 -1 if (dt < 0 && options.clockseq == null) {9851 -1 clockseq = clockseq + 1 & 16383;-1 9934 function getColor(color) { -1 9935 if (!color) { -1 9936 throw new TypeError('Empty color reference'); 9852 9937 }9853 -1 if ((dt < 0 || msecs > _lastMSecs) && options.nsecs == null) {9854 -1 nsecs = 0;-1 9938 if (isString(color)) { -1 9939 color = parse(color); 9855 9940 }9856 -1 if (nsecs >= 1e4) {9857 -1 throw new Error('uuid.v1(): Can\'t create more than 10M uuids/sec');-1 9941 var space = color.space || color.spaceId; -1 9942 if (!(space instanceof ColorSpace)) { -1 9943 color.space = ColorSpace.get(space); 9858 9944 }9859 -1 _lastMSecs = msecs;9860 -1 _lastNSecs = nsecs;9861 -1 _clockseq = clockseq;9862 -1 msecs += 122192928e5;9863 -1 var tl = ((msecs & 268435455) * 1e4 + nsecs) % 4294967296;9864 -1 b2[i++] = tl >>> 24 & 255;9865 -1 b2[i++] = tl >>> 16 & 255;9866 -1 b2[i++] = tl >>> 8 & 255;9867 -1 b2[i++] = tl & 255;9868 -1 var tmh = msecs / 4294967296 * 1e4 & 268435455;9869 -1 b2[i++] = tmh >>> 8 & 255;9870 -1 b2[i++] = tmh & 255;9871 -1 b2[i++] = tmh >>> 24 & 15 | 16;9872 -1 b2[i++] = tmh >>> 16 & 255;9873 -1 b2[i++] = clockseq >>> 8 | 128;9874 -1 b2[i++] = clockseq & 255;9875 -1 var node = options.node || _nodeId;9876 -1 for (var n2 = 0; n2 < 6; n2++) {9877 -1 b2[i + n2] = node[n2];-1 9945 if (color.alpha === void 0) { -1 9946 color.alpha = 1; 9878 9947 }9879 -1 return buf ? buf : unparse(b2);-1 9948 return color; 9880 9949 }9881 -1 function v4(options, buf, offset) {9882 -1 var i = buf && offset || 0;9883 -1 if (typeof options == 'string') {9884 -1 buf = options == 'binary' ? new BufferClass(16) : null;9885 -1 options = null;9886 -1 }9887 -1 options = options || {};9888 -1 var rnds = options.random || (options.rng || _rng)();9889 -1 rnds[6] = rnds[6] & 15 | 64;9890 -1 rnds[8] = rnds[8] & 63 | 128;9891 -1 if (buf) {9892 -1 for (var ii = 0; ii < 16; ii++) {9893 -1 buf[i + ii] = rnds[ii];9894 -1 }9895 -1 }9896 -1 return buf || unparse(rnds);9897 -1 }9898 -1 uuid = v4;9899 -1 uuid.v1 = v1;9900 -1 uuid.v4 = v4;9901 -1 uuid.parse = parse;9902 -1 uuid.unparse = unparse;9903 -1 uuid.BufferClass = BufferClass;9904 -1 axe._uuid = v1();9905 -1 var uuid_default = v4;9906 -1 var errorTypes = Object.freeze([ 'EvalError', 'RangeError', 'ReferenceError', 'SyntaxError', 'TypeError', 'URIError' ]);9907 -1 function stringifyMessage(_ref3) {9908 -1 var topic = _ref3.topic, channelId = _ref3.channelId, message = _ref3.message, messageId = _ref3.messageId, keepalive = _ref3.keepalive;9909 -1 var data = {9910 -1 channelId: channelId,9911 -1 topic: topic,9912 -1 messageId: messageId,9913 -1 keepalive: !!keepalive,9914 -1 source: getSource2()9915 -1 };9916 -1 if (message instanceof Error) {9917 -1 data.error = {9918 -1 name: message.name,9919 -1 message: message.message,9920 -1 stack: message.stack9921 -1 };9922 -1 } else {9923 -1 data.payload = message;9924 -1 }9925 -1 return JSON.stringify(data);9926 -1 }9927 -1 function parseMessage(dataString) {9928 -1 var data;9929 -1 try {9930 -1 data = JSON.parse(dataString);9931 -1 } catch (_unused) {9932 -1 return;9933 -1 }9934 -1 if (!isRespondableMessage(data)) {9935 -1 return;9936 -1 }9937 -1 var _data2 = data, topic = _data2.topic, channelId = _data2.channelId, messageId = _data2.messageId, keepalive = _data2.keepalive;9938 -1 var message = _typeof(data.error) === 'object' ? buildErrorObject(data.error) : data.payload;9939 -1 return {9940 -1 topic: topic,9941 -1 message: message,9942 -1 messageId: messageId,9943 -1 channelId: channelId,9944 -1 keepalive: !!keepalive9945 -1 };-1 9950 function getAll(color, space) { -1 9951 space = ColorSpace.get(space); -1 9952 return space.from(color); 9946 9953 }9947 -1 function isRespondableMessage(postedMessage) {9948 -1 return postedMessage !== null && _typeof(postedMessage) === 'object' && typeof postedMessage.channelId === 'string' && postedMessage.source === getSource2();-1 9954 function get(color, prop) { -1 9955 var _ColorSpace$resolveCo = ColorSpace.resolveCoord(prop, color.space), space = _ColorSpace$resolveCo.space, index = _ColorSpace$resolveCo.index; -1 9956 var coords = getAll(color, space); -1 9957 return coords[index]; 9949 9958 }9950 -1 function buildErrorObject(error) {9951 -1 var msg = error.message || 'Unknown error occurred';9952 -1 var errorName = errorTypes.includes(error.name) ? error.name : 'Error';9953 -1 var ErrConstructor = window[errorName] || Error;9954 -1 if (error.stack) {9955 -1 msg += '\n' + error.stack.replace(error.message, '');9956 -1 }9957 -1 return new ErrConstructor(msg);-1 9959 function setAll(color, space, coords) { -1 9960 space = ColorSpace.get(space); -1 9961 color.coords = space.to(color.space, coords); -1 9962 return color; 9958 9963 }9959 -1 function getSource2() {9960 -1 var application = 'axeAPI';9961 -1 var version = '';9962 -1 if (typeof axe !== 'undefined' && axe._audit && axe._audit.application) {9963 -1 application = axe._audit.application;9964 -1 }9965 -1 if (typeof axe !== 'undefined') {9966 -1 version = axe.version;-1 9964 function set(color, prop, value) { -1 9965 color = getColor(color); -1 9966 if (arguments.length === 2 && type(arguments[1]) === 'object') { -1 9967 var object = arguments[1]; -1 9968 for (var p2 in object) { -1 9969 set(color, p2, object[p2]); -1 9970 } -1 9971 } else { -1 9972 if (typeof value === 'function') { -1 9973 value = value(get(color, prop)); -1 9974 } -1 9975 var _ColorSpace$resolveCo2 = ColorSpace.resolveCoord(prop, color.space), space = _ColorSpace$resolveCo2.space, index = _ColorSpace$resolveCo2.index; -1 9976 var coords = getAll(color, space); -1 9977 coords[index] = value; -1 9978 setAll(color, space, coords); 9967 9979 }9968 -1 return application + '.' + version;9969 -1 }9970 -1 function assertIsParentWindow(win) {9971 -1 assetNotGlobalWindow(win);9972 -1 assert_default(window.parent === win, 'Source of the response must be the parent window.');9973 -1 }9974 -1 function assertIsFrameWindow(win) {9975 -1 assetNotGlobalWindow(win);9976 -1 assert_default(win.parent === window, 'Respondable target must be a frame in the current window');9977 -1 }9978 -1 function assetNotGlobalWindow(win) {9979 -1 assert_default(window !== win, 'Messages can not be sent to the same window.');9980 -1 }9981 -1 var channels = {};9982 -1 function storeReplyHandler(channelId, replyHandler) {9983 -1 var sendToParent = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;9984 -1 assert_default(!channels[channelId], 'A replyHandler already exists for this message channel.');9985 -1 channels[channelId] = {9986 -1 replyHandler: replyHandler,9987 -1 sendToParent: sendToParent9988 -1 };9989 -1 }9990 -1 function getReplyHandler(channelId) {9991 -1 return channels[channelId];9992 -1 }9993 -1 function deleteReplyHandler(channelId) {9994 -1 delete channels[channelId];-1 9980 return color; 9995 9981 }9996 -1 var messageIds = [];9997 -1 function createMessageId() {9998 -1 var uuid2 = ''.concat(v4(), ':').concat(v4());9999 -1 if (messageIds.includes(uuid2)) {10000 -1 return createMessageId();-1 9982 var XYZ_D50 = new ColorSpace({ -1 9983 id: 'xyz-d50', -1 9984 name: 'XYZ D50', -1 9985 white: 'D50', -1 9986 base: XYZ_D65, -1 9987 fromBase: function fromBase(coords) { -1 9988 return adapt$1(XYZ_D65.white, 'D50', coords); -1 9989 }, -1 9990 toBase: function toBase(coords) { -1 9991 return adapt$1('D50', XYZ_D65.white, coords); -1 9992 }, -1 9993 formats: { -1 9994 color: {} 10001 9995 }10002 -1 messageIds.push(uuid2);10003 -1 return uuid2;10004 -1 }10005 -1 function isNewMessage(uuid2) {10006 -1 if (messageIds.includes(uuid2)) {10007 -1 return false;-1 9996 }); -1 9997 var \u03b5$3 = 216 / 24389; -1 9998 var \u03b53$1 = 24 / 116; -1 9999 var \u03ba$1 = 24389 / 27; -1 10000 var white$1 = WHITES.D50; -1 10001 var lab = new ColorSpace({ -1 10002 id: 'lab', -1 10003 name: 'Lab', -1 10004 coords: { -1 10005 l: { -1 10006 refRange: [ 0, 100 ], -1 10007 name: 'L' -1 10008 }, -1 10009 a: { -1 10010 refRange: [ -125, 125 ] -1 10011 }, -1 10012 b: { -1 10013 refRange: [ -125, 125 ] -1 10014 } -1 10015 }, -1 10016 white: white$1, -1 10017 base: XYZ_D50, -1 10018 fromBase: function fromBase(XYZ) { -1 10019 var xyz = XYZ.map(function(value, i) { -1 10020 return value / white$1[i]; -1 10021 }); -1 10022 var f = xyz.map(function(value) { -1 10023 return value > \u03b5$3 ? Math.cbrt(value) : (\u03ba$1 * value + 16) / 116; -1 10024 }); -1 10025 return [ 116 * f[1] - 16, 500 * (f[0] - f[1]), 200 * (f[1] - f[2]) ]; -1 10026 }, -1 10027 toBase: function toBase(Lab) { -1 10028 var f = []; -1 10029 f[1] = (Lab[0] + 16) / 116; -1 10030 f[0] = Lab[1] / 500 + f[1]; -1 10031 f[2] = f[1] - Lab[2] / 200; -1 10032 var xyz = [ f[0] > \u03b53$1 ? Math.pow(f[0], 3) : (116 * f[0] - 16) / \u03ba$1, Lab[0] > 8 ? Math.pow((Lab[0] + 16) / 116, 3) : Lab[0] / \u03ba$1, f[2] > \u03b53$1 ? Math.pow(f[2], 3) : (116 * f[2] - 16) / \u03ba$1 ]; -1 10033 return xyz.map(function(value, i) { -1 10034 return value * white$1[i]; -1 10035 }); -1 10036 }, -1 10037 formats: { -1 10038 lab: { -1 10039 coords: [ '<number> | <percentage>', '<number>', '<number>' ] -1 10040 } 10008 10041 }10009 -1 messageIds.push(uuid2);10010 -1 return true;-1 10042 }); -1 10043 function constrain(angle) { -1 10044 return (angle % 360 + 360) % 360; 10011 10045 }10012 -1 function postMessage(win, data, sendToParent, replyHandler) {10013 -1 sendToParent ? assertIsParentWindow(win) : assertIsFrameWindow(win);10014 -1 if (data.message instanceof Error && !sendToParent) {10015 -1 axe.log(data.message);10016 -1 return false;10017 -1 }10018 -1 var dataString = stringifyMessage(_extends({10019 -1 messageId: createMessageId()10020 -1 }, data));10021 -1 var allowedOrigins = axe._audit.allowedOrigins;10022 -1 if (!allowedOrigins || !allowedOrigins.length) {10023 -1 return false;10024 -1 }10025 -1 if (typeof replyHandler === 'function') {10026 -1 storeReplyHandler(data.channelId, replyHandler, sendToParent);-1 10046 function adjust(arc, angles) { -1 10047 if (arc === 'raw') { -1 10048 return angles; 10027 10049 }10028 -1 allowedOrigins.forEach(function(origin) {10029 -1 try {10030 -1 win.postMessage(dataString, origin);10031 -1 } catch (err2) {10032 -1 if (err2 instanceof win.DOMException) {10033 -1 throw new Error('allowedOrigins value "'.concat(origin, '" is not a valid origin'));-1 10050 var _angles$map = angles.map(constrain), _angles$map2 = _slicedToArray(_angles$map, 2), a1 = _angles$map2[0], a2 = _angles$map2[1]; -1 10051 var angleDiff = a2 - a1; -1 10052 if (arc === 'increasing') { -1 10053 if (angleDiff < 0) { -1 10054 a2 += 360; -1 10055 } -1 10056 } else if (arc === 'decreasing') { -1 10057 if (angleDiff > 0) { -1 10058 a1 += 360; -1 10059 } -1 10060 } else if (arc === 'longer') { -1 10061 if (-180 < angleDiff && angleDiff < 180) { -1 10062 if (angleDiff > 0) { -1 10063 a2 += 360; -1 10064 } else { -1 10065 a1 += 360; 10034 10066 }10035 -1 throw err2;10036 10067 }10037 -1 });10038 -1 return true;10039 -1 }10040 -1 function processError(win, error, channelId) {10041 -1 if (!win.parent !== window) {10042 -1 return axe.log(error);10043 -1 }10044 -1 try {10045 -1 postMessage(win, {10046 -1 topic: null,10047 -1 channelId: channelId,10048 -1 message: error,10049 -1 messageId: createMessageId(),10050 -1 keepalive: true10051 -1 }, true);10052 -1 } catch (err2) {10053 -1 return axe.log(err2);-1 10068 } else if (arc === 'shorter') { -1 10069 if (angleDiff > 180) { -1 10070 a1 += 360; -1 10071 } else if (angleDiff < -180) { -1 10072 a2 += 360; -1 10073 } 10054 10074 } -1 10075 return [ a1, a2 ]; 10055 10076 }10056 -1 function createResponder(win, channelId) {10057 -1 var sendToParent = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;10058 -1 return function respond(message, keepalive, replyHandler) {10059 -1 var data = {10060 -1 channelId: channelId,10061 -1 message: message,10062 -1 keepalive: keepalive10063 -1 };10064 -1 postMessage(win, data, sendToParent, replyHandler);10065 -1 };10066 -1 }10067 -1 function originIsAllowed(origin) {10068 -1 var allowedOrigins = axe._audit.allowedOrigins;10069 -1 return allowedOrigins && allowedOrigins.includes('*') || allowedOrigins.includes(origin);10070 -1 }10071 -1 function messageHandler(_ref4, topicHandler) {10072 -1 var origin = _ref4.origin, dataString = _ref4.data, win = _ref4.source;10073 -1 try {10074 -1 var data = parseMessage(dataString) || {};10075 -1 var channelId = data.channelId, message = data.message, messageId = data.messageId;10076 -1 if (!originIsAllowed(origin) || !isNewMessage(messageId)) {10077 -1 return;-1 10077 var lch = new ColorSpace({ -1 10078 id: 'lch', -1 10079 name: 'LCH', -1 10080 coords: { -1 10081 l: { -1 10082 refRange: [ 0, 100 ], -1 10083 name: 'Lightness' -1 10084 }, -1 10085 c: { -1 10086 refRange: [ 0, 150 ], -1 10087 name: 'Chroma' -1 10088 }, -1 10089 h: { -1 10090 refRange: [ 0, 360 ], -1 10091 type: 'angle', -1 10092 name: 'Hue' 10078 10093 }10079 -1 if (message instanceof Error && win.parent !== window) {10080 -1 axe.log(message);10081 -1 return false;-1 10094 }, -1 10095 base: lab, -1 10096 fromBase: function fromBase(Lab) { -1 10097 var _Lab = _slicedToArray(Lab, 3), L = _Lab[0], a2 = _Lab[1], b2 = _Lab[2]; -1 10098 var hue; -1 10099 var \u03b52 = .02; -1 10100 if (Math.abs(a2) < \u03b52 && Math.abs(b2) < \u03b52) { -1 10101 hue = NaN; -1 10102 } else { -1 10103 hue = Math.atan2(b2, a2) * 180 / Math.PI; 10082 10104 }10083 -1 try {10084 -1 if (data.topic) {10085 -1 var responder = createResponder(win, channelId);10086 -1 assertIsParentWindow(win);10087 -1 topicHandler(data, responder);10088 -1 } else {10089 -1 callReplyHandler(win, data);10090 -1 }10091 -1 } catch (error) {10092 -1 processError(win, error, channelId);-1 10105 return [ L, Math.sqrt(Math.pow(a2, 2) + Math.pow(b2, 2)), constrain(hue) ]; -1 10106 }, -1 10107 toBase: function toBase(LCH) { -1 10108 var _LCH = _slicedToArray(LCH, 3), Lightness = _LCH[0], Chroma = _LCH[1], Hue = _LCH[2]; -1 10109 if (Chroma < 0) { -1 10110 Chroma = 0; -1 10111 } -1 10112 if (isNaN(Hue)) { -1 10113 Hue = 0; -1 10114 } -1 10115 return [ Lightness, Chroma * Math.cos(Hue * Math.PI / 180), Chroma * Math.sin(Hue * Math.PI / 180) ]; -1 10116 }, -1 10117 formats: { -1 10118 lch: { -1 10119 coords: [ '<number> | <percentage>', '<number>', '<number> | <angle>' ] 10093 10120 }10094 -1 } catch (error) {10095 -1 axe.log(error);10096 -1 return false;10097 10121 }10098 -1 }10099 -1 function callReplyHandler(win, data) {10100 -1 var channelId = data.channelId, message = data.message, keepalive = data.keepalive;10101 -1 var _ref5 = getReplyHandler(channelId) || {}, replyHandler = _ref5.replyHandler, sendToParent = _ref5.sendToParent;10102 -1 if (!replyHandler) {10103 -1 return;-1 10122 }); -1 10123 var Gfactor = Math.pow(25, 7); -1 10124 var \u03c0$1 = Math.PI; -1 10125 var r2d = 180 / \u03c0$1; -1 10126 var d2r$1 = \u03c0$1 / 180; -1 10127 function deltaE2000(color, sample) { -1 10128 var _ref9 = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}, _ref9$kL = _ref9.kL, kL = _ref9$kL === void 0 ? 1 : _ref9$kL, _ref9$kC = _ref9.kC, kC = _ref9$kC === void 0 ? 1 : _ref9$kC, _ref9$kH = _ref9.kH, kH = _ref9$kH === void 0 ? 1 : _ref9$kH; -1 10129 var _lab$from = lab.from(color), _lab$from2 = _slicedToArray(_lab$from, 3), L1 = _lab$from2[0], a1 = _lab$from2[1], b1 = _lab$from2[2]; -1 10130 var C1 = lch.from(lab, [ L1, a1, b1 ])[1]; -1 10131 var _lab$from3 = lab.from(sample), _lab$from4 = _slicedToArray(_lab$from3, 3), L2 = _lab$from4[0], a2 = _lab$from4[1], b2 = _lab$from4[2]; -1 10132 var C2 = lch.from(lab, [ L2, a2, b2 ])[1]; -1 10133 if (C1 < 0) { -1 10134 C1 = 0; 10104 10135 }10105 -1 sendToParent ? assertIsParentWindow(win) : assertIsFrameWindow(win);10106 -1 var responder = createResponder(win, channelId, sendToParent);10107 -1 if (!keepalive && channelId) {10108 -1 deleteReplyHandler(channelId);-1 10136 if (C2 < 0) { -1 10137 C2 = 0; 10109 10138 }10110 -1 try {10111 -1 replyHandler(message, keepalive, responder);10112 -1 } catch (error) {10113 -1 axe.log(error);10114 -1 responder(error, keepalive);-1 10139 var Cbar = (C1 + C2) / 2; -1 10140 var C7 = Math.pow(Cbar, 7); -1 10141 var G = .5 * (1 - Math.sqrt(C7 / (C7 + Gfactor))); -1 10142 var adash1 = (1 + G) * a1; -1 10143 var adash2 = (1 + G) * a2; -1 10144 var Cdash1 = Math.sqrt(Math.pow(adash1, 2) + Math.pow(b1, 2)); -1 10145 var Cdash2 = Math.sqrt(Math.pow(adash2, 2) + Math.pow(b2, 2)); -1 10146 var h1 = adash1 === 0 && b1 === 0 ? 0 : Math.atan2(b1, adash1); -1 10147 var h2 = adash2 === 0 && b2 === 0 ? 0 : Math.atan2(b2, adash2); -1 10148 if (h1 < 0) { -1 10149 h1 += 2 * \u03c0$1; -1 10150 } -1 10151 if (h2 < 0) { -1 10152 h2 += 2 * \u03c0$1; 10115 10153 } -1 10154 h1 *= r2d; -1 10155 h2 *= r2d; -1 10156 var \u0394L = L2 - L1; -1 10157 var \u0394C = Cdash2 - Cdash1; -1 10158 var hdiff = h2 - h1; -1 10159 var hsum = h1 + h2; -1 10160 var habs = Math.abs(hdiff); -1 10161 var \u0394h; -1 10162 if (Cdash1 * Cdash2 === 0) { -1 10163 \u0394h = 0; -1 10164 } else if (habs <= 180) { -1 10165 \u0394h = hdiff; -1 10166 } else if (hdiff > 180) { -1 10167 \u0394h = hdiff - 360; -1 10168 } else if (hdiff < -180) { -1 10169 \u0394h = hdiff + 360; -1 10170 } else { -1 10171 console.log('the unthinkable has happened'); -1 10172 } -1 10173 var \u0394H = 2 * Math.sqrt(Cdash2 * Cdash1) * Math.sin(\u0394h * d2r$1 / 2); -1 10174 var Ldash = (L1 + L2) / 2; -1 10175 var Cdash = (Cdash1 + Cdash2) / 2; -1 10176 var Cdash7 = Math.pow(Cdash, 7); -1 10177 var hdash; -1 10178 if (Cdash1 * Cdash2 === 0) { -1 10179 hdash = hsum; -1 10180 } else if (habs <= 180) { -1 10181 hdash = hsum / 2; -1 10182 } else if (hsum < 360) { -1 10183 hdash = (hsum + 360) / 2; -1 10184 } else { -1 10185 hdash = (hsum - 360) / 2; -1 10186 } -1 10187 var lsq = Math.pow(Ldash - 50, 2); -1 10188 var SL = 1 + .015 * lsq / Math.sqrt(20 + lsq); -1 10189 var SC = 1 + .045 * Cdash; -1 10190 var T = 1; -1 10191 T -= .17 * Math.cos((hdash - 30) * d2r$1); -1 10192 T += .24 * Math.cos(2 * hdash * d2r$1); -1 10193 T += .32 * Math.cos((3 * hdash + 6) * d2r$1); -1 10194 T -= .2 * Math.cos((4 * hdash - 63) * d2r$1); -1 10195 var SH = 1 + .015 * Cdash * T; -1 10196 var \u0394\u03b8 = 30 * Math.exp(-1 * Math.pow((hdash - 275) / 25, 2)); -1 10197 var RC = 2 * Math.sqrt(Cdash7 / (Cdash7 + Gfactor)); -1 10198 var RT = -1 * Math.sin(2 * \u0394\u03b8 * d2r$1) * RC; -1 10199 var dE = Math.pow(\u0394L / (kL * SL), 2); -1 10200 dE += Math.pow(\u0394C / (kC * SC), 2); -1 10201 dE += Math.pow(\u0394H / (kH * SH), 2); -1 10202 dE += RT * (\u0394C / (kC * SC)) * (\u0394H / (kH * SH)); -1 10203 return Math.sqrt(dE); 10116 10204 }10117 -1 var frameMessenger = {10118 -1 open: function open(topicHandler) {10119 -1 if (typeof window.addEventListener !== 'function') {10120 -1 return;10121 -1 }10122 -1 var handler = function handler(messageEvent) {10123 -1 messageHandler(messageEvent, topicHandler);10124 -1 };10125 -1 window.addEventListener('message', handler, false);10126 -1 return function() {10127 -1 window.removeEventListener('message', handler, false);10128 -1 };10129 -1 },10130 -1 post: function post(win, data, replyHandler) {10131 -1 if (typeof window.addEventListener !== 'function') {10132 -1 return false;10133 -1 }10134 -1 return postMessage(win, data, false, replyHandler);-1 10205 var \u03b5$2 = 75e-6; -1 10206 function inGamut(color) { -1 10207 var space = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : color.space; -1 10208 var _ref0 = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}, _ref0$epsilon = _ref0.epsilon, epsilon = _ref0$epsilon === void 0 ? \u03b5$2 : _ref0$epsilon; -1 10209 color = getColor(color); -1 10210 space = ColorSpace.get(space); -1 10211 var coords = color.coords; -1 10212 if (space !== color.space) { -1 10213 coords = space.from(color); 10135 10214 }10136 -1 };10137 -1 function setDefaultFrameMessenger(respondable2) {10138 -1 respondable2.updateMessenger(frameMessenger);-1 10215 return space.inGamut(coords, { -1 10216 epsilon: epsilon -1 10217 }); 10139 10218 }10140 -1 var closeHandler;10141 -1 var postMessage2;10142 -1 var topicHandlers = {};10143 -1 function _respondable(win, topic, message, keepalive, replyHandler) {10144 -1 var data = {10145 -1 topic: topic,10146 -1 message: message,10147 -1 channelId: ''.concat(v4(), ':').concat(v4()),10148 -1 keepalive: keepalive-1 10219 function clone(color) { -1 10220 return { -1 10221 space: color.space, -1 10222 coords: color.coords.slice(), -1 10223 alpha: color.alpha 10149 10224 };10150 -1 return postMessage2(win, data, replyHandler);10151 10225 }10152 -1 function messageListener(data, responder) {10153 -1 var topic = data.topic, message = data.message, keepalive = data.keepalive;10154 -1 var topicHandler = topicHandlers[topic];10155 -1 if (!topicHandler) {10156 -1 return;10157 -1 }10158 -1 try {10159 -1 topicHandler(message, keepalive, responder);10160 -1 } catch (error) {10161 -1 axe.log(error);10162 -1 responder(error, keepalive);10163 -1 }10164 -1 }10165 -1 _respondable.updateMessenger = function updateMessenger(_ref6) {10166 -1 var open = _ref6.open, post = _ref6.post;10167 -1 assert_default(typeof open === 'function', 'open callback must be a function');10168 -1 assert_default(typeof post === 'function', 'post callback must be a function');10169 -1 if (closeHandler) {10170 -1 closeHandler();-1 10226 function toGamut(color) { -1 10227 var _ref1 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, _ref1$method = _ref1.method, method = _ref1$method === void 0 ? defaults.gamut_mapping : _ref1$method, _ref1$space = _ref1.space, space = _ref1$space === void 0 ? color.space : _ref1$space; -1 10228 if (isString(arguments[1])) { -1 10229 space = arguments[1]; 10171 10230 }10172 -1 var close = open(messageListener);10173 -1 if (close) {10174 -1 assert_default(typeof close === 'function', 'open callback must return a cleanup function');10175 -1 closeHandler = close;10176 -1 } else {10177 -1 closeHandler = null;-1 10231 space = ColorSpace.get(space); -1 10232 if (inGamut(color, space, { -1 10233 epsilon: 0 -1 10234 })) { -1 10235 return color; 10178 10236 }10179 -1 postMessage2 = post;10180 -1 };10181 -1 _respondable.subscribe = function subscribe(topic, topicHandler) {10182 -1 assert_default(typeof topicHandler === 'function', 'Subscriber callback must be a function');10183 -1 assert_default(!topicHandlers[topic], 'Topic '.concat(topic, ' is already registered to.'));10184 -1 topicHandlers[topic] = topicHandler;10185 -1 };10186 -1 _respondable.isInFrame = function isInFrame() {10187 -1 var win = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : window;10188 -1 return !!win.frameElement;10189 -1 };10190 -1 setDefaultFrameMessenger(_respondable);10191 -1 function _sendCommandToFrame(node, parameters, resolve, reject) {10192 -1 var _parameters$options$p, _parameters$options;10193 -1 var win = node.contentWindow;10194 -1 var pingWaitTime = (_parameters$options$p = (_parameters$options = parameters.options) === null || _parameters$options === void 0 ? void 0 : _parameters$options.pingWaitTime) !== null && _parameters$options$p !== void 0 ? _parameters$options$p : 500;10195 -1 if (!win) {10196 -1 log_default('Frame does not have a content window', node);10197 -1 resolve(null);10198 -1 return;10199 -1 }10200 -1 if (pingWaitTime === 0) {10201 -1 callAxeStart(node, parameters, resolve, reject);10202 -1 return;10203 -1 }10204 -1 var timeout = setTimeout(function() {10205 -1 timeout = setTimeout(function() {10206 -1 if (!parameters.debug) {10207 -1 resolve(null);10208 -1 } else {10209 -1 reject(err('No response from frame', node));-1 10237 var spaceColor = to(color, space); -1 10238 if (method !== 'clip' && !inGamut(color, space)) { -1 10239 var clipped = toGamut(clone(spaceColor), { -1 10240 method: 'clip', -1 10241 space: space -1 10242 }); -1 10243 if (deltaE2000(color, clipped) > 2) { -1 10244 var coordMeta = ColorSpace.resolveCoord(method); -1 10245 var mapSpace = coordMeta.space; -1 10246 var coordId = coordMeta.id; -1 10247 var mappedColor = to(spaceColor, mapSpace); -1 10248 var bounds = coordMeta.range || coordMeta.refRange; -1 10249 var min = bounds[0]; -1 10250 var \u03b52 = .01; -1 10251 var low = min; -1 10252 var high = get(mappedColor, coordId); -1 10253 while (high - low > \u03b52) { -1 10254 var clipped2 = clone(mappedColor); -1 10255 clipped2 = toGamut(clipped2, { -1 10256 space: space, -1 10257 method: 'clip' -1 10258 }); -1 10259 var deltaE2 = deltaE2000(mappedColor, clipped2); -1 10260 if (deltaE2 - 2 < \u03b52) { -1 10261 low = get(mappedColor, coordId); -1 10262 } else { -1 10263 high = get(mappedColor, coordId); -1 10264 } -1 10265 set(mappedColor, coordId, (low + high) / 2); 10210 10266 }10211 -1 }, 0);10212 -1 }, pingWaitTime);10213 -1 _respondable(win, 'axe.ping', null, void 0, function() {10214 -1 clearTimeout(timeout);10215 -1 callAxeStart(node, parameters, resolve, reject);10216 -1 });10217 -1 }10218 -1 function callAxeStart(node, parameters, resolve, reject) {10219 -1 var _parameters$options$f, _parameters$options2;10220 -1 var frameWaitTime = (_parameters$options$f = (_parameters$options2 = parameters.options) === null || _parameters$options2 === void 0 ? void 0 : _parameters$options2.frameWaitTime) !== null && _parameters$options$f !== void 0 ? _parameters$options$f : 6e4;10221 -1 var win = node.contentWindow;10222 -1 var timeout = setTimeout(function collectResultFramesTimeout() {10223 -1 reject(err('Axe in frame timed out', node));10224 -1 }, frameWaitTime);10225 -1 _respondable(win, 'axe.start', parameters, void 0, function(data) {10226 -1 clearTimeout(timeout);10227 -1 if (data instanceof Error === false) {10228 -1 resolve(data);-1 10267 spaceColor = to(mappedColor, space); 10229 10268 } else {10230 -1 reject(data);-1 10269 spaceColor = clipped; 10231 10270 }10232 -1 });10233 -1 }10234 -1 function err(message, node) {10235 -1 var selector;10236 -1 if (axe._tree) {10237 -1 selector = get_selector_default(node);10238 10271 }10239 -1 return new Error(message + ': ' + (selector || node));10240 -1 }10241 -1 var customSerializer = null;10242 -1 var nodeSerializer = {10243 -1 update: function update(serializer) {10244 -1 assert_default(_typeof(serializer) === 'object', 'serializer must be an object');10245 -1 customSerializer = serializer;10246 -1 },10247 -1 toSpec: function toSpec(node) {10248 -1 return nodeSerializer.dqElmToSpec(new dq_element_default(node));10249 -1 },10250 -1 dqElmToSpec: function dqElmToSpec(dqElm, runOptions) {10251 -1 var _customSerializer;10252 -1 if (dqElm instanceof dq_element_default === false) {10253 -1 return dqElm;10254 -1 }10255 -1 if (runOptions) {10256 -1 dqElm = cloneLimitedDqElement(dqElm, runOptions);10257 -1 }10258 -1 if (typeof ((_customSerializer = customSerializer) === null || _customSerializer === void 0 ? void 0 : _customSerializer.toSpec) === 'function') {10259 -1 return customSerializer.toSpec(dqElm);10260 -1 }10261 -1 return dqElm.toJSON();10262 -1 },10263 -1 mergeSpecs: function mergeSpecs(nodeSpec, parentFrameSpec) {10264 -1 var _customSerializer2;10265 -1 if (typeof ((_customSerializer2 = customSerializer) === null || _customSerializer2 === void 0 ? void 0 : _customSerializer2.mergeSpecs) === 'function') {10266 -1 return customSerializer.mergeSpecs(nodeSpec, parentFrameSpec);10267 -1 }10268 -1 return dq_element_default.mergeSpecs(nodeSpec, parentFrameSpec);10269 -1 },10270 -1 mapRawResults: function mapRawResults(rawResults) {10271 -1 return rawResults.map(function(rawResult) {10272 -1 return _extends({}, rawResult, {10273 -1 nodes: nodeSerializer.mapRawNodeResults(rawResult.nodes)10274 -1 });-1 10272 if (method === 'clip' || !inGamut(spaceColor, space, { -1 10273 epsilon: 0 -1 10274 })) { -1 10275 var _bounds = Object.values(space.coords).map(function(c4) { -1 10276 return c4.range || []; 10275 10277 });10276 -1 },10277 -1 mapRawNodeResults: function mapRawNodeResults(nodeResults) {10278 -1 return nodeResults === null || nodeResults === void 0 ? void 0 : nodeResults.map(function(_ref7) {10279 -1 var node = _ref7.node, nodeResult = _objectWithoutProperties(_ref7, _excluded);10280 -1 nodeResult.node = nodeSerializer.dqElmToSpec(node);10281 -1 for (var _i2 = 0, _arr = [ 'any', 'all', 'none' ]; _i2 < _arr.length; _i2++) {10282 -1 var type2 = _arr[_i2];10283 -1 nodeResult[type2] = nodeResult[type2].map(function(_ref8) {10284 -1 var relatedNodes = _ref8.relatedNodes, checkResult = _objectWithoutProperties(_ref8, _excluded2);10285 -1 checkResult.relatedNodes = relatedNodes.map(nodeSerializer.dqElmToSpec);10286 -1 return checkResult;10287 -1 });-1 10278 spaceColor.coords = spaceColor.coords.map(function(c4, i) { -1 10279 var _bounds$i = _slicedToArray(_bounds[i], 2), min = _bounds$i[0], max2 = _bounds$i[1]; -1 10280 if (min !== void 0) { -1 10281 c4 = Math.max(min, c4); 10288 10282 }10289 -1 return nodeResult;-1 10283 if (max2 !== void 0) { -1 10284 c4 = Math.min(c4, max2); -1 10285 } -1 10286 return c4; 10290 10287 }); 10291 10288 }10292 -1 };10293 -1 var node_serializer_default = nodeSerializer;10294 -1 function cloneLimitedDqElement(dqElm, runOptions) {10295 -1 var fromFrame2 = dqElm.fromFrame;10296 -1 var hasAncestry = runOptions.ancestry, hasXpath = runOptions.xpath;10297 -1 var hasSelectors = runOptions.selectors !== false || fromFrame2;10298 -1 dqElm = new dq_element_default(dqElm.element, runOptions, {10299 -1 source: dqElm.source,10300 -1 nodeIndexes: dqElm.nodeIndexes,10301 -1 selector: hasSelectors ? dqElm.selector : [ ':root' ],10302 -1 ancestry: hasAncestry ? dqElm.ancestry : [ ':root' ],10303 -1 xpath: hasXpath ? dqElm.xpath : '/'10304 -1 });10305 -1 dqElm.fromFrame = fromFrame2;10306 -1 return dqElm;10307 -1 }10308 -1 function getAllChecks(object) {10309 -1 var result = [];10310 -1 return result.concat(object.any || []).concat(object.all || []).concat(object.none || []);10311 -1 }10312 -1 var get_all_checks_default = getAllChecks;10313 -1 function findBy(array, key, value) {10314 -1 if (Array.isArray(array)) {10315 -1 return array.find(function(obj) {10316 -1 return obj !== null && _typeof(obj) === 'object' && Object.hasOwn(obj, key) && obj[key] === value;10317 -1 });-1 10289 if (space !== color.space) { -1 10290 spaceColor = to(spaceColor, color.space); 10318 10291 } -1 10292 color.coords = spaceColor.coords; -1 10293 return color; 10319 10294 }10320 -1 var find_by_default = findBy;10321 -1 function pushFrame(resultSet, options, frameSpec) {10322 -1 resultSet.forEach(function(res) {10323 -1 res.node = node_serializer_default.mergeSpecs(res.node, frameSpec);10324 -1 var checks = get_all_checks_default(res);10325 -1 checks.forEach(function(check) {10326 -1 check.relatedNodes = check.relatedNodes.map(function(node) {10327 -1 return node_serializer_default.mergeSpecs(node, frameSpec);10328 -1 });10329 -1 });10330 -1 });10331 -1 }10332 -1 function spliceNodes(target, to2) {10333 -1 var firstFromFrame = to2[0].node;10334 -1 var node;10335 -1 for (var _i3 = 0; _i3 < target.length; _i3++) {10336 -1 node = target[_i3].node;10337 -1 var resultSort = nodeIndexSort(node.nodeIndexes, firstFromFrame.nodeIndexes);10338 -1 if (resultSort > 0 || resultSort === 0 && firstFromFrame.selector.length < node.selector.length) {10339 -1 target.splice.apply(target, [ _i3, 0 ].concat(_toConsumableArray(to2)));10340 -1 return;10341 -1 }-1 10295 toGamut.returns = 'color'; -1 10296 function to(color, space) { -1 10297 var _ref10 = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}, inGamut2 = _ref10.inGamut; -1 10298 color = getColor(color); -1 10299 space = ColorSpace.get(space); -1 10300 var coords = space.from(color); -1 10301 var ret = { -1 10302 space: space, -1 10303 coords: coords, -1 10304 alpha: color.alpha -1 10305 }; -1 10306 if (inGamut2) { -1 10307 ret = toGamut(ret); 10342 10308 }10343 -1 target.push.apply(target, _toConsumableArray(to2));-1 10309 return ret; 10344 10310 }10345 -1 function normalizeResult(result) {10346 -1 if (!result || !result.results) {10347 -1 return null;10348 -1 }10349 -1 if (!Array.isArray(result.results)) {10350 -1 return [ result.results ];10351 -1 }10352 -1 if (!result.results.length) {10353 -1 return null;-1 10311 to.returns = 'color'; -1 10312 function serialize(color) { -1 10313 var _ref12, _color$space$getForma; -1 10314 var _ref11 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; -1 10315 var _ref11$precision = _ref11.precision, precision = _ref11$precision === void 0 ? defaults.precision : _ref11$precision, _ref11$format = _ref11.format, format = _ref11$format === void 0 ? 'default' : _ref11$format, _ref11$inGamut = _ref11.inGamut, inGamut$1 = _ref11$inGamut === void 0 ? true : _ref11$inGamut, customOptions = _objectWithoutProperties(_ref11, _excluded); -1 10316 var ret; -1 10317 color = getColor(color); -1 10318 var formatId = format; -1 10319 format = (_ref12 = (_color$space$getForma = color.space.getFormat(format)) !== null && _color$space$getForma !== void 0 ? _color$space$getForma : color.space.getFormat('default')) !== null && _ref12 !== void 0 ? _ref12 : ColorSpace.DEFAULT_FORMAT; -1 10320 inGamut$1 || (inGamut$1 = format.toGamut); -1 10321 var coords = color.coords; -1 10322 coords = coords.map(function(c4) { -1 10323 return c4 ? c4 : 0; -1 10324 }); -1 10325 if (inGamut$1 && !inGamut(color)) { -1 10326 coords = toGamut(clone(color), inGamut$1 === true ? void 0 : inGamut$1).coords; 10354 10327 }10355 -1 return result.results;10356 -1 }10357 -1 function mergeResults(frameResults, options) {10358 -1 var mergedResult = [];10359 -1 frameResults.forEach(function(frameResult) {10360 -1 var results = normalizeResult(frameResult);10361 -1 if (!results || !results.length) {10362 -1 return;-1 10328 if (format.type === 'custom') { -1 10329 customOptions.precision = precision; -1 10330 if (format.serialize) { -1 10331 ret = format.serialize(coords, color.alpha, customOptions); -1 10332 } else { -1 10333 throw new TypeError('format '.concat(formatId, ' can only be used to parse colors, not for serialization')); 10363 10334 }10364 -1 var frameSpec = getFrameSpec(frameResult);10365 -1 results.forEach(function(ruleResult) {10366 -1 if (ruleResult.nodes && frameSpec) {10367 -1 pushFrame(ruleResult.nodes, options, frameSpec);10368 -1 }10369 -1 var res = find_by_default(mergedResult, 'id', ruleResult.id);10370 -1 if (!res) {10371 -1 mergedResult.push(ruleResult);10372 -1 } else {10373 -1 if (ruleResult.nodes.length) {10374 -1 spliceNodes(res.nodes, ruleResult.nodes);10375 -1 }-1 10335 } else { -1 10336 var name = format.name || 'color'; -1 10337 if (format.serializeCoords) { -1 10338 coords = format.serializeCoords(coords, precision); -1 10339 } else { -1 10340 if (precision !== null) { -1 10341 coords = coords.map(function(c4) { -1 10342 return toPrecision(c4, precision); -1 10343 }); 10376 10344 }10377 -1 });10378 -1 });10379 -1 mergedResult.forEach(function(result) {10380 -1 if (result.nodes) {10381 -1 result.nodes.sort(function(nodeA, nodeB) {10382 -1 return nodeIndexSort(nodeA.node.nodeIndexes, nodeB.node.nodeIndexes);10383 -1 });10384 -1 }10385 -1 });10386 -1 return mergedResult;10387 -1 }10388 -1 function nodeIndexSort() {10389 -1 var nodeIndexesA = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];10390 -1 var nodeIndexesB = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];10391 -1 var length = Math.max(nodeIndexesA === null || nodeIndexesA === void 0 ? void 0 : nodeIndexesA.length, nodeIndexesB === null || nodeIndexesB === void 0 ? void 0 : nodeIndexesB.length);10392 -1 for (var _i4 = 0; _i4 < length; _i4++) {10393 -1 var indexA = nodeIndexesA === null || nodeIndexesA === void 0 ? void 0 : nodeIndexesA[_i4];10394 -1 var indexB = nodeIndexesB === null || nodeIndexesB === void 0 ? void 0 : nodeIndexesB[_i4];10395 -1 if (typeof indexA !== 'number' || isNaN(indexA)) {10396 -1 return _i4 === 0 ? 1 : -1;10397 10345 }10398 -1 if (typeof indexB !== 'number' || isNaN(indexB)) {10399 -1 return _i4 === 0 ? -1 : 1;-1 10346 var args = _toConsumableArray(coords); -1 10347 if (name === 'color') { -1 10348 var _format$ids; -1 10349 var cssId = format.id || ((_format$ids = format.ids) === null || _format$ids === void 0 ? void 0 : _format$ids[0]) || color.space.id; -1 10350 args.unshift(cssId); 10400 10351 }10401 -1 if (indexA !== indexB) {10402 -1 return indexA - indexB;-1 10352 var alpha = color.alpha; -1 10353 if (precision !== null) { -1 10354 alpha = toPrecision(alpha, precision); 10403 10355 } -1 10356 var strAlpha = color.alpha < 1 && !format.noAlpha ? ''.concat(format.commas ? ',' : ' /', ' ').concat(alpha) : ''; -1 10357 ret = ''.concat(name, '(').concat(args.join(format.commas ? ', ' : ' ')).concat(strAlpha, ')'); 10404 10358 }10405 -1 return 0;-1 10359 return ret; 10406 10360 }10407 -1 var merge_results_default = mergeResults;10408 -1 function getFrameSpec(frameResult) {10409 -1 if (frameResult.frameElement) {10410 -1 return node_serializer_default.toSpec(frameResult.frameElement);10411 -1 } else if (frameResult.frameSpec) {10412 -1 return frameResult.frameSpec;-1 10361 var toXYZ_M$5 = [ [ .6369580483012914, .14461690358620832, .1688809751641721 ], [ .2627002120112671, .6779980715188708, .05930171646986196 ], [ 0, .028072693049087428, 1.060985057710791 ] ]; -1 10362 var fromXYZ_M$5 = [ [ 1.716651187971268, -.355670783776392, -.25336628137366 ], [ -.666684351832489, 1.616481236634939, .0157685458139111 ], [ .017639857445311, -.042770613257809, .942103121235474 ] ]; -1 10363 var REC2020Linear = new RGBColorSpace({ -1 10364 id: 'rec2020-linear', -1 10365 name: 'Linear REC.2020', -1 10366 white: 'D65', -1 10367 toXYZ_M: toXYZ_M$5, -1 10368 fromXYZ_M: fromXYZ_M$5, -1 10369 formats: { -1 10370 color: {} 10413 10371 }10414 -1 return null;10415 -1 }10416 -1 function _collectResultsFromFrames(parentContent, options, command, parameter, resolve, reject) {10417 -1 options = _extends({}, options, {10418 -1 elementRef: false10419 -1 });10420 -1 var q = queue_default();10421 -1 var frames = parentContent.frames;10422 -1 frames.forEach(function(_ref9) {10423 -1 var frameElement = _ref9.node, context = _objectWithoutProperties(_ref9, _excluded3);10424 -1 q.defer(function(res, rej) {10425 -1 var params = {10426 -1 options: options,10427 -1 command: command,10428 -1 parameter: parameter,10429 -1 context: context10430 -1 };10431 -1 function callback(results) {10432 -1 if (!results) {10433 -1 return res(null);10434 -1 }10435 -1 return res({10436 -1 results: results,10437 -1 frameElement: frameElement10438 -1 });-1 10372 }); -1 10373 var \u03b1 = 1.09929682680944; -1 10374 var \u03b2 = .018053968510807; -1 10375 var REC2020 = new RGBColorSpace({ -1 10376 id: 'rec2020', -1 10377 name: 'REC.2020', -1 10378 base: REC2020Linear, -1 10379 toBase: function toBase(RGB) { -1 10380 return RGB.map(function(val) { -1 10381 if (val < \u03b2 * 4.5) { -1 10382 return val / 4.5; 10439 10383 }10440 -1 _sendCommandToFrame(frameElement, params, callback, rej);-1 10384 return Math.pow((val + \u03b1 - 1) / \u03b1, 1 / .45); 10441 10385 });10442 -1 });10443 -1 q.then(function(data) {10444 -1 resolve(merge_results_default(data, options));10445 -1 })['catch'](reject);10446 -1 }10447 -1 function _contains(vNode, otherVNode) {10448 -1 if (!vNode.shadowId && !otherVNode.shadowId && vNode.actualNode && typeof vNode.actualNode.contains === 'function') {10449 -1 return vNode.actualNode.contains(otherVNode.actualNode);10450 -1 }10451 -1 do {10452 -1 if (vNode === otherVNode) {10453 -1 return true;10454 -1 } else if (otherVNode.nodeIndex < vNode.nodeIndex) {10455 -1 return false;10456 -1 }10457 -1 otherVNode = otherVNode.parent;10458 -1 } while (otherVNode);10459 -1 return false;10460 -1 }10461 -1 function deepMerge() {10462 -1 var target = {};10463 -1 for (var _len = arguments.length, sources = new Array(_len), _key = 0; _key < _len; _key++) {10464 -1 sources[_key] = arguments[_key];10465 -1 }10466 -1 sources.forEach(function(source) {10467 -1 if (!source || _typeof(source) !== 'object' || Array.isArray(source)) {10468 -1 return;10469 -1 }10470 -1 for (var _i5 = 0, _Object$keys = Object.keys(source); _i5 < _Object$keys.length; _i5++) {10471 -1 var key = _Object$keys[_i5];10472 -1 if (!target.hasOwnProperty(key) || _typeof(source[key]) !== 'object' || Array.isArray(target[key])) {10473 -1 target[key] = source[key];10474 -1 } else {10475 -1 target[key] = deepMerge(target[key], source[key]);10476 -1 }10477 -1 }10478 -1 });10479 -1 return target;10480 -1 }10481 -1 var deep_merge_default = deepMerge;10482 -1 function extendMetaData(to2, from) {10483 -1 Object.assign(to2, from);10484 -1 Object.keys(from).filter(function(prop) {10485 -1 return typeof from[prop] === 'function';10486 -1 }).forEach(function(prop) {10487 -1 to2[prop] = null;10488 -1 try {10489 -1 to2[prop] = from[prop](to2);10490 -1 } catch (_unused2) {}10491 -1 });10492 -1 }10493 -1 var extend_meta_data_default = extendMetaData;10494 -1 var possibleShadowRoots = [ 'article', 'aside', 'blockquote', 'body', 'div', 'footer', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'header', 'main', 'nav', 'p', 'section', 'span' ];10495 -1 function isShadowRoot(node) {10496 -1 if (node.shadowRoot) {10497 -1 var nodeName2 = node.nodeName.toLowerCase();10498 -1 if (possibleShadowRoots.includes(nodeName2) || /^[a-z][a-z0-9_.-]*-[a-z0-9_.-]*$/.test(nodeName2)) {10499 -1 return true;10500 -1 }10501 -1 }10502 -1 return false;10503 -1 }10504 -1 var is_shadow_root_default = isShadowRoot;10505 -1 var dom_exports = {};10506 -1 __export(dom_exports, {10507 -1 createGrid: function createGrid() {10508 -1 return _createGrid;10509 -1 },10510 -1 findElmsInContext: function findElmsInContext() {10511 -1 return find_elms_in_context_default;10512 -1 },10513 -1 findNearbyElms: function findNearbyElms() {10514 -1 return _findNearbyElms;10515 -1 },10516 -1 findUp: function findUp() {10517 -1 return find_up_default;10518 -1 },10519 -1 findUpVirtual: function findUpVirtual() {10520 -1 return find_up_virtual_default;10521 -1 },10522 -1 focusDisabled: function focusDisabled() {10523 -1 return focus_disabled_default;10524 -1 },10525 -1 getComposedParent: function getComposedParent() {10526 -1 return get_composed_parent_default;10527 -1 },10528 -1 getElementByReference: function getElementByReference() {10529 -1 return get_element_by_reference_default;10530 -1 },10531 -1 getElementCoordinates: function getElementCoordinates() {10532 -1 return get_element_coordinates_default;10533 -1 },10534 -1 getElementStack: function getElementStack() {10535 -1 return get_element_stack_default;10536 -1 },10537 -1 getModalDialog: function getModalDialog() {10538 -1 return get_modal_dialog_default;10539 -1 },10540 -1 getOverflowHiddenAncestors: function getOverflowHiddenAncestors() {10541 -1 return get_overflow_hidden_ancestors_default;10542 -1 },10543 -1 getRootNode: function getRootNode() {10544 -1 return get_root_node_default2;10545 -1 },10546 -1 getScrollOffset: function getScrollOffset() {10547 -1 return get_scroll_offset_default;10548 -1 },10549 -1 getTabbableElements: function getTabbableElements() {10550 -1 return get_tabbable_elements_default;10551 -1 },10552 -1 getTargetRects: function getTargetRects() {10553 -1 return get_target_rects_default;10554 -1 },10555 -1 getTargetSize: function getTargetSize() {10556 -1 return get_target_size_default;10557 10386 },10558 -1 getTextElementStack: function getTextElementStack() {10559 -1 return get_text_element_stack_default;10560 -1 },10561 -1 getViewportSize: function getViewportSize() {10562 -1 return get_viewport_size_default;10563 -1 },10564 -1 getVisibleChildTextRects: function getVisibleChildTextRects() {10565 -1 return get_visible_child_text_rects_default;10566 -1 },10567 -1 hasContent: function hasContent() {10568 -1 return has_content_default;10569 -1 },10570 -1 hasContentVirtual: function hasContentVirtual() {10571 -1 return has_content_virtual_default;10572 -1 },10573 -1 hasLangText: function hasLangText() {10574 -1 return _hasLangText;10575 -1 },10576 -1 idrefs: function idrefs() {10577 -1 return idrefs_default;10578 -1 },10579 -1 insertedIntoFocusOrder: function insertedIntoFocusOrder() {10580 -1 return inserted_into_focus_order_default;10581 -1 },10582 -1 isCurrentPageLink: function isCurrentPageLink() {10583 -1 return _isCurrentPageLink;10584 -1 },10585 -1 isFocusable: function isFocusable() {10586 -1 return _isFocusable;10587 -1 },10588 -1 isHTML5: function isHTML5() {10589 -1 return is_html5_default;10590 -1 },10591 -1 isHiddenForEveryone: function isHiddenForEveryone() {10592 -1 return _isHiddenForEveryone;10593 -1 },10594 -1 isHiddenWithCSS: function isHiddenWithCSS() {10595 -1 return is_hidden_with_css_default;10596 -1 },10597 -1 isInTabOrder: function isInTabOrder() {10598 -1 return _isInTabOrder;10599 -1 },10600 -1 isInTextBlock: function isInTextBlock() {10601 -1 return is_in_text_block_default;10602 -1 },10603 -1 isInert: function isInert() {10604 -1 return _isInert;10605 -1 },10606 -1 isModalOpen: function isModalOpen() {10607 -1 return is_modal_open_default;10608 -1 },10609 -1 isMultiline: function isMultiline() {10610 -1 return _isMultiline;10611 -1 },10612 -1 isNativelyFocusable: function isNativelyFocusable() {10613 -1 return is_natively_focusable_default;-1 10387 fromBase: function fromBase(RGB) { -1 10388 return RGB.map(function(val) { -1 10389 if (val >= \u03b2) { -1 10390 return \u03b1 * Math.pow(val, .45) - (\u03b1 - 1); -1 10391 } -1 10392 return 4.5 * val; -1 10393 }); 10614 10394 },10615 -1 isNode: function isNode() {10616 -1 return is_node_default;10617 -1 },10618 -1 isOffscreen: function isOffscreen() {10619 -1 return is_offscreen_default;10620 -1 },10621 -1 isOpaque: function isOpaque() {10622 -1 return is_opaque_default;10623 -1 },10624 -1 isSkipLink: function isSkipLink() {10625 -1 return _isSkipLink;10626 -1 },10627 -1 isVisible: function isVisible() {10628 -1 return is_visible_default;10629 -1 },10630 -1 isVisibleOnScreen: function isVisibleOnScreen() {10631 -1 return _isVisibleOnScreen;10632 -1 },10633 -1 isVisibleToScreenReaders: function isVisibleToScreenReaders() {10634 -1 return _isVisibleToScreenReaders;10635 -1 },10636 -1 isVisualContent: function isVisualContent() {10637 -1 return is_visual_content_default;10638 -1 },10639 -1 reduceToElementsBelowFloating: function reduceToElementsBelowFloating() {10640 -1 return reduce_to_elements_below_floating_default;10641 -1 },10642 -1 shadowElementsFromPoint: function shadowElementsFromPoint() {10643 -1 return shadow_elements_from_point_default;10644 -1 },10645 -1 urlPropsFromAttribute: function urlPropsFromAttribute() {10646 -1 return url_props_from_attribute_default;10647 -1 },10648 -1 visuallyContains: function visuallyContains() {10649 -1 return _visuallyContains;10650 -1 },10651 -1 visuallyOverlaps: function visuallyOverlaps() {10652 -1 return visually_overlaps_default;10653 -1 },10654 -1 visuallySort: function visuallySort() {10655 -1 return _visuallySort;-1 10395 formats: { -1 10396 color: {} 10656 10397 } 10657 10398 });10658 -1 function getRootNode(node) {10659 -1 var doc = node.getRootNode && node.getRootNode() || document;10660 -1 if (doc === node) {10661 -1 doc = document;10662 -1 }10663 -1 return doc;10664 -1 }10665 -1 var get_root_node_default = getRootNode;10666 -1 var get_root_node_default2 = get_root_node_default;10667 -1 function findElmsInContext(_ref10) {10668 -1 var context = _ref10.context, value = _ref10.value, attr = _ref10.attr, _ref10$elm = _ref10.elm, elm = _ref10$elm === void 0 ? '' : _ref10$elm;10669 -1 var root;10670 -1 var escapedValue = escape_selector_default(value);10671 -1 if (context.nodeType === 9 || context.nodeType === 11) {10672 -1 root = context;10673 -1 } else {10674 -1 root = get_root_node_default2(context);-1 10399 var toXYZ_M$4 = [ [ .4865709486482162, .26566769316909306, .1982172852343625 ], [ .2289745640697488, .6917385218365064, .079286914093745 ], [ 0, .04511338185890264, 1.043944368900976 ] ]; -1 10400 var fromXYZ_M$4 = [ [ 2.493496911941425, -.9313836179191239, -.40271078445071684 ], [ -.8294889695615747, 1.7626640603183463, .023624685841943577 ], [ .03584583024378447, -.07617238926804182, .9568845240076872 ] ]; -1 10401 var P3Linear = new RGBColorSpace({ -1 10402 id: 'p3-linear', -1 10403 name: 'Linear P3', -1 10404 white: 'D65', -1 10405 toXYZ_M: toXYZ_M$4, -1 10406 fromXYZ_M: fromXYZ_M$4 -1 10407 }); -1 10408 var toXYZ_M$3 = [ [ .41239079926595934, .357584339383878, .1804807884018343 ], [ .21263900587151027, .715168678767756, .07219231536073371 ], [ .01933081871559182, .11919477979462598, .9505321522496607 ] ]; -1 10409 var fromXYZ_M$3 = [ [ 3.2409699419045226, -1.537383177570094, -.4986107602930034 ], [ -.9692436362808796, 1.8759675015077202, .04155505740717559 ], [ .05563007969699366, -.20397695888897652, 1.0569715142428786 ] ]; -1 10410 var sRGBLinear = new RGBColorSpace({ -1 10411 id: 'srgb-linear', -1 10412 name: 'Linear sRGB', -1 10413 white: 'D65', -1 10414 toXYZ_M: toXYZ_M$3, -1 10415 fromXYZ_M: fromXYZ_M$3, -1 10416 formats: { -1 10417 color: {} 10675 10418 }10676 -1 return Array.from(root.querySelectorAll(elm + '[' + attr + '=' + escapedValue + ']'));10677 -1 }10678 -1 var find_elms_in_context_default = findElmsInContext;10679 -1 function findUpVirtual(element, target) {10680 -1 var parent;10681 -1 parent = element.actualNode;10682 -1 if (!element.shadowId && typeof element.actualNode.closest === 'function') {10683 -1 var match = element.actualNode.closest(target);10684 -1 if (match) {10685 -1 return match;-1 10419 }); -1 10420 var KEYWORDS = { -1 10421 aliceblue: [ 240 / 255, 248 / 255, 1 ], -1 10422 antiquewhite: [ 250 / 255, 235 / 255, 215 / 255 ], -1 10423 aqua: [ 0, 1, 1 ], -1 10424 aquamarine: [ 127 / 255, 1, 212 / 255 ], -1 10425 azure: [ 240 / 255, 1, 1 ], -1 10426 beige: [ 245 / 255, 245 / 255, 220 / 255 ], -1 10427 bisque: [ 1, 228 / 255, 196 / 255 ], -1 10428 black: [ 0, 0, 0 ], -1 10429 blanchedalmond: [ 1, 235 / 255, 205 / 255 ], -1 10430 blue: [ 0, 0, 1 ], -1 10431 blueviolet: [ 138 / 255, 43 / 255, 226 / 255 ], -1 10432 brown: [ 165 / 255, 42 / 255, 42 / 255 ], -1 10433 burlywood: [ 222 / 255, 184 / 255, 135 / 255 ], -1 10434 cadetblue: [ 95 / 255, 158 / 255, 160 / 255 ], -1 10435 chartreuse: [ 127 / 255, 1, 0 ], -1 10436 chocolate: [ 210 / 255, 105 / 255, 30 / 255 ], -1 10437 coral: [ 1, 127 / 255, 80 / 255 ], -1 10438 cornflowerblue: [ 100 / 255, 149 / 255, 237 / 255 ], -1 10439 cornsilk: [ 1, 248 / 255, 220 / 255 ], -1 10440 crimson: [ 220 / 255, 20 / 255, 60 / 255 ], -1 10441 cyan: [ 0, 1, 1 ], -1 10442 darkblue: [ 0, 0, 139 / 255 ], -1 10443 darkcyan: [ 0, 139 / 255, 139 / 255 ], -1 10444 darkgoldenrod: [ 184 / 255, 134 / 255, 11 / 255 ], -1 10445 darkgray: [ 169 / 255, 169 / 255, 169 / 255 ], -1 10446 darkgreen: [ 0, 100 / 255, 0 ], -1 10447 darkgrey: [ 169 / 255, 169 / 255, 169 / 255 ], -1 10448 darkkhaki: [ 189 / 255, 183 / 255, 107 / 255 ], -1 10449 darkmagenta: [ 139 / 255, 0, 139 / 255 ], -1 10450 darkolivegreen: [ 85 / 255, 107 / 255, 47 / 255 ], -1 10451 darkorange: [ 1, 140 / 255, 0 ], -1 10452 darkorchid: [ 153 / 255, 50 / 255, 204 / 255 ], -1 10453 darkred: [ 139 / 255, 0, 0 ], -1 10454 darksalmon: [ 233 / 255, 150 / 255, 122 / 255 ], -1 10455 darkseagreen: [ 143 / 255, 188 / 255, 143 / 255 ], -1 10456 darkslateblue: [ 72 / 255, 61 / 255, 139 / 255 ], -1 10457 darkslategray: [ 47 / 255, 79 / 255, 79 / 255 ], -1 10458 darkslategrey: [ 47 / 255, 79 / 255, 79 / 255 ], -1 10459 darkturquoise: [ 0, 206 / 255, 209 / 255 ], -1 10460 darkviolet: [ 148 / 255, 0, 211 / 255 ], -1 10461 deeppink: [ 1, 20 / 255, 147 / 255 ], -1 10462 deepskyblue: [ 0, 191 / 255, 1 ], -1 10463 dimgray: [ 105 / 255, 105 / 255, 105 / 255 ], -1 10464 dimgrey: [ 105 / 255, 105 / 255, 105 / 255 ], -1 10465 dodgerblue: [ 30 / 255, 144 / 255, 1 ], -1 10466 firebrick: [ 178 / 255, 34 / 255, 34 / 255 ], -1 10467 floralwhite: [ 1, 250 / 255, 240 / 255 ], -1 10468 forestgreen: [ 34 / 255, 139 / 255, 34 / 255 ], -1 10469 fuchsia: [ 1, 0, 1 ], -1 10470 gainsboro: [ 220 / 255, 220 / 255, 220 / 255 ], -1 10471 ghostwhite: [ 248 / 255, 248 / 255, 1 ], -1 10472 gold: [ 1, 215 / 255, 0 ], -1 10473 goldenrod: [ 218 / 255, 165 / 255, 32 / 255 ], -1 10474 gray: [ 128 / 255, 128 / 255, 128 / 255 ], -1 10475 green: [ 0, 128 / 255, 0 ], -1 10476 greenyellow: [ 173 / 255, 1, 47 / 255 ], -1 10477 grey: [ 128 / 255, 128 / 255, 128 / 255 ], -1 10478 honeydew: [ 240 / 255, 1, 240 / 255 ], -1 10479 hotpink: [ 1, 105 / 255, 180 / 255 ], -1 10480 indianred: [ 205 / 255, 92 / 255, 92 / 255 ], -1 10481 indigo: [ 75 / 255, 0, 130 / 255 ], -1 10482 ivory: [ 1, 1, 240 / 255 ], -1 10483 khaki: [ 240 / 255, 230 / 255, 140 / 255 ], -1 10484 lavender: [ 230 / 255, 230 / 255, 250 / 255 ], -1 10485 lavenderblush: [ 1, 240 / 255, 245 / 255 ], -1 10486 lawngreen: [ 124 / 255, 252 / 255, 0 ], -1 10487 lemonchiffon: [ 1, 250 / 255, 205 / 255 ], -1 10488 lightblue: [ 173 / 255, 216 / 255, 230 / 255 ], -1 10489 lightcoral: [ 240 / 255, 128 / 255, 128 / 255 ], -1 10490 lightcyan: [ 224 / 255, 1, 1 ], -1 10491 lightgoldenrodyellow: [ 250 / 255, 250 / 255, 210 / 255 ], -1 10492 lightgray: [ 211 / 255, 211 / 255, 211 / 255 ], -1 10493 lightgreen: [ 144 / 255, 238 / 255, 144 / 255 ], -1 10494 lightgrey: [ 211 / 255, 211 / 255, 211 / 255 ], -1 10495 lightpink: [ 1, 182 / 255, 193 / 255 ], -1 10496 lightsalmon: [ 1, 160 / 255, 122 / 255 ], -1 10497 lightseagreen: [ 32 / 255, 178 / 255, 170 / 255 ], -1 10498 lightskyblue: [ 135 / 255, 206 / 255, 250 / 255 ], -1 10499 lightslategray: [ 119 / 255, 136 / 255, 153 / 255 ], -1 10500 lightslategrey: [ 119 / 255, 136 / 255, 153 / 255 ], -1 10501 lightsteelblue: [ 176 / 255, 196 / 255, 222 / 255 ], -1 10502 lightyellow: [ 1, 1, 224 / 255 ], -1 10503 lime: [ 0, 1, 0 ], -1 10504 limegreen: [ 50 / 255, 205 / 255, 50 / 255 ], -1 10505 linen: [ 250 / 255, 240 / 255, 230 / 255 ], -1 10506 magenta: [ 1, 0, 1 ], -1 10507 maroon: [ 128 / 255, 0, 0 ], -1 10508 mediumaquamarine: [ 102 / 255, 205 / 255, 170 / 255 ], -1 10509 mediumblue: [ 0, 0, 205 / 255 ], -1 10510 mediumorchid: [ 186 / 255, 85 / 255, 211 / 255 ], -1 10511 mediumpurple: [ 147 / 255, 112 / 255, 219 / 255 ], -1 10512 mediumseagreen: [ 60 / 255, 179 / 255, 113 / 255 ], -1 10513 mediumslateblue: [ 123 / 255, 104 / 255, 238 / 255 ], -1 10514 mediumspringgreen: [ 0, 250 / 255, 154 / 255 ], -1 10515 mediumturquoise: [ 72 / 255, 209 / 255, 204 / 255 ], -1 10516 mediumvioletred: [ 199 / 255, 21 / 255, 133 / 255 ], -1 10517 midnightblue: [ 25 / 255, 25 / 255, 112 / 255 ], -1 10518 mintcream: [ 245 / 255, 1, 250 / 255 ], -1 10519 mistyrose: [ 1, 228 / 255, 225 / 255 ], -1 10520 moccasin: [ 1, 228 / 255, 181 / 255 ], -1 10521 navajowhite: [ 1, 222 / 255, 173 / 255 ], -1 10522 navy: [ 0, 0, 128 / 255 ], -1 10523 oldlace: [ 253 / 255, 245 / 255, 230 / 255 ], -1 10524 olive: [ 128 / 255, 128 / 255, 0 ], -1 10525 olivedrab: [ 107 / 255, 142 / 255, 35 / 255 ], -1 10526 orange: [ 1, 165 / 255, 0 ], -1 10527 orangered: [ 1, 69 / 255, 0 ], -1 10528 orchid: [ 218 / 255, 112 / 255, 214 / 255 ], -1 10529 palegoldenrod: [ 238 / 255, 232 / 255, 170 / 255 ], -1 10530 palegreen: [ 152 / 255, 251 / 255, 152 / 255 ], -1 10531 paleturquoise: [ 175 / 255, 238 / 255, 238 / 255 ], -1 10532 palevioletred: [ 219 / 255, 112 / 255, 147 / 255 ], -1 10533 papayawhip: [ 1, 239 / 255, 213 / 255 ], -1 10534 peachpuff: [ 1, 218 / 255, 185 / 255 ], -1 10535 peru: [ 205 / 255, 133 / 255, 63 / 255 ], -1 10536 pink: [ 1, 192 / 255, 203 / 255 ], -1 10537 plum: [ 221 / 255, 160 / 255, 221 / 255 ], -1 10538 powderblue: [ 176 / 255, 224 / 255, 230 / 255 ], -1 10539 purple: [ 128 / 255, 0, 128 / 255 ], -1 10540 rebeccapurple: [ 102 / 255, 51 / 255, 153 / 255 ], -1 10541 red: [ 1, 0, 0 ], -1 10542 rosybrown: [ 188 / 255, 143 / 255, 143 / 255 ], -1 10543 royalblue: [ 65 / 255, 105 / 255, 225 / 255 ], -1 10544 saddlebrown: [ 139 / 255, 69 / 255, 19 / 255 ], -1 10545 salmon: [ 250 / 255, 128 / 255, 114 / 255 ], -1 10546 sandybrown: [ 244 / 255, 164 / 255, 96 / 255 ], -1 10547 seagreen: [ 46 / 255, 139 / 255, 87 / 255 ], -1 10548 seashell: [ 1, 245 / 255, 238 / 255 ], -1 10549 sienna: [ 160 / 255, 82 / 255, 45 / 255 ], -1 10550 silver: [ 192 / 255, 192 / 255, 192 / 255 ], -1 10551 skyblue: [ 135 / 255, 206 / 255, 235 / 255 ], -1 10552 slateblue: [ 106 / 255, 90 / 255, 205 / 255 ], -1 10553 slategray: [ 112 / 255, 128 / 255, 144 / 255 ], -1 10554 slategrey: [ 112 / 255, 128 / 255, 144 / 255 ], -1 10555 snow: [ 1, 250 / 255, 250 / 255 ], -1 10556 springgreen: [ 0, 1, 127 / 255 ], -1 10557 steelblue: [ 70 / 255, 130 / 255, 180 / 255 ], -1 10558 tan: [ 210 / 255, 180 / 255, 140 / 255 ], -1 10559 teal: [ 0, 128 / 255, 128 / 255 ], -1 10560 thistle: [ 216 / 255, 191 / 255, 216 / 255 ], -1 10561 tomato: [ 1, 99 / 255, 71 / 255 ], -1 10562 turquoise: [ 64 / 255, 224 / 255, 208 / 255 ], -1 10563 violet: [ 238 / 255, 130 / 255, 238 / 255 ], -1 10564 wheat: [ 245 / 255, 222 / 255, 179 / 255 ], -1 10565 white: [ 1, 1, 1 ], -1 10566 whitesmoke: [ 245 / 255, 245 / 255, 245 / 255 ], -1 10567 yellow: [ 1, 1, 0 ], -1 10568 yellowgreen: [ 154 / 255, 205 / 255, 50 / 255 ] -1 10569 }; -1 10570 var coordGrammar = Array(3).fill('<percentage> | <number>[0, 255]'); -1 10571 var coordGrammarNumber = Array(3).fill('<number>[0, 255]'); -1 10572 var sRGB = new RGBColorSpace({ -1 10573 id: 'srgb', -1 10574 name: 'sRGB', -1 10575 base: sRGBLinear, -1 10576 fromBase: function fromBase(rgb) { -1 10577 return rgb.map(function(val) { -1 10578 var sign = val < 0 ? -1 : 1; -1 10579 var abs = val * sign; -1 10580 if (abs > .0031308) { -1 10581 return sign * (1.055 * Math.pow(abs, 1 / 2.4) - .055); -1 10582 } -1 10583 return 12.92 * val; -1 10584 }); -1 10585 }, -1 10586 toBase: function toBase(rgb) { -1 10587 return rgb.map(function(val) { -1 10588 var sign = val < 0 ? -1 : 1; -1 10589 var abs = val * sign; -1 10590 if (abs < .04045) { -1 10591 return val / 12.92; -1 10592 } -1 10593 return sign * Math.pow((abs + .055) / 1.055, 2.4); -1 10594 }); -1 10595 }, -1 10596 formats: { -1 10597 rgb: { -1 10598 coords: coordGrammar -1 10599 }, -1 10600 rgb_number: { -1 10601 name: 'rgb', -1 10602 commas: true, -1 10603 coords: coordGrammarNumber, -1 10604 noAlpha: true -1 10605 }, -1 10606 color: {}, -1 10607 rgba: { -1 10608 coords: coordGrammar, -1 10609 commas: true, -1 10610 lastAlpha: true -1 10611 }, -1 10612 rgba_number: { -1 10613 name: 'rgba', -1 10614 commas: true, -1 10615 coords: coordGrammarNumber -1 10616 }, -1 10617 hex: { -1 10618 type: 'custom', -1 10619 toGamut: true, -1 10620 test: function test(str) { -1 10621 return /^#([a-f0-9]{3,4}){1,2}$/i.test(str); -1 10622 }, -1 10623 parse: function parse(str) { -1 10624 if (str.length <= 5) { -1 10625 str = str.replace(/[a-f0-9]/gi, '$&$&'); -1 10626 } -1 10627 var rgba = []; -1 10628 str.replace(/[a-f0-9]{2}/gi, function(component) { -1 10629 rgba.push(parseInt(component, 16) / 255); -1 10630 }); -1 10631 return { -1 10632 spaceId: 'srgb', -1 10633 coords: rgba.slice(0, 3), -1 10634 alpha: rgba.slice(3)[0] -1 10635 }; -1 10636 }, -1 10637 serialize: function serialize(coords, alpha) { -1 10638 var _ref13 = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}, _ref13$collapse = _ref13.collapse, collapse = _ref13$collapse === void 0 ? true : _ref13$collapse; -1 10639 if (alpha < 1) { -1 10640 coords.push(alpha); -1 10641 } -1 10642 coords = coords.map(function(c4) { -1 10643 return Math.round(c4 * 255); -1 10644 }); -1 10645 var collapsible = collapse && coords.every(function(c4) { -1 10646 return c4 % 17 === 0; -1 10647 }); -1 10648 var hex = coords.map(function(c4) { -1 10649 if (collapsible) { -1 10650 return (c4 / 17).toString(16); -1 10651 } -1 10652 return c4.toString(16).padStart(2, '0'); -1 10653 }).join(''); -1 10654 return '#' + hex; -1 10655 } -1 10656 }, -1 10657 keyword: { -1 10658 type: 'custom', -1 10659 test: function test(str) { -1 10660 return /^[a-z]+$/i.test(str); -1 10661 }, -1 10662 parse: function parse(str) { -1 10663 str = str.toLowerCase(); -1 10664 var ret = { -1 10665 spaceId: 'srgb', -1 10666 coords: null, -1 10667 alpha: 1 -1 10668 }; -1 10669 if (str === 'transparent') { -1 10670 ret.coords = KEYWORDS.black; -1 10671 ret.alpha = 0; -1 10672 } else { -1 10673 ret.coords = KEYWORDS[str]; -1 10674 } -1 10675 if (ret.coords) { -1 10676 return ret; -1 10677 } -1 10678 } 10686 10679 }10687 -1 return null;10688 10680 }10689 -1 do {10690 -1 parent = parent.assignedSlot ? parent.assignedSlot : parent.parentNode;10691 -1 if (parent && parent.nodeType === 11) {10692 -1 parent = parent.host;-1 10681 }); -1 10682 var P3 = new RGBColorSpace({ -1 10683 id: 'p3', -1 10684 name: 'P3', -1 10685 base: P3Linear, -1 10686 fromBase: sRGB.fromBase, -1 10687 toBase: sRGB.toBase, -1 10688 formats: { -1 10689 color: { -1 10690 id: 'display-p3' 10693 10691 }10694 -1 } while (parent && !element_matches_default(parent, target) && parent !== document.documentElement);10695 -1 if (!parent) {10696 -1 return null;10697 -1 }10698 -1 if (!element_matches_default(parent, target)) {10699 -1 return null;10700 -1 }10701 -1 return parent;10702 -1 }10703 -1 var find_up_virtual_default = findUpVirtual;10704 -1 function findUp(element, target) {10705 -1 return find_up_virtual_default(get_node_from_tree_default(element), target);10706 -1 }10707 -1 var find_up_default = findUp;10708 -1 function _rectsOverlap(rect1, rect2) {10709 -1 return (rect1.left | 0) < (rect2.right | 0) && (rect1.right | 0) > (rect2.left | 0) && (rect1.top | 0) < (rect2.bottom | 0) && (rect1.bottom | 0) > (rect2.top | 0);10710 -1 }10711 -1 var getOverflowHiddenAncestors = memoize_default(function getOverflowHiddenAncestorsMemoized(vNode) {10712 -1 var ancestors = [];10713 -1 if (!vNode) {10714 -1 return ancestors;10715 -1 }10716 -1 var overflow = vNode.getComputedStylePropertyValue('overflow');10717 -1 if (overflow === 'hidden') {10718 -1 ancestors.push(vNode);10719 10692 }10720 -1 return ancestors.concat(getOverflowHiddenAncestors(vNode.parent));10721 10693 });10722 -1 var get_overflow_hidden_ancestors_default = getOverflowHiddenAncestors;10723 -1 var clipRegex = /rect\s*\(([0-9]+)px,?\s*([0-9]+)px,?\s*([0-9]+)px,?\s*([0-9]+)px\s*\)/;10724 -1 var clipPathRegex = /(\w+)\((\d+)/;10725 -1 function nativelyHidden(vNode) {10726 -1 return [ 'style', 'script', 'noscript', 'template' ].includes(vNode.props.nodeName);10727 -1 }10728 -1 function displayHidden(vNode) {10729 -1 if (vNode.props.nodeName === 'area') {10730 -1 return false;-1 10694 defaults.display_space = sRGB; -1 10695 if (typeof CSS !== 'undefined' && (_CSS = CSS) !== null && _CSS !== void 0 && _CSS.supports) { -1 10696 for (var _i4 = 0, _arr = [ lab, REC2020, P3 ]; _i4 < _arr.length; _i4++) { -1 10697 var space = _arr[_i4]; -1 10698 var coords = space.getMinCoords(); -1 10699 var color = { -1 10700 space: space, -1 10701 coords: coords, -1 10702 alpha: 1 -1 10703 }; -1 10704 var str = serialize(color); -1 10705 if (CSS.supports('color', str)) { -1 10706 defaults.display_space = space; -1 10707 break; -1 10708 } 10731 10709 }10732 -1 return vNode.getComputedStylePropertyValue('display') === 'none';10733 10710 }10734 -1 function visibilityHidden(vNode) {10735 -1 var _ref11 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, isAncestor = _ref11.isAncestor;10736 -1 return !isAncestor && [ 'hidden', 'collapse' ].includes(vNode.getComputedStylePropertyValue('visibility'));-1 10711 function _display(color) { -1 10712 var _CSS2; -1 10713 var _ref14 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; -1 10714 var _ref14$space = _ref14.space, space = _ref14$space === void 0 ? defaults.display_space : _ref14$space, options = _objectWithoutProperties(_ref14, _excluded2); -1 10715 var ret = serialize(color, options); -1 10716 if (typeof CSS === 'undefined' || (_CSS2 = CSS) !== null && _CSS2 !== void 0 && _CSS2.supports('color', ret) || !defaults.display_space) { -1 10717 ret = new String(ret); -1 10718 ret.color = color; -1 10719 } else { -1 10720 var fallbackColor = to(color, space); -1 10721 ret = new String(serialize(fallbackColor, options)); -1 10722 ret.color = fallbackColor; -1 10723 } -1 10724 return ret; 10737 10725 }10738 -1 function contentVisibiltyHidden(vNode) {10739 -1 var _ref12 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, isAncestor = _ref12.isAncestor;10740 -1 return !!isAncestor && vNode.getComputedStylePropertyValue('content-visibility') === 'hidden';-1 10726 function distance(color1, color2) { -1 10727 var space = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'lab'; -1 10728 space = ColorSpace.get(space); -1 10729 var coords1 = space.from(color1); -1 10730 var coords2 = space.from(color2); -1 10731 return Math.sqrt(coords1.reduce(function(acc, c12, i) { -1 10732 var c22 = coords2[i]; -1 10733 if (isNaN(c12) || isNaN(c22)) { -1 10734 return acc; -1 10735 } -1 10736 return acc + Math.pow(c22 - c12, 2); -1 10737 }, 0)); 10741 10738 }10742 -1 function ariaHidden(vNode) {10743 -1 return vNode.attr('aria-hidden') === 'true';-1 10739 function equals(color1, color2) { -1 10740 color1 = getColor(color1); -1 10741 color2 = getColor(color2); -1 10742 return color1.space === color2.space && color1.alpha === color2.alpha && color1.coords.every(function(c4, i) { -1 10743 return c4 === color2.coords[i]; -1 10744 }); 10744 10745 }10745 -1 function opacityHidden(vNode) {10746 -1 return vNode.getComputedStylePropertyValue('opacity') === '0';-1 10746 function getLuminance(color) { -1 10747 return get(color, [ XYZ_D65, 'y' ]); 10747 10748 }10748 -1 function scrollHidden(vNode) {10749 -1 var scroll = get_scroll_default(vNode.actualNode);10750 -1 var elHeight = parseInt(vNode.getComputedStylePropertyValue('height'));10751 -1 var elWidth = parseInt(vNode.getComputedStylePropertyValue('width'));10752 -1 return !!scroll && (elHeight === 0 || elWidth === 0);-1 10749 function setLuminance(color, value) { -1 10750 set(color, [ XYZ_D65, 'y' ], value); 10753 10751 }10754 -1 function overflowHidden(vNode) {10755 -1 var _ref13 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, isAncestor = _ref13.isAncestor;10756 -1 if (isAncestor) {10757 -1 return false;10758 -1 }10759 -1 var position = vNode.getComputedStylePropertyValue('position');10760 -1 if (position === 'fixed') {10761 -1 return false;10762 -1 }10763 -1 var nodes = get_overflow_hidden_ancestors_default(vNode);10764 -1 if (!nodes.length) {10765 -1 return false;10766 -1 }10767 -1 var rect = vNode.boundingClientRect;10768 -1 return nodes.some(function(node) {10769 -1 if (position === 'absolute' && !hasPositionedAncestorBetween(vNode, node) && node.getComputedStylePropertyValue('position') === 'static') {10770 -1 return false;10771 -1 }10772 -1 var nodeRect = node.boundingClientRect;10773 -1 if (nodeRect.width < 2 || nodeRect.height < 2) {10774 -1 return true;-1 10752 function register$2(Color3) { -1 10753 Object.defineProperty(Color3.prototype, 'luminance', { -1 10754 get: function get() { -1 10755 return getLuminance(this); -1 10756 }, -1 10757 set: function set(value) { -1 10758 setLuminance(this, value); 10775 10759 }10776 -1 return !_rectsOverlap(rect, nodeRect);10777 10760 }); 10778 10761 }10779 -1 function clipHidden(vNode) {10780 -1 var matchesClip = vNode.getComputedStylePropertyValue('clip').match(clipRegex);10781 -1 var matchesClipPath = vNode.getComputedStylePropertyValue('clip-path').match(clipPathRegex);10782 -1 if (matchesClip && matchesClip.length === 5) {10783 -1 var position = vNode.getComputedStylePropertyValue('position');10784 -1 if ([ 'fixed', 'absolute' ].includes(position)) {10785 -1 return matchesClip[3] - matchesClip[1] <= 0 && matchesClip[2] - matchesClip[4] <= 0;10786 -1 }-1 10762 var luminance = Object.freeze({ -1 10763 __proto__: null, -1 10764 getLuminance: getLuminance, -1 10765 setLuminance: setLuminance, -1 10766 register: register$2 -1 10767 }); -1 10768 function contrastWCAG21(color1, color2) { -1 10769 color1 = getColor(color1); -1 10770 color2 = getColor(color2); -1 10771 var Y1 = Math.max(getLuminance(color1), 0); -1 10772 var Y2 = Math.max(getLuminance(color2), 0); -1 10773 if (Y2 > Y1) { -1 10774 var _ref15 = [ Y2, Y1 ]; -1 10775 Y1 = _ref15[0]; -1 10776 Y2 = _ref15[1]; 10787 10777 }10788 -1 if (matchesClipPath) {10789 -1 var type2 = matchesClipPath[1];10790 -1 var value = parseInt(matchesClipPath[2], 10);10791 -1 switch (type2) {10792 -1 case 'inset':10793 -1 return value >= 50;10794 -110795 -1 case 'circle':10796 -1 return value === 0;10797 -110798 -1 default:10799 -1 }10800 -1 }10801 -1 return false;-1 10778 return (Y1 + .05) / (Y2 + .05); 10802 10779 }10803 -1 function areaHidden(vNode, visibleFunction) {10804 -1 var mapEl = closest_default(vNode, 'map');10805 -1 if (!mapEl) {10806 -1 return true;10807 -1 }10808 -1 var mapElName = mapEl.attr('name');10809 -1 if (!mapElName) {10810 -1 return true;10811 -1 }10812 -1 var mapElRootNode = get_root_node_default(vNode.actualNode);10813 -1 if (!mapElRootNode || mapElRootNode.nodeType !== 9) {10814 -1 return true;10815 -1 }10816 -1 var refs = query_selector_all_default(axe._tree, 'img[usemap="#'.concat(escape_selector_default(mapElName), '"]'));10817 -1 if (!refs || !refs.length) {10818 -1 return true;-1 10780 var normBG = .56; -1 10781 var normTXT = .57; -1 10782 var revTXT = .62; -1 10783 var revBG = .65; -1 10784 var blkThrs = .022; -1 10785 var blkClmp = 1.414; -1 10786 var loClip = .1; -1 10787 var deltaYmin = 5e-4; -1 10788 var scaleBoW = 1.14; -1 10789 var loBoWoffset = .027; -1 10790 var scaleWoB = 1.14; -1 10791 function fclamp(Y) { -1 10792 if (Y >= blkThrs) { -1 10793 return Y; 10819 10794 }10820 -1 return refs.some(function(ref) {10821 -1 return !visibleFunction(ref);10822 -1 });-1 10795 return Y + Math.pow(blkThrs - Y, blkClmp); 10823 10796 }10824 -1 function detailsHidden(vNode) {10825 -1 var _vNode$parent;10826 -1 if (((_vNode$parent = vNode.parent) === null || _vNode$parent === void 0 ? void 0 : _vNode$parent.props.nodeName) !== 'details') {10827 -1 return false;10828 -1 }10829 -1 if (vNode.props.nodeName === 'summary') {10830 -1 var firstSummary = vNode.parent.children.find(function(node) {10831 -1 return node.props.nodeName === 'summary';10832 -1 });10833 -1 if (firstSummary === vNode) {10834 -1 return false;10835 -1 }10836 -1 }10837 -1 return !vNode.parent.hasAttr('open');-1 10797 function linearize(val) { -1 10798 var sign = val < 0 ? -1 : 1; -1 10799 var abs = Math.abs(val); -1 10800 return sign * Math.pow(abs, 2.4); 10838 10801 }10839 -1 function hasPositionedAncestorBetween(child, ancestor) {10840 -1 var node = child.parent;10841 -1 while (node && node !== ancestor) {10842 -1 if ([ 'relative', 'sticky' ].includes(node.getComputedStylePropertyValue('position'))) {10843 -1 return true;-1 10802 function contrastAPCA(background, foreground) { -1 10803 foreground = getColor(foreground); -1 10804 background = getColor(background); -1 10805 var S; -1 10806 var C; -1 10807 var Sapc; -1 10808 var R, G, B; -1 10809 foreground = to(foreground, 'srgb'); -1 10810 var _foreground$coords = _slicedToArray(foreground.coords, 3); -1 10811 R = _foreground$coords[0]; -1 10812 G = _foreground$coords[1]; -1 10813 B = _foreground$coords[2]; -1 10814 var lumTxt = linearize(R) * .2126729 + linearize(G) * .7151522 + linearize(B) * .072175; -1 10815 background = to(background, 'srgb'); -1 10816 var _background$coords = _slicedToArray(background.coords, 3); -1 10817 R = _background$coords[0]; -1 10818 G = _background$coords[1]; -1 10819 B = _background$coords[2]; -1 10820 var lumBg = linearize(R) * .2126729 + linearize(G) * .7151522 + linearize(B) * .072175; -1 10821 var Ytxt = fclamp(lumTxt); -1 10822 var Ybg = fclamp(lumBg); -1 10823 var BoW = Ybg > Ytxt; -1 10824 if (Math.abs(Ybg - Ytxt) < deltaYmin) { -1 10825 C = 0; -1 10826 } else { -1 10827 if (BoW) { -1 10828 S = Math.pow(Ybg, normBG) - Math.pow(Ytxt, normTXT); -1 10829 C = S * scaleBoW; -1 10830 } else { -1 10831 S = Math.pow(Ybg, revBG) - Math.pow(Ytxt, revTXT); -1 10832 C = S * scaleWoB; 10844 10833 }10845 -1 node = node.parent;10846 10834 }10847 -1 return false;10848 -1 }10849 -1 var hiddenMethods = [ displayHidden, visibilityHidden, contentVisibiltyHidden, detailsHidden ];10850 -1 function _isHiddenForEveryone(vNode) {10851 -1 var _ref14 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, skipAncestors = _ref14.skipAncestors, _ref14$isAncestor = _ref14.isAncestor, isAncestor = _ref14$isAncestor === void 0 ? false : _ref14$isAncestor;10852 -1 vNode = _nodeLookup(vNode).vNode;10853 -1 if (skipAncestors) {10854 -1 return isHiddenSelf(vNode, isAncestor);-1 10835 if (Math.abs(C) < loClip) { -1 10836 Sapc = 0; -1 10837 } else if (C > 0) { -1 10838 Sapc = C - loBoWoffset; -1 10839 } else { -1 10840 Sapc = C + loBoWoffset; 10855 10841 }10856 -1 return isHiddenAncestors(vNode, isAncestor);-1 10842 return Sapc * 100; 10857 10843 }10858 -1 var isHiddenSelf = memoize_default(function isHiddenSelfMemoized(vNode, isAncestor) {10859 -1 if (nativelyHidden(vNode)) {10860 -1 return true;-1 10844 function contrastMichelson(color1, color2) { -1 10845 color1 = getColor(color1); -1 10846 color2 = getColor(color2); -1 10847 var Y1 = Math.max(getLuminance(color1), 0); -1 10848 var Y2 = Math.max(getLuminance(color2), 0); -1 10849 if (Y2 > Y1) { -1 10850 var _ref16 = [ Y2, Y1 ]; -1 10851 Y1 = _ref16[0]; -1 10852 Y2 = _ref16[1]; 10861 10853 }10862 -1 if (!vNode.actualNode) {10863 -1 return false;-1 10854 var denom = Y1 + Y2; -1 10855 return denom === 0 ? 0 : (Y1 - Y2) / denom; -1 10856 } -1 10857 var max = 5e4; -1 10858 function contrastWeber(color1, color2) { -1 10859 color1 = getColor(color1); -1 10860 color2 = getColor(color2); -1 10861 var Y1 = Math.max(getLuminance(color1), 0); -1 10862 var Y2 = Math.max(getLuminance(color2), 0); -1 10863 if (Y2 > Y1) { -1 10864 var _ref17 = [ Y2, Y1 ]; -1 10865 Y1 = _ref17[0]; -1 10866 Y2 = _ref17[1]; 10864 10867 }10865 -1 if (hiddenMethods.some(function(method) {10866 -1 return method(vNode, {10867 -1 isAncestor: isAncestor-1 10868 return Y2 === 0 ? max : (Y1 - Y2) / Y2; -1 10869 } -1 10870 function contrastLstar(color1, color2) { -1 10871 color1 = getColor(color1); -1 10872 color2 = getColor(color2); -1 10873 var L1 = get(color1, [ lab, 'l' ]); -1 10874 var L2 = get(color2, [ lab, 'l' ]); -1 10875 return Math.abs(L1 - L2); -1 10876 } -1 10877 var \u03b5$1 = 216 / 24389; -1 10878 var \u03b53 = 24 / 116; -1 10879 var \u03ba = 24389 / 27; -1 10880 var white = WHITES.D65; -1 10881 var lab_d65 = new ColorSpace({ -1 10882 id: 'lab-d65', -1 10883 name: 'Lab D65', -1 10884 coords: { -1 10885 l: { -1 10886 refRange: [ 0, 100 ], -1 10887 name: 'L' -1 10888 }, -1 10889 a: { -1 10890 refRange: [ -125, 125 ] -1 10891 }, -1 10892 b: { -1 10893 refRange: [ -125, 125 ] -1 10894 } -1 10895 }, -1 10896 white: white, -1 10897 base: XYZ_D65, -1 10898 fromBase: function fromBase(XYZ) { -1 10899 var xyz = XYZ.map(function(value, i) { -1 10900 return value / white[i]; 10868 10901 });10869 -1 })) {10870 -1 return true;10871 -1 }10872 -1 if (!vNode.actualNode.isConnected) {10873 -1 return true;-1 10902 var f = xyz.map(function(value) { -1 10903 return value > \u03b5$1 ? Math.cbrt(value) : (\u03ba * value + 16) / 116; -1 10904 }); -1 10905 return [ 116 * f[1] - 16, 500 * (f[0] - f[1]), 200 * (f[1] - f[2]) ]; -1 10906 }, -1 10907 toBase: function toBase(Lab) { -1 10908 var f = []; -1 10909 f[1] = (Lab[0] + 16) / 116; -1 10910 f[0] = Lab[1] / 500 + f[1]; -1 10911 f[2] = f[1] - Lab[2] / 200; -1 10912 var xyz = [ f[0] > \u03b53 ? Math.pow(f[0], 3) : (116 * f[0] - 16) / \u03ba, Lab[0] > 8 ? Math.pow((Lab[0] + 16) / 116, 3) : Lab[0] / \u03ba, f[2] > \u03b53 ? Math.pow(f[2], 3) : (116 * f[2] - 16) / \u03ba ]; -1 10913 return xyz.map(function(value, i) { -1 10914 return value * white[i]; -1 10915 }); -1 10916 }, -1 10917 formats: { -1 10918 'lab-d65': { -1 10919 coords: [ '<number> | <percentage>', '<number>', '<number>' ] -1 10920 } 10874 10921 }10875 -1 return false;10876 10922 });10877 -1 var isHiddenAncestors = memoize_default(function isHiddenAncestorsMemoized(vNode, isAncestor) {10878 -1 if (isHiddenSelf(vNode, isAncestor)) {10879 -1 return true;10880 -1 }10881 -1 if (!vNode.parent) {10882 -1 return false;10883 -1 }10884 -1 return isHiddenAncestors(vNode.parent, true);-1 10923 var phi = Math.pow(5, .5) * .5 + .5; -1 10924 function contrastDeltaPhi(color1, color2) { -1 10925 color1 = getColor(color1); -1 10926 color2 = getColor(color2); -1 10927 var Lstr1 = get(color1, [ lab_d65, 'l' ]); -1 10928 var Lstr2 = get(color2, [ lab_d65, 'l' ]); -1 10929 var deltaPhiStar = Math.abs(Math.pow(Lstr1, phi) - Math.pow(Lstr2, phi)); -1 10930 var contrast2 = Math.pow(deltaPhiStar, 1 / phi) * Math.SQRT2 - 40; -1 10931 return contrast2 < 7.5 ? 0 : contrast2; -1 10932 } -1 10933 var contrastMethods = Object.freeze({ -1 10934 __proto__: null, -1 10935 contrastWCAG21: contrastWCAG21, -1 10936 contrastAPCA: contrastAPCA, -1 10937 contrastMichelson: contrastMichelson, -1 10938 contrastWeber: contrastWeber, -1 10939 contrastLstar: contrastLstar, -1 10940 contrastDeltaPhi: contrastDeltaPhi 10885 10941 });10886 -1 function getComposedParent(element) {10887 -1 if (element.assignedSlot) {10888 -1 return getComposedParent(element.assignedSlot);10889 -1 } else if (element.parentNode) {10890 -1 var parentNode = element.parentNode;10891 -1 if (parentNode.nodeType === 1) {10892 -1 return parentNode;10893 -1 } else if (parentNode.host) {10894 -1 return parentNode.host;10895 -1 }-1 10942 function contrast(background, foreground) { -1 10943 var o = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; -1 10944 if (isString(o)) { -1 10945 o = { -1 10946 algorithm: o -1 10947 }; 10896 10948 }10897 -1 return null;10898 -1 }10899 -1 var get_composed_parent_default = getComposedParent;10900 -1 function getScrollOffset(element) {10901 -1 if (!element.nodeType && element.document) {10902 -1 element = element.document;-1 10949 var _o = o, algorithm = _o.algorithm, rest = _objectWithoutProperties(_o, _excluded3); -1 10950 if (!algorithm) { -1 10951 var algorithms = Object.keys(contrastMethods).map(function(a2) { -1 10952 return a2.replace(/^contrast/, ''); -1 10953 }).join(', '); -1 10954 throw new TypeError('contrast() function needs a contrast algorithm. Please specify one of: '.concat(algorithms)); 10903 10955 }10904 -1 if (element.nodeType === 9) {10905 -1 var docElement = element.documentElement, body = element.body;10906 -1 return {10907 -1 left: docElement && docElement.scrollLeft || body && body.scrollLeft || 0,10908 -1 top: docElement && docElement.scrollTop || body && body.scrollTop || 010909 -1 };-1 10956 background = getColor(background); -1 10957 foreground = getColor(foreground); -1 10958 for (var a2 in contrastMethods) { -1 10959 if ('contrast' + algorithm.toLowerCase() === a2.toLowerCase()) { -1 10960 return contrastMethods[a2](background, foreground, rest); -1 10961 } 10910 10962 }10911 -1 return {10912 -1 left: element.scrollLeft,10913 -1 top: element.scrollTop10914 -1 };-1 10963 throw new TypeError('Unknown contrast algorithm: '.concat(algorithm)); 10915 10964 }10916 -1 var get_scroll_offset_default = getScrollOffset;10917 -1 function getElementCoordinates(element) {10918 -1 var scrollOffset = get_scroll_offset_default(document), xOffset = scrollOffset.left, yOffset = scrollOffset.top, coords = element.getBoundingClientRect();10919 -1 return {10920 -1 top: coords.top + yOffset,10921 -1 right: coords.right + xOffset,10922 -1 bottom: coords.bottom + yOffset,10923 -1 left: coords.left + xOffset,10924 -1 width: coords.right - coords.left,10925 -1 height: coords.bottom - coords.top10926 -1 };-1 10965 function uv(color) { -1 10966 var _getAll = getAll(color, XYZ_D65), _getAll2 = _slicedToArray(_getAll, 3), X = _getAll2[0], Y = _getAll2[1], Z = _getAll2[2]; -1 10967 var denom = X + 15 * Y + 3 * Z; -1 10968 return [ 4 * X / denom, 9 * Y / denom ]; 10927 10969 }10928 -1 var get_element_coordinates_default = getElementCoordinates;10929 -1 function getViewportSize(win) {10930 -1 var doc = win.document;10931 -1 var docElement = doc.documentElement;10932 -1 if (win.innerWidth) {10933 -1 return {10934 -1 width: win.innerWidth,10935 -1 height: win.innerHeight10936 -1 };10937 -1 }10938 -1 if (docElement) {10939 -1 return {10940 -1 width: docElement.clientWidth,10941 -1 height: docElement.clientHeight10942 -1 };10943 -1 }10944 -1 var body = doc.body;10945 -1 return {10946 -1 width: body.clientWidth,10947 -1 height: body.clientHeight10948 -1 };-1 10970 function xy(color) { -1 10971 var _getAll3 = getAll(color, XYZ_D65), _getAll4 = _slicedToArray(_getAll3, 3), X = _getAll4[0], Y = _getAll4[1], Z = _getAll4[2]; -1 10972 var sum = X + Y + Z; -1 10973 return [ X / sum, Y / sum ]; 10949 10974 }10950 -1 var get_viewport_size_default = getViewportSize;10951 -1 function noParentScrolled(element, offset) {10952 -1 element = get_composed_parent_default(element);10953 -1 while (element && element.nodeName.toLowerCase() !== 'html') {10954 -1 if (element.scrollTop) {10955 -1 offset += element.scrollTop;10956 -1 if (offset >= 0) {10957 -1 return false;10958 -1 }-1 10975 function register$1(Color3) { -1 10976 Object.defineProperty(Color3.prototype, 'uv', { -1 10977 get: function get() { -1 10978 return uv(this); 10959 10979 }10960 -1 element = get_composed_parent_default(element);10961 -1 }10962 -1 return true;-1 10980 }); -1 10981 Object.defineProperty(Color3.prototype, 'xy', { -1 10982 get: function get() { -1 10983 return xy(this); -1 10984 } -1 10985 }); 10963 10986 }10964 -1 function isOffscreen(element) {10965 -1 var _ref15 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, isAncestor = _ref15.isAncestor;10966 -1 if (isAncestor) {10967 -1 return false;-1 10987 var chromaticity = Object.freeze({ -1 10988 __proto__: null, -1 10989 uv: uv, -1 10990 xy: xy, -1 10991 register: register$1 -1 10992 }); -1 10993 function deltaE76(color, sample) { -1 10994 return distance(color, sample, 'lab'); -1 10995 } -1 10996 var \u03c0 = Math.PI; -1 10997 var d2r = \u03c0 / 180; -1 10998 function deltaECMC(color, sample) { -1 10999 var _ref18 = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}, _ref18$l = _ref18.l, l = _ref18$l === void 0 ? 2 : _ref18$l, _ref18$c = _ref18.c, c4 = _ref18$c === void 0 ? 1 : _ref18$c; -1 11000 var _lab$from5 = lab.from(color), _lab$from6 = _slicedToArray(_lab$from5, 3), L1 = _lab$from6[0], a1 = _lab$from6[1], b1 = _lab$from6[2]; -1 11001 var _lch$from = lch.from(lab, [ L1, a1, b1 ]), _lch$from2 = _slicedToArray(_lch$from, 3), C1 = _lch$from2[1], H1 = _lch$from2[2]; -1 11002 var _lab$from7 = lab.from(sample), _lab$from8 = _slicedToArray(_lab$from7, 3), L2 = _lab$from8[0], a2 = _lab$from8[1], b2 = _lab$from8[2]; -1 11003 var C2 = lch.from(lab, [ L2, a2, b2 ])[1]; -1 11004 if (C1 < 0) { -1 11005 C1 = 0; 10968 11006 }10969 -1 var _nodeLookup2 = _nodeLookup(element), domNode = _nodeLookup2.domNode;10970 -1 if (!domNode) {10971 -1 return void 0;-1 11007 if (C2 < 0) { -1 11008 C2 = 0; 10972 11009 }10973 -1 var leftBoundary;10974 -1 var docElement = document.documentElement;10975 -1 var styl = window.getComputedStyle(domNode);10976 -1 var dir = window.getComputedStyle(document.body || docElement).getPropertyValue('direction');10977 -1 var coords = get_element_coordinates_default(domNode);10978 -1 if (coords.bottom < 0 && (noParentScrolled(domNode, coords.bottom) || styl.position === 'absolute')) {10979 -1 return true;-1 11010 var \u0394L = L1 - L2; -1 11011 var \u0394C = C1 - C2; -1 11012 var \u0394a = a1 - a2; -1 11013 var \u0394b = b1 - b2; -1 11014 var H2 = Math.pow(\u0394a, 2) + Math.pow(\u0394b, 2) - Math.pow(\u0394C, 2); -1 11015 var SL = .511; -1 11016 if (L1 >= 16) { -1 11017 SL = .040975 * L1 / (1 + .01765 * L1); 10980 11018 }10981 -1 if (coords.left === 0 && coords.right === 0) {10982 -1 return false;-1 11019 var SC = .0638 * C1 / (1 + .0131 * C1) + .638; -1 11020 var T; -1 11021 if (Number.isNaN(H1)) { -1 11022 H1 = 0; 10983 11023 }10984 -1 if (dir === 'ltr') {10985 -1 if (coords.right <= 0) {10986 -1 return true;10987 -1 }-1 11024 if (H1 >= 164 && H1 <= 345) { -1 11025 T = .56 + Math.abs(.2 * Math.cos((H1 + 168) * d2r)); 10988 11026 } else {10989 -1 leftBoundary = Math.max(docElement.scrollWidth, get_viewport_size_default(window).width);10990 -1 if (coords.left >= leftBoundary) {10991 -1 return true;10992 -1 }-1 11027 T = .36 + Math.abs(.4 * Math.cos((H1 + 35) * d2r)); 10993 11028 }10994 -1 return false;10995 -1 }10996 -1 var is_offscreen_default = isOffscreen;10997 -1 var hiddenMethods2 = [ opacityHidden, scrollHidden, overflowHidden, clipHidden, is_offscreen_default ];10998 -1 function _isVisibleOnScreen(vNode) {10999 -1 vNode = _nodeLookup(vNode).vNode;11000 -1 return isVisibleOnScreenVirtual(vNode);-1 11029 var C4 = Math.pow(C1, 4); -1 11030 var F = Math.sqrt(C4 / (C4 + 1900)); -1 11031 var SH = SC * (F * T + 1 - F); -1 11032 var dE = Math.pow(\u0394L / (l * SL), 2); -1 11033 dE += Math.pow(\u0394C / (c4 * SC), 2); -1 11034 dE += H2 / Math.pow(SH, 2); -1 11035 return Math.sqrt(dE); 11001 11036 }11002 -1 var isVisibleOnScreenVirtual = memoize_default(function isVisibleOnScreenMemoized(vNode, isAncestor) {11003 -1 if (vNode.actualNode && vNode.props.nodeName === 'area') {11004 -1 return !areaHidden(vNode, isVisibleOnScreenVirtual);11005 -1 }11006 -1 if (_isHiddenForEveryone(vNode, {11007 -1 skipAncestors: true,11008 -1 isAncestor: isAncestor11009 -1 })) {11010 -1 return false;11011 -1 }11012 -1 if (vNode.actualNode && hiddenMethods2.some(function(method) {11013 -1 return method(vNode, {11014 -1 isAncestor: isAncestor-1 11037 var Yw$1 = 203; -1 11038 var XYZ_Abs_D65 = new ColorSpace({ -1 11039 id: 'xyz-abs-d65', -1 11040 name: 'Absolute XYZ D65', -1 11041 coords: { -1 11042 x: { -1 11043 refRange: [ 0, 9504.7 ], -1 11044 name: 'Xa' -1 11045 }, -1 11046 y: { -1 11047 refRange: [ 0, 1e4 ], -1 11048 name: 'Ya' -1 11049 }, -1 11050 z: { -1 11051 refRange: [ 0, 10888.3 ], -1 11052 name: 'Za' -1 11053 } -1 11054 }, -1 11055 base: XYZ_D65, -1 11056 fromBase: function fromBase(XYZ) { -1 11057 return XYZ.map(function(v) { -1 11058 return Math.max(v * Yw$1, 0); -1 11059 }); -1 11060 }, -1 11061 toBase: function toBase(AbsXYZ) { -1 11062 return AbsXYZ.map(function(v) { -1 11063 return Math.max(v / Yw$1, 0); 11015 11064 });11016 -1 })) {11017 -1 return false;11018 -1 }11019 -1 if (!vNode.parent) {11020 -1 return true;11021 11065 }11022 -1 return isVisibleOnScreenVirtual(vNode.parent, true);11023 11066 });11024 -1 function _getBoundingRect(rectA, rectB) {11025 -1 var top = Math.min(rectA.top, rectB.top);11026 -1 var right = Math.max(rectA.right, rectB.right);11027 -1 var bottom = Math.max(rectA.bottom, rectB.bottom);11028 -1 var left = Math.min(rectA.left, rectB.left);11029 -1 return new window.DOMRect(left, top, right - left, bottom - top);11030 -1 }11031 -1 function _isPointInRect(_ref16, _ref17) {11032 -1 var x = _ref16.x, y = _ref16.y;11033 -1 var top = _ref17.top, right = _ref17.right, bottom = _ref17.bottom, left = _ref17.left;11034 -1 return y >= top && x <= right && y <= bottom && x >= left;11035 -1 }11036 -1 var math_exports = {};11037 -1 __export(math_exports, {11038 -1 getBoundingRect: function getBoundingRect() {11039 -1 return _getBoundingRect;11040 -1 },11041 -1 getIntersectionRect: function getIntersectionRect() {11042 -1 return _getIntersectionRect;11043 -1 },11044 -1 getOffset: function getOffset() {11045 -1 return _getOffset;11046 -1 },11047 -1 getRectCenter: function getRectCenter() {11048 -1 return _getRectCenter;-1 11067 var b$1 = 1.15; -1 11068 var g = .66; -1 11069 var n$1 = 2610 / Math.pow(2, 14); -1 11070 var ninv$1 = Math.pow(2, 14) / 2610; -1 11071 var c1$2 = 3424 / Math.pow(2, 12); -1 11072 var c2$2 = 2413 / Math.pow(2, 7); -1 11073 var c3$2 = 2392 / Math.pow(2, 7); -1 11074 var p = 1.7 * 2523 / Math.pow(2, 5); -1 11075 var pinv = Math.pow(2, 5) / (1.7 * 2523); -1 11076 var d = -.56; -1 11077 var d0 = 16295499532821565e-27; -1 11078 var XYZtoCone_M = [ [ .41478972, .579999, .014648 ], [ -.20151, 1.120649, .0531008 ], [ -.0166008, .2648, .6684799 ] ]; -1 11079 var ConetoXYZ_M = [ [ 1.9242264357876067, -1.0047923125953657, .037651404030618 ], [ .35031676209499907, .7264811939316552, -.06538442294808501 ], [ -.09098281098284752, -.3127282905230739, 1.5227665613052603 ] ]; -1 11080 var ConetoIab_M = [ [ .5, .5, 0 ], [ 3.524, -4.066708, .542708 ], [ .199076, 1.096799, -1.295875 ] ]; -1 11081 var IabtoCone_M = [ [ 1, .1386050432715393, .05804731615611886 ], [ .9999999999999999, -.1386050432715393, -.05804731615611886 ], [ .9999999999999998, -.09601924202631895, -.8118918960560388 ] ]; -1 11082 var Jzazbz = new ColorSpace({ -1 11083 id: 'jzazbz', -1 11084 name: 'Jzazbz', -1 11085 coords: { -1 11086 jz: { -1 11087 refRange: [ 0, 1 ], -1 11088 name: 'Jz' -1 11089 }, -1 11090 az: { -1 11091 refRange: [ -.5, .5 ] -1 11092 }, -1 11093 bz: { -1 11094 refRange: [ -.5, .5 ] -1 11095 } 11049 11096 },11050 -1 hasVisualOverlap: function hasVisualOverlap() {11051 -1 return _hasVisualOverlap;-1 11097 base: XYZ_Abs_D65, -1 11098 fromBase: function fromBase(XYZ) { -1 11099 var _XYZ = _slicedToArray(XYZ, 3), Xa = _XYZ[0], Ya = _XYZ[1], Za = _XYZ[2]; -1 11100 var Xm = b$1 * Xa - (b$1 - 1) * Za; -1 11101 var Ym = g * Ya - (g - 1) * Xa; -1 11102 var LMS = multiplyMatrices(XYZtoCone_M, [ Xm, Ym, Za ]); -1 11103 var PQLMS = LMS.map(function(val) { -1 11104 var num = c1$2 + c2$2 * Math.pow(val / 1e4, n$1); -1 11105 var denom = 1 + c3$2 * Math.pow(val / 1e4, n$1); -1 11106 return Math.pow(num / denom, p); -1 11107 }); -1 11108 var _multiplyMatrices = multiplyMatrices(ConetoIab_M, PQLMS), _multiplyMatrices2 = _slicedToArray(_multiplyMatrices, 3), Iz = _multiplyMatrices2[0], az = _multiplyMatrices2[1], bz = _multiplyMatrices2[2]; -1 11109 var Jz = (1 + d) * Iz / (1 + d * Iz) - d0; -1 11110 return [ Jz, az, bz ]; 11052 11111 },11053 -1 isPointInRect: function isPointInRect() {11054 -1 return _isPointInRect;-1 11112 toBase: function toBase(Jzazbz2) { -1 11113 var _Jzazbz = _slicedToArray(Jzazbz2, 3), Jz = _Jzazbz[0], az = _Jzazbz[1], bz = _Jzazbz[2]; -1 11114 var Iz = (Jz + d0) / (1 + d - d * (Jz + d0)); -1 11115 var PQLMS = multiplyMatrices(IabtoCone_M, [ Iz, az, bz ]); -1 11116 var LMS = PQLMS.map(function(val) { -1 11117 var num = c1$2 - Math.pow(val, pinv); -1 11118 var denom = c3$2 * Math.pow(val, pinv) - c2$2; -1 11119 var x = 1e4 * Math.pow(num / denom, ninv$1); -1 11120 return x; -1 11121 }); -1 11122 var _multiplyMatrices3 = multiplyMatrices(ConetoXYZ_M, LMS), _multiplyMatrices4 = _slicedToArray(_multiplyMatrices3, 3), Xm = _multiplyMatrices4[0], Ym = _multiplyMatrices4[1], Za = _multiplyMatrices4[2]; -1 11123 var Xa = (Xm + (b$1 - 1) * Za) / b$1; -1 11124 var Ya = (Ym + (g - 1) * Xa) / g; -1 11125 return [ Xa, Ya, Za ]; 11055 11126 },11056 -1 rectHasMinimumSize: function rectHasMinimumSize() {11057 -1 return _rectHasMinimumSize;-1 11127 formats: { -1 11128 color: {} -1 11129 } -1 11130 }); -1 11131 var jzczhz = new ColorSpace({ -1 11132 id: 'jzczhz', -1 11133 name: 'JzCzHz', -1 11134 coords: { -1 11135 jz: { -1 11136 refRange: [ 0, 1 ], -1 11137 name: 'Jz' -1 11138 }, -1 11139 cz: { -1 11140 refRange: [ 0, 1 ], -1 11141 name: 'Chroma' -1 11142 }, -1 11143 hz: { -1 11144 refRange: [ 0, 360 ], -1 11145 type: 'angle', -1 11146 name: 'Hue' -1 11147 } 11058 11148 },11059 -1 rectsOverlap: function rectsOverlap() {11060 -1 return _rectsOverlap;-1 11149 base: Jzazbz, -1 11150 fromBase: function fromBase(jzazbz) { -1 11151 var _jzazbz = _slicedToArray(jzazbz, 3), Jz = _jzazbz[0], az = _jzazbz[1], bz = _jzazbz[2]; -1 11152 var hue; -1 11153 var \u03b52 = 2e-4; -1 11154 if (Math.abs(az) < \u03b52 && Math.abs(bz) < \u03b52) { -1 11155 hue = NaN; -1 11156 } else { -1 11157 hue = Math.atan2(bz, az) * 180 / Math.PI; -1 11158 } -1 11159 return [ Jz, Math.sqrt(Math.pow(az, 2) + Math.pow(bz, 2)), constrain(hue) ]; 11061 11160 },11062 -1 splitRects: function splitRects() {11063 -1 return _splitRects;-1 11161 toBase: function toBase(jzczhz2) { -1 11162 return [ jzczhz2[0], jzczhz2[1] * Math.cos(jzczhz2[2] * Math.PI / 180), jzczhz2[1] * Math.sin(jzczhz2[2] * Math.PI / 180) ]; -1 11163 }, -1 11164 formats: { -1 11165 color: {} 11064 11166 } 11065 11167 });11066 -1 function _getIntersectionRect(rect1, rect2) {11067 -1 var leftX = Math.max(rect1.left, rect2.left);11068 -1 var rightX = Math.min(rect1.right, rect2.right);11069 -1 var topY = Math.max(rect1.top, rect2.top);11070 -1 var bottomY = Math.min(rect1.bottom, rect2.bottom);11071 -1 if (leftX >= rightX || topY >= bottomY) {11072 -1 return null;-1 11168 function deltaEJz(color, sample) { -1 11169 var _jzczhz$from = jzczhz.from(color), _jzczhz$from2 = _slicedToArray(_jzczhz$from, 3), Jz1 = _jzczhz$from2[0], Cz1 = _jzczhz$from2[1], Hz1 = _jzczhz$from2[2]; -1 11170 var _jzczhz$from3 = jzczhz.from(sample), _jzczhz$from4 = _slicedToArray(_jzczhz$from3, 3), Jz2 = _jzczhz$from4[0], Cz2 = _jzczhz$from4[1], Hz2 = _jzczhz$from4[2]; -1 11171 var \u0394J = Jz1 - Jz2; -1 11172 var \u0394C = Cz1 - Cz2; -1 11173 if (Number.isNaN(Hz1) && Number.isNaN(Hz2)) { -1 11174 Hz1 = 0; -1 11175 Hz2 = 0; -1 11176 } else if (Number.isNaN(Hz1)) { -1 11177 Hz1 = Hz2; -1 11178 } else if (Number.isNaN(Hz2)) { -1 11179 Hz2 = Hz1; 11073 11180 }11074 -1 return new window.DOMRect(leftX, topY, rightX - leftX, bottomY - topY);11075 -1 }11076 -1 function _getRectCenter(_ref18) {11077 -1 var left = _ref18.left, top = _ref18.top, width = _ref18.width, height = _ref18.height;11078 -1 return new window.DOMPoint(left + width / 2, top + height / 2);11079 -1 }11080 -1 var roundingMargin = .05;11081 -1 function _rectHasMinimumSize(minSize, _ref19) {11082 -1 var width = _ref19.width, height = _ref19.height;11083 -1 return width + roundingMargin >= minSize && height + roundingMargin >= minSize;-1 11181 var \u0394h = Hz1 - Hz2; -1 11182 var \u0394H = 2 * Math.sqrt(Cz1 * Cz2) * Math.sin(\u0394h / 2 * (Math.PI / 180)); -1 11183 return Math.sqrt(Math.pow(\u0394J, 2) + Math.pow(\u0394C, 2) + Math.pow(\u0394H, 2)); 11084 11184 }11085 -1 function _getOffset(vTarget, vNeighbor) {11086 -1 var minRadiusNeighbour = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 12;11087 -1 var targetRects = get_target_rects_default(vTarget);11088 -1 var neighborRects = get_target_rects_default(vNeighbor);11089 -1 if (!targetRects.length || !neighborRects.length) {11090 -1 return null;11091 -1 }11092 -1 var targetBoundingBox = targetRects.reduce(_getBoundingRect);11093 -1 var targetCenter = _getRectCenter(targetBoundingBox);11094 -1 var minDistance = Infinity;11095 -1 var _iterator2 = _createForOfIteratorHelper(neighborRects), _step2;11096 -1 try {11097 -1 for (_iterator2.s(); !(_step2 = _iterator2.n()).done; ) {11098 -1 var rect = _step2.value;11099 -1 if (_isPointInRect(targetCenter, rect)) {11100 -1 return 0;11101 -1 }11102 -1 var closestPoint = getClosestPoint(targetCenter, rect);11103 -1 var distance2 = pointDistance(targetCenter, closestPoint);11104 -1 minDistance = Math.min(minDistance, distance2);-1 11185 var c1$1 = 3424 / 4096; -1 11186 var c2$1 = 2413 / 128; -1 11187 var c3$1 = 2392 / 128; -1 11188 var m1 = 2610 / 16384; -1 11189 var m2 = 2523 / 32; -1 11190 var im1 = 16384 / 2610; -1 11191 var im2 = 32 / 2523; -1 11192 var XYZtoLMS_M$1 = [ [ .3592, .6976, -.0358 ], [ -.1922, 1.1004, .0755 ], [ .007, .0749, .8434 ] ]; -1 11193 var LMStoIPT_M = [ [ 2048 / 4096, 2048 / 4096, 0 ], [ 6610 / 4096, -13613 / 4096, 7003 / 4096 ], [ 17933 / 4096, -17390 / 4096, -543 / 4096 ] ]; -1 11194 var IPTtoLMS_M = [ [ .9999888965628402, .008605050147287059, .11103437159861648 ], [ 1.00001110343716, -.008605050147287059, -.11103437159861648 ], [ 1.0000320633910054, .56004913547279, -.3206339100541203 ] ]; -1 11195 var LMStoXYZ_M$1 = [ [ 2.0701800566956137, -1.326456876103021, .20661600684785517 ], [ .3649882500326575, .6804673628522352, -.04542175307585323 ], [ -.04959554223893211, -.04942116118675749, 1.1879959417328034 ] ]; -1 11196 var ictcp = new ColorSpace({ -1 11197 id: 'ictcp', -1 11198 name: 'ICTCP', -1 11199 coords: { -1 11200 i: { -1 11201 refRange: [ 0, 1 ], -1 11202 name: 'I' -1 11203 }, -1 11204 ct: { -1 11205 refRange: [ -.5, .5 ], -1 11206 name: 'CT' -1 11207 }, -1 11208 cp: { -1 11209 refRange: [ -.5, .5 ], -1 11210 name: 'CP' 11105 11211 }11106 -1 } catch (err) {11107 -1 _iterator2.e(err);11108 -1 } finally {11109 -1 _iterator2.f();11110 -1 }11111 -1 var neighborTargetSize = get_target_size_default(vNeighbor);11112 -1 if (_rectHasMinimumSize(minRadiusNeighbour * 2, neighborTargetSize)) {11113 -1 return minDistance;11114 -1 }11115 -1 var neighborBoundingBox = neighborRects.reduce(_getBoundingRect);11116 -1 var neighborCenter = _getRectCenter(neighborBoundingBox);11117 -1 var centerDistance = pointDistance(targetCenter, neighborCenter) - minRadiusNeighbour;11118 -1 return Math.max(0, Math.min(minDistance, centerDistance));11119 -1 }11120 -1 function getClosestPoint(point, rect) {11121 -1 var x;11122 -1 var y;11123 -1 if (point.x < rect.left) {11124 -1 x = rect.left;11125 -1 } else if (point.x > rect.right) {11126 -1 x = rect.right;11127 -1 } else {11128 -1 x = point.x;11129 -1 }11130 -1 if (point.y < rect.top) {11131 -1 y = rect.top;11132 -1 } else if (point.y > rect.bottom) {11133 -1 y = rect.bottom;11134 -1 } else {11135 -1 y = point.y;-1 11212 }, -1 11213 base: XYZ_Abs_D65, -1 11214 fromBase: function fromBase(XYZ) { -1 11215 var LMS = multiplyMatrices(XYZtoLMS_M$1, XYZ); -1 11216 return LMStoICtCp(LMS); -1 11217 }, -1 11218 toBase: function toBase(ICtCp) { -1 11219 var LMS = ICtCptoLMS(ICtCp); -1 11220 return multiplyMatrices(LMStoXYZ_M$1, LMS); -1 11221 }, -1 11222 formats: { -1 11223 color: {} 11136 11224 }11137 -1 return {11138 -1 x: x,11139 -1 y: y11140 -1 };-1 11225 }); -1 11226 function LMStoICtCp(LMS) { -1 11227 var PQLMS = LMS.map(function(val) { -1 11228 var num = c1$1 + c2$1 * Math.pow(val / 1e4, m1); -1 11229 var denom = 1 + c3$1 * Math.pow(val / 1e4, m1); -1 11230 return Math.pow(num / denom, m2); -1 11231 }); -1 11232 return multiplyMatrices(LMStoIPT_M, PQLMS); 11141 11233 }11142 -1 function pointDistance(pointA, pointB) {11143 -1 return Math.hypot(pointA.x - pointB.x, pointA.y - pointB.y);-1 11234 function ICtCptoLMS(ICtCp) { -1 11235 var PQLMS = multiplyMatrices(IPTtoLMS_M, ICtCp); -1 11236 var LMS = PQLMS.map(function(val) { -1 11237 var num = Math.max(Math.pow(val, im2) - c1$1, 0); -1 11238 var denom = c2$1 - c3$1 * Math.pow(val, im2); -1 11239 return 1e4 * Math.pow(num / denom, im1); -1 11240 }); -1 11241 return LMS; 11144 11242 }11145 -1 function _hasVisualOverlap(vNodeA, vNodeB) {11146 -1 var rectA = vNodeA.boundingClientRect;11147 -1 var rectB = vNodeB.boundingClientRect;11148 -1 if (rectA.left >= rectB.right || rectA.right <= rectB.left || rectA.top >= rectB.bottom || rectA.bottom <= rectB.top) {11149 -1 return false;11150 -1 }11151 -1 return _visuallySort(vNodeA, vNodeB) > 0;-1 11243 function deltaEITP(color, sample) { -1 11244 var _ictcp$from = ictcp.from(color), _ictcp$from2 = _slicedToArray(_ictcp$from, 3), I1 = _ictcp$from2[0], T1 = _ictcp$from2[1], P1 = _ictcp$from2[2]; -1 11245 var _ictcp$from3 = ictcp.from(sample), _ictcp$from4 = _slicedToArray(_ictcp$from3, 3), I2 = _ictcp$from4[0], T2 = _ictcp$from4[1], P2 = _ictcp$from4[2]; -1 11246 return 720 * Math.sqrt(Math.pow(I1 - I2, 2) + .25 * Math.pow(T1 - T2, 2) + Math.pow(P1 - P2, 2)); 11152 11247 }11153 -1 function _splitRects(outerRect, overlapRects) {11154 -1 var uniqueRects = [ outerRect ];11155 -1 var _iterator3 = _createForOfIteratorHelper(overlapRects), _step3;11156 -1 try {11157 -1 var _loop3 = function _loop3() {11158 -1 var overlapRect = _step3.value;11159 -1 uniqueRects = uniqueRects.reduce(function(rects, inputRect) {11160 -1 return rects.concat(splitRect(inputRect, overlapRect));11161 -1 }, []);11162 -1 if (uniqueRects.length > 4e3) {11163 -1 throw new Error('splitRects: Too many rects');11164 -1 }11165 -1 };11166 -1 for (_iterator3.s(); !(_step3 = _iterator3.n()).done; ) {11167 -1 _loop3();-1 11248 var XYZtoLMS_M = [ [ .8190224432164319, .3619062562801221, -.12887378261216414 ], [ .0329836671980271, .9292868468965546, .03614466816999844 ], [ .048177199566046255, .26423952494422764, .6335478258136937 ] ]; -1 11249 var LMStoXYZ_M = [ [ 1.2268798733741557, -.5578149965554813, .28139105017721583 ], [ -.04057576262431372, 1.1122868293970594, -.07171106666151701 ], [ -.07637294974672142, -.4214933239627914, 1.5869240244272418 ] ]; -1 11250 var LMStoLab_M = [ [ .2104542553, .793617785, -.0040720468 ], [ 1.9779984951, -2.428592205, .4505937099 ], [ .0259040371, .7827717662, -.808675766 ] ]; -1 11251 var LabtoLMS_M = [ [ .9999999984505198, .39633779217376786, .2158037580607588 ], [ 1.0000000088817609, -.10556134232365635, -.06385417477170591 ], [ 1.0000000546724108, -.08948418209496575, -1.2914855378640917 ] ]; -1 11252 var OKLab = new ColorSpace({ -1 11253 id: 'oklab', -1 11254 name: 'OKLab', -1 11255 coords: { -1 11256 l: { -1 11257 refRange: [ 0, 1 ], -1 11258 name: 'L' -1 11259 }, -1 11260 a: { -1 11261 refRange: [ -.4, .4 ] -1 11262 }, -1 11263 b: { -1 11264 refRange: [ -.4, .4 ] 11168 11265 }11169 -1 } catch (err) {11170 -1 _iterator3.e(err);11171 -1 } finally {11172 -1 _iterator3.f();11173 -1 }11174 -1 return uniqueRects;11175 -1 }11176 -1 function splitRect(inputRect, clipRect) {11177 -1 var top = inputRect.top, left = inputRect.left, bottom = inputRect.bottom, right = inputRect.right;11178 -1 var yAligned = top < clipRect.bottom && bottom > clipRect.top;11179 -1 var xAligned = left < clipRect.right && right > clipRect.left;11180 -1 var rects = [];11181 -1 if (between(clipRect.top, top, bottom) && xAligned) {11182 -1 rects.push({11183 -1 top: top,11184 -1 left: left,11185 -1 bottom: clipRect.top,11186 -1 right: right11187 -1 });11188 -1 }11189 -1 if (between(clipRect.right, left, right) && yAligned) {11190 -1 rects.push({11191 -1 top: top,11192 -1 left: clipRect.right,11193 -1 bottom: bottom,11194 -1 right: right-1 11266 }, -1 11267 white: 'D65', -1 11268 base: XYZ_D65, -1 11269 fromBase: function fromBase(XYZ) { -1 11270 var LMS = multiplyMatrices(XYZtoLMS_M, XYZ); -1 11271 var LMSg = LMS.map(function(val) { -1 11272 return Math.cbrt(val); 11195 11273 });11196 -1 }11197 -1 if (between(clipRect.bottom, top, bottom) && xAligned) {11198 -1 rects.push({11199 -1 top: clipRect.bottom,11200 -1 right: right,11201 -1 bottom: bottom,11202 -1 left: left-1 11274 return multiplyMatrices(LMStoLab_M, LMSg); -1 11275 }, -1 11276 toBase: function toBase(OKLab2) { -1 11277 var LMSg = multiplyMatrices(LabtoLMS_M, OKLab2); -1 11278 var LMS = LMSg.map(function(val) { -1 11279 return Math.pow(val, 3); 11203 11280 }); -1 11281 return multiplyMatrices(LMStoXYZ_M, LMS); -1 11282 }, -1 11283 formats: { -1 11284 oklab: { -1 11285 coords: [ '<number> | <percentage>', '<number>', '<number>' ] -1 11286 } 11204 11287 }11205 -1 if (between(clipRect.left, left, right) && yAligned) {11206 -1 rects.push({11207 -1 top: top,11208 -1 left: left,11209 -1 bottom: bottom,11210 -1 right: clipRect.left11211 -1 });-1 11288 }); -1 11289 function deltaEOK(color, sample) { -1 11290 var _OKLab$from = OKLab.from(color), _OKLab$from2 = _slicedToArray(_OKLab$from, 3), L1 = _OKLab$from2[0], a1 = _OKLab$from2[1], b1 = _OKLab$from2[2]; -1 11291 var _OKLab$from3 = OKLab.from(sample), _OKLab$from4 = _slicedToArray(_OKLab$from3, 3), L2 = _OKLab$from4[0], a2 = _OKLab$from4[1], b2 = _OKLab$from4[2]; -1 11292 var \u0394L = L1 - L2; -1 11293 var \u0394a = a1 - a2; -1 11294 var \u0394b = b1 - b2; -1 11295 return Math.sqrt(Math.pow(\u0394L, 2) + Math.pow(\u0394a, 2) + Math.pow(\u0394b, 2)); -1 11296 } -1 11297 var deltaEMethods = Object.freeze({ -1 11298 __proto__: null, -1 11299 deltaE76: deltaE76, -1 11300 deltaECMC: deltaECMC, -1 11301 deltaE2000: deltaE2000, -1 11302 deltaEJz: deltaEJz, -1 11303 deltaEITP: deltaEITP, -1 11304 deltaEOK: deltaEOK -1 11305 }); -1 11306 function deltaE(c12, c22) { -1 11307 var o = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; -1 11308 if (isString(o)) { -1 11309 o = { -1 11310 method: o -1 11311 }; 11212 11312 }11213 -1 if (rects.length === 0) {11214 -1 if (isEnclosedRect(inputRect, clipRect)) {11215 -1 return [];-1 11313 var _o2 = o, _o2$method = _o2.method, method = _o2$method === void 0 ? defaults.deltaE : _o2$method, rest = _objectWithoutProperties(_o2, _excluded4); -1 11314 c12 = getColor(c12); -1 11315 c22 = getColor(c22); -1 11316 for (var m3 in deltaEMethods) { -1 11317 if ('deltae' + method.toLowerCase() === m3.toLowerCase()) { -1 11318 return deltaEMethods[m3](c12, c22, rest); 11216 11319 }11217 -1 rects.push(inputRect);11218 11320 }11219 -1 return rects.map(computeRect);-1 11321 throw new TypeError('Unknown deltaE method: '.concat(method)); 11220 11322 }11221 -1 var between = function between(num, min, max2) {11222 -1 return num > min && num < max2;11223 -1 };11224 -1 function computeRect(baseRect) {11225 -1 return new window.DOMRect(baseRect.left, baseRect.top, baseRect.right - baseRect.left, baseRect.bottom - baseRect.top);-1 11323 function lighten(color) { -1 11324 var amount = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : .25; -1 11325 var space = ColorSpace.get('oklch', 'lch'); -1 11326 var lightness = [ space, 'l' ]; -1 11327 return set(color, lightness, function(l) { -1 11328 return l * (1 + amount); -1 11329 }); 11226 11330 }11227 -1 function isEnclosedRect(rectA, rectB) {11228 -1 return rectA.top >= rectB.top && rectA.left >= rectB.left && rectA.bottom <= rectB.bottom && rectA.right <= rectB.right;-1 11331 function darken(color) { -1 11332 var amount = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : .25; -1 11333 var space = ColorSpace.get('oklch', 'lch'); -1 11334 var lightness = [ space, 'l' ]; -1 11335 return set(color, lightness, function(l) { -1 11336 return l * (1 - amount); -1 11337 }); 11229 11338 }11230 -1 var ROOT_LEVEL = 0;11231 -1 var DEFAULT_LEVEL = .1;11232 -1 var FLOAT_LEVEL = .2;11233 -1 var POSITION_LEVEL = .3;11234 -1 var nodeIndex = 0;11235 -1 function _createGrid() {11236 -1 var root = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : document.body;11237 -1 var rootGrid = arguments.length > 1 ? arguments[1] : undefined;11238 -1 var parentVNode = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;11239 -1 if (cache_default.get('gridCreated') && !parentVNode) {11240 -1 return constants_default.gridSize;11241 -1 }11242 -1 cache_default.set('gridCreated', true);11243 -1 if (!parentVNode) {11244 -1 var _rootGrid;11245 -1 var vNode = get_node_from_tree_default(document.documentElement);11246 -1 if (!vNode) {11247 -1 vNode = new virtual_node_default(document.documentElement);11248 -1 }11249 -1 nodeIndex = 0;11250 -1 vNode._stackingOrder = [ createStackingContext(ROOT_LEVEL, nodeIndex++, null) ];11251 -1 (_rootGrid = rootGrid) !== null && _rootGrid !== void 0 ? _rootGrid : rootGrid = new Grid();11252 -1 addNodeToGrid(rootGrid, vNode);11253 -1 if (get_scroll_default(vNode.actualNode)) {11254 -1 var subGrid = new Grid(vNode);11255 -1 vNode._subGrid = subGrid;11256 -1 }11257 -1 }11258 -1 var treeWalker = document.createTreeWalker(root, window.NodeFilter.SHOW_ELEMENT, null, false);11259 -1 var node = parentVNode ? treeWalker.nextNode() : treeWalker.currentNode;11260 -1 while (node) {11261 -1 var _vNode = get_node_from_tree_default(node);11262 -1 if (_vNode && _vNode.parent) {11263 -1 parentVNode = _vNode.parent;11264 -1 } else if (node.assignedSlot) {11265 -1 parentVNode = get_node_from_tree_default(node.assignedSlot);11266 -1 } else if (node.parentElement) {11267 -1 parentVNode = get_node_from_tree_default(node.parentElement);11268 -1 } else if (node.parentNode && get_node_from_tree_default(node.parentNode)) {11269 -1 parentVNode = get_node_from_tree_default(node.parentNode);11270 -1 }11271 -1 if (!_vNode) {11272 -1 _vNode = new axe.VirtualNode(node, parentVNode);11273 -1 }11274 -1 _vNode._stackingOrder = createStackingOrder(_vNode, parentVNode, nodeIndex++);11275 -1 var scrollRegionParent = findScrollRegionParent(_vNode, parentVNode);11276 -1 var grid = scrollRegionParent ? scrollRegionParent._subGrid : rootGrid;11277 -1 if (get_scroll_default(_vNode.actualNode)) {11278 -1 var _subGrid = new Grid(_vNode);11279 -1 _vNode._subGrid = _subGrid;11280 -1 }11281 -1 var rect = _vNode.boundingClientRect;11282 -1 if (rect.width !== 0 && rect.height !== 0 && _isVisibleOnScreen(node)) {11283 -1 addNodeToGrid(grid, _vNode);11284 -1 }11285 -1 if (is_shadow_root_default(node)) {11286 -1 _createGrid(node.shadowRoot, grid, _vNode);11287 -1 }11288 -1 node = treeWalker.nextNode();-1 11339 var variations = Object.freeze({ -1 11340 __proto__: null, -1 11341 lighten: lighten, -1 11342 darken: darken -1 11343 }); -1 11344 function mix(c12, c22) { -1 11345 var p2 = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : .5; -1 11346 var o = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {}; -1 11347 var _ref19 = [ getColor(c12), getColor(c22) ]; -1 11348 c12 = _ref19[0]; -1 11349 c22 = _ref19[1]; -1 11350 if (type(p2) === 'object') { -1 11351 var _ref20 = [ .5, p2 ]; -1 11352 p2 = _ref20[0]; -1 11353 o = _ref20[1]; 11289 11354 }11290 -1 return constants_default.gridSize;-1 11355 var _o3 = o, space = _o3.space, outputSpace = _o3.outputSpace, premultiplied = _o3.premultiplied; -1 11356 var r = range(c12, c22, { -1 11357 space: space, -1 11358 outputSpace: outputSpace, -1 11359 premultiplied: premultiplied -1 11360 }); -1 11361 return r(p2); 11291 11362 }11292 -1 function isStackingContext(vNode, parentVNode) {11293 -1 var position = vNode.getComputedStylePropertyValue('position');11294 -1 var zIndex = vNode.getComputedStylePropertyValue('z-index');11295 -1 if (position === 'fixed' || position === 'sticky') {11296 -1 return true;11297 -1 }11298 -1 if (zIndex !== 'auto' && position !== 'static') {11299 -1 return true;-1 11363 function steps(c12, c22) { -1 11364 var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; -1 11365 var colorRange; -1 11366 if (isRange(c12)) { -1 11367 colorRange = c12; -1 11368 options = c22; -1 11369 var _colorRange$rangeArgs = _slicedToArray(colorRange.rangeArgs.colors, 2); -1 11370 c12 = _colorRange$rangeArgs[0]; -1 11371 c22 = _colorRange$rangeArgs[1]; 11300 11372 }11301 -1 if (vNode.getComputedStylePropertyValue('opacity') !== '1') {11302 -1 return true;-1 11373 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, _excluded5); -1 11374 if (!colorRange) { -1 11375 var _ref21 = [ getColor(c12), getColor(c22) ]; -1 11376 c12 = _ref21[0]; -1 11377 c22 = _ref21[1]; -1 11378 colorRange = range(c12, c22, rangeOptions); 11303 11379 }11304 -1 var transform = vNode.getComputedStylePropertyValue('-webkit-transform') || vNode.getComputedStylePropertyValue('-ms-transform') || vNode.getComputedStylePropertyValue('transform') || 'none';11305 -1 if (transform !== 'none') {11306 -1 return true;-1 11380 var totalDelta = deltaE(c12, c22); -1 11381 var actualSteps = maxDeltaE > 0 ? Math.max(steps2, Math.ceil(totalDelta / maxDeltaE) + 1) : steps2; -1 11382 var ret = []; -1 11383 if (maxSteps !== void 0) { -1 11384 actualSteps = Math.min(actualSteps, maxSteps); 11307 11385 }11308 -1 var mixBlendMode = vNode.getComputedStylePropertyValue('mix-blend-mode');11309 -1 if (mixBlendMode && mixBlendMode !== 'normal') {11310 -1 return true;-1 11386 if (actualSteps === 1) { -1 11387 ret = [ { -1 11388 p: .5, -1 11389 color: colorRange(.5) -1 11390 } ]; -1 11391 } else { -1 11392 var step = 1 / (actualSteps - 1); -1 11393 ret = Array.from({ -1 11394 length: actualSteps -1 11395 }, function(_, i) { -1 11396 var p2 = i * step; -1 11397 return { -1 11398 p: p2, -1 11399 color: colorRange(p2) -1 11400 }; -1 11401 }); 11311 11402 }11312 -1 var filter = vNode.getComputedStylePropertyValue('filter');11313 -1 if (filter && filter !== 'none') {11314 -1 return true;-1 11403 if (maxDeltaE > 0) { -1 11404 var maxDelta = ret.reduce(function(acc, cur, i) { -1 11405 if (i === 0) { -1 11406 return 0; -1 11407 } -1 11408 var \u0394\u0395 = deltaE(cur.color, ret[i - 1].color, deltaEMethod); -1 11409 return Math.max(acc, \u0394\u0395); -1 11410 }, 0); -1 11411 while (maxDelta > maxDeltaE) { -1 11412 maxDelta = 0; -1 11413 for (var i = 1; i < ret.length && ret.length < maxSteps; i++) { -1 11414 var prev = ret[i - 1]; -1 11415 var cur = ret[i]; -1 11416 var p2 = (cur.p + prev.p) / 2; -1 11417 var _color = colorRange(p2); -1 11418 maxDelta = Math.max(maxDelta, deltaE(_color, prev.color), deltaE(_color, cur.color)); -1 11419 ret.splice(i, 0, { -1 11420 p: p2, -1 11421 color: colorRange(p2) -1 11422 }); -1 11423 i++; -1 11424 } -1 11425 } 11315 11426 }11316 -1 var perspective = vNode.getComputedStylePropertyValue('perspective');11317 -1 if (perspective && perspective !== 'none') {11318 -1 return true;-1 11427 ret = ret.map(function(a2) { -1 11428 return a2.color; -1 11429 }); -1 11430 return ret; -1 11431 } -1 11432 function range(color1, color2) { -1 11433 var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; -1 11434 if (isRange(color1)) { -1 11435 var r = color1, options2 = color2; -1 11436 return range.apply(void 0, _toConsumableArray(r.rangeArgs.colors).concat([ _extends({}, r.rangeArgs.options, options2) ])); 11319 11437 }11320 -1 var clipPath = vNode.getComputedStylePropertyValue('clip-path');11321 -1 if (clipPath && clipPath !== 'none') {11322 -1 return true;-1 11438 var space = options.space, outputSpace = options.outputSpace, progression = options.progression, premultiplied = options.premultiplied; -1 11439 color1 = getColor(color1); -1 11440 color2 = getColor(color2); -1 11441 color1 = clone(color1); -1 11442 color2 = clone(color2); -1 11443 var rangeArgs = { -1 11444 colors: [ color1, color2 ], -1 11445 options: options -1 11446 }; -1 11447 if (space) { -1 11448 space = ColorSpace.get(space); -1 11449 } else { -1 11450 space = ColorSpace.registry[defaults.interpolationSpace] || color1.space; 11323 11451 }11324 -1 var mask = vNode.getComputedStylePropertyValue('-webkit-mask') || vNode.getComputedStylePropertyValue('mask') || 'none';11325 -1 if (mask !== 'none') {11326 -1 return true;11327 -1 }11328 -1 var maskImage = vNode.getComputedStylePropertyValue('-webkit-mask-image') || vNode.getComputedStylePropertyValue('mask-image') || 'none';11329 -1 if (maskImage !== 'none') {11330 -1 return true;11331 -1 }11332 -1 var maskBorder = vNode.getComputedStylePropertyValue('-webkit-mask-border') || vNode.getComputedStylePropertyValue('mask-border') || 'none';11333 -1 if (maskBorder !== 'none') {11334 -1 return true;11335 -1 }11336 -1 if (vNode.getComputedStylePropertyValue('isolation') === 'isolate') {11337 -1 return true;11338 -1 }11339 -1 var willChange = vNode.getComputedStylePropertyValue('will-change');11340 -1 if (willChange === 'transform' || willChange === 'opacity') {11341 -1 return true;11342 -1 }11343 -1 if (vNode.getComputedStylePropertyValue('-webkit-overflow-scrolling') === 'touch') {11344 -1 return true;11345 -1 }11346 -1 var contain = vNode.getComputedStylePropertyValue('contain');11347 -1 if ([ 'layout', 'paint', 'strict', 'content' ].includes(contain)) {11348 -1 return true;11349 -1 }11350 -1 if (zIndex !== 'auto' && isFlexOrGridContainer(parentVNode)) {11351 -1 return true;11352 -1 }11353 -1 return false;11354 -1 }11355 -1 function isFlexOrGridContainer(vNode) {11356 -1 if (!vNode) {11357 -1 return false;-1 11452 outputSpace = outputSpace ? ColorSpace.get(outputSpace) : space; -1 11453 color1 = to(color1, space); -1 11454 color2 = to(color2, space); -1 11455 color1 = toGamut(color1); -1 11456 color2 = toGamut(color2); -1 11457 if (space.coords.h && space.coords.h.type === 'angle') { -1 11458 var arc = options.hue = options.hue || 'shorter'; -1 11459 var hue = [ space, 'h' ]; -1 11460 var _ref22 = [ get(color1, hue), get(color2, hue) ], \u03b81 = _ref22[0], \u03b82 = _ref22[1]; -1 11461 var _adjust = adjust(arc, [ \u03b81, \u03b82 ]); -1 11462 var _adjust2 = _slicedToArray(_adjust, 2); -1 11463 \u03b81 = _adjust2[0]; -1 11464 \u03b82 = _adjust2[1]; -1 11465 set(color1, hue, \u03b81); -1 11466 set(color2, hue, \u03b82); 11358 11467 }11359 -1 var display2 = vNode.getComputedStylePropertyValue('display');11360 -1 return [ 'flex', 'inline-flex', 'grid', 'inline-grid' ].includes(display2);11361 -1 }11362 -1 function createStackingOrder(vNode, parentVNode, treeOrder) {11363 -1 var stackingOrder = parentVNode._stackingOrder.slice();11364 -1 if (isStackingContext(vNode, parentVNode)) {11365 -1 var index = stackingOrder.findIndex(function(_ref20) {11366 -1 var stackLevel2 = _ref20.stackLevel;11367 -1 return [ ROOT_LEVEL, FLOAT_LEVEL, POSITION_LEVEL ].includes(stackLevel2);-1 11468 if (premultiplied) { -1 11469 color1.coords = color1.coords.map(function(c4) { -1 11470 return c4 * color1.alpha; -1 11471 }); -1 11472 color2.coords = color2.coords.map(function(c4) { -1 11473 return c4 * color2.alpha; 11368 11474 });11369 -1 if (index !== -1) {11370 -1 stackingOrder.splice(index, stackingOrder.length - index);11371 -1 }11372 -1 }11373 -1 var stackLevel = getStackLevel(vNode, parentVNode);11374 -1 if (stackLevel !== null) {11375 -1 stackingOrder.push(createStackingContext(stackLevel, treeOrder, vNode));11376 -1 }11377 -1 return stackingOrder;11378 -1 }11379 -1 function createStackingContext(stackLevel, treeOrder, vNode) {11380 -1 return {11381 -1 stackLevel: stackLevel,11382 -1 treeOrder: treeOrder,11383 -1 vNode: vNode11384 -1 };11385 -1 }11386 -1 function getStackLevel(vNode, parentVNode) {11387 -1 var zIndex = getRealZIndex(vNode, parentVNode);11388 -1 if (![ 'auto', '0' ].includes(zIndex)) {11389 -1 return parseInt(zIndex);11390 -1 }11391 -1 if (vNode.getComputedStylePropertyValue('position') !== 'static') {11392 -1 return POSITION_LEVEL;11393 -1 }11394 -1 if (vNode.getComputedStylePropertyValue('float') !== 'none') {11395 -1 return FLOAT_LEVEL;11396 -1 }11397 -1 if (isStackingContext(vNode, parentVNode)) {11398 -1 return DEFAULT_LEVEL;11399 -1 }11400 -1 return null;11401 -1 }11402 -1 function getRealZIndex(vNode, parentVNode) {11403 -1 var position = vNode.getComputedStylePropertyValue('position');11404 -1 if (position === 'static' && !isFlexOrGridContainer(parentVNode)) {11405 -1 return 'auto';11406 11475 }11407 -1 return vNode.getComputedStylePropertyValue('z-index');11408 -1 }11409 -1 function findScrollRegionParent(vNode, parentVNode) {11410 -1 var scrollRegionParent = null;11411 -1 var checkedNodes = [ vNode ];11412 -1 while (parentVNode) {11413 -1 if (get_scroll_default(parentVNode.actualNode)) {11414 -1 scrollRegionParent = parentVNode;11415 -1 break;-1 11476 return Object.assign(function(p2) { -1 11477 p2 = progression ? progression(p2) : p2; -1 11478 var coords = color1.coords.map(function(start, i) { -1 11479 var end = color2.coords[i]; -1 11480 return interpolate(start, end, p2); -1 11481 }); -1 11482 var alpha = interpolate(color1.alpha, color2.alpha, p2); -1 11483 var ret = { -1 11484 space: space, -1 11485 coords: coords, -1 11486 alpha: alpha -1 11487 }; -1 11488 if (premultiplied) { -1 11489 ret.coords = ret.coords.map(function(c4) { -1 11490 return c4 / alpha; -1 11491 }); 11416 11492 }11417 -1 if (parentVNode._scrollRegionParent) {11418 -1 scrollRegionParent = parentVNode._scrollRegionParent;11419 -1 break;-1 11493 if (outputSpace !== space) { -1 11494 ret = to(ret, outputSpace); 11420 11495 }11421 -1 checkedNodes.push(parentVNode);11422 -1 parentVNode = get_node_from_tree_default(parentVNode.actualNode.parentElement || parentVNode.actualNode.parentNode);11423 -1 }11424 -1 checkedNodes.forEach(function(virtualNode) {11425 -1 return virtualNode._scrollRegionParent = scrollRegionParent;-1 11496 return ret; -1 11497 }, { -1 11498 rangeArgs: rangeArgs 11426 11499 });11427 -1 return scrollRegionParent;11428 11500 }11429 -1 function addNodeToGrid(grid, vNode) {11430 -1 var overflowHiddenNodes = get_overflow_hidden_ancestors_default(vNode);11431 -1 vNode.clientRects.forEach(function(clientRect) {11432 -1 var _vNode$_grid;11433 -1 var visibleRect = overflowHiddenNodes.reduce(function(rect, overflowNode) {11434 -1 return rect && _getIntersectionRect(rect, overflowNode.boundingClientRect);11435 -1 }, clientRect);11436 -1 if (!visibleRect) {11437 -1 return;11438 -1 }11439 -1 (_vNode$_grid = vNode._grid) !== null && _vNode$_grid !== void 0 ? _vNode$_grid : vNode._grid = grid;11440 -1 var gridRect = grid.getGridPositionOfRect(visibleRect);11441 -1 grid.loopGridPosition(gridRect, function(gridCell) {11442 -1 if (!gridCell.includes(vNode)) {11443 -1 gridCell.push(vNode);11444 -1 }11445 -1 });-1 11501 function isRange(val) { -1 11502 return type(val) === 'function' && !!val.rangeArgs; -1 11503 } -1 11504 defaults.interpolationSpace = 'lab'; -1 11505 function register(Color3) { -1 11506 Color3.defineFunction('mix', mix, { -1 11507 returns: 'color' -1 11508 }); -1 11509 Color3.defineFunction('range', range, { -1 11510 returns: 'function<color>' -1 11511 }); -1 11512 Color3.defineFunction('steps', steps, { -1 11513 returns: 'array<color>' 11446 11514 }); 11447 11515 }11448 -1 var Grid = function() {11449 -1 function Grid() {11450 -1 var container = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;11451 -1 _classCallCheck(this, Grid);11452 -1 this.container = container;11453 -1 this.cells = [];11454 -1 }11455 -1 return _createClass(Grid, [ {11456 -1 key: 'toGridIndex',11457 -1 value: function toGridIndex(num) {11458 -1 return Math.floor(num / constants_default.gridSize);11459 -1 }11460 -1 }, {11461 -1 key: 'getCellFromPoint',11462 -1 value: function getCellFromPoint(_ref21) {11463 -1 var _this$cells, _row;11464 -1 var x = _ref21.x, y = _ref21.y;11465 -1 assert_default(this.boundaries, 'Grid does not have cells added');11466 -1 var rowIndex = this.toGridIndex(y);11467 -1 var colIndex = this.toGridIndex(x);11468 -1 assert_default(_isPointInRect({11469 -1 y: rowIndex,11470 -1 x: colIndex11471 -1 }, this.boundaries), 'Element midpoint exceeds the grid bounds');11472 -1 var row = (_this$cells = this.cells[rowIndex - this.cells._negativeIndex]) !== null && _this$cells !== void 0 ? _this$cells : [];11473 -1 return (_row = row[colIndex - row._negativeIndex]) !== null && _row !== void 0 ? _row : [];-1 11516 var interpolation = Object.freeze({ -1 11517 __proto__: null, -1 11518 mix: mix, -1 11519 steps: steps, -1 11520 range: range, -1 11521 isRange: isRange, -1 11522 register: register -1 11523 }); -1 11524 var HSL = new ColorSpace({ -1 11525 id: 'hsl', -1 11526 name: 'HSL', -1 11527 coords: { -1 11528 h: { -1 11529 refRange: [ 0, 360 ], -1 11530 type: 'angle', -1 11531 name: 'Hue' -1 11532 }, -1 11533 s: { -1 11534 range: [ 0, 100 ], -1 11535 name: 'Saturation' -1 11536 }, -1 11537 l: { -1 11538 range: [ 0, 100 ], -1 11539 name: 'Lightness' 11474 11540 }11475 -1 }, {11476 -1 key: 'loopGridPosition',11477 -1 value: function loopGridPosition(gridPosition, callback) {11478 -1 var _gridPosition = gridPosition, left = _gridPosition.left, right = _gridPosition.right, top = _gridPosition.top, bottom = _gridPosition.bottom;11479 -1 if (this.boundaries) {11480 -1 gridPosition = _getBoundingRect(this.boundaries, gridPosition);-1 11541 }, -1 11542 base: sRGB, -1 11543 fromBase: function fromBase(rgb) { -1 11544 var max2 = Math.max.apply(Math, _toConsumableArray(rgb)); -1 11545 var min = Math.min.apply(Math, _toConsumableArray(rgb)); -1 11546 var _rgb = _slicedToArray(rgb, 3), r = _rgb[0], g2 = _rgb[1], b2 = _rgb[2]; -1 11547 var h = NaN, s = 0, l = (min + max2) / 2; -1 11548 var d2 = max2 - min; -1 11549 if (d2 !== 0) { -1 11550 s = l === 0 || l === 1 ? 0 : (max2 - l) / Math.min(l, 1 - l); -1 11551 switch (max2) { -1 11552 case r: -1 11553 h = (g2 - b2) / d2 + (g2 < b2 ? 6 : 0); -1 11554 break; -1 11555 -1 11556 case g2: -1 11557 h = (b2 - r) / d2 + 2; -1 11558 break; -1 11559 -1 11560 case b2: -1 11561 h = (r - g2) / d2 + 4; 11481 11562 }11482 -1 this.boundaries = gridPosition;11483 -1 loopNegativeIndexMatrix(this.cells, top, bottom, function(gridRow, row) {11484 -1 loopNegativeIndexMatrix(gridRow, left, right, function(gridCell, col) {11485 -1 callback(gridCell, {11486 -1 row: row,11487 -1 col: col11488 -1 });11489 -1 });11490 -1 });-1 11563 h = h * 60; 11491 11564 }11492 -1 }, {11493 -1 key: 'getGridPositionOfRect',11494 -1 value: function getGridPositionOfRect(_ref22) {11495 -1 var top = _ref22.top, right = _ref22.right, bottom = _ref22.bottom, left = _ref22.left;11496 -1 var margin = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;11497 -1 top = this.toGridIndex(top - margin);11498 -1 right = this.toGridIndex(right + margin - 1);11499 -1 bottom = this.toGridIndex(bottom + margin - 1);11500 -1 left = this.toGridIndex(left - margin);11501 -1 return new window.DOMRect(left, top, right - left, bottom - top);-1 11565 return [ h, s * 100, l * 100 ]; -1 11566 }, -1 11567 toBase: function toBase(hsl) { -1 11568 var _hsl = _slicedToArray(hsl, 3), h = _hsl[0], s = _hsl[1], l = _hsl[2]; -1 11569 h = h % 360; -1 11570 if (h < 0) { -1 11571 h += 360; 11502 11572 }11503 -1 } ]);11504 -1 }();11505 -1 function loopNegativeIndexMatrix(matrix, start, end, callback) {11506 -1 var _matrix$_negativeInde;11507 -1 (_matrix$_negativeInde = matrix._negativeIndex) !== null && _matrix$_negativeInde !== void 0 ? _matrix$_negativeInde : matrix._negativeIndex = 0;11508 -1 if (start < matrix._negativeIndex) {11509 -1 for (var _i6 = 0; _i6 < matrix._negativeIndex - start; _i6++) {11510 -1 matrix.splice(0, 0, []);-1 11573 s /= 100; -1 11574 l /= 100; -1 11575 function f(n2) { -1 11576 var k = (n2 + h / 30) % 12; -1 11577 var a2 = s * Math.min(l, 1 - l); -1 11578 return l - a2 * Math.max(-1, Math.min(k - 3, 9 - k, 1)); 11511 11579 }11512 -1 matrix._negativeIndex = start;11513 -1 }11514 -1 var startOffset = start - matrix._negativeIndex;11515 -1 var endOffset = end - matrix._negativeIndex;11516 -1 for (var index = startOffset; index <= endOffset; index++) {11517 -1 var _index, _matrix$_index;11518 -1 (_matrix$_index = matrix[_index = index]) !== null && _matrix$_index !== void 0 ? _matrix$_index : matrix[_index] = [];11519 -1 callback(matrix[index], index + matrix._negativeIndex);11520 -1 }11521 -1 }11522 -1 function _findNearbyElms(vNode) {11523 -1 var _vNode$_grid2;11524 -1 var margin = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;11525 -1 _createGrid();11526 -1 if (!((_vNode$_grid2 = vNode._grid) !== null && _vNode$_grid2 !== void 0 && (_vNode$_grid2 = _vNode$_grid2.cells) !== null && _vNode$_grid2 !== void 0 && _vNode$_grid2.length)) {11527 -1 return [];11528 -1 }11529 -1 var rect = vNode.boundingClientRect;11530 -1 var grid = vNode._grid;11531 -1 var selfIsFixed = hasFixedPosition(vNode);11532 -1 var gridPosition = grid.getGridPositionOfRect(rect, margin);11533 -1 var neighbors = [];11534 -1 grid.loopGridPosition(gridPosition, function(vNeighbors) {11535 -1 var _iterator4 = _createForOfIteratorHelper(vNeighbors), _step4;11536 -1 try {11537 -1 for (_iterator4.s(); !(_step4 = _iterator4.n()).done; ) {11538 -1 var vNeighbor = _step4.value;11539 -1 if (vNeighbor && vNeighbor !== vNode && !neighbors.includes(vNeighbor) && selfIsFixed === hasFixedPosition(vNeighbor)) {11540 -1 neighbors.push(vNeighbor);11541 -1 }11542 -1 }11543 -1 } catch (err) {11544 -1 _iterator4.e(err);11545 -1 } finally {11546 -1 _iterator4.f();-1 11580 return [ f(0), f(8), f(4) ]; -1 11581 }, -1 11582 formats: { -1 11583 hsl: { -1 11584 toGamut: true, -1 11585 coords: [ '<number> | <angle>', '<percentage>', '<percentage>' ] -1 11586 }, -1 11587 hsla: { -1 11588 coords: [ '<number> | <angle>', '<percentage>', '<percentage>' ], -1 11589 commas: true, -1 11590 lastAlpha: true 11547 11591 }11548 -1 });11549 -1 return neighbors;11550 -1 }11551 -1 var hasFixedPosition = memoize_default(function(vNode) {11552 -1 if (!vNode) {11553 -1 return false;11554 11592 }11555 -1 if (vNode.getComputedStylePropertyValue('position') === 'fixed') {11556 -1 return true;11557 -1 }11558 -1 return hasFixedPosition(vNode.parent);11559 11593 });11560 -1 var getModalDialog = memoize_default(function getModalDialogMemoized() {11561 -1 var _dialogs$find;11562 -1 if (!axe._tree) {11563 -1 return null;11564 -1 }11565 -1 var dialogs = query_selector_all_filter_default(axe._tree[0], 'dialog[open]', function(vNode) {11566 -1 var rect = vNode.boundingClientRect;11567 -1 var stack = document.elementsFromPoint(rect.left + 1, rect.top + 1);11568 -1 return stack.includes(vNode.actualNode) && _isVisibleOnScreen(vNode);11569 -1 });11570 -1 if (!dialogs.length) {11571 -1 return null;11572 -1 }11573 -1 var modalDialog = dialogs.find(function(dialog) {11574 -1 var rect = dialog.boundingClientRect;11575 -1 var stack = document.elementsFromPoint(rect.left - 10, rect.top - 10);11576 -1 return stack.includes(dialog.actualNode);11577 -1 });11578 -1 if (modalDialog) {11579 -1 return modalDialog;11580 -1 }11581 -1 return (_dialogs$find = dialogs.find(function(dialog) {11582 -1 var _getNodeFromGrid;11583 -1 var _ref23 = (_getNodeFromGrid = getNodeFromGrid(dialog)) !== null && _getNodeFromGrid !== void 0 ? _getNodeFromGrid : {}, vNode = _ref23.vNode, rect = _ref23.rect;11584 -1 if (!vNode) {11585 -1 return false;-1 11594 var HSV = new ColorSpace({ -1 11595 id: 'hsv', -1 11596 name: 'HSV', -1 11597 coords: { -1 11598 h: { -1 11599 refRange: [ 0, 360 ], -1 11600 type: 'angle', -1 11601 name: 'Hue' -1 11602 }, -1 11603 s: { -1 11604 range: [ 0, 100 ], -1 11605 name: 'Saturation' -1 11606 }, -1 11607 v: { -1 11608 range: [ 0, 100 ], -1 11609 name: 'Value' -1 11610 } -1 11611 }, -1 11612 base: HSL, -1 11613 fromBase: function fromBase(hsl) { -1 11614 var _hsl2 = _slicedToArray(hsl, 3), h = _hsl2[0], s = _hsl2[1], l = _hsl2[2]; -1 11615 s /= 100; -1 11616 l /= 100; -1 11617 var v = l + s * Math.min(l, 1 - l); -1 11618 return [ h, v === 0 ? 0 : 200 * (1 - l / v), 100 * v ]; -1 11619 }, -1 11620 toBase: function toBase(hsv) { -1 11621 var _hsv = _slicedToArray(hsv, 3), h = _hsv[0], s = _hsv[1], v = _hsv[2]; -1 11622 s /= 100; -1 11623 v /= 100; -1 11624 var l = v * (1 - s / 2); -1 11625 return [ h, l === 0 || l === 1 ? 0 : (v - l) / Math.min(l, 1 - l) * 100, l * 100 ]; -1 11626 }, -1 11627 formats: { -1 11628 color: { -1 11629 toGamut: true 11586 11630 }11587 -1 var stack = document.elementsFromPoint(rect.left + 1, rect.top + 1);11588 -1 return !stack.includes(vNode.actualNode);11589 -1 })) !== null && _dialogs$find !== void 0 ? _dialogs$find : null;11590 -1 });11591 -1 var get_modal_dialog_default = getModalDialog;11592 -1 function getNodeFromGrid(dialog) {11593 -1 _createGrid();11594 -1 var grid = axe._tree[0]._grid;11595 -1 var viewRect = new window.DOMRect(0, 0, window.innerWidth, window.innerHeight);11596 -1 if (!grid) {11597 -1 return;11598 11631 }11599 -1 for (var row = 0; row < grid.cells.length; row++) {11600 -1 var cols = grid.cells[row];11601 -1 if (!cols) {11602 -1 continue;-1 11632 }); -1 11633 var hwb = new ColorSpace({ -1 11634 id: 'hwb', -1 11635 name: 'HWB', -1 11636 coords: { -1 11637 h: { -1 11638 refRange: [ 0, 360 ], -1 11639 type: 'angle', -1 11640 name: 'Hue' -1 11641 }, -1 11642 w: { -1 11643 range: [ 0, 100 ], -1 11644 name: 'Whiteness' -1 11645 }, -1 11646 b: { -1 11647 range: [ 0, 100 ], -1 11648 name: 'Blackness' 11603 11649 }11604 -1 for (var col = 0; col < cols.length; col++) {11605 -1 var cells = cols[col];11606 -1 if (!cells) {11607 -1 continue;11608 -1 }11609 -1 for (var _i7 = 0; _i7 < cells.length; _i7++) {11610 -1 var vNode = cells[_i7];11611 -1 var rect = vNode.boundingClientRect;11612 -1 var intersection = _getIntersectionRect(rect, viewRect);11613 -1 if (vNode.props.nodeName !== 'html' && vNode !== dialog && vNode.getComputedStylePropertyValue('pointer-events') !== 'none' && intersection) {11614 -1 return {11615 -1 vNode: vNode,11616 -1 rect: intersection11617 -1 };11618 -1 }11619 -1 }-1 11650 }, -1 11651 base: HSV, -1 11652 fromBase: function fromBase(hsv) { -1 11653 var _hsv2 = _slicedToArray(hsv, 3), h = _hsv2[0], s = _hsv2[1], v = _hsv2[2]; -1 11654 return [ h, v * (100 - s) / 100, 100 - v ]; -1 11655 }, -1 11656 toBase: function toBase(hwb2) { -1 11657 var _hwb = _slicedToArray(hwb2, 3), h = _hwb[0], w = _hwb[1], b2 = _hwb[2]; -1 11658 w /= 100; -1 11659 b2 /= 100; -1 11660 var sum = w + b2; -1 11661 if (sum >= 1) { -1 11662 var gray = w / sum; -1 11663 return [ h, 0, gray * 100 ]; 11620 11664 }11621 -1 }11622 -1 }11623 -1 function _isInert(vNode) {11624 -1 var _ref24 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, skipAncestors = _ref24.skipAncestors, isAncestor = _ref24.isAncestor;11625 -1 if (skipAncestors) {11626 -1 return isInertSelf(vNode, isAncestor);11627 -1 }11628 -1 return isInertAncestors(vNode, isAncestor);11629 -1 }11630 -1 var isInertSelf = memoize_default(function isInertSelfMemoized(vNode, isAncestor) {11631 -1 if (vNode.hasAttr('inert')) {11632 -1 return true;11633 -1 }11634 -1 if (!isAncestor && vNode.actualNode) {11635 -1 var modalDialog = get_modal_dialog_default();11636 -1 if (modalDialog && !_contains(modalDialog, vNode)) {11637 -1 return true;-1 11665 var v = 1 - b2; -1 11666 var s = v === 0 ? 0 : 1 - w / v; -1 11667 return [ h, s * 100, v * 100 ]; -1 11668 }, -1 11669 formats: { -1 11670 hwb: { -1 11671 toGamut: true, -1 11672 coords: [ '<number> | <angle>', '<percentage>', '<percentage>' ] 11638 11673 } 11639 11674 }11640 -1 return false;11641 11675 });11642 -1 var isInertAncestors = memoize_default(function isInertAncestorsMemoized(vNode, isAncestor) {11643 -1 if (isInertSelf(vNode, isAncestor)) {11644 -1 return true;11645 -1 }11646 -1 if (!vNode.parent) {11647 -1 return false;-1 11676 var toXYZ_M$2 = [ [ .5766690429101305, .1855582379065463, .1882286462349947 ], [ .29734497525053605, .6273635662554661, .07529145849399788 ], [ .02703136138641234, .07068885253582723, .9913375368376388 ] ]; -1 11677 var fromXYZ_M$2 = [ [ 2.0415879038107465, -.5650069742788596, -.34473135077832956 ], [ -.9692436362808795, 1.8759675015077202, .04155505740717557 ], [ .013444280632031142, -.11836239223101838, 1.0151749943912054 ] ]; -1 11678 var A98Linear = new RGBColorSpace({ -1 11679 id: 'a98rgb-linear', -1 11680 name: 'Linear Adobe\xae 98 RGB compatible', -1 11681 white: 'D65', -1 11682 toXYZ_M: toXYZ_M$2, -1 11683 fromXYZ_M: fromXYZ_M$2 -1 11684 }); -1 11685 var a98rgb = new RGBColorSpace({ -1 11686 id: 'a98rgb', -1 11687 name: 'Adobe\xae 98 RGB compatible', -1 11688 base: A98Linear, -1 11689 toBase: function toBase(RGB) { -1 11690 return RGB.map(function(val) { -1 11691 return Math.pow(Math.abs(val), 563 / 256) * Math.sign(val); -1 11692 }); -1 11693 }, -1 11694 fromBase: function fromBase(RGB) { -1 11695 return RGB.map(function(val) { -1 11696 return Math.pow(Math.abs(val), 256 / 563) * Math.sign(val); -1 11697 }); -1 11698 }, -1 11699 formats: { -1 11700 color: { -1 11701 id: 'a98-rgb' -1 11702 } 11648 11703 }11649 -1 return isInertAncestors(vNode.parent, true);11650 11704 });11651 -1 var allowedDisabledNodeNames = [ 'button', 'command', 'fieldset', 'keygen', 'optgroup', 'option', 'select', 'textarea', 'input' ];11652 -1 function isDisabledAttrAllowed(nodeName2) {11653 -1 return allowedDisabledNodeNames.includes(nodeName2);11654 -1 }11655 -1 function focusDisabled(el) {11656 -1 var _nodeLookup3 = _nodeLookup(el), vNode = _nodeLookup3.vNode;11657 -1 if (isDisabledAttrAllowed(vNode.props.nodeName) && vNode.hasAttr('disabled') || _isInert(vNode)) {11658 -1 return true;-1 11705 var toXYZ_M$1 = [ [ .7977604896723027, .13518583717574031, .0313493495815248 ], [ .2880711282292934, .7118432178101014, 8565396060525902e-20 ], [ 0, 0, .8251046025104601 ] ]; -1 11706 var fromXYZ_M$1 = [ [ 1.3457989731028281, -.25558010007997534, -.05110628506753401 ], [ -.5446224939028347, 1.5082327413132781, .02053603239147973 ], [ 0, 0, 1.2119675456389454 ] ]; -1 11707 var ProPhotoLinear = new RGBColorSpace({ -1 11708 id: 'prophoto-linear', -1 11709 name: 'Linear ProPhoto', -1 11710 white: 'D50', -1 11711 base: XYZ_D50, -1 11712 toXYZ_M: toXYZ_M$1, -1 11713 fromXYZ_M: fromXYZ_M$1 -1 11714 }); -1 11715 var Et = 1 / 512; -1 11716 var Et2 = 16 / 512; -1 11717 var prophoto = new RGBColorSpace({ -1 11718 id: 'prophoto', -1 11719 name: 'ProPhoto', -1 11720 base: ProPhotoLinear, -1 11721 toBase: function toBase(RGB) { -1 11722 return RGB.map(function(v) { -1 11723 return v < Et2 ? v / 16 : Math.pow(v, 1.8); -1 11724 }); -1 11725 }, -1 11726 fromBase: function fromBase(RGB) { -1 11727 return RGB.map(function(v) { -1 11728 return v >= Et ? Math.pow(v, 1 / 1.8) : 16 * v; -1 11729 }); -1 11730 }, -1 11731 formats: { -1 11732 color: { -1 11733 id: 'prophoto-rgb' -1 11734 } 11659 11735 }11660 -1 var parentNode = vNode.parent;11661 -1 var ancestors = [];11662 -1 var fieldsetDisabled = false;11663 -1 while (parentNode && parentNode.shadowId === vNode.shadowId && !fieldsetDisabled) {11664 -1 ancestors.push(parentNode);11665 -1 if (parentNode.props.nodeName === 'legend') {11666 -1 break;-1 11736 }); -1 11737 var oklch = new ColorSpace({ -1 11738 id: 'oklch', -1 11739 name: 'OKLCh', -1 11740 coords: { -1 11741 l: { -1 11742 refRange: [ 0, 1 ], -1 11743 name: 'Lightness' -1 11744 }, -1 11745 c: { -1 11746 refRange: [ 0, .4 ], -1 11747 name: 'Chroma' -1 11748 }, -1 11749 h: { -1 11750 refRange: [ 0, 360 ], -1 11751 type: 'angle', -1 11752 name: 'Hue' 11667 11753 }11668 -1 if (parentNode._inDisabledFieldset !== void 0) {11669 -1 fieldsetDisabled = parentNode._inDisabledFieldset;11670 -1 break;-1 11754 }, -1 11755 white: 'D65', -1 11756 base: OKLab, -1 11757 fromBase: function fromBase(oklab) { -1 11758 var _oklab = _slicedToArray(oklab, 3), L = _oklab[0], a2 = _oklab[1], b2 = _oklab[2]; -1 11759 var h; -1 11760 var \u03b52 = 2e-4; -1 11761 if (Math.abs(a2) < \u03b52 && Math.abs(b2) < \u03b52) { -1 11762 h = NaN; -1 11763 } else { -1 11764 h = Math.atan2(b2, a2) * 180 / Math.PI; 11671 11765 }11672 -1 if (parentNode.props.nodeName === 'fieldset' && parentNode.hasAttr('disabled')) {11673 -1 fieldsetDisabled = true;-1 11766 return [ L, Math.sqrt(Math.pow(a2, 2) + Math.pow(b2, 2)), constrain(h) ]; -1 11767 }, -1 11768 toBase: function toBase(oklch2) { -1 11769 var _oklch = _slicedToArray(oklch2, 3), L = _oklch[0], C = _oklch[1], h = _oklch[2]; -1 11770 var a2, b2; -1 11771 if (isNaN(h)) { -1 11772 a2 = 0; -1 11773 b2 = 0; -1 11774 } else { -1 11775 a2 = C * Math.cos(h * Math.PI / 180); -1 11776 b2 = C * Math.sin(h * Math.PI / 180); 11674 11777 }11675 -1 parentNode = parentNode.parent;11676 -1 }11677 -1 ancestors.forEach(function(ancestor) {11678 -1 return ancestor._inDisabledFieldset = fieldsetDisabled;11679 -1 });11680 -1 if (fieldsetDisabled) {11681 -1 return true;11682 -1 }11683 -1 if (vNode.props.nodeName !== 'area') {11684 -1 if (!vNode.actualNode) {11685 -1 return false;-1 11778 return [ L, a2, b2 ]; -1 11779 }, -1 11780 formats: { -1 11781 oklch: { -1 11782 coords: [ '<number> | <percentage>', '<number>', '<number> | <angle>' ] 11686 11783 }11687 -1 return _isHiddenForEveryone(vNode);11688 -1 }11689 -1 return false;11690 -1 }11691 -1 var focus_disabled_default = focusDisabled;11692 -1 var angularSkipLinkRegex = /^\/\#/;11693 -1 var angularRouterLinkRegex = /^#[!/]/;11694 -1 function _isCurrentPageLink(anchor) {11695 -1 var _window$location;11696 -1 var href = anchor.getAttribute('href');11697 -1 if (!href || href === '#') {11698 -1 return false;11699 11784 }11700 -1 if (angularSkipLinkRegex.test(href)) {11701 -1 return true;11702 -1 }11703 -1 var hash = anchor.hash, protocol = anchor.protocol, hostname = anchor.hostname, port = anchor.port, pathname = anchor.pathname;11704 -1 if (angularRouterLinkRegex.test(hash)) {11705 -1 return false;11706 -1 }11707 -1 if (href.charAt(0) === '#') {11708 -1 return true;-1 11785 }); -1 11786 var Yw = 203; -1 11787 var n = 2610 / Math.pow(2, 14); -1 11788 var ninv = Math.pow(2, 14) / 2610; -1 11789 var m = 2523 / Math.pow(2, 5); -1 11790 var minv = Math.pow(2, 5) / 2523; -1 11791 var c1 = 3424 / Math.pow(2, 12); -1 11792 var c2 = 2413 / Math.pow(2, 7); -1 11793 var c3 = 2392 / Math.pow(2, 7); -1 11794 var rec2100Pq = new RGBColorSpace({ -1 11795 id: 'rec2100pq', -1 11796 name: 'REC.2100-PQ', -1 11797 base: REC2020Linear, -1 11798 toBase: function toBase(RGB) { -1 11799 return RGB.map(function(val) { -1 11800 var x = Math.pow(Math.max(Math.pow(val, minv) - c1, 0) / (c2 - c3 * Math.pow(val, minv)), ninv); -1 11801 return x * 1e4 / Yw; -1 11802 }); -1 11803 }, -1 11804 fromBase: function fromBase(RGB) { -1 11805 return RGB.map(function(val) { -1 11806 var x = Math.max(val * Yw / 1e4, 0); -1 11807 var num = c1 + c2 * Math.pow(x, n); -1 11808 var denom = 1 + c3 * Math.pow(x, n); -1 11809 return Math.pow(num / denom, m); -1 11810 }); -1 11811 }, -1 11812 formats: { -1 11813 color: { -1 11814 id: 'rec2100-pq' -1 11815 } 11709 11816 }11710 -1 if (typeof ((_window$location = window.location) === null || _window$location === void 0 ? void 0 : _window$location.origin) !== 'string' || window.location.origin.indexOf('://') === -1) {11711 -1 return null;-1 11817 }); -1 11818 var a = .17883277; -1 11819 var b = .28466892; -1 11820 var c = .55991073; -1 11821 var scale = 3.7743; -1 11822 var rec2100Hlg = new RGBColorSpace({ -1 11823 id: 'rec2100hlg', -1 11824 cssid: 'rec2100-hlg', -1 11825 name: 'REC.2100-HLG', -1 11826 referred: 'scene', -1 11827 base: REC2020Linear, -1 11828 toBase: function toBase(RGB) { -1 11829 return RGB.map(function(val) { -1 11830 if (val <= .5) { -1 11831 return Math.pow(val, 2) / 3 * scale; -1 11832 } -1 11833 return Math.exp((val - c) / a + b) / 12 * scale; -1 11834 }); -1 11835 }, -1 11836 fromBase: function fromBase(RGB) { -1 11837 return RGB.map(function(val) { -1 11838 val /= scale; -1 11839 if (val <= 1 / 12) { -1 11840 return Math.sqrt(3 * val); -1 11841 } -1 11842 return a * Math.log(12 * val - b) + c; -1 11843 }); -1 11844 }, -1 11845 formats: { -1 11846 color: { -1 11847 id: 'rec2100-hlg' -1 11848 } 11712 11849 }11713 -1 var currentPageUrl = window.location.origin + window.location.pathname;11714 -1 var url;11715 -1 if (!hostname) {11716 -1 url = window.location.origin;11717 -1 } else {11718 -1 url = ''.concat(protocol, '//').concat(hostname).concat(port ? ':'.concat(port) : '');-1 11850 }); -1 11851 var CATs = {}; -1 11852 hooks.add('chromatic-adaptation-start', function(env) { -1 11853 if (env.options.method) { -1 11854 env.M = adapt(env.W1, env.W2, env.options.method); 11719 11855 }11720 -1 if (!pathname) {11721 -1 url += window.location.pathname;11722 -1 } else {11723 -1 url += (pathname[0] !== '/' ? '/' : '') + pathname;-1 11856 }); -1 11857 hooks.add('chromatic-adaptation-end', function(env) { -1 11858 if (!env.M) { -1 11859 env.M = adapt(env.W1, env.W2, env.options.method); 11724 11860 }11725 -1 return url === currentPageUrl;-1 11861 }); -1 11862 function defineCAT(_ref23) { -1 11863 var id = _ref23.id, toCone_M = _ref23.toCone_M, fromCone_M = _ref23.fromCone_M; -1 11864 CATs[id] = arguments[0]; 11726 11865 }11727 -1 function getElementByReference(node, attr) {11728 -1 var fragment = node.getAttribute(attr);11729 -1 if (!fragment) {11730 -1 return null;11731 -1 }11732 -1 if (attr === 'href' && !_isCurrentPageLink(node)) {11733 -1 return null;11734 -1 }11735 -1 if (fragment.indexOf('#') !== -1) {11736 -1 fragment = decodeURIComponent(fragment.substr(fragment.indexOf('#') + 1));11737 -1 }11738 -1 var candidate = document.getElementById(fragment);11739 -1 if (candidate) {11740 -1 return candidate;-1 11866 function adapt(W1, W2) { -1 11867 var id = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'Bradford'; -1 11868 var method = CATs[id]; -1 11869 var _multiplyMatrices5 = multiplyMatrices(method.toCone_M, W1), _multiplyMatrices6 = _slicedToArray(_multiplyMatrices5, 3), \u03c1s = _multiplyMatrices6[0], \u03b3s = _multiplyMatrices6[1], \u03b2s = _multiplyMatrices6[2]; -1 11870 var _multiplyMatrices7 = multiplyMatrices(method.toCone_M, W2), _multiplyMatrices8 = _slicedToArray(_multiplyMatrices7, 3), \u03c1d = _multiplyMatrices8[0], \u03b3d = _multiplyMatrices8[1], \u03b2d = _multiplyMatrices8[2]; -1 11871 var scale2 = [ [ \u03c1d / \u03c1s, 0, 0 ], [ 0, \u03b3d / \u03b3s, 0 ], [ 0, 0, \u03b2d / \u03b2s ] ]; -1 11872 var scaled_cone_M = multiplyMatrices(scale2, method.toCone_M); -1 11873 var adapt_M = multiplyMatrices(method.fromCone_M, scaled_cone_M); -1 11874 return adapt_M; -1 11875 } -1 11876 defineCAT({ -1 11877 id: 'von Kries', -1 11878 toCone_M: [ [ .40024, .7076, -.08081 ], [ -.2263, 1.16532, .0457 ], [ 0, 0, .91822 ] ], -1 11879 fromCone_M: [ [ 1.8599364, -1.1293816, .2198974 ], [ .3611914, .6388125, -64e-7 ], [ 0, 0, 1.0890636 ] ] -1 11880 }); -1 11881 defineCAT({ -1 11882 id: 'Bradford', -1 11883 toCone_M: [ [ .8951, .2664, -.1614 ], [ -.7502, 1.7135, .0367 ], [ .0389, -.0685, 1.0296 ] ], -1 11884 fromCone_M: [ [ .9869929, -.1470543, .1599627 ], [ .4323053, .5183603, .0492912 ], [ -.0085287, .0400428, .9684867 ] ] -1 11885 }); -1 11886 defineCAT({ -1 11887 id: 'CAT02', -1 11888 toCone_M: [ [ .7328, .4296, -.1624 ], [ -.7036, 1.6975, .0061 ], [ .003, .0136, .9834 ] ], -1 11889 fromCone_M: [ [ 1.0961238, -.278869, .1827452 ], [ .454369, .4735332, .0720978 ], [ -.0096276, -.005698, 1.0153256 ] ] -1 11890 }); -1 11891 defineCAT({ -1 11892 id: 'CAT16', -1 11893 toCone_M: [ [ .401288, .650173, -.051461 ], [ -.250268, 1.204414, .045854 ], [ -.002079, .048952, .953127 ] ], -1 11894 fromCone_M: [ [ 1.862067855087233, -1.011254630531685, .1491867754444518 ], [ .3875265432361372, .6214474419314753, -.008973985167612518 ], [ -.01584149884933386, -.03412293802851557, 1.04996443687785 ] ] -1 11895 }); -1 11896 Object.assign(WHITES, { -1 11897 A: [ 1.0985, 1, .35585 ], -1 11898 C: [ .98074, 1, 1.18232 ], -1 11899 D55: [ .95682, 1, .92149 ], -1 11900 D75: [ .94972, 1, 1.22638 ], -1 11901 E: [ 1, 1, 1 ], -1 11902 F2: [ .99186, 1, .67393 ], -1 11903 F7: [ .95041, 1, 1.08747 ], -1 11904 F11: [ 1.00962, 1, .6435 ] -1 11905 }); -1 11906 WHITES.ACES = [ .32168 / .33767, 1, (1 - .32168 - .33767) / .33767 ]; -1 11907 var toXYZ_M = [ [ .6624541811085053, .13400420645643313, .1561876870049078 ], [ .27222871678091454, .6740817658111484, .05368951740793705 ], [ -.005574649490394108, .004060733528982826, 1.0103391003129971 ] ]; -1 11908 var fromXYZ_M = [ [ 1.6410233796943257, -.32480329418479, -.23642469523761225 ], [ -.6636628587229829, 1.6153315916573379, .016756347685530137 ], [ .011721894328375376, -.008284441996237409, .9883948585390215 ] ]; -1 11909 var ACEScg = new RGBColorSpace({ -1 11910 id: 'acescg', -1 11911 name: 'ACEScg', -1 11912 coords: { -1 11913 r: { -1 11914 range: [ 0, 65504 ], -1 11915 name: 'Red' -1 11916 }, -1 11917 g: { -1 11918 range: [ 0, 65504 ], -1 11919 name: 'Green' -1 11920 }, -1 11921 b: { -1 11922 range: [ 0, 65504 ], -1 11923 name: 'Blue' -1 11924 } -1 11925 }, -1 11926 referred: 'scene', -1 11927 white: WHITES.ACES, -1 11928 toXYZ_M: toXYZ_M, -1 11929 fromXYZ_M: fromXYZ_M, -1 11930 formats: { -1 11931 color: {} 11741 11932 }11742 -1 candidate = document.getElementsByName(fragment);11743 -1 if (candidate.length) {11744 -1 return candidate[0];-1 11933 }); -1 11934 var \u03b5 = Math.pow(2, -16); -1 11935 var ACES_min_nonzero = -.35828683; -1 11936 var ACES_cc_max = (Math.log2(65504) + 9.72) / 17.52; -1 11937 var acescc = new RGBColorSpace({ -1 11938 id: 'acescc', -1 11939 name: 'ACEScc', -1 11940 coords: { -1 11941 r: { -1 11942 range: [ ACES_min_nonzero, ACES_cc_max ], -1 11943 name: 'Red' -1 11944 }, -1 11945 g: { -1 11946 range: [ ACES_min_nonzero, ACES_cc_max ], -1 11947 name: 'Green' -1 11948 }, -1 11949 b: { -1 11950 range: [ ACES_min_nonzero, ACES_cc_max ], -1 11951 name: 'Blue' -1 11952 } -1 11953 }, -1 11954 referred: 'scene', -1 11955 base: ACEScg, -1 11956 toBase: function toBase(RGB) { -1 11957 var low = (9.72 - 15) / 17.52; -1 11958 return RGB.map(function(val) { -1 11959 if (val <= low) { -1 11960 return (Math.pow(2, val * 17.52 - 9.72) - \u03b5) * 2; -1 11961 } else if (val < ACES_cc_max) { -1 11962 return Math.pow(2, val * 17.52 - 9.72); -1 11963 } else { -1 11964 return 65504; -1 11965 } -1 11966 }); -1 11967 }, -1 11968 fromBase: function fromBase(RGB) { -1 11969 return RGB.map(function(val) { -1 11970 if (val <= 0) { -1 11971 return (Math.log2(\u03b5) + 9.72) / 17.52; -1 11972 } else if (val < \u03b5) { -1 11973 return (Math.log2(\u03b5 + val * .5) + 9.72) / 17.52; -1 11974 } else { -1 11975 return (Math.log2(val) + 9.72) / 17.52; -1 11976 } -1 11977 }); -1 11978 }, -1 11979 formats: { -1 11980 color: {} 11745 11981 }11746 -1 return null;11747 -1 }11748 -1 var get_element_by_reference_default = getElementByReference;11749 -1 function _visuallySort(a2, b2) {11750 -1 _createGrid();11751 -1 var length = Math.max(a2._stackingOrder.length, b2._stackingOrder.length);11752 -1 for (var _i8 = 0; _i8 < length; _i8++) {11753 -1 if (typeof b2._stackingOrder[_i8] === 'undefined') {11754 -1 return -1;11755 -1 } else if (typeof a2._stackingOrder[_i8] === 'undefined') {11756 -1 return 1;-1 11982 }); -1 11983 var spaces = Object.freeze({ -1 11984 __proto__: null, -1 11985 XYZ_D65: XYZ_D65, -1 11986 XYZ_D50: XYZ_D50, -1 11987 XYZ_ABS_D65: XYZ_Abs_D65, -1 11988 Lab_D65: lab_d65, -1 11989 Lab: lab, -1 11990 LCH: lch, -1 11991 sRGB_Linear: sRGBLinear, -1 11992 sRGB: sRGB, -1 11993 HSL: HSL, -1 11994 HWB: hwb, -1 11995 HSV: HSV, -1 11996 P3_Linear: P3Linear, -1 11997 P3: P3, -1 11998 A98RGB_Linear: A98Linear, -1 11999 A98RGB: a98rgb, -1 12000 ProPhoto_Linear: ProPhotoLinear, -1 12001 ProPhoto: prophoto, -1 12002 REC_2020_Linear: REC2020Linear, -1 12003 REC_2020: REC2020, -1 12004 OKLab: OKLab, -1 12005 OKLCH: oklch, -1 12006 Jzazbz: Jzazbz, -1 12007 JzCzHz: jzczhz, -1 12008 ICTCP: ictcp, -1 12009 REC_2100_PQ: rec2100Pq, -1 12010 REC_2100_HLG: rec2100Hlg, -1 12011 ACEScg: ACEScg, -1 12012 ACEScc: acescc -1 12013 }); -1 12014 var _Color = (_space = new WeakMap(), function() { -1 12015 function Color() { -1 12016 var _this2 = this; -1 12017 _classCallCheck(this, Color); -1 12018 _classPrivateFieldInitSpec(this, _space, void 0); -1 12019 var color; -1 12020 for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) { -1 12021 args[_key2] = arguments[_key2]; 11757 12022 }11758 -1 if (b2._stackingOrder[_i8].stackLevel > a2._stackingOrder[_i8].stackLevel) {11759 -1 return 1;-1 12023 if (args.length === 1) { -1 12024 color = getColor(args[0]); 11760 12025 }11761 -1 if (b2._stackingOrder[_i8].stackLevel < a2._stackingOrder[_i8].stackLevel) {11762 -1 return -1;-1 12026 var space, coords, alpha; -1 12027 if (color) { -1 12028 space = color.space || color.spaceId; -1 12029 coords = color.coords; -1 12030 alpha = color.alpha; -1 12031 } else { -1 12032 space = args[0]; -1 12033 coords = args[1]; -1 12034 alpha = args[2]; 11763 12035 }11764 -1 if (b2._stackingOrder[_i8].treeOrder !== a2._stackingOrder[_i8].treeOrder) {11765 -1 return b2._stackingOrder[_i8].treeOrder - a2._stackingOrder[_i8].treeOrder;-1 12036 _classPrivateFieldSet(_space, this, ColorSpace.get(space)); -1 12037 this.coords = coords ? coords.slice() : [ 0, 0, 0 ]; -1 12038 this.alpha = alpha < 1 ? alpha : 1; -1 12039 for (var i = 0; i < this.coords.length; i++) { -1 12040 if (this.coords[i] === 'NaN') { -1 12041 this.coords[i] = NaN; -1 12042 } 11766 12043 }11767 -1 }11768 -1 var aNode = a2.actualNode;11769 -1 var bNode = b2.actualNode;11770 -1 if (aNode.getRootNode && aNode.getRootNode() !== bNode.getRootNode()) {11771 -1 var boundaries = [];11772 -1 while (aNode) {11773 -1 boundaries.push({11774 -1 root: aNode.getRootNode(),11775 -1 node: aNode-1 12044 var _loop4 = function _loop4(id) { -1 12045 Object.defineProperty(_this2, id, { -1 12046 get: function get() { -1 12047 return _this2.get(id); -1 12048 }, -1 12049 set: function set(value) { -1 12050 return _this2.set(id, value); -1 12051 } 11776 12052 });11777 -1 aNode = aNode.getRootNode().host;-1 12053 }; -1 12054 for (var id in _classPrivateFieldGet(_space, this).coords) { -1 12055 _loop4(id); 11778 12056 }11779 -1 while (bNode && !boundaries.find(function(boundary) {11780 -1 return boundary.root === bNode.getRootNode();11781 -1 })) {11782 -1 bNode = bNode.getRootNode().host;-1 12057 } -1 12058 return _createClass(Color, [ { -1 12059 key: 'space', -1 12060 get: function get() { -1 12061 return _classPrivateFieldGet(_space, this); 11783 12062 }11784 -1 aNode = boundaries.find(function(boundary) {11785 -1 return boundary.root === bNode.getRootNode();11786 -1 }).node;11787 -1 if (aNode === bNode) {11788 -1 return a2.actualNode.getRootNode() !== aNode.getRootNode() ? -1 : 1;-1 12063 }, { -1 12064 key: 'spaceId', -1 12065 get: function get() { -1 12066 return _classPrivateFieldGet(_space, this).id; 11789 12067 }11790 -1 }11791 -1 var _window$Node = window.Node, DOCUMENT_POSITION_FOLLOWING = _window$Node.DOCUMENT_POSITION_FOLLOWING, DOCUMENT_POSITION_CONTAINS = _window$Node.DOCUMENT_POSITION_CONTAINS, DOCUMENT_POSITION_CONTAINED_BY = _window$Node.DOCUMENT_POSITION_CONTAINED_BY;11792 -1 var docPosition = aNode.compareDocumentPosition(bNode);11793 -1 var DOMOrder = docPosition & DOCUMENT_POSITION_FOLLOWING ? 1 : -1;11794 -1 var isDescendant = docPosition & DOCUMENT_POSITION_CONTAINS || docPosition & DOCUMENT_POSITION_CONTAINED_BY;11795 -1 var aPosition = getPositionOrder(a2);11796 -1 var bPosition = getPositionOrder(b2);11797 -1 if (aPosition === bPosition || isDescendant) {11798 -1 return DOMOrder;11799 -1 }11800 -1 return bPosition - aPosition;11801 -1 }11802 -1 function getPositionOrder(vNode) {11803 -1 if (vNode.getComputedStylePropertyValue('display').indexOf('inline') !== -1) {11804 -1 return 2;11805 -1 }11806 -1 if (isFloated(vNode)) {11807 -1 return 1;11808 -1 }11809 -1 return 0;11810 -1 }11811 -1 function isFloated(vNode) {11812 -1 if (!vNode) {11813 -1 return false;11814 -1 }11815 -1 if (vNode._isFloated !== void 0) {11816 -1 return vNode._isFloated;11817 -1 }11818 -1 var floatStyle = vNode.getComputedStylePropertyValue('float');11819 -1 if (floatStyle !== 'none') {11820 -1 vNode._isFloated = true;11821 -1 return true;11822 -1 }11823 -1 var floated = isFloated(vNode.parent);11824 -1 vNode._isFloated = floated;11825 -1 return floated;11826 -1 }11827 -1 function getRectStack(grid, rect) {11828 -1 var recursed = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;11829 -1 var center = _getRectCenter(rect);11830 -1 var gridCell = grid.getCellFromPoint(center) || [];11831 -1 var floorX = Math.floor(center.x);11832 -1 var floorY = Math.floor(center.y);11833 -1 var stack = gridCell.filter(function(gridCellNode) {11834 -1 return gridCellNode.clientRects.some(function(clientRect) {11835 -1 var rectX = clientRect.left;11836 -1 var rectY = clientRect.top;11837 -1 return floorX < Math.floor(rectX + clientRect.width) && floorX >= Math.floor(rectX) && floorY < Math.floor(rectY + clientRect.height) && floorY >= Math.floor(rectY);11838 -1 });11839 -1 });11840 -1 var gridContainer = grid.container;11841 -1 if (gridContainer) {11842 -1 stack = getRectStack(gridContainer._grid, gridContainer.boundingClientRect, true).concat(stack);11843 -1 }11844 -1 if (!recursed) {11845 -1 stack = stack.sort(_visuallySort).map(function(vNode) {11846 -1 return vNode.actualNode;11847 -1 }).concat(document.documentElement).filter(function(node, index, array) {11848 -1 return array.indexOf(node) === index;11849 -1 });11850 -1 }11851 -1 return stack;11852 -1 }11853 -1 function getElementStack(node) {11854 -1 _createGrid();11855 -1 var vNode = get_node_from_tree_default(node);11856 -1 var grid = vNode._grid;11857 -1 if (!grid) {11858 -1 return [];11859 -1 }11860 -1 return getRectStack(grid, vNode.boundingClientRect);11861 -1 }11862 -1 var get_element_stack_default = getElementStack;11863 -1 function getTabbableElements(virtualNode) {11864 -1 var nodeAndDescendents = query_selector_all_default(virtualNode, '*');11865 -1 var tabbableElements = nodeAndDescendents.filter(function(vNode) {11866 -1 var isFocusable2 = vNode.isFocusable;11867 -1 var tabIndex = parse_tabindex_default(vNode.actualNode.getAttribute('tabindex'));11868 -1 return tabIndex !== null ? isFocusable2 && tabIndex >= 0 : isFocusable2;-1 12068 }, { -1 12069 key: 'clone', -1 12070 value: function clone() { -1 12071 return new _Color(this.space, this.coords, this.alpha); -1 12072 } -1 12073 }, { -1 12074 key: 'toJSON', -1 12075 value: function toJSON() { -1 12076 return { -1 12077 spaceId: this.spaceId, -1 12078 coords: this.coords, -1 12079 alpha: this.alpha -1 12080 }; -1 12081 } -1 12082 }, { -1 12083 key: 'display', -1 12084 value: function display() { -1 12085 for (var _len3 = arguments.length, args = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) { -1 12086 args[_key3] = arguments[_key3]; -1 12087 } -1 12088 var ret = _display.apply(void 0, [ this ].concat(args)); -1 12089 ret.color = new _Color(ret.color); -1 12090 return ret; -1 12091 } -1 12092 } ], [ { -1 12093 key: 'get', -1 12094 value: function get(color) { -1 12095 if (color instanceof _Color) { -1 12096 return color; -1 12097 } -1 12098 for (var _len4 = arguments.length, args = new Array(_len4 > 1 ? _len4 - 1 : 0), _key4 = 1; _key4 < _len4; _key4++) { -1 12099 args[_key4 - 1] = arguments[_key4]; -1 12100 } -1 12101 return _construct(_Color, [ color ].concat(args)); -1 12102 } -1 12103 }, { -1 12104 key: 'defineFunction', -1 12105 value: function defineFunction(name, code) { -1 12106 var o = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : code; -1 12107 var _o$instance = o.instance, instance = _o$instance === void 0 ? true : _o$instance, returns = o.returns; -1 12108 var func = function func() { -1 12109 var ret = code.apply(void 0, arguments); -1 12110 if (returns === 'color') { -1 12111 ret = _Color.get(ret); -1 12112 } else if (returns === 'function<color>') { -1 12113 var f = ret; -1 12114 ret = function ret() { -1 12115 var ret2 = f.apply(void 0, arguments); -1 12116 return _Color.get(ret2); -1 12117 }; -1 12118 Object.assign(ret, f); -1 12119 } else if (returns === 'array<color>') { -1 12120 ret = ret.map(function(c4) { -1 12121 return _Color.get(c4); -1 12122 }); -1 12123 } -1 12124 return ret; -1 12125 }; -1 12126 if (!(name in _Color)) { -1 12127 _Color[name] = func; -1 12128 } -1 12129 if (instance) { -1 12130 _Color.prototype[name] = function() { -1 12131 for (var _len5 = arguments.length, args = new Array(_len5), _key5 = 0; _key5 < _len5; _key5++) { -1 12132 args[_key5] = arguments[_key5]; -1 12133 } -1 12134 return func.apply(void 0, [ this ].concat(args)); -1 12135 }; -1 12136 } -1 12137 } -1 12138 }, { -1 12139 key: 'defineFunctions', -1 12140 value: function defineFunctions(o) { -1 12141 for (var name in o) { -1 12142 _Color.defineFunction(name, o[name], o[name]); -1 12143 } -1 12144 } -1 12145 }, { -1 12146 key: 'extend', -1 12147 value: function extend(exports) { -1 12148 if (exports.register) { -1 12149 exports.register(_Color); -1 12150 } else { -1 12151 for (var name in exports) { -1 12152 _Color.defineFunction(name, exports[name]); -1 12153 } -1 12154 } -1 12155 } -1 12156 } ]); -1 12157 }()); -1 12158 _Color.defineFunctions({ -1 12159 get: get, -1 12160 getAll: getAll, -1 12161 set: set, -1 12162 setAll: setAll, -1 12163 to: to, -1 12164 equals: equals, -1 12165 inGamut: inGamut, -1 12166 toGamut: toGamut, -1 12167 distance: distance, -1 12168 toString: serialize -1 12169 }); -1 12170 Object.assign(_Color, { -1 12171 util: util, -1 12172 hooks: hooks, -1 12173 WHITES: WHITES, -1 12174 Space: ColorSpace, -1 12175 spaces: ColorSpace.registry, -1 12176 parse: parse, -1 12177 defaults: defaults -1 12178 }); -1 12179 for (var _i5 = 0, _Object$keys = Object.keys(spaces); _i5 < _Object$keys.length; _i5++) { -1 12180 var key = _Object$keys[_i5]; -1 12181 ColorSpace.register(spaces[key]); -1 12182 } -1 12183 for (var id in ColorSpace.registry) { -1 12184 addSpaceAccessors(id, ColorSpace.registry[id]); -1 12185 } -1 12186 hooks.add('colorspace-init-end', function(space) { -1 12187 var _space$aliases; -1 12188 addSpaceAccessors(space.id, space); -1 12189 (_space$aliases = space.aliases) === null || _space$aliases === void 0 || _space$aliases.forEach(function(alias) { -1 12190 addSpaceAccessors(alias, space); -1 12191 }); -1 12192 }); -1 12193 function addSpaceAccessors(id, space) { -1 12194 Object.keys(space.coords); -1 12195 Object.values(space.coords).map(function(c4) { -1 12196 return c4.name; -1 12197 }); -1 12198 var propId = id.replace(/-/g, '_'); -1 12199 Object.defineProperty(_Color.prototype, propId, { -1 12200 get: function get() { -1 12201 var _this3 = this; -1 12202 var ret = this.getAll(id); -1 12203 if (typeof Proxy === 'undefined') { -1 12204 return ret; -1 12205 } -1 12206 return new Proxy(ret, { -1 12207 has: function has(obj, property) { -1 12208 try { -1 12209 ColorSpace.resolveCoord([ space, property ]); -1 12210 return true; -1 12211 } catch (e) {} -1 12212 return Reflect.has(obj, property); -1 12213 }, -1 12214 get: function get(obj, property, receiver) { -1 12215 if (property && _typeof(property) !== 'symbol' && !(property in obj)) { -1 12216 var _ColorSpace$resolveCo3 = ColorSpace.resolveCoord([ space, property ]), index = _ColorSpace$resolveCo3.index; -1 12217 if (index >= 0) { -1 12218 return obj[index]; -1 12219 } -1 12220 } -1 12221 return Reflect.get(obj, property, receiver); -1 12222 }, -1 12223 set: function set(obj, property, value, receiver) { -1 12224 if (property && _typeof(property) !== 'symbol' && !(property in obj) || property >= 0) { -1 12225 var _ColorSpace$resolveCo4 = ColorSpace.resolveCoord([ space, property ]), index = _ColorSpace$resolveCo4.index; -1 12226 if (index >= 0) { -1 12227 obj[index] = value; -1 12228 _this3.setAll(id, obj); -1 12229 return true; -1 12230 } -1 12231 } -1 12232 return Reflect.set(obj, property, value, receiver); -1 12233 } -1 12234 }); -1 12235 }, -1 12236 set: function set(coords) { -1 12237 this.setAll(id, coords); -1 12238 }, -1 12239 configurable: true, -1 12240 enumerable: true 11869 12241 });11870 -1 return tabbableElements;11871 12242 }11872 -1 var get_tabbable_elements_default = getTabbableElements;11873 -1 function isNativelyFocusable(el) {11874 -1 var _nodeLookup4 = _nodeLookup(el), vNode = _nodeLookup4.vNode;11875 -1 if (!vNode || focus_disabled_default(vNode)) {11876 -1 return false;11877 -1 }11878 -1 switch (vNode.props.nodeName) {11879 -1 case 'a':11880 -1 case 'area':11881 -1 if (vNode.hasAttr('href')) {11882 -1 return true;11883 -1 }11884 -1 break;11885 -111886 -1 case 'input':11887 -1 return vNode.props.type !== 'hidden';11888 -111889 -1 case 'textarea':11890 -1 case 'select':11891 -1 case 'summary':11892 -1 case 'button':11893 -1 return true;11894 -111895 -1 case 'details':11896 -1 return !query_selector_all_default(vNode, 'summary').length;11897 -1 }11898 -1 return false;-1 12243 _Color.extend(deltaEMethods); -1 12244 _Color.extend({ -1 12245 deltaE: deltaE -1 12246 }); -1 12247 _Color.extend(variations); -1 12248 _Color.extend({ -1 12249 contrast: contrast -1 12250 }); -1 12251 _Color.extend(chromaticity); -1 12252 _Color.extend(luminance); -1 12253 _Color.extend(interpolation); -1 12254 _Color.extend(contrastMethods); -1 12255 var import_from2 = __toModule(require_from3()); -1 12256 import_dot['default'].templateSettings.strip = false; -1 12257 axe._memoizedFns = []; -1 12258 function memoizeImplementation(fn) { -1 12259 var memoized = (0, import_memoizee['default'])(fn); -1 12260 axe._memoizedFns.push(memoized); -1 12261 return memoized; 11899 12262 }11900 -1 var is_natively_focusable_default = isNativelyFocusable;11901 -1 function _isFocusable(el) {11902 -1 var _nodeLookup5 = _nodeLookup(el), vNode = _nodeLookup5.vNode;11903 -1 if (vNode.props.nodeType !== 1) {-1 12263 var memoize_default = memoizeImplementation; -1 12264 var isXHTML = memoize_default(function(doc) { -1 12265 if (!(doc !== null && doc !== void 0 && doc.createElement)) { 11904 12266 return false; 11905 12267 }11906 -1 if (focus_disabled_default(vNode)) {11907 -1 return false;11908 -1 } else if (is_natively_focusable_default(vNode)) {11909 -1 return true;-1 12268 return doc.createElement('A').localName === 'A'; -1 12269 }); -1 12270 var is_xhtml_default = isXHTML; -1 12271 function _getShadowSelector(generateSelector2, elm) { -1 12272 var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; -1 12273 if (!elm) { -1 12274 return ''; 11910 12275 }11911 -1 var tabindex = parse_tabindex_default(vNode.attr('tabindex'));11912 -1 return tabindex !== null;11913 -1 }11914 -1 function _isInTabOrder(el) {11915 -1 var _nodeLookup6 = _nodeLookup(el), vNode = _nodeLookup6.vNode;11916 -1 if (vNode.props.nodeType !== 1) {11917 -1 return false;-1 12276 var doc = elm.getRootNode && elm.getRootNode() || document; -1 12277 if (doc.nodeType !== 11) { -1 12278 return generateSelector2(elm, options, doc); 11918 12279 }11919 -1 var tabindex = parse_tabindex_default(vNode.attr('tabindex'));11920 -1 if (tabindex <= -1) {11921 -1 return false;-1 12280 var stack = []; -1 12281 while (doc.nodeType === 11) { -1 12282 if (!doc.host) { -1 12283 return ''; -1 12284 } -1 12285 stack.unshift({ -1 12286 elm: elm, -1 12287 doc: doc -1 12288 }); -1 12289 elm = doc.host; -1 12290 doc = elm.getRootNode(); 11922 12291 }11923 -1 return _isFocusable(vNode);11924 -1 }11925 -1 var get_target_rects_default = memoize_default(getTargetRects);11926 -1 function getTargetRects(vNode) {11927 -1 var nodeRect = vNode.boundingClientRect;11928 -1 var overlappingVNodes = _findNearbyElms(vNode).filter(function(vNeighbor) {11929 -1 return _hasVisualOverlap(vNode, vNeighbor) && vNeighbor.getComputedStylePropertyValue('pointer-events') !== 'none' && !isDescendantNotInTabOrder(vNode, vNeighbor);-1 12292 stack.unshift({ -1 12293 elm: elm, -1 12294 doc: doc 11930 12295 });11931 -1 if (!overlappingVNodes.length) {11932 -1 return [ nodeRect ];11933 -1 }11934 -1 var obscuringRects = overlappingVNodes.map(function(_ref25) {11935 -1 var rect = _ref25.boundingClientRect;11936 -1 return rect;-1 12296 return stack.map(function(item) { -1 12297 return generateSelector2(item.elm, options, item.doc); 11937 12298 });11938 -1 return _splitRects(nodeRect, obscuringRects);11939 -1 }11940 -1 function isDescendantNotInTabOrder(vAncestor, vNode) {11941 -1 return _contains(vAncestor, vNode) && !_isInTabOrder(vNode);11942 12299 }11943 -1 var get_target_size_default = memoize_default(getTargetSize);11944 -1 function getTargetSize(vNode, minSize) {11945 -1 var rects = get_target_rects_default(vNode);11946 -1 return getLargestRect(rects, minSize);-1 12300 var ignoredAttributes = [ 'class', 'style', 'id', 'selected', 'checked', 'disabled', 'tabindex', 'aria-checked', 'aria-selected', 'aria-invalid', 'aria-activedescendant', 'aria-busy', 'aria-disabled', 'aria-expanded', 'aria-grabbed', 'aria-pressed', 'aria-valuenow', 'xmlns' ]; -1 12301 var MAXATTRIBUTELENGTH = 31; -1 12302 var attrCharsRegex = /([\\"])/g; -1 12303 var newlineChars = /(\r\n|\r|\n)/g; -1 12304 function escapeAttribute(str) { -1 12305 return str.replace(attrCharsRegex, '\\$1').replace(newlineChars, '\\a '); 11947 12306 }11948 -1 function getLargestRect(rects, minSize) {11949 -1 return rects.reduce(function(rectA, rectB) {11950 -1 var rectAisMinimum = _rectHasMinimumSize(minSize, rectA);11951 -1 var rectBisMinimum = _rectHasMinimumSize(minSize, rectB);11952 -1 if (rectAisMinimum !== rectBisMinimum) {11953 -1 return rectAisMinimum ? rectA : rectB;-1 12307 function getAttributeNameValue(node, at) { -1 12308 var name = at.name; -1 12309 var atnv; -1 12310 if (name.indexOf('href') !== -1 || name.indexOf('src') !== -1) { -1 12311 var friendly = get_friendly_uri_end_default(node.getAttribute(name)); -1 12312 if (friendly) { -1 12313 atnv = escape_selector_default(at.name) + '$="' + escapeAttribute(friendly) + '"'; -1 12314 } else { -1 12315 atnv = escape_selector_default(at.name) + '="' + escapeAttribute(node.getAttribute(name)) + '"'; 11954 12316 }11955 -1 var areaA = rectA.width * rectA.height;11956 -1 var areaB = rectB.width * rectB.height;11957 -1 return areaA > areaB ? rectA : rectB;11958 -1 });11959 -1 }11960 -1 var text_exports = {};11961 -1 __export(text_exports, {11962 -1 accessibleText: function accessibleText() {11963 -1 return accessible_text_default;11964 -1 },11965 -1 accessibleTextVirtual: function accessibleTextVirtual() {11966 -1 return _accessibleTextVirtual;11967 -1 },11968 -1 autocomplete: function autocomplete() {11969 -1 return _autocomplete;11970 -1 },11971 -1 formControlValue: function formControlValue() {11972 -1 return form_control_value_default;11973 -1 },11974 -1 formControlValueMethods: function formControlValueMethods() {11975 -1 return _formControlValueMethods;11976 -1 },11977 -1 hasUnicode: function hasUnicode() {11978 -1 return has_unicode_default;11979 -1 },11980 -1 isHumanInterpretable: function isHumanInterpretable() {11981 -1 return is_human_interpretable_default;11982 -1 },11983 -1 isIconLigature: function isIconLigature() {11984 -1 return _isIconLigature;11985 -1 },11986 -1 isValidAutocomplete: function isValidAutocomplete() {11987 -1 return is_valid_autocomplete_default;11988 -1 },11989 -1 label: function label() {11990 -1 return label_default;11991 -1 },11992 -1 labelText: function labelText() {11993 -1 return label_text_default;11994 -1 },11995 -1 labelVirtual: function labelVirtual() {11996 -1 return label_virtual_default2;11997 -1 },11998 -1 nativeElementType: function nativeElementType() {11999 -1 return native_element_type_default;12000 -1 },12001 -1 nativeTextAlternative: function nativeTextAlternative() {12002 -1 return _nativeTextAlternative;12003 -1 },12004 -1 nativeTextMethods: function nativeTextMethods() {12005 -1 return native_text_methods_default;12006 -1 },12007 -1 removeUnicode: function removeUnicode() {12008 -1 return remove_unicode_default;12009 -1 },12010 -1 sanitize: function sanitize() {12011 -1 return sanitize_default;12012 -1 },12013 -1 subtreeText: function subtreeText() {12014 -1 return subtree_text_default;12015 -1 },12016 -1 titleText: function titleText() {12017 -1 return title_text_default;12018 -1 },12019 -1 unsupported: function unsupported() {12020 -1 return unsupported_default;12021 -1 },12022 -1 visible: function visible() {12023 -1 return visible_default;12024 -1 },12025 -1 visibleTextNodes: function visibleTextNodes() {12026 -1 return visible_text_nodes_default;12027 -1 },12028 -1 visibleVirtual: function visibleVirtual() {12029 -1 return visible_virtual_default;-1 12317 } else { -1 12318 atnv = escape_selector_default(name) + '="' + escapeAttribute(at.value) + '"'; 12030 12319 }12031 -1 });12032 -1 function idrefs(node, attr) {12033 -1 node = node.actualNode || node;12034 -1 try {12035 -1 var doc = get_root_node_default2(node);12036 -1 var result = [];12037 -1 var attrValue = node.getAttribute(attr);12038 -1 if (attrValue) {12039 -1 attrValue = token_list_default(attrValue);12040 -1 for (var index = 0; index < attrValue.length; index++) {12041 -1 result.push(doc.getElementById(attrValue[index]));-1 12320 return atnv; -1 12321 } -1 12322 function countSort(a2, b2) { -1 12323 return a2.count < b2.count ? -1 : a2.count === b2.count ? 0 : 1; -1 12324 } -1 12325 function filterAttributes(at) { -1 12326 return !ignoredAttributes.includes(at.name) && at.name.indexOf(':') === -1 && (!at.value || at.value.length < MAXATTRIBUTELENGTH); -1 12327 } -1 12328 function _getSelectorData(domTree) { -1 12329 var data = { -1 12330 classes: {}, -1 12331 tags: {}, -1 12332 attributes: {} -1 12333 }; -1 12334 domTree = Array.isArray(domTree) ? domTree : [ domTree ]; -1 12335 var currentLevel = domTree.slice(); -1 12336 var stack = []; -1 12337 var _loop5 = function _loop5() { -1 12338 var current = currentLevel.pop(); -1 12339 var node = current.actualNode; -1 12340 if (!!node.querySelectorAll) { -1 12341 var tag = node.nodeName; -1 12342 if (data.tags[tag]) { -1 12343 data.tags[tag]++; -1 12344 } else { -1 12345 data.tags[tag] = 1; -1 12346 } -1 12347 if (node.classList) { -1 12348 Array.from(node.classList).forEach(function(cl) { -1 12349 var ind = escape_selector_default(cl); -1 12350 if (data.classes[ind]) { -1 12351 data.classes[ind]++; -1 12352 } else { -1 12353 data.classes[ind] = 1; -1 12354 } -1 12355 }); -1 12356 } -1 12357 if (node.hasAttributes()) { -1 12358 Array.from(get_node_attributes_default(node)).filter(filterAttributes).forEach(function(at) { -1 12359 var atnv = getAttributeNameValue(node, at); -1 12360 if (atnv) { -1 12361 if (data.attributes[atnv]) { -1 12362 data.attributes[atnv]++; -1 12363 } else { -1 12364 data.attributes[atnv] = 1; -1 12365 } -1 12366 } -1 12367 }); 12042 12368 } 12043 12369 }12044 -1 return result;12045 -1 } catch (_unused3) {12046 -1 throw new TypeError('Cannot resolve id references for non-DOM nodes');-1 12370 if (current.children.length) { -1 12371 stack.push(currentLevel); -1 12372 currentLevel = current.children.slice(); -1 12373 } -1 12374 while (!currentLevel.length && stack.length) { -1 12375 currentLevel = stack.pop(); -1 12376 } -1 12377 }; -1 12378 while (currentLevel.length) { -1 12379 _loop5(); 12047 12380 } -1 12381 return data; 12048 12382 }12049 -1 var idrefs_default = idrefs;12050 -1 function accessibleText(element, context) {12051 -1 var virtualNode = get_node_from_tree_default(element);12052 -1 return _accessibleTextVirtual(virtualNode, context);12053 -1 }12054 -1 var accessible_text_default = accessibleText;12055 -1 function arialabelledbyText(element) {12056 -1 var context = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};12057 -1 var _nodeLookup7 = _nodeLookup(element), vNode = _nodeLookup7.vNode;12058 -1 if ((vNode === null || vNode === void 0 ? void 0 : vNode.props.nodeType) !== 1) {12059 -1 return '';12060 -1 }12061 -1 if (vNode.props.nodeType !== 1 || context.inLabelledByContext || context.inControlContext || !vNode.attr('aria-labelledby')) {12062 -1 return '';-1 12383 function uncommonClasses(node, selectorData) { -1 12384 var retVal = []; -1 12385 var classData = selectorData.classes; -1 12386 var tagData = selectorData.tags; -1 12387 if (node.classList) { -1 12388 Array.from(node.classList).forEach(function(cl) { -1 12389 var ind = escape_selector_default(cl); -1 12390 if (classData[ind] < tagData[node.nodeName]) { -1 12391 retVal.push({ -1 12392 name: ind, -1 12393 count: classData[ind], -1 12394 species: 'class' -1 12395 }); -1 12396 } -1 12397 }); 12063 12398 }12064 -1 var refs = idrefs_default(vNode, 'aria-labelledby').filter(function(elm) {12065 -1 return elm;12066 -1 });12067 -1 return refs.reduce(function(accessibleName, elm) {12068 -1 var accessibleNameAdd = accessible_text_default(elm, _extends({12069 -1 inLabelledByContext: true,12070 -1 startNode: context.startNode || vNode12071 -1 }, context));12072 -1 if (!accessibleName) {12073 -1 return accessibleNameAdd;12074 -1 } else {12075 -1 return ''.concat(accessibleName, ' ').concat(accessibleNameAdd);12076 -1 }12077 -1 }, '');-1 12399 return retVal.sort(countSort); 12078 12400 }12079 -1 var arialabelledby_text_default = arialabelledbyText;12080 -1 function _arialabelText(element) {12081 -1 var _nodeLookup8 = _nodeLookup(element), vNode = _nodeLookup8.vNode;12082 -1 if ((vNode === null || vNode === void 0 ? void 0 : vNode.props.nodeType) !== 1) {-1 12401 function getNthChildString(elm, selector) { -1 12402 var siblings = elm.parentNode && Array.from(elm.parentNode.children || '') || []; -1 12403 var hasMatchingSiblings = siblings.find(function(sibling) { -1 12404 return sibling !== elm && element_matches_default(sibling, selector); -1 12405 }); -1 12406 if (hasMatchingSiblings) { -1 12407 var nthChild = 1 + siblings.indexOf(elm); -1 12408 return ':nth-child(' + nthChild + ')'; -1 12409 } else { 12083 12410 return ''; 12084 12411 }12085 -1 return vNode.attr('aria-label') || '';12086 12412 }12087 -1 var ariaAttrs = {12088 -1 'aria-activedescendant': {12089 -1 type: 'idref',12090 -1 allowEmpty: true12091 -1 },12092 -1 'aria-atomic': {12093 -1 type: 'boolean',12094 -1 global: true12095 -1 },12096 -1 'aria-autocomplete': {12097 -1 type: 'nmtoken',12098 -1 values: [ 'inline', 'list', 'both', 'none' ]-1 12413 function getElmId(elm) { -1 12414 if (!elm.getAttribute('id')) { -1 12415 return; -1 12416 } -1 12417 var doc = elm.getRootNode && elm.getRootNode() || document; -1 12418 var id = '#' + escape_selector_default(elm.getAttribute('id') || ''); -1 12419 if (!id.match(/player_uid_/) && doc.querySelectorAll(id).length === 1) { -1 12420 return id; -1 12421 } -1 12422 } -1 12423 function getBaseSelector(elm) { -1 12424 var xhtml = is_xhtml_default(document); -1 12425 return escape_selector_default(xhtml ? elm.localName : elm.nodeName.toLowerCase()); -1 12426 } -1 12427 function uncommonAttributes(node, selectorData) { -1 12428 var retVal = []; -1 12429 var attData = selectorData.attributes; -1 12430 var tagData = selectorData.tags; -1 12431 if (node.hasAttributes()) { -1 12432 Array.from(get_node_attributes_default(node)).filter(filterAttributes).forEach(function(at) { -1 12433 var atnv = getAttributeNameValue(node, at); -1 12434 if (atnv && attData[atnv] < tagData[node.nodeName]) { -1 12435 retVal.push({ -1 12436 name: atnv, -1 12437 count: attData[atnv], -1 12438 species: 'attribute' -1 12439 }); -1 12440 } -1 12441 }); -1 12442 } -1 12443 return retVal.sort(countSort); -1 12444 } -1 12445 function getThreeLeastCommonFeatures(elm, selectorData) { -1 12446 var selector = ''; -1 12447 var features; -1 12448 var clss = uncommonClasses(elm, selectorData); -1 12449 var atts = uncommonAttributes(elm, selectorData); -1 12450 if (clss.length && clss[0].count === 1) { -1 12451 features = [ clss[0] ]; -1 12452 } else if (atts.length && atts[0].count === 1) { -1 12453 features = [ atts[0] ]; -1 12454 selector = getBaseSelector(elm); -1 12455 } else { -1 12456 features = clss.concat(atts); -1 12457 features.sort(countSort); -1 12458 features = features.slice(0, 3); -1 12459 if (!features.some(function(feat) { -1 12460 return feat.species === 'class'; -1 12461 })) { -1 12462 selector = getBaseSelector(elm); -1 12463 } else { -1 12464 features.sort(function(a2, b2) { -1 12465 return a2.species !== b2.species && a2.species === 'class' ? -1 : a2.species === b2.species ? 0 : 1; -1 12466 }); -1 12467 } -1 12468 } -1 12469 return selector += features.reduce(function(val, feat) { -1 12470 switch (feat.species) { -1 12471 case 'class': -1 12472 return val + '.' + feat.name; -1 12473 -1 12474 case 'attribute': -1 12475 return val + '[' + feat.name + ']'; -1 12476 } -1 12477 return val; -1 12478 }, ''); -1 12479 } -1 12480 function generateSelector(elm, options, doc) { -1 12481 if (!axe._selectorData) { -1 12482 throw new Error('Expect axe._selectorData to be set up'); -1 12483 } -1 12484 var _options$toRoot = options.toRoot, toRoot = _options$toRoot === void 0 ? false : _options$toRoot; -1 12485 var selector; -1 12486 var similar; -1 12487 do { -1 12488 var features = getElmId(elm); -1 12489 if (!features) { -1 12490 features = getThreeLeastCommonFeatures(elm, axe._selectorData); -1 12491 features += getNthChildString(elm, features); -1 12492 } -1 12493 if (selector) { -1 12494 selector = features + ' > ' + selector; -1 12495 } else { -1 12496 selector = features; -1 12497 } -1 12498 if (!similar || similar.length > constants_default.selectorSimilarFilterLimit) { -1 12499 similar = findSimilar(doc, selector); -1 12500 } else { -1 12501 similar = similar.filter(function(item) { -1 12502 return element_matches_default(item, selector); -1 12503 }); -1 12504 } -1 12505 elm = elm.parentElement; -1 12506 } while ((similar.length > 1 || toRoot) && elm && elm.nodeType !== 11); -1 12507 if (similar.length === 1) { -1 12508 return selector; -1 12509 } else if (selector.indexOf(' > ') !== -1) { -1 12510 return ':root' + selector.substring(selector.indexOf(' > ')); -1 12511 } -1 12512 return ':root'; -1 12513 } -1 12514 function getSelector(elm, options) { -1 12515 return _getShadowSelector(generateSelector, elm, options); -1 12516 } -1 12517 var get_selector_default = memoize_default(getSelector); -1 12518 var findSimilar = memoize_default(function(doc, selector) { -1 12519 return Array.from(doc.querySelectorAll(selector)); -1 12520 }); -1 12521 function generateAncestry(node) { -1 12522 var nodeName2 = node.nodeName.toLowerCase(); -1 12523 var parentElement = node.parentElement; -1 12524 var parentNode = node.parentNode; -1 12525 var nthChild = ''; -1 12526 if (nodeName2 !== 'head' && nodeName2 !== 'body' && (parentNode === null || parentNode === void 0 ? void 0 : parentNode.children.length) > 1) { -1 12527 var index = Array.prototype.indexOf.call(parentNode.children, node) + 1; -1 12528 nthChild = ':nth-child('.concat(index, ')'); -1 12529 } -1 12530 if (!parentElement) { -1 12531 return nodeName2 + nthChild; -1 12532 } -1 12533 return generateAncestry(parentElement) + ' > ' + nodeName2 + nthChild; -1 12534 } -1 12535 function _getAncestry(elm, options) { -1 12536 return _getShadowSelector(generateAncestry, elm, options); -1 12537 } -1 12538 function getXPathArray(node, path) { -1 12539 var sibling, count; -1 12540 if (!node) { -1 12541 return []; -1 12542 } -1 12543 if (!path && node.nodeType === 9) { -1 12544 path = [ { -1 12545 str: 'html' -1 12546 } ]; -1 12547 return path; -1 12548 } -1 12549 path = path || []; -1 12550 if (node.parentNode && node.parentNode !== node) { -1 12551 path = getXPathArray(node.parentNode, path); -1 12552 } -1 12553 if (node.previousSibling) { -1 12554 count = 1; -1 12555 sibling = node.previousSibling; -1 12556 do { -1 12557 if (sibling.nodeType === 1 && sibling.nodeName === node.nodeName) { -1 12558 count++; -1 12559 } -1 12560 sibling = sibling.previousSibling; -1 12561 } while (sibling); -1 12562 if (count === 1) { -1 12563 count = null; -1 12564 } -1 12565 } else if (node.nextSibling) { -1 12566 sibling = node.nextSibling; -1 12567 do { -1 12568 if (sibling.nodeType === 1 && sibling.nodeName === node.nodeName) { -1 12569 count = 1; -1 12570 sibling = null; -1 12571 } else { -1 12572 count = null; -1 12573 sibling = sibling.previousSibling; -1 12574 } -1 12575 } while (sibling); -1 12576 } -1 12577 if (node.nodeType === 1) { -1 12578 var element = {}; -1 12579 element.str = node.nodeName.toLowerCase(); -1 12580 var _id = node.getAttribute && escape_selector_default(node.getAttribute('id')); -1 12581 if (_id && node.ownerDocument.querySelectorAll('#' + _id).length === 1) { -1 12582 element.id = node.getAttribute('id'); -1 12583 } -1 12584 if (count > 1) { -1 12585 element.count = count; -1 12586 } -1 12587 path.push(element); -1 12588 } -1 12589 return path; -1 12590 } -1 12591 function xpathToString(xpathArray) { -1 12592 return xpathArray.reduce(function(str, elm) { -1 12593 if (elm.id) { -1 12594 return '//'.concat(elm.str, '[@id=\'').concat(elm.id, '\']'); -1 12595 } else { -1 12596 return str + '/'.concat(elm.str) + (elm.count > 0 ? '['.concat(elm.count, ']') : ''); -1 12597 } -1 12598 }, ''); -1 12599 } -1 12600 function getXpath(node) { -1 12601 var xpathArray = getXPathArray(node); -1 12602 return xpathToString(xpathArray); -1 12603 } -1 12604 var get_xpath_default = getXpath; -1 12605 var _cache = {}; -1 12606 var cache = { -1 12607 set: function set(key, value) { -1 12608 validateKey(key); -1 12609 _cache[key] = value; 12099 12610 },12100 -1 'aria-braillelabel': {12101 -1 type: 'string',12102 -1 allowEmpty: true,12103 -1 global: true-1 12611 get: function get(key, creator) { -1 12612 validateCreator(creator); -1 12613 if (key in _cache) { -1 12614 return _cache[key]; -1 12615 } -1 12616 if (typeof creator === 'function') { -1 12617 var value = creator(); -1 12618 assert_default(value !== void 0, 'Cache creator function should not return undefined'); -1 12619 this.set(key, value); -1 12620 return _cache[key]; -1 12621 } 12104 12622 },12105 -1 'aria-brailleroledescription': {12106 -1 type: 'string',12107 -1 allowEmpty: true,12108 -1 global: true-1 12623 clear: function clear() { -1 12624 _cache = {}; -1 12625 } -1 12626 }; -1 12627 function validateKey(key) { -1 12628 assert_default(typeof key === 'string', 'key must be a string, ' + _typeof(key) + ' given'); -1 12629 assert_default(key !== '', 'key must not be empty'); -1 12630 } -1 12631 function validateCreator(creator) { -1 12632 assert_default(typeof creator === 'function' || typeof creator === 'undefined', 'creator must be a function or undefined, ' + _typeof(creator) + ' given'); -1 12633 } -1 12634 var cache_default = cache; -1 12635 function getNodeFromTree(vNode, node) { -1 12636 var el = node || vNode; -1 12637 return cache_default.get('nodeMap') ? cache_default.get('nodeMap').get(el) : null; -1 12638 } -1 12639 var get_node_from_tree_default = getNodeFromTree; -1 12640 var dom_exports = {}; -1 12641 __export(dom_exports, { -1 12642 createGrid: function createGrid() { -1 12643 return _createGrid; 12109 12644 },12110 -1 'aria-busy': {12111 -1 type: 'boolean',12112 -1 global: true-1 12645 findElmsInContext: function findElmsInContext() { -1 12646 return find_elms_in_context_default; 12113 12647 },12114 -1 'aria-checked': {12115 -1 type: 'nmtoken',12116 -1 values: [ 'false', 'mixed', 'true', 'undefined' ]-1 12648 findNearbyElms: function findNearbyElms() { -1 12649 return _findNearbyElms; 12117 12650 },12118 -1 'aria-colcount': {12119 -1 type: 'int',12120 -1 minValue: -1-1 12651 findUp: function findUp() { -1 12652 return find_up_default; 12121 12653 },12122 -1 'aria-colindex': {12123 -1 type: 'int',12124 -1 minValue: 1-1 12654 findUpVirtual: function findUpVirtual() { -1 12655 return find_up_virtual_default; 12125 12656 },12126 -1 'aria-colspan': {12127 -1 type: 'int',12128 -1 minValue: 1-1 12657 focusDisabled: function focusDisabled() { -1 12658 return focus_disabled_default; 12129 12659 },12130 -1 'aria-controls': {12131 -1 type: 'idrefs',12132 -1 allowEmpty: true,12133 -1 global: true-1 12660 getComposedParent: function getComposedParent() { -1 12661 return get_composed_parent_default; 12134 12662 },12135 -1 'aria-current': {12136 -1 type: 'nmtoken',12137 -1 allowEmpty: true,12138 -1 values: [ 'page', 'step', 'location', 'date', 'time', 'true', 'false' ],12139 -1 global: true-1 12663 getElementByReference: function getElementByReference() { -1 12664 return get_element_by_reference_default; 12140 12665 },12141 -1 'aria-describedby': {12142 -1 type: 'idrefs',12143 -1 allowEmpty: true,12144 -1 global: true-1 12666 getElementCoordinates: function getElementCoordinates() { -1 12667 return get_element_coordinates_default; 12145 12668 },12146 -1 'aria-description': {12147 -1 type: 'string',12148 -1 allowEmpty: true,12149 -1 global: true-1 12669 getElementStack: function getElementStack() { -1 12670 return get_element_stack_default; 12150 12671 },12151 -1 'aria-details': {12152 -1 type: 'idref',12153 -1 allowEmpty: true,12154 -1 global: true-1 12672 getModalDialog: function getModalDialog() { -1 12673 return get_modal_dialog_default; 12155 12674 },12156 -1 'aria-disabled': {12157 -1 type: 'boolean',12158 -1 global: true-1 12675 getNodeGrid: function getNodeGrid() { -1 12676 return _getNodeGrid; 12159 12677 },12160 -1 'aria-dropeffect': {12161 -1 type: 'nmtokens',12162 -1 values: [ 'copy', 'execute', 'link', 'move', 'none', 'popup' ],12163 -1 global: true-1 12678 getOverflowHiddenAncestors: function getOverflowHiddenAncestors() { -1 12679 return get_overflow_hidden_ancestors_default; 12164 12680 },12165 -1 'aria-errormessage': {12166 -1 type: 'idref',12167 -1 allowEmpty: true,12168 -1 global: true-1 12681 getRootNode: function getRootNode() { -1 12682 return get_root_node_default2; 12169 12683 },12170 -1 'aria-expanded': {12171 -1 type: 'nmtoken',12172 -1 values: [ 'true', 'false', 'undefined' ]-1 12684 getScrollOffset: function getScrollOffset() { -1 12685 return get_scroll_offset_default; 12173 12686 },12174 -1 'aria-flowto': {12175 -1 type: 'idrefs',12176 -1 allowEmpty: true,12177 -1 global: true-1 12687 getTabbableElements: function getTabbableElements() { -1 12688 return get_tabbable_elements_default; 12178 12689 },12179 -1 'aria-grabbed': {12180 -1 type: 'nmtoken',12181 -1 values: [ 'true', 'false', 'undefined' ],12182 -1 global: true-1 12690 getTargetRects: function getTargetRects() { -1 12691 return get_target_rects_default; 12183 12692 },12184 -1 'aria-haspopup': {12185 -1 type: 'nmtoken',12186 -1 allowEmpty: true,12187 -1 values: [ 'true', 'false', 'menu', 'listbox', 'tree', 'grid', 'dialog' ],12188 -1 global: true-1 12693 getTargetSize: function getTargetSize() { -1 12694 return get_target_size_default; 12189 12695 },12190 -1 'aria-hidden': {12191 -1 type: 'nmtoken',12192 -1 values: [ 'true', 'false', 'undefined' ],12193 -1 global: true-1 12696 getTextElementStack: function getTextElementStack() { -1 12697 return get_text_element_stack_default; 12194 12698 },12195 -1 'aria-invalid': {12196 -1 type: 'nmtoken',12197 -1 values: [ 'grammar', 'false', 'spelling', 'true' ],12198 -1 global: true-1 12699 getViewportSize: function getViewportSize() { -1 12700 return get_viewport_size_default; 12199 12701 },12200 -1 'aria-keyshortcuts': {12201 -1 type: 'string',12202 -1 allowEmpty: true,12203 -1 global: true-1 12702 getVisibleChildTextRects: function getVisibleChildTextRects() { -1 12703 return get_visible_child_text_rects_default; 12204 12704 },12205 -1 'aria-label': {12206 -1 type: 'string',12207 -1 allowEmpty: true,12208 -1 global: true-1 12705 hasContent: function hasContent() { -1 12706 return has_content_default; 12209 12707 },12210 -1 'aria-labelledby': {12211 -1 type: 'idrefs',12212 -1 allowEmpty: true,12213 -1 global: true-1 12708 hasContentVirtual: function hasContentVirtual() { -1 12709 return has_content_virtual_default; 12214 12710 },12215 -1 'aria-level': {12216 -1 type: 'int',12217 -1 minValue: 1-1 12711 hasLangText: function hasLangText() { -1 12712 return _hasLangText; 12218 12713 },12219 -1 'aria-live': {12220 -1 type: 'nmtoken',12221 -1 values: [ 'assertive', 'off', 'polite' ],12222 -1 global: true-1 12714 idrefs: function idrefs() { -1 12715 return idrefs_default; 12223 12716 },12224 -1 'aria-modal': {12225 -1 type: 'boolean'-1 12717 insertedIntoFocusOrder: function insertedIntoFocusOrder() { -1 12718 return inserted_into_focus_order_default; 12226 12719 },12227 -1 'aria-multiline': {12228 -1 type: 'boolean'-1 12720 isCurrentPageLink: function isCurrentPageLink() { -1 12721 return _isCurrentPageLink; 12229 12722 },12230 -1 'aria-multiselectable': {12231 -1 type: 'boolean'-1 12723 isFocusable: function isFocusable() { -1 12724 return _isFocusable; 12232 12725 },12233 -1 'aria-orientation': {12234 -1 type: 'nmtoken',12235 -1 values: [ 'horizontal', 'undefined', 'vertical' ]-1 12726 isHTML5: function isHTML5() { -1 12727 return is_html5_default; 12236 12728 },12237 -1 'aria-owns': {12238 -1 type: 'idrefs',12239 -1 allowEmpty: true,12240 -1 global: true-1 12729 isHiddenForEveryone: function isHiddenForEveryone() { -1 12730 return _isHiddenForEveryone; 12241 12731 },12242 -1 'aria-placeholder': {12243 -1 type: 'string',12244 -1 allowEmpty: true-1 12732 isHiddenWithCSS: function isHiddenWithCSS() { -1 12733 return is_hidden_with_css_default; 12245 12734 },12246 -1 'aria-posinset': {12247 -1 type: 'int',12248 -1 minValue: 1-1 12735 isInTabOrder: function isInTabOrder() { -1 12736 return _isInTabOrder; 12249 12737 },12250 -1 'aria-pressed': {12251 -1 type: 'nmtoken',12252 -1 values: [ 'false', 'mixed', 'true', 'undefined' ]-1 12738 isInTextBlock: function isInTextBlock() { -1 12739 return is_in_text_block_default; 12253 12740 },12254 -1 'aria-readonly': {12255 -1 type: 'boolean'-1 12741 isInert: function isInert() { -1 12742 return _isInert; 12256 12743 },12257 -1 'aria-relevant': {12258 -1 type: 'nmtokens',12259 -1 values: [ 'additions', 'all', 'removals', 'text' ],12260 -1 global: true-1 12744 isModalOpen: function isModalOpen() { -1 12745 return is_modal_open_default; 12261 12746 },12262 -1 'aria-required': {12263 -1 type: 'boolean'-1 12747 isMultiline: function isMultiline() { -1 12748 return _isMultiline; 12264 12749 },12265 -1 'aria-roledescription': {12266 -1 type: 'string',12267 -1 allowEmpty: true,12268 -1 global: true-1 12750 isNativelyFocusable: function isNativelyFocusable() { -1 12751 return is_natively_focusable_default; 12269 12752 },12270 -1 'aria-rowcount': {12271 -1 type: 'int',12272 -1 minValue: -1-1 12753 isNode: function isNode() { -1 12754 return is_node_default; 12273 12755 },12274 -1 'aria-rowindex': {12275 -1 type: 'int',12276 -1 minValue: 1-1 12756 isOffscreen: function isOffscreen() { -1 12757 return is_offscreen_default; 12277 12758 },12278 -1 'aria-rowspan': {12279 -1 type: 'int',12280 -1 minValue: 0-1 12759 isOpaque: function isOpaque() { -1 12760 return is_opaque_default; 12281 12761 },12282 -1 'aria-selected': {12283 -1 type: 'nmtoken',12284 -1 values: [ 'false', 'true', 'undefined' ]-1 12762 isSkipLink: function isSkipLink() { -1 12763 return _isSkipLink; 12285 12764 },12286 -1 'aria-setsize': {12287 -1 type: 'int',12288 -1 minValue: -1-1 12765 isVisible: function isVisible() { -1 12766 return is_visible_default; 12289 12767 },12290 -1 'aria-sort': {12291 -1 type: 'nmtoken',12292 -1 values: [ 'ascending', 'descending', 'none', 'other' ]-1 12768 isVisibleOnScreen: function isVisibleOnScreen() { -1 12769 return _isVisibleOnScreen; 12293 12770 },12294 -1 'aria-valuemax': {12295 -1 type: 'decimal'-1 12771 isVisibleToScreenReaders: function isVisibleToScreenReaders() { -1 12772 return _isVisibleToScreenReaders; 12296 12773 },12297 -1 'aria-valuemin': {12298 -1 type: 'decimal'-1 12774 isVisualContent: function isVisualContent() { -1 12775 return is_visual_content_default; 12299 12776 },12300 -1 'aria-valuenow': {12301 -1 type: 'decimal'-1 12777 reduceToElementsBelowFloating: function reduceToElementsBelowFloating() { -1 12778 return reduce_to_elements_below_floating_default; 12302 12779 },12303 -1 'aria-valuetext': {12304 -1 type: 'string',12305 -1 allowEmpty: true12306 -1 }12307 -1 };12308 -1 var aria_attrs_default = ariaAttrs;12309 -1 var ariaRoles = {12310 -1 alert: {12311 -1 type: 'structure',12312 -1 allowedAttrs: [ 'aria-expanded' ],12313 -1 superclassRole: [ 'section' ]-1 12780 shadowElementsFromPoint: function shadowElementsFromPoint() { -1 12781 return shadow_elements_from_point_default; 12314 12782 },12315 -1 alertdialog: {12316 -1 type: 'window',12317 -1 allowedAttrs: [ 'aria-expanded', 'aria-modal' ],12318 -1 superclassRole: [ 'alert', 'dialog' ],12319 -1 accessibleNameRequired: true-1 12783 urlPropsFromAttribute: function urlPropsFromAttribute() { -1 12784 return url_props_from_attribute_default; 12320 12785 },12321 -1 application: {12322 -1 type: 'landmark',12323 -1 allowedAttrs: [ 'aria-activedescendant', 'aria-expanded' ],12324 -1 superclassRole: [ 'structure' ],12325 -1 accessibleNameRequired: true-1 12786 visuallyContains: function visuallyContains() { -1 12787 return _visuallyContains; 12326 12788 },12327 -1 article: {12328 -1 type: 'structure',12329 -1 allowedAttrs: [ 'aria-posinset', 'aria-setsize', 'aria-expanded' ],12330 -1 superclassRole: [ 'document' ]-1 12789 visuallyOverlaps: function visuallyOverlaps() { -1 12790 return visually_overlaps_default; 12331 12791 },12332 -1 banner: {12333 -1 type: 'landmark',12334 -1 allowedAttrs: [ 'aria-expanded' ],12335 -1 superclassRole: [ 'landmark' ]12336 -1 },12337 -1 blockquote: {12338 -1 type: 'structure',12339 -1 superclassRole: [ 'section' ]12340 -1 },12341 -1 button: {12342 -1 type: 'widget',12343 -1 allowedAttrs: [ 'aria-expanded', 'aria-pressed' ],12344 -1 superclassRole: [ 'command' ],12345 -1 accessibleNameRequired: true,12346 -1 nameFromContent: true,12347 -1 childrenPresentational: true12348 -1 },12349 -1 caption: {12350 -1 type: 'structure',12351 -1 requiredContext: [ 'figure', 'table', 'grid', 'treegrid' ],12352 -1 superclassRole: [ 'section' ],12353 -1 prohibitedAttrs: [ 'aria-label', 'aria-labelledby' ]12354 -1 },12355 -1 cell: {12356 -1 type: 'structure',12357 -1 requiredContext: [ 'row' ],12358 -1 allowedAttrs: [ 'aria-colindex', 'aria-colspan', 'aria-rowindex', 'aria-rowspan', 'aria-expanded' ],12359 -1 superclassRole: [ 'section' ],12360 -1 nameFromContent: true12361 -1 },12362 -1 checkbox: {12363 -1 type: 'widget',12364 -1 requiredAttrs: [ 'aria-checked' ],12365 -1 allowedAttrs: [ 'aria-readonly', 'aria-expanded', 'aria-required' ],12366 -1 superclassRole: [ 'input' ],12367 -1 accessibleNameRequired: true,12368 -1 nameFromContent: true,12369 -1 childrenPresentational: true12370 -1 },12371 -1 code: {12372 -1 type: 'structure',12373 -1 superclassRole: [ 'section' ],12374 -1 prohibitedAttrs: [ 'aria-label', 'aria-labelledby' ]12375 -1 },12376 -1 columnheader: {12377 -1 type: 'structure',12378 -1 requiredContext: [ 'row' ],12379 -1 allowedAttrs: [ 'aria-sort', 'aria-colindex', 'aria-colspan', 'aria-expanded', 'aria-readonly', 'aria-required', 'aria-rowindex', 'aria-rowspan', 'aria-selected' ],12380 -1 superclassRole: [ 'cell', 'gridcell', 'sectionhead' ],12381 -1 accessibleNameRequired: false,12382 -1 nameFromContent: true12383 -1 },12384 -1 combobox: {12385 -1 type: 'widget',12386 -1 requiredAttrs: [ 'aria-expanded', 'aria-controls' ],12387 -1 allowedAttrs: [ 'aria-owns', 'aria-autocomplete', 'aria-readonly', 'aria-required', 'aria-activedescendant', 'aria-orientation' ],12388 -1 superclassRole: [ 'select' ],12389 -1 accessibleNameRequired: true12390 -1 },12391 -1 command: {12392 -1 type: 'abstract',12393 -1 superclassRole: [ 'widget' ]12394 -1 },12395 -1 complementary: {12396 -1 type: 'landmark',12397 -1 allowedAttrs: [ 'aria-expanded' ],12398 -1 superclassRole: [ 'landmark' ]12399 -1 },12400 -1 composite: {12401 -1 type: 'abstract',12402 -1 superclassRole: [ 'widget' ]12403 -1 },12404 -1 contentinfo: {12405 -1 type: 'landmark',12406 -1 allowedAttrs: [ 'aria-expanded' ],12407 -1 superclassRole: [ 'landmark' ]12408 -1 },12409 -1 comment: {12410 -1 type: 'structure',12411 -1 allowedAttrs: [ 'aria-level', 'aria-posinset', 'aria-setsize' ],12412 -1 superclassRole: [ 'article' ]12413 -1 },12414 -1 definition: {12415 -1 type: 'structure',12416 -1 allowedAttrs: [ 'aria-expanded' ],12417 -1 superclassRole: [ 'section' ]12418 -1 },12419 -1 deletion: {12420 -1 type: 'structure',12421 -1 superclassRole: [ 'section' ],12422 -1 prohibitedAttrs: [ 'aria-label', 'aria-labelledby' ]-1 12792 visuallySort: function visuallySort() { -1 12793 return _visuallySort; -1 12794 } -1 12795 }); -1 12796 function getRootNode(node) { -1 12797 var doc = node.getRootNode && node.getRootNode() || document; -1 12798 if (doc === node) { -1 12799 doc = document; -1 12800 } -1 12801 return doc; -1 12802 } -1 12803 var get_root_node_default = getRootNode; -1 12804 var get_root_node_default2 = get_root_node_default; -1 12805 function findElmsInContext(_ref24) { -1 12806 var context = _ref24.context, value = _ref24.value, attr = _ref24.attr, _ref24$elm = _ref24.elm, elm = _ref24$elm === void 0 ? '' : _ref24$elm; -1 12807 var root; -1 12808 var escapedValue = escape_selector_default(value); -1 12809 if (context.nodeType === 9 || context.nodeType === 11) { -1 12810 root = context; -1 12811 } else { -1 12812 root = get_root_node_default2(context); -1 12813 } -1 12814 return Array.from(root.querySelectorAll(elm + '[' + attr + '=' + escapedValue + ']')); -1 12815 } -1 12816 var find_elms_in_context_default = findElmsInContext; -1 12817 function findUpVirtual(element, target) { -1 12818 var parent; -1 12819 parent = element.actualNode; -1 12820 if (!element.shadowId && typeof element.actualNode.closest === 'function') { -1 12821 var match = element.actualNode.closest(target); -1 12822 if (match) { -1 12823 return match; -1 12824 } -1 12825 return null; -1 12826 } -1 12827 do { -1 12828 parent = parent.assignedSlot ? parent.assignedSlot : parent.parentNode; -1 12829 if (parent && parent.nodeType === 11) { -1 12830 parent = parent.host; -1 12831 } -1 12832 } while (parent && !element_matches_default(parent, target) && parent !== document.documentElement); -1 12833 if (!parent) { -1 12834 return null; -1 12835 } -1 12836 if (!element_matches_default(parent, target)) { -1 12837 return null; -1 12838 } -1 12839 return parent; -1 12840 } -1 12841 var find_up_virtual_default = findUpVirtual; -1 12842 function findUp(element, target) { -1 12843 return find_up_virtual_default(get_node_from_tree_default(element), target); -1 12844 } -1 12845 var find_up_default = findUp; -1 12846 function _rectsOverlap(rect1, rect2) { -1 12847 return (rect1.left | 0) < (rect2.right | 0) && (rect1.right | 0) > (rect2.left | 0) && (rect1.top | 0) < (rect2.bottom | 0) && (rect1.bottom | 0) > (rect2.top | 0); -1 12848 } -1 12849 var getOverflowHiddenAncestors = memoize_default(function getOverflowHiddenAncestorsMemoized(vNode) { -1 12850 var ancestors = []; -1 12851 if (!vNode) { -1 12852 return ancestors; -1 12853 } -1 12854 var overflow = vNode.getComputedStylePropertyValue('overflow'); -1 12855 if (overflow === 'hidden') { -1 12856 ancestors.push(vNode); -1 12857 } -1 12858 return ancestors.concat(getOverflowHiddenAncestors(vNode.parent)); -1 12859 }); -1 12860 var get_overflow_hidden_ancestors_default = getOverflowHiddenAncestors; -1 12861 var clipRegex = /rect\s*\(([0-9]+)px,?\s*([0-9]+)px,?\s*([0-9]+)px,?\s*([0-9]+)px\s*\)/; -1 12862 var clipPathRegex = /(\w+)\((\d+)/; -1 12863 function nativelyHidden(vNode) { -1 12864 return [ 'style', 'script', 'noscript', 'template' ].includes(vNode.props.nodeName); -1 12865 } -1 12866 function displayHidden(vNode) { -1 12867 if (vNode.props.nodeName === 'area') { -1 12868 return false; -1 12869 } -1 12870 return vNode.getComputedStylePropertyValue('display') === 'none'; -1 12871 } -1 12872 function visibilityHidden(vNode) { -1 12873 var _ref25 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, isAncestor = _ref25.isAncestor; -1 12874 return !isAncestor && [ 'hidden', 'collapse' ].includes(vNode.getComputedStylePropertyValue('visibility')); -1 12875 } -1 12876 function contentVisibiltyHidden(vNode) { -1 12877 var _ref26 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, isAncestor = _ref26.isAncestor; -1 12878 return !!isAncestor && vNode.getComputedStylePropertyValue('content-visibility') === 'hidden'; -1 12879 } -1 12880 function ariaHidden(vNode) { -1 12881 return vNode.attr('aria-hidden') === 'true'; -1 12882 } -1 12883 function opacityHidden(vNode) { -1 12884 return vNode.getComputedStylePropertyValue('opacity') === '0'; -1 12885 } -1 12886 function scrollHidden(vNode) { -1 12887 var scroll = get_scroll_default(vNode.actualNode); -1 12888 var elHeight = parseInt(vNode.getComputedStylePropertyValue('height')); -1 12889 var elWidth = parseInt(vNode.getComputedStylePropertyValue('width')); -1 12890 return !!scroll && (elHeight === 0 || elWidth === 0); -1 12891 } -1 12892 function overflowHidden(vNode) { -1 12893 var _ref27 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, isAncestor = _ref27.isAncestor; -1 12894 if (isAncestor) { -1 12895 return false; -1 12896 } -1 12897 var position = vNode.getComputedStylePropertyValue('position'); -1 12898 if (position === 'fixed') { -1 12899 return false; -1 12900 } -1 12901 var nodes = get_overflow_hidden_ancestors_default(vNode); -1 12902 if (!nodes.length) { -1 12903 return false; -1 12904 } -1 12905 var rect = vNode.boundingClientRect; -1 12906 return nodes.some(function(node) { -1 12907 if (position === 'absolute' && !hasPositionedAncestorBetween(vNode, node) && node.getComputedStylePropertyValue('position') === 'static') { -1 12908 return false; -1 12909 } -1 12910 var nodeRect = node.boundingClientRect; -1 12911 if (nodeRect.width < 2 || nodeRect.height < 2) { -1 12912 return true; -1 12913 } -1 12914 return !_rectsOverlap(rect, nodeRect); -1 12915 }); -1 12916 } -1 12917 function clipHidden(vNode) { -1 12918 var matchesClip = vNode.getComputedStylePropertyValue('clip').match(clipRegex); -1 12919 var matchesClipPath = vNode.getComputedStylePropertyValue('clip-path').match(clipPathRegex); -1 12920 if (matchesClip && matchesClip.length === 5) { -1 12921 var position = vNode.getComputedStylePropertyValue('position'); -1 12922 if ([ 'fixed', 'absolute' ].includes(position)) { -1 12923 return matchesClip[3] - matchesClip[1] <= 0 && matchesClip[2] - matchesClip[4] <= 0; -1 12924 } -1 12925 } -1 12926 if (matchesClipPath) { -1 12927 var type2 = matchesClipPath[1]; -1 12928 var value = parseInt(matchesClipPath[2], 10); -1 12929 switch (type2) { -1 12930 case 'inset': -1 12931 return value >= 50; -1 12932 -1 12933 case 'circle': -1 12934 return value === 0; -1 12935 -1 12936 default: -1 12937 } -1 12938 } -1 12939 return false; -1 12940 } -1 12941 function areaHidden(vNode, visibleFunction) { -1 12942 var mapEl = closest_default(vNode, 'map'); -1 12943 if (!mapEl) { -1 12944 return true; -1 12945 } -1 12946 var mapElName = mapEl.attr('name'); -1 12947 if (!mapElName) { -1 12948 return true; -1 12949 } -1 12950 var mapElRootNode = get_root_node_default(vNode.actualNode); -1 12951 if (!mapElRootNode || mapElRootNode.nodeType !== 9) { -1 12952 return true; -1 12953 } -1 12954 var refs = query_selector_all_default(axe._tree, 'img[usemap="#'.concat(escape_selector_default(mapElName), '"]')); -1 12955 if (!refs || !refs.length) { -1 12956 return true; -1 12957 } -1 12958 return refs.some(function(ref) { -1 12959 return !visibleFunction(ref); -1 12960 }); -1 12961 } -1 12962 function detailsHidden(vNode) { -1 12963 var _vNode$parent; -1 12964 if (((_vNode$parent = vNode.parent) === null || _vNode$parent === void 0 ? void 0 : _vNode$parent.props.nodeName) !== 'details') { -1 12965 return false; -1 12966 } -1 12967 if (vNode.props.nodeName === 'summary') { -1 12968 var firstSummary = vNode.parent.children.find(function(node) { -1 12969 return node.props.nodeName === 'summary'; -1 12970 }); -1 12971 if (firstSummary === vNode) { -1 12972 return false; -1 12973 } -1 12974 } -1 12975 return !vNode.parent.hasAttr('open'); -1 12976 } -1 12977 function hasPositionedAncestorBetween(child, ancestor) { -1 12978 var node = child.parent; -1 12979 while (node && node !== ancestor) { -1 12980 if ([ 'relative', 'sticky' ].includes(node.getComputedStylePropertyValue('position'))) { -1 12981 return true; -1 12982 } -1 12983 node = node.parent; -1 12984 } -1 12985 return false; -1 12986 } -1 12987 var hiddenMethods = [ displayHidden, visibilityHidden, contentVisibiltyHidden, detailsHidden ]; -1 12988 function _isHiddenForEveryone(vNode) { -1 12989 var _ref28 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, skipAncestors = _ref28.skipAncestors, _ref28$isAncestor = _ref28.isAncestor, isAncestor = _ref28$isAncestor === void 0 ? false : _ref28$isAncestor; -1 12990 vNode = _nodeLookup(vNode).vNode; -1 12991 if (skipAncestors) { -1 12992 return isHiddenSelf(vNode, isAncestor); -1 12993 } -1 12994 return isHiddenAncestors(vNode, isAncestor); -1 12995 } -1 12996 var isHiddenSelf = memoize_default(function isHiddenSelfMemoized(vNode, isAncestor) { -1 12997 if (nativelyHidden(vNode)) { -1 12998 return true; -1 12999 } -1 13000 if (!vNode.actualNode) { -1 13001 return false; -1 13002 } -1 13003 if (hiddenMethods.some(function(method) { -1 13004 return method(vNode, { -1 13005 isAncestor: isAncestor -1 13006 }); -1 13007 })) { -1 13008 return true; -1 13009 } -1 13010 if (!vNode.actualNode.isConnected) { -1 13011 return true; -1 13012 } -1 13013 return false; -1 13014 }); -1 13015 var isHiddenAncestors = memoize_default(function isHiddenAncestorsMemoized(vNode, isAncestor) { -1 13016 if (isHiddenSelf(vNode, isAncestor)) { -1 13017 return true; -1 13018 } -1 13019 if (!vNode.parent) { -1 13020 return false; -1 13021 } -1 13022 return isHiddenAncestors(vNode.parent, true); -1 13023 }); -1 13024 function getComposedParent(element) { -1 13025 if (element.assignedSlot) { -1 13026 return getComposedParent(element.assignedSlot); -1 13027 } else if (element.parentNode) { -1 13028 var parentNode = element.parentNode; -1 13029 if (parentNode.nodeType === 1) { -1 13030 return parentNode; -1 13031 } else if (parentNode.host) { -1 13032 return parentNode.host; -1 13033 } -1 13034 } -1 13035 return null; -1 13036 } -1 13037 var get_composed_parent_default = getComposedParent; -1 13038 function getScrollOffset(element) { -1 13039 if (!element.nodeType && element.document) { -1 13040 element = element.document; -1 13041 } -1 13042 if (element.nodeType === 9) { -1 13043 var docElement = element.documentElement, body = element.body; -1 13044 return { -1 13045 left: docElement && docElement.scrollLeft || body && body.scrollLeft || 0, -1 13046 top: docElement && docElement.scrollTop || body && body.scrollTop || 0 -1 13047 }; -1 13048 } -1 13049 return { -1 13050 left: element.scrollLeft, -1 13051 top: element.scrollTop -1 13052 }; -1 13053 } -1 13054 var get_scroll_offset_default = getScrollOffset; -1 13055 function getElementCoordinates(element) { -1 13056 var scrollOffset = get_scroll_offset_default(document), xOffset = scrollOffset.left, yOffset = scrollOffset.top, coords = element.getBoundingClientRect(); -1 13057 return { -1 13058 top: coords.top + yOffset, -1 13059 right: coords.right + xOffset, -1 13060 bottom: coords.bottom + yOffset, -1 13061 left: coords.left + xOffset, -1 13062 width: coords.right - coords.left, -1 13063 height: coords.bottom - coords.top -1 13064 }; -1 13065 } -1 13066 var get_element_coordinates_default = getElementCoordinates; -1 13067 function getViewportSize(win) { -1 13068 var doc = win.document; -1 13069 var docElement = doc.documentElement; -1 13070 if (win.innerWidth) { -1 13071 return { -1 13072 width: win.innerWidth, -1 13073 height: win.innerHeight -1 13074 }; -1 13075 } -1 13076 if (docElement) { -1 13077 return { -1 13078 width: docElement.clientWidth, -1 13079 height: docElement.clientHeight -1 13080 }; -1 13081 } -1 13082 var body = doc.body; -1 13083 return { -1 13084 width: body.clientWidth, -1 13085 height: body.clientHeight -1 13086 }; -1 13087 } -1 13088 var get_viewport_size_default = getViewportSize; -1 13089 function noParentScrolled(element, offset) { -1 13090 element = get_composed_parent_default(element); -1 13091 while (element && element.nodeName.toLowerCase() !== 'html') { -1 13092 if (element.scrollTop) { -1 13093 offset += element.scrollTop; -1 13094 if (offset >= 0) { -1 13095 return false; -1 13096 } -1 13097 } -1 13098 element = get_composed_parent_default(element); -1 13099 } -1 13100 return true; -1 13101 } -1 13102 function isOffscreen(element) { -1 13103 var _ref29 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, isAncestor = _ref29.isAncestor; -1 13104 if (isAncestor) { -1 13105 return false; -1 13106 } -1 13107 var _nodeLookup2 = _nodeLookup(element), domNode = _nodeLookup2.domNode; -1 13108 if (!domNode) { -1 13109 return void 0; -1 13110 } -1 13111 var leftBoundary; -1 13112 var docElement = document.documentElement; -1 13113 var styl = window.getComputedStyle(domNode); -1 13114 var dir = window.getComputedStyle(document.body || docElement).getPropertyValue('direction'); -1 13115 var coords = get_element_coordinates_default(domNode); -1 13116 if (coords.bottom < 0 && (noParentScrolled(domNode, coords.bottom) || styl.position === 'absolute')) { -1 13117 return true; -1 13118 } -1 13119 if (coords.left === 0 && coords.right === 0) { -1 13120 return false; -1 13121 } -1 13122 if (dir === 'ltr') { -1 13123 if (coords.right <= 0) { -1 13124 return true; -1 13125 } -1 13126 } else { -1 13127 leftBoundary = Math.max(docElement.scrollWidth, get_viewport_size_default(window).width); -1 13128 if (coords.left >= leftBoundary) { -1 13129 return true; -1 13130 } -1 13131 } -1 13132 return false; -1 13133 } -1 13134 var is_offscreen_default = isOffscreen; -1 13135 var hiddenMethods2 = [ opacityHidden, scrollHidden, overflowHidden, clipHidden, is_offscreen_default ]; -1 13136 function _isVisibleOnScreen(vNode) { -1 13137 vNode = _nodeLookup(vNode).vNode; -1 13138 return isVisibleOnScreenVirtual(vNode); -1 13139 } -1 13140 var isVisibleOnScreenVirtual = memoize_default(function isVisibleOnScreenMemoized(vNode, isAncestor) { -1 13141 if (vNode.actualNode && vNode.props.nodeName === 'area') { -1 13142 return !areaHidden(vNode, isVisibleOnScreenVirtual); -1 13143 } -1 13144 if (_isHiddenForEveryone(vNode, { -1 13145 skipAncestors: true, -1 13146 isAncestor: isAncestor -1 13147 })) { -1 13148 return false; -1 13149 } -1 13150 if (vNode.actualNode && hiddenMethods2.some(function(method) { -1 13151 return method(vNode, { -1 13152 isAncestor: isAncestor -1 13153 }); -1 13154 })) { -1 13155 return false; -1 13156 } -1 13157 if (!vNode.parent) { -1 13158 return true; -1 13159 } -1 13160 return isVisibleOnScreenVirtual(vNode.parent, true); -1 13161 }); -1 13162 function _getBoundingRect(rectA, rectB) { -1 13163 var top = Math.min(rectA.top, rectB.top); -1 13164 var right = Math.max(rectA.right, rectB.right); -1 13165 var bottom = Math.max(rectA.bottom, rectB.bottom); -1 13166 var left = Math.min(rectA.left, rectB.left); -1 13167 return new window.DOMRect(left, top, right - left, bottom - top); -1 13168 } -1 13169 function _isPointInRect(_ref30, _ref31) { -1 13170 var x = _ref30.x, y = _ref30.y; -1 13171 var top = _ref31.top, right = _ref31.right, bottom = _ref31.bottom, left = _ref31.left; -1 13172 return y >= top && x <= right && y <= bottom && x >= left; -1 13173 } -1 13174 var math_exports = {}; -1 13175 __export(math_exports, { -1 13176 getBoundingRect: function getBoundingRect() { -1 13177 return _getBoundingRect; 12423 13178 },12424 -1 dialog: {12425 -1 type: 'window',12426 -1 allowedAttrs: [ 'aria-expanded', 'aria-modal' ],12427 -1 superclassRole: [ 'window' ],12428 -1 accessibleNameRequired: true-1 13179 getIntersectionRect: function getIntersectionRect() { -1 13180 return _getIntersectionRect; 12429 13181 },12430 -1 directory: {12431 -1 type: 'structure',12432 -1 deprecated: true,12433 -1 allowedAttrs: [ 'aria-expanded' ],12434 -1 superclassRole: [ 'list' ],12435 -1 nameFromContent: true-1 13182 getOffset: function getOffset() { -1 13183 return _getOffset; 12436 13184 },12437 -1 document: {12438 -1 type: 'structure',12439 -1 allowedAttrs: [ 'aria-expanded' ],12440 -1 superclassRole: [ 'structure' ]-1 13185 getRectCenter: function getRectCenter() { -1 13186 return _getRectCenter; 12441 13187 },12442 -1 emphasis: {12443 -1 type: 'structure',12444 -1 superclassRole: [ 'section' ],12445 -1 prohibitedAttrs: [ 'aria-label', 'aria-labelledby' ]-1 13188 hasVisualOverlap: function hasVisualOverlap() { -1 13189 return _hasVisualOverlap; 12446 13190 },12447 -1 feed: {12448 -1 type: 'structure',12449 -1 requiredOwned: [ 'article' ],12450 -1 allowedAttrs: [ 'aria-expanded' ],12451 -1 superclassRole: [ 'list' ]-1 13191 isPointInRect: function isPointInRect() { -1 13192 return _isPointInRect; 12452 13193 },12453 -1 figure: {12454 -1 type: 'structure',12455 -1 allowedAttrs: [ 'aria-expanded' ],12456 -1 superclassRole: [ 'section' ],12457 -1 nameFromContent: true-1 13194 rectHasMinimumSize: function rectHasMinimumSize() { -1 13195 return _rectHasMinimumSize; 12458 13196 },12459 -1 form: {12460 -1 type: 'landmark',12461 -1 allowedAttrs: [ 'aria-expanded' ],12462 -1 superclassRole: [ 'landmark' ]-1 13197 rectsOverlap: function rectsOverlap() { -1 13198 return _rectsOverlap; 12463 13199 },12464 -1 grid: {12465 -1 type: 'composite',12466 -1 requiredOwned: [ 'rowgroup', 'row' ],12467 -1 allowedAttrs: [ 'aria-level', 'aria-multiselectable', 'aria-readonly', 'aria-activedescendant', 'aria-colcount', 'aria-expanded', 'aria-rowcount' ],12468 -1 superclassRole: [ 'composite', 'table' ],12469 -1 accessibleNameRequired: false12470 -1 },12471 -1 gridcell: {12472 -1 type: 'widget',12473 -1 requiredContext: [ 'row' ],12474 -1 allowedAttrs: [ 'aria-readonly', 'aria-required', 'aria-selected', 'aria-colindex', 'aria-colspan', 'aria-expanded', 'aria-rowindex', 'aria-rowspan' ],12475 -1 superclassRole: [ 'cell', 'widget' ],12476 -1 nameFromContent: true12477 -1 },12478 -1 group: {12479 -1 type: 'structure',12480 -1 allowedAttrs: [ 'aria-activedescendant', 'aria-expanded' ],12481 -1 superclassRole: [ 'section' ]12482 -1 },12483 -1 heading: {12484 -1 type: 'structure',12485 -1 requiredAttrs: [ 'aria-level' ],12486 -1 allowedAttrs: [ 'aria-expanded' ],12487 -1 superclassRole: [ 'sectionhead' ],12488 -1 accessibleNameRequired: false,12489 -1 nameFromContent: true12490 -1 },12491 -1 img: {12492 -1 type: 'structure',12493 -1 allowedAttrs: [ 'aria-expanded' ],12494 -1 superclassRole: [ 'section' ],12495 -1 accessibleNameRequired: true,12496 -1 childrenPresentational: true12497 -1 },12498 -1 input: {12499 -1 type: 'abstract',12500 -1 superclassRole: [ 'widget' ]12501 -1 },12502 -1 insertion: {12503 -1 type: 'structure',12504 -1 superclassRole: [ 'section' ],12505 -1 prohibitedAttrs: [ 'aria-label', 'aria-labelledby' ]12506 -1 },12507 -1 landmark: {12508 -1 type: 'abstract',12509 -1 superclassRole: [ 'section' ]12510 -1 },12511 -1 link: {12512 -1 type: 'widget',12513 -1 allowedAttrs: [ 'aria-expanded' ],12514 -1 superclassRole: [ 'command' ],12515 -1 accessibleNameRequired: true,12516 -1 nameFromContent: true12517 -1 },12518 -1 list: {12519 -1 type: 'structure',12520 -1 requiredOwned: [ 'listitem' ],12521 -1 allowedAttrs: [ 'aria-expanded' ],12522 -1 superclassRole: [ 'section' ]12523 -1 },12524 -1 listbox: {12525 -1 type: 'widget',12526 -1 requiredOwned: [ 'group', 'option' ],12527 -1 allowedAttrs: [ 'aria-multiselectable', 'aria-readonly', 'aria-required', 'aria-activedescendant', 'aria-expanded', 'aria-orientation' ],12528 -1 superclassRole: [ 'select' ],12529 -1 accessibleNameRequired: true12530 -1 },12531 -1 listitem: {12532 -1 type: 'structure',12533 -1 requiredContext: [ 'list' ],12534 -1 allowedAttrs: [ 'aria-level', 'aria-posinset', 'aria-setsize', 'aria-expanded' ],12535 -1 superclassRole: [ 'section' ],12536 -1 nameFromContent: true12537 -1 },12538 -1 log: {12539 -1 type: 'structure',12540 -1 allowedAttrs: [ 'aria-expanded' ],12541 -1 superclassRole: [ 'section' ]12542 -1 },12543 -1 main: {12544 -1 type: 'landmark',12545 -1 allowedAttrs: [ 'aria-expanded' ],12546 -1 superclassRole: [ 'landmark' ]12547 -1 },12548 -1 marquee: {12549 -1 type: 'structure',12550 -1 allowedAttrs: [ 'aria-expanded' ],12551 -1 superclassRole: [ 'section' ]12552 -1 },12553 -1 math: {12554 -1 type: 'structure',12555 -1 allowedAttrs: [ 'aria-expanded' ],12556 -1 superclassRole: [ 'section' ],12557 -1 childrenPresentational: true12558 -1 },12559 -1 menu: {12560 -1 type: 'composite',12561 -1 requiredOwned: [ 'group', 'menuitemradio', 'menuitem', 'menuitemcheckbox', 'menu', 'separator' ],12562 -1 allowedAttrs: [ 'aria-activedescendant', 'aria-expanded', 'aria-orientation' ],12563 -1 superclassRole: [ 'select' ]12564 -1 },12565 -1 menubar: {12566 -1 type: 'composite',12567 -1 requiredOwned: [ 'group', 'menuitemradio', 'menuitem', 'menuitemcheckbox', 'menu', 'separator' ],12568 -1 allowedAttrs: [ 'aria-activedescendant', 'aria-expanded', 'aria-orientation' ],12569 -1 superclassRole: [ 'menu' ]12570 -1 },12571 -1 menuitem: {12572 -1 type: 'widget',12573 -1 requiredContext: [ 'menu', 'menubar', 'group' ],12574 -1 allowedAttrs: [ 'aria-posinset', 'aria-setsize', 'aria-expanded' ],12575 -1 superclassRole: [ 'command' ],12576 -1 accessibleNameRequired: true,12577 -1 nameFromContent: true12578 -1 },12579 -1 menuitemcheckbox: {12580 -1 type: 'widget',12581 -1 requiredContext: [ 'menu', 'menubar', 'group' ],12582 -1 requiredAttrs: [ 'aria-checked' ],12583 -1 allowedAttrs: [ 'aria-expanded', 'aria-posinset', 'aria-readonly', 'aria-setsize' ],12584 -1 superclassRole: [ 'checkbox', 'menuitem' ],12585 -1 accessibleNameRequired: true,12586 -1 nameFromContent: true,12587 -1 childrenPresentational: true12588 -1 },12589 -1 menuitemradio: {12590 -1 type: 'widget',12591 -1 requiredContext: [ 'menu', 'menubar', 'group' ],12592 -1 requiredAttrs: [ 'aria-checked' ],12593 -1 allowedAttrs: [ 'aria-expanded', 'aria-posinset', 'aria-readonly', 'aria-setsize' ],12594 -1 superclassRole: [ 'menuitemcheckbox', 'radio' ],12595 -1 accessibleNameRequired: true,12596 -1 nameFromContent: true,12597 -1 childrenPresentational: true12598 -1 },12599 -1 meter: {12600 -1 type: 'structure',12601 -1 requiredAttrs: [ 'aria-valuenow' ],12602 -1 allowedAttrs: [ 'aria-valuemax', 'aria-valuemin', 'aria-valuetext' ],12603 -1 superclassRole: [ 'range' ],12604 -1 accessibleNameRequired: true,12605 -1 childrenPresentational: true12606 -1 },12607 -1 mark: {12608 -1 type: 'structure',12609 -1 superclassRole: [ 'section' ],12610 -1 prohibitedAttrs: [ 'aria-label', 'aria-labelledby' ]12611 -1 },12612 -1 navigation: {12613 -1 type: 'landmark',12614 -1 allowedAttrs: [ 'aria-expanded' ],12615 -1 superclassRole: [ 'landmark' ]12616 -1 },12617 -1 none: {12618 -1 type: 'structure',12619 -1 superclassRole: [ 'structure' ],12620 -1 prohibitedAttrs: [ 'aria-label', 'aria-labelledby' ]12621 -1 },12622 -1 note: {12623 -1 type: 'structure',12624 -1 allowedAttrs: [ 'aria-expanded' ],12625 -1 superclassRole: [ 'section' ]12626 -1 },12627 -1 option: {12628 -1 type: 'widget',12629 -1 requiredContext: [ 'group', 'listbox' ],12630 -1 allowedAttrs: [ 'aria-selected', 'aria-checked', 'aria-posinset', 'aria-setsize' ],12631 -1 superclassRole: [ 'input' ],12632 -1 accessibleNameRequired: true,12633 -1 nameFromContent: true,12634 -1 childrenPresentational: true12635 -1 },12636 -1 paragraph: {12637 -1 type: 'structure',12638 -1 superclassRole: [ 'section' ],12639 -1 prohibitedAttrs: [ 'aria-label', 'aria-labelledby' ]12640 -1 },12641 -1 presentation: {12642 -1 type: 'structure',12643 -1 superclassRole: [ 'structure' ],12644 -1 prohibitedAttrs: [ 'aria-label', 'aria-labelledby' ]12645 -1 },12646 -1 progressbar: {12647 -1 type: 'widget',12648 -1 allowedAttrs: [ 'aria-expanded', 'aria-valuemax', 'aria-valuemin', 'aria-valuenow', 'aria-valuetext' ],12649 -1 superclassRole: [ 'range' ],12650 -1 accessibleNameRequired: true,12651 -1 childrenPresentational: true12652 -1 },12653 -1 radio: {12654 -1 type: 'widget',12655 -1 requiredAttrs: [ 'aria-checked' ],12656 -1 allowedAttrs: [ 'aria-posinset', 'aria-setsize', 'aria-required' ],12657 -1 superclassRole: [ 'input' ],12658 -1 accessibleNameRequired: true,12659 -1 nameFromContent: true,12660 -1 childrenPresentational: true12661 -1 },12662 -1 radiogroup: {12663 -1 type: 'composite',12664 -1 allowedAttrs: [ 'aria-readonly', 'aria-required', 'aria-activedescendant', 'aria-expanded', 'aria-orientation' ],12665 -1 superclassRole: [ 'select' ],12666 -1 accessibleNameRequired: false12667 -1 },12668 -1 range: {12669 -1 type: 'abstract',12670 -1 superclassRole: [ 'widget' ]12671 -1 },12672 -1 region: {12673 -1 type: 'landmark',12674 -1 allowedAttrs: [ 'aria-expanded' ],12675 -1 superclassRole: [ 'landmark' ],12676 -1 accessibleNameRequired: false12677 -1 },12678 -1 roletype: {12679 -1 type: 'abstract',12680 -1 superclassRole: []12681 -1 },12682 -1 row: {12683 -1 type: 'structure',12684 -1 requiredContext: [ 'grid', 'rowgroup', 'table', 'treegrid' ],12685 -1 requiredOwned: [ 'cell', 'columnheader', 'gridcell', 'rowheader' ],12686 -1 allowedAttrs: [ 'aria-colindex', 'aria-level', 'aria-rowindex', 'aria-selected', 'aria-activedescendant', 'aria-expanded', 'aria-posinset', 'aria-setsize' ],12687 -1 superclassRole: [ 'group', 'widget' ],12688 -1 nameFromContent: true12689 -1 },12690 -1 rowgroup: {12691 -1 type: 'structure',12692 -1 requiredContext: [ 'grid', 'table', 'treegrid' ],12693 -1 requiredOwned: [ 'row' ],12694 -1 superclassRole: [ 'structure' ],12695 -1 nameFromContent: true12696 -1 },12697 -1 rowheader: {12698 -1 type: 'structure',12699 -1 requiredContext: [ 'row' ],12700 -1 allowedAttrs: [ 'aria-sort', 'aria-colindex', 'aria-colspan', 'aria-expanded', 'aria-readonly', 'aria-required', 'aria-rowindex', 'aria-rowspan', 'aria-selected' ],12701 -1 superclassRole: [ 'cell', 'gridcell', 'sectionhead' ],12702 -1 accessibleNameRequired: false,12703 -1 nameFromContent: true12704 -1 },12705 -1 scrollbar: {12706 -1 type: 'widget',12707 -1 requiredAttrs: [ 'aria-valuenow' ],12708 -1 allowedAttrs: [ 'aria-controls', 'aria-orientation', 'aria-valuemax', 'aria-valuemin', 'aria-valuetext' ],12709 -1 superclassRole: [ 'range' ],12710 -1 childrenPresentational: true12711 -1 },12712 -1 search: {12713 -1 type: 'landmark',12714 -1 allowedAttrs: [ 'aria-expanded' ],12715 -1 superclassRole: [ 'landmark' ]12716 -1 },12717 -1 searchbox: {12718 -1 type: 'widget',12719 -1 allowedAttrs: [ 'aria-activedescendant', 'aria-autocomplete', 'aria-multiline', 'aria-placeholder', 'aria-readonly', 'aria-required' ],12720 -1 superclassRole: [ 'textbox' ],12721 -1 accessibleNameRequired: true12722 -1 },12723 -1 section: {12724 -1 type: 'abstract',12725 -1 superclassRole: [ 'structure' ],12726 -1 nameFromContent: true12727 -1 },12728 -1 sectionhead: {12729 -1 type: 'abstract',12730 -1 superclassRole: [ 'structure' ],12731 -1 nameFromContent: true12732 -1 },12733 -1 select: {12734 -1 type: 'abstract',12735 -1 superclassRole: [ 'composite', 'group' ]12736 -1 },12737 -1 separator: {12738 -1 type: 'structure',12739 -1 requiredAttrs: [ 'aria-valuenow' ],12740 -1 allowedAttrs: [ 'aria-valuemax', 'aria-valuemin', 'aria-orientation', 'aria-valuetext' ],12741 -1 superclassRole: [ 'structure', 'widget' ],12742 -1 childrenPresentational: true12743 -1 },12744 -1 slider: {12745 -1 type: 'widget',12746 -1 requiredAttrs: [ 'aria-valuenow' ],12747 -1 allowedAttrs: [ 'aria-valuemax', 'aria-valuemin', 'aria-orientation', 'aria-readonly', 'aria-required', 'aria-valuetext' ],12748 -1 superclassRole: [ 'input', 'range' ],12749 -1 accessibleNameRequired: true,12750 -1 childrenPresentational: true12751 -1 },12752 -1 spinbutton: {12753 -1 type: 'widget',12754 -1 allowedAttrs: [ 'aria-valuemax', 'aria-valuemin', 'aria-readonly', 'aria-required', 'aria-activedescendant', 'aria-valuetext', 'aria-valuenow' ],12755 -1 superclassRole: [ 'composite', 'input', 'range' ],12756 -1 accessibleNameRequired: true12757 -1 },12758 -1 status: {12759 -1 type: 'structure',12760 -1 allowedAttrs: [ 'aria-expanded' ],12761 -1 superclassRole: [ 'section' ]12762 -1 },12763 -1 strong: {12764 -1 type: 'structure',12765 -1 superclassRole: [ 'section' ],12766 -1 prohibitedAttrs: [ 'aria-label', 'aria-labelledby' ]12767 -1 },12768 -1 structure: {12769 -1 type: 'abstract',12770 -1 superclassRole: [ 'roletype' ]12771 -1 },12772 -1 subscript: {12773 -1 type: 'structure',12774 -1 superclassRole: [ 'section' ],12775 -1 prohibitedAttrs: [ 'aria-label', 'aria-labelledby' ]12776 -1 },12777 -1 superscript: {12778 -1 type: 'structure',12779 -1 superclassRole: [ 'section' ],12780 -1 prohibitedAttrs: [ 'aria-label', 'aria-labelledby' ]12781 -1 },12782 -1 switch: {12783 -1 type: 'widget',12784 -1 requiredAttrs: [ 'aria-checked' ],12785 -1 allowedAttrs: [ 'aria-expanded', 'aria-readonly', 'aria-required' ],12786 -1 superclassRole: [ 'checkbox' ],12787 -1 accessibleNameRequired: true,12788 -1 nameFromContent: true,12789 -1 childrenPresentational: true12790 -1 },12791 -1 suggestion: {12792 -1 type: 'structure',12793 -1 requiredOwned: [ 'insertion', 'deletion' ],12794 -1 superclassRole: [ 'section' ],12795 -1 prohibitedAttrs: [ 'aria-label', 'aria-labelledby' ]12796 -1 },12797 -1 tab: {12798 -1 type: 'widget',12799 -1 requiredContext: [ 'tablist' ],12800 -1 allowedAttrs: [ 'aria-posinset', 'aria-selected', 'aria-setsize', 'aria-expanded' ],12801 -1 superclassRole: [ 'sectionhead', 'widget' ],12802 -1 nameFromContent: true,12803 -1 childrenPresentational: true12804 -1 },12805 -1 table: {12806 -1 type: 'structure',12807 -1 requiredOwned: [ 'rowgroup', 'row' ],12808 -1 allowedAttrs: [ 'aria-colcount', 'aria-rowcount', 'aria-expanded' ],12809 -1 superclassRole: [ 'section' ],12810 -1 accessibleNameRequired: false,12811 -1 nameFromContent: true12812 -1 },12813 -1 tablist: {12814 -1 type: 'composite',12815 -1 requiredOwned: [ 'tab' ],12816 -1 allowedAttrs: [ 'aria-level', 'aria-multiselectable', 'aria-orientation', 'aria-activedescendant', 'aria-expanded' ],12817 -1 superclassRole: [ 'composite' ]12818 -1 },12819 -1 tabpanel: {12820 -1 type: 'structure',12821 -1 allowedAttrs: [ 'aria-expanded' ],12822 -1 superclassRole: [ 'section' ],12823 -1 accessibleNameRequired: false12824 -1 },12825 -1 term: {12826 -1 type: 'structure',12827 -1 allowedAttrs: [ 'aria-expanded' ],12828 -1 superclassRole: [ 'section' ],12829 -1 nameFromContent: true12830 -1 },12831 -1 text: {12832 -1 type: 'structure',12833 -1 superclassRole: [ 'section' ],12834 -1 nameFromContent: true12835 -1 },12836 -1 textbox: {12837 -1 type: 'widget',12838 -1 allowedAttrs: [ 'aria-activedescendant', 'aria-autocomplete', 'aria-multiline', 'aria-placeholder', 'aria-readonly', 'aria-required' ],12839 -1 superclassRole: [ 'input' ],12840 -1 accessibleNameRequired: true12841 -1 },12842 -1 time: {12843 -1 type: 'structure',12844 -1 superclassRole: [ 'section' ]12845 -1 },12846 -1 timer: {12847 -1 type: 'structure',12848 -1 allowedAttrs: [ 'aria-expanded' ],12849 -1 superclassRole: [ 'status' ]12850 -1 },12851 -1 toolbar: {12852 -1 type: 'structure',12853 -1 allowedAttrs: [ 'aria-orientation', 'aria-activedescendant', 'aria-expanded' ],12854 -1 superclassRole: [ 'group' ],12855 -1 accessibleNameRequired: true12856 -1 },12857 -1 tooltip: {12858 -1 type: 'structure',12859 -1 allowedAttrs: [ 'aria-expanded' ],12860 -1 superclassRole: [ 'section' ],12861 -1 nameFromContent: true12862 -1 },12863 -1 tree: {12864 -1 type: 'composite',12865 -1 requiredOwned: [ 'group', 'treeitem' ],12866 -1 allowedAttrs: [ 'aria-multiselectable', 'aria-required', 'aria-activedescendant', 'aria-expanded', 'aria-orientation' ],12867 -1 superclassRole: [ 'select' ],12868 -1 accessibleNameRequired: false12869 -1 },12870 -1 treegrid: {12871 -1 type: 'composite',12872 -1 requiredOwned: [ 'rowgroup', 'row' ],12873 -1 allowedAttrs: [ 'aria-activedescendant', 'aria-colcount', 'aria-expanded', 'aria-level', 'aria-multiselectable', 'aria-orientation', 'aria-readonly', 'aria-required', 'aria-rowcount' ],12874 -1 superclassRole: [ 'grid', 'tree' ],12875 -1 accessibleNameRequired: false12876 -1 },12877 -1 treeitem: {12878 -1 type: 'widget',12879 -1 requiredContext: [ 'group', 'tree' ],12880 -1 allowedAttrs: [ 'aria-checked', 'aria-expanded', 'aria-level', 'aria-posinset', 'aria-selected', 'aria-setsize' ],12881 -1 superclassRole: [ 'listitem', 'option' ],12882 -1 accessibleNameRequired: true,12883 -1 nameFromContent: true12884 -1 },12885 -1 widget: {12886 -1 type: 'abstract',12887 -1 superclassRole: [ 'roletype' ]12888 -1 },12889 -1 window: {12890 -1 type: 'abstract',12891 -1 superclassRole: [ 'roletype' ]-1 13200 splitRects: function splitRects() { -1 13201 return _splitRects; 12892 13202 }12893 -1 };12894 -1 var aria_roles_default = ariaRoles;12895 -1 var dpubRoles = {12896 -1 'doc-abstract': {12897 -1 type: 'section',12898 -1 allowedAttrs: [ 'aria-expanded' ],12899 -1 superclassRole: [ 'section' ]12900 -1 },12901 -1 'doc-acknowledgments': {12902 -1 type: 'landmark',12903 -1 allowedAttrs: [ 'aria-expanded' ],12904 -1 superclassRole: [ 'landmark' ]12905 -1 },12906 -1 'doc-afterword': {12907 -1 type: 'landmark',12908 -1 allowedAttrs: [ 'aria-expanded' ],12909 -1 superclassRole: [ 'landmark' ]12910 -1 },12911 -1 'doc-appendix': {12912 -1 type: 'landmark',12913 -1 allowedAttrs: [ 'aria-expanded' ],12914 -1 superclassRole: [ 'landmark' ]12915 -1 },12916 -1 'doc-backlink': {12917 -1 type: 'link',12918 -1 allowedAttrs: [ 'aria-expanded' ],12919 -1 nameFromContent: true,12920 -1 superclassRole: [ 'link' ]12921 -1 },12922 -1 'doc-biblioentry': {12923 -1 type: 'listitem',12924 -1 allowedAttrs: [ 'aria-expanded', 'aria-level', 'aria-posinset', 'aria-setsize' ],12925 -1 superclassRole: [ 'listitem' ],12926 -1 deprecated: true12927 -1 },12928 -1 'doc-bibliography': {12929 -1 type: 'landmark',12930 -1 allowedAttrs: [ 'aria-expanded' ],12931 -1 superclassRole: [ 'landmark' ]12932 -1 },12933 -1 'doc-biblioref': {12934 -1 type: 'link',12935 -1 allowedAttrs: [ 'aria-expanded' ],12936 -1 nameFromContent: true,12937 -1 superclassRole: [ 'link' ]12938 -1 },12939 -1 'doc-chapter': {12940 -1 type: 'landmark',12941 -1 allowedAttrs: [ 'aria-expanded' ],12942 -1 superclassRole: [ 'landmark' ]12943 -1 },12944 -1 'doc-colophon': {12945 -1 type: 'section',12946 -1 allowedAttrs: [ 'aria-expanded' ],12947 -1 superclassRole: [ 'section' ]12948 -1 },12949 -1 'doc-conclusion': {12950 -1 type: 'landmark',12951 -1 allowedAttrs: [ 'aria-expanded' ],12952 -1 superclassRole: [ 'landmark' ]12953 -1 },12954 -1 'doc-cover': {12955 -1 type: 'img',12956 -1 allowedAttrs: [ 'aria-expanded' ],12957 -1 superclassRole: [ 'img' ]12958 -1 },12959 -1 'doc-credit': {12960 -1 type: 'section',12961 -1 allowedAttrs: [ 'aria-expanded' ],12962 -1 superclassRole: [ 'section' ]12963 -1 },12964 -1 'doc-credits': {12965 -1 type: 'landmark',12966 -1 allowedAttrs: [ 'aria-expanded' ],12967 -1 superclassRole: [ 'landmark' ]12968 -1 },12969 -1 'doc-dedication': {12970 -1 type: 'section',12971 -1 allowedAttrs: [ 'aria-expanded' ],12972 -1 superclassRole: [ 'section' ]12973 -1 },12974 -1 'doc-endnote': {12975 -1 type: 'listitem',12976 -1 allowedAttrs: [ 'aria-expanded', 'aria-level', 'aria-posinset', 'aria-setsize' ],12977 -1 superclassRole: [ 'listitem' ],12978 -1 deprecated: true12979 -1 },12980 -1 'doc-endnotes': {12981 -1 type: 'landmark',12982 -1 allowedAttrs: [ 'aria-expanded' ],12983 -1 superclassRole: [ 'landmark' ]12984 -1 },12985 -1 'doc-epigraph': {12986 -1 type: 'section',12987 -1 allowedAttrs: [ 'aria-expanded' ],12988 -1 superclassRole: [ 'section' ]12989 -1 },12990 -1 'doc-epilogue': {12991 -1 type: 'landmark',12992 -1 allowedAttrs: [ 'aria-expanded' ],12993 -1 superclassRole: [ 'landmark' ]12994 -1 },12995 -1 'doc-errata': {12996 -1 type: 'landmark',12997 -1 allowedAttrs: [ 'aria-expanded' ],12998 -1 superclassRole: [ 'landmark' ]12999 -1 },13000 -1 'doc-example': {13001 -1 type: 'section',13002 -1 allowedAttrs: [ 'aria-expanded' ],13003 -1 superclassRole: [ 'section' ]13004 -1 },13005 -1 'doc-footnote': {13006 -1 type: 'section',13007 -1 allowedAttrs: [ 'aria-expanded' ],13008 -1 superclassRole: [ 'section' ]13009 -1 },13010 -1 'doc-foreword': {13011 -1 type: 'landmark',13012 -1 allowedAttrs: [ 'aria-expanded' ],13013 -1 superclassRole: [ 'landmark' ]13014 -1 },13015 -1 'doc-glossary': {13016 -1 type: 'landmark',13017 -1 allowedAttrs: [ 'aria-expanded' ],13018 -1 superclassRole: [ 'landmark' ]13019 -1 },13020 -1 'doc-glossref': {13021 -1 type: 'link',13022 -1 allowedAttrs: [ 'aria-expanded' ],13023 -1 nameFromContent: true,13024 -1 superclassRole: [ 'link' ]13025 -1 },13026 -1 'doc-index': {13027 -1 type: 'navigation',13028 -1 allowedAttrs: [ 'aria-expanded' ],13029 -1 superclassRole: [ 'navigation' ]13030 -1 },13031 -1 'doc-introduction': {13032 -1 type: 'landmark',13033 -1 allowedAttrs: [ 'aria-expanded' ],13034 -1 superclassRole: [ 'landmark' ]13035 -1 },13036 -1 'doc-noteref': {13037 -1 type: 'link',13038 -1 allowedAttrs: [ 'aria-expanded' ],13039 -1 nameFromContent: true,13040 -1 superclassRole: [ 'link' ]13041 -1 },13042 -1 'doc-notice': {13043 -1 type: 'note',13044 -1 allowedAttrs: [ 'aria-expanded' ],13045 -1 superclassRole: [ 'note' ]13046 -1 },13047 -1 'doc-pagebreak': {13048 -1 type: 'separator',13049 -1 allowedAttrs: [ 'aria-expanded', 'aria-orientation' ],13050 -1 superclassRole: [ 'separator' ],13051 -1 childrenPresentational: true13052 -1 },13053 -1 'doc-pagelist': {13054 -1 type: 'navigation',13055 -1 allowedAttrs: [ 'aria-expanded' ],13056 -1 superclassRole: [ 'navigation' ]13057 -1 },13058 -1 'doc-part': {13059 -1 type: 'landmark',13060 -1 allowedAttrs: [ 'aria-expanded' ],13061 -1 superclassRole: [ 'landmark' ]13062 -1 },13063 -1 'doc-preface': {13064 -1 type: 'landmark',13065 -1 allowedAttrs: [ 'aria-expanded' ],13066 -1 superclassRole: [ 'landmark' ]13067 -1 },13068 -1 'doc-prologue': {13069 -1 type: 'landmark',13070 -1 allowedAttrs: [ 'aria-expanded' ],13071 -1 superclassRole: [ 'landmark' ]13072 -1 },13073 -1 'doc-pullquote': {13074 -1 type: 'none',13075 -1 superclassRole: [ 'none' ]13076 -1 },13077 -1 'doc-qna': {13078 -1 type: 'section',13079 -1 allowedAttrs: [ 'aria-expanded' ],13080 -1 superclassRole: [ 'section' ]13081 -1 },13082 -1 'doc-subtitle': {13083 -1 type: 'sectionhead',13084 -1 allowedAttrs: [ 'aria-expanded' ],13085 -1 superclassRole: [ 'sectionhead' ]13086 -1 },13087 -1 'doc-tip': {13088 -1 type: 'note',13089 -1 allowedAttrs: [ 'aria-expanded' ],13090 -1 superclassRole: [ 'note' ]13091 -1 },13092 -1 'doc-toc': {13093 -1 type: 'navigation',13094 -1 allowedAttrs: [ 'aria-expanded' ],13095 -1 superclassRole: [ 'navigation' ]13096 -1 }13097 -1 };13098 -1 var dpub_roles_default = dpubRoles;13099 -1 var graphicsRoles = {13100 -1 'graphics-document': {13101 -1 type: 'structure',13102 -1 superclassRole: [ 'document' ],13103 -1 accessibleNameRequired: true13104 -1 },13105 -1 'graphics-object': {13106 -1 type: 'structure',13107 -1 superclassRole: [ 'group' ],13108 -1 nameFromContent: true13109 -1 },13110 -1 'graphics-symbol': {13111 -1 type: 'structure',13112 -1 superclassRole: [ 'img' ],13113 -1 accessibleNameRequired: true,13114 -1 childrenPresentational: true-1 13203 }); -1 13204 function _getIntersectionRect(rect1, rect2) { -1 13205 var leftX = Math.max(rect1.left, rect2.left); -1 13206 var rightX = Math.min(rect1.right, rect2.right); -1 13207 var topY = Math.max(rect1.top, rect2.top); -1 13208 var bottomY = Math.min(rect1.bottom, rect2.bottom); -1 13209 if (leftX >= rightX || topY >= bottomY) { -1 13210 return null; 13115 13211 }13116 -1 };13117 -1 var graphics_roles_default = graphicsRoles;13118 -1 var htmlElms = {13119 -1 a: {13120 -1 variant: {13121 -1 href: {13122 -1 matches: '[href]',13123 -1 contentTypes: [ 'interactive', 'phrasing', 'flow' ],13124 -1 allowedRoles: [ 'button', 'checkbox', 'menuitem', 'menuitemcheckbox', 'menuitemradio', 'option', 'radio', 'switch', 'tab', 'treeitem', 'doc-backlink', 'doc-biblioref', 'doc-glossref', 'doc-noteref' ],13125 -1 namingMethods: [ 'subtreeText' ]13126 -1 },13127 -1 default: {13128 -1 contentTypes: [ 'phrasing', 'flow' ],13129 -1 allowedRoles: true13130 -1 }13131 -1 }13132 -1 },13133 -1 abbr: {13134 -1 contentTypes: [ 'phrasing', 'flow' ],13135 -1 allowedRoles: true13136 -1 },13137 -1 address: {13138 -1 contentTypes: [ 'flow' ],13139 -1 allowedRoles: true13140 -1 },13141 -1 area: {13142 -1 variant: {13143 -1 href: {13144 -1 matches: '[href]',13145 -1 allowedRoles: false13146 -1 },13147 -1 default: {13148 -1 allowedRoles: [ 'button', 'link' ]13149 -1 }13150 -1 },13151 -1 contentTypes: [ 'phrasing', 'flow' ],13152 -1 namingMethods: [ 'altText' ]13153 -1 },13154 -1 article: {13155 -1 contentTypes: [ 'sectioning', 'flow' ],13156 -1 allowedRoles: [ 'feed', 'presentation', 'none', 'document', 'application', 'main', 'region' ],13157 -1 shadowRoot: true13158 -1 },13159 -1 aside: {13160 -1 contentTypes: [ 'sectioning', 'flow' ],13161 -1 allowedRoles: [ 'feed', 'note', 'presentation', 'none', 'region', 'search', 'doc-dedication', 'doc-example', 'doc-footnote', 'doc-glossary', 'doc-pullquote', 'doc-tip' ]13162 -1 },13163 -1 audio: {13164 -1 variant: {13165 -1 controls: {13166 -1 matches: '[controls]',13167 -1 contentTypes: [ 'interactive', 'embedded', 'phrasing', 'flow' ]13168 -1 },13169 -1 default: {13170 -1 contentTypes: [ 'embedded', 'phrasing', 'flow' ]13171 -1 }13172 -1 },13173 -1 allowedRoles: [ 'application' ],13174 -1 chromiumRole: 'Audio'13175 -1 },13176 -1 b: {13177 -1 contentTypes: [ 'phrasing', 'flow' ],13178 -1 allowedRoles: true13179 -1 },13180 -1 base: {13181 -1 allowedRoles: false,13182 -1 noAriaAttrs: true13183 -1 },13184 -1 bdi: {13185 -1 contentTypes: [ 'phrasing', 'flow' ],13186 -1 allowedRoles: true13187 -1 },13188 -1 bdo: {13189 -1 contentTypes: [ 'phrasing', 'flow' ],13190 -1 allowedRoles: true13191 -1 },13192 -1 blockquote: {13193 -1 contentTypes: [ 'flow' ],13194 -1 allowedRoles: true,13195 -1 shadowRoot: true13196 -1 },13197 -1 body: {13198 -1 allowedRoles: false,13199 -1 shadowRoot: true13200 -1 },13201 -1 br: {13202 -1 contentTypes: [ 'phrasing', 'flow' ],13203 -1 allowedRoles: [ 'presentation', 'none' ],13204 -1 namingMethods: [ 'titleText', 'singleSpace' ]13205 -1 },13206 -1 button: {13207 -1 contentTypes: [ 'interactive', 'phrasing', 'flow' ],13208 -1 allowedRoles: [ 'checkbox', 'combobox', 'gridcell', 'link', 'menuitem', 'menuitemcheckbox', 'menuitemradio', 'option', 'radio', 'separator', 'slider', 'switch', 'tab', 'treeitem' ],13209 -1 namingMethods: [ 'subtreeText' ]13210 -1 },13211 -1 canvas: {13212 -1 allowedRoles: true,13213 -1 contentTypes: [ 'embedded', 'phrasing', 'flow' ],13214 -1 chromiumRole: 'Canvas'13215 -1 },13216 -1 caption: {13217 -1 allowedRoles: false13218 -1 },13219 -1 cite: {13220 -1 contentTypes: [ 'phrasing', 'flow' ],13221 -1 allowedRoles: true13222 -1 },13223 -1 code: {13224 -1 contentTypes: [ 'phrasing', 'flow' ],13225 -1 allowedRoles: true13226 -1 },13227 -1 col: {13228 -1 allowedRoles: false,13229 -1 noAriaAttrs: true13230 -1 },13231 -1 colgroup: {13232 -1 allowedRoles: false,13233 -1 noAriaAttrs: true13234 -1 },13235 -1 data: {13236 -1 contentTypes: [ 'phrasing', 'flow' ],13237 -1 allowedRoles: true13238 -1 },13239 -1 datalist: {13240 -1 contentTypes: [ 'phrasing', 'flow' ],13241 -1 allowedRoles: false,13242 -1 noAriaAttrs: true,13243 -1 implicitAttrs: {13244 -1 'aria-multiselectable': 'false'13245 -1 }13246 -1 },13247 -1 dd: {13248 -1 allowedRoles: false13249 -1 },13250 -1 del: {13251 -1 contentTypes: [ 'phrasing', 'flow' ],13252 -1 allowedRoles: true13253 -1 },13254 -1 dfn: {13255 -1 contentTypes: [ 'phrasing', 'flow' ],13256 -1 allowedRoles: true13257 -1 },13258 -1 details: {13259 -1 contentTypes: [ 'interactive', 'flow' ],13260 -1 allowedRoles: false13261 -1 },13262 -1 dialog: {13263 -1 contentTypes: [ 'flow' ],13264 -1 allowedRoles: [ 'alertdialog' ]13265 -1 },13266 -1 div: {13267 -1 contentTypes: [ 'flow' ],13268 -1 allowedRoles: true,13269 -1 shadowRoot: true13270 -1 },13271 -1 dl: {13272 -1 contentTypes: [ 'flow' ],13273 -1 allowedRoles: [ 'group', 'list', 'presentation', 'none' ],13274 -1 chromiumRole: 'DescriptionList'13275 -1 },13276 -1 dt: {13277 -1 allowedRoles: [ 'listitem' ]13278 -1 },13279 -1 em: {13280 -1 contentTypes: [ 'phrasing', 'flow' ],13281 -1 allowedRoles: true13282 -1 },13283 -1 embed: {13284 -1 contentTypes: [ 'interactive', 'embedded', 'phrasing', 'flow' ],13285 -1 allowedRoles: [ 'application', 'document', 'img', 'presentation', 'none' ],13286 -1 chromiumRole: 'EmbeddedObject'13287 -1 },13288 -1 fieldset: {13289 -1 contentTypes: [ 'flow' ],13290 -1 allowedRoles: [ 'none', 'presentation', 'radiogroup' ],13291 -1 namingMethods: [ 'fieldsetLegendText' ]13292 -1 },13293 -1 figcaption: {13294 -1 allowedRoles: [ 'group', 'none', 'presentation' ]13295 -1 },13296 -1 figure: {13297 -1 contentTypes: [ 'flow' ],13298 -1 allowedRoles: true,13299 -1 namingMethods: [ 'figureText', 'titleText' ]13300 -1 },13301 -1 footer: {13302 -1 contentTypes: [ 'flow' ],13303 -1 allowedRoles: [ 'group', 'none', 'presentation', 'doc-footnote' ],13304 -1 shadowRoot: true13305 -1 },13306 -1 form: {13307 -1 contentTypes: [ 'flow' ],13308 -1 allowedRoles: [ 'form', 'search', 'none', 'presentation' ]13309 -1 },13310 -1 h1: {13311 -1 contentTypes: [ 'heading', 'flow' ],13312 -1 allowedRoles: [ 'none', 'presentation', 'tab', 'doc-subtitle' ],13313 -1 shadowRoot: true,13314 -1 implicitAttrs: {13315 -1 'aria-level': '1'13316 -1 }13317 -1 },13318 -1 h2: {13319 -1 contentTypes: [ 'heading', 'flow' ],13320 -1 allowedRoles: [ 'none', 'presentation', 'tab', 'doc-subtitle' ],13321 -1 shadowRoot: true,13322 -1 implicitAttrs: {13323 -1 'aria-level': '2'13324 -1 }13325 -1 },13326 -1 h3: {13327 -1 contentTypes: [ 'heading', 'flow' ],13328 -1 allowedRoles: [ 'none', 'presentation', 'tab', 'doc-subtitle' ],13329 -1 shadowRoot: true,13330 -1 implicitAttrs: {13331 -1 'aria-level': '3'13332 -1 }13333 -1 },13334 -1 h4: {13335 -1 contentTypes: [ 'heading', 'flow' ],13336 -1 allowedRoles: [ 'none', 'presentation', 'tab', 'doc-subtitle' ],13337 -1 shadowRoot: true,13338 -1 implicitAttrs: {13339 -1 'aria-level': '4'13340 -1 }13341 -1 },13342 -1 h5: {13343 -1 contentTypes: [ 'heading', 'flow' ],13344 -1 allowedRoles: [ 'none', 'presentation', 'tab', 'doc-subtitle' ],13345 -1 shadowRoot: true,13346 -1 implicitAttrs: {13347 -1 'aria-level': '5'13348 -1 }13349 -1 },13350 -1 h6: {13351 -1 contentTypes: [ 'heading', 'flow' ],13352 -1 allowedRoles: [ 'none', 'presentation', 'tab', 'doc-subtitle' ],13353 -1 shadowRoot: true,13354 -1 implicitAttrs: {13355 -1 'aria-level': '6'13356 -1 }13357 -1 },13358 -1 head: {13359 -1 allowedRoles: false,13360 -1 noAriaAttrs: true13361 -1 },13362 -1 header: {13363 -1 contentTypes: [ 'flow' ],13364 -1 allowedRoles: [ 'group', 'none', 'presentation', 'doc-footnote' ],13365 -1 shadowRoot: true13366 -1 },13367 -1 hgroup: {13368 -1 contentTypes: [ 'heading', 'flow' ],13369 -1 allowedRoles: true13370 -1 },13371 -1 hr: {13372 -1 contentTypes: [ 'flow' ],13373 -1 allowedRoles: [ 'none', 'presentation', 'doc-pagebreak' ],13374 -1 namingMethods: [ 'titleText', 'singleSpace' ]13375 -1 },13376 -1 html: {13377 -1 allowedRoles: false,13378 -1 noAriaAttrs: true13379 -1 },13380 -1 i: {13381 -1 contentTypes: [ 'phrasing', 'flow' ],13382 -1 allowedRoles: true13383 -1 },13384 -1 iframe: {13385 -1 contentTypes: [ 'interactive', 'embedded', 'phrasing', 'flow' ],13386 -1 allowedRoles: [ 'application', 'document', 'img', 'none', 'presentation' ],13387 -1 chromiumRole: 'Iframe'13388 -1 },13389 -1 img: {13390 -1 variant: {13391 -1 nonEmptyAlt: {13392 -1 matches: [ {13393 -1 attributes: {13394 -1 alt: '/.+/'13395 -1 }13396 -1 }, {13397 -1 hasAccessibleName: true13398 -1 } ],13399 -1 allowedRoles: [ 'button', 'checkbox', 'link', 'math', 'menuitem', 'menuitemcheckbox', 'menuitemradio', 'meter', 'option', 'progressbar', 'radio', 'scrollbar', 'separator', 'slider', 'switch', 'tab', 'treeitem', 'doc-cover' ]13400 -1 },13401 -1 usemap: {13402 -1 matches: '[usemap]',13403 -1 contentTypes: [ 'interactive', 'embedded', 'flow' ]13404 -1 },13405 -1 default: {13406 -1 allowedRoles: [ 'presentation', 'none' ],13407 -1 contentTypes: [ 'embedded', 'flow' ]13408 -1 }13409 -1 },13410 -1 namingMethods: [ 'altText' ]13411 -1 },13412 -1 input: {13413 -1 variant: {13414 -1 button: {13415 -1 matches: {13416 -1 properties: {13417 -1 type: 'button'13418 -1 }13419 -1 },13420 -1 allowedRoles: [ 'checkbox', 'combobox', 'link', 'menuitem', 'menuitemcheckbox', 'menuitemradio', 'option', 'radio', 'switch', 'tab' ]13421 -1 },13422 -1 buttonType: {13423 -1 matches: {13424 -1 properties: {13425 -1 type: [ 'button', 'submit', 'reset' ]13426 -1 }13427 -1 },13428 -1 namingMethods: [ 'valueText', 'titleText', 'buttonDefaultText' ]13429 -1 },13430 -1 checkboxPressed: {13431 -1 matches: {13432 -1 properties: {13433 -1 type: 'checkbox'13434 -1 },13435 -1 attributes: {13436 -1 'aria-pressed': '/.*/'13437 -1 }13438 -1 },13439 -1 allowedRoles: [ 'button', 'menuitemcheckbox', 'option', 'switch' ],13440 -1 implicitAttrs: {13441 -1 'aria-checked': 'false'13442 -1 }13443 -1 },13444 -1 checkbox: {13445 -1 matches: {13446 -1 properties: {13447 -1 type: 'checkbox'13448 -1 },13449 -1 attributes: {13450 -1 'aria-pressed': null13451 -1 }13452 -1 },13453 -1 allowedRoles: [ 'menuitemcheckbox', 'option', 'switch' ],13454 -1 implicitAttrs: {13455 -1 'aria-checked': 'false'13456 -1 }13457 -1 },13458 -1 noRoles: {13459 -1 matches: {13460 -1 properties: {13461 -1 type: [ 'color', 'date', 'datetime-local', 'file', 'month', 'number', 'password', 'range', 'reset', 'submit', 'time', 'week' ]13462 -1 }13463 -1 },13464 -1 allowedRoles: false13465 -1 },13466 -1 hidden: {13467 -1 matches: {13468 -1 properties: {13469 -1 type: 'hidden'13470 -1 }13471 -1 },13472 -1 contentTypes: [ 'flow' ],13473 -1 allowedRoles: false,13474 -1 noAriaAttrs: true13475 -1 },13476 -1 image: {13477 -1 matches: {13478 -1 properties: {13479 -1 type: 'image'13480 -1 }13481 -1 },13482 -1 allowedRoles: [ 'link', 'menuitem', 'menuitemcheckbox', 'menuitemradio', 'radio', 'switch' ],13483 -1 namingMethods: [ 'altText', 'valueText', 'labelText', 'titleText', 'buttonDefaultText' ]13484 -1 },13485 -1 radio: {13486 -1 matches: {13487 -1 properties: {13488 -1 type: 'radio'13489 -1 }13490 -1 },13491 -1 allowedRoles: [ 'menuitemradio' ],13492 -1 implicitAttrs: {13493 -1 'aria-checked': 'false'13494 -1 }13495 -1 },13496 -1 textWithList: {13497 -1 matches: {13498 -1 properties: {13499 -1 type: 'text'13500 -1 },13501 -1 attributes: {13502 -1 list: '/.*/'13503 -1 }13504 -1 },13505 -1 allowedRoles: false13506 -1 },13507 -1 default: {13508 -1 contentTypes: [ 'interactive', 'flow' ],13509 -1 allowedRoles: [ 'combobox', 'searchbox', 'spinbutton' ],13510 -1 implicitAttrs: {13511 -1 'aria-valuenow': ''13512 -1 },13513 -1 namingMethods: [ 'labelText', 'placeholderText' ]13514 -1 }13515 -1 }13516 -1 },13517 -1 ins: {13518 -1 contentTypes: [ 'phrasing', 'flow' ],13519 -1 allowedRoles: true13520 -1 },13521 -1 kbd: {13522 -1 contentTypes: [ 'phrasing', 'flow' ],13523 -1 allowedRoles: true13524 -1 },13525 -1 label: {13526 -1 contentTypes: [ 'interactive', 'phrasing', 'flow' ],13527 -1 allowedRoles: false,13528 -1 chromiumRole: 'Label'13529 -1 },13530 -1 legend: {13531 -1 allowedRoles: false13532 -1 },13533 -1 li: {13534 -1 allowedRoles: [ 'menuitem', 'menuitemcheckbox', 'menuitemradio', 'option', 'none', 'presentation', 'radio', 'separator', 'tab', 'treeitem', 'doc-biblioentry', 'doc-endnote' ],13535 -1 implicitAttrs: {13536 -1 'aria-setsize': '1',13537 -1 'aria-posinset': '1'13538 -1 }13539 -1 },13540 -1 link: {13541 -1 contentTypes: [ 'phrasing', 'flow' ],13542 -1 allowedRoles: false,13543 -1 noAriaAttrs: true13544 -1 },13545 -1 main: {13546 -1 contentTypes: [ 'flow' ],13547 -1 allowedRoles: false,13548 -1 shadowRoot: true13549 -1 },13550 -1 map: {13551 -1 contentTypes: [ 'phrasing', 'flow' ],13552 -1 allowedRoles: false,13553 -1 noAriaAttrs: true13554 -1 },13555 -1 math: {13556 -1 contentTypes: [ 'embedded', 'phrasing', 'flow' ],13557 -1 allowedRoles: false13558 -1 },13559 -1 mark: {13560 -1 contentTypes: [ 'phrasing', 'flow' ],13561 -1 allowedRoles: true13562 -1 },13563 -1 menu: {13564 -1 contentTypes: [ 'flow' ],13565 -1 allowedRoles: [ 'directory', 'group', 'listbox', 'menu', 'menubar', 'none', 'presentation', 'radiogroup', 'tablist', 'toolbar', 'tree' ]13566 -1 },13567 -1 meta: {13568 -1 variant: {13569 -1 itemprop: {13570 -1 matches: '[itemprop]',13571 -1 contentTypes: [ 'phrasing', 'flow' ]13572 -1 }13573 -1 },13574 -1 allowedRoles: false,13575 -1 noAriaAttrs: true13576 -1 },13577 -1 meter: {13578 -1 contentTypes: [ 'phrasing', 'flow' ],13579 -1 allowedRoles: false,13580 -1 chromiumRole: 'progressbar'13581 -1 },13582 -1 nav: {13583 -1 contentTypes: [ 'sectioning', 'flow' ],13584 -1 allowedRoles: [ 'doc-index', 'doc-pagelist', 'doc-toc', 'menu', 'menubar', 'none', 'presentation', 'tablist' ],13585 -1 shadowRoot: true13586 -1 },13587 -1 noscript: {13588 -1 contentTypes: [ 'phrasing', 'flow' ],13589 -1 allowedRoles: false,13590 -1 noAriaAttrs: true13591 -1 },13592 -1 object: {13593 -1 variant: {13594 -1 usemap: {13595 -1 matches: '[usemap]',13596 -1 contentTypes: [ 'interactive', 'embedded', 'phrasing', 'flow' ]13597 -1 },13598 -1 default: {13599 -1 contentTypes: [ 'embedded', 'phrasing', 'flow' ]13600 -1 }13601 -1 },13602 -1 allowedRoles: [ 'application', 'document', 'img' ],13603 -1 chromiumRole: 'PluginObject'13604 -1 },13605 -1 ol: {13606 -1 contentTypes: [ 'flow' ],13607 -1 allowedRoles: [ 'directory', 'group', 'listbox', 'menu', 'menubar', 'none', 'presentation', 'radiogroup', 'tablist', 'toolbar', 'tree' ]13608 -1 },13609 -1 optgroup: {13610 -1 allowedRoles: false13611 -1 },13612 -1 option: {13613 -1 allowedRoles: false,13614 -1 implicitAttrs: {13615 -1 'aria-selected': 'false'13616 -1 }13617 -1 },13618 -1 output: {13619 -1 contentTypes: [ 'phrasing', 'flow' ],13620 -1 allowedRoles: true,13621 -1 namingMethods: [ 'subtreeText' ]13622 -1 },13623 -1 p: {13624 -1 contentTypes: [ 'flow' ],13625 -1 allowedRoles: true,13626 -1 shadowRoot: true13627 -1 },13628 -1 param: {13629 -1 allowedRoles: false,13630 -1 noAriaAttrs: true13631 -1 },13632 -1 picture: {13633 -1 contentTypes: [ 'phrasing', 'flow' ],13634 -1 allowedRoles: false,13635 -1 noAriaAttrs: true13636 -1 },13637 -1 pre: {13638 -1 contentTypes: [ 'flow' ],13639 -1 allowedRoles: true13640 -1 },13641 -1 progress: {13642 -1 contentTypes: [ 'phrasing', 'flow' ],13643 -1 allowedRoles: false,13644 -1 implicitAttrs: {13645 -1 'aria-valuemax': '100',13646 -1 'aria-valuemin': '0',13647 -1 'aria-valuenow': '0'13648 -1 }13649 -1 },13650 -1 q: {13651 -1 contentTypes: [ 'phrasing', 'flow' ],13652 -1 allowedRoles: true13653 -1 },13654 -1 rp: {13655 -1 allowedRoles: true13656 -1 },13657 -1 rt: {13658 -1 allowedRoles: true13659 -1 },13660 -1 ruby: {13661 -1 contentTypes: [ 'phrasing', 'flow' ],13662 -1 allowedRoles: true13663 -1 },13664 -1 s: {13665 -1 contentTypes: [ 'phrasing', 'flow' ],13666 -1 allowedRoles: true13667 -1 },13668 -1 samp: {13669 -1 contentTypes: [ 'phrasing', 'flow' ],13670 -1 allowedRoles: true13671 -1 },13672 -1 script: {13673 -1 contentTypes: [ 'phrasing', 'flow' ],13674 -1 allowedRoles: false,13675 -1 noAriaAttrs: true13676 -1 },13677 -1 search: {13678 -1 contentTypes: [ 'flow' ],13679 -1 allowedRoles: [ 'form', 'group', 'none', 'presentation', 'region', 'search' ]13680 -1 },13681 -1 section: {13682 -1 contentTypes: [ 'sectioning', 'flow' ],13683 -1 allowedRoles: [ 'alert', 'alertdialog', 'application', 'banner', 'complementary', 'contentinfo', 'dialog', 'document', 'feed', 'group', 'log', 'main', 'marquee', 'navigation', 'none', 'note', 'presentation', 'search', 'status', 'tabpanel', 'doc-abstract', 'doc-acknowledgments', 'doc-afterword', 'doc-appendix', 'doc-bibliography', 'doc-chapter', 'doc-colophon', 'doc-conclusion', 'doc-credit', 'doc-credits', 'doc-dedication', 'doc-endnotes', 'doc-epigraph', 'doc-epilogue', 'doc-errata', 'doc-example', 'doc-foreword', 'doc-glossary', 'doc-index', 'doc-introduction', 'doc-notice', 'doc-pagelist', 'doc-part', 'doc-preface', 'doc-prologue', 'doc-pullquote', 'doc-qna', 'doc-toc' ],13684 -1 shadowRoot: true13685 -1 },13686 -1 select: {13687 -1 variant: {13688 -1 combobox: {13689 -1 matches: {13690 -1 attributes: {13691 -1 multiple: null,13692 -1 size: [ null, '1' ]13693 -1 }13694 -1 },13695 -1 allowedRoles: [ 'menu' ]13696 -1 },13697 -1 default: {13698 -1 allowedRoles: false-1 13212 return new window.DOMRect(leftX, topY, rightX - leftX, bottomY - topY); -1 13213 } -1 13214 function _getRectCenter(_ref32) { -1 13215 var left = _ref32.left, top = _ref32.top, width = _ref32.width, height = _ref32.height; -1 13216 return new window.DOMPoint(left + width / 2, top + height / 2); -1 13217 } -1 13218 var roundingMargin = .05; -1 13219 function _rectHasMinimumSize(minSize, _ref33) { -1 13220 var width = _ref33.width, height = _ref33.height; -1 13221 return width + roundingMargin >= minSize && height + roundingMargin >= minSize; -1 13222 } -1 13223 function _getOffset(vTarget, vNeighbor) { -1 13224 var minRadiusNeighbour = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 12; -1 13225 var targetRects = get_target_rects_default(vTarget); -1 13226 var neighborRects = get_target_rects_default(vNeighbor); -1 13227 if (!targetRects.length || !neighborRects.length) { -1 13228 return null; -1 13229 } -1 13230 var targetBoundingBox = targetRects.reduce(_getBoundingRect); -1 13231 var targetCenter = _getRectCenter(targetBoundingBox); -1 13232 var minDistance = Infinity; -1 13233 var _iterator7 = _createForOfIteratorHelper(neighborRects), _step7; -1 13234 try { -1 13235 for (_iterator7.s(); !(_step7 = _iterator7.n()).done; ) { -1 13236 var rect = _step7.value; -1 13237 if (_isPointInRect(targetCenter, rect)) { -1 13238 return 0; 13699 13239 }13700 -1 },13701 -1 contentTypes: [ 'interactive', 'phrasing', 'flow' ],13702 -1 implicitAttrs: {13703 -1 'aria-valuenow': ''13704 -1 },13705 -1 namingMethods: [ 'labelText' ]13706 -1 },13707 -1 slot: {13708 -1 contentTypes: [ 'phrasing', 'flow' ],13709 -1 allowedRoles: false,13710 -1 noAriaAttrs: true13711 -1 },13712 -1 small: {13713 -1 contentTypes: [ 'phrasing', 'flow' ],13714 -1 allowedRoles: true13715 -1 },13716 -1 source: {13717 -1 allowedRoles: false,13718 -1 noAriaAttrs: true13719 -1 },13720 -1 span: {13721 -1 contentTypes: [ 'phrasing', 'flow' ],13722 -1 allowedRoles: true,13723 -1 shadowRoot: true13724 -1 },13725 -1 strong: {13726 -1 contentTypes: [ 'phrasing', 'flow' ],13727 -1 allowedRoles: true13728 -1 },13729 -1 style: {13730 -1 allowedRoles: false,13731 -1 noAriaAttrs: true13732 -1 },13733 -1 svg: {13734 -1 contentTypes: [ 'embedded', 'phrasing', 'flow' ],13735 -1 allowedRoles: true,13736 -1 chromiumRole: 'SVGRoot',13737 -1 namingMethods: [ 'svgTitleText' ]13738 -1 },13739 -1 sub: {13740 -1 contentTypes: [ 'phrasing', 'flow' ],13741 -1 allowedRoles: true13742 -1 },13743 -1 summary: {13744 -1 allowedRoles: false,13745 -1 namingMethods: [ 'subtreeText' ]13746 -1 },13747 -1 sup: {13748 -1 contentTypes: [ 'phrasing', 'flow' ],13749 -1 allowedRoles: true13750 -1 },13751 -1 table: {13752 -1 contentTypes: [ 'flow' ],13753 -1 allowedRoles: true,13754 -1 namingMethods: [ 'tableCaptionText', 'tableSummaryText' ]13755 -1 },13756 -1 tbody: {13757 -1 allowedRoles: true13758 -1 },13759 -1 template: {13760 -1 contentTypes: [ 'phrasing', 'flow' ],13761 -1 allowedRoles: false,13762 -1 noAriaAttrs: true13763 -1 },13764 -1 textarea: {13765 -1 contentTypes: [ 'interactive', 'phrasing', 'flow' ],13766 -1 allowedRoles: false,13767 -1 implicitAttrs: {13768 -1 'aria-valuenow': '',13769 -1 'aria-multiline': 'true'13770 -1 },13771 -1 namingMethods: [ 'labelText', 'placeholderText' ]13772 -1 },13773 -1 tfoot: {13774 -1 allowedRoles: true13775 -1 },13776 -1 thead: {13777 -1 allowedRoles: true13778 -1 },13779 -1 time: {13780 -1 contentTypes: [ 'phrasing', 'flow' ],13781 -1 allowedRoles: true13782 -1 },13783 -1 title: {13784 -1 allowedRoles: false,13785 -1 noAriaAttrs: true13786 -1 },13787 -1 td: {13788 -1 allowedRoles: true13789 -1 },13790 -1 th: {13791 -1 allowedRoles: true13792 -1 },13793 -1 tr: {13794 -1 allowedRoles: true13795 -1 },13796 -1 track: {13797 -1 allowedRoles: false,13798 -1 noAriaAttrs: true13799 -1 },13800 -1 u: {13801 -1 contentTypes: [ 'phrasing', 'flow' ],13802 -1 allowedRoles: true13803 -1 },13804 -1 ul: {13805 -1 contentTypes: [ 'flow' ],13806 -1 allowedRoles: [ 'directory', 'group', 'listbox', 'menu', 'menubar', 'none', 'presentation', 'radiogroup', 'tablist', 'toolbar', 'tree' ]13807 -1 },13808 -1 var: {13809 -1 contentTypes: [ 'phrasing', 'flow' ],13810 -1 allowedRoles: true13811 -1 },13812 -1 video: {13813 -1 variant: {13814 -1 controls: {13815 -1 matches: '[controls]',13816 -1 contentTypes: [ 'interactive', 'embedded', 'phrasing', 'flow' ]13817 -1 },13818 -1 default: {13819 -1 contentTypes: [ 'embedded', 'phrasing', 'flow' ]-1 13240 var closestPoint = getClosestPoint(targetCenter, rect); -1 13241 var distance2 = pointDistance(targetCenter, closestPoint); -1 13242 minDistance = Math.min(minDistance, distance2); -1 13243 } -1 13244 } catch (err) { -1 13245 _iterator7.e(err); -1 13246 } finally { -1 13247 _iterator7.f(); -1 13248 } -1 13249 var neighborTargetSize = get_target_size_default(vNeighbor); -1 13250 if (_rectHasMinimumSize(minRadiusNeighbour * 2, neighborTargetSize)) { -1 13251 return minDistance; -1 13252 } -1 13253 var neighborBoundingBox = neighborRects.reduce(_getBoundingRect); -1 13254 var neighborCenter = _getRectCenter(neighborBoundingBox); -1 13255 var centerDistance = pointDistance(targetCenter, neighborCenter) - minRadiusNeighbour; -1 13256 return Math.max(0, Math.min(minDistance, centerDistance)); -1 13257 } -1 13258 function getClosestPoint(point, rect) { -1 13259 var x; -1 13260 var y; -1 13261 if (point.x < rect.left) { -1 13262 x = rect.left; -1 13263 } else if (point.x > rect.right) { -1 13264 x = rect.right; -1 13265 } else { -1 13266 x = point.x; -1 13267 } -1 13268 if (point.y < rect.top) { -1 13269 y = rect.top; -1 13270 } else if (point.y > rect.bottom) { -1 13271 y = rect.bottom; -1 13272 } else { -1 13273 y = point.y; -1 13274 } -1 13275 return { -1 13276 x: x, -1 13277 y: y -1 13278 }; -1 13279 } -1 13280 function pointDistance(pointA, pointB) { -1 13281 return Math.hypot(pointA.x - pointB.x, pointA.y - pointB.y); -1 13282 } -1 13283 function _hasVisualOverlap(vNodeA, vNodeB) { -1 13284 var rectA = vNodeA.boundingClientRect; -1 13285 var rectB = vNodeB.boundingClientRect; -1 13286 if (rectA.left >= rectB.right || rectA.right <= rectB.left || rectA.top >= rectB.bottom || rectA.bottom <= rectB.top) { -1 13287 return false; -1 13288 } -1 13289 return _visuallySort(vNodeA, vNodeB) > 0; -1 13290 } -1 13291 function _splitRects(outerRect, overlapRects) { -1 13292 var uniqueRects = [ outerRect ]; -1 13293 var _iterator8 = _createForOfIteratorHelper(overlapRects), _step8; -1 13294 try { -1 13295 var _loop6 = function _loop6() { -1 13296 var overlapRect = _step8.value; -1 13297 uniqueRects = uniqueRects.reduce(function(rects, inputRect) { -1 13298 return rects.concat(splitRect(inputRect, overlapRect)); -1 13299 }, []); -1 13300 if (uniqueRects.length > 4e3) { -1 13301 throw new Error('splitRects: Too many rects'); 13820 13302 }13821 -1 },13822 -1 allowedRoles: [ 'application' ],13823 -1 chromiumRole: 'video'13824 -1 },13825 -1 wbr: {13826 -1 contentTypes: [ 'phrasing', 'flow' ],13827 -1 allowedRoles: [ 'presentation', 'none' ]-1 13303 }; -1 13304 for (_iterator8.s(); !(_step8 = _iterator8.n()).done; ) { -1 13305 _loop6(); -1 13306 } -1 13307 } catch (err) { -1 13308 _iterator8.e(err); -1 13309 } finally { -1 13310 _iterator8.f(); 13828 13311 }13829 -1 };13830 -1 var html_elms_default = htmlElms;13831 -1 var cssColors = {13832 -1 aliceblue: [ 240, 248, 255 ],13833 -1 antiquewhite: [ 250, 235, 215 ],13834 -1 aqua: [ 0, 255, 255 ],13835 -1 aquamarine: [ 127, 255, 212 ],13836 -1 azure: [ 240, 255, 255 ],13837 -1 beige: [ 245, 245, 220 ],13838 -1 bisque: [ 255, 228, 196 ],13839 -1 black: [ 0, 0, 0 ],13840 -1 blanchedalmond: [ 255, 235, 205 ],13841 -1 blue: [ 0, 0, 255 ],13842 -1 blueviolet: [ 138, 43, 226 ],13843 -1 brown: [ 165, 42, 42 ],13844 -1 burlywood: [ 222, 184, 135 ],13845 -1 cadetblue: [ 95, 158, 160 ],13846 -1 chartreuse: [ 127, 255, 0 ],13847 -1 chocolate: [ 210, 105, 30 ],13848 -1 coral: [ 255, 127, 80 ],13849 -1 cornflowerblue: [ 100, 149, 237 ],13850 -1 cornsilk: [ 255, 248, 220 ],13851 -1 crimson: [ 220, 20, 60 ],13852 -1 cyan: [ 0, 255, 255 ],13853 -1 darkblue: [ 0, 0, 139 ],13854 -1 darkcyan: [ 0, 139, 139 ],13855 -1 darkgoldenrod: [ 184, 134, 11 ],13856 -1 darkgray: [ 169, 169, 169 ],13857 -1 darkgreen: [ 0, 100, 0 ],13858 -1 darkgrey: [ 169, 169, 169 ],13859 -1 darkkhaki: [ 189, 183, 107 ],13860 -1 darkmagenta: [ 139, 0, 139 ],13861 -1 darkolivegreen: [ 85, 107, 47 ],13862 -1 darkorange: [ 255, 140, 0 ],13863 -1 darkorchid: [ 153, 50, 204 ],13864 -1 darkred: [ 139, 0, 0 ],13865 -1 darksalmon: [ 233, 150, 122 ],13866 -1 darkseagreen: [ 143, 188, 143 ],13867 -1 darkslateblue: [ 72, 61, 139 ],13868 -1 darkslategray: [ 47, 79, 79 ],13869 -1 darkslategrey: [ 47, 79, 79 ],13870 -1 darkturquoise: [ 0, 206, 209 ],13871 -1 darkviolet: [ 148, 0, 211 ],13872 -1 deeppink: [ 255, 20, 147 ],13873 -1 deepskyblue: [ 0, 191, 255 ],13874 -1 dimgray: [ 105, 105, 105 ],13875 -1 dimgrey: [ 105, 105, 105 ],13876 -1 dodgerblue: [ 30, 144, 255 ],13877 -1 firebrick: [ 178, 34, 34 ],13878 -1 floralwhite: [ 255, 250, 240 ],13879 -1 forestgreen: [ 34, 139, 34 ],13880 -1 fuchsia: [ 255, 0, 255 ],13881 -1 gainsboro: [ 220, 220, 220 ],13882 -1 ghostwhite: [ 248, 248, 255 ],13883 -1 gold: [ 255, 215, 0 ],13884 -1 goldenrod: [ 218, 165, 32 ],13885 -1 gray: [ 128, 128, 128 ],13886 -1 green: [ 0, 128, 0 ],13887 -1 greenyellow: [ 173, 255, 47 ],13888 -1 grey: [ 128, 128, 128 ],13889 -1 honeydew: [ 240, 255, 240 ],13890 -1 hotpink: [ 255, 105, 180 ],13891 -1 indianred: [ 205, 92, 92 ],13892 -1 indigo: [ 75, 0, 130 ],13893 -1 ivory: [ 255, 255, 240 ],13894 -1 khaki: [ 240, 230, 140 ],13895 -1 lavender: [ 230, 230, 250 ],13896 -1 lavenderblush: [ 255, 240, 245 ],13897 -1 lawngreen: [ 124, 252, 0 ],13898 -1 lemonchiffon: [ 255, 250, 205 ],13899 -1 lightblue: [ 173, 216, 230 ],13900 -1 lightcoral: [ 240, 128, 128 ],13901 -1 lightcyan: [ 224, 255, 255 ],13902 -1 lightgoldenrodyellow: [ 250, 250, 210 ],13903 -1 lightgray: [ 211, 211, 211 ],13904 -1 lightgreen: [ 144, 238, 144 ],13905 -1 lightgrey: [ 211, 211, 211 ],13906 -1 lightpink: [ 255, 182, 193 ],13907 -1 lightsalmon: [ 255, 160, 122 ],13908 -1 lightseagreen: [ 32, 178, 170 ],13909 -1 lightskyblue: [ 135, 206, 250 ],13910 -1 lightslategray: [ 119, 136, 153 ],13911 -1 lightslategrey: [ 119, 136, 153 ],13912 -1 lightsteelblue: [ 176, 196, 222 ],13913 -1 lightyellow: [ 255, 255, 224 ],13914 -1 lime: [ 0, 255, 0 ],13915 -1 limegreen: [ 50, 205, 50 ],13916 -1 linen: [ 250, 240, 230 ],13917 -1 magenta: [ 255, 0, 255 ],13918 -1 maroon: [ 128, 0, 0 ],13919 -1 mediumaquamarine: [ 102, 205, 170 ],13920 -1 mediumblue: [ 0, 0, 205 ],13921 -1 mediumorchid: [ 186, 85, 211 ],13922 -1 mediumpurple: [ 147, 112, 219 ],13923 -1 mediumseagreen: [ 60, 179, 113 ],13924 -1 mediumslateblue: [ 123, 104, 238 ],13925 -1 mediumspringgreen: [ 0, 250, 154 ],13926 -1 mediumturquoise: [ 72, 209, 204 ],13927 -1 mediumvioletred: [ 199, 21, 133 ],13928 -1 midnightblue: [ 25, 25, 112 ],13929 -1 mintcream: [ 245, 255, 250 ],13930 -1 mistyrose: [ 255, 228, 225 ],13931 -1 moccasin: [ 255, 228, 181 ],13932 -1 navajowhite: [ 255, 222, 173 ],13933 -1 navy: [ 0, 0, 128 ],13934 -1 oldlace: [ 253, 245, 230 ],13935 -1 olive: [ 128, 128, 0 ],13936 -1 olivedrab: [ 107, 142, 35 ],13937 -1 orange: [ 255, 165, 0 ],13938 -1 orangered: [ 255, 69, 0 ],13939 -1 orchid: [ 218, 112, 214 ],13940 -1 palegoldenrod: [ 238, 232, 170 ],13941 -1 palegreen: [ 152, 251, 152 ],13942 -1 paleturquoise: [ 175, 238, 238 ],13943 -1 palevioletred: [ 219, 112, 147 ],13944 -1 papayawhip: [ 255, 239, 213 ],13945 -1 peachpuff: [ 255, 218, 185 ],13946 -1 peru: [ 205, 133, 63 ],13947 -1 pink: [ 255, 192, 203 ],13948 -1 plum: [ 221, 160, 221 ],13949 -1 powderblue: [ 176, 224, 230 ],13950 -1 purple: [ 128, 0, 128 ],13951 -1 rebeccapurple: [ 102, 51, 153 ],13952 -1 red: [ 255, 0, 0 ],13953 -1 rosybrown: [ 188, 143, 143 ],13954 -1 royalblue: [ 65, 105, 225 ],13955 -1 saddlebrown: [ 139, 69, 19 ],13956 -1 salmon: [ 250, 128, 114 ],13957 -1 sandybrown: [ 244, 164, 96 ],13958 -1 seagreen: [ 46, 139, 87 ],13959 -1 seashell: [ 255, 245, 238 ],13960 -1 sienna: [ 160, 82, 45 ],13961 -1 silver: [ 192, 192, 192 ],13962 -1 skyblue: [ 135, 206, 235 ],13963 -1 slateblue: [ 106, 90, 205 ],13964 -1 slategray: [ 112, 128, 144 ],13965 -1 slategrey: [ 112, 128, 144 ],13966 -1 snow: [ 255, 250, 250 ],13967 -1 springgreen: [ 0, 255, 127 ],13968 -1 steelblue: [ 70, 130, 180 ],13969 -1 tan: [ 210, 180, 140 ],13970 -1 teal: [ 0, 128, 128 ],13971 -1 thistle: [ 216, 191, 216 ],13972 -1 tomato: [ 255, 99, 71 ],13973 -1 turquoise: [ 64, 224, 208 ],13974 -1 violet: [ 238, 130, 238 ],13975 -1 wheat: [ 245, 222, 179 ],13976 -1 white: [ 255, 255, 255 ],13977 -1 whitesmoke: [ 245, 245, 245 ],13978 -1 yellow: [ 255, 255, 0 ],13979 -1 yellowgreen: [ 154, 205, 50 ]13980 -1 };13981 -1 var css_colors_default = cssColors;13982 -1 var originals = {13983 -1 ariaAttrs: aria_attrs_default,13984 -1 ariaRoles: _extends({}, aria_roles_default, dpub_roles_default, graphics_roles_default),13985 -1 htmlElms: html_elms_default,13986 -1 cssColors: css_colors_default13987 -1 };13988 -1 var standards = _extends({}, originals);13989 -1 function configureStandards(config) {13990 -1 Object.keys(standards).forEach(function(propName) {13991 -1 if (config[propName]) {13992 -1 standards[propName] = deep_merge_default(standards[propName], config[propName]);-1 13312 return uniqueRects; -1 13313 } -1 13314 function splitRect(inputRect, clipRect) { -1 13315 var top = inputRect.top, left = inputRect.left, bottom = inputRect.bottom, right = inputRect.right; -1 13316 var yAligned = top < clipRect.bottom && bottom > clipRect.top; -1 13317 var xAligned = left < clipRect.right && right > clipRect.left; -1 13318 var rects = []; -1 13319 if (between(clipRect.top, top, bottom) && xAligned) { -1 13320 rects.push({ -1 13321 top: top, -1 13322 left: left, -1 13323 bottom: clipRect.top, -1 13324 right: right -1 13325 }); -1 13326 } -1 13327 if (between(clipRect.right, left, right) && yAligned) { -1 13328 rects.push({ -1 13329 top: top, -1 13330 left: clipRect.right, -1 13331 bottom: bottom, -1 13332 right: right -1 13333 }); -1 13334 } -1 13335 if (between(clipRect.bottom, top, bottom) && xAligned) { -1 13336 rects.push({ -1 13337 top: clipRect.bottom, -1 13338 right: right, -1 13339 bottom: bottom, -1 13340 left: left -1 13341 }); -1 13342 } -1 13343 if (between(clipRect.left, left, right) && yAligned) { -1 13344 rects.push({ -1 13345 top: top, -1 13346 left: left, -1 13347 bottom: bottom, -1 13348 right: clipRect.left -1 13349 }); -1 13350 } -1 13351 if (rects.length === 0) { -1 13352 if (isEnclosedRect(inputRect, clipRect)) { -1 13353 return []; 13993 13354 }13994 -1 });-1 13355 rects.push(inputRect); -1 13356 } -1 13357 return rects.map(computeRect); 13995 13358 }13996 -1 function resetStandards() {13997 -1 Object.keys(standards).forEach(function(propName) {13998 -1 standards[propName] = originals[propName];13999 -1 });-1 13359 var between = function between(num, min, max2) { -1 13360 return num > min && num < max2; -1 13361 }; -1 13362 function computeRect(baseRect) { -1 13363 return new window.DOMRect(baseRect.left, baseRect.top, baseRect.right - baseRect.left, baseRect.bottom - baseRect.top); 14000 13364 }14001 -1 var standards_default = standards;14002 -1 function isUnsupportedRole(role) {14003 -1 var roleDefinition = standards_default.ariaRoles[role];14004 -1 return roleDefinition ? !!roleDefinition.unsupported : false;-1 13365 function isEnclosedRect(rectA, rectB) { -1 13366 return rectA.top >= rectB.top && rectA.left >= rectB.left && rectA.bottom <= rectB.bottom && rectA.right <= rectB.right; 14005 13367 }14006 -1 var is_unsupported_role_default = isUnsupportedRole;14007 -1 function isValidRole(role) {14008 -1 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;14009 -1 var roleDefinition = standards_default.ariaRoles[role];14010 -1 var isRoleUnsupported = is_unsupported_role_default(role);14011 -1 if (!roleDefinition || flagUnsupported && isRoleUnsupported) {14012 -1 return false;-1 13368 var ROOT_LEVEL = 0; -1 13369 var DEFAULT_LEVEL = .1; -1 13370 var FLOAT_LEVEL = .2; -1 13371 var POSITION_LEVEL = .3; -1 13372 var nodeIndex = 0; -1 13373 function _createGrid() { -1 13374 var root = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : document.body; -1 13375 var rootGrid = arguments.length > 1 ? arguments[1] : undefined; -1 13376 var parentVNode = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null; -1 13377 if (cache_default.get('gridCreated') && !parentVNode) { -1 13378 return constants_default.gridSize; -1 13379 } -1 13380 cache_default.set('gridCreated', true); -1 13381 if (!parentVNode) { -1 13382 var vNode = get_node_from_tree_default(document.documentElement); -1 13383 if (!vNode) { -1 13384 vNode = new virtual_node_default(document.documentElement); -1 13385 } -1 13386 nodeIndex = 0; -1 13387 vNode._stackingOrder = [ createStackingContext(ROOT_LEVEL, nodeIndex++, null) ]; -1 13388 rootGrid !== null && rootGrid !== void 0 ? rootGrid : rootGrid = new Grid(); -1 13389 addNodeToGrid(rootGrid, vNode); -1 13390 if (get_scroll_default(vNode.actualNode)) { -1 13391 var subGrid = new Grid(vNode); -1 13392 vNode._subGrid = subGrid; -1 13393 } -1 13394 } -1 13395 var treeWalker = document.createTreeWalker(root, window.NodeFilter.SHOW_ELEMENT, null, false); -1 13396 var node = parentVNode ? treeWalker.nextNode() : treeWalker.currentNode; -1 13397 while (node) { -1 13398 var _vNode = get_node_from_tree_default(node); -1 13399 if (_vNode && _vNode.parent) { -1 13400 parentVNode = _vNode.parent; -1 13401 } else if (node.assignedSlot) { -1 13402 parentVNode = get_node_from_tree_default(node.assignedSlot); -1 13403 } else if (node.parentElement) { -1 13404 parentVNode = get_node_from_tree_default(node.parentElement); -1 13405 } else if (node.parentNode && get_node_from_tree_default(node.parentNode)) { -1 13406 parentVNode = get_node_from_tree_default(node.parentNode); -1 13407 } -1 13408 if (!_vNode) { -1 13409 _vNode = new axe.VirtualNode(node, parentVNode); -1 13410 } -1 13411 _vNode._stackingOrder = createStackingOrder(_vNode, parentVNode, nodeIndex++); -1 13412 var scrollRegionParent = findScrollRegionParent(_vNode, parentVNode); -1 13413 var grid = scrollRegionParent ? scrollRegionParent._subGrid : rootGrid; -1 13414 if (get_scroll_default(_vNode.actualNode)) { -1 13415 var _subGrid = new Grid(_vNode); -1 13416 _vNode._subGrid = _subGrid; -1 13417 } -1 13418 var rect = _vNode.boundingClientRect; -1 13419 if (rect.width !== 0 && rect.height !== 0 && _isVisibleOnScreen(node)) { -1 13420 addNodeToGrid(grid, _vNode); -1 13421 } -1 13422 if (is_shadow_root_default(node)) { -1 13423 _createGrid(node.shadowRoot, grid, _vNode); -1 13424 } -1 13425 node = treeWalker.nextNode(); -1 13426 } -1 13427 return constants_default.gridSize; -1 13428 } -1 13429 function isStackingContext(vNode, parentVNode) { -1 13430 var position = vNode.getComputedStylePropertyValue('position'); -1 13431 var zIndex = vNode.getComputedStylePropertyValue('z-index'); -1 13432 if (position === 'fixed' || position === 'sticky') { -1 13433 return true; -1 13434 } -1 13435 if (zIndex !== 'auto' && position !== 'static') { -1 13436 return true; -1 13437 } -1 13438 if (vNode.getComputedStylePropertyValue('opacity') !== '1') { -1 13439 return true; -1 13440 } -1 13441 var transform = vNode.getComputedStylePropertyValue('-webkit-transform') || vNode.getComputedStylePropertyValue('-ms-transform') || vNode.getComputedStylePropertyValue('transform') || 'none'; -1 13442 if (transform !== 'none') { -1 13443 return true; -1 13444 } -1 13445 var mixBlendMode = vNode.getComputedStylePropertyValue('mix-blend-mode'); -1 13446 if (mixBlendMode && mixBlendMode !== 'normal') { -1 13447 return true; -1 13448 } -1 13449 var filter = vNode.getComputedStylePropertyValue('filter'); -1 13450 if (filter && filter !== 'none') { -1 13451 return true; 14013 13452 }14014 -1 return allowAbstract ? true : roleDefinition.type !== 'abstract';14015 -1 }14016 -1 var is_valid_role_default = isValidRole;14017 -1 function getExplicitRole(vNode) {14018 -1 var _ref27 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, fallback = _ref27.fallback, abstracts = _ref27.abstracts, dpub = _ref27.dpub;14019 -1 vNode = vNode instanceof abstract_virtual_node_default ? vNode : get_node_from_tree_default(vNode);14020 -1 if (vNode.props.nodeType !== 1) {14021 -1 return null;-1 13453 var perspective = vNode.getComputedStylePropertyValue('perspective'); -1 13454 if (perspective && perspective !== 'none') { -1 13455 return true; 14022 13456 }14023 -1 var roleAttr = (vNode.attr('role') || '').trim().toLowerCase();14024 -1 var roleList = fallback ? token_list_default(roleAttr) : [ roleAttr ];14025 -1 var firstValidRole = roleList.find(function(role) {14026 -1 if (!dpub && role.substr(0, 4) === 'doc-') {14027 -1 return false;14028 -1 }14029 -1 return is_valid_role_default(role, {14030 -1 allowAbstract: abstracts14031 -1 });14032 -1 });14033 -1 return firstValidRole || null;-1 13457 var clipPath = vNode.getComputedStylePropertyValue('clip-path'); -1 13458 if (clipPath && clipPath !== 'none') { -1 13459 return true; -1 13460 } -1 13461 var mask = vNode.getComputedStylePropertyValue('-webkit-mask') || vNode.getComputedStylePropertyValue('mask') || 'none'; -1 13462 if (mask !== 'none') { -1 13463 return true; -1 13464 } -1 13465 var maskImage = vNode.getComputedStylePropertyValue('-webkit-mask-image') || vNode.getComputedStylePropertyValue('mask-image') || 'none'; -1 13466 if (maskImage !== 'none') { -1 13467 return true; -1 13468 } -1 13469 var maskBorder = vNode.getComputedStylePropertyValue('-webkit-mask-border') || vNode.getComputedStylePropertyValue('mask-border') || 'none'; -1 13470 if (maskBorder !== 'none') { -1 13471 return true; -1 13472 } -1 13473 if (vNode.getComputedStylePropertyValue('isolation') === 'isolate') { -1 13474 return true; -1 13475 } -1 13476 var willChange = vNode.getComputedStylePropertyValue('will-change'); -1 13477 if (willChange === 'transform' || willChange === 'opacity') { -1 13478 return true; -1 13479 } -1 13480 if (vNode.getComputedStylePropertyValue('-webkit-overflow-scrolling') === 'touch') { -1 13481 return true; -1 13482 } -1 13483 var contain = vNode.getComputedStylePropertyValue('contain'); -1 13484 if ([ 'layout', 'paint', 'strict', 'content' ].includes(contain)) { -1 13485 return true; -1 13486 } -1 13487 if (zIndex !== 'auto' && isFlexOrGridContainer(parentVNode)) { -1 13488 return true; -1 13489 } -1 13490 return false; 14034 13491 }14035 -1 var get_explicit_role_default = getExplicitRole;14036 -1 function getElementsByContentType(type2) {14037 -1 return Object.keys(standards_default.htmlElms).filter(function(nodeName2) {14038 -1 var elm = standards_default.htmlElms[nodeName2];14039 -1 if (elm.contentTypes) {14040 -1 return elm.contentTypes.includes(type2);14041 -1 }14042 -1 if (!elm.variant) {14043 -1 return false;14044 -1 }14045 -1 if (elm.variant['default'] && elm.variant['default'].contentTypes) {14046 -1 return elm.variant['default'].contentTypes.includes(type2);14047 -1 }-1 13492 function isFlexOrGridContainer(vNode) { -1 13493 if (!vNode) { 14048 13494 return false;14049 -1 });-1 13495 } -1 13496 var display2 = vNode.getComputedStylePropertyValue('display'); -1 13497 return [ 'flex', 'inline-flex', 'grid', 'inline-grid' ].includes(display2); 14050 13498 }14051 -1 var get_elements_by_content_type_default = getElementsByContentType;14052 -1 function getGlobalAriaAttrs() {14053 -1 return cache_default.get('globalAriaAttrs', function() {14054 -1 return Object.keys(standards_default.ariaAttrs).filter(function(attrName) {14055 -1 return standards_default.ariaAttrs[attrName].global;-1 13499 function createStackingOrder(vNode, parentVNode, treeOrder) { -1 13500 var stackingOrder = parentVNode._stackingOrder.slice(); -1 13501 if (isStackingContext(vNode, parentVNode)) { -1 13502 var index = stackingOrder.findIndex(function(_ref34) { -1 13503 var stackLevel2 = _ref34.stackLevel; -1 13504 return [ ROOT_LEVEL, FLOAT_LEVEL, POSITION_LEVEL ].includes(stackLevel2); 14056 13505 });14057 -1 });14058 -1 }14059 -1 var get_global_aria_attrs_default = getGlobalAriaAttrs;14060 -1 function toGrid(node) {14061 -1 var table = [];14062 -1 var rows = node.rows;14063 -1 for (var _i9 = 0, rowLength = rows.length; _i9 < rowLength; _i9++) {14064 -1 var cells = rows[_i9].cells;14065 -1 table[_i9] = table[_i9] || [];14066 -1 var columnIndex = 0;14067 -1 for (var j = 0, cellLength = cells.length; j < cellLength; j++) {14068 -1 for (var colSpan = 0; colSpan < cells[j].colSpan; colSpan++) {14069 -1 var rowspanAttr = cells[j].getAttribute('rowspan');14070 -1 var rowspanValue = parseInt(rowspanAttr) === 0 || cells[j].rowspan === 0 ? rows.length : cells[j].rowSpan;14071 -1 for (var rowSpan = 0; rowSpan < rowspanValue; rowSpan++) {14072 -1 table[_i9 + rowSpan] = table[_i9 + rowSpan] || [];14073 -1 while (table[_i9 + rowSpan][columnIndex]) {14074 -1 columnIndex++;14075 -1 }14076 -1 table[_i9 + rowSpan][columnIndex] = cells[j];14077 -1 }14078 -1 columnIndex++;14079 -1 }-1 13506 if (index !== -1) { -1 13507 stackingOrder.splice(index, stackingOrder.length - index); 14080 13508 } 14081 13509 }14082 -1 return table;14083 -1 }14084 -1 var to_grid_default = memoize_default(toGrid);14085 -1 function getCellPosition(cell, tableGrid) {14086 -1 var rowIndex, index;14087 -1 if (!tableGrid) {14088 -1 tableGrid = to_grid_default(find_up_default(cell, 'table'));14089 -1 }14090 -1 for (rowIndex = 0; rowIndex < tableGrid.length; rowIndex++) {14091 -1 if (tableGrid[rowIndex]) {14092 -1 index = tableGrid[rowIndex].indexOf(cell);14093 -1 if (index !== -1) {14094 -1 return {14095 -1 x: index,14096 -1 y: rowIndex14097 -1 };14098 -1 }14099 -1 }-1 13510 var stackLevel = getStackLevel(vNode, parentVNode); -1 13511 if (stackLevel !== null) { -1 13512 stackingOrder.push(createStackingContext(stackLevel, treeOrder, vNode)); 14100 13513 } -1 13514 return stackingOrder; 14101 13515 }14102 -1 var get_cell_position_default = memoize_default(getCellPosition);14103 -1 function _getScope(el) {14104 -1 var _nodeLookup9 = _nodeLookup(el), vNode = _nodeLookup9.vNode, cell = _nodeLookup9.domNode;14105 -1 var scope = vNode.attr('scope');14106 -1 var role = vNode.attr('role');14107 -1 if (![ 'td', 'th' ].includes(vNode.props.nodeName)) {14108 -1 throw new TypeError('Expected TD or TH element');-1 13516 function createStackingContext(stackLevel, treeOrder, vNode) { -1 13517 return { -1 13518 stackLevel: stackLevel, -1 13519 treeOrder: treeOrder, -1 13520 vNode: vNode -1 13521 }; -1 13522 } -1 13523 function getStackLevel(vNode, parentVNode) { -1 13524 var zIndex = getRealZIndex(vNode, parentVNode); -1 13525 if (![ 'auto', '0' ].includes(zIndex)) { -1 13526 return parseInt(zIndex); 14109 13527 }14110 -1 if (role === 'columnheader') {14111 -1 return 'col';14112 -1 } else if (role === 'rowheader') {14113 -1 return 'row';14114 -1 } else if (scope === 'col' || scope === 'row') {14115 -1 return scope;14116 -1 } else if (vNode.props.nodeName !== 'th') {14117 -1 return false;14118 -1 } else if (!vNode.actualNode) {14119 -1 return 'auto';-1 13528 if (vNode.getComputedStylePropertyValue('position') !== 'static') { -1 13529 return POSITION_LEVEL; 14120 13530 }14121 -1 var tableGrid = to_grid_default(find_up_default(cell, 'table'));14122 -1 var pos = get_cell_position_default(cell, tableGrid);14123 -1 var headerRow = tableGrid[pos.y].every(function(node) {14124 -1 return node.nodeName.toUpperCase() === 'TH';14125 -1 });14126 -1 if (headerRow) {14127 -1 return 'col';-1 13531 if (vNode.getComputedStylePropertyValue('float') !== 'none') { -1 13532 return FLOAT_LEVEL; 14128 13533 }14129 -1 var headerCol = tableGrid.map(function(col) {14130 -1 return col[pos.x];14131 -1 }).every(function(node) {14132 -1 return node && node.nodeName.toUpperCase() === 'TH';14133 -1 });14134 -1 if (headerCol) {14135 -1 return 'row';-1 13534 if (isStackingContext(vNode, parentVNode)) { -1 13535 return DEFAULT_LEVEL; 14136 13536 }14137 -1 return 'auto';14138 -1 }14139 -1 function isColumnHeader(element) {14140 -1 return [ 'col', 'auto' ].indexOf(_getScope(element)) !== -1;14141 -1 }14142 -1 var is_column_header_default = isColumnHeader;14143 -1 function isRowHeader(cell) {14144 -1 return [ 'row', 'auto' ].includes(_getScope(cell));-1 13537 return null; 14145 13538 }14146 -1 var is_row_header_default = isRowHeader;14147 -1 function sanitize(str) {14148 -1 if (!str) {14149 -1 return '';-1 13539 function getRealZIndex(vNode, parentVNode) { -1 13540 var position = vNode.getComputedStylePropertyValue('position'); -1 13541 if (position === 'static' && !isFlexOrGridContainer(parentVNode)) { -1 13542 return 'auto'; 14150 13543 }14151 -1 return str.replace(/\r\n/g, '\n').replace(/\u00A0/g, ' ').replace(/[\s]{2,}/g, ' ').trim();-1 13544 return vNode.getComputedStylePropertyValue('z-index'); 14152 13545 }14153 -1 var sanitize_default = sanitize;14154 -1 var getSectioningContentSelector = function getSectioningContentSelector() {14155 -1 return cache_default.get('sectioningContentSelector', function() {14156 -1 return get_elements_by_content_type_default('sectioning').map(function(nodeName2) {14157 -1 return ''.concat(nodeName2, ':not([role])');14158 -1 }).join(', ') + ' , [role=article], [role=complementary], [role=navigation], [role=region]';14159 -1 });14160 -1 };14161 -1 var getSectioningContentPlusMainSelector = function getSectioningContentPlusMainSelector() {14162 -1 return cache_default.get('sectioningContentPlusMainSelector', function() {14163 -1 return getSectioningContentSelector() + ' , main:not([role]), [role=main]';-1 13546 function findScrollRegionParent(vNode, parentVNode) { -1 13547 var scrollRegionParent = null; -1 13548 var checkedNodes = [ vNode ]; -1 13549 while (parentVNode) { -1 13550 if (get_scroll_default(parentVNode.actualNode)) { -1 13551 scrollRegionParent = parentVNode; -1 13552 break; -1 13553 } -1 13554 if (parentVNode._scrollRegionParent) { -1 13555 scrollRegionParent = parentVNode._scrollRegionParent; -1 13556 break; -1 13557 } -1 13558 checkedNodes.push(parentVNode); -1 13559 parentVNode = get_node_from_tree_default(parentVNode.actualNode.parentElement || parentVNode.actualNode.parentNode); -1 13560 } -1 13561 checkedNodes.forEach(function(virtualNode) { -1 13562 return virtualNode._scrollRegionParent = scrollRegionParent; 14164 13563 });14165 -1 };14166 -1 function hasAccessibleName(vNode) {14167 -1 var _ref28 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, _ref28$checkTitle = _ref28.checkTitle, checkTitle = _ref28$checkTitle === void 0 ? false : _ref28$checkTitle;14168 -1 return !!(sanitize_default(arialabelledby_text_default(vNode)) || sanitize_default(_arialabelText(vNode)) || checkTitle && (vNode === null || vNode === void 0 ? void 0 : vNode.props.nodeType) === 1 && sanitize_default(vNode.attr('title')));-1 13564 return scrollRegionParent; 14169 13565 }14170 -1 var implicitHtmlRoles = {14171 -1 a: function a(vNode) {14172 -1 return vNode.hasAttr('href') ? 'link' : null;14173 -1 },14174 -1 area: function area(vNode) {14175 -1 return vNode.hasAttr('href') ? 'link' : null;14176 -1 },14177 -1 article: 'article',14178 -1 aside: function aside(vNode) {14179 -1 if (closest_default(vNode.parent, getSectioningContentSelector()) && !hasAccessibleName(vNode, {14180 -1 checkTitle: true14181 -1 })) {14182 -1 return null;-1 13566 function addNodeToGrid(grid, vNode) { -1 13567 var overflowHiddenNodes = get_overflow_hidden_ancestors_default(vNode); -1 13568 vNode.clientRects.forEach(function(clientRect) { -1 13569 var _vNode$_grid; -1 13570 var visibleRect = overflowHiddenNodes.reduce(function(rect, overflowNode) { -1 13571 return rect && _getIntersectionRect(rect, overflowNode.boundingClientRect); -1 13572 }, clientRect); -1 13573 if (!visibleRect) { -1 13574 return; 14183 13575 }14184 -1 return 'complementary';14185 -1 },14186 -1 body: 'document',14187 -1 button: 'button',14188 -1 datalist: 'listbox',14189 -1 dd: 'definition',14190 -1 dfn: 'term',14191 -1 details: 'group',14192 -1 dialog: 'dialog',14193 -1 dt: 'term',14194 -1 fieldset: 'group',14195 -1 figure: 'figure',14196 -1 footer: function footer(vNode) {14197 -1 var sectioningElement = closest_default(vNode, getSectioningContentPlusMainSelector());14198 -1 return !sectioningElement ? 'contentinfo' : null;14199 -1 },14200 -1 form: function form(vNode) {14201 -1 return hasAccessibleName(vNode) ? 'form' : null;14202 -1 },14203 -1 h1: 'heading',14204 -1 h2: 'heading',14205 -1 h3: 'heading',14206 -1 h4: 'heading',14207 -1 h5: 'heading',14208 -1 h6: 'heading',14209 -1 header: function header(vNode) {14210 -1 var sectioningElement = closest_default(vNode, getSectioningContentPlusMainSelector());14211 -1 return !sectioningElement ? 'banner' : null;14212 -1 },14213 -1 hr: 'separator',14214 -1 img: function img(vNode) {14215 -1 var emptyAlt = vNode.hasAttr('alt') && !vNode.attr('alt');14216 -1 var hasGlobalAria = get_global_aria_attrs_default().find(function(attr) {14217 -1 return vNode.hasAttr(attr);-1 13576 (_vNode$_grid = vNode._grid) !== null && _vNode$_grid !== void 0 ? _vNode$_grid : vNode._grid = grid; -1 13577 var gridRect = grid.getGridPositionOfRect(visibleRect); -1 13578 grid.loopGridPosition(gridRect, function(gridCell) { -1 13579 if (!gridCell.includes(vNode)) { -1 13580 gridCell.push(vNode); -1 13581 } 14218 13582 });14219 -1 return emptyAlt && !hasGlobalAria && !_isFocusable(vNode) ? 'presentation' : 'img';14220 -1 },14221 -1 input: function input(vNode) {14222 -1 var suggestionsSourceElement;14223 -1 if (vNode.hasAttr('list')) {14224 -1 var listElement = idrefs_default(vNode.actualNode, 'list').filter(function(node) {14225 -1 return !!node;14226 -1 })[0];14227 -1 suggestionsSourceElement = listElement && listElement.nodeName.toLowerCase() === 'datalist';14228 -1 }14229 -1 switch (vNode.props.type) {14230 -1 case 'checkbox':14231 -1 return 'checkbox';14232 -114233 -1 case 'number':14234 -1 return 'spinbutton';14235 -114236 -1 case 'radio':14237 -1 return 'radio';14238 -114239 -1 case 'range':14240 -1 return 'slider';14241 -114242 -1 case 'search':14243 -1 return !suggestionsSourceElement ? 'searchbox' : 'combobox';14244 -114245 -1 case 'button':14246 -1 case 'image':14247 -1 case 'reset':14248 -1 case 'submit':14249 -1 return 'button';14250 -114251 -1 case 'text':14252 -1 case 'tel':14253 -1 case 'url':14254 -1 case 'email':14255 -1 case '':14256 -1 return !suggestionsSourceElement ? 'textbox' : 'combobox';14257 -114258 -1 default:14259 -1 return 'textbox';-1 13583 }); -1 13584 } -1 13585 var Grid = function() { -1 13586 function Grid() { -1 13587 var container = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null; -1 13588 _classCallCheck(this, Grid); -1 13589 this.container = container; -1 13590 this.cells = []; -1 13591 } -1 13592 return _createClass(Grid, [ { -1 13593 key: 'toGridIndex', -1 13594 value: function toGridIndex(num) { -1 13595 return Math.floor(num / constants_default.gridSize); 14260 13596 }14261 -1 },14262 -1 li: 'listitem',14263 -1 main: 'main',14264 -1 math: 'math',14265 -1 menu: 'list',14266 -1 meter: 'meter',14267 -1 nav: 'navigation',14268 -1 ol: 'list',14269 -1 optgroup: 'group',14270 -1 option: 'option',14271 -1 output: 'status',14272 -1 progress: 'progressbar',14273 -1 search: 'search',14274 -1 section: function section(vNode) {14275 -1 return hasAccessibleName(vNode) ? 'region' : null;14276 -1 },14277 -1 select: function select(vNode) {14278 -1 return vNode.hasAttr('multiple') || parseInt(vNode.attr('size')) > 1 ? 'listbox' : 'combobox';14279 -1 },14280 -1 summary: 'button',14281 -1 table: 'table',14282 -1 tbody: 'rowgroup',14283 -1 td: function td(vNode) {14284 -1 var table = closest_default(vNode, 'table');14285 -1 var role = get_explicit_role_default(table);14286 -1 return [ 'grid', 'treegrid' ].includes(role) ? 'gridcell' : 'cell';14287 -1 },14288 -1 textarea: 'textbox',14289 -1 tfoot: 'rowgroup',14290 -1 th: function th(vNode) {14291 -1 if (is_column_header_default(vNode)) {14292 -1 return 'columnheader';-1 13597 }, { -1 13598 key: 'getCellFromPoint', -1 13599 value: function getCellFromPoint(_ref35) { -1 13600 var _this$cells, _row; -1 13601 var x = _ref35.x, y = _ref35.y; -1 13602 assert_default(this.boundaries, 'Grid does not have cells added'); -1 13603 var rowIndex = this.toGridIndex(y); -1 13604 var colIndex = this.toGridIndex(x); -1 13605 assert_default(_isPointInRect({ -1 13606 y: rowIndex, -1 13607 x: colIndex -1 13608 }, this.boundaries), 'Element midpoint exceeds the grid bounds'); -1 13609 var row = (_this$cells = this.cells[rowIndex - this.cells._negativeIndex]) !== null && _this$cells !== void 0 ? _this$cells : []; -1 13610 return (_row = row[colIndex - row._negativeIndex]) !== null && _row !== void 0 ? _row : []; 14293 13611 }14294 -1 if (is_row_header_default(vNode)) {14295 -1 return 'rowheader';-1 13612 }, { -1 13613 key: 'loopGridPosition', -1 13614 value: function loopGridPosition(gridPosition, callback) { -1 13615 var _gridPosition = gridPosition, left = _gridPosition.left, right = _gridPosition.right, top = _gridPosition.top, bottom = _gridPosition.bottom; -1 13616 if (this.boundaries) { -1 13617 gridPosition = _getBoundingRect(this.boundaries, gridPosition); -1 13618 } -1 13619 this.boundaries = gridPosition; -1 13620 loopNegativeIndexMatrix(this.cells, top, bottom, function(gridRow, row) { -1 13621 loopNegativeIndexMatrix(gridRow, left, right, function(gridCell, col) { -1 13622 callback(gridCell, { -1 13623 row: row, -1 13624 col: col -1 13625 }); -1 13626 }); -1 13627 }); 14296 13628 }14297 -1 },14298 -1 thead: 'rowgroup',14299 -1 tr: 'row',14300 -1 ul: 'list'14301 -1 };14302 -1 var implicit_html_roles_default = implicitHtmlRoles;14303 -1 function fromPrimative(someString, matcher) {14304 -1 var matcherType = _typeof(matcher);14305 -1 if (Array.isArray(matcher) && typeof someString !== 'undefined') {14306 -1 return matcher.includes(someString);14307 -1 }14308 -1 if (matcherType === 'function') {14309 -1 return !!matcher(someString);14310 -1 }14311 -1 if (someString !== null && someString !== void 0) {14312 -1 if (matcher instanceof RegExp) {14313 -1 return matcher.test(someString);-1 13629 }, { -1 13630 key: 'getGridPositionOfRect', -1 13631 value: function getGridPositionOfRect(_ref36) { -1 13632 var top = _ref36.top, right = _ref36.right, bottom = _ref36.bottom, left = _ref36.left; -1 13633 var margin = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0; -1 13634 top = this.toGridIndex(top - margin); -1 13635 right = this.toGridIndex(right + margin - 1); -1 13636 bottom = this.toGridIndex(bottom + margin - 1); -1 13637 left = this.toGridIndex(left - margin); -1 13638 return new window.DOMRect(left, top, right - left, bottom - top); 14314 13639 }14315 -1 if (/^\/.*\/$/.test(matcher)) {14316 -1 var pattern = matcher.substring(1, matcher.length - 1);14317 -1 return new RegExp(pattern).test(someString);-1 13640 } ]); -1 13641 }(); -1 13642 function loopNegativeIndexMatrix(matrix, start, end, callback) { -1 13643 var _matrix$_negativeInde; -1 13644 (_matrix$_negativeInde = matrix._negativeIndex) !== null && _matrix$_negativeInde !== void 0 ? _matrix$_negativeInde : matrix._negativeIndex = 0; -1 13645 if (start < matrix._negativeIndex) { -1 13646 for (var i = 0; i < matrix._negativeIndex - start; i++) { -1 13647 matrix.splice(0, 0, []); 14318 13648 } -1 13649 matrix._negativeIndex = start; 14319 13650 }14320 -1 return matcher === someString;14321 -1 }14322 -1 var from_primative_default = fromPrimative;14323 -1 function hasAccessibleName2(vNode, matcher) {14324 -1 return from_primative_default(!!_accessibleTextVirtual(vNode), matcher);14325 -1 }14326 -1 var has_accessible_name_default = hasAccessibleName2;14327 -1 function fromFunction(getValue, matcher) {14328 -1 var matcherType = _typeof(matcher);14329 -1 if (matcherType !== 'object' || Array.isArray(matcher) || matcher instanceof RegExp) {14330 -1 throw new Error('Expect matcher to be an object');-1 13651 var startOffset = start - matrix._negativeIndex; -1 13652 var endOffset = end - matrix._negativeIndex; -1 13653 for (var index = startOffset; index <= endOffset; index++) { -1 13654 var _index, _matrix$_index; -1 13655 (_matrix$_index = matrix[_index = index]) !== null && _matrix$_index !== void 0 ? _matrix$_index : matrix[_index] = []; -1 13656 callback(matrix[index], index + matrix._negativeIndex); 14331 13657 }14332 -1 return Object.keys(matcher).every(function(propName) {14333 -1 return from_primative_default(getValue(propName), matcher[propName]);14334 -1 });14335 -1 }14336 -1 var from_function_default = fromFunction;14337 -1 function attributes(vNode, matcher) {14338 -1 vNode = _nodeLookup(vNode).vNode;14339 -1 return from_function_default(function(attrName) {14340 -1 return vNode.attr(attrName);14341 -1 }, matcher);14342 -1 }14343 -1 var attributes_default = attributes;14344 -1 function condition(arg, matcher) {14345 -1 return !!matcher(arg);14346 -1 }14347 -1 function explicitRole(vNode, matcher) {14348 -1 return from_primative_default(get_explicit_role_default(vNode), matcher);14349 -1 }14350 -1 var explicit_role_default = explicitRole;14351 -1 function implicitRole(vNode, matcher) {14352 -1 return from_primative_default(implicit_role_default(vNode), matcher);14353 -1 }14354 -1 var implicit_role_default2 = implicitRole;14355 -1 function nodeName(vNode, matcher) {14356 -1 vNode = _nodeLookup(vNode).vNode;14357 -1 return from_primative_default(vNode.props.nodeName, matcher);14358 -1 }14359 -1 var node_name_default = nodeName;14360 -1 function properties(vNode, matcher) {14361 -1 vNode = _nodeLookup(vNode).vNode;14362 -1 return from_function_default(function(propName) {14363 -1 return vNode.props[propName];14364 -1 }, matcher);14365 13658 }14366 -1 var properties_default = properties;14367 -1 function semanticRole(vNode, matcher) {14368 -1 return from_primative_default(get_role_default(vNode), matcher);14369 -1 }14370 -1 var semantic_role_default = semanticRole;14371 -1 var matchers = {14372 -1 hasAccessibleName: has_accessible_name_default,14373 -1 attributes: attributes_default,14374 -1 condition: condition,14375 -1 explicitRole: explicit_role_default,14376 -1 implicitRole: implicit_role_default2,14377 -1 nodeName: node_name_default,14378 -1 properties: properties_default,14379 -1 semanticRole: semantic_role_default14380 -1 };14381 -1 function fromDefinition(vNode, definition) {14382 -1 vNode = _nodeLookup(vNode).vNode;14383 -1 if (Array.isArray(definition)) {14384 -1 return definition.some(function(definitionItem) {14385 -1 return fromDefinition(vNode, definitionItem);14386 -1 });14387 -1 }14388 -1 if (typeof definition === 'string') {14389 -1 return _matches(vNode, definition);-1 13659 function _getNodeGrid(node) { -1 13660 _createGrid(); -1 13661 var _nodeLookup3 = _nodeLookup(node), vNode = _nodeLookup3.vNode; -1 13662 return vNode._grid; -1 13663 } -1 13664 function _findNearbyElms(vNode) { -1 13665 var _grid$cells; -1 13666 var margin = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0; -1 13667 var grid = _getNodeGrid(vNode); -1 13668 if (!(grid !== null && grid !== void 0 && (_grid$cells = grid.cells) !== null && _grid$cells !== void 0 && _grid$cells.length)) { -1 13669 return []; 14390 13670 }14391 -1 return Object.keys(definition).every(function(matcherName) {14392 -1 if (!matchers[matcherName]) {14393 -1 throw new Error('Unknown matcher type "'.concat(matcherName, '"'));-1 13671 var rect = vNode.boundingClientRect; -1 13672 var selfIsFixed = hasFixedPosition(vNode); -1 13673 var gridPosition = grid.getGridPositionOfRect(rect, margin); -1 13674 var neighbors = []; -1 13675 grid.loopGridPosition(gridPosition, function(vNeighbors) { -1 13676 var _iterator9 = _createForOfIteratorHelper(vNeighbors), _step9; -1 13677 try { -1 13678 for (_iterator9.s(); !(_step9 = _iterator9.n()).done; ) { -1 13679 var vNeighbor = _step9.value; -1 13680 if (vNeighbor && vNeighbor !== vNode && !neighbors.includes(vNeighbor) && selfIsFixed === hasFixedPosition(vNeighbor)) { -1 13681 neighbors.push(vNeighbor); -1 13682 } -1 13683 } -1 13684 } catch (err) { -1 13685 _iterator9.e(err); -1 13686 } finally { -1 13687 _iterator9.f(); 14394 13688 }14395 -1 var matchMethod = matchers[matcherName];14396 -1 var matcher = definition[matcherName];14397 -1 return matchMethod(vNode, matcher);14398 13689 }); -1 13690 return neighbors; 14399 13691 }14400 -1 var from_definition_default = fromDefinition;14401 -1 function matches2(vNode, definition) {14402 -1 return from_definition_default(vNode, definition);14403 -1 }14404 -1 var matches_default = matches2;14405 -1 matches_default.hasAccessibleName = has_accessible_name_default;14406 -1 matches_default.attributes = attributes_default;14407 -1 matches_default.condition = condition;14408 -1 matches_default.explicitRole = explicit_role_default;14409 -1 matches_default.fromDefinition = from_definition_default;14410 -1 matches_default.fromFunction = from_function_default;14411 -1 matches_default.fromPrimative = from_primative_default;14412 -1 matches_default.implicitRole = implicit_role_default2;14413 -1 matches_default.nodeName = node_name_default;14414 -1 matches_default.properties = properties_default;14415 -1 matches_default.semanticRole = semantic_role_default;14416 -1 var matches_default2 = matches_default;14417 -1 function getElementSpec(vNode) {14418 -1 var _ref29 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, _ref29$noMatchAccessi = _ref29.noMatchAccessibleName, noMatchAccessibleName = _ref29$noMatchAccessi === void 0 ? false : _ref29$noMatchAccessi;14419 -1 var standard = standards_default.htmlElms[vNode.props.nodeName];14420 -1 if (!standard) {14421 -1 return {};-1 13692 var hasFixedPosition = memoize_default(function(vNode) { -1 13693 if (!vNode) { -1 13694 return false; 14422 13695 }14423 -1 if (!standard.variant) {14424 -1 return standard;-1 13696 if (vNode.getComputedStylePropertyValue('position') === 'fixed') { -1 13697 return true; 14425 13698 }14426 -1 var variant = standard.variant, spec = _objectWithoutProperties(standard, _excluded4);14427 -1 for (var variantName in variant) {14428 -1 if (!variant.hasOwnProperty(variantName) || variantName === 'default') {-1 13699 return hasFixedPosition(vNode.parent); -1 13700 }); -1 13701 var getModalDialog = memoize_default(function getModalDialogMemoized() { -1 13702 var _dialogs$find; -1 13703 if (!axe._tree) { -1 13704 return null; -1 13705 } -1 13706 var dialogs = query_selector_all_filter_default(axe._tree[0], 'dialog[open]', function(vNode) { -1 13707 var rect = vNode.boundingClientRect; -1 13708 var stack = document.elementsFromPoint(rect.left + 1, rect.top + 1); -1 13709 return stack.includes(vNode.actualNode) && _isVisibleOnScreen(vNode); -1 13710 }); -1 13711 if (!dialogs.length) { -1 13712 return null; -1 13713 } -1 13714 var modalDialog = dialogs.find(function(dialog) { -1 13715 var rect = dialog.boundingClientRect; -1 13716 var stack = document.elementsFromPoint(rect.left - 10, rect.top - 10); -1 13717 return stack.includes(dialog.actualNode); -1 13718 }); -1 13719 if (modalDialog) { -1 13720 return modalDialog; -1 13721 } -1 13722 return (_dialogs$find = dialogs.find(function(dialog) { -1 13723 var _getNodeFromGrid; -1 13724 var _ref37 = (_getNodeFromGrid = getNodeFromGrid(dialog)) !== null && _getNodeFromGrid !== void 0 ? _getNodeFromGrid : {}, vNode = _ref37.vNode, rect = _ref37.rect; -1 13725 if (!vNode) { -1 13726 return false; -1 13727 } -1 13728 var stack = document.elementsFromPoint(rect.left + 1, rect.top + 1); -1 13729 return !stack.includes(vNode.actualNode); -1 13730 })) !== null && _dialogs$find !== void 0 ? _dialogs$find : null; -1 13731 }); -1 13732 var get_modal_dialog_default = getModalDialog; -1 13733 function getNodeFromGrid(dialog) { -1 13734 _createGrid(); -1 13735 var grid = axe._tree[0]._grid; -1 13736 var viewRect = new window.DOMRect(0, 0, window.innerWidth, window.innerHeight); -1 13737 if (!grid) { -1 13738 return; -1 13739 } -1 13740 for (var row = 0; row < grid.cells.length; row++) { -1 13741 var cols = grid.cells[row]; -1 13742 if (!cols) { 14429 13743 continue; 14430 13744 }14431 -1 var _variant$variantName = variant[variantName], matches4 = _variant$variantName.matches, props = _objectWithoutProperties(_variant$variantName, _excluded5);14432 -1 var matchProperties = Array.isArray(matches4) ? matches4 : [ matches4 ];14433 -1 for (var _i10 = 0; _i10 < matchProperties.length && noMatchAccessibleName; _i10++) {14434 -1 if (matchProperties[_i10].hasOwnProperty('hasAccessibleName')) {14435 -1 return standard;-1 13745 for (var col = 0; col < cols.length; col++) { -1 13746 var cells = cols[col]; -1 13747 if (!cells) { -1 13748 continue; 14436 13749 }14437 -1 }14438 -1 if (matches_default2(vNode, matches4)) {14439 -1 for (var propName in props) {14440 -1 if (props.hasOwnProperty(propName)) {14441 -1 spec[propName] = props[propName];-1 13750 for (var i = 0; i < cells.length; i++) { -1 13751 var vNode = cells[i]; -1 13752 var rect = vNode.boundingClientRect; -1 13753 var intersection = _getIntersectionRect(rect, viewRect); -1 13754 if (vNode.props.nodeName !== 'html' && vNode !== dialog && vNode.getComputedStylePropertyValue('pointer-events') !== 'none' && intersection) { -1 13755 return { -1 13756 vNode: vNode, -1 13757 rect: intersection -1 13758 }; 14442 13759 } 14443 13760 } 14444 13761 } 14445 13762 }14446 -1 for (var _propName in variant['default']) {14447 -1 if (variant['default'].hasOwnProperty(_propName) && typeof spec[_propName] === 'undefined') {14448 -1 spec[_propName] = variant['default'][_propName];14449 -1 }-1 13763 } -1 13764 function _isInert(vNode) { -1 13765 var _ref38 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, skipAncestors = _ref38.skipAncestors, isAncestor = _ref38.isAncestor; -1 13766 if (skipAncestors) { -1 13767 return isInertSelf(vNode, isAncestor); 14450 13768 }14451 -1 return spec;-1 13769 return isInertAncestors(vNode, isAncestor); 14452 13770 }14453 -1 var get_element_spec_default = getElementSpec;14454 -1 function implicitRole2(node) {14455 -1 var _ref30 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, chromium = _ref30.chromium;14456 -1 var vNode = node instanceof abstract_virtual_node_default ? node : get_node_from_tree_default(node);14457 -1 node = vNode.actualNode;14458 -1 if (!vNode) {14459 -1 throw new ReferenceError('Cannot get implicit role of a node outside the current scope.');-1 13771 var isInertSelf = memoize_default(function isInertSelfMemoized(vNode, isAncestor) { -1 13772 if (vNode.hasAttr('inert')) { -1 13773 return true; 14460 13774 }14461 -1 var nodeName2 = vNode.props.nodeName;14462 -1 var role = implicit_html_roles_default[nodeName2];14463 -1 if (!role && chromium) {14464 -1 var _get_element_spec_def = get_element_spec_default(vNode), chromiumRole = _get_element_spec_def.chromiumRole;14465 -1 return chromiumRole || null;-1 13775 if (!isAncestor && vNode.actualNode) { -1 13776 var modalDialog = get_modal_dialog_default(); -1 13777 if (modalDialog && !_contains(modalDialog, vNode)) { -1 13778 return true; -1 13779 } 14466 13780 }14467 -1 if (typeof role === 'function') {14468 -1 return role(vNode);-1 13781 return false; -1 13782 }); -1 13783 var isInertAncestors = memoize_default(function isInertAncestorsMemoized(vNode, isAncestor) { -1 13784 if (isInertSelf(vNode, isAncestor)) { -1 13785 return true; 14469 13786 }14470 -1 return role || null;-1 13787 if (!vNode.parent) { -1 13788 return false; -1 13789 } -1 13790 return isInertAncestors(vNode.parent, true); -1 13791 }); -1 13792 var allowedDisabledNodeNames = [ 'button', 'command', 'fieldset', 'keygen', 'optgroup', 'option', 'select', 'textarea', 'input' ]; -1 13793 function isDisabledAttrAllowed(nodeName2) { -1 13794 return allowedDisabledNodeNames.includes(nodeName2); 14471 13795 }14472 -1 var implicit_role_default = implicitRole2;14473 -1 var inheritsPresentationChain = {14474 -1 td: [ 'tr' ],14475 -1 th: [ 'tr' ],14476 -1 tr: [ 'thead', 'tbody', 'tfoot', 'table' ],14477 -1 thead: [ 'table' ],14478 -1 tbody: [ 'table' ],14479 -1 tfoot: [ 'table' ],14480 -1 li: [ 'ol', 'ul' ],14481 -1 dt: [ 'dl', 'div' ],14482 -1 dd: [ 'dl', 'div' ],14483 -1 div: [ 'dl' ]14484 -1 };14485 -1 function getInheritedRole(vNode, explicitRoleOptions) {14486 -1 var parentNodeNames = inheritsPresentationChain[vNode.props.nodeName];14487 -1 if (!parentNodeNames) {14488 -1 return null;-1 13796 function focusDisabled(el) { -1 13797 var _nodeLookup4 = _nodeLookup(el), vNode = _nodeLookup4.vNode; -1 13798 if (isDisabledAttrAllowed(vNode.props.nodeName) && vNode.hasAttr('disabled') || _isInert(vNode)) { -1 13799 return true; 14489 13800 }14490 -1 if (!vNode.parent) {14491 -1 if (!vNode.actualNode) {14492 -1 return null;-1 13801 var parentNode = vNode.parent; -1 13802 var ancestors = []; -1 13803 var fieldsetDisabled = false; -1 13804 while (parentNode && parentNode.shadowId === vNode.shadowId && !fieldsetDisabled) { -1 13805 ancestors.push(parentNode); -1 13806 if (parentNode.props.nodeName === 'legend') { -1 13807 break; 14493 13808 }14494 -1 throw new ReferenceError('Cannot determine role presentational inheritance of a required parent outside the current scope.');14495 -1 }14496 -1 if (!parentNodeNames.includes(vNode.parent.props.nodeName)) {14497 -1 return null;-1 13809 if (parentNode._inDisabledFieldset !== void 0) { -1 13810 fieldsetDisabled = parentNode._inDisabledFieldset; -1 13811 break; -1 13812 } -1 13813 if (parentNode.props.nodeName === 'fieldset' && parentNode.hasAttr('disabled')) { -1 13814 fieldsetDisabled = true; -1 13815 } -1 13816 parentNode = parentNode.parent; 14498 13817 }14499 -1 var parentRole = get_explicit_role_default(vNode.parent, explicitRoleOptions);14500 -1 if ([ 'none', 'presentation' ].includes(parentRole) && !hasConflictResolution(vNode.parent)) {14501 -1 return parentRole;-1 13818 ancestors.forEach(function(ancestor) { -1 13819 return ancestor._inDisabledFieldset = fieldsetDisabled; -1 13820 }); -1 13821 if (fieldsetDisabled) { -1 13822 return true; 14502 13823 }14503 -1 if (parentRole) {14504 -1 return null;-1 13824 if (vNode.props.nodeName !== 'area') { -1 13825 if (!vNode.actualNode) { -1 13826 return false; -1 13827 } -1 13828 return _isHiddenForEveryone(vNode); 14505 13829 }14506 -1 return getInheritedRole(vNode.parent, explicitRoleOptions);-1 13830 return false; 14507 13831 }14508 -1 function resolveImplicitRole(vNode, _ref31) {14509 -1 var chromium = _ref31.chromium, explicitRoleOptions = _objectWithoutProperties(_ref31, _excluded6);14510 -1 var implicitRole3 = implicit_role_default(vNode, {14511 -1 chromium: chromium14512 -1 });14513 -1 if (!implicitRole3) {14514 -1 return null;-1 13832 var focus_disabled_default = focusDisabled; -1 13833 var angularSkipLinkRegex = /^\/\#/; -1 13834 var angularRouterLinkRegex = /^#[!/]/; -1 13835 function _isCurrentPageLink(anchor) { -1 13836 var _window$location; -1 13837 var href = anchor.getAttribute('href'); -1 13838 if (!href || href === '#') { -1 13839 return false; 14515 13840 }14516 -1 var presentationalRole = getInheritedRole(vNode, explicitRoleOptions);14517 -1 if (presentationalRole) {14518 -1 return presentationalRole;-1 13841 if (angularSkipLinkRegex.test(href)) { -1 13842 return true; 14519 13843 }14520 -1 return implicitRole3;14521 -1 }14522 -1 function hasConflictResolution(vNode) {14523 -1 var hasGlobalAria = get_global_aria_attrs_default().some(function(attr) {14524 -1 return vNode.hasAttr(attr);14525 -1 });14526 -1 return hasGlobalAria || _isFocusable(vNode);14527 -1 }14528 -1 function resolveRole(node) {14529 -1 var _ref32 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};14530 -1 var noImplicit = _ref32.noImplicit, roleOptions = _objectWithoutProperties(_ref32, _excluded7);14531 -1 var _nodeLookup10 = _nodeLookup(node), vNode = _nodeLookup10.vNode;14532 -1 if (vNode.props.nodeType !== 1) {14533 -1 return null;-1 13844 var hash = anchor.hash, protocol = anchor.protocol, hostname = anchor.hostname, port = anchor.port, pathname = anchor.pathname; -1 13845 if (angularRouterLinkRegex.test(hash)) { -1 13846 return false; 14534 13847 }14535 -1 var explicitRole2 = get_explicit_role_default(vNode, roleOptions);14536 -1 if (!explicitRole2) {14537 -1 return noImplicit ? null : resolveImplicitRole(vNode, roleOptions);-1 13848 if (href.charAt(0) === '#') { -1 13849 return true; 14538 13850 }14539 -1 if (![ 'presentation', 'none' ].includes(explicitRole2)) {14540 -1 return explicitRole2;-1 13851 if (typeof ((_window$location = window.location) === null || _window$location === void 0 ? void 0 : _window$location.origin) !== 'string' || window.location.origin.indexOf('://') === -1) { -1 13852 return null; 14541 13853 }14542 -1 if (hasConflictResolution(vNode)) {14543 -1 return noImplicit ? null : resolveImplicitRole(vNode, roleOptions);-1 13854 var currentPageUrl = window.location.origin + window.location.pathname; -1 13855 var url; -1 13856 if (!hostname) { -1 13857 url = window.location.origin; -1 13858 } else { -1 13859 url = ''.concat(protocol, '//').concat(hostname).concat(port ? ':'.concat(port) : ''); 14544 13860 }14545 -1 return explicitRole2;-1 13861 if (!pathname) { -1 13862 url += window.location.pathname; -1 13863 } else { -1 13864 url += (pathname[0] !== '/' ? '/' : '') + pathname; -1 13865 } -1 13866 return url === currentPageUrl; 14546 13867 }14547 -1 function getRole(node) {14548 -1 var _ref33 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};14549 -1 var noPresentational = _ref33.noPresentational, options = _objectWithoutProperties(_ref33, _excluded8);14550 -1 var role = resolveRole(node, options);14551 -1 if (noPresentational && [ 'presentation', 'none' ].includes(role)) {-1 13868 function getElementByReference(node, attr) { -1 13869 var fragment = node.getAttribute(attr); -1 13870 if (!fragment) { 14552 13871 return null; 14553 13872 }14554 -1 return role;14555 -1 }14556 -1 var get_role_default = getRole;14557 -1 var alwaysTitleElements = [ 'iframe' ];14558 -1 function titleText(node) {14559 -1 var _nodeLookup11 = _nodeLookup(node), vNode = _nodeLookup11.vNode;14560 -1 if (vNode.props.nodeType !== 1 || !node.hasAttr('title')) {14561 -1 return '';-1 13873 if (attr === 'href' && !_isCurrentPageLink(node)) { -1 13874 return null; 14562 13875 }14563 -1 if (!matches_default(vNode, alwaysTitleElements) && [ 'none', 'presentation' ].includes(get_role_default(vNode))) {14564 -1 return '';-1 13876 if (fragment.indexOf('#') !== -1) { -1 13877 fragment = decodeURIComponent(fragment.substr(fragment.indexOf('#') + 1)); 14565 13878 }14566 -1 return vNode.attr('title');-1 13879 var candidate = document.getElementById(fragment); -1 13880 if (candidate) { -1 13881 return candidate; -1 13882 } -1 13883 candidate = document.getElementsByName(fragment); -1 13884 if (candidate.length) { -1 13885 return candidate[0]; -1 13886 } -1 13887 return null; 14567 13888 }14568 -1 var title_text_default = titleText;14569 -1 function namedFromContents(vNode) {14570 -1 var _ref34 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, strict = _ref34.strict;14571 -1 vNode = vNode instanceof abstract_virtual_node_default ? vNode : get_node_from_tree_default(vNode);14572 -1 if (vNode.props.nodeType !== 1) {14573 -1 return false;-1 13889 var get_element_by_reference_default = getElementByReference; -1 13890 function _visuallySort(a2, b2) { -1 13891 _createGrid(); -1 13892 var length = Math.max(a2._stackingOrder.length, b2._stackingOrder.length); -1 13893 for (var i = 0; i < length; i++) { -1 13894 if (typeof b2._stackingOrder[i] === 'undefined') { -1 13895 return -1; -1 13896 } else if (typeof a2._stackingOrder[i] === 'undefined') { -1 13897 return 1; -1 13898 } -1 13899 if (b2._stackingOrder[i].stackLevel > a2._stackingOrder[i].stackLevel) { -1 13900 return 1; -1 13901 } -1 13902 if (b2._stackingOrder[i].stackLevel < a2._stackingOrder[i].stackLevel) { -1 13903 return -1; -1 13904 } -1 13905 if (b2._stackingOrder[i].treeOrder !== a2._stackingOrder[i].treeOrder) { -1 13906 return b2._stackingOrder[i].treeOrder - a2._stackingOrder[i].treeOrder; -1 13907 } 14574 13908 }14575 -1 var role = get_role_default(vNode);14576 -1 var roleDef = standards_default.ariaRoles[role];14577 -1 if (roleDef && roleDef.nameFromContent) {14578 -1 return true;-1 13909 var aNode = a2.actualNode; -1 13910 var bNode = b2.actualNode; -1 13911 if (aNode.getRootNode && aNode.getRootNode() !== bNode.getRootNode()) { -1 13912 var boundaries = []; -1 13913 while (aNode) { -1 13914 boundaries.push({ -1 13915 root: aNode.getRootNode(), -1 13916 node: aNode -1 13917 }); -1 13918 aNode = aNode.getRootNode().host; -1 13919 } -1 13920 while (bNode && !boundaries.find(function(boundary) { -1 13921 return boundary.root === bNode.getRootNode(); -1 13922 })) { -1 13923 bNode = bNode.getRootNode().host; -1 13924 } -1 13925 aNode = boundaries.find(function(boundary) { -1 13926 return boundary.root === bNode.getRootNode(); -1 13927 }).node; -1 13928 if (aNode === bNode) { -1 13929 return a2.actualNode.getRootNode() !== aNode.getRootNode() ? -1 : 1; -1 13930 } 14579 13931 }14580 -1 if (strict) {14581 -1 return false;-1 13932 var _window$Node = window.Node, DOCUMENT_POSITION_FOLLOWING = _window$Node.DOCUMENT_POSITION_FOLLOWING, DOCUMENT_POSITION_CONTAINS = _window$Node.DOCUMENT_POSITION_CONTAINS, DOCUMENT_POSITION_CONTAINED_BY = _window$Node.DOCUMENT_POSITION_CONTAINED_BY; -1 13933 var docPosition = aNode.compareDocumentPosition(bNode); -1 13934 var DOMOrder = docPosition & DOCUMENT_POSITION_FOLLOWING ? 1 : -1; -1 13935 var isDescendant = docPosition & DOCUMENT_POSITION_CONTAINS || docPosition & DOCUMENT_POSITION_CONTAINED_BY; -1 13936 var aPosition = getPositionOrder(a2); -1 13937 var bPosition = getPositionOrder(b2); -1 13938 if (aPosition === bPosition || isDescendant) { -1 13939 return DOMOrder; 14582 13940 }14583 -1 return !roleDef || [ 'presentation', 'none' ].includes(role);-1 13941 return bPosition - aPosition; 14584 13942 }14585 -1 var named_from_contents_default = namedFromContents;14586 -1 function getOwnedVirtual(virtualNode) {14587 -1 var actualNode = virtualNode.actualNode, children = virtualNode.children;14588 -1 if (!children) {14589 -1 throw new Error('getOwnedVirtual requires a virtual node');-1 13943 function getPositionOrder(vNode) { -1 13944 if (vNode.getComputedStylePropertyValue('display').indexOf('inline') !== -1) { -1 13945 return 2; 14590 13946 }14591 -1 if (virtualNode.hasAttr('aria-owns')) {14592 -1 var owns = idrefs_default(actualNode, 'aria-owns').filter(function(element) {14593 -1 return !!element;14594 -1 }).map(function(element) {14595 -1 return axe.utils.getNodeFromTree(element);14596 -1 });14597 -1 return [].concat(_toConsumableArray(children), _toConsumableArray(owns));-1 13947 if (isFloated(vNode)) { -1 13948 return 1; 14598 13949 }14599 -1 return _toConsumableArray(children);14600 -1 }14601 -1 var get_owned_virtual_default = getOwnedVirtual;14602 -1 var unsupported_default = {14603 -1 accessibleNameFromFieldValue: [ 'progressbar' ]14604 -1 };14605 -1 function _isVisibleToScreenReaders(vNode) {14606 -1 vNode = _nodeLookup(vNode).vNode;14607 -1 return isVisibleToScreenReadersVirtual(vNode);-1 13950 return 0; 14608 13951 }14609 -1 var isVisibleToScreenReadersVirtual = memoize_default(function isVisibleToScreenReadersMemoized(vNode, isAncestor) {14610 -1 if (ariaHidden(vNode) || _isInert(vNode, {14611 -1 skipAncestors: true,14612 -1 isAncestor: isAncestor14613 -1 })) {-1 13952 function isFloated(vNode) { -1 13953 if (!vNode) { 14614 13954 return false; 14615 13955 }14616 -1 if (vNode.actualNode && vNode.props.nodeName === 'area') {14617 -1 return !areaHidden(vNode, isVisibleToScreenReadersVirtual);14618 -1 }14619 -1 if (_isHiddenForEveryone(vNode, {14620 -1 skipAncestors: true,14621 -1 isAncestor: isAncestor14622 -1 })) {14623 -1 return false;-1 13956 if (vNode._isFloated !== void 0) { -1 13957 return vNode._isFloated; 14624 13958 }14625 -1 if (!vNode.parent) {-1 13959 var floatStyle = vNode.getComputedStylePropertyValue('float'); -1 13960 if (floatStyle !== 'none') { -1 13961 vNode._isFloated = true; 14626 13962 return true; 14627 13963 }14628 -1 return isVisibleToScreenReadersVirtual(vNode.parent, true);14629 -1 });14630 -1 function visibleVirtual(element, screenReader, noRecursing) {14631 -1 var _nodeLookup12 = _nodeLookup(element), vNode = _nodeLookup12.vNode;14632 -1 var visibleMethod = screenReader ? _isVisibleToScreenReaders : _isVisibleOnScreen;14633 -1 var visible2 = !element.actualNode || element.actualNode && visibleMethod(element);14634 -1 var result = vNode.children.map(function(child) {14635 -1 var _child$props = child.props, nodeType = _child$props.nodeType, nodeValue = _child$props.nodeValue;14636 -1 if (nodeType === 3) {14637 -1 if (nodeValue && visible2) {14638 -1 return nodeValue;14639 -1 }14640 -1 } else if (!noRecursing) {14641 -1 return visibleVirtual(child, screenReader);14642 -1 }14643 -1 }).join('');14644 -1 return sanitize_default(result);14645 -1 }14646 -1 var visible_virtual_default = visibleVirtual;14647 -1 var nonTextInputTypes = [ 'button', 'checkbox', 'color', 'file', 'hidden', 'image', 'password', 'radio', 'reset', 'submit' ];14648 -1 function isNativeTextbox(node) {14649 -1 node = node instanceof abstract_virtual_node_default ? node : get_node_from_tree_default(node);14650 -1 var nodeName2 = node.props.nodeName;14651 -1 return nodeName2 === 'textarea' || nodeName2 === 'input' && !nonTextInputTypes.includes((node.attr('type') || '').toLowerCase());14652 -1 }14653 -1 var is_native_textbox_default = isNativeTextbox;14654 -1 function isNativeSelect(node) {14655 -1 node = node instanceof abstract_virtual_node_default ? node : get_node_from_tree_default(node);14656 -1 var nodeName2 = node.props.nodeName;14657 -1 return nodeName2 === 'select';14658 -1 }14659 -1 var is_native_select_default = isNativeSelect;14660 -1 function isAriaTextbox(node) {14661 -1 var role = get_explicit_role_default(node);14662 -1 return role === 'textbox';14663 -1 }14664 -1 var is_aria_textbox_default = isAriaTextbox;14665 -1 function isAriaListbox(node) {14666 -1 var role = get_explicit_role_default(node);14667 -1 return role === 'listbox';14668 -1 }14669 -1 var is_aria_listbox_default = isAriaListbox;14670 -1 function isAriaCombobox(node) {14671 -1 var role = get_explicit_role_default(node);14672 -1 return role === 'combobox';14673 -1 }14674 -1 var is_aria_combobox_default = isAriaCombobox;14675 -1 var rangeRoles = [ 'progressbar', 'scrollbar', 'slider', 'spinbutton' ];14676 -1 function isAriaRange(node) {14677 -1 var role = get_explicit_role_default(node);14678 -1 return rangeRoles.includes(role);-1 13964 var floated = isFloated(vNode.parent); -1 13965 vNode._isFloated = floated; -1 13966 return floated; 14679 13967 }14680 -1 var is_aria_range_default = isAriaRange;14681 -1 var controlValueRoles = [ 'textbox', 'progressbar', 'scrollbar', 'slider', 'spinbutton', 'combobox', 'listbox' ];14682 -1 var _formControlValueMethods = {14683 -1 nativeTextboxValue: nativeTextboxValue,14684 -1 nativeSelectValue: nativeSelectValue,14685 -1 ariaTextboxValue: ariaTextboxValue,14686 -1 ariaListboxValue: ariaListboxValue,14687 -1 ariaComboboxValue: ariaComboboxValue,14688 -1 ariaRangeValue: ariaRangeValue14689 -1 };14690 -1 function formControlValue(virtualNode) {14691 -1 var context = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};14692 -1 var actualNode = virtualNode.actualNode;14693 -1 var unsupportedRoles = unsupported_default.accessibleNameFromFieldValue || [];14694 -1 var role = get_role_default(virtualNode);14695 -1 if (context.startNode === virtualNode || !controlValueRoles.includes(role) || unsupportedRoles.includes(role)) {14696 -1 return '';14697 -1 }14698 -1 var valueMethods = Object.keys(_formControlValueMethods).map(function(name) {14699 -1 return _formControlValueMethods[name];-1 13968 function getRectStack(grid, rect) { -1 13969 var recursed = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false; -1 13970 var center = _getRectCenter(rect); -1 13971 var gridCell = grid.getCellFromPoint(center) || []; -1 13972 var floorX = Math.floor(center.x); -1 13973 var floorY = Math.floor(center.y); -1 13974 var stack = gridCell.filter(function(gridCellNode) { -1 13975 return gridCellNode.clientRects.some(function(clientRect) { -1 13976 var rectX = clientRect.left; -1 13977 var rectY = clientRect.top; -1 13978 return floorX < Math.floor(rectX + clientRect.width) && floorX >= Math.floor(rectX) && floorY < Math.floor(rectY + clientRect.height) && floorY >= Math.floor(rectY); -1 13979 }); 14700 13980 });14701 -1 var valueString = valueMethods.reduce(function(accName, step) {14702 -1 return accName || step(virtualNode, context);14703 -1 }, '');14704 -1 if (context.debug) {14705 -1 log_default(valueString || '{empty-value}', actualNode, context);-1 13981 var gridContainer = grid.container; -1 13982 if (gridContainer) { -1 13983 stack = getRectStack(gridContainer._grid, gridContainer.boundingClientRect, true).concat(stack); 14706 13984 }14707 -1 return valueString;14708 -1 }14709 -1 function nativeTextboxValue(node) {14710 -1 var _nodeLookup13 = _nodeLookup(node), vNode = _nodeLookup13.vNode;14711 -1 if (is_native_textbox_default(vNode)) {14712 -1 return vNode.props.value || '';-1 13985 if (!recursed) { -1 13986 stack = stack.sort(_visuallySort).map(function(vNode) { -1 13987 return vNode.actualNode; -1 13988 }).concat(document.documentElement).filter(function(node, index, array) { -1 13989 return array.indexOf(node) === index; -1 13990 }); 14713 13991 }14714 -1 return '';-1 13992 return stack; 14715 13993 }14716 -1 function nativeSelectValue(node) {14717 -1 var _nodeLookup14 = _nodeLookup(node), vNode = _nodeLookup14.vNode;14718 -1 if (!is_native_select_default(vNode)) {14719 -1 return '';-1 13994 function getElementStack(node) { -1 13995 var grid = _getNodeGrid(node); -1 13996 if (!grid) { -1 13997 return []; 14720 13998 }14721 -1 var options = query_selector_all_default(vNode, 'option');14722 -1 var selectedOptions = options.filter(function(option) {14723 -1 return option.props.selected;-1 13999 var rect = get_node_from_tree_default(node).boundingClientRect; -1 14000 return getRectStack(grid, rect); -1 14001 } -1 14002 var get_element_stack_default = getElementStack; -1 14003 function getTabbableElements(virtualNode) { -1 14004 var nodeAndDescendents = query_selector_all_default(virtualNode, '*'); -1 14005 var tabbableElements = nodeAndDescendents.filter(function(vNode) { -1 14006 var isFocusable2 = vNode.isFocusable; -1 14007 var tabIndex = parse_tabindex_default(vNode.actualNode.getAttribute('tabindex')); -1 14008 return tabIndex !== null ? isFocusable2 && tabIndex >= 0 : isFocusable2; 14724 14009 });14725 -1 if (!selectedOptions.length) {14726 -1 selectedOptions.push(options[0]);14727 -1 }14728 -1 return selectedOptions.map(function(option) {14729 -1 return visible_virtual_default(option);14730 -1 }).join(' ') || '';-1 14010 return tabbableElements; 14731 14011 }14732 -1 function ariaTextboxValue(node) {14733 -1 var _nodeLookup15 = _nodeLookup(node), vNode = _nodeLookup15.vNode, domNode = _nodeLookup15.domNode;14734 -1 if (!is_aria_textbox_default(vNode)) {14735 -1 return '';-1 14012 var get_tabbable_elements_default = getTabbableElements; -1 14013 function isNativelyFocusable(el) { -1 14014 var _nodeLookup5 = _nodeLookup(el), vNode = _nodeLookup5.vNode; -1 14015 if (!vNode || focus_disabled_default(vNode)) { -1 14016 return false; 14736 14017 }14737 -1 if (!domNode || domNode && !_isHiddenForEveryone(domNode)) {14738 -1 return visible_virtual_default(vNode, true);14739 -1 } else {14740 -1 return domNode.textContent;-1 14018 switch (vNode.props.nodeName) { -1 14019 case 'a': -1 14020 case 'area': -1 14021 if (vNode.hasAttr('href')) { -1 14022 return true; -1 14023 } -1 14024 break; -1 14025 -1 14026 case 'input': -1 14027 return vNode.props.type !== 'hidden'; -1 14028 -1 14029 case 'textarea': -1 14030 case 'select': -1 14031 case 'summary': -1 14032 case 'button': -1 14033 return true; -1 14034 -1 14035 case 'details': -1 14036 return !query_selector_all_default(vNode, 'summary').length; 14741 14037 } -1 14038 return false; 14742 14039 }14743 -1 function ariaListboxValue(node, context) {14744 -1 var _nodeLookup16 = _nodeLookup(node), vNode = _nodeLookup16.vNode;14745 -1 if (!is_aria_listbox_default(vNode)) {14746 -1 return '';-1 14040 var is_natively_focusable_default = isNativelyFocusable; -1 14041 function _isFocusable(el) { -1 14042 var _nodeLookup6 = _nodeLookup(el), vNode = _nodeLookup6.vNode; -1 14043 if (vNode.props.nodeType !== 1) { -1 14044 return false; 14747 14045 }14748 -1 var selected = get_owned_virtual_default(vNode).filter(function(owned) {14749 -1 return get_role_default(owned) === 'option' && owned.attr('aria-selected') === 'true';14750 -1 });14751 -1 if (selected.length === 0) {14752 -1 return '';-1 14046 if (focus_disabled_default(vNode)) { -1 14047 return false; -1 14048 } else if (is_natively_focusable_default(vNode)) { -1 14049 return true; 14753 14050 }14754 -1 return _accessibleTextVirtual(selected[0], context);-1 14051 var tabindex = parse_tabindex_default(vNode.attr('tabindex')); -1 14052 return tabindex !== null; 14755 14053 }14756 -1 function ariaComboboxValue(node, context) {14757 -1 var _nodeLookup17 = _nodeLookup(node), vNode = _nodeLookup17.vNode;14758 -1 if (!is_aria_combobox_default(vNode)) {14759 -1 return '';-1 14054 function _isInTabOrder(el) { -1 14055 var _nodeLookup7 = _nodeLookup(el), vNode = _nodeLookup7.vNode; -1 14056 if (vNode.props.nodeType !== 1) { -1 14057 return false; 14760 14058 }14761 -1 var listbox = get_owned_virtual_default(vNode).filter(function(elm) {14762 -1 return get_role_default(elm) === 'listbox';14763 -1 })[0];14764 -1 return listbox ? ariaListboxValue(listbox, context) : '';14765 -1 }14766 -1 function ariaRangeValue(node) {14767 -1 var _nodeLookup18 = _nodeLookup(node), vNode = _nodeLookup18.vNode;14768 -1 if (!is_aria_range_default(vNode) || !vNode.hasAttr('aria-valuenow')) {14769 -1 return '';-1 14059 var tabindex = parse_tabindex_default(vNode.attr('tabindex')); -1 14060 if (tabindex <= -1) { -1 14061 return false; 14770 14062 }14771 -1 var valueNow = +vNode.attr('aria-valuenow');14772 -1 return !isNaN(valueNow) ? String(valueNow) : '0';-1 14063 return _isFocusable(vNode); 14773 14064 }14774 -1 var form_control_value_default = formControlValue;14775 -1 function subtreeText(virtualNode) {14776 -1 var context = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};14777 -1 var alreadyProcessed2 = _accessibleTextVirtual.alreadyProcessed;14778 -1 context.startNode = context.startNode || virtualNode;14779 -1 var _context = context, strict = _context.strict, inControlContext = _context.inControlContext, inLabelledByContext = _context.inLabelledByContext;14780 -1 var role = get_role_default(virtualNode);14781 -1 var _get_element_spec_def2 = get_element_spec_default(virtualNode, {14782 -1 noMatchAccessibleName: true14783 -1 }), contentTypes = _get_element_spec_def2.contentTypes;14784 -1 if (alreadyProcessed2(virtualNode, context) || virtualNode.props.nodeType !== 1 || contentTypes !== null && contentTypes !== void 0 && contentTypes.includes('embedded') || controlValueRoles.includes(role)) {14785 -1 return '';14786 -1 }14787 -1 if (!context.subtreeDescendant && !context.inLabelledByContext && !named_from_contents_default(virtualNode, {14788 -1 strict: strict14789 -1 })) {14790 -1 return '';14791 -1 }14792 -1 if (!strict) {14793 -1 var subtreeDescendant = !inControlContext && !inLabelledByContext;14794 -1 context = _extends({14795 -1 subtreeDescendant: subtreeDescendant14796 -1 }, context);-1 14065 var get_target_rects_default = memoize_default(getTargetRects); -1 14066 function getTargetRects(vNode) { -1 14067 var nodeRect = vNode.boundingClientRect; -1 14068 var overlappingVNodes = _findNearbyElms(vNode).filter(function(vNeighbor) { -1 14069 return _hasVisualOverlap(vNode, vNeighbor) && vNeighbor.getComputedStylePropertyValue('pointer-events') !== 'none' && !isDescendantNotInTabOrder(vNode, vNeighbor); -1 14070 }); -1 14071 if (!overlappingVNodes.length) { -1 14072 return [ nodeRect ]; 14797 14073 }14798 -1 return get_owned_virtual_default(virtualNode).reduce(function(contentText, child) {14799 -1 return appendAccessibleText(contentText, child, context);14800 -1 }, '');-1 14074 var obscuringRects = overlappingVNodes.map(function(_ref39) { -1 14075 var rect = _ref39.boundingClientRect; -1 14076 return rect; -1 14077 }); -1 14078 return _splitRects(nodeRect, obscuringRects); 14801 14079 }14802 -1 var phrasingElements = get_elements_by_content_type_default('phrasing').concat([ '#text' ]);14803 -1 function appendAccessibleText(contentText, virtualNode, context) {14804 -1 var nodeName2 = virtualNode.props.nodeName;14805 -1 var contentTextAdd = _accessibleTextVirtual(virtualNode, context);14806 -1 if (!contentTextAdd) {14807 -1 return contentText;14808 -1 }14809 -1 if (!phrasingElements.includes(nodeName2)) {14810 -1 if (contentTextAdd[0] !== ' ') {14811 -1 contentTextAdd += ' ';-1 14080 function isDescendantNotInTabOrder(vAncestor, vNode) { -1 14081 return _contains(vAncestor, vNode) && !_isInTabOrder(vNode); -1 14082 } -1 14083 var get_target_size_default = memoize_default(getTargetSize); -1 14084 function getTargetSize(vNode, minSize) { -1 14085 var rects = get_target_rects_default(vNode); -1 14086 return getLargestRect(rects, minSize); -1 14087 } -1 14088 function getLargestRect(rects, minSize) { -1 14089 return rects.reduce(function(rectA, rectB) { -1 14090 var rectAisMinimum = _rectHasMinimumSize(minSize, rectA); -1 14091 var rectBisMinimum = _rectHasMinimumSize(minSize, rectB); -1 14092 if (rectAisMinimum !== rectBisMinimum) { -1 14093 return rectAisMinimum ? rectA : rectB; 14812 14094 }14813 -1 if (contentText && contentText[contentText.length - 1] !== ' ') {14814 -1 contentTextAdd = ' ' + contentTextAdd;-1 14095 var areaA = rectA.width * rectA.height; -1 14096 var areaB = rectB.width * rectB.height; -1 14097 return areaA > areaB ? rectA : rectB; -1 14098 }); -1 14099 } -1 14100 var text_exports = {}; -1 14101 __export(text_exports, { -1 14102 accessibleText: function accessibleText() { -1 14103 return accessible_text_default; -1 14104 }, -1 14105 accessibleTextVirtual: function accessibleTextVirtual() { -1 14106 return _accessibleTextVirtual; -1 14107 }, -1 14108 autocomplete: function autocomplete() { -1 14109 return _autocomplete; -1 14110 }, -1 14111 formControlValue: function formControlValue() { -1 14112 return form_control_value_default; -1 14113 }, -1 14114 formControlValueMethods: function formControlValueMethods() { -1 14115 return _formControlValueMethods; -1 14116 }, -1 14117 hasUnicode: function hasUnicode() { -1 14118 return has_unicode_default; -1 14119 }, -1 14120 isHumanInterpretable: function isHumanInterpretable() { -1 14121 return is_human_interpretable_default; -1 14122 }, -1 14123 isIconLigature: function isIconLigature() { -1 14124 return _isIconLigature; -1 14125 }, -1 14126 isValidAutocomplete: function isValidAutocomplete() { -1 14127 return is_valid_autocomplete_default; -1 14128 }, -1 14129 label: function label() { -1 14130 return label_default; -1 14131 }, -1 14132 labelText: function labelText() { -1 14133 return label_text_default; -1 14134 }, -1 14135 labelVirtual: function labelVirtual() { -1 14136 return label_virtual_default2; -1 14137 }, -1 14138 nativeElementType: function nativeElementType() { -1 14139 return native_element_type_default; -1 14140 }, -1 14141 nativeTextAlternative: function nativeTextAlternative() { -1 14142 return _nativeTextAlternative; -1 14143 }, -1 14144 nativeTextMethods: function nativeTextMethods() { -1 14145 return native_text_methods_default; -1 14146 }, -1 14147 removeUnicode: function removeUnicode() { -1 14148 return remove_unicode_default; -1 14149 }, -1 14150 sanitize: function sanitize() { -1 14151 return sanitize_default; -1 14152 }, -1 14153 subtreeText: function subtreeText() { -1 14154 return subtree_text_default; -1 14155 }, -1 14156 titleText: function titleText() { -1 14157 return title_text_default; -1 14158 }, -1 14159 unsupported: function unsupported() { -1 14160 return unsupported_default; -1 14161 }, -1 14162 visible: function visible() { -1 14163 return visible_default; -1 14164 }, -1 14165 visibleTextNodes: function visibleTextNodes() { -1 14166 return visible_text_nodes_default; -1 14167 }, -1 14168 visibleVirtual: function visibleVirtual() { -1 14169 return visible_virtual_default; -1 14170 } -1 14171 }); -1 14172 function idrefs(node, attr) { -1 14173 node = node.actualNode || node; -1 14174 try { -1 14175 var doc = get_root_node_default2(node); -1 14176 var result = []; -1 14177 var attrValue = node.getAttribute(attr); -1 14178 if (attrValue) { -1 14179 attrValue = token_list_default(attrValue); -1 14180 for (var index = 0; index < attrValue.length; index++) { -1 14181 result.push(doc.getElementById(attrValue[index])); -1 14182 } 14815 14183 } -1 14184 return result; -1 14185 } catch (_unused) { -1 14186 throw new TypeError('Cannot resolve id references for non-DOM nodes'); 14816 14187 }14817 -1 return contentText + contentTextAdd;14818 14188 }14819 -1 var subtree_text_default = subtreeText;14820 -1 function labelText(virtualNode) {-1 14189 var idrefs_default = idrefs; -1 14190 function accessibleText(element, context) { -1 14191 var virtualNode = get_node_from_tree_default(element); -1 14192 return _accessibleTextVirtual(virtualNode, context); -1 14193 } -1 14194 var accessible_text_default = accessibleText; -1 14195 function arialabelledbyText(element) { 14821 14196 var context = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};14822 -1 var alreadyProcessed2 = _accessibleTextVirtual.alreadyProcessed;14823 -1 if (context.inControlContext || context.inLabelledByContext || alreadyProcessed2(virtualNode, context)) {-1 14197 var _nodeLookup8 = _nodeLookup(element), vNode = _nodeLookup8.vNode; -1 14198 if ((vNode === null || vNode === void 0 ? void 0 : vNode.props.nodeType) !== 1) { 14824 14199 return ''; 14825 14200 }14826 -1 if (!context.startNode) {14827 -1 context.startNode = virtualNode;14828 -1 }14829 -1 var labelContext = _extends({14830 -1 inControlContext: true14831 -1 }, context);14832 -1 var explicitLabels = getExplicitLabels(virtualNode);14833 -1 var implicitLabel = closest_default(virtualNode, 'label');14834 -1 var labels;14835 -1 if (implicitLabel) {14836 -1 labels = [].concat(_toConsumableArray(explicitLabels), [ implicitLabel.actualNode ]);14837 -1 labels.sort(node_sorter_default);14838 -1 } else {14839 -1 labels = explicitLabels;-1 14201 if (vNode.props.nodeType !== 1 || context.inLabelledByContext || context.inControlContext || !vNode.attr('aria-labelledby')) { -1 14202 return ''; 14840 14203 }14841 -1 return labels.map(function(label3) {14842 -1 return accessible_text_default(label3, labelContext);14843 -1 }).filter(function(text) {14844 -1 return text !== '';14845 -1 }).join(' ');-1 14204 var refs = idrefs_default(vNode, 'aria-labelledby').filter(function(elm) { -1 14205 return elm; -1 14206 }); -1 14207 return refs.reduce(function(accessibleName, elm) { -1 14208 var accessibleNameAdd = accessible_text_default(elm, _extends({ -1 14209 inLabelledByContext: true, -1 14210 startNode: context.startNode || vNode -1 14211 }, context)); -1 14212 if (!accessibleName) { -1 14213 return accessibleNameAdd; -1 14214 } else { -1 14215 return ''.concat(accessibleName, ' ').concat(accessibleNameAdd); -1 14216 } -1 14217 }, ''); 14846 14218 }14847 -1 function getExplicitLabels(virtualNode) {14848 -1 if (!virtualNode.attr('id')) {14849 -1 return [];-1 14219 var arialabelledby_text_default = arialabelledbyText; -1 14220 function _arialabelText(element) { -1 14221 var _nodeLookup9 = _nodeLookup(element), vNode = _nodeLookup9.vNode; -1 14222 if ((vNode === null || vNode === void 0 ? void 0 : vNode.props.nodeType) !== 1) { -1 14223 return ''; 14850 14224 }14851 -1 if (!virtualNode.actualNode) {14852 -1 throw new TypeError('Cannot resolve explicit label reference for non-DOM nodes');-1 14225 return vNode.attr('aria-label') || ''; -1 14226 } -1 14227 var ariaAttrs = { -1 14228 'aria-activedescendant': { -1 14229 type: 'idref', -1 14230 allowEmpty: true -1 14231 }, -1 14232 'aria-atomic': { -1 14233 type: 'boolean', -1 14234 global: true -1 14235 }, -1 14236 'aria-autocomplete': { -1 14237 type: 'nmtoken', -1 14238 values: [ 'inline', 'list', 'both', 'none' ] -1 14239 }, -1 14240 'aria-braillelabel': { -1 14241 type: 'string', -1 14242 allowEmpty: true, -1 14243 global: true -1 14244 }, -1 14245 'aria-brailleroledescription': { -1 14246 type: 'string', -1 14247 allowEmpty: true, -1 14248 global: true -1 14249 }, -1 14250 'aria-busy': { -1 14251 type: 'boolean', -1 14252 global: true -1 14253 }, -1 14254 'aria-checked': { -1 14255 type: 'nmtoken', -1 14256 values: [ 'false', 'mixed', 'true', 'undefined' ] -1 14257 }, -1 14258 'aria-colcount': { -1 14259 type: 'int', -1 14260 minValue: -1 -1 14261 }, -1 14262 'aria-colindex': { -1 14263 type: 'int', -1 14264 minValue: 1 -1 14265 }, -1 14266 'aria-colspan': { -1 14267 type: 'int', -1 14268 minValue: 1 -1 14269 }, -1 14270 'aria-controls': { -1 14271 type: 'idrefs', -1 14272 allowEmpty: true, -1 14273 global: true -1 14274 }, -1 14275 'aria-current': { -1 14276 type: 'nmtoken', -1 14277 allowEmpty: true, -1 14278 values: [ 'page', 'step', 'location', 'date', 'time', 'true', 'false' ], -1 14279 global: true -1 14280 }, -1 14281 'aria-describedby': { -1 14282 type: 'idrefs', -1 14283 allowEmpty: true, -1 14284 global: true -1 14285 }, -1 14286 'aria-description': { -1 14287 type: 'string', -1 14288 allowEmpty: true, -1 14289 global: true -1 14290 }, -1 14291 'aria-details': { -1 14292 type: 'idref', -1 14293 allowEmpty: true, -1 14294 global: true -1 14295 }, -1 14296 'aria-disabled': { -1 14297 type: 'boolean', -1 14298 global: true -1 14299 }, -1 14300 'aria-dropeffect': { -1 14301 type: 'nmtokens', -1 14302 values: [ 'copy', 'execute', 'link', 'move', 'none', 'popup' ], -1 14303 global: true -1 14304 }, -1 14305 'aria-errormessage': { -1 14306 type: 'idref', -1 14307 allowEmpty: true, -1 14308 global: true -1 14309 }, -1 14310 'aria-expanded': { -1 14311 type: 'nmtoken', -1 14312 values: [ 'true', 'false', 'undefined' ] -1 14313 }, -1 14314 'aria-flowto': { -1 14315 type: 'idrefs', -1 14316 allowEmpty: true, -1 14317 global: true -1 14318 }, -1 14319 'aria-grabbed': { -1 14320 type: 'nmtoken', -1 14321 values: [ 'true', 'false', 'undefined' ], -1 14322 global: true -1 14323 }, -1 14324 'aria-haspopup': { -1 14325 type: 'nmtoken', -1 14326 allowEmpty: true, -1 14327 values: [ 'true', 'false', 'menu', 'listbox', 'tree', 'grid', 'dialog' ], -1 14328 global: true -1 14329 }, -1 14330 'aria-hidden': { -1 14331 type: 'nmtoken', -1 14332 values: [ 'true', 'false', 'undefined' ], -1 14333 global: true -1 14334 }, -1 14335 'aria-invalid': { -1 14336 type: 'nmtoken', -1 14337 values: [ 'grammar', 'false', 'spelling', 'true' ], -1 14338 global: true -1 14339 }, -1 14340 'aria-keyshortcuts': { -1 14341 type: 'string', -1 14342 allowEmpty: true, -1 14343 global: true -1 14344 }, -1 14345 'aria-label': { -1 14346 type: 'string', -1 14347 allowEmpty: true, -1 14348 global: true -1 14349 }, -1 14350 'aria-labelledby': { -1 14351 type: 'idrefs', -1 14352 allowEmpty: true, -1 14353 global: true -1 14354 }, -1 14355 'aria-level': { -1 14356 type: 'int', -1 14357 minValue: 1 -1 14358 }, -1 14359 'aria-live': { -1 14360 type: 'nmtoken', -1 14361 values: [ 'assertive', 'off', 'polite' ], -1 14362 global: true -1 14363 }, -1 14364 'aria-modal': { -1 14365 type: 'boolean' -1 14366 }, -1 14367 'aria-multiline': { -1 14368 type: 'boolean' -1 14369 }, -1 14370 'aria-multiselectable': { -1 14371 type: 'boolean' -1 14372 }, -1 14373 'aria-orientation': { -1 14374 type: 'nmtoken', -1 14375 values: [ 'horizontal', 'undefined', 'vertical' ] -1 14376 }, -1 14377 'aria-owns': { -1 14378 type: 'idrefs', -1 14379 allowEmpty: true, -1 14380 global: true -1 14381 }, -1 14382 'aria-placeholder': { -1 14383 type: 'string', -1 14384 allowEmpty: true -1 14385 }, -1 14386 'aria-posinset': { -1 14387 type: 'int', -1 14388 minValue: 1 -1 14389 }, -1 14390 'aria-pressed': { -1 14391 type: 'nmtoken', -1 14392 values: [ 'false', 'mixed', 'true', 'undefined' ] -1 14393 }, -1 14394 'aria-readonly': { -1 14395 type: 'boolean' -1 14396 }, -1 14397 'aria-relevant': { -1 14398 type: 'nmtokens', -1 14399 values: [ 'additions', 'all', 'removals', 'text' ], -1 14400 global: true -1 14401 }, -1 14402 'aria-required': { -1 14403 type: 'boolean' -1 14404 }, -1 14405 'aria-roledescription': { -1 14406 type: 'string', -1 14407 allowEmpty: true, -1 14408 global: true -1 14409 }, -1 14410 'aria-rowcount': { -1 14411 type: 'int', -1 14412 minValue: -1 -1 14413 }, -1 14414 'aria-rowindex': { -1 14415 type: 'int', -1 14416 minValue: 1 -1 14417 }, -1 14418 'aria-rowspan': { -1 14419 type: 'int', -1 14420 minValue: 0 -1 14421 }, -1 14422 'aria-selected': { -1 14423 type: 'nmtoken', -1 14424 values: [ 'false', 'true', 'undefined' ] -1 14425 }, -1 14426 'aria-setsize': { -1 14427 type: 'int', -1 14428 minValue: -1 -1 14429 }, -1 14430 'aria-sort': { -1 14431 type: 'nmtoken', -1 14432 values: [ 'ascending', 'descending', 'none', 'other' ] -1 14433 }, -1 14434 'aria-valuemax': { -1 14435 type: 'decimal' -1 14436 }, -1 14437 'aria-valuemin': { -1 14438 type: 'decimal' -1 14439 }, -1 14440 'aria-valuenow': { -1 14441 type: 'decimal' -1 14442 }, -1 14443 'aria-valuetext': { -1 14444 type: 'string', -1 14445 allowEmpty: true 14853 14446 }14854 -1 return find_elms_in_context_default({14855 -1 elm: 'label',14856 -1 attr: 'for',14857 -1 value: virtualNode.attr('id'),14858 -1 context: virtualNode.actualNode14859 -1 });14860 -1 }14861 -1 var label_text_default = labelText;14862 -1 var defaultButtonValues = {14863 -1 submit: 'Submit',14864 -1 image: 'Submit',14865 -1 reset: 'Reset',14866 -1 button: ''14867 14447 };14868 -1 var nativeTextMethods = {14869 -1 valueText: function valueText(vNode) {14870 -1 return vNode.props.value || '';-1 14448 var aria_attrs_default = ariaAttrs; -1 14449 var ariaRoles = { -1 14450 alert: { -1 14451 type: 'structure', -1 14452 allowedAttrs: [ 'aria-expanded' ], -1 14453 superclassRole: [ 'section' ] -1 14454 }, -1 14455 alertdialog: { -1 14456 type: 'window', -1 14457 allowedAttrs: [ 'aria-expanded', 'aria-modal' ], -1 14458 superclassRole: [ 'alert', 'dialog' ], -1 14459 accessibleNameRequired: true -1 14460 }, -1 14461 application: { -1 14462 type: 'landmark', -1 14463 allowedAttrs: [ 'aria-activedescendant', 'aria-expanded' ], -1 14464 superclassRole: [ 'structure' ], -1 14465 accessibleNameRequired: true -1 14466 }, -1 14467 article: { -1 14468 type: 'structure', -1 14469 allowedAttrs: [ 'aria-posinset', 'aria-setsize', 'aria-expanded' ], -1 14470 superclassRole: [ 'document' ] -1 14471 }, -1 14472 banner: { -1 14473 type: 'landmark', -1 14474 allowedAttrs: [ 'aria-expanded' ], -1 14475 superclassRole: [ 'landmark' ] -1 14476 }, -1 14477 blockquote: { -1 14478 type: 'structure', -1 14479 superclassRole: [ 'section' ] -1 14480 }, -1 14481 button: { -1 14482 type: 'widget', -1 14483 allowedAttrs: [ 'aria-expanded', 'aria-pressed' ], -1 14484 superclassRole: [ 'command' ], -1 14485 accessibleNameRequired: true, -1 14486 nameFromContent: true, -1 14487 childrenPresentational: true -1 14488 }, -1 14489 caption: { -1 14490 type: 'structure', -1 14491 requiredContext: [ 'figure', 'table', 'grid', 'treegrid' ], -1 14492 superclassRole: [ 'section' ], -1 14493 prohibitedAttrs: [ 'aria-label', 'aria-labelledby' ] -1 14494 }, -1 14495 cell: { -1 14496 type: 'structure', -1 14497 requiredContext: [ 'row' ], -1 14498 allowedAttrs: [ 'aria-colindex', 'aria-colspan', 'aria-rowindex', 'aria-rowspan', 'aria-expanded' ], -1 14499 superclassRole: [ 'section' ], -1 14500 nameFromContent: true -1 14501 }, -1 14502 checkbox: { -1 14503 type: 'widget', -1 14504 requiredAttrs: [ 'aria-checked' ], -1 14505 allowedAttrs: [ 'aria-readonly', 'aria-expanded', 'aria-required' ], -1 14506 superclassRole: [ 'input' ], -1 14507 accessibleNameRequired: true, -1 14508 nameFromContent: true, -1 14509 childrenPresentational: true -1 14510 }, -1 14511 code: { -1 14512 type: 'structure', -1 14513 superclassRole: [ 'section' ], -1 14514 prohibitedAttrs: [ 'aria-label', 'aria-labelledby' ] -1 14515 }, -1 14516 columnheader: { -1 14517 type: 'structure', -1 14518 requiredContext: [ 'row' ], -1 14519 allowedAttrs: [ 'aria-sort', 'aria-colindex', 'aria-colspan', 'aria-expanded', 'aria-readonly', 'aria-required', 'aria-rowindex', 'aria-rowspan', 'aria-selected' ], -1 14520 superclassRole: [ 'cell', 'gridcell', 'sectionhead' ], -1 14521 accessibleNameRequired: false, -1 14522 nameFromContent: true -1 14523 }, -1 14524 combobox: { -1 14525 type: 'widget', -1 14526 requiredAttrs: [ 'aria-expanded', 'aria-controls' ], -1 14527 allowedAttrs: [ 'aria-owns', 'aria-autocomplete', 'aria-readonly', 'aria-required', 'aria-activedescendant', 'aria-orientation' ], -1 14528 superclassRole: [ 'select' ], -1 14529 accessibleNameRequired: true -1 14530 }, -1 14531 command: { -1 14532 type: 'abstract', -1 14533 superclassRole: [ 'widget' ] -1 14534 }, -1 14535 complementary: { -1 14536 type: 'landmark', -1 14537 allowedAttrs: [ 'aria-expanded' ], -1 14538 superclassRole: [ 'landmark' ] -1 14539 }, -1 14540 composite: { -1 14541 type: 'abstract', -1 14542 superclassRole: [ 'widget' ] -1 14543 }, -1 14544 contentinfo: { -1 14545 type: 'landmark', -1 14546 allowedAttrs: [ 'aria-expanded' ], -1 14547 superclassRole: [ 'landmark' ] -1 14548 }, -1 14549 comment: { -1 14550 type: 'structure', -1 14551 allowedAttrs: [ 'aria-level', 'aria-posinset', 'aria-setsize' ], -1 14552 superclassRole: [ 'article' ] -1 14553 }, -1 14554 definition: { -1 14555 type: 'structure', -1 14556 allowedAttrs: [ 'aria-expanded' ], -1 14557 superclassRole: [ 'section' ] -1 14558 }, -1 14559 deletion: { -1 14560 type: 'structure', -1 14561 superclassRole: [ 'section' ], -1 14562 prohibitedAttrs: [ 'aria-label', 'aria-labelledby' ] -1 14563 }, -1 14564 dialog: { -1 14565 type: 'window', -1 14566 allowedAttrs: [ 'aria-expanded', 'aria-modal' ], -1 14567 superclassRole: [ 'window' ], -1 14568 accessibleNameRequired: true -1 14569 }, -1 14570 directory: { -1 14571 type: 'structure', -1 14572 deprecated: true, -1 14573 allowedAttrs: [ 'aria-expanded' ], -1 14574 superclassRole: [ 'list' ], -1 14575 nameFromContent: true -1 14576 }, -1 14577 document: { -1 14578 type: 'structure', -1 14579 allowedAttrs: [ 'aria-expanded' ], -1 14580 superclassRole: [ 'structure' ] -1 14581 }, -1 14582 emphasis: { -1 14583 type: 'structure', -1 14584 superclassRole: [ 'section' ], -1 14585 prohibitedAttrs: [ 'aria-label', 'aria-labelledby' ] -1 14586 }, -1 14587 feed: { -1 14588 type: 'structure', -1 14589 requiredOwned: [ 'article' ], -1 14590 allowedAttrs: [ 'aria-expanded' ], -1 14591 superclassRole: [ 'list' ] -1 14592 }, -1 14593 figure: { -1 14594 type: 'structure', -1 14595 allowedAttrs: [ 'aria-expanded' ], -1 14596 superclassRole: [ 'section' ], -1 14597 nameFromContent: true -1 14598 }, -1 14599 form: { -1 14600 type: 'landmark', -1 14601 allowedAttrs: [ 'aria-expanded' ], -1 14602 superclassRole: [ 'landmark' ] -1 14603 }, -1 14604 grid: { -1 14605 type: 'composite', -1 14606 requiredOwned: [ 'rowgroup', 'row' ], -1 14607 allowedAttrs: [ 'aria-level', 'aria-multiselectable', 'aria-readonly', 'aria-activedescendant', 'aria-colcount', 'aria-expanded', 'aria-rowcount' ], -1 14608 superclassRole: [ 'composite', 'table' ], -1 14609 accessibleNameRequired: false -1 14610 }, -1 14611 gridcell: { -1 14612 type: 'widget', -1 14613 requiredContext: [ 'row' ], -1 14614 allowedAttrs: [ 'aria-readonly', 'aria-required', 'aria-selected', 'aria-colindex', 'aria-colspan', 'aria-expanded', 'aria-rowindex', 'aria-rowspan' ], -1 14615 superclassRole: [ 'cell', 'widget' ], -1 14616 nameFromContent: true -1 14617 }, -1 14618 group: { -1 14619 type: 'structure', -1 14620 allowedAttrs: [ 'aria-activedescendant', 'aria-expanded' ], -1 14621 superclassRole: [ 'section' ] -1 14622 }, -1 14623 heading: { -1 14624 type: 'structure', -1 14625 requiredAttrs: [ 'aria-level' ], -1 14626 allowedAttrs: [ 'aria-expanded' ], -1 14627 superclassRole: [ 'sectionhead' ], -1 14628 accessibleNameRequired: false, -1 14629 nameFromContent: true -1 14630 }, -1 14631 img: { -1 14632 type: 'structure', -1 14633 allowedAttrs: [ 'aria-expanded' ], -1 14634 superclassRole: [ 'section' ], -1 14635 accessibleNameRequired: true, -1 14636 childrenPresentational: true -1 14637 }, -1 14638 input: { -1 14639 type: 'abstract', -1 14640 superclassRole: [ 'widget' ] -1 14641 }, -1 14642 insertion: { -1 14643 type: 'structure', -1 14644 superclassRole: [ 'section' ], -1 14645 prohibitedAttrs: [ 'aria-label', 'aria-labelledby' ] -1 14646 }, -1 14647 landmark: { -1 14648 type: 'abstract', -1 14649 superclassRole: [ 'section' ] -1 14650 }, -1 14651 link: { -1 14652 type: 'widget', -1 14653 allowedAttrs: [ 'aria-expanded' ], -1 14654 superclassRole: [ 'command' ], -1 14655 accessibleNameRequired: true, -1 14656 nameFromContent: true -1 14657 }, -1 14658 list: { -1 14659 type: 'structure', -1 14660 requiredOwned: [ 'listitem' ], -1 14661 allowedAttrs: [ 'aria-expanded' ], -1 14662 superclassRole: [ 'section' ] -1 14663 }, -1 14664 listbox: { -1 14665 type: 'widget', -1 14666 requiredOwned: [ 'group', 'option' ], -1 14667 allowedAttrs: [ 'aria-multiselectable', 'aria-readonly', 'aria-required', 'aria-activedescendant', 'aria-expanded', 'aria-orientation' ], -1 14668 superclassRole: [ 'select' ], -1 14669 accessibleNameRequired: true -1 14670 }, -1 14671 listitem: { -1 14672 type: 'structure', -1 14673 requiredContext: [ 'list' ], -1 14674 allowedAttrs: [ 'aria-level', 'aria-posinset', 'aria-setsize', 'aria-expanded' ], -1 14675 superclassRole: [ 'section' ], -1 14676 nameFromContent: true -1 14677 }, -1 14678 log: { -1 14679 type: 'structure', -1 14680 allowedAttrs: [ 'aria-expanded' ], -1 14681 superclassRole: [ 'section' ] -1 14682 }, -1 14683 main: { -1 14684 type: 'landmark', -1 14685 allowedAttrs: [ 'aria-expanded' ], -1 14686 superclassRole: [ 'landmark' ] -1 14687 }, -1 14688 marquee: { -1 14689 type: 'structure', -1 14690 allowedAttrs: [ 'aria-expanded' ], -1 14691 superclassRole: [ 'section' ] -1 14692 }, -1 14693 math: { -1 14694 type: 'structure', -1 14695 allowedAttrs: [ 'aria-expanded' ], -1 14696 superclassRole: [ 'section' ], -1 14697 childrenPresentational: true -1 14698 }, -1 14699 menu: { -1 14700 type: 'composite', -1 14701 requiredOwned: [ 'group', 'menuitemradio', 'menuitem', 'menuitemcheckbox', 'menu', 'separator' ], -1 14702 allowedAttrs: [ 'aria-activedescendant', 'aria-expanded', 'aria-orientation' ], -1 14703 superclassRole: [ 'select' ] -1 14704 }, -1 14705 menubar: { -1 14706 type: 'composite', -1 14707 requiredOwned: [ 'group', 'menuitemradio', 'menuitem', 'menuitemcheckbox', 'menu', 'separator' ], -1 14708 allowedAttrs: [ 'aria-activedescendant', 'aria-expanded', 'aria-orientation' ], -1 14709 superclassRole: [ 'menu' ] -1 14710 }, -1 14711 menuitem: { -1 14712 type: 'widget', -1 14713 requiredContext: [ 'menu', 'menubar', 'group' ], -1 14714 allowedAttrs: [ 'aria-posinset', 'aria-setsize', 'aria-expanded' ], -1 14715 superclassRole: [ 'command' ], -1 14716 accessibleNameRequired: true, -1 14717 nameFromContent: true -1 14718 }, -1 14719 menuitemcheckbox: { -1 14720 type: 'widget', -1 14721 requiredContext: [ 'menu', 'menubar', 'group' ], -1 14722 requiredAttrs: [ 'aria-checked' ], -1 14723 allowedAttrs: [ 'aria-expanded', 'aria-posinset', 'aria-readonly', 'aria-setsize' ], -1 14724 superclassRole: [ 'checkbox', 'menuitem' ], -1 14725 accessibleNameRequired: true, -1 14726 nameFromContent: true, -1 14727 childrenPresentational: true -1 14728 }, -1 14729 menuitemradio: { -1 14730 type: 'widget', -1 14731 requiredContext: [ 'menu', 'menubar', 'group' ], -1 14732 requiredAttrs: [ 'aria-checked' ], -1 14733 allowedAttrs: [ 'aria-expanded', 'aria-posinset', 'aria-readonly', 'aria-setsize' ], -1 14734 superclassRole: [ 'menuitemcheckbox', 'radio' ], -1 14735 accessibleNameRequired: true, -1 14736 nameFromContent: true, -1 14737 childrenPresentational: true -1 14738 }, -1 14739 meter: { -1 14740 type: 'structure', -1 14741 requiredAttrs: [ 'aria-valuenow' ], -1 14742 allowedAttrs: [ 'aria-valuemax', 'aria-valuemin', 'aria-valuetext' ], -1 14743 superclassRole: [ 'range' ], -1 14744 accessibleNameRequired: true, -1 14745 childrenPresentational: true -1 14746 }, -1 14747 mark: { -1 14748 type: 'structure', -1 14749 superclassRole: [ 'section' ], -1 14750 prohibitedAttrs: [ 'aria-label', 'aria-labelledby' ] -1 14751 }, -1 14752 navigation: { -1 14753 type: 'landmark', -1 14754 allowedAttrs: [ 'aria-expanded' ], -1 14755 superclassRole: [ 'landmark' ] -1 14756 }, -1 14757 none: { -1 14758 type: 'structure', -1 14759 superclassRole: [ 'structure' ], -1 14760 prohibitedAttrs: [ 'aria-label', 'aria-labelledby' ] -1 14761 }, -1 14762 note: { -1 14763 type: 'structure', -1 14764 allowedAttrs: [ 'aria-expanded' ], -1 14765 superclassRole: [ 'section' ] -1 14766 }, -1 14767 option: { -1 14768 type: 'widget', -1 14769 requiredContext: [ 'group', 'listbox' ], -1 14770 allowedAttrs: [ 'aria-selected', 'aria-checked', 'aria-posinset', 'aria-setsize' ], -1 14771 superclassRole: [ 'input' ], -1 14772 accessibleNameRequired: true, -1 14773 nameFromContent: true, -1 14774 childrenPresentational: true -1 14775 }, -1 14776 paragraph: { -1 14777 type: 'structure', -1 14778 superclassRole: [ 'section' ], -1 14779 prohibitedAttrs: [ 'aria-label', 'aria-labelledby' ] -1 14780 }, -1 14781 presentation: { -1 14782 type: 'structure', -1 14783 superclassRole: [ 'structure' ], -1 14784 prohibitedAttrs: [ 'aria-label', 'aria-labelledby' ] -1 14785 }, -1 14786 progressbar: { -1 14787 type: 'widget', -1 14788 allowedAttrs: [ 'aria-expanded', 'aria-valuemax', 'aria-valuemin', 'aria-valuenow', 'aria-valuetext' ], -1 14789 superclassRole: [ 'range' ], -1 14790 accessibleNameRequired: true, -1 14791 childrenPresentational: true -1 14792 }, -1 14793 radio: { -1 14794 type: 'widget', -1 14795 requiredAttrs: [ 'aria-checked' ], -1 14796 allowedAttrs: [ 'aria-posinset', 'aria-setsize', 'aria-required' ], -1 14797 superclassRole: [ 'input' ], -1 14798 accessibleNameRequired: true, -1 14799 nameFromContent: true, -1 14800 childrenPresentational: true -1 14801 }, -1 14802 radiogroup: { -1 14803 type: 'composite', -1 14804 allowedAttrs: [ 'aria-readonly', 'aria-required', 'aria-activedescendant', 'aria-expanded', 'aria-orientation' ], -1 14805 superclassRole: [ 'select' ], -1 14806 accessibleNameRequired: false -1 14807 }, -1 14808 range: { -1 14809 type: 'abstract', -1 14810 superclassRole: [ 'widget' ] -1 14811 }, -1 14812 region: { -1 14813 type: 'landmark', -1 14814 allowedAttrs: [ 'aria-expanded' ], -1 14815 superclassRole: [ 'landmark' ], -1 14816 accessibleNameRequired: false -1 14817 }, -1 14818 roletype: { -1 14819 type: 'abstract', -1 14820 superclassRole: [] -1 14821 }, -1 14822 row: { -1 14823 type: 'structure', -1 14824 requiredContext: [ 'grid', 'rowgroup', 'table', 'treegrid' ], -1 14825 requiredOwned: [ 'cell', 'columnheader', 'gridcell', 'rowheader' ], -1 14826 allowedAttrs: [ 'aria-colindex', 'aria-level', 'aria-rowindex', 'aria-selected', 'aria-activedescendant', 'aria-expanded', 'aria-posinset', 'aria-setsize' ], -1 14827 superclassRole: [ 'group', 'widget' ], -1 14828 nameFromContent: true -1 14829 }, -1 14830 rowgroup: { -1 14831 type: 'structure', -1 14832 requiredContext: [ 'grid', 'table', 'treegrid' ], -1 14833 requiredOwned: [ 'row' ], -1 14834 superclassRole: [ 'structure' ], -1 14835 nameFromContent: true -1 14836 }, -1 14837 rowheader: { -1 14838 type: 'structure', -1 14839 requiredContext: [ 'row' ], -1 14840 allowedAttrs: [ 'aria-sort', 'aria-colindex', 'aria-colspan', 'aria-expanded', 'aria-readonly', 'aria-required', 'aria-rowindex', 'aria-rowspan', 'aria-selected' ], -1 14841 superclassRole: [ 'cell', 'gridcell', 'sectionhead' ], -1 14842 accessibleNameRequired: false, -1 14843 nameFromContent: true -1 14844 }, -1 14845 scrollbar: { -1 14846 type: 'widget', -1 14847 requiredAttrs: [ 'aria-valuenow' ], -1 14848 allowedAttrs: [ 'aria-controls', 'aria-orientation', 'aria-valuemax', 'aria-valuemin', 'aria-valuetext' ], -1 14849 superclassRole: [ 'range' ], -1 14850 childrenPresentational: true -1 14851 }, -1 14852 search: { -1 14853 type: 'landmark', -1 14854 allowedAttrs: [ 'aria-expanded' ], -1 14855 superclassRole: [ 'landmark' ] -1 14856 }, -1 14857 searchbox: { -1 14858 type: 'widget', -1 14859 allowedAttrs: [ 'aria-activedescendant', 'aria-autocomplete', 'aria-multiline', 'aria-placeholder', 'aria-readonly', 'aria-required' ], -1 14860 superclassRole: [ 'textbox' ], -1 14861 accessibleNameRequired: true -1 14862 }, -1 14863 section: { -1 14864 type: 'abstract', -1 14865 superclassRole: [ 'structure' ], -1 14866 nameFromContent: true -1 14867 }, -1 14868 sectionhead: { -1 14869 type: 'abstract', -1 14870 superclassRole: [ 'structure' ], -1 14871 nameFromContent: true -1 14872 }, -1 14873 select: { -1 14874 type: 'abstract', -1 14875 superclassRole: [ 'composite', 'group' ] -1 14876 }, -1 14877 separator: { -1 14878 type: 'structure', -1 14879 requiredAttrs: [ 'aria-valuenow' ], -1 14880 allowedAttrs: [ 'aria-valuemax', 'aria-valuemin', 'aria-orientation', 'aria-valuetext' ], -1 14881 superclassRole: [ 'structure', 'widget' ], -1 14882 childrenPresentational: true -1 14883 }, -1 14884 slider: { -1 14885 type: 'widget', -1 14886 requiredAttrs: [ 'aria-valuenow' ], -1 14887 allowedAttrs: [ 'aria-valuemax', 'aria-valuemin', 'aria-orientation', 'aria-readonly', 'aria-required', 'aria-valuetext' ], -1 14888 superclassRole: [ 'input', 'range' ], -1 14889 accessibleNameRequired: true, -1 14890 childrenPresentational: true -1 14891 }, -1 14892 spinbutton: { -1 14893 type: 'widget', -1 14894 allowedAttrs: [ 'aria-valuemax', 'aria-valuemin', 'aria-readonly', 'aria-required', 'aria-activedescendant', 'aria-valuetext', 'aria-valuenow' ], -1 14895 superclassRole: [ 'composite', 'input', 'range' ], -1 14896 accessibleNameRequired: true -1 14897 }, -1 14898 status: { -1 14899 type: 'structure', -1 14900 allowedAttrs: [ 'aria-expanded' ], -1 14901 superclassRole: [ 'section' ] -1 14902 }, -1 14903 strong: { -1 14904 type: 'structure', -1 14905 superclassRole: [ 'section' ], -1 14906 prohibitedAttrs: [ 'aria-label', 'aria-labelledby' ] -1 14907 }, -1 14908 structure: { -1 14909 type: 'abstract', -1 14910 superclassRole: [ 'roletype' ] -1 14911 }, -1 14912 subscript: { -1 14913 type: 'structure', -1 14914 superclassRole: [ 'section' ], -1 14915 prohibitedAttrs: [ 'aria-label', 'aria-labelledby' ] -1 14916 }, -1 14917 superscript: { -1 14918 type: 'structure', -1 14919 superclassRole: [ 'section' ], -1 14920 prohibitedAttrs: [ 'aria-label', 'aria-labelledby' ] 14871 14921 },14872 -1 buttonDefaultText: function buttonDefaultText(vNode) {14873 -1 return defaultButtonValues[vNode.props.type] || '';-1 14922 switch: { -1 14923 type: 'widget', -1 14924 requiredAttrs: [ 'aria-checked' ], -1 14925 allowedAttrs: [ 'aria-expanded', 'aria-readonly', 'aria-required' ], -1 14926 superclassRole: [ 'checkbox' ], -1 14927 accessibleNameRequired: true, -1 14928 nameFromContent: true, -1 14929 childrenPresentational: true 14874 14930 },14875 -1 tableCaptionText: descendantText.bind(null, 'caption'),14876 -1 figureText: descendantText.bind(null, 'figcaption'),14877 -1 svgTitleText: descendantText.bind(null, 'title'),14878 -1 fieldsetLegendText: descendantText.bind(null, 'legend'),14879 -1 altText: attrText.bind(null, 'alt'),14880 -1 tableSummaryText: attrText.bind(null, 'summary'),14881 -1 titleText: title_text_default,14882 -1 subtreeText: subtree_text_default,14883 -1 labelText: label_text_default,14884 -1 singleSpace: function singleSpace() {14885 -1 return ' ';-1 14931 suggestion: { -1 14932 type: 'structure', -1 14933 requiredOwned: [ 'insertion', 'deletion' ], -1 14934 superclassRole: [ 'section' ], -1 14935 prohibitedAttrs: [ 'aria-label', 'aria-labelledby' ] 14886 14936 },14887 -1 placeholderText: attrText.bind(null, 'placeholder')14888 -1 };14889 -1 function attrText(attr, vNode) {14890 -1 return vNode.attr(attr) || '';14891 -1 }14892 -1 function descendantText(nodeName2, _ref35, context) {14893 -1 var actualNode = _ref35.actualNode;14894 -1 nodeName2 = nodeName2.toLowerCase();14895 -1 var nodeNames2 = [ nodeName2, actualNode.nodeName.toLowerCase() ].join(',');14896 -1 var candidate = actualNode.querySelector(nodeNames2);14897 -1 if (!candidate || candidate.nodeName.toLowerCase() !== nodeName2) {14898 -1 return '';14899 -1 }14900 -1 return accessible_text_default(candidate, context);14901 -1 }14902 -1 var native_text_methods_default = nativeTextMethods;14903 -1 function _nativeTextAlternative(virtualNode) {14904 -1 var context = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};14905 -1 var actualNode = virtualNode.actualNode;14906 -1 if (virtualNode.props.nodeType !== 1 || [ 'presentation', 'none' ].includes(get_role_default(virtualNode))) {14907 -1 return '';14908 -1 }14909 -1 var textMethods = findTextMethods(virtualNode);14910 -1 var accessibleName = textMethods.reduce(function(accName, step) {14911 -1 return accName || step(virtualNode, context);14912 -1 }, '');14913 -1 if (context.debug) {14914 -1 axe.log(accessibleName || '{empty-value}', actualNode, context);-1 14937 tab: { -1 14938 type: 'widget', -1 14939 requiredContext: [ 'tablist' ], -1 14940 allowedAttrs: [ 'aria-posinset', 'aria-selected', 'aria-setsize', 'aria-expanded' ], -1 14941 superclassRole: [ 'sectionhead', 'widget' ], -1 14942 nameFromContent: true, -1 14943 childrenPresentational: true -1 14944 }, -1 14945 table: { -1 14946 type: 'structure', -1 14947 requiredOwned: [ 'rowgroup', 'row' ], -1 14948 allowedAttrs: [ 'aria-colcount', 'aria-rowcount', 'aria-expanded' ], -1 14949 superclassRole: [ 'section' ], -1 14950 accessibleNameRequired: false, -1 14951 nameFromContent: true -1 14952 }, -1 14953 tablist: { -1 14954 type: 'composite', -1 14955 requiredOwned: [ 'tab' ], -1 14956 allowedAttrs: [ 'aria-level', 'aria-multiselectable', 'aria-orientation', 'aria-activedescendant', 'aria-expanded' ], -1 14957 superclassRole: [ 'composite' ] -1 14958 }, -1 14959 tabpanel: { -1 14960 type: 'structure', -1 14961 allowedAttrs: [ 'aria-expanded' ], -1 14962 superclassRole: [ 'section' ], -1 14963 accessibleNameRequired: false -1 14964 }, -1 14965 term: { -1 14966 type: 'structure', -1 14967 allowedAttrs: [ 'aria-expanded' ], -1 14968 superclassRole: [ 'section' ], -1 14969 nameFromContent: true -1 14970 }, -1 14971 text: { -1 14972 type: 'structure', -1 14973 superclassRole: [ 'section' ], -1 14974 nameFromContent: true -1 14975 }, -1 14976 textbox: { -1 14977 type: 'widget', -1 14978 allowedAttrs: [ 'aria-activedescendant', 'aria-autocomplete', 'aria-multiline', 'aria-placeholder', 'aria-readonly', 'aria-required' ], -1 14979 superclassRole: [ 'input' ], -1 14980 accessibleNameRequired: true -1 14981 }, -1 14982 time: { -1 14983 type: 'structure', -1 14984 superclassRole: [ 'section' ] -1 14985 }, -1 14986 timer: { -1 14987 type: 'structure', -1 14988 allowedAttrs: [ 'aria-expanded' ], -1 14989 superclassRole: [ 'status' ] -1 14990 }, -1 14991 toolbar: { -1 14992 type: 'structure', -1 14993 allowedAttrs: [ 'aria-orientation', 'aria-activedescendant', 'aria-expanded' ], -1 14994 superclassRole: [ 'group' ], -1 14995 accessibleNameRequired: true -1 14996 }, -1 14997 tooltip: { -1 14998 type: 'structure', -1 14999 allowedAttrs: [ 'aria-expanded' ], -1 15000 superclassRole: [ 'section' ], -1 15001 nameFromContent: true -1 15002 }, -1 15003 tree: { -1 15004 type: 'composite', -1 15005 requiredOwned: [ 'group', 'treeitem' ], -1 15006 allowedAttrs: [ 'aria-multiselectable', 'aria-required', 'aria-activedescendant', 'aria-expanded', 'aria-orientation' ], -1 15007 superclassRole: [ 'select' ], -1 15008 accessibleNameRequired: false -1 15009 }, -1 15010 treegrid: { -1 15011 type: 'composite', -1 15012 requiredOwned: [ 'rowgroup', 'row' ], -1 15013 allowedAttrs: [ 'aria-activedescendant', 'aria-colcount', 'aria-expanded', 'aria-level', 'aria-multiselectable', 'aria-orientation', 'aria-readonly', 'aria-required', 'aria-rowcount' ], -1 15014 superclassRole: [ 'grid', 'tree' ], -1 15015 accessibleNameRequired: false -1 15016 }, -1 15017 treeitem: { -1 15018 type: 'widget', -1 15019 requiredContext: [ 'group', 'tree' ], -1 15020 allowedAttrs: [ 'aria-checked', 'aria-expanded', 'aria-level', 'aria-posinset', 'aria-selected', 'aria-setsize' ], -1 15021 superclassRole: [ 'listitem', 'option' ], -1 15022 accessibleNameRequired: true, -1 15023 nameFromContent: true -1 15024 }, -1 15025 widget: { -1 15026 type: 'abstract', -1 15027 superclassRole: [ 'roletype' ] -1 15028 }, -1 15029 window: { -1 15030 type: 'abstract', -1 15031 superclassRole: [ 'roletype' ] 14915 15032 }14916 -1 return accessibleName;14917 -1 }14918 -1 function findTextMethods(virtualNode) {14919 -1 var elmSpec = get_element_spec_default(virtualNode, {14920 -1 noMatchAccessibleName: true14921 -1 });14922 -1 var methods = elmSpec.namingMethods || [];14923 -1 return methods.map(function(methodName) {14924 -1 return native_text_methods_default[methodName];14925 -1 });14926 -1 }14927 -1 function getUnicodeNonBmpRegExp() {14928 -1 return /[\u1D00-\u1D7F\u1D80-\u1DBF\u1DC0-\u1DFF\u20A0-\u20CF\u20D0-\u20FF\u2100-\u214F\u2150-\u218F\u2190-\u21FF\u2200-\u22FF\u2300-\u23FF\u2400-\u243F\u2440-\u245F\u2460-\u24FF\u2500-\u257F\u2580-\u259F\u25A0-\u25FF\u2600-\u26FF\u2700-\u27BF\uE000-\uF8FF]/g;14929 -1 }14930 -1 function getPunctuationRegExp() {14931 -1 return /[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&\xa3\xa2\xa5\xa7\u20ac()*+,\-.\/:;<=>?@\[\]^_`{|}~\xb1]/g;14932 -1 }14933 -1 function getSupplementaryPrivateUseRegExp() {14934 -1 return /[\uDB80-\uDBBF][\uDC00-\uDFFF]/g;14935 -1 }14936 -1 function getCategoryFormatRegExp() {14937 -1 return /[\xAD\u0600-\u0605\u061C\u06DD\u070F\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD80D[\uDC30-\uDC38]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/g;14938 -1 }14939 -1 var emoji_regex_default = function emoji_regex_default() {14940 -1 return /[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF43\uDF45-\uDF4A\uDF4C-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDF44(?:\u200D\uD83D\uDFEB)?|\uDF4B(?:\u200D\uD83D\uDFE9)?|\uDFC3(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE])))?))?|\uDC6F(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDD75(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE89\uDE8F-\uDEC2\uDEC6\uDECE-\uDEDC\uDEDF-\uDEE9]|\uDD3C(?:\u200D[\u2640\u2642]\uFE0F?|\uD83C[\uDFFB-\uDFFF])?|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g;14941 15033 };14942 -1 function hasUnicode(str, options) {14943 -1 var emoji = options.emoji, nonBmp = options.nonBmp, punctuations = options.punctuations;14944 -1 var value = false;14945 -1 if (emoji) {14946 -1 value || (value = emoji_regex_default().test(str));14947 -1 }14948 -1 if (nonBmp) {14949 -1 value || (value = getUnicodeNonBmpRegExp().test(str) || getSupplementaryPrivateUseRegExp().test(str) || getCategoryFormatRegExp().test(str));14950 -1 }14951 -1 if (punctuations) {14952 -1 value || (value = getPunctuationRegExp().test(str));14953 -1 }14954 -1 return value;14955 -1 }14956 -1 var has_unicode_default = hasUnicode;14957 -1 function _isIconLigature(textVNode) {14958 -1 var differenceThreshold = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : .15;14959 -1 var occurrenceThreshold = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 3;14960 -1 var nodeValue = textVNode.actualNode.nodeValue.trim();14961 -1 if (!sanitize_default(nodeValue) || has_unicode_default(nodeValue, {14962 -1 emoji: true,14963 -1 nonBmp: true14964 -1 })) {14965 -1 return false;14966 -1 }14967 -1 var canvasContext = cache_default.get('canvasContext', function() {14968 -1 return document.createElement('canvas').getContext('2d', {14969 -1 willReadFrequently: true14970 -1 });14971 -1 });14972 -1 var canvas = canvasContext.canvas;14973 -1 var fonts = cache_default.get('fonts', function() {14974 -1 return {};14975 -1 });14976 -1 var style = window.getComputedStyle(textVNode.parent.actualNode);14977 -1 var fontFamily = style.getPropertyValue('font-family');14978 -1 if (!fonts[fontFamily]) {14979 -1 fonts[fontFamily] = {14980 -1 occurrences: 0,14981 -1 numLigatures: 014982 -1 };14983 -1 }14984 -1 var font = fonts[fontFamily];14985 -1 if (font.occurrences >= occurrenceThreshold) {14986 -1 if (font.numLigatures / font.occurrences === 1) {14987 -1 return true;14988 -1 } else if (font.numLigatures === 0) {14989 -1 return false;14990 -1 }14991 -1 }14992 -1 font.occurrences++;14993 -1 var fontSize = 30;14994 -1 var fontStyle = ''.concat(fontSize, 'px ').concat(fontFamily);14995 -1 canvasContext.font = fontStyle;14996 -1 var firstChar = nodeValue.charAt(0);14997 -1 var width = canvasContext.measureText(firstChar).width;14998 -1 if (width === 0) {14999 -1 font.numLigatures++;15000 -1 return true;15001 -1 }15002 -1 if (width < 30) {15003 -1 var diff = 30 / width;15004 -1 width *= diff;15005 -1 fontSize *= diff;15006 -1 fontStyle = ''.concat(fontSize, 'px ').concat(fontFamily);15007 -1 }15008 -1 canvas.width = width;15009 -1 canvas.height = fontSize;15010 -1 canvasContext.font = fontStyle;15011 -1 canvasContext.textAlign = 'left';15012 -1 canvasContext.textBaseline = 'top';15013 -1 canvasContext.fillText(firstChar, 0, 0);15014 -1 var compareData = new Uint32Array(canvasContext.getImageData(0, 0, width, fontSize).data.buffer);15015 -1 if (!compareData.some(function(pixel) {15016 -1 return pixel;15017 -1 })) {15018 -1 font.numLigatures++;15019 -1 return true;15020 -1 }15021 -1 canvasContext.clearRect(0, 0, width, fontSize);15022 -1 canvasContext.fillText(nodeValue, 0, 0);15023 -1 var compareWith = new Uint32Array(canvasContext.getImageData(0, 0, width, fontSize).data.buffer);15024 -1 var differences = compareData.reduce(function(diff, pixel, i) {15025 -1 if (pixel === 0 && compareWith[i] === 0) {15026 -1 return diff;15027 -1 }15028 -1 if (pixel !== 0 && compareWith[i] !== 0) {15029 -1 return diff;15030 -1 }15031 -1 return ++diff;15032 -1 }, 0);15033 -1 var expectedWidth = nodeValue.split('').reduce(function(totalWidth, _char2) {15034 -1 return totalWidth + canvasContext.measureText(_char2).width;15035 -1 }, 0);15036 -1 var actualWidth = canvasContext.measureText(nodeValue).width;15037 -1 var pixelDifference = differences / compareData.length;15038 -1 var sizeDifference = 1 - actualWidth / expectedWidth;15039 -1 if (pixelDifference >= differenceThreshold && sizeDifference >= differenceThreshold) {15040 -1 font.numLigatures++;15041 -1 return true;15042 -1 }15043 -1 return false;15044 -1 }15045 -1 function _accessibleTextVirtual(virtualNode) {15046 -1 var context = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};15047 -1 context = prepareContext(virtualNode, context);15048 -1 if (shouldIgnoreHidden(virtualNode, context)) {15049 -1 return '';15050 -1 }15051 -1 if (shouldIgnoreIconLigature(virtualNode, context)) {15052 -1 return '';15053 -1 }15054 -1 var computationSteps = [ arialabelledby_text_default, _arialabelText, _nativeTextAlternative, form_control_value_default, subtree_text_default, textNodeValue, title_text_default ];15055 -1 var accessibleName = computationSteps.reduce(function(accName, step) {15056 -1 if (context.startNode === virtualNode) {15057 -1 accName = sanitize_default(accName);15058 -1 }15059 -1 if (accName !== '') {15060 -1 return accName;15061 -1 }15062 -1 return step(virtualNode, context);15063 -1 }, '');15064 -1 if (context.debug) {15065 -1 axe.log(accessibleName || '{empty-value}', virtualNode.actualNode, context);15066 -1 }15067 -1 return accessibleName;15068 -1 }15069 -1 function textNodeValue(virtualNode) {15070 -1 if (virtualNode.props.nodeType !== 3) {15071 -1 return '';15072 -1 }15073 -1 return virtualNode.props.nodeValue;15074 -1 }15075 -1 function shouldIgnoreHidden(virtualNode, context) {15076 -1 if (!virtualNode) {15077 -1 return false;15078 -1 }15079 -1 if (virtualNode.props.nodeType !== 1 || context.includeHidden) {15080 -1 return false;15081 -1 }15082 -1 return !_isVisibleToScreenReaders(virtualNode);15083 -1 }15084 -1 function shouldIgnoreIconLigature(virtualNode, context) {15085 -1 var _context$occurrenceTh;15086 -1 var ignoreIconLigature = context.ignoreIconLigature, pixelThreshold = context.pixelThreshold;15087 -1 var occurrenceThreshold = (_context$occurrenceTh = context.occurrenceThreshold) !== null && _context$occurrenceTh !== void 0 ? _context$occurrenceTh : context.occuranceThreshold;15088 -1 if (virtualNode.props.nodeType !== 3 || !ignoreIconLigature) {15089 -1 return false;15090 -1 }15091 -1 return _isIconLigature(virtualNode, pixelThreshold, occurrenceThreshold);15092 -1 }15093 -1 function prepareContext(virtualNode, context) {15094 -1 if (!context.startNode) {15095 -1 context = _extends({15096 -1 startNode: virtualNode15097 -1 }, context);15098 -1 }15099 -1 if (virtualNode.props.nodeType === 1 && context.inLabelledByContext && context.includeHidden === void 0) {15100 -1 context = _extends({15101 -1 includeHidden: !_isVisibleToScreenReaders(virtualNode)15102 -1 }, context);15103 -1 }15104 -1 return context;15105 -1 }15106 -1 _accessibleTextVirtual.alreadyProcessed = function alreadyProcessed(virtualnode, context) {15107 -1 context.processed = context.processed || [];15108 -1 if (context.processed.includes(virtualnode)) {15109 -1 return true;-1 15034 var aria_roles_default = ariaRoles; -1 15035 var dpubRoles = { -1 15036 'doc-abstract': { -1 15037 type: 'section', -1 15038 allowedAttrs: [ 'aria-expanded' ], -1 15039 superclassRole: [ 'section' ] -1 15040 }, -1 15041 'doc-acknowledgments': { -1 15042 type: 'landmark', -1 15043 allowedAttrs: [ 'aria-expanded' ], -1 15044 superclassRole: [ 'landmark' ] -1 15045 }, -1 15046 'doc-afterword': { -1 15047 type: 'landmark', -1 15048 allowedAttrs: [ 'aria-expanded' ], -1 15049 superclassRole: [ 'landmark' ] -1 15050 }, -1 15051 'doc-appendix': { -1 15052 type: 'landmark', -1 15053 allowedAttrs: [ 'aria-expanded' ], -1 15054 superclassRole: [ 'landmark' ] -1 15055 }, -1 15056 'doc-backlink': { -1 15057 type: 'link', -1 15058 allowedAttrs: [ 'aria-expanded' ], -1 15059 nameFromContent: true, -1 15060 superclassRole: [ 'link' ] -1 15061 }, -1 15062 'doc-biblioentry': { -1 15063 type: 'listitem', -1 15064 allowedAttrs: [ 'aria-expanded', 'aria-level', 'aria-posinset', 'aria-setsize' ], -1 15065 superclassRole: [ 'listitem' ], -1 15066 deprecated: true -1 15067 }, -1 15068 'doc-bibliography': { -1 15069 type: 'landmark', -1 15070 allowedAttrs: [ 'aria-expanded' ], -1 15071 superclassRole: [ 'landmark' ] -1 15072 }, -1 15073 'doc-biblioref': { -1 15074 type: 'link', -1 15075 allowedAttrs: [ 'aria-expanded' ], -1 15076 nameFromContent: true, -1 15077 superclassRole: [ 'link' ] -1 15078 }, -1 15079 'doc-chapter': { -1 15080 type: 'landmark', -1 15081 allowedAttrs: [ 'aria-expanded' ], -1 15082 superclassRole: [ 'landmark' ] -1 15083 }, -1 15084 'doc-colophon': { -1 15085 type: 'section', -1 15086 allowedAttrs: [ 'aria-expanded' ], -1 15087 superclassRole: [ 'section' ] -1 15088 }, -1 15089 'doc-conclusion': { -1 15090 type: 'landmark', -1 15091 allowedAttrs: [ 'aria-expanded' ], -1 15092 superclassRole: [ 'landmark' ] -1 15093 }, -1 15094 'doc-cover': { -1 15095 type: 'img', -1 15096 allowedAttrs: [ 'aria-expanded' ], -1 15097 superclassRole: [ 'img' ] -1 15098 }, -1 15099 'doc-credit': { -1 15100 type: 'section', -1 15101 allowedAttrs: [ 'aria-expanded' ], -1 15102 superclassRole: [ 'section' ] -1 15103 }, -1 15104 'doc-credits': { -1 15105 type: 'landmark', -1 15106 allowedAttrs: [ 'aria-expanded' ], -1 15107 superclassRole: [ 'landmark' ] -1 15108 }, -1 15109 'doc-dedication': { -1 15110 type: 'section', -1 15111 allowedAttrs: [ 'aria-expanded' ], -1 15112 superclassRole: [ 'section' ] -1 15113 }, -1 15114 'doc-endnote': { -1 15115 type: 'listitem', -1 15116 allowedAttrs: [ 'aria-expanded', 'aria-level', 'aria-posinset', 'aria-setsize' ], -1 15117 superclassRole: [ 'listitem' ], -1 15118 deprecated: true -1 15119 }, -1 15120 'doc-endnotes': { -1 15121 type: 'landmark', -1 15122 allowedAttrs: [ 'aria-expanded' ], -1 15123 superclassRole: [ 'landmark' ] -1 15124 }, -1 15125 'doc-epigraph': { -1 15126 type: 'section', -1 15127 allowedAttrs: [ 'aria-expanded' ], -1 15128 superclassRole: [ 'section' ] -1 15129 }, -1 15130 'doc-epilogue': { -1 15131 type: 'landmark', -1 15132 allowedAttrs: [ 'aria-expanded' ], -1 15133 superclassRole: [ 'landmark' ] -1 15134 }, -1 15135 'doc-errata': { -1 15136 type: 'landmark', -1 15137 allowedAttrs: [ 'aria-expanded' ], -1 15138 superclassRole: [ 'landmark' ] -1 15139 }, -1 15140 'doc-example': { -1 15141 type: 'section', -1 15142 allowedAttrs: [ 'aria-expanded' ], -1 15143 superclassRole: [ 'section' ] -1 15144 }, -1 15145 'doc-footnote': { -1 15146 type: 'section', -1 15147 allowedAttrs: [ 'aria-expanded' ], -1 15148 superclassRole: [ 'section' ] -1 15149 }, -1 15150 'doc-foreword': { -1 15151 type: 'landmark', -1 15152 allowedAttrs: [ 'aria-expanded' ], -1 15153 superclassRole: [ 'landmark' ] -1 15154 }, -1 15155 'doc-glossary': { -1 15156 type: 'landmark', -1 15157 allowedAttrs: [ 'aria-expanded' ], -1 15158 superclassRole: [ 'landmark' ] -1 15159 }, -1 15160 'doc-glossref': { -1 15161 type: 'link', -1 15162 allowedAttrs: [ 'aria-expanded' ], -1 15163 nameFromContent: true, -1 15164 superclassRole: [ 'link' ] -1 15165 }, -1 15166 'doc-index': { -1 15167 type: 'navigation', -1 15168 allowedAttrs: [ 'aria-expanded' ], -1 15169 superclassRole: [ 'navigation' ] -1 15170 }, -1 15171 'doc-introduction': { -1 15172 type: 'landmark', -1 15173 allowedAttrs: [ 'aria-expanded' ], -1 15174 superclassRole: [ 'landmark' ] -1 15175 }, -1 15176 'doc-noteref': { -1 15177 type: 'link', -1 15178 allowedAttrs: [ 'aria-expanded' ], -1 15179 nameFromContent: true, -1 15180 superclassRole: [ 'link' ] -1 15181 }, -1 15182 'doc-notice': { -1 15183 type: 'note', -1 15184 allowedAttrs: [ 'aria-expanded' ], -1 15185 superclassRole: [ 'note' ] -1 15186 }, -1 15187 'doc-pagebreak': { -1 15188 type: 'separator', -1 15189 allowedAttrs: [ 'aria-expanded', 'aria-orientation' ], -1 15190 superclassRole: [ 'separator' ], -1 15191 childrenPresentational: true -1 15192 }, -1 15193 'doc-pagelist': { -1 15194 type: 'navigation', -1 15195 allowedAttrs: [ 'aria-expanded' ], -1 15196 superclassRole: [ 'navigation' ] -1 15197 }, -1 15198 'doc-part': { -1 15199 type: 'landmark', -1 15200 allowedAttrs: [ 'aria-expanded' ], -1 15201 superclassRole: [ 'landmark' ] -1 15202 }, -1 15203 'doc-preface': { -1 15204 type: 'landmark', -1 15205 allowedAttrs: [ 'aria-expanded' ], -1 15206 superclassRole: [ 'landmark' ] -1 15207 }, -1 15208 'doc-prologue': { -1 15209 type: 'landmark', -1 15210 allowedAttrs: [ 'aria-expanded' ], -1 15211 superclassRole: [ 'landmark' ] -1 15212 }, -1 15213 'doc-pullquote': { -1 15214 type: 'none', -1 15215 superclassRole: [ 'none' ] -1 15216 }, -1 15217 'doc-qna': { -1 15218 type: 'section', -1 15219 allowedAttrs: [ 'aria-expanded' ], -1 15220 superclassRole: [ 'section' ] -1 15221 }, -1 15222 'doc-subtitle': { -1 15223 type: 'sectionhead', -1 15224 allowedAttrs: [ 'aria-expanded' ], -1 15225 superclassRole: [ 'sectionhead' ] -1 15226 }, -1 15227 'doc-tip': { -1 15228 type: 'note', -1 15229 allowedAttrs: [ 'aria-expanded' ], -1 15230 superclassRole: [ 'note' ] -1 15231 }, -1 15232 'doc-toc': { -1 15233 type: 'navigation', -1 15234 allowedAttrs: [ 'aria-expanded' ], -1 15235 superclassRole: [ 'navigation' ] 15110 15236 }15111 -1 context.processed.push(virtualnode);15112 -1 return false;15113 15237 };15114 -1 function removeUnicode(str, options) {15115 -1 var emoji = options.emoji, nonBmp = options.nonBmp, punctuations = options.punctuations;15116 -1 if (emoji) {15117 -1 str = str.replace(emoji_regex_default(), '');15118 -1 }15119 -1 if (nonBmp) {15120 -1 str = str.replace(getUnicodeNonBmpRegExp(), '').replace(getSupplementaryPrivateUseRegExp(), '').replace(getCategoryFormatRegExp(), '');15121 -1 }15122 -1 if (punctuations) {15123 -1 str = str.replace(getPunctuationRegExp(), '');15124 -1 }15125 -1 return str;15126 -1 }15127 -1 var remove_unicode_default = removeUnicode;15128 -1 function isHumanInterpretable(str) {15129 -1 if (isEmpty(str) || isNonDigitCharacter(str) || isSymbolicText(str) || isUnicodeOrPunctuation(str)) {15130 -1 return 0;-1 15238 var dpub_roles_default = dpubRoles; -1 15239 var graphicsRoles = { -1 15240 'graphics-document': { -1 15241 type: 'structure', -1 15242 superclassRole: [ 'document' ], -1 15243 accessibleNameRequired: true -1 15244 }, -1 15245 'graphics-object': { -1 15246 type: 'structure', -1 15247 superclassRole: [ 'group' ], -1 15248 nameFromContent: true -1 15249 }, -1 15250 'graphics-symbol': { -1 15251 type: 'structure', -1 15252 superclassRole: [ 'img' ], -1 15253 accessibleNameRequired: true, -1 15254 childrenPresentational: true 15131 15255 }15132 -1 return 1;15133 -1 }15134 -1 function isEmpty(str) {15135 -1 return sanitize_default(str).length === 0;15136 -1 }15137 -1 function isNonDigitCharacter(str) {15138 -1 return str.length === 1 && str.match(/\D/);15139 -1 }15140 -1 function isSymbolicText(str) {15141 -1 var symbolicText = [ 'aa', 'abc' ];15142 -1 return symbolicText.includes(str.toLowerCase());15143 -1 }15144 -1 function isUnicodeOrPunctuation(str) {15145 -1 var noUnicodeStr = remove_unicode_default(str, {15146 -1 emoji: true,15147 -1 nonBmp: true,15148 -1 punctuations: true15149 -1 });15150 -1 return !sanitize_default(noUnicodeStr);15151 -1 }15152 -1 var is_human_interpretable_default = isHumanInterpretable;15153 -1 var _autocomplete = {15154 -1 stateTerms: [ 'on', 'off' ],15155 -1 standaloneTerms: [ 'name', 'honorific-prefix', 'given-name', 'additional-name', 'family-name', 'honorific-suffix', 'nickname', 'username', 'new-password', 'current-password', 'organization-title', 'organization', 'street-address', 'address-line1', 'address-line2', 'address-line3', 'address-level4', 'address-level3', 'address-level2', 'address-level1', 'country', 'country-name', 'postal-code', 'cc-name', 'cc-given-name', 'cc-additional-name', 'cc-family-name', 'cc-number', 'cc-exp', 'cc-exp-month', 'cc-exp-year', 'cc-csc', 'cc-type', 'transaction-currency', 'transaction-amount', 'language', 'bday', 'bday-day', 'bday-month', 'bday-year', 'sex', 'url', 'photo', 'one-time-code' ],15156 -1 qualifiers: [ 'home', 'work', 'mobile', 'fax', 'pager' ],15157 -1 qualifiedTerms: [ 'tel', 'tel-country-code', 'tel-national', 'tel-area-code', 'tel-local', 'tel-local-prefix', 'tel-local-suffix', 'tel-extension', 'email', 'impp' ],15158 -1 locations: [ 'billing', 'shipping' ]15159 15256 };15160 -1 function isValidAutocomplete(autocompleteValue) {15161 -1 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;15162 -1 autocompleteValue = autocompleteValue.toLowerCase().trim();15163 -1 stateTerms = stateTerms.concat(_autocomplete.stateTerms);15164 -1 if (stateTerms.includes(autocompleteValue) || autocompleteValue === '') {15165 -1 return true;15166 -1 }15167 -1 qualifiers = qualifiers.concat(_autocomplete.qualifiers);15168 -1 locations = locations.concat(_autocomplete.locations);15169 -1 standaloneTerms = standaloneTerms.concat(_autocomplete.standaloneTerms);15170 -1 qualifiedTerms = qualifiedTerms.concat(_autocomplete.qualifiedTerms);15171 -1 var autocompleteTerms = autocompleteValue.split(/\s+/g);15172 -1 if (autocompleteTerms[autocompleteTerms.length - 1] === 'webauthn') {15173 -1 autocompleteTerms.pop();15174 -1 if (autocompleteTerms.length === 0) {15175 -1 return false;15176 -1 }15177 -1 }15178 -1 if (!looseTyped) {15179 -1 if (autocompleteTerms[0].length > 8 && autocompleteTerms[0].substr(0, 8) === 'section-') {15180 -1 autocompleteTerms.shift();15181 -1 }15182 -1 if (locations.includes(autocompleteTerms[0])) {15183 -1 autocompleteTerms.shift();-1 15257 var graphics_roles_default = graphicsRoles; -1 15258 var htmlElms = { -1 15259 a: { -1 15260 variant: { -1 15261 href: { -1 15262 matches: '[href]', -1 15263 contentTypes: [ 'interactive', 'phrasing', 'flow' ], -1 15264 allowedRoles: [ 'button', 'checkbox', 'menuitem', 'menuitemcheckbox', 'menuitemradio', 'option', 'radio', 'switch', 'tab', 'treeitem', 'doc-backlink', 'doc-biblioref', 'doc-glossref', 'doc-noteref' ], -1 15265 namingMethods: [ 'subtreeText' ] -1 15266 }, -1 15267 default: { -1 15268 contentTypes: [ 'phrasing', 'flow' ], -1 15269 allowedRoles: true -1 15270 } 15184 15271 }15185 -1 if (qualifiers.includes(autocompleteTerms[0])) {15186 -1 autocompleteTerms.shift();15187 -1 standaloneTerms = [];-1 15272 }, -1 15273 abbr: { -1 15274 contentTypes: [ 'phrasing', 'flow' ], -1 15275 allowedRoles: true -1 15276 }, -1 15277 address: { -1 15278 contentTypes: [ 'flow' ], -1 15279 allowedRoles: true -1 15280 }, -1 15281 area: { -1 15282 variant: { -1 15283 href: { -1 15284 matches: '[href]', -1 15285 allowedRoles: false -1 15286 }, -1 15287 default: { -1 15288 allowedRoles: [ 'button', 'link' ] -1 15289 } -1 15290 }, -1 15291 contentTypes: [ 'phrasing', 'flow' ], -1 15292 namingMethods: [ 'altText' ] -1 15293 }, -1 15294 article: { -1 15295 contentTypes: [ 'sectioning', 'flow' ], -1 15296 allowedRoles: [ 'feed', 'presentation', 'none', 'document', 'application', 'main', 'region' ], -1 15297 shadowRoot: true -1 15298 }, -1 15299 aside: { -1 15300 contentTypes: [ 'sectioning', 'flow' ], -1 15301 allowedRoles: [ 'feed', 'note', 'presentation', 'none', 'region', 'search', 'doc-dedication', 'doc-example', 'doc-footnote', 'doc-glossary', 'doc-pullquote', 'doc-tip' ] -1 15302 }, -1 15303 audio: { -1 15304 variant: { -1 15305 controls: { -1 15306 matches: '[controls]', -1 15307 contentTypes: [ 'interactive', 'embedded', 'phrasing', 'flow' ] -1 15308 }, -1 15309 default: { -1 15310 contentTypes: [ 'embedded', 'phrasing', 'flow' ] -1 15311 } -1 15312 }, -1 15313 allowedRoles: [ 'application' ], -1 15314 chromiumRole: 'Audio' -1 15315 }, -1 15316 b: { -1 15317 contentTypes: [ 'phrasing', 'flow' ], -1 15318 allowedRoles: true -1 15319 }, -1 15320 base: { -1 15321 allowedRoles: false, -1 15322 noAriaAttrs: true -1 15323 }, -1 15324 bdi: { -1 15325 contentTypes: [ 'phrasing', 'flow' ], -1 15326 allowedRoles: true -1 15327 }, -1 15328 bdo: { -1 15329 contentTypes: [ 'phrasing', 'flow' ], -1 15330 allowedRoles: true -1 15331 }, -1 15332 blockquote: { -1 15333 contentTypes: [ 'flow' ], -1 15334 allowedRoles: true, -1 15335 shadowRoot: true -1 15336 }, -1 15337 body: { -1 15338 allowedRoles: false, -1 15339 shadowRoot: true -1 15340 }, -1 15341 br: { -1 15342 contentTypes: [ 'phrasing', 'flow' ], -1 15343 allowedRoles: [ 'presentation', 'none' ], -1 15344 namingMethods: [ 'titleText', 'singleSpace' ] -1 15345 }, -1 15346 button: { -1 15347 contentTypes: [ 'interactive', 'phrasing', 'flow' ], -1 15348 allowedRoles: [ 'checkbox', 'combobox', 'gridcell', 'link', 'menuitem', 'menuitemcheckbox', 'menuitemradio', 'option', 'radio', 'separator', 'slider', 'switch', 'tab', 'treeitem' ], -1 15349 namingMethods: [ 'subtreeText' ] -1 15350 }, -1 15351 canvas: { -1 15352 allowedRoles: true, -1 15353 contentTypes: [ 'embedded', 'phrasing', 'flow' ], -1 15354 chromiumRole: 'Canvas' -1 15355 }, -1 15356 caption: { -1 15357 allowedRoles: false -1 15358 }, -1 15359 cite: { -1 15360 contentTypes: [ 'phrasing', 'flow' ], -1 15361 allowedRoles: true -1 15362 }, -1 15363 code: { -1 15364 contentTypes: [ 'phrasing', 'flow' ], -1 15365 allowedRoles: true -1 15366 }, -1 15367 col: { -1 15368 allowedRoles: false, -1 15369 noAriaAttrs: true -1 15370 }, -1 15371 colgroup: { -1 15372 allowedRoles: false, -1 15373 noAriaAttrs: true -1 15374 }, -1 15375 data: { -1 15376 contentTypes: [ 'phrasing', 'flow' ], -1 15377 allowedRoles: true -1 15378 }, -1 15379 datalist: { -1 15380 contentTypes: [ 'phrasing', 'flow' ], -1 15381 allowedRoles: false, -1 15382 noAriaAttrs: true, -1 15383 implicitAttrs: { -1 15384 'aria-multiselectable': 'false' 15188 15385 }15189 -1 if (autocompleteTerms.length !== 1) {15190 -1 return false;-1 15386 }, -1 15387 dd: { -1 15388 allowedRoles: false -1 15389 }, -1 15390 del: { -1 15391 contentTypes: [ 'phrasing', 'flow' ], -1 15392 allowedRoles: true -1 15393 }, -1 15394 dfn: { -1 15395 contentTypes: [ 'phrasing', 'flow' ], -1 15396 allowedRoles: true -1 15397 }, -1 15398 details: { -1 15399 contentTypes: [ 'interactive', 'flow' ], -1 15400 allowedRoles: false -1 15401 }, -1 15402 dialog: { -1 15403 contentTypes: [ 'flow' ], -1 15404 allowedRoles: [ 'alertdialog' ] -1 15405 }, -1 15406 div: { -1 15407 contentTypes: [ 'flow' ], -1 15408 allowedRoles: true, -1 15409 shadowRoot: true -1 15410 }, -1 15411 dl: { -1 15412 contentTypes: [ 'flow' ], -1 15413 allowedRoles: [ 'group', 'list', 'presentation', 'none' ], -1 15414 chromiumRole: 'DescriptionList' -1 15415 }, -1 15416 dt: { -1 15417 allowedRoles: [ 'listitem' ] -1 15418 }, -1 15419 em: { -1 15420 contentTypes: [ 'phrasing', 'flow' ], -1 15421 allowedRoles: true -1 15422 }, -1 15423 embed: { -1 15424 contentTypes: [ 'interactive', 'embedded', 'phrasing', 'flow' ], -1 15425 allowedRoles: [ 'application', 'document', 'img', 'presentation', 'none' ], -1 15426 chromiumRole: 'EmbeddedObject' -1 15427 }, -1 15428 fieldset: { -1 15429 contentTypes: [ 'flow' ], -1 15430 allowedRoles: [ 'none', 'presentation', 'radiogroup' ], -1 15431 namingMethods: [ 'fieldsetLegendText' ] -1 15432 }, -1 15433 figcaption: { -1 15434 allowedRoles: [ 'group', 'none', 'presentation' ] -1 15435 }, -1 15436 figure: { -1 15437 contentTypes: [ 'flow' ], -1 15438 allowedRoles: true, -1 15439 namingMethods: [ 'figureText', 'titleText' ] -1 15440 }, -1 15441 footer: { -1 15442 contentTypes: [ 'flow' ], -1 15443 allowedRoles: [ 'group', 'none', 'presentation', 'doc-footnote' ], -1 15444 shadowRoot: true -1 15445 }, -1 15446 form: { -1 15447 contentTypes: [ 'flow' ], -1 15448 allowedRoles: [ 'form', 'search', 'none', 'presentation' ] -1 15449 }, -1 15450 h1: { -1 15451 contentTypes: [ 'heading', 'flow' ], -1 15452 allowedRoles: [ 'none', 'presentation', 'tab', 'doc-subtitle' ], -1 15453 shadowRoot: true, -1 15454 implicitAttrs: { -1 15455 'aria-level': '1' 15191 15456 }15192 -1 }15193 -1 var purposeTerm = autocompleteTerms[autocompleteTerms.length - 1];15194 -1 if (ignoredValues.includes(purposeTerm)) {15195 -1 return void 0;15196 -1 }15197 -1 return standaloneTerms.includes(purposeTerm) || qualifiedTerms.includes(purposeTerm);15198 -1 }15199 -1 var is_valid_autocomplete_default = isValidAutocomplete;15200 -1 function labelVirtual(virtualNode) {15201 -1 var ref, candidate;15202 -1 if (virtualNode.attr('aria-labelledby')) {15203 -1 ref = idrefs_default(virtualNode.actualNode, 'aria-labelledby');15204 -1 candidate = ref.map(function(thing) {15205 -1 var vNode = get_node_from_tree_default(thing);15206 -1 return vNode ? visible_virtual_default(vNode) : '';15207 -1 }).join(' ').trim();15208 -1 if (candidate) {15209 -1 return candidate;-1 15457 }, -1 15458 h2: { -1 15459 contentTypes: [ 'heading', 'flow' ], -1 15460 allowedRoles: [ 'none', 'presentation', 'tab', 'doc-subtitle' ], -1 15461 shadowRoot: true, -1 15462 implicitAttrs: { -1 15463 'aria-level': '2' 15210 15464 }15211 -1 }15212 -1 candidate = virtualNode.attr('aria-label');15213 -1 if (candidate) {15214 -1 candidate = sanitize_default(candidate);15215 -1 if (candidate) {15216 -1 return candidate;-1 15465 }, -1 15466 h3: { -1 15467 contentTypes: [ 'heading', 'flow' ], -1 15468 allowedRoles: [ 'none', 'presentation', 'tab', 'doc-subtitle' ], -1 15469 shadowRoot: true, -1 15470 implicitAttrs: { -1 15471 'aria-level': '3' 15217 15472 }15218 -1 }15219 -1 return null;15220 -1 }15221 -1 var label_virtual_default = labelVirtual;15222 -1 function visible(element, screenReader, noRecursing) {15223 -1 element = get_node_from_tree_default(element);15224 -1 return visible_virtual_default(element, screenReader, noRecursing);15225 -1 }15226 -1 var visible_default = visible;15227 -1 function labelVirtual2(virtualNode) {15228 -1 var ref, candidate, doc;15229 -1 candidate = label_virtual_default(virtualNode);15230 -1 if (candidate) {15231 -1 return candidate;15232 -1 }15233 -1 if (virtualNode.attr('id')) {15234 -1 if (!virtualNode.actualNode) {15235 -1 throw new TypeError('Cannot resolve explicit label reference for non-DOM nodes');-1 15473 }, -1 15474 h4: { -1 15475 contentTypes: [ 'heading', 'flow' ], -1 15476 allowedRoles: [ 'none', 'presentation', 'tab', 'doc-subtitle' ], -1 15477 shadowRoot: true, -1 15478 implicitAttrs: { -1 15479 'aria-level': '4' 15236 15480 }15237 -1 var id = escape_selector_default(virtualNode.attr('id'));15238 -1 doc = get_root_node_default2(virtualNode.actualNode);15239 -1 ref = doc.querySelector('label[for="' + id + '"]');15240 -1 candidate = ref && visible_default(ref, true);15241 -1 if (candidate) {15242 -1 return candidate;-1 15481 }, -1 15482 h5: { -1 15483 contentTypes: [ 'heading', 'flow' ], -1 15484 allowedRoles: [ 'none', 'presentation', 'tab', 'doc-subtitle' ], -1 15485 shadowRoot: true, -1 15486 implicitAttrs: { -1 15487 'aria-level': '5' 15243 15488 }15244 -1 }15245 -1 ref = closest_default(virtualNode, 'label');15246 -1 candidate = ref && visible_virtual_default(ref, true);15247 -1 if (candidate) {15248 -1 return candidate;15249 -1 }15250 -1 return null;15251 -1 }15252 -1 var label_virtual_default2 = labelVirtual2;15253 -1 function label(node) {15254 -1 node = get_node_from_tree_default(node);15255 -1 return label_virtual_default2(node);15256 -1 }15257 -1 var label_default = label;15258 -1 var nativeElementType = [ {15259 -1 matches: [ {15260 -1 nodeName: 'textarea'15261 -1 }, {15262 -1 nodeName: 'input',15263 -1 properties: {15264 -1 type: [ 'text', 'password', 'search', 'tel', 'email', 'url' ]-1 15489 }, -1 15490 h6: { -1 15491 contentTypes: [ 'heading', 'flow' ], -1 15492 allowedRoles: [ 'none', 'presentation', 'tab', 'doc-subtitle' ], -1 15493 shadowRoot: true, -1 15494 implicitAttrs: { -1 15495 'aria-level': '6' 15265 15496 }15266 -1 } ],15267 -1 namingMethods: 'labelText'15268 -1 }, {15269 -1 matches: {15270 -1 nodeName: 'input',15271 -1 properties: {15272 -1 type: [ 'button', 'submit', 'reset' ]-1 15497 }, -1 15498 head: { -1 15499 allowedRoles: false, -1 15500 noAriaAttrs: true -1 15501 }, -1 15502 header: { -1 15503 contentTypes: [ 'flow' ], -1 15504 allowedRoles: [ 'group', 'none', 'presentation', 'doc-footnote' ], -1 15505 shadowRoot: true -1 15506 }, -1 15507 hgroup: { -1 15508 contentTypes: [ 'heading', 'flow' ], -1 15509 allowedRoles: true -1 15510 }, -1 15511 hr: { -1 15512 contentTypes: [ 'flow' ], -1 15513 allowedRoles: [ 'none', 'presentation', 'doc-pagebreak' ], -1 15514 namingMethods: [ 'titleText', 'singleSpace' ] -1 15515 }, -1 15516 html: { -1 15517 allowedRoles: false, -1 15518 noAriaAttrs: true -1 15519 }, -1 15520 i: { -1 15521 contentTypes: [ 'phrasing', 'flow' ], -1 15522 allowedRoles: true -1 15523 }, -1 15524 iframe: { -1 15525 contentTypes: [ 'interactive', 'embedded', 'phrasing', 'flow' ], -1 15526 allowedRoles: [ 'application', 'document', 'img', 'none', 'presentation' ], -1 15527 chromiumRole: 'Iframe' -1 15528 }, -1 15529 img: { -1 15530 variant: { -1 15531 nonEmptyAlt: { -1 15532 matches: [ { -1 15533 attributes: { -1 15534 alt: '/.+/' -1 15535 } -1 15536 }, { -1 15537 hasAccessibleName: true -1 15538 } ], -1 15539 allowedRoles: [ 'button', 'checkbox', 'link', 'math', 'menuitem', 'menuitemcheckbox', 'menuitemradio', 'meter', 'option', 'progressbar', 'radio', 'scrollbar', 'separator', 'slider', 'switch', 'tab', 'treeitem', 'doc-cover' ] -1 15540 }, -1 15541 usemap: { -1 15542 matches: '[usemap]', -1 15543 contentTypes: [ 'interactive', 'embedded', 'flow' ] -1 15544 }, -1 15545 default: { -1 15546 allowedRoles: [ 'presentation', 'none' ], -1 15547 contentTypes: [ 'embedded', 'flow' ] -1 15548 } -1 15549 }, -1 15550 namingMethods: [ 'altText' ] -1 15551 }, -1 15552 input: { -1 15553 variant: { -1 15554 button: { -1 15555 matches: { -1 15556 properties: { -1 15557 type: 'button' -1 15558 } -1 15559 }, -1 15560 allowedRoles: [ 'checkbox', 'combobox', 'link', 'menuitem', 'menuitemcheckbox', 'menuitemradio', 'option', 'radio', 'switch', 'tab' ] -1 15561 }, -1 15562 buttonType: { -1 15563 matches: { -1 15564 properties: { -1 15565 type: [ 'button', 'submit', 'reset' ] -1 15566 } -1 15567 }, -1 15568 namingMethods: [ 'valueText', 'titleText', 'buttonDefaultText' ] -1 15569 }, -1 15570 checkboxPressed: { -1 15571 matches: { -1 15572 properties: { -1 15573 type: 'checkbox' -1 15574 }, -1 15575 attributes: { -1 15576 'aria-pressed': '/.*/' -1 15577 } -1 15578 }, -1 15579 allowedRoles: [ 'button', 'menuitemcheckbox', 'option', 'switch' ], -1 15580 implicitAttrs: { -1 15581 'aria-checked': 'false' -1 15582 } -1 15583 }, -1 15584 checkbox: { -1 15585 matches: { -1 15586 properties: { -1 15587 type: 'checkbox' -1 15588 }, -1 15589 attributes: { -1 15590 'aria-pressed': null -1 15591 } -1 15592 }, -1 15593 allowedRoles: [ 'menuitemcheckbox', 'option', 'switch' ], -1 15594 implicitAttrs: { -1 15595 'aria-checked': 'false' -1 15596 } -1 15597 }, -1 15598 noRoles: { -1 15599 matches: { -1 15600 properties: { -1 15601 type: [ 'color', 'date', 'datetime-local', 'file', 'month', 'number', 'password', 'range', 'reset', 'submit', 'time', 'week' ] -1 15602 } -1 15603 }, -1 15604 allowedRoles: false -1 15605 }, -1 15606 hidden: { -1 15607 matches: { -1 15608 properties: { -1 15609 type: 'hidden' -1 15610 } -1 15611 }, -1 15612 contentTypes: [ 'flow' ], -1 15613 allowedRoles: false, -1 15614 noAriaAttrs: true -1 15615 }, -1 15616 image: { -1 15617 matches: { -1 15618 properties: { -1 15619 type: 'image' -1 15620 } -1 15621 }, -1 15622 allowedRoles: [ 'link', 'menuitem', 'menuitemcheckbox', 'menuitemradio', 'radio', 'switch' ], -1 15623 namingMethods: [ 'altText', 'valueText', 'labelText', 'titleText', 'buttonDefaultText' ] -1 15624 }, -1 15625 radio: { -1 15626 matches: { -1 15627 properties: { -1 15628 type: 'radio' -1 15629 } -1 15630 }, -1 15631 allowedRoles: [ 'menuitemradio' ], -1 15632 implicitAttrs: { -1 15633 'aria-checked': 'false' -1 15634 } -1 15635 }, -1 15636 textWithList: { -1 15637 matches: { -1 15638 properties: { -1 15639 type: 'text' -1 15640 }, -1 15641 attributes: { -1 15642 list: '/.*/' -1 15643 } -1 15644 }, -1 15645 allowedRoles: false -1 15646 }, -1 15647 default: { -1 15648 contentTypes: [ 'interactive', 'flow' ], -1 15649 allowedRoles: [ 'combobox', 'searchbox', 'spinbutton' ], -1 15650 implicitAttrs: { -1 15651 'aria-valuenow': '' -1 15652 }, -1 15653 namingMethods: [ 'labelText', 'placeholderText' ] -1 15654 } 15273 15655 } 15274 15656 },15275 -1 namingMethods: [ 'valueText', 'titleText', 'buttonDefaultText' ]15276 -1 }, {15277 -1 matches: {15278 -1 nodeName: 'input',15279 -1 properties: {15280 -1 type: 'image'15281 -1 }-1 15657 ins: { -1 15658 contentTypes: [ 'phrasing', 'flow' ], -1 15659 allowedRoles: true 15282 15660 },15283 -1 namingMethods: [ 'altText', 'valueText', 'labelText', 'titleText', 'buttonDefaultText' ]15284 -1 }, {15285 -1 matches: 'button',15286 -1 namingMethods: 'subtreeText'15287 -1 }, {15288 -1 matches: 'fieldset',15289 -1 namingMethods: 'fieldsetLegendText'15290 -1 }, {15291 -1 matches: 'OUTPUT',15292 -1 namingMethods: 'subtreeText'15293 -1 }, {15294 -1 matches: [ {15295 -1 nodeName: 'select'15296 -1 }, {15297 -1 nodeName: 'input',15298 -1 properties: {15299 -1 type: /^(?!text|password|search|tel|email|url|button|submit|reset)/-1 15661 kbd: { -1 15662 contentTypes: [ 'phrasing', 'flow' ], -1 15663 allowedRoles: true -1 15664 }, -1 15665 label: { -1 15666 contentTypes: [ 'interactive', 'phrasing', 'flow' ], -1 15667 allowedRoles: false, -1 15668 chromiumRole: 'Label' -1 15669 }, -1 15670 legend: { -1 15671 allowedRoles: false -1 15672 }, -1 15673 li: { -1 15674 allowedRoles: [ 'menuitem', 'menuitemcheckbox', 'menuitemradio', 'option', 'none', 'presentation', 'radio', 'separator', 'tab', 'treeitem', 'doc-biblioentry', 'doc-endnote' ], -1 15675 implicitAttrs: { -1 15676 'aria-setsize': '1', -1 15677 'aria-posinset': '1' 15300 15678 }15301 -1 } ],15302 -1 namingMethods: 'labelText'15303 -1 }, {15304 -1 matches: 'summary',15305 -1 namingMethods: 'subtreeText'15306 -1 }, {15307 -1 matches: 'figure',15308 -1 namingMethods: [ 'figureText', 'titleText' ]15309 -1 }, {15310 -1 matches: 'img',15311 -1 namingMethods: 'altText'15312 -1 }, {15313 -1 matches: 'table',15314 -1 namingMethods: [ 'tableCaptionText', 'tableSummaryText' ]15315 -1 }, {15316 -1 matches: [ 'hr', 'br' ],15317 -1 namingMethods: [ 'titleText', 'singleSpace' ]15318 -1 } ];15319 -1 var native_element_type_default = nativeElementType;15320 -1 function visibleTextNodes(vNode) {15321 -1 var parentVisible = _isVisibleOnScreen(vNode);15322 -1 var nodes = [];15323 -1 vNode.children.forEach(function(child) {15324 -1 if (child.actualNode.nodeType === 3) {15325 -1 if (parentVisible) {15326 -1 nodes.push(child);-1 15679 }, -1 15680 link: { -1 15681 contentTypes: [ 'phrasing', 'flow' ], -1 15682 allowedRoles: false, -1 15683 noAriaAttrs: true -1 15684 }, -1 15685 main: { -1 15686 contentTypes: [ 'flow' ], -1 15687 allowedRoles: false, -1 15688 shadowRoot: true -1 15689 }, -1 15690 map: { -1 15691 contentTypes: [ 'phrasing', 'flow' ], -1 15692 allowedRoles: false, -1 15693 noAriaAttrs: true -1 15694 }, -1 15695 math: { -1 15696 contentTypes: [ 'embedded', 'phrasing', 'flow' ], -1 15697 allowedRoles: false -1 15698 }, -1 15699 mark: { -1 15700 contentTypes: [ 'phrasing', 'flow' ], -1 15701 allowedRoles: true -1 15702 }, -1 15703 menu: { -1 15704 contentTypes: [ 'flow' ], -1 15705 allowedRoles: [ 'directory', 'group', 'listbox', 'menu', 'menubar', 'none', 'presentation', 'radiogroup', 'tablist', 'toolbar', 'tree' ] -1 15706 }, -1 15707 meta: { -1 15708 variant: { -1 15709 itemprop: { -1 15710 matches: '[itemprop]', -1 15711 contentTypes: [ 'phrasing', 'flow' ] 15327 15712 }15328 -1 } else {15329 -1 nodes = nodes.concat(visibleTextNodes(child));-1 15713 }, -1 15714 allowedRoles: false, -1 15715 noAriaAttrs: true -1 15716 }, -1 15717 meter: { -1 15718 contentTypes: [ 'phrasing', 'flow' ], -1 15719 allowedRoles: false, -1 15720 chromiumRole: 'progressbar' -1 15721 }, -1 15722 nav: { -1 15723 contentTypes: [ 'sectioning', 'flow' ], -1 15724 allowedRoles: [ 'doc-index', 'doc-pagelist', 'doc-toc', 'menu', 'menubar', 'none', 'presentation', 'tablist' ], -1 15725 shadowRoot: true -1 15726 }, -1 15727 noscript: { -1 15728 contentTypes: [ 'phrasing', 'flow' ], -1 15729 allowedRoles: false, -1 15730 noAriaAttrs: true -1 15731 }, -1 15732 object: { -1 15733 variant: { -1 15734 usemap: { -1 15735 matches: '[usemap]', -1 15736 contentTypes: [ 'interactive', 'embedded', 'phrasing', 'flow' ] -1 15737 }, -1 15738 default: { -1 15739 contentTypes: [ 'embedded', 'phrasing', 'flow' ] -1 15740 } -1 15741 }, -1 15742 allowedRoles: [ 'application', 'document', 'img' ], -1 15743 chromiumRole: 'PluginObject' -1 15744 }, -1 15745 ol: { -1 15746 contentTypes: [ 'flow' ], -1 15747 allowedRoles: [ 'directory', 'group', 'listbox', 'menu', 'menubar', 'none', 'presentation', 'radiogroup', 'tablist', 'toolbar', 'tree' ] -1 15748 }, -1 15749 optgroup: { -1 15750 allowedRoles: false -1 15751 }, -1 15752 option: { -1 15753 allowedRoles: false, -1 15754 implicitAttrs: { -1 15755 'aria-selected': 'false' 15330 15756 }15331 -1 });15332 -1 return nodes;15333 -1 }15334 -1 var visible_text_nodes_default = visibleTextNodes;15335 -1 var getVisibleChildTextRects = memoize_default(function getVisibleChildTextRectsMemoized(node) {15336 -1 var vNode = get_node_from_tree_default(node);15337 -1 var nodeRect = vNode.boundingClientRect;15338 -1 var clientRects = [];15339 -1 var overflowHiddenNodes = get_overflow_hidden_ancestors_default(vNode);15340 -1 node.childNodes.forEach(function(textNode) {15341 -1 if (textNode.nodeType !== 3 || sanitize_default(textNode.nodeValue) === '') {15342 -1 return;-1 15757 }, -1 15758 output: { -1 15759 contentTypes: [ 'phrasing', 'flow' ], -1 15760 allowedRoles: true, -1 15761 namingMethods: [ 'subtreeText' ] -1 15762 }, -1 15763 p: { -1 15764 contentTypes: [ 'flow' ], -1 15765 allowedRoles: true, -1 15766 shadowRoot: true -1 15767 }, -1 15768 param: { -1 15769 allowedRoles: false, -1 15770 noAriaAttrs: true -1 15771 }, -1 15772 picture: { -1 15773 contentTypes: [ 'phrasing', 'flow' ], -1 15774 allowedRoles: false, -1 15775 noAriaAttrs: true -1 15776 }, -1 15777 pre: { -1 15778 contentTypes: [ 'flow' ], -1 15779 allowedRoles: true -1 15780 }, -1 15781 progress: { -1 15782 contentTypes: [ 'phrasing', 'flow' ], -1 15783 allowedRoles: false, -1 15784 implicitAttrs: { -1 15785 'aria-valuemax': '100', -1 15786 'aria-valuemin': '0', -1 15787 'aria-valuenow': '0' 15343 15788 }15344 -1 var contentRects = getContentRects(textNode);15345 -1 if (isOutsideNodeBounds(contentRects, nodeRect)) {15346 -1 return;-1 15789 }, -1 15790 q: { -1 15791 contentTypes: [ 'phrasing', 'flow' ], -1 15792 allowedRoles: true -1 15793 }, -1 15794 rp: { -1 15795 allowedRoles: true -1 15796 }, -1 15797 rt: { -1 15798 allowedRoles: true -1 15799 }, -1 15800 ruby: { -1 15801 contentTypes: [ 'phrasing', 'flow' ], -1 15802 allowedRoles: true -1 15803 }, -1 15804 s: { -1 15805 contentTypes: [ 'phrasing', 'flow' ], -1 15806 allowedRoles: true -1 15807 }, -1 15808 samp: { -1 15809 contentTypes: [ 'phrasing', 'flow' ], -1 15810 allowedRoles: true -1 15811 }, -1 15812 script: { -1 15813 contentTypes: [ 'phrasing', 'flow' ], -1 15814 allowedRoles: false, -1 15815 noAriaAttrs: true -1 15816 }, -1 15817 search: { -1 15818 contentTypes: [ 'flow' ], -1 15819 allowedRoles: [ 'form', 'group', 'none', 'presentation', 'region', 'search' ] -1 15820 }, -1 15821 section: { -1 15822 contentTypes: [ 'sectioning', 'flow' ], -1 15823 allowedRoles: [ 'alert', 'alertdialog', 'application', 'banner', 'complementary', 'contentinfo', 'dialog', 'document', 'feed', 'group', 'log', 'main', 'marquee', 'navigation', 'none', 'note', 'presentation', 'search', 'status', 'tabpanel', 'doc-abstract', 'doc-acknowledgments', 'doc-afterword', 'doc-appendix', 'doc-bibliography', 'doc-chapter', 'doc-colophon', 'doc-conclusion', 'doc-credit', 'doc-credits', 'doc-dedication', 'doc-endnotes', 'doc-epigraph', 'doc-epilogue', 'doc-errata', 'doc-example', 'doc-foreword', 'doc-glossary', 'doc-index', 'doc-introduction', 'doc-notice', 'doc-pagelist', 'doc-part', 'doc-preface', 'doc-prologue', 'doc-pullquote', 'doc-qna', 'doc-toc' ], -1 15824 shadowRoot: true -1 15825 }, -1 15826 select: { -1 15827 variant: { -1 15828 combobox: { -1 15829 matches: { -1 15830 attributes: { -1 15831 multiple: null, -1 15832 size: [ null, '1' ] -1 15833 } -1 15834 }, -1 15835 allowedRoles: [ 'menu' ] -1 15836 }, -1 15837 default: { -1 15838 allowedRoles: false -1 15839 } -1 15840 }, -1 15841 contentTypes: [ 'interactive', 'phrasing', 'flow' ], -1 15842 implicitAttrs: { -1 15843 'aria-valuenow': '' -1 15844 }, -1 15845 namingMethods: [ 'labelText' ] -1 15846 }, -1 15847 slot: { -1 15848 contentTypes: [ 'phrasing', 'flow' ], -1 15849 allowedRoles: false, -1 15850 noAriaAttrs: true -1 15851 }, -1 15852 small: { -1 15853 contentTypes: [ 'phrasing', 'flow' ], -1 15854 allowedRoles: true -1 15855 }, -1 15856 source: { -1 15857 allowedRoles: false, -1 15858 noAriaAttrs: true -1 15859 }, -1 15860 span: { -1 15861 contentTypes: [ 'phrasing', 'flow' ], -1 15862 allowedRoles: true, -1 15863 shadowRoot: true -1 15864 }, -1 15865 strong: { -1 15866 contentTypes: [ 'phrasing', 'flow' ], -1 15867 allowedRoles: true -1 15868 }, -1 15869 style: { -1 15870 allowedRoles: false, -1 15871 noAriaAttrs: true -1 15872 }, -1 15873 svg: { -1 15874 contentTypes: [ 'embedded', 'phrasing', 'flow' ], -1 15875 allowedRoles: true, -1 15876 chromiumRole: 'SVGRoot', -1 15877 namingMethods: [ 'svgTitleText' ] -1 15878 }, -1 15879 sub: { -1 15880 contentTypes: [ 'phrasing', 'flow' ], -1 15881 allowedRoles: true -1 15882 }, -1 15883 summary: { -1 15884 allowedRoles: false, -1 15885 namingMethods: [ 'subtreeText' ] -1 15886 }, -1 15887 sup: { -1 15888 contentTypes: [ 'phrasing', 'flow' ], -1 15889 allowedRoles: true -1 15890 }, -1 15891 table: { -1 15892 contentTypes: [ 'flow' ], -1 15893 allowedRoles: true, -1 15894 namingMethods: [ 'tableCaptionText', 'tableSummaryText' ] -1 15895 }, -1 15896 tbody: { -1 15897 allowedRoles: true -1 15898 }, -1 15899 template: { -1 15900 contentTypes: [ 'phrasing', 'flow' ], -1 15901 allowedRoles: false, -1 15902 noAriaAttrs: true -1 15903 }, -1 15904 textarea: { -1 15905 contentTypes: [ 'interactive', 'phrasing', 'flow' ], -1 15906 allowedRoles: false, -1 15907 implicitAttrs: { -1 15908 'aria-valuenow': '', -1 15909 'aria-multiline': 'true' -1 15910 }, -1 15911 namingMethods: [ 'labelText', 'placeholderText' ] -1 15912 }, -1 15913 tfoot: { -1 15914 allowedRoles: true -1 15915 }, -1 15916 thead: { -1 15917 allowedRoles: true -1 15918 }, -1 15919 time: { -1 15920 contentTypes: [ 'phrasing', 'flow' ], -1 15921 allowedRoles: true -1 15922 }, -1 15923 title: { -1 15924 allowedRoles: false, -1 15925 noAriaAttrs: true -1 15926 }, -1 15927 td: { -1 15928 allowedRoles: true -1 15929 }, -1 15930 th: { -1 15931 allowedRoles: true -1 15932 }, -1 15933 tr: { -1 15934 allowedRoles: true -1 15935 }, -1 15936 track: { -1 15937 allowedRoles: false, -1 15938 noAriaAttrs: true -1 15939 }, -1 15940 u: { -1 15941 contentTypes: [ 'phrasing', 'flow' ], -1 15942 allowedRoles: true -1 15943 }, -1 15944 ul: { -1 15945 contentTypes: [ 'flow' ], -1 15946 allowedRoles: [ 'directory', 'group', 'listbox', 'menu', 'menubar', 'none', 'presentation', 'radiogroup', 'tablist', 'toolbar', 'tree' ] -1 15947 }, -1 15948 var: { -1 15949 contentTypes: [ 'phrasing', 'flow' ], -1 15950 allowedRoles: true -1 15951 }, -1 15952 video: { -1 15953 variant: { -1 15954 controls: { -1 15955 matches: '[controls]', -1 15956 contentTypes: [ 'interactive', 'embedded', 'phrasing', 'flow' ] -1 15957 }, -1 15958 default: { -1 15959 contentTypes: [ 'embedded', 'phrasing', 'flow' ] -1 15960 } -1 15961 }, -1 15962 allowedRoles: [ 'application' ], -1 15963 chromiumRole: 'video' -1 15964 }, -1 15965 wbr: { -1 15966 contentTypes: [ 'phrasing', 'flow' ], -1 15967 allowedRoles: [ 'presentation', 'none' ] -1 15968 } -1 15969 }; -1 15970 var html_elms_default = htmlElms; -1 15971 var cssColors = { -1 15972 aliceblue: [ 240, 248, 255 ], -1 15973 antiquewhite: [ 250, 235, 215 ], -1 15974 aqua: [ 0, 255, 255 ], -1 15975 aquamarine: [ 127, 255, 212 ], -1 15976 azure: [ 240, 255, 255 ], -1 15977 beige: [ 245, 245, 220 ], -1 15978 bisque: [ 255, 228, 196 ], -1 15979 black: [ 0, 0, 0 ], -1 15980 blanchedalmond: [ 255, 235, 205 ], -1 15981 blue: [ 0, 0, 255 ], -1 15982 blueviolet: [ 138, 43, 226 ], -1 15983 brown: [ 165, 42, 42 ], -1 15984 burlywood: [ 222, 184, 135 ], -1 15985 cadetblue: [ 95, 158, 160 ], -1 15986 chartreuse: [ 127, 255, 0 ], -1 15987 chocolate: [ 210, 105, 30 ], -1 15988 coral: [ 255, 127, 80 ], -1 15989 cornflowerblue: [ 100, 149, 237 ], -1 15990 cornsilk: [ 255, 248, 220 ], -1 15991 crimson: [ 220, 20, 60 ], -1 15992 cyan: [ 0, 255, 255 ], -1 15993 darkblue: [ 0, 0, 139 ], -1 15994 darkcyan: [ 0, 139, 139 ], -1 15995 darkgoldenrod: [ 184, 134, 11 ], -1 15996 darkgray: [ 169, 169, 169 ], -1 15997 darkgreen: [ 0, 100, 0 ], -1 15998 darkgrey: [ 169, 169, 169 ], -1 15999 darkkhaki: [ 189, 183, 107 ], -1 16000 darkmagenta: [ 139, 0, 139 ], -1 16001 darkolivegreen: [ 85, 107, 47 ], -1 16002 darkorange: [ 255, 140, 0 ], -1 16003 darkorchid: [ 153, 50, 204 ], -1 16004 darkred: [ 139, 0, 0 ], -1 16005 darksalmon: [ 233, 150, 122 ], -1 16006 darkseagreen: [ 143, 188, 143 ], -1 16007 darkslateblue: [ 72, 61, 139 ], -1 16008 darkslategray: [ 47, 79, 79 ], -1 16009 darkslategrey: [ 47, 79, 79 ], -1 16010 darkturquoise: [ 0, 206, 209 ], -1 16011 darkviolet: [ 148, 0, 211 ], -1 16012 deeppink: [ 255, 20, 147 ], -1 16013 deepskyblue: [ 0, 191, 255 ], -1 16014 dimgray: [ 105, 105, 105 ], -1 16015 dimgrey: [ 105, 105, 105 ], -1 16016 dodgerblue: [ 30, 144, 255 ], -1 16017 firebrick: [ 178, 34, 34 ], -1 16018 floralwhite: [ 255, 250, 240 ], -1 16019 forestgreen: [ 34, 139, 34 ], -1 16020 fuchsia: [ 255, 0, 255 ], -1 16021 gainsboro: [ 220, 220, 220 ], -1 16022 ghostwhite: [ 248, 248, 255 ], -1 16023 gold: [ 255, 215, 0 ], -1 16024 goldenrod: [ 218, 165, 32 ], -1 16025 gray: [ 128, 128, 128 ], -1 16026 green: [ 0, 128, 0 ], -1 16027 greenyellow: [ 173, 255, 47 ], -1 16028 grey: [ 128, 128, 128 ], -1 16029 honeydew: [ 240, 255, 240 ], -1 16030 hotpink: [ 255, 105, 180 ], -1 16031 indianred: [ 205, 92, 92 ], -1 16032 indigo: [ 75, 0, 130 ], -1 16033 ivory: [ 255, 255, 240 ], -1 16034 khaki: [ 240, 230, 140 ], -1 16035 lavender: [ 230, 230, 250 ], -1 16036 lavenderblush: [ 255, 240, 245 ], -1 16037 lawngreen: [ 124, 252, 0 ], -1 16038 lemonchiffon: [ 255, 250, 205 ], -1 16039 lightblue: [ 173, 216, 230 ], -1 16040 lightcoral: [ 240, 128, 128 ], -1 16041 lightcyan: [ 224, 255, 255 ], -1 16042 lightgoldenrodyellow: [ 250, 250, 210 ], -1 16043 lightgray: [ 211, 211, 211 ], -1 16044 lightgreen: [ 144, 238, 144 ], -1 16045 lightgrey: [ 211, 211, 211 ], -1 16046 lightpink: [ 255, 182, 193 ], -1 16047 lightsalmon: [ 255, 160, 122 ], -1 16048 lightseagreen: [ 32, 178, 170 ], -1 16049 lightskyblue: [ 135, 206, 250 ], -1 16050 lightslategray: [ 119, 136, 153 ], -1 16051 lightslategrey: [ 119, 136, 153 ], -1 16052 lightsteelblue: [ 176, 196, 222 ], -1 16053 lightyellow: [ 255, 255, 224 ], -1 16054 lime: [ 0, 255, 0 ], -1 16055 limegreen: [ 50, 205, 50 ], -1 16056 linen: [ 250, 240, 230 ], -1 16057 magenta: [ 255, 0, 255 ], -1 16058 maroon: [ 128, 0, 0 ], -1 16059 mediumaquamarine: [ 102, 205, 170 ], -1 16060 mediumblue: [ 0, 0, 205 ], -1 16061 mediumorchid: [ 186, 85, 211 ], -1 16062 mediumpurple: [ 147, 112, 219 ], -1 16063 mediumseagreen: [ 60, 179, 113 ], -1 16064 mediumslateblue: [ 123, 104, 238 ], -1 16065 mediumspringgreen: [ 0, 250, 154 ], -1 16066 mediumturquoise: [ 72, 209, 204 ], -1 16067 mediumvioletred: [ 199, 21, 133 ], -1 16068 midnightblue: [ 25, 25, 112 ], -1 16069 mintcream: [ 245, 255, 250 ], -1 16070 mistyrose: [ 255, 228, 225 ], -1 16071 moccasin: [ 255, 228, 181 ], -1 16072 navajowhite: [ 255, 222, 173 ], -1 16073 navy: [ 0, 0, 128 ], -1 16074 oldlace: [ 253, 245, 230 ], -1 16075 olive: [ 128, 128, 0 ], -1 16076 olivedrab: [ 107, 142, 35 ], -1 16077 orange: [ 255, 165, 0 ], -1 16078 orangered: [ 255, 69, 0 ], -1 16079 orchid: [ 218, 112, 214 ], -1 16080 palegoldenrod: [ 238, 232, 170 ], -1 16081 palegreen: [ 152, 251, 152 ], -1 16082 paleturquoise: [ 175, 238, 238 ], -1 16083 palevioletred: [ 219, 112, 147 ], -1 16084 papayawhip: [ 255, 239, 213 ], -1 16085 peachpuff: [ 255, 218, 185 ], -1 16086 peru: [ 205, 133, 63 ], -1 16087 pink: [ 255, 192, 203 ], -1 16088 plum: [ 221, 160, 221 ], -1 16089 powderblue: [ 176, 224, 230 ], -1 16090 purple: [ 128, 0, 128 ], -1 16091 rebeccapurple: [ 102, 51, 153 ], -1 16092 red: [ 255, 0, 0 ], -1 16093 rosybrown: [ 188, 143, 143 ], -1 16094 royalblue: [ 65, 105, 225 ], -1 16095 saddlebrown: [ 139, 69, 19 ], -1 16096 salmon: [ 250, 128, 114 ], -1 16097 sandybrown: [ 244, 164, 96 ], -1 16098 seagreen: [ 46, 139, 87 ], -1 16099 seashell: [ 255, 245, 238 ], -1 16100 sienna: [ 160, 82, 45 ], -1 16101 silver: [ 192, 192, 192 ], -1 16102 skyblue: [ 135, 206, 235 ], -1 16103 slateblue: [ 106, 90, 205 ], -1 16104 slategray: [ 112, 128, 144 ], -1 16105 slategrey: [ 112, 128, 144 ], -1 16106 snow: [ 255, 250, 250 ], -1 16107 springgreen: [ 0, 255, 127 ], -1 16108 steelblue: [ 70, 130, 180 ], -1 16109 tan: [ 210, 180, 140 ], -1 16110 teal: [ 0, 128, 128 ], -1 16111 thistle: [ 216, 191, 216 ], -1 16112 tomato: [ 255, 99, 71 ], -1 16113 turquoise: [ 64, 224, 208 ], -1 16114 violet: [ 238, 130, 238 ], -1 16115 wheat: [ 245, 222, 179 ], -1 16116 white: [ 255, 255, 255 ], -1 16117 whitesmoke: [ 245, 245, 245 ], -1 16118 yellow: [ 255, 255, 0 ], -1 16119 yellowgreen: [ 154, 205, 50 ] -1 16120 }; -1 16121 var css_colors_default = cssColors; -1 16122 var originals = { -1 16123 ariaAttrs: aria_attrs_default, -1 16124 ariaRoles: _extends({}, aria_roles_default, dpub_roles_default, graphics_roles_default), -1 16125 htmlElms: html_elms_default, -1 16126 cssColors: css_colors_default -1 16127 }; -1 16128 var standards = _extends({}, originals); -1 16129 function configureStandards(config) { -1 16130 Object.keys(standards).forEach(function(propName) { -1 16131 if (config[propName]) { -1 16132 standards[propName] = deep_merge_default(standards[propName], config[propName]); 15347 16133 }15348 -1 clientRects.push.apply(clientRects, _toConsumableArray(filterHiddenRects(contentRects, overflowHiddenNodes)));15349 -1 });15350 -1 return clientRects.length ? clientRects : filterHiddenRects([ nodeRect ], overflowHiddenNodes);15351 -1 });15352 -1 var get_visible_child_text_rects_default = getVisibleChildTextRects;15353 -1 function getContentRects(node) {15354 -1 var range2 = document.createRange();15355 -1 range2.selectNodeContents(node);15356 -1 return Array.from(range2.getClientRects());15357 -1 }15358 -1 function isOutsideNodeBounds(rects, nodeRect) {15359 -1 return rects.some(function(rect) {15360 -1 var centerPoint = _getRectCenter(rect);15361 -1 return !_isPointInRect(centerPoint, nodeRect);15362 16134 }); 15363 16135 }15364 -1 function filterHiddenRects(contentRects, overflowHiddenNodes) {15365 -1 var visibleRects = [];15366 -1 contentRects.forEach(function(contentRect) {15367 -1 if (contentRect.width < 1 || contentRect.height < 1) {15368 -1 return;15369 -1 }15370 -1 var visibleRect = overflowHiddenNodes.reduce(function(rect, overflowNode) {15371 -1 return rect && _getIntersectionRect(rect, overflowNode.boundingClientRect);15372 -1 }, contentRect);15373 -1 if (visibleRect) {15374 -1 visibleRects.push(visibleRect);15375 -1 }-1 16136 function resetStandards() { -1 16137 Object.keys(standards).forEach(function(propName) { -1 16138 standards[propName] = originals[propName]; 15376 16139 });15377 -1 return visibleRects;15378 16140 }15379 -1 function getTextElementStack(node) {15380 -1 _createGrid();15381 -1 var vNode = get_node_from_tree_default(node);15382 -1 var grid = vNode._grid;15383 -1 if (!grid) {15384 -1 return [];15385 -1 }15386 -1 var clientRects = get_visible_child_text_rects_default(node);15387 -1 return clientRects.map(function(rect) {15388 -1 return getRectStack(grid, rect);15389 -1 });-1 16141 var standards_default = standards; -1 16142 function isUnsupportedRole(role) { -1 16143 var roleDefinition = standards_default.ariaRoles[role]; -1 16144 return roleDefinition ? !!roleDefinition.unsupported : false; 15390 16145 }15391 -1 var get_text_element_stack_default = getTextElementStack;15392 -1 var visualRoles = [ 'checkbox', 'img', 'meter', 'progressbar', 'scrollbar', 'radio', 'slider', 'spinbutton', 'textbox' ];15393 -1 function isVisualContent(el) {15394 -1 var _nodeLookup19 = _nodeLookup(el), vNode = _nodeLookup19.vNode;15395 -1 var role = axe.commons.aria.getExplicitRole(vNode);15396 -1 if (role) {15397 -1 return visualRoles.indexOf(role) !== -1;15398 -1 }15399 -1 switch (vNode.props.nodeName) {15400 -1 case 'img':15401 -1 case 'iframe':15402 -1 case 'object':15403 -1 case 'video':15404 -1 case 'audio':15405 -1 case 'canvas':15406 -1 case 'svg':15407 -1 case 'math':15408 -1 case 'button':15409 -1 case 'select':15410 -1 case 'textarea':15411 -1 case 'keygen':15412 -1 case 'progress':15413 -1 case 'meter':15414 -1 return true;15415 -115416 -1 case 'input':15417 -1 return vNode.props.type !== 'hidden';15418 -115419 -1 default:-1 16146 var is_unsupported_role_default = isUnsupportedRole; -1 16147 function isValidRole(role) { -1 16148 var _ref40 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, allowAbstract = _ref40.allowAbstract, _ref40$flagUnsupporte = _ref40.flagUnsupported, flagUnsupported = _ref40$flagUnsupporte === void 0 ? false : _ref40$flagUnsupporte; -1 16149 var roleDefinition = standards_default.ariaRoles[role]; -1 16150 var isRoleUnsupported = is_unsupported_role_default(role); -1 16151 if (!roleDefinition || flagUnsupported && isRoleUnsupported) { 15420 16152 return false; 15421 16153 } -1 16154 return allowAbstract ? true : roleDefinition.type !== 'abstract'; 15422 16155 }15423 -1 var is_visual_content_default = isVisualContent;15424 -1 var hiddenTextElms = [ 'head', 'title', 'template', 'script', 'style', 'iframe', 'object', 'video', 'audio', 'noscript' ];15425 -1 function hasChildTextNodes(elm) {15426 -1 if (hiddenTextElms.includes(elm.props.nodeName)) {15427 -1 return false;-1 16156 var is_valid_role_default = isValidRole; -1 16157 function getExplicitRole(vNode) { -1 16158 var _ref41 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, fallback = _ref41.fallback, abstracts = _ref41.abstracts, dpub = _ref41.dpub; -1 16159 vNode = vNode instanceof abstract_virtual_node_default ? vNode : get_node_from_tree_default(vNode); -1 16160 if (vNode.props.nodeType !== 1) { -1 16161 return null; 15428 16162 }15429 -1 return elm.children.some(function(_ref37) {15430 -1 var props = _ref37.props;15431 -1 return props.nodeType === 3 && props.nodeValue.trim();-1 16163 var roleAttr = (vNode.attr('role') || '').trim().toLowerCase(); -1 16164 var roleList = fallback ? token_list_default(roleAttr) : [ roleAttr ]; -1 16165 var firstValidRole = roleList.find(function(role) { -1 16166 if (!dpub && role.substr(0, 4) === 'doc-') { -1 16167 return false; -1 16168 } -1 16169 return is_valid_role_default(role, { -1 16170 allowAbstract: abstracts -1 16171 }); 15432 16172 }); -1 16173 return firstValidRole || null; 15433 16174 }15434 -1 function hasContentVirtual(elm, noRecursion, ignoreAria) {15435 -1 return hasChildTextNodes(elm) || is_visual_content_default(elm.actualNode) || !ignoreAria && !!label_virtual_default(elm) || !noRecursion && elm.children.some(function(child) {15436 -1 return child.actualNode.nodeType === 1 && hasContentVirtual(child);-1 16175 var get_explicit_role_default = getExplicitRole; -1 16176 function getElementsByContentType(type2) { -1 16177 return Object.keys(standards_default.htmlElms).filter(function(nodeName2) { -1 16178 var elm = standards_default.htmlElms[nodeName2]; -1 16179 if (elm.contentTypes) { -1 16180 return elm.contentTypes.includes(type2); -1 16181 } -1 16182 if (!elm.variant) { -1 16183 return false; -1 16184 } -1 16185 if (elm.variant['default'] && elm.variant['default'].contentTypes) { -1 16186 return elm.variant['default'].contentTypes.includes(type2); -1 16187 } -1 16188 return false; 15437 16189 }); 15438 16190 }15439 -1 var has_content_virtual_default = hasContentVirtual;15440 -1 function hasContent(elm, noRecursion, ignoreAria) {15441 -1 elm = get_node_from_tree_default(elm);15442 -1 return has_content_virtual_default(elm, noRecursion, ignoreAria);15443 -1 }15444 -1 var has_content_default = hasContent;15445 -1 function _hasLangText(virtualNode) {15446 -1 if (typeof virtualNode.children === 'undefined' || hasChildTextNodes(virtualNode)) {15447 -1 return true;15448 -1 }15449 -1 if (virtualNode.props.nodeType === 1 && is_visual_content_default(virtualNode)) {15450 -1 return !!axe.commons.text.accessibleTextVirtual(virtualNode);15451 -1 }15452 -1 return virtualNode.children.some(function(child) {15453 -1 return !child.attr('lang') && _hasLangText(child) && !_isHiddenForEveryone(child);-1 16191 var get_elements_by_content_type_default = getElementsByContentType; -1 16192 function getGlobalAriaAttrs() { -1 16193 return cache_default.get('globalAriaAttrs', function() { -1 16194 return Object.keys(standards_default.ariaAttrs).filter(function(attrName) { -1 16195 return standards_default.ariaAttrs[attrName].global; -1 16196 }); 15454 16197 }); 15455 16198 }15456 -1 function insertedIntoFocusOrder(el) {15457 -1 var tabIndex = parse_tabindex_default(el.getAttribute('tabindex'));15458 -1 return tabIndex > -1 && _isFocusable(el) && !is_natively_focusable_default(el);-1 16199 var get_global_aria_attrs_default = getGlobalAriaAttrs; -1 16200 function toGrid(node) { -1 16201 var table = []; -1 16202 var rows = node.rows; -1 16203 for (var i = 0, rowLength = rows.length; i < rowLength; i++) { -1 16204 var cells = rows[i].cells; -1 16205 table[i] = table[i] || []; -1 16206 var columnIndex = 0; -1 16207 for (var j = 0, cellLength = cells.length; j < cellLength; j++) { -1 16208 for (var colSpan = 0; colSpan < cells[j].colSpan; colSpan++) { -1 16209 var rowspanAttr = cells[j].getAttribute('rowspan'); -1 16210 var rowspanValue = parseInt(rowspanAttr) === 0 || cells[j].rowspan === 0 ? rows.length : cells[j].rowSpan; -1 16211 for (var rowSpan = 0; rowSpan < rowspanValue; rowSpan++) { -1 16212 table[i + rowSpan] = table[i + rowSpan] || []; -1 16213 while (table[i + rowSpan][columnIndex]) { -1 16214 columnIndex++; -1 16215 } -1 16216 table[i + rowSpan][columnIndex] = cells[j]; -1 16217 } -1 16218 columnIndex++; -1 16219 } -1 16220 } -1 16221 } -1 16222 return table; 15459 16223 }15460 -1 var inserted_into_focus_order_default = insertedIntoFocusOrder;15461 -1 function isHiddenWithCSS(el, descendentVisibilityValue) {15462 -1 var _nodeLookup20 = _nodeLookup(el), vNode = _nodeLookup20.vNode, domNode = _nodeLookup20.domNode;15463 -1 if (!vNode) {15464 -1 return _isHiddenWithCSS(domNode, descendentVisibilityValue);-1 16224 var to_grid_default = memoize_default(toGrid); -1 16225 function getCellPosition(cell, tableGrid) { -1 16226 var rowIndex, index; -1 16227 if (!tableGrid) { -1 16228 tableGrid = to_grid_default(find_up_default(cell, 'table')); 15465 16229 }15466 -1 if (vNode._isHiddenWithCSS === void 0) {15467 -1 vNode._isHiddenWithCSS = _isHiddenWithCSS(domNode, descendentVisibilityValue);-1 16230 for (rowIndex = 0; rowIndex < tableGrid.length; rowIndex++) { -1 16231 if (tableGrid[rowIndex]) { -1 16232 index = tableGrid[rowIndex].indexOf(cell); -1 16233 if (index !== -1) { -1 16234 return { -1 16235 x: index, -1 16236 y: rowIndex -1 16237 }; -1 16238 } -1 16239 } 15468 16240 }15469 -1 return vNode._isHiddenWithCSS;15470 16241 }15471 -1 function _isHiddenWithCSS(el, descendentVisibilityValue) {15472 -1 if (el.nodeType === 9) {15473 -1 return false;15474 -1 }15475 -1 if (el.nodeType === 11) {15476 -1 el = el.host;-1 16242 var get_cell_position_default = memoize_default(getCellPosition); -1 16243 function _getScope(el) { -1 16244 var _nodeLookup0 = _nodeLookup(el), vNode = _nodeLookup0.vNode, cell = _nodeLookup0.domNode; -1 16245 var scope = vNode.attr('scope'); -1 16246 var role = get_explicit_role_default(vNode); -1 16247 if (![ 'td', 'th' ].includes(vNode.props.nodeName)) { -1 16248 throw new TypeError('Expected TD or TH element'); 15477 16249 }15478 -1 if ([ 'STYLE', 'SCRIPT' ].includes(el.nodeName.toUpperCase())) {-1 16250 if (role === 'columnheader') { -1 16251 return 'col'; -1 16252 } else if (role === 'rowheader') { -1 16253 return 'row'; -1 16254 } else if (scope === 'col' || scope === 'row') { -1 16255 return scope; -1 16256 } else if (vNode.props.nodeName !== 'th') { 15479 16257 return false; -1 16258 } else if (!vNode.actualNode) { -1 16259 return 'auto'; 15480 16260 }15481 -1 var style = window.getComputedStyle(el, null);15482 -1 if (!style) {15483 -1 throw new Error('Style does not exist for the given element.');15484 -1 }15485 -1 var displayValue = style.getPropertyValue('display');15486 -1 if (displayValue === 'none') {15487 -1 return true;15488 -1 }15489 -1 var HIDDEN_VISIBILITY_VALUES = [ 'hidden', 'collapse' ];15490 -1 var visibilityValue = style.getPropertyValue('visibility');15491 -1 if (HIDDEN_VISIBILITY_VALUES.includes(visibilityValue) && !descendentVisibilityValue) {15492 -1 return true;15493 -1 }15494 -1 if (HIDDEN_VISIBILITY_VALUES.includes(visibilityValue) && descendentVisibilityValue && HIDDEN_VISIBILITY_VALUES.includes(descendentVisibilityValue)) {15495 -1 return true;-1 16261 var tableGrid = to_grid_default(find_up_default(cell, 'table')); -1 16262 var pos = get_cell_position_default(cell, tableGrid); -1 16263 var headerRow = tableGrid[pos.y].every(function(node) { -1 16264 return node.nodeName.toUpperCase() === 'TH'; -1 16265 }); -1 16266 if (headerRow) { -1 16267 return 'col'; 15496 16268 }15497 -1 var parent = get_composed_parent_default(el);15498 -1 if (parent && !HIDDEN_VISIBILITY_VALUES.includes(visibilityValue)) {15499 -1 return isHiddenWithCSS(parent, visibilityValue);-1 16269 var headerCol = tableGrid.map(function(col) { -1 16270 return col[pos.x]; -1 16271 }).every(function(node) { -1 16272 return node && node.nodeName.toUpperCase() === 'TH'; -1 16273 }); -1 16274 if (headerCol) { -1 16275 return 'row'; 15500 16276 }15501 -1 return false;-1 16277 return 'auto'; 15502 16278 }15503 -1 var is_hidden_with_css_default = isHiddenWithCSS;15504 -1 function isHTML5(doc) {15505 -1 var node = doc.doctype;15506 -1 if (node === null) {15507 -1 return false;15508 -1 }15509 -1 return node.name === 'html' && !node.publicId && !node.systemId;-1 16279 function isColumnHeader(element) { -1 16280 return [ 'col', 'auto' ].indexOf(_getScope(element)) !== -1; 15510 16281 }15511 -1 var is_html5_default = isHTML5;15512 -1 function getRoleType(role) {15513 -1 var _window3;15514 -1 if (role instanceof abstract_virtual_node_default || (_window3 = window) !== null && _window3 !== void 0 && _window3.Node && role instanceof window.Node) {15515 -1 role = axe.commons.aria.getRole(role);15516 -1 }15517 -1 var roleDef = standards_default.ariaRoles[role];15518 -1 return (roleDef === null || roleDef === void 0 ? void 0 : roleDef.type) || null;-1 16282 var is_column_header_default = isColumnHeader; -1 16283 function isRowHeader(cell) { -1 16284 return [ 'row', 'auto' ].includes(_getScope(cell)); 15519 16285 }15520 -1 var get_role_type_default = getRoleType;15521 -1 function walkDomNode(node, functor) {15522 -1 if (functor(node.actualNode) !== false) {15523 -1 node.children.forEach(function(child) {15524 -1 return walkDomNode(child, functor);15525 -1 });-1 16286 var is_row_header_default = isRowHeader; -1 16287 function sanitize(str) { -1 16288 if (!str) { -1 16289 return ''; 15526 16290 } -1 16291 return str.replace(/\r\n/g, '\n').replace(/\u00A0/g, ' ').replace(/[\s]{2,}/g, ' ').trim(); 15527 16292 }15528 -1 var blockLike = [ 'block', 'list-item', 'table', 'flex', 'grid', 'inline-block' ];15529 -1 function isBlock(elm) {15530 -1 var display2 = window.getComputedStyle(elm).getPropertyValue('display');15531 -1 return blockLike.includes(display2) || display2.substr(0, 6) === 'table-';15532 -1 }15533 -1 function getBlockParent(node) {15534 -1 var parentBlock = get_composed_parent_default(node);15535 -1 while (parentBlock && !isBlock(parentBlock)) {15536 -1 parentBlock = get_composed_parent_default(parentBlock);15537 -1 }15538 -1 return get_node_from_tree_default(parentBlock);-1 16293 var sanitize_default = sanitize; -1 16294 var getSectioningContentSelector = function getSectioningContentSelector() { -1 16295 return cache_default.get('sectioningContentSelector', function() { -1 16296 return get_elements_by_content_type_default('sectioning').map(function(nodeName2) { -1 16297 return ''.concat(nodeName2, ':not([role])'); -1 16298 }).join(', ') + ' , [role=article], [role=complementary], [role=navigation], [role=region]'; -1 16299 }); -1 16300 }; -1 16301 var getSectioningContentPlusMainSelector = function getSectioningContentPlusMainSelector() { -1 16302 return cache_default.get('sectioningContentPlusMainSelector', function() { -1 16303 return getSectioningContentSelector() + ' , main:not([role]), [role=main]'; -1 16304 }); -1 16305 }; -1 16306 function hasAccessibleName(vNode) { -1 16307 var _ref42 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, _ref42$checkTitle = _ref42.checkTitle, checkTitle = _ref42$checkTitle === void 0 ? false : _ref42$checkTitle; -1 16308 return !!(sanitize_default(arialabelledby_text_default(vNode)) || sanitize_default(_arialabelText(vNode)) || checkTitle && (vNode === null || vNode === void 0 ? void 0 : vNode.props.nodeType) === 1 && sanitize_default(vNode.attr('title'))); 15539 16309 }15540 -1 function isInTextBlock(node, options) {15541 -1 if (isBlock(node)) {15542 -1 return false;15543 -1 }15544 -1 var virtualParent = getBlockParent(node);15545 -1 var parentText = '';15546 -1 var widgetText = '';15547 -1 var inBrBlock = 0;15548 -1 walkDomNode(virtualParent, function(currNode) {15549 -1 if (inBrBlock === 2) {15550 -1 return false;-1 16310 var implicitHtmlRoles = { -1 16311 a: function a(vNode) { -1 16312 return vNode.hasAttr('href') ? 'link' : null; -1 16313 }, -1 16314 area: function area(vNode) { -1 16315 return vNode.hasAttr('href') ? 'link' : null; -1 16316 }, -1 16317 article: 'article', -1 16318 aside: function aside(vNode) { -1 16319 if (closest_default(vNode.parent, getSectioningContentSelector()) && !hasAccessibleName(vNode, { -1 16320 checkTitle: true -1 16321 })) { -1 16322 return null; 15551 16323 }15552 -1 if (currNode.nodeType === 3) {15553 -1 parentText += currNode.nodeValue;-1 16324 return 'complementary'; -1 16325 }, -1 16326 body: 'document', -1 16327 button: 'button', -1 16328 datalist: 'listbox', -1 16329 dd: 'definition', -1 16330 dfn: 'term', -1 16331 details: 'group', -1 16332 dialog: 'dialog', -1 16333 dt: 'term', -1 16334 fieldset: 'group', -1 16335 figure: 'figure', -1 16336 footer: function footer(vNode) { -1 16337 var sectioningElement = closest_default(vNode, getSectioningContentPlusMainSelector()); -1 16338 return !sectioningElement ? 'contentinfo' : null; -1 16339 }, -1 16340 form: function form(vNode) { -1 16341 return hasAccessibleName(vNode) ? 'form' : null; -1 16342 }, -1 16343 h1: 'heading', -1 16344 h2: 'heading', -1 16345 h3: 'heading', -1 16346 h4: 'heading', -1 16347 h5: 'heading', -1 16348 h6: 'heading', -1 16349 header: function header(vNode) { -1 16350 var sectioningElement = closest_default(vNode, getSectioningContentPlusMainSelector()); -1 16351 return !sectioningElement ? 'banner' : null; -1 16352 }, -1 16353 hr: 'separator', -1 16354 img: function img(vNode) { -1 16355 var emptyAlt = vNode.hasAttr('alt') && !vNode.attr('alt'); -1 16356 var hasGlobalAria = get_global_aria_attrs_default().find(function(attr) { -1 16357 return vNode.hasAttr(attr); -1 16358 }); -1 16359 return emptyAlt && !hasGlobalAria && !_isFocusable(vNode) ? 'presentation' : 'img'; -1 16360 }, -1 16361 input: function input(vNode) { -1 16362 var suggestionsSourceElement; -1 16363 if (vNode.hasAttr('list')) { -1 16364 var listElement = idrefs_default(vNode.actualNode, 'list').filter(function(node) { -1 16365 return !!node; -1 16366 })[0]; -1 16367 suggestionsSourceElement = listElement && listElement.nodeName.toLowerCase() === 'datalist'; 15554 16368 }15555 -1 if (currNode.nodeType !== 1) {15556 -1 return;-1 16369 switch (vNode.props.type) { -1 16370 case 'checkbox': -1 16371 return 'checkbox'; -1 16372 -1 16373 case 'number': -1 16374 return 'spinbutton'; -1 16375 -1 16376 case 'radio': -1 16377 return 'radio'; -1 16378 -1 16379 case 'range': -1 16380 return 'slider'; -1 16381 -1 16382 case 'search': -1 16383 return !suggestionsSourceElement ? 'searchbox' : 'combobox'; -1 16384 -1 16385 case 'button': -1 16386 case 'image': -1 16387 case 'reset': -1 16388 case 'submit': -1 16389 return 'button'; -1 16390 -1 16391 case 'text': -1 16392 case 'tel': -1 16393 case 'url': -1 16394 case 'email': -1 16395 case '': -1 16396 return !suggestionsSourceElement ? 'textbox' : 'combobox'; -1 16397 -1 16398 default: -1 16399 return 'textbox'; 15557 16400 }15558 -1 var nodeName2 = (currNode.nodeName || '').toUpperCase();15559 -1 if (currNode === node) {15560 -1 inBrBlock = 1;-1 16401 }, -1 16402 li: 'listitem', -1 16403 main: 'main', -1 16404 math: 'math', -1 16405 menu: 'list', -1 16406 meter: 'meter', -1 16407 nav: 'navigation', -1 16408 ol: 'list', -1 16409 optgroup: 'group', -1 16410 option: 'option', -1 16411 output: 'status', -1 16412 progress: 'progressbar', -1 16413 search: 'search', -1 16414 section: function section(vNode) { -1 16415 return hasAccessibleName(vNode) ? 'region' : null; -1 16416 }, -1 16417 select: function select(vNode) { -1 16418 return vNode.hasAttr('multiple') || parseInt(vNode.attr('size')) > 1 ? 'listbox' : 'combobox'; -1 16419 }, -1 16420 summary: 'button', -1 16421 table: 'table', -1 16422 tbody: 'rowgroup', -1 16423 td: function td(vNode) { -1 16424 var table = closest_default(vNode, 'table'); -1 16425 var role = get_explicit_role_default(table); -1 16426 return [ 'grid', 'treegrid' ].includes(role) ? 'gridcell' : 'cell'; -1 16427 }, -1 16428 textarea: 'textbox', -1 16429 tfoot: 'rowgroup', -1 16430 th: function th(vNode) { -1 16431 if (is_column_header_default(vNode)) { -1 16432 return 'columnheader'; 15561 16433 }15562 -1 if ([ 'BR', 'HR' ].includes(nodeName2)) {15563 -1 if (inBrBlock === 0) {15564 -1 parentText = '';15565 -1 widgetText = '';15566 -1 } else {15567 -1 inBrBlock = 2;15568 -1 }15569 -1 } else if (currNode.style.display === 'none' || currNode.style.overflow === 'hidden' || ![ '', null, 'none' ].includes(currNode.style['float']) || ![ '', null, 'relative' ].includes(currNode.style.position)) {15570 -1 return false;15571 -1 } else if (get_role_type_default(currNode) === 'widget') {15572 -1 widgetText += currNode.textContent;15573 -1 return false;-1 16434 if (is_row_header_default(vNode)) { -1 16435 return 'rowheader'; 15574 16436 }15575 -1 });15576 -1 parentText = sanitize_default(parentText);15577 -1 if (options !== null && options !== void 0 && options.noLengthCompare) {15578 -1 return parentText.length !== 0;15579 -1 }15580 -1 widgetText = sanitize_default(widgetText);15581 -1 return parentText.length > widgetText.length;15582 -1 }15583 -1 var is_in_text_block_default = isInTextBlock;15584 -1 function isModalOpen(options) {15585 -1 options = options || {};15586 -1 var modalPercent = options.modalPercent || .75;15587 -1 if (cache_default.get('isModalOpen')) {15588 -1 return cache_default.get('isModalOpen');-1 16437 }, -1 16438 thead: 'rowgroup', -1 16439 tr: 'row', -1 16440 ul: 'list' -1 16441 }; -1 16442 var implicit_html_roles_default = implicitHtmlRoles; -1 16443 function fromPrimative(someString, matcher) { -1 16444 var matcherType = _typeof(matcher); -1 16445 if (Array.isArray(matcher) && typeof someString !== 'undefined') { -1 16446 return matcher.includes(someString); 15589 16447 }15590 -1 var definiteModals = query_selector_all_filter_default(axe._tree[0], 'dialog, [role=dialog], [aria-modal=true]', _isVisibleOnScreen);15591 -1 if (definiteModals.length) {15592 -1 cache_default.set('isModalOpen', true);15593 -1 return true;-1 16448 if (matcherType === 'function') { -1 16449 return !!matcher(someString); 15594 16450 }15595 -1 var viewport = get_viewport_size_default(window);15596 -1 var percentWidth = viewport.width * modalPercent;15597 -1 var percentHeight = viewport.height * modalPercent;15598 -1 var x = (viewport.width - percentWidth) / 2;15599 -1 var y = (viewport.height - percentHeight) / 2;15600 -1 var points = [ {15601 -1 x: x,15602 -1 y: y15603 -1 }, {15604 -1 x: viewport.width - x,15605 -1 y: y15606 -1 }, {15607 -1 x: viewport.width / 2,15608 -1 y: viewport.height / 215609 -1 }, {15610 -1 x: x,15611 -1 y: viewport.height - y15612 -1 }, {15613 -1 x: viewport.width - x,15614 -1 y: viewport.height - y15615 -1 } ];15616 -1 var stacks = points.map(function(point) {15617 -1 return Array.from(document.elementsFromPoint(point.x, point.y));15618 -1 });15619 -1 var _loop4 = function _loop4() {15620 -1 var modalElement = stacks[_i11].find(function(elm) {15621 -1 var style = window.getComputedStyle(elm);15622 -1 return parseInt(style.width, 10) >= percentWidth && parseInt(style.height, 10) >= percentHeight && style.getPropertyValue('pointer-events') !== 'none' && (style.position === 'absolute' || style.position === 'fixed');15623 -1 });15624 -1 if (modalElement && stacks.every(function(stack) {15625 -1 return stack.includes(modalElement);15626 -1 })) {15627 -1 cache_default.set('isModalOpen', true);15628 -1 return {15629 -1 v: true15630 -1 };-1 16451 if (someString !== null && someString !== void 0) { -1 16452 if (matcher instanceof RegExp) { -1 16453 return matcher.test(someString); 15631 16454 }15632 -1 }, _ret;15633 -1 for (var _i11 = 0; _i11 < stacks.length; _i11++) {15634 -1 _ret = _loop4();15635 -1 if (_ret) {15636 -1 return _ret.v;-1 16455 if (/^\/.*\/$/.test(matcher)) { -1 16456 var pattern = matcher.substring(1, matcher.length - 1); -1 16457 return new RegExp(pattern).test(someString); 15637 16458 } 15638 16459 }15639 -1 cache_default.set('isModalOpen', void 0);15640 -1 return void 0;-1 16460 return matcher === someString; 15641 16461 }15642 -1 var is_modal_open_default = isModalOpen;15643 -1 function _isMultiline(domNode) {15644 -1 var margin = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 2;15645 -1 var range2 = domNode.ownerDocument.createRange();15646 -1 range2.setStart(domNode, 0);15647 -1 range2.setEnd(domNode, domNode.childNodes.length);15648 -1 var lastLineEnd = 0;15649 -1 var lineCount = 0;15650 -1 var _iterator5 = _createForOfIteratorHelper(range2.getClientRects()), _step5;15651 -1 try {15652 -1 for (_iterator5.s(); !(_step5 = _iterator5.n()).done; ) {15653 -1 var rect = _step5.value;15654 -1 if (rect.height <= margin) {15655 -1 continue;15656 -1 }15657 -1 if (lastLineEnd > rect.top + margin) {15658 -1 lastLineEnd = Math.max(lastLineEnd, rect.bottom);15659 -1 } else if (lineCount === 0) {15660 -1 lastLineEnd = rect.bottom;15661 -1 lineCount++;15662 -1 } else {15663 -1 return true;15664 -1 }15665 -1 }15666 -1 } catch (err) {15667 -1 _iterator5.e(err);15668 -1 } finally {15669 -1 _iterator5.f();-1 16462 var from_primative_default = fromPrimative; -1 16463 function hasAccessibleName2(vNode, matcher) { -1 16464 return from_primative_default(!!_accessibleTextVirtual(vNode), matcher); -1 16465 } -1 16466 var has_accessible_name_default = hasAccessibleName2; -1 16467 function fromFunction(getValue, matcher) { -1 16468 var matcherType = _typeof(matcher); -1 16469 if (matcherType !== 'object' || Array.isArray(matcher) || matcher instanceof RegExp) { -1 16470 throw new Error('Expect matcher to be an object'); 15670 16471 }15671 -1 return false;-1 16472 return Object.keys(matcher).every(function(propName) { -1 16473 return from_primative_default(getValue(propName), matcher[propName]); -1 16474 }); 15672 16475 }15673 -1 function isNode(element) {15674 -1 return element instanceof window.Node;-1 16476 var from_function_default = fromFunction; -1 16477 function attributes(vNode, matcher) { -1 16478 vNode = _nodeLookup(vNode).vNode; -1 16479 return from_function_default(function(attrName) { -1 16480 return vNode.attr(attrName); -1 16481 }, matcher); 15675 16482 }15676 -1 var is_node_default = isNode;15677 -1 var cacheKey = 'color.incompleteData';15678 -1 var incompleteData = {15679 -1 set: function set(key, reason) {15680 -1 if (typeof key !== 'string') {15681 -1 throw new Error('Incomplete data: key must be a string');15682 -1 }15683 -1 var data = cache_default.get(cacheKey, function() {15684 -1 return {};15685 -1 });15686 -1 if (reason) {15687 -1 data[key] = reason;15688 -1 }15689 -1 return data[key];15690 -1 },15691 -1 get: function get(key) {15692 -1 var data = cache_default.get(cacheKey);15693 -1 return data === null || data === void 0 ? void 0 : data[key];15694 -1 },15695 -1 clear: function clear() {15696 -1 cache_default.set(cacheKey, {});15697 -1 }15698 -1 };15699 -1 var incomplete_data_default = incompleteData;15700 -1 function elementHasImage(elm, style) {15701 -1 var graphicNodes = [ 'IMG', 'CANVAS', 'OBJECT', 'IFRAME', 'VIDEO', 'SVG' ];15702 -1 var nodeName2 = elm.nodeName.toUpperCase();15703 -1 if (graphicNodes.includes(nodeName2)) {15704 -1 incomplete_data_default.set('bgColor', 'imgNode');15705 -1 return true;15706 -1 }15707 -1 style = style || window.getComputedStyle(elm);15708 -1 var bgImageStyle = style.getPropertyValue('background-image');15709 -1 var hasBgImage = bgImageStyle !== 'none';15710 -1 if (hasBgImage) {15711 -1 var hasGradient = /gradient/.test(bgImageStyle);15712 -1 incomplete_data_default.set('bgColor', hasGradient ? 'bgGradient' : 'bgImage');15713 -1 }15714 -1 return hasBgImage;-1 16483 var attributes_default = attributes; -1 16484 function condition(arg, matcher) { -1 16485 return !!matcher(arg); 15715 16486 }15716 -1 var element_has_image_default = elementHasImage;15717 -1 var imports_exports = {};15718 -1 __export(imports_exports, {15719 -1 ArrayFrom: function ArrayFrom() {15720 -1 return import_from2['default'];15721 -1 },15722 -1 Colorjs: function Colorjs() {15723 -1 return _Color;15724 -1 },15725 -1 CssSelectorParser: function CssSelectorParser() {15726 -1 return import_css_selector_parser2.CssSelectorParser;15727 -1 },15728 -1 doT: function doT() {15729 -1 return import_dot['default'];15730 -1 },15731 -1 emojiRegexText: function emojiRegexText() {15732 -1 return emoji_regex_default;15733 -1 },15734 -1 memoize: function memoize() {15735 -1 return import_memoizee2['default'];15736 -1 }15737 -1 });15738 -1 var import_es6_promise = __toModule(require_es6_promise());15739 -1 var import_typedarray = __toModule(require_typedarray());15740 -1 var import_weakmap_polyfill = __toModule(require_weakmap_polyfill());15741 -1 var import_has_own = __toModule(require_has_own3());15742 -1 var import_values = __toModule(require_values3());15743 -1 var import_from = __toModule(require_from4());15744 -1 if (!('hasOwn' in Object)) {15745 -1 Object.hasOwn = import_has_own['default'];-1 16487 function explicitRole(vNode, matcher) { -1 16488 return from_primative_default(get_explicit_role_default(vNode), matcher); 15746 16489 }15747 -1 if (!('values' in Object)) {15748 -1 Object.values = import_values['default'];-1 16490 var explicit_role_default = explicitRole; -1 16491 function implicitRole(vNode, matcher) { -1 16492 return from_primative_default(implicit_role_default(vNode), matcher); 15749 16493 }15750 -1 if (!('Promise' in window)) {15751 -1 import_es6_promise['default'].polyfill();-1 16494 var implicit_role_default2 = implicitRole; -1 16495 function nodeName(vNode, matcher) { -1 16496 vNode = _nodeLookup(vNode).vNode; -1 16497 return from_primative_default(vNode.props.nodeName, matcher); 15752 16498 }15753 -1 if (!('Uint32Array' in window)) {15754 -1 window.Uint32Array = import_typedarray.Uint32Array;-1 16499 var node_name_default = nodeName; -1 16500 function properties(vNode, matcher) { -1 16501 vNode = _nodeLookup(vNode).vNode; -1 16502 return from_function_default(function(propName) { -1 16503 return vNode.props[propName]; -1 16504 }, matcher); 15755 16505 }15756 -1 if (window.Uint32Array) {15757 -1 if (!('some' in window.Uint32Array.prototype)) {15758 -1 Object.defineProperty(window.Uint32Array.prototype, 'some', {15759 -1 value: Array.prototype.some-1 16506 var properties_default = properties; -1 16507 function semanticRole(vNode, matcher) { -1 16508 return from_primative_default(get_role_default(vNode), matcher); -1 16509 } -1 16510 var semantic_role_default = semanticRole; -1 16511 var matchers = { -1 16512 hasAccessibleName: has_accessible_name_default, -1 16513 attributes: attributes_default, -1 16514 condition: condition, -1 16515 explicitRole: explicit_role_default, -1 16516 implicitRole: implicit_role_default2, -1 16517 nodeName: node_name_default, -1 16518 properties: properties_default, -1 16519 semanticRole: semantic_role_default -1 16520 }; -1 16521 function fromDefinition(vNode, definition) { -1 16522 vNode = _nodeLookup(vNode).vNode; -1 16523 if (Array.isArray(definition)) { -1 16524 return definition.some(function(definitionItem) { -1 16525 return fromDefinition(vNode, definitionItem); 15760 16526 }); 15761 16527 }15762 -1 if (!('reduce' in window.Uint32Array.prototype)) {15763 -1 Object.defineProperty(window.Uint32Array.prototype, 'reduce', {15764 -1 value: Array.prototype.reduce15765 -1 });-1 16528 if (typeof definition === 'string') { -1 16529 return _matches(vNode, definition); 15766 16530 }15767 -1 }15768 -1 if (typeof Object.assign !== 'function') {15769 -1 (function() {15770 -1 Object.assign = function(target) {15771 -1 if (target === void 0 || target === null) {15772 -1 throw new TypeError('Cannot convert undefined or null to object');15773 -1 }15774 -1 var output = Object(target);15775 -1 for (var index = 1; index < arguments.length; index++) {15776 -1 var source = arguments[index];15777 -1 if (source !== void 0 && source !== null) {15778 -1 for (var nextKey in source) {15779 -1 if (source.hasOwnProperty(nextKey)) {15780 -1 output[nextKey] = source[nextKey];15781 -1 }15782 -1 }15783 -1 }15784 -1 }15785 -1 return output;15786 -1 };15787 -1 })();15788 -1 }15789 -1 if (!Array.prototype.find) {15790 -1 Object.defineProperty(Array.prototype, 'find', {15791 -1 value: function value(predicate) {15792 -1 if (this === null) {15793 -1 throw new TypeError('Array.prototype.find called on null or undefined');15794 -1 }15795 -1 if (typeof predicate !== 'function') {15796 -1 throw new TypeError('predicate must be a function');15797 -1 }15798 -1 var list = Object(this);15799 -1 var length = list.length >>> 0;15800 -1 var thisArg = arguments[1];15801 -1 var value;15802 -1 for (var _i12 = 0; _i12 < length; _i12++) {15803 -1 value = list[_i12];15804 -1 if (predicate.call(thisArg, value, _i12, list)) {15805 -1 return value;15806 -1 }15807 -1 }15808 -1 return void 0;-1 16531 return Object.keys(definition).every(function(matcherName) { -1 16532 if (!matchers[matcherName]) { -1 16533 throw new Error('Unknown matcher type "'.concat(matcherName, '"')); 15809 16534 } -1 16535 var matchMethod = matchers[matcherName]; -1 16536 var matcher = definition[matcherName]; -1 16537 return matchMethod(vNode, matcher); 15810 16538 }); 15811 16539 }15812 -1 if (!Array.prototype.findIndex) {15813 -1 Object.defineProperty(Array.prototype, 'findIndex', {15814 -1 value: function value(predicate, thisArg) {15815 -1 if (this === null) {15816 -1 throw new TypeError('Array.prototype.find called on null or undefined');15817 -1 }15818 -1 if (typeof predicate !== 'function') {15819 -1 throw new TypeError('predicate must be a function');15820 -1 }15821 -1 var list = Object(this);15822 -1 var length = list.length >>> 0;15823 -1 var value;15824 -1 for (var _i13 = 0; _i13 < length; _i13++) {15825 -1 value = list[_i13];15826 -1 if (predicate.call(thisArg, value, _i13, list)) {15827 -1 return _i13;15828 -1 }15829 -1 }15830 -1 return -1;15831 -1 }15832 -1 });-1 16540 var from_definition_default = fromDefinition; -1 16541 function matches2(vNode, definition) { -1 16542 return from_definition_default(vNode, definition); 15833 16543 }15834 -1 if (!Array.prototype.includes) {15835 -1 Object.defineProperty(Array.prototype, 'includes', {15836 -1 value: function value(searchElement) {15837 -1 var O = Object(this);15838 -1 var len = parseInt(O.length, 10) || 0;15839 -1 if (len === 0) {15840 -1 return false;15841 -1 }15842 -1 var n2 = parseInt(arguments[1], 10) || 0;15843 -1 var k;15844 -1 if (n2 >= 0) {15845 -1 k = n2;15846 -1 } else {15847 -1 k = len + n2;15848 -1 if (k < 0) {15849 -1 k = 0;15850 -1 }15851 -1 }15852 -1 var currentElement;15853 -1 while (k < len) {15854 -1 currentElement = O[k];15855 -1 if (searchElement === currentElement || searchElement !== searchElement && currentElement !== currentElement) {15856 -1 return true;15857 -1 }15858 -1 k++;15859 -1 }15860 -1 return false;-1 16544 var matches_default = matches2; -1 16545 matches_default.hasAccessibleName = has_accessible_name_default; -1 16546 matches_default.attributes = attributes_default; -1 16547 matches_default.condition = condition; -1 16548 matches_default.explicitRole = explicit_role_default; -1 16549 matches_default.fromDefinition = from_definition_default; -1 16550 matches_default.fromFunction = from_function_default; -1 16551 matches_default.fromPrimative = from_primative_default; -1 16552 matches_default.implicitRole = implicit_role_default2; -1 16553 matches_default.nodeName = node_name_default; -1 16554 matches_default.properties = properties_default; -1 16555 matches_default.semanticRole = semantic_role_default; -1 16556 var matches_default2 = matches_default; -1 16557 function getElementSpec(vNode) { -1 16558 var _ref43 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, _ref43$noMatchAccessi = _ref43.noMatchAccessibleName, noMatchAccessibleName = _ref43$noMatchAccessi === void 0 ? false : _ref43$noMatchAccessi; -1 16559 var standard = standards_default.htmlElms[vNode.props.nodeName]; -1 16560 if (!standard) { -1 16561 return {}; -1 16562 } -1 16563 if (!standard.variant) { -1 16564 return standard; -1 16565 } -1 16566 var variant = standard.variant, spec = _objectWithoutProperties(standard, _excluded6); -1 16567 for (var variantName in variant) { -1 16568 if (!variant.hasOwnProperty(variantName) || variantName === 'default') { -1 16569 continue; 15861 16570 }15862 -1 });15863 -1 }15864 -1 if (!Array.prototype.some) {15865 -1 Object.defineProperty(Array.prototype, 'some', {15866 -1 value: function value(fun) {15867 -1 if (this == null) {15868 -1 throw new TypeError('Array.prototype.some called on null or undefined');15869 -1 }15870 -1 if (typeof fun !== 'function') {15871 -1 throw new TypeError();-1 16571 var _variant$variantName = variant[variantName], matches4 = _variant$variantName.matches, props = _objectWithoutProperties(_variant$variantName, _excluded7); -1 16572 var matchProperties = Array.isArray(matches4) ? matches4 : [ matches4 ]; -1 16573 for (var i = 0; i < matchProperties.length && noMatchAccessibleName; i++) { -1 16574 if (matchProperties[i].hasOwnProperty('hasAccessibleName')) { -1 16575 return standard; 15872 16576 }15873 -1 var t = Object(this);15874 -1 var len = t.length >>> 0;15875 -1 var thisArg = arguments.length >= 2 ? arguments[1] : void 0;15876 -1 for (var _i14 = 0; _i14 < len; _i14++) {15877 -1 if (_i14 in t && fun.call(thisArg, t[_i14], _i14, t)) {15878 -1 return true;-1 16577 } -1 16578 if (matches_default2(vNode, matches4)) { -1 16579 for (var propName in props) { -1 16580 if (props.hasOwnProperty(propName)) { -1 16581 spec[propName] = props[propName]; 15879 16582 } 15880 16583 }15881 -1 return false;15882 -1 }15883 -1 });15884 -1 }15885 -1 if (!Array.from) {15886 -1 Array.from = import_from['default'];15887 -1 }15888 -1 if (!String.prototype.includes) {15889 -1 String.prototype.includes = function(search, start) {15890 -1 if (typeof start !== 'number') {15891 -1 start = 0;15892 -1 }15893 -1 if (start + search.length > this.length) {15894 -1 return false;15895 -1 } else {15896 -1 return this.indexOf(search, start) !== -1;15897 16584 }15898 -1 };15899 -1 }15900 -1 if (!Array.prototype.flat) {15901 -1 Object.defineProperty(Array.prototype, 'flat', {15902 -1 configurable: true,15903 -1 value: function flat() {15904 -1 var depth = isNaN(arguments[0]) ? 1 : Number(arguments[0]);15905 -1 return depth ? Array.prototype.reduce.call(this, function(acc, cur) {15906 -1 if (Array.isArray(cur)) {15907 -1 acc.push.apply(acc, flat.call(cur, depth - 1));15908 -1 } else {15909 -1 acc.push(cur);15910 -1 }15911 -1 return acc;15912 -1 }, []) : Array.prototype.slice.call(this);15913 -1 },15914 -1 writable: true15915 -1 });15916 -1 }15917 -1 if (window.Node && !('isConnected' in window.Node.prototype)) {15918 -1 Object.defineProperty(window.Node.prototype, 'isConnected', {15919 -1 get: function get() {15920 -1 return !this.ownerDocument || !(this.ownerDocument.compareDocumentPosition(this) & this.DOCUMENT_POSITION_DISCONNECTED);-1 16585 } -1 16586 for (var _propName in variant['default']) { -1 16587 if (variant['default'].hasOwnProperty(_propName) && typeof spec[_propName] === 'undefined') { -1 16588 spec[_propName] = variant['default'][_propName]; 15921 16589 }15922 -1 });-1 16590 } -1 16591 return spec; 15923 16592 }15924 -1 var import_css_selector_parser2 = __toModule(require_lib());15925 -1 var import_dot = __toModule(require_doT());15926 -1 var import_memoizee2 = __toModule(require_memoizee());15927 -1 function multiplyMatrices(A, B) {15928 -1 var m3 = A.length;15929 -1 if (!Array.isArray(A[0])) {15930 -1 A = [ A ];-1 16593 var get_element_spec_default = getElementSpec; -1 16594 function implicitRole2(node) { -1 16595 var _ref44 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, chromium = _ref44.chromium; -1 16596 var vNode = node instanceof abstract_virtual_node_default ? node : get_node_from_tree_default(node); -1 16597 node = vNode.actualNode; -1 16598 if (!vNode) { -1 16599 throw new ReferenceError('Cannot get implicit role of a node outside the current scope.'); 15931 16600 }15932 -1 if (!Array.isArray(B[0])) {15933 -1 B = B.map(function(x) {15934 -1 return [ x ];15935 -1 });-1 16601 var nodeName2 = vNode.props.nodeName; -1 16602 var role = implicit_html_roles_default[nodeName2]; -1 16603 if (!role && chromium) { -1 16604 var _get_element_spec_def = get_element_spec_default(vNode), chromiumRole = _get_element_spec_def.chromiumRole; -1 16605 return chromiumRole || null; 15936 16606 }15937 -1 var p2 = B[0].length;15938 -1 var B_cols = B[0].map(function(_, i) {15939 -1 return B.map(function(x) {15940 -1 return x[i];15941 -1 });15942 -1 });15943 -1 var product = A.map(function(row) {15944 -1 return B_cols.map(function(col) {15945 -1 var ret = 0;15946 -1 if (!Array.isArray(row)) {15947 -1 var _iterator6 = _createForOfIteratorHelper(col), _step6;15948 -1 try {15949 -1 for (_iterator6.s(); !(_step6 = _iterator6.n()).done; ) {15950 -1 var c4 = _step6.value;15951 -1 ret += row * c4;15952 -1 }15953 -1 } catch (err) {15954 -1 _iterator6.e(err);15955 -1 } finally {15956 -1 _iterator6.f();15957 -1 }15958 -1 return ret;15959 -1 }15960 -1 for (var _i15 = 0; _i15 < row.length; _i15++) {15961 -1 ret += row[_i15] * (col[_i15] || 0);15962 -1 }15963 -1 return ret;15964 -1 });15965 -1 });15966 -1 if (m3 === 1) {15967 -1 product = product[0];-1 16607 if (typeof role === 'function') { -1 16608 return role(vNode); -1 16609 } -1 16610 return role || null; -1 16611 } -1 16612 var implicit_role_default = implicitRole2; -1 16613 var inheritsPresentationChain = { -1 16614 td: [ 'tr' ], -1 16615 th: [ 'tr' ], -1 16616 tr: [ 'thead', 'tbody', 'tfoot', 'table' ], -1 16617 thead: [ 'table' ], -1 16618 tbody: [ 'table' ], -1 16619 tfoot: [ 'table' ], -1 16620 li: [ 'ol', 'ul' ], -1 16621 dt: [ 'dl', 'div' ], -1 16622 dd: [ 'dl', 'div' ], -1 16623 div: [ 'dl' ] -1 16624 }; -1 16625 function getInheritedRole(vNode, explicitRoleOptions) { -1 16626 var parentNodeNames = inheritsPresentationChain[vNode.props.nodeName]; -1 16627 if (!parentNodeNames) { -1 16628 return null; 15968 16629 }15969 -1 if (p2 === 1) {15970 -1 return product.map(function(x) {15971 -1 return x[0];15972 -1 });-1 16630 if (!vNode.parent) { -1 16631 if (!vNode.actualNode) { -1 16632 return null; -1 16633 } -1 16634 throw new ReferenceError('Cannot determine role presentational inheritance of a required parent outside the current scope.'); 15973 16635 }15974 -1 return product;15975 -1 }15976 -1 function isString(str) {15977 -1 return type(str) === 'string';15978 -1 }15979 -1 function type(o) {15980 -1 var str = Object.prototype.toString.call(o);15981 -1 return (str.match(/^\[object\s+(.*?)\]$/)[1] || '').toLowerCase();15982 -1 }15983 -1 function toPrecision(n2, precision) {15984 -1 n2 = +n2;15985 -1 precision = +precision;15986 -1 var integerLength = (Math.floor(n2) + '').length;15987 -1 if (precision > integerLength) {15988 -1 return +n2.toFixed(precision - integerLength);15989 -1 } else {15990 -1 var p10 = Math.pow(10, integerLength - precision);15991 -1 return Math.round(n2 / p10) * p10;-1 16636 if (!parentNodeNames.includes(vNode.parent.props.nodeName)) { -1 16637 return null; 15992 16638 }15993 -1 }15994 -1 function parseFunction(str) {15995 -1 if (!str) {15996 -1 return;-1 16639 var parentRole = get_explicit_role_default(vNode.parent, explicitRoleOptions); -1 16640 if ([ 'none', 'presentation' ].includes(parentRole) && !hasConflictResolution(vNode.parent)) { -1 16641 return parentRole; 15997 16642 }15998 -1 str = str.trim();15999 -1 var isFunctionRegex = /^([a-z]+)\((.+?)\)$/i;16000 -1 var isNumberRegex = /^-?[\d.]+$/;16001 -1 var parts = str.match(isFunctionRegex);16002 -1 if (parts) {16003 -1 var args = [];16004 -1 parts[2].replace(/\/?\s*([-\w.]+(?:%|deg)?)/g, function($0, arg) {16005 -1 if (/%$/.test(arg)) {16006 -1 arg = new Number(arg.slice(0, -1) / 100);16007 -1 arg.type = '<percentage>';16008 -1 } else if (/deg$/.test(arg)) {16009 -1 arg = new Number(+arg.slice(0, -3));16010 -1 arg.type = '<angle>';16011 -1 arg.unit = 'deg';16012 -1 } else if (isNumberRegex.test(arg)) {16013 -1 arg = new Number(arg);16014 -1 arg.type = '<number>';16015 -1 }16016 -1 if ($0.startsWith('/')) {16017 -1 arg = arg instanceof Number ? arg : new Number(arg);16018 -1 arg.alpha = true;16019 -1 }16020 -1 args.push(arg);16021 -1 });16022 -1 return {16023 -1 name: parts[1].toLowerCase(),16024 -1 rawName: parts[1],16025 -1 rawArgs: parts[2],16026 -1 args: args16027 -1 };-1 16643 if (parentRole) { -1 16644 return null; 16028 16645 } -1 16646 return getInheritedRole(vNode.parent, explicitRoleOptions); 16029 16647 }16030 -1 function last(arr) {16031 -1 return arr[arr.length - 1];16032 -1 }16033 -1 function interpolate(start, end, p2) {16034 -1 if (isNaN(start)) {16035 -1 return end;-1 16648 function resolveImplicitRole(vNode, _ref45) { -1 16649 var chromium = _ref45.chromium, explicitRoleOptions = _objectWithoutProperties(_ref45, _excluded8); -1 16650 var implicitRole3 = implicit_role_default(vNode, { -1 16651 chromium: chromium -1 16652 }); -1 16653 if (!implicitRole3) { -1 16654 return null; 16036 16655 }16037 -1 if (isNaN(end)) {16038 -1 return start;-1 16656 var presentationalRole = getInheritedRole(vNode, explicitRoleOptions); -1 16657 if (presentationalRole) { -1 16658 return presentationalRole; 16039 16659 }16040 -1 return start + (end - start) * p2;-1 16660 return implicitRole3; 16041 16661 }16042 -1 function interpolateInv(start, end, value) {16043 -1 return (value - start) / (end - start);-1 16662 function hasConflictResolution(vNode) { -1 16663 var hasGlobalAria = get_global_aria_attrs_default().some(function(attr) { -1 16664 return vNode.hasAttr(attr); -1 16665 }); -1 16666 return hasGlobalAria || _isFocusable(vNode); 16044 16667 }16045 -1 function mapRange(from, to2, value) {16046 -1 return interpolate(to2[0], to2[1], interpolateInv(from[0], from[1], value));-1 16668 function resolveRole(node) { -1 16669 var _ref46 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; -1 16670 var noImplicit = _ref46.noImplicit, roleOptions = _objectWithoutProperties(_ref46, _excluded9); -1 16671 var _nodeLookup1 = _nodeLookup(node), vNode = _nodeLookup1.vNode; -1 16672 if (vNode.props.nodeType !== 1) { -1 16673 return null; -1 16674 } -1 16675 var explicitRole2 = get_explicit_role_default(vNode, roleOptions); -1 16676 if (!explicitRole2) { -1 16677 return noImplicit ? null : resolveImplicitRole(vNode, roleOptions); -1 16678 } -1 16679 if (![ 'presentation', 'none' ].includes(explicitRole2)) { -1 16680 return explicitRole2; -1 16681 } -1 16682 if (hasConflictResolution(vNode)) { -1 16683 return noImplicit ? null : resolveImplicitRole(vNode, roleOptions); -1 16684 } -1 16685 return explicitRole2; 16047 16686 }16048 -1 function parseCoordGrammar(coordGrammars) {16049 -1 return coordGrammars.map(function(coordGrammar2) {16050 -1 return coordGrammar2.split('|').map(function(type2) {16051 -1 type2 = type2.trim();16052 -1 var range2 = type2.match(/^(<[a-z]+>)\[(-?[.\d]+),\s*(-?[.\d]+)\]?$/);16053 -1 if (range2) {16054 -1 var ret = new String(range2[1]);16055 -1 ret.range = [ +range2[2], +range2[3] ];16056 -1 return ret;16057 -1 }16058 -1 return type2;16059 -1 });16060 -1 });-1 16687 function getRole(node) { -1 16688 var _ref47 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; -1 16689 var noPresentational = _ref47.noPresentational, options = _objectWithoutProperties(_ref47, _excluded0); -1 16690 var role = resolveRole(node, options); -1 16691 if (noPresentational && [ 'presentation', 'none' ].includes(role)) { -1 16692 return null; -1 16693 } -1 16694 return role; 16061 16695 }16062 -1 var util = Object.freeze({16063 -1 __proto__: null,16064 -1 isString: isString,16065 -1 type: type,16066 -1 toPrecision: toPrecision,16067 -1 parseFunction: parseFunction,16068 -1 last: last,16069 -1 interpolate: interpolate,16070 -1 interpolateInv: interpolateInv,16071 -1 mapRange: mapRange,16072 -1 parseCoordGrammar: parseCoordGrammar,16073 -1 multiplyMatrices: multiplyMatrices16074 -1 });16075 -1 var Hooks = function() {16076 -1 function Hooks() {16077 -1 _classCallCheck(this, Hooks);-1 16696 var get_role_default = getRole; -1 16697 var alwaysTitleElements = [ 'iframe' ]; -1 16698 function titleText(node) { -1 16699 var _nodeLookup10 = _nodeLookup(node), vNode = _nodeLookup10.vNode; -1 16700 if (vNode.props.nodeType !== 1 || !node.hasAttr('title')) { -1 16701 return ''; 16078 16702 }16079 -1 return _createClass(Hooks, [ {16080 -1 key: 'add',16081 -1 value: function add(name, callback, first) {16082 -1 if (typeof arguments[0] != 'string') {16083 -1 for (var name in arguments[0]) {16084 -1 this.add(name, arguments[0][name], arguments[1]);16085 -1 }16086 -1 return;16087 -1 }16088 -1 (Array.isArray(name) ? name : [ name ]).forEach(function(name2) {16089 -1 this[name2] = this[name2] || [];16090 -1 if (callback) {16091 -1 this[name2][first ? 'unshift' : 'push'](callback);16092 -1 }16093 -1 }, this);16094 -1 }16095 -1 }, {16096 -1 key: 'run',16097 -1 value: function run(name, env) {16098 -1 this[name] = this[name] || [];16099 -1 this[name].forEach(function(callback) {16100 -1 callback.call(env && env.context ? env.context : env, env);16101 -1 });16102 -1 }16103 -1 } ]);16104 -1 }();16105 -1 var hooks = new Hooks();16106 -1 var defaults = {16107 -1 gamut_mapping: 'lch.c',16108 -1 precision: 5,16109 -1 deltaE: '76'16110 -1 };16111 -1 var WHITES = {16112 -1 D50: [ .3457 / .3585, 1, (1 - .3457 - .3585) / .3585 ],16113 -1 D65: [ .3127 / .329, 1, (1 - .3127 - .329) / .329 ]16114 -1 };16115 -1 function getWhite(name) {16116 -1 if (Array.isArray(name)) {16117 -1 return name;-1 16703 if (!matches_default(vNode, alwaysTitleElements) && [ 'none', 'presentation' ].includes(get_role_default(vNode))) { -1 16704 return ''; 16118 16705 }16119 -1 return WHITES[name];-1 16706 return vNode.attr('title'); 16120 16707 }16121 -1 function adapt$1(W1, W2, XYZ) {16122 -1 var options = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};16123 -1 W1 = getWhite(W1);16124 -1 W2 = getWhite(W2);16125 -1 if (!W1 || !W2) {16126 -1 throw new TypeError('Missing white point to convert '.concat(!W1 ? 'from' : '').concat(!W1 && !W2 ? '/' : '').concat(!W2 ? 'to' : ''));-1 16708 var title_text_default = titleText; -1 16709 function namedFromContents(vNode) { -1 16710 var _ref48 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, strict = _ref48.strict; -1 16711 vNode = vNode instanceof abstract_virtual_node_default ? vNode : get_node_from_tree_default(vNode); -1 16712 if (vNode.props.nodeType !== 1) { -1 16713 return false; 16127 16714 }16128 -1 if (W1 === W2) {16129 -1 return XYZ;-1 16715 var role = get_role_default(vNode); -1 16716 var roleDef = standards_default.ariaRoles[role]; -1 16717 if (roleDef && roleDef.nameFromContent) { -1 16718 return true; 16130 16719 }16131 -1 var env = {16132 -1 W1: W1,16133 -1 W2: W2,16134 -1 XYZ: XYZ,16135 -1 options: options16136 -1 };16137 -1 hooks.run('chromatic-adaptation-start', env);16138 -1 if (!env.M) {16139 -1 if (env.W1 === WHITES.D65 && env.W2 === WHITES.D50) {16140 -1 env.M = [ [ 1.0479298208405488, .022946793341019088, -.05019222954313557 ], [ .029627815688159344, .990434484573249, -.01707382502938514 ], [ -.009243058152591178, .015055144896577895, .7518742899580008 ] ];16141 -1 } else if (env.W1 === WHITES.D50 && env.W2 === WHITES.D65) {16142 -1 env.M = [ [ .9554734527042182, -.023098536874261423, .0632593086610217 ], [ -.028369706963208136, 1.0099954580058226, .021041398966943008 ], [ .012314001688319899, -.020507696433477912, 1.3303659366080753 ] ];16143 -1 }-1 16720 if (strict) { -1 16721 return false; 16144 16722 }16145 -1 hooks.run('chromatic-adaptation-end', env);16146 -1 if (env.M) {16147 -1 return multiplyMatrices(env.M, env.XYZ);16148 -1 } else {16149 -1 throw new TypeError('Only Bradford CAT with white points D50 and D65 supported for now.');-1 16723 return !roleDef || [ 'presentation', 'none' ].includes(role); -1 16724 } -1 16725 var named_from_contents_default = namedFromContents; -1 16726 function getOwnedVirtual(virtualNode) { -1 16727 var actualNode = virtualNode.actualNode, children = virtualNode.children; -1 16728 if (!children) { -1 16729 throw new Error('getOwnedVirtual requires a virtual node'); -1 16730 } -1 16731 if (virtualNode.hasAttr('aria-owns')) { -1 16732 var owns = idrefs_default(actualNode, 'aria-owns').filter(function(element) { -1 16733 return !!element; -1 16734 }).map(function(element) { -1 16735 return axe.utils.getNodeFromTree(element); -1 16736 }); -1 16737 return [].concat(_toConsumableArray(children), _toConsumableArray(owns)); 16150 16738 } -1 16739 return _toConsumableArray(children); 16151 16740 }16152 -1 var \u03b5$4 = 75e-6;16153 -1 var _ColorSpace2 = (_Class_brand = new WeakSet(), _path = new WeakMap(), function() {16154 -1 function _ColorSpace(options) {16155 -1 var _options$coords, _ref38, _options$white, _options$formats, _this$formats$functio, _this$formats, _this$formats2;16156 -1 _classCallCheck(this, _ColorSpace);16157 -1 _classPrivateMethodInitSpec(this, _Class_brand);16158 -1 _classPrivateFieldInitSpec(this, _path, void 0);16159 -1 this.id = options.id;16160 -1 this.name = options.name;16161 -1 this.base = options.base ? _ColorSpace2.get(options.base) : null;16162 -1 this.aliases = options.aliases;16163 -1 if (this.base) {16164 -1 this.fromBase = options.fromBase;16165 -1 this.toBase = options.toBase;16166 -1 }16167 -1 var _coords = (_options$coords = options.coords) !== null && _options$coords !== void 0 ? _options$coords : this.base.coords;16168 -1 this.coords = _coords;16169 -1 var white2 = (_ref38 = (_options$white = options.white) !== null && _options$white !== void 0 ? _options$white : this.base.white) !== null && _ref38 !== void 0 ? _ref38 : 'D65';16170 -1 this.white = getWhite(white2);16171 -1 this.formats = (_options$formats = options.formats) !== null && _options$formats !== void 0 ? _options$formats : {};16172 -1 for (var name in this.formats) {16173 -1 var format = this.formats[name];16174 -1 format.type || (format.type = 'function');16175 -1 format.name || (format.name = name);16176 -1 }16177 -1 if (options.cssId && !((_this$formats$functio = this.formats.functions) !== null && _this$formats$functio !== void 0 && _this$formats$functio.color)) {16178 -1 this.formats.color = {16179 -1 id: options.cssId16180 -1 };16181 -1 Object.defineProperty(this, 'cssId', {16182 -1 value: options.cssId16183 -1 });16184 -1 } else if ((_this$formats = this.formats) !== null && _this$formats !== void 0 && _this$formats.color && !((_this$formats2 = this.formats) !== null && _this$formats2 !== void 0 && _this$formats2.color.id)) {16185 -1 this.formats.color.id = this.id;16186 -1 }16187 -1 this.referred = options.referred;16188 -1 _classPrivateFieldSet(_path, this, _assertClassBrand(_Class_brand, this, _getPath).call(this).reverse());16189 -1 hooks.run('colorspace-init-end', this);-1 16741 var get_owned_virtual_default = getOwnedVirtual; -1 16742 var unsupported_default = { -1 16743 accessibleNameFromFieldValue: [ 'progressbar' ] -1 16744 }; -1 16745 function _isVisibleToScreenReaders(vNode) { -1 16746 vNode = _nodeLookup(vNode).vNode; -1 16747 return isVisibleToScreenReadersVirtual(vNode); -1 16748 } -1 16749 var isVisibleToScreenReadersVirtual = memoize_default(function isVisibleToScreenReadersMemoized(vNode, isAncestor) { -1 16750 if (ariaHidden(vNode) || _isInert(vNode, { -1 16751 skipAncestors: true, -1 16752 isAncestor: isAncestor -1 16753 })) { -1 16754 return false; 16190 16755 }16191 -1 return _createClass(_ColorSpace, [ {16192 -1 key: 'inGamut',16193 -1 value: function inGamut(coords) {16194 -1 var _ref39 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, _ref39$epsilon = _ref39.epsilon, epsilon = _ref39$epsilon === void 0 ? \u03b5$4 : _ref39$epsilon;16195 -1 if (this.isPolar) {16196 -1 coords = this.toBase(coords);16197 -1 return this.base.inGamut(coords, {16198 -1 epsilon: epsilon16199 -1 });16200 -1 }16201 -1 var coordMeta = Object.values(this.coords);16202 -1 return coords.every(function(c4, i) {16203 -1 var meta = coordMeta[i];16204 -1 if (meta.type !== 'angle' && meta.range) {16205 -1 if (Number.isNaN(c4)) {16206 -1 return true;16207 -1 }16208 -1 var _meta$range = _slicedToArray(meta.range, 2), min = _meta$range[0], max2 = _meta$range[1];16209 -1 return (min === void 0 || c4 >= min - epsilon) && (max2 === void 0 || c4 <= max2 + epsilon);16210 -1 }16211 -1 return true;16212 -1 });16213 -1 }16214 -1 }, {16215 -1 key: 'cssId',16216 -1 get: function get() {16217 -1 var _this$formats$functio2;16218 -1 return ((_this$formats$functio2 = this.formats.functions) === null || _this$formats$functio2 === void 0 || (_this$formats$functio2 = _this$formats$functio2.color) === null || _this$formats$functio2 === void 0 ? void 0 : _this$formats$functio2.id) || this.id;16219 -1 }16220 -1 }, {16221 -1 key: 'isPolar',16222 -1 get: function get() {16223 -1 for (var id in this.coords) {16224 -1 if (this.coords[id].type === 'angle') {16225 -1 return true;16226 -1 }16227 -1 }16228 -1 return false;16229 -1 }16230 -1 }, {16231 -1 key: 'getFormat',16232 -1 value: function getFormat(format) {16233 -1 if (_typeof(format) === 'object') {16234 -1 format = _assertClassBrand(_Class_brand, this, _processFormat).call(this, format);16235 -1 return format;16236 -1 }16237 -1 var ret;16238 -1 if (format === 'default') {16239 -1 ret = Object.values(this.formats)[0];16240 -1 } else {16241 -1 ret = this.formats[format];16242 -1 }16243 -1 if (ret) {16244 -1 ret = _assertClassBrand(_Class_brand, this, _processFormat).call(this, ret);16245 -1 return ret;16246 -1 }16247 -1 return null;16248 -1 }16249 -1 }, {16250 -1 key: 'to',16251 -1 value: function to(space, coords) {16252 -1 if (arguments.length === 1) {16253 -1 var _ref40 = [ space.space, space.coords ];16254 -1 space = _ref40[0];16255 -1 coords = _ref40[1];16256 -1 }16257 -1 space = _ColorSpace2.get(space);16258 -1 if (this === space) {16259 -1 return coords;16260 -1 }16261 -1 coords = coords.map(function(c4) {16262 -1 return Number.isNaN(c4) ? 0 : c4;16263 -1 });16264 -1 var myPath = _classPrivateFieldGet(_path, this);16265 -1 var otherPath = _classPrivateFieldGet(_path, space);16266 -1 var connectionSpace, connectionSpaceIndex;16267 -1 for (var _i16 = 0; _i16 < myPath.length; _i16++) {16268 -1 if (myPath[_i16] === otherPath[_i16]) {16269 -1 connectionSpace = myPath[_i16];16270 -1 connectionSpaceIndex = _i16;16271 -1 } else {16272 -1 break;16273 -1 }16274 -1 }16275 -1 if (!connectionSpace) {16276 -1 throw new Error('Cannot convert between color spaces '.concat(this, ' and ').concat(space, ': no connection space was found'));16277 -1 }16278 -1 for (var _i17 = myPath.length - 1; _i17 > connectionSpaceIndex; _i17--) {16279 -1 coords = myPath[_i17].toBase(coords);16280 -1 }16281 -1 for (var _i18 = connectionSpaceIndex + 1; _i18 < otherPath.length; _i18++) {16282 -1 coords = otherPath[_i18].fromBase(coords);16283 -1 }16284 -1 return coords;16285 -1 }16286 -1 }, {16287 -1 key: 'from',16288 -1 value: function from(space, coords) {16289 -1 if (arguments.length === 1) {16290 -1 var _ref41 = [ space.space, space.coords ];16291 -1 space = _ref41[0];16292 -1 coords = _ref41[1];16293 -1 }16294 -1 space = _ColorSpace2.get(space);16295 -1 return space.to(this, coords);16296 -1 }16297 -1 }, {16298 -1 key: 'toString',16299 -1 value: function toString() {16300 -1 return ''.concat(this.name, ' (').concat(this.id, ')');16301 -1 }16302 -1 }, {16303 -1 key: 'getMinCoords',16304 -1 value: function getMinCoords() {16305 -1 var ret = [];16306 -1 for (var id in this.coords) {16307 -1 var _range2$min;16308 -1 var meta = this.coords[id];16309 -1 var range2 = meta.range || meta.refRange;16310 -1 ret.push((_range2$min = range2 === null || range2 === void 0 ? void 0 : range2.min) !== null && _range2$min !== void 0 ? _range2$min : 0);16311 -1 }16312 -1 return ret;16313 -1 }16314 -1 } ], [ {16315 -1 key: 'all',16316 -1 get: function get() {16317 -1 return _toConsumableArray(new Set(Object.values(_ColorSpace2.registry)));16318 -1 }16319 -1 }, {16320 -1 key: 'register',16321 -1 value: function register(id, space) {16322 -1 if (arguments.length === 1) {16323 -1 space = arguments[0];16324 -1 id = space.id;16325 -1 }16326 -1 space = this.get(space);16327 -1 if (this.registry[id] && this.registry[id] !== space) {16328 -1 throw new Error('Duplicate color space registration: \''.concat(id, '\''));16329 -1 }16330 -1 this.registry[id] = space;16331 -1 if (arguments.length === 1 && space.aliases) {16332 -1 var _iterator7 = _createForOfIteratorHelper(space.aliases), _step7;16333 -1 try {16334 -1 for (_iterator7.s(); !(_step7 = _iterator7.n()).done; ) {16335 -1 var alias = _step7.value;16336 -1 this.register(alias, space);16337 -1 }16338 -1 } catch (err) {16339 -1 _iterator7.e(err);16340 -1 } finally {16341 -1 _iterator7.f();16342 -1 }16343 -1 }16344 -1 return space;16345 -1 }16346 -1 }, {16347 -1 key: 'get',16348 -1 value: function get(space) {16349 -1 if (!space || space instanceof _ColorSpace2) {16350 -1 return space;16351 -1 }16352 -1 var argType = type(space);16353 -1 if (argType === 'string') {16354 -1 var ret = _ColorSpace2.registry[space.toLowerCase()];16355 -1 if (!ret) {16356 -1 throw new TypeError('No color space found with id = "'.concat(space, '"'));16357 -1 }16358 -1 return ret;16359 -1 }16360 -1 for (var _len2 = arguments.length, alternatives = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {16361 -1 alternatives[_key2 - 1] = arguments[_key2];16362 -1 }16363 -1 if (alternatives.length) {16364 -1 return _ColorSpace2.get.apply(_ColorSpace2, alternatives);16365 -1 }16366 -1 throw new TypeError(''.concat(space, ' is not a valid color space'));16367 -1 }16368 -1 }, {16369 -1 key: 'resolveCoord',16370 -1 value: function resolveCoord(ref, workingSpace) {16371 -1 var coordType = type(ref);16372 -1 var space, coord;16373 -1 if (coordType === 'string') {16374 -1 if (ref.includes('.')) {16375 -1 var _ref$split = ref.split('.');16376 -1 var _ref$split2 = _slicedToArray(_ref$split, 2);16377 -1 space = _ref$split2[0];16378 -1 coord = _ref$split2[1];16379 -1 } else {16380 -1 space = void 0;16381 -1 coord = ref;16382 -1 }16383 -1 } else if (Array.isArray(ref)) {16384 -1 var _ref42 = _slicedToArray(ref, 2);16385 -1 space = _ref42[0];16386 -1 coord = _ref42[1];16387 -1 } else {16388 -1 space = ref.space;16389 -1 coord = ref.coordId;16390 -1 }16391 -1 space = _ColorSpace2.get(space);16392 -1 if (!space) {16393 -1 space = workingSpace;16394 -1 }16395 -1 if (!space) {16396 -1 throw new TypeError('Cannot resolve coordinate reference '.concat(ref, ': No color space specified and relative references are not allowed here'));16397 -1 }16398 -1 coordType = type(coord);16399 -1 if (coordType === 'number' || coordType === 'string' && coord >= 0) {16400 -1 var meta = Object.entries(space.coords)[coord];16401 -1 if (meta) {16402 -1 return _extends({16403 -1 space: space,16404 -1 id: meta[0],16405 -1 index: coord16406 -1 }, meta[1]);16407 -1 }16408 -1 }16409 -1 space = _ColorSpace2.get(space);16410 -1 var normalizedCoord = coord.toLowerCase();16411 -1 var i = 0;16412 -1 for (var id in space.coords) {16413 -1 var _meta$name;16414 -1 var _meta = space.coords[id];16415 -1 if (id.toLowerCase() === normalizedCoord || ((_meta$name = _meta.name) === null || _meta$name === void 0 ? void 0 : _meta$name.toLowerCase()) === normalizedCoord) {16416 -1 return _extends({16417 -1 space: space,16418 -1 id: id,16419 -1 index: i16420 -1 }, _meta);16421 -1 }16422 -1 i++;-1 16756 if (vNode.actualNode && vNode.props.nodeName === 'area') { -1 16757 return !areaHidden(vNode, isVisibleToScreenReadersVirtual); -1 16758 } -1 16759 if (_isHiddenForEveryone(vNode, { -1 16760 skipAncestors: true, -1 16761 isAncestor: isAncestor -1 16762 })) { -1 16763 return false; -1 16764 } -1 16765 if (!vNode.parent) { -1 16766 return true; -1 16767 } -1 16768 return isVisibleToScreenReadersVirtual(vNode.parent, true); -1 16769 }); -1 16770 function visibleVirtual(element, screenReader, noRecursing) { -1 16771 var _nodeLookup11 = _nodeLookup(element), vNode = _nodeLookup11.vNode; -1 16772 var visibleMethod = screenReader ? _isVisibleToScreenReaders : _isVisibleOnScreen; -1 16773 var visible2 = !element.actualNode || element.actualNode && visibleMethod(element); -1 16774 var result = vNode.children.map(function(child) { -1 16775 var _child$props = child.props, nodeType = _child$props.nodeType, nodeValue = _child$props.nodeValue; -1 16776 if (nodeType === 3) { -1 16777 if (nodeValue && visible2) { -1 16778 return nodeValue; 16423 16779 }16424 -1 throw new TypeError('No "'.concat(coord, '" coordinate found in ').concat(space.name, '. Its coordinates are: ').concat(Object.keys(space.coords).join(', ')));-1 16780 } else if (!noRecursing) { -1 16781 return visibleVirtual(child, screenReader); 16425 16782 }16426 -1 } ]);16427 -1 }());16428 -1 function _processFormat(format) {16429 -1 if (format.coords && !format.coordGrammar) {16430 -1 format.type || (format.type = 'function');16431 -1 format.name || (format.name = 'color');16432 -1 format.coordGrammar = parseCoordGrammar(format.coords);16433 -1 var coordFormats = Object.entries(this.coords).map(function(_ref150, i) {16434 -1 var _ref151 = _slicedToArray(_ref150, 2), id = _ref151[0], coordMeta = _ref151[1];16435 -1 var outputType = format.coordGrammar[i][0];16436 -1 var fromRange = coordMeta.range || coordMeta.refRange;16437 -1 var toRange = outputType.range, suffix = '';16438 -1 if (outputType == '<percentage>') {16439 -1 toRange = [ 0, 100 ];16440 -1 suffix = '%';16441 -1 } else if (outputType == '<angle>') {16442 -1 suffix = 'deg';16443 -1 }16444 -1 return {16445 -1 fromRange: fromRange,16446 -1 toRange: toRange,16447 -1 suffix: suffix16448 -1 };16449 -1 });16450 -1 format.serializeCoords = function(coords, precision) {16451 -1 return coords.map(function(c4, i) {16452 -1 var _coordFormats$i = coordFormats[i], fromRange = _coordFormats$i.fromRange, toRange = _coordFormats$i.toRange, suffix = _coordFormats$i.suffix;16453 -1 if (fromRange && toRange) {16454 -1 c4 = mapRange(fromRange, toRange, c4);16455 -1 }16456 -1 c4 = toPrecision(c4, precision);16457 -1 if (suffix) {16458 -1 c4 += suffix;16459 -1 }16460 -1 return c4;16461 -1 });16462 -1 };-1 16783 }).join(''); -1 16784 return sanitize_default(result); -1 16785 } -1 16786 var visible_virtual_default = visibleVirtual; -1 16787 var nonTextInputTypes = [ 'button', 'checkbox', 'color', 'file', 'hidden', 'image', 'password', 'radio', 'reset', 'submit' ]; -1 16788 function isNativeTextbox(node) { -1 16789 node = node instanceof abstract_virtual_node_default ? node : get_node_from_tree_default(node); -1 16790 var nodeName2 = node.props.nodeName; -1 16791 return nodeName2 === 'textarea' || nodeName2 === 'input' && !nonTextInputTypes.includes((node.attr('type') || '').toLowerCase()); -1 16792 } -1 16793 var is_native_textbox_default = isNativeTextbox; -1 16794 function isNativeSelect(node) { -1 16795 node = node instanceof abstract_virtual_node_default ? node : get_node_from_tree_default(node); -1 16796 var nodeName2 = node.props.nodeName; -1 16797 return nodeName2 === 'select'; -1 16798 } -1 16799 var is_native_select_default = isNativeSelect; -1 16800 function isAriaTextbox(node) { -1 16801 var role = get_explicit_role_default(node); -1 16802 return role === 'textbox'; -1 16803 } -1 16804 var is_aria_textbox_default = isAriaTextbox; -1 16805 function isAriaListbox(node) { -1 16806 var role = get_explicit_role_default(node); -1 16807 return role === 'listbox'; -1 16808 } -1 16809 var is_aria_listbox_default = isAriaListbox; -1 16810 function isAriaCombobox(node) { -1 16811 var role = get_explicit_role_default(node); -1 16812 return role === 'combobox'; -1 16813 } -1 16814 var is_aria_combobox_default = isAriaCombobox; -1 16815 var rangeRoles = [ 'progressbar', 'scrollbar', 'slider', 'spinbutton' ]; -1 16816 function isAriaRange(node) { -1 16817 var role = get_explicit_role_default(node); -1 16818 return rangeRoles.includes(role); -1 16819 } -1 16820 var is_aria_range_default = isAriaRange; -1 16821 var controlValueRoles = [ 'textbox', 'progressbar', 'scrollbar', 'slider', 'spinbutton', 'combobox', 'listbox' ]; -1 16822 var _formControlValueMethods = { -1 16823 nativeTextboxValue: nativeTextboxValue, -1 16824 nativeSelectValue: nativeSelectValue, -1 16825 ariaTextboxValue: ariaTextboxValue, -1 16826 ariaListboxValue: ariaListboxValue, -1 16827 ariaComboboxValue: ariaComboboxValue, -1 16828 ariaRangeValue: ariaRangeValue -1 16829 }; -1 16830 function formControlValue(virtualNode) { -1 16831 var context = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; -1 16832 var actualNode = virtualNode.actualNode; -1 16833 var unsupportedRoles = unsupported_default.accessibleNameFromFieldValue || []; -1 16834 var role = get_role_default(virtualNode); -1 16835 if (context.startNode === virtualNode || !controlValueRoles.includes(role) || unsupportedRoles.includes(role)) { -1 16836 return ''; 16463 16837 }16464 -1 return format;-1 16838 var valueMethods = Object.keys(_formControlValueMethods).map(function(name) { -1 16839 return _formControlValueMethods[name]; -1 16840 }); -1 16841 var valueString = valueMethods.reduce(function(accName, step) { -1 16842 return accName || step(virtualNode, context); -1 16843 }, ''); -1 16844 if (context.debug) { -1 16845 log_default(valueString || '{empty-value}', actualNode, context); -1 16846 } -1 16847 return valueString; 16465 16848 }16466 -1 function _getPath() {16467 -1 var ret = [ this ];16468 -1 for (var _space2 = this; _space2 = _space2.base; ) {16469 -1 ret.push(_space2);-1 16849 function nativeTextboxValue(node) { -1 16850 var _nodeLookup12 = _nodeLookup(node), vNode = _nodeLookup12.vNode; -1 16851 if (is_native_textbox_default(vNode)) { -1 16852 return vNode.props.value || ''; 16470 16853 }16471 -1 return ret;-1 16854 return ''; 16472 16855 }16473 -1 var ColorSpace = _ColorSpace2;16474 -1 __publicField(ColorSpace, 'registry', {});16475 -1 __publicField(ColorSpace, 'DEFAULT_FORMAT', {16476 -1 type: 'functions',16477 -1 name: 'color'16478 -1 });16479 -1 var XYZ_D65 = new ColorSpace({16480 -1 id: 'xyz-d65',16481 -1 name: 'XYZ D65',16482 -1 coords: {16483 -1 x: {16484 -1 name: 'X'16485 -1 },16486 -1 y: {16487 -1 name: 'Y'16488 -1 },16489 -1 z: {16490 -1 name: 'Z'16491 -1 }16492 -1 },16493 -1 white: 'D65',16494 -1 formats: {16495 -1 color: {16496 -1 ids: [ 'xyz-d65', 'xyz' ]16497 -1 }16498 -1 },16499 -1 aliases: [ 'xyz' ]16500 -1 });16501 -1 var RGBColorSpace = function(_ColorSpace3) {16502 -1 function RGBColorSpace(options) {16503 -1 var _options$referred;16504 -1 var _this;16505 -1 _classCallCheck(this, RGBColorSpace);16506 -1 if (!options.coords) {16507 -1 options.coords = {16508 -1 r: {16509 -1 range: [ 0, 1 ],16510 -1 name: 'Red'16511 -1 },16512 -1 g: {16513 -1 range: [ 0, 1 ],16514 -1 name: 'Green'16515 -1 },16516 -1 b: {16517 -1 range: [ 0, 1 ],16518 -1 name: 'Blue'16519 -1 }16520 -1 };16521 -1 }16522 -1 if (!options.base) {16523 -1 options.base = XYZ_D65;-1 16856 function nativeSelectValue(node) { -1 16857 var _nodeLookup13 = _nodeLookup(node), vNode = _nodeLookup13.vNode; -1 16858 if (!is_native_select_default(vNode)) { -1 16859 return ''; -1 16860 } -1 16861 var options = query_selector_all_default(vNode, 'option'); -1 16862 var selectedOptions = options.filter(function(option) { -1 16863 return option.props.selected; -1 16864 }); -1 16865 if (!selectedOptions.length) { -1 16866 selectedOptions.push(options[0]); -1 16867 } -1 16868 return selectedOptions.map(function(option) { -1 16869 return visible_virtual_default(option); -1 16870 }).join(' ') || ''; -1 16871 } -1 16872 function ariaTextboxValue(node) { -1 16873 var _nodeLookup14 = _nodeLookup(node), vNode = _nodeLookup14.vNode, domNode = _nodeLookup14.domNode; -1 16874 if (!is_aria_textbox_default(vNode)) { -1 16875 return ''; -1 16876 } -1 16877 if (!domNode || domNode && !_isHiddenForEveryone(domNode)) { -1 16878 return visible_virtual_default(vNode, true); -1 16879 } else { -1 16880 return domNode.textContent; -1 16881 } -1 16882 } -1 16883 function ariaListboxValue(node, context) { -1 16884 var _nodeLookup15 = _nodeLookup(node), vNode = _nodeLookup15.vNode; -1 16885 if (!is_aria_listbox_default(vNode)) { -1 16886 return ''; -1 16887 } -1 16888 var selected = get_owned_virtual_default(vNode).filter(function(owned) { -1 16889 return get_role_default(owned) === 'option' && owned.attr('aria-selected') === 'true'; -1 16890 }); -1 16891 if (selected.length === 0) { -1 16892 return ''; -1 16893 } -1 16894 return _accessibleTextVirtual(selected[0], context); -1 16895 } -1 16896 function ariaComboboxValue(node, context) { -1 16897 var _nodeLookup16 = _nodeLookup(node), vNode = _nodeLookup16.vNode; -1 16898 if (!is_aria_combobox_default(vNode)) { -1 16899 return ''; -1 16900 } -1 16901 var listbox = get_owned_virtual_default(vNode).filter(function(elm) { -1 16902 return get_role_default(elm) === 'listbox'; -1 16903 })[0]; -1 16904 return listbox ? ariaListboxValue(listbox, context) : ''; -1 16905 } -1 16906 function ariaRangeValue(node) { -1 16907 var _nodeLookup17 = _nodeLookup(node), vNode = _nodeLookup17.vNode; -1 16908 if (!is_aria_range_default(vNode) || !vNode.hasAttr('aria-valuenow')) { -1 16909 return ''; -1 16910 } -1 16911 var valueNow = +vNode.attr('aria-valuenow'); -1 16912 return !isNaN(valueNow) ? String(valueNow) : '0'; -1 16913 } -1 16914 var form_control_value_default = formControlValue; -1 16915 function subtreeText(virtualNode) { -1 16916 var context = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; -1 16917 var alreadyProcessed2 = _accessibleTextVirtual.alreadyProcessed; -1 16918 context.startNode = context.startNode || virtualNode; -1 16919 var _context = context, strict = _context.strict, inControlContext = _context.inControlContext, inLabelledByContext = _context.inLabelledByContext; -1 16920 var role = get_role_default(virtualNode); -1 16921 var _get_element_spec_def2 = get_element_spec_default(virtualNode, { -1 16922 noMatchAccessibleName: true -1 16923 }), contentTypes = _get_element_spec_def2.contentTypes; -1 16924 if (alreadyProcessed2(virtualNode, context) || virtualNode.props.nodeType !== 1 || contentTypes !== null && contentTypes !== void 0 && contentTypes.includes('embedded') || controlValueRoles.includes(role)) { -1 16925 return ''; -1 16926 } -1 16927 if (!context.subtreeDescendant && !context.inLabelledByContext && !named_from_contents_default(virtualNode, { -1 16928 strict: strict -1 16929 })) { -1 16930 return ''; -1 16931 } -1 16932 if (!strict) { -1 16933 var subtreeDescendant = !inControlContext && !inLabelledByContext; -1 16934 context = _extends({ -1 16935 subtreeDescendant: subtreeDescendant -1 16936 }, context); -1 16937 } -1 16938 return get_owned_virtual_default(virtualNode).reduce(function(contentText, child) { -1 16939 return appendAccessibleText(contentText, child, context); -1 16940 }, ''); -1 16941 } -1 16942 var phrasingElements = get_elements_by_content_type_default('phrasing').concat([ '#text' ]); -1 16943 function appendAccessibleText(contentText, virtualNode, context) { -1 16944 var nodeName2 = virtualNode.props.nodeName; -1 16945 var contentTextAdd = _accessibleTextVirtual(virtualNode, context); -1 16946 if (!contentTextAdd) { -1 16947 return contentText; -1 16948 } -1 16949 if (!phrasingElements.includes(nodeName2)) { -1 16950 if (contentTextAdd[0] !== ' ') { -1 16951 contentTextAdd += ' '; 16524 16952 }16525 -1 if (options.toXYZ_M && options.fromXYZ_M) {16526 -1 var _options$toBase, _options$fromBase;16527 -1 (_options$toBase = options.toBase) !== null && _options$toBase !== void 0 ? _options$toBase : options.toBase = function(rgb) {16528 -1 var xyz = multiplyMatrices(options.toXYZ_M, rgb);16529 -1 if (_this.white !== _this.base.white) {16530 -1 xyz = adapt$1(_this.white, _this.base.white, xyz);16531 -1 }16532 -1 return xyz;16533 -1 };16534 -1 (_options$fromBase = options.fromBase) !== null && _options$fromBase !== void 0 ? _options$fromBase : options.fromBase = function(xyz) {16535 -1 xyz = adapt$1(_this.base.white, _this.white, xyz);16536 -1 return multiplyMatrices(options.fromXYZ_M, xyz);16537 -1 };-1 16953 if (contentText && contentText[contentText.length - 1] !== ' ') { -1 16954 contentTextAdd = ' ' + contentTextAdd; 16538 16955 }16539 -1 (_options$referred = options.referred) !== null && _options$referred !== void 0 ? _options$referred : options.referred = 'display';16540 -1 return _this = _callSuper(this, RGBColorSpace, [ options ]);16541 16956 }16542 -1 _inherits(RGBColorSpace, _ColorSpace3);16543 -1 return _createClass(RGBColorSpace);16544 -1 }(ColorSpace);16545 -1 function parse2(str) {16546 -1 var _String;16547 -1 var env = {16548 -1 str: (_String = String(str)) === null || _String === void 0 ? void 0 : _String.trim()16549 -1 };16550 -1 hooks.run('parse-start', env);16551 -1 if (env.color) {16552 -1 return env.color;-1 16957 return contentText + contentTextAdd; -1 16958 } -1 16959 var subtree_text_default = subtreeText; -1 16960 function labelText(virtualNode) { -1 16961 var context = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; -1 16962 var alreadyProcessed2 = _accessibleTextVirtual.alreadyProcessed; -1 16963 if (context.inControlContext || context.inLabelledByContext || alreadyProcessed2(virtualNode, context)) { -1 16964 return ''; 16553 16965 }16554 -1 env.parsed = parseFunction(env.str);16555 -1 if (env.parsed) {16556 -1 var name = env.parsed.name;16557 -1 if (name === 'color') {16558 -1 var id = env.parsed.args.shift();16559 -1 var alpha = env.parsed.rawArgs.indexOf('/') > 0 ? env.parsed.args.pop() : 1;16560 -1 var _iterator8 = _createForOfIteratorHelper(ColorSpace.all), _step8;16561 -1 try {16562 -1 var _loop5 = function _loop5() {16563 -1 var space = _step8.value;16564 -1 var colorSpec = space.getFormat('color');16565 -1 if (colorSpec) {16566 -1 var _colorSpec$ids;16567 -1 if (id === colorSpec.id || (_colorSpec$ids = colorSpec.ids) !== null && _colorSpec$ids !== void 0 && _colorSpec$ids.includes(id)) {16568 -1 var argCount = Object.keys(space.coords).length;16569 -1 var coords = Array(argCount).fill(0);16570 -1 coords.forEach(function(_, i) {16571 -1 return coords[i] = env.parsed.args[i] || 0;16572 -1 });16573 -1 return {16574 -1 v: {16575 -1 spaceId: space.id,16576 -1 coords: coords,16577 -1 alpha: alpha16578 -1 }16579 -1 };16580 -1 }16581 -1 }16582 -1 }, _ret2;16583 -1 for (_iterator8.s(); !(_step8 = _iterator8.n()).done; ) {16584 -1 _ret2 = _loop5();16585 -1 if (_ret2) {16586 -1 return _ret2.v;16587 -1 }16588 -1 }16589 -1 } catch (err) {16590 -1 _iterator8.e(err);16591 -1 } finally {16592 -1 _iterator8.f();16593 -1 }16594 -1 var didYouMean = '';16595 -1 if (id in ColorSpace.registry) {16596 -1 var _ColorSpace$registry$;16597 -1 var cssId = (_ColorSpace$registry$ = ColorSpace.registry[id].formats) === null || _ColorSpace$registry$ === void 0 || (_ColorSpace$registry$ = _ColorSpace$registry$.functions) === null || _ColorSpace$registry$ === void 0 || (_ColorSpace$registry$ = _ColorSpace$registry$.color) === null || _ColorSpace$registry$ === void 0 ? void 0 : _ColorSpace$registry$.id;16598 -1 if (cssId) {16599 -1 didYouMean = 'Did you mean color('.concat(cssId, ')?');16600 -1 }16601 -1 }16602 -1 throw new TypeError('Cannot parse color('.concat(id, '). ') + (didYouMean || 'Missing a plugin?'));16603 -1 } else {16604 -1 var _iterator9 = _createForOfIteratorHelper(ColorSpace.all), _step9;16605 -1 try {16606 -1 var _loop6 = function _loop6() {16607 -1 var space = _step9.value;16608 -1 var format = space.getFormat(name);16609 -1 if (format && format.type === 'function') {16610 -1 var _alpha = 1;16611 -1 if (format.lastAlpha || last(env.parsed.args).alpha) {16612 -1 _alpha = env.parsed.args.pop();16613 -1 }16614 -1 var coords = env.parsed.args;16615 -1 if (format.coordGrammar) {16616 -1 Object.entries(space.coords).forEach(function(_ref43, i) {16617 -1 var _coords$i;16618 -1 var _ref44 = _slicedToArray(_ref43, 2), id = _ref44[0], coordMeta = _ref44[1];16619 -1 var coordGrammar2 = format.coordGrammar[i];16620 -1 var providedType = (_coords$i = coords[i]) === null || _coords$i === void 0 ? void 0 : _coords$i.type;16621 -1 coordGrammar2 = coordGrammar2.find(function(c4) {16622 -1 return c4 == providedType;16623 -1 });16624 -1 if (!coordGrammar2) {16625 -1 var coordName = coordMeta.name || id;16626 -1 throw new TypeError(''.concat(providedType, ' not allowed for ').concat(coordName, ' in ').concat(name, '()'));16627 -1 }16628 -1 var fromRange = coordGrammar2.range;16629 -1 if (providedType === '<percentage>') {16630 -1 fromRange || (fromRange = [ 0, 1 ]);16631 -1 }16632 -1 var toRange = coordMeta.range || coordMeta.refRange;16633 -1 if (fromRange && toRange) {16634 -1 coords[i] = mapRange(fromRange, toRange, coords[i]);16635 -1 }16636 -1 });16637 -1 }16638 -1 return {16639 -1 v: {16640 -1 spaceId: space.id,16641 -1 coords: coords,16642 -1 alpha: _alpha16643 -1 }16644 -1 };16645 -1 }16646 -1 }, _ret3;16647 -1 for (_iterator9.s(); !(_step9 = _iterator9.n()).done; ) {16648 -1 _ret3 = _loop6();16649 -1 if (_ret3) {16650 -1 return _ret3.v;16651 -1 }16652 -1 }16653 -1 } catch (err) {16654 -1 _iterator9.e(err);16655 -1 } finally {16656 -1 _iterator9.f();16657 -1 }16658 -1 }-1 16966 if (!context.startNode) { -1 16967 context.startNode = virtualNode; -1 16968 } -1 16969 var labelContext = _extends({ -1 16970 inControlContext: true -1 16971 }, context); -1 16972 var explicitLabels = getExplicitLabels(virtualNode); -1 16973 var implicitLabel = closest_default(virtualNode, 'label'); -1 16974 var labels; -1 16975 if (implicitLabel) { -1 16976 labels = [].concat(_toConsumableArray(explicitLabels), [ implicitLabel.actualNode ]); -1 16977 labels.sort(node_sorter_default); 16659 16978 } else {16660 -1 var _iterator10 = _createForOfIteratorHelper(ColorSpace.all), _step10;16661 -1 try {16662 -1 for (_iterator10.s(); !(_step10 = _iterator10.n()).done; ) {16663 -1 var space = _step10.value;16664 -1 for (var formatId in space.formats) {16665 -1 var format = space.formats[formatId];16666 -1 if (format.type !== 'custom') {16667 -1 continue;16668 -1 }16669 -1 if (format.test && !format.test(env.str)) {16670 -1 continue;16671 -1 }16672 -1 var color = format.parse(env.str);16673 -1 if (color) {16674 -1 var _color$alpha;16675 -1 (_color$alpha = color.alpha) !== null && _color$alpha !== void 0 ? _color$alpha : color.alpha = 1;16676 -1 return color;16677 -1 }16678 -1 }16679 -1 }16680 -1 } catch (err) {16681 -1 _iterator10.e(err);16682 -1 } finally {16683 -1 _iterator10.f();16684 -1 }-1 16979 labels = explicitLabels; 16685 16980 }16686 -1 throw new TypeError('Could not parse '.concat(str, ' as a color. Missing a plugin?'));-1 16981 return labels.map(function(label3) { -1 16982 return accessible_text_default(label3, labelContext); -1 16983 }).filter(function(text) { -1 16984 return text !== ''; -1 16985 }).join(' '); 16687 16986 }16688 -1 function getColor(color) {16689 -1 if (!color) {16690 -1 throw new TypeError('Empty color reference');-1 16987 function getExplicitLabels(virtualNode) { -1 16988 if (!virtualNode.attr('id')) { -1 16989 return []; 16691 16990 }16692 -1 if (isString(color)) {16693 -1 color = parse2(color);-1 16991 if (!virtualNode.actualNode) { -1 16992 throw new TypeError('Cannot resolve explicit label reference for non-DOM nodes'); 16694 16993 }16695 -1 var space = color.space || color.spaceId;16696 -1 if (!(space instanceof ColorSpace)) {16697 -1 color.space = ColorSpace.get(space);-1 16994 return find_elms_in_context_default({ -1 16995 elm: 'label', -1 16996 attr: 'for', -1 16997 value: virtualNode.attr('id'), -1 16998 context: virtualNode.actualNode -1 16999 }); -1 17000 } -1 17001 var label_text_default = labelText; -1 17002 var defaultButtonValues = { -1 17003 submit: 'Submit', -1 17004 image: 'Submit', -1 17005 reset: 'Reset', -1 17006 button: '' -1 17007 }; -1 17008 var nativeTextMethods = { -1 17009 valueText: function valueText(vNode) { -1 17010 return vNode.props.value || ''; -1 17011 }, -1 17012 buttonDefaultText: function buttonDefaultText(vNode) { -1 17013 return defaultButtonValues[vNode.props.type] || ''; -1 17014 }, -1 17015 tableCaptionText: descendantText.bind(null, 'caption'), -1 17016 figureText: descendantText.bind(null, 'figcaption'), -1 17017 svgTitleText: descendantText.bind(null, 'title'), -1 17018 fieldsetLegendText: descendantText.bind(null, 'legend'), -1 17019 altText: attrText.bind(null, 'alt'), -1 17020 tableSummaryText: attrText.bind(null, 'summary'), -1 17021 titleText: title_text_default, -1 17022 subtreeText: subtree_text_default, -1 17023 labelText: label_text_default, -1 17024 singleSpace: function singleSpace() { -1 17025 return ' '; -1 17026 }, -1 17027 placeholderText: attrText.bind(null, 'placeholder') -1 17028 }; -1 17029 function attrText(attr, vNode) { -1 17030 return vNode.attr(attr) || ''; -1 17031 } -1 17032 function descendantText(nodeName2, _ref49, context) { -1 17033 var actualNode = _ref49.actualNode; -1 17034 nodeName2 = nodeName2.toLowerCase(); -1 17035 var nodeNames2 = [ nodeName2, actualNode.nodeName.toLowerCase() ].join(','); -1 17036 var candidate = actualNode.querySelector(nodeNames2); -1 17037 if (!candidate || candidate.nodeName.toLowerCase() !== nodeName2) { -1 17038 return ''; 16698 17039 }16699 -1 if (color.alpha === void 0) {16700 -1 color.alpha = 1;-1 17040 return accessible_text_default(candidate, context); -1 17041 } -1 17042 var native_text_methods_default = nativeTextMethods; -1 17043 function _nativeTextAlternative(virtualNode) { -1 17044 var context = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; -1 17045 var actualNode = virtualNode.actualNode; -1 17046 if (virtualNode.props.nodeType !== 1 || [ 'presentation', 'none' ].includes(get_role_default(virtualNode))) { -1 17047 return ''; 16701 17048 }16702 -1 return color;-1 17049 var textMethods = findTextMethods(virtualNode); -1 17050 var accessibleName = textMethods.reduce(function(accName, step) { -1 17051 return accName || step(virtualNode, context); -1 17052 }, ''); -1 17053 if (context.debug) { -1 17054 axe.log(accessibleName || '{empty-value}', actualNode, context); -1 17055 } -1 17056 return accessibleName; -1 17057 } -1 17058 function findTextMethods(virtualNode) { -1 17059 var elmSpec = get_element_spec_default(virtualNode, { -1 17060 noMatchAccessibleName: true -1 17061 }); -1 17062 var methods = elmSpec.namingMethods || []; -1 17063 return methods.map(function(methodName) { -1 17064 return native_text_methods_default[methodName]; -1 17065 }); 16703 17066 }16704 -1 function getAll(color, space) {16705 -1 space = ColorSpace.get(space);16706 -1 return space.from(color);-1 17067 function getUnicodeNonBmpRegExp() { -1 17068 return /[\u1D00-\u1D7F\u1D80-\u1DBF\u1DC0-\u1DFF\u20A0-\u20CF\u20D0-\u20FF\u2100-\u214F\u2150-\u218F\u2190-\u21FF\u2200-\u22FF\u2300-\u23FF\u2400-\u243F\u2440-\u245F\u2460-\u24FF\u2500-\u257F\u2580-\u259F\u25A0-\u25FF\u2600-\u26FF\u2700-\u27BF\uE000-\uF8FF]/g; 16707 17069 }16708 -1 function get(color, prop) {16709 -1 var _ColorSpace$resolveCo = ColorSpace.resolveCoord(prop, color.space), space = _ColorSpace$resolveCo.space, index = _ColorSpace$resolveCo.index;16710 -1 var coords = getAll(color, space);16711 -1 return coords[index];-1 17070 function getPunctuationRegExp() { -1 17071 return /[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&\xa3\xa2\xa5\xa7\u20ac()*+,\-.\/:;<=>?@\[\]^_`{|}~\xb1]/g; 16712 17072 }16713 -1 function setAll(color, space, coords) {16714 -1 space = ColorSpace.get(space);16715 -1 color.coords = space.to(color.space, coords);16716 -1 return color;-1 17073 function getSupplementaryPrivateUseRegExp() { -1 17074 return /[\uDB80-\uDBBF][\uDC00-\uDFFF]/g; 16717 17075 }16718 -1 function set(color, prop, value) {16719 -1 color = getColor(color);16720 -1 if (arguments.length === 2 && type(arguments[1]) === 'object') {16721 -1 var object = arguments[1];16722 -1 for (var p2 in object) {16723 -1 set(color, p2, object[p2]);16724 -1 }16725 -1 } else {16726 -1 if (typeof value === 'function') {16727 -1 value = value(get(color, prop));16728 -1 }16729 -1 var _ColorSpace$resolveCo2 = ColorSpace.resolveCoord(prop, color.space), space = _ColorSpace$resolveCo2.space, index = _ColorSpace$resolveCo2.index;16730 -1 var coords = getAll(color, space);16731 -1 coords[index] = value;16732 -1 setAll(color, space, coords);-1 17076 function getCategoryFormatRegExp() { -1 17077 return /[\xAD\u0600-\u0605\u061C\u06DD\u070F\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD80D[\uDC30-\uDC38]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/g; -1 17078 } -1 17079 function hasUnicode(str, options) { -1 17080 var emoji = options.emoji, nonBmp = options.nonBmp, punctuations = options.punctuations; -1 17081 var value = false; -1 17082 if (emoji) { -1 17083 value || (value = emoji_regex_default().test(str)); 16733 17084 }16734 -1 return color;-1 17085 if (nonBmp) { -1 17086 value || (value = getUnicodeNonBmpRegExp().test(str) || getSupplementaryPrivateUseRegExp().test(str) || getCategoryFormatRegExp().test(str)); -1 17087 } -1 17088 if (punctuations) { -1 17089 value || (value = getPunctuationRegExp().test(str)); -1 17090 } -1 17091 return value; 16735 17092 }16736 -1 var XYZ_D50 = new ColorSpace({16737 -1 id: 'xyz-d50',16738 -1 name: 'XYZ D50',16739 -1 white: 'D50',16740 -1 base: XYZ_D65,16741 -1 fromBase: function fromBase(coords) {16742 -1 return adapt$1(XYZ_D65.white, 'D50', coords);16743 -1 },16744 -1 toBase: function toBase(coords) {16745 -1 return adapt$1('D50', XYZ_D65.white, coords);16746 -1 },16747 -1 formats: {16748 -1 color: {}-1 17093 var has_unicode_default = hasUnicode; -1 17094 function _isIconLigature(textVNode) { -1 17095 var differenceThreshold = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : .15; -1 17096 var occurrenceThreshold = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 3; -1 17097 var nodeValue = textVNode.actualNode.nodeValue.trim(); -1 17098 if (!sanitize_default(nodeValue) || has_unicode_default(nodeValue, { -1 17099 emoji: true, -1 17100 nonBmp: true -1 17101 })) { -1 17102 return false; 16749 17103 }16750 -1 });16751 -1 var \u03b5$3 = 216 / 24389;16752 -1 var \u03b53$1 = 24 / 116;16753 -1 var \u03ba$1 = 24389 / 27;16754 -1 var white$1 = WHITES.D50;16755 -1 var lab = new ColorSpace({16756 -1 id: 'lab',16757 -1 name: 'Lab',16758 -1 coords: {16759 -1 l: {16760 -1 refRange: [ 0, 100 ],16761 -1 name: 'L'16762 -1 },16763 -1 a: {16764 -1 refRange: [ -125, 125 ]16765 -1 },16766 -1 b: {16767 -1 refRange: [ -125, 125 ]16768 -1 }16769 -1 },16770 -1 white: white$1,16771 -1 base: XYZ_D50,16772 -1 fromBase: function fromBase(XYZ) {16773 -1 var xyz = XYZ.map(function(value, i) {16774 -1 return value / white$1[i];16775 -1 });16776 -1 var f = xyz.map(function(value) {16777 -1 return value > \u03b5$3 ? Math.cbrt(value) : (\u03ba$1 * value + 16) / 116;16778 -1 });16779 -1 return [ 116 * f[1] - 16, 500 * (f[0] - f[1]), 200 * (f[1] - f[2]) ];16780 -1 },16781 -1 toBase: function toBase(Lab) {16782 -1 var f = [];16783 -1 f[1] = (Lab[0] + 16) / 116;16784 -1 f[0] = Lab[1] / 500 + f[1];16785 -1 f[2] = f[1] - Lab[2] / 200;16786 -1 var xyz = [ f[0] > \u03b53$1 ? Math.pow(f[0], 3) : (116 * f[0] - 16) / \u03ba$1, Lab[0] > 8 ? Math.pow((Lab[0] + 16) / 116, 3) : Lab[0] / \u03ba$1, f[2] > \u03b53$1 ? Math.pow(f[2], 3) : (116 * f[2] - 16) / \u03ba$1 ];16787 -1 return xyz.map(function(value, i) {16788 -1 return value * white$1[i];-1 17104 var canvasContext = cache_default.get('canvasContext', function() { -1 17105 return document.createElement('canvas').getContext('2d', { -1 17106 willReadFrequently: true 16789 17107 });16790 -1 },16791 -1 formats: {16792 -1 lab: {16793 -1 coords: [ '<number> | <percentage>', '<number>', '<number>' ]-1 17108 }); -1 17109 var canvas = canvasContext.canvas; -1 17110 var fonts = cache_default.get('fonts', function() { -1 17111 return {}; -1 17112 }); -1 17113 var style = window.getComputedStyle(textVNode.parent.actualNode); -1 17114 var fontFamily = style.getPropertyValue('font-family'); -1 17115 if (!fonts[fontFamily]) { -1 17116 fonts[fontFamily] = { -1 17117 occurrences: 0, -1 17118 numLigatures: 0 -1 17119 }; -1 17120 } -1 17121 var font = fonts[fontFamily]; -1 17122 if (font.occurrences >= occurrenceThreshold) { -1 17123 if (font.numLigatures / font.occurrences === 1) { -1 17124 return true; -1 17125 } else if (font.numLigatures === 0) { -1 17126 return false; 16794 17127 } 16795 17128 }16796 -1 });16797 -1 function constrain(angle) {16798 -1 return (angle % 360 + 360) % 360;16799 -1 }16800 -1 function adjust(arc, angles) {16801 -1 if (arc === 'raw') {16802 -1 return angles;-1 17129 font.occurrences++; -1 17130 var fontSize = 30; -1 17131 var fontStyle = ''.concat(fontSize, 'px ').concat(fontFamily); -1 17132 canvasContext.font = fontStyle; -1 17133 var firstChar = nodeValue.charAt(0); -1 17134 var width = canvasContext.measureText(firstChar).width; -1 17135 if (width === 0) { -1 17136 font.numLigatures++; -1 17137 return true; 16803 17138 }16804 -1 var _angles$map = angles.map(constrain), _angles$map2 = _slicedToArray(_angles$map, 2), a1 = _angles$map2[0], a2 = _angles$map2[1];16805 -1 var angleDiff = a2 - a1;16806 -1 if (arc === 'increasing') {16807 -1 if (angleDiff < 0) {16808 -1 a2 += 360;16809 -1 }16810 -1 } else if (arc === 'decreasing') {16811 -1 if (angleDiff > 0) {16812 -1 a1 += 360;16813 -1 }16814 -1 } else if (arc === 'longer') {16815 -1 if (-180 < angleDiff && angleDiff < 180) {16816 -1 if (angleDiff > 0) {16817 -1 a2 += 360;16818 -1 } else {16819 -1 a1 += 360;16820 -1 }16821 -1 }16822 -1 } else if (arc === 'shorter') {16823 -1 if (angleDiff > 180) {16824 -1 a1 += 360;16825 -1 } else if (angleDiff < -180) {16826 -1 a2 += 360;16827 -1 }-1 17139 if (width < 30) { -1 17140 var diff = 30 / width; -1 17141 width *= diff; -1 17142 fontSize *= diff; -1 17143 fontStyle = ''.concat(fontSize, 'px ').concat(fontFamily); 16828 17144 }16829 -1 return [ a1, a2 ];16830 -1 }16831 -1 var lch = new ColorSpace({16832 -1 id: 'lch',16833 -1 name: 'LCH',16834 -1 coords: {16835 -1 l: {16836 -1 refRange: [ 0, 100 ],16837 -1 name: 'Lightness'16838 -1 },16839 -1 c: {16840 -1 refRange: [ 0, 150 ],16841 -1 name: 'Chroma'16842 -1 },16843 -1 h: {16844 -1 refRange: [ 0, 360 ],16845 -1 type: 'angle',16846 -1 name: 'Hue'16847 -1 }16848 -1 },16849 -1 base: lab,16850 -1 fromBase: function fromBase(Lab) {16851 -1 var _Lab = _slicedToArray(Lab, 3), L = _Lab[0], a2 = _Lab[1], b2 = _Lab[2];16852 -1 var hue;16853 -1 var \u03b52 = .02;16854 -1 if (Math.abs(a2) < \u03b52 && Math.abs(b2) < \u03b52) {16855 -1 hue = NaN;16856 -1 } else {16857 -1 hue = Math.atan2(b2, a2) * 180 / Math.PI;16858 -1 }16859 -1 return [ L, Math.sqrt(Math.pow(a2, 2) + Math.pow(b2, 2)), constrain(hue) ];16860 -1 },16861 -1 toBase: function toBase(LCH) {16862 -1 var _LCH = _slicedToArray(LCH, 3), Lightness = _LCH[0], Chroma = _LCH[1], Hue = _LCH[2];16863 -1 if (Chroma < 0) {16864 -1 Chroma = 0;16865 -1 }16866 -1 if (isNaN(Hue)) {16867 -1 Hue = 0;-1 17145 canvas.width = width; -1 17146 canvas.height = fontSize; -1 17147 canvasContext.font = fontStyle; -1 17148 canvasContext.textAlign = 'left'; -1 17149 canvasContext.textBaseline = 'top'; -1 17150 canvasContext.fillText(firstChar, 0, 0); -1 17151 var compareData = new Uint32Array(canvasContext.getImageData(0, 0, width, fontSize).data.buffer); -1 17152 if (!compareData.some(function(pixel) { -1 17153 return pixel; -1 17154 })) { -1 17155 font.numLigatures++; -1 17156 return true; -1 17157 } -1 17158 canvasContext.clearRect(0, 0, width, fontSize); -1 17159 canvasContext.fillText(nodeValue, 0, 0); -1 17160 var compareWith = new Uint32Array(canvasContext.getImageData(0, 0, width, fontSize).data.buffer); -1 17161 var differences = compareData.reduce(function(diff, pixel, i) { -1 17162 if (pixel === 0 && compareWith[i] === 0) { -1 17163 return diff; 16868 17164 }16869 -1 return [ Lightness, Chroma * Math.cos(Hue * Math.PI / 180), Chroma * Math.sin(Hue * Math.PI / 180) ];16870 -1 },16871 -1 formats: {16872 -1 lch: {16873 -1 coords: [ '<number> | <percentage>', '<number>', '<number> | <angle>' ]-1 17165 if (pixel !== 0 && compareWith[i] !== 0) { -1 17166 return diff; 16874 17167 } -1 17168 return ++diff; -1 17169 }, 0); -1 17170 var expectedWidth = nodeValue.split('').reduce(function(totalWidth, _char2) { -1 17171 return totalWidth + canvasContext.measureText(_char2).width; -1 17172 }, 0); -1 17173 var actualWidth = canvasContext.measureText(nodeValue).width; -1 17174 var pixelDifference = differences / compareData.length; -1 17175 var sizeDifference = 1 - actualWidth / expectedWidth; -1 17176 if (pixelDifference >= differenceThreshold && sizeDifference >= differenceThreshold) { -1 17177 font.numLigatures++; -1 17178 return true; 16875 17179 }16876 -1 });16877 -1 var Gfactor = Math.pow(25, 7);16878 -1 var \u03c0$1 = Math.PI;16879 -1 var r2d = 180 / \u03c0$1;16880 -1 var d2r$1 = \u03c0$1 / 180;16881 -1 function deltaE2000(color, sample) {16882 -1 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;16883 -1 var _lab$from = lab.from(color), _lab$from2 = _slicedToArray(_lab$from, 3), L1 = _lab$from2[0], a1 = _lab$from2[1], b1 = _lab$from2[2];16884 -1 var C1 = lch.from(lab, [ L1, a1, b1 ])[1];16885 -1 var _lab$from3 = lab.from(sample), _lab$from4 = _slicedToArray(_lab$from3, 3), L2 = _lab$from4[0], a2 = _lab$from4[1], b2 = _lab$from4[2];16886 -1 var C2 = lch.from(lab, [ L2, a2, b2 ])[1];16887 -1 if (C1 < 0) {16888 -1 C1 = 0;-1 17180 return false; -1 17181 } -1 17182 function _accessibleTextVirtual(virtualNode) { -1 17183 var context = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; -1 17184 context = prepareContext(virtualNode, context); -1 17185 if (shouldIgnoreHidden(virtualNode, context)) { -1 17186 return ''; 16889 17187 }16890 -1 if (C2 < 0) {16891 -1 C2 = 0;-1 17188 if (shouldIgnoreIconLigature(virtualNode, context)) { -1 17189 return ''; 16892 17190 }16893 -1 var Cbar = (C1 + C2) / 2;16894 -1 var C7 = Math.pow(Cbar, 7);16895 -1 var G = .5 * (1 - Math.sqrt(C7 / (C7 + Gfactor)));16896 -1 var adash1 = (1 + G) * a1;16897 -1 var adash2 = (1 + G) * a2;16898 -1 var Cdash1 = Math.sqrt(Math.pow(adash1, 2) + Math.pow(b1, 2));16899 -1 var Cdash2 = Math.sqrt(Math.pow(adash2, 2) + Math.pow(b2, 2));16900 -1 var h1 = adash1 === 0 && b1 === 0 ? 0 : Math.atan2(b1, adash1);16901 -1 var h2 = adash2 === 0 && b2 === 0 ? 0 : Math.atan2(b2, adash2);16902 -1 if (h1 < 0) {16903 -1 h1 += 2 * \u03c0$1;-1 17191 var computationSteps = [ arialabelledby_text_default, _arialabelText, _nativeTextAlternative, form_control_value_default, subtree_text_default, textNodeValue, title_text_default ]; -1 17192 var accessibleName = computationSteps.reduce(function(accName, step) { -1 17193 if (context.startNode === virtualNode) { -1 17194 accName = sanitize_default(accName); -1 17195 } -1 17196 if (accName !== '') { -1 17197 return accName; -1 17198 } -1 17199 return step(virtualNode, context); -1 17200 }, ''); -1 17201 if (context.debug) { -1 17202 axe.log(accessibleName || '{empty-value}', virtualNode.actualNode, context); 16904 17203 }16905 -1 if (h2 < 0) {16906 -1 h2 += 2 * \u03c0$1;-1 17204 return accessibleName; -1 17205 } -1 17206 function textNodeValue(virtualNode) { -1 17207 if (virtualNode.props.nodeType !== 3) { -1 17208 return ''; 16907 17209 }16908 -1 h1 *= r2d;16909 -1 h2 *= r2d;16910 -1 var \u0394L = L2 - L1;16911 -1 var \u0394C = Cdash2 - Cdash1;16912 -1 var hdiff = h2 - h1;16913 -1 var hsum = h1 + h2;16914 -1 var habs = Math.abs(hdiff);16915 -1 var \u0394h;16916 -1 if (Cdash1 * Cdash2 === 0) {16917 -1 \u0394h = 0;16918 -1 } else if (habs <= 180) {16919 -1 \u0394h = hdiff;16920 -1 } else if (hdiff > 180) {16921 -1 \u0394h = hdiff - 360;16922 -1 } else if (hdiff < -180) {16923 -1 \u0394h = hdiff + 360;16924 -1 } else {16925 -1 console.log('the unthinkable has happened');-1 17210 return virtualNode.props.nodeValue; -1 17211 } -1 17212 function shouldIgnoreHidden(virtualNode, context) { -1 17213 if (!virtualNode) { -1 17214 return false; 16926 17215 }16927 -1 var \u0394H = 2 * Math.sqrt(Cdash2 * Cdash1) * Math.sin(\u0394h * d2r$1 / 2);16928 -1 var Ldash = (L1 + L2) / 2;16929 -1 var Cdash = (Cdash1 + Cdash2) / 2;16930 -1 var Cdash7 = Math.pow(Cdash, 7);16931 -1 var hdash;16932 -1 if (Cdash1 * Cdash2 === 0) {16933 -1 hdash = hsum;16934 -1 } else if (habs <= 180) {16935 -1 hdash = hsum / 2;16936 -1 } else if (hsum < 360) {16937 -1 hdash = (hsum + 360) / 2;16938 -1 } else {16939 -1 hdash = (hsum - 360) / 2;-1 17216 if (virtualNode.props.nodeType !== 1 || context.includeHidden) { -1 17217 return false; 16940 17218 }16941 -1 var lsq = Math.pow(Ldash - 50, 2);16942 -1 var SL = 1 + .015 * lsq / Math.sqrt(20 + lsq);16943 -1 var SC = 1 + .045 * Cdash;16944 -1 var T = 1;16945 -1 T -= .17 * Math.cos((hdash - 30) * d2r$1);16946 -1 T += .24 * Math.cos(2 * hdash * d2r$1);16947 -1 T += .32 * Math.cos((3 * hdash + 6) * d2r$1);16948 -1 T -= .2 * Math.cos((4 * hdash - 63) * d2r$1);16949 -1 var SH = 1 + .015 * Cdash * T;16950 -1 var \u0394\u03b8 = 30 * Math.exp(-1 * Math.pow((hdash - 275) / 25, 2));16951 -1 var RC = 2 * Math.sqrt(Cdash7 / (Cdash7 + Gfactor));16952 -1 var RT = -1 * Math.sin(2 * \u0394\u03b8 * d2r$1) * RC;16953 -1 var dE = Math.pow(\u0394L / (kL * SL), 2);16954 -1 dE += Math.pow(\u0394C / (kC * SC), 2);16955 -1 dE += Math.pow(\u0394H / (kH * SH), 2);16956 -1 dE += RT * (\u0394C / (kC * SC)) * (\u0394H / (kH * SH));16957 -1 return Math.sqrt(dE);-1 17219 return !_isVisibleToScreenReaders(virtualNode); 16958 17220 }16959 -1 var \u03b5$2 = 75e-6;16960 -1 function inGamut(color) {16961 -1 var space = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : color.space;16962 -1 var _ref46 = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}, _ref46$epsilon = _ref46.epsilon, epsilon = _ref46$epsilon === void 0 ? \u03b5$2 : _ref46$epsilon;16963 -1 color = getColor(color);16964 -1 space = ColorSpace.get(space);16965 -1 var coords = color.coords;16966 -1 if (space !== color.space) {16967 -1 coords = space.from(color);-1 17221 function shouldIgnoreIconLigature(virtualNode, context) { -1 17222 var _context$occurrenceTh; -1 17223 var ignoreIconLigature = context.ignoreIconLigature, pixelThreshold = context.pixelThreshold; -1 17224 var occurrenceThreshold = (_context$occurrenceTh = context.occurrenceThreshold) !== null && _context$occurrenceTh !== void 0 ? _context$occurrenceTh : context.occuranceThreshold; -1 17225 if (virtualNode.props.nodeType !== 3 || !ignoreIconLigature) { -1 17226 return false; 16968 17227 }16969 -1 return space.inGamut(coords, {16970 -1 epsilon: epsilon16971 -1 });16972 -1 }16973 -1 function clone2(color) {16974 -1 return {16975 -1 space: color.space,16976 -1 coords: color.coords.slice(),16977 -1 alpha: color.alpha16978 -1 };-1 17228 return _isIconLigature(virtualNode, pixelThreshold, occurrenceThreshold); 16979 17229 }16980 -1 function toGamut(color) {16981 -1 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;16982 -1 if (isString(arguments[1])) {16983 -1 space = arguments[1];-1 17230 function prepareContext(virtualNode, context) { -1 17231 if (!context.startNode) { -1 17232 context = _extends({ -1 17233 startNode: virtualNode -1 17234 }, context); 16984 17235 }16985 -1 space = ColorSpace.get(space);16986 -1 if (inGamut(color, space, {16987 -1 epsilon: 016988 -1 })) {16989 -1 return color;-1 17236 if (virtualNode.props.nodeType === 1 && context.inLabelledByContext && context.includeHidden === void 0) { -1 17237 context = _extends({ -1 17238 includeHidden: !_isVisibleToScreenReaders(virtualNode) -1 17239 }, context); 16990 17240 }16991 -1 var spaceColor = to(color, space);16992 -1 if (method !== 'clip' && !inGamut(color, space)) {16993 -1 var clipped = toGamut(clone2(spaceColor), {16994 -1 method: 'clip',16995 -1 space: space16996 -1 });16997 -1 if (deltaE2000(color, clipped) > 2) {16998 -1 var coordMeta = ColorSpace.resolveCoord(method);16999 -1 var mapSpace = coordMeta.space;17000 -1 var coordId = coordMeta.id;17001 -1 var mappedColor = to(spaceColor, mapSpace);17002 -1 var bounds = coordMeta.range || coordMeta.refRange;17003 -1 var min = bounds[0];17004 -1 var \u03b52 = .01;17005 -1 var low = min;17006 -1 var high = get(mappedColor, coordId);17007 -1 while (high - low > \u03b52) {17008 -1 var clipped2 = clone2(mappedColor);17009 -1 clipped2 = toGamut(clipped2, {17010 -1 space: space,17011 -1 method: 'clip'17012 -1 });17013 -1 var deltaE2 = deltaE2000(mappedColor, clipped2);17014 -1 if (deltaE2 - 2 < \u03b52) {17015 -1 low = get(mappedColor, coordId);17016 -1 } else {17017 -1 high = get(mappedColor, coordId);17018 -1 }17019 -1 set(mappedColor, coordId, (low + high) / 2);17020 -1 }17021 -1 spaceColor = to(mappedColor, space);17022 -1 } else {17023 -1 spaceColor = clipped;17024 -1 }-1 17241 return context; -1 17242 } -1 17243 _accessibleTextVirtual.alreadyProcessed = function alreadyProcessed(virtualnode, context) { -1 17244 context.processed = context.processed || []; -1 17245 if (context.processed.includes(virtualnode)) { -1 17246 return true; 17025 17247 }17026 -1 if (method === 'clip' || !inGamut(spaceColor, space, {17027 -1 epsilon: 017028 -1 })) {17029 -1 var _bounds = Object.values(space.coords).map(function(c4) {17030 -1 return c4.range || [];17031 -1 });17032 -1 spaceColor.coords = spaceColor.coords.map(function(c4, i) {17033 -1 var _bounds$i = _slicedToArray(_bounds[i], 2), min = _bounds$i[0], max2 = _bounds$i[1];17034 -1 if (min !== void 0) {17035 -1 c4 = Math.max(min, c4);17036 -1 }17037 -1 if (max2 !== void 0) {17038 -1 c4 = Math.min(c4, max2);17039 -1 }17040 -1 return c4;17041 -1 });-1 17248 context.processed.push(virtualnode); -1 17249 return false; -1 17250 }; -1 17251 function removeUnicode(str, options) { -1 17252 var emoji = options.emoji, nonBmp = options.nonBmp, punctuations = options.punctuations; -1 17253 if (emoji) { -1 17254 str = str.replace(emoji_regex_default(), ''); 17042 17255 }17043 -1 if (space !== color.space) {17044 -1 spaceColor = to(spaceColor, color.space);-1 17256 if (nonBmp) { -1 17257 str = str.replace(getUnicodeNonBmpRegExp(), '').replace(getSupplementaryPrivateUseRegExp(), '').replace(getCategoryFormatRegExp(), ''); 17045 17258 }17046 -1 color.coords = spaceColor.coords;17047 -1 return color;-1 17259 if (punctuations) { -1 17260 str = str.replace(getPunctuationRegExp(), ''); -1 17261 } -1 17262 return str; 17048 17263 }17049 -1 toGamut.returns = 'color';17050 -1 function to(color, space) {17051 -1 var _ref48 = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}, inGamut2 = _ref48.inGamut;17052 -1 color = getColor(color);17053 -1 space = ColorSpace.get(space);17054 -1 var coords = space.from(color);17055 -1 var ret = {17056 -1 space: space,17057 -1 coords: coords,17058 -1 alpha: color.alpha17059 -1 };17060 -1 if (inGamut2) {17061 -1 ret = toGamut(ret);-1 17264 var remove_unicode_default = removeUnicode; -1 17265 function isHumanInterpretable(str) { -1 17266 if (isEmpty(str) || isNonDigitCharacter(str) || isSymbolicText(str) || isUnicodeOrPunctuation(str)) { -1 17267 return 0; 17062 17268 }17063 -1 return ret;-1 17269 return 1; 17064 17270 }17065 -1 to.returns = 'color';17066 -1 function serialize(color) {17067 -1 var _ref50, _color$space$getForma;17068 -1 var _ref49 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};17069 -1 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);17070 -1 var ret;17071 -1 color = getColor(color);17072 -1 var formatId = format;17073 -1 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;17074 -1 inGamut$1 || (inGamut$1 = format.toGamut);17075 -1 var coords = color.coords;17076 -1 coords = coords.map(function(c4) {17077 -1 return c4 ? c4 : 0;-1 17271 function isEmpty(str) { -1 17272 return sanitize_default(str).length === 0; -1 17273 } -1 17274 function isNonDigitCharacter(str) { -1 17275 return str.length === 1 && str.match(/\D/); -1 17276 } -1 17277 function isSymbolicText(str) { -1 17278 var symbolicText = [ 'aa', 'abc' ]; -1 17279 return symbolicText.includes(str.toLowerCase()); -1 17280 } -1 17281 function isUnicodeOrPunctuation(str) { -1 17282 var noUnicodeStr = remove_unicode_default(str, { -1 17283 emoji: true, -1 17284 nonBmp: true, -1 17285 punctuations: true 17078 17286 });17079 -1 if (inGamut$1 && !inGamut(color)) {17080 -1 coords = toGamut(clone2(color), inGamut$1 === true ? void 0 : inGamut$1).coords;-1 17287 return !sanitize_default(noUnicodeStr); -1 17288 } -1 17289 var is_human_interpretable_default = isHumanInterpretable; -1 17290 var _autocomplete = { -1 17291 stateTerms: [ 'on', 'off' ], -1 17292 standaloneTerms: [ 'name', 'honorific-prefix', 'given-name', 'additional-name', 'family-name', 'honorific-suffix', 'nickname', 'username', 'new-password', 'current-password', 'organization-title', 'organization', 'street-address', 'address-line1', 'address-line2', 'address-line3', 'address-level4', 'address-level3', 'address-level2', 'address-level1', 'country', 'country-name', 'postal-code', 'cc-name', 'cc-given-name', 'cc-additional-name', 'cc-family-name', 'cc-number', 'cc-exp', 'cc-exp-month', 'cc-exp-year', 'cc-csc', 'cc-type', 'transaction-currency', 'transaction-amount', 'language', 'bday', 'bday-day', 'bday-month', 'bday-year', 'sex', 'url', 'photo', 'one-time-code' ], -1 17293 qualifiers: [ 'home', 'work', 'mobile', 'fax', 'pager' ], -1 17294 qualifiedTerms: [ 'tel', 'tel-country-code', 'tel-national', 'tel-area-code', 'tel-local', 'tel-local-prefix', 'tel-local-suffix', 'tel-extension', 'email', 'impp' ], -1 17295 locations: [ 'billing', 'shipping' ] -1 17296 }; -1 17297 function isValidAutocomplete(autocompleteValue) { -1 17298 var _ref50 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, _ref50$looseTyped = _ref50.looseTyped, looseTyped = _ref50$looseTyped === void 0 ? false : _ref50$looseTyped, _ref50$stateTerms = _ref50.stateTerms, stateTerms = _ref50$stateTerms === void 0 ? [] : _ref50$stateTerms, _ref50$locations = _ref50.locations, locations = _ref50$locations === void 0 ? [] : _ref50$locations, _ref50$qualifiers = _ref50.qualifiers, qualifiers = _ref50$qualifiers === void 0 ? [] : _ref50$qualifiers, _ref50$standaloneTerm = _ref50.standaloneTerms, standaloneTerms = _ref50$standaloneTerm === void 0 ? [] : _ref50$standaloneTerm, _ref50$qualifiedTerms = _ref50.qualifiedTerms, qualifiedTerms = _ref50$qualifiedTerms === void 0 ? [] : _ref50$qualifiedTerms, _ref50$ignoredValues = _ref50.ignoredValues, ignoredValues = _ref50$ignoredValues === void 0 ? [] : _ref50$ignoredValues; -1 17299 autocompleteValue = autocompleteValue.toLowerCase().trim(); -1 17300 stateTerms = stateTerms.concat(_autocomplete.stateTerms); -1 17301 if (stateTerms.includes(autocompleteValue) || autocompleteValue === '') { -1 17302 return true; 17081 17303 }17082 -1 if (format.type === 'custom') {17083 -1 customOptions.precision = precision;17084 -1 if (format.serialize) {17085 -1 ret = format.serialize(coords, color.alpha, customOptions);17086 -1 } else {17087 -1 throw new TypeError('format '.concat(formatId, ' can only be used to parse colors, not for serialization'));-1 17304 qualifiers = qualifiers.concat(_autocomplete.qualifiers); -1 17305 locations = locations.concat(_autocomplete.locations); -1 17306 standaloneTerms = standaloneTerms.concat(_autocomplete.standaloneTerms); -1 17307 qualifiedTerms = qualifiedTerms.concat(_autocomplete.qualifiedTerms); -1 17308 var autocompleteTerms = autocompleteValue.split(/\s+/g); -1 17309 if (autocompleteTerms[autocompleteTerms.length - 1] === 'webauthn') { -1 17310 autocompleteTerms.pop(); -1 17311 if (autocompleteTerms.length === 0) { -1 17312 return false; 17088 17313 }17089 -1 } else {17090 -1 var name = format.name || 'color';17091 -1 if (format.serializeCoords) {17092 -1 coords = format.serializeCoords(coords, precision);17093 -1 } else {17094 -1 if (precision !== null) {17095 -1 coords = coords.map(function(c4) {17096 -1 return toPrecision(c4, precision);17097 -1 });17098 -1 }-1 17314 } -1 17315 if (!looseTyped) { -1 17316 if (autocompleteTerms[0].length > 8 && autocompleteTerms[0].substr(0, 8) === 'section-') { -1 17317 autocompleteTerms.shift(); 17099 17318 }17100 -1 var args = _toConsumableArray(coords);17101 -1 if (name === 'color') {17102 -1 var _format$ids;17103 -1 var cssId = format.id || ((_format$ids = format.ids) === null || _format$ids === void 0 ? void 0 : _format$ids[0]) || color.space.id;17104 -1 args.unshift(cssId);-1 17319 if (locations.includes(autocompleteTerms[0])) { -1 17320 autocompleteTerms.shift(); 17105 17321 }17106 -1 var alpha = color.alpha;17107 -1 if (precision !== null) {17108 -1 alpha = toPrecision(alpha, precision);-1 17322 if (qualifiers.includes(autocompleteTerms[0])) { -1 17323 autocompleteTerms.shift(); -1 17324 standaloneTerms = []; -1 17325 } -1 17326 if (autocompleteTerms.length !== 1) { -1 17327 return false; 17109 17328 }17110 -1 var strAlpha = color.alpha < 1 && !format.noAlpha ? ''.concat(format.commas ? ',' : ' /', ' ').concat(alpha) : '';17111 -1 ret = ''.concat(name, '(').concat(args.join(format.commas ? ', ' : ' ')).concat(strAlpha, ')');17112 17329 }17113 -1 return ret;-1 17330 var purposeTerm = autocompleteTerms[autocompleteTerms.length - 1]; -1 17331 if (ignoredValues.includes(purposeTerm)) { -1 17332 return void 0; -1 17333 } -1 17334 return standaloneTerms.includes(purposeTerm) || qualifiedTerms.includes(purposeTerm); 17114 17335 }17115 -1 var toXYZ_M$5 = [ [ .6369580483012914, .14461690358620832, .1688809751641721 ], [ .2627002120112671, .6779980715188708, .05930171646986196 ], [ 0, .028072693049087428, 1.060985057710791 ] ];17116 -1 var fromXYZ_M$5 = [ [ 1.716651187971268, -.355670783776392, -.25336628137366 ], [ -.666684351832489, 1.616481236634939, .0157685458139111 ], [ .017639857445311, -.042770613257809, .942103121235474 ] ];17117 -1 var REC2020Linear = new RGBColorSpace({17118 -1 id: 'rec2020-linear',17119 -1 name: 'Linear REC.2020',17120 -1 white: 'D65',17121 -1 toXYZ_M: toXYZ_M$5,17122 -1 fromXYZ_M: fromXYZ_M$5,17123 -1 formats: {17124 -1 color: {}-1 17336 var is_valid_autocomplete_default = isValidAutocomplete; -1 17337 function labelVirtual(virtualNode) { -1 17338 var ref, candidate; -1 17339 if (virtualNode.attr('aria-labelledby')) { -1 17340 ref = idrefs_default(virtualNode.actualNode, 'aria-labelledby'); -1 17341 candidate = ref.map(function(thing) { -1 17342 var vNode = get_node_from_tree_default(thing); -1 17343 return vNode ? visible_virtual_default(vNode) : ''; -1 17344 }).join(' ').trim(); -1 17345 if (candidate) { -1 17346 return candidate; -1 17347 } 17125 17348 }17126 -1 });17127 -1 var \u03b1 = 1.09929682680944;17128 -1 var \u03b2 = .018053968510807;17129 -1 var REC2020 = new RGBColorSpace({17130 -1 id: 'rec2020',17131 -1 name: 'REC.2020',17132 -1 base: REC2020Linear,17133 -1 toBase: function toBase(RGB) {17134 -1 return RGB.map(function(val) {17135 -1 if (val < \u03b2 * 4.5) {17136 -1 return val / 4.5;17137 -1 }17138 -1 return Math.pow((val + \u03b1 - 1) / \u03b1, 1 / .45);17139 -1 });17140 -1 },17141 -1 fromBase: function fromBase(RGB) {17142 -1 return RGB.map(function(val) {17143 -1 if (val >= \u03b2) {17144 -1 return \u03b1 * Math.pow(val, .45) - (\u03b1 - 1);17145 -1 }17146 -1 return 4.5 * val;17147 -1 });17148 -1 },17149 -1 formats: {17150 -1 color: {}-1 17349 candidate = virtualNode.attr('aria-label'); -1 17350 if (candidate) { -1 17351 candidate = sanitize_default(candidate); -1 17352 if (candidate) { -1 17353 return candidate; -1 17354 } 17151 17355 }17152 -1 });17153 -1 var toXYZ_M$4 = [ [ .4865709486482162, .26566769316909306, .1982172852343625 ], [ .2289745640697488, .6917385218365064, .079286914093745 ], [ 0, .04511338185890264, 1.043944368900976 ] ];17154 -1 var fromXYZ_M$4 = [ [ 2.493496911941425, -.9313836179191239, -.40271078445071684 ], [ -.8294889695615747, 1.7626640603183463, .023624685841943577 ], [ .03584583024378447, -.07617238926804182, .9568845240076872 ] ];17155 -1 var P3Linear = new RGBColorSpace({17156 -1 id: 'p3-linear',17157 -1 name: 'Linear P3',17158 -1 white: 'D65',17159 -1 toXYZ_M: toXYZ_M$4,17160 -1 fromXYZ_M: fromXYZ_M$417161 -1 });17162 -1 var toXYZ_M$3 = [ [ .41239079926595934, .357584339383878, .1804807884018343 ], [ .21263900587151027, .715168678767756, .07219231536073371 ], [ .01933081871559182, .11919477979462598, .9505321522496607 ] ];17163 -1 var fromXYZ_M$3 = [ [ 3.2409699419045226, -1.537383177570094, -.4986107602930034 ], [ -.9692436362808796, 1.8759675015077202, .04155505740717559 ], [ .05563007969699366, -.20397695888897652, 1.0569715142428786 ] ];17164 -1 var sRGBLinear = new RGBColorSpace({17165 -1 id: 'srgb-linear',17166 -1 name: 'Linear sRGB',17167 -1 white: 'D65',17168 -1 toXYZ_M: toXYZ_M$3,17169 -1 fromXYZ_M: fromXYZ_M$3,17170 -1 formats: {17171 -1 color: {}-1 17356 return null; -1 17357 } -1 17358 var label_virtual_default = labelVirtual; -1 17359 function visible(element, screenReader, noRecursing) { -1 17360 element = get_node_from_tree_default(element); -1 17361 return visible_virtual_default(element, screenReader, noRecursing); -1 17362 } -1 17363 var visible_default = visible; -1 17364 function labelVirtual2(virtualNode) { -1 17365 var ref, candidate, doc; -1 17366 candidate = label_virtual_default(virtualNode); -1 17367 if (candidate) { -1 17368 return candidate; 17172 17369 }17173 -1 });17174 -1 var KEYWORDS = {17175 -1 aliceblue: [ 240 / 255, 248 / 255, 1 ],17176 -1 antiquewhite: [ 250 / 255, 235 / 255, 215 / 255 ],17177 -1 aqua: [ 0, 1, 1 ],17178 -1 aquamarine: [ 127 / 255, 1, 212 / 255 ],17179 -1 azure: [ 240 / 255, 1, 1 ],17180 -1 beige: [ 245 / 255, 245 / 255, 220 / 255 ],17181 -1 bisque: [ 1, 228 / 255, 196 / 255 ],17182 -1 black: [ 0, 0, 0 ],17183 -1 blanchedalmond: [ 1, 235 / 255, 205 / 255 ],17184 -1 blue: [ 0, 0, 1 ],17185 -1 blueviolet: [ 138 / 255, 43 / 255, 226 / 255 ],17186 -1 brown: [ 165 / 255, 42 / 255, 42 / 255 ],17187 -1 burlywood: [ 222 / 255, 184 / 255, 135 / 255 ],17188 -1 cadetblue: [ 95 / 255, 158 / 255, 160 / 255 ],17189 -1 chartreuse: [ 127 / 255, 1, 0 ],17190 -1 chocolate: [ 210 / 255, 105 / 255, 30 / 255 ],17191 -1 coral: [ 1, 127 / 255, 80 / 255 ],17192 -1 cornflowerblue: [ 100 / 255, 149 / 255, 237 / 255 ],17193 -1 cornsilk: [ 1, 248 / 255, 220 / 255 ],17194 -1 crimson: [ 220 / 255, 20 / 255, 60 / 255 ],17195 -1 cyan: [ 0, 1, 1 ],17196 -1 darkblue: [ 0, 0, 139 / 255 ],17197 -1 darkcyan: [ 0, 139 / 255, 139 / 255 ],17198 -1 darkgoldenrod: [ 184 / 255, 134 / 255, 11 / 255 ],17199 -1 darkgray: [ 169 / 255, 169 / 255, 169 / 255 ],17200 -1 darkgreen: [ 0, 100 / 255, 0 ],17201 -1 darkgrey: [ 169 / 255, 169 / 255, 169 / 255 ],17202 -1 darkkhaki: [ 189 / 255, 183 / 255, 107 / 255 ],17203 -1 darkmagenta: [ 139 / 255, 0, 139 / 255 ],17204 -1 darkolivegreen: [ 85 / 255, 107 / 255, 47 / 255 ],17205 -1 darkorange: [ 1, 140 / 255, 0 ],17206 -1 darkorchid: [ 153 / 255, 50 / 255, 204 / 255 ],17207 -1 darkred: [ 139 / 255, 0, 0 ],17208 -1 darksalmon: [ 233 / 255, 150 / 255, 122 / 255 ],17209 -1 darkseagreen: [ 143 / 255, 188 / 255, 143 / 255 ],17210 -1 darkslateblue: [ 72 / 255, 61 / 255, 139 / 255 ],17211 -1 darkslategray: [ 47 / 255, 79 / 255, 79 / 255 ],17212 -1 darkslategrey: [ 47 / 255, 79 / 255, 79 / 255 ],17213 -1 darkturquoise: [ 0, 206 / 255, 209 / 255 ],17214 -1 darkviolet: [ 148 / 255, 0, 211 / 255 ],17215 -1 deeppink: [ 1, 20 / 255, 147 / 255 ],17216 -1 deepskyblue: [ 0, 191 / 255, 1 ],17217 -1 dimgray: [ 105 / 255, 105 / 255, 105 / 255 ],17218 -1 dimgrey: [ 105 / 255, 105 / 255, 105 / 255 ],17219 -1 dodgerblue: [ 30 / 255, 144 / 255, 1 ],17220 -1 firebrick: [ 178 / 255, 34 / 255, 34 / 255 ],17221 -1 floralwhite: [ 1, 250 / 255, 240 / 255 ],17222 -1 forestgreen: [ 34 / 255, 139 / 255, 34 / 255 ],17223 -1 fuchsia: [ 1, 0, 1 ],17224 -1 gainsboro: [ 220 / 255, 220 / 255, 220 / 255 ],17225 -1 ghostwhite: [ 248 / 255, 248 / 255, 1 ],17226 -1 gold: [ 1, 215 / 255, 0 ],17227 -1 goldenrod: [ 218 / 255, 165 / 255, 32 / 255 ],17228 -1 gray: [ 128 / 255, 128 / 255, 128 / 255 ],17229 -1 green: [ 0, 128 / 255, 0 ],17230 -1 greenyellow: [ 173 / 255, 1, 47 / 255 ],17231 -1 grey: [ 128 / 255, 128 / 255, 128 / 255 ],17232 -1 honeydew: [ 240 / 255, 1, 240 / 255 ],17233 -1 hotpink: [ 1, 105 / 255, 180 / 255 ],17234 -1 indianred: [ 205 / 255, 92 / 255, 92 / 255 ],17235 -1 indigo: [ 75 / 255, 0, 130 / 255 ],17236 -1 ivory: [ 1, 1, 240 / 255 ],17237 -1 khaki: [ 240 / 255, 230 / 255, 140 / 255 ],17238 -1 lavender: [ 230 / 255, 230 / 255, 250 / 255 ],17239 -1 lavenderblush: [ 1, 240 / 255, 245 / 255 ],17240 -1 lawngreen: [ 124 / 255, 252 / 255, 0 ],17241 -1 lemonchiffon: [ 1, 250 / 255, 205 / 255 ],17242 -1 lightblue: [ 173 / 255, 216 / 255, 230 / 255 ],17243 -1 lightcoral: [ 240 / 255, 128 / 255, 128 / 255 ],17244 -1 lightcyan: [ 224 / 255, 1, 1 ],17245 -1 lightgoldenrodyellow: [ 250 / 255, 250 / 255, 210 / 255 ],17246 -1 lightgray: [ 211 / 255, 211 / 255, 211 / 255 ],17247 -1 lightgreen: [ 144 / 255, 238 / 255, 144 / 255 ],17248 -1 lightgrey: [ 211 / 255, 211 / 255, 211 / 255 ],17249 -1 lightpink: [ 1, 182 / 255, 193 / 255 ],17250 -1 lightsalmon: [ 1, 160 / 255, 122 / 255 ],17251 -1 lightseagreen: [ 32 / 255, 178 / 255, 170 / 255 ],17252 -1 lightskyblue: [ 135 / 255, 206 / 255, 250 / 255 ],17253 -1 lightslategray: [ 119 / 255, 136 / 255, 153 / 255 ],17254 -1 lightslategrey: [ 119 / 255, 136 / 255, 153 / 255 ],17255 -1 lightsteelblue: [ 176 / 255, 196 / 255, 222 / 255 ],17256 -1 lightyellow: [ 1, 1, 224 / 255 ],17257 -1 lime: [ 0, 1, 0 ],17258 -1 limegreen: [ 50 / 255, 205 / 255, 50 / 255 ],17259 -1 linen: [ 250 / 255, 240 / 255, 230 / 255 ],17260 -1 magenta: [ 1, 0, 1 ],17261 -1 maroon: [ 128 / 255, 0, 0 ],17262 -1 mediumaquamarine: [ 102 / 255, 205 / 255, 170 / 255 ],17263 -1 mediumblue: [ 0, 0, 205 / 255 ],17264 -1 mediumorchid: [ 186 / 255, 85 / 255, 211 / 255 ],17265 -1 mediumpurple: [ 147 / 255, 112 / 255, 219 / 255 ],17266 -1 mediumseagreen: [ 60 / 255, 179 / 255, 113 / 255 ],17267 -1 mediumslateblue: [ 123 / 255, 104 / 255, 238 / 255 ],17268 -1 mediumspringgreen: [ 0, 250 / 255, 154 / 255 ],17269 -1 mediumturquoise: [ 72 / 255, 209 / 255, 204 / 255 ],17270 -1 mediumvioletred: [ 199 / 255, 21 / 255, 133 / 255 ],17271 -1 midnightblue: [ 25 / 255, 25 / 255, 112 / 255 ],17272 -1 mintcream: [ 245 / 255, 1, 250 / 255 ],17273 -1 mistyrose: [ 1, 228 / 255, 225 / 255 ],17274 -1 moccasin: [ 1, 228 / 255, 181 / 255 ],17275 -1 navajowhite: [ 1, 222 / 255, 173 / 255 ],17276 -1 navy: [ 0, 0, 128 / 255 ],17277 -1 oldlace: [ 253 / 255, 245 / 255, 230 / 255 ],17278 -1 olive: [ 128 / 255, 128 / 255, 0 ],17279 -1 olivedrab: [ 107 / 255, 142 / 255, 35 / 255 ],17280 -1 orange: [ 1, 165 / 255, 0 ],17281 -1 orangered: [ 1, 69 / 255, 0 ],17282 -1 orchid: [ 218 / 255, 112 / 255, 214 / 255 ],17283 -1 palegoldenrod: [ 238 / 255, 232 / 255, 170 / 255 ],17284 -1 palegreen: [ 152 / 255, 251 / 255, 152 / 255 ],17285 -1 paleturquoise: [ 175 / 255, 238 / 255, 238 / 255 ],17286 -1 palevioletred: [ 219 / 255, 112 / 255, 147 / 255 ],17287 -1 papayawhip: [ 1, 239 / 255, 213 / 255 ],17288 -1 peachpuff: [ 1, 218 / 255, 185 / 255 ],17289 -1 peru: [ 205 / 255, 133 / 255, 63 / 255 ],17290 -1 pink: [ 1, 192 / 255, 203 / 255 ],17291 -1 plum: [ 221 / 255, 160 / 255, 221 / 255 ],17292 -1 powderblue: [ 176 / 255, 224 / 255, 230 / 255 ],17293 -1 purple: [ 128 / 255, 0, 128 / 255 ],17294 -1 rebeccapurple: [ 102 / 255, 51 / 255, 153 / 255 ],17295 -1 red: [ 1, 0, 0 ],17296 -1 rosybrown: [ 188 / 255, 143 / 255, 143 / 255 ],17297 -1 royalblue: [ 65 / 255, 105 / 255, 225 / 255 ],17298 -1 saddlebrown: [ 139 / 255, 69 / 255, 19 / 255 ],17299 -1 salmon: [ 250 / 255, 128 / 255, 114 / 255 ],17300 -1 sandybrown: [ 244 / 255, 164 / 255, 96 / 255 ],17301 -1 seagreen: [ 46 / 255, 139 / 255, 87 / 255 ],17302 -1 seashell: [ 1, 245 / 255, 238 / 255 ],17303 -1 sienna: [ 160 / 255, 82 / 255, 45 / 255 ],17304 -1 silver: [ 192 / 255, 192 / 255, 192 / 255 ],17305 -1 skyblue: [ 135 / 255, 206 / 255, 235 / 255 ],17306 -1 slateblue: [ 106 / 255, 90 / 255, 205 / 255 ],17307 -1 slategray: [ 112 / 255, 128 / 255, 144 / 255 ],17308 -1 slategrey: [ 112 / 255, 128 / 255, 144 / 255 ],17309 -1 snow: [ 1, 250 / 255, 250 / 255 ],17310 -1 springgreen: [ 0, 1, 127 / 255 ],17311 -1 steelblue: [ 70 / 255, 130 / 255, 180 / 255 ],17312 -1 tan: [ 210 / 255, 180 / 255, 140 / 255 ],17313 -1 teal: [ 0, 128 / 255, 128 / 255 ],17314 -1 thistle: [ 216 / 255, 191 / 255, 216 / 255 ],17315 -1 tomato: [ 1, 99 / 255, 71 / 255 ],17316 -1 turquoise: [ 64 / 255, 224 / 255, 208 / 255 ],17317 -1 violet: [ 238 / 255, 130 / 255, 238 / 255 ],17318 -1 wheat: [ 245 / 255, 222 / 255, 179 / 255 ],17319 -1 white: [ 1, 1, 1 ],17320 -1 whitesmoke: [ 245 / 255, 245 / 255, 245 / 255 ],17321 -1 yellow: [ 1, 1, 0 ],17322 -1 yellowgreen: [ 154 / 255, 205 / 255, 50 / 255 ]17323 -1 };17324 -1 var coordGrammar = Array(3).fill('<percentage> | <number>[0, 255]');17325 -1 var coordGrammarNumber = Array(3).fill('<number>[0, 255]');17326 -1 var sRGB = new RGBColorSpace({17327 -1 id: 'srgb',17328 -1 name: 'sRGB',17329 -1 base: sRGBLinear,17330 -1 fromBase: function fromBase(rgb) {17331 -1 return rgb.map(function(val) {17332 -1 var sign = val < 0 ? -1 : 1;17333 -1 var abs = val * sign;17334 -1 if (abs > .0031308) {17335 -1 return sign * (1.055 * Math.pow(abs, 1 / 2.4) - .055);17336 -1 }17337 -1 return 12.92 * val;17338 -1 });-1 17370 if (virtualNode.attr('id')) { -1 17371 if (!virtualNode.actualNode) { -1 17372 throw new TypeError('Cannot resolve explicit label reference for non-DOM nodes'); -1 17373 } -1 17374 var _id2 = escape_selector_default(virtualNode.attr('id')); -1 17375 doc = get_root_node_default2(virtualNode.actualNode); -1 17376 ref = doc.querySelector('label[for="' + _id2 + '"]'); -1 17377 candidate = ref && visible_default(ref, true); -1 17378 if (candidate) { -1 17379 return candidate; -1 17380 } -1 17381 } -1 17382 ref = closest_default(virtualNode, 'label'); -1 17383 candidate = ref && visible_virtual_default(ref, true); -1 17384 if (candidate) { -1 17385 return candidate; -1 17386 } -1 17387 return null; -1 17388 } -1 17389 var label_virtual_default2 = labelVirtual2; -1 17390 function label(node) { -1 17391 node = get_node_from_tree_default(node); -1 17392 return label_virtual_default2(node); -1 17393 } -1 17394 var label_default = label; -1 17395 var nativeElementType = [ { -1 17396 matches: [ { -1 17397 nodeName: 'textarea' -1 17398 }, { -1 17399 nodeName: 'input', -1 17400 properties: { -1 17401 type: [ 'text', 'password', 'search', 'tel', 'email', 'url' ] -1 17402 } -1 17403 } ], -1 17404 namingMethods: 'labelText' -1 17405 }, { -1 17406 matches: { -1 17407 nodeName: 'input', -1 17408 properties: { -1 17409 type: [ 'button', 'submit', 'reset' ] -1 17410 } 17339 17411 },17340 -1 toBase: function toBase(rgb) {17341 -1 return rgb.map(function(val) {17342 -1 var sign = val < 0 ? -1 : 1;17343 -1 var abs = val * sign;17344 -1 if (abs < .04045) {17345 -1 return val / 12.92;17346 -1 }17347 -1 return sign * Math.pow((abs + .055) / 1.055, 2.4);17348 -1 });-1 17412 namingMethods: [ 'valueText', 'titleText', 'buttonDefaultText' ] -1 17413 }, { -1 17414 matches: { -1 17415 nodeName: 'input', -1 17416 properties: { -1 17417 type: 'image' -1 17418 } 17349 17419 },17350 -1 formats: {17351 -1 rgb: {17352 -1 coords: coordGrammar17353 -1 },17354 -1 rgb_number: {17355 -1 name: 'rgb',17356 -1 commas: true,17357 -1 coords: coordGrammarNumber,17358 -1 noAlpha: true17359 -1 },17360 -1 color: {},17361 -1 rgba: {17362 -1 coords: coordGrammar,17363 -1 commas: true,17364 -1 lastAlpha: true17365 -1 },17366 -1 rgba_number: {17367 -1 name: 'rgba',17368 -1 commas: true,17369 -1 coords: coordGrammarNumber17370 -1 },17371 -1 hex: {17372 -1 type: 'custom',17373 -1 toGamut: true,17374 -1 test: function test(str) {17375 -1 return /^#([a-f0-9]{3,4}){1,2}$/i.test(str);17376 -1 },17377 -1 parse: function parse(str) {17378 -1 if (str.length <= 5) {17379 -1 str = str.replace(/[a-f0-9]/gi, '$&$&');17380 -1 }17381 -1 var rgba = [];17382 -1 str.replace(/[a-f0-9]{2}/gi, function(component) {17383 -1 rgba.push(parseInt(component, 16) / 255);17384 -1 });17385 -1 return {17386 -1 spaceId: 'srgb',17387 -1 coords: rgba.slice(0, 3),17388 -1 alpha: rgba.slice(3)[0]17389 -1 };17390 -1 },17391 -1 serialize: function serialize(coords, alpha) {17392 -1 var _ref51 = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}, _ref51$collapse = _ref51.collapse, collapse = _ref51$collapse === void 0 ? true : _ref51$collapse;17393 -1 if (alpha < 1) {17394 -1 coords.push(alpha);17395 -1 }17396 -1 coords = coords.map(function(c4) {17397 -1 return Math.round(c4 * 255);17398 -1 });17399 -1 var collapsible = collapse && coords.every(function(c4) {17400 -1 return c4 % 17 === 0;17401 -1 });17402 -1 var hex = coords.map(function(c4) {17403 -1 if (collapsible) {17404 -1 return (c4 / 17).toString(16);17405 -1 }17406 -1 return c4.toString(16).padStart(2, '0');17407 -1 }).join('');17408 -1 return '#' + hex;17409 -1 }17410 -1 },17411 -1 keyword: {17412 -1 type: 'custom',17413 -1 test: function test(str) {17414 -1 return /^[a-z]+$/i.test(str);17415 -1 },17416 -1 parse: function parse(str) {17417 -1 str = str.toLowerCase();17418 -1 var ret = {17419 -1 spaceId: 'srgb',17420 -1 coords: null,17421 -1 alpha: 117422 -1 };17423 -1 if (str === 'transparent') {17424 -1 ret.coords = KEYWORDS.black;17425 -1 ret.alpha = 0;17426 -1 } else {17427 -1 ret.coords = KEYWORDS[str];17428 -1 }17429 -1 if (ret.coords) {17430 -1 return ret;17431 -1 }-1 17420 namingMethods: [ 'altText', 'valueText', 'labelText', 'titleText', 'buttonDefaultText' ] -1 17421 }, { -1 17422 matches: 'button', -1 17423 namingMethods: 'subtreeText' -1 17424 }, { -1 17425 matches: 'fieldset', -1 17426 namingMethods: 'fieldsetLegendText' -1 17427 }, { -1 17428 matches: 'OUTPUT', -1 17429 namingMethods: 'subtreeText' -1 17430 }, { -1 17431 matches: [ { -1 17432 nodeName: 'select' -1 17433 }, { -1 17434 nodeName: 'input', -1 17435 properties: { -1 17436 type: /^(?!text|password|search|tel|email|url|button|submit|reset)/ -1 17437 } -1 17438 } ], -1 17439 namingMethods: 'labelText' -1 17440 }, { -1 17441 matches: 'summary', -1 17442 namingMethods: 'subtreeText' -1 17443 }, { -1 17444 matches: 'figure', -1 17445 namingMethods: [ 'figureText', 'titleText' ] -1 17446 }, { -1 17447 matches: 'img', -1 17448 namingMethods: 'altText' -1 17449 }, { -1 17450 matches: 'table', -1 17451 namingMethods: [ 'tableCaptionText', 'tableSummaryText' ] -1 17452 }, { -1 17453 matches: [ 'hr', 'br' ], -1 17454 namingMethods: [ 'titleText', 'singleSpace' ] -1 17455 } ]; -1 17456 var native_element_type_default = nativeElementType; -1 17457 function visibleTextNodes(vNode) { -1 17458 var parentVisible = _isVisibleOnScreen(vNode); -1 17459 var nodes = []; -1 17460 vNode.children.forEach(function(child) { -1 17461 if (child.actualNode.nodeType === 3) { -1 17462 if (parentVisible) { -1 17463 nodes.push(child); 17432 17464 } -1 17465 } else { -1 17466 nodes = nodes.concat(visibleTextNodes(child)); 17433 17467 }17434 -1 }17435 -1 });17436 -1 var P3 = new RGBColorSpace({17437 -1 id: 'p3',17438 -1 name: 'P3',17439 -1 base: P3Linear,17440 -1 fromBase: sRGB.fromBase,17441 -1 toBase: sRGB.toBase,17442 -1 formats: {17443 -1 color: {17444 -1 id: 'display-p3'-1 17468 }); -1 17469 return nodes; -1 17470 } -1 17471 var visible_text_nodes_default = visibleTextNodes; -1 17472 var getVisibleChildTextRects = memoize_default(function getVisibleChildTextRectsMemoized(node) { -1 17473 var vNode = get_node_from_tree_default(node); -1 17474 var nodeRect = vNode.boundingClientRect; -1 17475 var clientRects = []; -1 17476 var overflowHiddenNodes = get_overflow_hidden_ancestors_default(vNode); -1 17477 node.childNodes.forEach(function(textNode) { -1 17478 if (textNode.nodeType !== 3 || sanitize_default(textNode.nodeValue) === '') { -1 17479 return; 17445 17480 }17446 -1 }17447 -1 });17448 -1 defaults.display_space = sRGB;17449 -1 if (typeof CSS !== 'undefined' && (_CSS = CSS) !== null && _CSS !== void 0 && _CSS.supports) {17450 -1 for (var _i19 = 0, _arr2 = [ lab, REC2020, P3 ]; _i19 < _arr2.length; _i19++) {17451 -1 var space = _arr2[_i19];17452 -1 var coords = space.getMinCoords();17453 -1 var color = {17454 -1 space: space,17455 -1 coords: coords,17456 -1 alpha: 117457 -1 };17458 -1 var str = serialize(color);17459 -1 if (CSS.supports('color', str)) {17460 -1 defaults.display_space = space;17461 -1 break;-1 17481 var contentRects = getContentRects(textNode); -1 17482 if (isOutsideNodeBounds(contentRects, nodeRect)) { -1 17483 return; 17462 17484 }17463 -1 }-1 17485 clientRects.push.apply(clientRects, _toConsumableArray(filterHiddenRects(contentRects, overflowHiddenNodes))); -1 17486 }); -1 17487 return clientRects.length ? clientRects : filterHiddenRects([ nodeRect ], overflowHiddenNodes); -1 17488 }); -1 17489 var get_visible_child_text_rects_default = getVisibleChildTextRects; -1 17490 function getContentRects(node) { -1 17491 var range2 = document.createRange(); -1 17492 range2.selectNodeContents(node); -1 17493 return Array.from(range2.getClientRects()); 17464 17494 }17465 -1 function _display(color) {17466 -1 var _CSS2;17467 -1 var _ref52 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};17468 -1 var _ref52$space = _ref52.space, space = _ref52$space === void 0 ? defaults.display_space : _ref52$space, options = _objectWithoutProperties(_ref52, _excluded10);17469 -1 var ret = serialize(color, options);17470 -1 if (typeof CSS === 'undefined' || (_CSS2 = CSS) !== null && _CSS2 !== void 0 && _CSS2.supports('color', ret) || !defaults.display_space) {17471 -1 ret = new String(ret);17472 -1 ret.color = color;17473 -1 } else {17474 -1 var fallbackColor = to(color, space);17475 -1 ret = new String(serialize(fallbackColor, options));17476 -1 ret.color = fallbackColor;17477 -1 }17478 -1 return ret;-1 17495 function isOutsideNodeBounds(rects, nodeRect) { -1 17496 return rects.some(function(rect) { -1 17497 var centerPoint = _getRectCenter(rect); -1 17498 return !_isPointInRect(centerPoint, nodeRect); -1 17499 }); 17479 17500 }17480 -1 function distance(color1, color2) {17481 -1 var space = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'lab';17482 -1 space = ColorSpace.get(space);17483 -1 var coords1 = space.from(color1);17484 -1 var coords2 = space.from(color2);17485 -1 return Math.sqrt(coords1.reduce(function(acc, c12, i) {17486 -1 var c22 = coords2[i];17487 -1 if (isNaN(c12) || isNaN(c22)) {17488 -1 return acc;-1 17501 function filterHiddenRects(contentRects, overflowHiddenNodes) { -1 17502 var visibleRects = []; -1 17503 contentRects.forEach(function(contentRect) { -1 17504 if (contentRect.width < 1 || contentRect.height < 1) { -1 17505 return; 17489 17506 }17490 -1 return acc + Math.pow(c22 - c12, 2);17491 -1 }, 0));-1 17507 var visibleRect = overflowHiddenNodes.reduce(function(rect, overflowNode) { -1 17508 return rect && _getIntersectionRect(rect, overflowNode.boundingClientRect); -1 17509 }, contentRect); -1 17510 if (visibleRect) { -1 17511 visibleRects.push(visibleRect); -1 17512 } -1 17513 }); -1 17514 return visibleRects; 17492 17515 }17493 -1 function equals(color1, color2) {17494 -1 color1 = getColor(color1);17495 -1 color2 = getColor(color2);17496 -1 return color1.space === color2.space && color1.alpha === color2.alpha && color1.coords.every(function(c4, i) {17497 -1 return c4 === color2.coords[i];-1 17516 function getTextElementStack(node) { -1 17517 var grid = _getNodeGrid(node); -1 17518 if (!grid) { -1 17519 return []; -1 17520 } -1 17521 var clientRects = get_visible_child_text_rects_default(node); -1 17522 return clientRects.map(function(rect) { -1 17523 return getRectStack(grid, rect); 17498 17524 }); 17499 17525 }17500 -1 function getLuminance(color) {17501 -1 return get(color, [ XYZ_D65, 'y' ]);-1 17526 var get_text_element_stack_default = getTextElementStack; -1 17527 var visualRoles = [ 'checkbox', 'img', 'meter', 'progressbar', 'scrollbar', 'radio', 'slider', 'spinbutton', 'textbox' ]; -1 17528 function isVisualContent(el) { -1 17529 var _nodeLookup18 = _nodeLookup(el), vNode = _nodeLookup18.vNode; -1 17530 var role = axe.commons.aria.getExplicitRole(vNode); -1 17531 if (role) { -1 17532 return visualRoles.indexOf(role) !== -1; -1 17533 } -1 17534 switch (vNode.props.nodeName) { -1 17535 case 'img': -1 17536 case 'iframe': -1 17537 case 'object': -1 17538 case 'video': -1 17539 case 'audio': -1 17540 case 'canvas': -1 17541 case 'svg': -1 17542 case 'math': -1 17543 case 'button': -1 17544 case 'select': -1 17545 case 'textarea': -1 17546 case 'keygen': -1 17547 case 'progress': -1 17548 case 'meter': -1 17549 return true; -1 17550 -1 17551 case 'input': -1 17552 return vNode.props.type !== 'hidden'; -1 17553 -1 17554 default: -1 17555 return false; -1 17556 } 17502 17557 }17503 -1 function setLuminance(color, value) {17504 -1 set(color, [ XYZ_D65, 'y' ], value);-1 17558 var is_visual_content_default = isVisualContent; -1 17559 var hiddenTextElms = [ 'head', 'title', 'template', 'script', 'style', 'iframe', 'object', 'video', 'audio', 'noscript' ]; -1 17560 function hasChildTextNodes(elm) { -1 17561 if (hiddenTextElms.includes(elm.props.nodeName)) { -1 17562 return false; -1 17563 } -1 17564 return elm.children.some(function(_ref51) { -1 17565 var props = _ref51.props; -1 17566 return props.nodeType === 3 && props.nodeValue.trim(); -1 17567 }); 17505 17568 }17506 -1 function register$2(Color3) {17507 -1 Object.defineProperty(Color3.prototype, 'luminance', {17508 -1 get: function get() {17509 -1 return getLuminance(this);17510 -1 },17511 -1 set: function set(value) {17512 -1 setLuminance(this, value);17513 -1 }-1 17569 function hasContentVirtual(elm, noRecursion, ignoreAria) { -1 17570 return hasChildTextNodes(elm) || is_visual_content_default(elm.actualNode) || !ignoreAria && !!label_virtual_default(elm) || !noRecursion && elm.children.some(function(child) { -1 17571 return child.actualNode.nodeType === 1 && hasContentVirtual(child); 17514 17572 }); 17515 17573 }17516 -1 var luminance = Object.freeze({17517 -1 __proto__: null,17518 -1 getLuminance: getLuminance,17519 -1 setLuminance: setLuminance,17520 -1 register: register$217521 -1 });17522 -1 function contrastWCAG21(color1, color2) {17523 -1 color1 = getColor(color1);17524 -1 color2 = getColor(color2);17525 -1 var Y1 = Math.max(getLuminance(color1), 0);17526 -1 var Y2 = Math.max(getLuminance(color2), 0);17527 -1 if (Y2 > Y1) {17528 -1 var _ref53 = [ Y2, Y1 ];17529 -1 Y1 = _ref53[0];17530 -1 Y2 = _ref53[1];17531 -1 }17532 -1 return (Y1 + .05) / (Y2 + .05);-1 17574 var has_content_virtual_default = hasContentVirtual; -1 17575 function hasContent(elm, noRecursion, ignoreAria) { -1 17576 elm = get_node_from_tree_default(elm); -1 17577 return has_content_virtual_default(elm, noRecursion, ignoreAria); 17533 17578 }17534 -1 var normBG = .56;17535 -1 var normTXT = .57;17536 -1 var revTXT = .62;17537 -1 var revBG = .65;17538 -1 var blkThrs = .022;17539 -1 var blkClmp = 1.414;17540 -1 var loClip = .1;17541 -1 var deltaYmin = 5e-4;17542 -1 var scaleBoW = 1.14;17543 -1 var loBoWoffset = .027;17544 -1 var scaleWoB = 1.14;17545 -1 function fclamp(Y) {17546 -1 if (Y >= blkThrs) {17547 -1 return Y;-1 17579 var has_content_default = hasContent; -1 17580 function _hasLangText(virtualNode) { -1 17581 if (typeof virtualNode.children === 'undefined' || hasChildTextNodes(virtualNode)) { -1 17582 return true; 17548 17583 }17549 -1 return Y + Math.pow(blkThrs - Y, blkClmp);-1 17584 if (virtualNode.props.nodeType === 1 && is_visual_content_default(virtualNode)) { -1 17585 return !!axe.commons.text.accessibleTextVirtual(virtualNode); -1 17586 } -1 17587 return virtualNode.children.some(function(child) { -1 17588 return !child.attr('lang') && _hasLangText(child) && !_isHiddenForEveryone(child); -1 17589 }); 17550 17590 }17551 -1 function linearize(val) {17552 -1 var sign = val < 0 ? -1 : 1;17553 -1 var abs = Math.abs(val);17554 -1 return sign * Math.pow(abs, 2.4);-1 17591 function insertedIntoFocusOrder(el) { -1 17592 var tabIndex = parse_tabindex_default(el.getAttribute('tabindex')); -1 17593 return tabIndex > -1 && _isFocusable(el) && !is_natively_focusable_default(el); 17555 17594 }17556 -1 function contrastAPCA(background, foreground) {17557 -1 foreground = getColor(foreground);17558 -1 background = getColor(background);17559 -1 var S;17560 -1 var C;17561 -1 var Sapc;17562 -1 var R, G, B;17563 -1 foreground = to(foreground, 'srgb');17564 -1 var _foreground$coords = _slicedToArray(foreground.coords, 3);17565 -1 R = _foreground$coords[0];17566 -1 G = _foreground$coords[1];17567 -1 B = _foreground$coords[2];17568 -1 var lumTxt = linearize(R) * .2126729 + linearize(G) * .7151522 + linearize(B) * .072175;17569 -1 background = to(background, 'srgb');17570 -1 var _background$coords = _slicedToArray(background.coords, 3);17571 -1 R = _background$coords[0];17572 -1 G = _background$coords[1];17573 -1 B = _background$coords[2];17574 -1 var lumBg = linearize(R) * .2126729 + linearize(G) * .7151522 + linearize(B) * .072175;17575 -1 var Ytxt = fclamp(lumTxt);17576 -1 var Ybg = fclamp(lumBg);17577 -1 var BoW = Ybg > Ytxt;17578 -1 if (Math.abs(Ybg - Ytxt) < deltaYmin) {17579 -1 C = 0;17580 -1 } else {17581 -1 if (BoW) {17582 -1 S = Math.pow(Ybg, normBG) - Math.pow(Ytxt, normTXT);17583 -1 C = S * scaleBoW;17584 -1 } else {17585 -1 S = Math.pow(Ybg, revBG) - Math.pow(Ytxt, revTXT);17586 -1 C = S * scaleWoB;17587 -1 }-1 17595 var inserted_into_focus_order_default = insertedIntoFocusOrder; -1 17596 function isHiddenWithCSS(el, descendentVisibilityValue) { -1 17597 var _nodeLookup19 = _nodeLookup(el), vNode = _nodeLookup19.vNode, domNode = _nodeLookup19.domNode; -1 17598 if (!vNode) { -1 17599 return _isHiddenWithCSS(domNode, descendentVisibilityValue); 17588 17600 }17589 -1 if (Math.abs(C) < loClip) {17590 -1 Sapc = 0;17591 -1 } else if (C > 0) {17592 -1 Sapc = C - loBoWoffset;17593 -1 } else {17594 -1 Sapc = C + loBoWoffset;-1 17601 if (vNode._isHiddenWithCSS === void 0) { -1 17602 vNode._isHiddenWithCSS = _isHiddenWithCSS(domNode, descendentVisibilityValue); 17595 17603 }17596 -1 return Sapc * 100;-1 17604 return vNode._isHiddenWithCSS; 17597 17605 }17598 -1 function contrastMichelson(color1, color2) {17599 -1 color1 = getColor(color1);17600 -1 color2 = getColor(color2);17601 -1 var Y1 = Math.max(getLuminance(color1), 0);17602 -1 var Y2 = Math.max(getLuminance(color2), 0);17603 -1 if (Y2 > Y1) {17604 -1 var _ref54 = [ Y2, Y1 ];17605 -1 Y1 = _ref54[0];17606 -1 Y2 = _ref54[1];-1 17606 function _isHiddenWithCSS(el, descendentVisibilityValue) { -1 17607 if (el.nodeType === 9) { -1 17608 return false; 17607 17609 }17608 -1 var denom = Y1 + Y2;17609 -1 return denom === 0 ? 0 : (Y1 - Y2) / denom;-1 17610 if (el.nodeType === 11) { -1 17611 el = el.host; -1 17612 } -1 17613 if ([ 'STYLE', 'SCRIPT' ].includes(el.nodeName.toUpperCase())) { -1 17614 return false; -1 17615 } -1 17616 var style = window.getComputedStyle(el, null); -1 17617 if (!style) { -1 17618 throw new Error('Style does not exist for the given element.'); -1 17619 } -1 17620 var displayValue = style.getPropertyValue('display'); -1 17621 if (displayValue === 'none') { -1 17622 return true; -1 17623 } -1 17624 var HIDDEN_VISIBILITY_VALUES = [ 'hidden', 'collapse' ]; -1 17625 var visibilityValue = style.getPropertyValue('visibility'); -1 17626 if (HIDDEN_VISIBILITY_VALUES.includes(visibilityValue) && !descendentVisibilityValue) { -1 17627 return true; -1 17628 } -1 17629 if (HIDDEN_VISIBILITY_VALUES.includes(visibilityValue) && descendentVisibilityValue && HIDDEN_VISIBILITY_VALUES.includes(descendentVisibilityValue)) { -1 17630 return true; -1 17631 } -1 17632 var parent = get_composed_parent_default(el); -1 17633 if (parent && !HIDDEN_VISIBILITY_VALUES.includes(visibilityValue)) { -1 17634 return isHiddenWithCSS(parent, visibilityValue); -1 17635 } -1 17636 return false; 17610 17637 }17611 -1 var max = 5e4;17612 -1 function contrastWeber(color1, color2) {17613 -1 color1 = getColor(color1);17614 -1 color2 = getColor(color2);17615 -1 var Y1 = Math.max(getLuminance(color1), 0);17616 -1 var Y2 = Math.max(getLuminance(color2), 0);17617 -1 if (Y2 > Y1) {17618 -1 var _ref55 = [ Y2, Y1 ];17619 -1 Y1 = _ref55[0];17620 -1 Y2 = _ref55[1];-1 17638 var is_hidden_with_css_default = isHiddenWithCSS; -1 17639 function isHTML5(doc) { -1 17640 var node = doc.doctype; -1 17641 if (node === null) { -1 17642 return false; 17621 17643 }17622 -1 return Y2 === 0 ? max : (Y1 - Y2) / Y2;-1 17644 return node.name === 'html' && !node.publicId && !node.systemId; 17623 17645 }17624 -1 function contrastLstar(color1, color2) {17625 -1 color1 = getColor(color1);17626 -1 color2 = getColor(color2);17627 -1 var L1 = get(color1, [ lab, 'l' ]);17628 -1 var L2 = get(color2, [ lab, 'l' ]);17629 -1 return Math.abs(L1 - L2);-1 17646 var is_html5_default = isHTML5; -1 17647 function getRoleType(role) { -1 17648 var _window; -1 17649 if (role instanceof abstract_virtual_node_default || (_window = window) !== null && _window !== void 0 && _window.Node && role instanceof window.Node) { -1 17650 role = axe.commons.aria.getRole(role); -1 17651 } -1 17652 var roleDef = standards_default.ariaRoles[role]; -1 17653 return (roleDef === null || roleDef === void 0 ? void 0 : roleDef.type) || null; 17630 17654 }17631 -1 var \u03b5$1 = 216 / 24389;17632 -1 var \u03b53 = 24 / 116;17633 -1 var \u03ba = 24389 / 27;17634 -1 var white = WHITES.D65;17635 -1 var lab_d65 = new ColorSpace({17636 -1 id: 'lab-d65',17637 -1 name: 'Lab D65',17638 -1 coords: {17639 -1 l: {17640 -1 refRange: [ 0, 100 ],17641 -1 name: 'L'17642 -1 },17643 -1 a: {17644 -1 refRange: [ -125, 125 ]17645 -1 },17646 -1 b: {17647 -1 refRange: [ -125, 125 ]17648 -1 }17649 -1 },17650 -1 white: white,17651 -1 base: XYZ_D65,17652 -1 fromBase: function fromBase(XYZ) {17653 -1 var xyz = XYZ.map(function(value, i) {17654 -1 return value / white[i];17655 -1 });17656 -1 var f = xyz.map(function(value) {17657 -1 return value > \u03b5$1 ? Math.cbrt(value) : (\u03ba * value + 16) / 116;17658 -1 });17659 -1 return [ 116 * f[1] - 16, 500 * (f[0] - f[1]), 200 * (f[1] - f[2]) ];17660 -1 },17661 -1 toBase: function toBase(Lab) {17662 -1 var f = [];17663 -1 f[1] = (Lab[0] + 16) / 116;17664 -1 f[0] = Lab[1] / 500 + f[1];17665 -1 f[2] = f[1] - Lab[2] / 200;17666 -1 var xyz = [ f[0] > \u03b53 ? Math.pow(f[0], 3) : (116 * f[0] - 16) / \u03ba, Lab[0] > 8 ? Math.pow((Lab[0] + 16) / 116, 3) : Lab[0] / \u03ba, f[2] > \u03b53 ? Math.pow(f[2], 3) : (116 * f[2] - 16) / \u03ba ];17667 -1 return xyz.map(function(value, i) {17668 -1 return value * white[i];-1 17655 var get_role_type_default = getRoleType; -1 17656 function walkDomNode(node, functor) { -1 17657 if (functor(node.actualNode) !== false) { -1 17658 node.children.forEach(function(child) { -1 17659 return walkDomNode(child, functor); 17669 17660 });17670 -1 },17671 -1 formats: {17672 -1 'lab-d65': {17673 -1 coords: [ '<number> | <percentage>', '<number>', '<number>' ]-1 17661 } -1 17662 } -1 17663 var blockLike = [ 'block', 'list-item', 'table', 'flex', 'grid', 'inline-block' ]; -1 17664 function isBlock(elm) { -1 17665 var display2 = window.getComputedStyle(elm).getPropertyValue('display'); -1 17666 return blockLike.includes(display2) || display2.substr(0, 6) === 'table-'; -1 17667 } -1 17668 function getBlockParent(node) { -1 17669 var parentBlock = get_composed_parent_default(node); -1 17670 while (parentBlock && !isBlock(parentBlock)) { -1 17671 parentBlock = get_composed_parent_default(parentBlock); -1 17672 } -1 17673 return get_node_from_tree_default(parentBlock); -1 17674 } -1 17675 function isInTextBlock(node, options) { -1 17676 if (isBlock(node)) { -1 17677 return false; -1 17678 } -1 17679 var virtualParent = getBlockParent(node); -1 17680 var parentText = ''; -1 17681 var widgetText = ''; -1 17682 var inBrBlock = 0; -1 17683 walkDomNode(virtualParent, function(currNode) { -1 17684 if (inBrBlock === 2) { -1 17685 return false; -1 17686 } -1 17687 if (currNode.nodeType === 3) { -1 17688 parentText += currNode.nodeValue; -1 17689 } -1 17690 if (currNode.nodeType !== 1) { -1 17691 return; -1 17692 } -1 17693 var nodeName2 = (currNode.nodeName || '').toUpperCase(); -1 17694 if (currNode === node) { -1 17695 inBrBlock = 1; -1 17696 } -1 17697 if ([ 'BR', 'HR' ].includes(nodeName2)) { -1 17698 if (inBrBlock === 0) { -1 17699 parentText = ''; -1 17700 widgetText = ''; -1 17701 } else { -1 17702 inBrBlock = 2; -1 17703 } -1 17704 } else if (currNode.style.display === 'none' || currNode.style.overflow === 'hidden' || ![ '', null, 'none' ].includes(currNode.style['float']) || ![ '', null, 'relative' ].includes(currNode.style.position)) { -1 17705 return false; -1 17706 } else if (get_role_type_default(currNode) === 'widget') { -1 17707 widgetText += currNode.textContent; -1 17708 return false; 17674 17709 } -1 17710 }); -1 17711 parentText = sanitize_default(parentText); -1 17712 if (options !== null && options !== void 0 && options.noLengthCompare) { -1 17713 return parentText.length !== 0; 17675 17714 }17676 -1 });17677 -1 var phi = Math.pow(5, .5) * .5 + .5;17678 -1 function contrastDeltaPhi(color1, color2) {17679 -1 color1 = getColor(color1);17680 -1 color2 = getColor(color2);17681 -1 var Lstr1 = get(color1, [ lab_d65, 'l' ]);17682 -1 var Lstr2 = get(color2, [ lab_d65, 'l' ]);17683 -1 var deltaPhiStar = Math.abs(Math.pow(Lstr1, phi) - Math.pow(Lstr2, phi));17684 -1 var contrast2 = Math.pow(deltaPhiStar, 1 / phi) * Math.SQRT2 - 40;17685 -1 return contrast2 < 7.5 ? 0 : contrast2;-1 17715 widgetText = sanitize_default(widgetText); -1 17716 return parentText.length > widgetText.length; 17686 17717 }17687 -1 var contrastMethods = Object.freeze({17688 -1 __proto__: null,17689 -1 contrastWCAG21: contrastWCAG21,17690 -1 contrastAPCA: contrastAPCA,17691 -1 contrastMichelson: contrastMichelson,17692 -1 contrastWeber: contrastWeber,17693 -1 contrastLstar: contrastLstar,17694 -1 contrastDeltaPhi: contrastDeltaPhi17695 -1 });17696 -1 function contrast(background, foreground) {17697 -1 var o = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};17698 -1 if (isString(o)) {17699 -1 o = {17700 -1 algorithm: o17701 -1 };-1 17718 var is_in_text_block_default = isInTextBlock; -1 17719 function isModalOpen(options) { -1 17720 options = options || {}; -1 17721 var modalPercent = options.modalPercent || .75; -1 17722 if (cache_default.get('isModalOpen')) { -1 17723 return cache_default.get('isModalOpen'); 17702 17724 }17703 -1 var _o = o, algorithm = _o.algorithm, rest = _objectWithoutProperties(_o, _excluded11);17704 -1 if (!algorithm) {17705 -1 var algorithms = Object.keys(contrastMethods).map(function(a2) {17706 -1 return a2.replace(/^contrast/, '');17707 -1 }).join(', ');17708 -1 throw new TypeError('contrast() function needs a contrast algorithm. Please specify one of: '.concat(algorithms));-1 17725 var definiteModals = query_selector_all_filter_default(axe._tree[0], 'dialog, [role=dialog], [aria-modal=true]', _isVisibleOnScreen); -1 17726 if (definiteModals.length) { -1 17727 cache_default.set('isModalOpen', true); -1 17728 return true; 17709 17729 }17710 -1 background = getColor(background);17711 -1 foreground = getColor(foreground);17712 -1 for (var a2 in contrastMethods) {17713 -1 if ('contrast' + algorithm.toLowerCase() === a2.toLowerCase()) {17714 -1 return contrastMethods[a2](background, foreground, rest);-1 17730 var viewport = get_viewport_size_default(window); -1 17731 var percentWidth = viewport.width * modalPercent; -1 17732 var percentHeight = viewport.height * modalPercent; -1 17733 var x = (viewport.width - percentWidth) / 2; -1 17734 var y = (viewport.height - percentHeight) / 2; -1 17735 var points = [ { -1 17736 x: x, -1 17737 y: y -1 17738 }, { -1 17739 x: viewport.width - x, -1 17740 y: y -1 17741 }, { -1 17742 x: viewport.width / 2, -1 17743 y: viewport.height / 2 -1 17744 }, { -1 17745 x: x, -1 17746 y: viewport.height - y -1 17747 }, { -1 17748 x: viewport.width - x, -1 17749 y: viewport.height - y -1 17750 } ]; -1 17751 var stacks = points.map(function(point) { -1 17752 return Array.from(document.elementsFromPoint(point.x, point.y)); -1 17753 }); -1 17754 var _loop7 = function _loop7() { -1 17755 var modalElement = stacks[i].find(function(elm) { -1 17756 var style = window.getComputedStyle(elm); -1 17757 return parseInt(style.width, 10) >= percentWidth && parseInt(style.height, 10) >= percentHeight && style.getPropertyValue('pointer-events') !== 'none' && (style.position === 'absolute' || style.position === 'fixed'); -1 17758 }); -1 17759 if (modalElement && stacks.every(function(stack) { -1 17760 return stack.includes(modalElement); -1 17761 })) { -1 17762 cache_default.set('isModalOpen', true); -1 17763 return { -1 17764 v: true -1 17765 }; -1 17766 } -1 17767 }, _ret3; -1 17768 for (var i = 0; i < stacks.length; i++) { -1 17769 _ret3 = _loop7(); -1 17770 if (_ret3) { -1 17771 return _ret3.v; -1 17772 } -1 17773 } -1 17774 cache_default.set('isModalOpen', void 0); -1 17775 return void 0; -1 17776 } -1 17777 var is_modal_open_default = isModalOpen; -1 17778 function _isMultiline(domNode) { -1 17779 var margin = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 2; -1 17780 var range2 = domNode.ownerDocument.createRange(); -1 17781 range2.setStart(domNode, 0); -1 17782 range2.setEnd(domNode, domNode.childNodes.length); -1 17783 var lastLineEnd = 0; -1 17784 var lineCount = 0; -1 17785 var _iterator0 = _createForOfIteratorHelper(range2.getClientRects()), _step0; -1 17786 try { -1 17787 for (_iterator0.s(); !(_step0 = _iterator0.n()).done; ) { -1 17788 var rect = _step0.value; -1 17789 if (rect.height <= margin) { -1 17790 continue; -1 17791 } -1 17792 if (lastLineEnd > rect.top + margin) { -1 17793 lastLineEnd = Math.max(lastLineEnd, rect.bottom); -1 17794 } else if (lineCount === 0) { -1 17795 lastLineEnd = rect.bottom; -1 17796 lineCount++; -1 17797 } else { -1 17798 return true; -1 17799 } 17715 17800 } -1 17801 } catch (err) { -1 17802 _iterator0.e(err); -1 17803 } finally { -1 17804 _iterator0.f(); 17716 17805 }17717 -1 throw new TypeError('Unknown contrast algorithm: '.concat(algorithm));17718 -1 }17719 -1 function uv(color) {17720 -1 var _getAll = getAll(color, XYZ_D65), _getAll2 = _slicedToArray(_getAll, 3), X = _getAll2[0], Y = _getAll2[1], Z = _getAll2[2];17721 -1 var denom = X + 15 * Y + 3 * Z;17722 -1 return [ 4 * X / denom, 9 * Y / denom ];-1 17806 return false; 17723 17807 }17724 -1 function xy(color) {17725 -1 var _getAll3 = getAll(color, XYZ_D65), _getAll4 = _slicedToArray(_getAll3, 3), X = _getAll4[0], Y = _getAll4[1], Z = _getAll4[2];17726 -1 var sum = X + Y + Z;17727 -1 return [ X / sum, Y / sum ];-1 17808 function isNode(element) { -1 17809 return element instanceof window.Node; 17728 17810 }17729 -1 function register$1(Color3) {17730 -1 Object.defineProperty(Color3.prototype, 'uv', {17731 -1 get: function get() {17732 -1 return uv(this);-1 17811 var is_node_default = isNode; -1 17812 var cacheKey = 'color.incompleteData'; -1 17813 var incompleteData = { -1 17814 set: function set(key, reason) { -1 17815 if (typeof key !== 'string') { -1 17816 throw new Error('Incomplete data: key must be a string'); 17733 17817 }17734 -1 });17735 -1 Object.defineProperty(Color3.prototype, 'xy', {17736 -1 get: function get() {17737 -1 return xy(this);-1 17818 var data = cache_default.get(cacheKey, function() { -1 17819 return {}; -1 17820 }); -1 17821 if (reason) { -1 17822 data[key] = reason; 17738 17823 }17739 -1 });17740 -1 }17741 -1 var chromaticity = Object.freeze({17742 -1 __proto__: null,17743 -1 uv: uv,17744 -1 xy: xy,17745 -1 register: register$117746 -1 });17747 -1 function deltaE76(color, sample) {17748 -1 return distance(color, sample, 'lab');17749 -1 }17750 -1 var \u03c0 = Math.PI;17751 -1 var d2r = \u03c0 / 180;17752 -1 function deltaECMC(color, sample) {17753 -1 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;17754 -1 var _lab$from5 = lab.from(color), _lab$from6 = _slicedToArray(_lab$from5, 3), L1 = _lab$from6[0], a1 = _lab$from6[1], b1 = _lab$from6[2];17755 -1 var _lch$from = lch.from(lab, [ L1, a1, b1 ]), _lch$from2 = _slicedToArray(_lch$from, 3), C1 = _lch$from2[1], H1 = _lch$from2[2];17756 -1 var _lab$from7 = lab.from(sample), _lab$from8 = _slicedToArray(_lab$from7, 3), L2 = _lab$from8[0], a2 = _lab$from8[1], b2 = _lab$from8[2];17757 -1 var C2 = lch.from(lab, [ L2, a2, b2 ])[1];17758 -1 if (C1 < 0) {17759 -1 C1 = 0;17760 -1 }17761 -1 if (C2 < 0) {17762 -1 C2 = 0;17763 -1 }17764 -1 var \u0394L = L1 - L2;17765 -1 var \u0394C = C1 - C2;17766 -1 var \u0394a = a1 - a2;17767 -1 var \u0394b = b1 - b2;17768 -1 var H2 = Math.pow(\u0394a, 2) + Math.pow(\u0394b, 2) - Math.pow(\u0394C, 2);17769 -1 var SL = .511;17770 -1 if (L1 >= 16) {17771 -1 SL = .040975 * L1 / (1 + .01765 * L1);-1 17824 return data[key]; -1 17825 }, -1 17826 get: function get(key) { -1 17827 var data = cache_default.get(cacheKey); -1 17828 return data === null || data === void 0 ? void 0 : data[key]; -1 17829 }, -1 17830 clear: function clear() { -1 17831 cache_default.set(cacheKey, {}); 17772 17832 }17773 -1 var SC = .0638 * C1 / (1 + .0131 * C1) + .638;17774 -1 var T;17775 -1 if (Number.isNaN(H1)) {17776 -1 H1 = 0;-1 17833 }; -1 17834 var incomplete_data_default = incompleteData; -1 17835 function elementHasImage(elm, style) { -1 17836 var graphicNodes = [ 'IMG', 'CANVAS', 'OBJECT', 'IFRAME', 'VIDEO', 'SVG' ]; -1 17837 var nodeName2 = elm.nodeName.toUpperCase(); -1 17838 if (graphicNodes.includes(nodeName2)) { -1 17839 incomplete_data_default.set('bgColor', 'imgNode'); -1 17840 return true; 17777 17841 }17778 -1 if (H1 >= 164 && H1 <= 345) {17779 -1 T = .56 + Math.abs(.2 * Math.cos((H1 + 168) * d2r));17780 -1 } else {17781 -1 T = .36 + Math.abs(.4 * Math.cos((H1 + 35) * d2r));-1 17842 style = style || window.getComputedStyle(elm); -1 17843 var bgImageStyle = style.getPropertyValue('background-image'); -1 17844 var hasBgImage = bgImageStyle !== 'none'; -1 17845 if (hasBgImage) { -1 17846 var hasGradient = /gradient/.test(bgImageStyle); -1 17847 incomplete_data_default.set('bgColor', hasGradient ? 'bgGradient' : 'bgImage'); 17782 17848 }17783 -1 var C4 = Math.pow(C1, 4);17784 -1 var F = Math.sqrt(C4 / (C4 + 1900));17785 -1 var SH = SC * (F * T + 1 - F);17786 -1 var dE = Math.pow(\u0394L / (l * SL), 2);17787 -1 dE += Math.pow(\u0394C / (c4 * SC), 2);17788 -1 dE += H2 / Math.pow(SH, 2);17789 -1 return Math.sqrt(dE);-1 17849 return hasBgImage; 17790 17850 }17791 -1 var Yw$1 = 203;17792 -1 var XYZ_Abs_D65 = new ColorSpace({17793 -1 id: 'xyz-abs-d65',17794 -1 name: 'Absolute XYZ D65',17795 -1 coords: {17796 -1 x: {17797 -1 refRange: [ 0, 9504.7 ],17798 -1 name: 'Xa'17799 -1 },17800 -1 y: {17801 -1 refRange: [ 0, 1e4 ],17802 -1 name: 'Ya'17803 -1 },17804 -1 z: {17805 -1 refRange: [ 0, 10888.3 ],17806 -1 name: 'Za'-1 17851 var element_has_image_default = elementHasImage; -1 17852 var hexRegex = /^#[0-9a-f]{3,8}$/i; -1 17853 var hslRegex = /hsl\(\s*([-\d.]+)(rad|turn)/; -1 17854 var _Color2 = (_r = new WeakMap(), _g = new WeakMap(), _b = new WeakMap(), _red = new WeakMap(), -1 17855 _green = new WeakMap(), _blue = new WeakMap(), _Class3_brand = new WeakSet(), -1 17856 function() { -1 17857 function Color2(red, green, blue) { -1 17858 var alpha = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 1; -1 17859 _classCallCheck(this, Color2); -1 17860 _classPrivateMethodInitSpec(this, _Class3_brand); -1 17861 _classPrivateFieldInitSpec(this, _r, void 0); -1 17862 _classPrivateFieldInitSpec(this, _g, void 0); -1 17863 _classPrivateFieldInitSpec(this, _b, void 0); -1 17864 _classPrivateFieldInitSpec(this, _red, void 0); -1 17865 _classPrivateFieldInitSpec(this, _green, void 0); -1 17866 _classPrivateFieldInitSpec(this, _blue, void 0); -1 17867 if (red instanceof _Color2) { -1 17868 var r = red.r, g2 = red.g, b2 = red.b; -1 17869 this.r = r; -1 17870 this.g = g2; -1 17871 this.b = b2; -1 17872 this.alpha = red.alpha; -1 17873 return; 17807 17874 }17808 -1 },17809 -1 base: XYZ_D65,17810 -1 fromBase: function fromBase(XYZ) {17811 -1 return XYZ.map(function(v) {17812 -1 return Math.max(v * Yw$1, 0);17813 -1 });17814 -1 },17815 -1 toBase: function toBase(AbsXYZ) {17816 -1 return AbsXYZ.map(function(v) {17817 -1 return Math.max(v / Yw$1, 0);17818 -1 });-1 17875 this.red = red; -1 17876 this.green = green; -1 17877 this.blue = blue; -1 17878 this.alpha = alpha; 17819 17879 }17820 -1 });17821 -1 var b$1 = 1.15;17822 -1 var g = .66;17823 -1 var n$1 = 2610 / Math.pow(2, 14);17824 -1 var ninv$1 = Math.pow(2, 14) / 2610;17825 -1 var c1$2 = 3424 / Math.pow(2, 12);17826 -1 var c2$2 = 2413 / Math.pow(2, 7);17827 -1 var c3$2 = 2392 / Math.pow(2, 7);17828 -1 var p = 1.7 * 2523 / Math.pow(2, 5);17829 -1 var pinv = Math.pow(2, 5) / (1.7 * 2523);17830 -1 var d = -.56;17831 -1 var d0 = 16295499532821565e-27;17832 -1 var XYZtoCone_M = [ [ .41478972, .579999, .014648 ], [ -.20151, 1.120649, .0531008 ], [ -.0166008, .2648, .6684799 ] ];17833 -1 var ConetoXYZ_M = [ [ 1.9242264357876067, -1.0047923125953657, .037651404030618 ], [ .35031676209499907, .7264811939316552, -.06538442294808501 ], [ -.09098281098284752, -.3127282905230739, 1.5227665613052603 ] ];17834 -1 var ConetoIab_M = [ [ .5, .5, 0 ], [ 3.524, -4.066708, .542708 ], [ .199076, 1.096799, -1.295875 ] ];17835 -1 var IabtoCone_M = [ [ 1, .1386050432715393, .05804731615611886 ], [ .9999999999999999, -.1386050432715393, -.05804731615611886 ], [ .9999999999999998, -.09601924202631895, -.8118918960560388 ] ];17836 -1 var Jzazbz = new ColorSpace({17837 -1 id: 'jzazbz',17838 -1 name: 'Jzazbz',17839 -1 coords: {17840 -1 jz: {17841 -1 refRange: [ 0, 1 ],17842 -1 name: 'Jz'17843 -1 },17844 -1 az: {17845 -1 refRange: [ -.5, .5 ]-1 17880 return _createClass(Color2, [ { -1 17881 key: 'r', -1 17882 get: function get() { -1 17883 return _classPrivateFieldGet(_r, this); 17846 17884 },17847 -1 bz: {17848 -1 refRange: [ -.5, .5 ]-1 17885 set: function set(value) { -1 17886 _classPrivateFieldSet(_r, this, value); -1 17887 _classPrivateFieldSet(_red, this, Math.round(clamp(value, 0, 1) * 255)); 17849 17888 }17850 -1 },17851 -1 base: XYZ_Abs_D65,17852 -1 fromBase: function fromBase(XYZ) {17853 -1 var _XYZ = _slicedToArray(XYZ, 3), Xa = _XYZ[0], Ya = _XYZ[1], Za = _XYZ[2];17854 -1 var Xm = b$1 * Xa - (b$1 - 1) * Za;17855 -1 var Ym = g * Ya - (g - 1) * Xa;17856 -1 var LMS = multiplyMatrices(XYZtoCone_M, [ Xm, Ym, Za ]);17857 -1 var PQLMS = LMS.map(function(val) {17858 -1 var num = c1$2 + c2$2 * Math.pow(val / 1e4, n$1);17859 -1 var denom = 1 + c3$2 * Math.pow(val / 1e4, n$1);17860 -1 return Math.pow(num / denom, p);17861 -1 });17862 -1 var _multiplyMatrices = multiplyMatrices(ConetoIab_M, PQLMS), _multiplyMatrices2 = _slicedToArray(_multiplyMatrices, 3), Iz = _multiplyMatrices2[0], az = _multiplyMatrices2[1], bz = _multiplyMatrices2[2];17863 -1 var Jz = (1 + d) * Iz / (1 + d * Iz) - d0;17864 -1 return [ Jz, az, bz ];17865 -1 },17866 -1 toBase: function toBase(Jzazbz2) {17867 -1 var _Jzazbz = _slicedToArray(Jzazbz2, 3), Jz = _Jzazbz[0], az = _Jzazbz[1], bz = _Jzazbz[2];17868 -1 var Iz = (Jz + d0) / (1 + d - d * (Jz + d0));17869 -1 var PQLMS = multiplyMatrices(IabtoCone_M, [ Iz, az, bz ]);17870 -1 var LMS = PQLMS.map(function(val) {17871 -1 var num = c1$2 - Math.pow(val, pinv);17872 -1 var denom = c3$2 * Math.pow(val, pinv) - c2$2;17873 -1 var x = 1e4 * Math.pow(num / denom, ninv$1);17874 -1 return x;17875 -1 });17876 -1 var _multiplyMatrices3 = multiplyMatrices(ConetoXYZ_M, LMS), _multiplyMatrices4 = _slicedToArray(_multiplyMatrices3, 3), Xm = _multiplyMatrices4[0], Ym = _multiplyMatrices4[1], Za = _multiplyMatrices4[2];17877 -1 var Xa = (Xm + (b$1 - 1) * Za) / b$1;17878 -1 var Ya = (Ym + (g - 1) * Xa) / g;17879 -1 return [ Xa, Ya, Za ];17880 -1 },17881 -1 formats: {17882 -1 color: {}17883 -1 }17884 -1 });17885 -1 var jzczhz = new ColorSpace({17886 -1 id: 'jzczhz',17887 -1 name: 'JzCzHz',17888 -1 coords: {17889 -1 jz: {17890 -1 refRange: [ 0, 1 ],17891 -1 name: 'Jz'17892 -1 },17893 -1 cz: {17894 -1 refRange: [ 0, 1 ],17895 -1 name: 'Chroma'-1 17889 }, { -1 17890 key: 'g', -1 17891 get: function get() { -1 17892 return _classPrivateFieldGet(_g, this); 17896 17893 },17897 -1 hz: {17898 -1 refRange: [ 0, 360 ],17899 -1 type: 'angle',17900 -1 name: 'Hue'17901 -1 }17902 -1 },17903 -1 base: Jzazbz,17904 -1 fromBase: function fromBase(jzazbz) {17905 -1 var _jzazbz = _slicedToArray(jzazbz, 3), Jz = _jzazbz[0], az = _jzazbz[1], bz = _jzazbz[2];17906 -1 var hue;17907 -1 var \u03b52 = 2e-4;17908 -1 if (Math.abs(az) < \u03b52 && Math.abs(bz) < \u03b52) {17909 -1 hue = NaN;17910 -1 } else {17911 -1 hue = Math.atan2(bz, az) * 180 / Math.PI;-1 17894 set: function set(value) { -1 17895 _classPrivateFieldSet(_g, this, value); -1 17896 _classPrivateFieldSet(_green, this, Math.round(clamp(value, 0, 1) * 255)); 17912 17897 }17913 -1 return [ Jz, Math.sqrt(Math.pow(az, 2) + Math.pow(bz, 2)), constrain(hue) ];17914 -1 },17915 -1 toBase: function toBase(jzczhz2) {17916 -1 return [ jzczhz2[0], jzczhz2[1] * Math.cos(jzczhz2[2] * Math.PI / 180), jzczhz2[1] * Math.sin(jzczhz2[2] * Math.PI / 180) ];17917 -1 },17918 -1 formats: {17919 -1 color: {}17920 -1 }17921 -1 });17922 -1 function deltaEJz(color, sample) {17923 -1 var _jzczhz$from = jzczhz.from(color), _jzczhz$from2 = _slicedToArray(_jzczhz$from, 3), Jz1 = _jzczhz$from2[0], Cz1 = _jzczhz$from2[1], Hz1 = _jzczhz$from2[2];17924 -1 var _jzczhz$from3 = jzczhz.from(sample), _jzczhz$from4 = _slicedToArray(_jzczhz$from3, 3), Jz2 = _jzczhz$from4[0], Cz2 = _jzczhz$from4[1], Hz2 = _jzczhz$from4[2];17925 -1 var \u0394J = Jz1 - Jz2;17926 -1 var \u0394C = Cz1 - Cz2;17927 -1 if (Number.isNaN(Hz1) && Number.isNaN(Hz2)) {17928 -1 Hz1 = 0;17929 -1 Hz2 = 0;17930 -1 } else if (Number.isNaN(Hz1)) {17931 -1 Hz1 = Hz2;17932 -1 } else if (Number.isNaN(Hz2)) {17933 -1 Hz2 = Hz1;17934 -1 }17935 -1 var \u0394h = Hz1 - Hz2;17936 -1 var \u0394H = 2 * Math.sqrt(Cz1 * Cz2) * Math.sin(\u0394h / 2 * (Math.PI / 180));17937 -1 return Math.sqrt(Math.pow(\u0394J, 2) + Math.pow(\u0394C, 2) + Math.pow(\u0394H, 2));17938 -1 }17939 -1 var c1$1 = 3424 / 4096;17940 -1 var c2$1 = 2413 / 128;17941 -1 var c3$1 = 2392 / 128;17942 -1 var m1 = 2610 / 16384;17943 -1 var m2 = 2523 / 32;17944 -1 var im1 = 16384 / 2610;17945 -1 var im2 = 32 / 2523;17946 -1 var XYZtoLMS_M$1 = [ [ .3592, .6976, -.0358 ], [ -.1922, 1.1004, .0755 ], [ .007, .0749, .8434 ] ];17947 -1 var LMStoIPT_M = [ [ 2048 / 4096, 2048 / 4096, 0 ], [ 6610 / 4096, -13613 / 4096, 7003 / 4096 ], [ 17933 / 4096, -17390 / 4096, -543 / 4096 ] ];17948 -1 var IPTtoLMS_M = [ [ .9999888965628402, .008605050147287059, .11103437159861648 ], [ 1.00001110343716, -.008605050147287059, -.11103437159861648 ], [ 1.0000320633910054, .56004913547279, -.3206339100541203 ] ];17949 -1 var LMStoXYZ_M$1 = [ [ 2.0701800566956137, -1.326456876103021, .20661600684785517 ], [ .3649882500326575, .6804673628522352, -.04542175307585323 ], [ -.04959554223893211, -.04942116118675749, 1.1879959417328034 ] ];17950 -1 var ictcp = new ColorSpace({17951 -1 id: 'ictcp',17952 -1 name: 'ICTCP',17953 -1 coords: {17954 -1 i: {17955 -1 refRange: [ 0, 1 ],17956 -1 name: 'I'-1 17898 }, { -1 17899 key: 'b', -1 17900 get: function get() { -1 17901 return _classPrivateFieldGet(_b, this); 17957 17902 },17958 -1 ct: {17959 -1 refRange: [ -.5, .5 ],17960 -1 name: 'CT'-1 17903 set: function set(value) { -1 17904 _classPrivateFieldSet(_b, this, value); -1 17905 _classPrivateFieldSet(_blue, this, Math.round(clamp(value, 0, 1) * 255)); -1 17906 } -1 17907 }, { -1 17908 key: 'red', -1 17909 get: function get() { -1 17910 return _classPrivateFieldGet(_red, this); 17961 17911 },17962 -1 cp: {17963 -1 refRange: [ -.5, .5 ],17964 -1 name: 'CP'-1 17912 set: function set(value) { -1 17913 _classPrivateFieldSet(_r, this, value / 255); -1 17914 _classPrivateFieldSet(_red, this, clamp(value, 0, 255)); 17965 17915 }17966 -1 },17967 -1 base: XYZ_Abs_D65,17968 -1 fromBase: function fromBase(XYZ) {17969 -1 var LMS = multiplyMatrices(XYZtoLMS_M$1, XYZ);17970 -1 return LMStoICtCp(LMS);17971 -1 },17972 -1 toBase: function toBase(ICtCp) {17973 -1 var LMS = ICtCptoLMS(ICtCp);17974 -1 return multiplyMatrices(LMStoXYZ_M$1, LMS);17975 -1 },17976 -1 formats: {17977 -1 color: {}17978 -1 }17979 -1 });17980 -1 function LMStoICtCp(LMS) {17981 -1 var PQLMS = LMS.map(function(val) {17982 -1 var num = c1$1 + c2$1 * Math.pow(val / 1e4, m1);17983 -1 var denom = 1 + c3$1 * Math.pow(val / 1e4, m1);17984 -1 return Math.pow(num / denom, m2);17985 -1 });17986 -1 return multiplyMatrices(LMStoIPT_M, PQLMS);17987 -1 }17988 -1 function ICtCptoLMS(ICtCp) {17989 -1 var PQLMS = multiplyMatrices(IPTtoLMS_M, ICtCp);17990 -1 var LMS = PQLMS.map(function(val) {17991 -1 var num = Math.max(Math.pow(val, im2) - c1$1, 0);17992 -1 var denom = c2$1 - c3$1 * Math.pow(val, im2);17993 -1 return 1e4 * Math.pow(num / denom, im1);17994 -1 });17995 -1 return LMS;17996 -1 }17997 -1 function deltaEITP(color, sample) {17998 -1 var _ictcp$from = ictcp.from(color), _ictcp$from2 = _slicedToArray(_ictcp$from, 3), I1 = _ictcp$from2[0], T1 = _ictcp$from2[1], P1 = _ictcp$from2[2];17999 -1 var _ictcp$from3 = ictcp.from(sample), _ictcp$from4 = _slicedToArray(_ictcp$from3, 3), I2 = _ictcp$from4[0], T2 = _ictcp$from4[1], P2 = _ictcp$from4[2];18000 -1 return 720 * Math.sqrt(Math.pow(I1 - I2, 2) + .25 * Math.pow(T1 - T2, 2) + Math.pow(P1 - P2, 2));18001 -1 }18002 -1 var XYZtoLMS_M = [ [ .8190224432164319, .3619062562801221, -.12887378261216414 ], [ .0329836671980271, .9292868468965546, .03614466816999844 ], [ .048177199566046255, .26423952494422764, .6335478258136937 ] ];18003 -1 var LMStoXYZ_M = [ [ 1.2268798733741557, -.5578149965554813, .28139105017721583 ], [ -.04057576262431372, 1.1122868293970594, -.07171106666151701 ], [ -.07637294974672142, -.4214933239627914, 1.5869240244272418 ] ];18004 -1 var LMStoLab_M = [ [ .2104542553, .793617785, -.0040720468 ], [ 1.9779984951, -2.428592205, .4505937099 ], [ .0259040371, .7827717662, -.808675766 ] ];18005 -1 var LabtoLMS_M = [ [ .9999999984505198, .39633779217376786, .2158037580607588 ], [ 1.0000000088817609, -.10556134232365635, -.06385417477170591 ], [ 1.0000000546724108, -.08948418209496575, -1.2914855378640917 ] ];18006 -1 var OKLab = new ColorSpace({18007 -1 id: 'oklab',18008 -1 name: 'OKLab',18009 -1 coords: {18010 -1 l: {18011 -1 refRange: [ 0, 1 ],18012 -1 name: 'L'-1 17916 }, { -1 17917 key: 'green', -1 17918 get: function get() { -1 17919 return _classPrivateFieldGet(_green, this); 18013 17920 },18014 -1 a: {18015 -1 refRange: [ -.4, .4 ]-1 17921 set: function set(value) { -1 17922 _classPrivateFieldSet(_g, this, value / 255); -1 17923 _classPrivateFieldSet(_green, this, clamp(value, 0, 255)); -1 17924 } -1 17925 }, { -1 17926 key: 'blue', -1 17927 get: function get() { -1 17928 return _classPrivateFieldGet(_blue, this); 18016 17929 },18017 -1 b: {18018 -1 refRange: [ -.4, .4 ]-1 17930 set: function set(value) { -1 17931 _classPrivateFieldSet(_b, this, value / 255); -1 17932 _classPrivateFieldSet(_blue, this, clamp(value, 0, 255)); -1 17933 } -1 17934 }, { -1 17935 key: 'toHexString', -1 17936 value: function toHexString() { -1 17937 var redString = Math.round(this.red).toString(16); -1 17938 var greenString = Math.round(this.green).toString(16); -1 17939 var blueString = Math.round(this.blue).toString(16); -1 17940 return '#' + (this.red > 15.5 ? redString : '0' + redString) + (this.green > 15.5 ? greenString : '0' + greenString) + (this.blue > 15.5 ? blueString : '0' + blueString); -1 17941 } -1 17942 }, { -1 17943 key: 'toJSON', -1 17944 value: function toJSON() { -1 17945 var red = this.red, green = this.green, blue = this.blue, alpha = this.alpha; -1 17946 return { -1 17947 red: red, -1 17948 green: green, -1 17949 blue: blue, -1 17950 alpha: alpha -1 17951 }; -1 17952 } -1 17953 }, { -1 17954 key: 'parseString', -1 17955 value: function parseString(colorString) { -1 17956 colorString = colorString.replace(hslRegex, function(match, angle, unit) { -1 17957 var value = angle + unit; -1 17958 switch (unit) { -1 17959 case 'rad': -1 17960 return match.replace(value, radToDeg(angle)); -1 17961 -1 17962 case 'turn': -1 17963 return match.replace(value, turnToDeg(angle)); -1 17964 } -1 17965 }); -1 17966 try { -1 17967 var prototypeArrayFrom; -1 17968 if ('Prototype' in window && 'Version' in window.Prototype) { -1 17969 prototypeArrayFrom = Array.from; -1 17970 Array.from = import_from2['default']; -1 17971 } -1 17972 var _color2 = new _Color(colorString).toGamut({ -1 17973 space: 'srgb', -1 17974 method: 'clip' -1 17975 }).to('srgb'); -1 17976 if (prototypeArrayFrom) { -1 17977 Array.from = prototypeArrayFrom; -1 17978 prototypeArrayFrom = null; -1 17979 } -1 17980 this.r = _color2.r; -1 17981 this.g = _color2.g; -1 17982 this.b = _color2.b; -1 17983 this.alpha = +_color2.alpha; -1 17984 } catch (_unused2) { -1 17985 incomplete_data_default.set('colorParse', colorString); -1 17986 throw new Error('Unable to parse color "'.concat(colorString, '"')); -1 17987 } -1 17988 return this; -1 17989 } -1 17990 }, { -1 17991 key: 'parseRgbString', -1 17992 value: function parseRgbString(colorString) { -1 17993 this.parseString(colorString); -1 17994 } -1 17995 }, { -1 17996 key: 'parseHexString', -1 17997 value: function parseHexString(colorString) { -1 17998 if (!colorString.match(hexRegex) || [ 6, 8 ].includes(colorString.length)) { -1 17999 return; -1 18000 } -1 18001 this.parseString(colorString); -1 18002 } -1 18003 }, { -1 18004 key: 'parseColorFnString', -1 18005 value: function parseColorFnString(colorString) { -1 18006 this.parseString(colorString); -1 18007 } -1 18008 }, { -1 18009 key: 'getRelativeLuminance', -1 18010 value: function getRelativeLuminance() { -1 18011 var rSRGB = this.r, gSRGB = this.g, bSRGB = this.b; -1 18012 var r = rSRGB <= .04045 ? rSRGB / 12.92 : Math.pow((rSRGB + .055) / 1.055, 2.4); -1 18013 var g2 = gSRGB <= .04045 ? gSRGB / 12.92 : Math.pow((gSRGB + .055) / 1.055, 2.4); -1 18014 var b2 = bSRGB <= .04045 ? bSRGB / 12.92 : Math.pow((bSRGB + .055) / 1.055, 2.4); -1 18015 return .2126 * r + .7152 * g2 + .0722 * b2; -1 18016 } -1 18017 }, { -1 18018 key: 'getLuminosity', -1 18019 value: function getLuminosity() { -1 18020 return .3 * this.r + .59 * this.g + .11 * this.b; -1 18021 } -1 18022 }, { -1 18023 key: 'setLuminosity', -1 18024 value: function setLuminosity(L) { -1 18025 var d2 = L - this.getLuminosity(); -1 18026 return _assertClassBrand(_Class3_brand, this, _add).call(this, d2).clip(); -1 18027 } -1 18028 }, { -1 18029 key: 'getSaturation', -1 18030 value: function getSaturation() { -1 18031 return Math.max(this.r, this.g, this.b) - Math.min(this.r, this.g, this.b); -1 18032 } -1 18033 }, { -1 18034 key: 'setSaturation', -1 18035 value: function setSaturation(s) { -1 18036 var C = new _Color2(this); -1 18037 var colorEntires = [ { -1 18038 name: 'r', -1 18039 value: C.r -1 18040 }, { -1 18041 name: 'g', -1 18042 value: C.g -1 18043 }, { -1 18044 name: 'b', -1 18045 value: C.b -1 18046 } ]; -1 18047 var _colorEntires$sort = colorEntires.sort(function(a2, b2) { -1 18048 return a2.value - b2.value; -1 18049 }), _colorEntires$sort2 = _slicedToArray(_colorEntires$sort, 3), Cmin = _colorEntires$sort2[0], Cmid = _colorEntires$sort2[1], Cmax = _colorEntires$sort2[2]; -1 18050 if (Cmax.value > Cmin.value) { -1 18051 Cmid.value = (Cmid.value - Cmin.value) * s / (Cmax.value - Cmin.value); -1 18052 Cmax.value = s; -1 18053 } else { -1 18054 Cmid.value = Cmax.value = 0; -1 18055 } -1 18056 Cmin.value = 0; -1 18057 C[Cmax.name] = Cmax.value; -1 18058 C[Cmin.name] = Cmin.value; -1 18059 C[Cmid.name] = Cmid.value; -1 18060 return C; 18019 18061 }18020 -1 },18021 -1 white: 'D65',18022 -1 base: XYZ_D65,18023 -1 fromBase: function fromBase(XYZ) {18024 -1 var LMS = multiplyMatrices(XYZtoLMS_M, XYZ);18025 -1 var LMSg = LMS.map(function(val) {18026 -1 return Math.cbrt(val);18027 -1 });18028 -1 return multiplyMatrices(LMStoLab_M, LMSg);18029 -1 },18030 -1 toBase: function toBase(OKLab2) {18031 -1 var LMSg = multiplyMatrices(LabtoLMS_M, OKLab2);18032 -1 var LMS = LMSg.map(function(val) {18033 -1 return Math.pow(val, 3);18034 -1 });18035 -1 return multiplyMatrices(LMStoXYZ_M, LMS);18036 -1 },18037 -1 formats: {18038 -1 oklab: {18039 -1 coords: [ '<number> | <percentage>', '<number>', '<number>' ]-1 18062 }, { -1 18063 key: 'clip', -1 18064 value: function clip() { -1 18065 var C = new _Color2(this); -1 18066 var L = C.getLuminosity(); -1 18067 var n2 = Math.min(C.r, C.g, C.b); -1 18068 var x = Math.max(C.r, C.g, C.b); -1 18069 if (n2 < 0) { -1 18070 C.r = L + (C.r - L) * L / (L - n2); -1 18071 C.g = L + (C.g - L) * L / (L - n2); -1 18072 C.b = L + (C.b - L) * L / (L - n2); -1 18073 } -1 18074 if (x > 1) { -1 18075 C.r = L + (C.r - L) * (1 - L) / (x - L); -1 18076 C.g = L + (C.g - L) * (1 - L) / (x - L); -1 18077 C.b = L + (C.b - L) * (1 - L) / (x - L); -1 18078 } -1 18079 return C; 18040 18080 }18041 -1 }18042 -1 });18043 -1 function deltaEOK(color, sample) {18044 -1 var _OKLab$from = OKLab.from(color), _OKLab$from2 = _slicedToArray(_OKLab$from, 3), L1 = _OKLab$from2[0], a1 = _OKLab$from2[1], b1 = _OKLab$from2[2];18045 -1 var _OKLab$from3 = OKLab.from(sample), _OKLab$from4 = _slicedToArray(_OKLab$from3, 3), L2 = _OKLab$from4[0], a2 = _OKLab$from4[1], b2 = _OKLab$from4[2];18046 -1 var \u0394L = L1 - L2;18047 -1 var \u0394a = a1 - a2;18048 -1 var \u0394b = b1 - b2;18049 -1 return Math.sqrt(Math.pow(\u0394L, 2) + Math.pow(\u0394a, 2) + Math.pow(\u0394b, 2));-1 18081 } ]); -1 18082 }()); -1 18083 function _add(value) { -1 18084 var C = new _Color2(this); -1 18085 C.r += value; -1 18086 C.g += value; -1 18087 C.b += value; -1 18088 return C; 18050 18089 }18051 -1 var deltaEMethods = Object.freeze({18052 -1 __proto__: null,18053 -1 deltaE76: deltaE76,18054 -1 deltaECMC: deltaECMC,18055 -1 deltaE2000: deltaE2000,18056 -1 deltaEJz: deltaEJz,18057 -1 deltaEITP: deltaEITP,18058 -1 deltaEOK: deltaEOK18059 -1 });18060 -1 function deltaE(c12, c22) {18061 -1 var o = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};18062 -1 if (isString(o)) {18063 -1 o = {18064 -1 method: o18065 -1 };18066 -1 }18067 -1 var _o2 = o, _o2$method = _o2.method, method = _o2$method === void 0 ? defaults.deltaE : _o2$method, rest = _objectWithoutProperties(_o2, _excluded12);18068 -1 c12 = getColor(c12);18069 -1 c22 = getColor(c22);18070 -1 for (var m3 in deltaEMethods) {18071 -1 if ('deltae' + method.toLowerCase() === m3.toLowerCase()) {18072 -1 return deltaEMethods[m3](c12, c22, rest);18073 -1 }18074 -1 }18075 -1 throw new TypeError('Unknown deltaE method: '.concat(method));-1 18090 var color_default = _Color2; -1 18091 function clamp(value, min, max2) { -1 18092 return Math.min(Math.max(min, value), max2); 18076 18093 }18077 -1 function lighten(color) {18078 -1 var amount = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : .25;18079 -1 var space = ColorSpace.get('oklch', 'lch');18080 -1 var lightness = [ space, 'l' ];18081 -1 return set(color, lightness, function(l) {18082 -1 return l * (1 + amount);18083 -1 });-1 18094 function radToDeg(rad) { -1 18095 return rad * 180 / Math.PI; 18084 18096 }18085 -1 function darken(color) {18086 -1 var amount = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : .25;18087 -1 var space = ColorSpace.get('oklch', 'lch');18088 -1 var lightness = [ space, 'l' ];18089 -1 return set(color, lightness, function(l) {18090 -1 return l * (1 - amount);18091 -1 });-1 18097 function turnToDeg(turn) { -1 18098 return turn * 360; 18092 18099 }18093 -1 var variations = Object.freeze({18094 -1 __proto__: null,18095 -1 lighten: lighten,18096 -1 darken: darken18097 -1 });18098 -1 function mix(c12, c22) {18099 -1 var p2 = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : .5;18100 -1 var o = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};18101 -1 var _ref57 = [ getColor(c12), getColor(c22) ];18102 -1 c12 = _ref57[0];18103 -1 c22 = _ref57[1];18104 -1 if (type(p2) === 'object') {18105 -1 var _ref58 = [ .5, p2 ];18106 -1 p2 = _ref58[0];18107 -1 o = _ref58[1];-1 18100 function getOwnBackgroundColor(elmStyle) { -1 18101 var bgColor = new color_default(); -1 18102 bgColor.parseString(elmStyle.getPropertyValue('background-color')); -1 18103 if (bgColor.alpha !== 0) { -1 18104 var opacity = elmStyle.getPropertyValue('opacity'); -1 18105 bgColor.alpha = bgColor.alpha * opacity; 18108 18106 }18109 -1 var _o3 = o, space = _o3.space, outputSpace = _o3.outputSpace, premultiplied = _o3.premultiplied;18110 -1 var r = range(c12, c22, {18111 -1 space: space,18112 -1 outputSpace: outputSpace,18113 -1 premultiplied: premultiplied18114 -1 });18115 -1 return r(p2);-1 18107 return bgColor; 18116 18108 }18117 -1 function steps(c12, c22) {18118 -1 var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};18119 -1 var colorRange;18120 -1 if (isRange(c12)) {18121 -1 colorRange = c12;18122 -1 options = c22;18123 -1 var _colorRange$rangeArgs = _slicedToArray(colorRange.rangeArgs.colors, 2);18124 -1 c12 = _colorRange$rangeArgs[0];18125 -1 c22 = _colorRange$rangeArgs[1];18126 -1 }18127 -1 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);18128 -1 if (!colorRange) {18129 -1 var _ref59 = [ getColor(c12), getColor(c22) ];18130 -1 c12 = _ref59[0];18131 -1 c22 = _ref59[1];18132 -1 colorRange = range(c12, c22, rangeOptions);18133 -1 }18134 -1 var totalDelta = deltaE(c12, c22);18135 -1 var actualSteps = maxDeltaE > 0 ? Math.max(steps2, Math.ceil(totalDelta / maxDeltaE) + 1) : steps2;18136 -1 var ret = [];18137 -1 if (maxSteps !== void 0) {18138 -1 actualSteps = Math.min(actualSteps, maxSteps);18139 -1 }18140 -1 if (actualSteps === 1) {18141 -1 ret = [ {18142 -1 p: .5,18143 -1 color: colorRange(.5)18144 -1 } ];18145 -1 } else {18146 -1 var step = 1 / (actualSteps - 1);18147 -1 ret = Array.from({18148 -1 length: actualSteps18149 -1 }, function(_, i) {18150 -1 var p2 = i * step;18151 -1 return {18152 -1 p: p2,18153 -1 color: colorRange(p2)18154 -1 };18155 -1 });-1 18109 var get_own_background_color_default = getOwnBackgroundColor; -1 18110 function isOpaque(node) { -1 18111 var style = window.getComputedStyle(node); -1 18112 return element_has_image_default(node, style) || get_own_background_color_default(style).alpha === 1; -1 18113 } -1 18114 var is_opaque_default = isOpaque; -1 18115 function _isSkipLink(element) { -1 18116 if (!element.href) { -1 18117 return false; 18156 18118 }18157 -1 if (maxDeltaE > 0) {18158 -1 var maxDelta = ret.reduce(function(acc, cur, i) {18159 -1 if (i === 0) {18160 -1 return 0;18161 -1 }18162 -1 var \u0394\u0395 = deltaE(cur.color, ret[i - 1].color, deltaEMethod);18163 -1 return Math.max(acc, \u0394\u0395);18164 -1 }, 0);18165 -1 while (maxDelta > maxDeltaE) {18166 -1 maxDelta = 0;18167 -1 for (var _i20 = 1; _i20 < ret.length && ret.length < maxSteps; _i20++) {18168 -1 var prev = ret[_i20 - 1];18169 -1 var cur = ret[_i20];18170 -1 var p2 = (cur.p + prev.p) / 2;18171 -1 var _color = colorRange(p2);18172 -1 maxDelta = Math.max(maxDelta, deltaE(_color, prev.color), deltaE(_color, cur.color));18173 -1 ret.splice(_i20, 0, {18174 -1 p: p2,18175 -1 color: colorRange(p2)18176 -1 });18177 -1 _i20++;18178 -1 }18179 -1 }-1 18119 var firstPageLink = cache_default.get('firstPageLink', generateFirstPageLink); -1 18120 if (!firstPageLink) { -1 18121 return true; 18180 18122 }18181 -1 ret = ret.map(function(a2) {18182 -1 return a2.color;18183 -1 });18184 -1 return ret;-1 18123 return element.compareDocumentPosition(firstPageLink.actualNode) === element.DOCUMENT_POSITION_FOLLOWING; 18185 18124 }18186 -1 function range(color1, color2) {18187 -1 var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};18188 -1 if (isRange(color1)) {18189 -1 var r = color1, options2 = color2;18190 -1 return range.apply(void 0, _toConsumableArray(r.rangeArgs.colors).concat([ _extends({}, r.rangeArgs.options, options2) ]));18191 -1 }18192 -1 var space = options.space, outputSpace = options.outputSpace, progression = options.progression, premultiplied = options.premultiplied;18193 -1 color1 = getColor(color1);18194 -1 color2 = getColor(color2);18195 -1 color1 = clone2(color1);18196 -1 color2 = clone2(color2);18197 -1 var rangeArgs = {18198 -1 colors: [ color1, color2 ],18199 -1 options: options18200 -1 };18201 -1 if (space) {18202 -1 space = ColorSpace.get(space);-1 18125 function generateFirstPageLink() { -1 18126 var firstPageLink; -1 18127 if (!window.location.origin) { -1 18128 firstPageLink = query_selector_all_default(axe._tree, 'a:not([href^="#"]):not([href^="/#"]):not([href^="javascript:"])')[0]; 18203 18129 } else {18204 -1 space = ColorSpace.registry[defaults.interpolationSpace] || color1.space;18205 -1 }18206 -1 outputSpace = outputSpace ? ColorSpace.get(outputSpace) : space;18207 -1 color1 = to(color1, space);18208 -1 color2 = to(color2, space);18209 -1 color1 = toGamut(color1);18210 -1 color2 = toGamut(color2);18211 -1 if (space.coords.h && space.coords.h.type === 'angle') {18212 -1 var arc = options.hue = options.hue || 'shorter';18213 -1 var hue = [ space, 'h' ];18214 -1 var _ref60 = [ get(color1, hue), get(color2, hue) ], \u03b81 = _ref60[0], \u03b82 = _ref60[1];18215 -1 var _adjust = adjust(arc, [ \u03b81, \u03b82 ]);18216 -1 var _adjust2 = _slicedToArray(_adjust, 2);18217 -1 \u03b81 = _adjust2[0];18218 -1 \u03b82 = _adjust2[1];18219 -1 set(color1, hue, \u03b81);18220 -1 set(color2, hue, \u03b82);18221 -1 }18222 -1 if (premultiplied) {18223 -1 color1.coords = color1.coords.map(function(c4) {18224 -1 return c4 * color1.alpha;18225 -1 });18226 -1 color2.coords = color2.coords.map(function(c4) {18227 -1 return c4 * color2.alpha;-1 18130 firstPageLink = query_selector_all_default(axe._tree, 'a[href]:not([href^="javascript:"])').find(function(link) { -1 18131 return !_isCurrentPageLink(link.actualNode); 18228 18132 }); 18229 18133 }18230 -1 return Object.assign(function(p2) {18231 -1 p2 = progression ? progression(p2) : p2;18232 -1 var coords = color1.coords.map(function(start, i) {18233 -1 var end = color2.coords[i];18234 -1 return interpolate(start, end, p2);18235 -1 });18236 -1 var alpha = interpolate(color1.alpha, color2.alpha, p2);18237 -1 var ret = {18238 -1 space: space,18239 -1 coords: coords,18240 -1 alpha: alpha18241 -1 };18242 -1 if (premultiplied) {18243 -1 ret.coords = ret.coords.map(function(c4) {18244 -1 return c4 / alpha;18245 -1 });18246 -1 }18247 -1 if (outputSpace !== space) {18248 -1 ret = to(ret, outputSpace);18249 -1 }18250 -1 return ret;18251 -1 }, {18252 -1 rangeArgs: rangeArgs18253 -1 });18254 -1 }18255 -1 function isRange(val) {18256 -1 return type(val) === 'function' && !!val.rangeArgs;18257 -1 }18258 -1 defaults.interpolationSpace = 'lab';18259 -1 function register(Color3) {18260 -1 Color3.defineFunction('mix', mix, {18261 -1 returns: 'color'18262 -1 });18263 -1 Color3.defineFunction('range', range, {18264 -1 returns: 'function<color>'18265 -1 });18266 -1 Color3.defineFunction('steps', steps, {18267 -1 returns: 'array<color>'18268 -1 });-1 18134 return firstPageLink || null; 18269 18135 }18270 -1 var interpolation = Object.freeze({18271 -1 __proto__: null,18272 -1 mix: mix,18273 -1 steps: steps,18274 -1 range: range,18275 -1 isRange: isRange,18276 -1 register: register18277 -1 });18278 -1 var HSL = new ColorSpace({18279 -1 id: 'hsl',18280 -1 name: 'HSL',18281 -1 coords: {18282 -1 h: {18283 -1 refRange: [ 0, 360 ],18284 -1 type: 'angle',18285 -1 name: 'Hue'18286 -1 },18287 -1 s: {18288 -1 range: [ 0, 100 ],18289 -1 name: 'Saturation'18290 -1 },18291 -1 l: {18292 -1 range: [ 0, 100 ],18293 -1 name: 'Lightness'-1 18136 var clipRegex2 = /rect\s*\(([0-9]+)px,?\s*([0-9]+)px,?\s*([0-9]+)px,?\s*([0-9]+)px\s*\)/; -1 18137 var clipPathRegex2 = /(\w+)\((\d+)/; -1 18138 function isClipped(style) { -1 18139 var matchesClip = style.getPropertyValue('clip').match(clipRegex2); -1 18140 var matchesClipPath = style.getPropertyValue('clip-path').match(clipPathRegex2); -1 18141 if (matchesClip && matchesClip.length === 5) { -1 18142 var position = style.getPropertyValue('position'); -1 18143 if ([ 'fixed', 'absolute' ].includes(position)) { -1 18144 return matchesClip[3] - matchesClip[1] <= 0 && matchesClip[2] - matchesClip[4] <= 0; 18294 18145 }18295 -1 },18296 -1 base: sRGB,18297 -1 fromBase: function fromBase(rgb) {18298 -1 var max2 = Math.max.apply(Math, _toConsumableArray(rgb));18299 -1 var min = Math.min.apply(Math, _toConsumableArray(rgb));18300 -1 var _rgb = _slicedToArray(rgb, 3), r = _rgb[0], g2 = _rgb[1], b2 = _rgb[2];18301 -1 var h = NaN, s = 0, l = (min + max2) / 2;18302 -1 var d2 = max2 - min;18303 -1 if (d2 !== 0) {18304 -1 s = l === 0 || l === 1 ? 0 : (max2 - l) / Math.min(l, 1 - l);18305 -1 switch (max2) {18306 -1 case r:18307 -1 h = (g2 - b2) / d2 + (g2 < b2 ? 6 : 0);18308 -1 break;-1 18146 } -1 18147 if (matchesClipPath) { -1 18148 var type2 = matchesClipPath[1]; -1 18149 var value = parseInt(matchesClipPath[2], 10); -1 18150 switch (type2) { -1 18151 case 'inset': -1 18152 return value >= 50; 18309 1815318310 -1 case g2:18311 -1 h = (b2 - r) / d2 + 2;18312 -1 break;-1 18154 case 'circle': -1 18155 return value === 0; 18313 1815618314 -1 case b2:18315 -1 h = (r - g2) / d2 + 4;18316 -1 }18317 -1 h = h * 60;18318 -1 }18319 -1 return [ h, s * 100, l * 100 ];18320 -1 },18321 -1 toBase: function toBase(hsl) {18322 -1 var _hsl = _slicedToArray(hsl, 3), h = _hsl[0], s = _hsl[1], l = _hsl[2];18323 -1 h = h % 360;18324 -1 if (h < 0) {18325 -1 h += 360;18326 -1 }18327 -1 s /= 100;18328 -1 l /= 100;18329 -1 function f(n2) {18330 -1 var k = (n2 + h / 30) % 12;18331 -1 var a2 = s * Math.min(l, 1 - l);18332 -1 return l - a2 * Math.max(-1, Math.min(k - 3, 9 - k, 1));18333 -1 }18334 -1 return [ f(0), f(8), f(4) ];18335 -1 },18336 -1 formats: {18337 -1 hsl: {18338 -1 toGamut: true,18339 -1 coords: [ '<number> | <angle>', '<percentage>', '<percentage>' ]18340 -1 },18341 -1 hsla: {18342 -1 coords: [ '<number> | <angle>', '<percentage>', '<percentage>' ],18343 -1 commas: true,18344 -1 lastAlpha: true-1 18157 default: 18345 18158 } 18346 18159 }18347 -1 });18348 -1 var HSV = new ColorSpace({18349 -1 id: 'hsv',18350 -1 name: 'HSV',18351 -1 coords: {18352 -1 h: {18353 -1 refRange: [ 0, 360 ],18354 -1 type: 'angle',18355 -1 name: 'Hue'18356 -1 },18357 -1 s: {18358 -1 range: [ 0, 100 ],18359 -1 name: 'Saturation'18360 -1 },18361 -1 v: {18362 -1 range: [ 0, 100 ],18363 -1 name: 'Value'18364 -1 }18365 -1 },18366 -1 base: HSL,18367 -1 fromBase: function fromBase(hsl) {18368 -1 var _hsl2 = _slicedToArray(hsl, 3), h = _hsl2[0], s = _hsl2[1], l = _hsl2[2];18369 -1 s /= 100;18370 -1 l /= 100;18371 -1 var v = l + s * Math.min(l, 1 - l);18372 -1 return [ h, v === 0 ? 0 : 200 * (1 - l / v), 100 * v ];18373 -1 },18374 -1 toBase: function toBase(hsv) {18375 -1 var _hsv = _slicedToArray(hsv, 3), h = _hsv[0], s = _hsv[1], v = _hsv[2];18376 -1 s /= 100;18377 -1 v /= 100;18378 -1 var l = v * (1 - s / 2);18379 -1 return [ h, l === 0 || l === 1 ? 0 : (v - l) / Math.min(l, 1 - l) * 100, l * 100 ];18380 -1 },18381 -1 formats: {18382 -1 color: {18383 -1 toGamut: true18384 -1 }-1 18160 return false; -1 18161 } -1 18162 function isAreaVisible(el, screenReader, recursed) { -1 18163 var mapEl = find_up_default(el, 'map'); -1 18164 if (!mapEl) { -1 18165 return false; 18385 18166 }18386 -1 });18387 -1 var hwb = new ColorSpace({18388 -1 id: 'hwb',18389 -1 name: 'HWB',18390 -1 coords: {18391 -1 h: {18392 -1 refRange: [ 0, 360 ],18393 -1 type: 'angle',18394 -1 name: 'Hue'18395 -1 },18396 -1 w: {18397 -1 range: [ 0, 100 ],18398 -1 name: 'Whiteness'18399 -1 },18400 -1 b: {18401 -1 range: [ 0, 100 ],18402 -1 name: 'Blackness'18403 -1 }18404 -1 },18405 -1 base: HSV,18406 -1 fromBase: function fromBase(hsv) {18407 -1 var _hsv2 = _slicedToArray(hsv, 3), h = _hsv2[0], s = _hsv2[1], v = _hsv2[2];18408 -1 return [ h, v * (100 - s) / 100, 100 - v ];18409 -1 },18410 -1 toBase: function toBase(hwb2) {18411 -1 var _hwb = _slicedToArray(hwb2, 3), h = _hwb[0], w = _hwb[1], b2 = _hwb[2];18412 -1 w /= 100;18413 -1 b2 /= 100;18414 -1 var sum = w + b2;18415 -1 if (sum >= 1) {18416 -1 var gray = w / sum;18417 -1 return [ h, 0, gray * 100 ];18418 -1 }18419 -1 var v = 1 - b2;18420 -1 var s = v === 0 ? 0 : 1 - w / v;18421 -1 return [ h, s * 100, v * 100 ];18422 -1 },18423 -1 formats: {18424 -1 hwb: {18425 -1 toGamut: true,18426 -1 coords: [ '<number> | <angle>', '<percentage>', '<percentage>' ]18427 -1 }-1 18167 var mapElName = mapEl.getAttribute('name'); -1 18168 if (!mapElName) { -1 18169 return false; 18428 18170 }18429 -1 });18430 -1 var toXYZ_M$2 = [ [ .5766690429101305, .1855582379065463, .1882286462349947 ], [ .29734497525053605, .6273635662554661, .07529145849399788 ], [ .02703136138641234, .07068885253582723, .9913375368376388 ] ];18431 -1 var fromXYZ_M$2 = [ [ 2.0415879038107465, -.5650069742788596, -.34473135077832956 ], [ -.9692436362808795, 1.8759675015077202, .04155505740717557 ], [ .013444280632031142, -.11836239223101838, 1.0151749943912054 ] ];18432 -1 var A98Linear = new RGBColorSpace({18433 -1 id: 'a98rgb-linear',18434 -1 name: 'Linear Adobe\xae 98 RGB compatible',18435 -1 white: 'D65',18436 -1 toXYZ_M: toXYZ_M$2,18437 -1 fromXYZ_M: fromXYZ_M$218438 -1 });18439 -1 var a98rgb = new RGBColorSpace({18440 -1 id: 'a98rgb',18441 -1 name: 'Adobe\xae 98 RGB compatible',18442 -1 base: A98Linear,18443 -1 toBase: function toBase(RGB) {18444 -1 return RGB.map(function(val) {18445 -1 return Math.pow(Math.abs(val), 563 / 256) * Math.sign(val);18446 -1 });18447 -1 },18448 -1 fromBase: function fromBase(RGB) {18449 -1 return RGB.map(function(val) {18450 -1 return Math.pow(Math.abs(val), 256 / 563) * Math.sign(val);18451 -1 });18452 -1 },18453 -1 formats: {18454 -1 color: {18455 -1 id: 'a98-rgb'18456 -1 }-1 18171 var mapElRootNode = get_root_node_default2(el); -1 18172 if (!mapElRootNode || mapElRootNode.nodeType !== 9) { -1 18173 return false; -1 18174 } -1 18175 var refs = query_selector_all_default(axe._tree, 'img[usemap="#'.concat(escape_selector_default(mapElName), '"]')); -1 18176 if (!refs || !refs.length) { -1 18177 return false; -1 18178 } -1 18179 return refs.some(function(_ref52) { -1 18180 var actualNode = _ref52.actualNode; -1 18181 return isVisible(actualNode, screenReader, recursed); -1 18182 }); -1 18183 } -1 18184 function isVisible(el, screenReader, recursed) { -1 18185 var _window$Node2; -1 18186 if (!el) { -1 18187 throw new TypeError('Cannot determine if element is visible for non-DOM nodes'); 18457 18188 }18458 -1 });18459 -1 var toXYZ_M$1 = [ [ .7977604896723027, .13518583717574031, .0313493495815248 ], [ .2880711282292934, .7118432178101014, 8565396060525902e-20 ], [ 0, 0, .8251046025104601 ] ];18460 -1 var fromXYZ_M$1 = [ [ 1.3457989731028281, -.25558010007997534, -.05110628506753401 ], [ -.5446224939028347, 1.5082327413132781, .02053603239147973 ], [ 0, 0, 1.2119675456389454 ] ];18461 -1 var ProPhotoLinear = new RGBColorSpace({18462 -1 id: 'prophoto-linear',18463 -1 name: 'Linear ProPhoto',18464 -1 white: 'D50',18465 -1 base: XYZ_D50,18466 -1 toXYZ_M: toXYZ_M$1,18467 -1 fromXYZ_M: fromXYZ_M$118468 -1 });18469 -1 var Et = 1 / 512;18470 -1 var Et2 = 16 / 512;18471 -1 var prophoto = new RGBColorSpace({18472 -1 id: 'prophoto',18473 -1 name: 'ProPhoto',18474 -1 base: ProPhotoLinear,18475 -1 toBase: function toBase(RGB) {18476 -1 return RGB.map(function(v) {18477 -1 return v < Et2 ? v / 16 : Math.pow(v, 1.8);18478 -1 });18479 -1 },18480 -1 fromBase: function fromBase(RGB) {18481 -1 return RGB.map(function(v) {18482 -1 return v >= Et ? Math.pow(v, 1 / 1.8) : 16 * v;18483 -1 });18484 -1 },18485 -1 formats: {18486 -1 color: {18487 -1 id: 'prophoto-rgb'-1 18189 var vNode = el instanceof abstract_virtual_node_default ? el : get_node_from_tree_default(el); -1 18190 el = vNode ? vNode.actualNode : el; -1 18191 var cacheName = '_isVisible' + (screenReader ? 'ScreenReader' : ''); -1 18192 var _ref53 = (_window$Node2 = window.Node) !== null && _window$Node2 !== void 0 ? _window$Node2 : {}, DOCUMENT_NODE = _ref53.DOCUMENT_NODE, DOCUMENT_FRAGMENT_NODE = _ref53.DOCUMENT_FRAGMENT_NODE; -1 18193 var nodeType = vNode ? vNode.props.nodeType : el.nodeType; -1 18194 var nodeName2 = vNode ? vNode.props.nodeName : el.nodeName.toLowerCase(); -1 18195 if (vNode && typeof vNode[cacheName] !== 'undefined') { -1 18196 return vNode[cacheName]; -1 18197 } -1 18198 if (nodeType === DOCUMENT_NODE) { -1 18199 return true; -1 18200 } -1 18201 if ([ 'style', 'script', 'noscript', 'template' ].includes(nodeName2)) { -1 18202 return false; -1 18203 } -1 18204 if (el && nodeType === DOCUMENT_FRAGMENT_NODE) { -1 18205 el = el.host; -1 18206 } -1 18207 if (screenReader) { -1 18208 var ariaHiddenValue = vNode ? vNode.attr('aria-hidden') : el.getAttribute('aria-hidden'); -1 18209 if (ariaHiddenValue === 'true') { -1 18210 return false; 18488 18211 } 18489 18212 }18490 -1 });18491 -1 var oklch = new ColorSpace({18492 -1 id: 'oklch',18493 -1 name: 'OKLCh',18494 -1 coords: {18495 -1 l: {18496 -1 refRange: [ 0, 1 ],18497 -1 name: 'Lightness'18498 -1 },18499 -1 c: {18500 -1 refRange: [ 0, .4 ],18501 -1 name: 'Chroma'18502 -1 },18503 -1 h: {18504 -1 refRange: [ 0, 360 ],18505 -1 type: 'angle',18506 -1 name: 'Hue'-1 18213 if (!el) { -1 18214 var parent2 = vNode.parent; -1 18215 var visible3 = true; -1 18216 if (parent2) { -1 18217 visible3 = isVisible(parent2, screenReader, true); 18507 18218 }18508 -1 },18509 -1 white: 'D65',18510 -1 base: OKLab,18511 -1 fromBase: function fromBase(oklab) {18512 -1 var _oklab = _slicedToArray(oklab, 3), L = _oklab[0], a2 = _oklab[1], b2 = _oklab[2];18513 -1 var h;18514 -1 var \u03b52 = 2e-4;18515 -1 if (Math.abs(a2) < \u03b52 && Math.abs(b2) < \u03b52) {18516 -1 h = NaN;18517 -1 } else {18518 -1 h = Math.atan2(b2, a2) * 180 / Math.PI;-1 18219 if (vNode) { -1 18220 vNode[cacheName] = visible3; 18519 18221 }18520 -1 return [ L, Math.sqrt(Math.pow(a2, 2) + Math.pow(b2, 2)), constrain(h) ];18521 -1 },18522 -1 toBase: function toBase(oklch2) {18523 -1 var _oklch = _slicedToArray(oklch2, 3), L = _oklch[0], C = _oklch[1], h = _oklch[2];18524 -1 var a2, b2;18525 -1 if (isNaN(h)) {18526 -1 a2 = 0;18527 -1 b2 = 0;18528 -1 } else {18529 -1 a2 = C * Math.cos(h * Math.PI / 180);18530 -1 b2 = C * Math.sin(h * Math.PI / 180);-1 18222 return visible3; -1 18223 } -1 18224 var style = window.getComputedStyle(el, null); -1 18225 if (style === null) { -1 18226 return false; -1 18227 } -1 18228 if (nodeName2 === 'area') { -1 18229 return isAreaVisible(el, screenReader, recursed); -1 18230 } -1 18231 if (style.getPropertyValue('display') === 'none') { -1 18232 return false; -1 18233 } -1 18234 var elHeight = parseInt(style.getPropertyValue('height')); -1 18235 var elWidth = parseInt(style.getPropertyValue('width')); -1 18236 var scroll = get_scroll_default(el); -1 18237 var scrollableWithZeroHeight = scroll && elHeight === 0; -1 18238 var scrollableWithZeroWidth = scroll && elWidth === 0; -1 18239 var posAbsoluteOverflowHiddenAndSmall = style.getPropertyValue('position') === 'absolute' && (elHeight < 2 || elWidth < 2) && style.getPropertyValue('overflow') === 'hidden'; -1 18240 if (!screenReader && (isClipped(style) || style.getPropertyValue('opacity') === '0' || scrollableWithZeroHeight || scrollableWithZeroWidth || posAbsoluteOverflowHiddenAndSmall)) { -1 18241 return false; -1 18242 } -1 18243 if (!recursed && (style.getPropertyValue('visibility') === 'hidden' || !screenReader && is_offscreen_default(el))) { -1 18244 return false; -1 18245 } -1 18246 var parent = el.assignedSlot ? el.assignedSlot : el.parentNode; -1 18247 var visible2 = false; -1 18248 if (parent) { -1 18249 visible2 = isVisible(parent, screenReader, true); -1 18250 } -1 18251 if (vNode) { -1 18252 vNode[cacheName] = visible2; -1 18253 } -1 18254 return visible2; -1 18255 } -1 18256 var is_visible_default = isVisible; -1 18257 function reduceToElementsBelowFloating(elements, targetNode) { -1 18258 var floatingPositions = [ 'fixed', 'sticky' ]; -1 18259 var finalElements = []; -1 18260 var targetFound = false; -1 18261 for (var index = 0; index < elements.length; ++index) { -1 18262 var currentNode = elements[index]; -1 18263 if (currentNode === targetNode) { -1 18264 targetFound = true; 18531 18265 }18532 -1 return [ L, a2, b2 ];18533 -1 },18534 -1 formats: {18535 -1 oklch: {18536 -1 coords: [ '<number> | <percentage>', '<number>', '<number> | <angle>' ]-1 18266 var style = window.getComputedStyle(currentNode); -1 18267 if (!targetFound && floatingPositions.indexOf(style.position) !== -1) { -1 18268 finalElements = []; -1 18269 continue; 18537 18270 } -1 18271 finalElements.push(currentNode); 18538 18272 }18539 -1 });18540 -1 var Yw = 203;18541 -1 var n = 2610 / Math.pow(2, 14);18542 -1 var ninv = Math.pow(2, 14) / 2610;18543 -1 var m = 2523 / Math.pow(2, 5);18544 -1 var minv = Math.pow(2, 5) / 2523;18545 -1 var c1 = 3424 / Math.pow(2, 12);18546 -1 var c2 = 2413 / Math.pow(2, 7);18547 -1 var c3 = 2392 / Math.pow(2, 7);18548 -1 var rec2100Pq = new RGBColorSpace({18549 -1 id: 'rec2100pq',18550 -1 name: 'REC.2100-PQ',18551 -1 base: REC2020Linear,18552 -1 toBase: function toBase(RGB) {18553 -1 return RGB.map(function(val) {18554 -1 var x = Math.pow(Math.max(Math.pow(val, minv) - c1, 0) / (c2 - c3 * Math.pow(val, minv)), ninv);18555 -1 return x * 1e4 / Yw;18556 -1 });18557 -1 },18558 -1 fromBase: function fromBase(RGB) {18559 -1 return RGB.map(function(val) {18560 -1 var x = Math.max(val * Yw / 1e4, 0);18561 -1 var num = c1 + c2 * Math.pow(x, n);18562 -1 var denom = 1 + c3 * Math.pow(x, n);18563 -1 return Math.pow(num / denom, m);18564 -1 });18565 -1 },18566 -1 formats: {18567 -1 color: {18568 -1 id: 'rec2100-pq'-1 18273 return finalElements; -1 18274 } -1 18275 var reduce_to_elements_below_floating_default = reduceToElementsBelowFloating; -1 18276 function _visuallyContains(node, parent) { -1 18277 var parentScrollAncestor = getScrollAncestor(parent); -1 18278 do { -1 18279 var nextScrollAncestor = getScrollAncestor(node); -1 18280 if (nextScrollAncestor === parentScrollAncestor || nextScrollAncestor === parent) { -1 18281 return contains2(node, parent); -1 18282 } -1 18283 node = nextScrollAncestor; -1 18284 } while (node); -1 18285 return false; -1 18286 } -1 18287 function getScrollAncestor(node) { -1 18288 var vNode = get_node_from_tree_default(node); -1 18289 var ancestor = vNode.parent; -1 18290 while (ancestor) { -1 18291 if (get_scroll_default(ancestor.actualNode)) { -1 18292 return ancestor.actualNode; 18569 18293 } -1 18294 ancestor = ancestor.parent; 18570 18295 }18571 -1 });18572 -1 var a = .17883277;18573 -1 var b = .28466892;18574 -1 var c = .55991073;18575 -1 var scale = 3.7743;18576 -1 var rec2100Hlg = new RGBColorSpace({18577 -1 id: 'rec2100hlg',18578 -1 cssid: 'rec2100-hlg',18579 -1 name: 'REC.2100-HLG',18580 -1 referred: 'scene',18581 -1 base: REC2020Linear,18582 -1 toBase: function toBase(RGB) {18583 -1 return RGB.map(function(val) {18584 -1 if (val <= .5) {18585 -1 return Math.pow(val, 2) / 3 * scale;18586 -1 }18587 -1 return Math.exp((val - c) / a + b) / 12 * scale;18588 -1 });18589 -1 },18590 -1 fromBase: function fromBase(RGB) {18591 -1 return RGB.map(function(val) {18592 -1 val /= scale;18593 -1 if (val <= 1 / 12) {18594 -1 return Math.sqrt(3 * val);-1 18296 } -1 18297 function contains2(node, parent) { -1 18298 var style = window.getComputedStyle(parent); -1 18299 var overflow = style.getPropertyValue('overflow'); -1 18300 if (style.getPropertyValue('display') === 'inline') { -1 18301 return true; -1 18302 } -1 18303 var clientRects = Array.from(node.getClientRects()); -1 18304 var boundingRect = parent.getBoundingClientRect(); -1 18305 var rect = { -1 18306 left: boundingRect.left, -1 18307 top: boundingRect.top, -1 18308 width: boundingRect.width, -1 18309 height: boundingRect.height -1 18310 }; -1 18311 if ([ 'scroll', 'auto' ].includes(overflow) || parent instanceof window.HTMLHtmlElement) { -1 18312 rect.width = parent.scrollWidth; -1 18313 rect.height = parent.scrollHeight; -1 18314 } -1 18315 if (clientRects.length === 1 && overflow === 'hidden' && style.getPropertyValue('white-space') === 'nowrap') { -1 18316 clientRects[0] = rect; -1 18317 } -1 18318 return clientRects.some(function(clientRect) { -1 18319 return !(Math.ceil(clientRect.left) < Math.floor(rect.left) || Math.ceil(clientRect.top) < Math.floor(rect.top) || Math.floor(clientRect.left + clientRect.width) > Math.ceil(rect.left + rect.width) || Math.floor(clientRect.top + clientRect.height) > Math.ceil(rect.top + rect.height)); -1 18320 }); -1 18321 } -1 18322 function shadowElementsFromPoint(nodeX, nodeY) { -1 18323 var root = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : document; -1 18324 var i = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 0; -1 18325 if (i > 999) { -1 18326 throw new Error('Infinite loop detected'); -1 18327 } -1 18328 return Array.from(root.elementsFromPoint(nodeX, nodeY) || []).filter(function(nodes) { -1 18329 return get_root_node_default2(nodes) === root; -1 18330 }).reduce(function(stack, elm) { -1 18331 if (is_shadow_root_default(elm)) { -1 18332 var shadowStack = shadowElementsFromPoint(nodeX, nodeY, elm.shadowRoot, i + 1); -1 18333 stack = stack.concat(shadowStack); -1 18334 if (stack.length && _visuallyContains(stack[0], elm)) { -1 18335 stack.push(elm); 18595 18336 }18596 -1 return a * Math.log(12 * val - b) + c;18597 -1 });18598 -1 },18599 -1 formats: {18600 -1 color: {18601 -1 id: 'rec2100-hlg'-1 18337 } else { -1 18338 stack.push(elm); 18602 18339 } -1 18340 return stack; -1 18341 }, []); -1 18342 } -1 18343 var shadow_elements_from_point_default = shadowElementsFromPoint; -1 18344 function urlPropsFromAttribute(node, attribute) { -1 18345 if (!node.hasAttribute(attribute)) { -1 18346 return void 0; 18603 18347 }18604 -1 });18605 -1 var CATs = {};18606 -1 hooks.add('chromatic-adaptation-start', function(env) {18607 -1 if (env.options.method) {18608 -1 env.M = adapt(env.W1, env.W2, env.options.method);-1 18348 var nodeName2 = node.nodeName.toUpperCase(); -1 18349 var parser2 = node; -1 18350 if (![ 'A', 'AREA' ].includes(nodeName2) || node.ownerSVGElement) { -1 18351 parser2 = document.createElement('a'); -1 18352 parser2.href = node.getAttribute(attribute); 18609 18353 }18610 -1 });18611 -1 hooks.add('chromatic-adaptation-end', function(env) {18612 -1 if (!env.M) {18613 -1 env.M = adapt(env.W1, env.W2, env.options.method);-1 18354 var protocol = [ 'https:', 'ftps:' ].includes(parser2.protocol) ? parser2.protocol.replace(/s:$/, ':') : parser2.protocol; -1 18355 var parserPathname = /^\//.test(parser2.pathname) ? parser2.pathname : '/'.concat(parser2.pathname); -1 18356 var _getPathnameOrFilenam = getPathnameOrFilename(parserPathname), pathname = _getPathnameOrFilenam.pathname, filename = _getPathnameOrFilenam.filename; -1 18357 return { -1 18358 protocol: protocol, -1 18359 hostname: parser2.hostname, -1 18360 port: getPort(parser2.port), -1 18361 pathname: /\/$/.test(pathname) ? pathname : ''.concat(pathname, '/'), -1 18362 search: getSearchPairs(parser2.search), -1 18363 hash: getHashRoute(parser2.hash), -1 18364 filename: filename -1 18365 }; -1 18366 } -1 18367 function getPort(port) { -1 18368 var excludePorts = [ '443', '80' ]; -1 18369 return !excludePorts.includes(port) ? port : ''; -1 18370 } -1 18371 function getPathnameOrFilename(pathname) { -1 18372 var filename = pathname.split('/').pop(); -1 18373 if (!filename || filename.indexOf('.') === -1) { -1 18374 return { -1 18375 pathname: pathname, -1 18376 filename: '' -1 18377 }; 18614 18378 }18615 -1 });18616 -1 function defineCAT(_ref61) {18617 -1 var id = _ref61.id, toCone_M = _ref61.toCone_M, fromCone_M = _ref61.fromCone_M;18618 -1 CATs[id] = arguments[0];-1 18379 return { -1 18380 pathname: pathname.replace(filename, ''), -1 18381 filename: /index./.test(filename) ? '' : filename -1 18382 }; 18619 18383 }18620 -1 function adapt(W1, W2) {18621 -1 var id = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'Bradford';18622 -1 var method = CATs[id];18623 -1 var _multiplyMatrices5 = multiplyMatrices(method.toCone_M, W1), _multiplyMatrices6 = _slicedToArray(_multiplyMatrices5, 3), \u03c1s = _multiplyMatrices6[0], \u03b3s = _multiplyMatrices6[1], \u03b2s = _multiplyMatrices6[2];18624 -1 var _multiplyMatrices7 = multiplyMatrices(method.toCone_M, W2), _multiplyMatrices8 = _slicedToArray(_multiplyMatrices7, 3), \u03c1d = _multiplyMatrices8[0], \u03b3d = _multiplyMatrices8[1], \u03b2d = _multiplyMatrices8[2];18625 -1 var scale2 = [ [ \u03c1d / \u03c1s, 0, 0 ], [ 0, \u03b3d / \u03b3s, 0 ], [ 0, 0, \u03b2d / \u03b2s ] ];18626 -1 var scaled_cone_M = multiplyMatrices(scale2, method.toCone_M);18627 -1 var adapt_M = multiplyMatrices(method.fromCone_M, scaled_cone_M);18628 -1 return adapt_M;-1 18384 function getSearchPairs(searchStr) { -1 18385 var query = {}; -1 18386 if (!searchStr || !searchStr.length) { -1 18387 return query; -1 18388 } -1 18389 var pairs = searchStr.substring(1).split('&'); -1 18390 if (!pairs || !pairs.length) { -1 18391 return query; -1 18392 } -1 18393 for (var index = 0; index < pairs.length; index++) { -1 18394 var pair = pairs[index]; -1 18395 var _pair$split = pair.split('='), _pair$split2 = _slicedToArray(_pair$split, 2), _key6 = _pair$split2[0], _pair$split2$ = _pair$split2[1], value = _pair$split2$ === void 0 ? '' : _pair$split2$; -1 18396 query[decodeURIComponent(_key6)] = decodeURIComponent(value); -1 18397 } -1 18398 return query; 18629 18399 }18630 -1 defineCAT({18631 -1 id: 'von Kries',18632 -1 toCone_M: [ [ .40024, .7076, -.08081 ], [ -.2263, 1.16532, .0457 ], [ 0, 0, .91822 ] ],18633 -1 fromCone_M: [ [ 1.8599364, -1.1293816, .2198974 ], [ .3611914, .6388125, -64e-7 ], [ 0, 0, 1.0890636 ] ]18634 -1 });18635 -1 defineCAT({18636 -1 id: 'Bradford',18637 -1 toCone_M: [ [ .8951, .2664, -.1614 ], [ -.7502, 1.7135, .0367 ], [ .0389, -.0685, 1.0296 ] ],18638 -1 fromCone_M: [ [ .9869929, -.1470543, .1599627 ], [ .4323053, .5183603, .0492912 ], [ -.0085287, .0400428, .9684867 ] ]18639 -1 });18640 -1 defineCAT({18641 -1 id: 'CAT02',18642 -1 toCone_M: [ [ .7328, .4296, -.1624 ], [ -.7036, 1.6975, .0061 ], [ .003, .0136, .9834 ] ],18643 -1 fromCone_M: [ [ 1.0961238, -.278869, .1827452 ], [ .454369, .4735332, .0720978 ], [ -.0096276, -.005698, 1.0153256 ] ]18644 -1 });18645 -1 defineCAT({18646 -1 id: 'CAT16',18647 -1 toCone_M: [ [ .401288, .650173, -.051461 ], [ -.250268, 1.204414, .045854 ], [ -.002079, .048952, .953127 ] ],18648 -1 fromCone_M: [ [ 1.862067855087233, -1.011254630531685, .1491867754444518 ], [ .3875265432361372, .6214474419314753, -.008973985167612518 ], [ -.01584149884933386, -.03412293802851557, 1.04996443687785 ] ]18649 -1 });18650 -1 Object.assign(WHITES, {18651 -1 A: [ 1.0985, 1, .35585 ],18652 -1 C: [ .98074, 1, 1.18232 ],18653 -1 D55: [ .95682, 1, .92149 ],18654 -1 D75: [ .94972, 1, 1.22638 ],18655 -1 E: [ 1, 1, 1 ],18656 -1 F2: [ .99186, 1, .67393 ],18657 -1 F7: [ .95041, 1, 1.08747 ],18658 -1 F11: [ 1.00962, 1, .6435 ]18659 -1 });18660 -1 WHITES.ACES = [ .32168 / .33767, 1, (1 - .32168 - .33767) / .33767 ];18661 -1 var toXYZ_M = [ [ .6624541811085053, .13400420645643313, .1561876870049078 ], [ .27222871678091454, .6740817658111484, .05368951740793705 ], [ -.005574649490394108, .004060733528982826, 1.0103391003129971 ] ];18662 -1 var fromXYZ_M = [ [ 1.6410233796943257, -.32480329418479, -.23642469523761225 ], [ -.6636628587229829, 1.6153315916573379, .016756347685530137 ], [ .011721894328375376, -.008284441996237409, .9883948585390215 ] ];18663 -1 var ACEScg = new RGBColorSpace({18664 -1 id: 'acescg',18665 -1 name: 'ACEScg',18666 -1 coords: {18667 -1 r: {18668 -1 range: [ 0, 65504 ],18669 -1 name: 'Red'18670 -1 },18671 -1 g: {18672 -1 range: [ 0, 65504 ],18673 -1 name: 'Green'18674 -1 },18675 -1 b: {18676 -1 range: [ 0, 65504 ],18677 -1 name: 'Blue'18678 -1 }18679 -1 },18680 -1 referred: 'scene',18681 -1 white: WHITES.ACES,18682 -1 toXYZ_M: toXYZ_M,18683 -1 fromXYZ_M: fromXYZ_M,18684 -1 formats: {18685 -1 color: {}-1 18400 function getHashRoute(hash) { -1 18401 if (!hash) { -1 18402 return ''; 18686 18403 }18687 -1 });18688 -1 var \u03b5 = Math.pow(2, -16);18689 -1 var ACES_min_nonzero = -.35828683;18690 -1 var ACES_cc_max = (Math.log2(65504) + 9.72) / 17.52;18691 -1 var acescc = new RGBColorSpace({18692 -1 id: 'acescc',18693 -1 name: 'ACEScc',18694 -1 coords: {18695 -1 r: {18696 -1 range: [ ACES_min_nonzero, ACES_cc_max ],18697 -1 name: 'Red'18698 -1 },18699 -1 g: {18700 -1 range: [ ACES_min_nonzero, ACES_cc_max ],18701 -1 name: 'Green'18702 -1 },18703 -1 b: {18704 -1 range: [ ACES_min_nonzero, ACES_cc_max ],18705 -1 name: 'Blue'18706 -1 }18707 -1 },18708 -1 referred: 'scene',18709 -1 base: ACEScg,18710 -1 toBase: function toBase(RGB) {18711 -1 var low = (9.72 - 15) / 17.52;18712 -1 return RGB.map(function(val) {18713 -1 if (val <= low) {18714 -1 return (Math.pow(2, val * 17.52 - 9.72) - \u03b5) * 2;18715 -1 } else if (val < ACES_cc_max) {18716 -1 return Math.pow(2, val * 17.52 - 9.72);18717 -1 } else {18718 -1 return 65504;18719 -1 }18720 -1 });18721 -1 },18722 -1 fromBase: function fromBase(RGB) {18723 -1 return RGB.map(function(val) {18724 -1 if (val <= 0) {18725 -1 return (Math.log2(\u03b5) + 9.72) / 17.52;18726 -1 } else if (val < \u03b5) {18727 -1 return (Math.log2(\u03b5 + val * .5) + 9.72) / 17.52;18728 -1 } else {18729 -1 return (Math.log2(val) + 9.72) / 17.52;18730 -1 }18731 -1 });18732 -1 },18733 -1 formats: {18734 -1 color: {}-1 18404 var hashRegex = /#!?\/?/g; -1 18405 var hasMatch = hash.match(hashRegex); -1 18406 if (!hasMatch) { -1 18407 return ''; 18735 18408 }18736 -1 });18737 -1 var spaces = Object.freeze({18738 -1 __proto__: null,18739 -1 XYZ_D65: XYZ_D65,18740 -1 XYZ_D50: XYZ_D50,18741 -1 XYZ_ABS_D65: XYZ_Abs_D65,18742 -1 Lab_D65: lab_d65,18743 -1 Lab: lab,18744 -1 LCH: lch,18745 -1 sRGB_Linear: sRGBLinear,18746 -1 sRGB: sRGB,18747 -1 HSL: HSL,18748 -1 HWB: hwb,18749 -1 HSV: HSV,18750 -1 P3_Linear: P3Linear,18751 -1 P3: P3,18752 -1 A98RGB_Linear: A98Linear,18753 -1 A98RGB: a98rgb,18754 -1 ProPhoto_Linear: ProPhotoLinear,18755 -1 ProPhoto: prophoto,18756 -1 REC_2020_Linear: REC2020Linear,18757 -1 REC_2020: REC2020,18758 -1 OKLab: OKLab,18759 -1 OKLCH: oklch,18760 -1 Jzazbz: Jzazbz,18761 -1 JzCzHz: jzczhz,18762 -1 ICTCP: ictcp,18763 -1 REC_2100_PQ: rec2100Pq,18764 -1 REC_2100_HLG: rec2100Hlg,18765 -1 ACEScg: ACEScg,18766 -1 ACEScc: acescc18767 -1 });18768 -1 var _Color = (_space = new WeakMap(), function() {18769 -1 function Color() {18770 -1 var _this2 = this;18771 -1 _classCallCheck(this, Color);18772 -1 _classPrivateFieldInitSpec(this, _space, void 0);18773 -1 var color;18774 -1 for (var _len3 = arguments.length, args = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {18775 -1 args[_key3] = arguments[_key3];18776 -1 }18777 -1 if (args.length === 1) {18778 -1 color = getColor(args[0]);18779 -1 }18780 -1 var space, coords, alpha;18781 -1 if (color) {18782 -1 space = color.space || color.spaceId;18783 -1 coords = color.coords;18784 -1 alpha = color.alpha;18785 -1 } else {18786 -1 space = args[0];18787 -1 coords = args[1];18788 -1 alpha = args[2];-1 18409 var _hasMatch = _slicedToArray(hasMatch, 1), matchedStr = _hasMatch[0]; -1 18410 if (matchedStr === '#') { -1 18411 return ''; -1 18412 } -1 18413 return hash; -1 18414 } -1 18415 var url_props_from_attribute_default = urlPropsFromAttribute; -1 18416 function visuallyOverlaps(rect, parent) { -1 18417 var parentRect = parent.getBoundingClientRect(); -1 18418 var parentTop = parentRect.top; -1 18419 var parentLeft = parentRect.left; -1 18420 var parentScrollArea = { -1 18421 top: parentTop - parent.scrollTop, -1 18422 bottom: parentTop - parent.scrollTop + parent.scrollHeight, -1 18423 left: parentLeft - parent.scrollLeft, -1 18424 right: parentLeft - parent.scrollLeft + parent.scrollWidth -1 18425 }; -1 18426 if (rect.left > parentScrollArea.right && rect.left > parentRect.right || rect.top > parentScrollArea.bottom && rect.top > parentRect.bottom || rect.right < parentScrollArea.left && rect.right < parentRect.left || rect.bottom < parentScrollArea.top && rect.bottom < parentRect.top) { -1 18427 return false; -1 18428 } -1 18429 var style = window.getComputedStyle(parent); -1 18430 if (rect.left > parentRect.right || rect.top > parentRect.bottom) { -1 18431 return style.overflow === 'scroll' || style.overflow === 'auto' || parent instanceof window.HTMLBodyElement || parent instanceof window.HTMLHtmlElement; -1 18432 } -1 18433 return true; -1 18434 } -1 18435 var visually_overlaps_default = visuallyOverlaps; -1 18436 var nodeIndex2 = 0; -1 18437 var VirtualNode = function(_abstract_virtual_nod) { -1 18438 function VirtualNode(node, parent, shadowId) { -1 18439 var _this4; -1 18440 _classCallCheck(this, VirtualNode); -1 18441 _this4 = _callSuper(this, VirtualNode); -1 18442 _this4.shadowId = shadowId; -1 18443 _this4.children = []; -1 18444 _this4.actualNode = node; -1 18445 _this4.parent = parent; -1 18446 if (!parent) { -1 18447 nodeIndex2 = 0; 18789 18448 }18790 -1 _classPrivateFieldSet(_space, this, ColorSpace.get(space));18791 -1 this.coords = coords ? coords.slice() : [ 0, 0, 0 ];18792 -1 this.alpha = alpha < 1 ? alpha : 1;18793 -1 for (var _i21 = 0; _i21 < this.coords.length; _i21++) {18794 -1 if (this.coords[_i21] === 'NaN') {18795 -1 this.coords[_i21] = NaN;-1 18449 _this4.nodeIndex = nodeIndex2++; -1 18450 _this4._isHidden = null; -1 18451 _this4._cache = {}; -1 18452 _this4._isXHTML = is_xhtml_default(node.ownerDocument); -1 18453 if (node.nodeName.toLowerCase() === 'input') { -1 18454 var type2 = node.getAttribute('type'); -1 18455 type2 = _this4._isXHTML ? type2 : (type2 || '').toLowerCase(); -1 18456 if (!valid_input_type_default().includes(type2)) { -1 18457 type2 = 'text'; 18796 18458 } -1 18459 _this4._type = type2; 18797 18460 }18798 -1 var _loop7 = function _loop7(id) {18799 -1 Object.defineProperty(_this2, id, {18800 -1 get: function get() {18801 -1 return _this2.get(id);18802 -1 },18803 -1 set: function set(value) {18804 -1 return _this2.set(id, value);18805 -1 }18806 -1 });18807 -1 };18808 -1 for (var id in _classPrivateFieldGet(_space, this).coords) {18809 -1 _loop7(id);-1 18461 if (cache_default.get('nodeMap')) { -1 18462 cache_default.get('nodeMap').set(node, _this4); 18810 18463 } -1 18464 return _this4; 18811 18465 }18812 -1 return _createClass(Color, [ {18813 -1 key: 'space',-1 18466 _inherits(VirtualNode, _abstract_virtual_nod); -1 18467 return _createClass(VirtualNode, [ { -1 18468 key: 'props', 18814 18469 get: function get() {18815 -1 return _classPrivateFieldGet(_space, this);-1 18470 if (!this._cache.hasOwnProperty('props')) { -1 18471 var _this$actualNode = this.actualNode, nodeType = _this$actualNode.nodeType, nodeName2 = _this$actualNode.nodeName, _id3 = _this$actualNode.id, nodeValue = _this$actualNode.nodeValue; -1 18472 this._cache.props = { -1 18473 nodeType: nodeType, -1 18474 nodeName: this._isXHTML ? nodeName2 : nodeName2.toLowerCase(), -1 18475 id: _id3, -1 18476 type: this._type, -1 18477 nodeValue: nodeValue -1 18478 }; -1 18479 if (nodeType === 1) { -1 18480 this._cache.props.multiple = this.actualNode.multiple; -1 18481 this._cache.props.value = this.actualNode.value; -1 18482 this._cache.props.selected = this.actualNode.selected; -1 18483 this._cache.props.checked = this.actualNode.checked; -1 18484 this._cache.props.indeterminate = this.actualNode.indeterminate; -1 18485 } -1 18486 } -1 18487 return this._cache.props; 18816 18488 } 18817 18489 }, {18818 -1 key: 'spaceId',18819 -1 get: function get() {18820 -1 return _classPrivateFieldGet(_space, this).id;-1 18490 key: 'attr', -1 18491 value: function attr(attrName) { -1 18492 if (typeof this.actualNode.getAttribute !== 'function') { -1 18493 return null; -1 18494 } -1 18495 return this.actualNode.getAttribute(attrName); 18821 18496 } 18822 18497 }, {18823 -1 key: 'clone',18824 -1 value: function clone() {18825 -1 return new _Color(this.space, this.coords, this.alpha);-1 18498 key: 'hasAttr', -1 18499 value: function hasAttr(attrName) { -1 18500 if (typeof this.actualNode.hasAttribute !== 'function') { -1 18501 return false; -1 18502 } -1 18503 return this.actualNode.hasAttribute(attrName); 18826 18504 } 18827 18505 }, {18828 -1 key: 'toJSON',18829 -1 value: function toJSON() {18830 -1 return {18831 -1 spaceId: this.spaceId,18832 -1 coords: this.coords,18833 -1 alpha: this.alpha18834 -1 };-1 18506 key: 'attrNames', -1 18507 get: function get() { -1 18508 if (!this._cache.hasOwnProperty('attrNames')) { -1 18509 var attrs; -1 18510 if (this.actualNode.attributes instanceof window.NamedNodeMap) { -1 18511 attrs = this.actualNode.attributes; -1 18512 } else { -1 18513 attrs = this.actualNode.cloneNode(false).attributes; -1 18514 } -1 18515 this._cache.attrNames = Array.from(attrs).map(function(attr) { -1 18516 return attr.name; -1 18517 }); -1 18518 } -1 18519 return this._cache.attrNames; 18835 18520 } 18836 18521 }, {18837 -1 key: 'display',18838 -1 value: function display() {18839 -1 for (var _len4 = arguments.length, args = new Array(_len4), _key4 = 0; _key4 < _len4; _key4++) {18840 -1 args[_key4] = arguments[_key4];-1 18522 key: 'getComputedStylePropertyValue', -1 18523 value: function getComputedStylePropertyValue(property) { -1 18524 var key = 'computedStyle_' + property; -1 18525 if (!this._cache.hasOwnProperty(key)) { -1 18526 if (!this._cache.hasOwnProperty('computedStyle')) { -1 18527 this._cache.computedStyle = window.getComputedStyle(this.actualNode); -1 18528 } -1 18529 this._cache[key] = this._cache.computedStyle.getPropertyValue(property); 18841 18530 }18842 -1 var ret = _display.apply(void 0, [ this ].concat(args));18843 -1 ret.color = new _Color(ret.color);18844 -1 return ret;-1 18531 return this._cache[key]; 18845 18532 }18846 -1 } ], [ {18847 -1 key: 'get',18848 -1 value: function get(color) {18849 -1 if (color instanceof _Color) {18850 -1 return color;18851 -1 }18852 -1 for (var _len5 = arguments.length, args = new Array(_len5 > 1 ? _len5 - 1 : 0), _key5 = 1; _key5 < _len5; _key5++) {18853 -1 args[_key5 - 1] = arguments[_key5];-1 18533 }, { -1 18534 key: 'isFocusable', -1 18535 get: function get() { -1 18536 if (!this._cache.hasOwnProperty('isFocusable')) { -1 18537 this._cache.isFocusable = _isFocusable(this.actualNode); 18854 18538 }18855 -1 return _construct(_Color, [ color ].concat(args));-1 18539 return this._cache.isFocusable; 18856 18540 } 18857 18541 }, {18858 -1 key: 'defineFunction',18859 -1 value: function defineFunction(name, code) {18860 -1 var o = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : code;18861 -1 var _o$instance = o.instance, instance = _o$instance === void 0 ? true : _o$instance, returns = o.returns;18862 -1 var func = function func() {18863 -1 var ret = code.apply(void 0, arguments);18864 -1 if (returns === 'color') {18865 -1 ret = _Color.get(ret);18866 -1 } else if (returns === 'function<color>') {18867 -1 var f = ret;18868 -1 ret = function ret() {18869 -1 var ret2 = f.apply(void 0, arguments);18870 -1 return _Color.get(ret2);18871 -1 };18872 -1 Object.assign(ret, f);18873 -1 } else if (returns === 'array<color>') {18874 -1 ret = ret.map(function(c4) {18875 -1 return _Color.get(c4);18876 -1 });18877 -1 }18878 -1 return ret;18879 -1 };18880 -1 if (!(name in _Color)) {18881 -1 _Color[name] = func;18882 -1 }18883 -1 if (instance) {18884 -1 _Color.prototype[name] = function() {18885 -1 for (var _len6 = arguments.length, args = new Array(_len6), _key6 = 0; _key6 < _len6; _key6++) {18886 -1 args[_key6] = arguments[_key6];18887 -1 }18888 -1 return func.apply(void 0, [ this ].concat(args));18889 -1 };-1 18542 key: 'tabbableElements', -1 18543 get: function get() { -1 18544 if (!this._cache.hasOwnProperty('tabbableElements')) { -1 18545 this._cache.tabbableElements = get_tabbable_elements_default(this); 18890 18546 } -1 18547 return this._cache.tabbableElements; 18891 18548 } 18892 18549 }, {18893 -1 key: 'defineFunctions',18894 -1 value: function defineFunctions(o) {18895 -1 for (var name in o) {18896 -1 _Color.defineFunction(name, o[name], o[name]);-1 18550 key: 'clientRects', -1 18551 get: function get() { -1 18552 if (!this._cache.hasOwnProperty('clientRects')) { -1 18553 this._cache.clientRects = Array.from(this.actualNode.getClientRects()).filter(function(rect) { -1 18554 return rect.width > 0; -1 18555 }); 18897 18556 } -1 18557 return this._cache.clientRects; 18898 18558 } 18899 18559 }, {18900 -1 key: 'extend',18901 -1 value: function extend(exports) {18902 -1 if (exports.register) {18903 -1 exports.register(_Color);18904 -1 } else {18905 -1 for (var name in exports) {18906 -1 _Color.defineFunction(name, exports[name]);18907 -1 }-1 18560 key: 'boundingClientRect', -1 18561 get: function get() { -1 18562 if (!this._cache.hasOwnProperty('boundingClientRect')) { -1 18563 this._cache.boundingClientRect = this.actualNode.getBoundingClientRect(); 18908 18564 } -1 18565 return this._cache.boundingClientRect; 18909 18566 } 18910 18567 } ]);18911 -1 }());18912 -1 _Color.defineFunctions({18913 -1 get: get,18914 -1 getAll: getAll,18915 -1 set: set,18916 -1 setAll: setAll,18917 -1 to: to,18918 -1 equals: equals,18919 -1 inGamut: inGamut,18920 -1 toGamut: toGamut,18921 -1 distance: distance,18922 -1 toString: serialize18923 -1 });18924 -1 Object.assign(_Color, {18925 -1 util: util,18926 -1 hooks: hooks,18927 -1 WHITES: WHITES,18928 -1 Space: ColorSpace,18929 -1 spaces: ColorSpace.registry,18930 -1 parse: parse2,18931 -1 defaults: defaults18932 -1 });18933 -1 for (var _i22 = 0, _Object$keys2 = Object.keys(spaces); _i22 < _Object$keys2.length; _i22++) {18934 -1 var key = _Object$keys2[_i22];18935 -1 ColorSpace.register(spaces[key]);-1 18568 }(abstract_virtual_node_default); -1 18569 var virtual_node_default = VirtualNode; -1 18570 var CACHE_KEY = 'DqElm.RunOptions'; -1 18571 function getOuterHtml(element) { -1 18572 var source = element.outerHTML; -1 18573 if (!source && typeof window.XMLSerializer === 'function') { -1 18574 source = new window.XMLSerializer().serializeToString(element); -1 18575 } -1 18576 return source || ''; 18936 18577 }18937 -1 for (var id in ColorSpace.registry) {18938 -1 addSpaceAccessors(id, ColorSpace.registry[id]);-1 18578 function truncateElement(element) { -1 18579 var maxLen = 300; -1 18580 var maxAttrNameOrValueLen = 20; -1 18581 var deepStr = getOuterHtml(element); -1 18582 var vNode = get_node_from_tree_default(element); -1 18583 if (!vNode) { -1 18584 vNode = new virtual_node_default(element); -1 18585 } -1 18586 var nodeName2 = vNode.props.nodeName; -1 18587 if (deepStr.length < maxLen) { -1 18588 return deepStr; -1 18589 } -1 18590 var attributeStrList = []; -1 18591 var shallowNode = element.cloneNode(false); -1 18592 var elementNodeMap = get_node_attributes_default(shallowNode); -1 18593 var str = getOuterHtml(shallowNode); -1 18594 if (str.length < maxLen) { -1 18595 var attrString = ''; -1 18596 var _iterator1 = _createForOfIteratorHelper(elementNodeMap), _step1; -1 18597 try { -1 18598 for (_iterator1.s(); !(_step1 = _iterator1.n()).done; ) { -1 18599 var _step1$value = _step1.value, name = _step1$value.name, value = _step1$value.value; -1 18600 var attr = { -1 18601 name: name, -1 18602 value: value -1 18603 }; -1 18604 attrString += ' '.concat(attr.name, '="').concat(attr.value, '"'); -1 18605 } -1 18606 } catch (err) { -1 18607 _iterator1.e(err); -1 18608 } finally { -1 18609 _iterator1.f(); -1 18610 } -1 18611 str = '<'.concat(nodeName2).concat(attrString, '>'); -1 18612 return str; -1 18613 } -1 18614 var strLen = '<'.concat(nodeName2, '>').length; -1 18615 var _iterator10 = _createForOfIteratorHelper(elementNodeMap), _step10; -1 18616 try { -1 18617 for (_iterator10.s(); !(_step10 = _iterator10.n()).done; ) { -1 18618 var _step10$value = _step10.value, _name = _step10$value.name, _value = _step10$value.value; -1 18619 if (strLen > maxLen) { -1 18620 break; -1 18621 } -1 18622 var _attr = { -1 18623 name: _name, -1 18624 value: _value -1 18625 }; -1 18626 var attrName = _attr.name; -1 18627 var attrValue = _attr.value; -1 18628 attrName = attrName.length > maxAttrNameOrValueLen ? attrName.substring(0, maxAttrNameOrValueLen) + '...' : attrName; -1 18629 attrValue = attrValue.length > maxAttrNameOrValueLen ? attrValue.substring(0, maxAttrNameOrValueLen) + '...' : attrValue; -1 18630 var strAttr = ''.concat(attrName, '="').concat(attrValue, '"'); -1 18631 strLen += (' ' + strAttr).length; -1 18632 attributeStrList.push(strAttr); -1 18633 } -1 18634 } catch (err) { -1 18635 _iterator10.e(err); -1 18636 } finally { -1 18637 _iterator10.f(); -1 18638 } -1 18639 str = '<'.concat(nodeName2, ' ').concat(attributeStrList.join(' '), '>'); -1 18640 if (str.length > maxLen) { -1 18641 str = str.substring(0, maxLen) + ' ...>'; -1 18642 } else if (attributeStrList.length < elementNodeMap.length) { -1 18643 str = str.substring(0, str.length - 1) + ' ...>'; -1 18644 } -1 18645 return str; 18939 18646 }18940 -1 hooks.add('colorspace-init-end', function(space) {18941 -1 var _space$aliases;18942 -1 addSpaceAccessors(space.id, space);18943 -1 (_space$aliases = space.aliases) === null || _space$aliases === void 0 || _space$aliases.forEach(function(alias) {18944 -1 addSpaceAccessors(alias, space);18945 -1 });-1 18647 function getSource(element) { -1 18648 if (!element) { -1 18649 return ''; -1 18650 } -1 18651 return truncateElement(element); -1 18652 } -1 18653 var DqElement = memoize_default(function DqElement2(elm, options, spec) { -1 18654 var _this$spec$selector, _this$_virtualNode; -1 18655 options !== null && options !== void 0 ? options : options = null; -1 18656 spec !== null && spec !== void 0 ? spec : spec = {}; -1 18657 if (!options) { -1 18658 var _cache_default$get; -1 18659 options = (_cache_default$get = cache_default.get(CACHE_KEY)) !== null && _cache_default$get !== void 0 ? _cache_default$get : {}; -1 18660 } -1 18661 this.spec = spec; -1 18662 if (elm instanceof abstract_virtual_node_default) { -1 18663 this._virtualNode = elm; -1 18664 this._element = elm.actualNode; -1 18665 } else { -1 18666 this._element = elm; -1 18667 this._virtualNode = get_node_from_tree_default(elm); -1 18668 } -1 18669 this.fromFrame = ((_this$spec$selector = this.spec.selector) === null || _this$spec$selector === void 0 ? void 0 : _this$spec$selector.length) > 1; -1 18670 this._includeElementInJson = options.elementRef; -1 18671 if (options.absolutePaths) { -1 18672 this._options = { -1 18673 toRoot: true -1 18674 }; -1 18675 } -1 18676 this.nodeIndexes = []; -1 18677 if (Array.isArray(this.spec.nodeIndexes)) { -1 18678 this.nodeIndexes = this.spec.nodeIndexes; -1 18679 } else if (typeof ((_this$_virtualNode = this._virtualNode) === null || _this$_virtualNode === void 0 ? void 0 : _this$_virtualNode.nodeIndex) === 'number') { -1 18680 this.nodeIndexes = [ this._virtualNode.nodeIndex ]; -1 18681 } -1 18682 this.source = null; -1 18683 if (!axe._audit.noHtml) { -1 18684 var _this$spec$source; -1 18685 this.source = (_this$spec$source = this.spec.source) !== null && _this$spec$source !== void 0 ? _this$spec$source : getSource(this._element); -1 18686 } -1 18687 return this; 18946 18688 });18947 -1 function addSpaceAccessors(id, space) {18948 -1 Object.keys(space.coords);18949 -1 Object.values(space.coords).map(function(c4) {18950 -1 return c4.name;-1 18689 DqElement.prototype = { -1 18690 get selector() { -1 18691 return this.spec.selector || [ get_selector_default(this.element, this._options) ]; -1 18692 }, -1 18693 get ancestry() { -1 18694 return this.spec.ancestry || [ _getAncestry(this.element) ]; -1 18695 }, -1 18696 get xpath() { -1 18697 return this.spec.xpath || [ get_xpath_default(this.element) ]; -1 18698 }, -1 18699 get element() { -1 18700 return this._element; -1 18701 }, -1 18702 toJSON: function toJSON() { -1 18703 var spec = { -1 18704 selector: this.selector, -1 18705 source: this.source, -1 18706 xpath: this.xpath, -1 18707 ancestry: this.ancestry, -1 18708 nodeIndexes: this.nodeIndexes, -1 18709 fromFrame: this.fromFrame -1 18710 }; -1 18711 if (this._includeElementInJson) { -1 18712 spec.element = this._element; -1 18713 } -1 18714 return spec; -1 18715 } -1 18716 }; -1 18717 DqElement.fromFrame = function fromFrame(node, options, frame) { -1 18718 var spec = DqElement.mergeSpecs(node, frame); -1 18719 return new DqElement(frame.element, options, spec); -1 18720 }; -1 18721 DqElement.mergeSpecs = function mergeSpecs(child, parentFrame) { -1 18722 return _extends({}, child, { -1 18723 selector: [].concat(_toConsumableArray(parentFrame.selector), _toConsumableArray(child.selector)), -1 18724 ancestry: [].concat(_toConsumableArray(parentFrame.ancestry), _toConsumableArray(child.ancestry)), -1 18725 xpath: [].concat(_toConsumableArray(parentFrame.xpath), _toConsumableArray(child.xpath)), -1 18726 nodeIndexes: [].concat(_toConsumableArray(parentFrame.nodeIndexes), _toConsumableArray(child.nodeIndexes)), -1 18727 fromFrame: true 18951 18728 });18952 -1 var propId = id.replace(/-/g, '_');18953 -1 Object.defineProperty(_Color.prototype, propId, {18954 -1 get: function get() {18955 -1 var _this3 = this;18956 -1 var ret = this.getAll(id);18957 -1 if (typeof Proxy === 'undefined') {18958 -1 return ret;18959 -1 }18960 -1 return new Proxy(ret, {18961 -1 has: function has(obj, property) {18962 -1 try {18963 -1 ColorSpace.resolveCoord([ space, property ]);18964 -1 return true;18965 -1 } catch (e) {}18966 -1 return Reflect.has(obj, property);18967 -1 },18968 -1 get: function get(obj, property, receiver) {18969 -1 if (property && _typeof(property) !== 'symbol' && !(property in obj)) {18970 -1 var _ColorSpace$resolveCo3 = ColorSpace.resolveCoord([ space, property ]), index = _ColorSpace$resolveCo3.index;18971 -1 if (index >= 0) {18972 -1 return obj[index];18973 -1 }18974 -1 }18975 -1 return Reflect.get(obj, property, receiver);18976 -1 },18977 -1 set: function set(obj, property, value, receiver) {18978 -1 if (property && _typeof(property) !== 'symbol' && !(property in obj) || property >= 0) {18979 -1 var _ColorSpace$resolveCo4 = ColorSpace.resolveCoord([ space, property ]), index = _ColorSpace$resolveCo4.index;18980 -1 if (index >= 0) {18981 -1 obj[index] = value;18982 -1 _this3.setAll(id, obj);18983 -1 return true;18984 -1 }18985 -1 }18986 -1 return Reflect.set(obj, property, value, receiver);-1 18729 }; -1 18730 DqElement.setRunOptions = function setRunOptions(_ref54) { -1 18731 var elementRef = _ref54.elementRef, absolutePaths = _ref54.absolutePaths; -1 18732 cache_default.set(CACHE_KEY, { -1 18733 elementRef: elementRef, -1 18734 absolutePaths: absolutePaths -1 18735 }); -1 18736 }; -1 18737 var dq_element_default = DqElement; -1 18738 function checkHelper(checkResult, options, resolve, reject) { -1 18739 return { -1 18740 isAsync: false, -1 18741 async: function async() { -1 18742 this.isAsync = true; -1 18743 return function(result) { -1 18744 if (result instanceof Error === false) { -1 18745 checkResult.result = result; -1 18746 resolve(checkResult); -1 18747 } else { -1 18748 reject(result); 18987 18749 }18988 -1 });-1 18750 }; 18989 18751 },18990 -1 set: function set(coords) {18991 -1 this.setAll(id, coords);-1 18752 data: function data(_data) { -1 18753 checkResult.data = _data; 18992 18754 },18993 -1 configurable: true,18994 -1 enumerable: true-1 18755 relatedNodes: function relatedNodes(nodes) { -1 18756 if (!window.Node) { -1 18757 return; -1 18758 } -1 18759 if (nodes instanceof window.Node || nodes instanceof abstract_virtual_node_default) { -1 18760 nodes = [ nodes ]; -1 18761 } else { -1 18762 nodes = to_array_default(nodes); -1 18763 } -1 18764 checkResult.relatedNodes = []; -1 18765 nodes.forEach(function(node) { -1 18766 if (node instanceof abstract_virtual_node_default) { -1 18767 node = node.actualNode; -1 18768 } -1 18769 if (node instanceof window.Node) { -1 18770 var dqElm = new dq_element_default(node); -1 18771 checkResult.relatedNodes.push(dqElm); -1 18772 } -1 18773 }); -1 18774 } -1 18775 }; -1 18776 } -1 18777 var check_helper_default = checkHelper; -1 18778 function clone2(obj) { -1 18779 return cloneRecused(obj, new Map()); -1 18780 } -1 18781 function cloneRecused(obj, seen) { -1 18782 var _window2, _window3; -1 18783 if (obj === null || _typeof(obj) !== 'object') { -1 18784 return obj; -1 18785 } -1 18786 if ((_window2 = window) !== null && _window2 !== void 0 && _window2.Node && obj instanceof window.Node || (_window3 = window) !== null && _window3 !== void 0 && _window3.HTMLCollection && obj instanceof window.HTMLCollection || 'nodeName' in obj && 'nodeType' in obj && 'ownerDocument' in obj) { -1 18787 return obj; -1 18788 } -1 18789 if (seen.has(obj)) { -1 18790 return seen.get(obj); -1 18791 } -1 18792 if (Array.isArray(obj)) { -1 18793 var out2 = []; -1 18794 seen.set(obj, out2); -1 18795 obj.forEach(function(value) { -1 18796 out2.push(cloneRecused(value, seen)); -1 18797 }); -1 18798 return out2; -1 18799 } -1 18800 var out = {}; -1 18801 seen.set(obj, out); -1 18802 for (var _key7 in obj) { -1 18803 out[_key7] = cloneRecused(obj[_key7], seen); -1 18804 } -1 18805 return out; -1 18806 } -1 18807 var parser = new import_css_selector_parser.CssSelectorParser(); -1 18808 parser.registerSelectorPseudos('not'); -1 18809 parser.registerSelectorPseudos('is'); -1 18810 parser.registerNestingOperators('>'); -1 18811 parser.registerAttrEqualityMods('^', '$', '*', '~'); -1 18812 var css_parser_default = parser; -1 18813 function _matches(vNode, selector) { -1 18814 var expressions = _convertSelector(selector); -1 18815 return expressions.some(function(expression) { -1 18816 return _matchesExpression(vNode, expression); 18995 18817 }); 18996 18818 }18997 -1 _Color.extend(deltaEMethods);18998 -1 _Color.extend({18999 -1 deltaE: deltaE19000 -1 });19001 -1 _Color.extend(variations);19002 -1 _Color.extend({19003 -1 contrast: contrast19004 -1 });19005 -1 _Color.extend(chromaticity);19006 -1 _Color.extend(luminance);19007 -1 _Color.extend(interpolation);19008 -1 _Color.extend(contrastMethods);19009 -1 var import_from2 = __toModule(require_from4());19010 -1 import_dot['default'].templateSettings.strip = false;19011 -1 var hexRegex = /^#[0-9a-f]{3,8}$/i;19012 -1 var hslRegex = /hsl\(\s*([-\d.]+)(rad|turn)/;19013 -1 var _Color2 = (_r = new WeakMap(), _g = new WeakMap(), _b = new WeakMap(), _red = new WeakMap(),19014 -1 _green = new WeakMap(), _blue = new WeakMap(), _Class3_brand = new WeakSet(),19015 -1 function() {19016 -1 function Color2(red, green, blue) {19017 -1 var alpha = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 1;19018 -1 _classCallCheck(this, Color2);19019 -1 _classPrivateMethodInitSpec(this, _Class3_brand);19020 -1 _classPrivateFieldInitSpec(this, _r, void 0);19021 -1 _classPrivateFieldInitSpec(this, _g, void 0);19022 -1 _classPrivateFieldInitSpec(this, _b, void 0);19023 -1 _classPrivateFieldInitSpec(this, _red, void 0);19024 -1 _classPrivateFieldInitSpec(this, _green, void 0);19025 -1 _classPrivateFieldInitSpec(this, _blue, void 0);19026 -1 if (red instanceof _Color2) {19027 -1 var r = red.r, g2 = red.g, b2 = red.b;19028 -1 this.r = r;19029 -1 this.g = g2;19030 -1 this.b = b2;19031 -1 this.alpha = red.alpha;19032 -1 return;-1 18819 function matchesTag(vNode, exp) { -1 18820 return vNode.props.nodeType === 1 && (exp.tag === '*' || vNode.props.nodeName === exp.tag); -1 18821 } -1 18822 function matchesClasses(vNode, exp) { -1 18823 return !exp.classes || exp.classes.every(function(cl) { -1 18824 return vNode.hasClass(cl.value); -1 18825 }); -1 18826 } -1 18827 function matchesAttributes(vNode, exp) { -1 18828 return !exp.attributes || exp.attributes.every(function(att) { -1 18829 var nodeAtt = vNode.attr(att.key); -1 18830 return nodeAtt !== null && att.test(nodeAtt); -1 18831 }); -1 18832 } -1 18833 function matchesId(vNode, exp) { -1 18834 return !exp.id || vNode.props.id === exp.id; -1 18835 } -1 18836 function matchesPseudos(target, exp) { -1 18837 if (!exp.pseudos || exp.pseudos.every(function(pseudo) { -1 18838 if (pseudo.name === 'not') { -1 18839 return !pseudo.expressions.some(function(expression) { -1 18840 return _matchesExpression(target, expression); -1 18841 }); -1 18842 } else if (pseudo.name === 'is') { -1 18843 return pseudo.expressions.some(function(expression) { -1 18844 return _matchesExpression(target, expression); -1 18845 }); 19033 18846 }19034 -1 this.red = red;19035 -1 this.green = green;19036 -1 this.blue = blue;19037 -1 this.alpha = alpha;-1 18847 throw new Error('the pseudo selector ' + pseudo.name + ' has not yet been implemented'); -1 18848 })) { -1 18849 return true; 19038 18850 }19039 -1 return _createClass(Color2, [ {19040 -1 key: 'r',19041 -1 get: function get() {19042 -1 return _classPrivateFieldGet(_r, this);19043 -1 },19044 -1 set: function set(value) {19045 -1 _classPrivateFieldSet(_r, this, value);19046 -1 _classPrivateFieldSet(_red, this, Math.round(clamp(value, 0, 1) * 255));-1 18851 return false; -1 18852 } -1 18853 function matchExpression(vNode, expression) { -1 18854 return matchesTag(vNode, expression) && matchesClasses(vNode, expression) && matchesAttributes(vNode, expression) && matchesId(vNode, expression) && matchesPseudos(vNode, expression); -1 18855 } -1 18856 var escapeRegExp = function() { -1 18857 var from = /(?=[\-\[\]{}()*+?.\\\^$|,#\s])/g; -1 18858 var to2 = '\\'; -1 18859 return function(string) { -1 18860 return string.replace(from, to2); -1 18861 }; -1 18862 }(); -1 18863 var reUnescape = /\\/g; -1 18864 function convertAttributes(atts) { -1 18865 if (!atts) { -1 18866 return; -1 18867 } -1 18868 return atts.map(function(att) { -1 18869 var attributeKey = att.name.replace(reUnescape, ''); -1 18870 var attributeValue = (att.value || '').replace(reUnescape, ''); -1 18871 var test, regexp; -1 18872 switch (att.operator) { -1 18873 case '^=': -1 18874 regexp = new RegExp('^' + escapeRegExp(attributeValue)); -1 18875 break; -1 18876 -1 18877 case '$=': -1 18878 regexp = new RegExp(escapeRegExp(attributeValue) + '$'); -1 18879 break; -1 18880 -1 18881 case '~=': -1 18882 regexp = new RegExp('(^|\\s)' + escapeRegExp(attributeValue) + '(\\s|$)'); -1 18883 break; -1 18884 -1 18885 case '|=': -1 18886 regexp = new RegExp('^' + escapeRegExp(attributeValue) + '(-|$)'); -1 18887 break; -1 18888 -1 18889 case '=': -1 18890 test = function test(value) { -1 18891 return attributeValue === value; -1 18892 }; -1 18893 break; -1 18894 -1 18895 case '*=': -1 18896 test = function test(value) { -1 18897 return value && value.includes(attributeValue); -1 18898 }; -1 18899 break; -1 18900 -1 18901 case '!=': -1 18902 test = function test(value) { -1 18903 return attributeValue !== value; -1 18904 }; -1 18905 break; -1 18906 -1 18907 default: -1 18908 test = function test(value) { -1 18909 return value !== null; -1 18910 }; 19047 18911 }19048 -1 }, {19049 -1 key: 'g',19050 -1 get: function get() {19051 -1 return _classPrivateFieldGet(_g, this);19052 -1 },19053 -1 set: function set(value) {19054 -1 _classPrivateFieldSet(_g, this, value);19055 -1 _classPrivateFieldSet(_green, this, Math.round(clamp(value, 0, 1) * 255));-1 18912 if (attributeValue === '' && /^[*$^]=$/.test(att.operator)) { -1 18913 test = function test() { -1 18914 return false; -1 18915 }; 19056 18916 }19057 -1 }, {19058 -1 key: 'b',19059 -1 get: function get() {19060 -1 return _classPrivateFieldGet(_b, this);19061 -1 },19062 -1 set: function set(value) {19063 -1 _classPrivateFieldSet(_b, this, value);19064 -1 _classPrivateFieldSet(_blue, this, Math.round(clamp(value, 0, 1) * 255));-1 18917 if (!test) { -1 18918 test = function test(value) { -1 18919 return value && regexp.test(value); -1 18920 }; 19065 18921 }19066 -1 }, {19067 -1 key: 'red',19068 -1 get: function get() {19069 -1 return _classPrivateFieldGet(_red, this);19070 -1 },19071 -1 set: function set(value) {19072 -1 _classPrivateFieldSet(_r, this, value / 255);19073 -1 _classPrivateFieldSet(_red, this, clamp(value, 0, 255));-1 18922 return { -1 18923 key: attributeKey, -1 18924 value: attributeValue, -1 18925 type: typeof att.value === 'undefined' ? 'attrExist' : 'attrValue', -1 18926 test: test -1 18927 }; -1 18928 }); -1 18929 } -1 18930 function convertClasses(classes) { -1 18931 if (!classes) { -1 18932 return; -1 18933 } -1 18934 return classes.map(function(className) { -1 18935 className = className.replace(reUnescape, ''); -1 18936 return { -1 18937 value: className, -1 18938 regexp: new RegExp('(^|\\s)' + escapeRegExp(className) + '(\\s|$)') -1 18939 }; -1 18940 }); -1 18941 } -1 18942 function convertPseudos(pseudos) { -1 18943 if (!pseudos) { -1 18944 return; -1 18945 } -1 18946 return pseudos.map(function(p2) { -1 18947 var expressions; -1 18948 if ([ 'is', 'not' ].includes(p2.name)) { -1 18949 expressions = p2.value; -1 18950 expressions = expressions.selectors ? expressions.selectors : [ expressions ]; -1 18951 expressions = convertExpressions(expressions); 19074 18952 }19075 -1 }, {19076 -1 key: 'green',19077 -1 get: function get() {19078 -1 return _classPrivateFieldGet(_green, this);19079 -1 },19080 -1 set: function set(value) {19081 -1 _classPrivateFieldSet(_g, this, value / 255);19082 -1 _classPrivateFieldSet(_green, this, clamp(value, 0, 255));-1 18953 return { -1 18954 name: p2.name, -1 18955 expressions: expressions, -1 18956 value: p2.value -1 18957 }; -1 18958 }); -1 18959 } -1 18960 function convertExpressions(expressions) { -1 18961 return expressions.map(function(exp) { -1 18962 var newExp = []; -1 18963 var rule = exp.rule; -1 18964 while (rule) { -1 18965 newExp.push({ -1 18966 tag: rule.tagName ? rule.tagName.toLowerCase() : '*', -1 18967 combinator: rule.nestingOperator ? rule.nestingOperator : ' ', -1 18968 id: rule.id, -1 18969 attributes: convertAttributes(rule.attrs), -1 18970 classes: convertClasses(rule.classNames), -1 18971 pseudos: convertPseudos(rule.pseudos) -1 18972 }); -1 18973 rule = rule.rule; 19083 18974 }19084 -1 }, {19085 -1 key: 'blue',19086 -1 get: function get() {19087 -1 return _classPrivateFieldGet(_blue, this);19088 -1 },19089 -1 set: function set(value) {19090 -1 _classPrivateFieldSet(_b, this, value / 255);19091 -1 _classPrivateFieldSet(_blue, this, clamp(value, 0, 255));-1 18975 return newExp; -1 18976 }); -1 18977 } -1 18978 function _convertSelector(selector) { -1 18979 var expressions = css_parser_default.parse(selector); -1 18980 expressions = expressions.selectors ? expressions.selectors : [ expressions ]; -1 18981 return convertExpressions(expressions); -1 18982 } -1 18983 function optimizedMatchesExpression(vNode, expressions, index, matchAnyParent) { -1 18984 if (!vNode) { -1 18985 return false; -1 18986 } -1 18987 var isArray = Array.isArray(expressions); -1 18988 var expression = isArray ? expressions[index] : expressions; -1 18989 var machedExpression = matchExpression(vNode, expression); -1 18990 while (!machedExpression && matchAnyParent && vNode.parent) { -1 18991 vNode = vNode.parent; -1 18992 machedExpression = matchExpression(vNode, expression); -1 18993 } -1 18994 if (index > 0) { -1 18995 if ([ ' ', '>' ].includes(expression.combinator) === false) { -1 18996 throw new Error('axe.utils.matchesExpression does not support the combinator: ' + expression.combinator); 19092 18997 }19093 -1 }, {19094 -1 key: 'toHexString',19095 -1 value: function toHexString() {19096 -1 var redString = Math.round(this.red).toString(16);19097 -1 var greenString = Math.round(this.green).toString(16);19098 -1 var blueString = Math.round(this.blue).toString(16);19099 -1 return '#' + (this.red > 15.5 ? redString : '0' + redString) + (this.green > 15.5 ? greenString : '0' + greenString) + (this.blue > 15.5 ? blueString : '0' + blueString);-1 18998 machedExpression = machedExpression && optimizedMatchesExpression(vNode.parent, expressions, index - 1, expression.combinator === ' '); -1 18999 } -1 19000 return machedExpression; -1 19001 } -1 19002 function _matchesExpression(vNode, expressions, matchAnyParent) { -1 19003 return optimizedMatchesExpression(vNode, expressions, expressions.length - 1, matchAnyParent); -1 19004 } -1 19005 function closest(vNode, selector) { -1 19006 while (vNode) { -1 19007 if (_matches(vNode, selector)) { -1 19008 return vNode; 19100 19009 }19101 -1 }, {19102 -1 key: 'toJSON',19103 -1 value: function toJSON() {19104 -1 var red = this.red, green = this.green, blue = this.blue, alpha = this.alpha;19105 -1 return {19106 -1 red: red,19107 -1 green: green,19108 -1 blue: blue,19109 -1 alpha: alpha19110 -1 };-1 19010 if (typeof vNode.parent === 'undefined') { -1 19011 throw new TypeError('Cannot resolve parent for non-DOM nodes'); 19111 19012 }19112 -1 }, {19113 -1 key: 'parseString',19114 -1 value: function parseString(colorString) {19115 -1 colorString = colorString.replace(hslRegex, function(match, angle, unit) {19116 -1 var value = angle + unit;19117 -1 switch (unit) {19118 -1 case 'rad':19119 -1 return match.replace(value, radToDeg(angle));19120 -119121 -1 case 'turn':19122 -1 return match.replace(value, turnToDeg(angle));19123 -1 }19124 -1 });-1 19013 vNode = vNode.parent; -1 19014 } -1 19015 return null; -1 19016 } -1 19017 var closest_default = closest; -1 19018 function noop() {} -1 19019 function funcGuard(f) { -1 19020 if (typeof f !== 'function') { -1 19021 throw new TypeError('Queue methods require functions as arguments'); -1 19022 } -1 19023 } -1 19024 function queue() { -1 19025 var tasks = []; -1 19026 var started = 0; -1 19027 var remaining = 0; -1 19028 var completeQueue = noop; -1 19029 var complete = false; -1 19030 var err2; -1 19031 var defaultFail = function defaultFail(e) { -1 19032 err2 = e; -1 19033 setTimeout(function() { -1 19034 if (err2 !== void 0 && err2 !== null) { -1 19035 log_default('Uncaught error (of queue)', err2); -1 19036 } -1 19037 }, 1); -1 19038 }; -1 19039 var failed = defaultFail; -1 19040 function createResolve(i) { -1 19041 return function(r) { -1 19042 tasks[i] = r; -1 19043 remaining -= 1; -1 19044 if (!remaining && completeQueue !== noop) { -1 19045 complete = true; -1 19046 completeQueue(tasks); -1 19047 } -1 19048 }; -1 19049 } -1 19050 function abort(msg) { -1 19051 completeQueue = noop; -1 19052 failed(msg); -1 19053 return tasks; -1 19054 } -1 19055 function pop() { -1 19056 var length = tasks.length; -1 19057 for (;started < length; started++) { -1 19058 var task = tasks[started]; 19125 19059 try {19126 -1 var prototypeArrayFrom;19127 -1 if ('Prototype' in window && 'Version' in window.Prototype) {19128 -1 prototypeArrayFrom = Array.from;19129 -1 Array.from = import_from2['default'];19130 -1 }19131 -1 var _color2 = new _Color(colorString).to('srgb');19132 -1 if (prototypeArrayFrom) {19133 -1 Array.from = prototypeArrayFrom;19134 -1 prototypeArrayFrom = null;19135 -1 }19136 -1 this.r = _color2.r;19137 -1 this.g = _color2.g;19138 -1 this.b = _color2.b;19139 -1 this.alpha = +_color2.alpha;19140 -1 } catch (_unused4) {19141 -1 throw new Error('Unable to parse color "'.concat(colorString, '"'));-1 19060 task.call(null, createResolve(started), abort); -1 19061 } catch (e) { -1 19062 abort(e); 19142 19063 }19143 -1 return this;19144 -1 }19145 -1 }, {19146 -1 key: 'parseRgbString',19147 -1 value: function parseRgbString(colorString) {19148 -1 this.parseString(colorString);19149 19064 }19150 -1 }, {19151 -1 key: 'parseHexString',19152 -1 value: function parseHexString(colorString) {19153 -1 if (!colorString.match(hexRegex) || [ 6, 8 ].includes(colorString.length)) {-1 19065 } -1 19066 var q = { -1 19067 defer: function defer(fn) { -1 19068 if (_typeof(fn) === 'object' && fn.then && fn['catch']) { -1 19069 var defer = fn; -1 19070 fn = function fn(resolve, reject) { -1 19071 defer.then(resolve)['catch'](reject); -1 19072 }; -1 19073 } -1 19074 funcGuard(fn); -1 19075 if (err2 !== void 0) { 19154 19076 return; -1 19077 } else if (complete) { -1 19078 throw new Error('Queue already completed'); 19155 19079 }19156 -1 this.parseString(colorString);19157 -1 }19158 -1 }, {19159 -1 key: 'parseColorFnString',19160 -1 value: function parseColorFnString(colorString) {19161 -1 this.parseString(colorString);19162 -1 }19163 -1 }, {19164 -1 key: 'getRelativeLuminance',19165 -1 value: function getRelativeLuminance() {19166 -1 var rSRGB = this.r, gSRGB = this.g, bSRGB = this.b;19167 -1 var r = rSRGB <= .03928 ? rSRGB / 12.92 : Math.pow((rSRGB + .055) / 1.055, 2.4);19168 -1 var g2 = gSRGB <= .03928 ? gSRGB / 12.92 : Math.pow((gSRGB + .055) / 1.055, 2.4);19169 -1 var b2 = bSRGB <= .03928 ? bSRGB / 12.92 : Math.pow((bSRGB + .055) / 1.055, 2.4);19170 -1 return .2126 * r + .7152 * g2 + .0722 * b2;19171 -1 }19172 -1 }, {19173 -1 key: 'getLuminosity',19174 -1 value: function getLuminosity() {19175 -1 return .3 * this.r + .59 * this.g + .11 * this.b;19176 -1 }19177 -1 }, {19178 -1 key: 'setLuminosity',19179 -1 value: function setLuminosity(L) {19180 -1 var d2 = L - this.getLuminosity();19181 -1 return _assertClassBrand(_Class3_brand, this, _add).call(this, d2).clip();19182 -1 }19183 -1 }, {19184 -1 key: 'getSaturation',19185 -1 value: function getSaturation() {19186 -1 return Math.max(this.r, this.g, this.b) - Math.min(this.r, this.g, this.b);19187 -1 }19188 -1 }, {19189 -1 key: 'setSaturation',19190 -1 value: function setSaturation(s) {19191 -1 var C = new _Color2(this);19192 -1 var colorEntires = [ {19193 -1 name: 'r',19194 -1 value: C.r19195 -1 }, {19196 -1 name: 'g',19197 -1 value: C.g19198 -1 }, {19199 -1 name: 'b',19200 -1 value: C.b19201 -1 } ];19202 -1 var _colorEntires$sort = colorEntires.sort(function(a2, b2) {19203 -1 return a2.value - b2.value;19204 -1 }), _colorEntires$sort2 = _slicedToArray(_colorEntires$sort, 3), Cmin = _colorEntires$sort2[0], Cmid = _colorEntires$sort2[1], Cmax = _colorEntires$sort2[2];19205 -1 if (Cmax.value > Cmin.value) {19206 -1 Cmid.value = (Cmid.value - Cmin.value) * s / (Cmax.value - Cmin.value);19207 -1 Cmax.value = s;19208 -1 } else {19209 -1 Cmid.value = Cmax.value = 0;-1 19080 tasks.push(fn); -1 19081 ++remaining; -1 19082 pop(); -1 19083 return q; -1 19084 }, -1 19085 then: function then(fn) { -1 19086 funcGuard(fn); -1 19087 if (completeQueue !== noop) { -1 19088 throw new Error('queue `then` already set'); 19210 19089 }19211 -1 Cmin.value = 0;19212 -1 C[Cmax.name] = Cmax.value;19213 -1 C[Cmin.name] = Cmin.value;19214 -1 C[Cmid.name] = Cmid.value;19215 -1 return C;19216 -1 }19217 -1 }, {19218 -1 key: 'clip',19219 -1 value: function clip() {19220 -1 var C = new _Color2(this);19221 -1 var L = C.getLuminosity();19222 -1 var n2 = Math.min(C.r, C.g, C.b);19223 -1 var x = Math.max(C.r, C.g, C.b);19224 -1 if (n2 < 0) {19225 -1 C.r = L + (C.r - L) * L / (L - n2);19226 -1 C.g = L + (C.g - L) * L / (L - n2);19227 -1 C.b = L + (C.b - L) * L / (L - n2);-1 19090 if (!err2) { -1 19091 completeQueue = fn; -1 19092 if (!remaining) { -1 19093 complete = true; -1 19094 completeQueue(tasks); -1 19095 } 19228 19096 }19229 -1 if (x > 1) {19230 -1 C.r = L + (C.r - L) * (1 - L) / (x - L);19231 -1 C.g = L + (C.g - L) * (1 - L) / (x - L);19232 -1 C.b = L + (C.b - L) * (1 - L) / (x - L);-1 19097 return q; -1 19098 }, -1 19099 catch: function _catch(fn) { -1 19100 funcGuard(fn); -1 19101 if (failed !== defaultFail) { -1 19102 throw new Error('queue `catch` already set'); 19233 19103 }19234 -1 return C;-1 19104 if (!err2) { -1 19105 failed = fn; -1 19106 } else { -1 19107 fn(err2); -1 19108 err2 = null; -1 19109 } -1 19110 return q; -1 19111 }, -1 19112 abort: abort -1 19113 }; -1 19114 return q; -1 19115 } -1 19116 var queue_default = queue; -1 19117 var uuid; -1 19118 var _rng; -1 19119 var _crypto = window.crypto || window.msCrypto; -1 19120 if (!_rng && _crypto && _crypto.getRandomValues) { -1 19121 var _rnds8 = new Uint8Array(16); -1 19122 _rng = function whatwgRNG() { -1 19123 _crypto.getRandomValues(_rnds8); -1 19124 return _rnds8; -1 19125 }; -1 19126 } -1 19127 if (!_rng) { -1 19128 var _rnds = new Array(16); -1 19129 _rng = function _rng() { -1 19130 for (var i = 0, r; i < 16; i++) { -1 19131 if ((i & 3) === 0) { -1 19132 r = Math.random() * 4294967296; -1 19133 } -1 19134 _rnds[i] = r >>> ((i & 3) << 3) & 255; -1 19135 } -1 19136 return _rnds; -1 19137 }; -1 19138 } -1 19139 var BufferClass = typeof window.Buffer == 'function' ? window.Buffer : Array; -1 19140 var _byteToHex = []; -1 19141 var _hexToByte = {}; -1 19142 for (var i = 0; i < 256; i++) { -1 19143 _byteToHex[i] = (i + 256).toString(16).substr(1); -1 19144 _hexToByte[_byteToHex[i]] = i; -1 19145 } -1 19146 function parse2(s, buf, offset) { -1 19147 var i = buf && offset || 0, ii = 0; -1 19148 buf = buf || []; -1 19149 s.toLowerCase().replace(/[0-9a-f]{2}/g, function(oct) { -1 19150 if (ii < 16) { -1 19151 buf[i + ii++] = _hexToByte[oct]; -1 19152 } -1 19153 }); -1 19154 while (ii < 16) { -1 19155 buf[i + ii++] = 0; -1 19156 } -1 19157 return buf; -1 19158 } -1 19159 function unparse(buf, offset) { -1 19160 var i = offset || 0, bth = _byteToHex; -1 19161 return bth[buf[i++]] + bth[buf[i++]] + bth[buf[i++]] + bth[buf[i++]] + '-' + bth[buf[i++]] + bth[buf[i++]] + '-' + bth[buf[i++]] + bth[buf[i++]] + '-' + bth[buf[i++]] + bth[buf[i++]] + '-' + bth[buf[i++]] + bth[buf[i++]] + bth[buf[i++]] + bth[buf[i++]] + bth[buf[i++]] + bth[buf[i++]]; -1 19162 } -1 19163 var _seedBytes = _rng(); -1 19164 var _nodeId = [ _seedBytes[0] | 1, _seedBytes[1], _seedBytes[2], _seedBytes[3], _seedBytes[4], _seedBytes[5] ]; -1 19165 var _clockseq = (_seedBytes[6] << 8 | _seedBytes[7]) & 16383; -1 19166 var _lastMSecs = 0; -1 19167 var _lastNSecs = 0; -1 19168 function v1(options, buf, offset) { -1 19169 var i = buf && offset || 0; -1 19170 var b2 = buf || []; -1 19171 options = options || {}; -1 19172 var clockseq = options.clockseq != null ? options.clockseq : _clockseq; -1 19173 var msecs = options.msecs != null ? options.msecs : new Date().getTime(); -1 19174 var nsecs = options.nsecs != null ? options.nsecs : _lastNSecs + 1; -1 19175 var dt = msecs - _lastMSecs + (nsecs - _lastNSecs) / 1e4; -1 19176 if (dt < 0 && options.clockseq == null) { -1 19177 clockseq = clockseq + 1 & 16383; -1 19178 } -1 19179 if ((dt < 0 || msecs > _lastMSecs) && options.nsecs == null) { -1 19180 nsecs = 0; -1 19181 } -1 19182 if (nsecs >= 1e4) { -1 19183 throw new Error('uuid.v1(): Can\'t create more than 10M uuids/sec'); -1 19184 } -1 19185 _lastMSecs = msecs; -1 19186 _lastNSecs = nsecs; -1 19187 _clockseq = clockseq; -1 19188 msecs += 122192928e5; -1 19189 var tl = ((msecs & 268435455) * 1e4 + nsecs) % 4294967296; -1 19190 b2[i++] = tl >>> 24 & 255; -1 19191 b2[i++] = tl >>> 16 & 255; -1 19192 b2[i++] = tl >>> 8 & 255; -1 19193 b2[i++] = tl & 255; -1 19194 var tmh = msecs / 4294967296 * 1e4 & 268435455; -1 19195 b2[i++] = tmh >>> 8 & 255; -1 19196 b2[i++] = tmh & 255; -1 19197 b2[i++] = tmh >>> 24 & 15 | 16; -1 19198 b2[i++] = tmh >>> 16 & 255; -1 19199 b2[i++] = clockseq >>> 8 | 128; -1 19200 b2[i++] = clockseq & 255; -1 19201 var node = options.node || _nodeId; -1 19202 for (var n2 = 0; n2 < 6; n2++) { -1 19203 b2[i + n2] = node[n2]; -1 19204 } -1 19205 return buf ? buf : unparse(b2); -1 19206 } -1 19207 function v4(options, buf, offset) { -1 19208 var i = buf && offset || 0; -1 19209 if (typeof options == 'string') { -1 19210 buf = options == 'binary' ? new BufferClass(16) : null; -1 19211 options = null; -1 19212 } -1 19213 options = options || {}; -1 19214 var rnds = options.random || (options.rng || _rng)(); -1 19215 rnds[6] = rnds[6] & 15 | 64; -1 19216 rnds[8] = rnds[8] & 63 | 128; -1 19217 if (buf) { -1 19218 for (var ii = 0; ii < 16; ii++) { -1 19219 buf[i + ii] = rnds[ii]; 19235 19220 }19236 -1 } ]);19237 -1 }());19238 -1 function _add(value) {19239 -1 var C = new _Color2(this);19240 -1 C.r += value;19241 -1 C.g += value;19242 -1 C.b += value;19243 -1 return C;-1 19221 } -1 19222 return buf || unparse(rnds); 19244 19223 }19245 -1 var color_default = _Color2;19246 -1 function clamp(value, min, max2) {19247 -1 return Math.min(Math.max(min, value), max2);-1 19224 uuid = v4; -1 19225 uuid.v1 = v1; -1 19226 uuid.v4 = v4; -1 19227 uuid.parse = parse2; -1 19228 uuid.unparse = unparse; -1 19229 uuid.BufferClass = BufferClass; -1 19230 axe._uuid = v1(); -1 19231 var uuid_default = v4; -1 19232 var errorTypes = Object.freeze([ 'EvalError', 'RangeError', 'ReferenceError', 'SyntaxError', 'TypeError', 'URIError' ]); -1 19233 function stringifyMessage(_ref55) { -1 19234 var topic = _ref55.topic, channelId = _ref55.channelId, message = _ref55.message, messageId = _ref55.messageId, keepalive = _ref55.keepalive; -1 19235 var data = { -1 19236 channelId: channelId, -1 19237 topic: topic, -1 19238 messageId: messageId, -1 19239 keepalive: !!keepalive, -1 19240 source: getSource2() -1 19241 }; -1 19242 if (message instanceof Error) { -1 19243 data.error = { -1 19244 name: message.name, -1 19245 message: message.message, -1 19246 stack: message.stack -1 19247 }; -1 19248 } else { -1 19249 data.payload = message; -1 19250 } -1 19251 return JSON.stringify(data); 19248 19252 }19249 -1 function radToDeg(rad) {19250 -1 return rad * 180 / Math.PI;-1 19253 function parseMessage(dataString) { -1 19254 var data; -1 19255 try { -1 19256 data = JSON.parse(dataString); -1 19257 } catch (_unused3) { -1 19258 return; -1 19259 } -1 19260 if (!isRespondableMessage(data)) { -1 19261 return; -1 19262 } -1 19263 var _data2 = data, topic = _data2.topic, channelId = _data2.channelId, messageId = _data2.messageId, keepalive = _data2.keepalive; -1 19264 var message = _typeof(data.error) === 'object' ? buildErrorObject(data.error) : data.payload; -1 19265 return { -1 19266 topic: topic, -1 19267 message: message, -1 19268 messageId: messageId, -1 19269 channelId: channelId, -1 19270 keepalive: !!keepalive -1 19271 }; 19251 19272 }19252 -1 function turnToDeg(turn) {19253 -1 return turn * 360;-1 19273 function isRespondableMessage(postedMessage) { -1 19274 return postedMessage !== null && _typeof(postedMessage) === 'object' && typeof postedMessage.channelId === 'string' && postedMessage.source === getSource2(); 19254 19275 }19255 -1 function getOwnBackgroundColor(elmStyle) {19256 -1 var bgColor = new color_default();19257 -1 bgColor.parseString(elmStyle.getPropertyValue('background-color'));19258 -1 if (bgColor.alpha !== 0) {19259 -1 var opacity = elmStyle.getPropertyValue('opacity');19260 -1 bgColor.alpha = bgColor.alpha * opacity;-1 19276 function buildErrorObject(error) { -1 19277 var msg = error.message || 'Unknown error occurred'; -1 19278 var errorName = errorTypes.includes(error.name) ? error.name : 'Error'; -1 19279 var ErrConstructor = window[errorName] || Error; -1 19280 if (error.stack) { -1 19281 msg += '\n' + error.stack.replace(error.message, ''); 19261 19282 }19262 -1 return bgColor;19263 -1 }19264 -1 var get_own_background_color_default = getOwnBackgroundColor;19265 -1 function isOpaque(node) {19266 -1 var style = window.getComputedStyle(node);19267 -1 return element_has_image_default(node, style) || get_own_background_color_default(style).alpha === 1;-1 19283 return new ErrConstructor(msg); 19268 19284 }19269 -1 var is_opaque_default = isOpaque;19270 -1 function _isSkipLink(element) {19271 -1 if (!element.href) {19272 -1 return false;-1 19285 function getSource2() { -1 19286 var application = 'axeAPI'; -1 19287 var version = ''; -1 19288 if (typeof axe !== 'undefined' && axe._audit && axe._audit.application) { -1 19289 application = axe._audit.application; 19273 19290 }19274 -1 var firstPageLink = cache_default.get('firstPageLink', generateFirstPageLink);19275 -1 if (!firstPageLink) {19276 -1 return true;-1 19291 if (typeof axe !== 'undefined') { -1 19292 version = axe.version; 19277 19293 }19278 -1 return element.compareDocumentPosition(firstPageLink.actualNode) === element.DOCUMENT_POSITION_FOLLOWING;-1 19294 return application + '.' + version; 19279 19295 }19280 -1 function generateFirstPageLink() {19281 -1 var firstPageLink;19282 -1 if (!window.location.origin) {19283 -1 firstPageLink = query_selector_all_default(axe._tree, 'a:not([href^="#"]):not([href^="/#"]):not([href^="javascript:"])')[0];19284 -1 } else {19285 -1 firstPageLink = query_selector_all_default(axe._tree, 'a[href]:not([href^="javascript:"])').find(function(link) {19286 -1 return !_isCurrentPageLink(link.actualNode);19287 -1 });19288 -1 }19289 -1 return firstPageLink || null;-1 19296 function assertIsParentWindow(win) { -1 19297 assetNotGlobalWindow(win); -1 19298 assert_default(window.parent === win, 'Source of the response must be the parent window.'); 19290 19299 }19291 -1 var clipRegex2 = /rect\s*\(([0-9]+)px,?\s*([0-9]+)px,?\s*([0-9]+)px,?\s*([0-9]+)px\s*\)/;19292 -1 var clipPathRegex2 = /(\w+)\((\d+)/;19293 -1 function isClipped(style) {19294 -1 var matchesClip = style.getPropertyValue('clip').match(clipRegex2);19295 -1 var matchesClipPath = style.getPropertyValue('clip-path').match(clipPathRegex2);19296 -1 if (matchesClip && matchesClip.length === 5) {19297 -1 var position = style.getPropertyValue('position');19298 -1 if ([ 'fixed', 'absolute' ].includes(position)) {19299 -1 return matchesClip[3] - matchesClip[1] <= 0 && matchesClip[2] - matchesClip[4] <= 0;19300 -1 }19301 -1 }19302 -1 if (matchesClipPath) {19303 -1 var type2 = matchesClipPath[1];19304 -1 var value = parseInt(matchesClipPath[2], 10);19305 -1 switch (type2) {19306 -1 case 'inset':19307 -1 return value >= 50;19308 -119309 -1 case 'circle':19310 -1 return value === 0;19311 -119312 -1 default:19313 -1 }-1 19300 function assertIsFrameWindow(win) { -1 19301 assetNotGlobalWindow(win); -1 19302 assert_default(win.parent === window, 'Respondable target must be a frame in the current window'); -1 19303 } -1 19304 function assetNotGlobalWindow(win) { -1 19305 assert_default(window !== win, 'Messages can not be sent to the same window.'); -1 19306 } -1 19307 var channels = {}; -1 19308 function storeReplyHandler(channelId, replyHandler) { -1 19309 var sendToParent = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true; -1 19310 assert_default(!channels[channelId], 'A replyHandler already exists for this message channel.'); -1 19311 channels[channelId] = { -1 19312 replyHandler: replyHandler, -1 19313 sendToParent: sendToParent -1 19314 }; -1 19315 } -1 19316 function getReplyHandler(channelId) { -1 19317 return channels[channelId]; -1 19318 } -1 19319 function deleteReplyHandler(channelId) { -1 19320 delete channels[channelId]; -1 19321 } -1 19322 var messageIds = []; -1 19323 function createMessageId() { -1 19324 var uuid2 = ''.concat(v4(), ':').concat(v4()); -1 19325 if (messageIds.includes(uuid2)) { -1 19326 return createMessageId(); 19314 19327 }19315 -1 return false;-1 19328 messageIds.push(uuid2); -1 19329 return uuid2; 19316 19330 }19317 -1 function isAreaVisible(el, screenReader, recursed) {19318 -1 var mapEl = find_up_default(el, 'map');19319 -1 if (!mapEl) {-1 19331 function isNewMessage(uuid2) { -1 19332 if (messageIds.includes(uuid2)) { 19320 19333 return false; 19321 19334 }19322 -1 var mapElName = mapEl.getAttribute('name');19323 -1 if (!mapElName) {-1 19335 messageIds.push(uuid2); -1 19336 return true; -1 19337 } -1 19338 function postMessage(win, data, sendToParent, replyHandler) { -1 19339 sendToParent ? assertIsParentWindow(win) : assertIsFrameWindow(win); -1 19340 if (data.message instanceof Error && !sendToParent) { -1 19341 axe.log(data.message); 19324 19342 return false; 19325 19343 }19326 -1 var mapElRootNode = get_root_node_default2(el);19327 -1 if (!mapElRootNode || mapElRootNode.nodeType !== 9) {-1 19344 var dataString = stringifyMessage(_extends({ -1 19345 messageId: createMessageId() -1 19346 }, data)); -1 19347 var allowedOrigins = axe._audit.allowedOrigins; -1 19348 if (!allowedOrigins || !allowedOrigins.length) { 19328 19349 return false; 19329 19350 }19330 -1 var refs = query_selector_all_default(axe._tree, 'img[usemap="#'.concat(escape_selector_default(mapElName), '"]'));19331 -1 if (!refs || !refs.length) {19332 -1 return false;-1 19351 if (typeof replyHandler === 'function') { -1 19352 storeReplyHandler(data.channelId, replyHandler, sendToParent); 19333 19353 }19334 -1 return refs.some(function(_ref62) {19335 -1 var actualNode = _ref62.actualNode;19336 -1 return isVisible(actualNode, screenReader, recursed);-1 19354 allowedOrigins.forEach(function(origin) { -1 19355 try { -1 19356 win.postMessage(dataString, origin); -1 19357 } catch (err2) { -1 19358 if (err2 instanceof win.DOMException) { -1 19359 throw new Error('allowedOrigins value "'.concat(origin, '" is not a valid origin')); -1 19360 } -1 19361 throw err2; -1 19362 } 19337 19363 }); -1 19364 return true; 19338 19365 }19339 -1 function isVisible(el, screenReader, recursed) {19340 -1 var _window$Node2;19341 -1 if (!el) {19342 -1 throw new TypeError('Cannot determine if element is visible for non-DOM nodes');19343 -1 }19344 -1 var vNode = el instanceof abstract_virtual_node_default ? el : get_node_from_tree_default(el);19345 -1 el = vNode ? vNode.actualNode : el;19346 -1 var cacheName = '_isVisible' + (screenReader ? 'ScreenReader' : '');19347 -1 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;19348 -1 var nodeType = vNode ? vNode.props.nodeType : el.nodeType;19349 -1 var nodeName2 = vNode ? vNode.props.nodeName : el.nodeName.toLowerCase();19350 -1 if (vNode && typeof vNode[cacheName] !== 'undefined') {19351 -1 return vNode[cacheName];19352 -1 }19353 -1 if (nodeType === DOCUMENT_NODE) {19354 -1 return true;19355 -1 }19356 -1 if ([ 'style', 'script', 'noscript', 'template' ].includes(nodeName2)) {19357 -1 return false;-1 19366 function processError(win, error, channelId) { -1 19367 if (!win.parent !== window) { -1 19368 return axe.log(error); 19358 19369 }19359 -1 if (el && nodeType === DOCUMENT_FRAGMENT_NODE) {19360 -1 el = el.host;-1 19370 try { -1 19371 postMessage(win, { -1 19372 topic: null, -1 19373 channelId: channelId, -1 19374 message: error, -1 19375 messageId: createMessageId(), -1 19376 keepalive: true -1 19377 }, true); -1 19378 } catch (err2) { -1 19379 return axe.log(err2); 19361 19380 }19362 -1 if (screenReader) {19363 -1 var ariaHiddenValue = vNode ? vNode.attr('aria-hidden') : el.getAttribute('aria-hidden');19364 -1 if (ariaHiddenValue === 'true') {19365 -1 return false;-1 19381 } -1 19382 function createResponder(win, channelId) { -1 19383 var sendToParent = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true; -1 19384 return function respond(message, keepalive, replyHandler) { -1 19385 var data = { -1 19386 channelId: channelId, -1 19387 message: message, -1 19388 keepalive: keepalive -1 19389 }; -1 19390 postMessage(win, data, sendToParent, replyHandler); -1 19391 }; -1 19392 } -1 19393 function originIsAllowed(origin) { -1 19394 var allowedOrigins = axe._audit.allowedOrigins; -1 19395 return allowedOrigins && allowedOrigins.includes('*') || allowedOrigins.includes(origin); -1 19396 } -1 19397 function messageHandler(_ref56, topicHandler) { -1 19398 var origin = _ref56.origin, dataString = _ref56.data, win = _ref56.source; -1 19399 try { -1 19400 var data = parseMessage(dataString) || {}; -1 19401 var channelId = data.channelId, message = data.message, messageId = data.messageId; -1 19402 if (!originIsAllowed(origin) || !isNewMessage(messageId)) { -1 19403 return; 19366 19404 }19367 -1 }19368 -1 if (!el) {19369 -1 var parent2 = vNode.parent;19370 -1 var visible3 = true;19371 -1 if (parent2) {19372 -1 visible3 = isVisible(parent2, screenReader, true);-1 19405 if (message instanceof Error && win.parent !== window) { -1 19406 axe.log(message); -1 19407 return false; 19373 19408 }19374 -1 if (vNode) {19375 -1 vNode[cacheName] = visible3;-1 19409 try { -1 19410 if (data.topic) { -1 19411 var responder = createResponder(win, channelId); -1 19412 assertIsParentWindow(win); -1 19413 topicHandler(data, responder); -1 19414 } else { -1 19415 callReplyHandler(win, data); -1 19416 } -1 19417 } catch (error) { -1 19418 processError(win, error, channelId); 19376 19419 }19377 -1 return visible3;19378 -1 }19379 -1 var style = window.getComputedStyle(el, null);19380 -1 if (style === null) {19381 -1 return false;19382 -1 }19383 -1 if (nodeName2 === 'area') {19384 -1 return isAreaVisible(el, screenReader, recursed);19385 -1 }19386 -1 if (style.getPropertyValue('display') === 'none') {19387 -1 return false;19388 -1 }19389 -1 var elHeight = parseInt(style.getPropertyValue('height'));19390 -1 var elWidth = parseInt(style.getPropertyValue('width'));19391 -1 var scroll = get_scroll_default(el);19392 -1 var scrollableWithZeroHeight = scroll && elHeight === 0;19393 -1 var scrollableWithZeroWidth = scroll && elWidth === 0;19394 -1 var posAbsoluteOverflowHiddenAndSmall = style.getPropertyValue('position') === 'absolute' && (elHeight < 2 || elWidth < 2) && style.getPropertyValue('overflow') === 'hidden';19395 -1 if (!screenReader && (isClipped(style) || style.getPropertyValue('opacity') === '0' || scrollableWithZeroHeight || scrollableWithZeroWidth || posAbsoluteOverflowHiddenAndSmall)) {-1 19420 } catch (error) { -1 19421 axe.log(error); 19396 19422 return false; 19397 19423 }19398 -1 if (!recursed && (style.getPropertyValue('visibility') === 'hidden' || !screenReader && is_offscreen_default(el))) {19399 -1 return false;-1 19424 } -1 19425 function callReplyHandler(win, data) { -1 19426 var channelId = data.channelId, message = data.message, keepalive = data.keepalive; -1 19427 var _ref57 = getReplyHandler(channelId) || {}, replyHandler = _ref57.replyHandler, sendToParent = _ref57.sendToParent; -1 19428 if (!replyHandler) { -1 19429 return; 19400 19430 }19401 -1 var parent = el.assignedSlot ? el.assignedSlot : el.parentNode;19402 -1 var visible2 = false;19403 -1 if (parent) {19404 -1 visible2 = isVisible(parent, screenReader, true);-1 19431 sendToParent ? assertIsParentWindow(win) : assertIsFrameWindow(win); -1 19432 var responder = createResponder(win, channelId, sendToParent); -1 19433 if (!keepalive && channelId) { -1 19434 deleteReplyHandler(channelId); 19405 19435 }19406 -1 if (vNode) {19407 -1 vNode[cacheName] = visible2;-1 19436 try { -1 19437 replyHandler(message, keepalive, responder); -1 19438 } catch (error) { -1 19439 axe.log(error); -1 19440 responder(error, keepalive); 19408 19441 }19409 -1 return visible2;19410 19442 }19411 -1 var is_visible_default = isVisible;19412 -1 function reduceToElementsBelowFloating(elements, targetNode) {19413 -1 var floatingPositions = [ 'fixed', 'sticky' ];19414 -1 var finalElements = [];19415 -1 var targetFound = false;19416 -1 for (var index = 0; index < elements.length; ++index) {19417 -1 var currentNode = elements[index];19418 -1 if (currentNode === targetNode) {19419 -1 targetFound = true;-1 19443 var frameMessenger = { -1 19444 open: function open(topicHandler) { -1 19445 if (typeof window.addEventListener !== 'function') { -1 19446 return; 19420 19447 }19421 -1 var style = window.getComputedStyle(currentNode);19422 -1 if (!targetFound && floatingPositions.indexOf(style.position) !== -1) {19423 -1 finalElements = [];19424 -1 continue;-1 19448 var handler = function handler(messageEvent) { -1 19449 messageHandler(messageEvent, topicHandler); -1 19450 }; -1 19451 window.addEventListener('message', handler, false); -1 19452 return function() { -1 19453 window.removeEventListener('message', handler, false); -1 19454 }; -1 19455 }, -1 19456 post: function post(win, data, replyHandler) { -1 19457 if (typeof window.addEventListener !== 'function') { -1 19458 return false; 19425 19459 }19426 -1 finalElements.push(currentNode);-1 19460 return postMessage(win, data, false, replyHandler); 19427 19461 }19428 -1 return finalElements;-1 19462 }; -1 19463 function setDefaultFrameMessenger(respondable2) { -1 19464 respondable2.updateMessenger(frameMessenger); 19429 19465 }19430 -1 var reduce_to_elements_below_floating_default = reduceToElementsBelowFloating;19431 -1 function _visuallyContains(node, parent) {19432 -1 var parentScrollAncestor = getScrollAncestor(parent);19433 -1 do {19434 -1 var nextScrollAncestor = getScrollAncestor(node);19435 -1 if (nextScrollAncestor === parentScrollAncestor || nextScrollAncestor === parent) {19436 -1 return contains2(node, parent);19437 -1 }19438 -1 node = nextScrollAncestor;19439 -1 } while (node);19440 -1 return false;-1 19466 var closeHandler; -1 19467 var postMessage2; -1 19468 var topicHandlers = {}; -1 19469 function _respondable(win, topic, message, keepalive, replyHandler) { -1 19470 var data = { -1 19471 topic: topic, -1 19472 message: message, -1 19473 channelId: ''.concat(v4(), ':').concat(v4()), -1 19474 keepalive: keepalive -1 19475 }; -1 19476 return postMessage2(win, data, replyHandler); 19441 19477 }19442 -1 function getScrollAncestor(node) {19443 -1 var vNode = get_node_from_tree_default(node);19444 -1 var ancestor = vNode.parent;19445 -1 while (ancestor) {19446 -1 if (get_scroll_default(ancestor.actualNode)) {19447 -1 return ancestor.actualNode;19448 -1 }19449 -1 ancestor = ancestor.parent;-1 19478 function messageListener(data, responder) { -1 19479 var topic = data.topic, message = data.message, keepalive = data.keepalive; -1 19480 var topicHandler = topicHandlers[topic]; -1 19481 if (!topicHandler) { -1 19482 return; -1 19483 } -1 19484 try { -1 19485 topicHandler(message, keepalive, responder); -1 19486 } catch (error) { -1 19487 axe.log(error); -1 19488 responder(error, keepalive); 19450 19489 } 19451 19490 }19452 -1 function contains2(node, parent) {19453 -1 var style = window.getComputedStyle(parent);19454 -1 var overflow = style.getPropertyValue('overflow');19455 -1 if (style.getPropertyValue('display') === 'inline') {19456 -1 return true;-1 19491 _respondable.updateMessenger = function updateMessenger(_ref58) { -1 19492 var open = _ref58.open, post = _ref58.post; -1 19493 assert_default(typeof open === 'function', 'open callback must be a function'); -1 19494 assert_default(typeof post === 'function', 'post callback must be a function'); -1 19495 if (closeHandler) { -1 19496 closeHandler(); 19457 19497 }19458 -1 var clientRects = Array.from(node.getClientRects());19459 -1 var boundingRect = parent.getBoundingClientRect();19460 -1 var rect = {19461 -1 left: boundingRect.left,19462 -1 top: boundingRect.top,19463 -1 width: boundingRect.width,19464 -1 height: boundingRect.height19465 -1 };19466 -1 if ([ 'scroll', 'auto' ].includes(overflow) || parent instanceof window.HTMLHtmlElement) {19467 -1 rect.width = parent.scrollWidth;19468 -1 rect.height = parent.scrollHeight;-1 19498 var close = open(messageListener); -1 19499 if (close) { -1 19500 assert_default(typeof close === 'function', 'open callback must return a cleanup function'); -1 19501 closeHandler = close; -1 19502 } else { -1 19503 closeHandler = null; 19469 19504 }19470 -1 if (clientRects.length === 1 && overflow === 'hidden' && style.getPropertyValue('white-space') === 'nowrap') {19471 -1 clientRects[0] = rect;-1 19505 postMessage2 = post; -1 19506 }; -1 19507 _respondable.subscribe = function subscribe(topic, topicHandler) { -1 19508 assert_default(typeof topicHandler === 'function', 'Subscriber callback must be a function'); -1 19509 assert_default(!topicHandlers[topic], 'Topic '.concat(topic, ' is already registered to.')); -1 19510 topicHandlers[topic] = topicHandler; -1 19511 }; -1 19512 _respondable.isInFrame = function isInFrame() { -1 19513 var win = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : window; -1 19514 return !!win.frameElement; -1 19515 }; -1 19516 setDefaultFrameMessenger(_respondable); -1 19517 function _sendCommandToFrame(node, parameters, resolve, reject) { -1 19518 var _parameters$options$p, _parameters$options; -1 19519 var win = node.contentWindow; -1 19520 var pingWaitTime = (_parameters$options$p = (_parameters$options = parameters.options) === null || _parameters$options === void 0 ? void 0 : _parameters$options.pingWaitTime) !== null && _parameters$options$p !== void 0 ? _parameters$options$p : 500; -1 19521 if (!win) { -1 19522 log_default('Frame does not have a content window', node); -1 19523 resolve(null); -1 19524 return; 19472 19525 }19473 -1 return clientRects.some(function(clientRect) {19474 -1 return !(Math.ceil(clientRect.left) < Math.floor(rect.left) || Math.ceil(clientRect.top) < Math.floor(rect.top) || Math.floor(clientRect.left + clientRect.width) > Math.ceil(rect.left + rect.width) || Math.floor(clientRect.top + clientRect.height) > Math.ceil(rect.top + rect.height));19475 -1 });19476 -1 }19477 -1 function shadowElementsFromPoint(nodeX, nodeY) {19478 -1 var root = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : document;19479 -1 var i = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 0;19480 -1 if (i > 999) {19481 -1 throw new Error('Infinite loop detected');-1 19526 if (pingWaitTime === 0) { -1 19527 callAxeStart(node, parameters, resolve, reject); -1 19528 return; 19482 19529 }19483 -1 return Array.from(root.elementsFromPoint(nodeX, nodeY) || []).filter(function(nodes) {19484 -1 return get_root_node_default2(nodes) === root;19485 -1 }).reduce(function(stack, elm) {19486 -1 if (is_shadow_root_default(elm)) {19487 -1 var shadowStack = shadowElementsFromPoint(nodeX, nodeY, elm.shadowRoot, i + 1);19488 -1 stack = stack.concat(shadowStack);19489 -1 if (stack.length && _visuallyContains(stack[0], elm)) {19490 -1 stack.push(elm);-1 19530 var timeout = setTimeout(function() { -1 19531 timeout = setTimeout(function() { -1 19532 if (!parameters.debug) { -1 19533 resolve(null); -1 19534 } else { -1 19535 reject(err('No response from frame', node)); 19491 19536 } -1 19537 }, 0); -1 19538 }, pingWaitTime); -1 19539 _respondable(win, 'axe.ping', null, void 0, function() { -1 19540 clearTimeout(timeout); -1 19541 callAxeStart(node, parameters, resolve, reject); -1 19542 }); -1 19543 } -1 19544 function callAxeStart(node, parameters, resolve, reject) { -1 19545 var _parameters$options$f, _parameters$options2; -1 19546 var frameWaitTime = (_parameters$options$f = (_parameters$options2 = parameters.options) === null || _parameters$options2 === void 0 ? void 0 : _parameters$options2.frameWaitTime) !== null && _parameters$options$f !== void 0 ? _parameters$options$f : 6e4; -1 19547 var win = node.contentWindow; -1 19548 var timeout = setTimeout(function collectResultFramesTimeout() { -1 19549 reject(err('Axe in frame timed out', node)); -1 19550 }, frameWaitTime); -1 19551 _respondable(win, 'axe.start', parameters, void 0, function(data) { -1 19552 clearTimeout(timeout); -1 19553 if (data instanceof Error === false) { -1 19554 resolve(data); 19492 19555 } else {19493 -1 stack.push(elm);-1 19556 reject(data); 19494 19557 }19495 -1 return stack;19496 -1 }, []);-1 19558 }); 19497 19559 }19498 -1 var shadow_elements_from_point_default = shadowElementsFromPoint;19499 -1 function urlPropsFromAttribute(node, attribute) {19500 -1 if (!node.hasAttribute(attribute)) {19501 -1 return void 0;-1 19560 function err(message, node) { -1 19561 var selector; -1 19562 if (axe._tree) { -1 19563 selector = get_selector_default(node); 19502 19564 }19503 -1 var nodeName2 = node.nodeName.toUpperCase();19504 -1 var parser2 = node;19505 -1 if (![ 'A', 'AREA' ].includes(nodeName2) || node.ownerSVGElement) {19506 -1 parser2 = document.createElement('a');19507 -1 parser2.href = node.getAttribute(attribute);-1 19565 return new Error(message + ': ' + (selector || node)); -1 19566 } -1 19567 var customSerializer = null; -1 19568 var nodeSerializer = { -1 19569 update: function update(serializer) { -1 19570 assert_default(_typeof(serializer) === 'object', 'serializer must be an object'); -1 19571 customSerializer = serializer; -1 19572 }, -1 19573 toSpec: function toSpec(node) { -1 19574 return nodeSerializer.dqElmToSpec(new dq_element_default(node)); -1 19575 }, -1 19576 dqElmToSpec: function dqElmToSpec(dqElm, runOptions) { -1 19577 var _customSerializer; -1 19578 if (dqElm instanceof dq_element_default === false) { -1 19579 return dqElm; -1 19580 } -1 19581 if (runOptions) { -1 19582 dqElm = cloneLimitedDqElement(dqElm, runOptions); -1 19583 } -1 19584 if (typeof ((_customSerializer = customSerializer) === null || _customSerializer === void 0 ? void 0 : _customSerializer.toSpec) === 'function') { -1 19585 return customSerializer.toSpec(dqElm); -1 19586 } -1 19587 return dqElm.toJSON(); -1 19588 }, -1 19589 mergeSpecs: function mergeSpecs(nodeSpec, parentFrameSpec) { -1 19590 var _customSerializer2; -1 19591 if (typeof ((_customSerializer2 = customSerializer) === null || _customSerializer2 === void 0 ? void 0 : _customSerializer2.mergeSpecs) === 'function') { -1 19592 return customSerializer.mergeSpecs(nodeSpec, parentFrameSpec); -1 19593 } -1 19594 return dq_element_default.mergeSpecs(nodeSpec, parentFrameSpec); -1 19595 }, -1 19596 mapRawResults: function mapRawResults(rawResults) { -1 19597 return rawResults.map(function(rawResult) { -1 19598 return _extends({}, rawResult, { -1 19599 nodes: nodeSerializer.mapRawNodeResults(rawResult.nodes) -1 19600 }); -1 19601 }); -1 19602 }, -1 19603 mapRawNodeResults: function mapRawNodeResults(nodeResults) { -1 19604 return nodeResults === null || nodeResults === void 0 ? void 0 : nodeResults.map(function(_ref59) { -1 19605 var node = _ref59.node, nodeResult = _objectWithoutProperties(_ref59, _excluded1); -1 19606 nodeResult.node = nodeSerializer.dqElmToSpec(node); -1 19607 for (var _i6 = 0, _arr2 = [ 'any', 'all', 'none' ]; _i6 < _arr2.length; _i6++) { -1 19608 var type2 = _arr2[_i6]; -1 19609 nodeResult[type2] = nodeResult[type2].map(function(_ref60) { -1 19610 var relatedNodes = _ref60.relatedNodes, checkResult = _objectWithoutProperties(_ref60, _excluded10); -1 19611 checkResult.relatedNodes = relatedNodes.map(nodeSerializer.dqElmToSpec); -1 19612 return checkResult; -1 19613 }); -1 19614 } -1 19615 return nodeResult; -1 19616 }); 19508 19617 }19509 -1 var protocol = [ 'https:', 'ftps:' ].includes(parser2.protocol) ? parser2.protocol.replace(/s:$/, ':') : parser2.protocol;19510 -1 var parserPathname = /^\//.test(parser2.pathname) ? parser2.pathname : '/'.concat(parser2.pathname);19511 -1 var _getPathnameOrFilenam = getPathnameOrFilename(parserPathname), pathname = _getPathnameOrFilenam.pathname, filename = _getPathnameOrFilenam.filename;19512 -1 return {19513 -1 protocol: protocol,19514 -1 hostname: parser2.hostname,19515 -1 port: getPort(parser2.port),19516 -1 pathname: /\/$/.test(pathname) ? pathname : ''.concat(pathname, '/'),19517 -1 search: getSearchPairs(parser2.search),19518 -1 hash: getHashRoute(parser2.hash),19519 -1 filename: filename19520 -1 };-1 19618 }; -1 19619 var node_serializer_default = nodeSerializer; -1 19620 function cloneLimitedDqElement(dqElm, runOptions) { -1 19621 var fromFrame2 = dqElm.fromFrame; -1 19622 var hasAncestry = runOptions.ancestry, hasXpath = runOptions.xpath; -1 19623 var hasSelectors = runOptions.selectors !== false || fromFrame2; -1 19624 dqElm = new dq_element_default(dqElm.element, runOptions, { -1 19625 source: dqElm.source, -1 19626 nodeIndexes: dqElm.nodeIndexes, -1 19627 selector: hasSelectors ? dqElm.selector : [ ':root' ], -1 19628 ancestry: hasAncestry ? dqElm.ancestry : [ ':root' ], -1 19629 xpath: hasXpath ? dqElm.xpath : '/' -1 19630 }); -1 19631 dqElm.fromFrame = fromFrame2; -1 19632 return dqElm; 19521 19633 }19522 -1 function getPort(port) {19523 -1 var excludePorts = [ '443', '80' ];19524 -1 return !excludePorts.includes(port) ? port : '';-1 19634 function getAllChecks(object) { -1 19635 var result = []; -1 19636 return result.concat(object.any || []).concat(object.all || []).concat(object.none || []); 19525 19637 }19526 -1 function getPathnameOrFilename(pathname) {19527 -1 var filename = pathname.split('/').pop();19528 -1 if (!filename || filename.indexOf('.') === -1) {19529 -1 return {19530 -1 pathname: pathname,19531 -1 filename: ''19532 -1 };-1 19638 var get_all_checks_default = getAllChecks; -1 19639 function findBy(array, key, value) { -1 19640 if (Array.isArray(array)) { -1 19641 return array.find(function(obj) { -1 19642 return obj !== null && _typeof(obj) === 'object' && Object.hasOwn(obj, key) && obj[key] === value; -1 19643 }); 19533 19644 }19534 -1 return {19535 -1 pathname: pathname.replace(filename, ''),19536 -1 filename: /index./.test(filename) ? '' : filename19537 -1 };19538 19645 }19539 -1 function getSearchPairs(searchStr) {19540 -1 var query = {};19541 -1 if (!searchStr || !searchStr.length) {19542 -1 return query;19543 -1 }19544 -1 var pairs = searchStr.substring(1).split('&');19545 -1 if (!pairs || !pairs.length) {19546 -1 return query;19547 -1 }19548 -1 for (var index = 0; index < pairs.length; index++) {19549 -1 var pair = pairs[index];19550 -1 var _pair$split = pair.split('='), _pair$split2 = _slicedToArray(_pair$split, 2), _key7 = _pair$split2[0], _pair$split2$ = _pair$split2[1], value = _pair$split2$ === void 0 ? '' : _pair$split2$;19551 -1 query[decodeURIComponent(_key7)] = decodeURIComponent(value);19552 -1 }19553 -1 return query;-1 19646 var find_by_default = findBy; -1 19647 function pushFrame(resultSet, options, frameSpec) { -1 19648 resultSet.forEach(function(res) { -1 19649 res.node = node_serializer_default.mergeSpecs(res.node, frameSpec); -1 19650 var checks = get_all_checks_default(res); -1 19651 checks.forEach(function(check) { -1 19652 check.relatedNodes = check.relatedNodes.map(function(node) { -1 19653 return node_serializer_default.mergeSpecs(node, frameSpec); -1 19654 }); -1 19655 }); -1 19656 }); 19554 19657 }19555 -1 function getHashRoute(hash) {19556 -1 if (!hash) {19557 -1 return '';19558 -1 }19559 -1 var hashRegex = /#!?\/?/g;19560 -1 var hasMatch = hash.match(hashRegex);19561 -1 if (!hasMatch) {19562 -1 return '';19563 -1 }19564 -1 var _hasMatch = _slicedToArray(hasMatch, 1), matchedStr = _hasMatch[0];19565 -1 if (matchedStr === '#') {19566 -1 return '';-1 19658 function spliceNodes(target, to2) { -1 19659 var firstFromFrame = to2[0].node; -1 19660 var node; -1 19661 for (var _i7 = 0; _i7 < target.length; _i7++) { -1 19662 node = target[_i7].node; -1 19663 var resultSort = nodeIndexSort(node.nodeIndexes, firstFromFrame.nodeIndexes); -1 19664 if (resultSort > 0 || resultSort === 0 && firstFromFrame.selector.length < node.selector.length) { -1 19665 target.splice.apply(target, [ _i7, 0 ].concat(_toConsumableArray(to2))); -1 19666 return; -1 19667 } 19567 19668 }19568 -1 return hash;-1 19669 target.push.apply(target, _toConsumableArray(to2)); 19569 19670 }19570 -1 var url_props_from_attribute_default = urlPropsFromAttribute;19571 -1 function visuallyOverlaps(rect, parent) {19572 -1 var parentRect = parent.getBoundingClientRect();19573 -1 var parentTop = parentRect.top;19574 -1 var parentLeft = parentRect.left;19575 -1 var parentScrollArea = {19576 -1 top: parentTop - parent.scrollTop,19577 -1 bottom: parentTop - parent.scrollTop + parent.scrollHeight,19578 -1 left: parentLeft - parent.scrollLeft,19579 -1 right: parentLeft - parent.scrollLeft + parent.scrollWidth19580 -1 };19581 -1 if (rect.left > parentScrollArea.right && rect.left > parentRect.right || rect.top > parentScrollArea.bottom && rect.top > parentRect.bottom || rect.right < parentScrollArea.left && rect.right < parentRect.left || rect.bottom < parentScrollArea.top && rect.bottom < parentRect.top) {19582 -1 return false;-1 19671 function normalizeResult(result) { -1 19672 if (!result || !result.results) { -1 19673 return null; 19583 19674 }19584 -1 var style = window.getComputedStyle(parent);19585 -1 if (rect.left > parentRect.right || rect.top > parentRect.bottom) {19586 -1 return style.overflow === 'scroll' || style.overflow === 'auto' || parent instanceof window.HTMLBodyElement || parent instanceof window.HTMLHtmlElement;-1 19675 if (!Array.isArray(result.results)) { -1 19676 return [ result.results ]; 19587 19677 }19588 -1 return true;-1 19678 if (!result.results.length) { -1 19679 return null; -1 19680 } -1 19681 return result.results; 19589 19682 }19590 -1 var visually_overlaps_default = visuallyOverlaps;19591 -1 var nodeIndex2 = 0;19592 -1 var VirtualNode = function(_abstract_virtual_nod) {19593 -1 function VirtualNode(node, parent, shadowId) {19594 -1 var _this4;19595 -1 _classCallCheck(this, VirtualNode);19596 -1 _this4 = _callSuper(this, VirtualNode);19597 -1 _this4.shadowId = shadowId;19598 -1 _this4.children = [];19599 -1 _this4.actualNode = node;19600 -1 _this4.parent = parent;19601 -1 if (!parent) {19602 -1 nodeIndex2 = 0;-1 19683 function mergeResults(frameResults, options) { -1 19684 var mergedResult = []; -1 19685 frameResults.forEach(function(frameResult) { -1 19686 var results = normalizeResult(frameResult); -1 19687 if (!results || !results.length) { -1 19688 return; 19603 19689 }19604 -1 _this4.nodeIndex = nodeIndex2++;19605 -1 _this4._isHidden = null;19606 -1 _this4._cache = {};19607 -1 _this4._isXHTML = is_xhtml_default(node.ownerDocument);19608 -1 if (node.nodeName.toLowerCase() === 'input') {19609 -1 var type2 = node.getAttribute('type');19610 -1 type2 = _this4._isXHTML ? type2 : (type2 || '').toLowerCase();19611 -1 if (!valid_input_type_default().includes(type2)) {19612 -1 type2 = 'text';-1 19690 var frameSpec = getFrameSpec(frameResult); -1 19691 results.forEach(function(ruleResult) { -1 19692 if (ruleResult.nodes && frameSpec) { -1 19693 pushFrame(ruleResult.nodes, options, frameSpec); 19613 19694 }19614 -1 _this4._type = type2;19615 -1 }19616 -1 if (cache_default.get('nodeMap')) {19617 -1 cache_default.get('nodeMap').set(node, _this4);19618 -1 }19619 -1 return _this4;19620 -1 }19621 -1 _inherits(VirtualNode, _abstract_virtual_nod);19622 -1 return _createClass(VirtualNode, [ {19623 -1 key: 'props',19624 -1 get: function get() {19625 -1 if (!this._cache.hasOwnProperty('props')) {19626 -1 var _this$actualNode = this.actualNode, nodeType = _this$actualNode.nodeType, nodeName2 = _this$actualNode.nodeName, _id = _this$actualNode.id, nodeValue = _this$actualNode.nodeValue;19627 -1 this._cache.props = {19628 -1 nodeType: nodeType,19629 -1 nodeName: this._isXHTML ? nodeName2 : nodeName2.toLowerCase(),19630 -1 id: _id,19631 -1 type: this._type,19632 -1 nodeValue: nodeValue19633 -1 };19634 -1 if (nodeType === 1) {19635 -1 this._cache.props.multiple = this.actualNode.multiple;19636 -1 this._cache.props.value = this.actualNode.value;19637 -1 this._cache.props.selected = this.actualNode.selected;19638 -1 this._cache.props.checked = this.actualNode.checked;19639 -1 this._cache.props.indeterminate = this.actualNode.indeterminate;-1 19695 var res = find_by_default(mergedResult, 'id', ruleResult.id); -1 19696 if (!res) { -1 19697 mergedResult.push(ruleResult); -1 19698 } else { -1 19699 if (ruleResult.nodes.length) { -1 19700 spliceNodes(res.nodes, ruleResult.nodes); -1 19701 } -1 19702 if (ruleResult.error) { -1 19703 var _res$error; -1 19704 (_res$error = res.error) !== null && _res$error !== void 0 ? _res$error : res.error = ruleResult.error; 19640 19705 } 19641 19706 }19642 -1 return this._cache.props;-1 19707 }); -1 19708 }); -1 19709 mergedResult.forEach(function(result) { -1 19710 if (result.nodes) { -1 19711 result.nodes.sort(function(nodeA, nodeB) { -1 19712 return nodeIndexSort(nodeA.node.nodeIndexes, nodeB.node.nodeIndexes); -1 19713 }); 19643 19714 }19644 -1 }, {19645 -1 key: 'attr',19646 -1 value: function attr(attrName) {19647 -1 if (typeof this.actualNode.getAttribute !== 'function') {19648 -1 return null;19649 -1 }19650 -1 return this.actualNode.getAttribute(attrName);-1 19715 }); -1 19716 return mergedResult; -1 19717 } -1 19718 function nodeIndexSort() { -1 19719 var nodeIndexesA = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : []; -1 19720 var nodeIndexesB = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : []; -1 19721 var length = Math.max(nodeIndexesA === null || nodeIndexesA === void 0 ? void 0 : nodeIndexesA.length, nodeIndexesB === null || nodeIndexesB === void 0 ? void 0 : nodeIndexesB.length); -1 19722 for (var _i8 = 0; _i8 < length; _i8++) { -1 19723 var indexA = nodeIndexesA === null || nodeIndexesA === void 0 ? void 0 : nodeIndexesA[_i8]; -1 19724 var indexB = nodeIndexesB === null || nodeIndexesB === void 0 ? void 0 : nodeIndexesB[_i8]; -1 19725 if (typeof indexA !== 'number' || isNaN(indexA)) { -1 19726 return _i8 === 0 ? 1 : -1; 19651 19727 }19652 -1 }, {19653 -1 key: 'hasAttr',19654 -1 value: function hasAttr(attrName) {19655 -1 if (typeof this.actualNode.hasAttribute !== 'function') {19656 -1 return false;19657 -1 }19658 -1 return this.actualNode.hasAttribute(attrName);-1 19728 if (typeof indexB !== 'number' || isNaN(indexB)) { -1 19729 return _i8 === 0 ? -1 : 1; 19659 19730 }19660 -1 }, {19661 -1 key: 'attrNames',19662 -1 get: function get() {19663 -1 if (!this._cache.hasOwnProperty('attrNames')) {19664 -1 var attrs;19665 -1 if (this.actualNode.attributes instanceof window.NamedNodeMap) {19666 -1 attrs = this.actualNode.attributes;19667 -1 } else {19668 -1 attrs = this.actualNode.cloneNode(false).attributes;19669 -1 }19670 -1 this._cache.attrNames = Array.from(attrs).map(function(attr) {19671 -1 return attr.name;19672 -1 });19673 -1 }19674 -1 return this._cache.attrNames;-1 19731 if (indexA !== indexB) { -1 19732 return indexA - indexB; 19675 19733 }19676 -1 }, {19677 -1 key: 'getComputedStylePropertyValue',19678 -1 value: function getComputedStylePropertyValue(property) {19679 -1 var key = 'computedStyle_' + property;19680 -1 if (!this._cache.hasOwnProperty(key)) {19681 -1 if (!this._cache.hasOwnProperty('computedStyle')) {19682 -1 this._cache.computedStyle = window.getComputedStyle(this.actualNode);-1 19734 } -1 19735 return 0; -1 19736 } -1 19737 var merge_results_default = mergeResults; -1 19738 function getFrameSpec(frameResult) { -1 19739 if (frameResult.frameElement) { -1 19740 return node_serializer_default.toSpec(frameResult.frameElement); -1 19741 } else if (frameResult.frameSpec) { -1 19742 return frameResult.frameSpec; -1 19743 } -1 19744 return null; -1 19745 } -1 19746 function _collectResultsFromFrames(parentContent, options, command, parameter, resolve, reject) { -1 19747 options = _extends({}, options, { -1 19748 elementRef: false -1 19749 }); -1 19750 var q = queue_default(); -1 19751 var frames = parentContent.frames; -1 19752 frames.forEach(function(_ref61) { -1 19753 var frameElement = _ref61.node, context = _objectWithoutProperties(_ref61, _excluded11); -1 19754 q.defer(function(res, rej) { -1 19755 var params = { -1 19756 options: options, -1 19757 command: command, -1 19758 parameter: parameter, -1 19759 context: context -1 19760 }; -1 19761 function callback(results) { -1 19762 if (!results) { -1 19763 return res(null); 19683 19764 }19684 -1 this._cache[key] = this._cache.computedStyle.getPropertyValue(property);19685 -1 }19686 -1 return this._cache[key];19687 -1 }19688 -1 }, {19689 -1 key: 'isFocusable',19690 -1 get: function get() {19691 -1 if (!this._cache.hasOwnProperty('isFocusable')) {19692 -1 this._cache.isFocusable = _isFocusable(this.actualNode);-1 19765 return res({ -1 19766 results: results, -1 19767 frameElement: frameElement -1 19768 }); 19693 19769 }19694 -1 return this._cache.isFocusable;-1 19770 _sendCommandToFrame(frameElement, params, callback, rej); -1 19771 }); -1 19772 }); -1 19773 q.then(function(data) { -1 19774 resolve(merge_results_default(data, options)); -1 19775 })['catch'](reject); -1 19776 } -1 19777 function _contains(vNode, otherVNode) { -1 19778 if (!vNode.shadowId && !otherVNode.shadowId && vNode.actualNode && typeof vNode.actualNode.contains === 'function') { -1 19779 return vNode.actualNode.contains(otherVNode.actualNode); -1 19780 } -1 19781 do { -1 19782 if (vNode === otherVNode) { -1 19783 return true; -1 19784 } else if (otherVNode.nodeIndex < vNode.nodeIndex) { -1 19785 return false; 19695 19786 }19696 -1 }, {19697 -1 key: 'tabbableElements',19698 -1 get: function get() {19699 -1 if (!this._cache.hasOwnProperty('tabbableElements')) {19700 -1 this._cache.tabbableElements = get_tabbable_elements_default(this);19701 -1 }19702 -1 return this._cache.tabbableElements;-1 19787 otherVNode = otherVNode.parent; -1 19788 } while (otherVNode); -1 19789 return false; -1 19790 } -1 19791 function deepMerge() { -1 19792 var target = {}; -1 19793 for (var _len6 = arguments.length, sources = new Array(_len6), _key8 = 0; _key8 < _len6; _key8++) { -1 19794 sources[_key8] = arguments[_key8]; -1 19795 } -1 19796 sources.forEach(function(source) { -1 19797 if (!source || _typeof(source) !== 'object' || Array.isArray(source)) { -1 19798 return; 19703 19799 }19704 -1 }, {19705 -1 key: 'clientRects',19706 -1 get: function get() {19707 -1 if (!this._cache.hasOwnProperty('clientRects')) {19708 -1 this._cache.clientRects = Array.from(this.actualNode.getClientRects()).filter(function(rect) {19709 -1 return rect.width > 0;19710 -1 });-1 19800 for (var _i9 = 0, _Object$keys2 = Object.keys(source); _i9 < _Object$keys2.length; _i9++) { -1 19801 var _key9 = _Object$keys2[_i9]; -1 19802 if (!target.hasOwnProperty(_key9) || _typeof(source[_key9]) !== 'object' || Array.isArray(target[_key9])) { -1 19803 target[_key9] = source[_key9]; -1 19804 } else { -1 19805 target[_key9] = deepMerge(target[_key9], source[_key9]); 19711 19806 }19712 -1 return this._cache.clientRects;19713 19807 }19714 -1 }, {19715 -1 key: 'boundingClientRect',19716 -1 get: function get() {19717 -1 if (!this._cache.hasOwnProperty('boundingClientRect')) {19718 -1 this._cache.boundingClientRect = this.actualNode.getBoundingClientRect();19719 -1 }19720 -1 return this._cache.boundingClientRect;-1 19808 }); -1 19809 return target; -1 19810 } -1 19811 var deep_merge_default = deepMerge; -1 19812 function extendMetaData(to2, from) { -1 19813 Object.assign(to2, from); -1 19814 Object.keys(from).filter(function(prop) { -1 19815 return typeof from[prop] === 'function'; -1 19816 }).forEach(function(prop) { -1 19817 to2[prop] = null; -1 19818 try { -1 19819 to2[prop] = from[prop](to2); -1 19820 } catch (_unused4) {} -1 19821 }); -1 19822 } -1 19823 var extend_meta_data_default = extendMetaData; -1 19824 var possibleShadowRoots = [ 'article', 'aside', 'blockquote', 'body', 'div', 'footer', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'header', 'main', 'nav', 'p', 'section', 'span' ]; -1 19825 function isShadowRoot(node) { -1 19826 if (node.shadowRoot) { -1 19827 var nodeName2 = node.nodeName.toLowerCase(); -1 19828 if (possibleShadowRoots.includes(nodeName2) || /^[a-z][a-z0-9_.-]*-[a-z0-9_.-]*$/.test(nodeName2)) { -1 19829 return true; 19721 19830 }19722 -1 } ]);19723 -1 }(abstract_virtual_node_default);19724 -1 var virtual_node_default = VirtualNode;-1 19831 } -1 19832 return false; -1 19833 } -1 19834 var is_shadow_root_default = isShadowRoot; 19725 19835 function tokenList(str) { 19726 19836 return (str || '').trim().replace(/\s{2,}/g, ' ').split(' '); 19727 19837 } @@ -19733,8 +19843,8 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate : 19733 19843 return; 19734 19844 } 19735 19845 var shadowId = domTree[0].shadowId;19736 -1 for (var _i23 = 0; _i23 < expressions.length; _i23++) {19737 -1 if (expressions[_i23].length > 1 && expressions[_i23].some(function(expression) {-1 19846 for (var _i0 = 0; _i0 < expressions.length; _i0++) { -1 19847 if (expressions[_i0].length > 1 && expressions[_i0].some(function(expression) { 19738 19848 return isGlobalSelector(expression); 19739 19849 })) { 19740 19850 return; @@ -19795,9 +19905,9 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate : 19795 19905 nodes = nodes ? getSharedValues(_cachedNodes, nodes) : _cachedNodes; 19796 19906 } 19797 19907 if (exp.attributes) {19798 -1 for (var _i24 = 0; _i24 < exp.attributes.length; _i24++) {-1 19908 for (var _i1 = 0; _i1 < exp.attributes.length; _i1++) { 19799 19909 var _selectorMap;19800 -1 var attr = exp.attributes[_i24];-1 19910 var attr = exp.attributes[_i1]; 19801 19911 if (attr.type === 'attrValue') { 19802 19912 isComplexSelector = true; 19803 19913 } @@ -19858,78 +19968,70 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate : 19858 19968 return tree; 19859 19969 } 19860 19970 function getSlotChildren(node) {19861 -1 var retVal = [];-1 19971 var childNodes = []; 19862 19972 node = node.firstChild; 19863 19973 while (node) {19864 -1 retVal.push(node);-1 19974 childNodes.push(node); 19865 19975 node = node.nextSibling; 19866 19976 }19867 -1 return retVal;-1 19977 return childNodes; 19868 19978 } 19869 19979 function createNode(node, parent, shadowId) { 19870 19980 var vNode = new virtual_node_default(node, parent, shadowId); 19871 19981 cacheNodeSelectors(vNode, cache_default.get('selectorMap')); 19872 19982 return vNode; 19873 19983 }19874 -1 function flattenTree(node, shadowId, parent) {19875 -1 var retVal, realArray;19876 -1 function reduceShadowDOM(res, child, parentVNode) {19877 -1 var replacements = flattenTree(child, shadowId, parentVNode);19878 -1 if (replacements) {19879 -1 res = res.concat(replacements);-1 19984 function createChildren(childNodes, parent, shadowId) { -1 19985 var children = []; -1 19986 childNodes.forEach(function(childNode) { -1 19987 var child = flattenTree(childNode, shadowId, parent); -1 19988 if (child) { -1 19989 children.push.apply(children, _toConsumableArray(child)); 19880 19990 }19881 -1 return res;19882 -1 }-1 19991 }); -1 19992 return children; -1 19993 } -1 19994 function flattenTree(node, shadowId, parent) { -1 19995 var vNode, childNodes; 19883 19996 if (node.documentElement) { 19884 19997 node = node.documentElement; 19885 19998 } 19886 19999 var nodeName2 = node.nodeName.toLowerCase(); 19887 20000 if (is_shadow_root_default(node)) { 19888 20001 hasShadowRoot = true;19889 -1 retVal = createNode(node, parent, shadowId);-1 20002 vNode = createNode(node, parent, shadowId); 19890 20003 shadowId = 'a' + Math.random().toString().substring(2);19891 -1 realArray = Array.from(node.shadowRoot.childNodes);19892 -1 retVal.children = realArray.reduce(function(res, child) {19893 -1 return reduceShadowDOM(res, child, retVal);19894 -1 }, []);19895 -1 return [ retVal ];19896 -1 } else {19897 -1 if (nodeName2 === 'content' && typeof node.getDistributedNodes === 'function') {19898 -1 realArray = Array.from(node.getDistributedNodes());19899 -1 return realArray.reduce(function(res, child) {19900 -1 return reduceShadowDOM(res, child, parent);19901 -1 }, []);19902 -1 } else if (nodeName2 === 'slot' && typeof node.assignedNodes === 'function') {19903 -1 realArray = Array.from(node.assignedNodes());19904 -1 if (!realArray.length) {19905 -1 realArray = getSlotChildren(node);19906 -1 }19907 -1 var styl = window.getComputedStyle(node);19908 -1 if (false) {19909 -1 retVal = createNode(node, parent, shadowId);19910 -1 retVal.children = realArray.reduce(function(res, child) {19911 -1 return reduceShadowDOM(res, child, retVal);19912 -1 }, []);19913 -1 return [ retVal ];19914 -1 } else {19915 -1 return realArray.reduce(function(res, child) {19916 -1 return reduceShadowDOM(res, child, parent);19917 -1 }, []);19918 -1 }19919 -1 } else {19920 -1 if (node.nodeType === 1) {19921 -1 retVal = createNode(node, parent, shadowId);19922 -1 realArray = Array.from(node.childNodes);19923 -1 retVal.children = realArray.reduce(function(res, child) {19924 -1 return reduceShadowDOM(res, child, retVal);19925 -1 }, []);19926 -1 return [ retVal ];19927 -1 } else if (node.nodeType === 3) {19928 -1 return [ createNode(node, parent) ];19929 -1 }19930 -1 return void 0;-1 20004 childNodes = Array.from(node.shadowRoot.childNodes); -1 20005 vNode.children = createChildren(childNodes, vNode, shadowId); -1 20006 return [ vNode ]; -1 20007 } -1 20008 if (nodeName2 === 'content' && typeof node.getDistributedNodes === 'function') { -1 20009 childNodes = Array.from(node.getDistributedNodes()); -1 20010 return createChildren(childNodes, parent, shadowId); -1 20011 } -1 20012 if (nodeName2 === 'slot' && typeof node.assignedNodes === 'function') { -1 20013 childNodes = Array.from(node.assignedNodes()); -1 20014 if (!childNodes.length) { -1 20015 childNodes = getSlotChildren(node); -1 20016 } -1 20017 var styl = window.getComputedStyle(node); -1 20018 if (false) { -1 20019 vNode = createNode(node, parent, shadowId); -1 20020 vNode.children = createChildren(childNodes, vNode, shadowId); -1 20021 return [ vNode ]; 19931 20022 } -1 20023 return createChildren(childNodes, parent, shadowId); -1 20024 } -1 20025 if (node.nodeType === document.ELEMENT_NODE) { -1 20026 vNode = createNode(node, parent, shadowId); -1 20027 childNodes = Array.from(node.childNodes); -1 20028 vNode.children = createChildren(childNodes, vNode, shadowId); -1 20029 return [ vNode ]; -1 20030 } -1 20031 if (node.nodeType === document.TEXT_NODE) { -1 20032 return [ createNode(node, parent) ]; 19932 20033 } -1 20034 return void 0; 19933 20035 } 19934 20036 function getBaseLang(lang) { 19935 20037 if (!lang) { @@ -20150,22 +20252,22 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate : 20150 20252 if (!win.navigator || _typeof(win.navigator) !== 'object') { 20151 20253 return {}; 20152 20254 }20153 -1 var navigator2 = win.navigator, innerHeight = win.innerHeight, innerWidth = win.innerWidth;20154 -1 var _ref64 = getOrientation(win) || {}, angle = _ref64.angle, type2 = _ref64.type;-1 20255 var navigator = win.navigator, innerHeight = win.innerHeight, innerWidth = win.innerWidth; -1 20256 var _ref62 = getOrientation(win) || {}, angle = _ref62.angle, type2 = _ref62.type; 20155 20257 return {20156 -1 userAgent: navigator2.userAgent,-1 20258 userAgent: navigator.userAgent, 20157 20259 windowWidth: innerWidth, 20158 20260 windowHeight: innerHeight, 20159 20261 orientationAngle: angle, 20160 20262 orientationType: type2 20161 20263 }; 20162 20264 }20163 -1 function getOrientation(_ref65) {20164 -1 var screen = _ref65.screen;-1 20265 function getOrientation(_ref63) { -1 20266 var screen = _ref63.screen; 20165 20267 return screen.orientation || screen.msOrientation || screen.mozOrientation; 20166 20268 }20167 -1 function createFrameContext(frame, _ref66) {20168 -1 var focusable = _ref66.focusable, page = _ref66.page;-1 20269 function createFrameContext(frame, _ref64) { -1 20270 var focusable = _ref64.focusable, page = _ref64.page; 20169 20271 return { 20170 20272 node: frame, 20171 20273 include: [], @@ -20225,8 +20327,8 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate : 20225 20327 if (!_isArrayLike(selectorList)) { 20226 20328 selectorList = [ selectorList ]; 20227 20329 }20228 -1 for (var _i25 = 0; _i25 < selectorList.length; _i25++) {20229 -1 var normalizedSelector = normalizeContextSelector(selectorList[_i25]);-1 20330 for (var _i10 = 0; _i10 < selectorList.length; _i10++) { -1 20331 var normalizedSelector = normalizeContextSelector(selectorList[_i10]); 20230 20332 if (normalizedSelector) { 20231 20333 normalizedList.push(normalizedSelector); 20232 20334 } @@ -20299,11 +20401,16 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate : 20299 20401 } 20300 20402 function parseSelectorArray(context, type2) { 20301 20403 var result = [];20302 -1 for (var _i26 = 0, l = context[type2].length; _i26 < l; _i26++) {20303 -1 var item = context[type2][_i26];-1 20404 for (var _i11 = 0, l = context[type2].length; _i11 < l; _i11++) { -1 20405 var item = context[type2][_i11]; 20304 20406 if (item instanceof window.Node) { 20305 20407 if (item.documentElement instanceof window.Node) { 20306 20408 result.push(context.flatTree[0]); -1 20409 } else if (item.host instanceof window.Node) { -1 20410 var children = Array.from(item.children).map(function(child) { -1 20411 return get_node_from_tree_default(child); -1 20412 }); -1 20413 result.push.apply(result, _toConsumableArray(children)); 20307 20414 } else { 20308 20415 result.push(get_node_from_tree_default(item)); 20309 20416 } @@ -20338,13 +20445,13 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate : 20338 20445 }); 20339 20446 } 20340 20447 function Context(spec, flatTree) {20341 -1 var _spec2, _spec3, _spec4, _spec5, _this5 = this;20342 -1 spec = _clone(spec);-1 20448 var _spec, _spec2, _spec3, _spec4, _this5 = this; -1 20449 spec = clone2(spec); 20343 20450 this.frames = [];20344 -1 this.page = typeof ((_spec2 = spec) === null || _spec2 === void 0 ? void 0 : _spec2.page) === 'boolean' ? spec.page : void 0;20345 -1 this.initiator = typeof ((_spec3 = spec) === null || _spec3 === void 0 ? void 0 : _spec3.initiator) === 'boolean' ? spec.initiator : true;20346 -1 this.focusable = typeof ((_spec4 = spec) === null || _spec4 === void 0 ? void 0 : _spec4.focusable) === 'boolean' ? spec.focusable : true;20347 -1 this.size = _typeof((_spec5 = spec) === null || _spec5 === void 0 ? void 0 : _spec5.size) === 'object' ? spec.size : {};-1 20451 this.page = typeof ((_spec = spec) === null || _spec === void 0 ? void 0 : _spec.page) === 'boolean' ? spec.page : void 0; -1 20452 this.initiator = typeof ((_spec2 = spec) === null || _spec2 === void 0 ? void 0 : _spec2.initiator) === 'boolean' ? spec.initiator : true; -1 20453 this.focusable = typeof ((_spec3 = spec) === null || _spec3 === void 0 ? void 0 : _spec3.focusable) === 'boolean' ? spec.focusable : true; -1 20454 this.size = _typeof((_spec4 = spec) === null || _spec4 === void 0 ? void 0 : _spec4.size) === 'object' ? spec.size : {}; 20348 20455 spec = normalizeContext(spec); 20349 20456 this.flatTree = flatTree !== null && flatTree !== void 0 ? flatTree : _getFlattenedTree(getRootNode2(spec)); 20350 20457 this.exclude = spec.exclude; @@ -20374,8 +20481,8 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate : 20374 20481 } 20375 20482 context.frames.push(createFrameContext(frame, context)); 20376 20483 }20377 -1 function isPageContext(_ref67) {20378 -1 var include = _ref67.include;-1 20484 function isPageContext(_ref65) { -1 20485 var include = _ref65.include; 20379 20486 return include.length === 1 && include[0].actualNode === document.documentElement; 20380 20487 } 20381 20488 function validateContext(context) { @@ -20384,11 +20491,11 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate : 20384 20491 throw new Error('No elements found for include in ' + env + ' Context'); 20385 20492 } 20386 20493 }20387 -1 function getRootNode2(_ref68) {20388 -1 var include = _ref68.include, exclude = _ref68.exclude;-1 20494 function getRootNode2(_ref66) { -1 20495 var include = _ref66.include, exclude = _ref66.exclude; 20389 20496 var selectors = Array.from(include).concat(Array.from(exclude));20390 -1 for (var _i27 = 0; _i27 < selectors.length; _i27++) {20391 -1 var item = selectors[_i27];-1 20497 for (var _i12 = 0; _i12 < selectors.length; _i12++) { -1 20498 var item = selectors[_i12]; 20392 20499 if (item instanceof window.Element) { 20393 20500 return item.ownerDocument.documentElement; 20394 20501 } @@ -20404,8 +20511,8 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate : 20404 20511 return []; 20405 20512 } 20406 20513 var _Context = new Context(context), frames = _Context.frames;20407 -1 return frames.map(function(_ref69) {20408 -1 var node = _ref69.node, frameContext = _objectWithoutProperties(_ref69, _excluded14);-1 20514 return frames.map(function(_ref67) { -1 20515 var node = _ref67.node, frameContext = _objectWithoutProperties(_ref67, _excluded12); 20409 20516 frameContext.initiator = false; 20410 20517 var frameSelector = _getAncestry(node); 20411 20518 return { @@ -20415,8 +20522,8 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate : 20415 20522 }); 20416 20523 } 20417 20524 function _getRule(ruleId) {20418 -1 var rule = axe._audit.rules.find(function(_ref70) {20419 -1 var id = _ref70.id;-1 20525 var rule = axe._audit.rules.find(function(_ref68) { -1 20526 var id = _ref68.id; 20420 20527 return id === ruleId; 20421 20528 }); 20422 20529 if (!rule) { @@ -20472,7 +20579,7 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate : 20472 20579 } 20473 20580 var get_scroll_state_default = getScrollState; 20474 20581 function _getStandards() {20475 -1 return _clone(standards_default);-1 20582 return clone2(standards_default); 20476 20583 } 20477 20584 function getStyleSheetFactory(dynamicDoc) { 20478 20585 if (!dynamicDoc) { @@ -20581,8 +20688,8 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate : 20581 20688 return !!standards_default.htmlElms[nodeName2]; 20582 20689 } 20583 20690 var is_html_element_default = isHtmlElement;20584 -1 function _isNodeInContext(node, _ref71) {20585 -1 var _ref71$include = _ref71.include, include = _ref71$include === void 0 ? [] : _ref71$include, _ref71$exclude = _ref71.exclude, exclude = _ref71$exclude === void 0 ? [] : _ref71$exclude;-1 20691 function _isNodeInContext(node, _ref69) { -1 20692 var _ref69$include = _ref69.include, include = _ref69$include === void 0 ? [] : _ref69$include, _ref69$exclude = _ref69.exclude, exclude = _ref69$exclude === void 0 ? [] : _ref69$exclude; 20586 20693 var filterInclude = include.filter(function(candidate) { 20587 20694 return _contains(candidate, node); 20588 20695 }); @@ -20770,62 +20877,105 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate : 20770 20877 return window.performance.now(); 20771 20878 } 20772 20879 }20773 -1 var originalTime = null;20774 -1 var lastRecordedTime = now();-1 20880 var axeStartTime = now(); -1 20881 var axeStarted = false; 20775 20882 return { 20776 20883 start: function start() { -1 20884 this.reset(); -1 20885 axeStarted = true; 20777 20886 this.mark('mark_axe_start'); 20778 20887 }, 20779 20888 end: function end() { 20780 20889 this.mark('mark_axe_end');20781 -1 this.measure('axe', 'mark_axe_start', 'mark_axe_end');-1 20890 this.measure('axe', 'mark_axe_start', 'mark_axe_end', true); 20782 20891 this.logMeasures('axe'); -1 20892 this.clearMark('mark_axe_start', 'mark_axe_end'); -1 20893 axeStarted = false; 20783 20894 }, 20784 20895 auditStart: function auditStart() { -1 20896 if (!axeStarted) { -1 20897 this.reset(); -1 20898 } 20785 20899 this.mark('mark_audit_start'); 20786 20900 }, 20787 20901 auditEnd: function auditEnd() { 20788 20902 this.mark('mark_audit_end');20789 -1 this.measure('audit_start_to_end', 'mark_audit_start', 'mark_audit_end');-1 20903 this.measure('audit_start_to_end', 'mark_audit_start', 'mark_audit_end', true); 20790 20904 this.logMeasures(); -1 20905 this.clearMark('mark_audit_start', 'mark_audit_end'); 20791 20906 }, 20792 20907 mark: function mark(markName) {20793 -1 if (window.performance && window.performance.mark !== void 0) {-1 20908 var _window$performance; -1 20909 if ((_window$performance = window.performance) !== null && _window$performance !== void 0 && _window$performance.mark) { 20794 20910 window.performance.mark(markName); 20795 20911 } 20796 20912 }, 20797 20913 measure: function measure(measureName, startMark, endMark) {20798 -1 if (window.performance && window.performance.measure !== void 0) {-1 20914 var _window$performance2; -1 20915 var keepMarks = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false; -1 20916 if (!((_window$performance2 = window.performance) !== null && _window$performance2 !== void 0 && _window$performance2.measure)) { -1 20917 return; -1 20918 } -1 20919 try { 20799 20920 window.performance.measure(measureName, startMark, endMark); -1 20921 } catch (e) { -1 20922 this._log(e); -1 20923 } -1 20924 if (!keepMarks) { -1 20925 this.clearMark(startMark, endMark); 20800 20926 } 20801 20927 }, 20802 20928 logMeasures: function logMeasures(measureName) {20803 -1 function logMeasure(req) {20804 -1 log_default('Measure ' + req.name + ' took ' + req.duration + 'ms');-1 20929 var _this6 = this, _window$performance3, _window$performance4; -1 20930 var last2 = function last2(arr) { -1 20931 return Array.isArray(arr) ? arr[arr.length - 1] : arr; -1 20932 }; -1 20933 var logMeasure = function logMeasure(req) { -1 20934 _this6._log('Measure ' + req.name + ' took ' + req.duration + 'ms'); -1 20935 }; -1 20936 if (!((_window$performance3 = window.performance) !== null && _window$performance3 !== void 0 && _window$performance3.getEntriesByType) || !((_window$performance4 = window.performance) !== null && _window$performance4 !== void 0 && _window$performance4.getEntriesByName)) { -1 20937 return; 20805 20938 }20806 -1 if (window.performance && window.performance.getEntriesByType !== void 0) {20807 -1 var axeStart = window.performance.getEntriesByName('mark_axe_start')[0];20808 -1 var measures = window.performance.getEntriesByType('measure').filter(function(measure) {20809 -1 return measure.startTime >= axeStart.startTime;20810 -1 });20811 -1 for (var _i28 = 0; _i28 < measures.length; ++_i28) {20812 -1 var req = measures[_i28];20813 -1 if (req.name === measureName) {20814 -1 logMeasure(req);20815 -1 return;20816 -1 }-1 20939 var axeStart = last2(window.performance.getEntriesByName('mark_axe_start')) || last2(window.performance.getEntriesByName('mark_audit_start')); -1 20940 if (!axeStart) { -1 20941 this._log('Axe must be started before using performanceTimer'); -1 20942 return; -1 20943 } -1 20944 var measures = window.performance.getEntriesByType('measure').filter(function(measure) { -1 20945 return measure.startTime >= axeStart.startTime; -1 20946 }); -1 20947 for (var _i13 = 0; _i13 < measures.length; ++_i13) { -1 20948 var req = measures[_i13]; -1 20949 if (req.name === measureName) { -1 20950 logMeasure(req); -1 20951 return; -1 20952 } else if (!measureName) { 20817 20953 logMeasure(req); 20818 20954 } 20819 20955 } 20820 20956 }, 20821 20957 timeElapsed: function timeElapsed() {20822 -1 return now() - lastRecordedTime;-1 20958 var currentTime = now(); -1 20959 return currentTime - axeStartTime; 20823 20960 },20824 -1 reset: function reset() {20825 -1 if (!originalTime) {20826 -1 originalTime = now();-1 20961 clearMark: function clearMark() { -1 20962 var _window$performance5; -1 20963 if (!((_window$performance5 = window.performance) !== null && _window$performance5 !== void 0 && _window$performance5.clearMarks)) { -1 20964 return; -1 20965 } -1 20966 for (var _len7 = arguments.length, markNames = new Array(_len7), _key0 = 0; _key0 < _len7; _key0++) { -1 20967 markNames[_key0] = arguments[_key0]; 20827 20968 }20828 -1 lastRecordedTime = now();-1 20969 for (var _i14 = 0, _markNames = markNames; _i14 < _markNames.length; _i14++) { -1 20970 var markName = _markNames[_i14]; -1 20971 window.performance.clearMarks(markName); -1 20972 } -1 20973 }, -1 20974 reset: function reset() { -1 20975 axeStartTime = now(); -1 20976 }, -1 20977 _log: function _log(message) { -1 20978 log_default(message); 20829 20979 } 20830 20980 }; 20831 20981 }(); @@ -20903,9 +21053,9 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate : 20903 21053 var childAny = null; 20904 21054 var combinedLength = (((_currentLevel$anyLeve = currentLevel.anyLevel) === null || _currentLevel$anyLeve === void 0 ? void 0 : _currentLevel$anyLeve.length) || 0) + (((_currentLevel$thisLev = currentLevel.thisLevel) === null || _currentLevel$thisLev === void 0 ? void 0 : _currentLevel$thisLev.length) || 0); 20905 21055 var added = false;20906 -1 for (var _i29 = 0; _i29 < combinedLength; _i29++) {-1 21056 for (var _i15 = 0; _i15 < combinedLength; _i15++) { 20907 21057 var _currentLevel$anyLeve2, _currentLevel$anyLeve3, _currentLevel$anyLeve4;20908 -1 var exp = _i29 < (((_currentLevel$anyLeve2 = currentLevel.anyLevel) === null || _currentLevel$anyLeve2 === void 0 ? void 0 : _currentLevel$anyLeve2.length) || 0) ? currentLevel.anyLevel[_i29] : currentLevel.thisLevel[_i29 - (((_currentLevel$anyLeve3 = currentLevel.anyLevel) === null || _currentLevel$anyLeve3 === void 0 ? void 0 : _currentLevel$anyLeve3.length) || 0)];-1 21058 var exp = _i15 < (((_currentLevel$anyLeve2 = currentLevel.anyLevel) === null || _currentLevel$anyLeve2 === void 0 ? void 0 : _currentLevel$anyLeve2.length) || 0) ? currentLevel.anyLevel[_i15] : currentLevel.thisLevel[_i15 - (((_currentLevel$anyLeve3 = currentLevel.anyLevel) === null || _currentLevel$anyLeve3 === void 0 ? void 0 : _currentLevel$anyLeve3.length) || 0)]; 20909 21059 if ((!exp[0].id || vNode.shadowId === currentLevel.parentShadowId) && _matchesExpression(vNode, exp[0])) { 20910 21060 if (exp.length === 1) { 20911 21061 if (!added && (!filter || filter(vNode))) { @@ -20949,8 +21099,8 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate : 20949 21099 return matchExpressions(domTree, expressions, filter); 20950 21100 } 20951 21101 var query_selector_all_filter_default = querySelectorAllFilter;20952 -1 function preloadCssom(_ref72) {20953 -1 var _ref72$treeRoot = _ref72.treeRoot, treeRoot = _ref72$treeRoot === void 0 ? axe._tree[0] : _ref72$treeRoot;-1 21102 function preloadCssom(_ref70) { -1 21103 var _ref70$treeRoot = _ref70.treeRoot, treeRoot = _ref70$treeRoot === void 0 ? axe._tree[0] : _ref70$treeRoot; 20954 21104 var rootNodes = getAllRootNodesInTree(treeRoot); 20955 21105 if (!rootNodes.length) { 20956 21106 return Promise.resolve(); @@ -20980,8 +21130,8 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate : 20980 21130 } 20981 21131 function getCssomForAllRootNodes(rootNodes, convertDataToStylesheet) { 20982 21132 var promises = [];20983 -1 rootNodes.forEach(function(_ref73, index) {20984 -1 var rootNode = _ref73.rootNode, shadowId = _ref73.shadowId;-1 21133 rootNodes.forEach(function(_ref71, index) { -1 21134 var rootNode = _ref71.rootNode, shadowId = _ref71.shadowId; 20985 21135 var sheets = getStylesheetsOfRootNode(rootNode, shadowId, convertDataToStylesheet); 20986 21136 if (!sheets) { 20987 21137 return Promise.all(promises); @@ -21067,10 +21217,10 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate : 21067 21217 return true; 21068 21218 }); 21069 21219 }21070 -1 function preloadMedia(_ref74) {21071 -1 var _ref74$treeRoot = _ref74.treeRoot, treeRoot = _ref74$treeRoot === void 0 ? axe._tree[0] : _ref74$treeRoot;21072 -1 var mediaVirtualNodes = query_selector_all_filter_default(treeRoot, 'video[autoplay], audio[autoplay]', function(_ref75) {21073 -1 var actualNode = _ref75.actualNode;-1 21220 function preloadMedia(_ref72) { -1 21221 var _ref72$treeRoot = _ref72.treeRoot, treeRoot = _ref72$treeRoot === void 0 ? axe._tree[0] : _ref72$treeRoot; -1 21222 var mediaVirtualNodes = query_selector_all_filter_default(treeRoot, 'video[autoplay], audio[autoplay]', function(_ref73) { -1 21223 var actualNode = _ref73.actualNode; 21074 21224 if (actualNode.preload === 'none' && actualNode.readyState === 0 && actualNode.networkState !== actualNode.NETWORK_LOADING) { 21075 21225 return false; 21076 21226 } @@ -21088,8 +21238,8 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate : 21088 21238 } 21089 21239 return true; 21090 21240 });21091 -1 return Promise.all(mediaVirtualNodes.map(function(_ref76) {21092 -1 var actualNode = _ref76.actualNode;-1 21241 return Promise.all(mediaVirtualNodes.map(function(_ref74) { -1 21242 var actualNode = _ref74.actualNode; 21093 21243 return isMediaElementReady(actualNode); 21094 21244 })); 21095 21245 } @@ -21177,7 +21327,7 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate : 21177 21327 var checksData = axe._audit.data.checks || {}; 21178 21328 var rulesData = axe._audit.data.rules || {}; 21179 21329 var rule = find_by_default(axe._audit.rules, 'id', ruleResult.id) || {};21180 -1 ruleResult.tags = _clone(rule.tags || []);-1 21330 ruleResult.tags = clone2(rule.tags || []); 21181 21331 var shouldBeTrue = extender(checksData, true, rule); 21182 21332 var shouldBeFalse = extender(checksData, false, rule); 21183 21333 ruleResult.nodes.forEach(function(detail) { @@ -21185,7 +21335,7 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate : 21185 21335 detail.all.forEach(shouldBeTrue); 21186 21336 detail.none.forEach(shouldBeFalse); 21187 21337 });21188 -1 extend_meta_data_default(ruleResult, _clone(rulesData[ruleResult.id] || {}));-1 21338 extend_meta_data_default(ruleResult, clone2(rulesData[ruleResult.id] || {})); 21189 21339 } 21190 21340 function getIncompleteReason(checkData, messages) { 21191 21341 function getDefaultMsg(message) { @@ -21338,8 +21488,8 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate : 21338 21488 } 21339 21489 var outerIncludes = getOuterIncludes(context.include); 21340 21490 var isInContext = getContextFilter(context);21341 -1 for (var _i30 = 0; _i30 < outerIncludes.length; _i30++) {21342 -1 candidate = outerIncludes[_i30];-1 21491 for (var _i16 = 0; _i16 < outerIncludes.length; _i16++) { -1 21492 candidate = outerIncludes[_i16]; 21343 21493 var nodes = query_selector_all_filter_default(candidate, selector, isInContext); 21344 21494 result = mergeArrayUniques(result, nodes); 21345 21495 } @@ -21376,13 +21526,68 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate : 21376 21526 arr1 = arr2; 21377 21527 arr2 = temp; 21378 21528 }21379 -1 for (var _i31 = 0, l = arr2.length; _i31 < l; _i31++) {21380 -1 if (!arr1.includes(arr2[_i31])) {21381 -1 arr1.push(arr2[_i31]);-1 21529 for (var _i17 = 0, l = arr2.length; _i17 < l; _i17++) { -1 21530 if (!arr1.includes(arr2[_i17])) { -1 21531 arr1.push(arr2[_i17]); 21382 21532 } 21383 21533 } 21384 21534 return arr1; 21385 21535 } -1 21536 function _serializeError(err2) { -1 21537 var iteration = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0; -1 21538 if (_typeof(err2) !== 'object' || err2 === null) { -1 21539 return { -1 21540 message: String(err2) -1 21541 }; -1 21542 } -1 21543 var serial = {}; -1 21544 var _iterator13 = _createForOfIteratorHelper(constants_default.serializableErrorProps), _step13; -1 21545 try { -1 21546 for (_iterator13.s(); !(_step13 = _iterator13.n()).done; ) { -1 21547 var prop = _step13.value; -1 21548 if ([ 'string', 'number', 'boolean' ].includes(_typeof(err2[prop]))) { -1 21549 serial[prop] = err2[prop]; -1 21550 } -1 21551 } -1 21552 } catch (err) { -1 21553 _iterator13.e(err); -1 21554 } finally { -1 21555 _iterator13.f(); -1 21556 } -1 21557 if (err2.cause) { -1 21558 serial.cause = iteration < 10 ? _serializeError(err2.cause, iteration + 1) : '...'; -1 21559 } -1 21560 return serial; -1 21561 } -1 21562 var RuleError = function(_Error) { -1 21563 function RuleError(_ref76) { -1 21564 var _error$name; -1 21565 var _this7; -1 21566 var error = _ref76.error, ruleId = _ref76.ruleId, method = _ref76.method, errorNode = _ref76.errorNode; -1 21567 _classCallCheck(this, RuleError); -1 21568 _this7 = _callSuper(this, RuleError); -1 21569 _this7.name = (_error$name = error.name) !== null && _error$name !== void 0 ? _error$name : 'RuleError'; -1 21570 _this7.message = error.message; -1 21571 _this7.stack = error.stack; -1 21572 if (error.cause) { -1 21573 _this7.cause = _serializeError(error.cause); -1 21574 } -1 21575 if (ruleId) { -1 21576 _this7.ruleId = ruleId; -1 21577 _this7.message += ' Skipping '.concat(_this7.ruleId, ' rule.'); -1 21578 } -1 21579 if (method) { -1 21580 _this7.method = method; -1 21581 } -1 21582 if (errorNode) { -1 21583 _this7.errorNode = errorNode; -1 21584 } -1 21585 return _this7; -1 21586 } -1 21587 _inherits(RuleError, _Error); -1 21588 return _createClass(RuleError); -1 21589 }(_wrapNativeSuper(Error)); -1 21590 var rule_error_default = RuleError; 21386 21591 function setScroll(elm, top, left) { 21387 21592 if (elm === window) { 21388 21593 return elm.scroll(left, top); @@ -21392,8 +21597,8 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate : 21392 21597 } 21393 21598 } 21394 21599 function setScrollState(scrollState) {21395 -1 scrollState.forEach(function(_ref78) {21396 -1 var elm = _ref78.elm, top = _ref78.top, left = _ref78.left;-1 21600 scrollState.forEach(function(_ref77) { -1 21601 var elm = _ref77.elm, top = _ref77.top, left = _ref77.left; 21397 21602 return setScroll(elm, top, left); 21398 21603 }); 21399 21604 } @@ -21421,25 +21626,25 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate : 21421 21626 } 21422 21627 return selectAllRecursive(selectorArr, doc); 21423 21628 }21424 -1 function selectAllRecursive(_ref79, doc) {21425 -1 var _ref80 = _toArray(_ref79), selectorStr = _ref80[0], restSelector = _ref80.slice(1);-1 21629 function selectAllRecursive(_ref78, doc) { -1 21630 var _ref79 = _toArray(_ref78), selectorStr = _ref79[0], restSelector = _arrayLikeToArray(_ref79).slice(1); 21426 21631 var elms = doc.querySelectorAll(selectorStr); 21427 21632 if (restSelector.length === 0) { 21428 21633 return Array.from(elms); 21429 21634 } 21430 21635 var selected = [];21431 -1 var _iterator13 = _createForOfIteratorHelper(elms), _step13;-1 21636 var _iterator14 = _createForOfIteratorHelper(elms), _step14; 21432 21637 try {21433 -1 for (_iterator13.s(); !(_step13 = _iterator13.n()).done; ) {21434 -1 var elm = _step13.value;-1 21638 for (_iterator14.s(); !(_step14 = _iterator14.n()).done; ) { -1 21639 var elm = _step14.value; 21435 21640 if (elm !== null && elm !== void 0 && elm.shadowRoot) { 21436 21641 selected.push.apply(selected, _toConsumableArray(selectAllRecursive(restSelector, elm.shadowRoot))); 21437 21642 } 21438 21643 } 21439 21644 } catch (err) {21440 -1 _iterator13.e(err);-1 21645 _iterator14.e(err); 21441 21646 } finally {21442 -1 _iterator13.f();-1 21647 _iterator14.f(); 21443 21648 } 21444 21649 return selected; 21445 21650 } @@ -21447,14 +21652,14 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate : 21447 21652 return [ 'hidden', 'text', 'search', 'tel', 'url', 'email', 'password', 'date', 'month', 'week', 'time', 'datetime-local', 'number', 'range', 'color', 'checkbox', 'radio', 'file', 'submit', 'image', 'reset', 'button' ]; 21448 21653 } 21449 21654 var valid_input_type_default = validInputTypes;21450 -1 var langs = [ , [ , [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, , 1 ], [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , 1, 1, , 1, 1, 1, , 1, 1, , 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , 1, 1, , 1, 1, 1, 1, 1, 1, 1, , 1, , 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1 ], [ 1, 1, 1, 1, 1, 1, , , , , , 1, 1, 1, 1, , , 1, 1, 1, , 1, , 1, , 1, 1 ], [ 1, 1, 1, , 1, 1, , 1, 1, 1, , 1, , , 1, 1, 1, , , 1, 1, 1, , , , , 1 ], [ , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , 1, 1, , , , , 1, 1, 1, , 1, 1, 1, 1, 1, 1, , 1, 1, 1 ], [ , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , , 1, 1, 1 ], [ , 1, , , , , , 1, , 1, , , , , 1, , 1, , , , 1, 1, , 1, , , 1 ], [ 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ 1, 1, 1, 1, , 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , , , 1, 1, 1, 1, , , 1, , 1 ], [ , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , 1, , 1, 1, , , 1, , , , , 1, 1, 1, , 1, , 1, , 1, , , , , , 1 ], [ 1, , 1, 1, 1, 1, , , 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1 ], [ 1, , 1, , 1, , , , , 1, , 1, 1, 1, 1, 1, , , , 1, 1, 1, 1 ], [ , 1, 1, 1, 1, 1, , 1, 1, 1, , 1, , 1, 1, 1, , , 1, 1, 1, 1, 1, 1, 1, 1 ], [ , , 1, , , 1, , 1, , , , 1, 1, 1, , , , , , , , , , , 1 ], [ 1, 1, 1, 1, 1, 1, , 1, 1, 1, , 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, , , 1, 1, 1 ], [ 1, 1, 1, 1, 1, , , 1, , , 1, , , 1, 1, 1, , , , , 1, , , , , , 1 ] ], [ , [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, , 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1 ], [ , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1 ], [ 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ 1, 1, 1, 1, 1, 1, 1, 1, , , 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1 ], [ , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1 ], [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ 1, 1, 1, , , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1 ], [ , 1, 1, , 1, , , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1 ], [ , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1 ], [ , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1 ], [ , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, , 1 ], [ , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1 ], [ , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ] ], [ , [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1 ], [ , 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, , 1, 1, , 1, 1, 1, 1, 1, 1, 1, , 1 ], [ , 1, , 1, 1, 1, , 1, 1, , 1, , 1, 1, 1, 1, 1, 1, 1, 1 ], [ , 1, , 1, 1, 1, 1, 1, 1, 1, 1, , , 1, 1, 1, , , 1, 1, , , , , , 1, 1 ], [ 1, 1, 1, , , , , 1, , , , 1, 1, , 1, , , , , , 1, , , , , 1 ], [ , 1, , , 1, , , 1, , , , , , 1 ], [ , 1, , 1, , , , 1, , , , 1 ], [ 1, , 1, 1, 1, , 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, , , 1, 1, 1, 1 ], [ , 1, 1, 1, 1, 1, , , 1, , , 1, , 1, 1, , 1, , 1, , , , , 1, , 1 ], [ , 1, , , , 1, , , 1, 1, , 1, , 1, 1, 1, 1, , 1, 1, , , 1, , , 1 ], [ , 1, 1, , , , , , 1, , , , 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, , 1, 1, 1 ], [ , 1, , 1, 1, 1, , , 1, 1, 1, 1, 1, 1, , 1, , , , , 1, 1, , 1, , 1 ], [ , 1, , 1, , 1, , 1, , 1, , 1, 1, 1, 1, 1, , , 1, 1, 1 ], [ , 1, 1, 1, , , , 1, 1, 1, , 1, 1, , , 1, 1, , 1, 1, 1, 1, , 1, 1 ], [ 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, , , 1, 1, 1, 1, 1, 1, 1 ], [ , 1, 1, 1, , 1, 1, 1, , 1, , , , , 1, 1, 1, , , 1, , 1, , , 1, 1 ], [ , , , , 1, , , , , , , , , , , , , , , , , 1 ], [ 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1 ], [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1 ], [ , 1, , 1, 1, 1, , 1, 1, , , , 1, 1, 1, 1, 1, , , 1, 1, 1, , , , , 1 ], [ 1, 1, 1, 1, , , , 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ 1, , , , , , , 1, , , , , , , 1 ], [ , 1, 1, , 1, 1, , 1, , , , , , , , , , , , , 1 ], , [ 1, 1, 1, , , , , , , , , , , , , 1 ], [ , , , , , , , , 1, , , 1, , , 1, 1, , , , , 1 ] ], [ , [ 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1 ], [ , 1, 1, , 1, 1, 1, 1, , 1, 1, , 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, , 1 ], [ , , , 1, , , , , , , , , , , , , , , 1 ], [ , 1, , , 1, 1, , 1, , 1, 1, , , , 1, 1, , , 1, 1, , , , 1 ], [ 1, , , 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, , 1, 1, 1, 1, , , 1, , , , 1 ], , [ , 1, 1, 1, 1, 1, , 1, 1, 1, , 1, 1, , 1, 1, , , 1, 1, 1, 1, , 1, 1, , 1 ], [ , 1, , , 1, , , 1, , 1, , , 1, 1, 1, 1, , , 1, 1, , 1, 1, 1, 1 ], [ , 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1 ], [ , 1, 1, 1, 1, 1, 1, , , 1, 1, 1, 1, 1, 1, 1, , , 1, , , 1, , 1 ], [ , 1, , , , , , , , , , 1, 1, , , , , , 1, 1, , , , , 1 ], [ , , , , , , , 1, , , , 1, , 1, 1 ], [ , 1, 1, 1, 1, 1, 1, 1, , , , 1, 1, 1, 1, 1, , , 1, 1, , 1, 1, 1, 1, 1 ], [ , 1, , , 1, 1, , 1, , 1, 1, 1, , , 1, 1, , , 1, , 1, 1, 1, 1, , 1 ], [ , 1, 1, 1, , 1, 1, , 1, 1, , 1, 1, , 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1 ], [ , , , , , , , , , , , , , , , , 1 ], , [ , 1, 1, 1, 1, 1, , 1, 1, 1, , , 1, , 1, 1, , 1, 1, 1, 1, 1, , 1, , 1 ], [ , , 1, , , 1, , , 1, 1, , , 1, , 1, 1, , 1 ], [ , 1, 1, , 1, , , , 1, 1, , 1, , 1, 1, 1, 1, , 1, 1, 1, 1, , , , 1 ], [ , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1 ], [ 1, 1 ], [ , 1, , , , , , , , , , 1, 1, , , , , , 1, 1, , 1, , 1, , 1, 1 ], , [ , 1, 1, , 1, , , 1, , 1, , , , 1, 1, 1, , , , , , 1, , , , 1 ], [ 1, 1, , , 1, 1, , 1, , , , , 1, , 1 ] ], [ , [ , 1 ], [ , , , 1, , , , 1, , , , 1, , , , 1, , , 1, , , 1 ], [ , , , , , , , , , , , , , , , , , , 1, 1, , , , , , 1 ], , [ 1, , , , , 1 ], [ , 1, , , , 1, , , , 1 ], [ , 1, , , , , , , , , , , 1, , , 1, , , , , , , , , 1, 1 ], [ , , , , , , , , , , , , , , , , , , , , , 1 ], [ , , , , , , , , , , , , , , , , 1, , , , 1, , 1 ], [ , 1 ], [ , 1, , 1, , 1, , 1, , 1, , 1, 1, 1, , 1, 1, , 1, , , , , , , 1 ], [ 1, , , , , 1, , , 1, 1, , 1, , 1, , 1, 1, , , , , 1, , , 1 ], [ , 1, 1, , , 1, , 1, , 1, , 1, , 1, 1, 1, 1, , , 1, , 1, , 1, 1, 1 ], [ 1, 1, 1, 1, 1, , 1, , 1, , , , 1, 1, 1, 1, , 1, 1, , , 1, 1, 1, 1 ], [ 1, , , , , , , , , , , , , , , , , , , , 1 ], [ , , , , , , , , , 1 ], , [ , 1, , , , , , 1, 1, 1, , 1, , , , 1, , , 1, 1, 1, , , 1 ], [ 1, , , , , 1, , 1, 1, 1, , 1, 1, 1, 1, 1, , 1, , 1, , 1, , , 1, 1 ], [ 1, , 1, 1, , , , , 1, , , , , , 1, 1, , , 1, 1, 1, 1, , , 1, , 1 ], [ 1, , , , , , , , , , , , , , , , , 1 ], [ , , , , , 1, , , 1, , , , , , 1 ], [ , , , , , , , , , , , , , , , 1 ], [ , , , , , , , , , , , , , , , , , , , , 1 ], [ , 1, , , , , , , , , , , , , , 1 ], [ , 1, , , , 1 ] ], [ , [ 1, 1, 1, , 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, , 1, , 1, 1, , , 1, 1, 1 ], [ , , , , , , , , , , , , 1 ], [ , , , , , , , , , , , , , , , , , , , 1 ], , [ , , , , , , , , , , , , , , , , , , 1 ], [ 1, , , , , , , , , 1, , , , 1 ], [ , , , , , , , , , , , , , , , , , , 1 ], , [ 1, 1, , , , 1, 1, , , , , , 1, , , , 1, , 1, , 1, 1, , 1 ], [ 1 ], [ , , , , , , , , , , , 1, , , , , , , , , , , 1 ], [ , 1, , , , , , , 1, 1, , , 1, , 1, , , , 1, , , , , , , 1 ], [ , , , , , , , , , , , , , , , , 1, , , , , 1 ], [ , , 1, , , , , 1, , 1 ], [ 1, , , , 1, , , , , 1, , , , 1, 1, , , , 1, 1, , , , , 1 ], [ , , , , , 1 ], [ , , , , , , , , , , , , , , , , , , , 1 ], [ 1, , , 1, 1, , , , , , , 1, , 1, , 1, 1, 1, 1, 1, 1 ], [ , , , , , 1, , , , , , , 1, , , , , , , 1 ], , [ , , 1, 1, 1, 1, 1, , 1, 1, 1, , , 1, 1, , , 1, 1, , 1, 1, 1, , , 1 ], [ , , , , , , , , , , , , , , , , , , 1 ], [ , 1, , , , 1 ], , [ 1 ] ], [ , [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1 ], [ , , , 1, 1, 1, 1, , , , , , 1, , 1, , , , 1, , 1 ], [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, , , 1 ], [ , 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, , , , 1, , 1, , , 1, 1, 1, 1, 1 ], [ , , , , , , , , , , , 1, , , , , , , , , 1, , , , 1 ], [ , 1, 1, , 1, 1, , 1, , , , 1, 1, , 1, 1, , , 1, , 1, 1, , 1 ], [ , 1, , 1, , 1, , , 1, , , 1, 1, , 1, 1, , , 1, 1, 1 ], [ , 1, 1, 1, 1, 1, , 1, 1, , , , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1 ], [ , , , , , , , , , 1, , 1, , 1, 1, , , , 1, , , 1 ], [ , 1, , , 1, 1, , , , , , , , , 1, 1, 1, , , , , 1 ], [ 1, , , 1, 1, , , , 1, 1, 1, 1, 1, , , 1, , , 1, , , 1, , 1, , 1 ], [ , 1, 1, , 1, 1, , 1, 1, , , , 1, 1, 1, , , 1, 1, , , 1, 1, 1, 1, 1, 1 ], [ 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, , 1, 1, , 1, , , 1 ], [ , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1 ], [ , 1, , , , 1, , , , , , , , , 1 ], [ , 1, , , , , , , , 1, , , , , 1, , , , 1, , , 1 ], [ , 1, 1, 1, 1, , , 1, 1, 1, 1, 1, , 1, , 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , , , , , 1, , 1, , , , , 1, 1, 1, 1, 1, , , 1, , , , 1 ], [ , 1, , , , , , , , 1, , , , , , , , , , , , 1 ], [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1 ], [ 1, 1, , 1, , 1, 1, , , , 1, , 1, 1, 1, 1, 1, , 1, 1, , , , , , 1 ], [ , 1, 1, 1, 1, 1, 1, 1, , 1, 1, , , 1, 1, , , , 1, , 1, 1, , 1, 1 ], [ , , , , , , , , , , , , , , , , , , , , , , , , 1 ], [ , 1, 1, , 1, 1, 1, 1, , 1, , , 1, 1, 1, 1, , , 1, , , , , , , 1 ], [ , 1, , , , , , , , 1, , , , , 1 ] ], [ , [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , , 1, 1, 1, 1, 1 ], [ , 1, 1, , , , , , , , , , , , 1, 1, , , , , , 1 ], [ , 1, , , , , , , 1 ], [ , , , , , , , , , , , , , , 1, , , , , 1, , , , , , 1 ], [ 1, 1, , , 1, , , 1, 1, 1, , , , 1 ], , [ , , , , , , , , , , , , , 1, , , , , , , , , , 1 ], [ , , , , , , , , , 1, , , , , , , , , 1, , , , , , , 1 ], [ 1, 1, 1, , 1, , 1, 1, 1, 1, 1, 1, 1, 1, , 1, , , 1, , 1, , , 1, 1 ], [ , , , , , , , , , 1 ], [ , 1, , , , 1, , , , , , 1, , , 1, , , , , 1 ], [ , 1, 1, , 1, 1, , , , , , , , , , , , , , , 1, 1 ], [ , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , 1, , , 1, 1, , 1, 1, 1, 1, , , , 1, 1, , , , 1, , 1 ], [ 1, 1, 1, 1, 1, 1, , , 1, 1, 1, 1, 1, 1, , 1, 1, , 1, 1, 1, , 1, 1, , 1, 1 ], [ , , , , , , , , , , , , , , , 1, , , , 1 ], , [ 1, 1, , 1, , 1, , , , , , 1, , 1, , 1, 1, , 1, , 1, 1, , 1, 1, , 1 ], [ , , 1, , , , , , 1, , , , 1, , 1, , , , , 1 ], [ 1, , , , , , , , , 1, , , , , , 1, , , , 1, , 1, , , 1 ], [ 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , , , 1, , 1, , , , , , 1, , , 1, , , , , , , , 1 ], [ , 1, , 1, , , , , , , , , , , , 1 ], , [ 1, 1, , , , , , , , , , , , , , , , , , , , , , 1, 1 ], [ 1 ] ], [ , [ 1, , , , , , , , , 1, , , , , 1, , 1, , 1 ], [ , 1, 1, , 1, 1, , 1, 1, 1, , , 1, 1, 1, , , , 1, , , 1, , , , 1 ], [ , 1, , , , , , , 1, , , , 1, , , , , , 1 ], [ 1, 1, 1, 1, 1, 1, , , , 1, , , , , , , , , 1, 1, 1, 1 ], [ 1 ], [ , 1, 1, , , 1, 1, , , , , 1, , 1, , , , , , , , 1, , , , 1 ], [ 1, , 1, , , 1, , 1, , , , , 1, 1, 1, 1, , , , 1, , , , 1 ], [ , , 1, , , , , , , 1, , , , , , , 1, , , , , , , 1 ], [ 1, , , , , , , , , , , , , , 1, , , , 1 ], [ , , , 1, , 1, , , , , 1, , , , 1, 1, , , , 1 ], [ 1, , , , , 1, , , , 1, , 1, 1, , , 1, 1, , 1, 1, 1, , 1, 1, 1, , 1 ], [ , 1, 1, , , , , 1, , 1, , 1, 1, 1, , 1, 1, , , 1, , 1, 1, 1 ], [ , 1, , , , 1, , , , 1, , , 1, , 1, 1, , , 1, 1, , , , , , 1 ], [ 1, , 1, 1, , 1, , 1, 1, , 1, , 1, 1, 1, 1, 1, , , 1, 1, , , , , , 1 ], [ 1, , , , , , , , , , , , , , , , , , 1, , , 1, , 1 ], [ , , , , , , , , , 1, , , , , , 1 ], [ , , , , , , , , , , , , , , , , , , , , , 1, , 1 ], [ , 1, , , , 1, , , 1, 1, , 1, , , 1, 1, , , 1, , , 1, , , 1, 1 ], [ 1, 1, , 1, 1, 1, , 1, 1, 1, , 1, , 1, 1, 1, , , 1, , 1, 1 ], [ 1, , 1, 1, 1, 1, , , , 1, , 1, 1, 1, , 1, , , 1, 1, 1, , 1, 1, 1, 1, 1 ], [ 1, , , , , , , , , , , , , 1 ], [ , , 1, , , , , , , , , , , , , , , , , , , , 1 ], [ 1, , , , , , , , , , , 1, , 1, , 1, , , , 1 ], [ , , , 1, , , , , , , , , 1 ], [ , 1, , , , , , , , , , , , , , 1, , , , , , , , , 1 ], [ , , , , , , , , 1, 1, , , , , , , , , 1, , , , , , , , 1 ] ], [ , [ 1, 1, 1, 1, 1, 1, 1, , 1, , 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, , , 1, 1, 1 ], [ , , , , , 1, , , , 1, 1, 1, , , 1, 1, , , 1, , 1, 1, , 1 ], [ , , , , , , , , , , , , , , , , , , , 1, 1 ], [ , 1, , , , , , 1, , , , , , , , , , , , , 1 ], [ , , 1, , , 1, , 1, 1, 1, , 1, 1, , 1, , , , 1, , 1, 1 ], , [ , , 1, , , 1, , , , , , 1, , , , 1 ], [ , , , , , , , , , 1, , , , , , , , , , 1 ], [ 1, 1, 1, 1, 1, 1, , 1, 1, 1, , , 1, 1, , 1, , 1, , , 1, 1, 1, , , 1 ], [ , , , , , 1, , , , , , , , , , , , , 1 ], [ , 1, , , , , , , , , , , , 1, , 1, 1, , 1, , , 1 ], [ , , , , , 1, , , , , , , , , , , , , , 1 ], [ , 1, 1, 1, 1, , , , , 1, , , 1, , 1, , , , 1, 1, , , , 1, 1 ], [ , 1, , , 1, , , 1, , 1, 1, , 1, , , , , , , 1 ], [ , , 1, , 1, , , 1, , , , , , , , , , , 1, 1, , , , 1 ], [ , 1, , , , , , , , , , , , , , , , , 1, , , , , , 1 ], [ , , , , , , , , , , , , , , , , , , 1 ], [ , 1, 1, , , , , , , , , , , , , , , , 1, , 1, 1 ], [ , , , , , , , , , , , , 1 ], , [ , 1, 1, 1, 1, , , , 1, 1, , 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, , 1, , 1 ], [ 1, , , , 1, , , , , , , , , , 1 ], [ 1, , , , , , , , , 1 ], , [ , 1, , , , 1, , , , , , , , , , , , , , , , , , , , 1 ] ], [ , [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, , 1, 1, 1, 1, , , , 1, 1, 1, 1 ], [ , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1 ], [ , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, , 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1 ], [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1 ], [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , , 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1 ], [ , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1 ], [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ] ], [ , [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, , 1, , 1, 1, 1, 1 ], [ 1, 1, 1, 1, , 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , , , 1, 1, 1, 1, , 1, , , , 1, 1, , , 1, 1, , 1 ], [ , 1, 1, , 1, , , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , 1, , , , , , , , , , , , , 1 ], [ 1, 1, 1, , , , , 1, 1, 1, , 1, 1, 1, 1, , , 1, 1, , 1, 1, , , , , 1 ], [ , 1, , , , , , , 1, 1, , , 1, 1, 1, , 1, , , 1, 1, 1 ], [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , , 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1 ], [ , 1, , , , 1, , , , 1, , , 1, , , , 1, , , , , , , 1, 1 ], [ , 1, 1, 1, 1, 1, , , 1, 1, 1, , 1, 1, 1, 1, , , 1, 1, 1, 1, , , , 1 ], [ , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, , 1, , , 1 ], [ , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , , 1, 1, 1, 1, 1, 1 ], [ 1, 1, 1, , 1, , , 1, 1, 1, 1, , 1, 1, 1, 1, , , , 1, , 1, , 1, , , 1 ], [ 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , 1, , , , 1, , , , , , , , , 1, 1, , , , , , , , , 1 ], , [ , 1, , 1, , 1, , 1, , 1, , 1, 1, 1, 1, 1, , , 1, , 1, , 1, , , , 1 ], [ , 1, , , 1, 1, , 1, 1, 1, , , 1, 1, 1, 1, 1, , 1, 1, 1, , 1, , , 1 ], [ 1, , , 1, , , , 1, 1, 1, , , , , 1, 1, , , , 1, , 1 ], [ 1, 1, , 1, 1, 1, 1, , , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1 ], [ 1, 1, , , , , , , , 1, , 1, , , , , , , , 1, , 1 ], [ , 1, , , , 1, , 1, 1, , , , 1, 1, , 1, , , , 1, 1, 1, , 1 ], , [ , 1, , , , , , 1, , , , , , , 1 ], [ , , , , , , , , 1, , , , 1, , 1, , , , , , , , , , , , 1 ] ], [ , [ , 1, 1, , 1, 1, 1, 1, , 1, 1, 1, , 1, 1, , 1, 1, , 1, 1, 1, 1, 1, 1, , 1 ], [ , 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1 ], [ , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1 ], [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1 ], [ , 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, , 1 ], [ , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1 ], [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1 ], [ , 1, 1, , 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ] ], [ , [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , , 1, 1, 1, 1 ], [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , , 1, , 1 ], [ 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , 1, , , 1, , , , , , , , 1, , , , , , 1, , , 1 ], [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, , 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1 ], [ , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , 1, 1, , 1, , , , 1, 1, 1, , 1, 1, 1, 1, , , 1, 1, 1, 1, , , 1, 1, 1 ], [ , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1 ], [ 1, 1, , 1, , 1, , 1, , 1, 1, 1, 1, 1, 1, 1, , 1, 1, , , 1, 1, 1, 1, 1, 1 ], [ , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, , 1, 1 ], [ , 1, 1, , , , , 1, 1, 1, , , 1, , 1, 1, , , , 1, , 1, , , 1, 1 ], [ , , , , , , , 1, , , , 1, 1, 1, 1, 1, , 1, , , , , , , , 1 ], [ 1, 1, 1, 1, , 1, 1, 1, , 1, , 1, 1, 1, 1, , 1, , 1, , 1, 1, , , 1, , 1 ], [ , 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , , , , 1, 1, , 1, , 1, 1, 1, , 1, , 1, 1, , 1, 1, , 1, , 1, 1, 1, 1 ], [ , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ 1, , , , , , , , 1, , , , , 1, , 1 ], [ , 1, 1, 1, , 1, , 1, , 1, , , , 1, , 1, , , 1, , , , , , 1, 1 ], [ , 1, , , 1, 1, , 1, , 1, , 1, 1, 1, 1, 1, , 1, 1, , , 1, , , 1 ], [ 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , 1, 1, , 1, , , , , 1, , 1, , 1, , , , , , 1, , 1, , , , 1, 1 ] ], [ , [ , 1, , 1, , , , , , , , , , , , , , , 1, , , , 1 ], [ , , , , , , , , , 1, , 1, 1, 1, , 1, , , 1, , 1, 1 ], [ 1, 1, , , , , , , 1, , , , , , , 1, , , , , , 1 ], [ , 1, , , , , , , , , , 1, , , , , , , , , 1, 1 ], , [ , , , , , , , , , , , , , , , 1, , , , 1, , 1 ], [ , , 1, 1, , 1, , 1, , , , , , , , 1, , , , , , 1 ], [ , , , , , , , , , , , , , , , , , , , , 1, 1 ], [ , 1, , , , , , , , , , , , , 1 ], [ 1, , 1, 1, , , , 1, , , , , , , , , 1, , , 1, , , 1, 1 ], [ , 1, 1, , 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, , , 1, 1, , 1, 1, , 1 ], [ , 1, , , 1, 1, , , , , , 1, , 1, , 1, , , 1, , 1, 1 ], [ 1, 1, 1, 1, , 1, , 1, , 1, , 1, 1, , 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1 ], [ , 1, 1, , , 1, , 1, , 1, 1, 1, , , 1, 1, 1, , 1, 1, 1, 1, , 1, 1 ], [ , , , , 1, , , 1, , , , , , , 1, , , , 1, 1 ], [ , 1, , , , , , , , , , 1, , 1, , 1, , , , , 1, , , , , 1 ], , [ 1, 1, , 1, , 1, , 1, 1, , , , , , 1, 1, , , 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ 1, 1, , 1, , , , , , 1, , , , , , 1, 1, , , , 1, 1, , , 1 ], [ , 1, 1, , 1, 1, , , , 1, , 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, , 1, 1, 1, 1 ], [ , 1, 1, , , 1, , , , 1, , , , 1, 1 ], [ , , , , 1 ], [ , , , , , , , , , 1, , , 1 ], , [ , , 1, , 1, , , , , , , , , 1, , , , , , , , , , , , 1 ], [ , , , , , , , , , , , , , 1 ] ], [ , [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , , 1, 1, , 1, 1, 1, 1, 1, , , 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, , , 1, 1 ], [ , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, , 1, , , , , 1 ], [ , 1, , 1, , , , , , 1, , , , , 1, 1, , , , , 1, 1 ], [ , 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, , 1, , , 1, , 1, 1, 1 ], [ , 1, , , , 1, , , , , , , 1 ], [ , 1, , , 1, , , 1, , 1, , 1, 1, , 1, , , , , 1, , 1, , , , 1, 1 ], [ , 1, , , 1, , , 1, 1, 1, , 1, 1, 1, 1, 1, , 1, 1, , 1, 1, 1, 1 ], [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , , , , , , , , , , , , , , , , , , , , 1 ], [ , 1, 1, 1, , , , 1, 1, , , , , , 1, 1, 1, , 1, 1, 1, 1 ], [ 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1 ], [ , 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, , 1, 1, 1, 1 ], [ , 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , , , 1, 1, 1, 1, 1, 1, 1, , 1, , 1, 1, 1, 1, 1, , 1, 1, , 1, 1, 1, 1, 1 ], [ , 1, , , , 1, , , , 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , 1, , , , 1, , , , , , , , 1, , , , , , , , , , 1 ], [ , 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1 ], [ 1, 1, , 1, 1, 1, , 1, 1, 1, , , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, , 1 ], [ 1, 1, , , , , , , 1, 1, , , , , 1, 1, 1, 1, 1, , 1, 1, 1, 1, , 1 ], [ , 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, , 1, , 1, 1, 1, 1, , 1, 1, , 1, 1, 1, 1 ], , [ , 1, 1, , , , , 1, , 1, , , , 1, 1, 1, , , 1, , , , , 1 ], [ , , , , , , , , , , , , , 1 ], [ , , , , , 1, , , , , , , , 1, 1, , , , , 1, , 1, , , 1, 1 ], [ , , , , , , , , , , , , , , 1 ] ], [ , [ , 1 ], , , , , , , , , , , , , , , , , , , , [ 1, 1, 1, 1, 1, , 1, 1, 1, 1, , 1, 1, 1, 1, , 1, 1, 1, 1, , , 1, 1, 1, 1, 1 ], [ , 1, , 1, , 1, , , 1, 1, 1, , 1, 1, 1, 1, 1, , , 1, , , , 1, , 1, 1 ], [ , 1, , 1, , 1, , , 1, , , , , 1, , , , , , 1, 1 ], [ , 1, , 1, , , , , 1, , , , 1, , 1, 1, 1, 1, 1, 1, 1, 1, , 1 ], [ , 1, , , , , , , , , , , , , , , 1 ] ], [ , [ , 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , , 1, , , , , , , , , 1, 1, , , , 1 ], [ , , , , , , 1 ], [ , , 1 ], [ , 1, 1, , , 1, , 1, , 1, 1, , 1, 1, 1, , , , 1, 1, 1, , , , , 1 ], , [ , 1, , , , 1, , , , , , 1, , , 1, , , , 1, 1, , 1 ], [ , , , , , , , 1, , , , , , , , , 1 ], [ , 1, , , , 1, 1, , , , , , 1, 1, 1, , , , 1, , 1, 1 ], [ , , , , , , , 1, , 1, , , , , , , , , , 1 ], [ , 1, 1, , , , , , 1, 1, , , , 1, , , , , , , 1, , , 1 ], , [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ 1, 1, , , 1, , , 1, , , , , 1, , 1, , 1, , 1, , , , , 1 ], [ 1, 1, 1, 1, 1, 1, 1, 1, , , , , 1, 1, , 1, 1, , 1, , , 1, , 1 ], [ , , , , , , , , , , , , , , 1, , , , , , 1 ], , [ , , , , , , , , , 1, , , , , , 1, , , , , 1 ], [ , , 1, , , , , , , 1, , , 1, 1 ], [ , , , 1, , , , , 1, , , , , 1, , , , , , 1, , , , 1 ], [ 1, , 1, 1, , 1, 1, 1, 1, 1, , 1, , , , 1, 1, 1, , , 1, 1, , , , 1, 1 ], , [ 1, 1, , , , , , , , , , 1, , 1, , 1, , , 1 ], [ , , , , 1, , , , , , , , , , , , , , , , , , , 1 ], [ , , , , , , , , , , , , , , 1, , , , , 1, , 1 ], [ , , , , , , , , 1 ] ], [ , [ 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ 1, 1, 1, , , 1, 1, 1, 1, 1, , 1, 1, , 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1 ], [ 1, 1, 1, 1, , 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, , 1 ], [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1 ], [ , , 1, , , 1, , , , , , , , 1, , , , , , 1, , , , 1 ], [ 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, , 1, 1, 1, 1 ], [ 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , 1, 1, , 1, 1, , 1, , , , 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, , 1 ], [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, , 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1 ], [ 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ 1, , 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1 ], [ 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1 ], [ , , 1, 1, 1, 1, , 1, , 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1 ], [ 1, 1, , , , , , , 1, , 1, 1, , 1, 1, 1, , 1, 1, 1, 1, 1 ], [ 1, 1, 1, 1, , 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1 ], [ 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1 ], [ 1, 1, 1, 1, , 1, , 1, , 1, 1, 1, 1, 1, , , , 1, 1, 1, 1, , 1, 1, 1, 1, 1 ], [ 1, 1, 1, 1, , 1, , , , , , 1, , 1, , , , , 1, 1, , , , , 1 ], [ 1, , 1, 1, , , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , , 1, 1, , 1, , 1, , , , 1, 1, 1, 1, 1, , , 1, 1, , 1, , 1 ], [ , 1, 1, 1, 1, , , , , 1, , 1, 1, 1, 1, 1, , , 1, 1, , , , 1, 1, 1 ], [ , 1, 1, 1, 1, 1, , 1, , , , , 1, , 1, , 1, , , 1, , , 1, 1, , 1 ] ], [ , [ 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1 ], [ , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, , 1, 1, 1, 1 ], [ , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, , 1, 1 ], [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , , , , , , , , , 1, , , , , 1, 1, , , 1, , 1 ], [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , , , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ 1, , , 1, 1, 1, 1, , 1, 1, , 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1 ], [ , 1, , , , , , 1, , 1, 1, , 1, 1, 1, 1, 1, , , 1, , 1, , 1 ], [ 1, 1, 1, , 1, 1, 1, 1, , , , 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1 ], [ 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1 ], [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, , 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1 ], [ , 1, , 1, , 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1 ], [ , , 1, , , , , , , , , , 1, 1, 1, 1, 1, 1, 1, , 1, 1, , 1 ], [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1 ], [ , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1 ], [ , 1, , , 1, 1, , , , , , 1, 1, 1, 1, 1, , , , 1, 1, 1, , 1, 1, 1 ], [ 1, 1, 1, 1, 1, 1, 1, 1, 1, , , , 1, 1, 1, 1, 1, 1, 1, , 1, 1, , 1, 1, 1 ], [ , 1, 1, 1, , 1, , 1, 1, 1, 1, , , 1, 1, 1, , 1, 1, 1, 1, 1, , , 1, 1 ], [ 1, 1, , , , 1, , , 1, 1, 1, , 1, , 1, , 1, , 1, 1, 1, 1, 1, , 1, , 1 ], [ , 1, , , , , , , 1, , 1, , 1, 1, 1, 1, , , , , , , , , 1 ] ], [ , [ , , , , , , , , , , , , , 1, 1, , , , 1 ], [ , 1, , , , , , , , 1, , , 1, , , , , , 1, , , 1, , , , 1 ], , [ , 1, , , , 1, , 1, , 1, 1, , 1, 1, , , , , , , , 1 ], [ , , , , , , , , , , , , , , , , , , , 1 ], [ , , , , , , , , , 1 ], [ 1, 1, 1, , , 1, , , , , , , , , 1, 1, , , , , , , , , , 1 ], [ , 1, , , , , , , , , , , , , 1 ], [ , , , , , , , , , , , , , , , , , , , 1, , , 1 ], [ , , , , , , , , , 1 ], [ 1, 1, , , , , , 1, 1, 1, , 1, 1, , , , 1, 1, , 1, , 1, 1, 1, , 1 ], [ , 1, 1, 1, , 1, 1, , , 1, , 1, 1, 1, 1, , , , , , , 1, , 1 ], [ , 1, 1, 1, 1, , , 1, , 1, , , , 1, 1, 1, 1, , 1, 1, , 1 ], [ , 1, , , 1, 1, , 1, , , , 1, , 1, 1, , 1, , 1, , , 1, , , 1, , 1 ], [ , , , , , , , , , , , 1 ], [ , , , , , , , , , 1, , , , , , , , , , , , , 1 ], , [ 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, , 1, 1, 1, 1, 1, 1, 1 ], [ , 1, , , , , , , 1, 1, , 1, , , , , 1, , , 1, , 1 ], [ , 1, , , , 1, , , 1, , , , , , , , 1, , 1, , , 1 ], [ , , , , , , , , , , , , , 1, 1, , , , 1, , , 1 ], [ , , , , , 1, , , 1, , , , 1 ], [ , 1 ], , [ , 1 ], [ 1, , , , , , , , , , , , , , 1, , , , , 1 ] ], [ , [ , 1, , , , 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, , 1, 1, , 1, 1, , , 1 ], [ , , 1, , , , , , , , , 1 ], , , [ 1, , , 1, 1, , , , , , , , 1, 1, , 1, 1, , 1 ], , [ , , , , , , , , , , , , , , , , , , 1, , 1 ], , [ 1, , , 1, 1, , 1, 1, , , , , 1, , 1, , , , , 1, 1, , 1 ], , [ , 1, , , , , , , , 1, 1, 1, 1, 1, , 1, 1, , , , 1, 1 ], [ , , , , , , , , , , , , , , , , 1, , , 1 ], [ , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , , 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1 ], [ , , , , , , , , , , , 1, , 1, , , 1 ], [ 1, , , , , , , , , , , , , , , , , , 1, , 1 ], , , [ , 1, , , , , , , , , , , , , , 1, , , , 1, 1 ], [ , , , , , , , , , 1, , , 1, , , , , , , , , , 1 ], [ , , , , , , , , , , , , , , , 1 ], [ , , , , , , , , , , , , , 1, 1, , , , , , 1 ], , [ , 1 ] ], [ , [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , 1, 1, , , 1, 1, , 1, 1, 1, 1, 1, 1, , , 1, 1, 1, 1, 1, , 1, 1 ], [ , 1, , , , , , , , 1 ], [ , , , , 1, , , 1, , , 1, 1, , , , , , , , , , 1, , , , 1 ], [ , 1, , 1, 1, , , 1, 1, 1, , , , 1, 1, 1, 1, , 1, 1, 1, 1, , 1 ], [ , , , , , , , 1 ], [ , 1, 1, , , , , 1, , 1, , , , , , 1, , , , , , 1, , 1, , 1 ], [ , 1, , , , , , 1, , , , 1, , , , , , , , , , 1 ], [ , , 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , , , 1, , 1, 1, 1, 1, , 1 ], [ , 1, , , , , , , , 1 ], [ , 1, 1, , 1, , , , , , , , 1, , , , , , 1, , , 1, , 1, , 1 ], [ , 1, , 1, , 1, , 1, 1, 1, , 1, 1, 1, , 1, , , 1, 1, , 1, 1, 1, 1, 1 ], [ , 1, 1, 1, 1, 1, , , 1, 1, , , , 1, 1, 1, , , , 1, 1, , , 1, 1 ], [ , , 1, 1, 1, 1, , 1, , 1, , 1, , 1, 1, 1, 1, , , , , 1, , 1, , 1 ], [ 1, 1, 1, 1, 1, 1, 1, 1, , 1, , 1, , 1, 1, 1, , , 1, 1, , , , 1, , 1 ], [ , , , 1 ], , [ , 1, 1, , 1, , , 1, 1, 1, , 1, 1, 1, 1, 1, 1, , 1, 1, , 1, 1, 1, 1, 1, 1 ], [ , 1, , , , , , 1, , 1, , 1, , , , , , , 1, 1, , 1, 1 ], [ , , , , , , 1, , 1, 1, , 1, , 1, , , , , , , , , , 1 ], [ , 1, 1, , 1, , , , 1, , , , 1, 1, 1, , , , 1, , 1, 1, 1, , 1, 1 ], , [ , 1, 1, , , , , , , , , , , , , 1, , , 1, , , , , 1 ], [ , 1, , , , , , , , , , , , , , , , , , , , , , 1 ], [ , 1, 1, , , , , , , 1, , , , 1, , , , , 1, , , , , , , 1 ] ], [ , [ , 1, 1, 1, 1, 1, , 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1 ], [ , 1, 1, 1, 1, 1, , 1, , 1, 1, , , 1, 1, 1, 1, , 1, , , , , 1, 1, 1 ], [ , , 1, 1, , 1, , 1, 1, , , , 1, 1, 1, 1, , , 1, , 1, 1, 1, 1, , 1 ], [ , 1, , 1, , , , , , , , 1, , 1, , 1, , , , , , , , , , 1 ], [ , , 1, , 1, , , 1, , , , , 1, 1, , , 1, , 1, 1, 1, 1 ], [ , 1 ], [ , 1, 1, , 1, , 1, 1, , 1, , , 1, 1, 1, , , , 1, , , 1, , 1 ], [ 1, 1, , 1, 1, 1, , , , , , , , , , , , , 1, , 1, 1, 1 ], [ , 1, 1, , , , , , , 1, , , 1, , 1, , 1, , 1, 1, , , 1, , , 1 ], [ , , 1, , , , , , , , , , , , , , , , , , 1 ], [ , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , 1, 1, 1, 1, 1, , 1, , 1, , , , , 1, 1, 1, , , 1, , 1, , , , 1 ], [ , 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , 1, 1, , 1, , , 1, 1, 1, , 1, , 1, 1, 1, , , 1, 1, 1, 1, , , , 1, 1 ], [ , , , 1, 1, , , 1, , 1, , 1, , 1, 1, 1, 1, , 1, , , , , 1 ], [ , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , 1, , , , , , , , , , , , , , , , , , , 1 ], [ , 1, 1, , 1, 1, , 1, , 1, , , , 1, 1, , , 1, 1, , 1, 1, , 1 ], [ , 1, 1, 1, 1, 1, , , 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, , , 1 ], [ , 1, 1, 1, 1, 1, , 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1 ], [ , 1, 1, , 1, , , 1, , , 1, , 1, 1, 1, 1, 1, , 1, , 1, 1 ], [ , , , , , 1, , , , 1, , , , , 1, 1, , , , 1 ], [ , 1, , 1, 1, 1, , 1, , , 1, 1, 1, , , 1, , , 1, , 1, , , 1 ], [ , , 1, , , , , , , , , 1, , 1, , , , , 1, , 1 ], [ , 1, 1, , , , , , , , 1, 1, 1, , , , , , , , 1, , , , , 1 ], [ , , , , , , , , 1, , , , , 1, , , 1 ] ], [ , [ , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , 1, 1, , 1, 1, , , 1, 1, 1, 1, 1, 1, 1, 1, , , , , , , , , 1, 1 ], [ , , , , , , , , 1, , , , 1, , 1, , 1 ], [ , 1, , , 1, 1, , 1, , , , 1, , , , , , , , 1 ], [ , 1, , 1, , 1, , , , 1, 1, , 1, , 1, , , , 1, 1, 1, 1, 1, , , 1 ], , [ , 1, , , , , , , , 1, , , 1, 1, , , 1, , 1, 1, , 1, , 1 ], [ , 1, , , 1, , , , , , , , 1, , , , , , , 1 ], [ 1, 1, , , , , 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1 ], , [ , 1, , , , , , 1, , 1, , 1, 1, 1, 1, 1, , , 1, , 1, 1, , , , 1 ], [ , 1, 1, , , 1, , 1, , 1, , , 1, 1, 1, 1, , , 1, , , 1, , , , 1 ], [ , 1, 1, 1, 1, 1, , 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , , , 1, , 1 ], [ , 1, , , 1, 1, , 1, 1, , , 1, 1, , 1, 1, , 1, , 1, , 1 ], [ 1, , 1, , , , , 1, , 1, , 1, 1, 1, 1, , , , , 1, 1, , , , 1, 1 ], [ , 1, 1, , , , , 1, 1, , , 1, , 1, 1, 1, 1, , , , , , , , , , 1 ], , [ , 1, 1, , , 1, , , , 1, , 1, 1, 1, 1, 1, , , , 1, , , , 1, , 1 ], [ , , , 1, 1, , , 1, , , , , 1, , 1, 1, 1, , 1, 1, , , , , , 1 ], [ , 1, , , , , , , , , , , 1, , , , 1, , , , , , , 1, , 1 ], [ , 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, , 1, 1, 1, , 1, 1, , 1, 1, 1, 1 ], [ , 1, , , , , , , , , , , , , , , , , , , 1 ], [ , 1, , , , , , 1, , , , , 1, , 1, , , 1, 1, , 1, 1, , 1 ], [ , 1, , , , , , 1, , , , , 1, 1, , , , , , , , 1, , , , 1 ], [ , , , , , , , , , , , , , , , , , , 1, , , 1, , , , , 1 ], [ , , , , , , , 1, , , , 1 ] ], [ , [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , 1, , 1, , 1, , , , , , , 1, , , , , , , , 1, , , 1 ], [ , 1, , , , , , , 1 ], [ , , , , , , , , , , 1 ], [ , 1, , , , , , 1, 1, , , , , , 1 ], , [ , 1, 1, , , , , , 1, , , , , 1, 1, , , , 1 ], [ 1, , 1, , 1, , , , , 1, , , , , 1, , , , , , , , , 1, 1 ], [ , 1, 1, , , , , , , , , 1, 1, 1, 1, , , , 1, , , , , 1, , , 1 ], , [ , 1, 1, , 1, , , 1, 1, , , 1, , , 1, 1, 1, , 1, , 1, 1, 1, , , , 1 ], [ , , , , , 1, , , , , 1, , , 1, 1, , , 1, , 1, , , , 1 ], [ , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , 1, , , 1, 1, , 1, , , , 1, , , , , , , , 1 ], [ , , , 1, , , , , 1, , , , , 1, , 1, , 1, 1, 1 ], [ , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , , , , , 1 ], [ , 1, , , , , , 1, , , , , , , 1, 1, 1, , , 1 ], [ , 1, , , , , , , , , , 1, 1, 1, , , , , 1, , , 1 ], [ , , , , , 1, , 1, , , , , 1, 1, 1, , 1, 1, , 1, 1, 1, , , 1, 1 ], [ 1, 1, , , , , , , 1, , , , , 1, 1, , , , , , , , , , , 1 ], , [ , 1 ], [ , , , , , , , , , , , , , , , , , , , , , , , , 1 ], [ , , 1, , , , , 1, , , 1, , , , 1, , 1 ], [ , 1, , , , , , , , , 1 ] ] ];-1 21655 var langs = [ , [ , [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, , 1 ], [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , 1, 1, , 1, 1, 1, , 1, 1, , 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , 1, 1, , 1, 1, 1, 1, 1, 1, 1, , 1, , 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1 ], [ 1, 1, 1, 1, 1, 1, , , , , , 1, 1, 1, 1, , , 1, 1, 1, , 1, , 1, , 1, 1 ], [ 1, 1, 1, , 1, 1, , 1, 1, 1, , 1, , , 1, 1, 1, , , 1, 1, 1, , , , , 1 ], [ , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , 1, 1, , , , , 1, 1, 1, , 1, 1, 1, 1, 1, 1, , 1, 1, 1 ], [ , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , , 1, 1, 1 ], [ , 1, , , , , , 1, , 1, , , , , 1, , 1, , , 1, 1, 1, , 1, , , 1 ], [ 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ 1, 1, 1, 1, , 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , , , 1, 1, 1, 1, , , 1, , 1 ], [ , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , 1, , 1, 1, , , 1, , , , 1, 1, 1, 1, , 1, , 1, , 1, , , , , , 1 ], [ 1, , 1, 1, 1, 1, , , 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1 ], [ 1, , 1, , 1, , , , , 1, , 1, 1, 1, 1, 1, , , , 1, 1, 1, 1 ], [ , 1, 1, 1, 1, 1, , 1, 1, 1, , 1, , 1, 1, 1, , , 1, 1, 1, 1, 1, 1, 1, 1 ], [ , , 1, , , 1, , 1, , , , 1, 1, 1, , , , , , , , , , , 1 ], [ 1, 1, 1, 1, 1, 1, , 1, 1, 1, , 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, , , 1, 1, 1 ], [ 1, 1, 1, 1, 1, , , 1, , , 1, , , 1, 1, 1, , , , , 1, , , , , , 1 ] ], [ , [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, , 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1 ], [ , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1 ], [ 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ 1, 1, 1, 1, 1, 1, 1, 1, , , 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1 ], [ , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1 ], [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ 1, 1, 1, , , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1 ], [ , 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1 ], [ , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1 ], [ , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1 ], [ , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, , 1 ], [ , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1 ], [ , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ] ], [ , [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1 ], [ , 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, , 1, 1, , 1, 1, 1, 1, 1, 1, 1, , 1 ], [ , 1, , 1, 1, 1, , 1, 1, , 1, , 1, 1, 1, 1, 1, 1, 1, 1 ], [ , 1, , 1, 1, 1, 1, 1, 1, 1, 1, , , 1, 1, 1, , , 1, 1, , , , , , 1, 1 ], [ 1, 1, 1, , , , , 1, , , , 1, 1, , 1, , , , , , 1, , , , , 1 ], [ , 1, , , 1, , , 1, , , , , , 1 ], [ , 1, , 1, , , , 1, , , , 1 ], [ 1, , 1, 1, 1, , 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, , , 1, 1, 1, 1 ], [ , 1, 1, 1, 1, 1, , , 1, , , 1, , 1, 1, , 1, , 1, , , , , 1, , 1 ], [ , 1, , , , 1, , , 1, 1, , 1, , 1, 1, 1, 1, , 1, 1, , , 1, , , 1 ], [ , 1, 1, , , , , , 1, , , , 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, , 1, 1, 1 ], [ , 1, , 1, 1, 1, , , 1, 1, 1, 1, 1, 1, , 1, , , , 1, 1, 1, , 1, , 1 ], [ , 1, , 1, , 1, , 1, , 1, , 1, 1, 1, 1, 1, , , 1, 1, 1 ], [ , 1, 1, 1, , , , 1, 1, 1, , 1, 1, , , 1, 1, 1, 1, 1, 1, 1, , 1, 1 ], [ 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, , , 1, 1, 1, 1, 1, 1, 1 ], [ , 1, 1, 1, , 1, 1, 1, , 1, , , , , 1, 1, 1, , , 1, , 1, , , 1, 1 ], [ , , , , 1, , , , , , , , , , , , , , , , , 1 ], [ 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1 ], [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , 1, , 1, 1, 1, , 1, 1, , , , 1, 1, 1, 1, 1, , , 1, 1, 1, , , , 1, 1 ], [ 1, 1, 1, 1, , , , 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ 1, , , , , , , 1, , , , , , , 1 ], [ , 1, 1, , 1, 1, , 1, , , , , , , , , , , , , 1 ], [ , , , , , , , , 1 ], [ 1, 1, 1, , , , , , , , , , , , , 1 ], [ , , , , , , , , 1, , , 1, , , 1, 1, , , , , 1 ] ], [ , [ 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1 ], [ , 1, 1, , 1, 1, 1, 1, , 1, 1, , 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, , 1 ], [ , , , 1, , , , , , , , , , , , , , , 1 ], [ , 1, , , 1, 1, , 1, , 1, 1, , , , 1, 1, , , 1, 1, , , , 1 ], [ 1, , , 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, , 1, 1, 1, 1, , , 1, , , , 1 ], , [ , 1, 1, 1, 1, 1, , 1, 1, 1, , 1, 1, , 1, 1, , , 1, 1, 1, 1, , 1, 1, , 1 ], [ , 1, , , 1, , , 1, , 1, , , 1, 1, 1, 1, , , 1, 1, , 1, 1, 1, 1 ], [ , 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1 ], [ , 1, 1, 1, 1, 1, 1, , , 1, 1, 1, 1, 1, 1, 1, , , 1, , , 1, , 1 ], [ , 1, , , , , , 1, , , , 1, 1, , , , , , 1, 1, , , , , 1 ], [ , , , , , , , 1, , , , 1, , 1, 1 ], [ , 1, 1, 1, 1, 1, 1, 1, , , , 1, 1, 1, 1, 1, , , 1, 1, , 1, 1, 1, 1, 1 ], [ , 1, , , 1, 1, , 1, , 1, 1, 1, , , 1, 1, , , 1, , 1, 1, 1, 1, , 1 ], [ , 1, 1, 1, , 1, 1, , 1, 1, , 1, 1, , 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1 ], [ , , , , , , , , , , , , , , , , 1 ], , [ , 1, 1, 1, 1, 1, , 1, 1, 1, , , 1, , 1, 1, , 1, 1, 1, 1, 1, , 1, , 1 ], [ , , 1, , , 1, , , 1, 1, , 1, 1, , 1, 1, , 1, , , , , , , , , 1 ], [ , 1, 1, , 1, , , , 1, 1, , 1, , 1, 1, 1, 1, , 1, 1, 1, 1, , , , 1 ], [ , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1 ], [ 1, 1 ], [ , 1, , , , , , , , , , 1, 1, , , , , , 1, 1, , 1, , 1, , 1, 1 ], , [ , 1, 1, , 1, , , 1, , 1, , , , 1, 1, 1, , , 1, , , 1, , , , 1 ], [ 1, 1, , , 1, 1, , 1, , , , , 1, , 1 ] ], [ , [ , 1 ], [ , , , 1, , , , 1, , , , 1, , , , 1, , , 1, , , 1 ], [ , , , , , , , , , , , , , , , , , , 1, 1, , , , , , 1 ], , [ 1, , , , , 1 ], [ , 1, , , , 1, , , , 1 ], [ , 1, , , , , , , , , , , 1, 1, , 1, , , , , , , , , 1, 1 ], [ , , , , , , , , , , , , , , , , , , , 1, , 1 ], [ , , , , , , , , , , , , , , , , 1, , , , 1, , 1 ], [ , 1 ], [ , 1, , 1, , 1, , 1, , 1, , 1, 1, 1, , 1, 1, , 1, , , , , , , 1 ], [ 1, , , , , 1, , , 1, 1, , 1, , 1, , 1, 1, , , , , 1, , , 1 ], [ , 1, 1, , , 1, , 1, , 1, , 1, , 1, 1, 1, 1, 1, , 1, , 1, , 1, 1, 1, 1 ], [ 1, 1, 1, 1, 1, , 1, , 1, , , , 1, 1, 1, 1, , 1, 1, , , 1, 1, 1, 1 ], [ 1, , , , , , , , , , , , , , , , , , , , 1 ], [ , , , , , , , , , 1 ], , [ , 1, , , , , , 1, 1, 1, , 1, , , , 1, , , 1, 1, 1, , , 1 ], [ 1, , , , , 1, , 1, 1, 1, , 1, 1, 1, 1, 1, , 1, , 1, , 1, , , 1, 1 ], [ 1, , 1, 1, , , , , 1, , , , , , 1, 1, , , 1, 1, 1, 1, , , 1, , 1 ], [ 1, , , , 1, , , , , , , , , , , , , 1 ], [ , , , , , 1, , , 1, , , , , , 1 ], [ , , , , , , , , , , , , , , , 1 ], [ , , , , , , , , , , , , , , , , , , , , 1 ], [ , 1, , , , , , , , , , , , , , 1 ], [ , 1, , , , 1 ] ], [ , [ 1, 1, 1, , 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, , 1, , 1, 1, , , 1, 1, 1 ], [ , , , , , , , , , , , , 1 ], [ , , , , , , , , , , , , , , , , , , , 1 ], , [ , , , , , , , , , , , , , , , , , , 1 ], [ 1, , , , , , , , , 1, , , , 1 ], [ , , , , , , , , , , , , , , , , , , 1 ], , [ 1, 1, , , , 1, 1, , , , , , 1, , , , 1, , 1, , 1, 1, , 1 ], [ 1 ], [ , , , , , , , , , , , 1, , , , , , , , , , , 1 ], [ , 1, , , , , , , 1, 1, , , 1, , 1, , , , 1, , , , , , , 1 ], [ , , , , , , , , , , , , , , , , 1, , , , , 1 ], [ , , 1, , , , , 1, , 1 ], [ 1, , , , 1, , , , , 1, , , , 1, 1, , , , 1, 1, , , , , 1 ], [ , , , , , 1 ], [ , , , , , , , , , , , , , , , , , , , 1 ], [ 1, , , 1, 1, , , , , , , 1, , 1, , 1, 1, 1, 1, 1, 1 ], [ , , , , , 1, , , , , , , 1, , , , , , , 1 ], , [ , , 1, 1, 1, 1, 1, , 1, 1, 1, , , 1, 1, , , 1, 1, , 1, 1, 1, , , 1 ], [ , , , , , , , , , , , , , , , , , , 1 ], [ , 1, , , , 1 ], , [ 1 ] ], [ , [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1 ], [ , , , 1, 1, 1, 1, , , , , , 1, , 1, , , , 1, , 1 ], [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, , , 1 ], [ , 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, , , , 1, , 1, , , 1, 1, 1, 1, 1 ], [ , , , , , , , , , , , 1, , , , , , , , , 1, , , , 1 ], [ , 1, 1, , 1, 1, , 1, , , , 1, 1, , 1, 1, , , 1, , 1, 1, , 1 ], [ , 1, , 1, , 1, , , 1, , , 1, 1, , 1, 1, , , 1, 1, 1 ], [ , 1, 1, 1, 1, 1, , 1, 1, 1, , , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1 ], [ , , , , , , , , , 1, , 1, , 1, 1, , , , 1, , , 1 ], [ , 1, , , 1, 1, , , , , , , , , 1, 1, 1, , , , , 1 ], [ 1, , 1, 1, 1, , , , 1, 1, 1, 1, 1, , , 1, , , 1, , , 1, , 1, , 1 ], [ , 1, 1, , 1, 1, , 1, 1, , , , 1, 1, 1, , , 1, 1, , , 1, 1, 1, 1, 1, 1 ], [ 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, , 1, 1, , 1, , , 1 ], [ , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , 1, , , , 1, , , , , , , , , 1 ], [ , 1, , , , , , , , 1, , , , , 1, , , , 1, , , 1 ], [ , 1, 1, 1, 1, , , 1, 1, 1, 1, 1, , 1, , 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , , , , , 1, , 1, , , , , 1, 1, 1, 1, 1, , , 1, , , , 1 ], [ , 1, , , , , , , , 1, , , , , , , , , , , , 1 ], [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1 ], [ 1, 1, , 1, , 1, 1, , , , 1, , 1, 1, 1, 1, 1, , 1, 1, , , , , , 1 ], [ , 1, 1, 1, 1, 1, 1, 1, , 1, 1, , , 1, 1, , , , 1, , 1, 1, , 1, 1 ], [ , , , , , , , , , , , , , , , , , , , , , , , , 1 ], [ , 1, 1, , 1, 1, 1, 1, , 1, , , 1, 1, 1, 1, , , 1, , , , , , , 1, 1 ], [ , 1, , , , , , , , 1, , , , , 1 ] ], [ , [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , , 1, 1, 1, 1, 1 ], [ , 1, 1, , , , , , , , , , , , 1, 1, , , , , , 1 ], [ , 1, , , , , , , 1 ], [ , , , , , , , , , , , , , , 1, , , , , 1, , , , , , 1 ], [ 1, 1, , , 1, , , 1, 1, 1, , , , 1 ], , [ , , , , , , , , , , , , , 1, , , , , , , , , , 1 ], [ , , , , , , , , , 1, , , , , , , , , 1, , , , , , , 1 ], [ 1, 1, 1, , 1, , 1, 1, 1, 1, 1, 1, 1, 1, , 1, , , 1, , 1, , , 1, 1 ], [ , , , , , , , , , 1 ], [ , 1, , , , 1, , , 1, , , 1, , , 1, , , , , 1 ], [ , 1, 1, , 1, 1, , , , , , , , , , , , , , , 1, 1 ], [ , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , 1, , , 1, 1, , 1, 1, 1, 1, , , 1, 1, 1, , , , 1, , 1 ], [ 1, 1, 1, 1, 1, 1, , , 1, 1, 1, 1, 1, 1, , 1, 1, , 1, 1, 1, , 1, 1, , 1, 1 ], [ , , , , , , , , , , , , , , , 1, , , , 1 ], , [ 1, 1, , 1, , 1, , , , , , 1, , 1, , 1, 1, , 1, , 1, 1, , 1, 1, , 1 ], [ , , 1, , , , , , 1, , , , 1, , 1, , , , , 1 ], [ 1, , , , , , , , , 1, , , , , , 1, , , , 1, , 1, , , 1 ], [ 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , , , 1, , 1, , , , , , 1, , , 1, , , , , , , , 1 ], [ , 1, , 1, , , , , , , , , , , , 1 ], , [ 1, 1, , , , , , , , , , , , , , , , , , , , , , 1, 1 ], [ 1 ] ], [ , [ 1, , , , , , , , , 1, , , , , 1, , 1, , 1 ], [ , 1, 1, , 1, 1, , 1, 1, 1, , , 1, 1, 1, , , , 1, , , 1, , , , 1 ], [ , 1, , , , , , , 1, , , , 1, , , , , , 1 ], [ 1, 1, 1, 1, 1, 1, , , , 1, , , , , , , , , 1, 1, 1, 1 ], [ 1 ], [ , 1, 1, , , 1, 1, , , , , 1, , 1, , , , , , , , 1, , , , 1 ], [ 1, , 1, , , 1, , 1, , , , , 1, 1, 1, 1, , , , 1, , , , 1 ], [ , , 1, , , , , , , 1, , , , , , , 1, , , , , , , 1 ], [ 1, , , , , , , , , , , , , , 1, , , , 1 ], [ , , , 1, , 1, , , , , 1, , , , 1, 1, , , , 1 ], [ 1, , , , , 1, , , 1, 1, , 1, 1, , , 1, 1, , 1, 1, 1, , 1, 1, 1, , 1 ], [ , 1, 1, , , , , 1, , 1, , 1, 1, 1, , 1, 1, , , 1, , 1, 1, 1 ], [ , 1, , , , 1, , , , 1, , , 1, , 1, 1, , , 1, 1, 1, , , , , 1 ], [ 1, , 1, 1, , 1, , 1, 1, , 1, , 1, 1, 1, 1, 1, , , 1, 1, , , , , , 1 ], [ 1, , , , , , , , , , , , , , , , , , 1, , , 1, , 1 ], [ , , , , , , , , , 1, , , , , , 1 ], [ , , , , , , , , , , , , , , , , , , , , , 1, , 1 ], [ , 1, , , , 1, , , 1, 1, , 1, , , 1, 1, , , 1, , , 1, , , 1, 1 ], [ 1, 1, , 1, 1, 1, , 1, 1, 1, , 1, , 1, 1, 1, , , 1, , 1, 1, 1 ], [ 1, , 1, 1, 1, 1, , , , 1, , 1, 1, 1, , 1, , , 1, 1, 1, , 1, 1, 1, 1, 1 ], [ 1, , , , , , , , , , , , , 1 ], [ , , 1, , , , , , , , , , , , , , , , , , , , 1 ], [ 1, , , , , , , , , , , 1, , 1, , 1, , , , 1 ], [ , , , 1, , , , , , , , , 1 ], [ , 1, , , , , , , , , , , , , , 1, , , , , , , , , 1 ], [ , , , , , , , , 1, 1, , , , 1, , , , , 1, , , , , , , , 1 ] ], [ , [ 1, 1, 1, 1, 1, 1, 1, , 1, , 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, , , 1, 1, 1 ], [ , , , , , 1, , , , 1, 1, 1, , 1, 1, 1, , , 1, , 1, 1, , 1 ], [ , , , , , , , , , , , , , , , , , , , 1, 1 ], [ , 1, , , , , , 1, , , , , , , , , , , , , 1 ], [ , , 1, , , 1, , 1, 1, 1, , 1, 1, , 1, , , , 1, , 1, 1 ], , [ , , 1, , , 1, , , , , , 1, , , , 1 ], [ , , , , , , , , , 1, , , , , , , , , , 1 ], [ 1, 1, 1, 1, 1, 1, , 1, 1, 1, , , 1, 1, , 1, , 1, , , 1, 1, 1, , , 1 ], [ , , , , , 1, , , , , , , , , , , , , 1 ], [ , 1, , , , , , , , , , , , 1, , 1, 1, , 1, 1, , 1 ], [ , , , , , 1, , , , , , , , , , , , , , 1 ], [ , 1, 1, 1, 1, , , , , 1, , , 1, , 1, , , , 1, 1, , , , 1, 1 ], [ , 1, , , 1, , , 1, , 1, 1, , 1, , , , , , , 1 ], [ , , 1, , 1, , , 1, , , , , , , , , , , 1, 1, , , , 1 ], [ , 1, , , , , , , , , , , , , , , , , 1, , , , , , 1 ], [ , , , , , , , , , , , , , , , , , , 1 ], [ , 1, 1, , , , , , , , , , , , , , , , 1, , 1, 1 ], [ , , , , , , , , , , , , 1 ], , [ , 1, 1, 1, 1, , , , 1, 1, , 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, , 1, , 1 ], [ 1, , , , 1, , , , , , , , , , 1 ], [ 1, , , , , , , , , 1 ], , [ , 1, , , , 1, , , , , , , , , , , , , , , , , , , , 1 ] ], [ , [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, , 1, 1, 1, 1, , , , 1, 1, 1, 1 ], [ , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1 ], [ , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, , 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1 ], [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1 ], [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , , 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1 ], [ , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1 ], [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ] ], [ , [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, , 1, , 1, 1, 1, 1 ], [ 1, 1, 1, 1, , 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , , , 1, 1, 1, 1, , 1, , , , 1, 1, , , 1, 1, , 1 ], [ , 1, 1, , 1, , , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , 1, , , , , , , , , , , , , 1 ], [ 1, 1, 1, , , , , 1, 1, 1, , 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, , , , , 1 ], [ , 1, , , , , , , 1, 1, , , 1, 1, 1, , 1, , , 1, 1, 1 ], [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , , 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1 ], [ , 1, , , , 1, , , , 1, , , 1, , , , 1, , , , , , , 1, 1 ], [ , 1, 1, 1, 1, 1, , , 1, 1, 1, , 1, 1, 1, 1, , , 1, 1, 1, 1, , , , 1 ], [ , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, , 1, , , 1 ], [ , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , , 1, 1, 1, 1, 1, 1 ], [ 1, 1, 1, , 1, , , 1, 1, 1, 1, , 1, 1, 1, 1, , , , 1, , 1, , 1, , , 1 ], [ 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , 1, , , , 1, , , , , , , , , 1, 1, , , , , , , , , 1 ], [ , , , , , , , , , , , , , , , , , , 1 ], [ , 1, , 1, , 1, , 1, , 1, , 1, 1, 1, 1, 1, , , 1, , 1, , 1, , , , 1 ], [ , 1, 1, 1, 1, 1, , 1, 1, 1, , , 1, 1, 1, 1, 1, , 1, 1, 1, , 1, 1, , 1 ], [ 1, , , 1, , , , 1, 1, 1, , , , , 1, 1, , , , 1, , 1 ], [ 1, 1, , 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1 ], [ 1, 1, , , , , , , , 1, , 1, 1, , , , , , , 1, , 1 ], [ , 1, , , , 1, , 1, 1, , , , 1, 1, , 1, , , , 1, 1, 1, , 1 ], [ , , , , , , , , , , , , , 1 ], [ , 1, , , , , , 1, , , , , , , 1 ], [ , , , , , , , , 1, , , , 1, , 1, , , , , , , , , , , , 1 ] ], [ , [ , 1, 1, , 1, 1, 1, 1, , 1, 1, 1, , 1, 1, , 1, 1, , 1, 1, 1, 1, 1, 1, , 1 ], [ , 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1 ], [ , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1 ], [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1 ], [ , 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, , 1 ], [ , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1 ], [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1 ], [ , 1, 1, , 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ] ], [ , [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , , 1, 1, 1, 1 ], [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , , 1, , 1 ], [ 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , 1, , , 1, , , , , , , , 1, , , , , , 1, , , 1 ], [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, , 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1 ], [ , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , 1, 1, , 1, , , , 1, 1, 1, , 1, 1, 1, 1, , , 1, 1, 1, 1, , , 1, 1, 1 ], [ , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1 ], [ 1, 1, , 1, , 1, , 1, , 1, 1, 1, 1, 1, 1, 1, , 1, 1, , , 1, 1, 1, 1, 1, 1 ], [ , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, , 1, 1 ], [ , 1, 1, , , , , 1, 1, 1, , , 1, , 1, 1, , , , 1, , 1, , , 1, 1 ], [ , , , , , , , 1, , , , 1, 1, 1, 1, 1, , 1, , , 1, , , , , 1 ], [ 1, 1, 1, 1, , 1, 1, 1, , 1, , 1, 1, 1, 1, , 1, , 1, , 1, 1, , , 1, , 1 ], [ , 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , , , , 1, 1, , 1, , 1, 1, 1, , 1, , 1, 1, , 1, 1, , 1, , 1, 1, 1, 1 ], [ , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ 1, , , , , , , , 1, , , , , 1, , 1 ], [ , 1, 1, 1, , 1, , 1, , 1, , , , 1, , 1, , , 1, , , , , 1, 1, 1 ], [ , 1, , , 1, 1, , 1, , 1, , 1, 1, 1, 1, 1, , 1, 1, , , 1, , , 1 ], [ 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , 1, 1, , 1, , , , , 1, , 1, , 1, , , , , 1, 1, , 1, , , , 1, 1 ] ], [ , [ , 1, , 1, , , , , , , , 1, , , , , , , 1, , , , 1 ], [ , , , , , , , , , 1, , 1, 1, 1, , 1, , , 1, , 1, 1 ], [ 1, 1, , , , , , , 1, , , , , 1, , 1, , , , , , 1 ], [ , 1, , , , , , , , , , 1, , , , , , , , , 1, 1 ], , [ , , , , , , , , , , , , , , , 1, , , , 1, , 1 ], [ , , 1, 1, , 1, , 1, , , , , , , , 1, , , , , , 1 ], [ , , , , , , , , , , , , , , , , , , , , 1, 1 ], [ , 1, , , , 1, , , , , , , , , 1 ], [ 1, , 1, 1, , , , 1, , , , , , , , , 1, , , 1, , , 1, 1 ], [ , 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, , , 1, 1, , 1, 1, , 1, , 1 ], [ , 1, , , 1, 1, , , , , , 1, , 1, , 1, , , 1, , 1, 1 ], [ 1, 1, 1, 1, , 1, , 1, , 1, , 1, 1, , 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1 ], [ , 1, 1, , , 1, , 1, , 1, 1, 1, , , 1, 1, 1, , 1, 1, 1, 1, , 1, 1 ], [ , , , , 1, , , 1, , , , , , , 1, , , , 1, 1 ], [ , 1, , , , , , , , , , 1, , 1, , 1, , , , , 1, , , , , 1 ], , [ 1, 1, , 1, , 1, , 1, 1, , , , , , 1, 1, , , 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ 1, 1, , 1, , , , , , 1, , , , , 1, 1, 1, , , , 1, 1, , , 1 ], [ , 1, 1, , 1, 1, , , , 1, , 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, , 1, 1, 1, 1 ], [ , 1, 1, , , 1, , , , 1, , , , 1, 1 ], [ , , , , 1 ], [ , , , , , , , , , 1, , , 1 ], , [ , , 1, , 1, , , , , , , , , 1, , , , , , , , , , , , 1 ], [ , , , , , , , , , , , , , 1 ] ], [ , [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , , 1, 1, , 1, 1, 1, 1, 1, , , 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, , , 1, 1 ], [ , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, , 1, , , , , 1 ], [ , 1, , 1, , , , , , 1, , , , , 1, 1, , , , , 1, 1 ], [ , 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, , 1, , , 1, , 1, 1, 1 ], [ , 1, , , , 1, , , , , , , 1 ], [ , 1, , , 1, , , 1, , 1, , 1, 1, , 1, , , , , 1, , 1, , , , 1, 1 ], [ , 1, , , 1, , , 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, , 1, 1, 1, 1 ], [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , , , , , , , , , , , , , , , , , , , , 1 ], [ , 1, 1, 1, , , , 1, 1, , , , , , 1, 1, 1, , 1, 1, 1, 1 ], [ 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1 ], [ , 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, , 1, 1, 1, 1 ], [ , 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , , , 1, 1, 1, 1, 1, 1, 1, , 1, , 1, 1, 1, 1, 1, , 1, 1, , 1, 1, 1, 1, 1 ], [ , 1, , , , 1, , , , 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , 1, , , , 1, , , , , , , , 1, , , , , , , , , , 1 ], [ , 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1 ], [ 1, 1, , 1, 1, 1, , 1, 1, 1, , , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, , 1 ], [ 1, 1, , , , , , , 1, 1, , , , , 1, 1, 1, 1, 1, , 1, 1, 1, 1, , 1 ], [ , 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, , 1, , 1, 1, 1, 1, , 1, 1, , 1, 1, 1, 1 ], , [ , 1, 1, , , , , 1, , 1, , , , 1, 1, 1, , , 1, , , , , 1 ], [ , , , , , , , , , , , , , 1 ], [ , , , , , 1, , , , , , , , 1, 1, , , , , 1, , 1, , , 1, 1 ], [ , , , , , 1, , , 1, , , , , , 1 ] ], [ , [ , 1 ], , , , , , , , , , , , , , , , , , , , [ 1, 1, 1, 1, 1, , 1, 1, 1, 1, , 1, 1, 1, 1, , 1, 1, 1, 1, , , 1, 1, 1, 1, 1 ], [ , 1, , 1, , 1, , , 1, 1, 1, , 1, 1, 1, 1, 1, , , 1, , , , 1, , 1, 1 ], [ , 1, , 1, , 1, , , 1, , , , , 1, , , , , , 1, 1 ], [ , 1, , 1, , , , , 1, , , , 1, , 1, 1, 1, 1, 1, 1, 1, 1, , 1 ], [ , 1, , , , , , , , , , , , , , , 1 ] ], [ , [ , 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , , 1, , , , , , , , , 1, 1, , , , 1 ], [ , , , , , , 1 ], [ , , 1 ], [ , 1, 1, , , 1, , 1, , 1, 1, , 1, 1, 1, , , , 1, 1, 1, , , , , 1 ], , [ , 1, , , , 1, , , , , , 1, , , 1, , , , 1, 1, , 1 ], [ , , , , , , , 1, , , , , , , , , 1 ], [ , 1, 1, , , 1, 1, , , , , , 1, 1, 1, , , , 1, , 1, 1 ], [ , , , , , , , 1, , 1, , , , , , , , , , 1 ], [ , 1, 1, , , , , , 1, 1, , , , 1, , , , , , , 1, , , 1 ], , [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ 1, 1, 1, , 1, , , 1, , , , , 1, , 1, , 1, , 1, , , , , 1 ], [ 1, 1, 1, 1, 1, 1, 1, 1, , , , , 1, 1, , 1, 1, , 1, , , 1, , 1 ], [ , , , , , , , , , , , , , , 1, , , , , , 1 ], , [ , , , , , , , , , 1, , , , 1, , 1, , , , , 1 ], [ , , 1, , , , , , , 1, , 1, 1, 1, 1, , , , , , , , , 1 ], [ , , , 1, , , , , 1, , , , , 1, , , , , , 1, , , , 1 ], [ 1, , 1, 1, , 1, 1, 1, 1, 1, , 1, , , , 1, 1, 1, , , 1, 1, , , , 1, 1 ], , [ 1, 1, , , , , , , , , , 1, 1, 1, , 1, , , 1 ], [ , , , , 1, , , , , , , , , , , , , , , , , , , 1 ], [ , , , , , , , , , , , , , , 1, , , , , 1, , 1 ], [ , , , , , , , , 1 ] ], [ , [ 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ 1, 1, 1, , , 1, 1, 1, 1, 1, , 1, 1, , 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1 ], [ 1, 1, 1, 1, , 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, , 1 ], [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1 ], [ , , 1, , , 1, , , , , , , , 1, , , , , , 1, , , , 1 ], [ 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, , 1, 1, 1, 1 ], [ 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , 1, 1, 1, 1, 1, , 1, , , , 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, , 1 ], [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, , 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1 ], [ 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ 1, , 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1 ], [ 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1 ], [ , , 1, 1, 1, 1, , 1, , 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1 ], [ 1, 1, , , , , , , 1, , 1, 1, , 1, 1, 1, , 1, 1, 1, 1, 1, , , 1 ], [ 1, 1, 1, 1, , 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1 ], [ 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1 ], [ 1, 1, 1, 1, , 1, , 1, , 1, 1, 1, 1, 1, , 1, , 1, 1, 1, 1, , 1, 1, 1, 1, 1 ], [ 1, 1, 1, 1, , 1, , , , , , 1, , 1, , , , , 1, 1, , , , , 1 ], [ 1, , 1, 1, , , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , , 1, 1, , 1, , 1, , , , 1, 1, 1, 1, 1, , , 1, 1, , 1, , 1 ], [ , 1, 1, 1, 1, , , , , 1, , 1, 1, 1, 1, 1, , , 1, 1, , , , 1, 1, 1 ], [ , 1, 1, 1, 1, 1, , 1, , , , , 1, , 1, , 1, , , 1, , , 1, 1, , 1 ] ], [ , [ 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1 ], [ , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, , 1, 1, 1, 1 ], [ , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, , 1, 1 ], [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , , , , , , , , , 1, , , , , 1, 1, , , 1, , 1 ], [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , , , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ 1, , , 1, 1, 1, 1, , 1, 1, , 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1 ], [ , 1, , , , , , 1, , 1, 1, , 1, 1, 1, 1, 1, , , 1, , 1, , 1 ], [ 1, 1, 1, , 1, 1, 1, 1, , , , 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1 ], [ 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1 ], [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1 ], [ , 1, , 1, , 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1 ], [ , , 1, , , , , , , , , , 1, 1, 1, 1, 1, 1, 1, , 1, 1, , 1 ], [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1 ], [ , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1 ], [ , 1, , , 1, 1, , , , 1, , 1, 1, 1, 1, 1, , , , 1, 1, 1, , 1, 1, 1 ], [ 1, 1, 1, 1, 1, 1, 1, 1, 1, , , , 1, 1, 1, 1, 1, 1, 1, , 1, 1, , 1, 1, 1 ], [ , 1, 1, 1, , 1, , 1, 1, 1, 1, , , 1, 1, 1, , 1, 1, 1, 1, 1, , , 1, 1 ], [ 1, 1, , , , 1, , , 1, 1, 1, , 1, , 1, , 1, , 1, 1, 1, 1, 1, , 1, 1, 1 ], [ , 1, , , , , , , 1, , 1, , 1, 1, 1, 1, , , , , , , , , 1 ] ], [ , [ , , , , , , , , , , , , , 1, 1, , , , 1 ], [ , 1, , , , , , , , 1, , , 1, , , , , , 1, , , 1, , , , 1 ], , [ , 1, , , , 1, , 1, , 1, 1, , 1, 1, , , , , , , , 1 ], [ , , , , , , , , , , , , , , , , , , , 1 ], [ , , , , , , , , , 1 ], [ 1, 1, 1, , , 1, , , 1, , , , , , 1, 1, , , , , , , , , , 1 ], [ , 1, , , , , , , , , , , , , 1 ], [ , , , , , , , , , , , , , , , , , , , 1, , , 1 ], [ , , , , , , , , , 1 ], [ 1, 1, , , , , , 1, 1, 1, , 1, 1, , , , 1, 1, , 1, , 1, 1, 1, , 1 ], [ , 1, 1, 1, , 1, 1, , , 1, , 1, 1, 1, 1, , , , , , , 1, , 1, , 1 ], [ , 1, 1, 1, 1, , , 1, , 1, , , , 1, 1, 1, 1, , 1, 1, , 1 ], [ , 1, , , 1, 1, , 1, , 1, , 1, , 1, 1, , 1, , 1, , , 1, , , 1, , 1 ], [ , , , , , , , , , , , 1, , , 1 ], [ , , , , , , , , , 1, , , , , , , , , , , , , 1 ], , [ 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, , 1, 1, 1, 1, 1, 1, 1 ], [ , 1, , , , , , , 1, 1, , 1, , , , , 1, , , 1, , 1 ], [ , 1, , , , 1, , , 1, , , , , , , , 1, , 1, , , 1 ], [ , , , , , , , , , , , , , 1, 1, , , , 1, , , 1 ], [ , , , , , 1, , , 1, , , , 1 ], [ , 1 ], , [ , 1 ], [ 1, , , , , , , , , , , , , , 1, , , , , 1 ] ], [ , [ , 1, , , , 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, , 1, 1, , 1, 1, , , 1 ], [ , , 1, , , , , , , , , 1 ], , , [ 1, , , 1, 1, , , , , , , , 1, 1, , 1, 1, , 1 ], , [ , , , , , , , , , , , , , , , , , , 1, , 1 ], , [ 1, , , 1, 1, , 1, 1, , , , , 1, , 1, , , , , 1, 1, , 1 ], [ , , , , , , , , , , , 1 ], [ , 1, , , , , , , , 1, 1, 1, 1, 1, 1, 1, 1, , , , 1, 1, , , , , 1 ], [ , , , , , , , , , , , , , , , , 1, , , 1 ], [ , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , , 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1 ], [ , , , , , , , , , , , 1, , 1, , , 1 ], [ 1, , , , , , , , , , , , , , , , , , 1, , 1 ], , , [ , 1, , , , , , , , , , , , , , 1, , , , 1, 1 ], [ , , , , , , , , , 1, , , 1, , 1, , , , , , , , 1 ], [ , , , , , , , , , , , , , , , 1 ], [ , , , , , , , , , , , , , 1, 1, , , , , , 1 ], , [ , 1 ] ], [ , [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , 1, 1, , , 1, 1, , 1, 1, 1, 1, 1, 1, , , 1, 1, 1, 1, 1, , 1, 1 ], [ , 1, , , , , , , , 1 ], [ , , , , 1, , , 1, , , 1, 1, , , , , , , , , 1, 1, , , , 1 ], [ , 1, , 1, 1, , , 1, 1, 1, , , , 1, 1, 1, 1, , 1, 1, 1, 1, , 1 ], [ , , , , , , , 1 ], [ , 1, 1, , , , , 1, , 1, , , , , , 1, , , , , , 1, , 1, , 1 ], [ , 1, , , , , , 1, , , , 1, , , , , , , , , , 1 ], [ , , 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , , , 1, , 1, 1, 1, 1, , 1 ], [ , 1, , , , , , , , 1 ], [ , 1, 1, , 1, , , , , , , , 1, , , , , , 1, , , 1, , 1, , 1 ], [ , 1, , 1, , 1, , 1, 1, 1, , 1, 1, 1, , 1, , , 1, 1, , 1, 1, 1, 1, 1 ], [ , 1, 1, 1, 1, 1, , 1, 1, 1, , , , 1, 1, 1, , , , 1, 1, , , 1, 1 ], [ , , 1, 1, 1, 1, , 1, , 1, , 1, , 1, 1, 1, 1, , , , , 1, , 1, , 1 ], [ 1, 1, 1, 1, 1, 1, 1, 1, , 1, , 1, , 1, 1, 1, , , 1, 1, , , , 1, , 1 ], [ , , , 1 ], , [ , 1, 1, , 1, , , 1, 1, 1, , 1, 1, 1, 1, 1, 1, , 1, 1, , 1, 1, 1, 1, 1, 1 ], [ , 1, , , , , , 1, , 1, , 1, , , , , , , 1, 1, , 1, 1 ], [ , , 1, , , , 1, , 1, 1, , 1, , 1, , , , , , , , , , 1 ], [ , 1, 1, , 1, , , , 1, , , , 1, 1, 1, , , , 1, , 1, 1, 1, , 1, 1 ], , [ , 1, 1, , , , , , , , , , , , , 1, , , 1, , , , , 1 ], [ , 1, , , , , , , , , , , , , , , , , , , , , , 1 ], [ , 1, 1, , , , , , , 1, , , , 1, 1, , , , 1, , , , , , , 1 ] ], [ , [ , 1, 1, 1, 1, 1, , 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1 ], [ , 1, 1, 1, 1, 1, , 1, , 1, 1, , , 1, 1, 1, 1, , 1, , , , , 1, 1, 1 ], [ , , 1, 1, , 1, , 1, 1, , , , 1, 1, 1, 1, , , 1, , 1, 1, 1, 1, , 1 ], [ , 1, , 1, , , , , , , , 1, , 1, , 1, , 1, , , , , , , , 1 ], [ , , 1, , 1, , , 1, , , , , 1, 1, , , 1, , 1, 1, 1, 1 ], [ , 1 ], [ , 1, 1, , 1, , 1, 1, , 1, , , 1, 1, 1, , , , 1, , , 1, , 1 ], [ 1, 1, , 1, 1, 1, , , , , , , , 1, , , , , 1, , 1, 1, 1 ], [ , 1, 1, , , , , , , 1, , , 1, , 1, , 1, , 1, 1, , , 1, , , 1 ], [ , , 1, , , , , , , , , , , , , , , , , , 1 ], [ , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , 1, 1, 1, 1, 1, , 1, , 1, , , , , 1, 1, 1, , , 1, , 1, , , , 1 ], [ , 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , 1, 1, , 1, , , 1, 1, 1, 1, 1, , 1, 1, 1, , 1, 1, 1, 1, 1, , , , 1, 1 ], [ , , , 1, 1, , , 1, , 1, , 1, , 1, 1, 1, 1, , 1, , , , , 1 ], [ , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , 1, , , , , , , , , , , , , , , , , , , 1 ], [ , 1, 1, , 1, 1, , 1, , 1, , , , 1, 1, , , 1, 1, , 1, 1, , 1 ], [ , 1, 1, 1, 1, 1, , , 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, , , 1 ], [ , 1, 1, 1, 1, 1, , 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1 ], [ , 1, 1, , 1, , , 1, , , 1, , 1, 1, 1, 1, 1, , 1, , 1, 1 ], [ , , , , , 1, , , , 1, , , , , 1, 1, , , , 1 ], [ , 1, , 1, 1, 1, , 1, , , 1, 1, 1, , , 1, , , 1, , 1, , , 1 ], [ , , 1, , , , , , , , , 1, , 1, , , , , 1, , 1 ], [ , 1, 1, , , , , , , , 1, 1, 1, , , , , , , , 1, , , , , 1 ], [ , , , , , , , , 1, , , , , 1, , , 1 ] ], [ , [ , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , 1, 1, , 1, 1, , , 1, 1, 1, 1, 1, 1, 1, 1, , , , , , , , , 1, 1 ], [ , , , , , , , , 1, , , , 1, , 1, , 1, , 1 ], [ , 1, , , 1, 1, , 1, , , , 1, , , , , , , , 1 ], [ , 1, , 1, , 1, , , , 1, 1, , 1, , 1, , , , 1, 1, 1, 1, 1, , , 1 ], , [ , 1, , , , , , , , 1, , , 1, 1, , , 1, , 1, 1, , 1, , 1 ], [ , 1, , , 1, , , , , , , , 1, , , , , , , 1 ], [ 1, 1, , , , , 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1 ], , [ , 1, , , , , , 1, 1, 1, , 1, 1, 1, 1, 1, , , 1, , 1, 1, , , , 1 ], [ , 1, 1, , , 1, , 1, , 1, , , 1, 1, 1, 1, , , 1, , , 1, , , , 1 ], [ , 1, 1, 1, 1, 1, , 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , , , 1, , 1 ], [ , 1, 1, , 1, 1, , 1, 1, , , 1, 1, , 1, 1, , 1, , 1, , 1 ], [ 1, , 1, , , , , 1, , 1, , 1, 1, 1, 1, , , , , 1, 1, , , , 1, 1 ], [ , 1, 1, , , , , 1, 1, , , 1, , 1, 1, 1, 1, , , , , , , , , , 1 ], , [ , 1, 1, , , 1, , , , 1, , 1, 1, 1, 1, 1, , , , 1, , , , 1, , 1 ], [ , , , 1, 1, , , 1, , , , , 1, 1, 1, 1, 1, , 1, 1, , , , , , 1 ], [ , 1, , , , , , , , , , , 1, , , , 1, , , , , , , 1, , 1 ], [ , 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, , 1, 1, 1, , 1, 1, , 1, 1, 1, 1 ], [ , 1, , , , , , , , , , , , , , , , , , , 1 ], [ , 1, , , , , , 1, , , , , 1, , 1, , , 1, 1, , 1, 1, , 1 ], [ , 1, , , , , , 1, , , , , 1, 1, , , , , , , , 1, , , , 1 ], [ , , , , , , , , , , , , , , , , , , 1, , , 1, , , , , 1 ], [ , , , , , , , 1, , , , 1 ] ], [ , [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , 1, , 1, , 1, , , , , , , 1, , , , , , , , 1, 1, , 1 ], [ , 1, , , 1, , , , 1 ], [ , , , , , , , , , , 1 ], [ , 1, , , , , , 1, 1, , , , , 1, 1 ], , [ , 1, 1, , , , , , 1, , , , , 1, 1, , , , 1 ], [ 1, , 1, , 1, , , , , 1, , , , , 1, , , , , , , , , 1, 1 ], [ , 1, 1, , , , , , , , , 1, 1, 1, 1, , , , 1, , , , , 1, , , 1 ], , [ , 1, 1, , 1, , , 1, 1, , , 1, , , 1, 1, 1, , 1, , 1, 1, 1, , , , 1 ], [ , 1, , , , 1, , , , , 1, , , 1, 1, , , 1, , 1, , 1, , 1 ], [ , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , 1, , , 1, 1, , 1, , , , 1, , , , , , , , 1 ], [ , , , 1, , , , , 1, , , , , 1, , 1, , 1, 1, 1 ], [ , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], [ , , , , , 1 ], [ , 1, , , , , , 1, , , , , , , 1, 1, 1, , , 1 ], [ , 1, , , , , , , , , , 1, 1, 1, , , , , 1, , , 1 ], [ , , , , , 1, , 1, , , , , 1, 1, 1, , 1, 1, , 1, 1, 1, , , 1, 1 ], [ 1, 1, , , , , , , 1, , , , , 1, 1, , , , , , , , , , , 1 ], , [ , 1 ], [ , , , , , , , , , , , , , , , , , , , , , , , , 1 ], [ , , 1, , , , , 1, , , 1, , , , 1, , 1 ], [ , 1, , , , , , , , , 1 ] ] ]; 21451 21656 function isValidLang(lang) { 21452 21657 var array = langs; 21453 21658 while (lang.length < 3) { 21454 21659 lang += '`'; 21455 21660 }21456 -1 for (var _i32 = 0; _i32 <= lang.length - 1; _i32++) {21457 -1 var index = lang.charCodeAt(_i32) - 96;-1 21661 for (var _i18 = 0; _i18 <= lang.length - 1; _i18++) { -1 21662 var index = lang.charCodeAt(_i18) - 96; 21458 21663 array = array[index]; 21459 21664 if (!array) { 21460 21665 return false; @@ -21480,12 +21685,12 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate : 21480 21685 var valid_langs_default = isValidLang; 21481 21686 var SerialVirtualNode = function(_abstract_virtual_nod2) { 21482 21687 function SerialVirtualNode(serialNode) {21483 -1 var _this6;-1 21688 var _this8; 21484 21689 _classCallCheck(this, SerialVirtualNode);21485 -1 _this6 = _callSuper(this, SerialVirtualNode);21486 -1 _this6._props = normaliseProps(serialNode);21487 -1 _this6._attrs = normaliseAttrs(serialNode);21488 -1 return _this6;-1 21690 _this8 = _callSuper(this, SerialVirtualNode); -1 21691 _this8._props = normaliseProps(serialNode); -1 21692 _this8._attrs = normaliseAttrs(serialNode); -1 21693 return _this8; 21489 21694 } 21490 21695 _inherits(SerialVirtualNode, _abstract_virtual_nod2); 21491 21696 return _createClass(SerialVirtualNode, [ { @@ -21524,9 +21729,9 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate : 21524 21729 nodeTypeToName[nodeNamesToTypes[nodeName2]] = nodeName2; 21525 21730 }); 21526 21731 function normaliseProps(serialNode) {21527 -1 var _serialNode$nodeName, _ref81, _serialNode$nodeType;-1 21732 var _serialNode$nodeName, _ref80, _serialNode$nodeType; 21528 21733 var nodeName2 = (_serialNode$nodeName = serialNode.nodeName) !== null && _serialNode$nodeName !== void 0 ? _serialNode$nodeName : nodeTypeToName[serialNode.nodeType];21529 -1 var nodeType = (_ref81 = (_serialNode$nodeType = serialNode.nodeType) !== null && _serialNode$nodeType !== void 0 ? _serialNode$nodeType : nodeNamesToTypes[serialNode.nodeName]) !== null && _ref81 !== void 0 ? _ref81 : 1;-1 21734 var nodeType = (_ref80 = (_serialNode$nodeType = serialNode.nodeType) !== null && _serialNode$nodeType !== void 0 ? _serialNode$nodeType : nodeNamesToTypes[serialNode.nodeName]) !== null && _ref80 !== void 0 ? _ref80 : 1; 21530 21735 assert_default(typeof nodeType === 'number', 'nodeType has to be a number, got \''.concat(nodeType, '\'')); 21531 21736 assert_default(typeof nodeName2 === 'string', 'nodeName has to be a string, got \''.concat(nodeName2, '\'')); 21532 21737 nodeName2 = nodeName2.toLowerCase(); @@ -21547,8 +21752,8 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate : 21547 21752 delete props.attributes; 21548 21753 return Object.freeze(props); 21549 21754 }21550 -1 function normaliseAttrs(_ref82) {21551 -1 var _ref82$attributes = _ref82.attributes, attributes2 = _ref82$attributes === void 0 ? {} : _ref82$attributes;-1 21755 function normaliseAttrs(_ref81) { -1 21756 var _ref81$attributes = _ref81.attributes, attributes2 = _ref81$attributes === void 0 ? {} : _ref81$attributes; 21552 21757 var attrMap = { 21553 21758 htmlFor: 'for', 21554 21759 className: 'class' @@ -21850,8 +22055,8 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate : 21850 22055 if (!cell.children.length && !cell.textContent.trim()) { 21851 22056 return false; 21852 22057 }21853 -1 var role = cell.getAttribute('role');21854 -1 if (is_valid_role_default(role)) {-1 22058 var role = get_explicit_role_default(cell); -1 22059 if (role) { 21855 22060 return [ 'cell', 'gridcell' ].includes(role); 21856 22061 } else { 21857 22062 return cell.nodeName.toUpperCase() === 'TD'; @@ -21859,7 +22064,7 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate : 21859 22064 } 21860 22065 var is_data_cell_default = isDataCell; 21861 22066 function isDataTable(node) {21862 -1 var role = (node.getAttribute('role') || '').toLowerCase();-1 22067 var role = get_explicit_role_default(node); 21863 22068 if ((role === 'presentation' || role === 'none') && !_isFocusable(node)) { 21864 22069 return false; 21865 22070 } @@ -21903,7 +22108,7 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate : 21903 22108 if (cell.getAttribute('scope') || cell.getAttribute('headers') || cell.getAttribute('abbr')) { 21904 22109 return true; 21905 22110 }21906 -1 if ([ 'columnheader', 'rowheader' ].includes((cell.getAttribute('role') || '').toLowerCase())) {-1 22111 if ([ 'columnheader', 'rowheader' ].includes(get_explicit_role_default(cell))) { 21907 22112 return true; 21908 22113 } 21909 22114 if (cell.children.length === 1 && cell.children[0].nodeName.toUpperCase() === 'ABBR') { @@ -21962,8 +22167,8 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate : 21962 22167 return true; 21963 22168 } 21964 22169 if (cell.getAttribute('id')) {21965 -1 var _id2 = escape_selector_default(cell.getAttribute('id'));21966 -1 return !!document.querySelector('[headers~="'.concat(_id2, '"]'));-1 22170 var _id4 = escape_selector_default(cell.getAttribute('id')); -1 22171 return !!document.querySelector('[headers~="'.concat(_id4, '"]')); 21967 22172 } 21968 22173 return false; 21969 22174 } @@ -22033,100 +22238,6 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate : 22033 22238 }, tableGrid, callback); 22034 22239 } 22035 22240 var traverse_default = traverse;22036 -1 function thHasDataCellsEvaluate(node) {22037 -1 var cells = get_all_cells_default(node);22038 -1 var checkResult = this;22039 -1 var reffedHeaders = [];22040 -1 cells.forEach(function(cell) {22041 -1 var headers2 = cell.getAttribute('headers');22042 -1 if (headers2) {22043 -1 reffedHeaders = reffedHeaders.concat(headers2.split(/\s+/));22044 -1 }22045 -1 var ariaLabel = cell.getAttribute('aria-labelledby');22046 -1 if (ariaLabel) {22047 -1 reffedHeaders = reffedHeaders.concat(ariaLabel.split(/\s+/));22048 -1 }22049 -1 });22050 -1 var headers = cells.filter(function(cell) {22051 -1 if (sanitize_default(cell.textContent) === '') {22052 -1 return false;22053 -1 }22054 -1 return cell.nodeName.toUpperCase() === 'TH' || [ 'rowheader', 'columnheader' ].indexOf(cell.getAttribute('role')) !== -1;22055 -1 });22056 -1 var tableGrid = to_grid_default(node);22057 -1 var out = true;22058 -1 headers.forEach(function(header) {22059 -1 if (header.getAttribute('id') && reffedHeaders.includes(header.getAttribute('id'))) {22060 -1 return;22061 -1 }22062 -1 var pos = get_cell_position_default(header, tableGrid);22063 -1 var hasCell = false;22064 -1 if (is_column_header_default(header)) {22065 -1 hasCell = traverse_default('down', pos, tableGrid).find(function(cell) {22066 -1 return !is_column_header_default(cell) && get_headers_default(cell, tableGrid).includes(header);22067 -1 });22068 -1 }22069 -1 if (!hasCell && is_row_header_default(header)) {22070 -1 hasCell = traverse_default('right', pos, tableGrid).find(function(cell) {22071 -1 return !is_row_header_default(cell) && get_headers_default(cell, tableGrid).includes(header);22072 -1 });22073 -1 }22074 -1 if (!hasCell) {22075 -1 checkResult.relatedNodes(header);22076 -1 }22077 -1 out = out && hasCell;22078 -1 });22079 -1 return out ? true : void 0;22080 -1 }22081 -1 var th_has_data_cells_evaluate_default = thHasDataCellsEvaluate;22082 -1 function tdHeadersAttrEvaluate(node) {22083 -1 var cells = [];22084 -1 var reviewCells = [];22085 -1 var badCells = [];22086 -1 for (var rowIndex = 0; rowIndex < node.rows.length; rowIndex++) {22087 -1 var row = node.rows[rowIndex];22088 -1 for (var cellIndex = 0; cellIndex < row.cells.length; cellIndex++) {22089 -1 cells.push(row.cells[cellIndex]);22090 -1 }22091 -1 }22092 -1 var ids = cells.filter(function(cell) {22093 -1 return cell.getAttribute('id');22094 -1 }).map(function(cell) {22095 -1 return cell.getAttribute('id');22096 -1 });22097 -1 cells.forEach(function(cell) {22098 -1 var isSelf = false;22099 -1 var notOfTable = false;22100 -1 if (!cell.hasAttribute('headers') || !_isVisibleToScreenReaders(cell)) {22101 -1 return;22102 -1 }22103 -1 var headersAttr = cell.getAttribute('headers').trim();22104 -1 if (!headersAttr) {22105 -1 return reviewCells.push(cell);22106 -1 }22107 -1 var headers = token_list_default(headersAttr);22108 -1 if (headers.length !== 0) {22109 -1 if (cell.getAttribute('id')) {22110 -1 isSelf = headers.indexOf(cell.getAttribute('id').trim()) !== -1;22111 -1 }22112 -1 notOfTable = headers.some(function(header) {22113 -1 return !ids.includes(header);22114 -1 });22115 -1 if (isSelf || notOfTable) {22116 -1 badCells.push(cell);22117 -1 }22118 -1 }22119 -1 });22120 -1 if (badCells.length > 0) {22121 -1 this.relatedNodes(badCells);22122 -1 return false;22123 -1 }22124 -1 if (reviewCells.length) {22125 -1 this.relatedNodes(reviewCells);22126 -1 return void 0;22127 -1 }22128 -1 return true;22129 -1 }22130 22241 var aria_exports = {}; 22131 22242 __export(aria_exports, { 22132 22243 allowedAttr: function allowedAttr() { @@ -22233,23 +22344,23 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate : 22233 22344 function cacheIdRefs(node, idRefs, refAttrs) { 22234 22345 if (node.hasAttribute) { 22235 22346 if (node.nodeName.toUpperCase() === 'LABEL' && node.hasAttribute('for')) {22236 -1 var _id3 = node.getAttribute('for');22237 -1 if (!idRefs.has(_id3)) {22238 -1 idRefs.set(_id3, [ node ]);-1 22347 var _id5 = node.getAttribute('for'); -1 22348 if (!idRefs.has(_id5)) { -1 22349 idRefs.set(_id5, [ node ]); 22239 22350 } else {22240 -1 idRefs.get(_id3).push(node);-1 22351 idRefs.get(_id5).push(node); 22241 22352 } 22242 22353 }22243 -1 for (var _i33 = 0; _i33 < refAttrs.length; ++_i33) {22244 -1 var attr = refAttrs[_i33];-1 22354 for (var _i19 = 0; _i19 < refAttrs.length; ++_i19) { -1 22355 var attr = refAttrs[_i19]; 22245 22356 var attrValue = sanitize_default(node.getAttribute(attr) || ''); 22246 22357 if (!attrValue) { 22247 22358 continue; 22248 22359 }22249 -1 var _iterator14 = _createForOfIteratorHelper(token_list_default(attrValue)), _step14;-1 22360 var _iterator15 = _createForOfIteratorHelper(token_list_default(attrValue)), _step15; 22250 22361 try {22251 -1 for (_iterator14.s(); !(_step14 = _iterator14.n()).done; ) {22252 -1 var token = _step14.value;-1 22362 for (_iterator15.s(); !(_step15 = _iterator15.n()).done; ) { -1 22363 var token = _step15.value; 22253 22364 if (!idRefs.has(token)) { 22254 22365 idRefs.set(token, [ node ]); 22255 22366 } else { @@ -22257,15 +22368,15 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate : 22257 22368 } 22258 22369 } 22259 22370 } catch (err) {22260 -1 _iterator14.e(err);-1 22371 _iterator15.e(err); 22261 22372 } finally {22262 -1 _iterator14.f();-1 22373 _iterator15.f(); 22263 22374 } 22264 22375 } 22265 22376 }22266 -1 for (var _i34 = 0; _i34 < node.childNodes.length; _i34++) {22267 -1 if (node.childNodes[_i34].nodeType === 1) {22268 -1 cacheIdRefs(node.childNodes[_i34], idRefs, refAttrs);-1 22377 for (var _i20 = 0; _i20 < node.childNodes.length; _i20++) { -1 22378 if (node.childNodes[_i20].nodeType === 1) { -1 22379 cacheIdRefs(node.childNodes[_i20], idRefs, refAttrs); 22269 22380 } 22270 22381 } 22271 22382 } @@ -22323,7 +22434,7 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate : 22323 22434 } 22324 22435 function getElementUnallowedRoles(node) { 22325 22436 var allowImplicit = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;22326 -1 var _nodeLookup21 = _nodeLookup(node), vNode = _nodeLookup21.vNode;-1 22437 var _nodeLookup20 = _nodeLookup(node), vNode = _nodeLookup20.vNode; 22327 22438 if (!is_html_element_default(vNode)) { 22328 22439 return []; 22329 22440 } @@ -24113,8 +24224,8 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate : 24113 24224 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' ] 24114 24225 } ]; 24115 24226 lookupTable.evaluateRoleForElement = {24116 -1 A: function A(_ref83) {24117 -1 var node = _ref83.node, out = _ref83.out;-1 24227 A: function A(_ref82) { -1 24228 var node = _ref82.node, out = _ref82.out; 24118 24229 if (node.namespaceURI === 'http://www.w3.org/2000/svg') { 24119 24230 return true; 24120 24231 } @@ -24123,19 +24234,19 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate : 24123 24234 } 24124 24235 return true; 24125 24236 },24126 -1 AREA: function AREA(_ref84) {24127 -1 var node = _ref84.node;-1 24237 AREA: function AREA(_ref83) { -1 24238 var node = _ref83.node; 24128 24239 return !node.href; 24129 24240 },24130 -1 BUTTON: function BUTTON(_ref85) {24131 -1 var node = _ref85.node, role = _ref85.role, out = _ref85.out;-1 24241 BUTTON: function BUTTON(_ref84) { -1 24242 var node = _ref84.node, role = _ref84.role, out = _ref84.out; 24132 24243 if (node.getAttribute('type') === 'menu') { 24133 24244 return role === 'menuitem'; 24134 24245 } 24135 24246 return out; 24136 24247 },24137 -1 IMG: function IMG(_ref86) {24138 -1 var node = _ref86.node, role = _ref86.role, out = _ref86.out;-1 24248 IMG: function IMG(_ref85) { -1 24249 var node = _ref85.node, role = _ref85.role, out = _ref85.out; 24139 24250 switch (node.alt) { 24140 24251 case null: 24141 24252 return out; @@ -24147,8 +24258,8 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate : 24147 24258 return role !== 'presentation' && role !== 'none'; 24148 24259 } 24149 24260 },24150 -1 INPUT: function INPUT(_ref87) {24151 -1 var node = _ref87.node, role = _ref87.role, out = _ref87.out;-1 24261 INPUT: function INPUT(_ref86) { -1 24262 var node = _ref86.node, role = _ref86.role, out = _ref86.out; 24152 24263 switch (node.type) { 24153 24264 case 'button': 24154 24265 case 'image': @@ -24178,32 +24289,32 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate : 24178 24289 return false; 24179 24290 } 24180 24291 },24181 -1 LI: function LI(_ref88) {24182 -1 var node = _ref88.node, out = _ref88.out;-1 24292 LI: function LI(_ref87) { -1 24293 var node = _ref87.node, out = _ref87.out; 24183 24294 var hasImplicitListitemRole = axe.utils.matchesSelector(node, 'ol li, ul li'); 24184 24295 if (hasImplicitListitemRole) { 24185 24296 return out; 24186 24297 } 24187 24298 return true; 24188 24299 },24189 -1 MENU: function MENU(_ref89) {24190 -1 var node = _ref89.node;-1 24300 MENU: function MENU(_ref88) { -1 24301 var node = _ref88.node; 24191 24302 if (node.getAttribute('type') === 'context') { 24192 24303 return false; 24193 24304 } 24194 24305 return true; 24195 24306 },24196 -1 OPTION: function OPTION(_ref90) {24197 -1 var node = _ref90.node;-1 24307 OPTION: function OPTION(_ref89) { -1 24308 var node = _ref89.node; 24198 24309 var withinOptionList = axe.utils.matchesSelector(node, 'select > option, datalist > option, optgroup > option'); 24199 24310 return !withinOptionList; 24200 24311 },24201 -1 SELECT: function SELECT(_ref91) {24202 -1 var node = _ref91.node, role = _ref91.role;-1 24312 SELECT: function SELECT(_ref90) { -1 24313 var node = _ref90.node, role = _ref90.role; 24203 24314 return !node.multiple && node.size <= 1 && role === 'menu'; 24204 24315 },24205 -1 SVG: function SVG(_ref92) {24206 -1 var node = _ref92.node, out = _ref92.out;-1 24316 SVG: function SVG(_ref91) { -1 24317 var node = _ref91.node, out = _ref91.out; 24207 24318 if (node.parentNode && node.parentNode.namespaceURI === 'http://www.w3.org/2000/svg') { 24208 24319 return true; 24209 24320 } @@ -24218,7 +24329,7 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate : 24218 24329 var implicit = null; 24219 24330 var roles = lookup_table_default.role[role]; 24220 24331 if (roles && roles.implicit) {24221 -1 implicit = _clone(roles.implicit);-1 24332 implicit = clone2(roles.implicit); 24222 24333 } 24223 24334 return implicit; 24224 24335 } @@ -24228,10 +24339,9 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate : 24228 24339 } 24229 24340 var is_accessible_ref_default = isAccessibleRef; 24230 24341 function _isComboboxPopup(virtualNode) {24231 -1 var _popupRoles;24232 -1 var _ref93 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, popupRoles = _ref93.popupRoles;-1 24342 var _ref92 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, popupRoles = _ref92.popupRoles; 24233 24343 var role = get_role_default(virtualNode);24234 -1 (_popupRoles = popupRoles) !== null && _popupRoles !== void 0 ? _popupRoles : popupRoles = aria_attrs_default['aria-haspopup'].values;-1 24344 popupRoles !== null && popupRoles !== void 0 ? popupRoles : popupRoles = aria_attrs_default['aria-haspopup'].values; 24235 24345 if (!popupRoles.includes(role)) { 24236 24346 return false; 24237 24347 } @@ -24348,6 +24458,112 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate : 24348 24458 return !!attrDefinition; 24349 24459 } 24350 24460 var validate_attr_default = validateAttr; -1 24461 function thHasDataCellsEvaluate(node) { -1 24462 var cells = get_all_cells_default(node); -1 24463 var checkResult = this; -1 24464 var reffedHeaders = []; -1 24465 cells.forEach(function(cell) { -1 24466 var headers2 = cell.getAttribute('headers'); -1 24467 if (headers2) { -1 24468 reffedHeaders = reffedHeaders.concat(headers2.split(/\s+/)); -1 24469 } -1 24470 var ariaLabel = cell.getAttribute('aria-labelledby'); -1 24471 if (ariaLabel) { -1 24472 reffedHeaders = reffedHeaders.concat(ariaLabel.split(/\s+/)); -1 24473 } -1 24474 }); -1 24475 var headers = cells.filter(function(cell) { -1 24476 if (sanitize_default(cell.textContent) === '') { -1 24477 return false; -1 24478 } -1 24479 return cell.nodeName.toUpperCase() === 'TH' || [ 'rowheader', 'columnheader' ].indexOf(get_explicit_role_default(cell)) !== -1; -1 24480 }); -1 24481 var tableGrid = to_grid_default(node); -1 24482 var out = true; -1 24483 headers.forEach(function(header) { -1 24484 if (header.getAttribute('id') && reffedHeaders.includes(header.getAttribute('id'))) { -1 24485 return; -1 24486 } -1 24487 var pos = get_cell_position_default(header, tableGrid); -1 24488 var hasCell = false; -1 24489 if (is_column_header_default(header)) { -1 24490 hasCell = traverse_default('down', pos, tableGrid).find(function(cell) { -1 24491 return !is_column_header_default(cell) && get_headers_default(cell, tableGrid).includes(header); -1 24492 }); -1 24493 } -1 24494 if (!hasCell && is_row_header_default(header)) { -1 24495 hasCell = traverse_default('right', pos, tableGrid).find(function(cell) { -1 24496 return !is_row_header_default(cell) && get_headers_default(cell, tableGrid).includes(header); -1 24497 }); -1 24498 } -1 24499 if (!hasCell) { -1 24500 checkResult.relatedNodes(header); -1 24501 } -1 24502 out = out && hasCell; -1 24503 }); -1 24504 return out ? true : void 0; -1 24505 } -1 24506 var th_has_data_cells_evaluate_default = thHasDataCellsEvaluate; -1 24507 var messageKeys = [ 'cell-header-not-in-table', 'cell-header-not-th', 'header-refs-self', 'empty-hdrs' ]; -1 24508 var notInTable = messageKeys[0], notTh = messageKeys[1], selfRef = messageKeys[2], emptyHdrs = messageKeys[3]; -1 24509 function tdHeadersAttrEvaluate(node) { -1 24510 var cells = []; -1 24511 var cellRoleById = {}; -1 24512 for (var rowIndex = 0; rowIndex < node.rows.length; rowIndex++) { -1 24513 var row = node.rows[rowIndex]; -1 24514 for (var cellIndex = 0; cellIndex < row.cells.length; cellIndex++) { -1 24515 var cell = row.cells[cellIndex]; -1 24516 cells.push(cell); -1 24517 var cellId = cell.getAttribute('id'); -1 24518 if (cellId) { -1 24519 cellRoleById[cellId] = get_role_default(cell); -1 24520 } -1 24521 } -1 24522 } -1 24523 var badCells = _defineProperty(_defineProperty(_defineProperty(_defineProperty({}, selfRef, new Set()), notInTable, new Set()), notTh, new Set()), emptyHdrs, new Set()); -1 24524 cells.forEach(function(cell) { -1 24525 if (!cell.hasAttribute('headers') || !_isVisibleToScreenReaders(cell)) { -1 24526 return; -1 24527 } -1 24528 var headersAttr = cell.getAttribute('headers').trim(); -1 24529 if (!headersAttr) { -1 24530 badCells[emptyHdrs].add(cell); -1 24531 return; -1 24532 } -1 24533 var cellId = cell.getAttribute('id'); -1 24534 var headers = token_list_default(headersAttr); -1 24535 headers.forEach(function(headerId) { -1 24536 if (cellId && headerId === cellId) { -1 24537 badCells[selfRef].add(cell); -1 24538 } else if (!cellRoleById[headerId]) { -1 24539 badCells[notInTable].add(cell); -1 24540 } else if (![ 'columnheader', 'rowheader' ].includes(cellRoleById[headerId])) { -1 24541 badCells[notTh].add(cell); -1 24542 } -1 24543 }); -1 24544 }); -1 24545 var _iterator16 = _createForOfIteratorHelper(messageKeys), _step16; -1 24546 try { -1 24547 for (_iterator16.s(); !(_step16 = _iterator16.n()).done; ) { -1 24548 var messageKey = _step16.value; -1 24549 if (badCells[messageKey].size > 0) { -1 24550 this.relatedNodes(_toConsumableArray(badCells[messageKey])); -1 24551 if (messageKey === emptyHdrs) { -1 24552 return void 0; -1 24553 } -1 24554 this.data({ -1 24555 messageKey: messageKey -1 24556 }); -1 24557 return false; -1 24558 } -1 24559 } -1 24560 } catch (err) { -1 24561 _iterator16.e(err); -1 24562 } finally { -1 24563 _iterator16.f(); -1 24564 } -1 24565 return true; -1 24566 } 24351 24567 function tdHasHeaderEvaluate(node) { 24352 24568 var badCells = []; 24353 24569 var cells = get_all_cells_default(node); @@ -24412,8 +24628,8 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate : 24412 24628 if (!virtualNode.children) { 24413 24629 return void 0; 24414 24630 }24415 -1 var titleNode = virtualNode.children.find(function(_ref94) {24416 -1 var props = _ref94.props;-1 24631 var titleNode = virtualNode.children.find(function(_ref93) { -1 24632 var props = _ref93.props; 24417 24633 return props.nodeName === 'title'; 24418 24634 }); 24419 24635 if (!titleNode) { @@ -24550,8 +24766,8 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate : 24550 24766 } 24551 24767 return false; 24552 24768 }24553 -1 function getNumberValue(domNode, _ref95) {24554 -1 var cssProperty = _ref95.cssProperty, absoluteValues = _ref95.absoluteValues, normalValue = _ref95.normalValue;-1 24769 function getNumberValue(domNode, _ref94) { -1 24770 var cssProperty = _ref94.cssProperty, absoluteValues = _ref94.absoluteValues, normalValue = _ref94.normalValue; 24555 24771 var computedStyle = window.getComputedStyle(domNode); 24556 24772 var cssPropValue = computedStyle.getPropertyValue(cssProperty); 24557 24773 if (cssPropValue === 'normal') { @@ -24698,8 +24914,8 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate : 24698 24914 } else if (node !== document.body && has_content_default(node, true) && !isShallowlyHidden(virtualNode)) { 24699 24915 return [ virtualNode ]; 24700 24916 } else {24701 -1 return virtualNode.children.filter(function(_ref96) {24702 -1 var actualNode = _ref96.actualNode;-1 24917 return virtualNode.children.filter(function(_ref95) { -1 24918 var actualNode = _ref95.actualNode; 24703 24919 return actualNode.nodeType === 1; 24704 24920 }).map(function(vNode) { 24705 24921 return findRegionlessElms(vNode, options); @@ -24736,19 +24952,19 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate : 24736 24952 return; 24737 24953 } 24738 24954 var frameAncestry = r.node.ancestry.slice(0, -1);24739 -1 var _iterator15 = _createForOfIteratorHelper(iframeResults), _step15;-1 24955 var _iterator17 = _createForOfIteratorHelper(iframeResults), _step17; 24740 24956 try {24741 -1 for (_iterator15.s(); !(_step15 = _iterator15.n()).done; ) {24742 -1 var iframeResult = _step15.value;-1 24957 for (_iterator17.s(); !(_step17 = _iterator17.n()).done; ) { -1 24958 var iframeResult = _step17.value; 24743 24959 if (_matchAncestry(frameAncestry, iframeResult.node.ancestry)) { 24744 24960 r.result = iframeResult.result; 24745 24961 break; 24746 24962 } 24747 24963 } 24748 24964 } catch (err) {24749 -1 _iterator15.e(err);-1 24965 _iterator17.e(err); 24750 24966 } finally {24751 -1 _iterator15.f();-1 24967 _iterator17.f(); 24752 24968 } 24753 24969 }); 24754 24970 iframeResults.forEach(function(r) { @@ -24781,16 +24997,16 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate : 24781 24997 var outerText = elm.textContent.trim(); 24782 24998 var innerText = outerText; 24783 24999 while (innerText === outerText && nextNode !== void 0) {24784 -1 var _i35 = -1;-1 25000 var _i21 = -1; 24785 25001 elm = nextNode; 24786 25002 if (elm.children.length === 0) { 24787 25003 return elm; 24788 25004 } 24789 25005 do {24790 -1 _i35++;24791 -1 innerText = elm.children[_i35].textContent.trim();24792 -1 } while (innerText === '' && _i35 + 1 < elm.children.length);24793 -1 nextNode = elm.children[_i35];-1 25006 _i21++; -1 25007 innerText = elm.children[_i21].textContent.trim(); -1 25008 } while (innerText === '' && _i21 + 1 < elm.children.length); -1 25009 nextNode = elm.children[_i21]; 24794 25010 } 24795 25011 return elm; 24796 25012 } @@ -24847,7 +25063,7 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate : 24847 25063 var separatorRegex = /[;,\s]/; 24848 25064 var validRedirectNumRegex = /^[0-9.]+$/; 24849 25065 function metaRefreshEvaluate(node, options, virtualNode) {24850 -1 var _ref97 = options || {}, minDelay = _ref97.minDelay, maxDelay = _ref97.maxDelay;-1 25066 var _ref96 = options || {}, minDelay = _ref96.minDelay, maxDelay = _ref96.maxDelay; 24851 25067 var content = (virtualNode.attr('content') || '').trim(); 24852 25068 var _content$split = content.split(separatorRegex), _content$split2 = _slicedToArray(_content$split, 1), redirectStr = _content$split2[0]; 24853 25069 if (!redirectStr.match(validRedirectNumRegex)) { @@ -25198,8 +25414,8 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate : 25198 25414 if (a2.length !== b2.length) { 25199 25415 return false; 25200 25416 }25201 -1 for (var _i36 = 0; _i36 < a2.length; ++_i36) {25202 -1 if (a2[_i36] !== b2[_i36]) {-1 25417 for (var _i22 = 0; _i22 < a2.length; ++_i22) { -1 25418 if (a2[_i22] !== b2[_i22]) { 25203 25419 return false; 25204 25420 } 25205 25421 } @@ -25210,10 +25426,10 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate : 25210 25426 var OPAQUE_STROKE_OFFSET_MIN_PX = 1.5; 25211 25427 var edges = [ 'top', 'right', 'bottom', 'left' ]; 25212 25428 function _getStrokeColorsFromShadows(parsedShadows) {25213 -1 var _ref98 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, _ref98$ignoreEdgeCoun = _ref98.ignoreEdgeCount, ignoreEdgeCount = _ref98$ignoreEdgeCoun === void 0 ? false : _ref98$ignoreEdgeCoun;-1 25429 var _ref97 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, _ref97$ignoreEdgeCoun = _ref97.ignoreEdgeCount, ignoreEdgeCount = _ref97$ignoreEdgeCoun === void 0 ? false : _ref97$ignoreEdgeCoun; 25214 25430 var shadowMap = getShadowColorsMap(parsedShadows);25215 -1 var shadowsByColor = Object.entries(shadowMap).map(function(_ref99) {25216 -1 var _ref100 = _slicedToArray(_ref99, 2), colorStr = _ref100[0], sides = _ref100[1];-1 25431 var shadowsByColor = Object.entries(shadowMap).map(function(_ref98) { -1 25432 var _ref99 = _slicedToArray(_ref98, 2), colorStr = _ref99[0], sides = _ref99[1]; 25217 25433 var edgeCount = edges.filter(function(side) { 25218 25434 return sides[side].length !== 0; 25219 25435 }).length; @@ -25223,8 +25439,8 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate : 25223 25439 edgeCount: edgeCount 25224 25440 }; 25225 25441 });25226 -1 if (!ignoreEdgeCount && shadowsByColor.some(function(_ref101) {25227 -1 var edgeCount = _ref101.edgeCount;-1 25442 if (!ignoreEdgeCount && shadowsByColor.some(function(_ref100) { -1 25443 var edgeCount = _ref100.edgeCount; 25228 25444 return edgeCount > 1 && edgeCount < 4; 25229 25445 })) { 25230 25446 return null; @@ -25235,11 +25451,11 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate : 25235 25451 } 25236 25452 function getShadowColorsMap(parsedShadows) { 25237 25453 var colorMap = {};25238 -1 var _iterator16 = _createForOfIteratorHelper(parsedShadows), _step16;-1 25454 var _iterator18 = _createForOfIteratorHelper(parsedShadows), _step18; 25239 25455 try {25240 -1 for (_iterator16.s(); !(_step16 = _iterator16.n()).done; ) {-1 25456 for (_iterator18.s(); !(_step18 = _iterator18.n()).done; ) { 25241 25457 var _colorMap$colorStr;25242 -1 var _step16$value = _step16.value, colorStr = _step16$value.colorStr, pixels = _step16$value.pixels;-1 25458 var _step18$value = _step18.value, colorStr = _step18$value.colorStr, pixels = _step18$value.pixels; 25243 25459 (_colorMap$colorStr = colorMap[colorStr]) !== null && _colorMap$colorStr !== void 0 ? _colorMap$colorStr : colorMap[colorStr] = { 25244 25460 top: [], 25245 25461 right: [], @@ -25260,14 +25476,14 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate : 25260 25476 } 25261 25477 } 25262 25478 } catch (err) {25263 -1 _iterator16.e(err);-1 25479 _iterator18.e(err); 25264 25480 } finally {25265 -1 _iterator16.f();-1 25481 _iterator18.f(); 25266 25482 } 25267 25483 return colorMap; 25268 25484 }25269 -1 function shadowGroupToColor(_ref102) {25270 -1 var colorStr = _ref102.colorStr, sides = _ref102.sides, edgeCount = _ref102.edgeCount;-1 25485 function shadowGroupToColor(_ref101) { -1 25486 var colorStr = _ref101.colorStr, sides = _ref101.sides, edgeCount = _ref101.edgeCount; 25271 25487 if (edgeCount !== 4) { 25272 25488 return null; 25273 25489 } @@ -25318,8 +25534,8 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate : 25318 25534 throw new Error('Unable to process text-shadows: '.concat(str)); 25319 25535 } 25320 25536 }25321 -1 shadows.forEach(function(_ref103) {25322 -1 var pixels = _ref103.pixels;-1 25537 shadows.forEach(function(_ref102) { -1 25538 var pixels = _ref102.pixels; 25323 25539 if (pixels.length === 2) { 25324 25540 pixels.push(0); 25325 25541 } @@ -25327,7 +25543,7 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate : 25327 25543 return shadows; 25328 25544 } 25329 25545 function _getTextShadowColors(node) {25330 -1 var _ref104 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, minRatio = _ref104.minRatio, maxRatio = _ref104.maxRatio, ignoreEdgeCount = _ref104.ignoreEdgeCount;-1 25546 var _ref103 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, minRatio = _ref103.minRatio, maxRatio = _ref103.maxRatio, ignoreEdgeCount = _ref103.ignoreEdgeCount; 25331 25547 var shadowColors = []; 25332 25548 var style = window.getComputedStyle(node); 25333 25549 var textShadow = style.getPropertyValue('text-shadow'); @@ -25339,10 +25555,10 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate : 25339 25555 assert_default(isNaN(fontSize) === false, 'Unable to determine font-size value '.concat(fontSizeStr)); 25340 25556 var thinShadows = []; 25341 25557 var shadows = _parseTextShadows(textShadow);25342 -1 var _iterator17 = _createForOfIteratorHelper(shadows), _step17;-1 25558 var _iterator19 = _createForOfIteratorHelper(shadows), _step19; 25343 25559 try {25344 -1 for (_iterator17.s(); !(_step17 = _iterator17.n()).done; ) {25345 -1 var shadow = _step17.value;-1 25560 for (_iterator19.s(); !(_step19 = _iterator19.n()).done; ) { -1 25561 var shadow = _step19.value; 25346 25562 var colorStr = shadow.colorStr || style.getPropertyValue('color'); 25347 25563 var _shadow$pixels = _slicedToArray(shadow.pixels, 3), offsetX = _shadow$pixels[0], offsetY = _shadow$pixels[1], _shadow$pixels$ = _shadow$pixels[2], blurRadius = _shadow$pixels$ === void 0 ? 0 : _shadow$pixels$; 25348 25564 if (maxRatio && blurRadius >= fontSize * maxRatio) { @@ -25375,9 +25591,9 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate : 25375 25591 shadowColors.push(_color3); 25376 25592 } 25377 25593 } catch (err) {25378 -1 _iterator17.e(err);-1 25594 _iterator19.e(err); 25379 25595 } finally {25380 -1 _iterator17.f();-1 25596 _iterator19.f(); 25381 25597 } 25382 25598 if (thinShadows.length > 0) { 25383 25599 var strokeColors = _getStrokeColorsFromShadows(thinShadows, { @@ -25390,8 +25606,8 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate : 25390 25606 } 25391 25607 return shadowColors; 25392 25608 }25393 -1 function textShadowColor(_ref105) {25394 -1 var colorStr = _ref105.colorStr, offsetX = _ref105.offsetX, offsetY = _ref105.offsetY, blurRadius = _ref105.blurRadius, fontSize = _ref105.fontSize;-1 25609 function textShadowColor(_ref104) { -1 25610 var colorStr = _ref104.colorStr, offsetX = _ref104.offsetX, offsetY = _ref104.offsetY, blurRadius = _ref104.blurRadius, fontSize = _ref104.fontSize; 25395 25611 if (offsetX > blurRadius || offsetY > blurRadius) { 25396 25612 return new color_default(0, 0, 0, 0); 25397 25613 } @@ -25408,25 +25624,24 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate : 25408 25624 return .185 / (relativeBlur + .4); 25409 25625 } 25410 25626 function _getStackingContext(elm, elmStack) {25411 -1 var _elmStack;25412 25627 var virtualNode = get_node_from_tree_default(elm); 25413 25628 if (virtualNode._stackingContext) { 25414 25629 return virtualNode._stackingContext; 25415 25630 } 25416 25631 var stackingContext = []; 25417 25632 var contextMap = new Map();25418 -1 elmStack = (_elmStack = elmStack) !== null && _elmStack !== void 0 ? _elmStack : _getBackgroundStack(elm);-1 25633 elmStack = elmStack !== null && elmStack !== void 0 ? elmStack : _getBackgroundStack(elm); 25419 25634 elmStack.forEach(function(bgElm) { 25420 25635 var _stackingOrder2; 25421 25636 var bgVNode = get_node_from_tree_default(bgElm); 25422 25637 var bgColor = getOwnBackgroundColor2(bgVNode);25423 -1 var stackingOrder = bgVNode._stackingOrder.filter(function(_ref106) {25424 -1 var vNode = _ref106.vNode;-1 25638 var stackingOrder = bgVNode._stackingOrder.filter(function(_ref105) { -1 25639 var vNode = _ref105.vNode; 25425 25640 return !!vNode; 25426 25641 });25427 -1 stackingOrder.forEach(function(_ref107, index) {-1 25642 stackingOrder.forEach(function(_ref106, index) { 25428 25643 var _stackingOrder;25429 -1 var vNode = _ref107.vNode;-1 25644 var vNode = _ref106.vNode; 25430 25645 var ancestorVNode2 = (_stackingOrder = stackingOrder[index - 1]) === null || _stackingOrder === void 0 ? void 0 : _stackingOrder.vNode; 25431 25646 var context2 = addToStackingContext(contextMap, vNode, ancestorVNode2); 25432 25647 if (index === 0 && !contextMap.get(vNode)) { @@ -25534,16 +25749,24 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate : 25534 25749 color: bgColors.reduce(_flattenShadowColors) 25535 25750 } ]; 25536 25751 }25537 -1 for (var _i37 = 0; _i37 < elmStack.length; _i37++) {25538 -1 var bgElm = elmStack[_i37];-1 25752 for (var _i23 = 0; _i23 < elmStack.length; _i23++) { -1 25753 var bgElm = elmStack[_i23]; 25539 25754 var bgElmStyle = window.getComputedStyle(bgElm); 25540 25755 if (element_has_image_default(bgElm, bgElmStyle)) { 25541 25756 bgElms.push(bgElm); 25542 25757 return null; 25543 25758 }25544 -1 var bgColor = get_own_background_color_default(bgElmStyle);25545 -1 if (bgColor.alpha === 0) {25546 -1 continue;-1 25759 var bgColor = void 0; -1 25760 try { -1 25761 bgColor = get_own_background_color_default(bgElmStyle); -1 25762 if (bgColor.alpha === 0) { -1 25763 continue; -1 25764 } -1 25765 } catch (error) { -1 25766 if (error && incomplete_data_default.get('colorParse')) { -1 25767 return null; -1 25768 } -1 25769 throw error; 25547 25770 } 25548 25771 if (bgElmStyle.getPropertyValue('display') !== 'inline' && !fullyEncompasses(bgElm, textRects)) { 25549 25772 bgElms.push(bgElm); @@ -25573,9 +25796,13 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate : 25573 25796 var right = nodeRect.right, bottom = nodeRect.bottom; 25574 25797 var style = window.getComputedStyle(node); 25575 25798 var overflow = style.getPropertyValue('overflow'); -1 25799 var paddingLeft = parseInt(style.getPropertyValue('padding-left'), 10); -1 25800 var paddingRight = parseInt(style.getPropertyValue('padding-right'), 10); -1 25801 var paddingTop = parseInt(style.getPropertyValue('padding-top'), 10); -1 25802 var paddingBottom = parseInt(style.getPropertyValue('padding-bottom'), 10); 25576 25803 if ([ 'scroll', 'auto' ].includes(overflow) || node instanceof window.HTMLHtmlElement) {25577 -1 right = nodeRect.left + node.scrollWidth;25578 -1 bottom = nodeRect.top + node.scrollHeight;-1 25804 right = nodeRect.left + node.scrollWidth + paddingLeft + paddingRight; -1 25805 bottom = nodeRect.top + node.scrollHeight + paddingTop + paddingBottom; 25579 25806 } 25580 25807 return rects.every(function(rect) { 25581 25808 return rect.top >= nodeRect.top && rect.bottom <= bottom && rect.left >= nodeRect.left && rect.right <= right; @@ -25622,7 +25849,6 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate : 25622 25849 } 25623 25850 var get_contrast_default = getContrast; 25624 25851 function _getForegroundColor(node, _, bgColor) {25625 -1 var _bgColor;25626 25852 var options = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {}; 25627 25853 var nodeStyle = window.getComputedStyle(node); 25628 25854 var colorStack = [ function() { @@ -25635,21 +25861,28 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate : 25635 25861 }); 25636 25862 } ]; 25637 25863 var fgColors = [];25638 -1 for (var _i38 = 0, _colorStack = colorStack; _i38 < _colorStack.length; _i38++) {25639 -1 var colorFn = _colorStack[_i38];25640 -1 var _color4 = colorFn();25641 -1 if (!_color4) {25642 -1 continue;-1 25864 try { -1 25865 for (var _i24 = 0, _colorStack = colorStack; _i24 < _colorStack.length; _i24++) { -1 25866 var colorFn = _colorStack[_i24]; -1 25867 var _color4 = colorFn(); -1 25868 if (!_color4) { -1 25869 continue; -1 25870 } -1 25871 fgColors = fgColors.concat(_color4); -1 25872 if (_color4.alpha === 1) { -1 25873 break; -1 25874 } 25643 25875 }25644 -1 fgColors = fgColors.concat(_color4);25645 -1 if (_color4.alpha === 1) {25646 -1 break;-1 25876 } catch (error) { -1 25877 if (error && incomplete_data_default.get('colorParse')) { -1 25878 return null; 25647 25879 } -1 25880 throw error; 25648 25881 } 25649 25882 var fgColor = fgColors.reduce(function(source, backdrop) { 25650 25883 return _flattenColors(source, backdrop); 25651 25884 });25652 -1 (_bgColor = bgColor) !== null && _bgColor !== void 0 ? _bgColor : bgColor = _getBackgroundColor2(node, []);-1 25885 bgColor !== null && bgColor !== void 0 ? bgColor : bgColor = _getBackgroundColor2(node, []); 25653 25886 if (bgColor === null) { 25654 25887 var reason = incomplete_data_default.get('bgColor'); 25655 25888 incomplete_data_default.set('fgColor', reason); @@ -25662,8 +25895,8 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate : 25662 25895 function getTextColor(nodeStyle) { 25663 25896 return new color_default().parseString(nodeStyle.getPropertyValue('-webkit-text-fill-color') || nodeStyle.getPropertyValue('color')); 25664 25897 }25665 -1 function getStrokeColor(nodeStyle, _ref108) {25666 -1 var _ref108$textStrokeEmM = _ref108.textStrokeEmMin, textStrokeEmMin = _ref108$textStrokeEmM === void 0 ? 0 : _ref108$textStrokeEmM;-1 25898 function getStrokeColor(nodeStyle, _ref107) { -1 25899 var _ref107$textStrokeEmM = _ref107.textStrokeEmMin, textStrokeEmMin = _ref107$textStrokeEmM === void 0 ? 0 : _ref107$textStrokeEmM; 25667 25900 var strokeWidth = parseFloat(nodeStyle.getPropertyValue('-webkit-text-stroke-width')); 25668 25901 if (strokeWidth === 0) { 25669 25902 return null; @@ -25705,11 +25938,11 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate : 25705 25938 return fgColor; 25706 25939 } 25707 25940 function findNodeInContexts(contexts, node) {25708 -1 var _iterator18 = _createForOfIteratorHelper(contexts), _step18;-1 25941 var _iterator20 = _createForOfIteratorHelper(contexts), _step20; 25709 25942 try {25710 -1 for (_iterator18.s(); !(_step18 = _iterator18.n()).done; ) {-1 25943 for (_iterator20.s(); !(_step20 = _iterator20.n()).done; ) { 25711 25944 var _context$vNode;25712 -1 var context = _step18.value;-1 25945 var context = _step20.value; 25713 25946 if (((_context$vNode = context.vNode) === null || _context$vNode === void 0 ? void 0 : _context$vNode.actualNode) === node) { 25714 25947 return context; 25715 25948 } @@ -25719,9 +25952,9 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate : 25719 25952 } 25720 25953 } 25721 25954 } catch (err) {25722 -1 _iterator18.e(err);-1 25955 _iterator20.e(err); 25723 25956 } finally {25724 -1 _iterator18.f();-1 25957 _iterator20.f(); 25725 25958 } 25726 25959 } 25727 25960 function hasValidContrastRatio(bg, fg, fontSize, isBold) { @@ -25825,8 +26058,8 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate : 25825 26058 if (results.length < 2) { 25826 26059 return results; 25827 26060 }25828 -1 var incompleteResults = results.filter(function(_ref109) {25829 -1 var result = _ref109.result;-1 26061 var incompleteResults = results.filter(function(_ref108) { -1 26062 var result = _ref108.result; 25830 26063 return result !== void 0; 25831 26064 }); 25832 26065 var uniqueResults = []; @@ -25838,12 +26071,12 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate : 25838 26071 if (nameMap[name]) { 25839 26072 return 1; 25840 26073 }25841 -1 var sameNameResults = incompleteResults.filter(function(_ref110, resultNum) {25842 -1 var data = _ref110.data;-1 26074 var sameNameResults = incompleteResults.filter(function(_ref109, resultNum) { -1 26075 var data = _ref109.data; 25843 26076 return data.name === name && resultNum !== index; 25844 26077 });25845 -1 var isSameUrl = sameNameResults.every(function(_ref111) {25846 -1 var data = _ref111.data;-1 26078 var isSameUrl = sameNameResults.every(function(_ref110) { -1 26079 var data = _ref110.data; 25847 26080 return isIdenticalObject(data.urlProps, urlProps); 25848 26081 }); 25849 26082 if (sameNameResults.length && !isSameUrl) { @@ -25869,7 +26102,7 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate : 25869 26102 var headingRole = role && role.includes('heading'); 25870 26103 var ariaHeadingLevel = vNode.attr('aria-level'); 25871 26104 var ariaLevel = parseInt(ariaHeadingLevel, 10);25872 -1 var _ref112 = vNode.props.nodeName.match(/h(\d)/) || [], _ref113 = _slicedToArray(_ref112, 2), headingLevel = _ref113[1];-1 26105 var _ref111 = vNode.props.nodeName.match(/h(\d)/) || [], _ref112 = _slicedToArray(_ref111, 2), headingLevel = _ref112[1]; 25873 26106 if (!headingRole) { 25874 26107 return -1; 25875 26108 } @@ -25929,14 +26162,14 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate : 25929 26162 } 25930 26163 function getHeadingOrder(results) { 25931 26164 results = _toConsumableArray(results);25932 -1 results.sort(function(_ref114, _ref115) {25933 -1 var nodeA = _ref114.node;25934 -1 var nodeB = _ref115.node;-1 26165 results.sort(function(_ref113, _ref114) { -1 26166 var nodeA = _ref113.node; -1 26167 var nodeB = _ref114.node; 25935 26168 return nodeA.ancestry.length - nodeB.ancestry.length; 25936 26169 }); 25937 26170 var headingOrder = results.reduce(mergeHeadingOrder, []);25938 -1 return headingOrder.filter(function(_ref116) {25939 -1 var level = _ref116.level;-1 26171 return headingOrder.filter(function(_ref115) { -1 26172 var level = _ref115.level; 25940 26173 return level !== -1; 25941 26174 }); 25942 26175 } @@ -26065,10 +26298,10 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate : 26065 26298 function filterByElmsOverlap(vNode, nearbyElms) { 26066 26299 var fullyObscuringElms = []; 26067 26300 var partialObscuringElms = [];26068 -1 var _iterator19 = _createForOfIteratorHelper(nearbyElms), _step19;-1 26301 var _iterator21 = _createForOfIteratorHelper(nearbyElms), _step21; 26069 26302 try {26070 -1 for (_iterator19.s(); !(_step19 = _iterator19.n()).done; ) {26071 -1 var vNeighbor = _step19.value;-1 26303 for (_iterator21.s(); !(_step21 = _iterator21.n()).done; ) { -1 26304 var vNeighbor = _step21.value; 26072 26305 if (!isDescendantNotInTabOrder2(vNode, vNeighbor) && _hasVisualOverlap(vNode, vNeighbor) && getCssPointerEvents(vNeighbor) !== 'none') { 26073 26306 if (isEnclosedRect2(vNode, vNeighbor)) { 26074 26307 fullyObscuringElms.push(vNeighbor); @@ -26078,9 +26311,9 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate : 26078 26311 } 26079 26312 } 26080 26313 } catch (err) {26081 -1 _iterator19.e(err);-1 26314 _iterator21.e(err); 26082 26315 } finally {26083 -1 _iterator19.f();-1 26316 _iterator21.f(); 26084 26317 } 26085 26318 return { 26086 26319 fullyObscuringElms: fullyObscuringElms, @@ -26089,8 +26322,8 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate : 26089 26322 } 26090 26323 function getLargestUnobscuredArea(vNode, obscuredNodes) { 26091 26324 var nodeRect = vNode.boundingClientRect;26092 -1 var obscuringRects = obscuredNodes.map(function(_ref117) {26093 -1 var rect = _ref117.boundingClientRect;-1 26325 var obscuringRects = obscuredNodes.map(function(_ref116) { -1 26326 var rect = _ref116.boundingClientRect; 26094 26327 return rect; 26095 26328 }); 26096 26329 var unobscuredRects; @@ -26136,8 +26369,8 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate : 26136 26369 return _contains(vAncestor, vNode) && !_isInTabOrder(vNode); 26137 26370 } 26138 26371 function mapActualNodes(vNodes) {26139 -1 return vNodes.map(function(_ref118) {26140 -1 var actualNode = _ref118.actualNode;-1 26372 return vNodes.map(function(_ref117) { -1 26373 var actualNode = _ref117.actualNode; 26141 26374 return actualNode; 26142 26375 }); 26143 26376 } @@ -26153,10 +26386,10 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate : 26153 26386 } 26154 26387 var closeNeighbors = []; 26155 26388 var closestOffset = minOffset;26156 -1 var _iterator20 = _createForOfIteratorHelper(_findNearbyElms(vNode, minOffset)), _step20;-1 26389 var _iterator22 = _createForOfIteratorHelper(_findNearbyElms(vNode, minOffset)), _step22; 26157 26390 try {26158 -1 for (_iterator20.s(); !(_step20 = _iterator20.n()).done; ) {26159 -1 var vNeighbor = _step20.value;-1 26391 for (_iterator22.s(); !(_step22 = _iterator22.n()).done; ) { -1 26392 var vNeighbor = _step22.value; 26160 26393 if (get_role_type_default(vNeighbor) !== 'widget' || !_isFocusable(vNeighbor)) { 26161 26394 continue; 26162 26395 } @@ -26185,9 +26418,9 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate : 26185 26418 closeNeighbors.push(vNeighbor); 26186 26419 } 26187 26420 } catch (err) {26188 -1 _iterator20.e(err);-1 26421 _iterator22.e(err); 26189 26422 } finally {26190 -1 _iterator20.f();-1 26423 _iterator22.f(); 26191 26424 } 26192 26425 if (closeNeighbors.length === 0) { 26193 26426 this.data({ @@ -26196,8 +26429,8 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate : 26196 26429 }); 26197 26430 return true; 26198 26431 }26199 -1 this.relatedNodes(closeNeighbors.map(function(_ref119) {26200 -1 var actualNode = _ref119.actualNode;-1 26432 this.relatedNodes(closeNeighbors.map(function(_ref118) { -1 26433 var actualNode = _ref118.actualNode; 26201 26434 return actualNode; 26202 26435 })); 26203 26436 if (!closeNeighbors.some(_isInTabOrder)) { @@ -26218,7 +26451,7 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate : 26218 26451 return Math.round(num * 10) / 10; 26219 26452 } 26220 26453 function metaViewportScaleEvaluate(node, options, virtualNode) {26221 -1 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;-1 26454 var _ref119 = options || {}, _ref119$scaleMinimum = _ref119.scaleMinimum, scaleMinimum = _ref119$scaleMinimum === void 0 ? 2 : _ref119$scaleMinimum, _ref119$lowerBound = _ref119.lowerBound, lowerBound = _ref119$lowerBound === void 0 ? false : _ref119$lowerBound; 26222 26455 var content = virtualNode.attr('content') || ''; 26223 26456 if (!content) { 26224 26457 return true; @@ -26263,8 +26496,8 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate : 26263 26496 } 26264 26497 var meta_viewport_scale_evaluate_default = metaViewportScaleEvaluate; 26265 26498 function cssOrientationLockEvaluate(node, options, virtualNode, context) {26266 -1 var _ref121 = context || {}, _ref121$cssom = _ref121.cssom, cssom = _ref121$cssom === void 0 ? void 0 : _ref121$cssom;26267 -1 var _ref122 = options || {}, _ref122$degreeThresho = _ref122.degreeThreshold, degreeThreshold = _ref122$degreeThresho === void 0 ? 0 : _ref122$degreeThresho;-1 26499 var _ref120 = context || {}, _ref120$cssom = _ref120.cssom, cssom = _ref120$cssom === void 0 ? void 0 : _ref120$cssom; -1 26500 var _ref121 = options || {}, _ref121$degreeThresho = _ref121.degreeThreshold, degreeThreshold = _ref121$degreeThresho === void 0 ? 0 : _ref121$degreeThresho; 26268 26501 if (!cssom || !cssom.length) { 26269 26502 return void 0; 26270 26503 } @@ -26272,14 +26505,14 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate : 26272 26505 var relatedElements = []; 26273 26506 var rulesGroupByDocumentFragment = groupCssomByDocument(cssom); 26274 26507 var _loop9 = function _loop9() {26275 -1 var key = _Object$keys3[_i39];-1 26508 var key = _Object$keys3[_i25]; 26276 26509 var _rulesGroupByDocument = rulesGroupByDocumentFragment[key], root = _rulesGroupByDocument.root, rules = _rulesGroupByDocument.rules; 26277 26510 var orientationRules = rules.filter(isMediaRuleWithOrientation); 26278 26511 if (!orientationRules.length) { 26279 26512 return 1; 26280 26513 }26281 -1 orientationRules.forEach(function(_ref123) {26282 -1 var cssRules = _ref123.cssRules;-1 26514 orientationRules.forEach(function(_ref122) { -1 26515 var cssRules = _ref122.cssRules; 26283 26516 Array.from(cssRules).forEach(function(cssRule) { 26284 26517 var locked = getIsOrientationLocked(cssRule); 26285 26518 if (locked && cssRule.selectorText.toUpperCase() !== 'HTML') { @@ -26290,7 +26523,7 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate : 26290 26523 }); 26291 26524 }); 26292 26525 };26293 -1 for (var _i39 = 0, _Object$keys3 = Object.keys(rulesGroupByDocumentFragment); _i39 < _Object$keys3.length; _i39++) {-1 26526 for (var _i25 = 0, _Object$keys3 = Object.keys(rulesGroupByDocumentFragment); _i25 < _Object$keys3.length; _i25++) { 26294 26527 if (_loop9()) { 26295 26528 continue; 26296 26529 } @@ -26303,8 +26536,8 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate : 26303 26536 } 26304 26537 return false; 26305 26538 function groupCssomByDocument(cssObjectModel) {26306 -1 return cssObjectModel.reduce(function(out, _ref124) {26307 -1 var sheet = _ref124.sheet, root = _ref124.root, shadowId = _ref124.shadowId;-1 26539 return cssObjectModel.reduce(function(out, _ref123) { -1 26540 var sheet = _ref123.sheet, root = _ref123.root, shadowId = _ref123.shadowId; 26308 26541 var key = shadowId ? shadowId : 'topDocument'; 26309 26542 if (!out[key]) { 26310 26543 out[key] = { @@ -26320,15 +26553,15 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate : 26320 26553 return out; 26321 26554 }, {}); 26322 26555 }26323 -1 function isMediaRuleWithOrientation(_ref125) {26324 -1 var type2 = _ref125.type, cssText = _ref125.cssText;-1 26556 function isMediaRuleWithOrientation(_ref124) { -1 26557 var type2 = _ref124.type, cssText = _ref124.cssText; 26325 26558 if (type2 !== 4) { 26326 26559 return false; 26327 26560 } 26328 26561 return /orientation:\s*landscape/i.test(cssText) || /orientation:\s*portrait/i.test(cssText); 26329 26562 }26330 -1 function getIsOrientationLocked(_ref126) {26331 -1 var selectorText = _ref126.selectorText, style = _ref126.style;-1 26563 function getIsOrientationLocked(_ref125) { -1 26564 var selectorText = _ref125.selectorText, style = _ref125.style; 26332 26565 if (!selectorText || style.length <= 0) { 26333 26566 return false; 26334 26567 } @@ -26383,7 +26616,7 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate : 26383 26616 } 26384 26617 } 26385 26618 function getAngleInDegrees(angleWithUnit) {26386 -1 var _ref127 = angleWithUnit.match(/(deg|grad|rad|turn)/) || [], _ref128 = _slicedToArray(_ref127, 1), unit = _ref128[0];-1 26619 var _ref126 = angleWithUnit.match(/(deg|grad|rad|turn)/) || [], _ref127 = _slicedToArray(_ref126, 1), unit = _ref127[0]; 26387 26620 if (!unit) { 26388 26621 return 0; 26389 26622 } @@ -26524,8 +26757,8 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate : 26524 26757 return false; 26525 26758 } 26526 26759 var hasDt = false, hasDd = false, nodeName2;26527 -1 for (var _i40 = 0; _i40 < children.length; _i40++) {26528 -1 nodeName2 = children[_i40].props.nodeName.toUpperCase();-1 26760 for (var _i26 = 0; _i26 < children.length; _i26++) { -1 26761 nodeName2 = children[_i26].props.nodeName.toUpperCase(); 26529 26762 if (nodeName2 === 'DT') { 26530 26763 hasDt = true; 26531 26764 } @@ -26678,8 +26911,8 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate : 26678 26911 this.relatedNodes(relatedNodes); 26679 26912 return true; 26680 26913 }26681 -1 function getInvalidSelector(vChild, nested, _ref129) {26682 -1 var _ref129$validRoles = _ref129.validRoles, validRoles = _ref129$validRoles === void 0 ? [] : _ref129$validRoles, _ref129$validNodeName = _ref129.validNodeNames, validNodeNames = _ref129$validNodeName === void 0 ? [] : _ref129$validNodeName;-1 26914 function getInvalidSelector(vChild, nested, _ref128) { -1 26915 var _ref128$validRoles = _ref128.validRoles, validRoles = _ref128$validRoles === void 0 ? [] : _ref128$validRoles, _ref128$validNodeName = _ref128.validNodeNames, validNodeNames = _ref128$validNodeName === void 0 ? [] : _ref128$validNodeName; 26683 26916 var _vChild$props = vChild.props, nodeName2 = _vChild$props.nodeName, nodeType = _vChild$props.nodeType, nodeValue = _vChild$props.nodeValue; 26684 26917 var selector = nested ? 'div > ' : ''; 26685 26918 if (nodeType === 3 && nodeValue.trim() !== '') { @@ -26898,7 +27131,7 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate : 26898 27131 return !!implicitLabel; 26899 27132 } 26900 27133 return false;26901 -1 } catch (_unused10) {-1 27134 } catch (_unused0) { 26902 27135 return void 0; 26903 27136 } 26904 27137 } @@ -26909,13 +27142,13 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate : 26909 27142 return void 0; 26910 27143 } 26911 27144 var root = get_root_node_default2(node);26912 -1 var _id4 = escape_selector_default(node.getAttribute('id'));26913 -1 var label3 = root.querySelector('label[for="'.concat(_id4, '"]'));-1 27145 var _id6 = escape_selector_default(node.getAttribute('id')); -1 27146 var label3 = root.querySelector('label[for="'.concat(_id6, '"]')); 26914 27147 if (label3 && !_isVisibleToScreenReaders(label3)) { 26915 27148 var name; 26916 27149 try { 26917 27150 name = _accessibleTextVirtual(virtualNode).trim();26918 -1 } catch (_unused11) {-1 27151 } catch (_unused1) { 26919 27152 return void 0; 26920 27153 } 26921 27154 var isNameEmpty = name === ''; @@ -26944,7 +27177,7 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate : 26944 27177 } 26945 27178 var help_same_as_label_evaluate_default = helpSameAsLabelEvaluate; 26946 27179 function explicitEvaluate(node, options, virtualNode) {26947 -1 var _this7 = this;-1 27180 var _this9 = this; 26948 27181 if (!virtualNode.attr('id')) { 26949 27182 return false; 26950 27183 } @@ -26967,13 +27200,13 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate : 26967 27200 inControlContext: true, 26968 27201 startNode: virtualNode 26969 27202 }));26970 -1 _this7.data({-1 27203 _this9.data({ 26971 27204 explicitLabel: explicitLabel 26972 27205 }); 26973 27206 return !!explicitLabel; 26974 27207 } 26975 27208 });26976 -1 } catch (_unused12) {-1 27209 } catch (_unused10) { 26977 27210 return void 0; 26978 27211 } 26979 27212 } @@ -27023,7 +27256,7 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate : 27023 27256 this.relatedNodes(focusableDescendants2); 27024 27257 } 27025 27258 return false;27026 -1 } catch (_unused13) {-1 27259 } catch (_unused11) { 27027 27260 return void 0; 27028 27261 } 27029 27262 } @@ -27056,7 +27289,7 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate : 27056 27289 role: nodeRole 27057 27290 }); 27058 27291 while (parent) {27059 -1 var role = parent.getAttribute('role');-1 27292 var role = get_explicit_role_default(parent); 27060 27293 if (!role && parent.nodeName.toUpperCase() !== 'FORM') { 27061 27294 role = implicit_role_default(parent); 27062 27295 } @@ -27076,7 +27309,7 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate : 27076 27309 return !virtualNode.children.some(function(child) { 27077 27310 return focusableDescendants(child); 27078 27311 });27079 -1 } catch (_unused14) {-1 27312 } catch (_unused12) { 27080 27313 return void 0; 27081 27314 } 27082 27315 } @@ -27123,14 +27356,14 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate : 27123 27356 } 27124 27357 try { 27125 27358 return !_accessibleTextVirtual(virtualNode);27126 -1 } catch (_unused15) {-1 27359 } catch (_unused13) { 27127 27360 return void 0; 27128 27361 } 27129 27362 } 27130 27363 var focusable_no_name_evaluate_default = focusableNoNameEvaluate; 27131 27364 function focusableModalOpenEvaluate(node, options, virtualNode) {27132 -1 var tabbableElements = virtualNode.tabbableElements.map(function(_ref130) {27133 -1 var actualNode = _ref130.actualNode;-1 27365 var tabbableElements = virtualNode.tabbableElements.map(function(_ref129) { -1 27366 var actualNode = _ref129.actualNode; 27134 27367 return actualNode; 27135 27368 }); 27136 27369 if (!tabbableElements || !tabbableElements.length) { @@ -27270,7 +27503,7 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate : 27270 27503 function hasTextContentEvaluate(node, options, virtualNode) { 27271 27504 try { 27272 27505 return sanitize_default(subtree_text_default(virtualNode)) !== '';27273 -1 } catch (_unused16) {-1 27506 } catch (_unused14) { 27274 27507 return void 0; 27275 27508 } 27276 27509 } @@ -27418,8 +27651,8 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate : 27418 27651 return blockLike2.indexOf(display2) !== -1 || display2.substr(0, 6) === 'table-'; 27419 27652 } 27420 27653 function hasPseudoContent(node) {27421 -1 for (var _i41 = 0, _arr3 = [ 'before', 'after' ]; _i41 < _arr3.length; _i41++) {27422 -1 var pseudo = _arr3[_i41];-1 27654 for (var _i27 = 0, _arr3 = [ 'before', 'after' ]; _i27 < _arr3.length; _i27++) { -1 27655 var pseudo = _arr3[_i27]; 27423 27656 var style = window.getComputedStyle(node, ':'.concat(pseudo)); 27424 27657 var content = style.getPropertyValue('content'); 27425 27658 if (content !== 'none') { @@ -27525,7 +27758,7 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate : 27525 27758 var bold = parseFloat(fontWeight) >= boldValue || fontWeight === 'bold'; 27526 27759 var ptSize = Math.ceil(fontSize * 72) / 96; 27527 27760 var isSmallFont = bold && ptSize < boldTextPt || !bold && ptSize < largeTextPt;27528 -1 var _ref131 = isSmallFont ? contrastRatio.normal : contrastRatio.large, expected = _ref131.expected, minThreshold = _ref131.minThreshold, maxThreshold = _ref131.maxThreshold;-1 27761 var _ref130 = isSmallFont ? contrastRatio.normal : contrastRatio.large, expected = _ref130.expected, minThreshold = _ref130.minThreshold, maxThreshold = _ref130.maxThreshold; 27529 27762 var pseudoElm = findPseudoElement(virtualNode, { 27530 27763 ignorePseudo: ignorePseudo, 27531 27764 pseudoSizeThreshold: pseudoSizeThreshold @@ -27577,11 +27810,21 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate : 27577 27810 } 27578 27811 var truncatedResult = Math.floor(contrast2 * 100) / 100; 27579 27812 var missing; -1 27813 var colorParse; 27580 27814 if (bgColor === null) {27581 -1 missing = incomplete_data_default.get('bgColor');-1 27815 if (incomplete_data_default.get('colorParse')) { -1 27816 missing = 'colorParse'; -1 27817 colorParse = incomplete_data_default.get('colorParse'); -1 27818 } else { -1 27819 missing = incomplete_data_default.get('bgColor'); -1 27820 } 27582 27821 } else if (!isValid) { 27583 27822 missing = contrastContributor; 27584 27823 } -1 27824 if (fgColor === null && incomplete_data_default.get('colorParse')) { -1 27825 missing = 'colorParse'; -1 27826 colorParse = incomplete_data_default.get('colorParse'); -1 27827 } 27585 27828 var equalRatio = truncatedResult === 1; 27586 27829 var shortTextContent = visibleText.length === 1; 27587 27830 if (equalRatio) { @@ -27597,7 +27840,8 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate : 27597 27840 fontWeight: bold ? 'bold' : 'normal', 27598 27841 messageKey: missing, 27599 27842 expectedContrastRatio: expected + ':1',27600 -1 shadowColor: shadowColor ? shadowColor.toHexString() : void 0-1 27843 shadowColor: shadowColor ? shadowColor.toHexString() : void 0, -1 27844 colorParse: colorParse 27601 27845 }); 27602 27846 if (fgColor === null || bgColor === null || equalRatio || shortTextContent && !ignoreLength && !isValid) { 27603 27847 missing = null; @@ -27610,8 +27854,8 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate : 27610 27854 } 27611 27855 return isValid; 27612 27856 }27613 -1 function findPseudoElement(vNode, _ref132) {27614 -1 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;-1 27857 function findPseudoElement(vNode, _ref131) { -1 27858 var _ref131$pseudoSizeThr = _ref131.pseudoSizeThreshold, pseudoSizeThreshold = _ref131$pseudoSizeThr === void 0 ? .25 : _ref131$pseudoSizeThr, _ref131$ignorePseudo = _ref131.ignorePseudo, ignorePseudo = _ref131$ignorePseudo === void 0 ? false : _ref131$ignorePseudo; 27615 27859 if (ignorePseudo) { 27616 27860 return; 27617 27861 } @@ -27653,7 +27897,7 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate : 27653 27897 } 27654 27898 function parseUnit(str) { 27655 27899 var unitRegex = /^([0-9.]+)([a-z]+)$/i;27656 -1 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;-1 27900 var _ref132 = str.match(unitRegex) || [], _ref133 = _slicedToArray(_ref132, 3), _ref133$ = _ref133[1], value = _ref133$ === void 0 ? '' : _ref133$, _ref133$2 = _ref133[2], unit = _ref133$2 === void 0 ? '' : _ref133$2; 27657 27901 return { 27658 27902 value: parseFloat(value), 27659 27903 unit: unit.toLowerCase() @@ -27720,7 +27964,7 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate : 27720 27964 try { 27721 27965 label3 = sanitize_default(label_text_default(virtualNode)).toLowerCase(); 27722 27966 accText = sanitize_default(_accessibleTextVirtual(virtualNode)).toLowerCase();27723 -1 } catch (_unused17) {-1 27967 } catch (_unused15) { 27724 27968 return void 0; 27725 27969 } 27726 27970 if (!accText && !label3) { @@ -27753,8 +27997,8 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate : 27753 27997 return false; 27754 27998 } 27755 27999 var invalidrole_evaluate_default = invalidroleEvaluate;27756 -1 function hasWidgetRoleEvaluate(node) {27757 -1 var role = node.getAttribute('role');-1 28000 function hasWidgetRoleEvaluate(node, options, virtualNode) { -1 28001 var role = get_explicit_role_default(virtualNode); 27758 28002 if (role === null) { 27759 28003 return false; 27760 28004 } @@ -27823,7 +28067,7 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate : 27823 28067 } 27824 28068 try { 27825 28069 return sanitize_default(_accessibleTextVirtual(virtualNode)) !== '';27826 -1 } catch (_unused18) {-1 28070 } catch (_unused16) { 27827 28071 return void 0; 27828 28072 } 27829 28073 } @@ -27875,7 +28119,7 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate : 27875 28119 var attrValue = virtualNode.attr(attrName); 27876 28120 try { 27877 28121 validValue = validate_attr_value_default(virtualNode, attrName);27878 -1 } catch (_unused19) {-1 28122 } catch (_unused17) { 27879 28123 needsReview = ''.concat(attrName, '="').concat(attrValue, '"'); 27880 28124 messageKey = 'idrefs'; 27881 28125 return; @@ -27992,9 +28236,9 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate : 27992 28236 var o = null; 27993 28237 while (element) { 27994 28238 if (element.getAttribute('id')) {27995 -1 var _id5 = escape_selector_default(element.getAttribute('id'));-1 28239 var _id7 = escape_selector_default(element.getAttribute('id')); 27996 28240 var doc = get_root_node_default2(element);27997 -1 o = doc.querySelector('[aria-owns~='.concat(_id5, ']'));-1 28241 o = doc.querySelector('[aria-owns~='.concat(_id7, ']')); 27998 28242 if (o) { 27999 28243 owners.push(o); 28000 28244 } @@ -28011,8 +28255,8 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate : 28011 28255 } 28012 28256 var owners = getAriaOwners(node); 28013 28257 if (owners) {28014 -1 for (var _i42 = 0, l = owners.length; _i42 < l; _i42++) {28015 -1 missingParents = getMissingContext(get_node_from_tree_default(owners[_i42]), ownGroupRoles, missingParents, true);-1 28258 for (var _i28 = 0, l = owners.length; _i28 < l; _i28++) { -1 28259 missingParents = getMissingContext(get_node_from_tree_default(owners[_i28]), ownGroupRoles, missingParents, true); 28016 28260 if (!missingParents) { 28017 28261 return true; 28018 28262 } @@ -28032,19 +28276,19 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate : 28032 28276 return true; 28033 28277 } 28034 28278 var ownedRoles = getOwnedRoles(virtualNode, required);28035 -1 var unallowed = ownedRoles.filter(function(_ref135) {28036 -1 var role = _ref135.role, vNode = _ref135.vNode;-1 28279 var unallowed = ownedRoles.filter(function(_ref134) { -1 28280 var role = _ref134.role, vNode = _ref134.vNode; 28037 28281 return vNode.props.nodeType === 1 && !required.includes(role); 28038 28282 }); 28039 28283 if (unallowed.length) {28040 -1 this.relatedNodes(unallowed.map(function(_ref136) {28041 -1 var vNode = _ref136.vNode;-1 28284 this.relatedNodes(unallowed.map(function(_ref135) { -1 28285 var vNode = _ref135.vNode; 28042 28286 return vNode; 28043 28287 })); 28044 28288 this.data({ 28045 28289 messageKey: 'unallowed',28046 -1 values: unallowed.map(function(_ref137) {28047 -1 var vNode = _ref137.vNode, attr = _ref137.attr;-1 28290 values: unallowed.map(function(_ref136) { -1 28291 var vNode = _ref136.vNode, attr = _ref136.attr; 28048 28292 return getUnallowedSelector(vNode, attr); 28049 28293 }).filter(function(selector, index, array) { 28050 28294 return array.indexOf(selector) === index; @@ -28071,7 +28315,7 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate : 28071 28315 var vNode; 28072 28316 var ownedRoles = []; 28073 28317 var ownedVirtual = get_owned_virtual_default(virtualNode);28074 -1 var _loop10 = function _loop10() {-1 28318 var _loop0 = function _loop0() { 28075 28319 if (vNode.props.nodeType === 3) { 28076 28320 ownedRoles.push({ 28077 28321 vNode: vNode, @@ -28100,15 +28344,15 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate : 28100 28344 } 28101 28345 }; 28102 28346 while (vNode = ownedVirtual.shift()) {28103 -1 if (_loop10()) {-1 28347 if (_loop0()) { 28104 28348 continue; 28105 28349 } 28106 28350 } 28107 28351 return ownedRoles; 28108 28352 } 28109 28353 function hasRequiredChildren(required, ownedRoles) {28110 -1 return ownedRoles.some(function(_ref138) {28111 -1 var role = _ref138.role;-1 28354 return ownedRoles.some(function(_ref137) { -1 28355 var role = _ref137.role; 28112 28356 return role && required.includes(role); 28113 28357 }); 28114 28358 } @@ -28133,8 +28377,8 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate : 28133 28377 } 28134 28378 return nodeName2; 28135 28379 }28136 -1 function isContent(_ref139) {28137 -1 var vNode = _ref139.vNode;-1 28380 function isContent(_ref138) { -1 28381 var vNode = _ref138.vNode; 28138 28382 if (vNode.props.nodeType === 3) { 28139 28383 return vNode.props.nodeValue.trim().length > 0; 28140 28384 } @@ -28185,7 +28429,8 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate : 28185 28429 var elementsAllowedAriaLabel = (options === null || options === void 0 ? void 0 : options.elementsAllowedAriaLabel) || []; 28186 28430 var nodeName2 = virtualNode.props.nodeName; 28187 28431 var role = get_role_default(virtualNode, {28188 -1 chromium: true-1 28432 chromium: true, -1 28433 fallback: true 28189 28434 }); 28190 28435 var prohibitedList = listProhibitedAttrs(virtualNode, role, nodeName2, elementsAllowedAriaLabel); 28191 28436 var prohibited = prohibitedList.filter(function(attrName) { @@ -28197,7 +28442,7 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate : 28197 28442 if (prohibited.length === 0) { 28198 28443 return false; 28199 28444 }28200 -1 var messageKey = virtualNode.hasAttr('role') ? 'hasRole' : 'noRole';-1 28445 var messageKey = role !== null ? 'hasRole' : 'noRole'; 28201 28446 messageKey += prohibited.length > 1 ? 'Plural' : 'Singular'; 28202 28447 this.data({ 28203 28448 role: role, @@ -28265,7 +28510,7 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate : 28265 28510 var idref; 28266 28511 try { 28267 28512 idref = attr && idrefs_default(virtualNode, 'aria-errormessage')[0];28268 -1 } catch (_unused20) {-1 28513 } catch (_unused18) { 28269 28514 this.data({ 28270 28515 messageKey: 'idrefs', 28271 28516 values: token_list_default(attr) @@ -28280,7 +28525,7 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate : 28280 28525 }); 28281 28526 return false; 28282 28527 }28283 -1 return idref.getAttribute('role') === 'alert' || idref.getAttribute('aria-live') === 'assertive' || idref.getAttribute('aria-live') === 'polite' || token_list_default(virtualNode.attr('aria-describedby')).indexOf(attr) > -1;-1 28528 return get_explicit_role_default(idref) === 'alert' || idref.getAttribute('aria-live') === 'assertive' || idref.getAttribute('aria-live') === 'polite' || token_list_default(virtualNode.attr('aria-describedby')).indexOf(attr) > -1; 28284 28529 } 28285 28530 return; 28286 28531 } @@ -28292,7 +28537,7 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate : 28292 28537 } 28293 28538 function ariaConditionalRowAttr(node) { 28294 28539 var _invalidTableRowAttrs, _invalidTableRowAttrs2;28295 -1 var _ref140 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, invalidTableRowAttrs = _ref140.invalidTableRowAttrs;-1 28540 var _ref139 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, invalidTableRowAttrs = _ref139.invalidTableRowAttrs; 28296 28541 var virtualNode = arguments.length > 2 ? arguments[2] : undefined; 28297 28542 var invalidAttrs = (_invalidTableRowAttrs = invalidTableRowAttrs === null || invalidTableRowAttrs === void 0 || (_invalidTableRowAttrs2 = invalidTableRowAttrs.filter) === null || _invalidTableRowAttrs2 === void 0 ? void 0 : _invalidTableRowAttrs2.call(invalidTableRowAttrs, function(invalidAttr) { 28298 28543 return virtualNode.hasAttr(invalidAttr); @@ -28394,18 +28639,18 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate : 28394 28639 if (Array.isArray(options[role])) { 28395 28640 allowed = unique_array_default(options[role].concat(allowed)); 28396 28641 }28397 -1 var _iterator21 = _createForOfIteratorHelper(virtualNode.attrNames), _step21;-1 28642 var _iterator23 = _createForOfIteratorHelper(virtualNode.attrNames), _step23; 28398 28643 try {28399 -1 for (_iterator21.s(); !(_step21 = _iterator21.n()).done; ) {28400 -1 var attrName = _step21.value;-1 28644 for (_iterator23.s(); !(_step23 = _iterator23.n()).done; ) { -1 28645 var attrName = _step23.value; 28401 28646 if (validate_attr_default(attrName) && !allowed.includes(attrName) && !ignoredAttrs(attrName, virtualNode.attr(attrName), virtualNode)) { 28402 28647 invalid.push(attrName); 28403 28648 } 28404 28649 } 28405 28650 } catch (err) {28406 -1 _iterator21.e(err);-1 28651 _iterator23.e(err); 28407 28652 } finally {28408 -1 _iterator21.f();-1 28653 _iterator23.f(); 28409 28654 } 28410 28655 if (!invalid.length) { 28411 28656 return true; @@ -28455,7 +28700,7 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate : 28455 28700 return true; 28456 28701 } 28457 28702 return !!closest_default(virtualNode, 'svg');28458 -1 } catch (_unused21) {-1 28703 } catch (_unused19) { 28459 28704 return false; 28460 28705 } 28461 28706 } @@ -28553,7 +28798,7 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate : 28553 28798 if (!role || [ 'none', 'presentation' ].includes(role)) { 28554 28799 return true; 28555 28800 }28556 -1 var _ref141 = aria_roles_default[role] || {}, accessibleNameRequired = _ref141.accessibleNameRequired;-1 28801 var _ref140 = aria_roles_default[role] || {}, accessibleNameRequired = _ref140.accessibleNameRequired; 28557 28802 if (accessibleNameRequired || _isFocusable(virtualNode)) { 28558 28803 return true; 28559 28804 } @@ -28634,7 +28879,7 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate : 28634 28879 var nested_interactive_matches_default = nestedInteractiveMatches; 28635 28880 function linkInTextBlockMatches(node) { 28636 28881 var text = sanitize_default(node.innerText);28637 -1 var role = node.getAttribute('role');-1 28882 var role = get_explicit_role_default(node); 28638 28883 if (role && role !== 'link') { 28639 28884 return false; 28640 28885 } @@ -28854,6 +29099,9 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate : 28854 29099 if (!hasRealTextChildren(virtualNode)) { 28855 29100 return false; 28856 29101 } -1 29102 if (!parseFloat(virtualNode.getComputedStylePropertyValue('font-size'))) { -1 29103 return false; -1 29104 } 28857 29105 var range2 = document.createRange(); 28858 29106 var childNodes = virtualNode.children; 28859 29107 for (var index = 0; index < childNodes.length; index++) { @@ -28906,6 +29154,10 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate : 28906 29154 if ([ 'textarea', 'input', 'select' ].includes(nodeName2) === false) { 28907 29155 return false; 28908 29156 } -1 29157 var ariaReadonly = virtualNode.attr('aria-readonly') || 'false'; -1 29158 if (virtualNode.hasAttr('readonly') || ariaReadonly.toLowerCase() === 'true') { -1 29159 return false; -1 29160 } 28909 29161 var excludedInputTypes = [ 'submit', 'reset', 'button', 'hidden' ]; 28910 29162 if (nodeName2 === 'input' && excludedInputTypes.includes(virtualNode.props.type)) { 28911 29163 return false; @@ -28914,9 +29166,9 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate : 28914 29166 if (virtualNode.hasAttr('disabled') || ariaDisabled.toLowerCase() === 'true') { 28915 29167 return false; 28916 29168 }28917 -1 var role = virtualNode.attr('role');-1 29169 var role = get_explicit_role_default(virtualNode); 28918 29170 var tabIndex = parse_tabindex_default(virtualNode.attr('tabindex'));28919 -1 if (tabIndex < 0 && role) {-1 29171 if (tabIndex < 0 && virtualNode.hasAttr('role')) { 28920 29172 var roleDef = standards_default.ariaRoles[role]; 28921 29173 if (roleDef === void 0 || roleDef.type !== 'widget') { 28922 29174 return false; @@ -28971,8 +29223,8 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate : 28971 29223 var aria = /^aria-/; 28972 29224 var attrs = virtualNode.attrNames; 28973 29225 if (attrs.length) {28974 -1 for (var _i43 = 0, l = attrs.length; _i43 < l; _i43++) {28975 -1 if (aria.test(attrs[_i43])) {-1 29226 for (var _i29 = 0, l = attrs.length; _i29 < l; _i29++) { -1 29227 if (aria.test(attrs[_i29])) { 28976 29228 return true; 28977 29229 } 28978 29230 } @@ -29208,7 +29460,7 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate : 29208 29460 }; 29209 29461 Check.prototype.runSync = function runSync(node, options, context) { 29210 29462 options = options || {};29211 -1 var _options3 = options, _options3$enabled = _options3.enabled, enabled = _options3$enabled === void 0 ? this.enabled : _options3$enabled;-1 29463 var _options2 = options, _options2$enabled = _options2.enabled, enabled = _options2$enabled === void 0 ? this.enabled : _options2$enabled; 29212 29464 if (!enabled) { 29213 29465 return null; 29214 29466 } @@ -29231,7 +29483,7 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate : 29231 29483 return checkResult; 29232 29484 }; 29233 29485 Check.prototype.configure = function configure2(spec) {29234 -1 var _this8 = this;-1 29486 var _this0 = this; 29235 29487 if (!spec.evaluate || metadata_function_map_default[spec.evaluate]) { 29236 29488 this._internalCheck = true; 29237 29489 } @@ -29248,7 +29500,7 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate : 29248 29500 [ 'evaluate', 'after' ].filter(function(prop) { 29249 29501 return spec.hasOwnProperty(prop); 29250 29502 }).forEach(function(prop) {29251 -1 return _this8[prop] = createExecutionContext(spec[prop]);-1 29503 return _this0[prop] = createExecutionContext(spec[prop]); 29252 29504 }); 29253 29505 }; 29254 29506 Check.prototype.getOptions = function getOptions(options) { @@ -29327,7 +29579,14 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate : 29327 29579 var check = self2._audit.checks[c4.id || c4]; 29328 29580 var option = get_check_option_default(check, self2.id, options); 29329 29581 checkQueue.defer(function(res, rej) {29330 -1 check.run(node, option, context, res, rej);-1 29582 check.run(node, option, context, res, function(error) { -1 29583 rej(new rule_error_default({ -1 29584 ruleId: self2.id, -1 29585 method: ''.concat(check.id, '#evaluate'), -1 29586 errorNode: new dq_element_default(node), -1 29587 error: error -1 29588 })); -1 29589 }); 29331 29590 }); 29332 29591 }); 29333 29592 checkQueue.then(function(results) { @@ -29357,7 +29616,7 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate : 29357 29616 }; 29358 29617 }; 29359 29618 Rule.prototype.run = function run2(context) {29360 -1 var _this9 = this;-1 29619 var _this1 = this; 29361 29620 var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; 29362 29621 var resolve = arguments.length > 2 ? arguments[2] : undefined; 29363 29622 var reject = arguments.length > 3 ? arguments[3] : undefined; @@ -29370,10 +29629,7 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate : 29370 29629 try { 29371 29630 nodes = this.gatherAndMatchNodes(context, options); 29372 29631 } catch (error) {29373 -1 reject(new SupportError({29374 -1 cause: error,29375 -1 ruleId: this.id29376 -1 }));-1 29632 reject(error); 29377 29633 return; 29378 29634 } 29379 29635 if (options.performanceTimer) { @@ -29384,7 +29640,7 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate : 29384 29640 var checkQueue = queue_default(); 29385 29641 [ 'any', 'all', 'none' ].forEach(function(type2) { 29386 29642 checkQueue.defer(function(res, rej) {29387 -1 _this9.runChecks(type2, node, options, context, res, rej);-1 29643 _this1.runChecks(type2, node, options, context, res, rej); 29388 29644 }); 29389 29645 }); 29390 29646 checkQueue.then(function(results) { @@ -29392,7 +29648,7 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate : 29392 29648 if (result) { 29393 29649 result.node = new dq_element_default(node); 29394 29650 ruleResult.nodes.push(result);29395 -1 if (_this9.reviewOnFail) {-1 29651 if (_this1.reviewOnFail) { 29396 29652 [ 'any', 'all' ].forEach(function(type2) { 29397 29653 result[type2].forEach(function(checkResult) { 29398 29654 if (checkResult.result === false) { @@ -29415,14 +29671,14 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate : 29415 29671 }); 29416 29672 q.then(function() { 29417 29673 if (options.performanceTimer) {29418 -1 _this9._logRulePerformance();-1 29674 _this1._logRulePerformance(); 29419 29675 } 29420 29676 setTimeout(function() { 29421 29677 resolve(ruleResult); 29422 29678 }, 0); 29423 29679 })['catch'](function(error) { 29424 29680 if (options.performanceTimer) {29425 -1 _this9._logRulePerformance();-1 29681 _this1._logRulePerformance(); 29426 29682 } 29427 29683 reject(error); 29428 29684 }); @@ -29434,15 +29690,7 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate : 29434 29690 this._trackPerformance(); 29435 29691 } 29436 29692 var ruleResult = new rule_result_default(this);29437 -1 var nodes;29438 -1 try {29439 -1 nodes = this.gatherAndMatchNodes(context, options);29440 -1 } catch (error) {29441 -1 throw new SupportError({29442 -1 cause: error,29443 -1 ruleId: this.id29444 -1 });29445 -1 }-1 29693 var nodes = this.gatherAndMatchNodes(context, options); 29446 29694 if (options.performanceTimer) { 29447 29695 this._logGatherPerformance(nodes); 29448 29696 } @@ -29483,7 +29731,7 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate : 29483 29731 this._markChecksEnd = 'mark_runchecks_end_' + this.id; 29484 29732 }; 29485 29733 Rule.prototype._logGatherPerformance = function _logGatherPerformance(nodes) {29486 -1 log_default('gather (', nodes.length, '):', performance_timer_default.timeElapsed() + 'ms');-1 29734 log_default('gather for '.concat(this.id, ' (').concat(nodes.length, ' nodes): ').concat(performance_timer_default.timeElapsed(), 'ms')); 29487 29735 performance_timer_default.mark(this._markChecksStart); 29488 29736 }; 29489 29737 Rule.prototype._logRulePerformance = function _logRulePerformance() { @@ -29520,7 +29768,16 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate : 29520 29768 performance_timer_default.mark(markMatchesStart); 29521 29769 } 29522 29770 nodes = nodes.filter(function(node) {29523 -1 return _this11.matches(node.actualNode, node, context);-1 29771 try { -1 29772 return _this11.matches(node.actualNode, node, context); -1 29773 } catch (error) { -1 29774 throw new rule_error_default({ -1 29775 ruleId: _this11.id, -1 29776 method: '#matches', -1 29777 errorNode: new dq_element_default(node), -1 29778 error: error -1 29779 }); -1 29780 } 29524 29781 }); 29525 29782 if (options.performanceTimer) { 29526 29783 performance_timer_default.mark(markMatchesEnd); @@ -29577,11 +29834,21 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate : 29577 29834 Rule.prototype.after = function after(result, options) { 29578 29835 var _this12 = this; 29579 29836 var afterChecks = findAfterChecks(this);29580 -1 var ruleID = this.id;29581 29837 afterChecks.forEach(function(check) { 29582 29838 var beforeResults = findCheckResults(result.nodes, check.id);29583 -1 var checkOption = get_check_option_default(check, ruleID, options);29584 -1 var afterResults = check.after(beforeResults, checkOption.options);-1 29839 var checkOption = get_check_option_default(check, _this12.id, options); -1 29840 var afterResults; -1 29841 try { -1 29842 afterResults = check.after(beforeResults, checkOption.options); -1 29843 } catch (error) { -1 29844 var _result$nodes; -1 29845 throw new rule_error_default({ -1 29846 ruleId: _this12.id, -1 29847 method: ''.concat(check.id, '#after'), -1 29848 errorNode: (_result$nodes = result.nodes) === null || _result$nodes === void 0 || (_result$nodes = _result$nodes[0]) === null || _result$nodes === void 0 ? void 0 : _result$nodes.node, -1 29849 error: error -1 29850 }); -1 29851 } 29585 29852 if (_this12.reviewOnFail) { 29586 29853 afterResults.forEach(function(checkResult) { 29587 29854 var changeAnyAllResults = (_this12.any.includes(checkResult.id) || _this12.all.includes(checkResult.id)) && checkResult.result === false; @@ -29640,7 +29907,6 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate : 29640 29907 this.impact = spec.impact; 29641 29908 } 29642 29909 };29643 -1 var import_dot2 = __toModule(require_doT());29644 29910 var dotRegex = /\{\{.+?\}\}/g; 29645 29911 var Audit = function() { 29646 29912 function Audit(audit) { @@ -29665,29 +29931,29 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate : 29665 29931 lang: this.lang 29666 29932 }; 29667 29933 var checkIDs = Object.keys(this.data.checks);29668 -1 for (var _i44 = 0; _i44 < checkIDs.length; _i44++) {29669 -1 var _id6 = checkIDs[_i44];29670 -1 var check = this.data.checks[_id6];-1 29934 for (var _i30 = 0; _i30 < checkIDs.length; _i30++) { -1 29935 var _id8 = checkIDs[_i30]; -1 29936 var check = this.data.checks[_id8]; 29671 29937 var _check$messages = check.messages, pass = _check$messages.pass, fail = _check$messages.fail, incomplete = _check$messages.incomplete;29672 -1 locale.checks[_id6] = {-1 29938 locale.checks[_id8] = { 29673 29939 pass: pass, 29674 29940 fail: fail, 29675 29941 incomplete: incomplete 29676 29942 }; 29677 29943 } 29678 29944 var ruleIDs = Object.keys(this.data.rules);29679 -1 for (var _i45 = 0; _i45 < ruleIDs.length; _i45++) {29680 -1 var _id7 = ruleIDs[_i45];29681 -1 var rule = this.data.rules[_id7];-1 29945 for (var _i31 = 0; _i31 < ruleIDs.length; _i31++) { -1 29946 var _id9 = ruleIDs[_i31]; -1 29947 var rule = this.data.rules[_id9]; 29682 29948 var description = rule.description, help = rule.help;29683 -1 locale.rules[_id7] = {-1 29949 locale.rules[_id9] = { 29684 29950 description: description, 29685 29951 help: help 29686 29952 }; 29687 29953 } 29688 29954 var failureSummaries = Object.keys(this.data.failureSummaries);29689 -1 for (var _i46 = 0; _i46 < failureSummaries.length; _i46++) {29690 -1 var type2 = failureSummaries[_i46];-1 29955 for (var _i32 = 0; _i32 < failureSummaries.length; _i32++) { -1 29956 var type2 = failureSummaries[_i32]; 29691 29957 var failureSummary2 = this.data.failureSummaries[type2]; 29692 29958 var failureMessage = failureSummary2.failureMessage; 29693 29959 locale.failureSummaries[type2] = { @@ -29710,36 +29976,36 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate : 29710 29976 key: '_applyCheckLocale', 29711 29977 value: function _applyCheckLocale(checks) { 29712 29978 var keys = Object.keys(checks);29713 -1 for (var _i47 = 0; _i47 < keys.length; _i47++) {29714 -1 var _id8 = keys[_i47];29715 -1 if (!this.data.checks[_id8]) {29716 -1 throw new Error('Locale provided for unknown check: "'.concat(_id8, '"'));-1 29979 for (var _i33 = 0; _i33 < keys.length; _i33++) { -1 29980 var _id0 = keys[_i33]; -1 29981 if (!this.data.checks[_id0]) { -1 29982 throw new Error('Locale provided for unknown check: "'.concat(_id0, '"')); 29717 29983 }29718 -1 this.data.checks[_id8] = mergeCheckLocale(this.data.checks[_id8], checks[_id8]);-1 29984 this.data.checks[_id0] = mergeCheckLocale(this.data.checks[_id0], checks[_id0]); 29719 29985 } 29720 29986 } 29721 29987 }, { 29722 29988 key: '_applyRuleLocale', 29723 29989 value: function _applyRuleLocale(rules) { 29724 29990 var keys = Object.keys(rules);29725 -1 for (var _i48 = 0; _i48 < keys.length; _i48++) {29726 -1 var _id9 = keys[_i48];29727 -1 if (!this.data.rules[_id9]) {29728 -1 throw new Error('Locale provided for unknown rule: "'.concat(_id9, '"'));-1 29991 for (var _i34 = 0; _i34 < keys.length; _i34++) { -1 29992 var _id1 = keys[_i34]; -1 29993 if (!this.data.rules[_id1]) { -1 29994 throw new Error('Locale provided for unknown rule: "'.concat(_id1, '"')); 29729 29995 }29730 -1 this.data.rules[_id9] = mergeRuleLocale(this.data.rules[_id9], rules[_id9]);-1 29996 this.data.rules[_id1] = mergeRuleLocale(this.data.rules[_id1], rules[_id1]); 29731 29997 } 29732 29998 } 29733 29999 }, { 29734 30000 key: '_applyFailureSummaries', 29735 30001 value: function _applyFailureSummaries(messages) { 29736 30002 var keys = Object.keys(messages);29737 -1 for (var _i49 = 0; _i49 < keys.length; _i49++) {29738 -1 var _key8 = keys[_i49];29739 -1 if (!this.data.failureSummaries[_key8]) {29740 -1 throw new Error('Locale provided for unknown failureMessage: "'.concat(_key8, '"'));-1 30003 for (var _i35 = 0; _i35 < keys.length; _i35++) { -1 30004 var _key1 = keys[_i35]; -1 30005 if (!this.data.failureSummaries[_key1]) { -1 30006 throw new Error('Locale provided for unknown failureMessage: "'.concat(_key1, '"')); 29741 30007 }29742 -1 this.data.failureSummaries[_key8] = mergeFailureMessage(this.data.failureSummaries[_key8], messages[_key8]);-1 30008 this.data.failureSummaries[_key1] = mergeFailureMessage(this.data.failureSummaries[_key1], messages[_key1]); 29743 30009 } 29744 30010 } 29745 30011 }, { @@ -29767,10 +30033,10 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate : 29767 30033 value: function setAllowedOrigins(allowedOrigins) { 29768 30034 var defaultOrigin = getDefaultOrigin(); 29769 30035 this.allowedOrigins = [];29770 -1 var _iterator22 = _createForOfIteratorHelper(allowedOrigins), _step22;-1 30036 var _iterator24 = _createForOfIteratorHelper(allowedOrigins), _step24; 29771 30037 try {29772 -1 for (_iterator22.s(); !(_step22 = _iterator22.n()).done; ) {29773 -1 var origin = _step22.value;-1 30038 for (_iterator24.s(); !(_step24 = _iterator24.n()).done; ) { -1 30039 var origin = _step24.value; 29774 30040 if (origin === constants_default.allOrigins) { 29775 30041 this.allowedOrigins = [ '*' ]; 29776 30042 return; @@ -29781,9 +30047,9 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate : 29781 30047 } 29782 30048 } 29783 30049 } catch (err) {29784 -1 _iterator22.e(err);-1 30050 _iterator24.e(err); 29785 30051 } finally {29786 -1 _iterator22.f();-1 30052 _iterator24.f(); 29787 30053 } 29788 30054 } 29789 30055 }, { @@ -29910,11 +30176,21 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate : 29910 30176 value: function after(results, options) { 29911 30177 var rules = this.rules; 29912 30178 return results.map(function(ruleResult) { -1 30179 if (ruleResult.error) { -1 30180 return ruleResult; -1 30181 } 29913 30182 var rule = find_by_default(rules, 'id', ruleResult.id); 29914 30183 if (!rule) { 29915 30184 throw new Error('Result for unknown rule. You may be running mismatch axe-core versions'); 29916 30185 }29917 -1 return rule.after(ruleResult, options);-1 30186 try { -1 30187 return rule.after(ruleResult, options); -1 30188 } catch (err2) { -1 30189 if (options.debug) { -1 30190 throw err2; -1 30191 } -1 30192 return createIncompleteErrorResult(rule, err2); -1 30193 } 29918 30194 }); 29919 30195 } 29920 30196 }, { @@ -30054,7 +30330,7 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate : 30054 30330 function getDefaultConfiguration(audit) { 30055 30331 var config; 30056 30332 if (audit) {30057 -1 config = _clone(audit);-1 30333 config = clone2(audit); 30058 30334 config.commons = audit.commons; 30059 30335 } else { 30060 30336 config = {}; @@ -30082,10 +30358,10 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate : 30082 30358 var mergeCheckLocale = function mergeCheckLocale(a2, b2) { 30083 30359 var pass = b2.pass, fail = b2.fail; 30084 30360 if (typeof pass === 'string' && dotRegex.test(pass)) {30085 -1 pass = import_dot2['default'].compile(pass);-1 30361 pass = import_dot['default'].compile(pass); 30086 30362 } 30087 30363 if (typeof fail === 'string' && dotRegex.test(fail)) {30088 -1 fail = import_dot2['default'].compile(fail);-1 30364 fail = import_dot['default'].compile(fail); 30089 30365 } 30090 30366 return _extends({}, a2, { 30091 30367 messages: { @@ -30098,10 +30374,10 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate : 30098 30374 var mergeRuleLocale = function mergeRuleLocale(a2, b2) { 30099 30375 var help = b2.help, description = b2.description; 30100 30376 if (typeof help === 'string' && dotRegex.test(help)) {30101 -1 help = import_dot2['default'].compile(help);-1 30377 help = import_dot['default'].compile(help); 30102 30378 } 30103 30379 if (typeof description === 'string' && dotRegex.test(description)) {30104 -1 description = import_dot2['default'].compile(description);-1 30380 description = import_dot['default'].compile(description); 30105 30381 } 30106 30382 return _extends({}, a2, { 30107 30383 help: help || a2.help, @@ -30111,7 +30387,7 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate : 30111 30387 var mergeFailureMessage = function mergeFailureMessage(a2, b2) { 30112 30388 var failureMessage = b2.failureMessage; 30113 30389 if (typeof failureMessage === 'string' && dotRegex.test(failureMessage)) {30114 -1 failureMessage = import_dot2['default'].compile(failureMessage);-1 30390 failureMessage = import_dot['default'].compile(failureMessage); 30115 30391 } 30116 30392 return _extends({}, a2, { 30117 30393 failureMessage: failureMessage || a2.failureMessage @@ -30119,7 +30395,7 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate : 30119 30395 }; 30120 30396 var mergeFallbackMessage = function mergeFallbackMessage(a2, b2) { 30121 30397 if (typeof b2 === 'string' && dotRegex.test(b2)) {30122 -1 b2 = import_dot2['default'].compile(b2);-1 30398 b2 = import_dot['default'].compile(b2); 30123 30399 } 30124 30400 return b2 || a2; 30125 30401 }; @@ -30147,26 +30423,39 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate : 30147 30423 } 30148 30424 return function(resolve, reject) { 30149 30425 rule.run(context, options, function(ruleResult) {30150 -1 resolve(ruleResult);-1 30426 return resolve(ruleResult); 30151 30427 }, function(err2) {30152 -1 if (!options.debug) {30153 -1 var errResult = Object.assign(new rule_result_default(rule), {30154 -1 result: constants_default.CANTTELL,30155 -1 description: 'An error occured while running this rule',30156 -1 message: err2.message,30157 -1 stack: err2.stack,30158 -1 error: err2,30159 -1 errorNode: err2.errorNode30160 -1 });30161 -1 resolve(errResult);30162 -1 } else {-1 30428 if (options.debug) { 30163 30429 reject(err2); -1 30430 } else { -1 30431 resolve(createIncompleteErrorResult(rule, err2)); 30164 30432 } 30165 30433 }); 30166 30434 }; 30167 30435 }30168 -1 function getHelpUrl(_ref142, ruleId, version) {30169 -1 var brand = _ref142.brand, application = _ref142.application, lang = _ref142.lang;-1 30436 function createIncompleteErrorResult(rule, error) { -1 30437 var errorNode = error.errorNode; -1 30438 var serialError = _serializeError(error); -1 30439 var none = [ { -1 30440 id: 'error-occurred', -1 30441 result: void 0, -1 30442 data: serialError, -1 30443 relatedNodes: [] -1 30444 } ]; -1 30445 var node = errorNode || new dq_element_default(document.documentElement); -1 30446 return Object.assign(new rule_result_default(rule), { -1 30447 error: serialError, -1 30448 result: constants_default.CANTTELL, -1 30449 nodes: [ { -1 30450 any: [], -1 30451 all: [], -1 30452 none: none, -1 30453 node: node -1 30454 } ] -1 30455 }); -1 30456 } -1 30457 function getHelpUrl(_ref141, ruleId, version) { -1 30458 var brand = _ref141.brand, application = _ref141.application, lang = _ref141.lang; 30170 30459 return constants_default.helpUrlBase + brand + '/' + (version || axe.version.substring(0, axe.version.lastIndexOf('.'))) + '/' + ruleId + '?application=' + encodeURIComponent(application) + (lang && lang !== 'en' ? '&lang=' + encodeURIComponent(lang) : ''); 30171 30460 } 30172 30461 function setupGlobals(context) { @@ -30388,9 +30677,9 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate : 30388 30677 toolOptions: options 30389 30678 }); 30390 30679 }30391 -1 function normalizeRunParams(_ref143) {30392 -1 var _ref145, _options$reporter, _axe$_audit;30393 -1 var _ref144 = _slicedToArray(_ref143, 3), context = _ref144[0], options = _ref144[1], callback = _ref144[2];-1 30680 function normalizeRunParams(_ref142) { -1 30681 var _ref144, _options$reporter, _axe$_audit; -1 30682 var _ref143 = _slicedToArray(_ref142, 3), context = _ref143[0], options = _ref143[1], callback = _ref143[2]; 30394 30683 var typeErr = new TypeError('axe.run arguments are invalid'); 30395 30684 if (!_isContextSpec(context)) { 30396 30685 if (callback !== void 0) { @@ -30410,8 +30699,8 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate : 30410 30699 if (typeof callback !== 'function' && callback !== void 0) { 30411 30700 throw typeErr; 30412 30701 }30413 -1 options = _clone(options);30414 -1 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';-1 30702 options = clone2(options); -1 30703 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'; 30415 30704 return { 30416 30705 context: context, 30417 30706 options: options, @@ -30420,8 +30709,8 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate : 30420 30709 } 30421 30710 var noop2 = function noop2() {}; 30422 30711 function run4() {30423 -1 for (var _len7 = arguments.length, args = new Array(_len7), _key9 = 0; _key9 < _len7; _key9++) {30424 -1 args[_key9] = arguments[_key9];-1 30712 for (var _len8 = arguments.length, args = new Array(_len8), _key10 = 0; _key10 < _len8; _key10++) { -1 30713 args[_key10] = arguments[_key10]; 30425 30714 } 30426 30715 setupGlobals(args[0]); 30427 30716 var _normalizeRunParams = normalizeRunParams(args), context = _normalizeRunParams.context, options = _normalizeRunParams.options, _normalizeRunParams$c = _normalizeRunParams.callback, callback = _normalizeRunParams$c === void 0 ? noop2 : _normalizeRunParams$c; @@ -30517,8 +30806,8 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate : 30517 30806 throw err2; 30518 30807 } 30519 30808 function runPartial() {30520 -1 for (var _len8 = arguments.length, args = new Array(_len8), _key10 = 0; _key10 < _len8; _key10++) {30521 -1 args[_key10] = arguments[_key10];-1 30809 for (var _len9 = arguments.length, args = new Array(_len9), _key11 = 0; _key11 < _len9; _key11++) { -1 30810 args[_key11] = arguments[_key11]; 30522 30811 } 30523 30812 var _normalizeRunParams2 = normalizeRunParams(args), options = _normalizeRunParams2.options, context = _normalizeRunParams2.context; 30524 30813 assert_default(axe._audit, 'Axe is not configured. Audit is missing.'); @@ -30532,8 +30821,8 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate : 30532 30821 axe._audit.run(contextObj, options, res, rej); 30533 30822 }).then(function(results) { 30534 30823 results = node_serializer_default.mapRawResults(results);30535 -1 var frames = contextObj.frames.map(function(_ref146) {30536 -1 var node = _ref146.node;-1 30824 var frames = contextObj.frames.map(function(_ref145) { -1 30825 var node = _ref145.node; 30537 30826 return node_serializer_default.toSpec(node); 30538 30827 }); 30539 30828 var environmentData; @@ -30554,14 +30843,14 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate : 30554 30843 }); 30555 30844 } 30556 30845 function finishRun(partialResults) {30557 -1 var _ref148, _options$reporter2, _axe$_audit2;-1 30846 var _ref147, _options$reporter2, _axe$_audit2; 30558 30847 var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};30559 -1 options = _clone(options);30560 -1 var _ref147 = partialResults.find(function(r) {-1 30848 options = clone2(options); -1 30849 var _ref146 = partialResults.find(function(r) { 30561 30850 return r.environmentData;30562 -1 }) || {}, environmentData = _ref147.environmentData;-1 30851 }) || {}, environmentData = _ref146.environmentData; 30563 30852 axe._audit.normalizeOptions(options);30564 -1 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';-1 30853 options.reporter = (_ref147 = (_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 && _ref147 !== void 0 ? _ref147 : 'v1'; 30565 30854 setFrameSpec(partialResults); 30566 30855 var results = merge_results_default(partialResults); 30567 30856 results = axe._audit.after(results, options); @@ -30573,10 +30862,10 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate : 30573 30862 } 30574 30863 function setFrameSpec(partialResults) { 30575 30864 var frameStack = [];30576 -1 var _iterator23 = _createForOfIteratorHelper(partialResults), _step23;-1 30865 var _iterator25 = _createForOfIteratorHelper(partialResults), _step25; 30577 30866 try {30578 -1 for (_iterator23.s(); !(_step23 = _iterator23.n()).done; ) {30579 -1 var partialResult = _step23.value;-1 30867 for (_iterator25.s(); !(_step25 = _iterator25.n()).done; ) { -1 30868 var partialResult = _step25.value; 30580 30869 var frameSpec = frameStack.shift(); 30581 30870 if (!partialResult) { 30582 30871 continue; @@ -30586,13 +30875,13 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate : 30586 30875 frameStack.unshift.apply(frameStack, _toConsumableArray(frameSpecs)); 30587 30876 } 30588 30877 } catch (err) {30589 -1 _iterator23.e(err);-1 30878 _iterator25.e(err); 30590 30879 } finally {30591 -1 _iterator23.f();-1 30880 _iterator25.f(); 30592 30881 } 30593 30882 }30594 -1 function getMergedFrameSpecs(_ref149) {30595 -1 var childFrameSpecs = _ref149.frames, parentFrameSpec = _ref149.frameSpec;-1 30883 function getMergedFrameSpecs(_ref148) { -1 30884 var childFrameSpecs = _ref148.frames, parentFrameSpec = _ref148.frameSpec; 30596 30885 if (!parentFrameSpec) { 30597 30886 return childFrameSpecs; 30598 30887 } @@ -30625,7 +30914,7 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate : 30625 30914 callback = options; 30626 30915 options = {}; 30627 30916 }30628 -1 var _options4 = options, environmentData = _options4.environmentData, toolOptions = _objectWithoutProperties(_options4, _excluded15);-1 30917 var _options3 = options, environmentData = _options3.environmentData, toolOptions = _objectWithoutProperties(_options3, _excluded13); 30629 30918 callback(_extends({}, _getEnvironmentData(environmentData), { 30630 30919 toolOptions: toolOptions 30631 30920 }, processAggregate(results, options))); @@ -30636,7 +30925,7 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate : 30636 30925 callback = options; 30637 30926 options = {}; 30638 30927 }30639 -1 var _options5 = options, environmentData = _options5.environmentData, toolOptions = _objectWithoutProperties(_options5, _excluded16);-1 30928 var _options4 = options, environmentData = _options4.environmentData, toolOptions = _objectWithoutProperties(_options4, _excluded14); 30640 30929 options.resultTypes = [ 'violations' ]; 30641 30930 var _processAggregate = processAggregate(results, options), violations = _processAggregate.violations; 30642 30931 callback(_extends({}, _getEnvironmentData(environmentData), { @@ -30656,8 +30945,8 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate : 30656 30945 var transformedResults = results.map(function(result) { 30657 30946 var transformedResult = _extends({}, result); 30658 30947 var types = [ 'passes', 'violations', 'incomplete', 'inapplicable' ];30659 -1 for (var _i50 = 0, _types = types; _i50 < _types.length; _i50++) {30660 -1 var type2 = _types[_i50];-1 30948 for (var _i36 = 0, _types = types; _i36 < _types.length; _i36++) { -1 30949 var type2 = _types[_i36]; 30661 30950 transformedResult[type2] = node_serializer_default.mapRawNodeResults(transformedResult[type2]); 30662 30951 } 30663 30952 return transformedResult; @@ -30670,7 +30959,7 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate : 30670 30959 callback = options; 30671 30960 options = {}; 30672 30961 }30673 -1 var _options6 = options, environmentData = _options6.environmentData, toolOptions = _objectWithoutProperties(_options6, _excluded17);-1 30962 var _options5 = options, environmentData = _options5.environmentData, toolOptions = _objectWithoutProperties(_options5, _excluded15); 30674 30963 raw_default(results, toolOptions, function(raw) { 30675 30964 var env = _getEnvironmentData(environmentData); 30676 30965 callback({ @@ -30685,7 +30974,7 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate : 30685 30974 callback = options; 30686 30975 options = {}; 30687 30976 }30688 -1 var _options7 = options, environmentData = _options7.environmentData, toolOptions = _objectWithoutProperties(_options7, _excluded18);-1 30977 var _options6 = options, environmentData = _options6.environmentData, toolOptions = _objectWithoutProperties(_options6, _excluded16); 30689 30978 var out = processAggregate(results, options); 30690 30979 var addFailureSummaries = function addFailureSummaries(result) { 30691 30980 result.nodes.forEach(function(nodeResult) { @@ -30704,7 +30993,7 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate : 30704 30993 callback = options; 30705 30994 options = {}; 30706 30995 }30707 -1 var _options8 = options, environmentData = _options8.environmentData, toolOptions = _objectWithoutProperties(_options8, _excluded19);-1 30996 var _options7 = options, environmentData = _options7.environmentData, toolOptions = _objectWithoutProperties(_options7, _excluded17); 30708 30997 var out = processAggregate(results, options); 30709 30998 callback(_extends({}, _getEnvironmentData(environmentData), { 30710 30999 toolOptions: toolOptions @@ -30993,7 +31282,7 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate : 30993 31282 help: 'Heading levels should only increase by one' 30994 31283 }, 30995 31284 'hidden-content': {30996 -1 description: 'Informs users about hidden content.',-1 31285 description: 'Inform users about hidden content.', 30997 31286 help: 'Hidden content on the page should be analyzed' 30998 31287 }, 30999 31288 'html-has-lang': { @@ -31133,8 +31422,8 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate : 31133 31422 help: 'Page should contain a level-one heading' 31134 31423 }, 31135 31424 'presentation-role-conflict': {31136 -1 description: 'Elements marked as presentational should not have global ARIA or tabindex to ensure all screen readers ignore them',31137 -1 help: 'Ensure elements marked as presentational are consistently ignored'-1 31425 description: 'Ensure elements marked as presentational do not have global ARIA or tabindex so that all screen readers ignore them', -1 31426 help: 'Elements marked as presentational should be consistently ignored' 31138 31427 }, 31139 31428 region: { 31140 31429 description: 'Ensure all page content is contained by landmarks', @@ -31142,7 +31431,7 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate : 31142 31431 }, 31143 31432 'role-img-alt': { 31144 31433 description: 'Ensure [role="img"] elements have alternative text',31145 -1 help: '[role="img"] elements must have an alternative text'-1 31434 help: '[role="img"] elements must have alternative text' 31146 31435 }, 31147 31436 'scope-attr-valid': { 31148 31437 description: 'Ensure the scope attribute is used correctly on tables', @@ -31169,8 +31458,8 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate : 31169 31458 help: 'Summary elements must have discernible text' 31170 31459 }, 31171 31460 'svg-img-alt': {31172 -1 description: 'Ensure <svg> elements with an img, graphics-document or graphics-symbol role have an accessible text',31173 -1 help: '<svg> elements with an img role must have an alternative text'-1 31461 description: 'Ensure <svg> elements with an img, graphics-document or graphics-symbol role have accessible text', -1 31462 help: '<svg> elements with an img role must have alternative text' 31174 31463 }, 31175 31464 tabindex: { 31176 31465 description: 'Ensure tabindex attribute values are not greater than 0', @@ -31193,8 +31482,8 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate : 31193 31482 help: 'Non-empty <td> elements in larger <table> must have an associated table header' 31194 31483 }, 31195 31484 'td-headers-attr': {31196 -1 description: 'Ensure that each cell in a table that uses the headers attribute refers only to other cells in that table',31197 -1 help: 'Table cells that use the headers attribute must only refer to cells in the same table'-1 31485 description: 'Ensure that each cell in a table that uses the headers attribute refers only to other <th> elements in that table', -1 31486 help: 'Table cell headers attributes must refer to other <th> elements in the same table' 31198 31487 }, 31199 31488 'th-has-data-cells': { 31200 31489 description: 'Ensure that <th> elements and elements with role=columnheader/rowheader have data cells they describe', @@ -31502,7 +31791,8 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate : 31502 31791 equalRatio: 'Element has a 1:1 contrast ratio with the background', 31503 31792 shortTextContent: 'Element content is too short to determine if it is actual text content', 31504 31793 nonBmp: 'Element content contains only non-text characters',31505 -1 pseudoContent: 'Element\'s background color could not be determined due to a pseudo element'-1 31794 pseudoContent: 'Element\'s background color could not be determined due to a pseudo element', -1 31795 colorParse: 'Could not parse color string ${data.colorParse}' 31506 31796 } 31507 31797 } 31508 31798 }, @@ -31532,7 +31822,8 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate : 31532 31822 equalRatio: 'Element has a 1:1 contrast ratio with the background', 31533 31823 shortTextContent: 'Element content is too short to determine if it is actual text content', 31534 31824 nonBmp: 'Element content contains only non-text characters',31535 -1 pseudoContent: 'Element\'s background color could not be determined due to a pseudo element'-1 31825 pseudoContent: 'Element\'s background color could not be determined due to a pseudo element', -1 31826 colorParse: 'Could not parse color string ${data.colorParse}' 31536 31827 } 31537 31828 } 31538 31829 }, @@ -32057,6 +32348,12 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate : 32057 32348 fail: 'Document does not have a non-empty <title> element' 32058 32349 } 32059 32350 }, -1 32351 'error-occurred': { -1 32352 messages: { -1 32353 pass: '', -1 32354 incomplete: 'Axe encountered an error; test the page for this type of problem manually' -1 32355 } -1 32356 }, 32060 32357 exists: { 32061 32358 impact: 'minor', 32062 32359 messages: { @@ -32234,9 +32531,13 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate : 32234 32531 'td-headers-attr': { 32235 32532 impact: 'serious', 32236 32533 messages: {32237 -1 pass: 'The headers attribute is exclusively used to refer to other cells in the table',-1 32534 pass: 'The headers attribute is exclusively used to refer to other header cells in the table', 32238 32535 incomplete: 'The headers attribute is empty',32239 -1 fail: 'The headers attribute is not exclusively used to refer to other cells in the table'-1 32536 fail: { -1 32537 'cell-header-not-in-table': 'The headers attribute is not exclusively used to refer to other header cells in the table', -1 32538 'cell-header-not-th': 'The headers attribute must refer to header cells, not data cells', -1 32539 'header-refs-self': 'The element with headers attribute refers to itself' -1 32540 } 32240 32541 } 32241 32542 }, 32242 32543 'th-has-data-cells': { @@ -32302,7 +32603,7 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate : 32302 32603 impact: 'critical', 32303 32604 selector: 'map area[href]', 32304 32605 excludeHidden: false,32305 -1 tags: [ 'cat.text-alternatives', 'wcag2a', 'wcag244', 'wcag412', 'section508', 'section508.22.a', 'TTv5', 'TT6.a', 'EN-301-549', 'EN-9.2.4.4', 'EN-9.4.1.2', 'ACT' ],-1 32606 tags: [ 'cat.text-alternatives', 'wcag2a', 'wcag244', 'wcag412', 'section508', 'section508.22.a', 'TTv5', 'TT6.a', 'EN-301-549', 'EN-9.2.4.4', 'EN-9.4.1.2', 'ACT', 'RGAAv4', 'RGAA-1.1.2' ], 32306 32607 actIds: [ 'c487ae' ], 32307 32608 all: [], 32308 32609 any: [ { @@ -32321,7 +32622,7 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate : 32321 32622 id: 'aria-allowed-attr', 32322 32623 impact: 'critical', 32323 32624 matches: 'aria-allowed-attr-matches',32324 -1 tags: [ 'cat.aria', 'wcag2a', 'wcag412', 'EN-301-549', 'EN-9.4.1.2' ],-1 32625 tags: [ 'cat.aria', 'wcag2a', 'wcag412', 'EN-301-549', 'EN-9.4.1.2', 'RGAAv4', 'RGAA-7.1.1' ], 32325 32626 actIds: [ '5c01ea' ], 32326 32627 all: [ { 32327 32628 options: { @@ -32361,7 +32662,7 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate : 32361 32662 impact: 'serious', 32362 32663 selector: '[role="link"], [role="button"], [role="menuitem"]', 32363 32664 matches: 'no-naming-method-matches',32364 -1 tags: [ 'cat.aria', 'wcag2a', 'wcag412', 'TTv5', 'TT6.a', 'EN-301-549', 'EN-9.4.1.2', 'ACT' ],-1 32665 tags: [ 'cat.aria', 'wcag2a', 'wcag412', 'TTv5', 'TT6.a', 'EN-301-549', 'EN-9.4.1.2', 'ACT', 'RGAAv4', 'RGAA-11.9.1' ], 32365 32666 actIds: [ '97a4e1' ], 32366 32667 all: [], 32367 32668 any: [ 'has-visible-text', 'aria-label', 'aria-labelledby', { @@ -32375,7 +32676,7 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate : 32375 32676 id: 'aria-conditional-attr', 32376 32677 impact: 'serious', 32377 32678 matches: 'aria-allowed-attr-matches',32378 -1 tags: [ 'cat.aria', 'wcag2a', 'wcag412', 'EN-301-549', 'EN-9.4.1.2' ],-1 32679 tags: [ 'cat.aria', 'wcag2a', 'wcag412', 'EN-301-549', 'EN-9.4.1.2', 'RGAAv4', 'RGAA-7.1.1' ], 32379 32680 actIds: [ '5c01ea' ], 32380 32681 all: [ { 32381 32682 options: { @@ -32390,7 +32691,7 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate : 32390 32691 impact: 'minor', 32391 32692 selector: '[role]', 32392 32693 matches: 'no-empty-role-matches',32393 -1 tags: [ 'cat.aria', 'wcag2a', 'wcag412', 'EN-301-549', 'EN-9.4.1.2' ],-1 32694 tags: [ 'cat.aria', 'wcag2a', 'wcag412', 'EN-301-549', 'EN-9.4.1.2', 'RGAAv4', 'RGAA-7.1.1' ], 32394 32695 actIds: [ '674b10' ], 32395 32696 all: [], 32396 32697 any: [], @@ -32415,7 +32716,7 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate : 32415 32716 selector: 'body', 32416 32717 excludeHidden: false, 32417 32718 matches: 'is-initiator-matches',32418 -1 tags: [ 'cat.aria', 'wcag2a', 'wcag131', 'wcag412', 'EN-301-549', 'EN-9.1.3.1', 'EN-9.4.1.2' ],-1 32719 tags: [ 'cat.aria', 'wcag2a', 'wcag131', 'wcag412', 'EN-301-549', 'EN-9.1.3.1', 'EN-9.4.1.2', 'RGAAv4', 'RGAA-10.8.1' ], 32419 32720 all: [], 32420 32721 any: [ 'aria-hidden-body' ], 32421 32722 none: [] @@ -32425,7 +32726,7 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate : 32425 32726 selector: '[aria-hidden="true"]', 32426 32727 matches: 'aria-hidden-focus-matches', 32427 32728 excludeHidden: false,32428 -1 tags: [ 'cat.name-role-value', 'wcag2a', 'wcag412', 'TTv5', 'TT6.a', 'EN-301-549', 'EN-9.4.1.2' ],-1 32729 tags: [ 'cat.name-role-value', 'wcag2a', 'wcag412', 'TTv5', 'TT6.a', 'EN-301-549', 'EN-9.4.1.2', 'RGAAv4', 'RGAA-10.8.1' ], 32429 32730 actIds: [ '6cfa84' ], 32430 32731 all: [ 'focusable-modal-open', 'focusable-disabled', 'focusable-not-tabbable' ], 32431 32732 any: [], @@ -32435,7 +32736,7 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate : 32435 32736 impact: 'serious', 32436 32737 selector: '[role="combobox"], [role="listbox"], [role="searchbox"], [role="slider"], [role="spinbutton"], [role="textbox"]', 32437 32738 matches: 'no-naming-method-matches',32438 -1 tags: [ 'cat.aria', 'wcag2a', 'wcag412', 'TTv5', 'TT5.c', 'EN-301-549', 'EN-9.4.1.2', 'ACT' ],-1 32739 tags: [ 'cat.aria', 'wcag2a', 'wcag412', 'TTv5', 'TT5.c', 'EN-301-549', 'EN-9.4.1.2', 'ACT', 'RGAAv4', 'RGAA-11.1.1' ], 32439 32740 actIds: [ 'e086e5' ], 32440 32741 all: [], 32441 32742 any: [ 'aria-label', 'aria-labelledby', { @@ -32450,7 +32751,7 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate : 32450 32751 impact: 'serious', 32451 32752 selector: '[role="meter"]', 32452 32753 matches: 'no-naming-method-matches',32453 -1 tags: [ 'cat.aria', 'wcag2a', 'wcag111', 'EN-301-549', 'EN-9.1.1.1' ],-1 32754 tags: [ 'cat.aria', 'wcag2a', 'wcag111', 'EN-301-549', 'EN-9.1.1.1', 'RGAAv4', 'RGAA-11.1.1' ], 32454 32755 all: [], 32455 32756 any: [ 'aria-label', 'aria-labelledby', { 32456 32757 options: { @@ -32464,7 +32765,7 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate : 32464 32765 impact: 'serious', 32465 32766 selector: '[role="progressbar"]', 32466 32767 matches: 'no-naming-method-matches',32467 -1 tags: [ 'cat.aria', 'wcag2a', 'wcag111', 'EN-301-549', 'EN-9.1.1.1' ],-1 32768 tags: [ 'cat.aria', 'wcag2a', 'wcag111', 'EN-301-549', 'EN-9.1.1.1', 'RGAAv4', 'RGAA-11.1.1' ], 32468 32769 all: [], 32469 32770 any: [ 'aria-label', 'aria-labelledby', { 32470 32771 options: { @@ -32477,7 +32778,7 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate : 32477 32778 id: 'aria-prohibited-attr', 32478 32779 impact: 'serious', 32479 32780 matches: 'aria-allowed-attr-matches',32480 -1 tags: [ 'cat.aria', 'wcag2a', 'wcag412', 'EN-301-549', 'EN-9.4.1.2' ],-1 32781 tags: [ 'cat.aria', 'wcag2a', 'wcag412', 'EN-301-549', 'EN-9.4.1.2', 'RGAAv4', 'RGAA-7.1.1' ], 32481 32782 actIds: [ '5c01ea' ], 32482 32783 all: [], 32483 32784 any: [], @@ -32491,7 +32792,7 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate : 32491 32792 id: 'aria-required-attr', 32492 32793 impact: 'critical', 32493 32794 selector: '[role]',32494 -1 tags: [ 'cat.aria', 'wcag2a', 'wcag412', 'EN-301-549', 'EN-9.4.1.2' ],-1 32795 tags: [ 'cat.aria', 'wcag2a', 'wcag412', 'EN-301-549', 'EN-9.4.1.2', 'RGAAv4', 'RGAA-7.1.1' ], 32495 32796 actIds: [ '4e8ab6' ], 32496 32797 all: [], 32497 32798 any: [ 'aria-required-attr' ], @@ -32501,7 +32802,7 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate : 32501 32802 impact: 'critical', 32502 32803 selector: '[role]', 32503 32804 matches: 'aria-required-children-matches',32504 -1 tags: [ 'cat.aria', 'wcag2a', 'wcag131', 'EN-301-549', 'EN-9.1.3.1' ],-1 32805 tags: [ 'cat.aria', 'wcag2a', 'wcag131', 'EN-301-549', 'EN-9.1.3.1', 'RGAAv4', 'RGAA-9.3.1' ], 32505 32806 actIds: [ 'bc4a75', 'ff89c9' ], 32506 32807 all: [], 32507 32808 any: [ { @@ -32516,7 +32817,7 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate : 32516 32817 impact: 'critical', 32517 32818 selector: '[role]', 32518 32819 matches: 'aria-required-parent-matches',32519 -1 tags: [ 'cat.aria', 'wcag2a', 'wcag131', 'EN-301-549', 'EN-9.1.3.1' ],-1 32820 tags: [ 'cat.aria', 'wcag2a', 'wcag131', 'EN-301-549', 'EN-9.1.3.1', 'RGAAv4', 'RGAA-9.3.1' ], 32520 32821 actIds: [ 'ff89c9' ], 32521 32822 all: [], 32522 32823 any: [ { @@ -32545,7 +32846,7 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate : 32545 32846 impact: 'critical', 32546 32847 selector: '[role]', 32547 32848 matches: 'no-empty-role-matches',32548 -1 tags: [ 'cat.aria', 'wcag2a', 'wcag412', 'EN-301-549', 'EN-9.4.1.2' ],-1 32849 tags: [ 'cat.aria', 'wcag2a', 'wcag412', 'EN-301-549', 'EN-9.4.1.2', 'RGAAv4', 'RGAA-7.1.1' ], 32549 32850 actIds: [ '674b10' ], 32550 32851 all: [], 32551 32852 any: [], @@ -32563,7 +32864,7 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate : 32563 32864 impact: 'serious', 32564 32865 selector: '[role="checkbox"], [role="menuitemcheckbox"], [role="menuitemradio"], [role="radio"], [role="switch"], [role="option"]', 32565 32866 matches: 'no-naming-method-matches',32566 -1 tags: [ 'cat.aria', 'wcag2a', 'wcag412', 'TTv5', 'TT5.c', 'EN-301-549', 'EN-9.4.1.2', 'ACT' ],-1 32867 tags: [ 'cat.aria', 'wcag2a', 'wcag412', 'TTv5', 'TT5.c', 'EN-301-549', 'EN-9.4.1.2', 'ACT', 'RGAAv4', 'RGAA-7.1.1' ], 32567 32868 actIds: [ 'e086e5' ], 32568 32869 all: [], 32569 32870 any: [ 'has-visible-text', 'aria-label', 'aria-labelledby', { @@ -32605,7 +32906,7 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate : 32605 32906 id: 'aria-valid-attr-value', 32606 32907 impact: 'critical', 32607 32908 matches: 'aria-has-attr-matches',32608 -1 tags: [ 'cat.aria', 'wcag2a', 'wcag412', 'EN-301-549', 'EN-9.4.1.2' ],-1 32909 tags: [ 'cat.aria', 'wcag2a', 'wcag412', 'EN-301-549', 'EN-9.4.1.2', 'RGAAv4', 'RGAA-7.1.1' ], 32609 32910 actIds: [ '6a7281' ], 32610 32911 all: [ { 32611 32912 options: [], @@ -32617,7 +32918,7 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate : 32617 32918 id: 'aria-valid-attr', 32618 32919 impact: 'critical', 32619 32920 matches: 'aria-has-attr-matches',32620 -1 tags: [ 'cat.aria', 'wcag2a', 'wcag412', 'EN-301-549', 'EN-9.4.1.2' ],-1 32921 tags: [ 'cat.aria', 'wcag2a', 'wcag412', 'EN-301-549', 'EN-9.4.1.2', 'RGAAv4', 'RGAA-7.1.1' ], 32621 32922 actIds: [ '5f99a7' ], 32622 32923 all: [], 32623 32924 any: [ { @@ -32640,11 +32941,11 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate : 32640 32941 id: 'autocomplete-valid', 32641 32942 impact: 'serious', 32642 32943 matches: 'autocomplete-matches',32643 -1 tags: [ 'cat.forms', 'wcag21aa', 'wcag135', 'EN-301-549', 'EN-9.1.3.5', 'ACT' ],-1 32944 tags: [ 'cat.forms', 'wcag21aa', 'wcag135', 'EN-301-549', 'EN-9.1.3.5', 'ACT', 'RGAAv4', 'RGAA-11.13.1' ], 32644 32945 actIds: [ '73f2c2' ], 32645 32946 all: [ { 32646 32947 options: {32647 -1 stateTerms: [ 'none', 'false', 'true', 'disabled', 'enabled', 'undefined', 'null' ],-1 32948 stateTerms: [ 'none', 'false', 'true', 'disabled', 'enabled', 'undefined', 'null', 'xoff', 'xon' ], 32648 32949 ignoredValues: [ 'text', 'pronouns', 'gender', 'message', 'content' ] 32649 32950 }, 32650 32951 id: 'autocomplete-valid' @@ -32686,7 +32987,7 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate : 32686 32987 impact: 'serious', 32687 32988 selector: 'blink', 32688 32989 excludeHidden: false,32689 -1 tags: [ 'cat.time-and-media', 'wcag2a', 'wcag222', 'section508', 'section508.22.j', 'TTv5', 'TT2.b', 'EN-301-549', 'EN-9.2.2.2' ],-1 32990 tags: [ 'cat.time-and-media', 'wcag2a', 'wcag222', 'section508', 'section508.22.j', 'TTv5', 'TT2.b', 'EN-301-549', 'EN-9.2.2.2', 'RGAAv4', 'RGAA-13.8.1' ], 32690 32991 all: [], 32691 32992 any: [], 32692 32993 none: [ 'is-on-screen' ] @@ -32695,7 +32996,7 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate : 32695 32996 impact: 'critical', 32696 32997 selector: 'button', 32697 32998 matches: 'no-explicit-name-required-matches',32698 -1 tags: [ 'cat.name-role-value', 'wcag2a', 'wcag412', 'section508', 'section508.22.a', 'TTv5', 'TT6.a', 'EN-301-549', 'EN-9.4.1.2', 'ACT' ],-1 32999 tags: [ 'cat.name-role-value', 'wcag2a', 'wcag412', 'section508', 'section508.22.a', 'TTv5', 'TT6.a', 'EN-301-549', 'EN-9.4.1.2', 'ACT', 'RGAAv4', 'RGAA-11.9.1' ], 32699 33000 actIds: [ '97a4e1', 'm6b1q3' ], 32700 33001 all: [], 32701 33002 any: [ 'button-has-visible-text', 'aria-label', 'aria-labelledby', { @@ -32708,11 +33009,11 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate : 32708 33009 }, { 32709 33010 id: 'bypass', 32710 33011 impact: 'serious',32711 -1 selector: 'html',-1 33012 selector: 'html:not(html *)', 32712 33013 pageLevel: true, 32713 33014 matches: 'bypass-matches', 32714 33015 reviewOnFail: true,32715 -1 tags: [ 'cat.keyboard', 'wcag2a', 'wcag241', 'section508', 'section508.22.o', 'TTv5', 'TT9.a', 'EN-301-549', 'EN-9.2.4.1' ],-1 33016 tags: [ 'cat.keyboard', 'wcag2a', 'wcag241', 'section508', 'section508.22.o', 'TTv5', 'TT9.a', 'EN-301-549', 'EN-9.2.4.1', 'RGAAv4', 'RGAA-12.7.1' ], 32716 33017 actIds: [ 'cf77f2', '047fe0', 'b40fd1', '3e12e1', 'ye5d6e' ], 32717 33018 all: [], 32718 33019 any: [ 'internal-link-present', { @@ -32766,7 +33067,7 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate : 32766 33067 impact: 'serious', 32767 33068 matches: 'color-contrast-matches', 32768 33069 excludeHidden: false,32769 -1 tags: [ 'cat.color', 'wcag2aa', 'wcag143', 'TTv5', 'TT13.c', 'EN-301-549', 'EN-9.1.4.3', 'ACT' ],-1 33070 tags: [ 'cat.color', 'wcag2aa', 'wcag143', 'TTv5', 'TT13.c', 'EN-301-549', 'EN-9.1.4.3', 'ACT', 'RGAAv4', 'RGAA-3.2.1' ], 32770 33071 actIds: [ 'afw4f7', '09o5cg' ], 32771 33072 all: [], 32772 33073 any: [ { @@ -32795,8 +33096,8 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate : 32795 33096 }, { 32796 33097 id: 'css-orientation-lock', 32797 33098 impact: 'serious',32798 -1 selector: 'html',32799 -1 tags: [ 'cat.structure', 'wcag134', 'wcag21aa', 'EN-301-549', 'EN-9.1.3.4', 'experimental' ],-1 33099 selector: 'html:not(html *)', -1 33100 tags: [ 'cat.structure', 'wcag134', 'wcag21aa', 'EN-301-549', 'EN-9.1.3.4', 'RGAAv4', 'RGAA-13.9.1', 'experimental' ], 32800 33101 actIds: [ 'b33eff' ], 32801 33102 all: [ { 32802 33103 options: { @@ -32812,7 +33113,7 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate : 32812 33113 impact: 'serious', 32813 33114 selector: 'dl', 32814 33115 matches: 'no-role-matches',32815 -1 tags: [ 'cat.structure', 'wcag2a', 'wcag131', 'EN-301-549', 'EN-9.1.3.1' ],-1 33116 tags: [ 'cat.structure', 'wcag2a', 'wcag131', 'EN-301-549', 'EN-9.1.3.1', 'RGAAv4', 'RGAA-9.3.3' ], 32816 33117 all: [], 32817 33118 any: [], 32818 33119 none: [ 'structured-dlitems', { @@ -32828,16 +33129,16 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate : 32828 33129 impact: 'serious', 32829 33130 selector: 'dd, dt', 32830 33131 matches: 'no-role-matches',32831 -1 tags: [ 'cat.structure', 'wcag2a', 'wcag131', 'EN-301-549', 'EN-9.1.3.1' ],-1 33132 tags: [ 'cat.structure', 'wcag2a', 'wcag131', 'EN-301-549', 'EN-9.1.3.1', 'RGAAv4', 'RGAA-9.3.3' ], 32832 33133 all: [], 32833 33134 any: [ 'dlitem' ], 32834 33135 none: [] 32835 33136 }, { 32836 33137 id: 'document-title', 32837 33138 impact: 'serious',32838 -1 selector: 'html',-1 33139 selector: 'html:not(html *)', 32839 33140 matches: 'is-initiator-matches',32840 -1 tags: [ 'cat.text-alternatives', 'wcag2a', 'wcag242', 'TTv5', 'TT12.a', 'EN-301-549', 'EN-9.2.4.2', 'ACT' ],-1 33141 tags: [ 'cat.text-alternatives', 'wcag2a', 'wcag242', 'TTv5', 'TT12.a', 'EN-301-549', 'EN-9.2.4.2', 'ACT', 'RGAAv4', 'RGAA-8.5.1' ], 32841 33142 actIds: [ '2779a5' ], 32842 33143 all: [], 32843 33144 any: [ 'doc-has-title' ], @@ -32860,7 +33161,7 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate : 32860 33161 selector: '[id]', 32861 33162 matches: 'duplicate-id-aria-matches', 32862 33163 excludeHidden: false,32863 -1 tags: [ 'cat.parsing', 'wcag2a', 'wcag412', 'EN-301-549', 'EN-9.4.1.2' ],-1 33164 tags: [ 'cat.parsing', 'wcag2a', 'wcag412', 'EN-301-549', 'EN-9.4.1.2', 'RGAAv4', 'RGAA-8.2.1' ], 32864 33165 reviewOnFail: true, 32865 33166 actIds: [ '3ea0c8' ], 32866 33167 all: [], @@ -32906,7 +33207,7 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate : 32906 33207 impact: 'minor', 32907 33208 selector: 'div, h1, h2, h3, h4, h5, h6, [role=heading], p, span', 32908 33209 matches: 'inserted-into-focus-order-matches',32909 -1 tags: [ 'cat.keyboard', 'best-practice', 'experimental' ],-1 33210 tags: [ 'cat.keyboard', 'best-practice', 'RGAAv4', 'RGAA-12.8.1', 'experimental' ], 32910 33211 all: [], 32911 33212 any: [ { 32912 33213 options: [], @@ -32923,16 +33224,16 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate : 32923 33224 impact: 'moderate', 32924 33225 selector: 'input, select, textarea', 32925 33226 matches: 'label-matches',32926 -1 tags: [ 'cat.forms', 'wcag2a', 'wcag332', 'TTv5', 'TT5.c', 'EN-301-549', 'EN-9.3.3.2' ],-1 33227 tags: [ 'cat.forms', 'wcag2a', 'wcag332', 'TTv5', 'TT5.c', 'EN-301-549', 'EN-9.3.3.2', 'RGAAv4', 'RGAA-11.2.1' ], 32927 33228 all: [], 32928 33229 any: [], 32929 33230 none: [ 'multiple-label' ] 32930 33231 }, { 32931 33232 id: 'frame-focusable-content', 32932 33233 impact: 'serious',32933 -1 selector: 'html',-1 33234 selector: 'html:not(html *)', 32934 33235 matches: 'frame-focusable-content-matches',32935 -1 tags: [ 'cat.keyboard', 'wcag2a', 'wcag211', 'TTv5', 'TT4.a', 'EN-301-549', 'EN-9.2.1.1' ],-1 33236 tags: [ 'cat.keyboard', 'wcag2a', 'wcag211', 'TTv5', 'TT4.a', 'EN-301-549', 'EN-9.2.1.1', 'RGAAv4', 'RGAA-7.3.2' ], 32936 33237 actIds: [ 'akn7bn' ], 32937 33238 all: [], 32938 33239 any: [ 'frame-focusable-content' ], @@ -32940,7 +33241,7 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate : 32940 33241 }, { 32941 33242 id: 'frame-tested', 32942 33243 impact: 'critical',32943 -1 selector: 'html, frame, iframe',-1 33244 selector: 'html:not(html *), frame, iframe', 32944 33245 tags: [ 'cat.structure', 'best-practice', 'review-item' ], 32945 33246 all: [ { 32946 33247 options: { @@ -32955,7 +33256,7 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate : 32955 33256 impact: 'serious', 32956 33257 selector: 'frame[title], iframe[title]', 32957 33258 matches: 'frame-title-has-text-matches',32958 -1 tags: [ 'cat.text-alternatives', 'wcag2a', 'wcag412', 'TTv5', 'TT12.d', 'EN-301-549', 'EN-9.4.1.2' ],-1 33259 tags: [ 'cat.text-alternatives', 'wcag2a', 'wcag412', 'TTv5', 'TT12.d', 'EN-301-549', 'EN-9.4.1.2', 'RGAAv4', 'RGAA-2.2.1' ], 32959 33260 actIds: [ '4b1c6c' ], 32960 33261 all: [], 32961 33262 any: [], @@ -32966,7 +33267,7 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate : 32966 33267 impact: 'serious', 32967 33268 selector: 'frame, iframe', 32968 33269 matches: 'no-negative-tabindex-matches',32969 -1 tags: [ 'cat.text-alternatives', 'wcag2a', 'wcag412', 'section508', 'section508.22.i', 'TTv5', 'TT12.d', 'EN-301-549', 'EN-9.4.1.2' ],-1 33270 tags: [ 'cat.text-alternatives', 'wcag2a', 'wcag412', 'section508', 'section508.22.i', 'TTv5', 'TT12.d', 'EN-301-549', 'EN-9.4.1.2', 'RGAAv4', 'RGAA-2.1.1' ], 32970 33271 actIds: [ 'cae760' ], 32971 33272 all: [], 32972 33273 any: [ { @@ -32997,9 +33298,9 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate : 32997 33298 }, { 32998 33299 id: 'html-has-lang', 32999 33300 impact: 'serious',33000 -1 selector: 'html',-1 33301 selector: 'html:not(html *)', 33001 33302 matches: 'is-initiator-matches',33002 -1 tags: [ 'cat.language', 'wcag2a', 'wcag311', 'TTv5', 'TT11.a', 'EN-301-549', 'EN-9.3.1.1', 'ACT' ],-1 33303 tags: [ 'cat.language', 'wcag2a', 'wcag311', 'TTv5', 'TT11.a', 'EN-301-549', 'EN-9.3.1.1', 'ACT', 'RGAAv4', 'RGAA-8.3.1' ], 33003 33304 actIds: [ 'b5c3f8' ], 33004 33305 all: [], 33005 33306 any: [ { @@ -33012,8 +33313,8 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate : 33012 33313 }, { 33013 33314 id: 'html-lang-valid', 33014 33315 impact: 'serious',33015 -1 selector: 'html[lang]:not([lang=""]), html[xml\\:lang]:not([xml\\:lang=""])',33016 -1 tags: [ 'cat.language', 'wcag2a', 'wcag311', 'TTv5', 'TT11.a', 'EN-301-549', 'EN-9.3.1.1', 'ACT' ],-1 33316 selector: 'html[lang]:not([lang=""]):not(html *), html[xml\\:lang]:not([xml\\:lang=""]):not(html *)', -1 33317 tags: [ 'cat.language', 'wcag2a', 'wcag311', 'TTv5', 'TT11.a', 'EN-301-549', 'EN-9.3.1.1', 'ACT', 'RGAAv4', 'RGAA-8.4.1' ], 33017 33318 actIds: [ 'bf051a' ], 33018 33319 all: [], 33019 33320 any: [], @@ -33026,9 +33327,9 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate : 33026 33327 }, { 33027 33328 id: 'html-xml-lang-mismatch', 33028 33329 impact: 'moderate',33029 -1 selector: 'html[lang][xml\\:lang]',-1 33330 selector: 'html[lang][xml\\:lang]:not(html *)', 33030 33331 matches: 'xml-lang-mismatch-matches',33031 -1 tags: [ 'cat.language', 'wcag2a', 'wcag311', 'EN-301-549', 'EN-9.3.1.1', 'ACT' ],-1 33332 tags: [ 'cat.language', 'wcag2a', 'wcag311', 'EN-301-549', 'EN-9.3.1.1', 'ACT', 'RGAAv4', 'RGAA-8.3.1' ], 33032 33333 actIds: [ '5b7ae0' ], 33033 33334 all: [ 'xml-lang-mismatch' ], 33034 33335 any: [], @@ -33050,7 +33351,7 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate : 33050 33351 impact: 'critical', 33051 33352 selector: 'img', 33052 33353 matches: 'no-explicit-name-required-matches',33053 -1 tags: [ 'cat.text-alternatives', 'wcag2a', 'wcag111', 'section508', 'section508.22.a', 'TTv5', 'TT7.a', 'TT7.b', 'EN-301-549', 'EN-9.1.1.1', 'ACT' ],-1 33354 tags: [ 'cat.text-alternatives', 'wcag2a', 'wcag111', 'section508', 'section508.22.a', 'TTv5', 'TT7.a', 'TT7.b', 'EN-301-549', 'EN-9.1.1.1', 'ACT', 'RGAAv4', 'RGAA-1.1.1' ], 33054 33355 actIds: [ '23a2a8' ], 33055 33356 all: [], 33056 33357 any: [ 'has-alt', 'aria-label', 'aria-labelledby', { @@ -33078,7 +33379,7 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate : 33078 33379 impact: 'critical', 33079 33380 selector: 'input[type="button"], input[type="submit"], input[type="reset"]', 33080 33381 matches: 'no-explicit-name-required-matches',33081 -1 tags: [ 'cat.name-role-value', 'wcag2a', 'wcag412', 'section508', 'section508.22.a', 'TTv5', 'TT5.c', 'EN-301-549', 'EN-9.4.1.2', 'ACT' ],-1 33382 tags: [ 'cat.name-role-value', 'wcag2a', 'wcag412', 'section508', 'section508.22.a', 'TTv5', 'TT5.c', 'EN-301-549', 'EN-9.4.1.2', 'ACT', 'RGAAv4', 'RGAA-11.9.1' ], 33082 33383 actIds: [ '97a4e1' ], 33083 33384 all: [], 33084 33385 any: [ 'non-empty-if-present', { @@ -33098,7 +33399,7 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate : 33098 33399 impact: 'critical', 33099 33400 selector: 'input[type="image"]', 33100 33401 matches: 'no-explicit-name-required-matches',33101 -1 tags: [ 'cat.text-alternatives', 'wcag2a', 'wcag111', 'wcag412', 'section508', 'section508.22.a', 'TTv5', 'TT7.a', 'EN-301-549', 'EN-9.1.1.1', 'EN-9.4.1.2', 'ACT' ],-1 33402 tags: [ 'cat.text-alternatives', 'wcag2a', 'wcag111', 'wcag412', 'section508', 'section508.22.a', 'TTv5', 'TT7.a', 'EN-301-549', 'EN-9.1.1.1', 'EN-9.4.1.2', 'ACT', 'RGAAv4', 'RGAA-1.1.3' ], 33102 33403 actIds: [ '59796f' ], 33103 33404 all: [], 33104 33405 any: [ { @@ -33117,7 +33418,7 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate : 33117 33418 id: 'label-content-name-mismatch', 33118 33419 impact: 'serious', 33119 33420 matches: 'label-content-name-mismatch-matches',33120 -1 tags: [ 'cat.semantics', 'wcag21a', 'wcag253', 'EN-301-549', 'EN-9.2.5.3', 'experimental' ],-1 33421 tags: [ 'cat.semantics', 'wcag21a', 'wcag253', 'EN-301-549', 'EN-9.2.5.3', 'RGAAv4', 'RGAA-6.1.5', 'experimental' ], 33121 33422 actIds: [ '2ee8b8' ], 33122 33423 all: [], 33123 33424 any: [ { @@ -33142,7 +33443,7 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate : 33142 33443 impact: 'critical', 33143 33444 selector: 'input, textarea', 33144 33445 matches: 'label-matches',33145 -1 tags: [ 'cat.forms', 'wcag2a', 'wcag412', 'section508', 'section508.22.n', 'TTv5', 'TT5.c', 'EN-301-549', 'EN-9.4.1.2', 'ACT' ],-1 33446 tags: [ 'cat.forms', 'wcag2a', 'wcag412', 'section508', 'section508.22.n', 'TTv5', 'TT5.c', 'EN-301-549', 'EN-9.4.1.2', 'ACT', 'RGAAv4', 'RGAA-11.1.1' ], 33146 33447 actIds: [ 'e086e5' ], 33147 33448 all: [], 33148 33449 any: [ 'implicit-label', 'explicit-label', 'aria-label', 'aria-labelledby', { @@ -33235,7 +33536,7 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate : 33235 33536 }, { 33236 33537 id: 'landmark-one-main', 33237 33538 impact: 'moderate',33238 -1 selector: 'html',-1 33539 selector: 'html:not(html *)', 33239 33540 tags: [ 'cat.semantics', 'best-practice' ], 33240 33541 all: [ { 33241 33542 options: { @@ -33261,7 +33562,7 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate : 33261 33562 selector: 'a[href], [role=link]', 33262 33563 matches: 'link-in-text-block-matches', 33263 33564 excludeHidden: false,33264 -1 tags: [ 'cat.color', 'wcag2a', 'wcag141', 'TTv5', 'TT13.a', 'EN-301-549', 'EN-9.1.4.1' ],-1 33565 tags: [ 'cat.color', 'wcag2a', 'wcag141', 'TTv5', 'TT13.a', 'EN-301-549', 'EN-9.1.4.1', 'RGAAv4', 'RGAA-10.6.1' ], 33265 33566 all: [], 33266 33567 any: [ { 33267 33568 options: { @@ -33275,7 +33576,7 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate : 33275 33576 id: 'link-name', 33276 33577 impact: 'serious', 33277 33578 selector: 'a[href]',33278 -1 tags: [ 'cat.name-role-value', 'wcag2a', 'wcag244', 'wcag412', 'section508', 'section508.22.a', 'TTv5', 'TT6.a', 'EN-301-549', 'EN-9.2.4.4', 'EN-9.4.1.2', 'ACT' ],-1 33579 tags: [ 'cat.name-role-value', 'wcag2a', 'wcag244', 'wcag412', 'section508', 'section508.22.a', 'TTv5', 'TT6.a', 'EN-301-549', 'EN-9.2.4.4', 'EN-9.4.1.2', 'ACT', 'RGAAv4', 'RGAA-6.2.1' ], 33279 33580 actIds: [ 'c487ae' ], 33280 33581 all: [], 33281 33582 any: [ 'has-visible-text', 'aria-label', 'aria-labelledby', { @@ -33290,7 +33591,7 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate : 33290 33591 impact: 'serious', 33291 33592 selector: 'ul, ol', 33292 33593 matches: 'no-role-matches',33293 -1 tags: [ 'cat.structure', 'wcag2a', 'wcag131', 'EN-301-549', 'EN-9.1.3.1' ],-1 33594 tags: [ 'cat.structure', 'wcag2a', 'wcag131', 'EN-301-549', 'EN-9.1.3.1', 'RGAAv4', 'RGAA-9.3.1' ], 33294 33595 all: [], 33295 33596 any: [], 33296 33597 none: [ { @@ -33305,7 +33606,7 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate : 33305 33606 impact: 'serious', 33306 33607 selector: 'li', 33307 33608 matches: 'no-role-matches',33308 -1 tags: [ 'cat.structure', 'wcag2a', 'wcag131', 'EN-301-549', 'EN-9.1.3.1' ],-1 33609 tags: [ 'cat.structure', 'wcag2a', 'wcag131', 'EN-301-549', 'EN-9.1.3.1', 'RGAAv4', 'RGAA-9.3.1' ], 33309 33610 all: [], 33310 33611 any: [ 'listitem' ], 33311 33612 none: [] @@ -33314,7 +33615,7 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate : 33314 33615 impact: 'serious', 33315 33616 selector: 'marquee', 33316 33617 excludeHidden: false,33317 -1 tags: [ 'cat.parsing', 'wcag2a', 'wcag222', 'TTv5', 'TT2.b', 'EN-301-549', 'EN-9.2.2.2' ],-1 33618 tags: [ 'cat.parsing', 'wcag2a', 'wcag222', 'TTv5', 'TT2.b', 'EN-301-549', 'EN-9.2.2.2', 'RGAAv4', 'RGAA-13.8.1' ], 33318 33619 all: [], 33319 33620 any: [], 33320 33621 none: [ 'is-on-screen' ] @@ -33340,7 +33641,7 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate : 33340 33641 impact: 'critical', 33341 33642 selector: 'meta[http-equiv="refresh"][content]', 33342 33643 excludeHidden: false,33343 -1 tags: [ 'cat.time-and-media', 'wcag2a', 'wcag221', 'TTv5', 'TT8.a', 'EN-301-549', 'EN-9.2.2.1' ],-1 33644 tags: [ 'cat.time-and-media', 'wcag2a', 'wcag221', 'TTv5', 'TT8.a', 'EN-301-549', 'EN-9.2.2.1', 'RGAAv4', 'RGAA-13.1.2' ], 33344 33645 actIds: [ 'bc659a', 'bisz58' ], 33345 33646 all: [], 33346 33647 any: [ { @@ -33369,11 +33670,11 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate : 33369 33670 none: [] 33370 33671 }, { 33371 33672 id: 'meta-viewport',33372 -1 impact: 'critical',-1 33673 impact: 'moderate', 33373 33674 selector: 'meta[name="viewport"]', 33374 33675 matches: 'is-initiator-matches', 33375 33676 excludeHidden: false,33376 -1 tags: [ 'cat.sensory-and-visual-cues', 'wcag2aa', 'wcag144', 'EN-301-549', 'EN-9.1.4.4', 'ACT' ],-1 33677 tags: [ 'cat.sensory-and-visual-cues', 'wcag2aa', 'wcag144', 'EN-301-549', 'EN-9.1.4.4', 'ACT', 'RGAAv4', 'RGAA-10.4.2' ], 33377 33678 actIds: [ 'b4f0c3' ], 33378 33679 all: [], 33379 33680 any: [ { @@ -33387,7 +33688,7 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate : 33387 33688 id: 'nested-interactive', 33388 33689 impact: 'serious', 33389 33690 matches: 'nested-interactive-matches',33390 -1 tags: [ 'cat.keyboard', 'wcag2a', 'wcag412', 'TTv5', 'TT6.a', 'EN-301-549', 'EN-9.4.1.2' ],-1 33691 tags: [ 'cat.keyboard', 'wcag2a', 'wcag412', 'TTv5', 'TT6.a', 'EN-301-549', 'EN-9.4.1.2', 'RGAAv4', 'RGAA-7.1.1' ], 33391 33692 actIds: [ '307n5z' ], 33392 33693 all: [], 33393 33694 any: [ 'no-focusable-content' ], @@ -33399,7 +33700,7 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate : 33399 33700 selector: 'audio[autoplay], video[autoplay]', 33400 33701 matches: 'no-autoplay-audio-matches', 33401 33702 reviewOnFail: true,33402 -1 tags: [ 'cat.time-and-media', 'wcag2a', 'wcag142', 'TTv5', 'TT2.a', 'EN-301-549', 'EN-9.1.4.2', 'ACT' ],-1 33703 tags: [ 'cat.time-and-media', 'wcag2a', 'wcag142', 'TTv5', 'TT2.a', 'EN-301-549', 'EN-9.1.4.2', 'ACT', 'RGAAv4', 'RGAA-4.10.1' ], 33403 33704 actIds: [ '80f0bf' ], 33404 33705 preload: true, 33405 33706 all: [ { @@ -33415,7 +33716,7 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate : 33415 33716 impact: 'serious', 33416 33717 selector: 'object[data]', 33417 33718 matches: 'object-is-loaded-matches',33418 -1 tags: [ 'cat.text-alternatives', 'wcag2a', 'wcag111', 'section508', 'section508.22.a', 'EN-301-549', 'EN-9.1.1.1' ],-1 33719 tags: [ 'cat.text-alternatives', 'wcag2a', 'wcag111', 'section508', 'section508.22.a', 'EN-301-549', 'EN-9.1.1.1', 'RGAAv4', 'RGAA-1.1.6' ], 33419 33720 actIds: [ '8fc3b6' ], 33420 33721 all: [], 33421 33722 any: [ 'aria-label', 'aria-labelledby', { @@ -33430,7 +33731,7 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate : 33430 33731 impact: 'serious', 33431 33732 selector: 'p', 33432 33733 matches: 'p-as-heading-matches',33433 -1 tags: [ 'cat.semantics', 'wcag2a', 'wcag131', 'EN-301-549', 'EN-9.1.3.1', 'experimental' ],-1 33734 tags: [ 'cat.semantics', 'wcag2a', 'wcag131', 'EN-301-549', 'EN-9.1.3.1', 'RGAAv4', 'RGAA-9.1.3', 'experimental' ], 33434 33735 all: [ { 33435 33736 options: { 33436 33737 margins: [ { @@ -33455,7 +33756,7 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate : 33455 33756 }, { 33456 33757 id: 'page-has-heading-one', 33457 33758 impact: 'moderate',33458 -1 selector: 'html',-1 33759 selector: 'html:not(html *)', 33459 33760 tags: [ 'cat.semantics', 'best-practice' ], 33460 33761 all: [ { 33461 33762 options: { @@ -33480,7 +33781,7 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate : 33480 33781 id: 'region', 33481 33782 impact: 'moderate', 33482 33783 selector: 'body *',33483 -1 tags: [ 'cat.keyboard', 'best-practice' ],-1 33784 tags: [ 'cat.keyboard', 'best-practice', 'RGAAv4', 'RGAA-9.2.1' ], 33484 33785 all: [], 33485 33786 any: [ { 33486 33787 options: { @@ -33494,7 +33795,7 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate : 33494 33795 impact: 'serious', 33495 33796 selector: '[role=\'img\']:not(img, area, input, object)', 33496 33797 matches: 'html-namespace-matches',33497 -1 tags: [ 'cat.text-alternatives', 'wcag2a', 'wcag111', 'section508', 'section508.22.a', 'TTv5', 'TT7.a', 'EN-301-549', 'EN-9.1.1.1', 'ACT' ],-1 33798 tags: [ 'cat.text-alternatives', 'wcag2a', 'wcag111', 'section508', 'section508.22.a', 'TTv5', 'TT7.a', 'EN-301-549', 'EN-9.1.1.1', 'ACT', 'RGAAv4', 'RGAA-1.1.1' ], 33498 33799 actIds: [ '23a2a8' ], 33499 33800 all: [], 33500 33801 any: [ 'aria-label', 'aria-labelledby', { @@ -33522,7 +33823,7 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate : 33522 33823 impact: 'serious', 33523 33824 selector: '*:not(select,textarea)', 33524 33825 matches: 'scrollable-region-focusable-matches',33525 -1 tags: [ 'cat.keyboard', 'wcag2a', 'wcag211', 'wcag213', 'TTv5', 'TT4.a', 'EN-301-549', 'EN-9.2.1.1', 'EN-9.2.1.3' ],-1 33826 tags: [ 'cat.keyboard', 'wcag2a', 'wcag211', 'wcag213', 'TTv5', 'TT4.a', 'EN-301-549', 'EN-9.2.1.1', 'EN-9.2.1.3', 'RGAAv4', 'RGAA-7.3.2' ], 33526 33827 actIds: [ '0ssw9k' ], 33527 33828 all: [], 33528 33829 any: [ 'focusable-content', 'focusable-element' ], @@ -33531,7 +33832,7 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate : 33531 33832 id: 'select-name', 33532 33833 impact: 'critical', 33533 33834 selector: 'select',33534 -1 tags: [ 'cat.forms', 'wcag2a', 'wcag412', 'section508', 'section508.22.n', 'TTv5', 'TT5.c', 'EN-301-549', 'EN-9.4.1.2', 'ACT' ],-1 33835 tags: [ 'cat.forms', 'wcag2a', 'wcag412', 'section508', 'section508.22.n', 'TTv5', 'TT5.c', 'EN-301-549', 'EN-9.4.1.2', 'ACT', 'RGAAv4', 'RGAA-11.1.1' ], 33535 33836 actIds: [ 'e086e5' ], 33536 33837 all: [], 33537 33838 any: [ 'implicit-label', 'explicit-label', 'aria-label', 'aria-labelledby', { @@ -33545,7 +33846,7 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate : 33545 33846 id: 'server-side-image-map', 33546 33847 impact: 'minor', 33547 33848 selector: 'img[ismap]',33548 -1 tags: [ 'cat.text-alternatives', 'wcag2a', 'wcag211', 'section508', 'section508.22.f', 'TTv5', 'TT4.a', 'EN-301-549', 'EN-9.2.1.1' ],-1 33849 tags: [ 'cat.text-alternatives', 'wcag2a', 'wcag211', 'section508', 'section508.22.f', 'TTv5', 'TT4.a', 'EN-301-549', 'EN-9.2.1.1', 'RGAAv4', 'RGAA-1.1.4' ], 33549 33850 all: [], 33550 33851 any: [], 33551 33852 none: [ 'exists' ] @@ -33554,7 +33855,7 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate : 33554 33855 impact: 'moderate', 33555 33856 selector: 'a[href^="#"], a[href^="/#"]', 33556 33857 matches: 'skip-link-matches',33557 -1 tags: [ 'cat.keyboard', 'best-practice' ],-1 33858 tags: [ 'cat.keyboard', 'best-practice', 'RGAAv4', 'RGAA-12.7.1' ], 33558 33859 all: [], 33559 33860 any: [ 'skip-link' ], 33560 33861 none: [] @@ -33577,7 +33878,7 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate : 33577 33878 impact: 'serious', 33578 33879 selector: '[role="img"], [role="graphics-symbol"], svg[role="graphics-document"]', 33579 33880 matches: 'svg-namespace-matches',33580 -1 tags: [ 'cat.text-alternatives', 'wcag2a', 'wcag111', 'section508', 'section508.22.a', 'TTv5', 'TT7.a', 'EN-301-549', 'EN-9.1.1.1', 'ACT' ],-1 33881 tags: [ 'cat.text-alternatives', 'wcag2a', 'wcag111', 'section508', 'section508.22.a', 'TTv5', 'TT7.a', 'EN-301-549', 'EN-9.1.1.1', 'ACT', 'RGAAv4', 'RGAA-1.1.5' ], 33581 33882 actIds: [ '7d6734' ], 33582 33883 all: [], 33583 33884 any: [ 'svg-non-empty-title', 'aria-label', 'aria-labelledby', { @@ -33599,7 +33900,7 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate : 33599 33900 id: 'table-duplicate-name', 33600 33901 impact: 'minor', 33601 33902 selector: 'table',33602 -1 tags: [ 'cat.tables', 'best-practice' ],-1 33903 tags: [ 'cat.tables', 'best-practice', 'RGAAv4', 'RGAA-5.2.1' ], 33603 33904 all: [], 33604 33905 any: [], 33605 33906 none: [ 'same-caption-summary' ] @@ -33608,7 +33909,7 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate : 33608 33909 impact: 'serious', 33609 33910 selector: 'table', 33610 33911 matches: 'data-table-matches',33611 -1 tags: [ 'cat.tables', 'experimental', 'wcag2a', 'wcag131', 'section508', 'section508.22.g', 'EN-301-549', 'EN-9.1.3.1' ],-1 33912 tags: [ 'cat.tables', 'experimental', 'wcag2a', 'wcag131', 'section508', 'section508.22.g', 'EN-301-549', 'EN-9.1.3.1', 'RGAAv4', 'RGAA-5.4.1' ], 33612 33913 all: [ 'caption-faked' ], 33613 33914 any: [], 33614 33915 none: [] @@ -33637,7 +33938,7 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate : 33637 33938 impact: 'critical', 33638 33939 selector: 'table', 33639 33940 matches: 'data-table-large-matches',33640 -1 tags: [ 'cat.tables', 'experimental', 'wcag2a', 'wcag131', 'section508', 'section508.22.g', 'TTv5', 'TT14.b', 'EN-301-549', 'EN-9.1.3.1' ],-1 33941 tags: [ 'cat.tables', 'experimental', 'wcag2a', 'wcag131', 'section508', 'section508.22.g', 'TTv5', 'TT14.b', 'EN-301-549', 'EN-9.1.3.1', 'RGAAv4', 'RGAA-5.7.4' ], 33641 33942 all: [ 'td-has-header' ], 33642 33943 any: [], 33643 33944 none: [] @@ -33646,7 +33947,7 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate : 33646 33947 impact: 'serious', 33647 33948 selector: 'table', 33648 33949 matches: 'table-or-grid-role-matches',33649 -1 tags: [ 'cat.tables', 'wcag2a', 'wcag131', 'section508', 'section508.22.g', 'TTv5', 'TT14.b', 'EN-301-549', 'EN-9.1.3.1' ],-1 33950 tags: [ 'cat.tables', 'wcag2a', 'wcag131', 'section508', 'section508.22.g', 'TTv5', 'TT14.b', 'EN-301-549', 'EN-9.1.3.1', 'RGAAv4', 'RGAA-5.7.4' ], 33650 33951 actIds: [ 'a25f45' ], 33651 33952 all: [ 'td-headers-attr' ], 33652 33953 any: [], @@ -33656,7 +33957,7 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate : 33656 33957 impact: 'serious', 33657 33958 selector: 'table', 33658 33959 matches: 'data-table-matches',33659 -1 tags: [ 'cat.tables', 'wcag2a', 'wcag131', 'section508', 'section508.22.g', 'TTv5', 'TT14.b', 'EN-301-549', 'EN-9.1.3.1' ],-1 33960 tags: [ 'cat.tables', 'wcag2a', 'wcag131', 'section508', 'section508.22.g', 'TTv5', 'TT14.b', 'EN-301-549', 'EN-9.1.3.1', 'RGAAv4', 'RGAA-5.7.1' ], 33660 33961 actIds: [ 'd0f69e' ], 33661 33962 all: [ 'th-has-data-cells' ], 33662 33963 any: [], @@ -33665,7 +33966,7 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate : 33665 33966 id: 'valid-lang', 33666 33967 impact: 'serious', 33667 33968 selector: '[lang]:not(html), [xml\\:lang]:not(html)',33668 -1 tags: [ 'cat.language', 'wcag2aa', 'wcag312', 'TTv5', 'TT11.b', 'EN-301-549', 'EN-9.3.1.2', 'ACT' ],-1 33969 tags: [ 'cat.language', 'wcag2aa', 'wcag312', 'TTv5', 'TT11.b', 'EN-301-549', 'EN-9.3.1.2', 'ACT', 'RGAAv4', 'RGAA-8.8.1' ], 33669 33970 actIds: [ 'de46e4' ], 33670 33971 all: [], 33671 33972 any: [], @@ -33679,7 +33980,7 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate : 33679 33980 id: 'video-caption', 33680 33981 impact: 'critical', 33681 33982 selector: 'video',33682 -1 tags: [ 'cat.text-alternatives', 'wcag2a', 'wcag122', 'section508', 'section508.22.a', 'TTv5', 'TT17.a', 'EN-301-549', 'EN-9.1.2.2' ],-1 33983 tags: [ 'cat.text-alternatives', 'wcag2a', 'wcag122', 'section508', 'section508.22.a', 'TTv5', 'TT17.a', 'EN-301-549', 'EN-9.1.2.2', 'RGAAv4', 'RGAA-4.3.1' ], 33683 33984 actIds: [ 'eac66b' ], 33684 33985 all: [], 33685 33986 any: [], @@ -33859,7 +34160,7 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate : 33859 34160 id: 'autocomplete-valid', 33860 34161 evaluate: 'autocomplete-valid-evaluate', 33861 34162 options: {33862 -1 stateTerms: [ 'none', 'false', 'true', 'disabled', 'enabled', 'undefined', 'null' ],-1 34163 stateTerms: [ 'none', 'false', 'true', 'disabled', 'enabled', 'undefined', 'null', 'xoff', 'xon' ], 33863 34164 ignoredValues: [ 'text', 'pronouns', 'gender', 'message', 'content' ] 33864 34165 } 33865 34166 }, { @@ -34161,6 +34462,9 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate : 34161 34462 id: 'doc-has-title', 34162 34463 evaluate: 'doc-has-title-evaluate' 34163 34464 }, { -1 34465 id: 'error-occurred', -1 34466 evaluate: 'exists-evaluate' -1 34467 }, { 34164 34468 id: 'exists', 34165 34469 evaluate: 'exists-evaluate' 34166 34470 }, { @@ -37217,7 +37521,7 @@ var ex = function(fn, args, _this) { 37217 37521 }; 37218 37522 37219 37523 var implementations = [{37220 -1 name: 'aria-api (0.8.0)',-1 37524 name: 'aria-api (0.9.1)', 37221 37525 url: 'https://github.com/xi/aria-api', 37222 37526 fn: function(el) { 37223 37527 return { @@ -37231,7 +37535,7 @@ var implementations = [{ 37231 37535 url: 'https://github.com/WhatSock/w3c-alternative-text-computation', 37232 37536 fn: accdc.calcNames, 37233 37537 }, {37234 -1 name: 'dom-accessibility-api (0.7.0)',-1 37538 name: 'dom-accessibility-api (0.7.1)', 37235 37539 url: 'https://github.com/eps1lon/dom-accessibility-api/', 37236 37540 fn: function(el) { 37237 37541 return { @@ -37241,7 +37545,7 @@ var implementations = [{ 37241 37545 }; 37242 37546 }, 37243 37547 }, {37244 -1 name: 'axe (4.10.3)',-1 37548 name: 'axe (4.11.1)', 37245 37549 url: 'https://github.com/dequelabs/axe-core', 37246 37550 fn: function(el) { 37247 37551 axe._tree = axe.utils.getFlattenedTree(document.body);