1/**handles:remediation-module**/ 2(()=>{var d,r={95137(e,t,r){let o="update",s="remove";class a{constructor(e,t){this.dom=e,this.data=t}run(){throw new Error(`Action type '${this.data.type}' - not implemented`)}incrementBodyDivIndex(e){var t=/(\/body\[\d+\]\/div\[)(\d+)/;return e.match(t)?e.replace(t,(e,t,r)=>""+t+(parseInt(r,10)+1)):e}getElementByXPath(e){let t=e.replace("svg","*[name()='svg']");return document.getElementById("wpadminbar")&&(t=this.incrementBodyDivIndex(t)),this.dom.evaluate(t,this.dom,null,XPathResult.FIRST_ORDERED_NODE_TYPE,null).singleNodeValue}getElementByXPathFallbackSnippet(t,e=null){var r=e?this.getElementByXPath(e):null,e="string"==typeof t&&""!==t.trim();if(r&&e){let e=t.replace(/\s+/g," ").trim().toLowerCase();if(r.outerHTML.replace(/\s+/g," ").trim().toLowerCase().includes(e))return r}if(!e)return r||null;var a=(new DOMParser).parseFromString(t.trim(),"text/html").body.firstElementChild;if(!a)return r||null;var n=a.tagName.toLowerCase();if(a.id||a.classList.length){let e=[n],t=(a.id&&e.push("#"+a.id),a.classList.length&&e.push("."+Array.from(a.classList).join(".")),e.join(""));return document.querySelector(t)||r||null}return this.findBestMatchingElementByTag(n,t)||r||null}findBestMatchingElementByTag(e,t){var r=t.replace(/\s+/g," ").trim().toLowerCase(),t=document.getElementsByTagName(e);for(let e of t)if(e.outerHTML.replace(/\s+/g," ").trim().toLowerCase().includes(r))return e;return t[0]||null}createElement(e,t=[],r=""){let a=document.createElement(e);return t.forEach(e=>{a.setAttribute(e.name,e.value)}),r&&(a.textContent=r),a}}class n extends a{run(){let{xpath:e,action:t,attribute_name:r,attribute_value:a,find:n}=this.data,i=e.replace("svg","*[name()='svg']"),l=this.getElementByXPathFallbackSnippet(n,i);if(!l)return!1;switch(t){case"add":case o:l.setAttribute(r,a);let e={alt:["role","title"],role:["alt","title"]};e[r]&&e[r].forEach(e=>l.removeAttribute(e));break;case s:l.removeAttribute(r);break;case"clear":l.setAttribute(r,"")}return!0}}class i extends a{run(){var{xpath:e,action:t,content:r,child:a,find:n}=this.data,i=this.getElementByXPathFallbackSnippet(n,e);if(!i)return!1;let l=null;if(a)try{l=this.createElement(a.tag,a.attributes||[],a.content||"")}catch(e){return}switch(t){case o:i.nodeValue=r;break;case s:i.remove();break;case"add_child":l&&i.appendChild(l);break;case"remove_child":l&&i.removeChild(l);break;case"add_before":l&&i.parentNode&&i.parentNode.insertBefore(l,i);break;case"add_after":l&&i.parentNode&&i.parentNode.insertBefore(l,i.nextSibling)}return!0}}class l extends a{replaceIgnoreCase(e,t,r,a,n){var a=a.indexOf(n);return-1===a?e:e.substring(0,a)+r+e.substring(a+t.length)}run(){var{xpath:e,find:t,replace:r}=this.data,e=this.getElementByXPathFallbackSnippet(t,e),a,n,i,t,r,n;return!!e&&(a=e.outerHTML,"string"==typeof t)&&"string"==typeof r&&(n=a.toLowerCase(),i=t.toLowerCase(),!!n.includes(i))&&(t=this.replaceIgnoreCase(a,t,r,n,i))!==a&&((r=document.createElement("div")).innerHTML=t,(n=r.firstElementChild)&&e.parentNode&&e.parentNode.replaceChild(n,e),!0)}}var d=r(76105),u=r.n(d),c=r(37347);let h=e=>{try{return!(!e||"string"!=typeof e||(c.Ay.parse(e),0))}catch(e){return!1}},g=e=>{var e=e.match(/rgba?\((\d+),\s*(\d+),\s*(\d+)(?:,\s*([\d.]+))?\)/i),t,r,a;return e?(t=parseInt(e[1]).toString(16).padStart(2,"0"),r=parseInt(e[2]).toString(16).padStart(2,"0"),a=parseInt(e[3]).toString(16).padStart(2,"0"),(void 0!==e[4]&&parseFloat(e[4])<1?"#"+t+r+a+Math.round(255*parseFloat(e[4])).toString(16).padStart(2,"0"):"#"+t+r+a).toUpperCase()):null};class m extends a{constructor(e,t){super(e,t),this.maybeAddStyleTag()}maybeAddStyleTag(){var e=this.dom.querySelector("style#ea11y-remediation-styles");e||((e=this.dom.createElement("style")).id="ea11y-remediation-styles",this.dom.body.appendChild(e))}getStyleTag(){return this.dom.querySelector("style#ea11y-remediation-styles")}getElementCSSSelector(e){let r=this.getElementByXPath(e);if(!(r&&r instanceof Element))return null;let a=[];for(;r&&r.nodeType===Node.ELEMENT_NODE;){let t=r.tagName.toLowerCase();if(r.id){t+="#"+r.id,a.unshift(t);break}if(r.className&&"body"!==r.tagName.toLowerCase()){let e=r.className.trim().split(/\s+/);e.length&&(t+="."+e.join("."))}var n=r.parentNode;if(n&&("body"!==n.tagName?.toLowerCase()||"div"!==r.tagName?.toLowerCase())){let e=Array.from(n.children).filter(e=>e.tagName===r.tagName);1<e.length&&(t+=`:nth-of-type(${e.indexOf(r)+1})`)}a.unshift(t),r=r.parentElement}return a.join(" > ")}getCssRulesForContrast(e=null,t=null,r=null,a=null){try{var n=e?this.getElementCSSSelector(e):null,i=r?this.getElementCSSSelector(r):null,l=(n&&t?n+` {color: ${t} !important;}`:"")+(i&&a?i+` {background-color: ${a} !important;}`:"");return h(l)?l:""}catch(e){return console.warn("Failed to convert XPath to CSS selector",e),""}}run(){let e=this.getStyleTag();if(!e)return!1;let a=this.data.rule;if("1"===this.data.global){let e=(()=>{let a={color:null,background:null},e=this.data.rule.matchAll(/([^{]+)\s*\{([^}]+)\}/g);for(let[,t,r]of e){let e;try{e=document.querySelector(t.trim())}catch{continue}var n=r.match(/(?<!background-)color\s*:\s*([^;!]+)/i),i=r.match(/background-color\s*:\s*([^;!]+)/i),n=n?n[1].trim():null,i=i?i[1].trim():null;if(n&&!a.color&&(a.color={item:e,value:n}),i&&!a.background&&(a.background={item:e,value:i}),a.color&&a.background)break}let t=a.color?.item||a.background?.item;if(t){let e=window.getComputedStyle(t);a.color||(a.color={item:t,value:g(e.getPropertyValue("color"))}),a.background||(a.background={item:t,value:g(e.getPropertyValue("background-color"))})}return a})(),t=u()(this.getElementByXPathFallbackSnippet(this.data.xpath,this.data.find)),r=u()(this.getElementByXPathFallbackSnippet(this.data.parentXPath,this.data.parentFind));a=this.getCssRulesForContrast(t,e.color.value,r,e.background.value)}return h(this.data.rule)&&(e.innerText+=a),!0}}class p{constructor(e){this.remediations=e,this.classMap={attribute:n,element:i,replace:l,styles:m,global:l},this.checkTimeout=null,this.runAll()}runAll(){this.remediations=this.remediations.filter(e=>!this.runRemediation(e))}runRemediation(e){var t=("1"===e.global?"global":e.type).toLowerCase(),r=this.classMap[t];if(r)try{return new r(document,e).run()}catch(t){window.AllyRemediations?.debug&&window.AllyRemediations.debug&&console.error("Remediation failed",t,e)}return!1}checkRemediations(){this.isComplete()||this.runAll()}isComplete(){return 0===this.remediations.length}}if(window?.AllyRemediations&&Array.isArray(window.AllyRemediations?.remediations)){let a=null,n=null,e=!1;function b(){e?a.runAll():(e=!0,a=new p(window.AllyRemediations.remediations),window.MutationObserver&&0<a.remediations.length&&(n=new MutationObserver(e=>{let t=!1;for(var r of e)if("childList"===r.type&&0<r.addedNodes.length){t=!0;break}t&&(clearTimeout(a.checkTimeout),a.checkTimeout=setTimeout(()=>{a.checkRemediations(),a.isComplete()&&n&&(n.disconnect(),n=null)},100))})).observe(document.body,{childList:!0,subtree:!0}))}window.AllyRemediations.initialize=b,window.addEventListener("DOMContentLoaded",function(){setTimeout(()=>{b()},400)}),"loading"!==document.readyState&&setTimeout(()=>{b()},400)}},76105(e){function s(){return(s=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t],a;for(a in r)!{}.hasOwnProperty.call(r,a)||(e[a]=r[a])}return e}).apply(null,arguments)}var d,e,u,c,h;e.exports=(d={ignoreId:!1},e="undefined"!=typeof Node,u=e?Node.ELEMENT_NODE:1,c=e?Node.TEXT_NODE:3,h=e?Node.DOCUMENT_TYPE_NODE:10,function(e,t){var t=s({},d,t),r=e;if(r&&r.id&&!t.ignoreId)return'//*[@id="'+r.id+'"]';
2for(var a=[];r&&(u===r.nodeType||c===r.nodeType);){for(var n=0,i=!1,l=r.previousSibling;l;)l.nodeType!==h&&l.nodeName===r.nodeName&&n++,l=l.previousSibling;for(l=r.nextSibling;l;){if(l.nodeName===r.nodeName){i=!0;break}l=l.nextSibling}var o=n||i?"["+(n+1)+"]":"";a.push(r.nodeType!=c?(r.prefix?r.prefix+":":"")+r.localName+o:"text()"+(o||"[1]")),r=r.parentNode}return a.length?"/"+a.reverse().join("/"):""})},48633(e){var t=String,r=function(){return{isColorSupported:!1,reset:t,bold:t,dim:t,italic:t,underline:t,inverse:t,hidden:t,strikethrough:t,black:t,red:t,green:t,yellow:t,blue:t,magenta:t,cyan:t,white:t,gray:t,bgBlack:t,bgRed:t,bgGreen:t,bgYellow:t,bgBlue:t,bgMagenta:t,bgCyan:t,bgWhite:t,blackBright:t,redBright:t,greenBright:t,yellowBright:t,blueBright:t,magentaBright:t,cyanBright:t,whiteBright:t,bgBlackBright:t,bgRedBright:t,bgGreenBright:t,bgYellowBright:t,bgBlueBright:t,bgMagentaBright:t,bgCyanBright:t,bgWhiteBright:t}};e.exports=r(),e.exports.createColors=r},49746(){},19977(){},197(){},21866(){},52739(){},95042(e){e.exports={nanoid:(e=21)=>{let t="",r=0|e;for(;r--;)t+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[64*Math.random()|0];return t},customAlphabet:(a,n=21)=>(e=n)=>{let t="",r=0|e;for(;r--;)t+=a[Math.random()*a.length|0];return t}}}},a={},u,e,t;function c(e){var t=a[e],t;return void 0!==t||(t=a[e]={exports:{}},r[e].call(t.exports,t,t.exports,c)),t.exports}c.m=r,d=[],c.O=(e,t,r,a)=>{if(!t){for(var n=1/0,i=0;i<d.length;i++){for(var[t,r,a]=d[i],l=!0,o=0,s;o<t.length;o++)(!1&a||a<=n)&&Object.keys(c.O).every(e=>c.O[e](t[o]))?t.splice(o--,1):(l=!1,a<n&&(n=a));l&&(d.splice(i--,1),void 0!==(s=r()))&&(e=s)}return e}a=a||0;for(var i=d.length;0<i&&d[i-1][2]>a;i--)d[i]=d[i-1];d[i]=[t,r,a]},c.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return c.d(t,{a:t}),t},c.d=(e,t)=>{for(var r in t)c.o(t,r)&&!c.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},c.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),u={1275:0},c.O.j=e=>0===u[e],e=(e,t)=>{var r,a,[n,i,l]=t,o=0,s;if(n.some(e=>0!==u[e])){for(r in i)c.o(i,r)&&(c.m[r]=i[r]);l&&(s=l(c))}for(e&&e(t);o<n.length;o++)a=n[o],c.o(u,a)&&u[a]&&u[a][0](),u[a]=0;return c.O(s)},(t=globalThis.webpackChunkpojo_accessibility=globalThis.webpackChunkpojo_accessibility||[]).forEach(e.bind(null,0)),t.push=e.bind(null,t.push.bind(t));var e=c.O(void 0,[5168],()=>c(95137));c.O(e)})();
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.