var __defProp=Object.defineProperty,__defProps=Object.defineProperties,__getOwnPropDescs=Object.getOwnPropertyDescriptors,__getOwnPropSymbols=Object.getOwnPropertySymbols,__hasOwnProp=Object.prototype.hasOwnProperty,__propIsEnum=Object.prototype.propertyIsEnumerable,__pow=Math.pow,__defNormalProp=(e,t,r)=>t in e?__defProp(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,__spreadValues=(e,t)=>{for(var r in t||(t={}))__hasOwnProp.call(t,r)&&__defNormalProp(e,r,t[r]);if(__getOwnPropSymbols)for(var r of __getOwnPropSymbols(t))__propIsEnum.call(t,r)&&__defNormalProp(e,r,t[r]);return e},__spreadProps=(e,t)=>__defProps(e,__getOwnPropDescs(t)),__objRest=(e,t)=>{var r={};for(var n in e)__hasOwnProp.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&__getOwnPropSymbols)for(var n of __getOwnPropSymbols(e))t.indexOf(n)<0&&__propIsEnum.call(e,n)&&(r[n]=e[n]);return r},__async=(e,t,r)=>new Promise(((n,i)=>{var o=e=>{try{l(r.next(e))}catch(t){i(t)}},a=e=>{try{l(r.throw(e))}catch(t){i(t)}},l=e=>e.done?n(e.value):Promise.resolve(e.value).then(o,a);l((r=r.apply(e,t)).next())}));!function(){"use strict";const e=(e,t=["userway"])=>{const r=__spreadProps(__spreadValues({},e),{isUserWay:!0});t.forEach((e=>{let t=window.frames[e];if(!t||"function"!=typeof t.postMessage)try{t=document.querySelector(`iframe[name=${e}]`),t=t?t.contentWindow:null}catch(n){console.error(n)}t&&t.postMessage(r,"*")}))},t=(e,t)=>{if(e===document)return!0;const r=e,n=getComputedStyle(r),i=r.getBoundingClientRect(),o=(e=>e.top>=0&&e.left>=0&&e.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&e.right<=(window.innerWidth||document.documentElement.clientWidth))(i),a=0===i.width||0===i.height,l="0"!==n.opacity&&"hidden"!==n.visibility&&"none"!==n.display&&"collapse"!==n.visibility;return(r.offsetWidth>0||r.offsetHeight>0||r.getClientRects().length>0)&&(!t.shouldBeInViewport||o)&&!a&&l},r=(e,r={})=>{var n,i;const o={skipParentCheck:null!=(n=r.skipParentCheck)&&n,shouldBeInViewport:null==(i=r.shouldBeInViewport)||i};let a=e,l=t(a,o);if(!o.skipParentCheck)for(;l&&a.parentNode&&a.parentNode!==document;)t(a.parentNode,{shouldBeInViewport:!1})?a=a.parentNode:l=!1;return l},n=e=>e.nodeType===Node.ELEMENT_NODE,i=e=>{if(!n(e))return!1;const t=e.getAttribute("aria-hidden"),r=e.getAttribute("hidden");return(e=>!!n(e)&&"none"===window.getComputedStyle(e).display)(e)||"true"===t||null!==r&&""!==r},o=e=>{if(!n(e))return!1;const t=e.getAttribute("aria-hidden"),r=e.getAttribute("hidden");return"true"===t||null!==r&&""!==r||void 0},a=["NOSCRIPT","SCRIPT","style"],l=(e,t,r={includeTextFromVisuallyHiddenElements:!1})=>{var n;const{includeTextFromVisuallyHiddenElements:s}=r;for(let u=0;u{let n=t;return(t=l(e.childNodes,n,r)).replace(/\s+/g," ").trim()},u=e=>{let t=e.split(" "),r="";for(let n=0;ne?e.replace(/\s|\u200B| |​|​|​/g,""):"",d=e=>e.split(" ").reduce(((e,t)=>{const r=document.getElementById(t.trim());if(!r)return e;if((e=>["noscript","style","img","script","br","hr"].includes(e.tagName.toLowerCase()))(r))return e;const n=s(r);return n?e+" "+n:e}),"").trim(),p=(e,t={})=>{var r,n,i;let o=null!=(n=null==(r=e.getAttribute("aria-label"))?void 0:r.trim())?n:"";const a=!(null==(i=null==t?void 0:t.excludeAttribute)?void 0:i.includes("aria-describedby"))&&e.getAttribute("aria-describedby");if(o+=a?d(a):"",o)return o.toLowerCase();const l=e.getAttribute("aria-labelledby");if(l&&(o+=d(l)),o.trim())return o.toLowerCase();if(o=s(e),o.trim())return o.toLowerCase();if("INPUT"===e.tagName){const t=e;if(o=t.value||"",o.trim()&&t.type&&["button","submit","reset"].includes(t.type.toLowerCase()))return o.toLowerCase()}if(!e.hasChildNodes())return null;let u=e.querySelector('img, *[role="img"]');return u&&(o=m(u)||"",o.trim())?o.toLowerCase():null},m=e=>{const t=e.getAttribute("role");if("role"===t||"presentation"===t)return null;const r=e.alt;if(r&&r.trim())return r.trim();const n=e.getAttribute("aria-label");if(n&&n.trim())return n.trim();const i=e.getAttribute("aria-describedby");if(i){const e=d(i);if(e)return e}const o=e.getAttribute("aria-labelledby");if(o){let e=d(o);if(e)return e}return null},g=()=>"uw"+(~~(1e8*Math.random())).toString(16),f=(e,t="")=>{const r=document.createElement("span");return r.textContent=e,r.style="color: #ffffff!important;background: #000000!important;clip: rect(1px, 1px, 1px, 1px)!important;clip-path: inset(50%)!important;height: 1px!important;width: 1px!important;margin: -1px!important;overflow: hidden!important;padding: 0!important;position: absolute!important;",r.setAttribute("class",t),r.setAttribute("data-uw-reader-element",""),r.setAttribute("data-uw-rm-ignore",""),r},b=(e,t=0)=>{let r=3735928559^t,n=1103547991^t;for(let i,o=0;o>>16,2246822507)^Math.imul(n^n>>>13,3266489909),n=Math.imul(n^n>>>16,2246822507)^Math.imul(r^r>>>13,3266489909),4294967296*(2097151&n)+(r>>>0)},h=(e,t=!1)=>{var r;if("html"===e.nodeName.toLowerCase())return"/HTML";if("body"===e.nodeName.toLowerCase())return"/HTML/BODY";if("head"===e.nodeName.toLowerCase())return"/HTML/HEAD";let n=0;const i=null==(r=e.parentElement)?void 0:r.children;if(!i)return"";for(let o=0;o{const i=t[n],o=e.getAttribute(i)||"";return e.hasAttribute&&e.hasAttribute(i)&&""!==o?r+";"+n+":"+b(o):r}),"|"+r)}const y=new RegExp("^(data:)"),E=new RegExp("(.)(gif|jpe?g|tiff?|png|webp|bmp)","i"),v=e=>{if(y.test(e))return e;e&&(e=e.replace(/^(http|https)(:\/\/)/,"").replace(/^(www\.)/,""));const t=e.match(E);return(null==t?void 0:t.index)&&(null==t?void 0:t.length)?e.substring(0,t.index+t[0].length):e.split("?")[0]},_=e=>[].slice.call(document.querySelectorAll(e)),w=(e,t,r=!1)=>e.reduce(((e,n)=>{const i=r&&n.position?":nth-of-type("+n.position+")":"";return e+=n.tag+i+(n.idx>=t?">":" ")}),"").slice(0,-1),T=(e,t)=>{if(null===t)return!0;const r=e.innerText?b(e.innerText).toString():"";if(t.innerText.toString()!==r)return!1;const n=e.hasAttribute("href")?b(e.getAttribute("href")).toString():"";if(t.href&&t.href!==n)return!1;const i=e.hasAttribute("src")?b(e.getAttribute("src")).toString():"";return!t.src||t.src===i},N=(e,t=null,r)=>{const n=_(e);if(1===n.length){if(null==r.params)return n[0];if(T(n[0],t))return n[0]}if(n.length>1){if(null==r.params)return null;const e=n.filter((e=>T(e,t)));if(1===e.length)return e[0]}return null};var x=(e=>(e[e.Strict=0]="Strict",e[e.Medium=1]="Medium",e[e.Loose=2]="Loose",e))(x||{});const I={i:"innerText",s:"src",h:"href"},L=e=>{const[t,r]=e.split("|");let n={innerText:""};if(r){const[e,...t]=r.split(";");n.innerText=e,t.forEach((e=>{const[t,r]=e.split(":");n[I[t]]=r}))}return{xpath:t,params:n}},S=e=>{if("/HTML/BODY"===e)return _("html>body")[0];const{xpath:t,params:r}=L(e),n=((e,t)=>{const r=("/"===e[0]?e.slice(1):e).split("/");return r.map(((e,n)=>{const i=e.toLowerCase(),[,o,a]=i.match(/(\S+)\[(\S+)?\]/)||[,i],l=r.length-1===n,s={idx:n,tag:o};return a&&(s.position=+a),l&&t&&(s.params=t),s}))})(t,r);return((e,t=4)=>{let r=e.length-2-t;const n=e[e.length-1];let i;const o=n.params;if(r<0){i=w(e,0,!0);return N(i,o,n)||(i=w(e,0),N(i,o,n))}const a=a=>{for(r=e.length-2-t;r>=0;r--){i=a===x.Loose?w(e.slice(0,2).concat(...e.slice(-r-t)),e.length-t):w(e,e.length-t-r-1,a===x.Strict);const l=N(i,o,n);if(l)return l}},l=[x.Strict,x.Medium,x.Loose];for(let s=0;s{const{xpath:t,params:r}=L(e),n=document.evaluate(t,document,null,XPathResult.FIRST_ORDERED_NODE_TYPE,null).singleNodeValue;return n&&T(n,r)?n:null},O=(e,t)=>{new IntersectionObserver(((r,n)=>{for(const i of r)i.intersectionRatio>0&&(t(e),n.disconnect())})).observe(e)},R=e=>{let t=e.closest("label"),r="";if(t){for(let e of t.childNodes)e.nodeType===Node.TEXT_NODE&&(r+=e.textContent);if(r.trim())return r.trim()}if(e.id){let t=(e=>{for(const t of document.querySelectorAll("label"))if(t.htmlFor===e)return t;return null})(e.id);if(t)return s(t,"")}const n=e.getAttribute("aria-label"),i=e.getAttribute("aria-labelledby");if(n)return n;if(i)return u(i);const o=e.getAttribute("title");if(o)return o;return s(e,"")||""},k=["script","noscript","style","meta","link","path","circle","rect","ellipse","line","polygon","polyline","g"],D=[".uwy",".uwy *",".uw-sl *"],M=["data-uw-ignore","data-uw-rm-ignore"],P=(e,t=3)=>{const r=(e,t)=>{if(t<1)return"";const n=e.childElementCount;let i="";return n||(i+=e.textContent),!i&&e.length&&(i+=e.nodeValue),n&&e.childNodes.length&&(i+=[...e.childNodes].map((e=>r(e,t-1))).join(" ")),i};return r(e,t)},F=e=>e.replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'"),U=e=>{try{const t=new URL(e);return["http:","https:"].includes(t.protocol)}catch(t){return!1}},B=["untitled","test","page","default"],W=e=>{if(!(e.length>=3))return!1;if(/^\d+$/.test(e))return!1;if(!(e=>{const t=e.trim().toLowerCase();return!B.includes(t)&&t.split(" ").some((e=>!B.includes(e)))})(e))return!1;const t=new RegExp("(.)\\1{3,}").test(e),r=1===e.split(" ").length;return!t||!r},$='\n a[href]:not([hidden]):not([inert]), \n area[href]:not([hidden]):not([inert]), \n audio[controls]:not([hidden]):not([inert]), \n button:not([disabled]):not([hidden]):not([inert]), \n details summary:not([hidden]):not([inert]), \n embed:not([hidden]):not([inert]),\n iframe:not([hidden]):not([inert]), \n img[usemap]:not([hidden]):not([inert]),\n input:not([disabled]):not([type="hidden"]):not([hidden]):not([inert]), \n label:not([hidden]):not([inert]),\n select:not([disabled]):not([hidden]):not([inert]), \n textarea:not([disabled]):not([hidden]):not([inert]), \n video[controls]:not([hidden]):not([inert]), \n [contenteditable]:not([disabled]):not([hidden]):not([inert])\n'.trim().replace(/\s+/g," ")+", [tabindex]:not([disabled]):not([hidden]):not([inert])",j=e=>{const t=null==e?void 0:e.getAttribute("tabindex");if(null==t)return null;const r=parseInt(t,10);return Number.isNaN(r)?null:r};function V(e){return(null==e?void 0:e.matches($))&&!(null==e?void 0:e.closest("[inert], [hidden]"))}const H=e=>!(e instanceof HTMLElement)||M.some((t=>e.hasAttribute(t)))||D.some((t=>e.classList.contains(t)))||k.includes(e.nodeName.toLowerCase()),q=(e,t)=>{try{if("childList"===t){const t=[...e.addedNodes].reduce(((e,t)=>{if(t instanceof HTMLElement){const r=[...t.getElementsByTagName("*")];return[...e,...r]}return e}),[]);return[].filter.call([...e.addedNodes,...t],(e=>!H(e)))}return"attributes"===t?H(e.target)?[]:[e.target]:[]}catch(r){return[]}},G={AriaEditorValues:[],BrokenLink:[],Contrast:[],EmptyControls:[],ExternalLink:[],Forms:[],Headings:[],Language:[],MissingAlts:[],Pdfs:[],VagueLinks:[]},X=e=>__async(this,null,(function*(){const t=yield fetch(e),r=yield t.json();return __spreadValues(__spreadValues({},G),r)})),K=UserWayWidgetApp.ContextHolder.config.remediation,z=UserWayWidgetApp.ContextHolder.config.tunings,Z=UserWayWidgetApp.ContextHolder.config.services,Y=UserWayWidgetApp.ContextHolder.config.imageAlt,Q=UserWayWidgetApp.ContextHolder.config.settings,{isMobile:J,language:ee}=UserWayWidgetApp.ContextHolder.config;let te={};function re(e){te=__spreadValues({},e)}function ne(){return te}const ie=()=>__async(this,null,(function*(){if(null==K?void 0:K.consolidated){const e=yield X(K.consolidated);return e.MissingAlts.reverse(),void re(e)}re(G)})),oe="https://api.userway.org/api/",ae="https://cdn77.api.userway.org/";var le=(e=>(e.Remediation="remediation",e.AriaEditor="aria-editor",e))(le||{}),se=(e=>(e.KeyboardNavEnabled="app-key-nav-enabled",e))(se||{});const ue=e=>{const t=UserWayWidgetApp.getLib("util"),{registerPostMessageListener:r}=t;return r((t=>{var r;(null==(r=null==t?void 0:t.data)?void 0:r.isUserWay)&&e(t)}))},ce=document.documentElement,de={attributes:!0,attributeFilter:["aria-label","alt"],childList:!0,subtree:!0},pe=new Set,me=e=>{pe.add(e)},ge=new MutationObserver((e=>{const t=(e=>{const t=[];for(const r of e)t.push(...q(r,r.type));return t})(e);t.length&&pe.forEach((e=>e(t)))})),fe=[{src:"wave.min.js",name:"Wave"},{src:"axe.min.js",name:"BrowserStack"}],be=[{url:"wave.webaim.org",name:"Wave"}],he=(e,t)=>{try{const r=[];return"childList"===t&&e.addedNodes.length&&e.addedNodes.forEach((e=>{const t=(e=>{if("script"===e.nodeName.toLowerCase()){const t=fe.find((t=>e.src.includes(t.src)));if(t)return t}return"iframe"===e.nodeName.toLowerCase()&&e.title.toLowerCase().includes("equalweb")?{name:"EqualWeb"}:null})(e);t&&r.push(t)})),r}catch(r){return[]}},Ae=(e,t)=>__async(this,null,(function*(){const{account:r}=UserWayWidgetApp.ContextHolder.config,n={date:(new Date).toISOString(),url:window.location.href,scannerName:e,a11yScore:t};yield fetch(`${oe}scaner-activity/${r}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(n)}).catch((e=>{console.log(e)}))})),ye=e=>{try{UserWayWidgetApp.getLib("scan_manager").accessibilityScore().then((t=>{Ae(e,t)}))}catch(t){console.log(t)}},Ee=document.documentElement,ve={childList:!0,subtree:!0},_e=new MutationObserver((e=>{const t=(e=>{const t=[];for(const r of e)t.push(...he(r,r.type));return t})(e)[0];t&&ye(t.name)}));var we="object"==typeof global&&global&&global.Object===Object&&global,Te="object"==typeof self&&self&&self.Object===Object&&self,Ne=we||Te||Function("return this")(),xe=Ne.Symbol,Ie=Object.prototype,Le=Ie.hasOwnProperty,Se=Ie.toString,Ce=xe?xe.toStringTag:void 0;var Oe=Object.prototype.toString;var Re=xe?xe.toStringTag:void 0;function ke(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Re&&Re in Object(e)?function(e){var t=Le.call(e,Ce),r=e[Ce];try{e[Ce]=void 0;var n=!0}catch(o){}var i=Se.call(e);return n&&(t?e[Ce]=r:delete e[Ce]),i}(e):function(e){return Oe.call(e)}(e)}var De=/\s/;var Me=/^\s+/;function Pe(e){return e?e.slice(0,function(e){for(var t=e.length;t--&&De.test(e.charAt(t)););return t}(e)+1).replace(Me,""):e}function Fe(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}var Ue=/^[-+]0x[0-9a-f]+$/i,Be=/^0b[01]+$/i,We=/^0o[0-7]+$/i,$e=parseInt;function je(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return null!=e&&"object"==typeof e}(e)&&"[object Symbol]"==ke(e)}(e))return NaN;if(Fe(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Fe(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Pe(e);var r=Be.test(e);return r||We.test(e)?$e(e.slice(2),r?2:8):Ue.test(e)?NaN:+e}var Ve=function(){return Ne.Date.now()},He=Math.max,qe=Math.min;function Ge(e,t,r){var n,i,o,a,l,s,u=0,c=!1,d=!1,p=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function m(t){var r=n,o=i;return n=i=void 0,u=t,a=e.apply(o,r)}function g(e){var r=e-s;return void 0===s||r>=t||r<0||d&&e-u>=o}function f(){var e=Ve();if(g(e))return b(e);l=setTimeout(f,function(e){var r=t-(e-s);return d?qe(r,o-(e-u)):r}(e))}function b(e){return l=void 0,p&&n?m(e):(n=i=void 0,a)}function h(){var e=Ve(),r=g(e);if(n=arguments,i=this,s=e,r){if(void 0===l)return function(e){return u=e,l=setTimeout(f,t),c?m(e):a}(s);if(d)return clearTimeout(l),l=setTimeout(f,t),m(s)}return void 0===l&&(l=setTimeout(f,t)),a}return t=je(t)||0,Fe(r)&&(c=!!r.leading,o=(d="maxWait"in r)?He(je(r.maxWait)||0,t):o,p="trailing"in r?!!r.trailing:p),h.cancel=function(){void 0!==l&&clearTimeout(l),u=0,n=s=i=l=void 0},h.flush=function(){return void 0===l?a:b(Ve())},h}const Xe="AUTO";let Ke=!0;const ze=e=>{setTimeout((()=>{Ke=!1}),2e3);const t=function(e,t,r){var n=!0,i=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return Fe(r)&&(n="leading"in r||n,i="trailing"in r||i),Ge(e,t,{leading:n,maxWait:t,trailing:i})}(((t,r)=>e(t,r)),300,{leading:!0,trailing:!0}),r=Ge(((t,r)=>e(t,r)),500,{maxWait:2e3,leading:!0,trailing:!0});return{run:(e,n)=>Ke?t(e,n):r(e,n)}};var Ze=(e=>(e.TABINDEX="tabindex",e.ROLE="role",e.TYPE="type",e.SRC="src",e.ARIA_LEVEL="ariaLevel",e.ORIGINAL_ALT="originalAlt",e))(Ze||{}),Ye=(e=>(e.UNKNOWN="UNKNOWN",e.NOT_ALLOWED="NOT_ALLOWED",e.TEXT_NODE="TEXT_NODE",e.LANDMARK="LANDMARK",e.CONTROL="CONTROL",e.HEADING="HEADING",e.HAS_ALT_DESCRIPTION="HAS_ALT_DESCRIPTION",e.COMPOSED_TEXT_NODES="COMPOSED_TEXT_NODES",e.IFRAME="IFRAME",e.HIDDEN_FOR_READER="HIDDEN_FOR_READER",e))(Ye||{}),Qe=(e=>(e.UNKNOWN="unknown",e.TEXT="text",e.IMAGE="image",e.HEADING="heading",e.FOOTER="footer",e.HEADER="header",e.NAV="nav",e.MAIN="main",e.FORM="form",e.LANDMARK="landmark",e.LINK="link",e.BUTTON="button",e.CHECKBOX="checkbox",e.RADIOBUTTON="radiobutton",e.INPUT="input",e.TEXTAREA="textarea",e.SELECT="select",e.ABBR="abbr",e.LIST_ITEM="list item",e))(Qe||{});const Je="accessibility-tree-observer",et=["uw-sl","uwy","uw-s10-reading-guide","uw-s12-tooltip"],tt=(e,t)=>t.ariaLabel?t.ariaLabel:t.ariaLabelledBy?u(t.ariaLabelledBy):s(e,""),rt={},nt=UserWayWidgetApp.getLib("accessibility_tree_walker");let it,ot=[],at=1;const lt=(e,t)=>{var r;if(ot=[],(e=>{const t=3===e.nodeType;return et.some((t=>!!e.closest&&e.closest(`.${t}`)))||!t&&e.hasAttribute("data-uw-rm-ignore")})(e)&&!t)return null;const n={node:e,type:nt.identifyElementType(e)},i=(e=>{if(!e||!e.type)return{};const{node:t}=e;return[Ye.UNKNOWN,Ye.NOT_ALLOWED,Ye.TEXT_NODE].includes(e.type)?{uwAtoId:t.uwAtoId}:{tagName:t.tagName,tabindex:t.getAttribute("tabindex")||"",role:t.getAttribute("role")||"",ariaLevel:t.getAttribute("aria-level")||"",ariaLabel:t.getAttribute("aria-label")||"",ariaLabelledBy:t.getAttribute("aria-labelledby")||"",type:t.getAttribute("type")||"",uwAtoId:t.uwAtoId}})(n);it=nt.identifyElementType(e);const o=it===Ye.HIDDEN_FOR_READER;let a,l;switch(ot=(e=>(e.tabindex&&ot.push({name:Ze.TABINDEX,value:e.tabindex}),e.role&&ot.push({name:Ze.ROLE,value:e.role}),e.type&&ot.push({name:Ze.TYPE,value:e.type}),e.ariaLevel&&ot.push({name:Ze.ARIA_LEVEL,value:e.ariaLevel}),ot))(i),o&&((e,t)=>{const r=e.cloneNode(!0);r.removeAttribute("aria-hidden"),it=nt.identifyElementType(r),it!==Ye.UNKNOWN||"IMG"!==t.tagName&&"img"!==t.role||(it=Ye.HAS_ALT_DESCRIPTION)})(e,i),it){case Ye.TEXT_NODE:a=(e=>{const t=Qe.TEXT;let r="";e.textContent&&(r=e.textContent.trim().replace(/(\n|\r\n)/g,"").replace(/\s+/g," "));const n={};return e.parentElement&&(n.parentXpath=h(e.parentElement)),{semanticType:t,textToRead:r,additionalParams:n}})(e),rt.parentXpath=null==(r=a.additionalParams)?void 0:r.parentXpath;break;case Ye.COMPOSED_TEXT_NODES:a=((e,t)=>({semanticType:"LI"===t.tagName?Qe.LIST_ITEM:Qe.TEXT,textToRead:t.ariaLabel||s(e,"")}))(e,i);break;case Ye.HIDDEN_FOR_READER:a={semanticType:Qe.UNKNOWN,textToRead:""};break;case Ye.HEADING:a=((e,t)=>({semanticType:Qe.HEADING,textToRead:t.ariaLabel||s(e,"")}))(e,i);break;case Ye.LANDMARK:a=(e=>{let t,r="";e.ariaLabel?r=e.ariaLabel:e.ariaLabelledBy&&(r=u(e.ariaLabelledBy));const{tagName:n}=e,{role:i}=e;return t="FOOTER"===n||"contentinfo"===i?Qe.FOOTER:"HEADER"===n||"banner"===i?Qe.HEADER:"FORM"===n||"form"===i?Qe.FORM:"MAIN"===n||"main"===i?Qe.MAIN:"NAV"===n||"navigation"===i?Qe.NAV:Qe.LANDMARK,{semanticType:t,textToRead:r}})(i);break;case Ye.CONTROL:a=((e,t)=>{const{tagName:r,role:n,type:i,ariaLabel:o,ariaLabelledBy:a}=t;let l=!1,s="",c=Qe.TEXT;return"menuitem"===n||"option"===n?(s=tt(e,t),l=!0):"link"===n||"A"===r&&!n?(c=Qe.LINK,s=tt(e,t),l=!0):"button"===n||"BUTTON"===r?(c=Qe.BUTTON,s=tt(e,t),l=!0):"INPUT"!==r||"button"!==i&&"submit"!==i&&"reset"!==i||(c=Qe.BUTTON,o?s=o:a&&(s=u(a)),l=!0),l||(s=R(e),"checkbox"===n||"INPUT"===r&&"checkbox"===i?c=Qe.CHECKBOX:"radio"===n||"INPUT"===r&&"radio"===i?c=Qe.RADIOBUTTON:"INPUT"===r&&(c=Qe.INPUT),"TEXTAREA"===r&&(c=Qe.TEXTAREA),"SELECT"===r&&(c=Qe.SELECT)),{semanticType:c,textToRead:s}})(e,i);break;case Ye.HAS_ALT_DESCRIPTION:a=((e,t,r)=>{const{tagName:n,role:i,ariaLabel:o}=t,a=e.getAttribute("alt")||"",l=e.getAttribute("title")||"",s=e.getAttribute("data-uw-rm-ima-original")||"";let u="",c=Qe.TEXT;const d=r;return"IMG"!==n&&"img"!==i||(c=Qe.IMAGE,d.push({name:Ze.SRC,value:e.src}),d.push({name:Ze.ORIGINAL_ALT,value:s}),u=o||a||s||u),"ABBR"===n&&(c=Qe.ABBR,u=l),{semanticType:c,textToRead:u,attributesToReturn:d}})(e,i,ot),a.attributesToReturn&&(ot=a.attributesToReturn);break;case Ye.UNKNOWN:a=((e,t)=>{let r=Qe.TEXT;return"DIV"!==t.tagName||e.innerHTML||(r=Qe.LANDMARK),{semanticType:r,textToRead:""}})(e,i);break;default:a={textToRead:"",semanticType:Qe.TEXT}}return i.uwAtoId?l=i.uwAtoId:(l=at,at+=1,n.node.uwAtoId=l),__spreadValues({id:l,xpath:h(e),label:a.textToRead.replace(/\|/g,"").trim(),tagName:i.tagName||"",type:a.semanticType,hidden:o,attributes:ot,el:n.node},rt)},st=UserWayWidgetApp.getLib("accessibility_tree_walker");let ut=[];const ct=()=>{let t=null;ut=[];do{const e=st.getNextAccessibilityTreeNode(t);if(!e)break;const r=lt(e.node);r&&ut.push(r),t=e.node}while(t);ut=ut.map((e=>{const t=e,{el:r}=t;return __objRest(t,["el"])})),e({action:Je,type:"userway:ato-output:get",data:{nodes:ut,version:Date.now()}},["uwAccessibilityEditor"])},dt=()=>ut,pt={enabled:!1},mt={"userway:ato-input:enable":()=>{pt.enabled||(pt.enabled=!0,me(ct),ct())},"userway:ato-input:disable":()=>{var e;pt.enabled&&(pt.enabled=!1,e=ct,pe.delete(e))},"userway:ato-input:get":ct},gt="REMEDIATION_EXTERNAL_LINK_TARGETS",ft="data-uw-rm-ext-link",bt="REMEDIATION_SKIP_NAVIGATION_LINK",ht=["skip","pass","jump"],At="REMEDIATION_VAGUE_LINK",yt="data-uw-rm-vglnk",Et=["here","click here","clicking","clicking here","download","download now","click","click this","this","link","more","read more","please click here","continue reading","learn more","more details"],vt={automaticcoupons:/automaticcoupons/,"shopping.yahoo":/shopping\.yahoo/,shopperapproved:/shopperapproved/,rakuten:/rakuten/,"translate.google":/translate\.google/,"maps.googleapis.com":/maps\.googleapis\.com/,"s.w.org":/s\.w\.org/,avatar:/avatar/,companylogos:/companylogos/,favicon:/favicon/,activecampaign:/lt\.php(.*)?l=open/,aweber:/openrate\.aweber\.com/,bananatag:/bl-1\.com/,boomerang:/mailstat\.us\/tr/,"campaign monitor":/cmail(\d+)\.com\/t\//,"cirrus insight":/tracking\.cirrusinsight\.com/,close:/close\.com\/email_opened/,"constant contact":/rs6\.net\/on\.jsp/,contactmonkey:/contactmonkey\.com\/api\/v1\/tracker/,convertkit:/convertkit-mail\.com\/o/,"critical impact":/portal\.criticalimpact\.com\/c2\//,emarsys:/emarsys\.com\/e2t\/o/,gem:/zen\.sr\/o/,getnotify:/email81\.com\/case/,getresponse:/getresponse\.com\/open\.html/,growthdot:/growthdot\.com\/api\/mail-tracking/,front:/app\.frontapp\.com\/(.*)?\/seen/,hubspot:/t\.(hubspotemail|hubspotfree|signaux|senal|sidekickopen|sigopn)/,icontact:/click\.icptrack\.com\/icp/,intercom:/(via\.intercom\.io\/o)|(intercom-mail\.com\/via\/o)/,litmus:/emltrk\.com/,mailchimp:/list-manage\.com\/track/,mailgun:/email\.(mailgun|mg)(.*)?\/o/,mailjet:/mjt\.lu\/oo/,mailspring:/getmailspring\.com\/open/,mailtrack:/(mailtrack\.io\/trace)|(mltrk\.io\/pixel)/,mandrill:/mandrillapp\.com\/track/,marketo:/resources\.marketo\.com\/trk/,mixmax:/(email|track)\.mixmax\.com/,mixpanel:/api\.mixpanel\.com\/track/,nethunt:/nethunt\.co(.*)?\/pixel\.gif/,newton:/tr\.cloudmagic\.com/,outreach:/api\/mailings\/opened/,phplist:/phplist\.com\/lists\/ut\.php/,polymail:/polymail\.io/,postmark:/pstmrk\.it\/open/,"return path":/returnpath\.net\/pixel\.gif/,sailthru:/sailthru\.com\/trk/,salesforce:/nova\.collect\.igodigital\.com/,sendgrid:/wf\/open\?upn/,sendy:/sendy\/t\//,streak:/mailfoogae\.appspot\.com/,superhuman:/r\.superhuman\.com/,thunderhead:/na5\.thunderhead\.com/,tinyletter:/tinyletterapp\.com.*open\.gif/,yamm:/yamm-track\.appspot/,yesware:/t\.yesware\.com/,"zendesk sell":/futuresimple\.com\/api\/v1\/sprite\.png/,bing:/bat\.bing\.com/,teads:/cm\.teads\.tv/},_t=["icon","cart","logo"],wt=["h1","h2","h3","h4","h5","h6","span","a","p","figcaption","caption","div"],Tt=["heading"],Nt=new RegExp("^(data:)"),xt=new RegExp(/\.svg(\?.*)?$/,"i"),It=new RegExp(/^[!@#$%^&*()_+{}[\]`:;<>,.?~\\|\-="'/]+$/,"u");var Lt=(e=>(e.EXCLUDED_SRC="EXCLUDED_SRC",e.HIDDEN_FROM_SCREEN_READER="HIDDEN_FROM_SCREEN_READER",e.BASE64="BASE64",e.SVG="SVG",e.SMALL_SIZE="SMALL_SIZE",e.MICRO_SIZE="MICRO_SIZE",e.WRONG_SRC="WRONG_SRC",e.ASPECT_RATIO="ASPECT_RATIO",e.CUSTOM_CONFIG="CUSTOM_CONFIG",e.NOT_LOADED="NOT_LOADED",e))(Lt||{});const St=["SVG","SMALL_SIZE","HIDDEN_FROM_SCREEN_READER"],Ct="data-uw-rm-alt-original",Ot="REMEDIATION_IMAGE_MISSING_ALT",Rt="data-uw-rm-alt",kt=["jpg","jpeg","png","gif","bmp","tiff","tif","svg","webp","ico","apng","heif","heic","avif","eps","raw","cr2","nef","orf","sr2"];var Dt=(e=>(e.CorrectAlt="ALT",e.Reverted="RT",e.Backend="BE",e.Excluded="EX",e.Hidden="HD",e.Base64="BS64",e.Svg="SVG",e.Small="SM",e.Micro="MC",e.InvalidSrc="SRC",e.AspectRatio="AR",e.AI="AI",e.AIQuotaExceed="QU",e.ClosestText="CT",e.CustomConfig="CC",e.NotLoaded="NL",e.ThirdParty="TP",e))(Dt||{});const Mt="data-uw-rm-heading",Pt="uwAccessibilityEditor",Ft=Z.editorBuildUrl,Ut="aria-editor",Bt="data-uw-rm-ae",Wt="aria-editor",$t="REMEDIATION_EMPTY_CONTROLS",jt="data-uw-rm-empty-ctrl",Vt=["facebook","youtube","whatsapp","instagram","twitter","reddit","linkedin","viber","pinterest","telegram","search","cart","home"],Ht={prev:"Get previous item",next:"Get next item",scroll:"Activate for scroll",top:"Move to top",bottom:"Move to bottom",expand:"Expand this block",collapse:"Collapse this block",close:"Close this option"},qt=[{re:/(fa-)(.+)/,replacer:"$2"}],Gt=["a","summary","button"],Xt="REMEDIATION_FORM_LABEL",Kt="data-uw-rm-form",zt=["INPUT","TEXTAREA","SELECT"],Zt="data-uw-hidden-control",Yt="hidden-control-element",Qt={text:"Text field",radio:"Radio button",checkbox:"Checkbox field",email:"Please enter email address",url:"Please enter url",tel:"Please enter a phone number",password:"Password field",search:"Search field",date:"Date field",time:"Time field",image:"Image field",file:"File field",number:"Number",range:"Select range",submit:"Submit button",color:"Select color",datetime_local:"Date and time field",month:"Month field",week:"Week field",button:"Button",reset:"Reset button"},Jt=new Map([["Name",/(name)/],["Age",/(age)/],["Search",/(search|srch)/],["Quantity",/(qua|qty|quantity)/],["Count",/(count|cnt)/]]),er=new Map([["Search",/(search|srch)/],["Select name",/(name)/]]),tr="REMEDIATION_BROKEN_LINK",rr="data-uw-rm-brl",nr="data-uw-original-href";var ir=(e=>(e.Processed="PR",e.BackEndContributed="BE",e.Fixed="FX",e.FixedByCorrection="CR",e))(ir||{});const or=["localhost","userway.dev","linkedin.com","youtube.com"],ar="REMEDIATION_META_VIEWPORT",lr="uw-rm-meta-viewport",sr='meta[name="viewport"][content*="maximum-scale"], meta[name="viewport"][content*="user-scalable=0"], meta[name="viewport"][content*="user-scalable=no"]',ur="REMEDIATION_HEADING",cr="data-uw-rm-heading",dr="Empty heading",pr="REMEDIATION_PDF_DOCUMENTS",mr="data-uw-pdf-doc",gr="data-uw-pdf-rem",fr="data-uw-pdf-doc-original",br="data-uw-pdf-br";var hr=(e=>(e.INVALID_LINK="0",e.VALID_LINK="1",e.IN_PROCESSING_OR_QUOTA_EXCEEDED="2",e))(hr||{});const Ar="data-uw-rm-title",yr="REMEDIATION_HEADER_TITLE",Er="un",vr="gn",_r="REMEDIATION_SCREEN_READER_BASIC",wr="data-uw-rm-sr",Tr="REMEDIATION_ELEMENT_FOCUS",Nr="data-uw-rm-outline",xr=["data-uw-rm-ignore-focus-rule"],Ir="#0018FF",Lr={width:"2px",color:Ir,style:"solid"},Sr="custom-focus-get",Cr="custom-focus-update",Or=e=>e.filter((e=>{var t,r;const n=(e=>{switch(e){case Ot:return"alt";case Ut:return"ariaEditor";case $t:return"emptyControls";case Xt:return"forms";case tr:return"brokenLinks";case ar:return"metaViewport";case gt:return"externalLinks";case bt:return"skipLinks";case At:return"vagueLinks";case ur:return"headings";case pr:return"pdf";case yr:return"title";case _r:return"screenReader";case Tr:return"customFocus";default:return null}})(e.ruleId);if(!n||!Z.paidAi)return!0;const i=K[n];if(!i)return!0;const o=!1!==(null==(r=null==(t=i.config)?void 0:t.mobile)?void 0:r.enabled);return i.enabled&&(!J||o)})),Rr=(e,t)=>{if(0===e.length)return Promise.resolve();const r=e[0];return Promise.all(r.map((e=>e(t)))).then((()=>Rr(e.slice(1),t)))},kr="REMEDIATION_PER_SITE",Dr=()=>{var e,t;try{const r=UserWayWidgetApp.getLib("util");(null==(e=null==K?void 0:K.perSiteRemediation)?void 0:e.enabled)&&(null==(t=null==K?void 0:K.perSiteRemediation)?void 0:t.resources)&&r.execJs(K.perSiteRemediation.resources).finally((()=>{r.fireUserWayLifeCycleEvent("userway:remediation_csr_loaded")}))}catch(r){console.info("CSR",r)}};Dr.id=kr;const Mr=[Dr],Pr=e=>e.filter((e=>{var t,r;const n=(e=>{switch(e){case"REMEDIATION_LABS":return"labs";case kr:return"perSiteRemediation";default:return null}})(e.id);if(!n||!Z.paidAi)return!1;const i=null==K?void 0:K[n];if(!i)return!0;const o=!1!==(null==(r=null==(t=i.config)?void 0:t.mobile)?void 0:r.enabled);return i.enabled&&(!J||o)})),Fr=Object.freeze({isInitialRun:!1}),Ur=(()=>{let e,t,r=!1,n=[],i=null;const o=(a,l=Fr)=>{const{isInitialRun:s}=l;if(!a.length)return;if(r)return i&&clearTimeout(i),void(i=setTimeout((()=>{o(n),i=null}),800));r=!0;const u=()=>{r=!1};((e,t)=>{const r=e.map((e=>e.map((e=>e.run))));return Rr(r,t)})(s?[...e,...t]:e,a).then(u).catch(u).finally((()=>{if(s){Pr(Mr).forEach((e=>e()))}})),n=[]},{run:a}=ze(o),l=e=>{n.push(...e),a(n)},s=()=>{const e=(()=>{try{const e=k.join(","),t=M.map((e=>`[${e}]`)).join(",");return[...document.body.querySelectorAll(`*:not(${e}):not(${t})`),document.documentElement].filter((e=>!e.closest(t))).map((e=>e))}catch(e){return console.error(e),[]}})();a([...e],{isInitialRun:!0}),ue((e=>{if(!e.data)return;const{data:{action:t,type:r}}=e;t===Je&&mt[r]&&mt[r]()})),me(l)};return{run:a,init:()=>__async(this,null,(function*(){if((()=>{var e;if((null==(e=window.location)?void 0:e.pathname.indexOf("wp-admin"))>-1)return!0;if(!(null==K?void 0:K.commonSettings))return!1;const{mobile:t,disabledPages:r}=K.commonSettings.config;return!(!J||!t||t.enabled)||!!(null==r?void 0:r.some((e=>{var t;return(null==(t=window.location)?void 0:t.href.indexOf(e))>-1})))})())return;let r;r=yield Promise.resolve().then((()=>Rl)),e=r.RulesGroups.map((e=>Or(e))),t=r.RulesGroupsOnce.map((e=>{const t=Or(e);return"v2"!==z.screenReaderVersion?t.filter((e=>e.ruleId!==_r)):t})),z.tech_rem_on_tab||s();const n=ue((e=>{var t;(null==(t=null==e?void 0:e.data)?void 0:t.type)===se.KeyboardNavEnabled&&(s(),n())}))})),onDomUpdates:l}})();(()=>{__async(this,null,(function*(){var e;yield ie();const t=null!=(e=z.tech_rem_in_throttle_ms)?e:500;setTimeout((()=>{Ur.init(),((e=ce,t=de)=>{z.tech_rem_on_tab||ge.observe(e,t);const r=ue((n=>{var i;(null==(i=null==n?void 0:n.data)?void 0:i.type)===se.KeyboardNavEnabled&&(ge.observe(e,t),r())}))})()}),t)}))})(),_e.observe(Ee,ve),(()=>{const e=be.find((e=>e.url.includes(window.location.origin)));e&&ye(e.name)})();const Br=({ruleId:e,isTargetElement:t,rule:r,postMessageApi:n,forceRun:i})=>(n&&ue((e=>{const t=null==e?void 0:e.data;if(!t)return;const{type:r,action:i}=t;i!==le.Remediation&&i!==le.AriaEditor||n[r]&&n[r](t.data?t.data:t)})),{run:n=>__async(this,null,(function*(){try{if(!t)return void(yield r({context:{elements:n}}));const o=n.filter((r=>!r.hasAttribute(`uw-ignore-${e}`)&&t(r)));if(!o.length)return void(i&&(yield r({context:{elements:[]}})));yield r({context:{elements:o}})}catch(o){console.warn(o)}})),stop:()=>{},rerun:()=>{},ruleId:e}),Wr=e=>{if(!e)return null;const t=e.split("|")[0];return document.evaluate(t,document,null,XPathResult.FIRST_ORDERED_NODE_TYPE,null).singleNodeValue},$r=e=>!!["input","select","button","textarea","a"].includes(e.tagName.toLowerCase())||["button","checkbox","link","option"].includes((e.getAttribute("role")||"").toLowerCase()),jr=e=>!!k.includes(e.toLowerCase()),Vr=(e,t)=>("img"===e?t.getAttribute("alt"):t.getAttribute("aria-label"))||null,Hr=e=>e.getAttribute("role")||null,qr=e=>e.getAttribute("aria-level")||null,Gr=(e,t)=>"img"===e?t.getAttribute("src"):null,Xr=e=>{if(null==e?void 0:e.nextElementSibling){const t=e.nextElementSibling;return jr(t.tagName)?Xr(t):t}return null},Kr=e=>{if(null==e?void 0:e.previousElementSibling){const t=e.previousElementSibling;return jr(t.tagName)?Kr(t):t}return null},zr=e=>{var t;return null!=(t=e.uwAtoId)?t:null},Zr=e=>{if(!e.parentElement)return null;const{parentElement:t}=e,r=h(t);return dt().find((e=>e.xpath===r))?r:Zr(t)},Yr=e=>{const t=Array.from(e.childNodes).find((e=>e.uwAtoId));if(t){const e=h(t);return dt().find((t=>t.xpath===e))?e:null}return null},Qr=(e,t)=>{if(!e)return;const r=e,{tabindex:n,el:i}=r,o=__objRest(r,["tabindex","el"]),a=e.el?[...e.el.children]:[],l=t.filter((e=>a.includes(e.el)));if(l.length){const e=l.map((e=>Qr(e,t)));return __spreadProps(__spreadValues({},o),{children:e})}return o},Jr=(t,r="")=>{const n=[t];t.parentElement&&n.push(t.parentElement);let i=0;const o=(null==t?void 0:t.children)?[...t.children].filter((e=>!jr(e.tagName))).reverse():[];o.length&&(n.unshift(...o),i+=o.length);const a=Xr(t);a&&!n.includes(a)&&(n.splice(i,0,a),i+=1);const l=Kr(t);l&&!n.includes(l)&&n.splice(i+1,0,l);const s=n.map((e=>{const r=e.tagName.toLowerCase(),n=lt(e,!0);if(!n)return null;const{type:i,label:o,id:a}=n,l="function"==typeof e.getAttribute?{label:Vr(r,e),isHidden:(s=e,"true"===s.getAttribute("aria-hidden")||"presentation"===s.getAttribute("role")),role:Hr(e),ariaLevel:qr(e),src:Gr(r,e),isControl:$r(e),focusable:V(e),tabindex:j(e)}:{};var s;return __spreadValues({tagName:r,text:[...e.childNodes].filter((e=>e.nodeType===Node.TEXT_NODE)).map((e=>{var t;return null==(t=e.textContent)?void 0:t.trim()})).join(" ").trim(),id:a,xpath:h(e),selected:e===t,el:e,semanticType:i,textToRead:o,uwAtoId:zr(e),accessibleParentXpath:Zr(e),accessibleChildXpath:Yr(e)},l)})).filter(Boolean).reverse();if(s){const t=Qr(s[0],s);t&&e({action:Wt,type:"elements-selected",data:{tree:t,source:r}},[Pt])}};let en,tn;const rn=(e,t)=>{const r="img"===(null==e?void 0:e.tagName.toLowerCase());t&&!r&&e.setAttribute("aria-label",t)},nn=(e,t)=>{const{tabindex:r,role:n,ariaLevel:i}=t;r&&e.setAttribute("tabindex",r),n&&"no role"!==n?e.setAttribute("role",n):n&&"no role"!==n||e.removeAttribute("role"),i&&e.setAttribute("aria-level",i)},on=Br({ruleId:Ut,rule:()=>{if(!K.ariaEditor.enabled)return;const e=(()=>{let e=ne().AriaEditorValues;const t=`${b(window.location.pathname)}`;return e=e.filter((e=>!e.page||e.page===t)),e})();if(e)for(const t of e){const e=Wr(t.xpath);if(!e)continue;const r=e.nodeType===Node.ELEMENT_NODE,n=e.hasAttribute(Bt)&&t.processed;if(!r||n)continue;const{hidden:i,correction:o}=t;i&&e.setAttribute("aria-hidden","true"),rn(e,o),nn(e,t),e.setAttribute(Bt,""),t.processed=!0}},postMessageApi:{"add-aria-editor":()=>{tn=document.querySelector(`iframe[name=${Pt}]`),tn||(en=new Promise((e=>{const t={class:"userway_iframe_aria_editor",name:"uwAccessibilityEditor",title:"Aria Editor",src:Ft};tn=document.createElement("iframe"),Object.entries(t).forEach((([e,t])=>{null==tn||tn.setAttribute(e,t)})),tn.style="\n z-index: 2147483647;\n position: fixed;\n left: 0;\n top: 0;\n width: 100%!important;\n max-width: 100%!important;\n height: 100%!important;\n max-height: 100%!important;\n visibility: hidden;\n opacity: 0!important;\n border: none;\n display: block;\n ",tn.onload=()=>{e()},tn&&document.body.appendChild(tn)})))},"open-aria-editor":()=>{en.then((()=>{window.parent.postMessage({action:"close",isUserWay:!0}),window.parent.postMessage({action:"manageIconVisibility",isUserWay:!0,type:"hidden"}),tn&&(tn.style.visibility="visible",tn.style.opacity="1"),e({action:Wt,type:"aria-editor-open-request"},[Pt])}))},"close-aria-editor":()=>{window.parent.postMessage({action:"open",isUserWay:!0}),window.parent.postMessage({action:"manageIconVisibility",isUserWay:!0,type:"visible"}),tn&&(tn.style.visibility="hidden",tn.style.opacity="0"),e({action:Wt,type:"aria-editor-closed"},[Pt])},"editor-init":()=>{const t=Z,r=!(!t||!t.CUSTOM_BRANDING&&!t.WHITE_LABEL);e({action:Wt,type:"open-aria-editor",data:{siteId:Z.siteId,showTutorial:!0,whiteLabel:r,hash:b(window.location.pathname)}},[Pt])},"update-aria-hidden":e=>{const{xpath:t,hidden:r}=e;if(!t)return;const n=C(t);(null==n?void 0:n.nodeType)===Node.ELEMENT_NODE&&(r?n.setAttribute("aria-hidden","true"):n.removeAttribute("aria-hidden"),n.setAttribute(Bt,""))},"update-tabindex":e=>{const{xpath:t,focusable:r,isControl:n}=e;if(!t)return;const i=C(t);(null==i?void 0:i.nodeType)===Node.ELEMENT_NODE&&(n?i[r?"removeAttribute":"setAttribute"]("tabindex","-1"):i[r?"setAttribute":"removeAttribute"]("tabindex","0"),i.setAttribute(Bt,""))},"update-aria-label":e=>{const{xpath:t,label:r}=e;if(!t||null==r)return;const n=C(t);(null==n?void 0:n.nodeType)===Node.ELEMENT_NODE&&(n.setAttribute("aria-label",e.label),n.setAttribute(Bt,""))},"update-aria-level":e=>{const{xpath:t,ariaLevel:r}=e;if(!t)return;const n=C(t);(null==n?void 0:n.nodeType)===Node.ELEMENT_NODE&&(r?n.setAttribute("aria-level",r):n.removeAttribute("aria-level"),n.setAttribute(Bt,""))},"update-role":e=>{const{xpath:t,role:r}=e;if(!t)return;const n=C(t);if((null==n?void 0:n.nodeType)===Node.ELEMENT_NODE){r&&"no role"!==r?n.setAttribute("role",r):n.removeAttribute("role"),n.setAttribute(Bt,"")}},"select-elements-by-xpath":e=>{const{xpath:t,source:r}=e;if(!t)return;const n=C(t);n&&Jr(n,r)},"select-elements-at-point":e=>{const{position:{x:t,y:r}}=e;let n=document.elementsFromPoint(t,r);const i=n.findIndex((e=>e.getAttribute("name")===Pt));-1!==i&&n.splice(i,1),n=n.filter((e=>!["HTML","BODY"].includes(e.tagName))).slice(0,2),n.length&&Jr(n[0])},"update-aria-editor-config":e=>{const{page:t="",xpath:r=""}=e,n=ne().AriaEditorValues.findIndex((e=>e.page===t&&e.xpath===r)),i=ne().AriaEditorValues[n],o=__spreadValues(__spreadValues({},i),(e=>__spreadProps(__spreadValues({},e),{hidden:e.isHidden}))(e));-1!==n?ne().AriaEditorValues[n]=o:ne().AriaEditorValues.push(o)}}}),an=({currentSrc:e,src:t})=>e||t,ln=(e,t)=>{try{const r=e.getAttribute("height"),n=e.getAttribute("width"),{width:i,height:o}=window.getComputedStyle(e);return parseInt(n||i,10)>t&&parseInt(r||o,10)>t}catch(r){return!1}},sn=(e,{decorative:t,approved:r,fixedByUserWay:n,loadingFromMS:i,quotaExceeded:o})=>{var a;return{src:an(e),alt:e.alt,originalAlt:null!=(a=e.getAttribute(Ct))?a:"",decorative:t,approved:r,fixedByUserWay:n,loadingFromMS:i,quotaExceeded:o}},un=e=>{e.setAttribute("role","presentation"),e.removeAttribute("aria-hidden"),e.setAttribute("alt","")},cn=e=>{if(!e)return"";try{const{hostname:t}=new URL(e);return t.replace(/^https?:\/\//,"").replace(/^www\./,"").replace(/\.[a-zA-Z0-9]*$/,"")}catch(t){return""}},dn=e=>{const t=an(e);return Nt.test(t)},pn=e=>{const t=e.trim();if(new RegExp(`\\.(${kt.join("|")})$`,"i").test(t))return!0;if(t.length>500)return!0;if(!t)return!0;const r=t.split(/\s+/).length;if(/[0-9]{5,}/.test(t)&&1===r)return!0;return!!It.test(t)},{enabled:mn,config:gn}=(null==K?void 0:K.alt)||{enabled:!1,config:{}},fn=null==gn?void 0:gn.decorative,bn=(e,t="selectors")=>{if(!fn||!mn)return!1;const r=fn[t];return!!Array.isArray(r)&&r.some((t=>e.matches(t)))},hn=(e,t)=>{const r=e.alt.trim();if(!t||null===t.alt)return null;const{decorative:n,alt:i,approved:o,reverted:a}=t;if(a&&!n)return e.setAttribute(Rt,Dt.Reverted),sn(e,{approved:!0,decorative:!r,fixedByUserWay:!1,loadingFromMS:!1});const l=!(!K||"AUTO"===K.strategy)&&!o;!n||l||bn(e,"ignoreSelectors")||un(e);const s=o||!r||pn(r);i&&!l&&s&&!n&&e.setAttribute("alt",i),e.setAttribute(Rt,Dt.Backend);const u=sn(e,{approved:o,decorative:n,fixedByUserWay:!0,loadingFromMS:!1});return l&&(u.alt=i),u},An=e=>{const t=e.getAttribute("width"),r=e.getAttribute("height");if(t&&parseFloat(t)>0&&r&&parseFloat(r)>0)return!0;const{width:n,height:i}=window.getComputedStyle(e);try{if(0===parseFloat(n)&&0===parseFloat(i))return!1}catch(s){return!1}const o=/^\d*px?/i,a=o.test(n),l=o.test(i);return a&&l},yn=e=>{if(bn(e))return Lt.CUSTOM_CONFIG;const t=an(e),r=pn(e.alt),n=An(e);var i;if(!(i=t)||!i.match(Nt)&&![/^https?:\/\/.{1,256}\.[a-z]{2,63}\/.+$/gim,/^https?:\/\/[^:\/\s]{1,256}:\d{1,5}\/.+$/gim].some((e=>e.test(i))))return Lt.WRONG_SRC;if(!!n&&!ln(e,10)&&r)return Lt.MICRO_SIZE;if(!!n&&(e=>{try{const{width:t,height:r}=window.getComputedStyle(e),n=parseInt(t,10),i=parseInt(r,10);return!!(n<=20&&i>=10*n||i<=20&&n>=10*i)}catch(t){return!1}})(e))return Lt.ASPECT_RATIO;if(dn(e)&&r)return Lt.BASE64;if("true"===e.getAttribute("aria-hidden")||"presentation"===e.getAttribute("role")||"none"===e.getAttribute("role"))return Lt.HIDDEN_FROM_SCREEN_READER;if(xt.test(t)&&r)return Lt.SVG;return!(!n||ln(e,50))&&r?Lt.SMALL_SIZE:null},En=e=>{switch(e){case Lt.ASPECT_RATIO:return Dt.AspectRatio;case Lt.BASE64:return Dt.Base64;case Lt.EXCLUDED_SRC:return Dt.Excluded;case Lt.SVG:return Dt.Svg;case Lt.MICRO_SIZE:return Dt.Micro;case Lt.SMALL_SIZE:return Dt.Small;case Lt.WRONG_SRC:return Dt.InvalidSrc;case Lt.CUSTOM_CONFIG:return Dt.CustomConfig;case Lt.NOT_LOADED:return Dt.NotLoaded;case Lt.HIDDEN_FROM_SCREEN_READER:default:return Dt.Hidden}},vn=(e,t,r,n,i)=>{const o=UserWayWidgetApp.getLib("remediation_manager"),a=UserWayWidgetApp.getLib("remediation_helper_outcome");if(!a.of)return;const l=a.of(e,t?{items:t}:null,null!=i?i:null,r,n);o.HelperCallbackAggregator.onHelperRemediationCompleted(l)},_n=new Map,wn=e=>{const t=h(e);return _n.get(t)||null},Tn=e=>vn(Ot,e,e.filter((e=>e.fixedByUserWay)).length,e.filter((e=>!e.approved)).length),Nn=e=>{e.hasAttribute(Ct)||e.setAttribute(Ct,e.alt)},xn=(e,t=[])=>{if(0===e.length)return;const{paidAi:r}=Z,n=[];for(const i of e){const e=i,o=pn(e.alt),a=an(e),l=wn(e),s=bn(e,"ignoreSelectors");Nn(e),xt.test(a)&&r&&e.setAttribute("role","img");const u=t.find((e=>v(e.src).toLowerCase()===v(a).toLowerCase())),c=hn(e,u);if(c){n.push(c);continue}if(s){e.setAttribute(Rt,En(Lt.CUSTOM_CONFIG));continue}if(!r)continue;const d=null==l?void 0:l.shouldBeDecorativeReason;if(!o&&!d){e.setAttribute(Rt,Dt.CorrectAlt),n.push(sn(e,{approved:!0,decorative:!1,fixedByUserWay:!1}));continue}if(null==l?void 0:l.isThirdParty){un(e),e.setAttribute(Rt,Dt.ThirdParty);continue}if(void 0!==d){un(e),e.setAttribute(Rt,En(d)),d&&St.includes(d)&&n.push(sn(e,{approved:!1,decorative:!0,fixedByUserWay:!0}));continue}const p=null==l?void 0:l.relevantText;if(p){e.setAttribute("alt",p),e.setAttribute(Rt,Dt.ClosestText),n.push(sn(e,{approved:!1,decorative:!1,fixedByUserWay:!0}));continue}const{quota:m,usage:g}=Y;(null==u?void 0:u.metadata.quotaDepleted)||g>=m?(e.setAttribute(Rt,Dt.AIQuotaExceed),n.push(sn(e,{approved:!1,decorative:!1,fixedByUserWay:!0,quotaExceeded:!0}))):(e.setAttribute(Rt,Dt.AI),n.push(sn(e,{approved:!1,decorative:!1,fixedByUserWay:!0,loadingFromMS:!0})))}Tn(n)},In=e=>{const t=e.replace(/^https?:\/\//,"");return document.querySelectorAll(`img[src*="${t}" i],img[srcset*="${t}" i]`)},Ln=e=>__async(this,null,(function*(){const{account:t}=UserWayWidgetApp.ContextHolder.config,{siteId:r}=Z,{resourceHash:n}=Y,i=encodeURIComponent(e),o=yield fetch(`${ae}api/img-dscr/v2/${t}/${r}/${n}/alts.json?dto=${i}`,{method:"GET",headers:{"Content-Type":"application/json"}});return(yield o.json()).payload})),Sn=e=>{const t=`(.*\\.(${kt.join("|")}))\\?.*$`,r=new RegExp(t),n=e.match(r);if(!n){const t=new URL(e),r=[];let n=!1;return t.searchParams.forEach(((e,t)=>{kt.some((t=>e.endsWith(t)))?n=!0:r.push(t)})),n&&r.forEach((e=>t.searchParams.delete(e))),n?t.toString():e}return n&&n[1]?n[1]:e};var Cn=(e=>(e.RO="RO",e))(Cn||{});const On=(e,t)=>e.src.localeCompare(t.src),Rn=(e,t=1)=>{if(t>=15)return console.warn("Max split level exceed"),[];const r=((e,t)=>{const r=Math.ceil(e.length/t),n=[];for(let i=0;i8)return Rn(e,t+1);n.push(o)}return n},kn=["data-lazy-src","data-src","data-lazy"],Dn=e=>"lazy"===e.loading||(e=>kn.some((t=>e.hasAttribute(t))))(e),Mn=(e,t)=>{un(e),e.setAttribute(Rt,En(t))},Pn=(e,t,r)=>{e.addEventListener("load",(()=>{t()})),e.addEventListener("error",(()=>{Mn(e,Lt.NOT_LOADED),r()}))},Fn=e=>(e=>{if("string"!=typeof e)return!1;for(const t of Object.values(vt)){const r=new RegExp(t,"i");if(e.match(r))return!0}return!1})(e.src)?Promise.reject({image:e,decorativeReason:Lt.EXCLUDED_SRC}):e.getAttribute("src")||e.getAttribute("srcset")||Dn(e)?new Promise((e=>(t,r)=>{if((e=>e.complete&&0!==e.naturalHeight)(e))return void t(e);if(Dn(e))return void Pn(e,(()=>t(e)),(()=>r({image:e,decorativeReason:Lt.WRONG_SRC})));const n=new Image;Pn(n,(()=>t(e)),(()=>r({image:e,decorativeReason:Lt.WRONG_SRC}))),n.src=e.src})(e)):Promise.reject({image:e,decorativeReason:Lt.WRONG_SRC}),Un=e=>{const t=(e=>{const t=e.cloneNode(!0);var r;return t.setAttribute(Rt,""),(r=t)&&(r.style.setProperty("display","block","important"),r.style.setProperty("opacity","0","important"),r.style.setProperty("visibility","hidden","important"),r.style.setProperty("position","absolute","important"),r.style.setProperty("pointer-events","none","important"),r.style.setProperty("z-index","-999","important"),r.style.setProperty("bottom","0","important")),t})(e);return new Promise((r=>{t.addEventListener("load",(()=>{const e=yn(t);t.remove(),r(e)})),e.addEventListener("error",(()=>{t.remove(),r(null)})),document.body.appendChild(t)}))},Bn=e=>e?e.replace(/\n/g,"").replace(/ {2,}/g," ").trim():"",Wn=(e,t)=>{if(!e)return null;const r="next"===t.type?e.nextSibling:e.previousSibling;if((null==r?void 0:r.nodeType)===Node.TEXT_NODE){if(!Bn(r.nodeValue))return Wn(r,{type:t.type})}return r},$n=e=>{const t=e.nodeType===Node.ELEMENT_NODE,r=e instanceof Element&&"hide"===e.getAttribute(Mt);if(e.nodeType===Node.TEXT_NODE)return!0;if(t&&!r){const t=wt.some((t=>t===e.nodeName.toLowerCase())),r=Tt.some((t=>{var r;return t===(null==(r=e.getAttribute("role"))?void 0:r.toLowerCase())}));return t||r}return!1},jn=Array.from(new Set([...wt,"a","span","strong","em","b","i","q","mark"])),Vn=e=>{if((null==e?void 0:e.nodeType)===Node.TEXT_NODE){const t=Bn(e.nodeValue);if(t&&!pn(t))return t}if((null==e?void 0:e.nodeType)===Node.ELEMENT_NODE&&jn.includes(e.tagName.toLowerCase()))for(const t of e.childNodes){const e=Vn(t);if(e)return e}return null},Hn=e=>{const t=e.nodeType===Node.ELEMENT_NODE,r=e.nodeType===Node.TEXT_NODE;if(!r&&!t)return!1;if(t&&"img"===e.nodeName.toLowerCase())return!0;if(r)return!!Bn(e.textContent);const n=wt.some((t=>t===e.nodeName.toLowerCase())),i=Tt.some((t=>{var r;return t===(null==(r=e.getAttribute("role"))?void 0:r.toLowerCase())}));return n||i};let qn=0;const Gn=e=>{const t=e.parentElement;if(!t)return null;if(t.getElementsByTagName("img").length>1)return qn=0,null;if(1===[].slice.call(t.childNodes).filter(Hn).length)return Gn(t);const r=(e=>{let t=Wn(e,{type:"next"}),r=Wn(e,{type:"prev"}),n=null,i=null;for(;t||r;){t&&$n(t)&&(n=Vn(t)),r&&$n(r)&&(i=Vn(r));const e=n||i;if(e)return e;t=Wn(t,{type:"next"}),r=Wn(r,{type:"prev"})}return null})(e);return r?(qn=0,r):(qn+=1,"body"===t.tagName.toLowerCase()?(qn=0,null):qn<2?Gn(t):(qn=0,null))},Xn=e=>{const t=e.closest("figure");if(t){const e=Array.from(t.children).find((e=>"figcaption"===e.tagName.toLowerCase()));if(e){const t=Bn(e.textContent);if(t&&!pn(t))return t}}const r=[].slice.call(e.classList).join(" "),n=e.id||"",i=(o=r+n).trim()&&_t.find((e=>o.includes(e)))||null;var o;if(i)return i;const a=Gn(e);return a||null},Kn=e=>__async(this,null,(function*(){const t=[],r=[],n=(e=>{var t,r;const n=[];for(const i of e){const e=an(i),t=cn(e);if(t){let e=n.find((e=>e.name===t));e||(e={name:t,weight:0},n.push(e)),e.weight+=1}}return null!=(r=null==(t=n.sort(((e,t)=>e.weight__async(this,null,(function*(){const i=e,o=((e,t)=>{if(!An(e))return!1;const r=an(e);return cn(r)!==t&&!ln(e,20)})(i,n);let a=yn(i);const l="none"===window.getComputedStyle(i).display;a||!l||Dn(i)||o||(a=yield Un(i));const s=pn(i.alt),u=a&&!St.includes(a)||o||dn(i)||bn(i,"ignoreSelectors"),c={};if(a&&(c.shouldBeDecorativeReason=a),o&&(c.isThirdParty=o),u)r.push(i);else{if(s){const e=Xn(i);e&&(c.relevantText=e)}t.push(i)}Object.keys(c).length&&((e,t)=>{const r=h(e);_n.set(r,t)})(i,c)}))))),{imagesForBE:t,imagesNotForBE:r}})),zn=[],Zn=e=>__async(this,null,(function*(){const t=(e=>{const t=e,r=t.filter(((e,r)=>r===t.findIndex((t=>an(e)===an(t))))).map((e=>{const t=e,r=t.alt.trim(),n=r&&!pn(r),i=an(t),o=wn(t);return{src:Sn(i),alt:t.alt.trim(),dir:n||(null==o?void 0:o.shouldBeDecorativeReason)||(null==o?void 0:o.relevantText)?Cn.RO:void 0}}));return r.sort(On),r})(e),r=Rn(t);r.length&&(yield Promise.all(r.map((t=>__async(this,null,(function*(){try{const r=yield Ln(t);if(!r)return;const{missingAlts:n}=r,i=((e,t)=>e.filter((e=>t.some((t=>v(t.src)===v(an(e)))))))(e,n);xn(i,n)}catch(r){console.error("Get missing alts error: ",r)}}))))))})),Yn=(e,t)=>__async(this,null,(function*(){if(Y&&"ALTS_OFF"!==Y.state)try{const{imagesForBE:t,imagesNotForBE:r}=yield Kn(e);xn(r),yield Zn(t),zn.length=0}catch(r){console.error("Error during image alt rule processing:",r)}finally{t()}})),Qn=Ge(((e,t)=>Yn(e,t)),1e3,{maxWait:2e3,leading:!1,trailing:!0}),Jn=Br({ruleId:Ot,rule:({context:{elements:e}})=>new Promise((t=>{const r=e.reduce(((e,t)=>{const r=Fn(t);return r?[...e,r]:e}),[]);let n=0;const i=r.map((e=>e.then((e=>{zn.push(e),Qn(zn,t)})).catch((({image:e,decorativeReason:t})=>{Mn(e,t),n++}))));Promise.all(i).then((()=>{r.length===n&&t()}))})),isTargetElement:e=>{const t="img"===e.tagName.toLowerCase(),r=e.hasAttribute(Rt);return!(!t||r)},postMessageApi:{"image-alt-update":({src:e,decorative:t,alt:r,role:n})=>{const i=In(e);if(i.length){for(const e of i)e.setAttribute("alt",null!=r?r:""),t?un(e):("presentation"!==e.getAttribute("role")&&"none"!==e.getAttribute("role")||e.removeAttribute("role"),e.hasAttribute("aria-hidden")&&e.removeAttribute("aria-hidden")),["link","button","heading"].includes(n)&&e.setAttribute("aria-label",r);Tn([sn(i[0],{approved:!0,decorative:t,fixedByUserWay:!1})])}},"image-alt-revert":({src:e})=>{const t=In(e);for(const r of t){const e=r.getAttribute(Ct);null!==e&&r.setAttribute("alt",e)}}}}),ei=e=>{const{tagName:t}=e;return"SELECT"===t||"TEXTAREA"===t?t.toLowerCase():"text"},ti=e=>{const t=e.getAttribute("id");if(!t)return null;try{return document.querySelector(`label[for='${t}']`)}catch(r){return null}},ri=e=>{const t="string"==typeof e?e:e.textContent;return t&&t.replace(/\r\n|\r|\n|\t/g," ").replace(/( )+/g," ").trim()},ni=(e,t)=>{for(const[r,n]of t)if(n.test(e))return r;return""},ii=e=>{let t="";const r=e.getAttribute("placeholder"),n=e.getAttribute("title");if(r&&r.trim())return r;if(n&&n.trim())return n;const{classList:i,name:o,tagName:a,type:l}=e,s=`${[...i].join(" ")||""} ${o||""}`.trim();return"text"===l&&(t=ni(s,Jt)),"SELECT"===a&&(t=ni(s,er)),t||(e=>{const{tagName:t,type:r}=e;return"SELECT"===t?"select-multiple"===r?"Multiple select":"Single select":"TEXTAREA"===t?"Text area":"INPUT"===t&&r&&Qt[r.replace("-","_")]?Qt[r.replace("-","_")]:""})(e)},oi=e=>{if(e.parentElement){const t=[...e.parentElement.querySelectorAll("label")];if(1===t.length&&(e=>{const t="LABEL"===e.tagName,r=e.getAttribute("for");return t&&(!(null==r?void 0:r.trim())||!document.getElementById(r))})(t[0]))return t[0].textContent}return null},ai=e=>{const t=e.previousElementSibling;return t&&(e=>{var t;return["DIV","SPAN","P"].includes(e.tagName)&&Boolean(null==(t=e.textContent)?void 0:t.trim())})(t)?(K.strategy===Xe&&((e,t)=>{const r=t.getAttribute("id")||g();t.setAttribute("id",r),e.setAttribute("aria-labelledby",r)})(e,t),t.textContent):null},li=({element:e,accessibleName:t,isRequired:r,isAutoStrategy:n=!0})=>{if(!n)return;const i=e.closest("label"),o=ti(e);r?(e.setAttribute("required",""),e.setAttribute("aria-required","true")):(e.removeAttribute("required"),e.removeAttribute("aria-required"));const a=i||o;if(a){const e=a.querySelector("span[data-uw-reader-element]");if(e)e.textContent=t;else{const e=f(t);a.appendChild(e)}}else e.hasAttribute("aria-labelledby")||e.setAttribute("aria-label",t)},si=e=>{const t=e.getAttribute("aria-labelledby");if(t){const e=(e=>{var t;const r=e.split(" "),n=[];for(const i of r){const e=null==(t=document.getElementById(i))?void 0:t.textContent;e&&n.push(e)}return n.join(" ")})(t);if(e){const t=ri(e);if(t)return t}}const r=e.getAttribute("aria-label");if(r){const e=ri(r);if(e)return e}const n=e.closest("label");if(n){const e=(e=>{let t=e.textContent||"";const r=e.querySelector("select");if(r){const e=r.textContent||"";t=t.replace(e,"")}return t.trim()})(n);if(e)return ri(e)}const i=ti(e);if(i){const e=ri(i);if(e)return e}return null},ui=(e,t,r,n)=>{const{Forms:i}=ne(),o=si(e),a=i.find((({xpath:e,approved:t})=>t&&+e===b(r)));return o&&(e=>{const t=ti(e);if(!t)return!1;const{display:r,visibility:n}=getComputedStyle(t);return"none"===r||"hidden"===n})(e)&&e.setAttribute("aria-label",o),a?(li({element:e,accessibleName:a.correction,isRequired:a.required}),{type:a.type,xpath:r,required:a.required,correction:a.correction,approved:a.approved,xpathHash:b(r),label:o}):o?(e.setAttribute(Kt,"nfx"),{type:t,xpath:r,correction:o,approved:!0,xpathHash:b(r),label:o,required:n}):null},ci=e=>{r(e,{shouldBeInViewport:!1})||(e.setAttribute("aria-label",Yt),e.setAttribute(Zt,Yt),O(e,(()=>{e.hasAttribute(Zt)&&e.hasAttribute("aria-label")&&e.getAttribute(Zt)===e.getAttribute("aria-label")&&(e.removeAttribute(Zt),e.removeAttribute("aria-label"))})));const t=oi(e);if(t)return t;const n=ai(e);if(n)return n;const i=ii(e);return i||null},di=Br({ruleId:Xt,rule:({context:{elements:e}})=>{const t=[];for(const r of e){r.setAttribute(Kt,"fx");const e=r.hasAttribute("required"),n=K.strategy===Xe,i=h(r),o=ei(r),a=ui(r,o,i,e);if(a){t.push(a);continue}const l=ci(r);l?(li({element:r,accessibleName:l,isRequired:e,isAutoStrategy:n}),t.push({type:o,xpath:i,correction:l,approved:!1,xpathHash:b(i),label:null,required:e})):t.push({type:o,xpath:i,correction:null,approved:!1,xpathHash:b(i),label:null,required:e})}vn(Xt,t,t.filter((e=>e.approved)).length,t.filter((e=>!e.approved)).length)},isTargetElement:e=>{const t=zt.includes(e.tagName);if(e.hasAttribute(Kt)||!t)return!1;const r=e.getAttribute("type");return!("SELECT"!==e.tagName&&"TEXTAREA"!==e.tagName&&("INPUT"!==e.tagName||"hidden"===r))},postMessageApi:{"form-label-update":({correction:e,required:t,xpath:r})=>{const n=C(r.toString());n&&(e&&(n.setAttribute("aria-label",e),n.removeAttribute("aria-labelledby")),t?(n.setAttribute("required",""),n.setAttribute("aria-required","true")):(n.removeAttribute("required"),n.removeAttribute("aria-required")))}}}),pi=e=>{if(!e.hasAttribute("href"))return null;const t=e.getAttribute("href").toLowerCase().match(/^https?:\/\/(?:www\.)?([^/?#]+)/);return t?t[1]:null},mi={},gi=e=>{const t=e.tagName.toLowerCase(),r=null==e?void 0:e.type,n=e.getAttribute("role");return"summary"===t?"":["a","button"].includes(t)?"a"===t?"":"