"use strict";Liferay.Loader.define("liferay!analytics-settings-web$aria-query@5.1.3/lib/elementRoleMap",["module","exports","require","liferay!analytics-settings-web$deep-equal","./util/iterationDecorator","./rolesMap"],(function(r,t,a){window;{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=_interopRequireDefault(a("liferay!analytics-settings-web$deep-equal")),i=_interopRequireDefault(a("./util/iterationDecorator")),u=_interopRequireDefault(a("./rolesMap"));function _interopRequireDefault(r){return r&&r.__esModule?r:{default:r}}function _slicedToArray(r,t){return function _arrayWithHoles(r){if(Array.isArray(r))return r}(r)||function _iterableToArrayLimit(r,t){var a=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null==a)return;var o,i,u=[],l=!0,c=!1;try{for(a=a.call(r);!(l=(o=a.next()).done)&&(u.push(o.value),!t||u.length!==t);l=!0);}catch(r){c=!0,i=r}finally{try{l||null==a.return||a.return()}finally{if(c)throw i}}return u}(r,t)||_unsupportedIterableToArray(r,t)||function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _createForOfIteratorHelper(r,t){var a="undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(!a){if(Array.isArray(r)||(a=_unsupportedIterableToArray(r))||t&&r&&"number"==typeof r.length){a&&(r=a);var o=0,i=function F(){};return{s:i,n:function n(){return o>=r.length?{done:!0}:{done:!1,value:r[o++]}},e:function e(r){throw r},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var u,l=!0,c=!1;return{s:function s(){a=a.call(r)},n:function n(){var r=a.next();return l=r.done,r},e:function e(r){c=!0,u=r},f:function f(){try{l||null==a.return||a.return()}finally{if(c)throw u}}}}function _unsupportedIterableToArray(r,t){if(r){if("string"==typeof r)return _arrayLikeToArray(r,t);var a=Object.prototype.toString.call(r).slice(8,-1);return"Object"===a&&r.constructor&&(a=r.constructor.name),"Map"===a||"Set"===a?Array.from(r):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?_arrayLikeToArray(r,t):void 0}}function _arrayLikeToArray(r,t){(null==t||t>r.length)&&(t=r.length);for(var a=0,o=new Array(t);a<t;a++)o[a]=r[a];return o}for(var l=[],c=u.default.keys(),y=0;y<c.length;y++){var d=c[y],p=u.default.get(d);if(p)for(var v=[].concat(p.baseConcepts,p.relatedConcepts),b=0;b<v.length;b++){var h=v[b];if("HTML"===h.module){var m=h.concept;m&&function(){var r=JSON.stringify(m),t=l.find((function(t){return JSON.stringify(t[0])===r})),a=void 0;a=t?t[1]:[];for(var o=!0,i=0;i<a.length;i++)if(a[i]===d){o=!1;break}o&&a.push(d),l.push([m,a])}()}}}var _={entries:function entries(){return l},forEach:function forEach(r){var t,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,o=_createForOfIteratorHelper(l);try{for(o.s();!(t=o.n()).done;){var i=_slicedToArray(t.value,2),u=i[0],c=i[1];r.call(a,c,u,l)}}catch(r){o.e(r)}finally{o.f()}},get:function get(r){var t=l.find((function(t){return(0,o.default)(r,t[0])}));return t&&t[1]},has:function has(r){return!!_.get(r)},keys:function keys(){return l.map((function(r){return _slicedToArray(r,1)[0]}))},values:function values(){return l.map((function(r){return _slicedToArray(r,2)[1]}))}},g=(0,i.default)(_,_.entries());t.default=g}}));
//# sourceMappingURL=elementRoleMap.js.map