(()=>{var e,t={95137(e,t,r){"use strict";const n="update",a="remove";class o{constructor(e,t){this.dom=e,this.data=t}run(){throw new Error(`Action type '${this.data.type}' - not implemented`)}incrementBodyDivIndex(e){const 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(e,t=null){const r=t?this.getElementByXPath(t):null,n="string"==typeof e&&""!==e.trim();if(r&&n){const t=e.replace(/\s+/g," ").trim().toLowerCase();if(r.outerHTML.replace(/\s+/g," ").trim().toLowerCase().includes(t))return r}if(!n)return r||null;const a=(new DOMParser).parseFromString(e.trim(),"text/html").body.firstElementChild;if(!a)return r||null;const o=a.tagName.toLowerCase();if(a.id||a.classList.length){const e=[o];a.id&&e.push(`#${a.id}`),a.classList.length&&e.push(`.${Array.from(a.classList).join(".")}`);const t=e.join("");return document.querySelector(t)||r||null}return this.findBestMatchingElementByTag(o,e)||r||null}findBestMatchingElementByTag(e,t){const r=t.replace(/\s+/g," ").trim().toLowerCase(),n=document.getElementsByTagName(e);for(const e of n)if(e.outerHTML.replace(/\s+/g," ").trim().toLowerCase().includes(r))return e;return n[0]||null}createElement(e,t=[],r=""){const n=document.createElement(e);return t.forEach(e=>{n.setAttribute(e.name,e.value)}),r&&(n.textContent=r),n}}class i extends o{run(){const{xpath:e,action:t,attribute_name:r,attribute_value:o,find:i}=this.data,l=e.replace("svg","*[name()='svg']"),s=this.getElementByXPathFallbackSnippet(i,l);if(!s)return!1;switch(t){case"add":case n:s.setAttribute(r,o);const e={alt:["role","title"],role:["alt","title"]};e[r]&&e[r].forEach(e=>s.removeAttribute(e));break;case a:s.removeAttribute(r);break;case"clear":s.setAttribute(r,"")}return!0}}class l extends o{run(){const{xpath:e,action:t,content:r,child:o,find:i}=this.data,l=this.getElementByXPathFallbackSnippet(i,e);if(!l)return!1;let s=null;if(o)try{s=this.createElement(o.tag,o.attributes||[],o.content||"")}catch(e){return}switch(t){case n:l.nodeValue=r;break;case a:l.remove();break;case"add_child":s&&l.appendChild(s);break;case"remove_child":s&&l.removeChild(s);break;case"add_before":s&&l.parentNode&&l.parentNode.insertBefore(s,l);break;case"add_after":s&&l.parentNode&&l.parentNode.insertBefore(s,l.nextSibling)}return!0}}class s extends o{replaceIgnoreCase(e,t,r,n,a){const o=n.indexOf(a);return-1===o?e:e.substring(0,o)+r+e.substring(o+t.length)}run(){const{xpath:e,find:t,replace:r}=this.data,n=this.getElementByXPathFallbackSnippet(t,e);if(!n)return!1;const a=n.outerHTML;if("string"!=typeof t||"string"!=typeof r)return!1;const o=a.toLowerCase(),i=t.toLowerCase();if(!o.includes(i))return!1;const l=this.replaceIgnoreCase(a,t,r,o,i);if(l===a)return!1;const s=document.createElement("div");s.innerHTML=l;const c=s.firstElementChild;return c&&n.parentNode&&n.parentNode.replaceChild(c,n),!0}}var c=r(76105),d=r.n(c),u=r(37347);const h=e=>{try{return!(!e||"string"!=typeof e||(u.Ay.parse(e),0))}catch(e){return!1}},g=e=>{const t=e.match(/rgba?\((\d+),\s*(\d+),\s*(\d+)(?:,\s*([\d.]+))?\)/i);if(!t)return null;const r=parseInt(t[1]).toString(16).padStart(2,"0"),n=parseInt(t[2]).toString(16).padStart(2,"0"),a=parseInt(t[3]).toString(16).padStart(2,"0");return void 0!==t[4]&&parseFloat(t[4])<1?`#${r}${n}${a}${Math.round(255*parseFloat(t[4])).toString(16).padStart(2,"0")}`.toUpperCase():`#${r}${n}${a}`.toUpperCase()};class m extends o{constructor(e,t){super(e,t),this.maybeAddStyleTag()}maybeAddStyleTag(){let e=this.dom.querySelector("style#ea11y-remediation-styles");e||(e=this.dom.createElement("style"),e.id="ea11y-remediation-styles",this.dom.body.appendChild(e))}getStyleTag(){return this.dom.querySelector("style#ea11y-remediation-styles")}getElementCSSSelector(e){let t=this.getElementByXPath(e);if(!(t&&t instanceof Element))return null;const r=[];for(;t&&t.nodeType===Node.ELEMENT_NODE;){let e=t.tagName.toLowerCase();if(t.id){e+=`#${t.id}`,r.unshift(e);break}if(t.className&&"body"!==t.tagName.toLowerCase()){const r=t.className.trim().split(/\s+/);r.length&&(e+="."+r.join("."))}const n=t.parentNode;if(n&&("body"!==n.tagName?.toLowerCase()||"div"!==t.tagName?.toLowerCase())){const r=Array.from(n.children).filter(e=>e.tagName===t.tagName);r.length>1&&(e+=`:nth-of-type(${r.indexOf(t)+1})`)}r.unshift(e),t=t.parentElement}return r.join(" > ")}getCssRulesForContrast(e=null,t=null,r=null,n=null){try{const a=e?this.getElementCSSSelector(e):null,o=r?this.getElementCSSSelector(r):null,i=`${a&&t?`${a}{color:${t}!important;}`:""}${o&&n?`${o}{background-color:${n}!important;}`:""}`;return h(i)?i:""}catch(e){return console.warn("Failed to convert XPath to CSS selector",e),""}}run(){const e=this.getStyleTag();if(!e)return!1;let t=this.data.rule;if("1"===this.data.global){const e=(()=>{const e={color:null,background:null},t=this.data.rule.matchAll(/([^{]+)\s*\{([^}]+)\}/g);for(const[,r,n]of t){let t;try{t=document.querySelector(r.trim())}catch{continue}const a=n.match(/(?!this.runRemediation(e))}runRemediation(e){const 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 b=null,f=null,y=!1;function v(){y?b.runAll():(y=!0,b=new p(window.AllyRemediations.remediations),window.MutationObserver&&b.remediations.length>0&&(f=new MutationObserver(e=>{let t=!1;for(const r of e)if("childList"===r.type&&r.addedNodes.length>0){t=!0;break}t&&(clearTimeout(b.checkTimeout),b.checkTimeout=setTimeout(()=>{b.checkRemediations(),b.isComplete()&&f&&(f.disconnect(),f=null)},100))}),f.observe(document.body,{childList:!0,subtree:!0})))}window.AllyRemediations.initialize=v,window.addEventListener("DOMContentLoaded",function(){setTimeout(()=>{v()},400)}),"loading"!==document.readyState&&setTimeout(()=>{v()},400)}},76105(e){e.exports=function(){function e(){return(e=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let t="",r=0|e;for(;r--;)t+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[64*Math.random()|0];return t},customAlphabet:(e,t=21)=>(r=t)=>{let n="",a=0|r;for(;a--;)n+=e[Math.random()*e.length|0];return n}}}},r={};function n(e){var a=r[e];if(void 0!==a)return a.exports;var o=r[e]={exports:{}};return t[e].call(o.exports,o,o.exports,n),o.exports}n.m=t,e=[],n.O=(t,r,a,o)=>{if(!r){var i=1/0;for(d=0;d=o)&&Object.keys(n.O).every(e=>n.O[e](r[s]))?r.splice(s--,1):(l=!1,o0&&e[d-1][2]>o;d--)e[d]=e[d-1];e[d]=[r,a,o]},n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e={1275:0};n.O.j=t=>0===e[t];var t=(t,r)=>{var a,o,[i,l,s]=r,c=0;if(i.some(t=>0!==e[t])){for(a in l)n.o(l,a)&&(n.m[a]=l[a]);if(s)var d=s(n)}for(t&&t(r);cn(95137));a=n.O(a)})();