var __values=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},__read=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a};window.UW_RULES_ENGINE=window.UW_RULES_ENGINE||{},window.UW_RULES_ENGINE.CORE=window.UW_RULES_ENGINE.CORE||{},window.UW_RULES_ENGINE.STATUS={RULE_NOT_APPLICABLE:"RULE_NOT_APPLICABLE",RULE_NO_ELEMENT_BY_XPATH:"RULE_NO_ELEMENT_BY_XPATH",RULE_CHECK_RESPONSE_TRUE:"RULE_CHECK_RESPONSE_TRUE",RULE_CHECK_RESPONSE_FALSE:"RULE_CHECK_RESPONSE_FALSE"},window.UW_RULES_ENGINE.incompleteData=function(){var e={};return{set:function(t,n){if("string"!=typeof t)throw new Error("Must be string");return n&&(e[t]=n),e[t]},get:function(t){return e[t]},clear:function(){e={}}}}(),window.UW_RULES_ENGINE.uwDom=function(){function e(e){var t=e.getPropertyValue("clip").match(r),n=e.getPropertyValue("clip-path").match(i);if(t&&5===t.length)return t[3]-t[1]<=0&&t[2]-t[4]<=0;if(n){var o=n[1],a=parseInt(n[2],10);switch(o){case"inset":return a>=50;case"circle":return 0===a}}return!1}function t(e,t){for(e=n.getComposedParent(e);e&&"html"!==e.nodeName.toLowerCase();){if(e.scrollTop&&(t+=e.scrollTop)>=0)return!1;e=n.getComposedParent(e)}return!0}var n={},r=/rect\s*\(([0-9]+)px,?\s*([0-9]+)px,?\s*([0-9]+)px,?\s*([0-9]+)px\s*\)/,i=/(\w+)\((\d+)/,o=["STYLE","SCRIPT","NOSCRIPT","TEMPLATE"];return n.getViewportSize=function(e){var t,n=e.document,r=n.documentElement;return e.innerWidth?{width:e.innerWidth,height:e.innerHeight}:r?{width:r.clientWidth,height:r.clientHeight}:(t=n.body,{width:t.clientWidth,height:t.clientHeight})},n.getScrollOffset=function(e){if(!e.nodeType&&e.document&&(e=e.document),9===e.nodeType){var t=e.documentElement,n=e.body;return{left:t&&t.scrollLeft||n&&n.scrollLeft||0,top:t&&t.scrollTop||n&&n.scrollTop||0}}return{left:e.scrollLeft,top:e.scrollTop}},n.getComposedParent=function e(t){if(t.assignedSlot)return e(t.assignedSlot);if(t.parentNode){var n=t.parentNode;if(1===n.nodeType)return n;if(n.host)return n.host}return null},n.getElementCoordinates=function(e){var t=n.getScrollOffset(document),r=t.left,i=t.top,o=e.getBoundingClientRect();return{top:o.top+i,right:o.right+r,bottom:o.bottom+i,left:o.left+r,width:o.right-o.left,height:o.bottom-o.top}},n.isOffscreen=function(e){var r,i=document.documentElement,o=window.getComputedStyle(e),a=window.getComputedStyle(document.body||i).getPropertyValue("direction"),u=n.getElementCoordinates(e);if(u.bottom<0&&(t(e,u.bottom)||"absolute"===o.position))return!0;if("ltr"===a){if(u.right<=0)return!0}else if(r=Math.max(i.scrollWidth,n.getViewportSize(window).width),u.left>=r)return!0;return!1},n.isHiddenInDom=function(e){if(9===e.nodeType)return!0;11===e.nodeType&&(e=e.host);var t=window.getComputedStyle(e,null);if(null===t)return!1;var n=e.nodeName.toUpperCase();return"none"===t.getPropertyValue("display")||o.includes(n)},n.isVisible=function(t,r){if(9===t.nodeType)return!0;11===t.nodeType&&(t=t.host);var i=window.getComputedStyle(t,null);if(null===i)return!1;var a=t.nodeName.toUpperCase();if("none"===i.getPropertyValue("display")||o.includes(a)||e(i)||!r&&("hidden"===i.getPropertyValue("visibility")||n.isOffscreen(t)))return!1;var u=t.assignedSlot?t.assignedSlot:t.parentNode,l=!1;return u&&(l=n.isVisible(u,!0)),l},n.getElementsWithText=function(e){var t,r=[],i=document.createTreeWalker(e,NodeFilter.SHOW_TEXT,null);for(t=i.nextNode();t;){var a=n.customTrim(t.textContent);if(a&&a.length){var u=t.parentElement;u&&!o.includes(u.nodeName.toUpperCase())&&r.push(t.parentElement)}t=i.nextNode()}return r},n.isHiddenForAssistiveTechnologies=function(e){var t=e.hasAttribute("aria-hidden")?e.getAttribute("aria-hidden"):null,n=e.hasAttribute("role")?e.getAttribute("role"):null;return!(!t||"true"!==t)||n&&"presentation"===n},n.getLinkAccessibleName=function(e){var t=e.getAttribute("aria-label"),r=e.getAttribute("aria-describedby");if(r&&(t+=n.getContentOfAriaReferences(r)),t&&t.trim())return t.trim().toLowerCase();var i=e.getAttribute("aria-labelledby");if(i&&(t+=n.getContentOfAriaReferences(i)),t&&t.trim())return t.trim().toLowerCase();if((t=e.textContent?e.textContent:null)&&t.trim())return t.trim().toLowerCase();var o=e.querySelector('img, *[role="img"]');return o&&(t=n.getImageAccessibleName(o))&&t.trim()?t.trim().toLowerCase():null},n.getContentOfAriaReferences=function(e){var t=e.split(" "),n="";return t.forEach(function(e){e=e.trim();var t=document.getElementById(e);n+=t&&t.textContent?t.textContent:""}),n},n.getImageAccessibleName=function(e){var t=e.alt;if(t&&t.trim())return t.trim();var r=e.getAttribute("aria-label");if(r&&r.trim())return r.trim();var i=e.getAttribute("aria-describedby");if(i){var o=n.getContentOfAriaReferences(i);if(o)return o}var a=e.getAttribute("aria-labelledby");if(a){var o=n.getContentOfAriaReferences(a);if(o)return o}return null},n.customTrim=function(e){return e?e.trim().replace(/(\n|\r\n)+/g," ").replace(/\s+/g," "):""},n}(),window.UW_RULES_ENGINE.uwText=function(e){var t={};return t.sanitize=function(e){return e.replace(/\r\n/g,"\n").replace(/\u00A0/g," ").replace(/[\s]{2,}/g," ").trim()},t.visibleVirtual=function(n,r){var i=n.children.map(function(i){if(3===i.actualNode.nodeType){var o=i.actualNode.nodeValue;if(o&&e.isVisible(n.actualNode))return o}else if(!r)return t.visibleVirtual(i)}).join("");return t.sanitize(i)},t}(window.UW_RULES_ENGINE.uwDom),window.UW_RULES_ENGINE.uwColor=function(e){function t(e){var t=e.nodeName.toLowerCase();return!(!e.shadowRoot||!/^[a-z][a-z0-9_.-]*-[a-z0-9_.-]*$/.test(t)&&!U.includes(t))}function n(e,t){var n=e.getBoundingClientRect(),r={top:n.top+.01,bottom:n.bottom-.01,left:n.left+.01,right:n.right-.01},i=t.getBoundingClientRect(),o=i.top,a=i.left,u={top:o-t.scrollTop,bottom:o-t.scrollTop+t.scrollHeight,left:a-t.scrollLeft,right:a-t.scrollLeft+t.scrollWidth},l=window.getComputedStyle(t);return"inline"===l.getPropertyValue("display")||!(r.leftu.right&&r.right>i.right||r.bottom>u.bottom&&r.bottom>i.bottom)&&(!(r.right>i.right||r.bottom>i.bottom)||("scroll"===l.overflow||"auto"===l.overflow||"hidden"===l.overflow||t instanceof HTMLBodyElement||t instanceof HTMLHtmlElement))}function r(e){var t=e.getRootNode&&e.getRootNode()||document;return t===e&&(t=document),t}function i(e,o,a,u){if(void 0===a&&(a=document),void 0===u&&(u=0),u>999)throw new Error("Infinite loop detected");return Array.from(a.elementsFromPoint(e,o)).filter(function(e){return r(e)===a}).reduce(function(r,a){if(t(a)){var l=i(e,o,a.shadowRoot,u+1);r=r.concat(l),r.length&&n(r[0],a)&&r.push(a)}else r.push(a);return r},[])}function o(e){var t=a(e.getBoundingClientRect());if(!t)return null;var n=i(t.x,t.y),r=Array.from(e.getClientRects());if(!r||r.length<=1)return[n];var o=r.filter(function(e){return e.width&&e.width>0}).map(function(e){var t=a(e);if(t)return i(t.x,t.y)});return o.some(function(e){return void 0===e})?null:(o.splice(0,0,n),o)}function a(e){if(!(e.left>window.innerWidth||e.top>window.innerHeight)){return{x:Math.min(Math.ceil(e.left+e.width/2),window.innerWidth-1),y:Math.min(Math.ceil(e.top+e.height/2),window.innerHeight-1)}}}function u(t){var n=o(t);if(n&&1===n.length)return n[0];if(n&&n.length>1){var r,i=n.shift();return n.forEach(function(e,o){if(0!==o){var a=n[o-1],u=n[o];r=a.every(function(e,t){return e===u[t]})||i.includes(t)}}),r?n[0]:(e.set("bgColor","elmPartiallyObscuring"),null)}return e.set("bgColor","outsideViewport"),null}function l(t){var n=u(t);if(null===n)return null;n=d(n,t),n=s(n);var r=n.indexOf(t);return m(r,n,t)?(e.set("bgColor","bgOverlap"),null):-1!==r?n:null}function s(e){var t=e.indexOf(document.body),n=e;return(t>1||-1===t)&&!c(document.documentElement)&&0===E(window.getComputedStyle(document.documentElement)).alpha&&(t>1&&n.splice(t,1),n.splice(e.indexOf(document.documentElement),1),n.push(document.body)),n}function E(e){var t=new h;if(t.parseRgbString(e.getPropertyValue("background-color")),0!==t.alpha){var n=e.getPropertyValue("opacity");t.alpha=t.alpha*n}return t}function c(t,n){var r=["IMG","CANVAS","OBJECT","IFRAME","VIDEO","SVG"],i=t.nodeName.toUpperCase();if(r.includes(i))return e.set("bgColor","imgNode"),!0;n=n||window.getComputedStyle(t);var o=n.getPropertyValue("background-image"),a="none"!==o;if(a){var u=/gradient/.test(o);e.set("bgColor",u?"bgGradient":"bgImage")}return a}function d(e,t){var n,r,i,o=["fixed","sticky"],a=[],u=!1;for(n=0;n0)for(var r=e-1;r>=0;r--){var i=t[r];if(g(n,i))return!0;t.splice(r,1)}return!1}function f(t,r,i){var o=t!==r&&!n(t,r)&&0!==i.alpha;return o&&e.set("bgColor","elmPartiallyObscured"),o}function _(e,t){var n=e.alpha,r=(1-n)*t.red+n*e.red,i=(1-n)*t.green+n*e.green,o=(1-n)*t.blue+n*e.blue,a=e.alpha+t.alpha*(1-e.alpha);return new h(r,i,o,a)}function w(e,t){if(!t||!e)return null;t.alpha<1&&(t=_(t,e));var n=e.getRelativeLuminance(),r=t.getRelativeLuminance();return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)}var N={},h=function(e,t,n,r){this.red=e,this.green=t,this.blue=n,this.alpha=r,this.toHexString=function(){var e=Math.round(this.red).toString(16),t=Math.round(this.green).toString(16),n=Math.round(this.blue).toString(16);return"#"+(this.red>15.5?e:"0"+e)+(this.green>15.5?t:"0"+t)+(this.blue>15.5?n:"0"+n)};var i=/^rgb\((\d+), (\d+), (\d+)\)$/,o=/^rgba\((\d+), (\d+), (\d+), (\d*(\.\d+)?)\)/;this.parseRgbString=function(e){if("transparent"===e)return this.red=0,this.green=0,this.blue=0,void(this.alpha=0);var t=e.match(i);if(t)return this.red=parseInt(t[1],10),this.green=parseInt(t[2],10),this.blue=parseInt(t[3],10),void(this.alpha=1);(t=e.match(o))&&(this.red=parseInt(t[1],10),this.green=parseInt(t[2],10),this.blue=parseInt(t[3],10),this.alpha=Math.round(100*parseFloat(t[4]))/100)},this.getRelativeLuminance=function(){var e=this.red/255,t=this.green/255,n=this.blue/255;return.2126*(e<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4))+.7152*(t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.0722*(n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4))}};N.hasValidContrastRatio=function(e,t,n,r){var i=w(e,t),o=r&&Math.ceil(72*n)/96<14||!r&&Math.ceil(72*n)/96<18,a=o?4.5:3;return{isValid:i>a,contrastRatio:i,expectedContrastRatio:a}},N.getForegroundColor=function(t,n){var r=window.getComputedStyle(t),i=new h;i.parseRgbString(r.getPropertyValue("color"));var o=r.getPropertyValue("opacity");if(i.alpha=i.alpha*o,1===i.alpha)return i;var a=N.getBackgroundColor(t,[],n);if(null===a){var u=e.get("bgColor");return e.set("fgColor",u),null}return _(i,a)},N.getBackgroundColor=function(e,t,n){if(void 0===t&&(t=[]),void 0===n&&(n=!1),!0!==n){var r=e.getBoundingClientRect().height,i=r-2>=2*window.innerHeight;e.scrollIntoView(i)}var o=[],a=l(e);if((a||[]).some(function(n){var r=window.getComputedStyle(n),i=E(r);return f(e,n,i)||c(n,r)?(o=null,t.push(n),!0):0!==i.alpha&&(t.push(n),o.push(i),1===i.alpha)}),null!==o&&null!==a){o.push(new h(255,255,255,1));return o.reduce(_)}return null};var U=["article","aside","blockquote","body","div","footer","h1","h2","h3","h4","h5","h6","header","main","nav","p","section","span"];return N}(window.UW_RULES_ENGINE.incompleteData),function(e){e.UW_RULES_ENGINE.uwHimalaya={parse:function(){return null},stringify:function(){return""}}}(window),window.UW_RULES_ENGINE.VALID_LANG_VALUES=["ab","aa","af","ak","sq","am","ar","an","hy","as","av","ae","ay","az","bm","ba","eu","be","bn","bh","bi","bs","br","bg","my","ca","ch","ce","ny","zh","zh-hans","zh-hant","cv","kw","co","cr","hr","cs","da","dv","nl","dz","en","en","eo","et","ee","fo","fj","fi","fr","ff","gl","gd","gv","ka","de","el","kl","gn","gu","ht","ha","he","hz","hi","ho","hu","is","io","ig","id","in","ia","ie","iu","ik","ga","it","ja","jv","kl","kn","kr","ks","kk","km","ki","rw","rn","ky","kv","kg","ko","ku","kj","lo","la","lv","li","ln","lt","lu","lg","lb","gv","mk","mg","ms","ml","mt","mi","mr","mh","mo","mn","na","nv","ng","nd","ne","no","nb","nn","ii","oc","oj","cu","or","om","os","pi","ps","fa","pl","pt","pa","qu","rm","ro","ru","se","sm","sg","sa","sr","sh","st","tn","sn","ii","sd","si","ss","sk","sl","so","nr","es","su","sw","ss","sv","tl","ty","tg","ta","tt","te","th","bo","ti","to","ts","tr","tk","tw","ug","uk","ur","uz","ve","vi","vo","wa","cy","wo","fy","xh","yi","ji","yo","za","zu","ilo","prs","hmn"],window.UW_RULES_ENGINE.NEW_TAB_INDICATION=["new tab","new window"],window.UW_RULES_ENGINE.LINKS_AMBIGUOUS_TXT=["here","click here","download","download now","click","click this","this","link","more","please click here","continue reading"],window.UW_RULES_ENGINE.FOCUSABLE_ELEMENTS=["A","INPUT","BUTTON","SELECT","TEXTAREA","LINK"],window.UW_RULES_ENGINE.EXCLUDED_IFRAMES_SRC_REGEXP=new RegExp("hubspot.com|bluesnap|recaptcha","i"),window.UW_RULES_ENGINE.HTML_SNIPPET_MAX_LENGTH=200,window.UW_RULES_ENGINE.ELEMENT_SCRENSHOT_MAX_HEIGHT=550,window.UW_RULES_ENGINE.getPathToElement=function(e){if(e===document.documentElement)return"/HTML";if(e===document.body)return"/HTML/BODY";if(e===document.head)return"/HTML/HEAD";for(var t=0,n=e.parentNode.childNodes,r=0;rwindow.UW_RULES_ENGINE.ELEMENT_SCRENSHOT_MAX_HEIGHT){var c=l+u;E=!0,u=window.UW_RULES_ENGINE.ELEMENT_SCRENSHOT_MAX_HEIGHT,l=c-window.UW_RULES_ENGINE.ELEMENT_SCRENSHOT_MAX_HEIGHT}return{clipBoxes:{element:{x:s,y:l,width:a,height:u,cropped:E},page:window.UW_RULES_ENGINE.getPageDimension(),elementVisible:i},html:"",xPath:window.UW_RULES_ENGINE.getPathToElement(e),details:n}},window.UW_RULES_ENGINE.checkContrast=function(e){if(!window.UW_RULES_ENGINE.uwDom.isVisible(e,!1))return[!0,{}];var t,n=[],r=window.UW_RULES_ENGINE.uwColor.getBackgroundColor(e,n,!0),i=window.UW_RULES_ENGINE.uwColor.getForegroundColor(e,!0),o=window.getComputedStyle(e),a=parseFloat(o.getPropertyValue("font-size")),u=o.getPropertyValue("font-weight"),l=-1!==["bold","bolder","600","700","800","900"].indexOf(u),s=window.UW_RULES_ENGINE.uwColor.hasValidContrastRatio(r,i,a,l),E=Math.floor(100*s.contrastRatio)/100;null===r&&(t=window.UW_RULES_ENGINE.incompleteData.get("bgColor")),1===E&&(t=window.UW_RULES_ENGINE.incompleteData.set("bgColor","equalRatio"));var c={fgColor:i?i.toHexString():void 0,bgColor:r?r.toHexString():void 0,contrastRatio:s?E:void 0,fontSize:"".concat((72*a/96).toFixed(1),"pt (").concat(a,"px)"),fontWeight:l?"bold":"normal",missingData:t,expectedContrastRatio:s.expectedContrastRatio+":1"};return[s.isValid,c]},window.UW_RULES_ENGINE.getTargetElementsForRule=function(e,t){var n=[];if(t){var r=window.UW_RULES_ENGINE.getElementByXPath(t);if(!r)return{status:window.UW_RULES_ENGINE.STATUS.RULE_NO_ELEMENT_BY_XPATH,elements:[]};n.push(r)}else if(n=Array.from(document.querySelectorAll(e)),!n.length)return{status:window.UW_RULES_ENGINE.STATUS.RULE_NOT_APPLICABLE,elements:[]};return{elements:n}},window.UW_RULES_ENGINE.CORE._1_1_1={getImagesWithoutAltAttribute:function(e){var t=window.UW_RULES_ENGINE.getTargetElementsForRule("img",e);return t.status?t:{issues:t.elements.filter(function(e){return!e.hasAttribute("alt")}).map(function(e){return[window.UW_RULES_ENGINE.createIssueReport(e)]}),targets:t.elements.length,coveredByAIWidget:!0}},getImagesWithEmptyAltValue:function(e){var t=window.UW_RULES_ENGINE.getTargetElementsForRule("img",e);return t.status?t:{issues:t.elements.filter(function(e){var t=window.UW_RULES_ENGINE.uwDom.isHiddenForAssistiveTechnologies(e),n=!1;try{n=0===e.width||0===e.height}catch(e){}return!(!e.hasAttribute("alt")||e.getAttribute("alt").trim()||n||t)}).map(function(e){return[window.UW_RULES_ENGINE.createIssueReport(e)]}),targets:t.elements.length,coveredByAIWidget:!0}},getImagesWithTheSameAltAndTitle:function(e){var t=window.UW_RULES_ENGINE.getTargetElementsForRule("img",e);return t.status?t:{issues:t.elements.filter(function(e){return!!e.alt&&!!e.title&&e.alt.toLowerCase()!==e.title.toLowerCase()}).map(function(e){return[window.UW_RULES_ENGINE.createIssueReport(e)]}),targets:t.elements.length}},getImagesWithTheSameAltForDifferentSrc:function(e){var t,n,r=window.UW_RULES_ENGINE.getTargetElementsForRule("img",e);if(r.status)return r;var i=[],o=[],a=r.elements.filter(function(e){return!!(e.alt&&e.alt.trim()&&e.src&&e.src.trim())}).map(function(e,t){return{idx:t,alt:e.alt.trim().toLowerCase().replace(/(\s+)/gi," "),src:e.src.trim().split("?")[0].toLowerCase(),element:e}});try{for(var u=__values(a),l=u.next();!l.done;l=u.next()){var s=l.value;!function(e){var t=[];if(o.includes(e.alt))return"continue";o.push(e.alt);var n=a.filter(function(t){return t.alt===e.alt&&t.idx!==e.idx}),r=!1;n.forEach(function(n){n.src!==e.src&&(r||(r=!0,t.push(e.element)),t.push(n.element))}),t.length&&i.push(t.map(function(t){return window.UW_RULES_ENGINE.createIssueReport(t,null,{includeOnePixel:!0,groupTitle:e.alt,groupUnique:e.alt})}))}(s)}}catch(e){t={error:e}}finally{try{l&&!l.done&&(n=u.return)&&n.call(u)}finally{if(t)throw t.error}}return{issues:i,targets:a.length}},getImagesWithoutTooLongAlt:function(e,t){var n=window.UW_RULES_ENGINE.getTargetElementsForRule("img",t);return n.status?n:{issues:n.elements.filter(function(t){return!!t.alt&&t.alt.length>e}).map(function(e){return[window.UW_RULES_ENGINE.createIssueReport(e)]}),targets:n.elements.length}},getAreaWithoutAlt:function(e){var t=window.UW_RULES_ENGINE.getTargetElementsForRule("area",e);if(t.status)return t;var n=t.elements.filter(function(e){return!e.alt||!e.alt.trim()}),r=[];return n.forEach(function(e){var t=e.parentElement,n=t?t.name:null;if(n){var i=document.querySelector('[usemap="#'+n+'"]');i&&r.push([window.UW_RULES_ENGINE.createIssueReport(e,i)])}}),{issues:r,targets:t.elements.length}},getImageButtonsWithoutAlt:function(e){var t=window.UW_RULES_ENGINE.getTargetElementsForRule('input[type="image"]',e);return t.status?t:{issues:t.elements.filter(function(e){return!e.alt||!e.alt.trim()}).map(function(e){return[window.UW_RULES_ENGINE.createIssueReport(e)]}),targets:t.elements.length}},getAllImagesWithSuspiciousAlt:function(e){var t=window.UW_RULES_ENGINE.getTargetElementsForRule("img",e);return t.status?t:{issues:t.elements.filter(function(e){var t=e.alt&&e.alt.toLowerCase().trim(),n=e.src;return!(!!n&&window.UW_RULES_ENGINE.EXCLUDED_IFRAMES_SRC_REGEXP.test(n))&&(t&&(t.startsWith("graphic of")||t.startsWith("bullet")||t.startsWith("image of"))||t.endsWith("image")||t.endsWith("graphic")||t.endsWith("icon")||"photo"===t||"photograph"===t||"drawing"===t||"painting"===t||"artwork"===t||"logo"===t||"bullet"===t||"button"===t||"arrow"===t||"more"===t||"spacer"===t||"blank"===t||"chart"===t||"table"===t||"diagram"===t||"graph"===t||"*"===t||t.endsWith(".gif")||t.endsWith(".jpg")||t.endsWith(".jpeg")||t.endsWith(".png")||t.endsWith(".svg"))}).map(function(e){return[window.UW_RULES_ENGINE.createIssueReport(e)]}),targets:t.elements.length}},getAppletsWithoutAlt:function(e){var t=window.UW_RULES_ENGINE.getTargetElementsForRule("applet",e);return t.status?t:{issues:t.elements.filter(function(e){return!e.alt||!e.alt.trim()}).map(function(e){return[window.UW_RULES_ENGINE.createIssueReport(e)]}),targets:t.elements.length}},isNumberEmbedAndNoEmberTheSame:function(){var e=window.UW_RULES_ENGINE.getTargetElementsForRule("embed"),t=window.UW_RULES_ENGINE.getTargetElementsForRule("noembed");return e.status&&t.status?e:{verdict:e.elements.length===t.elements.length?window.UW_RULES_ENGINE.STATUS.RULE_CHECK_RESPONSE_TRUE:window.UW_RULES_ENGINE.STATUS.RULE_CHECK_RESPONSE_FALSE,targets:1}},getAllFocusableInsidePresentation:function(){function e(e){if(e.hasAttribute("tabindex")){var t=parseInt(e.getAttribute("tabindex"));return!isNaN(t)&&t>=0}return window.UW_RULES_ENGINE.FOCUSABLE_ELEMENTS.includes(e.nodeName)}var t=window.UW_RULES_ENGINE.getTargetElementsForRule('*[aria-hidden="true"]');return t.status?t:{issues:t.elements.filter(function(t){var n,r,i=t.querySelectorAll("*"),o=!1;try{for(var a=__values(i),u=a.next();!u.done;u=a.next()){if(e(u.value)){o=!0;break}}}catch(e){n={error:e}}finally{try{u&&!u.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}return o}).map(function(e){return[window.UW_RULES_ENGINE.createIssueReport(e)]}),targets:t.elements.length,coveredByAIWidget:!0}}},window.UW_RULES_ENGINE.CORE._1_3_1={getTablesWithSameSummaryAndCaption:function(e){var t=window.UW_RULES_ENGINE.getTargetElementsForRule("table",e);return t.status?t:{issues:t.elements.filter(function(e){var t=e.summary&&e.summary.toLowerCase().trim(),n=e.querySelector("caption"),r=n?n.textContent&&n.textContent.toLowerCase():null;return t&&r&&t===r}).map(function(e){return[window.UW_RULES_ENGINE.createIssueReport(e)]}),targets:t.elements.length}},getTablesWithEmptyHeader:function(e){var t=window.UW_RULES_ENGINE.getTargetElementsForRule("table",e);if(t.status)return t;var n=[];return t.elements.forEach(function(e){var t=[];e.querySelectorAll("th").forEach(function(e){window.UW_RULES_ENGINE.uwDom.getLinkAccessibleName(e)||t.push(e)}),t.length&&n.push(t.map(function(t){return window.UW_RULES_ENGINE.createIssueReport(t,null,{includeOnePixel:!0,groupUnique:window.UW_RULES_ENGINE.getPathToElement(e)})}))}),{issues:n,targets:t.elements.length}},getFieldsetWithoutLegend:function(e){var t=window.UW_RULES_ENGINE.getTargetElementsForRule("fieldset",e);return t.status?t:{issues:t.elements.filter(function(e){var t=e.firstElementChild;return t&&"LEGEND"!==t.nodeName}).map(function(e){return[window.UW_RULES_ENGINE.createIssueReport(e)]}),targets:t.elements.length}},getEmptyLists:function(e){var t=window.UW_RULES_ENGINE.getTargetElementsForRule("ol, ul, dl",e);return t.status?t:{issues:t.elements.filter(function(e){var t="DL"===e.nodeName?"dt":"li";return!e.querySelectorAll(t).length}).map(function(e){return[window.UW_RULES_ENGINE.createIssueReport(e)]}),targets:t.elements.length}},getListItemsWithoutWrapper:function(e){var t=window.UW_RULES_ENGINE.getTargetElementsForRule("dt, li",e);return t.status?t:{issues:t.elements.filter(function(e){for(var t=e.nodeName,n=e.parentElement;"LI"===t&&"OL"!==n.nodeName&&"UL"!==n.nodeName||"DT"===t&&"DL"!==n.nodeName;){if("BODY"===n.nodeName)return!0;n=n.parentElement}return!1}).map(function(e){return[window.UW_RULES_ENGINE.createIssueReport(e)]}),targets:t.elements.length}},getInvalidAriaReferencingElements:function(e){var t=window.UW_RULES_ENGINE.getTargetElementsForRule("*[aria-labelledby], *[aria-describedby]",e);return t.status?t:{issues:t.elements.filter(function(e){for(var t=e.getAttribute("aria-labelledby"),n=e.getAttribute("aria-describedby"),r=t?t.split(" "):[],i=n?n.split(" "):[],o=r.concat(i),a=0;a-1||t.indexOf("maximum-scale=1")>-1?window.UW_RULES_ENGINE.STATUS.RULE_CHECK_RESPONSE_FALSE:window.UW_RULES_ENGINE.STATUS.RULE_CHECK_RESPONSE_TRUE,targets:1}}},window.UW_RULES_ENGINE.CORE._2_1_1={getAllCustomFocusableElements:function(e){var t=window.UW_RULES_ENGINE.getTargetElementsForRule('*[role="link"], *[role="button"], *[role="checkbox"], *[onclick]',e);return t.status?t:{issues:t.elements.filter(function(e){var t=e.getAttribute("tabindex");return!window.UW_RULES_ENGINE.FOCUSABLE_ELEMENTS.includes(e.tagName)&&!t}).map(function(e){return[window.UW_RULES_ENGINE.createIssueReport(e)]}),targets:t.elements.length}},getAllButtonsWithDescendantTabindex:function(e){var t=window.UW_RULES_ENGINE.getTargetElementsForRule('button, *[role="button"]',e);if(t.status)return t;var n=[];return t.elements.forEach(function(e){e.querySelectorAll("*[tabindex]").forEach(function(e){n.push([window.UW_RULES_ENGINE.createIssueReport(e)])})}),{issues:n,targets:t.elements.length}},getAllButtonsInsideButtons:function(){var e=window.UW_RULES_ENGINE.getTargetElementsForRule('button button, *[role="button"] button, button *[role="button"], *[role="button"] *[role="button"]');return e.status?e:{issues:e.elements.map(function(e){return[window.UW_RULES_ENGINE.createIssueReport(e)]}),targets:e.elements.length}},getAllLinksInsideLinks:function(){var e=window.UW_RULES_ENGINE.getTargetElementsForRule('a a, *[role="link"] a, a *[role="link"], *[role="link"] *[role="link"]');return e.status?e:{issues:e.elements.map(function(e){return[window.UW_RULES_ENGINE.createIssueReport(e)]}),targets:e.elements.length}},getAllButtonsInsideLinksAndLinksInsideButtons:function(){var e=window.UW_RULES_ENGINE.getTargetElementsForRule('a button, a *[role="button"], *[role="link"] button, *[role="link"] *[role="button"], button a, button *[role="link"], *[role="button"] a, *[role="button"] *[role="link"]');return e.status?e:{issues:e.elements.map(function(e){return[window.UW_RULES_ENGINE.createIssueReport(e)]}),targets:e.elements.length}}},window.UW_RULES_ENGINE.CORE._2_2_1={getTimeAdjustable:function(e){var t=window.UW_RULES_ENGINE.getTargetElementsForRule("meta",e);return t.status?t:{issues:t.elements.filter(function(e){var t=e.getAttribute("http-equiv"),n=e.getAttribute("content");return t&&"refresh"===t.toLowerCase()&&n}).map(function(e){return[window.UW_RULES_ENGINE.createIssueReport(e)]}),targets:t.elements.length}}},window.UW_RULES_ENGINE.CORE._2_2_2={getMarquee:function(e){var t=window.UW_RULES_ENGINE.getTargetElementsForRule("marquee",e);return t.status?t:{issues:t.elements.map(function(e){return[window.UW_RULES_ENGINE.createIssueReport(e)]}),targets:t.elements.length}},getAutoPlayVideos:function(){var e=document.querySelectorAll("iframe"),t=Array.from(e).filter(function(e){var t=e.getAttribute("src");return!!t&&(t.toLowerCase().indexOf("youtube.com")||t.toLowerCase().indexOf("vimeo.com"))}),n=document.querySelectorAll("video"),r=t.filter(function(e){var t=e.getAttribute("src").toLowerCase();return(t.indexOf("autoplay=1")>-1||t.indexOf("autoplay=true"))&&(t.indexOf("mute=1")>-1||t.indexOf("mute=true")>-1)}),i=Array.from(n).filter(function(e){return e.hasAttribute("autoplay")&&e.hasAttribute("muted")});return{issues:r.concat(i).map(function(e){return[window.UW_RULES_ENGINE.createIssueReport(e)]}),targets:t.length+n.length,coveredByFreeWidget:!0}},getBlinkElements:function(){var e=window.UW_RULES_ENGINE.getTargetElementsForRule("blink");return e.status?e:{issues:e.elements.map(function(e){return[window.UW_RULES_ENGINE.createIssueReport(e)]}),targets:e.elements.length,coveredByFreeWidget:!0}}},window.UW_RULES_ENGINE.CORE._2_4_1={getFramesWithoutTitle:function(e){var t=window.UW_RULES_ENGINE.getTargetElementsForRule("frame, iframe",e);return t.status?t:{issues:t.elements.filter(function(e){var t=e.src;return(!t||!window.UW_RULES_ENGINE.EXCLUDED_IFRAMES_SRC_REGEXP.test(t))&&(!e.title||!e.title.trim())}).map(function(e){return[window.UW_RULES_ENGINE.createIssueReport(e)]}),targets:t.elements.length}},getFrameWithNoUniqueTitle:function(e){var t,n,r=window.UW_RULES_ENGINE.getTargetElementsForRule("iframe, frame",e);if(r.status)return r;var i=[],o=[],a=r.elements.filter(function(e){return!!(e.title&&e.title.trim()&&e.src&&e.src.trim())}).map(function(e,t){return{idx:t,title:e.title.trim().toLowerCase().replace(/(\s+)/gi," "),src:e.src.trim().toLowerCase(),element:e}});try{for(var u=__values(a),l=u.next();!l.done;l=u.next()){var s=l.value;!function(e){var t=[];if(o.includes(e.title))return"continue";o.push(e.title);var n=a.filter(function(t){return t.title===e.title&&t.idx!==e.idx}),r=!1;n.forEach(function(n){n.src!==e.src&&(r||(r=!0,t.push(e.element)),t.push(n.element))}),t.length&&i.push(t.map(function(t){return window.UW_RULES_ENGINE.createIssueReport(t,null,{includeOnePixel:!0,groupTitle:e.title,groupUnique:e.title})}))}(s)}}catch(e){t={error:e}}finally{try{l&&!l.done&&(n=u.return)&&n.call(u)}finally{if(t)throw t.error}}return{issues:i,targets:r.elements.length}},skipNavigationLinkPresents:function(){var e,t,n=!1;if(document.querySelectorAll("script").forEach(function(e){var t=e.src;t&&t.indexOf("widget.js")>-1&&(t.indexOf("userway")>-1||t.indexOf("accessibilityserver")>-1||t.indexOf("usrwy")>-1)&&(n=!0)}),n)return{verdict:window.UW_RULES_ENGINE.STATUS.RULE_CHECK_RESPONSE_TRUE};var r=document.querySelector("main"),i=document.querySelector('[role="main"]'),o=document.querySelector("h1"),a=document.querySelectorAll("h2, h3, h4, h5, h6"),u=a.length?a[0]:null,l=r||i||o||u;if(!l)return{verdict:window.UW_RULES_ENGINE.STATUS.RULE_CHECK_RESPONSE_TRUE};var s=document.querySelectorAll("body *"),E=0;try{for(var c=__values(s),d=c.next();!d.done;d=c.next()){var g=d.value;if(g===l)break;if(function(e){return!!window.UW_RULES_ENGINE.FOCUSABLE_ELEMENTS.includes(e.tagName)||!!e.hasAttribute("tabindex")}(g)&&++E<3){var m=window.UW_RULES_ENGINE.uwDom.getLinkAccessibleName(g);if(m&&(m.toLowerCase().indexOf("skip")>-1||m.toLowerCase().indexOf("pass")>-1||m.toLowerCase().indexOf("jump")>-1))return{verdict:window.UW_RULES_ENGINE.STATUS.RULE_CHECK_RESPONSE_TRUE}}if(E>20)break}}catch(t){e={error:t}}finally{try{ d&&!d.done&&(t=c.return)&&t.call(c)}finally{if(e)throw e.error}}return{verdict:E>10?window.UW_RULES_ENGINE.STATUS.RULE_CHECK_RESPONSE_FALSE:window.UW_RULES_ENGINE.STATUS.RULE_CHECK_RESPONSE_TRUE,targets:1}}},window.UW_RULES_ENGINE.CORE._2_4_2={checkPageTitleNotEmpty:function(e){var t=window.UW_RULES_ENGINE.getTargetElementsForRule("head title",e);if(t.status)return t;var n=t.elements[0],r=n?n.textContent:null;return{verdict:r&&r.trim()?window.UW_RULES_ENGINE.STATUS.RULE_CHECK_RESPONSE_TRUE:window.UW_RULES_ENGINE.STATUS.RULE_CHECK_RESPONSE_FALSE,targets:1}}},window.UW_RULES_ENGINE.CORE._2_4_3={getElementsWithTabindexGTZero:function(e){var t=window.UW_RULES_ENGINE.getTargetElementsForRule("*[tabindex]",e);return t.status?t:{issues:t.elements.filter(function(e){var t=e.getAttribute("tabindex");return!isNaN(t)&&parseInt(t)>0}).map(function(e){return[window.UW_RULES_ENGINE.createIssueReport(e)]}),targets:t.elements.length}}},window.UW_RULES_ENGINE.CORE._2_4_4={getLinksWithEmptyBody:function(e){var t=window.UW_RULES_ENGINE.getTargetElementsForRule('a, *[role="link"]',e);return t.status?t:{issues:t.elements.filter(function(e){var t=window.UW_RULES_ENGINE.uwDom.isHiddenForAssistiveTechnologies(e),n=!!window.UW_RULES_ENGINE.uwDom.getLinkAccessibleName(e);return!t&&!n}).map(function(e){return[window.UW_RULES_ENGINE.createIssueReport(e)]}),targets:t.elements.length}},getLinksReferToImageFile:function(e){var t=window.UW_RULES_ENGINE.getTargetElementsForRule('a:not([tabindex="-1"]), *[role="link"]:not([tabindex="-1"])',e);return t.status?t:{issues:t.elements.filter(function(e){var t=e.href||e.getAttribute("href");return!(!t||"string"!=typeof t)&&(t.endsWith(".jpeg")||t.endsWith(".jpg")||t.endsWith(".png")||t.endsWith(".svg")||t.endsWith(".gif"))}).map(function(e){return[window.UW_RULES_ENGINE.createIssueReport(e)]}),targets:t.elements.length}},getImageLinkWithoutDescription:function(e){var t=window.UW_RULES_ENGINE.getTargetElementsForRule('a > img, a > *[role="img"], *[role="link"] > img, *[role="link"] > *[role="img"]',e);if(t.status)return t;var n=t.elements.map(function(e){for(var t=e;t.tagName&&"BODY"!==t.tagName&&"A"!==t.tagName&&"link"!==t.getAttribute("role");)t=t.parentElement;return t}),r=[];return n.forEach(function(e){window.UW_RULES_ENGINE.uwDom.isHiddenForAssistiveTechnologies(e)||(window.UW_RULES_ENGINE.uwDom.getLinkAccessibleName(e)||r.push(e))}),{issues:r.map(function(e){return[window.UW_RULES_ENGINE.createIssueReport(e)]}),targets:t.elements.length}},getLinksWithDifferentTextForTheSameHref:function(e){var t,n,r=window.UW_RULES_ENGINE.getTargetElementsForRule('a, *[role="link"]',e);if(r.status)return r;var i=[],o=[],a=r.elements.filter(function(e){var t=e.href,n=e.hasAttribute("href")?e.getAttribute("href").trim():"",r=!(!t||"string"!=typeof t||t.trim().startsWith("about:blank")||t.trim().startsWith("java")||n.startsWith("#")||"/"===n||n.startsWith(";"));if(!r)return!1;var i=r?window.UW_RULES_ENGINE.uwDom.getLinkAccessibleName(e):null;return!window.UW_RULES_ENGINE.uwDom.isHiddenForAssistiveTechnologies(e)&&!!i}).map(function(e,t){var n=window.UW_RULES_ENGINE.uwDom.getLinkAccessibleName(e);return n=n.split(/([-(])/)[0].trim(),{idx:t,href:e.href.split(";")[0].trim().toLowerCase(),text:n,element:e}});try{for(var u=__values(a),l=u.next();!l.done;l=u.next()){var s=l.value;!function(e){var t=[];if(o.includes(e.href))return"continue";o.push(e.href);var n=a.filter(function(t){return t.href===e.href&&t.idx!==e.idx}),r=!1;n.forEach(function(n){n.text!==e.text&&(r||(r=!0,t.push(e.element)),t.push(n.element))}),t.length&&i.push(t.map(function(t){return window.UW_RULES_ENGINE.createIssueReport(t,null,{includeOnePixel:!0,groupTitle:e.href,groupUnique:e.href})}))}(s)}}catch(e){t={error:e}}finally{try{l&&!l.done&&(n=u.return)&&n.call(u)}finally{if(t)throw t.error}}return{issues:i,targets:r.elements.length}},getLinksWithAmbiguousText:function(e){var t=window.UW_RULES_ENGINE.getTargetElementsForRule('a, *[role="link"]',e);return t.status?t:{issues:t.elements.filter(function(e){var t=window.UW_RULES_ENGINE.uwDom.isHiddenForAssistiveTechnologies(e),n=window.UW_RULES_ENGINE.uwDom.getLinkAccessibleName(e);return n&&n.trim()&&(n=n.trim().replace(/[^A-Za-z0-9\s]/g,"").replace(/\s{2,}/g," ")),!t&&!!n&&window.UW_RULES_ENGINE.LINKS_AMBIGUOUS_TXT.includes(n)}).map(function(e){return[window.UW_RULES_ENGINE.createIssueReport(e)]}),targets:t.elements.length}}},window.UW_RULES_ENGINE.CORE._2_4_6={getExtraHeadersLevelOne:function(e){var t=window.UW_RULES_ENGINE.getTargetElementsForRule("h1",e);if(t.status)return t;var n=t.elements.filter(function(e){return!window.UW_RULES_ENGINE.uwDom.isHiddenInDom(e)}).map(function(e){return window.UW_RULES_ENGINE.createIssueReport(e,null,{groupUnique:"31"})}).filter(function(e){return!!Object.keys(e).length});return n.length<=1&&(n=[]),{issues:[n],targets:t.elements.length}},getEmptyHeaders:function(e){var t=window.UW_RULES_ENGINE.getTargetElementsForRule("h1",e);if(t.status)return t;var n={H1:[]};return t.elements.forEach(function(e){var t=window.UW_RULES_ENGINE.uwDom.getLinkAccessibleName(e);if(t||e.querySelectorAll('a:not([tabindex="-1"]), *[role="link"]:not([tabindex="-1"])').forEach(function(e){t=window.UW_RULES_ENGINE.uwDom.getLinkAccessibleName(e)}),!t){var r=window.UW_RULES_ENGINE.createIssueReport(e,null,{groupUnique:e.tagName,includeOnePixel:!0});r&&n[e.tagName].push(r)}}),{issues:Object.values(n),targets:t.elements.length}},getHeadersSkippedLevel:function(e){var t=window.UW_RULES_ENGINE.getTargetElementsForRule('h1, h2, h3, h4, h5, h6, [role="heading"]',e);if(t.status)return t;var n=[],r=null,i=0;return t.elements.forEach(function(e){var t=null;if(e.hasAttribute("role")&&"heading"===e.getAttribute("role")&&e.hasAttribute("aria-level"))try{t=parseInt(e.getAttribute("aria-level")),(t<1||t>6)&&(t=null)}catch(e){}if(!t&&["h1","h2","h3","h4","h5","h6"].includes(e.tagName.toLowerCase())&&(t=parseInt(e.tagName[1])),t){if(t>i&&t-1!==i){var o=void 0,a=void 0,u=void 0,l=void 0,s=[];a=window.UW_RULES_ENGINE.getPathToElement(e),r&&(o=window.UW_RULES_ENGINE.getPathToElement(r),u=window.UW_RULES_ENGINE.createIssueReport(r,null,{groupUnique:o+a,includeOnePixel:!0}),s.push(u)),l=window.UW_RULES_ENGINE.createIssueReport(e,null,{groupUnique:o+a,includeOnePixel:!0}),s.push(l),n.push(s)}r=e,i=t}}),{issues:n,targets:t.elements.length}},getFormControlWithoutLabel:function(e){var t=window.UW_RULES_ENGINE.getTargetElementsForRule("input, textarea, select",e);return t.status?t:{issues:t.elements.filter(function(e){if(!window.UW_RULES_ENGINE.uwDom.isVisible(e,!1))return!1;if("INPUT"===e.tagName){var t=e.getAttribute("type");if("submit"===t||"image"===t||"reset"===t||"hidden"===t||"button"===t)return!1}for(var n=!1,r=e.parentElement;r&&"BODY"!==r.tagName;){if("LABEL"===r.tagName){n=!0;break}r=r.parentElement}if(n)return!1;var i=e.id;if(i&&document.querySelector('label[for="'+i+'"]'))return!1;var o=e.getAttribute("aria-label");if(o&&o.trim())return!1;var a=e.getAttribute("aria-labelledby");return!a||!a.trim()}).map(function(e){return[window.UW_RULES_ENGINE.createIssueReport(e)]}),targets:t.elements.length}},getEmptyInputButtons:function(e){var t=window.UW_RULES_ENGINE.getTargetElementsForRule('input[type="submit"], input[type="reset"], input[type="button"]',e);return t.status?t:{issues:t.elements.filter(function(e){var t,n,r=e.getAttribute("value");if(r&&r.trim())return!1;var i=e.querySelectorAll('img, [role="img"]'),o=!1;try{for(var a=__values(i),u=a.next();!u.done;u=a.next()){var l=u.value;if(window.UW_RULES_ENGINE.uwDom.getImageAccessibleName(l)){o=!0;break}}}catch(e){t={error:e}}finally{try{u&&!u.done&&(n=a.return)&&n.call(a)}finally{if(t)throw t.error}}return!o}).map(function(e){return[window.UW_RULES_ENGINE.createIssueReport(e)]}),targets:t.elements.length}},getEmptyButtons:function(e){var t=window.UW_RULES_ENGINE.getTargetElementsForRule('button, [role="button"]',e);return t.status?t:{issues:t.elements.filter(function(e){var t,n,r=e.textContent;if(r&&r.trim())return!1;var i=e.getAttribute("aria-label");if(i&&i.trim())return!1;var o=e.getAttribute("aria-labelledby");if(r=o?window.UW_RULES_ENGINE.uwDom.getContentOfAriaReferences(o):null)return!1;var a=e.getAttribute("aria-describedby");if(r=a?window.UW_RULES_ENGINE.uwDom.getContentOfAriaReferences(a):null)return!1;var u=e.querySelectorAll('img, [role="img"]'),l=!1;try{for(var s=__values(u),E=s.next();!E.done;E=s.next()){var c=E.value;if(window.UW_RULES_ENGINE.uwDom.getImageAccessibleName(c)){l=!0;break}}}catch(e){t={error:e}}finally{try{E&&!E.done&&(n=s.return)&&n.call(s)}finally{if(t)throw t.error}}return!l}).map(function(e){return[window.UW_RULES_ENGINE.createIssueReport(e)]}),targets:t.elements.length}}},window.UW_RULES_ENGINE.CORE._2_4_7={getFocusableWithNoOutline:function(){var e=window.UW_RULES_ENGINE.FOCUSABLE_ELEMENTS;e=e.map(function(e){return e.toLowerCase()}).join();var t=window.UW_RULES_ENGINE.getTargetElementsForRule(e);return t.status?t:{issues:t.elements.filter(function(e){try{if(e.id&&"userwayAccessibilityIcon"===e.id)return!1;if(e.hasAttribute("disabled")&&"false"!==e.getAttribute("disabled"))return!1;window.focus(),e.focus({preventScroll:!0});var t=window.getComputedStyle(e),n=t.getPropertyValue("outline-style"),r=t.getPropertyValue("outline-width"),i=t.getPropertyValue("visibility"),o=t.getPropertyValue("display"),a=e.offsetWidth||e.offsetHeight||e.getClientRects().length;return!("hidden"===i||"none"===o||!a)&&("none"===n||"0"===r)}catch(e){return!1}}).map(function(e){return[window.UW_RULES_ENGINE.createIssueReport(e)]}),targets:t.elements.length}}},window.UW_RULES_ENGINE.CORE._3_1_1={getHtmlWithEmptyLang:function(e){var t=window.UW_RULES_ENGINE.getTargetElementsForRule("html",e);if(t.status)return t;var n=[],r=t.elements[0].getAttribute("lang");if(!r||!r.trim()){var i=[window.UW_RULES_ENGINE.createIssueReport(t.elements[0])];i[0].clipBoxes.element.width=0,i[0].clipBoxes.element.height=0,i[0].clipBoxes.elementVisible=!1,n.push(i)}return{issues:n,targets:1}},getHtmlWithInvalidLangValue:function(e){var t=window.UW_RULES_ENGINE.getTargetElementsForRule("html",e);if(t.status)return t;var n=[],r=t.elements[0],i=r&&r.getAttribute("lang");if(i){i=i.trim().toLowerCase();var o=window.UW_RULES_ENGINE.VALID_LANG_VALUES;if(-1===o.indexOf(i)&&-1===o.indexOf(i.split("-")[0])){var a=[window.UW_RULES_ENGINE.createIssueReport(t.elements[0])];a[0].clipBoxes.element.width=0,a[0].clipBoxes.element.height=0,a[0].clipBoxes.elementVisible=!1,n.push(a)}}return{issues:n,targets:1}},getHtmlWithLangXmlLangInconsistency:function(e){var t=window.UW_RULES_ENGINE.getTargetElementsForRule("html",e);if(t.status)return t;var n=[],r=t.elements[0],i=r.getAttribute("xml:lang");if(i){var o=r.getAttribute("lang");if(!o||!o.trim()||i.toLowerCase()!==o.toLowerCase()){var a=[window.UW_RULES_ENGINE.createIssueReport(t.elements[0])];a[0].clipBoxes.element.width=0,a[0].clipBoxes.element.height=0,a[0].clipBoxes.elementVisible=!1,n.push(a)}}return{issues:n,targets:1}},getElementWithInvalidLangName:function(e){var t=window.UW_RULES_ENGINE.getTargetElementsForRule("body *[lang]",e);return t.status?t:{issues:t.elements.filter(function(e){var t=e.getAttribute("lang"),n=window.UW_RULES_ENGINE.VALID_LANG_VALUES;return!(!t||(t=t.trim().toLowerCase(),-1!==n.indexOf(t)||-1!==n.indexOf(t.split("-")[0])))}).map(function(e){return[window.UW_RULES_ENGINE.createIssueReport(e)]}),targets:t.elements.length}}},window.UW_RULES_ENGINE.CORE._3_2_5={getTargetBlankLinksWithoutMentioningThisInText:function(e){var t=window.UW_RULES_ENGINE.getTargetElementsForRule('a[target="_blank"]',e);return t.status?t:{issues:t.elements.filter(function(e){var t,n,r,i,o="";o=window.UW_RULES_ENGINE.uwDom.customTrim(e.innerText);var a=e.getAttribute("aria-label");a&&(o+=a);var u=e.querySelectorAll('img, [role="img"]');try{for(var l=__values(u),s=l.next();!s.done;s=l.next()){var E=s.value,c=window.UW_RULES_ENGINE.uwDom.getImageAccessibleName(E);c&&(o+=c)}}catch(e){t={error:e}}finally{try{s&&!s.done&&(n=l.return)&&n.call(l)}finally{if(t)throw t.error}}o=o.toLowerCase();var d=!1;try{for(var g=__values(window.UW_RULES_ENGINE.NEW_TAB_INDICATION),m=g.next();!m.done;m=g.next()){var f=m.value;if(-1!==o.indexOf(f)){d=!0;break}}}catch(e){r={error:e}}finally{try{m&&!m.done&&(i=g.return)&&i.call(g)}finally{if(r)throw r.error}}return!d}).map(function(e){return[window.UW_RULES_ENGINE.createIssueReport(e)]}),targets:t.elements.length}}},window.UW_RULES_ENGINE.CORE._4_1_1={getElementWithNoUniqueId:function(e){var t,n,r=window.UW_RULES_ENGINE.getTargetElementsForRule("body *[id]:not(script):not(style)",e);if(r.status)return r;var i=[],o=[],a=r.elements.filter(function(e){return e.hasAttribute("id")}).map(function(e,t){return{idx:t,id:e.getAttribute("id"),element:e}});try{for(var u=__values(a),l=u.next();!l.done;l=u.next()){var s=l.value;!function(e){var t=[];if(o.includes(e.id))return"continue";o.push(e.id);var n=a.filter(function(t){return t.id===e.id&&t.idx!==e.idx}),r=!1;n.forEach(function(n){r||(r=!0,t.push(e.element)),t.push(n.element)}),t.length&&i.push(t.map(function(t){return window.UW_RULES_ENGINE.createIssueReport(t,null,{includeOnePixel:!0,groupTitle:e.id,groupUnique:e.id})}))}(s)}}catch(e){t={error:e}}finally{try{l&&!l.done&&(n=u.return)&&n.call(u)}finally{if(t)throw t.error}}return{issues:i,targets:r.elements.length}},getElementsWithEmptyId:function(e){var t=window.UW_RULES_ENGINE.getTargetElementsForRule("body *[id]:not(script):not(style)",e);if(t.status)return t;var n=[],r=[];return t.elements.forEach(function(e){e.getAttribute("id")||r.push(window.UW_RULES_ENGINE.createIssueReport(e,null,{groupUnique:"45"}))}),r.length&&n.push(r),{issues:n,targets:t.elements.length}},getElementsWithAccessKeyAttr:function(e){var t=window.UW_RULES_ENGINE.getTargetElementsForRule("[accesskey]",e);return t.status?t:{issues:t.elements.map(function(e){return[window.UW_RULES_ENGINE.createIssueReport(e)]}),targets:t.elements.length}}}; var __read=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var l,i,n=r.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(l=n.next()).done;)s.push(l.value)}catch(e){i={error:e}}finally{try{l&&!l.done&&(r=n.return)&&r.call(n)}finally{if(i)throw i.error}}return s},__spreadArray=this&&this.__spreadArray||function(e,t,r){if(r||2===arguments.length)for(var l,i=0,n=t.length;i10&&d>10&&i>10&&d/c>.08&&(i-=10),i>100&&(i=100),{score:i,failed:v,passed:A}}function i(e){var t=null,r=[];if(e.status&&e.status&&(t=window.UW_RULES_ENGINE.STATUS.RULE_NOT_APPLICABLE),e.verdict)return{count:"RULE_CHECK_RESPONSE_FALSE"===e.verdict?1:0,status:t,failedElements:r};if(e.issues){var l=0;return e.issues.forEach(function(e){Array.isArray(e)?(l+=e.length,r=r.concat(e)):(l+=1,r.push(e))}),{count:l,status:t,failedElements:r}}return{count:0,status:t,failedElements:r}}function n(e,t){var r={accountId:u.account,viewWidth:window.innerWidth,viewHeight:window.innerHeight,clientTz:""+(new Date).getTimezoneOffset(),uwWidget:{uwFreeWidget:"WIDGET_ON",uwAiWidget:t?"WIDGET_ON":"WIDGET_OFF"},rulesStats:e.rulesStats,accScore:e.accScore};u.scanPage?a.request({method:"PUT",url:o+"/a11y-data/v0/page/"+encodeURIComponent(location.href)+"/"+(a.isMobile()?"MOBILE":"DESKTOP")+"/contrib",header:{"Content-Type":"application/json"},body:r}):console.dir(r)}var s=UserWayWidgetApp.addLib("scan_helper"),a=UserWayWidgetApp.getLib("util"),o="https://api.userway.org/api",u=UserWayWidgetApp.ContextHolder.config,v=!!u&&!!u.remediation,A=v?t:r,d={REMEDIATION_IMAGE_MISSING_ALT:"R_1",REMEDIATION_IFRAME_TITLE:"R_23",REMEDIATION_HEADER_TITLE:"R_25",REMEDIATION_EMPTY_CONTROLS:"R_27",REMEDIATION_HEADING:"R_31",REMEDIATION_FORM_LABEL:"R_34",REMEDIATION_SITE_LANGUAGE:"R_37",REMEDIATION_COLOR_CONTRAST:"R_43",REMEDIATION_EXTERNAL_LINK_TARGETS:"R_44",REMEDIATION_BROKEN_LINK:"R_46",REMEDIATION_VAGUE_LINK:"R_47",REMEDIATION_SKIP_NAVIGATION_LINK:"R_50",REMEDIATION_AUTO_PLAY_VIDEO:"R_70"};s.scan=e,s.getAccessibilityScore=l}();