diff --git a/bookmarklet/apca.js b/bookmarklet/apca.js index 16814024..1a455182 100644 --- a/bookmarklet/apca.js +++ b/bookmarklet/apca.js @@ -1 +1 @@ -!function(e){"function"==typeof define&&define.amd?define(e):e()}(function(){"use strict";const e="4.2.0";(()=>{const n=document.createElement("div");n.id="sa11y-loading";const t=n.attachShadow({mode:"open"}),o=document.createElement("div");o.classList.add("loader"),o.innerHTML='\n\n\n\x3c!-- Credit: https://codepen.io/aurer/pen/ZEJxpO --\x3e\n\n \n \n \n',t.appendChild(o),document.body.appendChild(n);const s=(document.documentElement.lang||"en").split("-");let i=s[0];const d=s[1]?s[1].toLowerCase():"";["bg","cs","da","de","el","en","es","et","fi","fr","hu","id","it","ja","ko","lt","lv","nb","nl","pl","pt","ro","sl","sk","sv","tr","uk","ua","zh"].includes(i)?"pt"===i?i="br"===d?"ptBR":"ptPT":"uk"===i?i="ua":"en"===i&&(i="us"===d?"enUS":"en"):i="en",new Promise((n,t)=>{const o=document.createElement("link");o.rel="stylesheet",o.href=`https://cdn.jsdelivr.net/gh/ryersondmp/sa11y@${e}/dist/css/sa11y.min.css`,o.onload=n,o.onerror=t,document.head.appendChild(o)}).then(()=>(n=>new Promise((t,o)=>{const s=document.createElement("script");s.src=`https://cdn.jsdelivr.net/combine/gh/ryersondmp/sa11y@${e}/dist/js/lang/${n}.umd.min.js,gh/ryersondmp/sa11y@${e}/dist/js/sa11y.umd.min.js`,s.onload=t,s.onerror=o,document.body.appendChild(s)}))(i)).then(()=>(e=>{const n=()=>{const n=`Sa11yLang${e.charAt(0).toUpperCase()+e.slice(1)}`;Sa11y.Lang.addI18n(window[n].strings),new Sa11y.Sa11y({autoDetectShadowComponents:!0,customChecks:!1,exportResultsPlugin:!0,detectSPArouting:!0,contrastAPCA:!0})};if(window.location.href.includes("https://360.articulate.com/review/content")){const e=document.querySelector("iframe.player"),t=e.getAttribute("src");e&&t?(document.getElementById("sa11y-loading").remove(),window.confirm("Press OK to be redirected to a page where you can check the accessibility of the content. The page will open in a new tab.")&&window.open(t,"_blank")):n()}else n(),document.getElementById("sa11y-loading").remove()})(i)).catch(e=>new Error("Error loading Sa11y:",e))})()}); +!function(e){"function"==typeof define&&define.amd?define(e):e()}(function(){"use strict";const e="4.2.1";(()=>{const n=document.createElement("div");n.id="sa11y-loading";const t=n.attachShadow({mode:"open"}),o=document.createElement("div");o.classList.add("loader"),o.innerHTML='\n\n\n\x3c!-- Credit: https://codepen.io/aurer/pen/ZEJxpO --\x3e\n\n \n \n \n',t.appendChild(o),document.body.appendChild(n);const s=(document.documentElement.lang||"en").split("-");let i=s[0];const d=s[1]?s[1].toLowerCase():"";["bg","cs","da","de","el","en","es","et","fi","fr","hu","id","it","ja","ko","lt","lv","nb","nl","pl","pt","ro","sl","sk","sv","tr","uk","ua","zh"].includes(i)?"pt"===i?i="br"===d?"ptBR":"ptPT":"uk"===i?i="ua":"en"===i&&(i="us"===d?"enUS":"en"):i="en",new Promise((n,t)=>{const o=document.createElement("link");o.rel="stylesheet",o.href=`https://cdn.jsdelivr.net/gh/ryersondmp/sa11y@${e}/dist/css/sa11y.min.css`,o.onload=n,o.onerror=t,document.head.appendChild(o)}).then(()=>(n=>new Promise((t,o)=>{const s=document.createElement("script");s.src=`https://cdn.jsdelivr.net/combine/gh/ryersondmp/sa11y@${e}/dist/js/lang/${n}.umd.min.js,gh/ryersondmp/sa11y@${e}/dist/js/sa11y.umd.min.js`,s.onload=t,s.onerror=o,document.body.appendChild(s)}))(i)).then(()=>(e=>{const n=()=>{const n=`Sa11yLang${e.charAt(0).toUpperCase()+e.slice(1)}`;Sa11y.Lang.addI18n(window[n].strings),new Sa11y.Sa11y({autoDetectShadowComponents:!0,customChecks:!1,exportResultsPlugin:!0,detectSPArouting:!0,contrastAPCA:!0})};if(window.location.href.includes("https://360.articulate.com/review/content")){const e=document.querySelector("iframe.player"),t=e.getAttribute("src");e&&t?(document.getElementById("sa11y-loading").remove(),window.confirm("Press OK to be redirected to a page where you can check the accessibility of the content. The page will open in a new tab.")&&window.open(t,"_blank")):n()}else n(),document.getElementById("sa11y-loading").remove()})(i)).catch(e=>new Error("Error loading Sa11y:",e))})()}); diff --git a/bookmarklet/unminified.js b/bookmarklet/unminified.js index d1d0cb43..a51d2b93 100644 --- a/bookmarklet/unminified.js +++ b/bookmarklet/unminified.js @@ -1 +1 @@ -!function(e){"function"==typeof define&&define.amd?define(e):e()}(function(){"use strict";const e="4.2.0";(()=>{const n=document.createElement("div");n.id="sa11y-loading";const t=n.attachShadow({mode:"open"}),o=document.createElement("div");o.classList.add("loader"),o.innerHTML='\n\n\n\x3c!-- Credit: https://codepen.io/aurer/pen/ZEJxpO --\x3e\n\n \n \n \n',t.appendChild(o),document.body.appendChild(n);const s=(document.documentElement.lang||"en").split("-");let d=s[0];const i=s[1]?s[1].toLowerCase():"";["bg","cs","da","de","el","en","es","et","fi","fr","hu","id","it","ja","ko","lt","lv","nb","nl","pl","pt","ro","sl","sk","sv","tr","uk","ua","zh"].includes(d)?"pt"===d?d="br"===i?"ptBR":"ptPT":"uk"===d?d="ua":"en"===d&&(d="us"===i?"enUS":"en"):d="en",new Promise((n,t)=>{const o=document.createElement("link");o.rel="stylesheet",o.href=`https://cdn.jsdelivr.net/gh/ryersondmp/sa11y@${e}/dist/css/sa11y.min.css`,o.onload=n,o.onerror=t,document.head.appendChild(o)}).then(()=>(n=>new Promise((t,o)=>{const s=document.createElement("script");s.src=`https://cdn.jsdelivr.net/combine/gh/ryersondmp/sa11y@${e}/dist/js/lang/${n}.umd.js,gh/ryersondmp/sa11y@${e}/dist/js/sa11y.umd.js`,s.onload=t,s.onerror=o,document.body.appendChild(s)}))(d)).then(()=>(e=>{const n=()=>{const n=`Sa11yLang${e.charAt(0).toUpperCase()+e.slice(1)}`;Sa11y.Lang.addI18n(window[n].strings),new Sa11y.Sa11y({autoDetectShadowComponents:!0,customChecks:!1,exportResultsPlugin:!0,detectSPArouting:!0})};if(window.location.href.includes("https://360.articulate.com/review/content")){const e=document.querySelector("iframe.player"),t=e.getAttribute("src");e&&t?(document.getElementById("sa11y-loading").remove(),window.confirm("Press OK to be redirected to a page where you can check the accessibility of the content. The page will open in a new tab.")&&window.open(t,"_blank")):n()}else n(),document.getElementById("sa11y-loading").remove()})(d)).catch(e=>new Error("Error loading Sa11y:",e))})()}); +!function(e){"function"==typeof define&&define.amd?define(e):e()}(function(){"use strict";const e="4.2.1";(()=>{const n=document.createElement("div");n.id="sa11y-loading";const t=n.attachShadow({mode:"open"}),o=document.createElement("div");o.classList.add("loader"),o.innerHTML='\n\n\n\x3c!-- Credit: https://codepen.io/aurer/pen/ZEJxpO --\x3e\n\n \n \n \n',t.appendChild(o),document.body.appendChild(n);const s=(document.documentElement.lang||"en").split("-");let d=s[0];const i=s[1]?s[1].toLowerCase():"";["bg","cs","da","de","el","en","es","et","fi","fr","hu","id","it","ja","ko","lt","lv","nb","nl","pl","pt","ro","sl","sk","sv","tr","uk","ua","zh"].includes(d)?"pt"===d?d="br"===i?"ptBR":"ptPT":"uk"===d?d="ua":"en"===d&&(d="us"===i?"enUS":"en"):d="en",new Promise((n,t)=>{const o=document.createElement("link");o.rel="stylesheet",o.href=`https://cdn.jsdelivr.net/gh/ryersondmp/sa11y@${e}/dist/css/sa11y.min.css`,o.onload=n,o.onerror=t,document.head.appendChild(o)}).then(()=>(n=>new Promise((t,o)=>{const s=document.createElement("script");s.src=`https://cdn.jsdelivr.net/combine/gh/ryersondmp/sa11y@${e}/dist/js/lang/${n}.umd.js,gh/ryersondmp/sa11y@${e}/dist/js/sa11y.umd.js`,s.onload=t,s.onerror=o,document.body.appendChild(s)}))(d)).then(()=>(e=>{const n=()=>{const n=`Sa11yLang${e.charAt(0).toUpperCase()+e.slice(1)}`;Sa11y.Lang.addI18n(window[n].strings),new Sa11y.Sa11y({autoDetectShadowComponents:!0,customChecks:!1,exportResultsPlugin:!0,detectSPArouting:!0})};if(window.location.href.includes("https://360.articulate.com/review/content")){const e=document.querySelector("iframe.player"),t=e.getAttribute("src");e&&t?(document.getElementById("sa11y-loading").remove(),window.confirm("Press OK to be redirected to a page where you can check the accessibility of the content. The page will open in a new tab.")&&window.open(t,"_blank")):n()}else n(),document.getElementById("sa11y-loading").remove()})(d)).catch(e=>new Error("Error loading Sa11y:",e))})()}); diff --git a/bookmarklet/v2-en.js b/bookmarklet/v2-en.js index 799e8431..8eb54bca 100644 --- a/bookmarklet/v2-en.js +++ b/bookmarklet/v2-en.js @@ -1 +1 @@ -!function(e){"function"==typeof define&&define.amd?define(e):e()}(function(){"use strict";const e="4.2.0";(()=>{const n=document.createElement("div");n.id="sa11y-loading";const t=n.attachShadow({mode:"open"}),o=document.createElement("div");o.classList.add("loader"),o.innerHTML='\n\n\n\x3c!-- Credit: https://codepen.io/aurer/pen/ZEJxpO --\x3e\n\n \n \n \n',t.appendChild(o),document.body.appendChild(n),new Promise((n,t)=>{const o=document.createElement("link");o.rel="stylesheet",o.href=`https://cdn.jsdelivr.net/gh/ryersondmp/sa11y@${e}/dist/css/sa11y.min.css`,o.onload=n,o.onerror=t,document.head.appendChild(o)}).then(()=>new Promise((n,t)=>{const o=document.createElement("script");o.src=`https://cdn.jsdelivr.net/combine/gh/ryersondmp/sa11y@${e}/dist/js/lang/en.umd.min.js,gh/ryersondmp/sa11y@${e}/dist/js/sa11y.umd.min.js`,o.onload=n,o.onerror=t,document.body.appendChild(o)})).then(()=>(()=>{const e=()=>{Sa11y.Lang.addI18n(Sa11yLangEn.strings),new Sa11y.Sa11y({autoDetectShadowComponents:!0,customChecks:!1,exportResultsPlugin:!0,detectSPArouting:!0})};if(window.location.href.includes("https://360.articulate.com/review/content")){const n=document.querySelector("iframe.player"),t=n.getAttribute("src");n&&t?(document.getElementById("sa11y-loading").remove(),window.confirm("Press OK to be redirected to a page where you can check the accessibility of the content. The page will open in a new tab.")&&window.open(t,"_blank")):e()}else e(),document.getElementById("sa11y-loading").remove()})()).catch(e=>new Error("Error loading Sa11y:",e))})()}); +!function(e){"function"==typeof define&&define.amd?define(e):e()}(function(){"use strict";const e="4.2.1";(()=>{const n=document.createElement("div");n.id="sa11y-loading";const t=n.attachShadow({mode:"open"}),o=document.createElement("div");o.classList.add("loader"),o.innerHTML='\n\n\n\x3c!-- Credit: https://codepen.io/aurer/pen/ZEJxpO --\x3e\n\n \n \n \n',t.appendChild(o),document.body.appendChild(n),new Promise((n,t)=>{const o=document.createElement("link");o.rel="stylesheet",o.href=`https://cdn.jsdelivr.net/gh/ryersondmp/sa11y@${e}/dist/css/sa11y.min.css`,o.onload=n,o.onerror=t,document.head.appendChild(o)}).then(()=>new Promise((n,t)=>{const o=document.createElement("script");o.src=`https://cdn.jsdelivr.net/combine/gh/ryersondmp/sa11y@${e}/dist/js/lang/en.umd.min.js,gh/ryersondmp/sa11y@${e}/dist/js/sa11y.umd.min.js`,o.onload=n,o.onerror=t,document.body.appendChild(o)})).then(()=>(()=>{const e=()=>{Sa11y.Lang.addI18n(Sa11yLangEn.strings),new Sa11y.Sa11y({autoDetectShadowComponents:!0,customChecks:!1,exportResultsPlugin:!0,detectSPArouting:!0})};if(window.location.href.includes("https://360.articulate.com/review/content")){const n=document.querySelector("iframe.player"),t=n.getAttribute("src");n&&t?(document.getElementById("sa11y-loading").remove(),window.confirm("Press OK to be redirected to a page where you can check the accessibility of the content. The page will open in a new tab.")&&window.open(t,"_blank")):e()}else e(),document.getElementById("sa11y-loading").remove()})()).catch(e=>new Error("Error loading Sa11y:",e))})()}); diff --git a/bookmarklet/v2.js b/bookmarklet/v2.js index 9863f542..7d279063 100644 --- a/bookmarklet/v2.js +++ b/bookmarklet/v2.js @@ -1 +1 @@ -!function(e){"function"==typeof define&&define.amd?define(e):e()}(function(){"use strict";const e="4.2.0";(()=>{const n=document.createElement("div");n.id="sa11y-loading";const t=n.attachShadow({mode:"open"}),o=document.createElement("div");o.classList.add("loader"),o.innerHTML='\n\n\n\x3c!-- Credit: https://codepen.io/aurer/pen/ZEJxpO --\x3e\n\n \n \n \n',t.appendChild(o),document.body.appendChild(n);const s=(document.documentElement.lang||"en").split("-");let i=s[0];const d=s[1]?s[1].toLowerCase():"";["bg","cs","da","de","el","en","es","et","fi","fr","hu","id","it","ja","ko","lt","lv","nb","nl","pl","pt","ro","sl","sk","sv","tr","uk","ua","zh"].includes(i)?"pt"===i?i="br"===d?"ptBR":"ptPT":"uk"===i?i="ua":"en"===i&&(i="us"===d?"enUS":"en"):i="en",new Promise((n,t)=>{const o=document.createElement("link");o.rel="stylesheet",o.href=`https://cdn.jsdelivr.net/gh/ryersondmp/sa11y@${e}/dist/css/sa11y.min.css`,o.onload=n,o.onerror=t,document.head.appendChild(o)}).then(()=>(n=>new Promise((t,o)=>{const s=document.createElement("script");s.src=`https://cdn.jsdelivr.net/combine/gh/ryersondmp/sa11y@${e}/dist/js/lang/${n}.umd.min.js,gh/ryersondmp/sa11y@${e}/dist/js/sa11y.umd.min.js`,s.onload=t,s.onerror=o,document.body.appendChild(s)}))(i)).then(()=>(e=>{const n=()=>{const n=`Sa11yLang${e.charAt(0).toUpperCase()+e.slice(1)}`;Sa11y.Lang.addI18n(window[n].strings),new Sa11y.Sa11y({autoDetectShadowComponents:!0,customChecks:!1,exportResultsPlugin:!0,detectSPArouting:!0})};if(window.location.href.includes("https://360.articulate.com/review/content")){const e=document.querySelector("iframe.player"),t=e.getAttribute("src");e&&t?(document.getElementById("sa11y-loading").remove(),window.confirm("Press OK to be redirected to a page where you can check the accessibility of the content. The page will open in a new tab.")&&window.open(t,"_blank")):n()}else n(),document.getElementById("sa11y-loading").remove()})(i)).catch(e=>new Error("Error loading Sa11y:",e))})()}); +!function(e){"function"==typeof define&&define.amd?define(e):e()}(function(){"use strict";const e="4.2.1";(()=>{const n=document.createElement("div");n.id="sa11y-loading";const t=n.attachShadow({mode:"open"}),o=document.createElement("div");o.classList.add("loader"),o.innerHTML='\n\n\n\x3c!-- Credit: https://codepen.io/aurer/pen/ZEJxpO --\x3e\n\n \n \n \n',t.appendChild(o),document.body.appendChild(n);const s=(document.documentElement.lang||"en").split("-");let i=s[0];const d=s[1]?s[1].toLowerCase():"";["bg","cs","da","de","el","en","es","et","fi","fr","hu","id","it","ja","ko","lt","lv","nb","nl","pl","pt","ro","sl","sk","sv","tr","uk","ua","zh"].includes(i)?"pt"===i?i="br"===d?"ptBR":"ptPT":"uk"===i?i="ua":"en"===i&&(i="us"===d?"enUS":"en"):i="en",new Promise((n,t)=>{const o=document.createElement("link");o.rel="stylesheet",o.href=`https://cdn.jsdelivr.net/gh/ryersondmp/sa11y@${e}/dist/css/sa11y.min.css`,o.onload=n,o.onerror=t,document.head.appendChild(o)}).then(()=>(n=>new Promise((t,o)=>{const s=document.createElement("script");s.src=`https://cdn.jsdelivr.net/combine/gh/ryersondmp/sa11y@${e}/dist/js/lang/${n}.umd.min.js,gh/ryersondmp/sa11y@${e}/dist/js/sa11y.umd.min.js`,s.onload=t,s.onerror=o,document.body.appendChild(s)}))(i)).then(()=>(e=>{const n=()=>{const n=`Sa11yLang${e.charAt(0).toUpperCase()+e.slice(1)}`;Sa11y.Lang.addI18n(window[n].strings),new Sa11y.Sa11y({autoDetectShadowComponents:!0,customChecks:!1,exportResultsPlugin:!0,detectSPArouting:!0})};if(window.location.href.includes("https://360.articulate.com/review/content")){const e=document.querySelector("iframe.player"),t=e.getAttribute("src");e&&t?(document.getElementById("sa11y-loading").remove(),window.confirm("Press OK to be redirected to a page where you can check the accessibility of the content. The page will open in a new tab.")&&window.open(t,"_blank")):n()}else n(),document.getElementById("sa11y-loading").remove()})(i)).catch(e=>new Error("Error loading Sa11y:",e))})()}); diff --git a/dist/js/lang/bg.js b/dist/js/lang/bg.js index 85b595bb..46239170 100644 --- a/dist/js/lang/bg.js +++ b/dist/js/lang/bg.js @@ -1,7 +1,7 @@ /*! * Sa11y, the accessibility quality assurance assistant. - * @version 4.2.0 + * @version 4.2.1 * @author Adam Chaboryk * @license GPL-2.0-or-later * @copyright © 2020 - 2025 Toronto Metropolitan University. diff --git a/dist/js/lang/bg.umd.js b/dist/js/lang/bg.umd.js index b54220a3..80225ca4 100644 --- a/dist/js/lang/bg.umd.js +++ b/dist/js/lang/bg.umd.js @@ -1,7 +1,7 @@ /*! * Sa11y, the accessibility quality assurance assistant. - * @version 4.2.0 + * @version 4.2.1 * @author Adam Chaboryk * @license GPL-2.0-or-later * @copyright © 2020 - 2025 Toronto Metropolitan University. diff --git a/dist/js/lang/cs.js b/dist/js/lang/cs.js index 6cf7b9a0..486c2dfa 100644 --- a/dist/js/lang/cs.js +++ b/dist/js/lang/cs.js @@ -1,7 +1,7 @@ /*! * Sa11y, the accessibility quality assurance assistant. - * @version 4.2.0 + * @version 4.2.1 * @author Adam Chaboryk * @license GPL-2.0-or-later * @copyright © 2020 - 2025 Toronto Metropolitan University. diff --git a/dist/js/lang/cs.umd.js b/dist/js/lang/cs.umd.js index 703e6df7..c45fdcb6 100644 --- a/dist/js/lang/cs.umd.js +++ b/dist/js/lang/cs.umd.js @@ -1,7 +1,7 @@ /*! * Sa11y, the accessibility quality assurance assistant. - * @version 4.2.0 + * @version 4.2.1 * @author Adam Chaboryk * @license GPL-2.0-or-later * @copyright © 2020 - 2025 Toronto Metropolitan University. diff --git a/dist/js/lang/da.js b/dist/js/lang/da.js index 4330a3c4..7135a844 100644 --- a/dist/js/lang/da.js +++ b/dist/js/lang/da.js @@ -1,7 +1,7 @@ /*! * Sa11y, the accessibility quality assurance assistant. - * @version 4.2.0 + * @version 4.2.1 * @author Adam Chaboryk * @license GPL-2.0-or-later * @copyright © 2020 - 2025 Toronto Metropolitan University. diff --git a/dist/js/lang/da.umd.js b/dist/js/lang/da.umd.js index a0334828..7d1c050a 100644 --- a/dist/js/lang/da.umd.js +++ b/dist/js/lang/da.umd.js @@ -1,7 +1,7 @@ /*! * Sa11y, the accessibility quality assurance assistant. - * @version 4.2.0 + * @version 4.2.1 * @author Adam Chaboryk * @license GPL-2.0-or-later * @copyright © 2020 - 2025 Toronto Metropolitan University. diff --git a/dist/js/lang/de.js b/dist/js/lang/de.js index 90a70a10..bccfba77 100644 --- a/dist/js/lang/de.js +++ b/dist/js/lang/de.js @@ -1,7 +1,7 @@ /*! * Sa11y, the accessibility quality assurance assistant. - * @version 4.2.0 + * @version 4.2.1 * @author Adam Chaboryk * @license GPL-2.0-or-later * @copyright © 2020 - 2025 Toronto Metropolitan University. diff --git a/dist/js/lang/de.umd.js b/dist/js/lang/de.umd.js index cfc7272f..fec88221 100644 --- a/dist/js/lang/de.umd.js +++ b/dist/js/lang/de.umd.js @@ -1,7 +1,7 @@ /*! * Sa11y, the accessibility quality assurance assistant. - * @version 4.2.0 + * @version 4.2.1 * @author Adam Chaboryk * @license GPL-2.0-or-later * @copyright © 2020 - 2025 Toronto Metropolitan University. diff --git a/dist/js/lang/el.js b/dist/js/lang/el.js index 3cce21ec..2c3a3881 100644 --- a/dist/js/lang/el.js +++ b/dist/js/lang/el.js @@ -1,7 +1,7 @@ /*! * Sa11y, the accessibility quality assurance assistant. - * @version 4.2.0 + * @version 4.2.1 * @author Adam Chaboryk * @license GPL-2.0-or-later * @copyright © 2020 - 2025 Toronto Metropolitan University. diff --git a/dist/js/lang/el.umd.js b/dist/js/lang/el.umd.js index 71502d9f..60589c47 100644 --- a/dist/js/lang/el.umd.js +++ b/dist/js/lang/el.umd.js @@ -1,7 +1,7 @@ /*! * Sa11y, the accessibility quality assurance assistant. - * @version 4.2.0 + * @version 4.2.1 * @author Adam Chaboryk * @license GPL-2.0-or-later * @copyright © 2020 - 2025 Toronto Metropolitan University. diff --git a/dist/js/lang/en.js b/dist/js/lang/en.js index 2fe072ec..d5425866 100644 --- a/dist/js/lang/en.js +++ b/dist/js/lang/en.js @@ -1,7 +1,7 @@ /*! * Sa11y, the accessibility quality assurance assistant. - * @version 4.2.0 + * @version 4.2.1 * @author Adam Chaboryk * @license GPL-2.0-or-later * @copyright © 2020 - 2025 Toronto Metropolitan University. diff --git a/dist/js/lang/en.umd.js b/dist/js/lang/en.umd.js index 2e18d8d9..3a4c7544 100644 --- a/dist/js/lang/en.umd.js +++ b/dist/js/lang/en.umd.js @@ -1,7 +1,7 @@ /*! * Sa11y, the accessibility quality assurance assistant. - * @version 4.2.0 + * @version 4.2.1 * @author Adam Chaboryk * @license GPL-2.0-or-later * @copyright © 2020 - 2025 Toronto Metropolitan University. diff --git a/dist/js/lang/enUS.js b/dist/js/lang/enUS.js index a113d130..c1e21111 100644 --- a/dist/js/lang/enUS.js +++ b/dist/js/lang/enUS.js @@ -1,7 +1,7 @@ /*! * Sa11y, the accessibility quality assurance assistant. - * @version 4.2.0 + * @version 4.2.1 * @author Adam Chaboryk * @license GPL-2.0-or-later * @copyright © 2020 - 2025 Toronto Metropolitan University. diff --git a/dist/js/lang/enUS.umd.js b/dist/js/lang/enUS.umd.js index de97cde4..539df12f 100644 --- a/dist/js/lang/enUS.umd.js +++ b/dist/js/lang/enUS.umd.js @@ -1,7 +1,7 @@ /*! * Sa11y, the accessibility quality assurance assistant. - * @version 4.2.0 + * @version 4.2.1 * @author Adam Chaboryk * @license GPL-2.0-or-later * @copyright © 2020 - 2025 Toronto Metropolitan University. diff --git a/dist/js/lang/es.js b/dist/js/lang/es.js index 78921603..ac3f4852 100644 --- a/dist/js/lang/es.js +++ b/dist/js/lang/es.js @@ -1,7 +1,7 @@ /*! * Sa11y, the accessibility quality assurance assistant. - * @version 4.2.0 + * @version 4.2.1 * @author Adam Chaboryk * @license GPL-2.0-or-later * @copyright © 2020 - 2025 Toronto Metropolitan University. diff --git a/dist/js/lang/es.umd.js b/dist/js/lang/es.umd.js index 964a8343..28596190 100644 --- a/dist/js/lang/es.umd.js +++ b/dist/js/lang/es.umd.js @@ -1,7 +1,7 @@ /*! * Sa11y, the accessibility quality assurance assistant. - * @version 4.2.0 + * @version 4.2.1 * @author Adam Chaboryk * @license GPL-2.0-or-later * @copyright © 2020 - 2025 Toronto Metropolitan University. diff --git a/dist/js/lang/et.js b/dist/js/lang/et.js index e6407cbf..3495a619 100644 --- a/dist/js/lang/et.js +++ b/dist/js/lang/et.js @@ -1,7 +1,7 @@ /*! * Sa11y, the accessibility quality assurance assistant. - * @version 4.2.0 + * @version 4.2.1 * @author Adam Chaboryk * @license GPL-2.0-or-later * @copyright © 2020 - 2025 Toronto Metropolitan University. diff --git a/dist/js/lang/et.umd.js b/dist/js/lang/et.umd.js index 154f9510..e2de836d 100644 --- a/dist/js/lang/et.umd.js +++ b/dist/js/lang/et.umd.js @@ -1,7 +1,7 @@ /*! * Sa11y, the accessibility quality assurance assistant. - * @version 4.2.0 + * @version 4.2.1 * @author Adam Chaboryk * @license GPL-2.0-or-later * @copyright © 2020 - 2025 Toronto Metropolitan University. diff --git a/dist/js/lang/fi.js b/dist/js/lang/fi.js index 9a4bc269..88a1ddd9 100644 --- a/dist/js/lang/fi.js +++ b/dist/js/lang/fi.js @@ -1,7 +1,7 @@ /*! * Sa11y, the accessibility quality assurance assistant. - * @version 4.2.0 + * @version 4.2.1 * @author Adam Chaboryk * @license GPL-2.0-or-later * @copyright © 2020 - 2025 Toronto Metropolitan University. diff --git a/dist/js/lang/fi.umd.js b/dist/js/lang/fi.umd.js index e37c253c..c10367b7 100644 --- a/dist/js/lang/fi.umd.js +++ b/dist/js/lang/fi.umd.js @@ -1,7 +1,7 @@ /*! * Sa11y, the accessibility quality assurance assistant. - * @version 4.2.0 + * @version 4.2.1 * @author Adam Chaboryk * @license GPL-2.0-or-later * @copyright © 2020 - 2025 Toronto Metropolitan University. diff --git a/dist/js/lang/fr.js b/dist/js/lang/fr.js index b9aa89aa..3bd16e40 100644 --- a/dist/js/lang/fr.js +++ b/dist/js/lang/fr.js @@ -1,7 +1,7 @@ /*! * Sa11y, the accessibility quality assurance assistant. - * @version 4.2.0 + * @version 4.2.1 * @author Adam Chaboryk * @license GPL-2.0-or-later * @copyright © 2020 - 2025 Toronto Metropolitan University. diff --git a/dist/js/lang/fr.umd.js b/dist/js/lang/fr.umd.js index fd01f3e7..a269a07f 100644 --- a/dist/js/lang/fr.umd.js +++ b/dist/js/lang/fr.umd.js @@ -1,7 +1,7 @@ /*! * Sa11y, the accessibility quality assurance assistant. - * @version 4.2.0 + * @version 4.2.1 * @author Adam Chaboryk * @license GPL-2.0-or-later * @copyright © 2020 - 2025 Toronto Metropolitan University. diff --git a/dist/js/lang/hu.js b/dist/js/lang/hu.js index 61c9e93b..4d14c79d 100644 --- a/dist/js/lang/hu.js +++ b/dist/js/lang/hu.js @@ -1,7 +1,7 @@ /*! * Sa11y, the accessibility quality assurance assistant. - * @version 4.2.0 + * @version 4.2.1 * @author Adam Chaboryk * @license GPL-2.0-or-later * @copyright © 2020 - 2025 Toronto Metropolitan University. diff --git a/dist/js/lang/hu.umd.js b/dist/js/lang/hu.umd.js index df9db9e5..49b3b71a 100644 --- a/dist/js/lang/hu.umd.js +++ b/dist/js/lang/hu.umd.js @@ -1,7 +1,7 @@ /*! * Sa11y, the accessibility quality assurance assistant. - * @version 4.2.0 + * @version 4.2.1 * @author Adam Chaboryk * @license GPL-2.0-or-later * @copyright © 2020 - 2025 Toronto Metropolitan University. diff --git a/dist/js/lang/id.js b/dist/js/lang/id.js index d05fde25..a7ed2dd0 100644 --- a/dist/js/lang/id.js +++ b/dist/js/lang/id.js @@ -1,7 +1,7 @@ /*! * Sa11y, the accessibility quality assurance assistant. - * @version 4.2.0 + * @version 4.2.1 * @author Adam Chaboryk * @license GPL-2.0-or-later * @copyright © 2020 - 2025 Toronto Metropolitan University. diff --git a/dist/js/lang/id.umd.js b/dist/js/lang/id.umd.js index 29d2a073..9a646219 100644 --- a/dist/js/lang/id.umd.js +++ b/dist/js/lang/id.umd.js @@ -1,7 +1,7 @@ /*! * Sa11y, the accessibility quality assurance assistant. - * @version 4.2.0 + * @version 4.2.1 * @author Adam Chaboryk * @license GPL-2.0-or-later * @copyright © 2020 - 2025 Toronto Metropolitan University. diff --git a/dist/js/lang/it.js b/dist/js/lang/it.js index 50cf022c..55e41974 100644 --- a/dist/js/lang/it.js +++ b/dist/js/lang/it.js @@ -1,7 +1,7 @@ /*! * Sa11y, the accessibility quality assurance assistant. - * @version 4.2.0 + * @version 4.2.1 * @author Adam Chaboryk * @license GPL-2.0-or-later * @copyright © 2020 - 2025 Toronto Metropolitan University. diff --git a/dist/js/lang/it.umd.js b/dist/js/lang/it.umd.js index b1701542..c2066244 100644 --- a/dist/js/lang/it.umd.js +++ b/dist/js/lang/it.umd.js @@ -1,7 +1,7 @@ /*! * Sa11y, the accessibility quality assurance assistant. - * @version 4.2.0 + * @version 4.2.1 * @author Adam Chaboryk * @license GPL-2.0-or-later * @copyright © 2020 - 2025 Toronto Metropolitan University. diff --git a/dist/js/lang/ja.js b/dist/js/lang/ja.js index c424aa2a..c2cad6aa 100644 --- a/dist/js/lang/ja.js +++ b/dist/js/lang/ja.js @@ -1,7 +1,7 @@ /*! * Sa11y, the accessibility quality assurance assistant. - * @version 4.2.0 + * @version 4.2.1 * @author Adam Chaboryk * @license GPL-2.0-or-later * @copyright © 2020 - 2025 Toronto Metropolitan University. diff --git a/dist/js/lang/ja.umd.js b/dist/js/lang/ja.umd.js index 5d9ae91e..a3d6db0e 100644 --- a/dist/js/lang/ja.umd.js +++ b/dist/js/lang/ja.umd.js @@ -1,7 +1,7 @@ /*! * Sa11y, the accessibility quality assurance assistant. - * @version 4.2.0 + * @version 4.2.1 * @author Adam Chaboryk * @license GPL-2.0-or-later * @copyright © 2020 - 2025 Toronto Metropolitan University. diff --git a/dist/js/lang/ko.js b/dist/js/lang/ko.js index 5ae3cfb0..945e14c1 100644 --- a/dist/js/lang/ko.js +++ b/dist/js/lang/ko.js @@ -1,7 +1,7 @@ /*! * Sa11y, the accessibility quality assurance assistant. - * @version 4.2.0 + * @version 4.2.1 * @author Adam Chaboryk * @license GPL-2.0-or-later * @copyright © 2020 - 2025 Toronto Metropolitan University. diff --git a/dist/js/lang/ko.umd.js b/dist/js/lang/ko.umd.js index 98a88070..e2083a8c 100644 --- a/dist/js/lang/ko.umd.js +++ b/dist/js/lang/ko.umd.js @@ -1,7 +1,7 @@ /*! * Sa11y, the accessibility quality assurance assistant. - * @version 4.2.0 + * @version 4.2.1 * @author Adam Chaboryk * @license GPL-2.0-or-later * @copyright © 2020 - 2025 Toronto Metropolitan University. diff --git a/dist/js/lang/lt.js b/dist/js/lang/lt.js index ec32e0a5..2e292742 100644 --- a/dist/js/lang/lt.js +++ b/dist/js/lang/lt.js @@ -1,7 +1,7 @@ /*! * Sa11y, the accessibility quality assurance assistant. - * @version 4.2.0 + * @version 4.2.1 * @author Adam Chaboryk * @license GPL-2.0-or-later * @copyright © 2020 - 2025 Toronto Metropolitan University. diff --git a/dist/js/lang/lt.umd.js b/dist/js/lang/lt.umd.js index 7a8a862c..381beb28 100644 --- a/dist/js/lang/lt.umd.js +++ b/dist/js/lang/lt.umd.js @@ -1,7 +1,7 @@ /*! * Sa11y, the accessibility quality assurance assistant. - * @version 4.2.0 + * @version 4.2.1 * @author Adam Chaboryk * @license GPL-2.0-or-later * @copyright © 2020 - 2025 Toronto Metropolitan University. diff --git a/dist/js/lang/lv.js b/dist/js/lang/lv.js index a6bf1b08..6ab4c22f 100644 --- a/dist/js/lang/lv.js +++ b/dist/js/lang/lv.js @@ -1,7 +1,7 @@ /*! * Sa11y, the accessibility quality assurance assistant. - * @version 4.2.0 + * @version 4.2.1 * @author Adam Chaboryk * @license GPL-2.0-or-later * @copyright © 2020 - 2025 Toronto Metropolitan University. diff --git a/dist/js/lang/lv.umd.js b/dist/js/lang/lv.umd.js index 6b11e14b..3986379c 100644 --- a/dist/js/lang/lv.umd.js +++ b/dist/js/lang/lv.umd.js @@ -1,7 +1,7 @@ /*! * Sa11y, the accessibility quality assurance assistant. - * @version 4.2.0 + * @version 4.2.1 * @author Adam Chaboryk * @license GPL-2.0-or-later * @copyright © 2020 - 2025 Toronto Metropolitan University. diff --git a/dist/js/lang/nb.js b/dist/js/lang/nb.js index 74202273..46412d6c 100644 --- a/dist/js/lang/nb.js +++ b/dist/js/lang/nb.js @@ -1,7 +1,7 @@ /*! * Sa11y, the accessibility quality assurance assistant. - * @version 4.2.0 + * @version 4.2.1 * @author Adam Chaboryk * @license GPL-2.0-or-later * @copyright © 2020 - 2025 Toronto Metropolitan University. diff --git a/dist/js/lang/nb.umd.js b/dist/js/lang/nb.umd.js index 46a4b802..dc15be07 100644 --- a/dist/js/lang/nb.umd.js +++ b/dist/js/lang/nb.umd.js @@ -1,7 +1,7 @@ /*! * Sa11y, the accessibility quality assurance assistant. - * @version 4.2.0 + * @version 4.2.1 * @author Adam Chaboryk * @license GPL-2.0-or-later * @copyright © 2020 - 2025 Toronto Metropolitan University. diff --git a/dist/js/lang/nl.js b/dist/js/lang/nl.js index 3a8a5198..12a71e38 100644 --- a/dist/js/lang/nl.js +++ b/dist/js/lang/nl.js @@ -1,7 +1,7 @@ /*! * Sa11y, the accessibility quality assurance assistant. - * @version 4.2.0 + * @version 4.2.1 * @author Adam Chaboryk * @license GPL-2.0-or-later * @copyright © 2020 - 2025 Toronto Metropolitan University. diff --git a/dist/js/lang/nl.umd.js b/dist/js/lang/nl.umd.js index d589afc6..9f874c92 100644 --- a/dist/js/lang/nl.umd.js +++ b/dist/js/lang/nl.umd.js @@ -1,7 +1,7 @@ /*! * Sa11y, the accessibility quality assurance assistant. - * @version 4.2.0 + * @version 4.2.1 * @author Adam Chaboryk * @license GPL-2.0-or-later * @copyright © 2020 - 2025 Toronto Metropolitan University. diff --git a/dist/js/lang/pl.js b/dist/js/lang/pl.js index b140f8f3..babeb6e1 100644 --- a/dist/js/lang/pl.js +++ b/dist/js/lang/pl.js @@ -1,7 +1,7 @@ /*! * Sa11y, the accessibility quality assurance assistant. - * @version 4.2.0 + * @version 4.2.1 * @author Adam Chaboryk * @license GPL-2.0-or-later * @copyright © 2020 - 2025 Toronto Metropolitan University. diff --git a/dist/js/lang/pl.umd.js b/dist/js/lang/pl.umd.js index b3207dbf..07584243 100644 --- a/dist/js/lang/pl.umd.js +++ b/dist/js/lang/pl.umd.js @@ -1,7 +1,7 @@ /*! * Sa11y, the accessibility quality assurance assistant. - * @version 4.2.0 + * @version 4.2.1 * @author Adam Chaboryk * @license GPL-2.0-or-later * @copyright © 2020 - 2025 Toronto Metropolitan University. diff --git a/dist/js/lang/ptBR.js b/dist/js/lang/ptBR.js index 5da7c61c..d7e14520 100644 --- a/dist/js/lang/ptBR.js +++ b/dist/js/lang/ptBR.js @@ -1,7 +1,7 @@ /*! * Sa11y, the accessibility quality assurance assistant. - * @version 4.2.0 + * @version 4.2.1 * @author Adam Chaboryk * @license GPL-2.0-or-later * @copyright © 2020 - 2025 Toronto Metropolitan University. diff --git a/dist/js/lang/ptBR.umd.js b/dist/js/lang/ptBR.umd.js index c15308a3..d79b3398 100644 --- a/dist/js/lang/ptBR.umd.js +++ b/dist/js/lang/ptBR.umd.js @@ -1,7 +1,7 @@ /*! * Sa11y, the accessibility quality assurance assistant. - * @version 4.2.0 + * @version 4.2.1 * @author Adam Chaboryk * @license GPL-2.0-or-later * @copyright © 2020 - 2025 Toronto Metropolitan University. diff --git a/dist/js/lang/ptPT.js b/dist/js/lang/ptPT.js index 7db1dd7c..1253676b 100644 --- a/dist/js/lang/ptPT.js +++ b/dist/js/lang/ptPT.js @@ -1,7 +1,7 @@ /*! * Sa11y, the accessibility quality assurance assistant. - * @version 4.2.0 + * @version 4.2.1 * @author Adam Chaboryk * @license GPL-2.0-or-later * @copyright © 2020 - 2025 Toronto Metropolitan University. diff --git a/dist/js/lang/ptPT.umd.js b/dist/js/lang/ptPT.umd.js index 31980e46..10d8bfad 100644 --- a/dist/js/lang/ptPT.umd.js +++ b/dist/js/lang/ptPT.umd.js @@ -1,7 +1,7 @@ /*! * Sa11y, the accessibility quality assurance assistant. - * @version 4.2.0 + * @version 4.2.1 * @author Adam Chaboryk * @license GPL-2.0-or-later * @copyright © 2020 - 2025 Toronto Metropolitan University. diff --git a/dist/js/lang/ro.js b/dist/js/lang/ro.js index b3848f0a..38b13119 100644 --- a/dist/js/lang/ro.js +++ b/dist/js/lang/ro.js @@ -1,7 +1,7 @@ /*! * Sa11y, the accessibility quality assurance assistant. - * @version 4.2.0 + * @version 4.2.1 * @author Adam Chaboryk * @license GPL-2.0-or-later * @copyright © 2020 - 2025 Toronto Metropolitan University. diff --git a/dist/js/lang/ro.umd.js b/dist/js/lang/ro.umd.js index cefa8930..1480cec3 100644 --- a/dist/js/lang/ro.umd.js +++ b/dist/js/lang/ro.umd.js @@ -1,7 +1,7 @@ /*! * Sa11y, the accessibility quality assurance assistant. - * @version 4.2.0 + * @version 4.2.1 * @author Adam Chaboryk * @license GPL-2.0-or-later * @copyright © 2020 - 2025 Toronto Metropolitan University. diff --git a/dist/js/lang/sk.js b/dist/js/lang/sk.js index 4c7c3def..b1684179 100644 --- a/dist/js/lang/sk.js +++ b/dist/js/lang/sk.js @@ -1,7 +1,7 @@ /*! * Sa11y, the accessibility quality assurance assistant. - * @version 4.2.0 + * @version 4.2.1 * @author Adam Chaboryk * @license GPL-2.0-or-later * @copyright © 2020 - 2025 Toronto Metropolitan University. diff --git a/dist/js/lang/sk.umd.js b/dist/js/lang/sk.umd.js index e2fa4433..5e9e66cc 100644 --- a/dist/js/lang/sk.umd.js +++ b/dist/js/lang/sk.umd.js @@ -1,7 +1,7 @@ /*! * Sa11y, the accessibility quality assurance assistant. - * @version 4.2.0 + * @version 4.2.1 * @author Adam Chaboryk * @license GPL-2.0-or-later * @copyright © 2020 - 2025 Toronto Metropolitan University. diff --git a/dist/js/lang/sl.js b/dist/js/lang/sl.js index ec040e86..038cb29b 100644 --- a/dist/js/lang/sl.js +++ b/dist/js/lang/sl.js @@ -1,7 +1,7 @@ /*! * Sa11y, the accessibility quality assurance assistant. - * @version 4.2.0 + * @version 4.2.1 * @author Adam Chaboryk * @license GPL-2.0-or-later * @copyright © 2020 - 2025 Toronto Metropolitan University. diff --git a/dist/js/lang/sl.umd.js b/dist/js/lang/sl.umd.js index 3d327446..6ffdfc59 100644 --- a/dist/js/lang/sl.umd.js +++ b/dist/js/lang/sl.umd.js @@ -1,7 +1,7 @@ /*! * Sa11y, the accessibility quality assurance assistant. - * @version 4.2.0 + * @version 4.2.1 * @author Adam Chaboryk * @license GPL-2.0-or-later * @copyright © 2020 - 2025 Toronto Metropolitan University. diff --git a/dist/js/lang/sv.js b/dist/js/lang/sv.js index 830381ae..10c19857 100644 --- a/dist/js/lang/sv.js +++ b/dist/js/lang/sv.js @@ -1,7 +1,7 @@ /*! * Sa11y, the accessibility quality assurance assistant. - * @version 4.2.0 + * @version 4.2.1 * @author Adam Chaboryk * @license GPL-2.0-or-later * @copyright © 2020 - 2025 Toronto Metropolitan University. diff --git a/dist/js/lang/sv.umd.js b/dist/js/lang/sv.umd.js index becd558c..a6aec5b2 100644 --- a/dist/js/lang/sv.umd.js +++ b/dist/js/lang/sv.umd.js @@ -1,7 +1,7 @@ /*! * Sa11y, the accessibility quality assurance assistant. - * @version 4.2.0 + * @version 4.2.1 * @author Adam Chaboryk * @license GPL-2.0-or-later * @copyright © 2020 - 2025 Toronto Metropolitan University. diff --git a/dist/js/lang/tr.js b/dist/js/lang/tr.js index 46cb81ca..69d9babc 100644 --- a/dist/js/lang/tr.js +++ b/dist/js/lang/tr.js @@ -1,7 +1,7 @@ /*! * Sa11y, the accessibility quality assurance assistant. - * @version 4.2.0 + * @version 4.2.1 * @author Adam Chaboryk * @license GPL-2.0-or-later * @copyright © 2020 - 2025 Toronto Metropolitan University. diff --git a/dist/js/lang/tr.umd.js b/dist/js/lang/tr.umd.js index c1826646..88f46e43 100644 --- a/dist/js/lang/tr.umd.js +++ b/dist/js/lang/tr.umd.js @@ -1,7 +1,7 @@ /*! * Sa11y, the accessibility quality assurance assistant. - * @version 4.2.0 + * @version 4.2.1 * @author Adam Chaboryk * @license GPL-2.0-or-later * @copyright © 2020 - 2025 Toronto Metropolitan University. diff --git a/dist/js/lang/ua.js b/dist/js/lang/ua.js index c1580f65..57c553cd 100644 --- a/dist/js/lang/ua.js +++ b/dist/js/lang/ua.js @@ -1,7 +1,7 @@ /*! * Sa11y, the accessibility quality assurance assistant. - * @version 4.2.0 + * @version 4.2.1 * @author Adam Chaboryk * @license GPL-2.0-or-later * @copyright © 2020 - 2025 Toronto Metropolitan University. diff --git a/dist/js/lang/ua.umd.js b/dist/js/lang/ua.umd.js index 6cecf4c2..bc975411 100644 --- a/dist/js/lang/ua.umd.js +++ b/dist/js/lang/ua.umd.js @@ -1,7 +1,7 @@ /*! * Sa11y, the accessibility quality assurance assistant. - * @version 4.2.0 + * @version 4.2.1 * @author Adam Chaboryk * @license GPL-2.0-or-later * @copyright © 2020 - 2025 Toronto Metropolitan University. diff --git a/dist/js/lang/zh.js b/dist/js/lang/zh.js index fbeef927..80ec80a6 100644 --- a/dist/js/lang/zh.js +++ b/dist/js/lang/zh.js @@ -1,7 +1,7 @@ /*! * Sa11y, the accessibility quality assurance assistant. - * @version 4.2.0 + * @version 4.2.1 * @author Adam Chaboryk * @license GPL-2.0-or-later * @copyright © 2020 - 2025 Toronto Metropolitan University. diff --git a/dist/js/lang/zh.umd.js b/dist/js/lang/zh.umd.js index 3e508a30..f8284463 100644 --- a/dist/js/lang/zh.umd.js +++ b/dist/js/lang/zh.umd.js @@ -1,7 +1,7 @@ /*! * Sa11y, the accessibility quality assurance assistant. - * @version 4.2.0 + * @version 4.2.1 * @author Adam Chaboryk * @license GPL-2.0-or-later * @copyright © 2020 - 2025 Toronto Metropolitan University. diff --git a/dist/js/sa11y.esm.js b/dist/js/sa11y.esm.js index 47537267..378148ff 100644 --- a/dist/js/sa11y.esm.js +++ b/dist/js/sa11y.esm.js @@ -1,7 +1,7 @@ /*! * Sa11y, the accessibility quality assurance assistant. - * @version 4.2.0 + * @version 4.2.1 * @author Adam Chaboryk * @license GPL-2.0-or-later * @copyright © 2020 - 2025 Toronto Metropolitan University. @@ -2218,7 +2218,7 @@ function removeExportListeners() { } } -const version = '4.2.0'; +const version = '4.2.1'; var styles = ":host{background:var(--sa11y-panel-bg);border-top:5px solid var(--sa11y-panel-bg-splitter);bottom:0;display:block;height:-moz-fit-content;height:fit-content;left:0;position:fixed;right:0;width:100%;z-index:999999}*{-webkit-font-smoothing:auto!important;color:var(--sa11y-panel-primary);font-family:var(--sa11y-font-face)!important;font-size:var(--sa11y-normal-text);line-height:22px!important}#dialog{margin:20px auto;max-width:900px;padding:20px}h2{font-size:var(--sa11y-large-text);margin-top:0}a{color:var(--sa11y-hyperlink);cursor:pointer;text-decoration:underline}a:focus,a:hover{text-decoration:none}p{margin-top:0}.error{background:var(--sa11y-error);border:2px dashed #f08080;color:var(--sa11y-error-text);margin-bottom:0;padding:5px}"; @@ -9471,7 +9471,7 @@ function checkContrast(results, option) { } // Process simple SVGs with a single shape. - const shapes = $el.querySelectorAll('path, polygon, circle, rect, ellipse'); + const shapes = $el.querySelectorAll('path, polygon, circle, rect, ellipse, use'); if (shapes.length === 1) { const style = getComputedStyle(shapes[0]); const { fill, opacity, stroke, strokeWidth } = style; @@ -9900,7 +9900,7 @@ function checkLabels(results, option) { } // Avoid using placeholder attributes. - if ($el.placeholder && $el.placeholder !== 0) { + if (option.checks.LABELS_PLACEHOLDER && $el.placeholder && $el.placeholder !== 0) { results.push({ element: $el, type: option.checks.LABELS_PLACEHOLDER.type || 'warning', diff --git a/dist/js/sa11y.esm.min.js b/dist/js/sa11y.esm.min.js index 63119e4c..521544f8 100644 --- a/dist/js/sa11y.esm.min.js +++ b/dist/js/sa11y.esm.min.js @@ -1,6 +1,6 @@ /*! * Sa11y, the accessibility quality assurance assistant. - * @version 4.2.0 + * @version 4.2.1 * @author Adam Chaboryk * @license GPL-2.0-or-later * @copyright © 2020 - 2025 Toronto Metropolitan University. @@ -9,4 +9,4 @@ * For all acknowledgements, please visit: https://sa11y.netlify.app/acknowledgements/ * The above copyright notice shall be included in all copies or substantial portions of the Software. **/ -const e={checkRoot:"body",containerIgnore:".sa11y-ignore",contrastIgnore:".sr-only",outlineIgnore:"",headerIgnore:"",headerIgnoreSpan:"",headerIgnoreStrings:"",imageIgnore:"",linkIgnore:"",linkIgnoreSpan:"",linkIgnoreStrings:"",aboutContent:"",panelPosition:"right",showMovePanelToggle:!0,checkAllHideToggles:!1,developerChecksOnByDefault:!1,showHinPageOutline:!1,showTitleInPageOutline:!0,showImageOutline:!0,editImageURLofCMS:"",relativePathImageSRC:"",relativePathImageID:"",ignoreEditImageURL:[],ignoreEditImageClass:[],delayCheck:0,delayCustomCheck:500,detectSPArouting:!1,doNotRun:"",headless:!1,selectorPath:!1,shadowComponents:"",autoDetectShadowComponents:!1,showGoodImageButton:!0,showGoodLinkButton:!0,dismissAnnotations:!0,dismissAll:!0,ignoreHiddenOverflow:"",insertAnnotationBefore:"",readabilityPlugin:!0,readabilityRoot:"body",readabilityIgnore:"",contrastPlugin:!0,contrastAAA:!1,contrastAPCA:!1,customChecks:!1,linksAdvancedPlugin:!0,formLabelsPlugin:!0,embeddedContentPlugin:!0,developerPlugin:!0,externalDeveloperChecks:!1,colourFilterPlugin:!0,exportResultsPlugin:!1,susAltStopWords:"",linkStopWords:"",extraPlaceholderStopWords:"",imageWithinLightbox:"",checks:{HEADING_SKIPPED_LEVEL:!0,HEADING_EMPTY_WITH_IMAGE:!0,HEADING_EMPTY:!0,HEADING_FIRST:!0,HEADING_LONG:{maxLength:170},HEADING_MISSING_ONE:!0,MISSING_ALT_LINK:!0,MISSING_ALT_LINK_HAS_TEXT:!0,MISSING_ALT:!0,IMAGE_DECORATIVE_CAROUSEL:{sources:".carousel"},LINK_IMAGE_NO_ALT_TEXT:!0,LINK_IMAGE_TEXT:!0,IMAGE_FIGURE_DECORATIVE:!0,IMAGE_DECORATIVE:!0,LINK_ALT_FILE_EXT:!0,ALT_FILE_EXT:!0,LINK_PLACEHOLDER_ALT:!0,ALT_PLACEHOLDER:!0,LINK_SUS_ALT:!0,SUS_ALT:!0,LINK_IMAGE_LONG_ALT:{maxLength:250},IMAGE_ALT_TOO_LONG:{maxLength:250},LINK_IMAGE_ALT:{dismissAll:!0},LINK_IMAGE_ALT_AND_TEXT:!0,IMAGE_FIGURE_DUPLICATE_ALT:!0,IMAGE_PASS:{dismissAll:!0},DUPLICATE_TITLE:{dismissAll:!0},LINK_EMPTY_LABELLEDBY:!0,LINK_EMPTY_NO_LABEL:!0,LINK_STOPWORD:!0,LINK_STOPWORD_ARIA:!0,LINK_SYMBOLS:!0,LINK_CLICK_HERE:!0,LINK_DOI:{dismissAll:!0},LINK_URL:{maxLength:40},LINK_LABEL:{dismissAll:!0},LINK_EMPTY:!0,LINK_IDENTICAL_NAME:{dismissAll:!0},LINK_NEW_TAB:{dismissAll:!0},LINK_FILE_EXT:!0,LABELS_MISSING_IMAGE_INPUT:!0,LABELS_INPUT_RESET:!0,LABELS_MISSING_LABEL:!0,LABELS_ARIA_LABEL_INPUT:!0,LABELS_NO_FOR_ATTRIBUTE:!0,LABELS_PLACEHOLDER:!0,EMBED_AUDIO:{sources:""},EMBED_VIDEO:{sources:""},EMBED_DATA_VIZ:{sources:""},EMBED_UNFOCUSABLE:!0,EMBED_MISSING_TITLE:!0,EMBED_GENERAL:!0,QA_BAD_LINK:{sources:""},QA_STRONG_ITALICS:!0,QA_IN_PAGE_LINK:!0,QA_DOCUMENT:{sources:"",dismissAll:!0},QA_PDF:{dismissAll:!0},QA_BLOCKQUOTE:!0,TABLES_MISSING_HEADINGS:!0,TABLES_SEMANTIC_HEADING:!0,TABLES_EMPTY_HEADING:!0,QA_FAKE_HEADING:!0,QA_FAKE_LIST:!0,QA_UPPERCASE:!0,QA_UNDERLINE:!0,QA_SUBSCRIPT:!0,QA_NESTED_COMPONENTS:{sources:""},QA_JUSTIFY:!0,QA_SMALL_TEXT:!0,META_LANG:!0,META_SCALABLE:!0,META_MAX:!0,META_REFRESH:!0,DUPLICATE_ID:!0,META_TITLE:!0,UNCONTAINED_LI:!0,TABINDEX_ATTR:!0,HIDDEN_FOCUSABLE:!0,LABEL_IN_NAME:!0,BTN_EMPTY:!0,BTN_EMPTY_LABELLEDBY:!0,BTN_ROLE_IN_NAME:!0,CONTRAST_WARNING:{dismissAll:!0},CONTRAST_INPUT:!0,CONTRAST_ERROR:!0,CONTRAST_PLACEHOLDER:!0,CONTRAST_PLACEHOLDER_UNSUPPORTED:!0,CONTRAST_ERROR_GRAPHIC:!0,CONTRAST_WARNING_GRAPHIC:{dismissAll:!0},CONTRAST_UNSUPPORTED:{dismissAll:!0}}},t={langStrings:{},addI18n(e){this.langStrings=e},_(e){return this.translate(e)},sprintf(e,...t){let n=this._(e);return n=this.prepHTML(n),t&&t.length&&t.forEach(e=>{n=n.replace(/%\([a-zA-z]+\)/,e)}),n},translate(e){return this.langStrings[e]||e},prepHTML:e=>e.replaceAll(/
/g,'').replaceAll(/${t._("ALT")}`).replaceAll(/{L}/g,`${t._("LINKED")}`)},n=function(){const e={};const o={};const i={};const s={};const a={};return{initializeRoot:function(o,i){if(e.areaToCheck=document.querySelector(o),e.areaToCheck||(e.areaToCheck=document.querySelector("body")),e.Readability=document.querySelector(i),!e.Readability)if(e.areaToCheck){e.Readability=e.areaToCheck;const{readabilityDetails:o,readabilityToggle:s}=n.Panel,a="true"===s?.getAttribute("aria-pressed");if(o&&a){const n=document.createElement("div");n.id="readability-alert",n.innerHTML=`

${t.sprintf("MISSING_READABILITY_ROOT",e.areaToCheck.tagName.toLowerCase(),i)}

`,o.insertAdjacentElement("afterend",n)}}else e.Readability=document.querySelector("body")},Root:e,initializeGlobal:function(e){o.html=document.querySelector("html"),o.headless=e.headless,o.panelPosition=e.panelPosition,o.dismissAnnotations=e.dismissAnnotations,o.aboutContent=e.aboutContent,o.contrastAPCA=e.contrastAPCA,o.contrastSuggestions=e.contrastSuggestions,o.contrastAAA=e.contrastAAA,o.shadowDetection=e.shadowComponents.length>0||!0===e.autoDetectShadowComponents,o.developerPlugin=e.developerPlugin,o.colourFilterPlugin=e.colourFilterPlugin,o.checkAllHideToggles=e.checkAllHideToggles,o.exportResultsPlugin=e.exportResultsPlugin,o.readabilityPlugin=e.readabilityPlugin,o.showImageOutline=e.showImageOutline,o.editImageURLofCMS=e.editImageURLofCMS,o.relativePathImageSRC=e.relativePathImageSRC,o.relativePathImageID=e.relativePathImageID,o.ignoreEditImageURL=e.ignoreEditImageURL,o.ignoreEditImageClass=e.ignoreEditImageClass,o.showMovePanelToggle=e.showMovePanelToggle;let t=!1;"function"==typeof window.matchMedia&&(t=window.matchMedia("(prefers-reduced-motion: reduce)")),o.scrollBehaviour=!t||t.matches?"auto":"smooth",o.langDirection="rtl"===o.html.getAttribute("dir")?"rtl":"ltr";const n=e.checks.QA_DOCUMENT.sources,i='a[href$=".doc"], a[href$=".docx"], a[href*=".doc?"], a[href*=".docx?"], a[href$=".ppt"], a[href$=".pptx"], a[href*=".ppt?"], a[href*=".pptx?"], a[href^="https://drive.google.com/file"], a[href^="https://docs.google."], a[href^="https://sway."]';o.documentSources=n?`${i}, ${n}`:i;const s=e.checks.EMBED_VIDEO.sources,a='video, [src*="Video"], [src*="video"], [src*="watch"], [src*="youtube.com"], [src*="vimeo.com"], [src*="panopto.com"], [src*="wistia.com"], [src*="dailymotion.com"], [src*="brightcove.com"], [src*="vidyard.com"]';if(s){const e=s.split(/\s*[\s,]\s*/).map(e=>`[src*="${e}"]`);o.VideoSources=`${a}, ${e.join(", ")}`}else o.VideoSources=a;const r=e.checks.EMBED_AUDIO.sources,l='audio, [src*="soundcloud.com"], [src*="simplecast.com"], [src*="podbean.com"], [src*="buzzsprout.com"], [src*="blubrry.com"], [src*="transistor.fm"], [src*="fusebox.fm"], [src*="libsyn.com"], [src*="spotify.com"], [src*="podcasts.apple.com"], [src*="castbox.fm"], [src*="megaphone.fm"], [src*="spreaker.com"], [src*="anchor.fm"], [src*="rss.com"], [src*="redcircle.com"]';if(r){const e=r.split(/\s*[\s,]\s*/).map(e=>`[src*="${e}"]`);o.AudioSources=`${l}, ${e.join(", ")}`}else o.AudioSources=l;const c=e.checks.EMBED_DATA_VIZ.sources,d='[src*="datastudio"], [src*="tableau"], [src*="lookerstudio"], [src*="powerbi"], [src*="qlik"]';if(c){const e=c.split(/\s*[\s,]\s*/).map(e=>`[src*="${e}"]`);o.VisualizationSources=`${d}, ${e.join(", ")}`}else o.VisualizationSources=d;o.AllEmbeddedContent=`${o.VideoSources}, ${o.AudioSources}, ${o.VisualizationSources}`},Global:o,initializePanelSelectors:function(){const e=document.querySelector("sa11y-control-panel").shadowRoot;i.panel=e.getElementById("panel"),i.content=e.getElementById("panel-content"),i.controls=e.getElementById("panel-controls"),i.outline=e.getElementById("outline-panel"),i.outlineContent=e.getElementById("outline-content"),i.outlineList=e.getElementById("outline-list"),i.outlineHeader=e.getElementById("outline-header"),i.images=e.getElementById("images-panel"),i.imagesContent=e.getElementById("images-content"),i.imagesList=e.getElementById("images-list"),i.imagesHeader=e.getElementById("images-header"),i.notifBadge=e.getElementById("notification-badge"),i.notifCount=e.getElementById("notification-count"),i.notifText=e.getElementById("notification-text"),i.status=e.getElementById("status"),i.pageIssues=e.getElementById("page-issues"),i.pageIssuesList=e.getElementById("page-issues-list"),i.pageIssuesHeader=e.getElementById("page-issues-header"),i.pageIssuesContent=e.getElementById("page-issues-content"),i.settings=e.getElementById("settings-panel"),i.settingsHeader=e.getElementById("settings-header"),i.settingsContent=e.getElementById("settings-content"),i.developerToggle=e.getElementById("developer-toggle"),i.readabilityToggle=e.getElementById("readability-toggle"),i.themeToggle=e.getElementById("theme-toggle"),i.developerItem=e.getElementById("developer-item"),i.readabilityItem=e.getElementById("readability-item"),i.darkModeItem=e.getElementById("dark-mode-item"),i.colourPanel=e.getElementById("panel-colour-filters"),i.colourFilterItem=e.getElementById("colour-filter-item"),i.colourFilterSelect=e.getElementById("colour-filter-select"),i.colourFilterIcon=e.getElementById("filter-icon"),i.toggle=e.getElementById("toggle"),i.outlineToggle=e.getElementById("outline-toggle"),i.imagesToggle=e.getElementById("images-toggle"),i.settingsToggle=e.getElementById("settings-toggle"),i.movePanelToggle=e.getElementById("move-panel"),i.skipButton=e.getElementById("skip-button"),i.dismissButton=e.getElementById("dismiss-button"),i.dismissTooltip=e.getElementById("dismiss-tooltip"),i.skipToPageIssues=e.getElementById("skip-to-page-issues"),i.exportHTML=e.getElementById("export-html"),i.exportCSV=e.getElementById("export-csv"),i.alert=e.getElementById("panel-alert"),i.alertText=e.getElementById("panel-alert-text"),i.alertPreview=e.getElementById("panel-alert-preview"),i.alertClose=e.getElementById("close-alert"),i.readability=e.getElementById("readability-panel"),i.readabilityInfo=e.getElementById("readability-info"),i.readabilityDetails=e.getElementById("readability-details")},Panel:i,initializeReadability:function(e){if(e.readabilityPlugin){s.Lang=t._("LANG_CODE").substring(0,2);const e=["en","fr","es","de","nl","it","sv","fi","da","no","nb","nn","pt"],o=n.Global.html.getAttribute("lang");if(o){const t=o.toLowerCase().substring(0,2);e.includes(t)&&e.includes(s.Lang)?s.Plugin=!0:s.Plugin=!1}else s.Plugin=!1}},Readability:s,initializeExclusions:function(e){a.Sa11yElements=["sa11y-heading-label","sa11y-heading-anchor","sa11y-annotation","sa11y-tooltips","sa11y-panel-tooltips","sa11y-control-panel","#sa11y-colour-filters","#sa11y-colour-filters *"];const t=["style","script","noscript"];if(a.Container=["#wpadminbar","#wpadminbar *",...t],e.containerIgnore){const t=e.containerIgnore.split(",").map(e=>e.trim());a.Container=a.Container.concat(t.flatMap(e=>[`${e} *`,e]))}a.Contrast=["link","hr","option","audio","audio *","video","video *",'input[type="color"]','input[type="range"]',"progress","progress *","meter","meter *","iframe","svg title","svg desc",...t],e.contrastIgnore&&(a.Contrast=e.contrastIgnore.split(",").map(e=>e.trim()).flatMap(e=>[e,`${e} *`]).concat(a.Contrast)),a.Readability=["nav li",'[role="navigation"] li',...t],e.readabilityIgnore&&(a.Readability=e.readabilityIgnore.split(",").map(e=>e.trim()).flatMap(e=>[e,`${e} *`]).concat(a.Readability)),a.Headings=e.headerIgnore?e.headerIgnore.split(",").map(e=>e.trim()):[],a.HeaderSpan=e.headerIgnoreSpan?e.headerIgnoreSpan.split(",").map(e=>e.trim()):[],a.Outline=e.outlineIgnore?e.outlineIgnore.split(",").map(e=>e.trim()):[],a.Images=['[role="presentation"]'],e.imageIgnore&&(a.Images=e.imageIgnore.split(",").map(e=>e.trim()).concat(a.Images)),a.Links=[".anchorjs-link"],e.linkIgnore&&(a.Links=e.linkIgnore.split(",").map(e=>e.trim()).concat(a.Links)),a.LinkSpan=e.linkIgnoreSpan?e.linkIgnoreSpan.split(",").map(e=>e.trim()):[]},Exclusions:a}}();function o(e,t,o){let i;"document"===t?i=document:"readability"===t?(i=n.Readability.Root,i||(i=n.Root.areaToCheck)):"root"===t?(i=n.Root.areaToCheck,i||(i=document.body)):"panel"===t?(i=n.Panel.panel,i||(i=document.body)):(i=document.querySelector(t),i||(i=document.body));const s=document.querySelectorAll("[data-sa11y-has-shadow-root]"),a=s?", [data-sa11y-has-shadow-root]":"",r=n.Exclusions.Container.join(", "),l=o?.join(", ")||"",c=l?`, ${l}`:"",d=Array.from(i.querySelectorAll(`:is(${e}${a}):not(${r}${c})`));if(s.length){const t=[];if(d.forEach((n,o)=>{n&&n.matches&&n.matches("[data-sa11y-has-shadow-root]")&&n.shadowRoot&&(t[o]=n.shadowRoot.querySelectorAll(`:is(${e}):not(${r}${c})`))}),t.length>0)for(let e=t.length-1;e>=0;e--)t[e]&&d.splice(e,1,...t[e])}return d.filter(e=>"SLOT"!==e.parentNode.tagName)}const i=(e,t)=>{const n=e=>{if("none"===e)return"";const t=e.includes("url(")||e.includes("image-set(")?e.match(/\/\s*"([^"]+)"/):e.match(/"([^"]+)"/);return t?t[1]:""};return`${n(window.getComputedStyle(e,":before").getPropertyValue("content"))}${t}${n(window.getComputedStyle(e,":after").getPropertyValue("content"))}`},s=e=>{for(let t=0;t<1e3;t++){if(e.nextSibling())return e.previousNode();if(!e.parentNode())return!1}return!1},a=(e,t=!1)=>{const n=e.getAttribute("aria-labelledby");if(!t&&n)return n.split(/\s+/).filter(e=>e.trim()).map(e=>{const t=document.querySelector(`#${CSS.escape(e)}`);return t?r(t,"",1):""}).join(" ");const o=e.getAttribute("aria-label");return o&&o.trim().length>0?o:"noAria"},r=(e,t=[],n=0)=>{const o=a(e,n);if("noAria"!==o)return o;if("TEXTAREA"===e.tagName&&e.hasAttribute("title"))return e.getAttribute("title");let l="";if(!e.children.length)return l=i(e,e.textContent),!l.trim()&&e.hasAttribute("title")?e.getAttribute("title"):l;const c=(d=e,p=!0,u=!0,document.createTreeWalker(d,NodeFilter.SHOW_ALL,{acceptNode:e=>p&&e.nodeType===Node.ELEMENT_NODE||u&&e.nodeType===Node.TEXT_NODE?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT}));var d,p,u;const h=[...t,"noscript","style","script","video","audio"].join(", "),g=h?e.querySelectorAll(h):[];let m=!1,f=!1,b=0,y=!0;for(;c.nextNode()&&y;){b+=1;const e=c.currentNode;if(Array.from(g).some(t=>t.contains(e)))continue;if(e.shadowRoot){const o=e.shadowRoot.querySelectorAll("*");for(let e=0;e{e.nodeType===Node.ELEMENT_NODE?n+=r(e):e.nodeType===Node.TEXT_NODE&&(n+=e.nodeValue)}),l+=n,l+=i(e,"");break}default:l+=i(e,"")}else l+=` ${o}`,s(c)||(y=!1)}return m&&!f&&(l+=` ${m}`),l=l.replace(/[\uE000-\uF8FF]/gu,""),!l.trim()&&e.hasAttribute("title")?e.getAttribute("title"):l};function l(e){if(e.getAttribute("hidden")||0===e.offsetWidth&&0===e.offsetHeight||1===e.clientHeight&&1===e.clientWidth)return!0;return"none"===getComputedStyle(e).getPropertyValue("display")}function c(e){const t=window.getComputedStyle(e),n=t.getPropertyValue("clip-path"),{position:o}=t,i=parseFloat(t.width),s=parseFloat(t.height),{overflow:a}=t;return"inset(50%)"===n||"absolute"===o&&1===i&&1===s&&"hidden"===a}function d(e){if(e.getAttribute("hidden"))return!0;return"none"===getComputedStyle(e).getPropertyValue("display")}function p(e){const t=document.createElement("div");return t.textContent=e,t.innerHTML.replaceAll('"',""").replaceAll("'","'").replaceAll("`","`")}function u(e){return e.replace(/[^\w. ]/gi,e=>`&#${e.charCodeAt(0)};`)}function h(e){if(!e)return"#";const t=String(e).trim();if(/^javascript:/i.test(t))return"#";if(/^data:/i.test(t))return"#";if(!["http:","https:","mailto:","tel:","ftp:"].some(e=>t.toLowerCase().startsWith(e))&&!t.startsWith("/")&&!t.startsWith("#"))return`./${t}`;const n=t.replace(/<[^>]*>/g,"");return encodeURI(n)}function g(e,t=!1){const n=document.createElement("div");n.innerHTML=e,["script","style","noscript","iframe","form"].forEach(e=>{const t=n.getElementsByTagName(e);for(;t.length>0;)t[0].parentNode.removeChild(t[0])});return Array.from(n.getElementsByTagName("*")).forEach(e=>{Array.from(e.attributes).forEach(t=>{t.name.startsWith("on")&&e.removeAttribute(t.name)}),t||e.removeAttribute("style")}),n.innerHTML}function m(e,t=[]){const n=["noscript","script","style","audio","video","form","iframe",...t].join(", "),o=e.cloneNode(!0);return Array.from(o.querySelectorAll(n)).forEach(e=>{e.parentElement.removeChild(e)}),o}function f(e){return m(e).textContent.replace(/[\r\n]+/g,"").replace(/\s+/g," ").trim()}function b(e){return e.replace(/[\r\n]+/g," ").replace(/\s+/g," ").trim()}function y(e,t){const n=e.substring(0,t).trimEnd();return e.length>t?`${n}...`:e}function A(e,t,n){let o=e;for(;null!==o;){if(window.getComputedStyle(o).getPropertyValue(t)===n)return o;o=o.parentElement}return null}function E(e){const t=e.getBoundingClientRect(),n=window.pageYOffset||document.documentElement.scrollTop;return{top:t.top+n}}const v={getItem(e){try{return null===localStorage.getItem(e)?sessionStorage.getItem(e):localStorage.getItem(e)}catch(e){return!1}},setItem(e,t){try{localStorage.setItem(e,t)}catch(n){sessionStorage.setItem(e,t)}return!0},removeItem(e){try{localStorage.removeItem(e)}catch(t){sessionStorage.removeItem(e)}return!0}};function _(e){const t="data-sa11y-pulse-border";e.setAttribute(t,""),setTimeout(()=>{e.removeAttribute(t)},2500)}function L(e){return String(e).replace(/([^0-9a-zA-Z])/g,"").substring(0,256)}function I(){const e=document.querySelector("sa11y-control-panel").shadowRoot,t=e.getElementById("panel-alert"),n=e.getElementById("panel-alert-text"),o=e.getElementById("panel-alert-preview");for(t.classList.remove("active"),o.classList.remove("panel-alert-preview");n.firstChild;)n.removeChild(n.firstChild);for(;o.firstChild;)o.removeChild(o.firstChild)}function T(e,t,n){I();const o=document.querySelector("sa11y-control-panel").shadowRoot,i=o.getElementById("panel-alert"),s=o.getElementById("panel-alert-text"),a=o.getElementById("panel-alert-preview"),r=o.getElementById("close-alert"),l=o.getElementById("skip-button");i.classList.add("active"),s.innerHTML=e;const c=n?`
${n}
`:"";function d(){I();(l.hasAttribute("disabled")?o.getElementById("toggle"):l).focus()}t&&(a.classList.add("panel-alert-preview"),a.innerHTML=`${c}
${t}
`),setTimeout(()=>{r.focus()},300),r.addEventListener("click",d),i.onkeydown=e=>{"Escape"===(e||window.event).key&&i.classList.contains("active")&&d()}}function x(e,t){e.forEach(e=>{o(`[${e}]`,`${t}`).forEach(t=>{t.removeAttribute(e)})})}function k(e,t){o(`${e}`,`${t}`).forEach(e=>{e.parentNode.removeChild(e)})}function N(e,t,n){setTimeout(()=>{e.scrollHeight>t.clientHeight?(t.classList.add("scrollable"),e.setAttribute("tabindex","0"),n&&(e.setAttribute("aria-label",n),e.setAttribute("role","region"))):t.classList.remove("scrollable")},50)}function S(e){const t=e=>e?.split(",").pop()?.trim()?.split(/\s+/)[0],n=e=>e?new URL(e,window.location.href).href:null,o=t(e.getAttribute("data-src")||e.getAttribute("srcset"));if(o)return n(o);const i=e.closest("picture")?.querySelector("source[srcset]")?.getAttribute("srcset"),s=t(i);return n(s||e.getAttribute("src"))}function w(e,t=!1){const n=e.element,o=`
${p(y(g(e.htmlPath),600))}
`,i=e=>{const t=f(e),n=y(t,100);return t.length?u(n):o},s={SPAN:i,P:i,A:e=>{const t=f(e),n=y(t,100);return t.length>1&&e.href&&!e.hasAttribute("role")?`${u(n)}`:o},IMG:e=>{const n=e.closest("a[href]"),i=e.alt?`alt="${u(e.alt)}"`:"alt",s=S(e);function a(e){return n?``:``}if(t)return new Promise(e=>{if(s){if(new URL(s,window.location.origin).origin===window.location.origin)fetch(s).then(e=>e.blob()).then(e=>(e=>new Promise((t,n)=>{const o=new FileReader;o.onloadend=()=>{let{result:n}=o;const i=e.type&&e.type.startsWith("image/")?e.type:"image/png";n.startsWith("data:application/octet-stream")&&(n=n.replace("data:application/octet-stream",`data:${i}`)),t(n)},o.onerror=n,o.readAsDataURL(e)}))(e)).then(t=>{const n=t.startsWith("data:image/")?t:h(t);e(a(n))}).catch(()=>{e(a(s))});else{const t=s.startsWith("data:image/")?s:h(s);e(a(t))}}else e(o)});const r=s.startsWith("data:image/")?s:h(s);return s?a(r):o},IFRAME:e=>{const t=e.src,n=e.title?e.title:"",i=e.getAttribute("aria-label");if(t){const e=i||""||n;return``}return o},AUDIO:()=>g(e.htmlPath),VIDEO:()=>g(e.htmlPath)}[n.tagName];return s?s(n):o}function C(e){let t="";const n=r(e).toLowerCase();e.childNodes.forEach(e=>{e.nodeType===Node.TEXT_NODE?t+=e.textContent:e.nodeType===Node.ELEMENT_NODE&&(l(e)||(t+=e.textContent))});let o=t.replace(/[\p{Emoji_Presentation}\p{Extended_Pictographic}]/gu,"");return o=b(o).toLowerCase(),"x"!==o&&(0!==o.length&&!n.includes(o))}const O=function(){const e={};const t={};return{initializeElements:function(t){e.Everything=o("*","root",n.Exclusions.Sa11yElements),e.Contrast=e.Everything.filter(e=>!n.Exclusions.Contrast.some(t=>e.matches(t))&&!n.Exclusions.Contrast.includes(e)),e.Images=e.Everything.filter(e=>"IMG"===e.tagName&&!n.Exclusions.Images.some(t=>e.matches(t))),e.Links=e.Everything.filter(e=>("A"===e.tagName||"a"===e.tagName)&&e.hasAttribute("href")&&!e.matches('[role="button"]')&&!n.Exclusions.Links.some(t=>e.matches(t))),e.Headings=o('h1, h2, h3, h4, h5, h6, [role="heading"][aria-level]',"document",n.Exclusions.Headings),e.HeadingOne=o('h1, [role="heading"][aria-level="1"]',"document",n.Exclusions.Headings),e.ExcludedHeadings=e.Headings.filter(e=>n.Exclusions.Headings.some(t=>e.matches(t))),e.ExcludedOutlineHeadings=e.Headings.filter(e=>n.Exclusions.Outline.some(t=>e.matches(t))),e.OutlineIgnore=O.Found.ExcludedOutlineHeadings.concat(O.Found.ExcludedHeadings),e.Paragraphs=e.Everything.filter(e=>"P"===e.tagName&&!e.closest("table")),e.Lists=e.Everything.filter(e=>"LI"===e.tagName),e.Blockquotes=e.Everything.filter(e=>"BLOCKQUOTE"===e.tagName),e.Tables=e.Everything.filter(e=>"TABLE"===e.tagName&&!e.matches('[role="presentation"]')&&!e.matches('[role="none"]')),e.StrongItalics=e.Everything.filter(e=>["STRONG","EM"].includes(e.tagName)),e.Subscripts=e.Everything.filter(e=>["SUP","SUB"].includes(e.tagName));const i=t.checks.QA_BAD_LINK.sources;e.CustomErrorLinks=i.length?e.Links.filter(e=>i.split(",").some(t=>e.matches(t.trim()))):[];const s=e=>n.Root.Readability.contains(e)&&!n.Exclusions.Readability.some(t=>e.matches(t));e.Readability=[...e.Paragraphs.filter(s),...e.Lists.filter(s)];const a=t.checks.QA_NESTED_COMPONENTS.sources||'[role="tablist"], details';e.NestedComponents=a?e.Everything.filter(e=>e.matches(a)):[],e.TabIndex=e.Everything.filter(e=>e.hasAttribute("tabindex")&&"0"!==e.getAttribute("tabindex")&&!e.getAttribute("tabindex").startsWith("-")),e.Svg=e.Everything.filter(e=>"svg"===e.tagName),e.Buttons=e.Everything.filter(e=>"BUTTON"===e.tagName||e.matches('[role="button"]')),e.Inputs=e.Everything.filter(e=>["INPUT","SELECT","TEXTAREA","METER","PROGRESS"].includes(e.tagName)),e.Labels=e.Everything.filter(e=>"LABEL"===e.tagName),e.iframes=e.Everything.filter(e=>["IFRAME","AUDIO","VIDEO"].includes(e.tagName)),e.Videos=e.iframes.filter(e=>e.matches(n.Global.VideoSources)),e.Audio=e.iframes.filter(e=>e.matches(n.Global.AudioSources)),e.Visualizations=e.iframes.filter(e=>e.matches(n.Global.VisualizationSources)),e.EmbeddedContent=e.iframes.filter(e=>!e.matches(n.Global.AllEmbeddedContent));const r=document.querySelector("html");e.Language=r.getAttribute("lang")},Found:e,initializeAnnotations:function(){t.Array=o("sa11y-annotation","document"),t.Array.forEach((e,t)=>{e.setAttribute("data-sa11y-position",t)})},Annotations:t}}();const P=e=>{if(0===e.shadowRoot.querySelectorAll(".sa11y-css-utilities").length){const t=document.createElement("style");t.setAttribute("class","sa11y-css-utilities"),t.textContent="[data-sa11y-overflow]{overflow:auto!important}[data-sa11y-clone-image-text]{display:none!important}[data-sa11y-readability-period]{clip:rect(1px,1px,1px,1px)!important;border:0!important;clip-path:inset(50%)!important;display:block!important;height:1px!important;overflow:hidden!important;padding:0!important;position:absolute!important;white-space:nowrap!important;width:1px!important}[data-sa11y-error-inline],[data-sa11y-error]{outline:5px solid var(--sa11y-error)!important;outline-offset:2px}[data-sa11y-warning-inline]:not([data-sa11y-error-inline]),[data-sa11y-warning]:not([data-sa11y-error]){outline:5px solid var(--sa11y-warning)!important;outline-offset:2px}[data-sa11y-pulse-border]{animation:pulse 2s 3;box-shadow:0;outline:5px solid var(--sa11y-focus-color)!important}[data-sa11y-pulse-border]:focus,[data-sa11y-pulse-border]:hover{animation:none}@keyframes pulse{0%{box-shadow:0 0 0 5px var(--sa11y-focus-color)}70%{box-shadow:0 0 0 12px var(--sa11y-pulse-color)}to{box-shadow:0 0 0 5px var(--sa11y-pulse-color)}}@media (prefers-reduced-motion:reduce){[data-sa11y-pulse-border]{animation:none!important}}@media (forced-colors:active){[data-sa11y-error-inline],[data-sa11y-error],[data-sa11y-good],[data-sa11y-pulse-border],[data-sa11y-warning-inline],[data-sa11y-warning]{forced-color-adjust:none}}",e.shadowRoot.appendChild(t)}};function R(e,t,n){if(!0===e){let e=window.location.href;const o=function(e,t){let n=null;return(...o)=>{window.clearTimeout(n),n=window.setTimeout(()=>{e(...o)},t)}}(async()=>{e!==window.location.href&&("Closed"!==v.getItem("sa11y-panel")&&v.getItem("sa11y-panel")?(n(!1),await t()):t(),e=window.location.href)},250);window.addEventListener("click",o),window.addEventListener("keydown",o)}}function D(e,o){const i=JSON.parse(localStorage.getItem("sa11y-dismissed")||"[]"),s=window.location.pathname,a=[...e.filter(e=>i.some(t=>((e,t)=>t.key.includes(e.dismiss)&&t.href===s&&("warning"===e.type||"good"===e.type))(e,t))),...e.filter(e=>i.some(t=>((e,t)=>"string"==typeof t.dismissAll&&e.dismissAll===t.dismissAll&&t.href===s)(e,t)))],r=a.length,l=e.filter(e=>!a.some(t=>t.dismiss===e.dismiss&&("warning"===e.type||"good"===e.type)));return r?(n.Panel.dismissButton.classList.add("active"),n.Panel.dismissTooltip.innerText=t.sprintf("PANEL_DISMISS_BUTTON",r),o.object.setContent(t.sprintf("PANEL_DISMISS_BUTTON",r))):n.Panel.dismissButton.classList.remove("active"),{dismissedIssues:i,updatedResults:l,dismissCount:r,dismissedResults:a}}let M,B;function $(e,i,s,a){if(n.Global.dismissAnnotations){B=n=>{(async(e,n,i,s)=>{let a=JSON.parse(v.getItem("sa11y-dismissed"));const r=e.target;if(document.querySelector("sa11y-panel-tooltips").hidden=!1,"BUTTON"===r.tagName&&r.hasAttribute("data-sa11y-dismiss")){const e=parseInt(r.getAttribute("data-sa11y-dismiss"),10),l=n.find(t=>t.id===e);if(null===a&&(setTimeout(()=>T(t._("DISMISS_REMINDER")),0),a=[]),l.dismiss){const e=r.hasAttribute("data-sa11y-dismiss-all")?l.dismissAll:"",t={key:l.dismiss,href:window.location.pathname,...e?{dismissAll:e}:{}},n=o(`[data-sa11y-annotation='${l.id}']`),c=n[0]?n[0].getAttribute("data-sa11y-position"):0;v.setItem("sa11y-latest-dismissed",c),v.setItem("sa11y-dismiss-item",JSON.stringify(t)),a.push(t),v.setItem("sa11y-dismissed",JSON.stringify(a)),v.removeItem("sa11y-dismiss-item");const d=r?.closest("[data-tippy-root]");d&&setTimeout(()=>{d.remove()},0),s(!1),await i()}}})(n,e,s,a)};document.querySelector("sa11y-tooltips").shadowRoot.addEventListener("click",B),n.Panel.panel.addEventListener("click",B)}M=()=>{(async(e,t,o)=>{document.querySelector("sa11y-panel-tooltips").hidden=!0;const i=e.filter(e=>e.href!==window.location.pathname);v.setItem("sa11y-dismissed",JSON.stringify(i)),n.Panel.dismissButton.classList.remove("active"),o(!1),await t()})(i,s,a)},n.Panel.dismissButton?.addEventListener("click",M)}function G(){const e=new Date,t=String(e.getDate()).padStart(2,"0"),n=String(e.getMonth()+1).padStart(2,"0"),o=e.getFullYear(),i=(new Date).toLocaleString(),s=`${n}-${t}-${o}`,a=document.querySelector("head title"),r=!a||0===a.textContent.trim().length;return{date:i,numericDate:s,titleCheck:r,metaTitle:r?"":a.textContent,pageURL:window.location.href}}async function U(e,n){const o=await async function(e,n){const o=e.filter(e=>"error"===e.type),i=e.filter(e=>"warning"===e.type),s={error:o.length,warning:i.length,dismiss:n.length};async function a(e,n){const o={error:t._("ERRORS"),warning:t._("WARNINGS"),dismissed:t._("DISMISSED")}[n];if(!(e.length>0))return"";let i=`

${o}

`,a=`
    `,r="
";"dismissed"===n&&(a=`
${t.sprintf("PANEL_DISMISS_BUTTON",s.dismiss)}
    `,r="
"),i+=a;const l=e.map(async e=>{let n="";if(e.element){const o=["IMG","IFRAME","AUDIO","VIDEO"],i=await w(e,!0);n=o.includes(e.element.tagName)?`
  • ${t._("PREVIEW")}: ${i}
  • ${t._("ELEMENT")}:
    ${p(e.htmlPath)}
  • `:`
  • ${t._("ELEMENT")}:
    ${p(e.htmlPath)}
  • `}const o=e.cssPath?`
  • ${t._("PATH")}:
    ${e.cssPath}
  • `:"";return`
  • ${e.content}
      ${n}${o}
  • `});return i+=(await Promise.all(l)).join(""),i+=r,i}const r=await a(o,"error"),l=await a(i,"warning"),c=await a(n,"dismissed"),d=G(),u=d.titleCheck?"":`
    ${t._("PAGE_TITLE")}
    ${d.metaTitle}
    `,h=0!==s.error?`
    ${t._("ERRORS")}
    ${s.error}
    `:"",g=0!==s.warning?`
    ${t._("WARNINGS")}
    ${s.warning}
    `:"",m=0!==s.dismiss?`
    ${t._("DISMISSED")}
    ${s.dismiss}
    `:"";return`\n \n \n \n \n \n ${t._("RESULTS")}: ${d.metaTitle}\n \n \n \n
    \n

    ${t._("RESULTS")}

    \n
    \n
    \n ${u}\n
    URL
    \n
    ${d.pageURL}
    \n
    ${t._("DATE")}
    \n
    ${d.date}
    \n
    \n
    \n ${h}\n ${g}\n ${m}\n
    \n
    \n
    \n
    \n ${r}\n ${l}\n ${c}\n
    \n
    \n

    ${t.sprintf("GENERATED",'Sa11y')}

    \n
    \n \n \n `}(e,n),i=G(),s=new Blob([o],{type:"text/html"}),a=document.createElement("a"),r=i.titleCheck?"":`_${i.metaTitle.trim().replace(/ /g,"")}`;a.href=window.URL.createObjectURL(s),a.download=`Sa11y_${i.numericDate+r}.html`,document.body.appendChild(a),a.click(),setTimeout(()=>{document.body.removeChild(a),window.URL.revokeObjectURL(a.href)},100)}function H(e){const t=G(),n=e.filter(e=>"warning"===e.type||"error"===e.type).map(e=>{const{type:n,content:o,htmlPath:i,cssPath:s}=e,a=o.replaceAll(/]*>.*?<\/span>/gi,"").replaceAll(''," | ").replaceAll(/"/g,'""');const r=function(e){return e.replace(/&(#?[a-zA-Z0-9]+);/g,(e,t)=>{switch(t){case"amp":return"&";case"lt":return"<";case"gt":return">";case"quot":case"#39":return"'";default:return"#"===t.charAt(0)?String.fromCharCode("x"===t.charAt(1)?parseInt(t.substr(2),16):parseInt(t.substr(1),10)):e}})}(String(a).replace(/<[^>]*>/g,"")),l={Title:`"${t.metaTitle}"`,URL:`"${t.pageURL}"`,Type:`"${String(n)}"`,Issue:`"${r}"`,Element:`"${i}"`};return s&&(l.Path=`"${s}"`),l}),o=Object.keys(n[0]),i=`${o.join(",")}\n${n.map(e=>o.map(t=>e[t]).join(",")).join("\n")}`,s=new Uint8Array([239,187,191]),a=new Blob([s,i],{type:"text/csv;charset=utf-8;"}),r=window.URL.createObjectURL(a),l=document.createElement("a");l.href=r,l.href=window.URL.createObjectURL(a);const c=t.titleCheck?"":`_${t.metaTitle.trim().replace(/ /g,"")}`;l.setAttribute("download",`Sa11y_${t.numericDate+c}.csv`),document.body.appendChild(l),l.click(),setTimeout(()=>{document.body.removeChild(l),window.URL.revokeObjectURL(l.href)},100)}let F,K;const W="4.2.0";var Y='.visually-hidden{clip:rect(1px,1px,1px,1px);border:0;clip-path:inset(50%);display:block;height:1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px}[hidden]{display:none!important}.header-text,.header-text-inline,h2{color:var(--sa11y-panel-primary);display:block;font-size:var(--sa11y-large-text);font-weight:600;margin-bottom:3px}.header-text-inline{display:inline-block!important}code{font-family:monospace!important;font-size:calc(var(--sa11y-normal-text) - 1px);font-weight:600}pre:has(code){display:block;overflow:auto;white-space:pre-wrap}.kbd,code,kbd,pre{background-color:var(--sa11y-panel-badge);border-radius:3.2px;color:var(--sa11y-panel-primary);padding:1.6px 4.8px}.bold{font-weight:600}.error .colour,.red-text{color:var(--sa11y-red-text);font-family:var(--sa11y-font-face)}.warning .colour,.yellow-text{color:var(--sa11y-yellow-text);font-family:var(--sa11y-font-face)}.badge,.normal-badge{background-color:var(--sa11y-panel-badge);border-radius:10px;color:var(--sa11y-panel-primary);display:inline;font-size:14px;font-weight:700!important;line-height:1;min-width:10px;outline:1px solid transparent;padding:1px 5px 1.75px;text-align:center;vertical-align:baseline;white-space:nowrap}.error .badge{background:var(--sa11y-error);color:var(--sa11y-error-text)}.error-badge{background:var(--sa11y-error)!important;color:var(--sa11y-error-text)!important}.warning .badge{background:var(--sa11y-yellow-text);color:var(--sa11y-panel-bg)}.warning-badge{background:var(--sa11y-yellow-text)!important;color:var(--sa11y-panel-bg)!important}.good-contrast{background:var(--sa11y-good)!important;color:var(--sa11y-good-text)!important}#contrast-preview{background-color:#e8e8e8;background-image:linear-gradient(45deg,#ccc 25%,transparent 0,transparent 75%,#ccc 0,#ccc),linear-gradient(45deg,#ccc 25%,transparent 0,transparent 75%,#ccc 0,#ccc);background-position:0 0,5px 5px;background-size:10px 10px;border:2px dashed var(--sa11y-panel-bg-splitter);border-radius:3.2px;line-height:1;margin-top:10px;max-height:100px;overflow:clip;overflow-wrap:break-word;padding:5px}#color-pickers{display:flex;justify-content:space-between;margin-bottom:10px;margin-top:10px}#color-pickers label{align-items:center;display:flex}#color-pickers input{margin-inline-start:7px}input[type=color i]{background:var(--sa11y-panel-bg-secondary);block-size:30px;border-color:var(--sa11y-button-outline);border-radius:50%;border-style:solid;border-width:1px;inline-size:30px;padding:2px}input[type=color i]::-webkit-color-swatch-wrapper{padding:1px}input[type=color i]::-webkit-color-swatch{border-color:var(--sa11y-button-outline);border-radius:50%}input[type=color i]::-moz-color-swatch{border-color:var(--sa11y-button-outline);border-radius:50%}input[type=color i].unknown{box-shadow:0 0 0 2px var(--sa11y-yellow-text)}input[type=color i].unknown:after{align-items:center;color:#fff;content:"?";display:flex;font-size:18px;height:24px;justify-content:center;margin:-24px 0;pointer-events:none;position:absolute;width:24px;z-index:2}.close-btn{background:var(--sa11y-panel-bg-secondary);border:2px solid var(--sa11y-button-outline);border-radius:50%;color:var(--sa11y-panel-primary);cursor:pointer;float:var(--sa11y-float-rtl);font-size:var(--sa11y-normal-text);font-weight:400;height:32px;margin:0;position:relative;transition:all .2s ease-in-out;width:32px}.close-btn:focus,.close-btn:hover{background-color:var(--sa11y-shortcut-hover)}.close-btn:after{background:var(--sa11y-setting-switch-bg-off);content:"";inset:-7px;-webkit-mask:var(--sa11y-close-btn-svg) center no-repeat;mask:var(--sa11y-close-btn-svg) center no-repeat;position:absolute}@media screen and (forced-colors:active){.close-btn:after{filter:invert(1)}}#container [tabindex="-1"]:focus,#container [tabindex="0"]:focus,#container a:focus,#container button:focus,#container input:focus,#container select:focus{box-shadow:0 0 0 5px var(--sa11y-focus-color);outline:0}#container #panel-controls button:focus,#container .switch:focus{box-shadow:inset 0 0 0 4px var(--sa11y-focus-color);outline:0}#container #panel-controls button:focus:not(:focus-visible),#container [tabindex="-1"]:focus:not(:focus-visible),#container [tabindex="0"]:focus:not(:focus-visible),#container button:focus:not(:focus-visible),#container input:focus:not(:focus-visible),#container select:focus:not(:focus-visible){box-shadow:none;outline:0}#container [tabindex="-1"]:focus-visible,#container [tabindex="0"]:focus-visible,#container a:focus-visible,#container button:not(#panel-controls button):not(.switch):focus-visible,#container input:focus-visible,#container select:focus-visible{box-shadow:0 0 0 5px var(--sa11y-focus-color);outline:0}#container #panel-controls button:focus-visible,#container .switch:focus-visible{box-shadow:inset 0 0 0 4px var(--sa11y-focus-color);outline:0}@media screen and (forced-colors:active){#panel-controls button:focus{border:3px solid transparent}#container [tabindex="-1"]:focus,#container [tabindex="0"]:focus,#container a:focus,#container button:focus,#container select:focus,.close-btn:focus{outline:3px solid transparent!important}}';class z extends HTMLElement{constructor(e){super(),this.error=e}connectedCallback(){const e=this.attachShadow({mode:"open"}),o=document.createElement("style");o.innerHTML=":host{background:var(--sa11y-panel-bg);border-top:5px solid var(--sa11y-panel-bg-splitter);bottom:0;display:block;height:-moz-fit-content;height:fit-content;left:0;position:fixed;right:0;width:100%;z-index:999999}*{-webkit-font-smoothing:auto!important;color:var(--sa11y-panel-primary);font-family:var(--sa11y-font-face)!important;font-size:var(--sa11y-normal-text);line-height:22px!important}#dialog{margin:20px auto;max-width:900px;padding:20px}h2{font-size:var(--sa11y-large-text);margin-top:0}a{color:var(--sa11y-hyperlink);cursor:pointer;text-decoration:underline}a:focus,a:hover{text-decoration:none}p{margin-top:0}.error{background:var(--sa11y-error);border:2px dashed #f08080;color:var(--sa11y-error-text);margin-bottom:0;padding:5px}"+Y,e.appendChild(o);const i=document.createElement("div");i.setAttribute("id","dialog"),i.setAttribute("tabindex","-1");const s=window.location,a=`## Error Description\n\`\`\`javascript\n${this.error.stack}\n\`\`\`\n\n## Details\n- **URL:** ${s}\n- **Version:** ${W}\n\n## Comments\n`,r=`https://github.com/ryersondmp/sa11y/issues/new?title=Bug%20report&body=${encodeURIComponent(a)}`;i.innerHTML=`\n \n

    ${t._("ERROR")}

    \n

    ${t.sprintf("CONSOLE_ERROR","https://forms.gle/sjzK9XykETaoqZv99",r)}

    \n

    ${p(this.error.stack)}

    Version: ${W}
    URL: ${s}

    \n `,e.appendChild(i),setTimeout(()=>{n.Panel.toggle.style.display="none";const e=document.querySelector("sa11y-console-error");e.shadowRoot.getElementById("dialog").focus();e.shadowRoot.querySelector(".close-btn").addEventListener("click",()=>{e.remove()})},0)}}class Q extends HTMLElement{connectedCallback(){this.attachShadow({mode:"open"});const e=document.createElement("style");e.textContent='a,button,code,div,h1,h2,h3,kbd,label,li,ol,p,pre,span,strong,svg,ul{all:unset;box-sizing:border-box!important}:after,:before{all:unset}div{display:block}*{-webkit-font-smoothing:auto!important;font-family:var(--sa11y-font-face)!important}label,li,ol,p,ul{font-size:var(--sa11y-normal-text);font-weight:400;letter-spacing:normal;line-height:22px!important;text-align:start;word-break:break-word}.sa11y-overflow{overflow:auto}iframe,img,video{border:0;display:block;height:auto;max-width:100%}audio{max-width:100%}#toggle{align-items:center;background:linear-gradient(0deg,#e040fb,#00bcd4);background-color:var(--sa11y-setting-switch-bg-off);background-size:150% 150%;border-radius:50%;bottom:var(--sa11y-toggle-y-offset);color:#fff;cursor:pointer;display:flex;height:55px;inset-inline-end:var(--sa11y-toggle-x-offset);justify-content:center;margin:0;overflow:visible;position:fixed;transition:all .2s ease-in-out;width:55px;z-index:2147483644}#toggle.left,#toggle.top-left{inset-inline-start:var(--sa11y-toggle-x-offset)}#toggle.top-left,#toggle.top-right{bottom:unset;top:var(--sa11y-toggle-y-offset)}@media screen and (forced-colors:active){#toggle{background:ButtonFace!important;border:2px solid transparent}}#toggle svg{height:35px;width:35px}#toggle svg path{fill:var(--sa11y-panel-bg)}#toggle:focus,#toggle:hover{animation:sa11y-toggle-gradient 3s ease}#toggle:disabled:focus,#toggle:disabled:hover{animation:none}#toggle.on{background:linear-gradient(180deg,#e040fb,#00bcd4)}#toggle:disabled{background:unset;background-color:var(--sa11y-setting-switch-bg-off);cursor:not-allowed}#notification-badge{text-wrap:nowrap;align-items:center;background-color:#eb0000;border:1px solid transparent;border-radius:12px;color:#fff;display:none;font-size:13.5px;font-weight:400;justify-content:center;line-height:1;min-width:20px;padding:2.5px;position:absolute;right:-3px;top:-5.5px}#notification-badge.notification-badge-warning{background-color:var(--sa11y-warning-hover);border:1px solid var(--sa11y-warning);color:var(--sa11y-warning-text)}#panel{background:var(--sa11y-panel-bg);border-radius:4px;bottom:calc(var(--sa11y-toggle-y-offset) + var(--sa11y-panel-y-gap));box-shadow:0 0 20px 4px rgba(154,161,177,.15),0 4px 80px -8px rgba(36,40,47,.25),0 4px 4px -2px rgba(91,94,105,.15);inset-inline-end:calc(var(--sa11y-toggle-x-offset) + var(--sa11y-panel-x-gap));opacity:0;overflow:visible;position:fixed;transform:scale(0);transform-origin:100% 100%;transition:transform .2s,opacity background .2s .2s;visibility:hidden;z-index:2147483643}#panel.left,#panel.top-left{inset-inline-end:unset;inset-inline-start:calc(var(--sa11y-toggle-x-offset) + var(--sa11y-panel-x-gap))}#panel.top-left,#panel.top-right{bottom:unset;top:calc(var(--sa11y-toggle-y-offset) + var(--sa11y-panel-y-gap) + 10px)}#panel.active{height:auto;opacity:1;transform:scale(1);transform-origin:bottom right;transition:transform .2s,opacity .2s;visibility:visible}@media screen and (forced-colors:active){#panel{border:2px solid transparent}}#panel.active.left,[dir=rtl] #panel.active{transform-origin:bottom left}#panel.active.top-left{transform-origin:top left}#panel.active.top-right{transform-origin:top right}#panel-alert{display:none;opacity:0}#panel-alert.active{display:block;opacity:1}#panel-alert-content{align-items:center;border-bottom:1px solid var(--sa11y-panel-bg-splitter);color:var(--sa11y-panel-primary);line-height:22px;max-height:400px;overflow-y:auto;padding:15px 20px 15px 15px;position:relative}.top-left #panel-alert-content,.top-right #panel-alert-content{border:0}#panel-alert-preview .close-tooltip{display:none}#panel-alert-preview,#panel-alert-text{font-family:var(--sa11y-font-face);font-size:var(--sa11y-normal-text);font-weight:400;line-height:22px}.panel-alert-preview{background:var(--sa11y-panel-bg-secondary);border:1px dashed var(--sa11y-panel-bg-splitter);border-radius:5px;margin-top:15px;padding:10px}.panel-alert-preview ul{margin:0;margin-block-end:0;margin-block-start:0;padding:0;position:relative}.panel-alert-preview li{display:list-item;margin:5px 10px 0 20px;padding-bottom:5px}.element-preview{background-color:var(--sa11y-element-preview);border-radius:3.2px;margin-bottom:10px;overflow-wrap:break-word;padding:5px}button[data-sa11y-dismiss]{background:var(--sa11y-panel-bg-secondary);border:2px solid var(--sa11y-button-outline);border-radius:5px;color:var(--sa11y-panel-primary);cursor:pointer;display:block;margin:10px 5px 5px 0;margin-inline-end:15px;padding:4px 8px}button[data-sa11y-dismiss]:focus,button[data-sa11y-dismiss]:hover{background:var(--sa11y-shortcut-hover)}h2{font-size:var(--sa11y-large-text);font-weight:700}h2,h3{display:block;margin-bottom:3px}h3{font-size:calc(var(--sa11y-large-text) - 1px)}h3,strong{font-weight:600}a:not(#outline-list a):not(.edit){border-bottom:0;color:var(--sa11y-hyperlink);cursor:pointer;font-weight:500;text-decoration:underline}a:focus,a:hover{text-decoration:none!important}hr{background:var(--sa11y-panel-bg-splitter);border:none;height:1px;margin:10px 0;opacity:1;padding:0}#dismiss-button,#skip-button{background:var(--sa11y-panel-bg-secondary);border:1px solid var(--sa11y-button-outline);border-radius:50px;cursor:pointer;display:none;height:36px;margin-inline-end:8px;margin-inline-start:2px;overflow:visible;position:relative;text-align:center;transition:all .1s ease-in-out;width:36px}#dismiss-button.active,#skip-button.active{display:block}#dismiss-button:disabled,#skip-button:disabled{background:none;border:0;box-shadow:none;cursor:default}#dismiss-button:before,#skip-button:before{content:"";inset:-5px;position:absolute}#dismiss-button:focus:not(:disabled),#dismiss-button:hover:not(:disabled),#skip-button:focus:not(:disabled),#skip-button:hover:not(:disabled){background-color:var(--sa11y-shortcut-hover)}#panel.left #dismiss-button,#panel.left #skip-button,#panel.top-left #dismiss-button,#panel.top-left #skip-button{margin-inline-end:2px;margin-inline-start:8px}.dismiss-icon{background:var(--sa11y-setting-switch-bg-off);display:inline-block;height:24px;margin-bottom:-4px;-webkit-mask:var(--sa11y-dismiss-icon) center no-repeat;mask:var(--sa11y-dismiss-icon) center no-repeat;width:24px}.dismiss-group{display:flex}@media screen and (forced-colors:active){.dismiss-icon{filter:invert(1)}}#panel-content{align-items:center;color:var(--sa11y-panel-primary);display:flex;padding:6px}#panel-content.errors .panel-icon,#panel-content.good .panel-icon,#panel-content.warnings .panel-icon{height:26px;margin:0 auto;width:26px}#panel-content.errors .panel-icon{background:var(--sa11y-panel-error);margin-top:-2px;-webkit-mask:var(--sa11y-error-svg) center no-repeat;mask:var(--sa11y-error-svg) center no-repeat}#panel-content.good .panel-icon{background:var(--sa11y-good);-webkit-mask:var(--sa11y-good-svg) center no-repeat;mask:var(--sa11y-good-svg) center no-repeat}#panel-content.warnings .panel-icon{background:var(--sa11y-yellow-text);-webkit-mask:var(--sa11y-warning-svg) center no-repeat;mask:var(--sa11y-warning-svg) center no-repeat;transform:scaleX(var(--sa11y-icon-direction))}@media screen and (forced-colors:active){#panel-content.errors .panel-icon,#panel-content.good .panel-icon,#panel-content.warnings .panel-icon{filter:invert(1)}}#panel.left #panel-content,#panel.top-left #panel-content{flex-direction:row-reverse}#status{font-size:var(--sa11y-large-text)}#status,.panel-count{color:var(--sa11y-panel-primary)}.panel-count{background-color:var(--sa11y-panel-badge);border-radius:4px;font-size:15px;font-weight:400;margin-left:3px;margin-right:3px;padding:2px 4px}#images-panel,#outline-panel,#page-issues,#settings-panel{color:var(--sa11y-panel-primary);display:none;opacity:0}#images-panel.active,#outline-panel.active,#page-issues.active,#settings-panel.active{display:block;opacity:1}.panel-header{display:flex;justify-content:space-between;padding:10px 15px 0;text-align:start}#about-content{padding-top:5px}#about-content p{display:block;margin-block-end:1em}#images-content,#outline-content,#page-issues-content,#settings-content{border-bottom:1px solid var(--sa11y-panel-bg-splitter);padding:0 15px 10px}.top-left #images-content,.top-left #outline-content,.top-left #page-issues-content,.top-left #settings-content,.top-right #images-content,.top-right #outline-content,.top-right #page-issues-content,.top-right #settings-content{border:0}#page-issues-content{max-height:160px;overflow-y:auto}#settings-content{max-height:400px;overflow-y:auto}#images-content,#outline-content{max-height:250px;overflow-y:auto}#outline-panel .outline-list-item.sa11y-red-text,#settings-panel .sa11y-red-text{color:var(--sa11y-red-text)}#outline-list{display:block;margin:0;padding:0}#outline-list a{cursor:pointer;display:block;text-decoration:none}#outline-list li{display:block;list-style-type:none;margin-bottom:3px;margin-top:0;padding:0}#outline-list li:first-child{margin-top:5px}#outline-list li a:focus,#outline-list li a:hover{background:var(--sa11y-panel-outline-hover);border-radius:5px;box-shadow:0 0 0 2px var(--sa11y-panel-outline-hover);display:block}#outline-list .outline-2{margin-inline-start:15px}#outline-list .outline-3{margin-inline-start:30px}#outline-list .outline-4{margin-inline-start:45px}#outline-list .outline-5{margin-inline-start:60px}#outline-list .outline-6{margin-inline-start:75px}#images-list{display:block;margin:0;padding:0}#images-list li{border-bottom:1px solid var(--sa11y-panel-bg-splitter);display:block;list-style-type:none;margin:15px 0;overflow:hidden;width:100%}#images-list li:first-child{margin-top:5px}#images-list li:last-child{border:none;margin-bottom:0}#images-list li .alt{padding:2px 5px 10px}#images-list li .edit-block{display:flex;justify-content:flex-end;margin-bottom:15px}#images-list li .edit{background:var(--sa11y-panel-bg-secondary);border:2px solid var(--sa11y-button-outline);border-radius:5px;color:var(--sa11y-panel-primary);cursor:pointer;margin-inline-end:5px;padding:4px 7px;position:relative;text-decoration:none}#images-list li .edit:focus,#images-list li .edit:hover{background-color:var(--sa11y-shortcut-hover)}#images-list li .edit:before{content:"";inset:-10px;position:absolute}#images-list li img{border-radius:5px;float:inline-start;margin-block-end:15px;margin-inline-end:10px;max-width:110px}#images-list li.warning .alt{color:var(--sa11y-yellow-text)}#images-list li.warning img{background-color:var(--sa11y-yellow-text);border:5px solid var(--sa11y-yellow-text)}#images-list li.error .alt{color:var(--sa11y-error)}#images-list li.error img{background-color:var(--sa11y-error);border:5px solid var(--sa11y-error)}#images-list li.good img{background-color:var(--sa11y-panel-badge);border:5px solid var(--sa11y-panel-badge)}@media screen and (forced-colors:active){#images-list li img{background-color:ButtonBorder!important}}.move-panel-icon{height:18px;-webkit-mask:var(--sa11y-move-panel-icon);mask:var(--sa11y-move-panel-icon);-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;width:18px}.info-icon,.move-panel-icon{background:var(--sa11y-setting-switch-bg-off);display:inline-block;vertical-align:middle}.info-icon{height:20px;margin-top:-2px;-webkit-mask:var(--sa11y-info-icon);mask:var(--sa11y-info-icon);-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;width:20px}.sun-icon{-webkit-mask:var(--sa11y-sun-icon);mask:var(--sa11y-sun-icon);-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}.moon-icon,.sun-icon{background:var(--sa11y-setting-switch-bg-off);display:inline-block;height:18px;vertical-align:middle;width:18px}.moon-icon{-webkit-mask:var(--sa11y-moon-icon);mask:var(--sa11y-moon-icon);-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}.error-icon{background:var(--sa11y-error-text);margin-bottom:-4px;-webkit-mask:var(--sa11y-error-svg);mask:var(--sa11y-error-svg);-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}.error-icon,.hidden-icon{display:inline-block;height:16px;width:16px}.hidden-icon{margin-bottom:-3px;-webkit-mask:var(--sa11y-hidden-icon-svg);mask:var(--sa11y-hidden-icon-svg);-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}.hidden-icon,.link-icon{background:var(--sa11y-panel-primary)}.link-icon{display:inline-block;height:16px;margin-bottom:-3.5px;-webkit-mask:var(--sa11y-link-icon-svg);mask:var(--sa11y-link-icon-svg);-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;width:16px}.error-badge .hidden-icon,.error-badge .link-icon{background:var(--sa11y-error-text)}.warning-badge .hidden-icon,.warning-badge .link-icon{background:var(--sa11y-panel-bg)}.error .link-icon{background:var(--sa11y-error-text)}.warning .link-icon{background:var(--sa11y-panel-bg)}@media screen and (forced-colors:active){.error-icon,.hidden-icon,.info-icon,.link-icon,.moon-icon,.move-panel-icon,.sun-icon{filter:invert(1)}}#panel-controls{border-bottom:1px solid var(--sa11y-panel-bg-splitter);border-radius:0 0 4px 4px;display:flex;overflow:hidden}#panel-controls button{background:var(--sa11y-panel-bg-secondary);background-color:var(--sa11y-panel-bg-secondary);border-inline-end:1px solid var(--sa11y-panel-bg-splitter);border-top:1px solid var(--sa11y-panel-bg-splitter);color:var(--sa11y-panel-secondary);cursor:pointer;display:block;font-size:var(--sa11y-normal-text);font-weight:400;height:30px;line-height:0;margin:0;opacity:1;outline:0;padding:0;position:relative;text-align:center;transition:background .2s;width:100%}#panel-controls button.active,#panel-controls button:hover{background-color:var(--sa11y-shortcut-hover)}#panel-controls button.active{font-weight:600}#export-results-mode,label{color:var(--sa11y-panel-primary);display:inline-block;font-weight:400;margin:0;width:100%}label:not(#colour-filter-mode,#export-results-mode){cursor:pointer}#panel.right #panel-controls:has(#images-toggle):after{content:"";width:80px}#panel.left #panel-controls:has(#images-toggle):before{content:"";width:50px}#settings-panel .appearance-group,#settings-panel .export-results-group{display:flex;margin:5px 0}#settings-panel .appearance-group button,#settings-panel .export-results-group button{align-items:center;border:2px solid var(--sa11y-setting-switch-bg-off);border-radius:5px;cursor:pointer;display:flex;justify-content:center;margin:2px 0;margin-inline-end:4px;margin-inline-start:8px;min-height:34px;min-width:44px;position:relative;text-align:center;white-space:nowrap}#settings-panel .appearance-group button:focus,#settings-panel .appearance-group button:focus-within,#settings-panel .appearance-group button:hover,#settings-panel .export-results-group button:focus,#settings-panel .export-results-group button:focus-within,#settings-panel .export-results-group button:hover{background:var(--sa11y-shortcut-hover)}#settings-panel .appearance-group button:before,#settings-panel .export-results-group button:before{content:"";inset:-7px;position:absolute}#settings-panel .appearance-group button .text,#settings-panel .export-results-group button .text{color:var(--sa11y-setting-switch-bg-off);font-weight:600;padding:0 6px}#settings-panel .switch{background:none;border:0;border-radius:5px;color:var(--sa11y-setting-switch-bg-off);cursor:pointer;font-size:var(--sa11y-normal-text);font-weight:600;height:44px;margin:0;padding:7px 10px;position:relative;text-align:end;width:105px}#settings-panel .switch[aria-pressed=false]:after,#settings-panel .switch[aria-pressed=true]:after{content:"";display:inline-block;height:27px;margin:0 4px 4px;vertical-align:middle;width:27px}#settings-panel .switch[aria-pressed=true]:after{background:var(--sa11y-setting-switch-bg-on);-webkit-mask:var(--sa11y-setting-switch-on-svg) center no-repeat;mask:var(--sa11y-setting-switch-on-svg) center no-repeat}#settings-panel .switch[aria-pressed=false]:after{background:var(--sa11y-setting-switch-bg-off);-webkit-mask:var(--sa11y-setting-switch-off-svg) center no-repeat;mask:var(--sa11y-setting-switch-off-svg) center no-repeat}@media screen and (forced-colors:active){#settings-panel .switch[aria-pressed=false]:after,#settings-panel .switch[aria-pressed=true]:after{filter:invert(1)}}#settings-panel #settings-options li{align-items:center;border-bottom:1px solid var(--sa11y-panel-bg-splitter);display:flex;justify-content:space-between;list-style-type:none;padding:1px 0}#settings-panel #settings-options li:last-child{border:none}#page-issues{align-items:center;color:var(--sa11y-panel-primary)}#page-issues-list{display:block;margin-top:4px}#page-issues-list li{display:block;margin:0 0 10px}.top-left.has-page-issues #page-issues,.top-right.has-page-issues #page-issues{border-top:1px solid var(--sa11y-panel-bg-splitter);margin-top:-1px}#panel-colour-filters{align-items:center;color:var(--sa11y-panel-primary);display:none;font-family:var(--sa11y-font-face);font-size:var(--sa11y-normal-text);font-weight:400;line-height:22px}#panel-colour-filters.active{display:flex}#panel-colour-filters p{padding:6px 20px 6px 6px;width:100%}#panel-colour-filters[data-colour=protanopia]{border-bottom:6px solid transparent;-o-border-image:linear-gradient(94deg,#786719 11%,#e0c600 36%,#e0c600 47%,#0059e3 75%,#0042aa 91%);border-image:linear-gradient(94deg,#786719 11%,#e0c600 36%,#e0c600 47%,#0059e3 75%,#0042aa 91%);border-image-slice:1}#panel-colour-filters[data-colour=deuteranopia]{border-bottom:6px solid transparent;-o-border-image:linear-gradient(270deg,#567fdb,#a4a28d 48%,#c3ad14 69%,#a79505);border-image:linear-gradient(270deg,#567fdb,#a4a28d 48%,#c3ad14 69%,#a79505);border-image-slice:1}#panel-colour-filters[data-colour=tritanopia]{border-bottom:6px solid transparent;-o-border-image:linear-gradient(270deg,#b1506f,#0696c1 35%,#f3a9ba 70%,#d91c5d 87%,#fe015c);border-image:linear-gradient(270deg,#b1506f,#0696c1 35%,#f3a9ba 70%,#d91c5d 87%,#fe015c);border-image-slice:1}#panel-colour-filters[data-colour=monochromacy]{border-bottom:6px solid transparent;-o-border-image:linear-gradient(270deg,#000,#a7a7a7 50%,#000);border-image:linear-gradient(270deg,#000,#a7a7a7 50%,#000);border-image-slice:1}#panel-colour-filters[data-colour=protanopia] .panel-icon{background:var(--sa11y-panel-error)}#panel-colour-filters[data-colour=deuteranopia] .panel-icon{background:var(--sa11y-good-hover)}#panel-colour-filters[data-colour=tritanopia] .panel-icon{background:var(--sa11y-blue)}#panel-colour-filters[data-colour=monochromacy] .panel-icon{background:linear-gradient(90deg,#38a459 20%,red 50%,#0077c8 80%)}#panel-colour-filters .panel-icon{height:30px;margin-inline-end:5px;margin-inline-start:10px;-webkit-mask:var(--sa11y-low-vision-icon) center no-repeat;mask:var(--sa11y-low-vision-icon) center no-repeat;width:30px}@media screen and (forced-colors:active){#panel-colour-filters .panel-icon{forced-color-adjust:none}}.select-dropdown{align-items:center;display:flex;position:relative}.select-dropdown:after{border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid var(--sa11y-setting-switch-bg-off);content:" ";inset-inline-end:14px;position:absolute}#colour-filter-select{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:var(--sa11y-panel-bg);border:2px solid var(--sa11y-setting-switch-bg-off);border-radius:5px;color:var(--sa11y-setting-switch-bg-off);cursor:pointer;font-size:var(--sa11y-normal-text);font-weight:600;height:30px;margin-inline-end:4px;padding-inline-end:25px;padding-inline-start:5px;position:relative;text-align:end;vertical-align:middle}#colour-filter-select:focus,#colour-filter-select:hover{background:var(--sa11y-shortcut-hover)}#colour-filter-select.active{box-shadow:0 0 0 2px var(--sa11y-setting-switch-bg-on)}#colour-filter-item label,#colour-filter-item select{margin-bottom:9px;margin-top:10px}#readability-panel{display:none;opacity:0}#readability-panel.active{display:block;opacity:1}.top-left #readability-content,.top-right #readability-content{border-top:1px solid var(--sa11y-panel-bg-splitter)}.left #readability-content,.right #readability-content{border-bottom:1px solid var(--sa11y-panel-bg-splitter)}#readability-content{color:var(--sa11y-panel-primary);padding:10px 15px;width:100%}#readability-details{list-style-type:none;margin:0;padding:0;white-space:normal}#readability-details li{display:inline-block;list-style-type:none;margin:0;padding-inline-end:10px}.readability-score{background-color:var(--sa11y-panel-badge);border-radius:4px;color:var(--sa11y-panel-primary);margin-inline-start:5px;padding:2px 5px}#readability-info{margin-inline-start:10px}#skip-to-page-issues{display:none}#panel.has-page-issues #skip-to-page-issues{clip:rect(0,0,0,0);background:var(--sa11y-panel-bg);border:0;border-radius:5px;display:block;font-weight:600;height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px}#panel.has-page-issues #skip-to-page-issues:focus{clip:auto;height:auto;margin:0;overflow:visible;padding:7px 10px;white-space:normal;width:auto;z-index:1}.hide-settings-border{border-bottom:0!important;padding:0 15px!important}.hide-settings-border li:not(#colour-filter-item){display:none!important}.hide-settings-border #about-content{display:none}.hide-settings-border.scrollable:before{all:unset}#contrast-tools{display:none}::-webkit-scrollbar{height:6px;width:7px}::-webkit-scrollbar-thumb{background-color:var(--sa11y-button-outline);border-radius:6px}*{scrollbar-color:var(--sa11y-button-outline);scrollbar-width:thin}.scrollable:before{animation:fade 1s ease-in-out;background:linear-gradient(180deg,transparent 70%,var(--sa11y-panel-scrollable) 100%);background-position:bottom;bottom:auto;content:"";height:250px;left:0;position:absolute;right:0;top:auto;transition:opacity 1s ease-in-out;width:100%;z-index:-1}#settings-content.scrollable:before{height:400px}.top-left .scrollable:before,.top-right .scrollable:before{border-radius:5px}#page-issues-content.scrollable:before{height:160px}#panel-alert.scrollable:before{height:200px}@keyframes sa11y-toggle-gradient{0%{background-position:50% 0}50%{background-position:50% 100%}to{background-position:50% 0}}@keyframes fade{0%{opacity:0}to{opacity:1}}@media (prefers-reduced-motion:reduce){*{animation:none!important;transform:none!important;transition:none!important}}#panel{width:400px}#container:lang(en) #panel{width:315px}#container:lang(da) #panel,#container:lang(de) #panel,#container:lang(nb) #panel,#container:lang(pl) #panel,#container:lang(sv) #panel,#container:lang(zh) #panel{width:365px}#container:lang(bg) .switch:not(#export-results-item *),#container:lang(es) .switch:not(#export-results-item *){width:225px!important}#container:not(:lang(en)):not(:lang(de)) .switch{width:205px}'+Y,this.shadowRoot.appendChild(e);const o="On"===v.getItem("sa11y-developer"),i="On"===v.getItem("sa11y-readability"),s=v.getItem("sa11y-theme"),a=v.getItem("sa11y-position"),r=n.Global.checkAllHideToggles,l=n.Global.developerPlugin?`\n
  • \n \n \n \n
  • `:"",c=n.Readability.Plugin?`\n
  • \n \n \n \n
  • `:"",d=n.Global.colourFilterPlugin?`\n
  • \n \n
    \n \n
    \n
  • `:"",p=n.Global.colourFilterPlugin?`\n
    \n \n

    ${t._("COLOUR_FILTER_MESSAGE")}

    \n
    `:"",u=n.Global.exportResultsPlugin?`\n
  • \n ${t._("EXPORT_RESULTS")}\n
    \n \n \n
    \n
  • `:"",h=n.Global.aboutContent?`\n
    ${n.Global.aboutContent}
    `:"",g=`\n `,m=`\n
    \n
    \n

    ${t._("PAGE_ISSUES")}

    \n
    \n
    \n
      \n
      \n
      `,f=`\n
      \n
      \n

      ${t._("OUTLINE")}

      \n
      \n
      \n
        \n
        \n
        \n
        \n

        ${t._("READABILITY")}

        \n

        \n
          \n
          \n
          \n
          `,b=n.Global.showImageOutline?`\n
          \n
          \n

          ${t._("IMAGES")}

          \n
          \n
          \n
            \n
            \n
            `:"",y="left"===a||"top-left"===a?"true":"false",A=n.Global.showMovePanelToggle?``:"",E=`\n
            \n
            \n

            ${t._("SETTINGS")}

            \n
            \n
            \n
              \n ${l}\n ${c}\n
            • \n ${t._("APPEARANCE")}\n
              \n \n ${A}\n
              \n
            • \n ${u}\n ${d}\n
            \n ${h}\n
            \n
            `,_=`\n
            \n
            \n
            \n \n

            ${t._("ALERT_TEXT")}

            \n
            \n

            \n
            \n
            \n
            `,L=`\n
            \n \n \n \n
            \n

            ${t._("PANEL_HEADING")}

            \n

            \n
            \n
            `,I=``,T=`\n
            \n \n ${n.Global.showImageOutline?I:""}\n \n
            `,x=document.createElement("div");x.setAttribute("id","container"),x.setAttribute("role","region"),x.setAttribute("data-sa11y-version",W),x.setAttribute("lang",t._("LANG_CODE")),x.setAttribute("aria-label",t._("CONTAINER_LABEL")),x.setAttribute("dir",n.Global.langDirection),x.innerHTML="top-left"===a||"top-right"===a?`\n ${g}\n
            \n ${L}\n ${p}\n ${T}\n ${f}\n ${b}\n ${E}\n ${_}\n ${m}\n
            `:`\n ${g}\n
            \n ${m}\n ${f}\n ${b}\n ${E}\n ${_}\n ${p}\n ${L}\n ${T}\n
            `,this.shadowRoot.appendChild(x),n.initializePanelSelectors()}}const V=()=>{n.Panel.outlineToggle.classList.add("active"),n.Panel.outline.classList.add("active"),n.Panel.outlineToggle.setAttribute("aria-expanded","true"),v.setItem("sa11y-outline","Opened"),N(n.Panel.outlineList,n.Panel.outlineContent);o("sa11y-heading-label","root").forEach(e=>e.hidden=!1);const e=new CustomEvent("sa11y-build-heading-outline");document.dispatchEvent(e)},j=()=>{n.Panel.outline.classList.remove("active"),n.Panel.outlineToggle.classList.remove("active"),n.Panel.outlineToggle.setAttribute("aria-expanded","false"),v.setItem("sa11y-outline","Closed");o("sa11y-heading-label","root").forEach(e=>e.hidden=!0)},q=()=>{n.Panel.imagesToggle.classList.add("active"),n.Panel.images.classList.add("active"),n.Panel.imagesToggle.setAttribute("aria-expanded","true"),v.setItem("sa11y-images","Opened"),N(n.Panel.imagesList,n.Panel.imagesContent);const e=new CustomEvent("sa11y-build-image-outline");document.dispatchEvent(e)},X=()=>{n.Global.showImageOutline&&(n.Panel.imagesToggle.classList.remove("active"),n.Panel.images.classList.remove("active"),n.Panel.imagesToggle.setAttribute("aria-expanded","false"),v.setItem("sa11y-images","Closed"))},Z=()=>{n.Panel.settingsToggle.classList.add("active"),n.Panel.settings.classList.add("active"),n.Panel.settingsToggle.setAttribute("aria-expanded","true"),v.setItem("sa11y-settings","Opened"),N(n.Panel.settingsContent,n.Panel.settingsContent,t._("SETTINGS"))},J=()=>{n.Panel.settings.classList.remove("active"),n.Panel.settingsToggle.classList.remove("active"),n.Panel.settingsToggle.setAttribute("aria-expanded","false"),v.setItem("sa11y-settings","Closed")};function ee(e,i,s){const a=()=>{const r=[];let l;if(e.map(e=>i.find(t=>e.key===t.dismiss&&e.href===window.location.pathname)).filter(Boolean).forEach(e=>Object.assign(e,{dismissedHeading:!0})),s.showTitleInPageOutline){const e=document.querySelector("head title");if(e&&0!==e.textContent.trim().length){const n=f(e);l=`
          • ${t._("TITLE")} ${u(n)}
          • `}else l=`
          • ${t._("TITLE")}
            ${t._("MISSING")}
          • `;r.push(l)}return i.forEach(e=>{const n=e.element,o=e.headingLevel,i=e.text,a=e.index,l=e.type,c=e.hidden,d=e.visibleParent,p=e.dismissedHeading,{isWithinRoot:u}=e;if(!O.Found.OutlineIgnore.includes(n)){const e=!0===c?'Hidden':"",n=!0===c?'class="hidden-h"':"",d=!0===s.showHinPageOutline||1===s.showHinPageOutline?"H":"";let h;"error"===l&&!0===u?(h=`\n
          • \n \n \n \n ${t._("ERROR")} ${d+o}\n ${i}\n \n
          • `,r.push(h)):"warning"!==l||p||!0!==u?(h=`\n
          • \n \n ${e} ${d+o}\n ${i}\n \n
          • `,r.push(h)):(h=`\n
          • \n \n \n \n ${t._("WARNING")} ${d+o}\n ${i}\n \n
          • `,r.push(h))}const h=document.createElement("sa11y-heading-label"),g=document.createElement("sa11y-heading-anchor");if(h.hidden=!0,null!==d){n.insertAdjacentElement("beforeend",h);const e=d.previousElementSibling;g.setAttribute("id",`sa11y-h${a}`),e?(e.insertAdjacentElement("beforebegin",g),e.setAttribute("data-sa11y-parent",`h${a}`)):(d.parentNode.insertAdjacentElement("beforebegin",g),d.parentNode.setAttribute("data-sa11y-parent",`h${a}`))}else n.insertAdjacentElement("beforeend",h),h.insertAdjacentElement("beforebegin",g),g.setAttribute("id",`sa11y-h${a}`);const m=document.createElement("span");m.classList.add("heading-label"),m.innerHTML=`H${o}`,h.shadowRoot.appendChild(m),"Opened"===v.getItem("sa11y-outline")&&(h.hidden=!1)}),n.Panel.outlineList.innerHTML=0===i.length?`${l||""}
          • ${t._("PANEL_NO_HEADINGS")}
          • `:r.join(" "),setTimeout(()=>{const e=document.querySelector("sa11y-control-panel").shadowRoot,i=Array.from(e.querySelectorAll("#outline-list a"));i.forEach((i,s)=>{const a=e.getElementById(`sa11y-link-${s}`),r=o(`#sa11y-h${s}, [data-sa11y-parent="h${s}"]`,"document",n.Exclusions.Container),l=e=>{("keyup"===e.type&&"Enter"===e.code||"click"===e.type)&&(r.forEach(e=>{(e=>{_(e.parentElement),e.scrollIntoView({behavior:`${n.Global.scrollBehaviour}`,block:"center"})})(e)}),a.classList.contains("hidden-h")?T(`${t._("HEADING_NOT_VISIBLE")}`):n.Panel.alert.classList.contains("active")&&I()),e.preventDefault()};a?.addEventListener("click",l,!1),a?.addEventListener("keyup",l,!1)});let s=0;const a=e=>{if(!["ArrowUp","ArrowDown","Space"].includes(e.code))return;if("Space"===e.code)return void i[s].click();let t;i[s].setAttribute("tabindex",-1),"ArrowDown"===e.code?(t=s+1,s===i.length-1&&(t=0)):"ArrowUp"===e.code&&(t=s-1,0===s&&(t=i.length-1)),i[t].setAttribute("tabindex",0),i[t].focus(),s=t,e.preventDefault()};n.Panel.outlineList.addEventListener("focus",()=>{i.length>0&&(n.Panel.outlineList.setAttribute("tabindex",-1),i[s].setAttribute("tabindex",0),i[s].focus()),n.Panel.outlineList.addEventListener("keydown",a)}),n.Panel.outlineList.addEventListener("blur",()=>{n.Panel.outlineList.removeEventListener("keydown",a)})},0),document.removeEventListener("sa11y-build-heading-outline",a),e};"Opened"===v.getItem("sa11y-outline")&&a(),document.addEventListener("sa11y-build-heading-outline",a)}const te=e=>{const{src:o}=e.element,i=n.Global.ignoreEditImageURL.some(e=>o.includes(e)),s=n.Global.ignoreEditImageClass.some(t=>e.element.classList.contains(t));if(i||s)return"";const a=n.Global.relativePathImageSRC||window.location.host,r=o.split(a)[1]||"",l=n.Global.relativePathImageID;let c;l.length&&e.element.classList.length&&e.element.classList.forEach(e=>{if(e.startsWith(l)){const[t]=e.match(/\d+/)||[];c=t}});const d=a&&l.length?n.Global.editImageURLofCMS+c:n.Global.editImageURLofCMS+r;return(l.length&&void 0!==c||!l)&&((p=o).includes(window.location.host)||p.startsWith(a))?``:"";var p};var ne="top",oe="bottom",ie="right",se="left",ae="auto",re=[ne,oe,ie,se],le="start",ce="end",de="viewport",pe="popper",ue=re.reduce(function(e,t){return e.concat([t+"-"+le,t+"-"+ce])},[]),he=[].concat(re,[ae]).reduce(function(e,t){return e.concat([t,t+"-"+le,t+"-"+ce])},[]),ge=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function me(e){return e?(e.nodeName||"").toLowerCase():null}function fe(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function be(e){return e instanceof fe(e).Element||e instanceof Element}function ye(e){return e instanceof fe(e).HTMLElement||e instanceof HTMLElement}function Ae(e){return"undefined"!=typeof ShadowRoot&&(e instanceof fe(e).ShadowRoot||e instanceof ShadowRoot)}var Ee={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach(function(e){var n=t.styles[e]||{},o=t.attributes[e]||{},i=t.elements[e];ye(i)&&me(i)&&(Object.assign(i.style,n),Object.keys(o).forEach(function(e){var t=o[e];!1===t?i.removeAttribute(e):i.setAttribute(e,!0===t?"":t)}))})},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(e){var o=t.elements[e],i=t.attributes[e]||{},s=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce(function(e,t){return e[t]="",e},{});ye(o)&&me(o)&&(Object.assign(o.style,s),Object.keys(i).forEach(function(e){o.removeAttribute(e)}))})}},requires:["computeStyles"]};function ve(e){return e.split("-")[0]}var _e=Math.max,Le=Math.min,Ie=Math.round;function Te(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function xe(){return!/^((?!chrome|android).)*safari/i.test(Te())}function ke(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var o=e.getBoundingClientRect(),i=1,s=1;t&&ye(e)&&(i=e.offsetWidth>0&&Ie(o.width)/e.offsetWidth||1,s=e.offsetHeight>0&&Ie(o.height)/e.offsetHeight||1);var a=(be(e)?fe(e):window).visualViewport,r=!xe()&&n,l=(o.left+(r&&a?a.offsetLeft:0))/i,c=(o.top+(r&&a?a.offsetTop:0))/s,d=o.width/i,p=o.height/s;return{width:d,height:p,top:c,right:l+d,bottom:c+p,left:l,x:l,y:c}}function Ne(e){var t=ke(e),n=e.offsetWidth,o=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-o)<=1&&(o=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:o}}function Se(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Ae(n)){var o=t;do{if(o&&e.isSameNode(o))return!0;o=o.parentNode||o.host}while(o)}return!1}function we(e){return fe(e).getComputedStyle(e)}function Ce(e){return["table","td","th"].indexOf(me(e))>=0}function Oe(e){return((be(e)?e.ownerDocument:e.document)||window.document).documentElement}function Pe(e){return"html"===me(e)?e:e.assignedSlot||e.parentNode||(Ae(e)?e.host:null)||Oe(e)}function Re(e){return ye(e)&&"fixed"!==we(e).position?e.offsetParent:null}function De(e){for(var t=fe(e),n=Re(e);n&&Ce(n)&&"static"===we(n).position;)n=Re(n);return n&&("html"===me(n)||"body"===me(n)&&"static"===we(n).position)?t:n||function(e){var t=/firefox/i.test(Te());if(/Trident/i.test(Te())&&ye(e)&&"fixed"===we(e).position)return null;var n=Pe(e);for(Ae(n)&&(n=n.host);ye(n)&&["html","body"].indexOf(me(n))<0;){var o=we(n);if("none"!==o.transform||"none"!==o.perspective||"paint"===o.contain||-1!==["transform","perspective"].indexOf(o.willChange)||t&&"filter"===o.willChange||t&&o.filter&&"none"!==o.filter)return n;n=n.parentNode}return null}(e)||t}function Me(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Be(e,t,n){return _e(e,Le(t,n))}function $e(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function Ge(e,t){return t.reduce(function(t,n){return t[n]=e,t},{})}var Ue={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,o=e.name,i=e.options,s=n.elements.arrow,a=n.modifiersData.popperOffsets,r=ve(n.placement),l=Me(r),c=[se,ie].indexOf(r)>=0?"height":"width";if(s&&a){var d=function(e,t){return $e("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:Ge(e,re))}(i.padding,n),p=Ne(s),u="y"===l?ne:se,h="y"===l?oe:ie,g=n.rects.reference[c]+n.rects.reference[l]-a[l]-n.rects.popper[c],m=a[l]-n.rects.reference[l],f=De(s),b=f?"y"===l?f.clientHeight||0:f.clientWidth||0:0,y=g/2-m/2,A=d[u],E=b-p[c]-d[h],v=b/2-p[c]/2+y,_=Be(A,v,E),L=l;n.modifiersData[o]=((t={})[L]=_,t.centerOffset=_-v,t)}},effect:function(e){var t=e.state,n=e.options.element,o=void 0===n?"[data-popper-arrow]":n;null!=o&&("string"!=typeof o||(o=t.elements.popper.querySelector(o)))&&Se(t.elements.popper,o)&&(t.elements.arrow=o)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function He(e){return e.split("-")[1]}var Fe={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Ke(e){var t,n=e.popper,o=e.popperRect,i=e.placement,s=e.variation,a=e.offsets,r=e.position,l=e.gpuAcceleration,c=e.adaptive,d=e.roundOffsets,p=e.isFixed,u=a.x,h=void 0===u?0:u,g=a.y,m=void 0===g?0:g,f="function"==typeof d?d({x:h,y:m}):{x:h,y:m};h=f.x,m=f.y;var b=a.hasOwnProperty("x"),y=a.hasOwnProperty("y"),A=se,E=ne,v=window;if(c){var _=De(n),L="clientHeight",I="clientWidth";if(_===fe(n)&&"static"!==we(_=Oe(n)).position&&"absolute"===r&&(L="scrollHeight",I="scrollWidth"),i===ne||(i===se||i===ie)&&s===ce)E=oe,m-=(p&&_===v&&v.visualViewport?v.visualViewport.height:_[L])-o.height,m*=l?1:-1;if(i===se||(i===ne||i===oe)&&s===ce)A=ie,h-=(p&&_===v&&v.visualViewport?v.visualViewport.width:_[I])-o.width,h*=l?1:-1}var T,x=Object.assign({position:r},c&&Fe),k=!0===d?function(e,t){var n=e.x,o=e.y,i=t.devicePixelRatio||1;return{x:Ie(n*i)/i||0,y:Ie(o*i)/i||0}}({x:h,y:m},fe(n)):{x:h,y:m};return h=k.x,m=k.y,l?Object.assign({},x,((T={})[E]=y?"0":"",T[A]=b?"0":"",T.transform=(v.devicePixelRatio||1)<=1?"translate("+h+"px, "+m+"px)":"translate3d("+h+"px, "+m+"px, 0)",T)):Object.assign({},x,((t={})[E]=y?m+"px":"",t[A]=b?h+"px":"",t.transform="",t))}var We={passive:!0};var Ye={left:"right",right:"left",bottom:"top",top:"bottom"};function ze(e){return e.replace(/left|right|bottom|top/g,function(e){return Ye[e]})}var Qe={start:"end",end:"start"};function Ve(e){return e.replace(/start|end/g,function(e){return Qe[e]})}function je(e){var t=fe(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function qe(e){return ke(Oe(e)).left+je(e).scrollLeft}function Xe(e){var t=we(e),n=t.overflow,o=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+o)}function Ze(e){return["html","body","#document"].indexOf(me(e))>=0?e.ownerDocument.body:ye(e)&&Xe(e)?e:Ze(Pe(e))}function Je(e,t){var n;void 0===t&&(t=[]);var o=Ze(e),i=o===(null==(n=e.ownerDocument)?void 0:n.body),s=fe(o),a=i?[s].concat(s.visualViewport||[],Xe(o)?o:[]):o,r=t.concat(a);return i?r:r.concat(Je(Pe(a)))}function et(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function tt(e,t,n){return t===de?et(function(e,t){var n=fe(e),o=Oe(e),i=n.visualViewport,s=o.clientWidth,a=o.clientHeight,r=0,l=0;if(i){s=i.width,a=i.height;var c=xe();(c||!c&&"fixed"===t)&&(r=i.offsetLeft,l=i.offsetTop)}return{width:s,height:a,x:r+qe(e),y:l}}(e,n)):be(t)?function(e,t){var n=ke(e,!1,"fixed"===t);return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}(t,n):et(function(e){var t,n=Oe(e),o=je(e),i=null==(t=e.ownerDocument)?void 0:t.body,s=_e(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),a=_e(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),r=-o.scrollLeft+qe(e),l=-o.scrollTop;return"rtl"===we(i||n).direction&&(r+=_e(n.clientWidth,i?i.clientWidth:0)-s),{width:s,height:a,x:r,y:l}}(Oe(e)))}function nt(e,t,n,o){var i="clippingParents"===t?function(e){var t=Je(Pe(e)),n=["absolute","fixed"].indexOf(we(e).position)>=0&&ye(e)?De(e):e;return be(n)?t.filter(function(e){return be(e)&&Se(e,n)&&"body"!==me(e)}):[]}(e):[].concat(t),s=[].concat(i,[n]),a=s[0],r=s.reduce(function(t,n){var i=tt(e,n,o);return t.top=_e(i.top,t.top),t.right=Le(i.right,t.right),t.bottom=Le(i.bottom,t.bottom),t.left=_e(i.left,t.left),t},tt(e,a,o));return r.width=r.right-r.left,r.height=r.bottom-r.top,r.x=r.left,r.y=r.top,r}function ot(e){var t,n=e.reference,o=e.element,i=e.placement,s=i?ve(i):null,a=i?He(i):null,r=n.x+n.width/2-o.width/2,l=n.y+n.height/2-o.height/2;switch(s){case ne:t={x:r,y:n.y-o.height};break;case oe:t={x:r,y:n.y+n.height};break;case ie:t={x:n.x+n.width,y:l};break;case se:t={x:n.x-o.width,y:l};break;default:t={x:n.x,y:n.y}}var c=s?Me(s):null;if(null!=c){var d="y"===c?"height":"width";switch(a){case le:t[c]=t[c]-(n[d]/2-o[d]/2);break;case ce:t[c]=t[c]+(n[d]/2-o[d]/2)}}return t}function it(e,t){void 0===t&&(t={});var n=t,o=n.placement,i=void 0===o?e.placement:o,s=n.strategy,a=void 0===s?e.strategy:s,r=n.boundary,l=void 0===r?"clippingParents":r,c=n.rootBoundary,d=void 0===c?de:c,p=n.elementContext,u=void 0===p?pe:p,h=n.altBoundary,g=void 0!==h&&h,m=n.padding,f=void 0===m?0:m,b=$e("number"!=typeof f?f:Ge(f,re)),y=u===pe?"reference":pe,A=e.rects.popper,E=e.elements[g?y:u],v=nt(be(E)?E:E.contextElement||Oe(e.elements.popper),l,d,a),_=ke(e.elements.reference),L=ot({reference:_,element:A,strategy:"absolute",placement:i}),I=et(Object.assign({},A,L)),T=u===pe?I:_,x={top:v.top-T.top+b.top,bottom:T.bottom-v.bottom+b.bottom,left:v.left-T.left+b.left,right:T.right-v.right+b.right},k=e.modifiersData.offset;if(u===pe&&k){var N=k[i];Object.keys(x).forEach(function(e){var t=[ie,oe].indexOf(e)>=0?1:-1,n=[ne,oe].indexOf(e)>=0?"y":"x";x[e]+=N[n]*t})}return x}function st(e,t){void 0===t&&(t={});var n=t,o=n.placement,i=n.boundary,s=n.rootBoundary,a=n.padding,r=n.flipVariations,l=n.allowedAutoPlacements,c=void 0===l?he:l,d=He(o),p=d?r?ue:ue.filter(function(e){return He(e)===d}):re,u=p.filter(function(e){return c.indexOf(e)>=0});0===u.length&&(u=p);var h=u.reduce(function(t,n){return t[n]=it(e,{placement:n,boundary:i,rootBoundary:s,padding:a})[ve(n)],t},{});return Object.keys(h).sort(function(e,t){return h[e]-h[t]})}var at={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,o=e.name;if(!t.modifiersData[o]._skip){for(var i=n.mainAxis,s=void 0===i||i,a=n.altAxis,r=void 0===a||a,l=n.fallbackPlacements,c=n.padding,d=n.boundary,p=n.rootBoundary,u=n.altBoundary,h=n.flipVariations,g=void 0===h||h,m=n.allowedAutoPlacements,f=t.options.placement,b=ve(f),y=l||(b===f||!g?[ze(f)]:function(e){if(ve(e)===ae)return[];var t=ze(e);return[Ve(e),t,Ve(t)]}(f)),A=[f].concat(y).reduce(function(e,n){return e.concat(ve(n)===ae?st(t,{placement:n,boundary:d,rootBoundary:p,padding:c,flipVariations:g,allowedAutoPlacements:m}):n)},[]),E=t.rects.reference,v=t.rects.popper,_=new Map,L=!0,I=A[0],T=0;T=0,w=S?"width":"height",C=it(t,{placement:x,boundary:d,rootBoundary:p,altBoundary:u,padding:c}),O=S?N?ie:se:N?oe:ne;E[w]>v[w]&&(O=ze(O));var P=ze(O),R=[];if(s&&R.push(C[k]<=0),r&&R.push(C[O]<=0,C[P]<=0),R.every(function(e){return e})){I=x,L=!1;break}_.set(x,R)}if(L)for(var D=function(e){var t=A.find(function(t){var n=_.get(t);if(n)return n.slice(0,e).every(function(e){return e})});if(t)return I=t,"break"},M=g?3:1;M>0;M--){if("break"===D(M))break}t.placement!==I&&(t.modifiersData[o]._skip=!0,t.placement=I,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function rt(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function lt(e){return[ne,ie,oe,se].some(function(t){return e[t]>=0})}var ct={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,o=e.name,i=n.offset,s=void 0===i?[0,0]:i,a=he.reduce(function(e,n){return e[n]=function(e,t,n){var o=ve(e),i=[se,ne].indexOf(o)>=0?-1:1,s="function"==typeof n?n(Object.assign({},t,{placement:e})):n,a=s[0],r=s[1];return a=a||0,r=(r||0)*i,[se,ie].indexOf(o)>=0?{x:r,y:a}:{x:a,y:r}}(n,t.rects,s),e},{}),r=a[t.placement],l=r.x,c=r.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[o]=a}};var dt={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,o=e.name,i=n.mainAxis,s=void 0===i||i,a=n.altAxis,r=void 0!==a&&a,l=n.boundary,c=n.rootBoundary,d=n.altBoundary,p=n.padding,u=n.tether,h=void 0===u||u,g=n.tetherOffset,m=void 0===g?0:g,f=it(t,{boundary:l,rootBoundary:c,padding:p,altBoundary:d}),b=ve(t.placement),y=He(t.placement),A=!y,E=Me(b),v="x"===E?"y":"x",_=t.modifiersData.popperOffsets,L=t.rects.reference,I=t.rects.popper,T="function"==typeof m?m(Object.assign({},t.rects,{placement:t.placement})):m,x="number"==typeof T?{mainAxis:T,altAxis:T}:Object.assign({mainAxis:0,altAxis:0},T),k=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,N={x:0,y:0};if(_){if(s){var S,w="y"===E?ne:se,C="y"===E?oe:ie,O="y"===E?"height":"width",P=_[E],R=P+f[w],D=P-f[C],M=h?-I[O]/2:0,B=y===le?L[O]:I[O],$=y===le?-I[O]:-L[O],G=t.elements.arrow,U=h&&G?Ne(G):{width:0,height:0},H=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},F=H[w],K=H[C],W=Be(0,L[O],U[O]),Y=A?L[O]/2-M-W-F-x.mainAxis:B-W-F-x.mainAxis,z=A?-L[O]/2+M+W+K+x.mainAxis:$+W+K+x.mainAxis,Q=t.elements.arrow&&De(t.elements.arrow),V=Q?"y"===E?Q.clientTop||0:Q.clientLeft||0:0,j=null!=(S=null==k?void 0:k[E])?S:0,q=P+z-j,X=Be(h?Le(R,P+Y-j-V):R,P,h?_e(D,q):D);_[E]=X,N[E]=X-P}if(r){var Z,J="x"===E?ne:se,ee="x"===E?oe:ie,te=_[v],ae="y"===v?"height":"width",re=te+f[J],ce=te-f[ee],de=-1!==[ne,se].indexOf(b),pe=null!=(Z=null==k?void 0:k[v])?Z:0,ue=de?re:te-L[ae]-I[ae]-pe+x.altAxis,he=de?te+L[ae]+I[ae]-pe-x.altAxis:ce,ge=h&&de?function(e,t,n){var o=Be(e,t,n);return o>n?n:o}(ue,te,he):Be(h?ue:re,te,h?he:ce);_[v]=ge,N[v]=ge-te}t.modifiersData[o]=N}},requiresIfExists:["offset"]};function pt(e,t,n){void 0===n&&(n=!1);var o,i,s=ye(t),a=ye(t)&&function(e){var t=e.getBoundingClientRect(),n=Ie(t.width)/e.offsetWidth||1,o=Ie(t.height)/e.offsetHeight||1;return 1!==n||1!==o}(t),r=Oe(t),l=ke(e,a,n),c={scrollLeft:0,scrollTop:0},d={x:0,y:0};return(s||!s&&!n)&&(("body"!==me(t)||Xe(r))&&(c=(o=t)!==fe(o)&&ye(o)?{scrollLeft:(i=o).scrollLeft,scrollTop:i.scrollTop}:je(o)),ye(t)?((d=ke(t,!0)).x+=t.clientLeft,d.y+=t.clientTop):r&&(d.x=qe(r))),{x:l.left+c.scrollLeft-d.x,y:l.top+c.scrollTop-d.y,width:l.width,height:l.height}}function ut(e){var t=new Map,n=new Set,o=[];function i(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach(function(e){if(!n.has(e)){var o=t.get(e);o&&i(o)}}),o.push(e)}return e.forEach(function(e){t.set(e.name,e)}),e.forEach(function(e){n.has(e.name)||i(e)}),o}var ht={placement:"bottom",modifiers:[],strategy:"absolute"};function gt(){for(var e=arguments.length,t=new Array(e),n=0;n-1}function It(e,t){return"function"==typeof e?e.apply(void 0,t):e}function Tt(e,t){return 0===t?e:function(o){clearTimeout(n),n=setTimeout(function(){e(o)},t)};var n}function xt(e){return[].concat(e)}function kt(e,t){-1===e.indexOf(t)&&e.push(t)}function Nt(e){return[].slice.call(e)}function St(e){return Object.keys(e).reduce(function(t,n){return void 0!==e[n]&&(t[n]=e[n]),t},{})}function wt(){return document.createElement("div")}function Ct(e){return["Element","Fragment"].some(function(t){return Lt(e,t)})}function Ot(e){return Ct(e)?[e]:function(e){return Lt(e,"NodeList")}(e)?Nt(e):Array.isArray(e)?e:Nt(document.querySelectorAll(e))}function Pt(e,t){e.forEach(function(e){e&&(e.style.transitionDuration=t+"ms")})}function Rt(e,t){e.forEach(function(e){e&&e.setAttribute("data-state",t)})}function Dt(e,t,n){var o=t+"EventListener";["transitionend","webkitTransitionEnd"].forEach(function(t){e[o](t,n)})}function Mt(e,t){for(var n=t;n;){var o;if(e.contains(n))return!0;n=null==n.getRootNode||null==(o=n.getRootNode())?void 0:o.host}return!1}var Bt={isTouch:!1},$t=0;function Gt(){Bt.isTouch||(Bt.isTouch=!0,window.performance&&document.addEventListener("mousemove",Ut))}function Ut(){var e=performance.now();e-$t<20&&(Bt.isTouch=!1,document.removeEventListener("mousemove",Ut)),$t=e}function Ht(){var e,t=document.activeElement;if((e=t)&&e._tippy&&e._tippy.reference===e){var n=t._tippy;t.blur&&!n.state.isVisible&&t.blur()}}var Ft=!!("undefined"!=typeof window&&"undefined"!=typeof document)&&!!window.msCrypto,Kt=Object.assign({appendTo:vt,aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},{animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},{allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999}),Wt=Object.keys(Kt);function Yt(e){var t=(e.plugins||[]).reduce(function(t,n){var o,i=n.name,s=n.defaultValue;i&&(t[i]=void 0!==e[i]?e[i]:null!=(o=Kt[i])?o:s);return t},{});return Object.assign({},e,t)}function zt(e,t){var n=Object.assign({},t,{content:It(t.content,[e])},t.ignoreAttributes?{}:function(e,t){return(t?Object.keys(Yt(Object.assign({},Kt,{plugins:t}))):Wt).reduce(function(t,n){var o=(e.getAttribute("data-tippy-"+n)||"").trim();if(!o)return t;if("content"===n)t[n]=o;else try{t[n]=JSON.parse(o)}catch(e){t[n]=o}return t},{})}(e,t.plugins));return n.aria=Object.assign({},Kt.aria,n.aria),n.aria={expanded:"auto"===n.aria.expanded?t.interactive:n.aria.expanded,content:"auto"===n.aria.content?t.interactive?null:"describedby":n.aria.content},n}function Qt(e,t){e.innerHTML=t}function Vt(e){var t=wt();return!0===e?t.className=yt:(t.className=At,Ct(e)?t.appendChild(e):Qt(t,e)),t}function jt(e,t){Ct(t.content)?(Qt(e,""),e.appendChild(t.content)):"function"!=typeof t.content&&(t.allowHTML?Qt(e,t.content):e.textContent=t.content)}function qt(e){var t=e.firstElementChild,n=Nt(t.children);return{box:t,content:n.find(function(e){return e.classList.contains(bt)}),arrow:n.find(function(e){return e.classList.contains(yt)||e.classList.contains(At)}),backdrop:n.find(function(e){return e.classList.contains("tippy-backdrop")})}}function Xt(e){var t=wt(),n=wt();n.className="tippy-box",n.setAttribute("data-state","hidden"),n.setAttribute("tabindex","-1");var o=wt();function i(n,o){var i=qt(t),s=i.box,a=i.content,r=i.arrow;o.theme?s.setAttribute("data-theme",o.theme):s.removeAttribute("data-theme"),"string"==typeof o.animation?s.setAttribute("data-animation",o.animation):s.removeAttribute("data-animation"),o.inertia?s.setAttribute("data-inertia",""):s.removeAttribute("data-inertia"),s.style.maxWidth="number"==typeof o.maxWidth?o.maxWidth+"px":o.maxWidth,o.role?s.setAttribute("role",o.role):s.removeAttribute("role"),n.content===o.content&&n.allowHTML===o.allowHTML||jt(a,e.props),o.arrow?r?n.arrow!==o.arrow&&(s.removeChild(r),s.appendChild(Vt(o.arrow))):s.appendChild(Vt(o.arrow)):r&&s.removeChild(r)}return o.className=bt,o.setAttribute("data-state","hidden"),jt(o,e.props),t.appendChild(n),n.appendChild(o),i(e.props,e.props),{popper:t,onUpdate:i}}Xt.$$tippy=!0;var Zt=1,Jt=[],en=[];function tn(e,t){var n,o,i,s,a,r,l,c,d=zt(e,Object.assign({},Kt,Yt(St(t)))),p=!1,u=!1,h=!1,g=!1,m=[],f=Tt(Q,d.interactiveDebounce),b=Zt++,y=(c=d.plugins).filter(function(e,t){return c.indexOf(e)===t}),A={id:b,reference:e,popper:wt(),popperInstance:null,props:d,state:{isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},plugins:y,clearDelayTimeouts:function(){clearTimeout(n),clearTimeout(o),cancelAnimationFrame(i)},setProps:function(t){if(A.state.isDestroyed)return;P("onBeforeUpdate",[A,t]),Y();var n=A.props,o=zt(e,Object.assign({},n,St(t),{ignoreAttributes:!0}));A.props=o,W(),n.interactiveDebounce!==o.interactiveDebounce&&(M(),f=Tt(Q,o.interactiveDebounce));n.triggerTarget&&!o.triggerTarget?xt(n.triggerTarget).forEach(function(e){e.removeAttribute("aria-expanded")}):o.triggerTarget&&e.removeAttribute("aria-expanded");D(),O(),_&&_(n,o);A.popperInstance&&(X(),J().forEach(function(e){requestAnimationFrame(e._tippy.popperInstance.forceUpdate)}));P("onAfterUpdate",[A,t])},setContent:function(e){A.setProps({content:e})},show:function(){var e=A.state.isVisible,t=A.state.isDestroyed,n=!A.state.isEnabled,o=Bt.isTouch&&!A.props.touch,i=_t(A.props.duration,0,Kt.duration);if(e||t||n||o)return;if(N().hasAttribute("disabled"))return;if(P("onShow",[A],!1),!1===A.props.onShow(A))return;A.state.isVisible=!0,k()&&(v.style.visibility="visible");O(),U(),A.state.isMounted||(v.style.transition="none");if(k()){var s=w();Pt([s.box,s.content],0)}r=function(){var e;if(A.state.isVisible&&!g){if(g=!0,v.offsetHeight,v.style.transition=A.props.moveTransition,k()&&A.props.animation){var t=w(),n=t.box,o=t.content;Pt([n,o],i),Rt([n,o],"visible")}R(),D(),kt(en,A),null==(e=A.popperInstance)||e.forceUpdate(),P("onMount",[A]),A.props.animation&&k()&&function(e,t){F(e,t)}(i,function(){A.state.isShown=!0,P("onShown",[A])})}},function(){var e,t=A.props.appendTo,n=N();e=A.props.interactive&&t===vt||"parent"===t?n.parentNode:It(t,[n]);e.contains(v)||e.appendChild(v);A.state.isMounted=!0,X()}()},hide:function(){var e=!A.state.isVisible,t=A.state.isDestroyed,n=!A.state.isEnabled,o=_t(A.props.duration,1,Kt.duration);if(e||t||n)return;if(P("onHide",[A],!1),!1===A.props.onHide(A))return;A.state.isVisible=!1,A.state.isShown=!1,g=!1,p=!1,k()&&(v.style.visibility="hidden");if(M(),H(),O(!0),k()){var i=w(),s=i.box,a=i.content;A.props.animation&&(Pt([s,a],o),Rt([s,a],"hidden"))}R(),D(),A.props.animation?k()&&function(e,t){F(e,function(){!A.state.isVisible&&v.parentNode&&v.parentNode.contains(v)&&t()})}(o,A.unmount):A.unmount()},hideWithInteractivity:function(e){S().addEventListener("mousemove",f),kt(Jt,f),f(e)},enable:function(){A.state.isEnabled=!0},disable:function(){A.hide(),A.state.isEnabled=!1},unmount:function(){A.state.isVisible&&A.hide();if(!A.state.isMounted)return;Z(),J().forEach(function(e){e._tippy.unmount()}),v.parentNode&&v.parentNode.removeChild(v);en=en.filter(function(e){return e!==A}),A.state.isMounted=!1,P("onHidden",[A])},destroy:function(){if(A.state.isDestroyed)return;A.clearDelayTimeouts(),A.unmount(),Y(),delete e._tippy,A.state.isDestroyed=!0,P("onDestroy",[A])}};if(!d.render)return A;var E=d.render(A),v=E.popper,_=E.onUpdate;v.setAttribute("data-tippy-root",""),v.id="tippy-"+A.id,A.popper=v,e._tippy=A,v._tippy=A;var L=y.map(function(e){return e.fn(A)}),I=e.hasAttribute("aria-expanded");return W(),D(),O(),P("onCreate",[A]),d.showOnCreate&&ee(),v.addEventListener("mouseenter",function(){A.props.interactive&&A.state.isVisible&&A.clearDelayTimeouts()}),v.addEventListener("mouseleave",function(){A.props.interactive&&A.props.trigger.indexOf("mouseenter")>=0&&S().addEventListener("mousemove",f)}),A;function T(){var e=A.props.touch;return Array.isArray(e)?e:[e,0]}function x(){return"hold"===T()[0]}function k(){var e;return!(null==(e=A.props.render)||!e.$$tippy)}function N(){return l||e}function S(){var e,t,n=N().parentNode;return n?null!=(t=xt(n)[0])&&null!=(e=t.ownerDocument)&&e.body?t.ownerDocument:document:document}function w(){return qt(v)}function C(e){return A.state.isMounted&&!A.state.isVisible||Bt.isTouch||s&&"focus"===s.type?0:_t(A.props.delay,e?0:1,Kt.delay)}function O(e){void 0===e&&(e=!1),v.style.pointerEvents=A.props.interactive&&!e?"":"none",v.style.zIndex=""+A.props.zIndex}function P(e,t,n){var o;(void 0===n&&(n=!0),L.forEach(function(n){n[e]&&n[e].apply(n,t)}),n)&&(o=A.props)[e].apply(o,t)}function R(){var t=A.props.aria;if(t.content){var n="aria-"+t.content,o=v.id;xt(A.props.triggerTarget||e).forEach(function(e){var t=e.getAttribute(n);if(A.state.isVisible)e.setAttribute(n,t?t+" "+o:o);else{var i=t&&t.replace(o,"").trim();i?e.setAttribute(n,i):e.removeAttribute(n)}})}}function D(){!I&&A.props.aria.expanded&&xt(A.props.triggerTarget||e).forEach(function(e){A.props.interactive?e.setAttribute("aria-expanded",A.state.isVisible&&e===N()?"true":"false"):e.removeAttribute("aria-expanded")})}function M(){S().removeEventListener("mousemove",f),Jt=Jt.filter(function(e){return e!==f})}function B(t){if(!Bt.isTouch||!h&&"mousedown"!==t.type){var n=t.composedPath&&t.composedPath()[0]||t.target;if(!A.props.interactive||!Mt(v,n)){if(xt(A.props.triggerTarget||e).some(function(e){return Mt(e,n)})){if(Bt.isTouch)return;if(A.state.isVisible&&A.props.trigger.indexOf("click")>=0)return}else P("onClickOutside",[A,t]);!0===A.props.hideOnClick&&(A.clearDelayTimeouts(),A.hide(),u=!0,setTimeout(function(){u=!1}),A.state.isMounted||H())}}}function $(){h=!0}function G(){h=!1}function U(){var e=S();e.addEventListener("mousedown",B,!0),e.addEventListener("touchend",B,Et),e.addEventListener("touchstart",G,Et),e.addEventListener("touchmove",$,Et)}function H(){var e=S();e.removeEventListener("mousedown",B,!0),e.removeEventListener("touchend",B,Et),e.removeEventListener("touchstart",G,Et),e.removeEventListener("touchmove",$,Et)}function F(e,t){var n=w().box;function o(e){e.target===n&&(Dt(n,"remove",o),t())}if(0===e)return t();Dt(n,"remove",a),Dt(n,"add",o),a=o}function K(t,n,o){void 0===o&&(o=!1),xt(A.props.triggerTarget||e).forEach(function(e){e.addEventListener(t,n,o),m.push({node:e,eventType:t,handler:n,options:o})})}function W(){var e;x()&&(K("touchstart",z,{passive:!0}),K("touchend",V,{passive:!0})),(e=A.props.trigger,e.split(/\s+/).filter(Boolean)).forEach(function(e){if("manual"!==e)switch(K(e,z),e){case"mouseenter":K("mouseleave",V);break;case"focus":K(Ft?"focusout":"blur",j);break;case"focusin":K("focusout",j)}})}function Y(){m.forEach(function(e){var t=e.node,n=e.eventType,o=e.handler,i=e.options;t.removeEventListener(n,o,i)}),m=[]}function z(e){var t,n=!1;if(A.state.isEnabled&&!q(e)&&!u){var o="focus"===(null==(t=s)?void 0:t.type);s=e,l=e.currentTarget,D(),!A.state.isVisible&&Lt(e,"MouseEvent")&&Jt.forEach(function(t){return t(e)}),"click"===e.type&&(A.props.trigger.indexOf("mouseenter")<0||p)&&!1!==A.props.hideOnClick&&A.state.isVisible?n=!0:ee(e),"click"===e.type&&(p=!n),n&&!o&&te(e)}}function Q(e){var t=e.target,n=N().contains(t)||v.contains(t);if("mousemove"!==e.type||!n){var o=J().concat(v).map(function(e){var t,n=null==(t=e._tippy.popperInstance)?void 0:t.state;return n?{popperRect:e.getBoundingClientRect(),popperState:n,props:d}:null}).filter(Boolean);(function(e,t){var n=t.clientX,o=t.clientY;return e.every(function(e){var t=e.popperRect,i=e.popperState,s=e.props.interactiveBorder,a=i.placement.split("-")[0],r=i.modifiersData.offset;if(!r)return!0;var l="bottom"===a?r.top.y:0,c="top"===a?r.bottom.y:0,d="right"===a?r.left.x:0,p="left"===a?r.right.x:0,u=t.top-o+l>s,h=o-t.bottom-c>s,g=t.left-n+d>s,m=n-t.right-p>s;return u||h||g||m})})(o,e)&&(M(),te(e))}}function V(e){q(e)||A.props.trigger.indexOf("click")>=0&&p||(A.props.interactive?A.hideWithInteractivity(e):te(e))}function j(e){A.props.trigger.indexOf("focusin")<0&&e.target!==N()||A.props.interactive&&e.relatedTarget&&v.contains(e.relatedTarget)||te(e)}function q(e){return!!Bt.isTouch&&x()!==e.type.indexOf("touch")>=0}function X(){Z();var t=A.props,n=t.popperOptions,o=t.placement,i=t.offset,s=t.getReferenceClientRect,a=t.moveTransition,l=k()?qt(v).arrow:null,c=s?{getBoundingClientRect:s,contextElement:s.contextElement||N()}:e,d={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(e){var t=e.state;if(k()){var n=w().box;["placement","reference-hidden","escaped"].forEach(function(e){"placement"===e?n.setAttribute("data-placement",t.placement):t.attributes.popper["data-popper-"+e]?n.setAttribute("data-"+e,""):n.removeAttribute("data-"+e)}),t.attributes.popper={}}}},p=[{name:"offset",options:{offset:i}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!a}},d];k()&&l&&p.push({name:"arrow",options:{element:l,padding:3}}),p.push.apply(p,(null==n?void 0:n.modifiers)||[]),A.popperInstance=ft(c,v,Object.assign({},n,{placement:o,onFirstUpdate:r,modifiers:p}))}function Z(){A.popperInstance&&(A.popperInstance.destroy(),A.popperInstance=null)}function J(){return Nt(v.querySelectorAll("[data-tippy-root]"))}function ee(e){A.clearDelayTimeouts(),e&&P("onTrigger",[A,e]),U();var t=C(!0),o=T(),i=o[0],s=o[1];Bt.isTouch&&"hold"===i&&s&&(t=s),t?n=setTimeout(function(){A.show()},t):A.show()}function te(e){if(A.clearDelayTimeouts(),P("onUntrigger",[A,e]),A.state.isVisible){if(!(A.props.trigger.indexOf("mouseenter")>=0&&A.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(e.type)>=0&&p)){var t=C(!1);t?o=setTimeout(function(){A.state.isVisible&&A.hide()},t):i=requestAnimationFrame(function(){A.hide()})}}else H()}}function nn(e,t){void 0===t&&(t={});var n=Kt.plugins.concat(t.plugins||[]);document.addEventListener("touchstart",Gt,Et),window.addEventListener("blur",Ht);var o=Object.assign({},t,{plugins:n}),i=Ot(e).reduce(function(e,t){var n=t&&tn(t,o);return n&&e.push(n),e},[]);return Ct(e)?i[0]:i}nn.defaultProps=Kt,nn.setDefaultProps=function(e){Object.keys(e).forEach(function(t){Kt[t]=e[t]})},nn.currentInput=Bt,Object.assign({},Ee,{effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow)}}),nn.setDefaultProps({render:Xt});const on={mainTRC:2.4,get mainTRCencode(){return 1/this.mainTRC},sRco:.2126729,sGco:.7151522,sBco:.072175,normBG:.56,normTXT:.57,revTXT:.62,revBG:.65,blkThrs:.022,blkClmp:1.414,scaleBoW:1.14,scaleWoB:1.14,loBoWoffset:.027,loWoBoffset:.027,deltaYmin:5e-4,loClip:.1,mFactor:1.9468554433171,get mFactInv(){return 1/this.mFactor},mOffsetIn:.0387393816571401,mExpAdj:.283343396420869,get mExp(){return this.mExpAdj/this.blkClmp},mOffsetOut:.312865795870758};function sn(e,t=2){const n=[["Lc",100,200,300,400,500,600,700,800,900],[0,999,999,999,999,999,999,999,999,999],[10,999,999,999,999,999,999,999,999,999],[15,777,777,777,777,777,777,777,777,777],[20,777,777,777,777,777,777,777,777,777],[25,777,777,777,120,120,108,96,96,96],[30,777,777,120,108,108,96,72,72,72],[35,777,120,108,96,72,60,48,48,48],[40,120,108,96,60,48,42,32,32,32],[45,108,96,72,42,32,28,24,24,24],[50,96,72,60,32,28,24,21,21,21],[55,80,60,48,28,24,21,18,18,18],[60,72,48,42,24,21,18,16,16,18],[65,68,46,32,21.75,19,17,15,16,18],[70,64,44,28,19.5,18,16,14.5,16,18],[75,60,42,24,18,16,15,14,16,18],[80,56,38.25,23,17.25,15.81,14.81,14,16,18],[85,52,34.5,22,16.5,15.625,14.625,14,16,18],[90,48,32,21,16,15.5,14.5,14,16,18],[95,45,28,19.5,15.5,15,14,13.5,16,18],[100,42,26.5,18.5,15,14.5,13.5,13,16,18],[105,39,25,18,14.5,14,13,12,16,18],[110,36,24,18,14,13,12,11,16,18],[115,34.5,22.5,17.25,12.5,11.875,11.25,10.625,14.5,16.5],[120,33,21,16.5,11,10.75,10.5,10.25,13,15],[125,32,20,16,10,10,10,10,12,14]],o=[["∆Lc",100,200,300,400,500,600,700,800,900],[0,0,0,0,0,0,0,0,0,0],[10,0,0,0,0,0,0,0,0,0],[15,0,0,0,0,0,0,0,0,0],[20,0,0,0,0,0,0,0,0,0],[25,0,0,0,12,12,12,24,24,24],[30,0,0,12,12,36,36,24,24,24],[35,0,12,12,36,24,18,16,16,16],[40,12,12,24,18,16,14,8,8,8],[45,12,24,12,10,4,4,3,3,3],[50,16,12,12,4,4,3,3,3,3],[55,8,12,6,4,3,3,2,2,0],[60,4,2,10,2.25,2,1,1,0,0],[65,4,2,4,2.25,1,1,.5,0,0],[70,4,2,4,1.5,2,1,.5,0,0],[75,4,3.75,1,.75,.188,.188,0,0,0],[80,4,3.75,1,.75,.188,.188,0,0,0],[85,4,2.5,1,.5,.125,.125,0,0,0],[90,3,4,1.5,.5,.5,.5,.5,0,0],[95,3,1.5,1,.5,.5,.5,.5,0,0],[100,3,1.5,.5,.5,.5,.5,1,0,0],[105,3,1,0,.5,1,1,1,0,0],[110,1.5,1.5,.75,1.5,1.125,.75,.375,1.5,1.5],[115,1.5,1.5,.75,1.5,1.125,.75,.375,1.5,1.5],[120,1,1,.5,1,.75,.5,.25,1,1],[125,0,0,0,0,0,0,0,0,0]];let i=[e.toFixed(t),0,0,0,0,0,0,0,0,0];i.length;let s=777;const a=0==(e=Math.abs(e))?1:.2*e|0;let r=0,l=.2*(e-n[a][r]);for(r++;r<10;r++)s=n[a][r],i[r]=s>400?s:e<14.5?999:e<29.5?777:s>24?Math.round(s-o[a][r]*l):s-.5*(2*o[a][r]*l|0);return i}function an(e=[0,0,0]){function t(e){return Math.pow(e/255,on.mainTRC)}return on.sRco*t(e[0])+on.sGco*t(e[1])+on.sBco*t(e[2])}function rn(e=[0,0,0,1],t=[0,0,0],n=!0){e[3]=Math.max(Math.min(e[3],1),0);let o=1-e[3],i=[0,0,0,1,!0];for(let s=0;s<3;s++)i[s]=t[s]*o+e[s]*e[3],n&&(i[s]=Math.min(Math.round(i[s]),255));return i}function ln(e){const t=parseInt(e,10);if(!Number.isNaN(t))return t;return{lighter:100,normal:400,bold:700,bolder:900}[e]||400}function cn(e,t){const n=e;let o,i,s,a=1;if(n.startsWith("rgb")){const e=n.match(/[\d.]+/g).map(Number);[o,i,s,a]=4===e.length?e:[...e,1]}else{if(n.startsWith("color(rec2020")||n.startsWith("color(display-p3"))return"unsupported";const e=document.createElement("canvas").getContext("2d");e.fillStyle=n,e.fillRect(0,0,1,1);const t=e.getImageData(0,0,1,1);[o,i,s,a]=t.data,a=(a/255).toFixed(2)}return t&&t<1&&(a=(a*t).toFixed(2)),[o,i,s,Number(a)]}function dn(e){let t=e;for(;t&&1===t.nodeType;){if(n.Global.shadowDetection){const e=t.getRootNode();if(e instanceof ShadowRoot){let n=t;for(;n&&n!==e.host;){const e=getComputedStyle(n);if(e.backgroundImage&&"none"!==e.backgroundImage)return{type:"image",value:e.backgroundImage};const t=cn(e.backgroundColor);if(0!==t[3]&&"transparent"!==t)return t;n=n.parentElement}return dn(e.host)}}const e=getComputedStyle(t),o=e.backgroundImage;if("none"!==o)return{type:"image",value:o};const i=cn(e.backgroundColor);if(0!==i[3]&&"transparent"!==i){if(i[3]<1){let e=t.parentElement,n="rgba(255, 255, 255, 1)";for(;e&&1===e.nodeType;){if(n=getComputedStyle(e).backgroundColor,"rgba(0, 0, 0, 0)"!==n)break;"rgba(0, 0, 0, 0)"===n&&"HTML"===e.tagName&&(n="rgba(255, 255, 255, 1)"),e=e.parentElement}return rn(i,cn(n||"rgba(255, 255, 255, 1)"))}return i}if("HTML"===t.tagName)return[255,255,255];t=t.parentNode}return[255,255,255]}function pn(e){const t=e.slice(0,3).map(e=>{const t=e/255;return t<=.03928?t/12.92:((t+.055)/1.055)**2.4});return.2126*t[0]+.7152*t[1]+.0722*t[2]}function un(e,t){return(Math.max(e,t)+.05)/(Math.min(e,t)+.05)}function hn(e,t){return e.map((e,n)=>{if(n<3){const n=Math.ceil(e+(255-e)*t);return n>=255?255:n}return e})}function gn(e,t){return e.map((e,n)=>{if(n<3){const n=Math.floor(e*(1-t));return n<=0?0:n}return e})}function mn(e){const[t,n,o]=e.map(e=>Math.min(255,Math.max(0,e)));return`#${t.toString(16).padStart(2,"0")}${n.toString(16).padStart(2,"0")}${o.toString(16).padStart(2,"0")}`}function fn(e){if(n.Global.contrastAPCA)return Math.abs(Number(e.toFixed(1)));const t=Math.round(100*e)/100;return Number.isInteger(t)?`${t}:1`:`${t.toFixed(2)}:1`}function bn(e,t){let o;const i=rn(e,t).slice(0,4);if(n.Global.contrastAPCA){o=function(e,t,n=-1){const o=[0,1.1];if(isNaN(e)||isNaN(t)||Math.min(e,t)o[1])return 0;let i=0,s=0,a="BoW";return e=e>on.blkThrs?e:e+Math.pow(on.blkThrs-e,on.blkClmp),t=t>on.blkThrs?t:t+Math.pow(on.blkThrs-t,on.blkClmp),Math.abs(t-e)e?(i=(Math.pow(t,on.normBG)-Math.pow(e,on.normTXT))*on.scaleBoW,s=i-on.loClip?0:i+on.loWoBoffset),n<0?100*s:0==n?Math.round(100*Math.abs(s))+""+a+"":Number.isInteger(n)?(100*s).toFixed(n):0)}(an(i),an(t))}else{o=un(pn(i),pn(t))}return{ratio:o,blendedColor:i}}function yn(e,t,n,o){const i=an(t),s=(e,t)=>i<=.179?hn(e,t):gn(e,t);let a=e,r=bn(a,t),l=sn(r.ratio).slice(1);const c=Math.floor(n/100)-1,d=l[c],p=o{const n=bn(e,[0,0,0,1]),o=bn(e,[255,255,255,1]),i=Math.abs(n.ratio)>Math.abs(o.ratio),s=i?[0,0,0,1]:[255,255,255,1],a=sn(i?n.ratio:o.ratio).slice(1);return{suggestedColor:s,size:Math.ceil(a[Math.floor(t/100)-1])}})(t,n);if(u.size>o)return{color:mn(u.suggestedColor),size:u.size};let h=e,g=a,m=r.ratio,f=.16;let b=0;if(p)for(;f>=.01;)if(b+=1,a=s(a,f),r=bn(a,t),l=sn(r.ratio).slice(1),l[c]<=o&&(g=Math.abs(r.ratio)<=Math.abs(m)?a:g,m=r.ratio,g=a,a=h,f*=.5),h=a,50===b)return{color:mn(u.suggestedColor),size:u.size};return{color:mn(g),size:null}}function An(e){let o;const{color:i,background:s,fontWeight:a,fontSize:r,isLargeText:l,type:c}=e;if(i&&s&&"image"!==s.type&&"text"===c){const c=n.Global.contrastAPCA?yn(i,s,a,r):function(e,t,n,o=!1){let i;i=o?n?4.5:7:n?3:4.5;const s=pn(e),a=pn(t),r=s>a?un(1,a)>i:un(0,a)n?hn(e,t):gn(e,t);let c=e,d=c,p=un(s,a),u=p,h=e,g=.16,m=0;for(;g>=.01;){if(m+=1,m>100)return{color:null};c=l(c,g,r),p=un(pn(c),a),p>=i&&(d=p<=u?c:d,u=p,c=h,g*=.5),h=c}return{color:mn(d)}}(i,s,l,n.Global.contrastAAA);let d;const p='',u=`${c.color}`,h=`${c.size}px`;n.Global.contrastAPCA?c.color&&c.size?d=`${p} ${t._("CONTRAST_APCA")} ${u} ${h}`:c.color?d=`${p} ${t._("CONTRAST_COLOR")} ${u}`:c.size&&(d=`${p} ${t._("CONTRAST_SIZE")} ${h}`):d=null===c.color?`${p} ${t._("NO_SUGGESTION")}`:`${p} ${t._("CONTRAST_COLOR")} ${u}`,o=document.createElement("div"),o.id="advice";const g=e.opacity<1?` ${t.sprintf("CONTRAST_OPACITY")}`:d;o.innerHTML=g}return o}function En(e,t){const o=e?.querySelector("#contrast-tools");if(o){const{fontSize:o,fontWeight:i,type:s,isLargeText:a}=t,r=e.querySelector("#contrast"),l=e.querySelector("#contrast-preview"),c=e.querySelector("#fg-input"),d=e.querySelector("#bg-input"),p=e.querySelector("#value"),u=e.querySelector("#good"),h=e.querySelector("#apca-table"),g=(e,t)=>{e.forEach(e=>{e.classList.toggle("good-contrast",t),e.classList.toggle("error-badge",!t)})},m=()=>{const e=c.value,t=d.value;[c,d].forEach(e=>e.classList.remove("unknown")),l.style.color=e,l.style.backgroundColor=t,l.style.backgroundImage="none";const m=l.querySelectorAll("svg *");if(1===m.length){const{fill:t,stroke:n}=getComputedStyle(m[0]);m[0].style.opacity=1,"none"!==t&&(m[0].style.fill=e),"none"!==n&&(m[0].style.stroke=e)}const f=bn(cn(e),cn(t)),b=[p,r];if(n.Global.contrastAPCA){const e=f.ratio;p.textContent=fn(e);const t=sn(e).slice(1),n=e>=45&&t[0]>=0&&t[0]<=777;let a;switch(s){case"svg-error":case"svg-warning":u.hidden=!n,a=n,g(b,a);break;case"svg-text":u.hidden=!n,a=t.slice(1,7).some(e=>999!==e&&777!==e),g(b,a),function(e,t){const n=e;n.innerHTML="",n.hidden=!1;const o=document.createElement("div");o.classList.add("row");const i=t.slice(1,7);for(let e=0;e=e,g(b,a),u.hidden=!a;break}}}if(!n.Global.contrastAPCA){const e=f.ratio;p.textContent=fn(e);const t=n.Global.contrastAAA,o=e>=3,i=e>=(t?7:4.5),l=e>=(t?4.5:3);switch(s){case"svg-error":case"svg-text":case"svg-warning":u.hidden=!o,g(b,o);break;default:a?(g([p,r],l),u.hidden=!l):(g([p,r],i),u.hidden=!i)}}};c.addEventListener("input",m),d.addEventListener("input",m)}}function vn(e,t,n,o,i,s,a=!1){const{ratio:r,blendedColor:l}=bn(t,n),c=o>=24||o>=18.67&&i>=700;let d;if(a)d=c?r<4.5:r<7;else{d=c?r<3:r>1&&r<4.5}return d?{$el:e,ratio:fn(r),color:l,background:n,fontSize:o,fontWeight:i,isLargeText:c,opacity:s,textUnderline:getComputedStyle(e).textDecorationLine}:null}function _n(e,t,n,o,i,s){const{ratio:a,blendedColor:r}=bn(t,n);return o{const t=e.shadowRoot.querySelectorAll(".sa11y-btn");t&&i.push(...Array.from(t))});const s=nn(i,{interactive:!0,trigger:"mouseenter click",hideOnClick:!1,arrow:!0,offset:[0,8],delay:[0,400],maxWidth:375,theme:"sa11y-theme",placement:"auto-start",allowHTML:!0,role:"dialog",aria:{content:null,expanded:"auto"},appendTo:e,zIndex:2147483645,onShow(e){s.forEach(t=>{t!==e.popper&&t.hide()});const o=e.reference.getRootNode().host;o.setAttribute("data-sa11y-opened","");const i=e.popper.querySelector(".close-btn"),a=()=>{e.hide(),e.reference.focus()};i.addEventListener("click",a);const r=t=>{"Escape"===t.key&&(e.hide(),e.reference.focus())};if(e.popper.addEventListener("keydown",r),!e.popper.hasAttribute("contrast-tools-initialized")){const i=parseInt(o.getAttribute("data-sa11y-annotation"),10),s=window.sa11yCheckComplete.results.find(e=>e.id===i),{contrastDetails:a}=s||{};if(a){const o=e.popper.querySelector("[data-sa11y-contrast-details]"),i=function(e){const{sanitizedText:o,color:i,background:s,fontWeight:a,fontSize:r,ratio:l,textUnderline:c}=e,d=s&&"image"!==s.type,p=d?mn(s):"#000000",u=i?mn(i):"#000000",h=a?`font-weight:${a};`:"",g=r?`font-size:${r}px;`:"",m=c?`text-decoration:${c};`:"",f=i?"":'class="unknown"',b=s&&"image"!==s.type?"":'class="unknown"',y=i?"":`(${t._("UNKNOWN")})`,A=s?"":`(${t._("UNKNOWN")})`;let E;E=n.Global.contrastAPCA?0===Math.abs(l)?0:Math.abs(l)||t._("UNKNOWN"):l||t._("UNKNOWN");const v=document.createElement("div");return v.id="contrast-tools",v.innerHTML=`\n \n
            ${t._("CONTRAST")}
            \n
            ${E}
            \n \n \n
            ${o}
            \n
            \n \n \n
            `,v}(a);o.appendChild(i),En(e.popper,a);const s=An(a);s&&o.appendChild(s),e.popper.setAttribute("contrast-tools-initialized",!0)}}let l=!0;e.popper.addEventListener("mousedown",function t(n){l&&n.target.matches('input[type="color"]')&&(e.reference.click(),l=!1,e.popper.removeEventListener("mousedown",t))});const c=()=>{i.removeEventListener("click",a),e.popper.removeEventListener("keydown",r),e.popper.removeEventListener("hidden",c)};e.popper.addEventListener("hidden",c)},onTrigger(e,t){"click"===t.type&&setTimeout(()=>{e.popper.querySelector(".close-btn").focus(),function(e){const t=e.querySelectorAll('a[href]:not([disabled]), button:not([disabled]), input[type="color"]'),n=t[0],o=t[t.length-1];e.addEventListener("keydown",t=>{const i="Tab"===t.key||9===t.keyCode,s=e.getRootNode();i&&(t.shiftKey?s.activeElement===n&&(o.focus(),t.preventDefault()):s.activeElement===o&&(n.focus(),t.preventDefault()))})}(e.popper)},0)},onHide(e){e.popper.querySelector(".close-btn").removeEventListener("click",()=>{e.hide()});e.reference.getRootNode().host.removeAttribute("data-sa11y-opened")}})}}class xn extends HTMLElement{connectedCallback(){const e=e=>({allowHTML:!0,delay:[500,0],trigger:"mouseenter focusin",arrow:!0,placement:"top",theme:"sa11y-theme sa11y-panel",role:"tooltip",aria:{content:null,expanded:null},appendTo:e,zIndex:2147483645}),o=this.attachShadow({mode:"open"}),i=document.createElement("style");i.innerHTML=In+Y,o.appendChild(i);const s=-1!==navigator.userAgent.indexOf("Mac")?'Option + S':'Alt + S';if(nn(n.Panel.skipButton,{...e(o),offset:[0,8],maxWidth:200,content:`${t._("SKIP_TO_ISSUE")} »
            ${s}`}),this.object=nn(n.Panel.dismissButton,{offset:[0,8],maxWidth:200,...e(o)}),n.Global.developerPlugin){const i=n.Panel.developerItem.querySelector(".info-icon");i&&nn(i,{...e(o),triggerTarget:[n.Panel.developerItem],offset:[0,10],maxWidth:250,content:t._("DEVELOPER_DESC")})}if(n.Global.readabilityPlugin){const i=n.Panel.readabilityItem.querySelector(".info-icon");i&&nn(i,{...e(o),triggerTarget:[n.Panel.readabilityItem],offset:[0,10],maxWidth:250,content:t._("READABILITY_DESC")})}}}class kn extends HTMLElement{connectedCallback(){const e=this.attachShadow({mode:"open"}),t=document.createElement("style");t.innerHTML='.instance{display:block;position:relative}.instance-inline{display:inline-block;position:relative;text-align:end}button{border-radius:50%;box-shadow:0 0 16px 0 rgba(0,0,0,.31);cursor:pointer;display:block;padding:0;transition:all .2s ease-in-out;z-index:8888}button,button:after{height:36px;position:absolute;width:36px}button:after{content:"";left:-7px;padding:7px;top:-7px}.warning-btn{margin:20px}.error-btn,.good-btn{margin:10px}.error-btn-text,.good-btn-text,.warning-btn-text{margin:-30px 10px}.error-btn,.error-btn-text{background:50% 50% var(--sa11y-error-svg) no-repeat;background-color:var(--sa11y-error);background-size:22px;border:1px solid var(--sa11y-error)}.error-btn-text:focus,.error-btn-text:hover,.error-btn:focus,.error-btn:hover{background-color:var(--sa11y-error-hover)}.good-btn,.good-btn-text{background:50% 50% var(--sa11y-good) var(--sa11y-good-svg) no-repeat;background-color:var(--sa11y-good);background-size:20px;border:1px solid var(--sa11y-good)}.good-btn-text:focus,.good-btn-text:hover,.good-btn:focus,.good-btn:hover{background-color:var(--sa11y-good-hover)}.warning-btn,.warning-btn-text{background:50% 50% var(--sa11y-warning) var(--sa11y-warning-svg) no-repeat;background-color:var(--sa11y-warning);background-size:24px;border:1px solid var(--sa11y-warning);transform:scaleX(var(--sa11y-icon-direction))}.warning-btn-text:focus,.warning-btn-text:hover,.warning-btn:focus,.warning-btn:hover{background-color:var(--sa11y-warning-hover)}.sa11y-btn:active,.sa11y-btn:focus{box-shadow:0 0 0 5px var(--sa11y-focus-color);outline:0}@media screen and (forced-colors:active){.sa11y-btn{border:1px solid transparent!important;forced-color-adjust:none;outline:3px solid transparent!important}}'+Y,e.appendChild(t)}}const Nn=e=>{document.querySelectorAll("sa11y-annotation").forEach(t=>{const n=((e,t,n)=>{let o=e;for(;null!==o;){if(window.getComputedStyle(o).getPropertyValue(t)===n)return o;o=o.parentElement}return null})(t,"overflow","hidden");if(null!==n){if(e){if(e.split(",").flatMap(e=>[...document.querySelectorAll(e)]).includes(n))return}n.setAttribute("data-sa11y-overflow","")}})};class Sn extends HTMLElement{connectedCallback(){this.attachShadow({mode:"open"})}}class wn extends HTMLElement{connectedCallback(){const e=this.attachShadow({mode:"open"}),t=document.createElement("style");t.textContent="\n span.heading-label {\n background-color: #777678;\n background-image: linear-gradient(to bottom right, #b629ce, #16aec2);\n border-radius: 5px;\n border: 1px solid #36a5c3;\n color: white;\n display: inline-block;\n font-family: var(--sa11y-font-face);\n font-weight: 500;\n font-size: 18px;\n line-height: normal;\n letter-spacing: normal;\n margin: -5px 0 0 5px;\n padding: 3px;\n position: absolute;\n text-shadow: 1px 1px black;\n -webkit-text-fill-color: white;\n word-break: keep-all;\n z-index: 200;\n }\n @media screen and (forced-colors: active) {\n span.heading-label {\n border: 2px solid transparent;\n }\n }",e.appendChild(t)}}const Cn=(e,o)=>{if(0===e.offsetTop){const n=e.getRootNode().host,i=A(n,"display","none"),s=parseInt(n.getAttribute("data-sa11y-annotation"),10),a=w(o.find(e=>e.id===s));(e=>{const t=A(e.getRootNode().host,"display","none");if(null!==t){_(t.previousElementSibling||t.parentNode)}})(e);const r=e.getAttribute("data-tippy-content");if(T(`${t._("NOT_VISIBLE")}`,r,a),(()=>{const e=document.querySelector("sa11y-tooltips").shadowRoot.querySelector("button");null!==e&&e.click()})(),i){const e=i.previousElementSibling,{parentNode:t}=i;return e?E(e).top-150:E(t).top-150}}else I(),n.Panel.skipButton.focus();return E(e).top-150};let On=-1;const Pn=()=>{const e=v.getItem("sa11y-latest-dismissed");null!==e&&(On=parseInt(e,10)-1),v.removeItem("sa11y-latest-dismissed");const t=o("[data-sa11y-opened]","root");t[0]&&(On=parseInt(t[0].getAttribute("data-sa11y-position"),10))},Rn=e=>{Pn();const t=O.Annotations.Array;On>=t.length-1&&(On=-1);const o=t[On+1].shadowRoot.querySelector("button"),i=Cn(o,e);window.scrollTo({top:i,behavior:`${n.Global.scrollBehaviour}`}),0!==o.offsetTop&&(o.focus(),o.click()),On+=1};function Dn(e,t){O.Annotations.Array.length&&!n.Panel.skipButton.hasAttribute("disabled")&&(!e.altKey||"KeyS"!==e.code&&"Period"!==e.code?!e.altKey||"KeyW"!==e.code&&"Comma"!==e.code||(e.preventDefault(),(e=>{Pn();const t=O.Annotations.Array;On<=0&&(On=t.length);const o=O.Annotations.Array[On-1].shadowRoot.querySelector("button"),i=Cn(o,e);window.scrollTo({top:i,behavior:`${n.Global.scrollBehaviour}`}),0!==o.offsetTop&&(o.focus(),o.click()),On-=1,-1===On&&(On=O.Annotations.Array.length-1)})(t)):(e.preventDefault(),Rn(t)))}let Mn,Bn;function $n(e,o){return O.Found.Images.forEach(i=>{const s="noAria"===a(i)?i.getAttribute("alt"):a(i),l=i.closest(o.imageWithinLightbox?`a[href]:not(${o.imageWithinLightbox})`:"a[href]"),c=i.getAttribute("src")?i.getAttribute("src"):i.getAttribute("srcset"),p=l?m(l,n.Exclusions.LinkSpan).textContent:"",h=o.linkIgnoreStrings?p.replace(o.linkIgnoreStrings,""):p,g=l?b(h).length:0;if("true"!==i.getAttribute("aria-hidden")&&(1!==i.height||1!==i.width||!d(i))){if(l&&"true"===l.getAttribute("aria-hidden")){const n="-1"===l.getAttribute("tabindex");return void(o.checks.HIDDEN_FOCUSABLE&&!n&&e.push({element:i,type:o.checks.HIDDEN_FOCUSABLE.type||"error",content:t.sprintf(o.checks.HIDDEN_FOCUSABLE.content||"HIDDEN_FOCUSABLE"),dismiss:L(`IMGHIDDENFOCUSABLE${c}`),dismissAll:!!o.checks.HIDDEN_FOCUSABLE.dismissAll&&"LINK_HIDDEN_FOCUSABLE",developer:o.checks.HIDDEN_FOCUSABLE.developer||!0}))}if(null===s)if(l){const n=0===g?o.checks.MISSING_ALT_LINK:o.checks.MISSING_ALT_LINK_HAS_TEXT,s=0===g?"MISSING_ALT_LINK":"MISSING_ALT_LINK_HAS_TEXT";n&&e.push({element:i,type:n.type||"error",content:t.sprintf(n.content||s),dismiss:L(`${s+c+g}`),dismissAll:!!n.dismissAll&&s,developer:n.developer||!1})}else o.checks.MISSING_ALT&&e.push({element:i,type:o.checks.MISSING_ALT.type||"error",content:t.sprintf(o.checks.MISSING_ALT.content||"MISSING_ALT"),dismiss:L(`IMGNOALT${c}`),dismissAll:!!o.checks.MISSING_ALT.dismissAll&&"MISSING_ALT",developer:o.checks.MISSING_ALT.developer||!1});else{const n=b(u(s)),a=(e=>{const n=[null,null,null];[".avif",".png",".jpg",".jpeg",".webp",".gif",".tiff",".svg",".heif",".heic","http"].forEach(t=>{if(-1!==e.toLowerCase().indexOf(t.toLowerCase()))n[0]=t;else{const t=/\b\d{2,6}\s*x\s*\d{2,6}\b/,o=e.toLowerCase().match(t);o&&([n[0]]=o)}}),(o.susAltStopWords?o.susAltStopWords.split(",").map(e=>e.trim()):t._("SUS_ALT_STOPWORDS")).forEach(t=>{const o=e.toLowerCase().indexOf(t);o>-1&&o<6&&(n[1]=t)}),t._("PLACEHOLDER_ALT_STOPWORDS").forEach(t=>{e.length===t.length&&e.toLowerCase().indexOf(t)>=0&&(n[2]=t)});const{extraPlaceholderStopWords:i}=o;i.length&&i.split(",").map(e=>e.trim()).forEach(t=>{const o=e.toLowerCase().indexOf(t);o>-1&&o<6&&(n[2]=t)});return n})(n),d=i.getAttribute("aria-label")||i.getAttribute("aria-labelledby"),p=i.getAttribute("title"),h=""===s||" "===s,m=i.closest("figure"),f=m?.querySelector("figcaption"),A=f?f.textContent.trim():"",E=o.checks.LINK_IMAGE_LONG_ALT.maxLength||250,v=o.checks.IMAGE_ALT_TOO_LONG.maxLength||250;if(d&&""===n)return void(o.checks.MISSING_ALT&&e.push({element:i,type:o.checks.MISSING_ALT.type||"error",content:t.sprintf(o.checks.MISSING_ALT.content||"MISSING_ALT"),dismiss:L(`IMGNOALTARIA${c}`),dismissAll:!!o.checks.MISSING_ALT.dismissAll&&"MISSING_ALT",developer:o.checks.MISSING_ALT.developer||!1}));if(h){const n=o.checks.IMAGE_DECORATIVE_CAROUSEL.sources,s=n?i.closest(n):"";if(s){const n=s.querySelectorAll("img"),a=1===n.length?o.checks.IMAGE_DECORATIVE:o.checks.IMAGE_DECORATIVE_CAROUSEL,r=1===n.length?"IMAGE_DECORATIVE":"IMAGE_DECORATIVE_CAROUSEL";a&&e.push({element:i,type:a.type||"warning",content:t.sprintf(a.content||r),dismiss:L(r+c),dismissAll:!!a.dismissAll&&r,developer:a.developer||!1})}else if(l){const n=0===g?o.checks.LINK_IMAGE_NO_ALT_TEXT:o.checks.LINK_IMAGE_TEXT,s=0===g?"LINK_IMAGE_NO_ALT_TEXT":"LINK_IMAGE_TEXT";n&&e.push({element:i,type:n.type||(0===g?"error":"good"),content:t.sprintf(n.content||s),dismiss:L(`${s+c+g}`),dismissAll:!!n.dismissAll&&s,developer:n.developer||!1})}else if(m){const n=f&&A.length?o.checks.IMAGE_FIGURE_DECORATIVE:o.checks.IMAGE_DECORATIVE,s=f&&A.length?"IMAGE_FIGURE_DECORATIVE":"IMAGE_DECORATIVE";n&&e.push({element:i,type:n.type||"warning",content:t.sprintf(n.content||s),dismiss:L(`${s+c+A}`),dismissAll:!!n.dismissAll&&s,developer:n.developer||!1})}else o.checks.IMAGE_DECORATIVE&&e.push({element:i,type:o.checks.IMAGE_DECORATIVE.type||"warning",content:t.sprintf(o.checks.IMAGE_DECORATIVE.content||"IMAGE_DECORATIVE"),dismiss:L(`DECIMAGE${c}`),dismissAll:!!o.checks.IMAGE_DECORATIVE.dismissAll&&"IMAGE_DECORATIVE",developer:o.checks.IMAGE_DECORATIVE.developer||!1});return}if(null!==a[0]){const s=l?o.checks.LINK_ALT_FILE_EXT:o.checks.ALT_FILE_EXT,r=l?"LINK_ALT_FILE_EXT":"ALT_FILE_EXT";s&&e.push({element:i,type:s.type||"error",content:t.sprintf(s.content||r,a[0],n),dismiss:L(`${r+c+n}`),dismissAll:!!s.dismissAll&&r,developer:s.developer||!1})}else if(null!==a[2]){const s=l?o.checks.LINK_PLACEHOLDER_ALT:o.checks.ALT_PLACEHOLDER,a=l?"LINK_PLACEHOLDER_ALT":"ALT_PLACEHOLDER";s&&e.push({element:i,type:s.type||"error",content:t.sprintf(s.content||a,n),dismiss:L(`${a+c+n}`),dismissAll:!!s.dismissAll&&a,developer:s.developer||!1})}else if(null!==a[1]){const s=l?o.checks.LINK_SUS_ALT:o.checks.SUS_ALT,r=l?"LINK_SUS_ALT":"SUS_ALT";s&&e.push({element:i,type:s.type||"warning",content:t.sprintf(s.content||r,a[1],n),dismiss:L(`${r+c+n}`),dismissAll:!!s.dismissAll&&r,developer:s.developer||!1})}else if(l?s.length>E:s.length>v){const a=l?o.checks.LINK_IMAGE_LONG_ALT:o.checks.IMAGE_ALT_TOO_LONG,r=l?"LINK_IMAGE_LONG_ALT":"IMAGE_ALT_TOO_LONG",d=y(n,600);a&&e.push({element:i,type:a.type||"warning",content:t.sprintf(a.content||r,s.length,d),dismiss:L(`${r+c+n}`),dismissAll:!!a.dismissAll&&r,developer:a.developer||!1})}else if(l){const s=0===g?o.checks.LINK_IMAGE_ALT:o.checks.LINK_IMAGE_ALT_AND_TEXT,a=0===g?"LINK_IMAGE_ALT":"LINK_IMAGE_ALT_AND_TEXT";if(s){const o=u(b(r(l))),d=0===g?t.sprintf("LINK_IMAGE_ALT",n):`${t.sprintf("LINK_IMAGE_ALT_AND_TEXT",n,o)} ${t.sprintf("ACC_NAME_TIP")}`;e.push({element:i,type:s.type||"warning",content:s.content?t.sprintf(s.content,n,o):d,dismiss:L(`${a+c+n}`),dismissAll:!!s.dismissAll&&a,developer:s.developer||!1})}}else if(m){!!f&&A.toLowerCase()===n.trim().toLowerCase()?o.checks.IMAGE_FIGURE_DUPLICATE_ALT&&e.push({element:i,type:o.checks.IMAGE_FIGURE_DUPLICATE_ALT.type||"warning",content:t.sprintf(o.checks.IMAGE_FIGURE_DUPLICATE_ALT.content||"IMAGE_FIGURE_DUPLICATE_ALT",n),dismiss:L(`FIGDUPLICATE${c}`),dismissAll:!!o.checks.IMAGE_FIGURE_DUPLICATE_ALT.dismissAll&&"IMAGE_FIGURE_DUPLICATE_ALT",developer:o.checks.IMAGE_FIGURE_DUPLICATE_ALT.developer||!1}):o.checks.IMAGE_PASS&&e.push({element:i,type:o.checks.IMAGE_PASS.type||"good",content:t.sprintf(o.checks.IMAGE_PASS.content||"IMAGE_PASS",n),dismiss:L(`FIGIMGPASS${c+n}`),dismissAll:!!o.checks.IMAGE_PASS.dismissAll&&"IMAGE_PASS",developer:o.checks.IMAGE_PASS.developer||!1})}else o.checks.IMAGE_PASS&&(i.closest('button, [role="button"]')||e.push({element:i,type:o.checks.IMAGE_PASS.type||"good",content:t.sprintf(o.checks.IMAGE_PASS.content||"IMAGE_PASS",n),dismiss:L(`IMAGEPASS${c+n}`),dismissAll:!!o.checks.IMAGE_PASS.dismissAll&&"IMAGE_PASS",developer:o.checks.IMAGE_PASS.developer||!1}));p?.toLowerCase()===s.toLowerCase()&&o.checks.DUPLICATE_TITLE&&e.push({element:i,type:o.checks.DUPLICATE_TITLE.type||"warning",content:t.sprintf(o.checks.DUPLICATE_TITLE.content||"DUPLICATE_TITLE"),inline:!0,dismiss:L(`ALTDUPLICATETITLE${n}`),dismissAll:!!o.checks.DUPLICATE_TITLE.dismissAll&&"DUPLICATE_TITLE",developer:o.checks.DUPLICATE_TITLE.developer||!1})}}}),e}function Gn(e,o){const i=o.linkStopWords?[...t._("PARTIAL_ALT_STOPWORDS"),...o.linkStopWords.split(",").map(e=>e.trim())]:t._("PARTIAL_ALT_STOPWORDS"),s=e=>e.replace(/[^\w\s./]/g,"").replace(/\s+/g," ").trim(),a=(e,t)=>{const n=e.replace(/\./g,"").toLowerCase();let o=null;return t.forEach(e=>{n.length===e.length&&n.indexOf(e.toLowerCase())>=0&&(o=e)}),o},l={};return O.Found.Links.forEach(c=>{const d=function(e){let t=e.getAttribute("href");return t=b(t).toLowerCase(),t.endsWith("/")&&(t=t.slice(0,-1)),t=t.replace(/^https?:\/\/(www\.)?/,""),t=t.replace(/\.(html|php|htm|asp|aspx)$/i,""),t}(c),p=r(c,n.Exclusions.LinkSpan),h=b(o.linkIgnoreStrings?p.replace(o.linkIgnoreStrings,""):p),g=(e=>{const n=[null,null,null,null];return n[0]=a(e,i),t._("CLICK").forEach(t=>(new RegExp(`\\b${t}\\b`,"i").test(e)&&(n[1]=t),!1)),["doi.org/","dl.acm.org/","link.springer.com/","pubmed.ncbi.nlm.nih.gov/","scholar.google.com/","ieeexplore.ieee.org/","researchgate.net/publication/","sciencedirect.com/science/article/"].forEach(t=>(e.toLowerCase().indexOf(t)>=0&&(n[2]=t),!1)),["www.","http"].forEach(t=>(e.toLowerCase().startsWith(t)&&(n[3]=t),!1)),[".edu/",".com/",".net/",".org/",".us/",".ca/",".de/",".icu/",".uk/",".ru/",".info/",".top/",".xyz/",".tk/",".cn/",".ga/",".cf/",".nl/",".io/",".fr/",".pe/",".nz/",".pt/",".es/",".pl/",".ua/"].forEach(t=>(e.toLowerCase().indexOf(t)>=0&&(n[3]=t),!1)),n})(s(h)),y=1===h.length&&/[^a-zA-Z0-9]/g.test(h),A=h.match(/([<>↣↳←→↓«»↴]+)/),E=A?A[1]:null,v=c.getAttribute("title"),_="true"===c.getAttribute("aria-hidden"),I="-1"===c.getAttribute("tabindex"),T=c.querySelector(":scope [aria-labelledby], :scope [aria-label]")||c.getAttribute("aria-labelledby")||c.getAttribute("aria-label"),x=c.querySelector(":scope [aria-labelledby]")||c.getAttribute("aria-labelledby"),k=t._("NEW_WINDOW_PHRASES").some(e=>h.toLowerCase().includes(e)||f(c).toLowerCase().includes(e)),N=t._("CLICK").some(e=>new RegExp(`\\b${e}\\b`,"i").test(c.textContent)),S=["pdf","doc","docx","word","mp3","ppt","text","pptx","txt","exe","dmg","rtf","windows","macos","csv","xls","xlsx","mp4","mov","avi","zip"].concat(t._("FILE_TYPE_PHRASES")).some(e=>h.toLowerCase().includes(e)||f(c).toLowerCase().includes(e)),w=c.matches("\n a[href$='.pdf'],\n a[href$='.doc'],\n a[href$='.docx'],\n a[href$='.zip'],\n a[href$='.mp3'],\n a[href$='.txt'],\n a[href$='.exe'],\n a[href$='.dmg'],\n a[href$='.rtf'],\n a[href$='.pptx'],\n a[href$='.ppt'],\n a[href$='.xls'],\n a[href$='.xlsx'],\n a[href$='.csv'],\n a[href$='.mp4'],\n a[href$='.mov'],\n a[href$='.avi']\n "),O=h.replace(/'|"|-|\.|\s+/g,"").toLowerCase();if(!c.querySelectorAll("img").length){if(_)I||o.checks.HIDDEN_FOCUSABLE&&e.push({element:c,type:o.checks.HIDDEN_FOCUSABLE.type||"error",content:t.sprintf(o.checks.HIDDEN_FOCUSABLE.content||"HIDDEN_FOCUSABLE"),inline:!0,position:"afterend",dismiss:L(`LINKHIDDENFOCUS${d+O}`),dismissAll:!!o.checks.HIDDEN_FOCUSABLE.dismissAll&&"LINK_HIDDEN_FOCUSABLE",developer:o.checks.HIDDEN_FOCUSABLE.developer||!0});else if(!d&&""!==d||0!==h.length)if(null!==g[0])o.checks.LINK_STOPWORD&&e.push({element:c,type:o.checks.LINK_STOPWORD.type||"error",content:o.checks.LINK_STOPWORD.content?t.sprintf(o.checks.LINK_STOPWORD.content,g[0]):t.sprintf("LINK_STOPWORD",g[0])+t.sprintf("LINK_TIP"),inline:!0,position:"afterend",dismiss:L(`LINKSTOPWORD${d+O}`),dismissAll:!!o.checks.LINK_STOPWORD.dismissAll&&"LINK_STOPWORD",developer:o.checks.LINK_STOPWORD.developer||!1});else if(null!==g[2])h.length>8&&o.checks.LINK_DOI&&e.push({element:c,type:o.checks.LINK_DOI.type||"warning",content:t.sprintf(o.checks.LINK_DOI.content||"LINK_DOI"),inline:!0,dismiss:L(`LINKDOI${d+O}`),dismissAll:!!o.checks.LINK_DOI.dismissAll&&"LINK_DOI",developer:o.checks.LINK_DOI.developer||!1});else if(null!==g[3])h.length>(o.checks.LINK_URL.maxLength||40)&&o.checks.LINK_URL&&e.push({element:c,type:o.checks.LINK_URL.type||"warning",content:o.checks.LINK_URL.content?t.sprintf(o.checks.LINK_URL.content):t.sprintf("LINK_URL")+t.sprintf("LINK_TIP"),inline:!0,dismiss:L(`LINKURLNAME${d+O}`),dismissAll:!!o.checks.LINK_URL.dismissAll&&"LINK_URL",developer:o.checks.LINK_URL.developer||!1});else if(T){const r=u(h),l=m(c,n.Exclusions.LinkSpan),p=o.linkIgnoreStrings?f(l).replace(o.linkIgnoreStrings,""):f(l),g=s(p),b=a(g,i);o.checks.LINK_STOPWORD_ARIA&&null!==b?e.push({element:c,type:o.checks.LINK_STOPWORD_ARIA.type||"warning",content:o.checks.LINK_STOPWORD_ARIA.content?t.sprintf(o.checks.LINK_STOPWORD_ARIA.content,b,r):t.sprintf("LINK_STOPWORD_ARIA",b,r)+t.sprintf("LINK_TIP"),inline:!0,dismiss:L(`LINKSTOPWORDARIA${d+O}`),dismissAll:!!o.checks.LINK_STOPWORD_ARIA.dismissAll&&" LINK_STOPWORD_ARIA",developer:o.checks.LINK_STOPWORD_ARIA.developer||!0}):o.checks.LINK_LABEL&&e.push({element:c,type:o.checks.LINK_LABEL.type||"good",content:o.checks.LINK_LABEL.content?t.sprintf(o.checks.LINK_LABEL.content,r):`${t.sprintf("ACC_NAME",r)} ${t.sprintf("ACC_NAME_TIP")}`,inline:!0,position:"afterend",dismiss:L(`LINKGOOD${d+O}`),dismissAll:!!o.checks.LINK_LABEL.dismissAll&&"LINK_LABEL",developer:o.checks.LINK_LABEL.developer||!1});const y=C(c);o.checks.LABEL_IN_NAME&&y&&0!==c.textContent.length&&e.push({element:c,type:o.checks.LABEL_IN_NAME.type||"warning",content:t.sprintf(o.checks.LABEL_IN_NAME.content||"LABEL_IN_NAME",r),inline:!0,position:"afterend",dismiss:L(`LINKLABELNAME${d+O}`),dismissAll:!!o.checks.LABEL_IN_NAME.dismissAll&&"BTN_LABEL_IN_NAME",developer:o.checks.LABEL_IN_NAME.developer||!0})}else E?o.checks.LINK_SYMBOLS&&e.push({element:c,type:o.checks.LINK_SYMBOLS.type||"warning",content:t.sprintf(o.checks.LINK_SYMBOLS.content||"LINK_SYMBOLS",E),inline:!0,dismiss:L(`LINKSYMBOL${d+O}`),dismissAll:!!o.checks.LINK_SYMBOLS.dismissAll&&"LINK_SYMBOLS",developer:o.checks.LINK_SYMBOLS.developer||!1}):y&&o.checks.LINK_EMPTY&&e.push({element:c,type:o.checks.LINK_EMPTY.type||"error",content:t.sprintf(o.checks.LINK_EMPTY.content||"LINK_EMPTY"),inline:!0,position:"afterend",dismiss:L(`LINKCHAR${d}`),dismissAll:!!o.checks.LINK_EMPTY.dismissAll&&"LINK_EMPTY",developer:o.checks.LINK_EMPTY.developer||!1});else x?o.checks.LINK_EMPTY_LABELLEDBY&&e.push({element:c,type:o.checks.LINK_EMPTY_LABELLEDBY.type||"error",content:t.sprintf(o.checks.LINK_EMPTY_LABELLEDBY.content||"LINK_EMPTY_LABELLEDBY"),inline:!0,position:"afterend",dismiss:L(`LINKEMPTYLABELLEDBY${d}`),dismissAll:!!o.checks.LINK_EMPTY_LABELLEDBY.dismissAll&&"LINK_EMPTY_LABELLEDBY",developer:o.checks.LINK_EMPTY_LABELLEDBY.developer||!0}):c.children.length?o.checks.LINK_EMPTY_NO_LABEL&&e.push({element:c,type:o.checks.LINK_EMPTY_NO_LABEL.type||"error",content:t.sprintf(o.checks.LINK_EMPTY_NO_LABEL.content||"LINK_EMPTY_NO_LABEL"),inline:!0,position:"afterend",dismiss:L(`LINKEMPTYNOLABEL${d}`),dismissAll:!!o.checks.LINK_EMPTY_NO_LABEL.dismissAll&&"LINK_EMPTY_NO_LABEL",developer:o.checks.LINK_EMPTY_NO_LABEL.developer||!1}):o.checks.LINK_EMPTY&&e.push({element:c,type:o.checks.LINK_EMPTY.type||"error",content:t.sprintf(o.checks.LINK_EMPTY.content||"LINK_EMPTY"),inline:!0,position:"afterend",dismiss:L(`LINKEMPTY${d}`),dismissAll:!!o.checks.LINK_EMPTY.dismissAll&&"LINK_EMPTY",developer:o.checks.LINK_EMPTY.developer||!1});(null!==g[1]||N)&&o.checks.LINK_CLICK_HERE&&e.push({element:c,type:o.checks.LINK_CLICK_HERE.type||"warning",content:o.checks.LINK_CLICK_HERE.content?t.sprintf(o.checks.LINK_CLICK_HERE.content):t.sprintf("LINK_CLICK_HERE")+t.sprintf("LINK_TIP"),inline:!0,dismiss:L(`LINKCLICKHERE${d+O}`),dismissAll:!!o.checks.LINK_CLICK_HERE.dismissAll&&"LINK_CLICK_HERE",developer:o.checks.LINK_CLICK_HERE.developer||!1}),0!==f(c).length&&v?.toLowerCase()===h.toLowerCase()&&o.checks.DUPLICATE_TITLE&&e.push({element:c,type:o.checks.DUPLICATE_TITLE.type||"warning",content:t.sprintf(o.checks.DUPLICATE_TITLE.content||"DUPLICATE_TITLE"),inline:!0,dismiss:L(`LINKDUPLICATETITLE${d+O}`),dismissAll:!!o.checks.DUPLICATE_TITLE.dismissAll&&"DUPLICATE_TITLE",developer:o.checks.DUPLICATE_TITLE.developer||!1})}if(o.linksAdvancedPlugin&&0!==O.length){if(l[O]&&!l[d]){if(o.checks.LINK_IDENTICAL_NAME){const n=u(h);e.push({element:c,type:o.checks.LINK_IDENTICAL_NAME.type||"warning",content:o.checks.LINK_IDENTICAL_NAME.content?t.sprintf(o.checks.LINK_IDENTICAL_NAME.content,n):`${t.sprintf("LINK_IDENTICAL_NAME",n)} ${t.sprintf("ACC_NAME_TIP")}`,inline:!0,dismiss:L(`LINKSEEN${d+O}`),dismissAll:!!o.checks.LINK_IDENTICAL_NAME.dismissAll&&"LINK_IDENTICAL_NAME",developer:o.checks.LINK_IDENTICAL_NAME.developer||!1})}}else l[O]=!0,l[d]=!0;"_blank"!==c.getAttribute("target")?.toLowerCase()||w||k||o.checks.LINK_NEW_TAB&&e.push({element:c,type:o.checks.LINK_NEW_TAB.type||"warning",content:t.sprintf(o.checks.LINK_NEW_TAB.content||"LINK_NEW_TAB"),inline:!0,dismiss:L(`LINKNEWTAB${d+O}`),dismissAll:!!o.checks.LINK_NEW_TAB.dismissAll&&"LINK_NEW_TAB",developer:o.checks.LINK_NEW_TAB.developer||!1}),w&&!S&&o.checks.LINK_FILE_EXT&&e.push({element:c,type:o.checks.LINK_FILE_EXT.type||"warning",content:t.sprintf(o.checks.LINK_FILE_EXT.content||"LINK_FILE_EXT"),inline:!0,dismiss:L(`LINKEXT${d+O}`),dismissAll:!!o.checks.LINK_FILE_EXT.dismissAll&&"LINK_FILE_EXT",developer:o.checks.LINK_FILE_EXT.developer||!1})}}),e}function Un(e,o){if(o.checks.QA_BAD_LINK&&O.Found.CustomErrorLinks.forEach(n=>{e.push({element:n,type:o.checks.QA_BAD_LINK.type||"error",content:t.sprintf(o.checks.QA_BAD_LINK.content||"QA_BAD_LINK",n),inline:!0,dismiss:L(n.tagName+n.textContent),dismissAll:!!o.checks.QA_BAD_LINK.dismissAll&&"QA_BAD_LINK",developer:o.checks.QA_BAD_LINK.developer||!1})}),o.checks.QA_STRONG_ITALICS&&O.Found.StrongItalics.forEach(n=>{const i=f(n);0!==i.length&&i.length>400&&e.push({element:n.parentNode,type:o.checks.QA_STRONG_ITALICS.type||"warning",content:t.sprintf(o.checks.QA_STRONG_ITALICS.content||"QA_STRONG_ITALICS"),dismiss:L(n.tagName+n.textContent),dismissAll:!!o.checks.QA_STRONG_ITALICS.dismissAll&&"QA_STRONG_ITALICS",developer:o.checks.QA_STRONG_ITALICS.developer||!1})}),O.Found.Links.forEach(i=>{if(i.hasAttribute("href")){const s=i.getAttribute("href"),a=i.matches(n.Global.documentSources),r=i.matches('a[href$=".pdf"], a[href*=".pdf?"]');if(o.checks.QA_IN_PAGE_LINK){const n="button"===i.getAttribute("role")||i.hasAttribute("aria-haspopup")||i.hasAttribute("aria-expanded")||i.hasAttribute("onclick"),a=0!==f(i).length;if((s.startsWith("#")||""===s)&&!n&&a){const n=s.substring(1),a=i.getAttribute("aria-controls");document.getElementById(n)||document.getElementById(decodeURIComponent(n))||document.getElementById(encodeURIComponent(n))||document.getElementById(a)||document.querySelector(`a[name="${n}"]`)||e.push({element:i,type:o.checks.QA_IN_PAGE_LINK.type||"error",content:t.sprintf(o.checks.QA_IN_PAGE_LINK.content||"QA_IN_PAGE_LINK"),inline:!0,dismiss:L(`QAINPAGE${s}`),dismissAll:!!o.checks.QA_IN_PAGE_LINK.dismissAll&&"QA_IN_PAGE_LINK",developer:o.checks.QA_IN_PAGE_LINK.developer||!1})}}o.checks.QA_DOCUMENT&&a?e.push({element:i,type:o.checks.QA_DOCUMENT.type||"warning",content:t.sprintf(o.checks.QA_DOCUMENT.content||"QA_DOCUMENT"),inline:!0,dismiss:L(`DOC${s}`),dismissAll:!!o.checks.QA_DOCUMENT.dismissAll&&"QA_DOCUMENT",developer:o.checks.QA_DOCUMENT.developer||!1}):o.checks.QA_PDF&&r&&e.push({element:i,type:o.checks.QA_PDF.type||"warning",content:t.sprintf(o.checks.QA_PDF.content||"QA_PDF"),inline:!0,dismiss:L(`PDF${s}`),dismissAll:!!o.checks.QA_PDF.dismissAll&&"QA_PDF",developer:o.checks.QA_PDF.developer||!1})}}),o.checks.QA_BLOCKQUOTE&&O.Found.Blockquotes.forEach(n=>{const i=f(n);if(0!==i.length&&i.length<25){const s=u(i);e.push({element:n,type:o.checks.QA_BLOCKQUOTE.type||"warning",content:t.sprintf(o.checks.QA_BLOCKQUOTE.content||"QA_BLOCKQUOTE",s),dismiss:L(`BLOCKQUOTE${s}`),dismissAll:!!o.checks.QA_BLOCKQUOTE.dismissAll&&"QA_BLOCKQUOTE",developer:o.checks.QA_BLOCKQUOTE.developer||!1})}}),O.Found.Tables.forEach(n=>{if(!1===d(n)){const i=n.querySelectorAll("th"),s=n.querySelectorAll("h1, h2, h3, h4, h5, h6"),a=L(`TABLE${n.textContent}`);o.checks.TABLES_MISSING_HEADINGS&&0===i.length&&e.push({element:n,type:o.checks.TABLES_MISSING_HEADINGS.type||"error",content:t.sprintf(o.checks.TABLES_MISSING_HEADINGS.content||"TABLES_MISSING_HEADINGS"),dismiss:a,dismissAll:!!o.checks.TABLES_MISSING_HEADINGS.dismissAll&&"TABLES_MISSING_HEADINGS",developer:o.checks.TABLES_MISSING_HEADINGS.developer||!1}),o.checks.TABLES_SEMANTIC_HEADING&&s.length>0&&s.forEach(n=>{e.push({element:n,type:o.checks.TABLES_SEMANTIC_HEADING.type||"error",content:t.sprintf(o.checks.TABLES_SEMANTIC_HEADING.content||"TABLES_SEMANTIC_HEADING"),dismiss:a,dismissAll:!!o.checks.TABLES_SEMANTIC_HEADING.dismissAll&&"TABLES_SEMANTIC_HEADING",developer:o.checks.TABLES_SEMANTIC_HEADING.developer||!1})}),i.forEach(n=>{o.checks.TABLES_EMPTY_HEADING&&0===n.textContent.trim().length&&e.push({element:n,type:o.checks.TABLES_EMPTY_HEADING.type||"error",content:t.sprintf(o.checks.TABLES_EMPTY_HEADING.content||"TABLES_EMPTY_HEADING"),position:"afterbegin",dismiss:a,dismissAll:!!o.checks.TABLES_EMPTY_HEADING.dismissAll&&"TABLES_EMPTY_HEADING",developer:o.checks.TABLES_EMPTY_HEADING.developer||!1})})}}),o.checks.QA_FAKE_HEADING){const n=(n,i)=>{e.push({element:n,type:o.checks.QA_FAKE_HEADING.type||"warning",content:t.sprintf(o.checks.QA_FAKE_HEADING.content||"QA_FAKE_HEADING",i),dismiss:L(`BOLD${i}`),inline:!0,dismissAll:!!o.checks.QA_FAKE_HEADING.dismissAll&&"QA_FAKE_HEADING",developer:o.checks.QA_FAKE_HEADING.developer||!1})},i=e=>{const t=e.previousElementSibling;if(!t)return!1;return["H1","H2","H3","H4","H5","H6"].includes(t.tagName)},s='h1, h2, h3, h4, h5, h6, [role="heading"][aria-level], blockquote, table',a=e=>{const t=getComputedStyle(e).fontSize.replace("px",""),o=f(e),a=null===o.match(/[.;?!"]/),r=o.length>=4&&o.length<=120;if(t>=24&&!e.closest(s)&&r&&a&&!i(e)){const t=u(o);n(e,t)}},r=e=>{if(/^(|)/i.test(e.innerHTML.trim())&&!e.closest(s)){const t=e.querySelector("strong, b"),o=f(t),i=null===o.match(/[.:;?!"']/);if(o.length>=3&&o.length<=120&&i){const i=m(e,["strong","b"]).textContent.trim().length;if(0!==i&&i<=250)return;const s=u(o);n(t,s)}}};O.Found.Paragraphs.forEach(e=>{a(e),r(e)})}if(o.checks.QA_FAKE_LIST){const n=new RegExp(/(([023456789][\d\s])|(1\d))/,""),i=new RegExp(/(^[aA1αаΑ]|[^\p{Alphabetic}\s])[-\s.)]/,"u"),s=new RegExp(/\p{Extended_Pictographic}/,"u"),a=["a","A","α","Α","а","А","1"],r=/[([{#]/,l={2:"1",b:"a",B:"A","β":"α","Β":"Α","б":"а","Б":"А"},c=e=>e.replace(/^b|^B|^б|^Б|^β|^В|^2/,e=>l[e]);let d="",p="",u=!1;O.Found.Paragraphs.forEach((l,h)=>{let g=!1,m=!1;p=p||f(l).replace("(","");const b=p.substring(0,2),y=b.match(i),A=b.match(n),E=b.match(s),v=r.test(b.charAt(0));if(b.length>0&&b!==d&&!A&&(y||E||v)){const n=O.Found.Paragraphs[h+1];if(n){if(g=f(n).replace("(","").substring(0,2),a.includes(g?.toLowerCase().trim()))return;const e=c(g);y?"A "!==b&&b===e&&(m=!0):E&&!u&&e.match(s)&&(m=!0,u=!0)}if(!m){let e=l?.querySelector("br")?.nextSibling?.nodeValue;if(e){e=e.replace(/<\/?[^>]+(>|$)/g,"").trim().substring(0,2);(r.test(e.charAt(0))||b===c(e)||!u&&e.match(s))&&(m=!0)}}m?(e.push({element:l,type:o.checks.QA_FAKE_LIST.type||"warning",content:t.sprintf(o.checks.QA_FAKE_LIST.content||"QA_FAKE_LIST",b),dismiss:L(`LIST${l.textContent}`),dismissAll:!!o.checks.QA_FAKE_LIST.dismissAll&&"QA_FAKE_LIST",developer:o.checks.QA_FAKE_LIST.developer||!1}),d=b):d=""}p=g?"":g})}if(o.checks.QA_UPPERCASE){const n=n=>{let i="";"LI"===n.tagName?n.childNodes.forEach(e=>{3===e.nodeType&&(i+=e.textContent)}):i=f(n);const s=i.match(/([A-Z]{2,}[ ])([A-Z]{2,}[ ])([A-Z]{2,}[ ])([A-Z]{2,})/g);s&&s[0].length>10&&e.push({element:n,type:o.checks.QA_UPPERCASE.type||"warning",content:t.sprintf(o.checks.QA_UPPERCASE.content||"QA_UPPERCASE"),dismiss:L(`UPPERCASE${i}`),dismissAll:!!o.checks.QA_UPPERCASE.dismissAll&&"QA_UPPERCASE",developer:o.checks.QA_UPPERCASE.developer||!1})};O.Found.Paragraphs.forEach(e=>n(e)),O.Found.Headings.forEach(e=>n(e)),O.Found.Lists.forEach(e=>n(e)),O.Found.Blockquotes.forEach(e=>n(e))}const i=n=>{const i=getComputedStyle(n),{textDecorationLine:s,textAlign:a,fontSize:r}=i;!o.checks.QA_UNDERLINE||"underline"!==s||n.closest("[onclick]")||n.closest("a[href]")||n.closest("ABBR")||(n=>{e.push({element:n,type:o.checks.QA_UNDERLINE.type||"warning",content:t.sprintf(o.checks.QA_UNDERLINE.content||"QA_UNDERLINE"),inline:!0,dismiss:L(`UNDERLINE${n.textContent}`),dismissAll:!!o.checks.QA_UNDERLINE.dismissAll&&"QA_UNDERLINE",developer:o.checks.QA_UNDERLINE.developer||!1})})(n);const l=o.checks.QA_SMALL_TEXT.fontSize||10,c=parseFloat(r),d=!((n.parentElement?parseFloat(getComputedStyle(n.parentElement).fontSize):null)===c)&&c>1&&c<=l;o.checks.QA_SMALL_TEXT&&d&&(n=>{e.push({element:n,type:o.checks.QA_SMALL_TEXT.type||"warning",content:t.sprintf(o.checks.QA_SMALL_TEXT.content||"QA_SMALL_TEXT"),dismiss:L(`SMALL${n.textContent}`),dismissAll:!!o.checks.QA_SMALL_TEXT.dismissAll&&"QA_SMALL_TEXT",developer:o.checks.QA_SMALL_TEXT.developer||!1})})(n);const p=(n.parentElement?getComputedStyle(n.parentElement).textAlign:null)===a;o.checks.QA_JUSTIFY&&"justify"===a&&!p&&(n=>{e.push({element:n,type:o.checks.QA_JUSTIFY.type||"warning",content:t.sprintf(o.checks.QA_JUSTIFY.content||"QA_JUSTIFY"),dismiss:L(`JUSTIFIED${n.textContent}`),dismissAll:!!o.checks.QA_JUSTIFY.dismissAll&&"QA_JUSTIFY",developer:o.checks.QA_JUSTIFY.developer||!1})})(n)};if(o.checks.QA_UNDERLINE||o.checks.QA_JUSTIFY||o.checks.QA_SMALL_TEXT)for(let e=0;e3===e.nodeType).map(e=>e.textContent).join("").trim().length&&i(t)}return o.checks.QA_SUBSCRIPT&&O.Found.Subscripts.forEach(n=>{const i=f(n);i.length>=80&&e.push({element:n,type:o.checks.QA_SUBSCRIPT.type||"warning",content:t.sprintf(o.checks.QA_SUBSCRIPT.content||"QA_SUBSCRIPT"),inline:!0,dismiss:L(n.tagName+i),dismissAll:!!o.checks.QA_SUBSCRIPT.dismissAll&&"QA_SUBSCRIPT",developer:o.checks.QA_SUBSCRIPT.developer||!1})}),o.checks.QA_NESTED_COMPONENTS&&O.Found.NestedComponents.forEach(n=>{const i=o.checks.QA_NESTED_COMPONENTS.sources||'[role="tablist"], details';n.querySelector(i)&&e.push({element:n,type:o.checks.QA_NESTED_COMPONENTS.type||"warning",content:t.sprintf(o.checks.QA_NESTED_COMPONENTS.content||"QA_NESTED_COMPONENTS"),dismiss:L(`NESTED${n.textContent}`),dismissAll:!!o.checks.QA_NESTED_COMPONENTS.dismissAll&&"QA_NESTED_COMPONENTS",developer:o.checks.QA_NESTED_COMPONENTS.developer||!1})}),e}class Hn{constructor(i){const s={...e,...i,checks:{...e.checks,...i.checks}};this.initialize=()=>{var e;(()=>{const{doNotRun:e}=s;return e.trim().length>0&&document.querySelector(e)})()||(customElements.define("sa11y-heading-label",wn),customElements.define("sa11y-heading-anchor",Sn),customElements.define("sa11y-annotation",kn),customElements.define("sa11y-tooltips",Tn),customElements.define("sa11y-panel-tooltips",xn),customElements.define("sa11y-control-panel",Q),customElements.define("sa11y-console-error",z),n.initializeGlobal(s),n.initializeReadability(s),n.initializeExclusions(s),s.developerChecksOnByDefault&&(null===v.getItem("sa11y-developer")||s.checkAllHideToggles)&&v.setItem("sa11y-developer","On"),e=()=>{if(s.headless)this.checkAll(),v.removeItem("sa11y-dismissed");else{const i=v.getItem("sa11y-position"),{panelPosition:a}=s;!s.showMovePanelToggle||i&&!i.includes("top")==!a.includes("top")||v.setItem("sa11y-position",a);const r=new Q;document.body.appendChild(r),function(e,o){n.Global.showMovePanelToggle&&(n.Panel.movePanelToggle.onclick=async()=>{const e=v.getItem("sa11y-position"),[t,o]=e.includes("top")?["top-right","top-left"]:["right","left"],i=e===t?o:t;v.setItem("sa11y-position",i),[t,o].forEach(e=>{n.Panel.toggle.classList.replace(e,i),n.Panel.panel.classList.replace(e,i)}),n.Panel.movePanelToggle.setAttribute("aria-pressed",e===t?"true":"false")}),n.Global.developerPlugin?n.Panel.developerToggle.onclick=async()=>{"On"===v.getItem("sa11y-developer")?(v.setItem("sa11y-developer","Off"),n.Panel.developerToggle.textContent=`${t._("OFF")}`,n.Panel.developerToggle.setAttribute("aria-pressed","false"),o(!1),await e()):(v.setItem("sa11y-developer","On"),n.Panel.developerToggle.textContent=`${t._("ON")}`,n.Panel.developerToggle.setAttribute("aria-pressed","true"),o(!1),await e())}:v.setItem("sa11y-developer","Off"),n.Readability.Plugin&&(n.Panel.readabilityToggle.onclick=async()=>{"On"===v.getItem("sa11y-readability")?(v.setItem("sa11y-readability","Off"),n.Panel.readabilityToggle.textContent=`${t._("OFF")}`,n.Panel.readabilityToggle.setAttribute("aria-pressed","false"),n.Panel.readability.classList.remove("active"),o(!1),await e()):(v.setItem("sa11y-readability","On"),n.Panel.readabilityToggle.textContent=`${t._("ON")}`,n.Panel.readabilityToggle.setAttribute("aria-pressed","true"),n.Panel.readability.classList.add("active"),o(!1),await e())},"On"===v.getItem("sa11y-readability")&&n.Panel.readability.classList.add("active"));const i=window.matchMedia("(prefers-color-scheme: dark)"),{themeToggle:s}=n.Panel,{html:a}=n.Global,r=e=>{a.setAttribute("data-sa11y-theme",e),v.setItem("sa11y-theme",e);const t=s.querySelector("span").classList;t.toggle("moon-icon","light"===e),t.toggle("sun-icon","dark"===e),s.setAttribute("aria-pressed","dark"===e?"true":"false")},l=v.getItem("sa11y-theme")||(i.matches?"dark":"light");r(l),i.addEventListener("change",()=>{r(i.matches?"dark":"light")}),s.onclick=()=>{const e=v.getItem("sa11y-theme")||(i.matches?"dark":"light");r("dark"===e?"light":"dark")},n.Global.colourFilterPlugin&&n.Panel.colourFilterSelect.addEventListener("change",async()=>{const i=parseInt(n.Panel.colourFilterSelect.value,10),s=["protanopia","deuteranopia","tritanopia","monochromacy"],a=[t._("RED_EYE"),t._("GREEN_EYE"),t._("BLUE_EYE"),t._("MONO_EYE")];i>=1&&i<=4?window.matchMedia("(forced-colors: active)").matches?T(t._("COLOUR_FILTER_HIGH_CONTRAST")):(n.Root.areaToCheck.setAttribute("data-sa11y-filter",s[i-1]),n.Panel.colourFilterIcon.setAttribute("aria-label",a[i-1]),x(["data-sa11y-error","data-sa11y-warning","data-sa11y-good","data-sa11y-error-inline","data-sa11y-warning-inline","data-sa11y-overflow"],"document"),k(["sa11y-annotation","sa11y-tooltips","sa11y-heading-label"],"document"),n.Panel.skipButton.disabled=!0,n.Panel.pageIssues.classList.remove("active"),n.Panel.settingsContent.classList.add("hide-settings-border"),n.Panel.colourFilterSelect.classList.add("active"),n.Panel.colourPanel.classList.add("active"),n.Panel.colourPanel.setAttribute("data-colour",s[i-1]),n.Panel.content.hidden=!0):(n.Root.areaToCheck.removeAttribute("data-sa11y-filter"),n.Panel.settingsContent.classList.remove("hide-settings-border"),n.Panel.colourFilterSelect.classList.remove("active"),n.Panel.colourPanel.classList.remove("active"),n.Panel.colourPanel.removeAttribute("data-colour"),n.Panel.content.hidden=!1,o(!1),await e())})}(this.checkAll,this.resetAll),function(){n.Panel.outlineToggle.addEventListener("click",()=>{"true"===n.Panel.outlineToggle.getAttribute("aria-expanded")?j():(V(),J(),X()),n.Panel.outlineHeader.focus()}),"Opened"===v.getItem("sa11y-outline")&&V(),n.Global.showImageOutline&&(n.Panel.imagesToggle.addEventListener("click",()=>{"true"===n.Panel.imagesToggle.getAttribute("aria-expanded")?X():(q(),j(),J()),n.Panel.imagesHeader.focus()}),"Opened"===v.getItem("sa11y-images")&&q()),n.Panel.settingsToggle.addEventListener("click",()=>{"true"===n.Panel.settingsToggle.getAttribute("aria-expanded")?J():(Z(),j(),X()),n.Panel.settingsHeader.focus()}),"Opened"===v.getItem("sa11y-settings")&&Z(),n.Panel.skipToPageIssues.addEventListener("click",()=>{n.Panel.pageIssuesHeader.focus()});const e=n.Panel.panel.querySelectorAll("[role=tab]");if(0!==e.length){let t=Array.from(e).findIndex(e=>e.classList.contains("active"));e.forEach(n=>{n.addEventListener("keydown",n=>{"ArrowRight"===n.key?(n.preventDefault(),t=(t+1)%e.length,e[t].focus()):"ArrowLeft"===n.key&&(n.preventDefault(),t=(t-1+e.length)%e.length,e[t].focus())})})}}(),function(){if(n.Global.colourFilterPlugin&&!1===n.Global.headless){const e=document.createElement("div");e.id="sa11y-colour-filters",e.setAttribute("aria-hidden","true"),e.innerHTML='\n \x3c!-- DaltonLens SVG filters to simulate color vision deficiencies --\x3e\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n ',document.body.appendChild(e)}}(),R(s.detectSPArouting,this.checkAll,this.resetAll),this.panelTooltips=new xn,document.body.appendChild(this.panelTooltips),n.Panel.toggle.disabled=!1,setTimeout(()=>{this.resetAll(),this.checkAll()},s.delayCheck),s.delayCheck>=700&&(n.Panel.toggle.disabled=!0),e=this.checkAll,o=this.resetAll,n.Panel.toggle.addEventListener("click",t=>{"Opened"===v.getItem("sa11y-panel")?(t.preventDefault(),v.setItem("sa11y-panel","Closed"),n.Panel.toggle.classList.remove("on"),n.Panel.toggle.setAttribute("aria-expanded","false"),o(),0===n.Panel.notifCount.innerHTML.trim().length?n.Panel.notifBadge.style.display="none":n.Panel.notifBadge.style.display="flex"):(t.preventDefault(),v.setItem("sa11y-panel","Opened"),n.Panel.toggle.classList.add("on"),n.Panel.toggle.setAttribute("aria-expanded","true"),e(),N(n.Panel.outlineList,n.Panel.outlineContent))}),"Opened"===v.getItem("sa11y-panel")&&(n.Panel.toggle.classList.add("on"),n.Panel.toggle.setAttribute("aria-expanded","true"),n.Panel.panel.style.transform=""),document.onkeydown=e=>{const t=e||window.event;t.altKey&&"KeyA"===t.code&&(n.Panel.toggle.click(),n.Panel.toggle.focus())}}var e,o},"complete"===document.readyState?e():window.addEventListener("load",e))},this.checkAll=async(e=s.checkRoot,o=s.readabilityRoot)=>{try{this.results=[],this.headingOutline=[],this.imageOutline=[],this.errorCount=0,this.warningCount=0,this.customChecksRunning=!1;document.querySelector(e)||!1!==s.headless||T(`${t.sprintf("MISSING_ROOT",e)}`),n.initializeRoot(e,o),function(e){if(e.autoDetectShadowComponents){const t=n.Exclusions.Sa11yElements,o=document.querySelector(e.checkRoot);(o?Array.from(o.querySelectorAll(`*:not(${t})`)):Array.from(document.body.querySelectorAll(`*:not(${t})`))).forEach(e=>{e.shadowRoot&&"open"===e.shadowRoot.mode&&(e.setAttribute("data-sa11y-has-shadow-root",""),P(e))})}else e.shadowComponents&&document.querySelectorAll(e.shadowComponents).forEach(e=>{e.setAttribute("data-sa11y-has-shadow-root",""),P(e)})}(s),O.initializeElements(s),function(e,o,i){let s,a="";O.Found.Headings.forEach((c,d)=>{const p=r(c,n.Exclusions.HeaderSpan),h=b(o.headerIgnoreStrings?p.replace(o.headerIgnoreStrings,""):p),g=u(h),m=n.Root.areaToCheck.contains(c),f=n.Root.areaToCheck.contains(c.getRootNode().host),E=m||f,v=parseInt(c.getAttribute("aria-level")||c.tagName.slice(1),10),_=h.length,I=o.checks.HEADING_LONG.maxLength||160;let T=null,x=null,k=null,N=null;if(0===_)if(c.querySelectorAll("img").length){const e=c.querySelector("img")?.getAttribute("alt");!c.querySelector("img")||e&&""!==e.trim()||o.checks.HEADING_EMPTY_WITH_IMAGE&&(T=o.checks.HEADING_EMPTY_WITH_IMAGE.type||"error",x=t.sprintf(o.checks.HEADING_EMPTY_WITH_IMAGE.content||"HEADING_EMPTY_WITH_IMAGE",v),k=o.checks.HEADING_EMPTY_WITH_IMAGE.developer||!1,N=!!o.checks.HEADING_EMPTY_WITH_IMAGE.dismissAll&&"HEADING_EMPTY_WITH_IMAGE")}else o.checks.HEADING_EMPTY&&(T=o.checks.HEADING_EMPTY.type||"error",x=t.sprintf(o.checks.HEADING_EMPTY.content||"HEADING_EMPTY",v),k=o.checks.HEADING_EMPTY.developer||!1,N=!!o.checks.HEADING_EMPTY.dismissAll&&"HEADING_EMPTY");else v-s>1&&0!==d?o.checks.HEADING_SKIPPED_LEVEL&&(T=o.checks.HEADING_SKIPPED_LEVEL.type||"error",x=t.sprintf(o.checks.HEADING_SKIPPED_LEVEL.content||"HEADING_SKIPPED_LEVEL",s,v,y(g,60),y(a,60),s+1),k=o.checks.HEADING_SKIPPED_LEVEL.developer||!1,N=!!o.checks.HEADING_SKIPPED_LEVEL.dismissAll&&"HEADING_SKIPPED_LEVEL"):0===d&&1!==v&&2!==v?o.checks.HEADING_FIRST&&(T=o.checks.HEADING_FIRST.type||"error",x=t.sprintf(o.checks.HEADING_FIRST.content||"HEADING_FIRST"),k=o.checks.HEADING_FIRST.developer||!1,N=!!o.checks.HEADING_FIRST.dismissAll&&"HEADING_FIRST"):_>I&&o.checks.HEADING_LONG&&(T=o.checks.HEADING_LONG.type||"warning",x=t.sprintf(o.checks.HEADING_LONG.content||"HEADING_LONG",I,_),k=o.checks.HEADING_LONG.developer||!1,N=!!o.checks.HEADING_LONG.dismissAll&&"HEADING_LONG");x&&T&&e.push({element:c,type:T,content:x,dismiss:L(`H${v+g}`),dismissAll:N,isWithinRoot:E,developer:k}),s=v,a=g;const S=l(c),w=A(c,"display","none");i.push({element:c,headingLevel:v,text:g,index:d,type:T,hidden:S,visibleParent:w,dismiss:L(`H${v+g}`),isWithinRoot:E})}),o.checks.HEADING_MISSING_ONE&&0===O.Found.HeadingOne.length&&e.push({type:o.checks.HEADING_MISSING_ONE.type||"warning",content:t.sprintf(o.checks.HEADING_MISSING_ONE.content||"HEADING_MISSING_ONE"),dismiss:"MISSINGH1",developer:o.checks.HEADING_MISSING_ONE.developer||!1})}(this.results,s,this.headingOutline),Gn(this.results,s),$n(this.results,s),function(e,n){n.formLabelsPlugin&&O.Found.Inputs.forEach(o=>{const i="true"===o.getAttribute("aria-hidden"),s="-1"===o.getAttribute("tabindex");if(d(o)||i&&s)return;const a=b(r(o)),l=o.getAttribute("alt"),c=o.getAttribute("type"),p=o.getAttribute("title"),h=o.getAttribute("aria-label")||o.getAttribute("aria-labelledby");if("submit"===c||"button"===c||"hidden"===c)return;if("image"===c)return void(!n.checks.LABELS_MISSING_IMAGE_INPUT||l&&""!==l.trim()||h||p||e.push({element:o,type:n.checks.LABELS_MISSING_IMAGE_INPUT.type||"error",content:t.sprintf(n.checks.LABELS_MISSING_IMAGE_INPUT.content||"LABELS_MISSING_IMAGE_INPUT"),dismiss:L(`INPUTIMAGE${c+a}`),dismissAll:!!n.checks.LABELS_MISSING_IMAGE_INPUT.dismissAll&&"LABELS_MISSING_IMAGE_INPUT",developer:n.checks.LABELS_MISSING_IMAGE_INPUT.developer||!0}));if("reset"===c)return void(n.checks.LABELS_INPUT_RESET&&e.push({element:o,type:n.checks.LABELS_INPUT_RESET.type||"warning",content:t.sprintf(n.checks.LABELS_INPUT_RESET.content||"LABELS_INPUT_RESET"),dismiss:L(`INPUTRESET${c+a}`),dismissAll:!!n.checks.LABELS_INPUT_RESET.dismissAll&&"LABELS_INPUT_RESET",developer:n.checks.LABELS_INPUT_RESET.developer||!1}));if(h||p){if(0===a.length)n.checks.LABELS_MISSING_LABEL&&e.push({element:o,type:n.checks.LABELS_MISSING_LABEL.type||"error",content:t.sprintf(n.checks.LABELS_MISSING_LABEL.content||"LABELS_MISSING_LABEL"),dismiss:L(`INPUTMISSING${c+a}`),dismissAll:!!n.checks.LABELS_MISSING_LABEL.dismissAll&&"LABELS_MISSING_LABEL",developer:n.checks.LABELS_MISSING_LABEL.developer||!0});else if(n.checks.LABELS_ARIA_LABEL_INPUT){const i=u(a);e.push({element:o,type:n.checks.LABELS_ARIA_LABEL_INPUT.type||"warning",content:n.checks.LABELS_ARIA_LABEL_INPUT.content?t.sprintf(n.checks.LABELS_ARIA_LABEL_INPUT.content,i):`${t.sprintf("LABELS_ARIA_LABEL_INPUT",i)} ${t.sprintf("ACC_NAME_TIP")}`,dismiss:L(`INPUTARIA${c+a}`),dismissAll:!!n.checks.LABELS_ARIA_LABEL_INPUT.dismissAll&&"LABELS_ARIA_LABEL_INPUT",developer:n.checks.LABELS_ARIA_LABEL_INPUT.developer||!0})}return}const g=o.closest("label"),m=g?b(r(g)):"";if(g&&m.length)return;const f=o.getAttribute("id");f?O.Found.Labels.some(e=>e.getAttribute("for")===f)||n.checks.LABELS_NO_FOR_ATTRIBUTE&&e.push({element:o,type:n.checks.LABELS_NO_FOR_ATTRIBUTE.type||"error",content:t.sprintf(n.checks.LABELS_NO_FOR_ATTRIBUTE.content||"LABELS_NO_FOR_ATTRIBUTE",f),dismiss:L(`INPUTNOFOR${c+a}`),dismissAll:!!n.checks.LABELS_NO_FOR_ATTRIBUTE.dismissAll&&"LABELS_NO_FOR_ATTRIBUTE",developer:n.checks.LABELS_NO_FOR_ATTRIBUTE.developer||!0}):n.checks.LABELS_MISSING_LABEL&&e.push({element:o,type:n.checks.LABELS_MISSING_LABEL.type||"error",content:t.sprintf(n.checks.LABELS_MISSING_LABEL.content||"LABELS_MISSING_LABEL"),dismiss:L(`INPUTNOID${c+a}`),dismissAll:!!n.checks.LABELS_MISSING_LABEL.dismissAll&&"LABELS_MISSING_LABEL",developer:n.checks.LABELS_MISSING_LABEL.developer||!0}),o.placeholder&&0!==o.placeholder&&e.push({element:o,type:n.checks.LABELS_PLACEHOLDER.type||"warning",content:t.sprintf(n.checks.LABELS_PLACEHOLDER.content||"LABELS_PLACEHOLDER"),dismiss:L(`INPUTPLACEHOLDER${c+a}`),dismissAll:!!n.checks.LABELS_PLACEHOLDER.dismissAll&&"LABELS_PLACEHOLDER",developer:n.checks.LABELS_PLACEHOLDER.developer||!0})})}(this.results,s),Un(this.results,s),function(e,o){if(o.checks.META_LANG&&(!O.Found.Language||O.Found.Language.length<2)&&e.push({type:o.checks.META_LANG.type||"error",content:t.sprintf(o.checks.META_LANG.content||"META_LANG"),dismiss:L("LANG"),developer:o.checks.META_LANG.developer||!0}),o.checks.META_TITLE){const n=document.querySelector("title:not(svg title)");n&&0!==n.textContent.trim().length||e.push({type:o.checks.META_TITLE.type||"error",content:t.sprintf(o.checks.META_TITLE.content||"META_TITLE"),dismiss:L("TITLE"),developer:o.checks.META_TITLE.developer||!0})}if(o.checks.META_SCALABLE||o.checks.META_MAX){const n=document.querySelector('meta[name="viewport"]');if(n){const i=n.getAttribute("content");if(i){const n=i.split(",").reduce((e,t)=>{const[n,o]=t.split("=").map(e=>e.trim());return e[n]=o,e},{});!o.checks.META_SCALABLE||"no"!==n["user-scalable"]&&"0"!==n["user-scalable"]||e.push({type:o.checks.META_SCALABLE.type||"error",content:t.sprintf(o.checks.META_SCALABLE.content||"META_SCALABLE"),dismiss:L("SCALABLE"),developer:o.checks.META_SCALABLE.developer||!0});const s=parseFloat(n["maximum-scale"]);o.checks.META_MAX&&!Number.isNaN(s)&&s<2&&e.push({type:o.checks.META_MAX.type||"error",content:t.sprintf(o.checks.META_MAX.content||"META_MAX"),dismiss:L("MAXSCALE"),developer:o.checks.META_MAX.developer||!0})}}}o.checks.META_REFRESH&&document.querySelector('meta[http-equiv="refresh"]')&&e.push({type:o.checks.META_REFRESH.type||"error",content:t.sprintf(o.checks.META_REFRESH.content||"META_REFRESH"),dismiss:L("REFRESH"),developer:o.checks.META_REFRESH.developer||!0});o.checks.DUPLICATE_ID&&document.querySelectorAll("body, [data-sa11y-has-shadow-root]").forEach(i=>{const s=new Set,a=(n,i)=>{n.forEach(n=>{const{id:a}=n;"string"==typeof a&&0!==a.trim().length&&(a&&!s.has(a)?s.add(a):Array.from(i.querySelectorAll(`\n a[href*="${a}"],\n label[for*="${a}"],\n [aria-labelledby*="${a}"],\n [aria-controls*="${a}"],\n [aria-owns*="${a}"]`)).length>0&&e.push({element:n,type:o.checks.DUPLICATE_ID.type||"error",content:t.sprintf(o.checks.DUPLICATE_ID.content||"DUPLICATE_ID",a),dismiss:L(`DUPLICATEID${a}${n.textContent}`),dismissAll:!!o.checks.DUPLICATE_ID.dismissAll&&"DUPLICATE_ID",developer:o.checks.DUPLICATE_ID.developer||!0}))})};i.shadowRoot&&a(Array.from(i.shadowRoot.querySelectorAll(`[id]:not(${n.Exclusions.Container})`)),i.shadowRoot),a(Array.from(i.querySelectorAll(`[id]:not(${n.Exclusions.Container})`)),i)});(o.checks.BTN_EMPTY||o.checks.BTN_EMPTY_LABELLEDBY||o.checks.BTN_LABEL||o.checks.HIDDEN_FOCUSABLE||o.checks.LABEL_IN_NAME)&&O.Found.Buttons.forEach(n=>{const i=r(n),s=i.replace(/'|"|-|\.|\s+/g,"").toLowerCase(),a=L(`BTN${n.tagName+n.id+n.className+i}`),l=n.querySelector(":scope [aria-labelledby], :scope [aria-label]")||n.getAttribute("aria-labelledby")||n.getAttribute("aria-label"),c=n.querySelector(":scope [aria-labelledby]")||n.getAttribute("aria-labelledby"),d="true"===n.getAttribute("aria-hidden"),p="-1"===n.getAttribute("tabindex");if(d)return void(p||o.checks.HIDDEN_FOCUSABLE&&e.push({element:n,type:o.checks.HIDDEN_FOCUSABLE.type||"error",content:t.sprintf(o.checks.HIDDEN_FOCUSABLE.content||"HIDDEN_FOCUSABLE"),dismiss:a,dismissAll:!!o.checks.HIDDEN_FOCUSABLE.dismissAll&&"BTN_HIDDEN_FOCUSABLE",developer:o.checks.HIDDEN_FOCUSABLE.developer||!0}));if(0===s.length)return void(o.checks.BTN_EMPTY_LABELLEDBY&&c?e.push({element:n,type:o.checks.BTN_EMPTY_LABELLEDBY.type||"error",content:o.checks.BTN_EMPTY_LABELLEDBY.content?t.sprintf(o.checks.BTN_EMPTY_LABELLEDBY.content):`${t.sprintf("BTN_EMPTY_LABELLEDBY")} ${t.sprintf("BTN_TIP")}`,dismiss:L(a),dismissAll:!!o.checks.BTN_EMPTY_LABELLEDBY.dismissAll&&"BTN_EMPTY_LABELLEDBY",developer:o.checks.BTN_EMPTY_LABELLEDBY.developer||!0}):o.checks.BTN_EMPTY&&e.push({element:n,type:o.checks.BTN_EMPTY.type||"error",content:o.checks.BTN_EMPTY.content?t.sprintf(o.checks.BTN_EMPTY.content):`${t.sprintf("BTN_EMPTY")} ${t.sprintf("BTN_TIP")}`,dismiss:a,dismissAll:!!o.checks.BTN_EMPTY.dismissAll&&"BTN_EMPTY",developer:o.checks.BTN_EMPTY.developer||!0}));const h=C(n);if(o.checks.LABEL_IN_NAME&&l&&h){const s=u(i);return void e.push({element:n,type:o.checks.LABEL_IN_NAME.type||"warning",content:o.checks.LABEL_IN_NAME.content?t.sprintf(o.checks.LABEL_IN_NAME.content,s):`${t.sprintf("LABEL_IN_NAME",s)} ${t.sprintf("ACC_NAME_TIP")}`,dismiss:a,dismissAll:!!o.checks.LABEL_IN_NAME.dismissAll&&"BTN_LABEL_IN_NAME",developer:o.checks.LABEL_IN_NAME.developer||!0})}o.checks.BTN_ROLE_IN_NAME&&i.includes(t._("BTN"))&&e.push({element:n,type:o.checks.BTN_ROLE_IN_NAME.type||"warning",content:o.checks.BTN_ROLE_IN_NAME.content?t.sprintf(o.checks.BTN_ROLE_IN_NAME.content):`${t.sprintf("BTN_ROLE_IN_NAME")} ${t.sprintf("BTN_TIP")}`,dismiss:a,dismissAll:!!o.checks.BTN_ROLE_IN_NAME.dismissAll&&"BTN_ROLE_IN_NAME",developer:o.checks.BTN_ROLE_IN_NAME.developer||!0})}),o.checks.UNCONTAINED_LI&&O.Found.Lists.forEach(n=>{n.closest("ul, ol, menu")||e.push({element:n,type:o.checks.UNCONTAINED_LI.type||"error",content:t.sprintf(o.checks.UNCONTAINED_LI.content||"UNCONTAINED_LI"),dismiss:L(`UNCONTAINEDLI${n.textContent}`),dismissAll:!!o.checks.UNCONTAINED_LI.dismissAll&&"UNCONTAINED_LI",developer:o.checks.UNCONTAINED_LI.developer||!0})}),o.checks.TABINDEX_ATTR&&O.Found.TabIndex.forEach(n=>{e.push({element:n,type:o.checks.TABINDEX_ATTR.type||"error",content:t.sprintf(o.checks.TABINDEX_ATTR.content||"TABINDEX_ATTR"),dismiss:L(`TABINDEX${n.tagName+n.id+n.className}`),dismissAll:!!o.checks.TABINDEX_ATTR.dismissAll&&"TABINDEX_ATTR",developer:o.checks.TABINDEX_ATTR.developer||!0})})}(this.results,s),s.embeddedContentPlugin&&function(e,n){const o=e=>"undefined"!==e.getAttribute("src")?e.getAttribute("src"):e.querySelector("[src]")?.getAttribute("src");n.checks.EMBED_AUDIO&&O.Found.Audio.forEach(i=>{e.push({element:i,type:n.checks.EMBED_AUDIO.type||"warning",content:t.sprintf(n.checks.EMBED_AUDIO.content||"EMBED_AUDIO"),dismiss:L(`AUDIO${o(i)}`),dismissAll:!!n.checks.EMBED_AUDIO.dismissAll&&"EMBED_AUDIO",developer:n.checks.EMBED_AUDIO.developer||!1})}),n.checks.EMBED_VIDEO&&O.Found.Videos.forEach(i=>{const s=i.querySelector("track"),a=s?.getAttribute("src");null!==s&&null!==a&&0!==a.trim().length||e.push({element:i,type:n.checks.EMBED_VIDEO.type||"warning",content:t.sprintf(n.checks.EMBED_VIDEO.content||"EMBED_VIDEO"),dismiss:L(`VIDEO${o(i)}`),dismissAll:!!n.checks.EMBED_VIDEO.dismissAll&&"EMBED_VIDEO",developer:n.checks.EMBED_VIDEO.developer||!1})}),n.checks.EMBED_DATA_VIZ&&O.Found.Visualizations.forEach(i=>{e.push({element:i,type:n.checks.EMBED_DATA_VIZ.type||"warning",content:t.sprintf(n.checks.EMBED_DATA_VIZ.content||"EMBED_DATA_VIZ"),dismiss:L(`DATAVIZ${o(i)}`),dismissAll:!!n.checks.EMBED_DATA_VIZ.dismissAll&&"EMBED_DATA_VIZ",developer:n.checks.EMBED_DATA_VIZ.developer||!1})}),O.Found.iframes.forEach(i=>{const s=["presentation","none"].includes(i.getAttribute("role")),r=d(i),l="VIDEO"===i.tagName||"AUDIO"===i.tagName,c="true"===i.getAttribute("aria-hidden"),p="-1"===i.getAttribute("tabindex");if(!(r||l||c&&p||s))if(p)n.checks.EMBED_UNFOCUSABLE&&e.push({element:i,type:n.checks.EMBED_UNFOCUSABLE.type||"error",content:t.sprintf(n.checks.EMBED_UNFOCUSABLE.content||"EMBED_UNFOCUSABLE"),dismiss:L(`EMBEDUNFOCUSABLE${o(i)}`),dismissAll:!!n.checks.EMBED_UNFOCUSABLE.dismissAll&&"EMBED_UNFOCUSABLE",developer:n.checks.EMBED_UNFOCUSABLE.developer||!0});else if(n.checks.EMBED_MISSING_TITLE){const s=a(i);0===b("noAria"===s?i.getAttribute("title")||"":s).length&&e.push({element:i,type:n.checks.EMBED_MISSING_TITLE.type||"error",content:t.sprintf(n.checks.EMBED_MISSING_TITLE.content||"EMBED_MISSING_TITLE"),dismiss:L(`EMBEDMISSTITLE${o(i)}`),dismissAll:!!n.checks.EMBED_MISSING_TITLE.dismissAll&&"EMBED_MISSING_TITLE",developer:n.checks.EMBED_MISSING_TITLE.developer||!0})}}),n.checks.EMBED_GENERAL&&O.Found.EmbeddedContent.forEach(i=>{const s=["presentation","none"].includes(i.getAttribute("role")),a="true"===i.getAttribute("aria-hidden"),r="-1"===i.getAttribute("tabindex");d(i)||a&&r||s||"VIDEO"!==i.tagName&&"AUDIO"!==i.tagName&&e.push({element:i,type:n.checks.EMBED_GENERAL.type||"warning",content:t.sprintf(n.checks.EMBED_GENERAL.content||"EMBED_GENERAL"),dismiss:L(`IFRAMEGENERAL${o(i)}`),dismissAll:!!n.checks.EMBED_GENERAL.dismissAll&&"EMBED_GENERAL",developer:n.checks.EMBED_GENERAL.developer||!1})})}(this.results,s),s.contrastPlugin&&function(e,n){const o=[];for(let e=0;e3===e.nodeType).map(e=>e.textContent).join("").trim(),m=["SELECT","INPUT","TEXTAREA"].includes(t.tagName);if(0!==g.length||m)if("unsupported"===a||"unsupported"===p){const e=r>=24||r>=18.67&&l>=700;o.push({$el:t,type:"unsupported",fontSize:r,fontWeight:l,isLargeText:e,opacity:s,..."unsupported"!==p&&{background:p},..."unsupported"!==a&&{color:a}})}else if("image"===p.type)if(h);else{const e=r>=24||r>=18.67&&l>=700;o.push({$el:t,type:"background-image",color:a,isLargeText:e,background:p,fontSize:r,fontWeight:l,opacity:s})}else if("text"===t.tagName&&t.closest("svg"));else if(h||mn(a)===mn(p));else{const e=Ln(t,a,p,r,l,s,n.contrastAAA);e&&(e.type=m?"input":"text",o.push(e))}}O.Found.Svg.forEach(e=>{const t=dn(e);if(t&&"image"===t.type)return void o.push({$el:e,type:"svg-warning",background:t});if(e.querySelector("text"))return void o.push({$el:e,type:"svg-text",background:t});const i=e.querySelectorAll("path, polygon, circle, rect, ellipse");if(1===i.length){const s=getComputedStyle(i[0]),{fill:a,opacity:r,stroke:l,strokeWidth:c}=s;if(a.startsWith("url("))return void o.push({$el:e,type:"svg-warning",background:t});const d=a&&"none"!==a,p=l&&"none"!==l&&"0px"!==c;if(!d&&!p)return void o.push({$el:e,type:"svg-warning",background:t});let u,h,g,m=!1,f=!1;d&&(h=cn("currentColor"===a?getComputedStyle(e).color:a,r),"unsupported"!==h&&(u=bn(h,t),m=n.contrastAPCA?u.ratio>=45:u.ratio>=3)),p&&(g=cn("currentColor"===l?getComputedStyle(e).color:l,r),"unsupported"!==g&&(u=bn(g,t),f=n.contrastAPCA?u.ratio>=45:u.ratio>=3));const b=d&&p&&!m&&!f,y=d&&!p&&!m,A=!d&&p&&!f;"unsupported"===h||"unsupported"===g?o.push({$el:e,type:"svg-warning",background:t}):(b||y||A)&&o.push({$el:e,ratio:fn(u.ratio),color:u.blendedColor,type:"svg-error",background:t})}else o.push({$el:e,type:"svg-warning",background:t})}),O.Found.Inputs.forEach(e=>{if(e.placeholder&&0!==e.placeholder.length){const t=getComputedStyle(e,"::placeholder"),i=cn(t.getPropertyValue("color")),s=parseFloat(t.fontSize),a=ln(t.fontWeight),r=dn(e),l=parseFloat(t.opacity);if("unsupported"===i)o.push({$el:e,type:"placeholder-unsupported"});else if("image"===r.type);else{const t=Ln(e,i,r,s,a,l,n.contrastAAA);t&&(t.type="placeholder",o.push(t))}}}),(e=>{const t=e.filter(e=>"background-image"===e.type),o=e.filter(e=>"background-image"!==e.type);let i;if(n.contrastAPCA)i=t.map(e=>({...e}));else{const e=t.reduce((e,t)=>{const n=e,o=JSON.stringify({background:t.background.value,color:t.color,isLargeText:t.isLargeText});return n[o]||(n[o]=[]),n[o].push(t),n},{});i=Object.values(e).map(e=>({...e[0]}))}return[...i,...o]})(o).forEach(o=>{const{$el:i,ratio:s}=o,a=o,r="OPTION"===i.tagName?i.closest("datalist, select, optgroup"):i,l=u(y(f(m(r,["option:not(option:first-child)"])),80));let c;c="placeholder"===o.type||"placeholder-unsupported"===o.type?u(i.placeholder):"svg-error"===o.type||"svg-warning"===o.type||"svg-text"===o.type?"":l,a.sanitizedText=c;let d="";if(!n.contrastAPCA){const e=n.contrastAAA?"7:1":"4.5:1",i=n.contrastAAA?"4.5:1":"3:1",s=o.isLargeText?i:e,a=o.isLargeText?"CONTRAST_LARGE":"CONTRAST_NORMAL";d=` ${t.sprintf(a,s)}`}const p=n.contrastAPCA?"":` ${t.sprintf("CONTRAST_TIP_GRAPHIC")}`;switch(o.type){case"text":n.checks.CONTRAST_ERROR&&e.push({element:i,type:n.checks.CONTRAST_ERROR.type||"error",content:n.checks.CONTRAST_ERROR.content?t.sprintf(n.checks.CONTRAST_ERROR.content):t.sprintf("CONTRAST_ERROR")+d,dismiss:L(`CONTRAST${l}`),dismissAll:!!n.checks.CONTRAST_ERROR.dismissAll&&"CONTRAST_ERROR",developer:n.checks.CONTRAST_ERROR.developer||!1,contrastDetails:a});break;case"input":n.checks.CONTRAST_INPUT&&e.push({element:r,type:n.checks.CONTRAST_INPUT.type||"error",content:n.checks.CONTRAST_INPUT.content?t.sprintf(n.checks.CONTRAST_INPUT.content):t.sprintf("CONTRAST_INPUT",s)+d,dismiss:L(`CONTRAST${i.getAttribute("class")}${i.tagName}${s}`),dismissAll:!!n.checks.CONTRAST_INPUT.dismissAll&&"CONTRAST_INPUT",developer:n.checks.CONTRAST_INPUT.developer||!0,contrastDetails:a});break;case"placeholder":n.checks.CONTRAST_PLACEHOLDER&&e.push({element:i,type:n.checks.CONTRAST_PLACEHOLDER.type||"error",content:n.checks.CONTRAST_PLACEHOLDER.content?t.sprintf(n.checks.CONTRAST_PLACEHOLDER.content):t.sprintf("CONTRAST_PLACEHOLDER")+d,position:"afterend",dismiss:L(`CPLACEHOLDER${i.getAttribute("class")}${i.tagName}${s}`),dismissAll:!!n.checks.CONTRAST_PLACEHOLDER.dismissAll&&"CONTRAST_PLACEHOLDER",developer:n.checks.CONTRAST_PLACEHOLDER.developer||!0,contrastDetails:a});break;case"placeholder-unsupported":n.checks.CONTRAST_PLACEHOLDER_UNSUPPORTED&&e.push({element:i,type:n.checks.CONTRAST_PLACEHOLDER_UNSUPPORTED.type||"warning",content:n.checks.CONTRAST_PLACEHOLDER_UNSUPPORTED.content?t.sprintf(n.checks.CONTRAST_PLACEHOLDER_UNSUPPORTED.content):t.sprintf("CONTRAST_PLACEHOLDER_UNSUPPORTED")+d,position:"afterend",dismiss:L(`CPLACEHOLDERUN${i.getAttribute("class")}${i.tagName}${s}`),dismissAll:!!n.checks.CONTRAST_PLACEHOLDER_UNSUPPORTED.dismissAll&&"CONTRAST_PLACEHOLDER_UNSUPPORTED",developer:n.checks.CONTRAST_PLACEHOLDER_UNSUPPORTED.developer||!0,contrastDetails:a});break;case"svg-error":n.checks.CONTRAST_ERROR_GRAPHIC&&e.push({element:i,type:n.checks.CONTRAST_ERROR_GRAPHIC.type||"error",content:n.checks.CONTRAST_ERROR_GRAPHIC.content?t.sprintf(n.checks.CONTRAST_ERROR_GRAPHIC.content):t.sprintf("CONTRAST_ERROR_GRAPHIC")+p,dismiss:L(`CONTRASTERROR${i.outerHTML}`),dismissAll:!!n.checks.CONTRAST_ERROR_GRAPHIC.dismissAll&&"CONTRAST_ERROR_GRAPHIC",developer:n.checks.CONTRAST_ERROR_GRAPHIC.developer||!0,contrastDetails:a});break;case"svg-warning":case"svg-text":n.checks.CONTRAST_WARNING_GRAPHIC&&e.push({element:i,type:n.checks.CONTRAST_WARNING_GRAPHIC.type||"warning",content:n.checks.CONTRAST_WARNING_GRAPHIC.content?t.sprintf(n.checks.CONTRAST_WARNING_GRAPHIC.content):t.sprintf("CONTRAST_WARNING_GRAPHIC")+p,dismiss:L(`CONTRASTWARNING${i.outerHTML}`),dismissAll:!!n.checks.CONTRAST_WARNING_GRAPHIC.dismissAll&&"CONTRAST_WARNING_GRAPHIC",developer:n.checks.CONTRAST_WARNING_GRAPHIC.developer||!0,contrastDetails:a});break;case"background-image":n.checks.CONTRAST_WARNING&&e.push({element:r,type:n.checks.CONTRAST_WARNING.type||"warning",content:n.checks.CONTRAST_WARNING.content?t.sprintf(n.checks.CONTRAST_WARNING.content):t.sprintf("CONTRAST_WARNING")+d,dismiss:L(`CONTRAST${l}`),dismissAll:!!n.checks.CONTRAST_WARNING.dismissAll&&"CONTRAST_WARNING",developer:n.checks.CONTRAST_WARNING.developer||!1,contrastDetails:a});break;case"unsupported":n.checks.CONTRAST_UNSUPPORTED&&e.push({element:r,type:n.checks.CONTRAST_UNSUPPORTED.type||"warning",content:n.checks.CONTRAST_UNSUPPORTED.content?t.sprintf(n.checks.CONTRAST_UNSUPPORTED.content):t.sprintf("CONTRAST_WARNING")+d,dismiss:L(`CONTRAST${l}`),dismissAll:!!n.checks.CONTRAST_UNSUPPORTED.dismissAll&&"CONTRAST_UNSUPPORTED",developer:n.checks.CONTRAST_UNSUPPORTED.developer||!1,contrastDetails:a})}})}(this.results,s),s.readabilityPlugin&&function(){let e;if("On"===v.getItem("sa11y-readability")){O.Found.Readability.forEach(e=>{const t=e.textContent;t.length>=120&&"."!==t.charAt(t.length-1)&&e.insertAdjacentHTML("beforeend",".")});const o=[];for(let e=0;e{let t=e;if(t=t.toLowerCase().replace(".","").replace("\n",""),t.length<=3)return 1;t=t.replace(/(?:[^laeiouy]es|ed|[^laeiouy]e)$/,""),t=t.replace(/^y/,"");const n=t.match(/[aeiouy]{1,2}/g);let o=0;return!!n&&(o=n.length),o},s=i.replace(/[.!?-]+/g," ").split(" ");let a=0;for(let e=0;e100?u=100:u<0&&(u=0);const h=u.toFixed(1),g=(a/l).toFixed(1),m=Math.round((a-(d+p))/a*100);let f;f=h>=0&&h<30?t._("VERY_DIFFICULT"):h>31&&h<49?t._("DIFFICULT"):h>50&&h<60?t._("FAIRLY_DIFFICULT"):t._("GOOD"),e={score:h,averageWordsPerSentence:g,complexWords:m,difficultyLevel:f,wordCount:a}}else if(["sv","fi","da","no","nb","nn"].includes(n.Readability.Lang)){const n=(e=>{const n=()=>e.replace(/[-'.]/gi,"").split(/[^a-zA-ZöäåÖÄÅÆæØø0-9]/g).filter(Boolean),o=n().length,i=n().filter(e=>e.length>6).length,s=e.split(/\?|!|\.|\n/g).filter(Boolean).length,a=Math.round(o/s+100*i/o),r=(o/s).toFixed(1),l=Math.round(i/o*100);let c;return c=a>=0&&a<39?t._("GOOD"):a>40&&a<50?t._("FAIRLY_DIFFICULT"):a>51&&a<61?t._("DIFFICULT"):t._("VERY_DIFFICULT"),{score:a,difficulty:c,avgWordsPerSentence:r,complexWords:l,wordCount:o}})(i);e={score:n.score,averageWordsPerSentence:n.avgWordsPerSentence,complexWords:n.complexWords,difficultyLevel:n.difficulty,wordCount:n.wordCount}}!1===n.Global.headless&&(0===i.length?n.Panel.readabilityInfo.innerHTML=t._("READABILITY_NO_CONTENT"):e.wordCount>30?(n.Panel.readabilityInfo.innerHTML=`${e.score} ${e.difficultyLevel}`,n.Panel.readabilityDetails.innerHTML=`\n
          • \n ${t._("AVG_SENTENCE")}\n ${e.averageWordsPerSentence}\n
          • \n
          • \n ${t._("COMPLEX_WORDS")}\n ${e.complexWords}%\n
          • \n
          • \n ${t._("TOTAL_WORDS")}\n ${e.wordCount}\n
          • `):n.Panel.readabilityInfo.textContent=t._("READABILITY_NOT_ENOUGH"))}}(),this.imageResults=this.results.filter((e,t,n)=>{const{element:o}=e;return!(!o||"IMG"!==o.tagName||!o.outerHTML)&&n.findIndex(e=>e.element?.outerHTML===o.outerHTML)===t}),!0===s.customChecks?this.results:"object"==typeof s.customChecks?this.results.push(...s.customChecks):"listen"===s.customChecks&&(this.customChecksRunning=!0,this.customChecksFinished=0,document.addEventListener("sa11y-resume",()=>{this.customChecksFinished+=1,1===this.customChecksFinished&&(this.customChecksRunning=!1,this.updateResults())}),window.setTimeout(()=>{if(!0===this.customChecksRunning)throw this.customChecksRunning=!1,this.updateResults(),Error("Sa11y: No custom checks were returned.")},s.delayCustomCheck),window.setTimeout(()=>{const e=new CustomEvent("sa11y-custom-checks");document.dispatchEvent(e)},0)),this.customChecksRunning||this.updateResults()}catch(e){const t=new z(e);throw document.body.appendChild(t),Error(e)}},this.updateResults=()=>{this.results=this.results.filter(e=>!1!==e.isWithinRoot);const e="Off"===v.getItem("sa11y-developer")||null===v.getItem("sa11y-developer");if((e||!0===s.externalDeveloperChecks)&&(this.results=this.results.filter(e=>!0!==e.developer)),e&&(this.results=this.results.filter(e=>!0!==e.external)),this.results.forEach((e,t)=>{const n=s.selectorPath?function(e){const t=[];let n=e;for(;n;){let e=n.localName;if(n.id){e+=`#${n.id}`,t.unshift(e);break}n.className&&(e+=`.${n.className.replace(/\s+/g,".")}`);const o=n.parentNode;if(!o)break;{const i=o.children;i.length>1&&(e+=`:nth-child(${Array.prototype.indexOf.call(i,n)+1})`),t.unshift(e)}n=n.parentNode.host||n.parentNode}return t.join(" > ")}(e.element):"",o=e.element?.outerHTML.replace(/\s{2,}/g," ").trim()||"";Object.assign(e,{htmlPath:o,cssPath:n,id:t})}),!1===s.headless){const e=D(this.results,this.panelTooltips,this.checkAll,this.resetAll);this.results=e.updatedResults,this.dismissed=e.dismissedIssues;const l=function(e,t,n){let o=t,i=n;return e.forEach((t,n)=>{const s=e[n].type;"error"===s?o+=1:"warning"===s&&(i+=1)}),{error:o,warning:i}}(this.results,this.errorCount,this.warningCount);if(function(e,o){const i=e+o;0===i?(n.Panel.notifCount.innerText="",n.Panel.notifText.innerText="",n.Panel.notifBadge.style.display="none"):o>0&&0===e?(n.Panel.notifBadge.classList.add("notification-badge-warning"),n.Panel.notifCount.innerText=`${o}`,n.Panel.notifText.innerText=`${t._("WARNINGS_FOUND")}`):(n.Panel.notifBadge.classList.remove("notification-badge-warning"),n.Panel.notifCount.innerText=`${i}`,n.Panel.notifText.innerText=t._("TOTAL_FOUND")),"Opened"===v.getItem("sa11y-panel")||0===i?n.Panel.notifBadge.style.display="none":n.Panel.notifBadge.style.display="flex"}(l.error,l.warning),"Opened"===v.getItem("sa11y-panel")){this.results.forEach(e=>{Object.assign(e),function(e,o){const{element:i,type:s,content:a,inline:r=!1,position:l="beforebegin",id:c,dismiss:d,dismissAll:u,contrastDetails:h}=e,g=["error","warning","good"];if(-1===g.indexOf(s))throw Error(`Invalid type [${s}] for annotation`);[s].forEach(e=>{if("error"===e&&void 0!==i){const e=r?"data-sa11y-error-inline":"data-sa11y-error";i.setAttribute(e,c)}else if("warning"===e&&void 0!==i){const e=r?"data-sa11y-warning-inline":"data-sa11y-warning";i.setAttribute(e,c)}});const m={[g[0]]:t._("ERROR"),[g[1]]:t._("WARNING"),[g[2]]:t._("GOOD")};if(!1===o.showGoodImageButton&&"IMG"===i?.tagName&&"good"===s)return;if(!1===o.showGoodLinkButton&&"A"===i?.tagName&&"good"===s)return;const f=!o.dismissAnnotations||"warning"!==s&&"good"!==s||void 0===d?"":``,b=o.dismissAnnotations&&o.dismissAll&&"string"==typeof u&&("warning"===s||"good"===s)?``:"",y=document.createElement("sa11y-annotation");if(y.setAttribute("data-sa11y-annotation",c),void 0===i){const e=document.createElement("li");e.innerHTML=`

            ${m[s]}

            ${a}${f}`,n.Panel.pageIssuesList.insertAdjacentElement("afterbegin",e),n.Panel.pageIssues.classList.add("active"),n.Panel.panel.classList.add("has-page-issues")}else{const e=document.createElement("div");e.classList.add(r?"instance-inline":"instance"),e.innerHTML=`\n \n

            ${m[s]}

            \n ${p(a)}\n ${h?"
            ":""}\n
            ${f}${b}
            \n "\n >`;const n=o.insertAnnotationBefore?`, ${o.insertAnnotationBefore}`:"";(i.closest(`a, button, [role="link"], [role="button"] ${n}`)||i).insertAdjacentElement(l,y),y.shadowRoot.appendChild(e)}}(e,s)}),O.initializeAnnotations();const c=new Tn;document.body.appendChild(c),$(this.results,this.dismissed,this.checkAll,this.resetAll),ee(this.dismissed,this.headingOutline,s),s.showImageOutline&&function(e,o,i){const s=()=>{const a=[],r=e.map(e=>o.find(t=>e.key===t.dismiss&&e.href===window.location.pathname)).filter(Boolean);o.forEach(e=>{const o=r.some(t=>t.element.outerHTML.toLowerCase()===e.element.outerHTML.toLowerCase());o&&Object.assign(e,{dismissedImage:!0});const s=e.type,l=e.developer,{dismissedImage:c}=e,d=p(e.element.alt),u=!("Off"!==v.getItem("sa11y-developer")&&null!==v.getItem("sa11y-developer")||"error"!==s&&"warning"!==s||!0!==l),h=S(e.element),g=n.Global.editImageURLofCMS?te(e):"",m=i.imageWithinLightbox?`a[href]:not(${i.imageWithinLightbox})`:"a[href]",f=e.element.closest(m)?`
            ${t._("LINKED")}
            `:"";let b;if("error"!==s||u)if("warning"!==s||c||u){const n=0===d.length?`
            ${t._("DECORATIVE")}
            `:"",o=i.imageWithinLightbox?`a[href]:not(${i.imageWithinLightbox})`:"a[href]",s=e.element.closest(o)?`
            ${t._("LINKED")}
            `:"";b=`\n
          • \n \n
            \n
            ${t._("ALT")}
            \n ${s} ${n} ${d}\n
            \n ${g}\n
          • `,a.push(b)}else{const e=0===d.length?`
            ${t._("DECORATIVE")}
            `:"";b=`\n
          • \n \n
            \n
            ${t._("WARNING")} ${t._("ALT")}
            \n ${f} ${e} ${d}\n
            \n ${g}\n
          • `,a.push(b)}else{const e=0===d.length?`
            ${t._("MISSING")}
            `:`${d}`;b=`\n
          • \n \n
            \n
            ${t._("ERROR")} ${t._("ALT")}
            ${f} ${e}\n
            \n ${g}\n
          • `,a.push(b)}}),n.Panel.imagesList.innerHTML=0===a.length?`
          • ${t._("NO_IMAGES")}
          • `:a.join(" "),document.removeEventListener("sa11y-build-image-outline",s)};"Opened"===v.getItem("sa11y-images")&&s(),document.addEventListener("sa11y-build-image-outline",s)}(this.dismissed,this.imageResults,s),i=e.dismissCount,a=l.error,r=l.warning,n.Panel.skipButton.disabled=!1,n.Panel.panel.classList.add("active"),n.Global.html.setAttribute("data-sa11y-active","true"),n.Panel.skipButton.classList.add("active"),a>0&&r>0?(n.Panel.content.setAttribute("class","errors"),n.Panel.status.innerHTML=`${t._("ERRORS")} ${a} ${t._("WARNINGS")} ${r}`):a>0?(n.Panel.content.setAttribute("class","errors"),n.Panel.status.innerHTML=`${t._("ERRORS")} ${a}`):r>0?(n.Panel.content.setAttribute("class","warnings"),n.Panel.status.innerHTML=`${t._("WARNINGS")} ${r}`):i>0?(n.Panel.status.innerHTML=`${t._("DISMISSED")} ${i}`,n.Panel.skipButton.classList.remove("active")):(n.Panel.content.setAttribute("class","good"),n.Panel.status.innerHTML=`${t._("NO_ERRORS_FOUND")}`),0===document.querySelectorAll("sa11y-annotation").length&&(n.Panel.skipButton.disabled=!0),o=this.results,Mn=e=>{Dn(e,o)},Bn=()=>{Rn(o)},document.addEventListener("keydown",Mn),n.Panel.skipButton.addEventListener("click",Bn),s.exportResultsPlugin&&function(e,t){n.Global.exportResultsPlugin&&(F=async()=>{await U(e,t)},K=()=>{H(e)},n.Panel.exportHTML.addEventListener("click",F),n.Panel.exportCSV.addEventListener("click",K))}(this.results,e.dismissedResults),N(n.Panel.pageIssuesList,n.Panel.pageIssuesContent),Nn(s.ignoreHiddenOverflow),document.querySelectorAll("sa11y-annotation").forEach(e=>{const t=e.nextElementSibling;null!==t&&"SA11Y-ANNOTATION"===t.tagName&&customElements.get("sa11y-annotation")&&t.shadowRoot.querySelector("button").setAttribute("style","margin: -5px -15px !important;")})}n.Panel.toggle.disabled=!1}var o,i,a,r;window.sa11yCheckComplete=null;const l=new CustomEvent("sa11y-check-complete",{detail:{results:this.results,page:window.location.pathname}});window.sa11yCheckComplete=l.detail,document.dispatchEvent(l)},this.resetAll=(e=!0)=>{for(n.Global.html.removeAttribute("data-sa11y-active"),k(["sa11y-annotation","sa11y-heading-label","sa11y-heading-anchor","sa11y-tooltips","[data-sa11y-readability-period]","[data-sa11y-clone-image-text]"],"document"),x(["data-sa11y-parent","data-sa11y-error","data-sa11y-warning","data-sa11y-good","data-sa11y-error-inline","data-sa11y-warning-inline","data-sa11y-overflow","data-sa11y-pulse-border","data-sa11y-filter","data-sa11y-has-shadow-root"],"document"),n.Panel.outlineList.innerHTML="",s.showImageOutline&&(n.Panel.imagesList.innerHTML=""),n.Panel.pageIssuesList.innerHTML="",n.Panel.readabilityInfo.innerHTML="",n.Panel.readabilityDetails.innerHTML="",n.Panel.panel.classList.remove("has-page-issues"),n.Panel.pageIssues.classList.remove("active"),n.Panel.settingsContent.classList.remove("hide-settings-border"),n.Panel.panel.querySelector("#readability-alert")?.remove(),I(),document.removeEventListener("keydown",Mn),n.Panel.skipButton.removeEventListener("click",Bn),n.Global.exportResultsPlugin&&(n.Panel.exportHTML.removeEventListener("click",F),n.Panel.exportCSV.removeEventListener("click",K)),n.Panel.panel?.removeEventListener("click",B),n.Panel.dismissButton?.removeEventListener("click",M),n.Global.colourFilterPlugin&&(n.Panel.colourFilterSelect.value=0,n.Panel.colourPanel.classList.remove("active"),n.Panel.colourFilterSelect.classList.remove("active"),n.Panel.content.hidden=!1);n.Panel.status.firstChild;)n.Panel.status.removeChild(n.Panel.status.firstChild);document.querySelectorAll("[data-sa11y-has-shadow-root]").forEach(e=>{e.shadowRoot.querySelectorAll("style.sa11y-css-utilities").forEach(e=>e.remove()),e.removeAttribute("data-sa11y-has-shadow-root")}),e&&n.Panel.panel.classList.remove("active")},this.disabled=()=>{setTimeout(()=>{"Opened"===v.getItem("sa11y-panel")&&n.Panel.toggle.click(),n.Panel.toggle.disabled=!0},s.delayCheck+10)},this.enabled=()=>{n.Panel.toggle&&(n.Panel.toggle.disabled=!1)},this.find=(e,t,n)=>o(e,t,n),this.prepareDismissal=e=>L(e),this.sanitizeHTML=e=>u(e),this.truncateString=(e,t)=>y(e,t),this.initialize()}}export{t as Lang,Hn as Sa11y}; +const e={checkRoot:"body",containerIgnore:".sa11y-ignore",contrastIgnore:".sr-only",outlineIgnore:"",headerIgnore:"",headerIgnoreSpan:"",headerIgnoreStrings:"",imageIgnore:"",linkIgnore:"",linkIgnoreSpan:"",linkIgnoreStrings:"",aboutContent:"",panelPosition:"right",showMovePanelToggle:!0,checkAllHideToggles:!1,developerChecksOnByDefault:!1,showHinPageOutline:!1,showTitleInPageOutline:!0,showImageOutline:!0,editImageURLofCMS:"",relativePathImageSRC:"",relativePathImageID:"",ignoreEditImageURL:[],ignoreEditImageClass:[],delayCheck:0,delayCustomCheck:500,detectSPArouting:!1,doNotRun:"",headless:!1,selectorPath:!1,shadowComponents:"",autoDetectShadowComponents:!1,showGoodImageButton:!0,showGoodLinkButton:!0,dismissAnnotations:!0,dismissAll:!0,ignoreHiddenOverflow:"",insertAnnotationBefore:"",readabilityPlugin:!0,readabilityRoot:"body",readabilityIgnore:"",contrastPlugin:!0,contrastAAA:!1,contrastAPCA:!1,customChecks:!1,linksAdvancedPlugin:!0,formLabelsPlugin:!0,embeddedContentPlugin:!0,developerPlugin:!0,externalDeveloperChecks:!1,colourFilterPlugin:!0,exportResultsPlugin:!1,susAltStopWords:"",linkStopWords:"",extraPlaceholderStopWords:"",imageWithinLightbox:"",checks:{HEADING_SKIPPED_LEVEL:!0,HEADING_EMPTY_WITH_IMAGE:!0,HEADING_EMPTY:!0,HEADING_FIRST:!0,HEADING_LONG:{maxLength:170},HEADING_MISSING_ONE:!0,MISSING_ALT_LINK:!0,MISSING_ALT_LINK_HAS_TEXT:!0,MISSING_ALT:!0,IMAGE_DECORATIVE_CAROUSEL:{sources:".carousel"},LINK_IMAGE_NO_ALT_TEXT:!0,LINK_IMAGE_TEXT:!0,IMAGE_FIGURE_DECORATIVE:!0,IMAGE_DECORATIVE:!0,LINK_ALT_FILE_EXT:!0,ALT_FILE_EXT:!0,LINK_PLACEHOLDER_ALT:!0,ALT_PLACEHOLDER:!0,LINK_SUS_ALT:!0,SUS_ALT:!0,LINK_IMAGE_LONG_ALT:{maxLength:250},IMAGE_ALT_TOO_LONG:{maxLength:250},LINK_IMAGE_ALT:{dismissAll:!0},LINK_IMAGE_ALT_AND_TEXT:!0,IMAGE_FIGURE_DUPLICATE_ALT:!0,IMAGE_PASS:{dismissAll:!0},DUPLICATE_TITLE:{dismissAll:!0},LINK_EMPTY_LABELLEDBY:!0,LINK_EMPTY_NO_LABEL:!0,LINK_STOPWORD:!0,LINK_STOPWORD_ARIA:!0,LINK_SYMBOLS:!0,LINK_CLICK_HERE:!0,LINK_DOI:{dismissAll:!0},LINK_URL:{maxLength:40},LINK_LABEL:{dismissAll:!0},LINK_EMPTY:!0,LINK_IDENTICAL_NAME:{dismissAll:!0},LINK_NEW_TAB:{dismissAll:!0},LINK_FILE_EXT:!0,LABELS_MISSING_IMAGE_INPUT:!0,LABELS_INPUT_RESET:!0,LABELS_MISSING_LABEL:!0,LABELS_ARIA_LABEL_INPUT:!0,LABELS_NO_FOR_ATTRIBUTE:!0,LABELS_PLACEHOLDER:!0,EMBED_AUDIO:{sources:""},EMBED_VIDEO:{sources:""},EMBED_DATA_VIZ:{sources:""},EMBED_UNFOCUSABLE:!0,EMBED_MISSING_TITLE:!0,EMBED_GENERAL:!0,QA_BAD_LINK:{sources:""},QA_STRONG_ITALICS:!0,QA_IN_PAGE_LINK:!0,QA_DOCUMENT:{sources:"",dismissAll:!0},QA_PDF:{dismissAll:!0},QA_BLOCKQUOTE:!0,TABLES_MISSING_HEADINGS:!0,TABLES_SEMANTIC_HEADING:!0,TABLES_EMPTY_HEADING:!0,QA_FAKE_HEADING:!0,QA_FAKE_LIST:!0,QA_UPPERCASE:!0,QA_UNDERLINE:!0,QA_SUBSCRIPT:!0,QA_NESTED_COMPONENTS:{sources:""},QA_JUSTIFY:!0,QA_SMALL_TEXT:!0,META_LANG:!0,META_SCALABLE:!0,META_MAX:!0,META_REFRESH:!0,DUPLICATE_ID:!0,META_TITLE:!0,UNCONTAINED_LI:!0,TABINDEX_ATTR:!0,HIDDEN_FOCUSABLE:!0,LABEL_IN_NAME:!0,BTN_EMPTY:!0,BTN_EMPTY_LABELLEDBY:!0,BTN_ROLE_IN_NAME:!0,CONTRAST_WARNING:{dismissAll:!0},CONTRAST_INPUT:!0,CONTRAST_ERROR:!0,CONTRAST_PLACEHOLDER:!0,CONTRAST_PLACEHOLDER_UNSUPPORTED:!0,CONTRAST_ERROR_GRAPHIC:!0,CONTRAST_WARNING_GRAPHIC:{dismissAll:!0},CONTRAST_UNSUPPORTED:{dismissAll:!0}}},t={langStrings:{},addI18n(e){this.langStrings=e},_(e){return this.translate(e)},sprintf(e,...t){let n=this._(e);return n=this.prepHTML(n),t&&t.length&&t.forEach(e=>{n=n.replace(/%\([a-zA-z]+\)/,e)}),n},translate(e){return this.langStrings[e]||e},prepHTML:e=>e.replaceAll(/
            /g,'').replaceAll(/${t._("ALT")}
            `).replaceAll(/{L}/g,`${t._("LINKED")}`)},n=function(){const e={};const o={};const i={};const s={};const a={};return{initializeRoot:function(o,i){if(e.areaToCheck=document.querySelector(o),e.areaToCheck||(e.areaToCheck=document.querySelector("body")),e.Readability=document.querySelector(i),!e.Readability)if(e.areaToCheck){e.Readability=e.areaToCheck;const{readabilityDetails:o,readabilityToggle:s}=n.Panel,a="true"===s?.getAttribute("aria-pressed");if(o&&a){const n=document.createElement("div");n.id="readability-alert",n.innerHTML=`

            ${t.sprintf("MISSING_READABILITY_ROOT",e.areaToCheck.tagName.toLowerCase(),i)}

            `,o.insertAdjacentElement("afterend",n)}}else e.Readability=document.querySelector("body")},Root:e,initializeGlobal:function(e){o.html=document.querySelector("html"),o.headless=e.headless,o.panelPosition=e.panelPosition,o.dismissAnnotations=e.dismissAnnotations,o.aboutContent=e.aboutContent,o.contrastAPCA=e.contrastAPCA,o.contrastSuggestions=e.contrastSuggestions,o.contrastAAA=e.contrastAAA,o.shadowDetection=e.shadowComponents.length>0||!0===e.autoDetectShadowComponents,o.developerPlugin=e.developerPlugin,o.colourFilterPlugin=e.colourFilterPlugin,o.checkAllHideToggles=e.checkAllHideToggles,o.exportResultsPlugin=e.exportResultsPlugin,o.readabilityPlugin=e.readabilityPlugin,o.showImageOutline=e.showImageOutline,o.editImageURLofCMS=e.editImageURLofCMS,o.relativePathImageSRC=e.relativePathImageSRC,o.relativePathImageID=e.relativePathImageID,o.ignoreEditImageURL=e.ignoreEditImageURL,o.ignoreEditImageClass=e.ignoreEditImageClass,o.showMovePanelToggle=e.showMovePanelToggle;let t=!1;"function"==typeof window.matchMedia&&(t=window.matchMedia("(prefers-reduced-motion: reduce)")),o.scrollBehaviour=!t||t.matches?"auto":"smooth",o.langDirection="rtl"===o.html.getAttribute("dir")?"rtl":"ltr";const n=e.checks.QA_DOCUMENT.sources,i='a[href$=".doc"], a[href$=".docx"], a[href*=".doc?"], a[href*=".docx?"], a[href$=".ppt"], a[href$=".pptx"], a[href*=".ppt?"], a[href*=".pptx?"], a[href^="https://drive.google.com/file"], a[href^="https://docs.google."], a[href^="https://sway."]';o.documentSources=n?`${i}, ${n}`:i;const s=e.checks.EMBED_VIDEO.sources,a='video, [src*="Video"], [src*="video"], [src*="watch"], [src*="youtube.com"], [src*="vimeo.com"], [src*="panopto.com"], [src*="wistia.com"], [src*="dailymotion.com"], [src*="brightcove.com"], [src*="vidyard.com"]';if(s){const e=s.split(/\s*[\s,]\s*/).map(e=>`[src*="${e}"]`);o.VideoSources=`${a}, ${e.join(", ")}`}else o.VideoSources=a;const r=e.checks.EMBED_AUDIO.sources,l='audio, [src*="soundcloud.com"], [src*="simplecast.com"], [src*="podbean.com"], [src*="buzzsprout.com"], [src*="blubrry.com"], [src*="transistor.fm"], [src*="fusebox.fm"], [src*="libsyn.com"], [src*="spotify.com"], [src*="podcasts.apple.com"], [src*="castbox.fm"], [src*="megaphone.fm"], [src*="spreaker.com"], [src*="anchor.fm"], [src*="rss.com"], [src*="redcircle.com"]';if(r){const e=r.split(/\s*[\s,]\s*/).map(e=>`[src*="${e}"]`);o.AudioSources=`${l}, ${e.join(", ")}`}else o.AudioSources=l;const c=e.checks.EMBED_DATA_VIZ.sources,d='[src*="datastudio"], [src*="tableau"], [src*="lookerstudio"], [src*="powerbi"], [src*="qlik"]';if(c){const e=c.split(/\s*[\s,]\s*/).map(e=>`[src*="${e}"]`);o.VisualizationSources=`${d}, ${e.join(", ")}`}else o.VisualizationSources=d;o.AllEmbeddedContent=`${o.VideoSources}, ${o.AudioSources}, ${o.VisualizationSources}`},Global:o,initializePanelSelectors:function(){const e=document.querySelector("sa11y-control-panel").shadowRoot;i.panel=e.getElementById("panel"),i.content=e.getElementById("panel-content"),i.controls=e.getElementById("panel-controls"),i.outline=e.getElementById("outline-panel"),i.outlineContent=e.getElementById("outline-content"),i.outlineList=e.getElementById("outline-list"),i.outlineHeader=e.getElementById("outline-header"),i.images=e.getElementById("images-panel"),i.imagesContent=e.getElementById("images-content"),i.imagesList=e.getElementById("images-list"),i.imagesHeader=e.getElementById("images-header"),i.notifBadge=e.getElementById("notification-badge"),i.notifCount=e.getElementById("notification-count"),i.notifText=e.getElementById("notification-text"),i.status=e.getElementById("status"),i.pageIssues=e.getElementById("page-issues"),i.pageIssuesList=e.getElementById("page-issues-list"),i.pageIssuesHeader=e.getElementById("page-issues-header"),i.pageIssuesContent=e.getElementById("page-issues-content"),i.settings=e.getElementById("settings-panel"),i.settingsHeader=e.getElementById("settings-header"),i.settingsContent=e.getElementById("settings-content"),i.developerToggle=e.getElementById("developer-toggle"),i.readabilityToggle=e.getElementById("readability-toggle"),i.themeToggle=e.getElementById("theme-toggle"),i.developerItem=e.getElementById("developer-item"),i.readabilityItem=e.getElementById("readability-item"),i.darkModeItem=e.getElementById("dark-mode-item"),i.colourPanel=e.getElementById("panel-colour-filters"),i.colourFilterItem=e.getElementById("colour-filter-item"),i.colourFilterSelect=e.getElementById("colour-filter-select"),i.colourFilterIcon=e.getElementById("filter-icon"),i.toggle=e.getElementById("toggle"),i.outlineToggle=e.getElementById("outline-toggle"),i.imagesToggle=e.getElementById("images-toggle"),i.settingsToggle=e.getElementById("settings-toggle"),i.movePanelToggle=e.getElementById("move-panel"),i.skipButton=e.getElementById("skip-button"),i.dismissButton=e.getElementById("dismiss-button"),i.dismissTooltip=e.getElementById("dismiss-tooltip"),i.skipToPageIssues=e.getElementById("skip-to-page-issues"),i.exportHTML=e.getElementById("export-html"),i.exportCSV=e.getElementById("export-csv"),i.alert=e.getElementById("panel-alert"),i.alertText=e.getElementById("panel-alert-text"),i.alertPreview=e.getElementById("panel-alert-preview"),i.alertClose=e.getElementById("close-alert"),i.readability=e.getElementById("readability-panel"),i.readabilityInfo=e.getElementById("readability-info"),i.readabilityDetails=e.getElementById("readability-details")},Panel:i,initializeReadability:function(e){if(e.readabilityPlugin){s.Lang=t._("LANG_CODE").substring(0,2);const e=["en","fr","es","de","nl","it","sv","fi","da","no","nb","nn","pt"],o=n.Global.html.getAttribute("lang");if(o){const t=o.toLowerCase().substring(0,2);e.includes(t)&&e.includes(s.Lang)?s.Plugin=!0:s.Plugin=!1}else s.Plugin=!1}},Readability:s,initializeExclusions:function(e){a.Sa11yElements=["sa11y-heading-label","sa11y-heading-anchor","sa11y-annotation","sa11y-tooltips","sa11y-panel-tooltips","sa11y-control-panel","#sa11y-colour-filters","#sa11y-colour-filters *"];const t=["style","script","noscript"];if(a.Container=["#wpadminbar","#wpadminbar *",...t],e.containerIgnore){const t=e.containerIgnore.split(",").map(e=>e.trim());a.Container=a.Container.concat(t.flatMap(e=>[`${e} *`,e]))}a.Contrast=["link","hr","option","audio","audio *","video","video *",'input[type="color"]','input[type="range"]',"progress","progress *","meter","meter *","iframe","svg title","svg desc",...t],e.contrastIgnore&&(a.Contrast=e.contrastIgnore.split(",").map(e=>e.trim()).flatMap(e=>[e,`${e} *`]).concat(a.Contrast)),a.Readability=["nav li",'[role="navigation"] li',...t],e.readabilityIgnore&&(a.Readability=e.readabilityIgnore.split(",").map(e=>e.trim()).flatMap(e=>[e,`${e} *`]).concat(a.Readability)),a.Headings=e.headerIgnore?e.headerIgnore.split(",").map(e=>e.trim()):[],a.HeaderSpan=e.headerIgnoreSpan?e.headerIgnoreSpan.split(",").map(e=>e.trim()):[],a.Outline=e.outlineIgnore?e.outlineIgnore.split(",").map(e=>e.trim()):[],a.Images=['[role="presentation"]'],e.imageIgnore&&(a.Images=e.imageIgnore.split(",").map(e=>e.trim()).concat(a.Images)),a.Links=[".anchorjs-link"],e.linkIgnore&&(a.Links=e.linkIgnore.split(",").map(e=>e.trim()).concat(a.Links)),a.LinkSpan=e.linkIgnoreSpan?e.linkIgnoreSpan.split(",").map(e=>e.trim()):[]},Exclusions:a}}();function o(e,t,o){let i;"document"===t?i=document:"readability"===t?(i=n.Readability.Root,i||(i=n.Root.areaToCheck)):"root"===t?(i=n.Root.areaToCheck,i||(i=document.body)):"panel"===t?(i=n.Panel.panel,i||(i=document.body)):(i=document.querySelector(t),i||(i=document.body));const s=document.querySelectorAll("[data-sa11y-has-shadow-root]"),a=s?", [data-sa11y-has-shadow-root]":"",r=n.Exclusions.Container.join(", "),l=o?.join(", ")||"",c=l?`, ${l}`:"",d=Array.from(i.querySelectorAll(`:is(${e}${a}):not(${r}${c})`));if(s.length){const t=[];if(d.forEach((n,o)=>{n&&n.matches&&n.matches("[data-sa11y-has-shadow-root]")&&n.shadowRoot&&(t[o]=n.shadowRoot.querySelectorAll(`:is(${e}):not(${r}${c})`))}),t.length>0)for(let e=t.length-1;e>=0;e--)t[e]&&d.splice(e,1,...t[e])}return d.filter(e=>"SLOT"!==e.parentNode.tagName)}const i=(e,t)=>{const n=e=>{if("none"===e)return"";const t=e.includes("url(")||e.includes("image-set(")?e.match(/\/\s*"([^"]+)"/):e.match(/"([^"]+)"/);return t?t[1]:""};return`${n(window.getComputedStyle(e,":before").getPropertyValue("content"))}${t}${n(window.getComputedStyle(e,":after").getPropertyValue("content"))}`},s=e=>{for(let t=0;t<1e3;t++){if(e.nextSibling())return e.previousNode();if(!e.parentNode())return!1}return!1},a=(e,t=!1)=>{const n=e.getAttribute("aria-labelledby");if(!t&&n)return n.split(/\s+/).filter(e=>e.trim()).map(e=>{const t=document.querySelector(`#${CSS.escape(e)}`);return t?r(t,"",1):""}).join(" ");const o=e.getAttribute("aria-label");return o&&o.trim().length>0?o:"noAria"},r=(e,t=[],n=0)=>{const o=a(e,n);if("noAria"!==o)return o;if("TEXTAREA"===e.tagName&&e.hasAttribute("title"))return e.getAttribute("title");let l="";if(!e.children.length)return l=i(e,e.textContent),!l.trim()&&e.hasAttribute("title")?e.getAttribute("title"):l;const c=(d=e,p=!0,u=!0,document.createTreeWalker(d,NodeFilter.SHOW_ALL,{acceptNode:e=>p&&e.nodeType===Node.ELEMENT_NODE||u&&e.nodeType===Node.TEXT_NODE?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT}));var d,p,u;const h=[...t,"noscript","style","script","video","audio"].join(", "),g=h?e.querySelectorAll(h):[];let m=!1,f=!1,b=0,y=!0;for(;c.nextNode()&&y;){b+=1;const e=c.currentNode;if(Array.from(g).some(t=>t.contains(e)))continue;if(e.shadowRoot){const o=e.shadowRoot.querySelectorAll("*");for(let e=0;e{e.nodeType===Node.ELEMENT_NODE?n+=r(e):e.nodeType===Node.TEXT_NODE&&(n+=e.nodeValue)}),l+=n,l+=i(e,"");break}default:l+=i(e,"")}else l+=` ${o}`,s(c)||(y=!1)}return m&&!f&&(l+=` ${m}`),l=l.replace(/[\uE000-\uF8FF]/gu,""),!l.trim()&&e.hasAttribute("title")?e.getAttribute("title"):l};function l(e){if(e.getAttribute("hidden")||0===e.offsetWidth&&0===e.offsetHeight||1===e.clientHeight&&1===e.clientWidth)return!0;return"none"===getComputedStyle(e).getPropertyValue("display")}function c(e){const t=window.getComputedStyle(e),n=t.getPropertyValue("clip-path"),{position:o}=t,i=parseFloat(t.width),s=parseFloat(t.height),{overflow:a}=t;return"inset(50%)"===n||"absolute"===o&&1===i&&1===s&&"hidden"===a}function d(e){if(e.getAttribute("hidden"))return!0;return"none"===getComputedStyle(e).getPropertyValue("display")}function p(e){const t=document.createElement("div");return t.textContent=e,t.innerHTML.replaceAll('"',""").replaceAll("'","'").replaceAll("`","`")}function u(e){return e.replace(/[^\w. ]/gi,e=>`&#${e.charCodeAt(0)};`)}function h(e){if(!e)return"#";const t=String(e).trim();if(/^javascript:/i.test(t))return"#";if(/^data:/i.test(t))return"#";if(!["http:","https:","mailto:","tel:","ftp:"].some(e=>t.toLowerCase().startsWith(e))&&!t.startsWith("/")&&!t.startsWith("#"))return`./${t}`;const n=t.replace(/<[^>]*>/g,"");return encodeURI(n)}function g(e,t=!1){const n=document.createElement("div");n.innerHTML=e,["script","style","noscript","iframe","form"].forEach(e=>{const t=n.getElementsByTagName(e);for(;t.length>0;)t[0].parentNode.removeChild(t[0])});return Array.from(n.getElementsByTagName("*")).forEach(e=>{Array.from(e.attributes).forEach(t=>{t.name.startsWith("on")&&e.removeAttribute(t.name)}),t||e.removeAttribute("style")}),n.innerHTML}function m(e,t=[]){const n=["noscript","script","style","audio","video","form","iframe",...t].join(", "),o=e.cloneNode(!0);return Array.from(o.querySelectorAll(n)).forEach(e=>{e.parentElement.removeChild(e)}),o}function f(e){return m(e).textContent.replace(/[\r\n]+/g,"").replace(/\s+/g," ").trim()}function b(e){return e.replace(/[\r\n]+/g," ").replace(/\s+/g," ").trim()}function y(e,t){const n=e.substring(0,t).trimEnd();return e.length>t?`${n}...`:e}function A(e,t,n){let o=e;for(;null!==o;){if(window.getComputedStyle(o).getPropertyValue(t)===n)return o;o=o.parentElement}return null}function E(e){const t=e.getBoundingClientRect(),n=window.pageYOffset||document.documentElement.scrollTop;return{top:t.top+n}}const v={getItem(e){try{return null===localStorage.getItem(e)?sessionStorage.getItem(e):localStorage.getItem(e)}catch(e){return!1}},setItem(e,t){try{localStorage.setItem(e,t)}catch(n){sessionStorage.setItem(e,t)}return!0},removeItem(e){try{localStorage.removeItem(e)}catch(t){sessionStorage.removeItem(e)}return!0}};function _(e){const t="data-sa11y-pulse-border";e.setAttribute(t,""),setTimeout(()=>{e.removeAttribute(t)},2500)}function L(e){return String(e).replace(/([^0-9a-zA-Z])/g,"").substring(0,256)}function I(){const e=document.querySelector("sa11y-control-panel").shadowRoot,t=e.getElementById("panel-alert"),n=e.getElementById("panel-alert-text"),o=e.getElementById("panel-alert-preview");for(t.classList.remove("active"),o.classList.remove("panel-alert-preview");n.firstChild;)n.removeChild(n.firstChild);for(;o.firstChild;)o.removeChild(o.firstChild)}function T(e,t,n){I();const o=document.querySelector("sa11y-control-panel").shadowRoot,i=o.getElementById("panel-alert"),s=o.getElementById("panel-alert-text"),a=o.getElementById("panel-alert-preview"),r=o.getElementById("close-alert"),l=o.getElementById("skip-button");i.classList.add("active"),s.innerHTML=e;const c=n?`
            ${n}
            `:"";function d(){I();(l.hasAttribute("disabled")?o.getElementById("toggle"):l).focus()}t&&(a.classList.add("panel-alert-preview"),a.innerHTML=`${c}
            ${t}
            `),setTimeout(()=>{r.focus()},300),r.addEventListener("click",d),i.onkeydown=e=>{"Escape"===(e||window.event).key&&i.classList.contains("active")&&d()}}function x(e,t){e.forEach(e=>{o(`[${e}]`,`${t}`).forEach(t=>{t.removeAttribute(e)})})}function k(e,t){o(`${e}`,`${t}`).forEach(e=>{e.parentNode.removeChild(e)})}function N(e,t,n){setTimeout(()=>{e.scrollHeight>t.clientHeight?(t.classList.add("scrollable"),e.setAttribute("tabindex","0"),n&&(e.setAttribute("aria-label",n),e.setAttribute("role","region"))):t.classList.remove("scrollable")},50)}function S(e){const t=e=>e?.split(",").pop()?.trim()?.split(/\s+/)[0],n=e=>e?new URL(e,window.location.href).href:null,o=t(e.getAttribute("data-src")||e.getAttribute("srcset"));if(o)return n(o);const i=e.closest("picture")?.querySelector("source[srcset]")?.getAttribute("srcset"),s=t(i);return n(s||e.getAttribute("src"))}function w(e,t=!1){const n=e.element,o=`
            ${p(y(g(e.htmlPath),600))}
            `,i=e=>{const t=f(e),n=y(t,100);return t.length?u(n):o},s={SPAN:i,P:i,A:e=>{const t=f(e),n=y(t,100);return t.length>1&&e.href&&!e.hasAttribute("role")?`${u(n)}`:o},IMG:e=>{const n=e.closest("a[href]"),i=e.alt?`alt="${u(e.alt)}"`:"alt",s=S(e);function a(e){return n?``:``}if(t)return new Promise(e=>{if(s){if(new URL(s,window.location.origin).origin===window.location.origin)fetch(s).then(e=>e.blob()).then(e=>(e=>new Promise((t,n)=>{const o=new FileReader;o.onloadend=()=>{let{result:n}=o;const i=e.type&&e.type.startsWith("image/")?e.type:"image/png";n.startsWith("data:application/octet-stream")&&(n=n.replace("data:application/octet-stream",`data:${i}`)),t(n)},o.onerror=n,o.readAsDataURL(e)}))(e)).then(t=>{const n=t.startsWith("data:image/")?t:h(t);e(a(n))}).catch(()=>{e(a(s))});else{const t=s.startsWith("data:image/")?s:h(s);e(a(t))}}else e(o)});const r=s.startsWith("data:image/")?s:h(s);return s?a(r):o},IFRAME:e=>{const t=e.src,n=e.title?e.title:"",i=e.getAttribute("aria-label");if(t){const e=i||""||n;return``}return o},AUDIO:()=>g(e.htmlPath),VIDEO:()=>g(e.htmlPath)}[n.tagName];return s?s(n):o}function C(e){let t="";const n=r(e).toLowerCase();e.childNodes.forEach(e=>{e.nodeType===Node.TEXT_NODE?t+=e.textContent:e.nodeType===Node.ELEMENT_NODE&&(l(e)||(t+=e.textContent))});let o=t.replace(/[\p{Emoji_Presentation}\p{Extended_Pictographic}]/gu,"");return o=b(o).toLowerCase(),"x"!==o&&(0!==o.length&&!n.includes(o))}const O=function(){const e={};const t={};return{initializeElements:function(t){e.Everything=o("*","root",n.Exclusions.Sa11yElements),e.Contrast=e.Everything.filter(e=>!n.Exclusions.Contrast.some(t=>e.matches(t))&&!n.Exclusions.Contrast.includes(e)),e.Images=e.Everything.filter(e=>"IMG"===e.tagName&&!n.Exclusions.Images.some(t=>e.matches(t))),e.Links=e.Everything.filter(e=>("A"===e.tagName||"a"===e.tagName)&&e.hasAttribute("href")&&!e.matches('[role="button"]')&&!n.Exclusions.Links.some(t=>e.matches(t))),e.Headings=o('h1, h2, h3, h4, h5, h6, [role="heading"][aria-level]',"document",n.Exclusions.Headings),e.HeadingOne=o('h1, [role="heading"][aria-level="1"]',"document",n.Exclusions.Headings),e.ExcludedHeadings=e.Headings.filter(e=>n.Exclusions.Headings.some(t=>e.matches(t))),e.ExcludedOutlineHeadings=e.Headings.filter(e=>n.Exclusions.Outline.some(t=>e.matches(t))),e.OutlineIgnore=O.Found.ExcludedOutlineHeadings.concat(O.Found.ExcludedHeadings),e.Paragraphs=e.Everything.filter(e=>"P"===e.tagName&&!e.closest("table")),e.Lists=e.Everything.filter(e=>"LI"===e.tagName),e.Blockquotes=e.Everything.filter(e=>"BLOCKQUOTE"===e.tagName),e.Tables=e.Everything.filter(e=>"TABLE"===e.tagName&&!e.matches('[role="presentation"]')&&!e.matches('[role="none"]')),e.StrongItalics=e.Everything.filter(e=>["STRONG","EM"].includes(e.tagName)),e.Subscripts=e.Everything.filter(e=>["SUP","SUB"].includes(e.tagName));const i=t.checks.QA_BAD_LINK.sources;e.CustomErrorLinks=i.length?e.Links.filter(e=>i.split(",").some(t=>e.matches(t.trim()))):[];const s=e=>n.Root.Readability.contains(e)&&!n.Exclusions.Readability.some(t=>e.matches(t));e.Readability=[...e.Paragraphs.filter(s),...e.Lists.filter(s)];const a=t.checks.QA_NESTED_COMPONENTS.sources||'[role="tablist"], details';e.NestedComponents=a?e.Everything.filter(e=>e.matches(a)):[],e.TabIndex=e.Everything.filter(e=>e.hasAttribute("tabindex")&&"0"!==e.getAttribute("tabindex")&&!e.getAttribute("tabindex").startsWith("-")),e.Svg=e.Everything.filter(e=>"svg"===e.tagName),e.Buttons=e.Everything.filter(e=>"BUTTON"===e.tagName||e.matches('[role="button"]')),e.Inputs=e.Everything.filter(e=>["INPUT","SELECT","TEXTAREA","METER","PROGRESS"].includes(e.tagName)),e.Labels=e.Everything.filter(e=>"LABEL"===e.tagName),e.iframes=e.Everything.filter(e=>["IFRAME","AUDIO","VIDEO"].includes(e.tagName)),e.Videos=e.iframes.filter(e=>e.matches(n.Global.VideoSources)),e.Audio=e.iframes.filter(e=>e.matches(n.Global.AudioSources)),e.Visualizations=e.iframes.filter(e=>e.matches(n.Global.VisualizationSources)),e.EmbeddedContent=e.iframes.filter(e=>!e.matches(n.Global.AllEmbeddedContent));const r=document.querySelector("html");e.Language=r.getAttribute("lang")},Found:e,initializeAnnotations:function(){t.Array=o("sa11y-annotation","document"),t.Array.forEach((e,t)=>{e.setAttribute("data-sa11y-position",t)})},Annotations:t}}();const P=e=>{if(0===e.shadowRoot.querySelectorAll(".sa11y-css-utilities").length){const t=document.createElement("style");t.setAttribute("class","sa11y-css-utilities"),t.textContent="[data-sa11y-overflow]{overflow:auto!important}[data-sa11y-clone-image-text]{display:none!important}[data-sa11y-readability-period]{clip:rect(1px,1px,1px,1px)!important;border:0!important;clip-path:inset(50%)!important;display:block!important;height:1px!important;overflow:hidden!important;padding:0!important;position:absolute!important;white-space:nowrap!important;width:1px!important}[data-sa11y-error-inline],[data-sa11y-error]{outline:5px solid var(--sa11y-error)!important;outline-offset:2px}[data-sa11y-warning-inline]:not([data-sa11y-error-inline]),[data-sa11y-warning]:not([data-sa11y-error]){outline:5px solid var(--sa11y-warning)!important;outline-offset:2px}[data-sa11y-pulse-border]{animation:pulse 2s 3;box-shadow:0;outline:5px solid var(--sa11y-focus-color)!important}[data-sa11y-pulse-border]:focus,[data-sa11y-pulse-border]:hover{animation:none}@keyframes pulse{0%{box-shadow:0 0 0 5px var(--sa11y-focus-color)}70%{box-shadow:0 0 0 12px var(--sa11y-pulse-color)}to{box-shadow:0 0 0 5px var(--sa11y-pulse-color)}}@media (prefers-reduced-motion:reduce){[data-sa11y-pulse-border]{animation:none!important}}@media (forced-colors:active){[data-sa11y-error-inline],[data-sa11y-error],[data-sa11y-good],[data-sa11y-pulse-border],[data-sa11y-warning-inline],[data-sa11y-warning]{forced-color-adjust:none}}",e.shadowRoot.appendChild(t)}};function R(e,t,n){if(!0===e){let e=window.location.href;const o=function(e,t){let n=null;return(...o)=>{window.clearTimeout(n),n=window.setTimeout(()=>{e(...o)},t)}}(async()=>{e!==window.location.href&&("Closed"!==v.getItem("sa11y-panel")&&v.getItem("sa11y-panel")?(n(!1),await t()):t(),e=window.location.href)},250);window.addEventListener("click",o),window.addEventListener("keydown",o)}}function D(e,o){const i=JSON.parse(localStorage.getItem("sa11y-dismissed")||"[]"),s=window.location.pathname,a=[...e.filter(e=>i.some(t=>((e,t)=>t.key.includes(e.dismiss)&&t.href===s&&("warning"===e.type||"good"===e.type))(e,t))),...e.filter(e=>i.some(t=>((e,t)=>"string"==typeof t.dismissAll&&e.dismissAll===t.dismissAll&&t.href===s)(e,t)))],r=a.length,l=e.filter(e=>!a.some(t=>t.dismiss===e.dismiss&&("warning"===e.type||"good"===e.type)));return r?(n.Panel.dismissButton.classList.add("active"),n.Panel.dismissTooltip.innerText=t.sprintf("PANEL_DISMISS_BUTTON",r),o.object.setContent(t.sprintf("PANEL_DISMISS_BUTTON",r))):n.Panel.dismissButton.classList.remove("active"),{dismissedIssues:i,updatedResults:l,dismissCount:r,dismissedResults:a}}let M,B;function $(e,i,s,a){if(n.Global.dismissAnnotations){B=n=>{(async(e,n,i,s)=>{let a=JSON.parse(v.getItem("sa11y-dismissed"));const r=e.target;if(document.querySelector("sa11y-panel-tooltips").hidden=!1,"BUTTON"===r.tagName&&r.hasAttribute("data-sa11y-dismiss")){const e=parseInt(r.getAttribute("data-sa11y-dismiss"),10),l=n.find(t=>t.id===e);if(null===a&&(setTimeout(()=>T(t._("DISMISS_REMINDER")),0),a=[]),l.dismiss){const e=r.hasAttribute("data-sa11y-dismiss-all")?l.dismissAll:"",t={key:l.dismiss,href:window.location.pathname,...e?{dismissAll:e}:{}},n=o(`[data-sa11y-annotation='${l.id}']`),c=n[0]?n[0].getAttribute("data-sa11y-position"):0;v.setItem("sa11y-latest-dismissed",c),v.setItem("sa11y-dismiss-item",JSON.stringify(t)),a.push(t),v.setItem("sa11y-dismissed",JSON.stringify(a)),v.removeItem("sa11y-dismiss-item");const d=r?.closest("[data-tippy-root]");d&&setTimeout(()=>{d.remove()},0),s(!1),await i()}}})(n,e,s,a)};document.querySelector("sa11y-tooltips").shadowRoot.addEventListener("click",B),n.Panel.panel.addEventListener("click",B)}M=()=>{(async(e,t,o)=>{document.querySelector("sa11y-panel-tooltips").hidden=!0;const i=e.filter(e=>e.href!==window.location.pathname);v.setItem("sa11y-dismissed",JSON.stringify(i)),n.Panel.dismissButton.classList.remove("active"),o(!1),await t()})(i,s,a)},n.Panel.dismissButton?.addEventListener("click",M)}function G(){const e=new Date,t=String(e.getDate()).padStart(2,"0"),n=String(e.getMonth()+1).padStart(2,"0"),o=e.getFullYear(),i=(new Date).toLocaleString(),s=`${n}-${t}-${o}`,a=document.querySelector("head title"),r=!a||0===a.textContent.trim().length;return{date:i,numericDate:s,titleCheck:r,metaTitle:r?"":a.textContent,pageURL:window.location.href}}async function U(e,n){const o=await async function(e,n){const o=e.filter(e=>"error"===e.type),i=e.filter(e=>"warning"===e.type),s={error:o.length,warning:i.length,dismiss:n.length};async function a(e,n){const o={error:t._("ERRORS"),warning:t._("WARNINGS"),dismissed:t._("DISMISSED")}[n];if(!(e.length>0))return"";let i=`

            ${o}

            `,a=`
              `,r="
            ";"dismissed"===n&&(a=`
            ${t.sprintf("PANEL_DISMISS_BUTTON",s.dismiss)}
              `,r="
            "),i+=a;const l=e.map(async e=>{let n="";if(e.element){const o=["IMG","IFRAME","AUDIO","VIDEO"],i=await w(e,!0);n=o.includes(e.element.tagName)?`
          • ${t._("PREVIEW")}: ${i}
          • ${t._("ELEMENT")}:
            ${p(e.htmlPath)}
          • `:`
          • ${t._("ELEMENT")}:
            ${p(e.htmlPath)}
          • `}const o=e.cssPath?`
          • ${t._("PATH")}:
            ${e.cssPath}
          • `:"";return`
          • ${e.content}
              ${n}${o}
          • `});return i+=(await Promise.all(l)).join(""),i+=r,i}const r=await a(o,"error"),l=await a(i,"warning"),c=await a(n,"dismissed"),d=G(),u=d.titleCheck?"":`
            ${t._("PAGE_TITLE")}
            ${d.metaTitle}
            `,h=0!==s.error?`
            ${t._("ERRORS")}
            ${s.error}
            `:"",g=0!==s.warning?`
            ${t._("WARNINGS")}
            ${s.warning}
            `:"",m=0!==s.dismiss?`
            ${t._("DISMISSED")}
            ${s.dismiss}
            `:"";return`\n \n \n \n \n \n ${t._("RESULTS")}: ${d.metaTitle}\n \n \n \n
            \n

            ${t._("RESULTS")}

            \n
            \n
            \n ${u}\n
            URL
            \n
            ${d.pageURL}
            \n
            ${t._("DATE")}
            \n
            ${d.date}
            \n
            \n
            \n ${h}\n ${g}\n ${m}\n
            \n
            \n
            \n
            \n ${r}\n ${l}\n ${c}\n
            \n
            \n

            ${t.sprintf("GENERATED",'Sa11y')}

            \n
            \n \n \n `}(e,n),i=G(),s=new Blob([o],{type:"text/html"}),a=document.createElement("a"),r=i.titleCheck?"":`_${i.metaTitle.trim().replace(/ /g,"")}`;a.href=window.URL.createObjectURL(s),a.download=`Sa11y_${i.numericDate+r}.html`,document.body.appendChild(a),a.click(),setTimeout(()=>{document.body.removeChild(a),window.URL.revokeObjectURL(a.href)},100)}function H(e){const t=G(),n=e.filter(e=>"warning"===e.type||"error"===e.type).map(e=>{const{type:n,content:o,htmlPath:i,cssPath:s}=e,a=o.replaceAll(/]*>.*?<\/span>/gi,"").replaceAll(''," | ").replaceAll(/"/g,'""');const r=function(e){return e.replace(/&(#?[a-zA-Z0-9]+);/g,(e,t)=>{switch(t){case"amp":return"&";case"lt":return"<";case"gt":return">";case"quot":case"#39":return"'";default:return"#"===t.charAt(0)?String.fromCharCode("x"===t.charAt(1)?parseInt(t.substr(2),16):parseInt(t.substr(1),10)):e}})}(String(a).replace(/<[^>]*>/g,"")),l={Title:`"${t.metaTitle}"`,URL:`"${t.pageURL}"`,Type:`"${String(n)}"`,Issue:`"${r}"`,Element:`"${i}"`};return s&&(l.Path=`"${s}"`),l}),o=Object.keys(n[0]),i=`${o.join(",")}\n${n.map(e=>o.map(t=>e[t]).join(",")).join("\n")}`,s=new Uint8Array([239,187,191]),a=new Blob([s,i],{type:"text/csv;charset=utf-8;"}),r=window.URL.createObjectURL(a),l=document.createElement("a");l.href=r,l.href=window.URL.createObjectURL(a);const c=t.titleCheck?"":`_${t.metaTitle.trim().replace(/ /g,"")}`;l.setAttribute("download",`Sa11y_${t.numericDate+c}.csv`),document.body.appendChild(l),l.click(),setTimeout(()=>{document.body.removeChild(l),window.URL.revokeObjectURL(l.href)},100)}let F,K;const W="4.2.1";var Y='.visually-hidden{clip:rect(1px,1px,1px,1px);border:0;clip-path:inset(50%);display:block;height:1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px}[hidden]{display:none!important}.header-text,.header-text-inline,h2{color:var(--sa11y-panel-primary);display:block;font-size:var(--sa11y-large-text);font-weight:600;margin-bottom:3px}.header-text-inline{display:inline-block!important}code{font-family:monospace!important;font-size:calc(var(--sa11y-normal-text) - 1px);font-weight:600}pre:has(code){display:block;overflow:auto;white-space:pre-wrap}.kbd,code,kbd,pre{background-color:var(--sa11y-panel-badge);border-radius:3.2px;color:var(--sa11y-panel-primary);padding:1.6px 4.8px}.bold{font-weight:600}.error .colour,.red-text{color:var(--sa11y-red-text);font-family:var(--sa11y-font-face)}.warning .colour,.yellow-text{color:var(--sa11y-yellow-text);font-family:var(--sa11y-font-face)}.badge,.normal-badge{background-color:var(--sa11y-panel-badge);border-radius:10px;color:var(--sa11y-panel-primary);display:inline;font-size:14px;font-weight:700!important;line-height:1;min-width:10px;outline:1px solid transparent;padding:1px 5px 1.75px;text-align:center;vertical-align:baseline;white-space:nowrap}.error .badge{background:var(--sa11y-error);color:var(--sa11y-error-text)}.error-badge{background:var(--sa11y-error)!important;color:var(--sa11y-error-text)!important}.warning .badge{background:var(--sa11y-yellow-text);color:var(--sa11y-panel-bg)}.warning-badge{background:var(--sa11y-yellow-text)!important;color:var(--sa11y-panel-bg)!important}.good-contrast{background:var(--sa11y-good)!important;color:var(--sa11y-good-text)!important}#contrast-preview{background-color:#e8e8e8;background-image:linear-gradient(45deg,#ccc 25%,transparent 0,transparent 75%,#ccc 0,#ccc),linear-gradient(45deg,#ccc 25%,transparent 0,transparent 75%,#ccc 0,#ccc);background-position:0 0,5px 5px;background-size:10px 10px;border:2px dashed var(--sa11y-panel-bg-splitter);border-radius:3.2px;line-height:1;margin-top:10px;max-height:100px;overflow:clip;overflow-wrap:break-word;padding:5px}#color-pickers{display:flex;justify-content:space-between;margin-bottom:10px;margin-top:10px}#color-pickers label{align-items:center;display:flex}#color-pickers input{margin-inline-start:7px}input[type=color i]{background:var(--sa11y-panel-bg-secondary);block-size:30px;border-color:var(--sa11y-button-outline);border-radius:50%;border-style:solid;border-width:1px;inline-size:30px;padding:2px}input[type=color i]::-webkit-color-swatch-wrapper{padding:1px}input[type=color i]::-webkit-color-swatch{border-color:var(--sa11y-button-outline);border-radius:50%}input[type=color i]::-moz-color-swatch{border-color:var(--sa11y-button-outline);border-radius:50%}input[type=color i].unknown{box-shadow:0 0 0 2px var(--sa11y-yellow-text)}input[type=color i].unknown:after{align-items:center;color:#fff;content:"?";display:flex;font-size:18px;height:24px;justify-content:center;margin:-24px 0;pointer-events:none;position:absolute;width:24px;z-index:2}.close-btn{background:var(--sa11y-panel-bg-secondary);border:2px solid var(--sa11y-button-outline);border-radius:50%;color:var(--sa11y-panel-primary);cursor:pointer;float:var(--sa11y-float-rtl);font-size:var(--sa11y-normal-text);font-weight:400;height:32px;margin:0;position:relative;transition:all .2s ease-in-out;width:32px}.close-btn:focus,.close-btn:hover{background-color:var(--sa11y-shortcut-hover)}.close-btn:after{background:var(--sa11y-setting-switch-bg-off);content:"";inset:-7px;-webkit-mask:var(--sa11y-close-btn-svg) center no-repeat;mask:var(--sa11y-close-btn-svg) center no-repeat;position:absolute}@media screen and (forced-colors:active){.close-btn:after{filter:invert(1)}}#container [tabindex="-1"]:focus,#container [tabindex="0"]:focus,#container a:focus,#container button:focus,#container input:focus,#container select:focus{box-shadow:0 0 0 5px var(--sa11y-focus-color);outline:0}#container #panel-controls button:focus,#container .switch:focus{box-shadow:inset 0 0 0 4px var(--sa11y-focus-color);outline:0}#container #panel-controls button:focus:not(:focus-visible),#container [tabindex="-1"]:focus:not(:focus-visible),#container [tabindex="0"]:focus:not(:focus-visible),#container button:focus:not(:focus-visible),#container input:focus:not(:focus-visible),#container select:focus:not(:focus-visible){box-shadow:none;outline:0}#container [tabindex="-1"]:focus-visible,#container [tabindex="0"]:focus-visible,#container a:focus-visible,#container button:not(#panel-controls button):not(.switch):focus-visible,#container input:focus-visible,#container select:focus-visible{box-shadow:0 0 0 5px var(--sa11y-focus-color);outline:0}#container #panel-controls button:focus-visible,#container .switch:focus-visible{box-shadow:inset 0 0 0 4px var(--sa11y-focus-color);outline:0}@media screen and (forced-colors:active){#panel-controls button:focus{border:3px solid transparent}#container [tabindex="-1"]:focus,#container [tabindex="0"]:focus,#container a:focus,#container button:focus,#container select:focus,.close-btn:focus{outline:3px solid transparent!important}}';class z extends HTMLElement{constructor(e){super(),this.error=e}connectedCallback(){const e=this.attachShadow({mode:"open"}),o=document.createElement("style");o.innerHTML=":host{background:var(--sa11y-panel-bg);border-top:5px solid var(--sa11y-panel-bg-splitter);bottom:0;display:block;height:-moz-fit-content;height:fit-content;left:0;position:fixed;right:0;width:100%;z-index:999999}*{-webkit-font-smoothing:auto!important;color:var(--sa11y-panel-primary);font-family:var(--sa11y-font-face)!important;font-size:var(--sa11y-normal-text);line-height:22px!important}#dialog{margin:20px auto;max-width:900px;padding:20px}h2{font-size:var(--sa11y-large-text);margin-top:0}a{color:var(--sa11y-hyperlink);cursor:pointer;text-decoration:underline}a:focus,a:hover{text-decoration:none}p{margin-top:0}.error{background:var(--sa11y-error);border:2px dashed #f08080;color:var(--sa11y-error-text);margin-bottom:0;padding:5px}"+Y,e.appendChild(o);const i=document.createElement("div");i.setAttribute("id","dialog"),i.setAttribute("tabindex","-1");const s=window.location,a=`## Error Description\n\`\`\`javascript\n${this.error.stack}\n\`\`\`\n\n## Details\n- **URL:** ${s}\n- **Version:** ${W}\n\n## Comments\n`,r=`https://github.com/ryersondmp/sa11y/issues/new?title=Bug%20report&body=${encodeURIComponent(a)}`;i.innerHTML=`\n \n

            ${t._("ERROR")}

            \n

            ${t.sprintf("CONSOLE_ERROR","https://forms.gle/sjzK9XykETaoqZv99",r)}

            \n

            ${p(this.error.stack)}

            Version: ${W}
            URL: ${s}

            \n `,e.appendChild(i),setTimeout(()=>{n.Panel.toggle.style.display="none";const e=document.querySelector("sa11y-console-error");e.shadowRoot.getElementById("dialog").focus();e.shadowRoot.querySelector(".close-btn").addEventListener("click",()=>{e.remove()})},0)}}class Q extends HTMLElement{connectedCallback(){this.attachShadow({mode:"open"});const e=document.createElement("style");e.textContent='a,button,code,div,h1,h2,h3,kbd,label,li,ol,p,pre,span,strong,svg,ul{all:unset;box-sizing:border-box!important}:after,:before{all:unset}div{display:block}*{-webkit-font-smoothing:auto!important;font-family:var(--sa11y-font-face)!important}label,li,ol,p,ul{font-size:var(--sa11y-normal-text);font-weight:400;letter-spacing:normal;line-height:22px!important;text-align:start;word-break:break-word}.sa11y-overflow{overflow:auto}iframe,img,video{border:0;display:block;height:auto;max-width:100%}audio{max-width:100%}#toggle{align-items:center;background:linear-gradient(0deg,#e040fb,#00bcd4);background-color:var(--sa11y-setting-switch-bg-off);background-size:150% 150%;border-radius:50%;bottom:var(--sa11y-toggle-y-offset);color:#fff;cursor:pointer;display:flex;height:55px;inset-inline-end:var(--sa11y-toggle-x-offset);justify-content:center;margin:0;overflow:visible;position:fixed;transition:all .2s ease-in-out;width:55px;z-index:2147483644}#toggle.left,#toggle.top-left{inset-inline-start:var(--sa11y-toggle-x-offset)}#toggle.top-left,#toggle.top-right{bottom:unset;top:var(--sa11y-toggle-y-offset)}@media screen and (forced-colors:active){#toggle{background:ButtonFace!important;border:2px solid transparent}}#toggle svg{height:35px;width:35px}#toggle svg path{fill:var(--sa11y-panel-bg)}#toggle:focus,#toggle:hover{animation:sa11y-toggle-gradient 3s ease}#toggle:disabled:focus,#toggle:disabled:hover{animation:none}#toggle.on{background:linear-gradient(180deg,#e040fb,#00bcd4)}#toggle:disabled{background:unset;background-color:var(--sa11y-setting-switch-bg-off);cursor:not-allowed}#notification-badge{text-wrap:nowrap;align-items:center;background-color:#eb0000;border:1px solid transparent;border-radius:12px;color:#fff;display:none;font-size:13.5px;font-weight:400;justify-content:center;line-height:1;min-width:20px;padding:2.5px;position:absolute;right:-3px;top:-5.5px}#notification-badge.notification-badge-warning{background-color:var(--sa11y-warning-hover);border:1px solid var(--sa11y-warning);color:var(--sa11y-warning-text)}#panel{background:var(--sa11y-panel-bg);border-radius:4px;bottom:calc(var(--sa11y-toggle-y-offset) + var(--sa11y-panel-y-gap));box-shadow:0 0 20px 4px rgba(154,161,177,.15),0 4px 80px -8px rgba(36,40,47,.25),0 4px 4px -2px rgba(91,94,105,.15);inset-inline-end:calc(var(--sa11y-toggle-x-offset) + var(--sa11y-panel-x-gap));opacity:0;overflow:visible;position:fixed;transform:scale(0);transform-origin:100% 100%;transition:transform .2s,opacity background .2s .2s;visibility:hidden;z-index:2147483643}#panel.left,#panel.top-left{inset-inline-end:unset;inset-inline-start:calc(var(--sa11y-toggle-x-offset) + var(--sa11y-panel-x-gap))}#panel.top-left,#panel.top-right{bottom:unset;top:calc(var(--sa11y-toggle-y-offset) + var(--sa11y-panel-y-gap) + 10px)}#panel.active{height:auto;opacity:1;transform:scale(1);transform-origin:bottom right;transition:transform .2s,opacity .2s;visibility:visible}@media screen and (forced-colors:active){#panel{border:2px solid transparent}}#panel.active.left,[dir=rtl] #panel.active{transform-origin:bottom left}#panel.active.top-left{transform-origin:top left}#panel.active.top-right{transform-origin:top right}#panel-alert{display:none;opacity:0}#panel-alert.active{display:block;opacity:1}#panel-alert-content{align-items:center;border-bottom:1px solid var(--sa11y-panel-bg-splitter);color:var(--sa11y-panel-primary);line-height:22px;max-height:400px;overflow-y:auto;padding:15px 20px 15px 15px;position:relative}.top-left #panel-alert-content,.top-right #panel-alert-content{border:0}#panel-alert-preview .close-tooltip{display:none}#panel-alert-preview,#panel-alert-text{font-family:var(--sa11y-font-face);font-size:var(--sa11y-normal-text);font-weight:400;line-height:22px}.panel-alert-preview{background:var(--sa11y-panel-bg-secondary);border:1px dashed var(--sa11y-panel-bg-splitter);border-radius:5px;margin-top:15px;padding:10px}.panel-alert-preview ul{margin:0;margin-block-end:0;margin-block-start:0;padding:0;position:relative}.panel-alert-preview li{display:list-item;margin:5px 10px 0 20px;padding-bottom:5px}.element-preview{background-color:var(--sa11y-element-preview);border-radius:3.2px;margin-bottom:10px;overflow-wrap:break-word;padding:5px}button[data-sa11y-dismiss]{background:var(--sa11y-panel-bg-secondary);border:2px solid var(--sa11y-button-outline);border-radius:5px;color:var(--sa11y-panel-primary);cursor:pointer;display:block;margin:10px 5px 5px 0;margin-inline-end:15px;padding:4px 8px}button[data-sa11y-dismiss]:focus,button[data-sa11y-dismiss]:hover{background:var(--sa11y-shortcut-hover)}h2{font-size:var(--sa11y-large-text);font-weight:700}h2,h3{display:block;margin-bottom:3px}h3{font-size:calc(var(--sa11y-large-text) - 1px)}h3,strong{font-weight:600}a:not(#outline-list a):not(.edit){border-bottom:0;color:var(--sa11y-hyperlink);cursor:pointer;font-weight:500;text-decoration:underline}a:focus,a:hover{text-decoration:none!important}hr{background:var(--sa11y-panel-bg-splitter);border:none;height:1px;margin:10px 0;opacity:1;padding:0}#dismiss-button,#skip-button{background:var(--sa11y-panel-bg-secondary);border:1px solid var(--sa11y-button-outline);border-radius:50px;cursor:pointer;display:none;height:36px;margin-inline-end:8px;margin-inline-start:2px;overflow:visible;position:relative;text-align:center;transition:all .1s ease-in-out;width:36px}#dismiss-button.active,#skip-button.active{display:block}#dismiss-button:disabled,#skip-button:disabled{background:none;border:0;box-shadow:none;cursor:default}#dismiss-button:before,#skip-button:before{content:"";inset:-5px;position:absolute}#dismiss-button:focus:not(:disabled),#dismiss-button:hover:not(:disabled),#skip-button:focus:not(:disabled),#skip-button:hover:not(:disabled){background-color:var(--sa11y-shortcut-hover)}#panel.left #dismiss-button,#panel.left #skip-button,#panel.top-left #dismiss-button,#panel.top-left #skip-button{margin-inline-end:2px;margin-inline-start:8px}.dismiss-icon{background:var(--sa11y-setting-switch-bg-off);display:inline-block;height:24px;margin-bottom:-4px;-webkit-mask:var(--sa11y-dismiss-icon) center no-repeat;mask:var(--sa11y-dismiss-icon) center no-repeat;width:24px}.dismiss-group{display:flex}@media screen and (forced-colors:active){.dismiss-icon{filter:invert(1)}}#panel-content{align-items:center;color:var(--sa11y-panel-primary);display:flex;padding:6px}#panel-content.errors .panel-icon,#panel-content.good .panel-icon,#panel-content.warnings .panel-icon{height:26px;margin:0 auto;width:26px}#panel-content.errors .panel-icon{background:var(--sa11y-panel-error);margin-top:-2px;-webkit-mask:var(--sa11y-error-svg) center no-repeat;mask:var(--sa11y-error-svg) center no-repeat}#panel-content.good .panel-icon{background:var(--sa11y-good);-webkit-mask:var(--sa11y-good-svg) center no-repeat;mask:var(--sa11y-good-svg) center no-repeat}#panel-content.warnings .panel-icon{background:var(--sa11y-yellow-text);-webkit-mask:var(--sa11y-warning-svg) center no-repeat;mask:var(--sa11y-warning-svg) center no-repeat;transform:scaleX(var(--sa11y-icon-direction))}@media screen and (forced-colors:active){#panel-content.errors .panel-icon,#panel-content.good .panel-icon,#panel-content.warnings .panel-icon{filter:invert(1)}}#panel.left #panel-content,#panel.top-left #panel-content{flex-direction:row-reverse}#status{font-size:var(--sa11y-large-text)}#status,.panel-count{color:var(--sa11y-panel-primary)}.panel-count{background-color:var(--sa11y-panel-badge);border-radius:4px;font-size:15px;font-weight:400;margin-left:3px;margin-right:3px;padding:2px 4px}#images-panel,#outline-panel,#page-issues,#settings-panel{color:var(--sa11y-panel-primary);display:none;opacity:0}#images-panel.active,#outline-panel.active,#page-issues.active,#settings-panel.active{display:block;opacity:1}.panel-header{display:flex;justify-content:space-between;padding:10px 15px 0;text-align:start}#about-content{padding-top:5px}#about-content p{display:block;margin-block-end:1em}#images-content,#outline-content,#page-issues-content,#settings-content{border-bottom:1px solid var(--sa11y-panel-bg-splitter);padding:0 15px 10px}.top-left #images-content,.top-left #outline-content,.top-left #page-issues-content,.top-left #settings-content,.top-right #images-content,.top-right #outline-content,.top-right #page-issues-content,.top-right #settings-content{border:0}#page-issues-content{max-height:160px;overflow-y:auto}#settings-content{max-height:400px;overflow-y:auto}#images-content,#outline-content{max-height:250px;overflow-y:auto}#outline-panel .outline-list-item.sa11y-red-text,#settings-panel .sa11y-red-text{color:var(--sa11y-red-text)}#outline-list{display:block;margin:0;padding:0}#outline-list a{cursor:pointer;display:block;text-decoration:none}#outline-list li{display:block;list-style-type:none;margin-bottom:3px;margin-top:0;padding:0}#outline-list li:first-child{margin-top:5px}#outline-list li a:focus,#outline-list li a:hover{background:var(--sa11y-panel-outline-hover);border-radius:5px;box-shadow:0 0 0 2px var(--sa11y-panel-outline-hover);display:block}#outline-list .outline-2{margin-inline-start:15px}#outline-list .outline-3{margin-inline-start:30px}#outline-list .outline-4{margin-inline-start:45px}#outline-list .outline-5{margin-inline-start:60px}#outline-list .outline-6{margin-inline-start:75px}#images-list{display:block;margin:0;padding:0}#images-list li{border-bottom:1px solid var(--sa11y-panel-bg-splitter);display:block;list-style-type:none;margin:15px 0;overflow:hidden;width:100%}#images-list li:first-child{margin-top:5px}#images-list li:last-child{border:none;margin-bottom:0}#images-list li .alt{padding:2px 5px 10px}#images-list li .edit-block{display:flex;justify-content:flex-end;margin-bottom:15px}#images-list li .edit{background:var(--sa11y-panel-bg-secondary);border:2px solid var(--sa11y-button-outline);border-radius:5px;color:var(--sa11y-panel-primary);cursor:pointer;margin-inline-end:5px;padding:4px 7px;position:relative;text-decoration:none}#images-list li .edit:focus,#images-list li .edit:hover{background-color:var(--sa11y-shortcut-hover)}#images-list li .edit:before{content:"";inset:-10px;position:absolute}#images-list li img{border-radius:5px;float:inline-start;margin-block-end:15px;margin-inline-end:10px;max-width:110px}#images-list li.warning .alt{color:var(--sa11y-yellow-text)}#images-list li.warning img{background-color:var(--sa11y-yellow-text);border:5px solid var(--sa11y-yellow-text)}#images-list li.error .alt{color:var(--sa11y-error)}#images-list li.error img{background-color:var(--sa11y-error);border:5px solid var(--sa11y-error)}#images-list li.good img{background-color:var(--sa11y-panel-badge);border:5px solid var(--sa11y-panel-badge)}@media screen and (forced-colors:active){#images-list li img{background-color:ButtonBorder!important}}.move-panel-icon{height:18px;-webkit-mask:var(--sa11y-move-panel-icon);mask:var(--sa11y-move-panel-icon);-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;width:18px}.info-icon,.move-panel-icon{background:var(--sa11y-setting-switch-bg-off);display:inline-block;vertical-align:middle}.info-icon{height:20px;margin-top:-2px;-webkit-mask:var(--sa11y-info-icon);mask:var(--sa11y-info-icon);-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;width:20px}.sun-icon{-webkit-mask:var(--sa11y-sun-icon);mask:var(--sa11y-sun-icon);-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}.moon-icon,.sun-icon{background:var(--sa11y-setting-switch-bg-off);display:inline-block;height:18px;vertical-align:middle;width:18px}.moon-icon{-webkit-mask:var(--sa11y-moon-icon);mask:var(--sa11y-moon-icon);-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}.error-icon{background:var(--sa11y-error-text);margin-bottom:-4px;-webkit-mask:var(--sa11y-error-svg);mask:var(--sa11y-error-svg);-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}.error-icon,.hidden-icon{display:inline-block;height:16px;width:16px}.hidden-icon{margin-bottom:-3px;-webkit-mask:var(--sa11y-hidden-icon-svg);mask:var(--sa11y-hidden-icon-svg);-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}.hidden-icon,.link-icon{background:var(--sa11y-panel-primary)}.link-icon{display:inline-block;height:16px;margin-bottom:-3.5px;-webkit-mask:var(--sa11y-link-icon-svg);mask:var(--sa11y-link-icon-svg);-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;width:16px}.error-badge .hidden-icon,.error-badge .link-icon{background:var(--sa11y-error-text)}.warning-badge .hidden-icon,.warning-badge .link-icon{background:var(--sa11y-panel-bg)}.error .link-icon{background:var(--sa11y-error-text)}.warning .link-icon{background:var(--sa11y-panel-bg)}@media screen and (forced-colors:active){.error-icon,.hidden-icon,.info-icon,.link-icon,.moon-icon,.move-panel-icon,.sun-icon{filter:invert(1)}}#panel-controls{border-bottom:1px solid var(--sa11y-panel-bg-splitter);border-radius:0 0 4px 4px;display:flex;overflow:hidden}#panel-controls button{background:var(--sa11y-panel-bg-secondary);background-color:var(--sa11y-panel-bg-secondary);border-inline-end:1px solid var(--sa11y-panel-bg-splitter);border-top:1px solid var(--sa11y-panel-bg-splitter);color:var(--sa11y-panel-secondary);cursor:pointer;display:block;font-size:var(--sa11y-normal-text);font-weight:400;height:30px;line-height:0;margin:0;opacity:1;outline:0;padding:0;position:relative;text-align:center;transition:background .2s;width:100%}#panel-controls button.active,#panel-controls button:hover{background-color:var(--sa11y-shortcut-hover)}#panel-controls button.active{font-weight:600}#export-results-mode,label{color:var(--sa11y-panel-primary);display:inline-block;font-weight:400;margin:0;width:100%}label:not(#colour-filter-mode,#export-results-mode){cursor:pointer}#panel.right #panel-controls:has(#images-toggle):after{content:"";width:80px}#panel.left #panel-controls:has(#images-toggle):before{content:"";width:50px}#settings-panel .appearance-group,#settings-panel .export-results-group{display:flex;margin:5px 0}#settings-panel .appearance-group button,#settings-panel .export-results-group button{align-items:center;border:2px solid var(--sa11y-setting-switch-bg-off);border-radius:5px;cursor:pointer;display:flex;justify-content:center;margin:2px 0;margin-inline-end:4px;margin-inline-start:8px;min-height:34px;min-width:44px;position:relative;text-align:center;white-space:nowrap}#settings-panel .appearance-group button:focus,#settings-panel .appearance-group button:focus-within,#settings-panel .appearance-group button:hover,#settings-panel .export-results-group button:focus,#settings-panel .export-results-group button:focus-within,#settings-panel .export-results-group button:hover{background:var(--sa11y-shortcut-hover)}#settings-panel .appearance-group button:before,#settings-panel .export-results-group button:before{content:"";inset:-7px;position:absolute}#settings-panel .appearance-group button .text,#settings-panel .export-results-group button .text{color:var(--sa11y-setting-switch-bg-off);font-weight:600;padding:0 6px}#settings-panel .switch{background:none;border:0;border-radius:5px;color:var(--sa11y-setting-switch-bg-off);cursor:pointer;font-size:var(--sa11y-normal-text);font-weight:600;height:44px;margin:0;padding:7px 10px;position:relative;text-align:end;width:105px}#settings-panel .switch[aria-pressed=false]:after,#settings-panel .switch[aria-pressed=true]:after{content:"";display:inline-block;height:27px;margin:0 4px 4px;vertical-align:middle;width:27px}#settings-panel .switch[aria-pressed=true]:after{background:var(--sa11y-setting-switch-bg-on);-webkit-mask:var(--sa11y-setting-switch-on-svg) center no-repeat;mask:var(--sa11y-setting-switch-on-svg) center no-repeat}#settings-panel .switch[aria-pressed=false]:after{background:var(--sa11y-setting-switch-bg-off);-webkit-mask:var(--sa11y-setting-switch-off-svg) center no-repeat;mask:var(--sa11y-setting-switch-off-svg) center no-repeat}@media screen and (forced-colors:active){#settings-panel .switch[aria-pressed=false]:after,#settings-panel .switch[aria-pressed=true]:after{filter:invert(1)}}#settings-panel #settings-options li{align-items:center;border-bottom:1px solid var(--sa11y-panel-bg-splitter);display:flex;justify-content:space-between;list-style-type:none;padding:1px 0}#settings-panel #settings-options li:last-child{border:none}#page-issues{align-items:center;color:var(--sa11y-panel-primary)}#page-issues-list{display:block;margin-top:4px}#page-issues-list li{display:block;margin:0 0 10px}.top-left.has-page-issues #page-issues,.top-right.has-page-issues #page-issues{border-top:1px solid var(--sa11y-panel-bg-splitter);margin-top:-1px}#panel-colour-filters{align-items:center;color:var(--sa11y-panel-primary);display:none;font-family:var(--sa11y-font-face);font-size:var(--sa11y-normal-text);font-weight:400;line-height:22px}#panel-colour-filters.active{display:flex}#panel-colour-filters p{padding:6px 20px 6px 6px;width:100%}#panel-colour-filters[data-colour=protanopia]{border-bottom:6px solid transparent;-o-border-image:linear-gradient(94deg,#786719 11%,#e0c600 36%,#e0c600 47%,#0059e3 75%,#0042aa 91%);border-image:linear-gradient(94deg,#786719 11%,#e0c600 36%,#e0c600 47%,#0059e3 75%,#0042aa 91%);border-image-slice:1}#panel-colour-filters[data-colour=deuteranopia]{border-bottom:6px solid transparent;-o-border-image:linear-gradient(270deg,#567fdb,#a4a28d 48%,#c3ad14 69%,#a79505);border-image:linear-gradient(270deg,#567fdb,#a4a28d 48%,#c3ad14 69%,#a79505);border-image-slice:1}#panel-colour-filters[data-colour=tritanopia]{border-bottom:6px solid transparent;-o-border-image:linear-gradient(270deg,#b1506f,#0696c1 35%,#f3a9ba 70%,#d91c5d 87%,#fe015c);border-image:linear-gradient(270deg,#b1506f,#0696c1 35%,#f3a9ba 70%,#d91c5d 87%,#fe015c);border-image-slice:1}#panel-colour-filters[data-colour=monochromacy]{border-bottom:6px solid transparent;-o-border-image:linear-gradient(270deg,#000,#a7a7a7 50%,#000);border-image:linear-gradient(270deg,#000,#a7a7a7 50%,#000);border-image-slice:1}#panel-colour-filters[data-colour=protanopia] .panel-icon{background:var(--sa11y-panel-error)}#panel-colour-filters[data-colour=deuteranopia] .panel-icon{background:var(--sa11y-good-hover)}#panel-colour-filters[data-colour=tritanopia] .panel-icon{background:var(--sa11y-blue)}#panel-colour-filters[data-colour=monochromacy] .panel-icon{background:linear-gradient(90deg,#38a459 20%,red 50%,#0077c8 80%)}#panel-colour-filters .panel-icon{height:30px;margin-inline-end:5px;margin-inline-start:10px;-webkit-mask:var(--sa11y-low-vision-icon) center no-repeat;mask:var(--sa11y-low-vision-icon) center no-repeat;width:30px}@media screen and (forced-colors:active){#panel-colour-filters .panel-icon{forced-color-adjust:none}}.select-dropdown{align-items:center;display:flex;position:relative}.select-dropdown:after{border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid var(--sa11y-setting-switch-bg-off);content:" ";inset-inline-end:14px;position:absolute}#colour-filter-select{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:var(--sa11y-panel-bg);border:2px solid var(--sa11y-setting-switch-bg-off);border-radius:5px;color:var(--sa11y-setting-switch-bg-off);cursor:pointer;font-size:var(--sa11y-normal-text);font-weight:600;height:30px;margin-inline-end:4px;padding-inline-end:25px;padding-inline-start:5px;position:relative;text-align:end;vertical-align:middle}#colour-filter-select:focus,#colour-filter-select:hover{background:var(--sa11y-shortcut-hover)}#colour-filter-select.active{box-shadow:0 0 0 2px var(--sa11y-setting-switch-bg-on)}#colour-filter-item label,#colour-filter-item select{margin-bottom:9px;margin-top:10px}#readability-panel{display:none;opacity:0}#readability-panel.active{display:block;opacity:1}.top-left #readability-content,.top-right #readability-content{border-top:1px solid var(--sa11y-panel-bg-splitter)}.left #readability-content,.right #readability-content{border-bottom:1px solid var(--sa11y-panel-bg-splitter)}#readability-content{color:var(--sa11y-panel-primary);padding:10px 15px;width:100%}#readability-details{list-style-type:none;margin:0;padding:0;white-space:normal}#readability-details li{display:inline-block;list-style-type:none;margin:0;padding-inline-end:10px}.readability-score{background-color:var(--sa11y-panel-badge);border-radius:4px;color:var(--sa11y-panel-primary);margin-inline-start:5px;padding:2px 5px}#readability-info{margin-inline-start:10px}#skip-to-page-issues{display:none}#panel.has-page-issues #skip-to-page-issues{clip:rect(0,0,0,0);background:var(--sa11y-panel-bg);border:0;border-radius:5px;display:block;font-weight:600;height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px}#panel.has-page-issues #skip-to-page-issues:focus{clip:auto;height:auto;margin:0;overflow:visible;padding:7px 10px;white-space:normal;width:auto;z-index:1}.hide-settings-border{border-bottom:0!important;padding:0 15px!important}.hide-settings-border li:not(#colour-filter-item){display:none!important}.hide-settings-border #about-content{display:none}.hide-settings-border.scrollable:before{all:unset}#contrast-tools{display:none}::-webkit-scrollbar{height:6px;width:7px}::-webkit-scrollbar-thumb{background-color:var(--sa11y-button-outline);border-radius:6px}*{scrollbar-color:var(--sa11y-button-outline);scrollbar-width:thin}.scrollable:before{animation:fade 1s ease-in-out;background:linear-gradient(180deg,transparent 70%,var(--sa11y-panel-scrollable) 100%);background-position:bottom;bottom:auto;content:"";height:250px;left:0;position:absolute;right:0;top:auto;transition:opacity 1s ease-in-out;width:100%;z-index:-1}#settings-content.scrollable:before{height:400px}.top-left .scrollable:before,.top-right .scrollable:before{border-radius:5px}#page-issues-content.scrollable:before{height:160px}#panel-alert.scrollable:before{height:200px}@keyframes sa11y-toggle-gradient{0%{background-position:50% 0}50%{background-position:50% 100%}to{background-position:50% 0}}@keyframes fade{0%{opacity:0}to{opacity:1}}@media (prefers-reduced-motion:reduce){*{animation:none!important;transform:none!important;transition:none!important}}#panel{width:400px}#container:lang(en) #panel{width:315px}#container:lang(da) #panel,#container:lang(de) #panel,#container:lang(nb) #panel,#container:lang(pl) #panel,#container:lang(sv) #panel,#container:lang(zh) #panel{width:365px}#container:lang(bg) .switch:not(#export-results-item *),#container:lang(es) .switch:not(#export-results-item *){width:225px!important}#container:not(:lang(en)):not(:lang(de)) .switch{width:205px}'+Y,this.shadowRoot.appendChild(e);const o="On"===v.getItem("sa11y-developer"),i="On"===v.getItem("sa11y-readability"),s=v.getItem("sa11y-theme"),a=v.getItem("sa11y-position"),r=n.Global.checkAllHideToggles,l=n.Global.developerPlugin?`\n
          • \n \n \n \n
          • `:"",c=n.Readability.Plugin?`\n
          • \n \n \n \n
          • `:"",d=n.Global.colourFilterPlugin?`\n
          • \n \n
            \n \n
            \n
          • `:"",p=n.Global.colourFilterPlugin?`\n
            \n \n

            ${t._("COLOUR_FILTER_MESSAGE")}

            \n
            `:"",u=n.Global.exportResultsPlugin?`\n
          • \n ${t._("EXPORT_RESULTS")}\n
            \n \n \n
            \n
          • `:"",h=n.Global.aboutContent?`\n
            ${n.Global.aboutContent}
            `:"",g=`\n `,m=`\n
            \n
            \n

            ${t._("PAGE_ISSUES")}

            \n
            \n
            \n
              \n
              \n
              `,f=`\n
              \n
              \n

              ${t._("OUTLINE")}

              \n
              \n
              \n
                \n
                \n
                \n
                \n

                ${t._("READABILITY")}

                \n

                \n
                  \n
                  \n
                  \n
                  `,b=n.Global.showImageOutline?`\n
                  \n
                  \n

                  ${t._("IMAGES")}

                  \n
                  \n
                  \n
                    \n
                    \n
                    `:"",y="left"===a||"top-left"===a?"true":"false",A=n.Global.showMovePanelToggle?``:"",E=`\n
                    \n
                    \n

                    ${t._("SETTINGS")}

                    \n
                    \n
                    \n
                      \n ${l}\n ${c}\n
                    • \n ${t._("APPEARANCE")}\n
                      \n \n ${A}\n
                      \n
                    • \n ${u}\n ${d}\n
                    \n ${h}\n
                    \n
                    `,_=`\n
                    \n
                    \n
                    \n \n

                    ${t._("ALERT_TEXT")}

                    \n
                    \n

                    \n
                    \n
                    \n
                    `,L=`\n
                    \n \n \n \n
                    \n

                    ${t._("PANEL_HEADING")}

                    \n

                    \n
                    \n
                    `,I=``,T=`\n
                    \n \n ${n.Global.showImageOutline?I:""}\n \n
                    `,x=document.createElement("div");x.setAttribute("id","container"),x.setAttribute("role","region"),x.setAttribute("data-sa11y-version",W),x.setAttribute("lang",t._("LANG_CODE")),x.setAttribute("aria-label",t._("CONTAINER_LABEL")),x.setAttribute("dir",n.Global.langDirection),x.innerHTML="top-left"===a||"top-right"===a?`\n ${g}\n
                    \n ${L}\n ${p}\n ${T}\n ${f}\n ${b}\n ${E}\n ${_}\n ${m}\n
                    `:`\n ${g}\n
                    \n ${m}\n ${f}\n ${b}\n ${E}\n ${_}\n ${p}\n ${L}\n ${T}\n
                    `,this.shadowRoot.appendChild(x),n.initializePanelSelectors()}}const V=()=>{n.Panel.outlineToggle.classList.add("active"),n.Panel.outline.classList.add("active"),n.Panel.outlineToggle.setAttribute("aria-expanded","true"),v.setItem("sa11y-outline","Opened"),N(n.Panel.outlineList,n.Panel.outlineContent);o("sa11y-heading-label","root").forEach(e=>e.hidden=!1);const e=new CustomEvent("sa11y-build-heading-outline");document.dispatchEvent(e)},j=()=>{n.Panel.outline.classList.remove("active"),n.Panel.outlineToggle.classList.remove("active"),n.Panel.outlineToggle.setAttribute("aria-expanded","false"),v.setItem("sa11y-outline","Closed");o("sa11y-heading-label","root").forEach(e=>e.hidden=!0)},q=()=>{n.Panel.imagesToggle.classList.add("active"),n.Panel.images.classList.add("active"),n.Panel.imagesToggle.setAttribute("aria-expanded","true"),v.setItem("sa11y-images","Opened"),N(n.Panel.imagesList,n.Panel.imagesContent);const e=new CustomEvent("sa11y-build-image-outline");document.dispatchEvent(e)},X=()=>{n.Global.showImageOutline&&(n.Panel.imagesToggle.classList.remove("active"),n.Panel.images.classList.remove("active"),n.Panel.imagesToggle.setAttribute("aria-expanded","false"),v.setItem("sa11y-images","Closed"))},Z=()=>{n.Panel.settingsToggle.classList.add("active"),n.Panel.settings.classList.add("active"),n.Panel.settingsToggle.setAttribute("aria-expanded","true"),v.setItem("sa11y-settings","Opened"),N(n.Panel.settingsContent,n.Panel.settingsContent,t._("SETTINGS"))},J=()=>{n.Panel.settings.classList.remove("active"),n.Panel.settingsToggle.classList.remove("active"),n.Panel.settingsToggle.setAttribute("aria-expanded","false"),v.setItem("sa11y-settings","Closed")};function ee(e,i,s){const a=()=>{const r=[];let l;if(e.map(e=>i.find(t=>e.key===t.dismiss&&e.href===window.location.pathname)).filter(Boolean).forEach(e=>Object.assign(e,{dismissedHeading:!0})),s.showTitleInPageOutline){const e=document.querySelector("head title");if(e&&0!==e.textContent.trim().length){const n=f(e);l=`
                  • ${t._("TITLE")} ${u(n)}
                  • `}else l=`
                  • ${t._("TITLE")}
                    ${t._("MISSING")}
                  • `;r.push(l)}return i.forEach(e=>{const n=e.element,o=e.headingLevel,i=e.text,a=e.index,l=e.type,c=e.hidden,d=e.visibleParent,p=e.dismissedHeading,{isWithinRoot:u}=e;if(!O.Found.OutlineIgnore.includes(n)){const e=!0===c?'Hidden':"",n=!0===c?'class="hidden-h"':"",d=!0===s.showHinPageOutline||1===s.showHinPageOutline?"H":"";let h;"error"===l&&!0===u?(h=`\n
                  • \n \n \n \n ${t._("ERROR")} ${d+o}\n ${i}\n \n
                  • `,r.push(h)):"warning"!==l||p||!0!==u?(h=`\n
                  • \n \n ${e} ${d+o}\n ${i}\n \n
                  • `,r.push(h)):(h=`\n
                  • \n \n \n \n ${t._("WARNING")} ${d+o}\n ${i}\n \n
                  • `,r.push(h))}const h=document.createElement("sa11y-heading-label"),g=document.createElement("sa11y-heading-anchor");if(h.hidden=!0,null!==d){n.insertAdjacentElement("beforeend",h);const e=d.previousElementSibling;g.setAttribute("id",`sa11y-h${a}`),e?(e.insertAdjacentElement("beforebegin",g),e.setAttribute("data-sa11y-parent",`h${a}`)):(d.parentNode.insertAdjacentElement("beforebegin",g),d.parentNode.setAttribute("data-sa11y-parent",`h${a}`))}else n.insertAdjacentElement("beforeend",h),h.insertAdjacentElement("beforebegin",g),g.setAttribute("id",`sa11y-h${a}`);const m=document.createElement("span");m.classList.add("heading-label"),m.innerHTML=`H${o}`,h.shadowRoot.appendChild(m),"Opened"===v.getItem("sa11y-outline")&&(h.hidden=!1)}),n.Panel.outlineList.innerHTML=0===i.length?`${l||""}
                  • ${t._("PANEL_NO_HEADINGS")}
                  • `:r.join(" "),setTimeout(()=>{const e=document.querySelector("sa11y-control-panel").shadowRoot,i=Array.from(e.querySelectorAll("#outline-list a"));i.forEach((i,s)=>{const a=e.getElementById(`sa11y-link-${s}`),r=o(`#sa11y-h${s}, [data-sa11y-parent="h${s}"]`,"document",n.Exclusions.Container),l=e=>{("keyup"===e.type&&"Enter"===e.code||"click"===e.type)&&(r.forEach(e=>{(e=>{_(e.parentElement),e.scrollIntoView({behavior:`${n.Global.scrollBehaviour}`,block:"center"})})(e)}),a.classList.contains("hidden-h")?T(`${t._("HEADING_NOT_VISIBLE")}`):n.Panel.alert.classList.contains("active")&&I()),e.preventDefault()};a?.addEventListener("click",l,!1),a?.addEventListener("keyup",l,!1)});let s=0;const a=e=>{if(!["ArrowUp","ArrowDown","Space"].includes(e.code))return;if("Space"===e.code)return void i[s].click();let t;i[s].setAttribute("tabindex",-1),"ArrowDown"===e.code?(t=s+1,s===i.length-1&&(t=0)):"ArrowUp"===e.code&&(t=s-1,0===s&&(t=i.length-1)),i[t].setAttribute("tabindex",0),i[t].focus(),s=t,e.preventDefault()};n.Panel.outlineList.addEventListener("focus",()=>{i.length>0&&(n.Panel.outlineList.setAttribute("tabindex",-1),i[s].setAttribute("tabindex",0),i[s].focus()),n.Panel.outlineList.addEventListener("keydown",a)}),n.Panel.outlineList.addEventListener("blur",()=>{n.Panel.outlineList.removeEventListener("keydown",a)})},0),document.removeEventListener("sa11y-build-heading-outline",a),e};"Opened"===v.getItem("sa11y-outline")&&a(),document.addEventListener("sa11y-build-heading-outline",a)}const te=e=>{const{src:o}=e.element,i=n.Global.ignoreEditImageURL.some(e=>o.includes(e)),s=n.Global.ignoreEditImageClass.some(t=>e.element.classList.contains(t));if(i||s)return"";const a=n.Global.relativePathImageSRC||window.location.host,r=o.split(a)[1]||"",l=n.Global.relativePathImageID;let c;l.length&&e.element.classList.length&&e.element.classList.forEach(e=>{if(e.startsWith(l)){const[t]=e.match(/\d+/)||[];c=t}});const d=a&&l.length?n.Global.editImageURLofCMS+c:n.Global.editImageURLofCMS+r;return(l.length&&void 0!==c||!l)&&((p=o).includes(window.location.host)||p.startsWith(a))?``:"";var p};var ne="top",oe="bottom",ie="right",se="left",ae="auto",re=[ne,oe,ie,se],le="start",ce="end",de="viewport",pe="popper",ue=re.reduce(function(e,t){return e.concat([t+"-"+le,t+"-"+ce])},[]),he=[].concat(re,[ae]).reduce(function(e,t){return e.concat([t,t+"-"+le,t+"-"+ce])},[]),ge=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function me(e){return e?(e.nodeName||"").toLowerCase():null}function fe(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function be(e){return e instanceof fe(e).Element||e instanceof Element}function ye(e){return e instanceof fe(e).HTMLElement||e instanceof HTMLElement}function Ae(e){return"undefined"!=typeof ShadowRoot&&(e instanceof fe(e).ShadowRoot||e instanceof ShadowRoot)}var Ee={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach(function(e){var n=t.styles[e]||{},o=t.attributes[e]||{},i=t.elements[e];ye(i)&&me(i)&&(Object.assign(i.style,n),Object.keys(o).forEach(function(e){var t=o[e];!1===t?i.removeAttribute(e):i.setAttribute(e,!0===t?"":t)}))})},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(e){var o=t.elements[e],i=t.attributes[e]||{},s=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce(function(e,t){return e[t]="",e},{});ye(o)&&me(o)&&(Object.assign(o.style,s),Object.keys(i).forEach(function(e){o.removeAttribute(e)}))})}},requires:["computeStyles"]};function ve(e){return e.split("-")[0]}var _e=Math.max,Le=Math.min,Ie=Math.round;function Te(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function xe(){return!/^((?!chrome|android).)*safari/i.test(Te())}function ke(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var o=e.getBoundingClientRect(),i=1,s=1;t&&ye(e)&&(i=e.offsetWidth>0&&Ie(o.width)/e.offsetWidth||1,s=e.offsetHeight>0&&Ie(o.height)/e.offsetHeight||1);var a=(be(e)?fe(e):window).visualViewport,r=!xe()&&n,l=(o.left+(r&&a?a.offsetLeft:0))/i,c=(o.top+(r&&a?a.offsetTop:0))/s,d=o.width/i,p=o.height/s;return{width:d,height:p,top:c,right:l+d,bottom:c+p,left:l,x:l,y:c}}function Ne(e){var t=ke(e),n=e.offsetWidth,o=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-o)<=1&&(o=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:o}}function Se(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Ae(n)){var o=t;do{if(o&&e.isSameNode(o))return!0;o=o.parentNode||o.host}while(o)}return!1}function we(e){return fe(e).getComputedStyle(e)}function Ce(e){return["table","td","th"].indexOf(me(e))>=0}function Oe(e){return((be(e)?e.ownerDocument:e.document)||window.document).documentElement}function Pe(e){return"html"===me(e)?e:e.assignedSlot||e.parentNode||(Ae(e)?e.host:null)||Oe(e)}function Re(e){return ye(e)&&"fixed"!==we(e).position?e.offsetParent:null}function De(e){for(var t=fe(e),n=Re(e);n&&Ce(n)&&"static"===we(n).position;)n=Re(n);return n&&("html"===me(n)||"body"===me(n)&&"static"===we(n).position)?t:n||function(e){var t=/firefox/i.test(Te());if(/Trident/i.test(Te())&&ye(e)&&"fixed"===we(e).position)return null;var n=Pe(e);for(Ae(n)&&(n=n.host);ye(n)&&["html","body"].indexOf(me(n))<0;){var o=we(n);if("none"!==o.transform||"none"!==o.perspective||"paint"===o.contain||-1!==["transform","perspective"].indexOf(o.willChange)||t&&"filter"===o.willChange||t&&o.filter&&"none"!==o.filter)return n;n=n.parentNode}return null}(e)||t}function Me(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Be(e,t,n){return _e(e,Le(t,n))}function $e(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function Ge(e,t){return t.reduce(function(t,n){return t[n]=e,t},{})}var Ue={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,o=e.name,i=e.options,s=n.elements.arrow,a=n.modifiersData.popperOffsets,r=ve(n.placement),l=Me(r),c=[se,ie].indexOf(r)>=0?"height":"width";if(s&&a){var d=function(e,t){return $e("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:Ge(e,re))}(i.padding,n),p=Ne(s),u="y"===l?ne:se,h="y"===l?oe:ie,g=n.rects.reference[c]+n.rects.reference[l]-a[l]-n.rects.popper[c],m=a[l]-n.rects.reference[l],f=De(s),b=f?"y"===l?f.clientHeight||0:f.clientWidth||0:0,y=g/2-m/2,A=d[u],E=b-p[c]-d[h],v=b/2-p[c]/2+y,_=Be(A,v,E),L=l;n.modifiersData[o]=((t={})[L]=_,t.centerOffset=_-v,t)}},effect:function(e){var t=e.state,n=e.options.element,o=void 0===n?"[data-popper-arrow]":n;null!=o&&("string"!=typeof o||(o=t.elements.popper.querySelector(o)))&&Se(t.elements.popper,o)&&(t.elements.arrow=o)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function He(e){return e.split("-")[1]}var Fe={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Ke(e){var t,n=e.popper,o=e.popperRect,i=e.placement,s=e.variation,a=e.offsets,r=e.position,l=e.gpuAcceleration,c=e.adaptive,d=e.roundOffsets,p=e.isFixed,u=a.x,h=void 0===u?0:u,g=a.y,m=void 0===g?0:g,f="function"==typeof d?d({x:h,y:m}):{x:h,y:m};h=f.x,m=f.y;var b=a.hasOwnProperty("x"),y=a.hasOwnProperty("y"),A=se,E=ne,v=window;if(c){var _=De(n),L="clientHeight",I="clientWidth";if(_===fe(n)&&"static"!==we(_=Oe(n)).position&&"absolute"===r&&(L="scrollHeight",I="scrollWidth"),i===ne||(i===se||i===ie)&&s===ce)E=oe,m-=(p&&_===v&&v.visualViewport?v.visualViewport.height:_[L])-o.height,m*=l?1:-1;if(i===se||(i===ne||i===oe)&&s===ce)A=ie,h-=(p&&_===v&&v.visualViewport?v.visualViewport.width:_[I])-o.width,h*=l?1:-1}var T,x=Object.assign({position:r},c&&Fe),k=!0===d?function(e,t){var n=e.x,o=e.y,i=t.devicePixelRatio||1;return{x:Ie(n*i)/i||0,y:Ie(o*i)/i||0}}({x:h,y:m},fe(n)):{x:h,y:m};return h=k.x,m=k.y,l?Object.assign({},x,((T={})[E]=y?"0":"",T[A]=b?"0":"",T.transform=(v.devicePixelRatio||1)<=1?"translate("+h+"px, "+m+"px)":"translate3d("+h+"px, "+m+"px, 0)",T)):Object.assign({},x,((t={})[E]=y?m+"px":"",t[A]=b?h+"px":"",t.transform="",t))}var We={passive:!0};var Ye={left:"right",right:"left",bottom:"top",top:"bottom"};function ze(e){return e.replace(/left|right|bottom|top/g,function(e){return Ye[e]})}var Qe={start:"end",end:"start"};function Ve(e){return e.replace(/start|end/g,function(e){return Qe[e]})}function je(e){var t=fe(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function qe(e){return ke(Oe(e)).left+je(e).scrollLeft}function Xe(e){var t=we(e),n=t.overflow,o=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+o)}function Ze(e){return["html","body","#document"].indexOf(me(e))>=0?e.ownerDocument.body:ye(e)&&Xe(e)?e:Ze(Pe(e))}function Je(e,t){var n;void 0===t&&(t=[]);var o=Ze(e),i=o===(null==(n=e.ownerDocument)?void 0:n.body),s=fe(o),a=i?[s].concat(s.visualViewport||[],Xe(o)?o:[]):o,r=t.concat(a);return i?r:r.concat(Je(Pe(a)))}function et(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function tt(e,t,n){return t===de?et(function(e,t){var n=fe(e),o=Oe(e),i=n.visualViewport,s=o.clientWidth,a=o.clientHeight,r=0,l=0;if(i){s=i.width,a=i.height;var c=xe();(c||!c&&"fixed"===t)&&(r=i.offsetLeft,l=i.offsetTop)}return{width:s,height:a,x:r+qe(e),y:l}}(e,n)):be(t)?function(e,t){var n=ke(e,!1,"fixed"===t);return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}(t,n):et(function(e){var t,n=Oe(e),o=je(e),i=null==(t=e.ownerDocument)?void 0:t.body,s=_e(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),a=_e(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),r=-o.scrollLeft+qe(e),l=-o.scrollTop;return"rtl"===we(i||n).direction&&(r+=_e(n.clientWidth,i?i.clientWidth:0)-s),{width:s,height:a,x:r,y:l}}(Oe(e)))}function nt(e,t,n,o){var i="clippingParents"===t?function(e){var t=Je(Pe(e)),n=["absolute","fixed"].indexOf(we(e).position)>=0&&ye(e)?De(e):e;return be(n)?t.filter(function(e){return be(e)&&Se(e,n)&&"body"!==me(e)}):[]}(e):[].concat(t),s=[].concat(i,[n]),a=s[0],r=s.reduce(function(t,n){var i=tt(e,n,o);return t.top=_e(i.top,t.top),t.right=Le(i.right,t.right),t.bottom=Le(i.bottom,t.bottom),t.left=_e(i.left,t.left),t},tt(e,a,o));return r.width=r.right-r.left,r.height=r.bottom-r.top,r.x=r.left,r.y=r.top,r}function ot(e){var t,n=e.reference,o=e.element,i=e.placement,s=i?ve(i):null,a=i?He(i):null,r=n.x+n.width/2-o.width/2,l=n.y+n.height/2-o.height/2;switch(s){case ne:t={x:r,y:n.y-o.height};break;case oe:t={x:r,y:n.y+n.height};break;case ie:t={x:n.x+n.width,y:l};break;case se:t={x:n.x-o.width,y:l};break;default:t={x:n.x,y:n.y}}var c=s?Me(s):null;if(null!=c){var d="y"===c?"height":"width";switch(a){case le:t[c]=t[c]-(n[d]/2-o[d]/2);break;case ce:t[c]=t[c]+(n[d]/2-o[d]/2)}}return t}function it(e,t){void 0===t&&(t={});var n=t,o=n.placement,i=void 0===o?e.placement:o,s=n.strategy,a=void 0===s?e.strategy:s,r=n.boundary,l=void 0===r?"clippingParents":r,c=n.rootBoundary,d=void 0===c?de:c,p=n.elementContext,u=void 0===p?pe:p,h=n.altBoundary,g=void 0!==h&&h,m=n.padding,f=void 0===m?0:m,b=$e("number"!=typeof f?f:Ge(f,re)),y=u===pe?"reference":pe,A=e.rects.popper,E=e.elements[g?y:u],v=nt(be(E)?E:E.contextElement||Oe(e.elements.popper),l,d,a),_=ke(e.elements.reference),L=ot({reference:_,element:A,strategy:"absolute",placement:i}),I=et(Object.assign({},A,L)),T=u===pe?I:_,x={top:v.top-T.top+b.top,bottom:T.bottom-v.bottom+b.bottom,left:v.left-T.left+b.left,right:T.right-v.right+b.right},k=e.modifiersData.offset;if(u===pe&&k){var N=k[i];Object.keys(x).forEach(function(e){var t=[ie,oe].indexOf(e)>=0?1:-1,n=[ne,oe].indexOf(e)>=0?"y":"x";x[e]+=N[n]*t})}return x}function st(e,t){void 0===t&&(t={});var n=t,o=n.placement,i=n.boundary,s=n.rootBoundary,a=n.padding,r=n.flipVariations,l=n.allowedAutoPlacements,c=void 0===l?he:l,d=He(o),p=d?r?ue:ue.filter(function(e){return He(e)===d}):re,u=p.filter(function(e){return c.indexOf(e)>=0});0===u.length&&(u=p);var h=u.reduce(function(t,n){return t[n]=it(e,{placement:n,boundary:i,rootBoundary:s,padding:a})[ve(n)],t},{});return Object.keys(h).sort(function(e,t){return h[e]-h[t]})}var at={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,o=e.name;if(!t.modifiersData[o]._skip){for(var i=n.mainAxis,s=void 0===i||i,a=n.altAxis,r=void 0===a||a,l=n.fallbackPlacements,c=n.padding,d=n.boundary,p=n.rootBoundary,u=n.altBoundary,h=n.flipVariations,g=void 0===h||h,m=n.allowedAutoPlacements,f=t.options.placement,b=ve(f),y=l||(b===f||!g?[ze(f)]:function(e){if(ve(e)===ae)return[];var t=ze(e);return[Ve(e),t,Ve(t)]}(f)),A=[f].concat(y).reduce(function(e,n){return e.concat(ve(n)===ae?st(t,{placement:n,boundary:d,rootBoundary:p,padding:c,flipVariations:g,allowedAutoPlacements:m}):n)},[]),E=t.rects.reference,v=t.rects.popper,_=new Map,L=!0,I=A[0],T=0;T=0,w=S?"width":"height",C=it(t,{placement:x,boundary:d,rootBoundary:p,altBoundary:u,padding:c}),O=S?N?ie:se:N?oe:ne;E[w]>v[w]&&(O=ze(O));var P=ze(O),R=[];if(s&&R.push(C[k]<=0),r&&R.push(C[O]<=0,C[P]<=0),R.every(function(e){return e})){I=x,L=!1;break}_.set(x,R)}if(L)for(var D=function(e){var t=A.find(function(t){var n=_.get(t);if(n)return n.slice(0,e).every(function(e){return e})});if(t)return I=t,"break"},M=g?3:1;M>0;M--){if("break"===D(M))break}t.placement!==I&&(t.modifiersData[o]._skip=!0,t.placement=I,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function rt(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function lt(e){return[ne,ie,oe,se].some(function(t){return e[t]>=0})}var ct={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,o=e.name,i=n.offset,s=void 0===i?[0,0]:i,a=he.reduce(function(e,n){return e[n]=function(e,t,n){var o=ve(e),i=[se,ne].indexOf(o)>=0?-1:1,s="function"==typeof n?n(Object.assign({},t,{placement:e})):n,a=s[0],r=s[1];return a=a||0,r=(r||0)*i,[se,ie].indexOf(o)>=0?{x:r,y:a}:{x:a,y:r}}(n,t.rects,s),e},{}),r=a[t.placement],l=r.x,c=r.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[o]=a}};var dt={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,o=e.name,i=n.mainAxis,s=void 0===i||i,a=n.altAxis,r=void 0!==a&&a,l=n.boundary,c=n.rootBoundary,d=n.altBoundary,p=n.padding,u=n.tether,h=void 0===u||u,g=n.tetherOffset,m=void 0===g?0:g,f=it(t,{boundary:l,rootBoundary:c,padding:p,altBoundary:d}),b=ve(t.placement),y=He(t.placement),A=!y,E=Me(b),v="x"===E?"y":"x",_=t.modifiersData.popperOffsets,L=t.rects.reference,I=t.rects.popper,T="function"==typeof m?m(Object.assign({},t.rects,{placement:t.placement})):m,x="number"==typeof T?{mainAxis:T,altAxis:T}:Object.assign({mainAxis:0,altAxis:0},T),k=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,N={x:0,y:0};if(_){if(s){var S,w="y"===E?ne:se,C="y"===E?oe:ie,O="y"===E?"height":"width",P=_[E],R=P+f[w],D=P-f[C],M=h?-I[O]/2:0,B=y===le?L[O]:I[O],$=y===le?-I[O]:-L[O],G=t.elements.arrow,U=h&&G?Ne(G):{width:0,height:0},H=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},F=H[w],K=H[C],W=Be(0,L[O],U[O]),Y=A?L[O]/2-M-W-F-x.mainAxis:B-W-F-x.mainAxis,z=A?-L[O]/2+M+W+K+x.mainAxis:$+W+K+x.mainAxis,Q=t.elements.arrow&&De(t.elements.arrow),V=Q?"y"===E?Q.clientTop||0:Q.clientLeft||0:0,j=null!=(S=null==k?void 0:k[E])?S:0,q=P+z-j,X=Be(h?Le(R,P+Y-j-V):R,P,h?_e(D,q):D);_[E]=X,N[E]=X-P}if(r){var Z,J="x"===E?ne:se,ee="x"===E?oe:ie,te=_[v],ae="y"===v?"height":"width",re=te+f[J],ce=te-f[ee],de=-1!==[ne,se].indexOf(b),pe=null!=(Z=null==k?void 0:k[v])?Z:0,ue=de?re:te-L[ae]-I[ae]-pe+x.altAxis,he=de?te+L[ae]+I[ae]-pe-x.altAxis:ce,ge=h&&de?function(e,t,n){var o=Be(e,t,n);return o>n?n:o}(ue,te,he):Be(h?ue:re,te,h?he:ce);_[v]=ge,N[v]=ge-te}t.modifiersData[o]=N}},requiresIfExists:["offset"]};function pt(e,t,n){void 0===n&&(n=!1);var o,i,s=ye(t),a=ye(t)&&function(e){var t=e.getBoundingClientRect(),n=Ie(t.width)/e.offsetWidth||1,o=Ie(t.height)/e.offsetHeight||1;return 1!==n||1!==o}(t),r=Oe(t),l=ke(e,a,n),c={scrollLeft:0,scrollTop:0},d={x:0,y:0};return(s||!s&&!n)&&(("body"!==me(t)||Xe(r))&&(c=(o=t)!==fe(o)&&ye(o)?{scrollLeft:(i=o).scrollLeft,scrollTop:i.scrollTop}:je(o)),ye(t)?((d=ke(t,!0)).x+=t.clientLeft,d.y+=t.clientTop):r&&(d.x=qe(r))),{x:l.left+c.scrollLeft-d.x,y:l.top+c.scrollTop-d.y,width:l.width,height:l.height}}function ut(e){var t=new Map,n=new Set,o=[];function i(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach(function(e){if(!n.has(e)){var o=t.get(e);o&&i(o)}}),o.push(e)}return e.forEach(function(e){t.set(e.name,e)}),e.forEach(function(e){n.has(e.name)||i(e)}),o}var ht={placement:"bottom",modifiers:[],strategy:"absolute"};function gt(){for(var e=arguments.length,t=new Array(e),n=0;n-1}function It(e,t){return"function"==typeof e?e.apply(void 0,t):e}function Tt(e,t){return 0===t?e:function(o){clearTimeout(n),n=setTimeout(function(){e(o)},t)};var n}function xt(e){return[].concat(e)}function kt(e,t){-1===e.indexOf(t)&&e.push(t)}function Nt(e){return[].slice.call(e)}function St(e){return Object.keys(e).reduce(function(t,n){return void 0!==e[n]&&(t[n]=e[n]),t},{})}function wt(){return document.createElement("div")}function Ct(e){return["Element","Fragment"].some(function(t){return Lt(e,t)})}function Ot(e){return Ct(e)?[e]:function(e){return Lt(e,"NodeList")}(e)?Nt(e):Array.isArray(e)?e:Nt(document.querySelectorAll(e))}function Pt(e,t){e.forEach(function(e){e&&(e.style.transitionDuration=t+"ms")})}function Rt(e,t){e.forEach(function(e){e&&e.setAttribute("data-state",t)})}function Dt(e,t,n){var o=t+"EventListener";["transitionend","webkitTransitionEnd"].forEach(function(t){e[o](t,n)})}function Mt(e,t){for(var n=t;n;){var o;if(e.contains(n))return!0;n=null==n.getRootNode||null==(o=n.getRootNode())?void 0:o.host}return!1}var Bt={isTouch:!1},$t=0;function Gt(){Bt.isTouch||(Bt.isTouch=!0,window.performance&&document.addEventListener("mousemove",Ut))}function Ut(){var e=performance.now();e-$t<20&&(Bt.isTouch=!1,document.removeEventListener("mousemove",Ut)),$t=e}function Ht(){var e,t=document.activeElement;if((e=t)&&e._tippy&&e._tippy.reference===e){var n=t._tippy;t.blur&&!n.state.isVisible&&t.blur()}}var Ft=!!("undefined"!=typeof window&&"undefined"!=typeof document)&&!!window.msCrypto,Kt=Object.assign({appendTo:vt,aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},{animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},{allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999}),Wt=Object.keys(Kt);function Yt(e){var t=(e.plugins||[]).reduce(function(t,n){var o,i=n.name,s=n.defaultValue;i&&(t[i]=void 0!==e[i]?e[i]:null!=(o=Kt[i])?o:s);return t},{});return Object.assign({},e,t)}function zt(e,t){var n=Object.assign({},t,{content:It(t.content,[e])},t.ignoreAttributes?{}:function(e,t){return(t?Object.keys(Yt(Object.assign({},Kt,{plugins:t}))):Wt).reduce(function(t,n){var o=(e.getAttribute("data-tippy-"+n)||"").trim();if(!o)return t;if("content"===n)t[n]=o;else try{t[n]=JSON.parse(o)}catch(e){t[n]=o}return t},{})}(e,t.plugins));return n.aria=Object.assign({},Kt.aria,n.aria),n.aria={expanded:"auto"===n.aria.expanded?t.interactive:n.aria.expanded,content:"auto"===n.aria.content?t.interactive?null:"describedby":n.aria.content},n}function Qt(e,t){e.innerHTML=t}function Vt(e){var t=wt();return!0===e?t.className=yt:(t.className=At,Ct(e)?t.appendChild(e):Qt(t,e)),t}function jt(e,t){Ct(t.content)?(Qt(e,""),e.appendChild(t.content)):"function"!=typeof t.content&&(t.allowHTML?Qt(e,t.content):e.textContent=t.content)}function qt(e){var t=e.firstElementChild,n=Nt(t.children);return{box:t,content:n.find(function(e){return e.classList.contains(bt)}),arrow:n.find(function(e){return e.classList.contains(yt)||e.classList.contains(At)}),backdrop:n.find(function(e){return e.classList.contains("tippy-backdrop")})}}function Xt(e){var t=wt(),n=wt();n.className="tippy-box",n.setAttribute("data-state","hidden"),n.setAttribute("tabindex","-1");var o=wt();function i(n,o){var i=qt(t),s=i.box,a=i.content,r=i.arrow;o.theme?s.setAttribute("data-theme",o.theme):s.removeAttribute("data-theme"),"string"==typeof o.animation?s.setAttribute("data-animation",o.animation):s.removeAttribute("data-animation"),o.inertia?s.setAttribute("data-inertia",""):s.removeAttribute("data-inertia"),s.style.maxWidth="number"==typeof o.maxWidth?o.maxWidth+"px":o.maxWidth,o.role?s.setAttribute("role",o.role):s.removeAttribute("role"),n.content===o.content&&n.allowHTML===o.allowHTML||jt(a,e.props),o.arrow?r?n.arrow!==o.arrow&&(s.removeChild(r),s.appendChild(Vt(o.arrow))):s.appendChild(Vt(o.arrow)):r&&s.removeChild(r)}return o.className=bt,o.setAttribute("data-state","hidden"),jt(o,e.props),t.appendChild(n),n.appendChild(o),i(e.props,e.props),{popper:t,onUpdate:i}}Xt.$$tippy=!0;var Zt=1,Jt=[],en=[];function tn(e,t){var n,o,i,s,a,r,l,c,d=zt(e,Object.assign({},Kt,Yt(St(t)))),p=!1,u=!1,h=!1,g=!1,m=[],f=Tt(Q,d.interactiveDebounce),b=Zt++,y=(c=d.plugins).filter(function(e,t){return c.indexOf(e)===t}),A={id:b,reference:e,popper:wt(),popperInstance:null,props:d,state:{isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},plugins:y,clearDelayTimeouts:function(){clearTimeout(n),clearTimeout(o),cancelAnimationFrame(i)},setProps:function(t){if(A.state.isDestroyed)return;P("onBeforeUpdate",[A,t]),Y();var n=A.props,o=zt(e,Object.assign({},n,St(t),{ignoreAttributes:!0}));A.props=o,W(),n.interactiveDebounce!==o.interactiveDebounce&&(M(),f=Tt(Q,o.interactiveDebounce));n.triggerTarget&&!o.triggerTarget?xt(n.triggerTarget).forEach(function(e){e.removeAttribute("aria-expanded")}):o.triggerTarget&&e.removeAttribute("aria-expanded");D(),O(),_&&_(n,o);A.popperInstance&&(X(),J().forEach(function(e){requestAnimationFrame(e._tippy.popperInstance.forceUpdate)}));P("onAfterUpdate",[A,t])},setContent:function(e){A.setProps({content:e})},show:function(){var e=A.state.isVisible,t=A.state.isDestroyed,n=!A.state.isEnabled,o=Bt.isTouch&&!A.props.touch,i=_t(A.props.duration,0,Kt.duration);if(e||t||n||o)return;if(N().hasAttribute("disabled"))return;if(P("onShow",[A],!1),!1===A.props.onShow(A))return;A.state.isVisible=!0,k()&&(v.style.visibility="visible");O(),U(),A.state.isMounted||(v.style.transition="none");if(k()){var s=w();Pt([s.box,s.content],0)}r=function(){var e;if(A.state.isVisible&&!g){if(g=!0,v.offsetHeight,v.style.transition=A.props.moveTransition,k()&&A.props.animation){var t=w(),n=t.box,o=t.content;Pt([n,o],i),Rt([n,o],"visible")}R(),D(),kt(en,A),null==(e=A.popperInstance)||e.forceUpdate(),P("onMount",[A]),A.props.animation&&k()&&function(e,t){F(e,t)}(i,function(){A.state.isShown=!0,P("onShown",[A])})}},function(){var e,t=A.props.appendTo,n=N();e=A.props.interactive&&t===vt||"parent"===t?n.parentNode:It(t,[n]);e.contains(v)||e.appendChild(v);A.state.isMounted=!0,X()}()},hide:function(){var e=!A.state.isVisible,t=A.state.isDestroyed,n=!A.state.isEnabled,o=_t(A.props.duration,1,Kt.duration);if(e||t||n)return;if(P("onHide",[A],!1),!1===A.props.onHide(A))return;A.state.isVisible=!1,A.state.isShown=!1,g=!1,p=!1,k()&&(v.style.visibility="hidden");if(M(),H(),O(!0),k()){var i=w(),s=i.box,a=i.content;A.props.animation&&(Pt([s,a],o),Rt([s,a],"hidden"))}R(),D(),A.props.animation?k()&&function(e,t){F(e,function(){!A.state.isVisible&&v.parentNode&&v.parentNode.contains(v)&&t()})}(o,A.unmount):A.unmount()},hideWithInteractivity:function(e){S().addEventListener("mousemove",f),kt(Jt,f),f(e)},enable:function(){A.state.isEnabled=!0},disable:function(){A.hide(),A.state.isEnabled=!1},unmount:function(){A.state.isVisible&&A.hide();if(!A.state.isMounted)return;Z(),J().forEach(function(e){e._tippy.unmount()}),v.parentNode&&v.parentNode.removeChild(v);en=en.filter(function(e){return e!==A}),A.state.isMounted=!1,P("onHidden",[A])},destroy:function(){if(A.state.isDestroyed)return;A.clearDelayTimeouts(),A.unmount(),Y(),delete e._tippy,A.state.isDestroyed=!0,P("onDestroy",[A])}};if(!d.render)return A;var E=d.render(A),v=E.popper,_=E.onUpdate;v.setAttribute("data-tippy-root",""),v.id="tippy-"+A.id,A.popper=v,e._tippy=A,v._tippy=A;var L=y.map(function(e){return e.fn(A)}),I=e.hasAttribute("aria-expanded");return W(),D(),O(),P("onCreate",[A]),d.showOnCreate&&ee(),v.addEventListener("mouseenter",function(){A.props.interactive&&A.state.isVisible&&A.clearDelayTimeouts()}),v.addEventListener("mouseleave",function(){A.props.interactive&&A.props.trigger.indexOf("mouseenter")>=0&&S().addEventListener("mousemove",f)}),A;function T(){var e=A.props.touch;return Array.isArray(e)?e:[e,0]}function x(){return"hold"===T()[0]}function k(){var e;return!(null==(e=A.props.render)||!e.$$tippy)}function N(){return l||e}function S(){var e,t,n=N().parentNode;return n?null!=(t=xt(n)[0])&&null!=(e=t.ownerDocument)&&e.body?t.ownerDocument:document:document}function w(){return qt(v)}function C(e){return A.state.isMounted&&!A.state.isVisible||Bt.isTouch||s&&"focus"===s.type?0:_t(A.props.delay,e?0:1,Kt.delay)}function O(e){void 0===e&&(e=!1),v.style.pointerEvents=A.props.interactive&&!e?"":"none",v.style.zIndex=""+A.props.zIndex}function P(e,t,n){var o;(void 0===n&&(n=!0),L.forEach(function(n){n[e]&&n[e].apply(n,t)}),n)&&(o=A.props)[e].apply(o,t)}function R(){var t=A.props.aria;if(t.content){var n="aria-"+t.content,o=v.id;xt(A.props.triggerTarget||e).forEach(function(e){var t=e.getAttribute(n);if(A.state.isVisible)e.setAttribute(n,t?t+" "+o:o);else{var i=t&&t.replace(o,"").trim();i?e.setAttribute(n,i):e.removeAttribute(n)}})}}function D(){!I&&A.props.aria.expanded&&xt(A.props.triggerTarget||e).forEach(function(e){A.props.interactive?e.setAttribute("aria-expanded",A.state.isVisible&&e===N()?"true":"false"):e.removeAttribute("aria-expanded")})}function M(){S().removeEventListener("mousemove",f),Jt=Jt.filter(function(e){return e!==f})}function B(t){if(!Bt.isTouch||!h&&"mousedown"!==t.type){var n=t.composedPath&&t.composedPath()[0]||t.target;if(!A.props.interactive||!Mt(v,n)){if(xt(A.props.triggerTarget||e).some(function(e){return Mt(e,n)})){if(Bt.isTouch)return;if(A.state.isVisible&&A.props.trigger.indexOf("click")>=0)return}else P("onClickOutside",[A,t]);!0===A.props.hideOnClick&&(A.clearDelayTimeouts(),A.hide(),u=!0,setTimeout(function(){u=!1}),A.state.isMounted||H())}}}function $(){h=!0}function G(){h=!1}function U(){var e=S();e.addEventListener("mousedown",B,!0),e.addEventListener("touchend",B,Et),e.addEventListener("touchstart",G,Et),e.addEventListener("touchmove",$,Et)}function H(){var e=S();e.removeEventListener("mousedown",B,!0),e.removeEventListener("touchend",B,Et),e.removeEventListener("touchstart",G,Et),e.removeEventListener("touchmove",$,Et)}function F(e,t){var n=w().box;function o(e){e.target===n&&(Dt(n,"remove",o),t())}if(0===e)return t();Dt(n,"remove",a),Dt(n,"add",o),a=o}function K(t,n,o){void 0===o&&(o=!1),xt(A.props.triggerTarget||e).forEach(function(e){e.addEventListener(t,n,o),m.push({node:e,eventType:t,handler:n,options:o})})}function W(){var e;x()&&(K("touchstart",z,{passive:!0}),K("touchend",V,{passive:!0})),(e=A.props.trigger,e.split(/\s+/).filter(Boolean)).forEach(function(e){if("manual"!==e)switch(K(e,z),e){case"mouseenter":K("mouseleave",V);break;case"focus":K(Ft?"focusout":"blur",j);break;case"focusin":K("focusout",j)}})}function Y(){m.forEach(function(e){var t=e.node,n=e.eventType,o=e.handler,i=e.options;t.removeEventListener(n,o,i)}),m=[]}function z(e){var t,n=!1;if(A.state.isEnabled&&!q(e)&&!u){var o="focus"===(null==(t=s)?void 0:t.type);s=e,l=e.currentTarget,D(),!A.state.isVisible&&Lt(e,"MouseEvent")&&Jt.forEach(function(t){return t(e)}),"click"===e.type&&(A.props.trigger.indexOf("mouseenter")<0||p)&&!1!==A.props.hideOnClick&&A.state.isVisible?n=!0:ee(e),"click"===e.type&&(p=!n),n&&!o&&te(e)}}function Q(e){var t=e.target,n=N().contains(t)||v.contains(t);if("mousemove"!==e.type||!n){var o=J().concat(v).map(function(e){var t,n=null==(t=e._tippy.popperInstance)?void 0:t.state;return n?{popperRect:e.getBoundingClientRect(),popperState:n,props:d}:null}).filter(Boolean);(function(e,t){var n=t.clientX,o=t.clientY;return e.every(function(e){var t=e.popperRect,i=e.popperState,s=e.props.interactiveBorder,a=i.placement.split("-")[0],r=i.modifiersData.offset;if(!r)return!0;var l="bottom"===a?r.top.y:0,c="top"===a?r.bottom.y:0,d="right"===a?r.left.x:0,p="left"===a?r.right.x:0,u=t.top-o+l>s,h=o-t.bottom-c>s,g=t.left-n+d>s,m=n-t.right-p>s;return u||h||g||m})})(o,e)&&(M(),te(e))}}function V(e){q(e)||A.props.trigger.indexOf("click")>=0&&p||(A.props.interactive?A.hideWithInteractivity(e):te(e))}function j(e){A.props.trigger.indexOf("focusin")<0&&e.target!==N()||A.props.interactive&&e.relatedTarget&&v.contains(e.relatedTarget)||te(e)}function q(e){return!!Bt.isTouch&&x()!==e.type.indexOf("touch")>=0}function X(){Z();var t=A.props,n=t.popperOptions,o=t.placement,i=t.offset,s=t.getReferenceClientRect,a=t.moveTransition,l=k()?qt(v).arrow:null,c=s?{getBoundingClientRect:s,contextElement:s.contextElement||N()}:e,d={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(e){var t=e.state;if(k()){var n=w().box;["placement","reference-hidden","escaped"].forEach(function(e){"placement"===e?n.setAttribute("data-placement",t.placement):t.attributes.popper["data-popper-"+e]?n.setAttribute("data-"+e,""):n.removeAttribute("data-"+e)}),t.attributes.popper={}}}},p=[{name:"offset",options:{offset:i}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!a}},d];k()&&l&&p.push({name:"arrow",options:{element:l,padding:3}}),p.push.apply(p,(null==n?void 0:n.modifiers)||[]),A.popperInstance=ft(c,v,Object.assign({},n,{placement:o,onFirstUpdate:r,modifiers:p}))}function Z(){A.popperInstance&&(A.popperInstance.destroy(),A.popperInstance=null)}function J(){return Nt(v.querySelectorAll("[data-tippy-root]"))}function ee(e){A.clearDelayTimeouts(),e&&P("onTrigger",[A,e]),U();var t=C(!0),o=T(),i=o[0],s=o[1];Bt.isTouch&&"hold"===i&&s&&(t=s),t?n=setTimeout(function(){A.show()},t):A.show()}function te(e){if(A.clearDelayTimeouts(),P("onUntrigger",[A,e]),A.state.isVisible){if(!(A.props.trigger.indexOf("mouseenter")>=0&&A.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(e.type)>=0&&p)){var t=C(!1);t?o=setTimeout(function(){A.state.isVisible&&A.hide()},t):i=requestAnimationFrame(function(){A.hide()})}}else H()}}function nn(e,t){void 0===t&&(t={});var n=Kt.plugins.concat(t.plugins||[]);document.addEventListener("touchstart",Gt,Et),window.addEventListener("blur",Ht);var o=Object.assign({},t,{plugins:n}),i=Ot(e).reduce(function(e,t){var n=t&&tn(t,o);return n&&e.push(n),e},[]);return Ct(e)?i[0]:i}nn.defaultProps=Kt,nn.setDefaultProps=function(e){Object.keys(e).forEach(function(t){Kt[t]=e[t]})},nn.currentInput=Bt,Object.assign({},Ee,{effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow)}}),nn.setDefaultProps({render:Xt});const on={mainTRC:2.4,get mainTRCencode(){return 1/this.mainTRC},sRco:.2126729,sGco:.7151522,sBco:.072175,normBG:.56,normTXT:.57,revTXT:.62,revBG:.65,blkThrs:.022,blkClmp:1.414,scaleBoW:1.14,scaleWoB:1.14,loBoWoffset:.027,loWoBoffset:.027,deltaYmin:5e-4,loClip:.1,mFactor:1.9468554433171,get mFactInv(){return 1/this.mFactor},mOffsetIn:.0387393816571401,mExpAdj:.283343396420869,get mExp(){return this.mExpAdj/this.blkClmp},mOffsetOut:.312865795870758};function sn(e,t=2){const n=[["Lc",100,200,300,400,500,600,700,800,900],[0,999,999,999,999,999,999,999,999,999],[10,999,999,999,999,999,999,999,999,999],[15,777,777,777,777,777,777,777,777,777],[20,777,777,777,777,777,777,777,777,777],[25,777,777,777,120,120,108,96,96,96],[30,777,777,120,108,108,96,72,72,72],[35,777,120,108,96,72,60,48,48,48],[40,120,108,96,60,48,42,32,32,32],[45,108,96,72,42,32,28,24,24,24],[50,96,72,60,32,28,24,21,21,21],[55,80,60,48,28,24,21,18,18,18],[60,72,48,42,24,21,18,16,16,18],[65,68,46,32,21.75,19,17,15,16,18],[70,64,44,28,19.5,18,16,14.5,16,18],[75,60,42,24,18,16,15,14,16,18],[80,56,38.25,23,17.25,15.81,14.81,14,16,18],[85,52,34.5,22,16.5,15.625,14.625,14,16,18],[90,48,32,21,16,15.5,14.5,14,16,18],[95,45,28,19.5,15.5,15,14,13.5,16,18],[100,42,26.5,18.5,15,14.5,13.5,13,16,18],[105,39,25,18,14.5,14,13,12,16,18],[110,36,24,18,14,13,12,11,16,18],[115,34.5,22.5,17.25,12.5,11.875,11.25,10.625,14.5,16.5],[120,33,21,16.5,11,10.75,10.5,10.25,13,15],[125,32,20,16,10,10,10,10,12,14]],o=[["∆Lc",100,200,300,400,500,600,700,800,900],[0,0,0,0,0,0,0,0,0,0],[10,0,0,0,0,0,0,0,0,0],[15,0,0,0,0,0,0,0,0,0],[20,0,0,0,0,0,0,0,0,0],[25,0,0,0,12,12,12,24,24,24],[30,0,0,12,12,36,36,24,24,24],[35,0,12,12,36,24,18,16,16,16],[40,12,12,24,18,16,14,8,8,8],[45,12,24,12,10,4,4,3,3,3],[50,16,12,12,4,4,3,3,3,3],[55,8,12,6,4,3,3,2,2,0],[60,4,2,10,2.25,2,1,1,0,0],[65,4,2,4,2.25,1,1,.5,0,0],[70,4,2,4,1.5,2,1,.5,0,0],[75,4,3.75,1,.75,.188,.188,0,0,0],[80,4,3.75,1,.75,.188,.188,0,0,0],[85,4,2.5,1,.5,.125,.125,0,0,0],[90,3,4,1.5,.5,.5,.5,.5,0,0],[95,3,1.5,1,.5,.5,.5,.5,0,0],[100,3,1.5,.5,.5,.5,.5,1,0,0],[105,3,1,0,.5,1,1,1,0,0],[110,1.5,1.5,.75,1.5,1.125,.75,.375,1.5,1.5],[115,1.5,1.5,.75,1.5,1.125,.75,.375,1.5,1.5],[120,1,1,.5,1,.75,.5,.25,1,1],[125,0,0,0,0,0,0,0,0,0]];let i=[e.toFixed(t),0,0,0,0,0,0,0,0,0];i.length;let s=777;const a=0==(e=Math.abs(e))?1:.2*e|0;let r=0,l=.2*(e-n[a][r]);for(r++;r<10;r++)s=n[a][r],i[r]=s>400?s:e<14.5?999:e<29.5?777:s>24?Math.round(s-o[a][r]*l):s-.5*(2*o[a][r]*l|0);return i}function an(e=[0,0,0]){function t(e){return Math.pow(e/255,on.mainTRC)}return on.sRco*t(e[0])+on.sGco*t(e[1])+on.sBco*t(e[2])}function rn(e=[0,0,0,1],t=[0,0,0],n=!0){e[3]=Math.max(Math.min(e[3],1),0);let o=1-e[3],i=[0,0,0,1,!0];for(let s=0;s<3;s++)i[s]=t[s]*o+e[s]*e[3],n&&(i[s]=Math.min(Math.round(i[s]),255));return i}function ln(e){const t=parseInt(e,10);if(!Number.isNaN(t))return t;return{lighter:100,normal:400,bold:700,bolder:900}[e]||400}function cn(e,t){const n=e;let o,i,s,a=1;if(n.startsWith("rgb")){const e=n.match(/[\d.]+/g).map(Number);[o,i,s,a]=4===e.length?e:[...e,1]}else{if(n.startsWith("color(rec2020")||n.startsWith("color(display-p3"))return"unsupported";const e=document.createElement("canvas").getContext("2d");e.fillStyle=n,e.fillRect(0,0,1,1);const t=e.getImageData(0,0,1,1);[o,i,s,a]=t.data,a=(a/255).toFixed(2)}return t&&t<1&&(a=(a*t).toFixed(2)),[o,i,s,Number(a)]}function dn(e){let t=e;for(;t&&1===t.nodeType;){if(n.Global.shadowDetection){const e=t.getRootNode();if(e instanceof ShadowRoot){let n=t;for(;n&&n!==e.host;){const e=getComputedStyle(n);if(e.backgroundImage&&"none"!==e.backgroundImage)return{type:"image",value:e.backgroundImage};const t=cn(e.backgroundColor);if(0!==t[3]&&"transparent"!==t)return t;n=n.parentElement}return dn(e.host)}}const e=getComputedStyle(t),o=e.backgroundImage;if("none"!==o)return{type:"image",value:o};const i=cn(e.backgroundColor);if(0!==i[3]&&"transparent"!==i){if(i[3]<1){let e=t.parentElement,n="rgba(255, 255, 255, 1)";for(;e&&1===e.nodeType;){if(n=getComputedStyle(e).backgroundColor,"rgba(0, 0, 0, 0)"!==n)break;"rgba(0, 0, 0, 0)"===n&&"HTML"===e.tagName&&(n="rgba(255, 255, 255, 1)"),e=e.parentElement}return rn(i,cn(n||"rgba(255, 255, 255, 1)"))}return i}if("HTML"===t.tagName)return[255,255,255];t=t.parentNode}return[255,255,255]}function pn(e){const t=e.slice(0,3).map(e=>{const t=e/255;return t<=.03928?t/12.92:((t+.055)/1.055)**2.4});return.2126*t[0]+.7152*t[1]+.0722*t[2]}function un(e,t){return(Math.max(e,t)+.05)/(Math.min(e,t)+.05)}function hn(e,t){return e.map((e,n)=>{if(n<3){const n=Math.ceil(e+(255-e)*t);return n>=255?255:n}return e})}function gn(e,t){return e.map((e,n)=>{if(n<3){const n=Math.floor(e*(1-t));return n<=0?0:n}return e})}function mn(e){const[t,n,o]=e.map(e=>Math.min(255,Math.max(0,e)));return`#${t.toString(16).padStart(2,"0")}${n.toString(16).padStart(2,"0")}${o.toString(16).padStart(2,"0")}`}function fn(e){if(n.Global.contrastAPCA)return Math.abs(Number(e.toFixed(1)));const t=Math.round(100*e)/100;return Number.isInteger(t)?`${t}:1`:`${t.toFixed(2)}:1`}function bn(e,t){let o;const i=rn(e,t).slice(0,4);if(n.Global.contrastAPCA){o=function(e,t,n=-1){const o=[0,1.1];if(isNaN(e)||isNaN(t)||Math.min(e,t)o[1])return 0;let i=0,s=0,a="BoW";return e=e>on.blkThrs?e:e+Math.pow(on.blkThrs-e,on.blkClmp),t=t>on.blkThrs?t:t+Math.pow(on.blkThrs-t,on.blkClmp),Math.abs(t-e)e?(i=(Math.pow(t,on.normBG)-Math.pow(e,on.normTXT))*on.scaleBoW,s=i-on.loClip?0:i+on.loWoBoffset),n<0?100*s:0==n?Math.round(100*Math.abs(s))+""+a+"":Number.isInteger(n)?(100*s).toFixed(n):0)}(an(i),an(t))}else{o=un(pn(i),pn(t))}return{ratio:o,blendedColor:i}}function yn(e,t,n,o){const i=an(t),s=(e,t)=>i<=.179?hn(e,t):gn(e,t);let a=e,r=bn(a,t),l=sn(r.ratio).slice(1);const c=Math.floor(n/100)-1,d=l[c],p=o{const n=bn(e,[0,0,0,1]),o=bn(e,[255,255,255,1]),i=Math.abs(n.ratio)>Math.abs(o.ratio),s=i?[0,0,0,1]:[255,255,255,1],a=sn(i?n.ratio:o.ratio).slice(1);return{suggestedColor:s,size:Math.ceil(a[Math.floor(t/100)-1])}})(t,n);if(u.size>o)return{color:mn(u.suggestedColor),size:u.size};let h=e,g=a,m=r.ratio,f=.16;let b=0;if(p)for(;f>=.01;)if(b+=1,a=s(a,f),r=bn(a,t),l=sn(r.ratio).slice(1),l[c]<=o&&(g=Math.abs(r.ratio)<=Math.abs(m)?a:g,m=r.ratio,g=a,a=h,f*=.5),h=a,50===b)return{color:mn(u.suggestedColor),size:u.size};return{color:mn(g),size:null}}function An(e){let o;const{color:i,background:s,fontWeight:a,fontSize:r,isLargeText:l,type:c}=e;if(i&&s&&"image"!==s.type&&"text"===c){const c=n.Global.contrastAPCA?yn(i,s,a,r):function(e,t,n,o=!1){let i;i=o?n?4.5:7:n?3:4.5;const s=pn(e),a=pn(t),r=s>a?un(1,a)>i:un(0,a)n?hn(e,t):gn(e,t);let c=e,d=c,p=un(s,a),u=p,h=e,g=.16,m=0;for(;g>=.01;){if(m+=1,m>100)return{color:null};c=l(c,g,r),p=un(pn(c),a),p>=i&&(d=p<=u?c:d,u=p,c=h,g*=.5),h=c}return{color:mn(d)}}(i,s,l,n.Global.contrastAAA);let d;const p='',u=`${c.color}`,h=`${c.size}px`;n.Global.contrastAPCA?c.color&&c.size?d=`${p} ${t._("CONTRAST_APCA")} ${u} ${h}`:c.color?d=`${p} ${t._("CONTRAST_COLOR")} ${u}`:c.size&&(d=`${p} ${t._("CONTRAST_SIZE")} ${h}`):d=null===c.color?`${p} ${t._("NO_SUGGESTION")}`:`${p} ${t._("CONTRAST_COLOR")} ${u}`,o=document.createElement("div"),o.id="advice";const g=e.opacity<1?` ${t.sprintf("CONTRAST_OPACITY")}`:d;o.innerHTML=g}return o}function En(e,t){const o=e?.querySelector("#contrast-tools");if(o){const{fontSize:o,fontWeight:i,type:s,isLargeText:a}=t,r=e.querySelector("#contrast"),l=e.querySelector("#contrast-preview"),c=e.querySelector("#fg-input"),d=e.querySelector("#bg-input"),p=e.querySelector("#value"),u=e.querySelector("#good"),h=e.querySelector("#apca-table"),g=(e,t)=>{e.forEach(e=>{e.classList.toggle("good-contrast",t),e.classList.toggle("error-badge",!t)})},m=()=>{const e=c.value,t=d.value;[c,d].forEach(e=>e.classList.remove("unknown")),l.style.color=e,l.style.backgroundColor=t,l.style.backgroundImage="none";const m=l.querySelectorAll("svg *");if(1===m.length){const{fill:t,stroke:n}=getComputedStyle(m[0]);m[0].style.opacity=1,"none"!==t&&(m[0].style.fill=e),"none"!==n&&(m[0].style.stroke=e)}const f=bn(cn(e),cn(t)),b=[p,r];if(n.Global.contrastAPCA){const e=f.ratio;p.textContent=fn(e);const t=sn(e).slice(1),n=e>=45&&t[0]>=0&&t[0]<=777;let a;switch(s){case"svg-error":case"svg-warning":u.hidden=!n,a=n,g(b,a);break;case"svg-text":u.hidden=!n,a=t.slice(1,7).some(e=>999!==e&&777!==e),g(b,a),function(e,t){const n=e;n.innerHTML="",n.hidden=!1;const o=document.createElement("div");o.classList.add("row");const i=t.slice(1,7);for(let e=0;e=e,g(b,a),u.hidden=!a;break}}}if(!n.Global.contrastAPCA){const e=f.ratio;p.textContent=fn(e);const t=n.Global.contrastAAA,o=e>=3,i=e>=(t?7:4.5),l=e>=(t?4.5:3);switch(s){case"svg-error":case"svg-text":case"svg-warning":u.hidden=!o,g(b,o);break;default:a?(g([p,r],l),u.hidden=!l):(g([p,r],i),u.hidden=!i)}}};c.addEventListener("input",m),d.addEventListener("input",m)}}function vn(e,t,n,o,i,s,a=!1){const{ratio:r,blendedColor:l}=bn(t,n),c=o>=24||o>=18.67&&i>=700;let d;if(a)d=c?r<4.5:r<7;else{d=c?r<3:r>1&&r<4.5}return d?{$el:e,ratio:fn(r),color:l,background:n,fontSize:o,fontWeight:i,isLargeText:c,opacity:s,textUnderline:getComputedStyle(e).textDecorationLine}:null}function _n(e,t,n,o,i,s){const{ratio:a,blendedColor:r}=bn(t,n);return o{const t=e.shadowRoot.querySelectorAll(".sa11y-btn");t&&i.push(...Array.from(t))});const s=nn(i,{interactive:!0,trigger:"mouseenter click",hideOnClick:!1,arrow:!0,offset:[0,8],delay:[0,400],maxWidth:375,theme:"sa11y-theme",placement:"auto-start",allowHTML:!0,role:"dialog",aria:{content:null,expanded:"auto"},appendTo:e,zIndex:2147483645,onShow(e){s.forEach(t=>{t!==e.popper&&t.hide()});const o=e.reference.getRootNode().host;o.setAttribute("data-sa11y-opened","");const i=e.popper.querySelector(".close-btn"),a=()=>{e.hide(),e.reference.focus()};i.addEventListener("click",a);const r=t=>{"Escape"===t.key&&(e.hide(),e.reference.focus())};if(e.popper.addEventListener("keydown",r),!e.popper.hasAttribute("contrast-tools-initialized")){const i=parseInt(o.getAttribute("data-sa11y-annotation"),10),s=window.sa11yCheckComplete.results.find(e=>e.id===i),{contrastDetails:a}=s||{};if(a){const o=e.popper.querySelector("[data-sa11y-contrast-details]"),i=function(e){const{sanitizedText:o,color:i,background:s,fontWeight:a,fontSize:r,ratio:l,textUnderline:c}=e,d=s&&"image"!==s.type,p=d?mn(s):"#000000",u=i?mn(i):"#000000",h=a?`font-weight:${a};`:"",g=r?`font-size:${r}px;`:"",m=c?`text-decoration:${c};`:"",f=i?"":'class="unknown"',b=s&&"image"!==s.type?"":'class="unknown"',y=i?"":`(${t._("UNKNOWN")})`,A=s?"":`(${t._("UNKNOWN")})`;let E;E=n.Global.contrastAPCA?0===Math.abs(l)?0:Math.abs(l)||t._("UNKNOWN"):l||t._("UNKNOWN");const v=document.createElement("div");return v.id="contrast-tools",v.innerHTML=`\n \n
                    ${t._("CONTRAST")}
                    \n
                    ${E}
                    \n \n \n
                    ${o}
                    \n
                    \n \n \n
                    `,v}(a);o.appendChild(i),En(e.popper,a);const s=An(a);s&&o.appendChild(s),e.popper.setAttribute("contrast-tools-initialized",!0)}}let l=!0;e.popper.addEventListener("mousedown",function t(n){l&&n.target.matches('input[type="color"]')&&(e.reference.click(),l=!1,e.popper.removeEventListener("mousedown",t))});const c=()=>{i.removeEventListener("click",a),e.popper.removeEventListener("keydown",r),e.popper.removeEventListener("hidden",c)};e.popper.addEventListener("hidden",c)},onTrigger(e,t){"click"===t.type&&setTimeout(()=>{e.popper.querySelector(".close-btn").focus(),function(e){const t=e.querySelectorAll('a[href]:not([disabled]), button:not([disabled]), input[type="color"]'),n=t[0],o=t[t.length-1];e.addEventListener("keydown",t=>{const i="Tab"===t.key||9===t.keyCode,s=e.getRootNode();i&&(t.shiftKey?s.activeElement===n&&(o.focus(),t.preventDefault()):s.activeElement===o&&(n.focus(),t.preventDefault()))})}(e.popper)},0)},onHide(e){e.popper.querySelector(".close-btn").removeEventListener("click",()=>{e.hide()});e.reference.getRootNode().host.removeAttribute("data-sa11y-opened")}})}}class xn extends HTMLElement{connectedCallback(){const e=e=>({allowHTML:!0,delay:[500,0],trigger:"mouseenter focusin",arrow:!0,placement:"top",theme:"sa11y-theme sa11y-panel",role:"tooltip",aria:{content:null,expanded:null},appendTo:e,zIndex:2147483645}),o=this.attachShadow({mode:"open"}),i=document.createElement("style");i.innerHTML=In+Y,o.appendChild(i);const s=-1!==navigator.userAgent.indexOf("Mac")?'Option + S':'Alt + S';if(nn(n.Panel.skipButton,{...e(o),offset:[0,8],maxWidth:200,content:`${t._("SKIP_TO_ISSUE")} »
                    ${s}`}),this.object=nn(n.Panel.dismissButton,{offset:[0,8],maxWidth:200,...e(o)}),n.Global.developerPlugin){const i=n.Panel.developerItem.querySelector(".info-icon");i&&nn(i,{...e(o),triggerTarget:[n.Panel.developerItem],offset:[0,10],maxWidth:250,content:t._("DEVELOPER_DESC")})}if(n.Global.readabilityPlugin){const i=n.Panel.readabilityItem.querySelector(".info-icon");i&&nn(i,{...e(o),triggerTarget:[n.Panel.readabilityItem],offset:[0,10],maxWidth:250,content:t._("READABILITY_DESC")})}}}class kn extends HTMLElement{connectedCallback(){const e=this.attachShadow({mode:"open"}),t=document.createElement("style");t.innerHTML='.instance{display:block;position:relative}.instance-inline{display:inline-block;position:relative;text-align:end}button{border-radius:50%;box-shadow:0 0 16px 0 rgba(0,0,0,.31);cursor:pointer;display:block;padding:0;transition:all .2s ease-in-out;z-index:8888}button,button:after{height:36px;position:absolute;width:36px}button:after{content:"";left:-7px;padding:7px;top:-7px}.warning-btn{margin:20px}.error-btn,.good-btn{margin:10px}.error-btn-text,.good-btn-text,.warning-btn-text{margin:-30px 10px}.error-btn,.error-btn-text{background:50% 50% var(--sa11y-error-svg) no-repeat;background-color:var(--sa11y-error);background-size:22px;border:1px solid var(--sa11y-error)}.error-btn-text:focus,.error-btn-text:hover,.error-btn:focus,.error-btn:hover{background-color:var(--sa11y-error-hover)}.good-btn,.good-btn-text{background:50% 50% var(--sa11y-good) var(--sa11y-good-svg) no-repeat;background-color:var(--sa11y-good);background-size:20px;border:1px solid var(--sa11y-good)}.good-btn-text:focus,.good-btn-text:hover,.good-btn:focus,.good-btn:hover{background-color:var(--sa11y-good-hover)}.warning-btn,.warning-btn-text{background:50% 50% var(--sa11y-warning) var(--sa11y-warning-svg) no-repeat;background-color:var(--sa11y-warning);background-size:24px;border:1px solid var(--sa11y-warning);transform:scaleX(var(--sa11y-icon-direction))}.warning-btn-text:focus,.warning-btn-text:hover,.warning-btn:focus,.warning-btn:hover{background-color:var(--sa11y-warning-hover)}.sa11y-btn:active,.sa11y-btn:focus{box-shadow:0 0 0 5px var(--sa11y-focus-color);outline:0}@media screen and (forced-colors:active){.sa11y-btn{border:1px solid transparent!important;forced-color-adjust:none;outline:3px solid transparent!important}}'+Y,e.appendChild(t)}}const Nn=e=>{document.querySelectorAll("sa11y-annotation").forEach(t=>{const n=((e,t,n)=>{let o=e;for(;null!==o;){if(window.getComputedStyle(o).getPropertyValue(t)===n)return o;o=o.parentElement}return null})(t,"overflow","hidden");if(null!==n){if(e){if(e.split(",").flatMap(e=>[...document.querySelectorAll(e)]).includes(n))return}n.setAttribute("data-sa11y-overflow","")}})};class Sn extends HTMLElement{connectedCallback(){this.attachShadow({mode:"open"})}}class wn extends HTMLElement{connectedCallback(){const e=this.attachShadow({mode:"open"}),t=document.createElement("style");t.textContent="\n span.heading-label {\n background-color: #777678;\n background-image: linear-gradient(to bottom right, #b629ce, #16aec2);\n border-radius: 5px;\n border: 1px solid #36a5c3;\n color: white;\n display: inline-block;\n font-family: var(--sa11y-font-face);\n font-weight: 500;\n font-size: 18px;\n line-height: normal;\n letter-spacing: normal;\n margin: -5px 0 0 5px;\n padding: 3px;\n position: absolute;\n text-shadow: 1px 1px black;\n -webkit-text-fill-color: white;\n word-break: keep-all;\n z-index: 200;\n }\n @media screen and (forced-colors: active) {\n span.heading-label {\n border: 2px solid transparent;\n }\n }",e.appendChild(t)}}const Cn=(e,o)=>{if(0===e.offsetTop){const n=e.getRootNode().host,i=A(n,"display","none"),s=parseInt(n.getAttribute("data-sa11y-annotation"),10),a=w(o.find(e=>e.id===s));(e=>{const t=A(e.getRootNode().host,"display","none");if(null!==t){_(t.previousElementSibling||t.parentNode)}})(e);const r=e.getAttribute("data-tippy-content");if(T(`${t._("NOT_VISIBLE")}`,r,a),(()=>{const e=document.querySelector("sa11y-tooltips").shadowRoot.querySelector("button");null!==e&&e.click()})(),i){const e=i.previousElementSibling,{parentNode:t}=i;return e?E(e).top-150:E(t).top-150}}else I(),n.Panel.skipButton.focus();return E(e).top-150};let On=-1;const Pn=()=>{const e=v.getItem("sa11y-latest-dismissed");null!==e&&(On=parseInt(e,10)-1),v.removeItem("sa11y-latest-dismissed");const t=o("[data-sa11y-opened]","root");t[0]&&(On=parseInt(t[0].getAttribute("data-sa11y-position"),10))},Rn=e=>{Pn();const t=O.Annotations.Array;On>=t.length-1&&(On=-1);const o=t[On+1].shadowRoot.querySelector("button"),i=Cn(o,e);window.scrollTo({top:i,behavior:`${n.Global.scrollBehaviour}`}),0!==o.offsetTop&&(o.focus(),o.click()),On+=1};function Dn(e,t){O.Annotations.Array.length&&!n.Panel.skipButton.hasAttribute("disabled")&&(!e.altKey||"KeyS"!==e.code&&"Period"!==e.code?!e.altKey||"KeyW"!==e.code&&"Comma"!==e.code||(e.preventDefault(),(e=>{Pn();const t=O.Annotations.Array;On<=0&&(On=t.length);const o=O.Annotations.Array[On-1].shadowRoot.querySelector("button"),i=Cn(o,e);window.scrollTo({top:i,behavior:`${n.Global.scrollBehaviour}`}),0!==o.offsetTop&&(o.focus(),o.click()),On-=1,-1===On&&(On=O.Annotations.Array.length-1)})(t)):(e.preventDefault(),Rn(t)))}let Mn,Bn;function $n(e,o){return O.Found.Images.forEach(i=>{const s="noAria"===a(i)?i.getAttribute("alt"):a(i),l=i.closest(o.imageWithinLightbox?`a[href]:not(${o.imageWithinLightbox})`:"a[href]"),c=i.getAttribute("src")?i.getAttribute("src"):i.getAttribute("srcset"),p=l?m(l,n.Exclusions.LinkSpan).textContent:"",h=o.linkIgnoreStrings?p.replace(o.linkIgnoreStrings,""):p,g=l?b(h).length:0;if("true"!==i.getAttribute("aria-hidden")&&(1!==i.height||1!==i.width||!d(i))){if(l&&"true"===l.getAttribute("aria-hidden")){const n="-1"===l.getAttribute("tabindex");return void(o.checks.HIDDEN_FOCUSABLE&&!n&&e.push({element:i,type:o.checks.HIDDEN_FOCUSABLE.type||"error",content:t.sprintf(o.checks.HIDDEN_FOCUSABLE.content||"HIDDEN_FOCUSABLE"),dismiss:L(`IMGHIDDENFOCUSABLE${c}`),dismissAll:!!o.checks.HIDDEN_FOCUSABLE.dismissAll&&"LINK_HIDDEN_FOCUSABLE",developer:o.checks.HIDDEN_FOCUSABLE.developer||!0}))}if(null===s)if(l){const n=0===g?o.checks.MISSING_ALT_LINK:o.checks.MISSING_ALT_LINK_HAS_TEXT,s=0===g?"MISSING_ALT_LINK":"MISSING_ALT_LINK_HAS_TEXT";n&&e.push({element:i,type:n.type||"error",content:t.sprintf(n.content||s),dismiss:L(`${s+c+g}`),dismissAll:!!n.dismissAll&&s,developer:n.developer||!1})}else o.checks.MISSING_ALT&&e.push({element:i,type:o.checks.MISSING_ALT.type||"error",content:t.sprintf(o.checks.MISSING_ALT.content||"MISSING_ALT"),dismiss:L(`IMGNOALT${c}`),dismissAll:!!o.checks.MISSING_ALT.dismissAll&&"MISSING_ALT",developer:o.checks.MISSING_ALT.developer||!1});else{const n=b(u(s)),a=(e=>{const n=[null,null,null];[".avif",".png",".jpg",".jpeg",".webp",".gif",".tiff",".svg",".heif",".heic","http"].forEach(t=>{if(-1!==e.toLowerCase().indexOf(t.toLowerCase()))n[0]=t;else{const t=/\b\d{2,6}\s*x\s*\d{2,6}\b/,o=e.toLowerCase().match(t);o&&([n[0]]=o)}}),(o.susAltStopWords?o.susAltStopWords.split(",").map(e=>e.trim()):t._("SUS_ALT_STOPWORDS")).forEach(t=>{const o=e.toLowerCase().indexOf(t);o>-1&&o<6&&(n[1]=t)}),t._("PLACEHOLDER_ALT_STOPWORDS").forEach(t=>{e.length===t.length&&e.toLowerCase().indexOf(t)>=0&&(n[2]=t)});const{extraPlaceholderStopWords:i}=o;i.length&&i.split(",").map(e=>e.trim()).forEach(t=>{const o=e.toLowerCase().indexOf(t);o>-1&&o<6&&(n[2]=t)});return n})(n),d=i.getAttribute("aria-label")||i.getAttribute("aria-labelledby"),p=i.getAttribute("title"),h=""===s||" "===s,m=i.closest("figure"),f=m?.querySelector("figcaption"),A=f?f.textContent.trim():"",E=o.checks.LINK_IMAGE_LONG_ALT.maxLength||250,v=o.checks.IMAGE_ALT_TOO_LONG.maxLength||250;if(d&&""===n)return void(o.checks.MISSING_ALT&&e.push({element:i,type:o.checks.MISSING_ALT.type||"error",content:t.sprintf(o.checks.MISSING_ALT.content||"MISSING_ALT"),dismiss:L(`IMGNOALTARIA${c}`),dismissAll:!!o.checks.MISSING_ALT.dismissAll&&"MISSING_ALT",developer:o.checks.MISSING_ALT.developer||!1}));if(h){const n=o.checks.IMAGE_DECORATIVE_CAROUSEL.sources,s=n?i.closest(n):"";if(s){const n=s.querySelectorAll("img"),a=1===n.length?o.checks.IMAGE_DECORATIVE:o.checks.IMAGE_DECORATIVE_CAROUSEL,r=1===n.length?"IMAGE_DECORATIVE":"IMAGE_DECORATIVE_CAROUSEL";a&&e.push({element:i,type:a.type||"warning",content:t.sprintf(a.content||r),dismiss:L(r+c),dismissAll:!!a.dismissAll&&r,developer:a.developer||!1})}else if(l){const n=0===g?o.checks.LINK_IMAGE_NO_ALT_TEXT:o.checks.LINK_IMAGE_TEXT,s=0===g?"LINK_IMAGE_NO_ALT_TEXT":"LINK_IMAGE_TEXT";n&&e.push({element:i,type:n.type||(0===g?"error":"good"),content:t.sprintf(n.content||s),dismiss:L(`${s+c+g}`),dismissAll:!!n.dismissAll&&s,developer:n.developer||!1})}else if(m){const n=f&&A.length?o.checks.IMAGE_FIGURE_DECORATIVE:o.checks.IMAGE_DECORATIVE,s=f&&A.length?"IMAGE_FIGURE_DECORATIVE":"IMAGE_DECORATIVE";n&&e.push({element:i,type:n.type||"warning",content:t.sprintf(n.content||s),dismiss:L(`${s+c+A}`),dismissAll:!!n.dismissAll&&s,developer:n.developer||!1})}else o.checks.IMAGE_DECORATIVE&&e.push({element:i,type:o.checks.IMAGE_DECORATIVE.type||"warning",content:t.sprintf(o.checks.IMAGE_DECORATIVE.content||"IMAGE_DECORATIVE"),dismiss:L(`DECIMAGE${c}`),dismissAll:!!o.checks.IMAGE_DECORATIVE.dismissAll&&"IMAGE_DECORATIVE",developer:o.checks.IMAGE_DECORATIVE.developer||!1});return}if(null!==a[0]){const s=l?o.checks.LINK_ALT_FILE_EXT:o.checks.ALT_FILE_EXT,r=l?"LINK_ALT_FILE_EXT":"ALT_FILE_EXT";s&&e.push({element:i,type:s.type||"error",content:t.sprintf(s.content||r,a[0],n),dismiss:L(`${r+c+n}`),dismissAll:!!s.dismissAll&&r,developer:s.developer||!1})}else if(null!==a[2]){const s=l?o.checks.LINK_PLACEHOLDER_ALT:o.checks.ALT_PLACEHOLDER,a=l?"LINK_PLACEHOLDER_ALT":"ALT_PLACEHOLDER";s&&e.push({element:i,type:s.type||"error",content:t.sprintf(s.content||a,n),dismiss:L(`${a+c+n}`),dismissAll:!!s.dismissAll&&a,developer:s.developer||!1})}else if(null!==a[1]){const s=l?o.checks.LINK_SUS_ALT:o.checks.SUS_ALT,r=l?"LINK_SUS_ALT":"SUS_ALT";s&&e.push({element:i,type:s.type||"warning",content:t.sprintf(s.content||r,a[1],n),dismiss:L(`${r+c+n}`),dismissAll:!!s.dismissAll&&r,developer:s.developer||!1})}else if(l?s.length>E:s.length>v){const a=l?o.checks.LINK_IMAGE_LONG_ALT:o.checks.IMAGE_ALT_TOO_LONG,r=l?"LINK_IMAGE_LONG_ALT":"IMAGE_ALT_TOO_LONG",d=y(n,600);a&&e.push({element:i,type:a.type||"warning",content:t.sprintf(a.content||r,s.length,d),dismiss:L(`${r+c+n}`),dismissAll:!!a.dismissAll&&r,developer:a.developer||!1})}else if(l){const s=0===g?o.checks.LINK_IMAGE_ALT:o.checks.LINK_IMAGE_ALT_AND_TEXT,a=0===g?"LINK_IMAGE_ALT":"LINK_IMAGE_ALT_AND_TEXT";if(s){const o=u(b(r(l))),d=0===g?t.sprintf("LINK_IMAGE_ALT",n):`${t.sprintf("LINK_IMAGE_ALT_AND_TEXT",n,o)} ${t.sprintf("ACC_NAME_TIP")}`;e.push({element:i,type:s.type||"warning",content:s.content?t.sprintf(s.content,n,o):d,dismiss:L(`${a+c+n}`),dismissAll:!!s.dismissAll&&a,developer:s.developer||!1})}}else if(m){!!f&&A.toLowerCase()===n.trim().toLowerCase()?o.checks.IMAGE_FIGURE_DUPLICATE_ALT&&e.push({element:i,type:o.checks.IMAGE_FIGURE_DUPLICATE_ALT.type||"warning",content:t.sprintf(o.checks.IMAGE_FIGURE_DUPLICATE_ALT.content||"IMAGE_FIGURE_DUPLICATE_ALT",n),dismiss:L(`FIGDUPLICATE${c}`),dismissAll:!!o.checks.IMAGE_FIGURE_DUPLICATE_ALT.dismissAll&&"IMAGE_FIGURE_DUPLICATE_ALT",developer:o.checks.IMAGE_FIGURE_DUPLICATE_ALT.developer||!1}):o.checks.IMAGE_PASS&&e.push({element:i,type:o.checks.IMAGE_PASS.type||"good",content:t.sprintf(o.checks.IMAGE_PASS.content||"IMAGE_PASS",n),dismiss:L(`FIGIMGPASS${c+n}`),dismissAll:!!o.checks.IMAGE_PASS.dismissAll&&"IMAGE_PASS",developer:o.checks.IMAGE_PASS.developer||!1})}else o.checks.IMAGE_PASS&&(i.closest('button, [role="button"]')||e.push({element:i,type:o.checks.IMAGE_PASS.type||"good",content:t.sprintf(o.checks.IMAGE_PASS.content||"IMAGE_PASS",n),dismiss:L(`IMAGEPASS${c+n}`),dismissAll:!!o.checks.IMAGE_PASS.dismissAll&&"IMAGE_PASS",developer:o.checks.IMAGE_PASS.developer||!1}));p?.toLowerCase()===s.toLowerCase()&&o.checks.DUPLICATE_TITLE&&e.push({element:i,type:o.checks.DUPLICATE_TITLE.type||"warning",content:t.sprintf(o.checks.DUPLICATE_TITLE.content||"DUPLICATE_TITLE"),inline:!0,dismiss:L(`ALTDUPLICATETITLE${n}`),dismissAll:!!o.checks.DUPLICATE_TITLE.dismissAll&&"DUPLICATE_TITLE",developer:o.checks.DUPLICATE_TITLE.developer||!1})}}}),e}function Gn(e,o){const i=o.linkStopWords?[...t._("PARTIAL_ALT_STOPWORDS"),...o.linkStopWords.split(",").map(e=>e.trim())]:t._("PARTIAL_ALT_STOPWORDS"),s=e=>e.replace(/[^\w\s./]/g,"").replace(/\s+/g," ").trim(),a=(e,t)=>{const n=e.replace(/\./g,"").toLowerCase();let o=null;return t.forEach(e=>{n.length===e.length&&n.indexOf(e.toLowerCase())>=0&&(o=e)}),o},l={};return O.Found.Links.forEach(c=>{const d=function(e){let t=e.getAttribute("href");return t=b(t).toLowerCase(),t.endsWith("/")&&(t=t.slice(0,-1)),t=t.replace(/^https?:\/\/(www\.)?/,""),t=t.replace(/\.(html|php|htm|asp|aspx)$/i,""),t}(c),p=r(c,n.Exclusions.LinkSpan),h=b(o.linkIgnoreStrings?p.replace(o.linkIgnoreStrings,""):p),g=(e=>{const n=[null,null,null,null];return n[0]=a(e,i),t._("CLICK").forEach(t=>(new RegExp(`\\b${t}\\b`,"i").test(e)&&(n[1]=t),!1)),["doi.org/","dl.acm.org/","link.springer.com/","pubmed.ncbi.nlm.nih.gov/","scholar.google.com/","ieeexplore.ieee.org/","researchgate.net/publication/","sciencedirect.com/science/article/"].forEach(t=>(e.toLowerCase().indexOf(t)>=0&&(n[2]=t),!1)),["www.","http"].forEach(t=>(e.toLowerCase().startsWith(t)&&(n[3]=t),!1)),[".edu/",".com/",".net/",".org/",".us/",".ca/",".de/",".icu/",".uk/",".ru/",".info/",".top/",".xyz/",".tk/",".cn/",".ga/",".cf/",".nl/",".io/",".fr/",".pe/",".nz/",".pt/",".es/",".pl/",".ua/"].forEach(t=>(e.toLowerCase().indexOf(t)>=0&&(n[3]=t),!1)),n})(s(h)),y=1===h.length&&/[^a-zA-Z0-9]/g.test(h),A=h.match(/([<>↣↳←→↓«»↴]+)/),E=A?A[1]:null,v=c.getAttribute("title"),_="true"===c.getAttribute("aria-hidden"),I="-1"===c.getAttribute("tabindex"),T=c.querySelector(":scope [aria-labelledby], :scope [aria-label]")||c.getAttribute("aria-labelledby")||c.getAttribute("aria-label"),x=c.querySelector(":scope [aria-labelledby]")||c.getAttribute("aria-labelledby"),k=t._("NEW_WINDOW_PHRASES").some(e=>h.toLowerCase().includes(e)||f(c).toLowerCase().includes(e)),N=t._("CLICK").some(e=>new RegExp(`\\b${e}\\b`,"i").test(c.textContent)),S=["pdf","doc","docx","word","mp3","ppt","text","pptx","txt","exe","dmg","rtf","windows","macos","csv","xls","xlsx","mp4","mov","avi","zip"].concat(t._("FILE_TYPE_PHRASES")).some(e=>h.toLowerCase().includes(e)||f(c).toLowerCase().includes(e)),w=c.matches("\n a[href$='.pdf'],\n a[href$='.doc'],\n a[href$='.docx'],\n a[href$='.zip'],\n a[href$='.mp3'],\n a[href$='.txt'],\n a[href$='.exe'],\n a[href$='.dmg'],\n a[href$='.rtf'],\n a[href$='.pptx'],\n a[href$='.ppt'],\n a[href$='.xls'],\n a[href$='.xlsx'],\n a[href$='.csv'],\n a[href$='.mp4'],\n a[href$='.mov'],\n a[href$='.avi']\n "),O=h.replace(/'|"|-|\.|\s+/g,"").toLowerCase();if(!c.querySelectorAll("img").length){if(_)I||o.checks.HIDDEN_FOCUSABLE&&e.push({element:c,type:o.checks.HIDDEN_FOCUSABLE.type||"error",content:t.sprintf(o.checks.HIDDEN_FOCUSABLE.content||"HIDDEN_FOCUSABLE"),inline:!0,position:"afterend",dismiss:L(`LINKHIDDENFOCUS${d+O}`),dismissAll:!!o.checks.HIDDEN_FOCUSABLE.dismissAll&&"LINK_HIDDEN_FOCUSABLE",developer:o.checks.HIDDEN_FOCUSABLE.developer||!0});else if(!d&&""!==d||0!==h.length)if(null!==g[0])o.checks.LINK_STOPWORD&&e.push({element:c,type:o.checks.LINK_STOPWORD.type||"error",content:o.checks.LINK_STOPWORD.content?t.sprintf(o.checks.LINK_STOPWORD.content,g[0]):t.sprintf("LINK_STOPWORD",g[0])+t.sprintf("LINK_TIP"),inline:!0,position:"afterend",dismiss:L(`LINKSTOPWORD${d+O}`),dismissAll:!!o.checks.LINK_STOPWORD.dismissAll&&"LINK_STOPWORD",developer:o.checks.LINK_STOPWORD.developer||!1});else if(null!==g[2])h.length>8&&o.checks.LINK_DOI&&e.push({element:c,type:o.checks.LINK_DOI.type||"warning",content:t.sprintf(o.checks.LINK_DOI.content||"LINK_DOI"),inline:!0,dismiss:L(`LINKDOI${d+O}`),dismissAll:!!o.checks.LINK_DOI.dismissAll&&"LINK_DOI",developer:o.checks.LINK_DOI.developer||!1});else if(null!==g[3])h.length>(o.checks.LINK_URL.maxLength||40)&&o.checks.LINK_URL&&e.push({element:c,type:o.checks.LINK_URL.type||"warning",content:o.checks.LINK_URL.content?t.sprintf(o.checks.LINK_URL.content):t.sprintf("LINK_URL")+t.sprintf("LINK_TIP"),inline:!0,dismiss:L(`LINKURLNAME${d+O}`),dismissAll:!!o.checks.LINK_URL.dismissAll&&"LINK_URL",developer:o.checks.LINK_URL.developer||!1});else if(T){const r=u(h),l=m(c,n.Exclusions.LinkSpan),p=o.linkIgnoreStrings?f(l).replace(o.linkIgnoreStrings,""):f(l),g=s(p),b=a(g,i);o.checks.LINK_STOPWORD_ARIA&&null!==b?e.push({element:c,type:o.checks.LINK_STOPWORD_ARIA.type||"warning",content:o.checks.LINK_STOPWORD_ARIA.content?t.sprintf(o.checks.LINK_STOPWORD_ARIA.content,b,r):t.sprintf("LINK_STOPWORD_ARIA",b,r)+t.sprintf("LINK_TIP"),inline:!0,dismiss:L(`LINKSTOPWORDARIA${d+O}`),dismissAll:!!o.checks.LINK_STOPWORD_ARIA.dismissAll&&" LINK_STOPWORD_ARIA",developer:o.checks.LINK_STOPWORD_ARIA.developer||!0}):o.checks.LINK_LABEL&&e.push({element:c,type:o.checks.LINK_LABEL.type||"good",content:o.checks.LINK_LABEL.content?t.sprintf(o.checks.LINK_LABEL.content,r):`${t.sprintf("ACC_NAME",r)} ${t.sprintf("ACC_NAME_TIP")}`,inline:!0,position:"afterend",dismiss:L(`LINKGOOD${d+O}`),dismissAll:!!o.checks.LINK_LABEL.dismissAll&&"LINK_LABEL",developer:o.checks.LINK_LABEL.developer||!1});const y=C(c);o.checks.LABEL_IN_NAME&&y&&0!==c.textContent.length&&e.push({element:c,type:o.checks.LABEL_IN_NAME.type||"warning",content:t.sprintf(o.checks.LABEL_IN_NAME.content||"LABEL_IN_NAME",r),inline:!0,position:"afterend",dismiss:L(`LINKLABELNAME${d+O}`),dismissAll:!!o.checks.LABEL_IN_NAME.dismissAll&&"BTN_LABEL_IN_NAME",developer:o.checks.LABEL_IN_NAME.developer||!0})}else E?o.checks.LINK_SYMBOLS&&e.push({element:c,type:o.checks.LINK_SYMBOLS.type||"warning",content:t.sprintf(o.checks.LINK_SYMBOLS.content||"LINK_SYMBOLS",E),inline:!0,dismiss:L(`LINKSYMBOL${d+O}`),dismissAll:!!o.checks.LINK_SYMBOLS.dismissAll&&"LINK_SYMBOLS",developer:o.checks.LINK_SYMBOLS.developer||!1}):y&&o.checks.LINK_EMPTY&&e.push({element:c,type:o.checks.LINK_EMPTY.type||"error",content:t.sprintf(o.checks.LINK_EMPTY.content||"LINK_EMPTY"),inline:!0,position:"afterend",dismiss:L(`LINKCHAR${d}`),dismissAll:!!o.checks.LINK_EMPTY.dismissAll&&"LINK_EMPTY",developer:o.checks.LINK_EMPTY.developer||!1});else x?o.checks.LINK_EMPTY_LABELLEDBY&&e.push({element:c,type:o.checks.LINK_EMPTY_LABELLEDBY.type||"error",content:t.sprintf(o.checks.LINK_EMPTY_LABELLEDBY.content||"LINK_EMPTY_LABELLEDBY"),inline:!0,position:"afterend",dismiss:L(`LINKEMPTYLABELLEDBY${d}`),dismissAll:!!o.checks.LINK_EMPTY_LABELLEDBY.dismissAll&&"LINK_EMPTY_LABELLEDBY",developer:o.checks.LINK_EMPTY_LABELLEDBY.developer||!0}):c.children.length?o.checks.LINK_EMPTY_NO_LABEL&&e.push({element:c,type:o.checks.LINK_EMPTY_NO_LABEL.type||"error",content:t.sprintf(o.checks.LINK_EMPTY_NO_LABEL.content||"LINK_EMPTY_NO_LABEL"),inline:!0,position:"afterend",dismiss:L(`LINKEMPTYNOLABEL${d}`),dismissAll:!!o.checks.LINK_EMPTY_NO_LABEL.dismissAll&&"LINK_EMPTY_NO_LABEL",developer:o.checks.LINK_EMPTY_NO_LABEL.developer||!1}):o.checks.LINK_EMPTY&&e.push({element:c,type:o.checks.LINK_EMPTY.type||"error",content:t.sprintf(o.checks.LINK_EMPTY.content||"LINK_EMPTY"),inline:!0,position:"afterend",dismiss:L(`LINKEMPTY${d}`),dismissAll:!!o.checks.LINK_EMPTY.dismissAll&&"LINK_EMPTY",developer:o.checks.LINK_EMPTY.developer||!1});(null!==g[1]||N)&&o.checks.LINK_CLICK_HERE&&e.push({element:c,type:o.checks.LINK_CLICK_HERE.type||"warning",content:o.checks.LINK_CLICK_HERE.content?t.sprintf(o.checks.LINK_CLICK_HERE.content):t.sprintf("LINK_CLICK_HERE")+t.sprintf("LINK_TIP"),inline:!0,dismiss:L(`LINKCLICKHERE${d+O}`),dismissAll:!!o.checks.LINK_CLICK_HERE.dismissAll&&"LINK_CLICK_HERE",developer:o.checks.LINK_CLICK_HERE.developer||!1}),0!==f(c).length&&v?.toLowerCase()===h.toLowerCase()&&o.checks.DUPLICATE_TITLE&&e.push({element:c,type:o.checks.DUPLICATE_TITLE.type||"warning",content:t.sprintf(o.checks.DUPLICATE_TITLE.content||"DUPLICATE_TITLE"),inline:!0,dismiss:L(`LINKDUPLICATETITLE${d+O}`),dismissAll:!!o.checks.DUPLICATE_TITLE.dismissAll&&"DUPLICATE_TITLE",developer:o.checks.DUPLICATE_TITLE.developer||!1})}if(o.linksAdvancedPlugin&&0!==O.length){if(l[O]&&!l[d]){if(o.checks.LINK_IDENTICAL_NAME){const n=u(h);e.push({element:c,type:o.checks.LINK_IDENTICAL_NAME.type||"warning",content:o.checks.LINK_IDENTICAL_NAME.content?t.sprintf(o.checks.LINK_IDENTICAL_NAME.content,n):`${t.sprintf("LINK_IDENTICAL_NAME",n)} ${t.sprintf("ACC_NAME_TIP")}`,inline:!0,dismiss:L(`LINKSEEN${d+O}`),dismissAll:!!o.checks.LINK_IDENTICAL_NAME.dismissAll&&"LINK_IDENTICAL_NAME",developer:o.checks.LINK_IDENTICAL_NAME.developer||!1})}}else l[O]=!0,l[d]=!0;"_blank"!==c.getAttribute("target")?.toLowerCase()||w||k||o.checks.LINK_NEW_TAB&&e.push({element:c,type:o.checks.LINK_NEW_TAB.type||"warning",content:t.sprintf(o.checks.LINK_NEW_TAB.content||"LINK_NEW_TAB"),inline:!0,dismiss:L(`LINKNEWTAB${d+O}`),dismissAll:!!o.checks.LINK_NEW_TAB.dismissAll&&"LINK_NEW_TAB",developer:o.checks.LINK_NEW_TAB.developer||!1}),w&&!S&&o.checks.LINK_FILE_EXT&&e.push({element:c,type:o.checks.LINK_FILE_EXT.type||"warning",content:t.sprintf(o.checks.LINK_FILE_EXT.content||"LINK_FILE_EXT"),inline:!0,dismiss:L(`LINKEXT${d+O}`),dismissAll:!!o.checks.LINK_FILE_EXT.dismissAll&&"LINK_FILE_EXT",developer:o.checks.LINK_FILE_EXT.developer||!1})}}),e}function Un(e,o){if(o.checks.QA_BAD_LINK&&O.Found.CustomErrorLinks.forEach(n=>{e.push({element:n,type:o.checks.QA_BAD_LINK.type||"error",content:t.sprintf(o.checks.QA_BAD_LINK.content||"QA_BAD_LINK",n),inline:!0,dismiss:L(n.tagName+n.textContent),dismissAll:!!o.checks.QA_BAD_LINK.dismissAll&&"QA_BAD_LINK",developer:o.checks.QA_BAD_LINK.developer||!1})}),o.checks.QA_STRONG_ITALICS&&O.Found.StrongItalics.forEach(n=>{const i=f(n);0!==i.length&&i.length>400&&e.push({element:n.parentNode,type:o.checks.QA_STRONG_ITALICS.type||"warning",content:t.sprintf(o.checks.QA_STRONG_ITALICS.content||"QA_STRONG_ITALICS"),dismiss:L(n.tagName+n.textContent),dismissAll:!!o.checks.QA_STRONG_ITALICS.dismissAll&&"QA_STRONG_ITALICS",developer:o.checks.QA_STRONG_ITALICS.developer||!1})}),O.Found.Links.forEach(i=>{if(i.hasAttribute("href")){const s=i.getAttribute("href"),a=i.matches(n.Global.documentSources),r=i.matches('a[href$=".pdf"], a[href*=".pdf?"]');if(o.checks.QA_IN_PAGE_LINK){const n="button"===i.getAttribute("role")||i.hasAttribute("aria-haspopup")||i.hasAttribute("aria-expanded")||i.hasAttribute("onclick"),a=0!==f(i).length;if((s.startsWith("#")||""===s)&&!n&&a){const n=s.substring(1),a=i.getAttribute("aria-controls");document.getElementById(n)||document.getElementById(decodeURIComponent(n))||document.getElementById(encodeURIComponent(n))||document.getElementById(a)||document.querySelector(`a[name="${n}"]`)||e.push({element:i,type:o.checks.QA_IN_PAGE_LINK.type||"error",content:t.sprintf(o.checks.QA_IN_PAGE_LINK.content||"QA_IN_PAGE_LINK"),inline:!0,dismiss:L(`QAINPAGE${s}`),dismissAll:!!o.checks.QA_IN_PAGE_LINK.dismissAll&&"QA_IN_PAGE_LINK",developer:o.checks.QA_IN_PAGE_LINK.developer||!1})}}o.checks.QA_DOCUMENT&&a?e.push({element:i,type:o.checks.QA_DOCUMENT.type||"warning",content:t.sprintf(o.checks.QA_DOCUMENT.content||"QA_DOCUMENT"),inline:!0,dismiss:L(`DOC${s}`),dismissAll:!!o.checks.QA_DOCUMENT.dismissAll&&"QA_DOCUMENT",developer:o.checks.QA_DOCUMENT.developer||!1}):o.checks.QA_PDF&&r&&e.push({element:i,type:o.checks.QA_PDF.type||"warning",content:t.sprintf(o.checks.QA_PDF.content||"QA_PDF"),inline:!0,dismiss:L(`PDF${s}`),dismissAll:!!o.checks.QA_PDF.dismissAll&&"QA_PDF",developer:o.checks.QA_PDF.developer||!1})}}),o.checks.QA_BLOCKQUOTE&&O.Found.Blockquotes.forEach(n=>{const i=f(n);if(0!==i.length&&i.length<25){const s=u(i);e.push({element:n,type:o.checks.QA_BLOCKQUOTE.type||"warning",content:t.sprintf(o.checks.QA_BLOCKQUOTE.content||"QA_BLOCKQUOTE",s),dismiss:L(`BLOCKQUOTE${s}`),dismissAll:!!o.checks.QA_BLOCKQUOTE.dismissAll&&"QA_BLOCKQUOTE",developer:o.checks.QA_BLOCKQUOTE.developer||!1})}}),O.Found.Tables.forEach(n=>{if(!1===d(n)){const i=n.querySelectorAll("th"),s=n.querySelectorAll("h1, h2, h3, h4, h5, h6"),a=L(`TABLE${n.textContent}`);o.checks.TABLES_MISSING_HEADINGS&&0===i.length&&e.push({element:n,type:o.checks.TABLES_MISSING_HEADINGS.type||"error",content:t.sprintf(o.checks.TABLES_MISSING_HEADINGS.content||"TABLES_MISSING_HEADINGS"),dismiss:a,dismissAll:!!o.checks.TABLES_MISSING_HEADINGS.dismissAll&&"TABLES_MISSING_HEADINGS",developer:o.checks.TABLES_MISSING_HEADINGS.developer||!1}),o.checks.TABLES_SEMANTIC_HEADING&&s.length>0&&s.forEach(n=>{e.push({element:n,type:o.checks.TABLES_SEMANTIC_HEADING.type||"error",content:t.sprintf(o.checks.TABLES_SEMANTIC_HEADING.content||"TABLES_SEMANTIC_HEADING"),dismiss:a,dismissAll:!!o.checks.TABLES_SEMANTIC_HEADING.dismissAll&&"TABLES_SEMANTIC_HEADING",developer:o.checks.TABLES_SEMANTIC_HEADING.developer||!1})}),i.forEach(n=>{o.checks.TABLES_EMPTY_HEADING&&0===n.textContent.trim().length&&e.push({element:n,type:o.checks.TABLES_EMPTY_HEADING.type||"error",content:t.sprintf(o.checks.TABLES_EMPTY_HEADING.content||"TABLES_EMPTY_HEADING"),position:"afterbegin",dismiss:a,dismissAll:!!o.checks.TABLES_EMPTY_HEADING.dismissAll&&"TABLES_EMPTY_HEADING",developer:o.checks.TABLES_EMPTY_HEADING.developer||!1})})}}),o.checks.QA_FAKE_HEADING){const n=(n,i)=>{e.push({element:n,type:o.checks.QA_FAKE_HEADING.type||"warning",content:t.sprintf(o.checks.QA_FAKE_HEADING.content||"QA_FAKE_HEADING",i),dismiss:L(`BOLD${i}`),inline:!0,dismissAll:!!o.checks.QA_FAKE_HEADING.dismissAll&&"QA_FAKE_HEADING",developer:o.checks.QA_FAKE_HEADING.developer||!1})},i=e=>{const t=e.previousElementSibling;if(!t)return!1;return["H1","H2","H3","H4","H5","H6"].includes(t.tagName)},s='h1, h2, h3, h4, h5, h6, [role="heading"][aria-level], blockquote, table',a=e=>{const t=getComputedStyle(e).fontSize.replace("px",""),o=f(e),a=null===o.match(/[.;?!"]/),r=o.length>=4&&o.length<=120;if(t>=24&&!e.closest(s)&&r&&a&&!i(e)){const t=u(o);n(e,t)}},r=e=>{if(/^(|)/i.test(e.innerHTML.trim())&&!e.closest(s)){const t=e.querySelector("strong, b"),o=f(t),i=null===o.match(/[.:;?!"']/);if(o.length>=3&&o.length<=120&&i){const i=m(e,["strong","b"]).textContent.trim().length;if(0!==i&&i<=250)return;const s=u(o);n(t,s)}}};O.Found.Paragraphs.forEach(e=>{a(e),r(e)})}if(o.checks.QA_FAKE_LIST){const n=new RegExp(/(([023456789][\d\s])|(1\d))/,""),i=new RegExp(/(^[aA1αаΑ]|[^\p{Alphabetic}\s])[-\s.)]/,"u"),s=new RegExp(/\p{Extended_Pictographic}/,"u"),a=["a","A","α","Α","а","А","1"],r=/[([{#]/,l={2:"1",b:"a",B:"A","β":"α","Β":"Α","б":"а","Б":"А"},c=e=>e.replace(/^b|^B|^б|^Б|^β|^В|^2/,e=>l[e]);let d="",p="",u=!1;O.Found.Paragraphs.forEach((l,h)=>{let g=!1,m=!1;p=p||f(l).replace("(","");const b=p.substring(0,2),y=b.match(i),A=b.match(n),E=b.match(s),v=r.test(b.charAt(0));if(b.length>0&&b!==d&&!A&&(y||E||v)){const n=O.Found.Paragraphs[h+1];if(n){if(g=f(n).replace("(","").substring(0,2),a.includes(g?.toLowerCase().trim()))return;const e=c(g);y?"A "!==b&&b===e&&(m=!0):E&&!u&&e.match(s)&&(m=!0,u=!0)}if(!m){let e=l?.querySelector("br")?.nextSibling?.nodeValue;if(e){e=e.replace(/<\/?[^>]+(>|$)/g,"").trim().substring(0,2);(r.test(e.charAt(0))||b===c(e)||!u&&e.match(s))&&(m=!0)}}m?(e.push({element:l,type:o.checks.QA_FAKE_LIST.type||"warning",content:t.sprintf(o.checks.QA_FAKE_LIST.content||"QA_FAKE_LIST",b),dismiss:L(`LIST${l.textContent}`),dismissAll:!!o.checks.QA_FAKE_LIST.dismissAll&&"QA_FAKE_LIST",developer:o.checks.QA_FAKE_LIST.developer||!1}),d=b):d=""}p=g?"":g})}if(o.checks.QA_UPPERCASE){const n=n=>{let i="";"LI"===n.tagName?n.childNodes.forEach(e=>{3===e.nodeType&&(i+=e.textContent)}):i=f(n);const s=i.match(/([A-Z]{2,}[ ])([A-Z]{2,}[ ])([A-Z]{2,}[ ])([A-Z]{2,})/g);s&&s[0].length>10&&e.push({element:n,type:o.checks.QA_UPPERCASE.type||"warning",content:t.sprintf(o.checks.QA_UPPERCASE.content||"QA_UPPERCASE"),dismiss:L(`UPPERCASE${i}`),dismissAll:!!o.checks.QA_UPPERCASE.dismissAll&&"QA_UPPERCASE",developer:o.checks.QA_UPPERCASE.developer||!1})};O.Found.Paragraphs.forEach(e=>n(e)),O.Found.Headings.forEach(e=>n(e)),O.Found.Lists.forEach(e=>n(e)),O.Found.Blockquotes.forEach(e=>n(e))}const i=n=>{const i=getComputedStyle(n),{textDecorationLine:s,textAlign:a,fontSize:r}=i;!o.checks.QA_UNDERLINE||"underline"!==s||n.closest("[onclick]")||n.closest("a[href]")||n.closest("ABBR")||(n=>{e.push({element:n,type:o.checks.QA_UNDERLINE.type||"warning",content:t.sprintf(o.checks.QA_UNDERLINE.content||"QA_UNDERLINE"),inline:!0,dismiss:L(`UNDERLINE${n.textContent}`),dismissAll:!!o.checks.QA_UNDERLINE.dismissAll&&"QA_UNDERLINE",developer:o.checks.QA_UNDERLINE.developer||!1})})(n);const l=o.checks.QA_SMALL_TEXT.fontSize||10,c=parseFloat(r),d=!((n.parentElement?parseFloat(getComputedStyle(n.parentElement).fontSize):null)===c)&&c>1&&c<=l;o.checks.QA_SMALL_TEXT&&d&&(n=>{e.push({element:n,type:o.checks.QA_SMALL_TEXT.type||"warning",content:t.sprintf(o.checks.QA_SMALL_TEXT.content||"QA_SMALL_TEXT"),dismiss:L(`SMALL${n.textContent}`),dismissAll:!!o.checks.QA_SMALL_TEXT.dismissAll&&"QA_SMALL_TEXT",developer:o.checks.QA_SMALL_TEXT.developer||!1})})(n);const p=(n.parentElement?getComputedStyle(n.parentElement).textAlign:null)===a;o.checks.QA_JUSTIFY&&"justify"===a&&!p&&(n=>{e.push({element:n,type:o.checks.QA_JUSTIFY.type||"warning",content:t.sprintf(o.checks.QA_JUSTIFY.content||"QA_JUSTIFY"),dismiss:L(`JUSTIFIED${n.textContent}`),dismissAll:!!o.checks.QA_JUSTIFY.dismissAll&&"QA_JUSTIFY",developer:o.checks.QA_JUSTIFY.developer||!1})})(n)};if(o.checks.QA_UNDERLINE||o.checks.QA_JUSTIFY||o.checks.QA_SMALL_TEXT)for(let e=0;e3===e.nodeType).map(e=>e.textContent).join("").trim().length&&i(t)}return o.checks.QA_SUBSCRIPT&&O.Found.Subscripts.forEach(n=>{const i=f(n);i.length>=80&&e.push({element:n,type:o.checks.QA_SUBSCRIPT.type||"warning",content:t.sprintf(o.checks.QA_SUBSCRIPT.content||"QA_SUBSCRIPT"),inline:!0,dismiss:L(n.tagName+i),dismissAll:!!o.checks.QA_SUBSCRIPT.dismissAll&&"QA_SUBSCRIPT",developer:o.checks.QA_SUBSCRIPT.developer||!1})}),o.checks.QA_NESTED_COMPONENTS&&O.Found.NestedComponents.forEach(n=>{const i=o.checks.QA_NESTED_COMPONENTS.sources||'[role="tablist"], details';n.querySelector(i)&&e.push({element:n,type:o.checks.QA_NESTED_COMPONENTS.type||"warning",content:t.sprintf(o.checks.QA_NESTED_COMPONENTS.content||"QA_NESTED_COMPONENTS"),dismiss:L(`NESTED${n.textContent}`),dismissAll:!!o.checks.QA_NESTED_COMPONENTS.dismissAll&&"QA_NESTED_COMPONENTS",developer:o.checks.QA_NESTED_COMPONENTS.developer||!1})}),e}class Hn{constructor(i){const s={...e,...i,checks:{...e.checks,...i.checks}};this.initialize=()=>{var e;(()=>{const{doNotRun:e}=s;return e.trim().length>0&&document.querySelector(e)})()||(customElements.define("sa11y-heading-label",wn),customElements.define("sa11y-heading-anchor",Sn),customElements.define("sa11y-annotation",kn),customElements.define("sa11y-tooltips",Tn),customElements.define("sa11y-panel-tooltips",xn),customElements.define("sa11y-control-panel",Q),customElements.define("sa11y-console-error",z),n.initializeGlobal(s),n.initializeReadability(s),n.initializeExclusions(s),s.developerChecksOnByDefault&&(null===v.getItem("sa11y-developer")||s.checkAllHideToggles)&&v.setItem("sa11y-developer","On"),e=()=>{if(s.headless)this.checkAll(),v.removeItem("sa11y-dismissed");else{const i=v.getItem("sa11y-position"),{panelPosition:a}=s;!s.showMovePanelToggle||i&&!i.includes("top")==!a.includes("top")||v.setItem("sa11y-position",a);const r=new Q;document.body.appendChild(r),function(e,o){n.Global.showMovePanelToggle&&(n.Panel.movePanelToggle.onclick=async()=>{const e=v.getItem("sa11y-position"),[t,o]=e.includes("top")?["top-right","top-left"]:["right","left"],i=e===t?o:t;v.setItem("sa11y-position",i),[t,o].forEach(e=>{n.Panel.toggle.classList.replace(e,i),n.Panel.panel.classList.replace(e,i)}),n.Panel.movePanelToggle.setAttribute("aria-pressed",e===t?"true":"false")}),n.Global.developerPlugin?n.Panel.developerToggle.onclick=async()=>{"On"===v.getItem("sa11y-developer")?(v.setItem("sa11y-developer","Off"),n.Panel.developerToggle.textContent=`${t._("OFF")}`,n.Panel.developerToggle.setAttribute("aria-pressed","false"),o(!1),await e()):(v.setItem("sa11y-developer","On"),n.Panel.developerToggle.textContent=`${t._("ON")}`,n.Panel.developerToggle.setAttribute("aria-pressed","true"),o(!1),await e())}:v.setItem("sa11y-developer","Off"),n.Readability.Plugin&&(n.Panel.readabilityToggle.onclick=async()=>{"On"===v.getItem("sa11y-readability")?(v.setItem("sa11y-readability","Off"),n.Panel.readabilityToggle.textContent=`${t._("OFF")}`,n.Panel.readabilityToggle.setAttribute("aria-pressed","false"),n.Panel.readability.classList.remove("active"),o(!1),await e()):(v.setItem("sa11y-readability","On"),n.Panel.readabilityToggle.textContent=`${t._("ON")}`,n.Panel.readabilityToggle.setAttribute("aria-pressed","true"),n.Panel.readability.classList.add("active"),o(!1),await e())},"On"===v.getItem("sa11y-readability")&&n.Panel.readability.classList.add("active"));const i=window.matchMedia("(prefers-color-scheme: dark)"),{themeToggle:s}=n.Panel,{html:a}=n.Global,r=e=>{a.setAttribute("data-sa11y-theme",e),v.setItem("sa11y-theme",e);const t=s.querySelector("span").classList;t.toggle("moon-icon","light"===e),t.toggle("sun-icon","dark"===e),s.setAttribute("aria-pressed","dark"===e?"true":"false")},l=v.getItem("sa11y-theme")||(i.matches?"dark":"light");r(l),i.addEventListener("change",()=>{r(i.matches?"dark":"light")}),s.onclick=()=>{const e=v.getItem("sa11y-theme")||(i.matches?"dark":"light");r("dark"===e?"light":"dark")},n.Global.colourFilterPlugin&&n.Panel.colourFilterSelect.addEventListener("change",async()=>{const i=parseInt(n.Panel.colourFilterSelect.value,10),s=["protanopia","deuteranopia","tritanopia","monochromacy"],a=[t._("RED_EYE"),t._("GREEN_EYE"),t._("BLUE_EYE"),t._("MONO_EYE")];i>=1&&i<=4?window.matchMedia("(forced-colors: active)").matches?T(t._("COLOUR_FILTER_HIGH_CONTRAST")):(n.Root.areaToCheck.setAttribute("data-sa11y-filter",s[i-1]),n.Panel.colourFilterIcon.setAttribute("aria-label",a[i-1]),x(["data-sa11y-error","data-sa11y-warning","data-sa11y-good","data-sa11y-error-inline","data-sa11y-warning-inline","data-sa11y-overflow"],"document"),k(["sa11y-annotation","sa11y-tooltips","sa11y-heading-label"],"document"),n.Panel.skipButton.disabled=!0,n.Panel.pageIssues.classList.remove("active"),n.Panel.settingsContent.classList.add("hide-settings-border"),n.Panel.colourFilterSelect.classList.add("active"),n.Panel.colourPanel.classList.add("active"),n.Panel.colourPanel.setAttribute("data-colour",s[i-1]),n.Panel.content.hidden=!0):(n.Root.areaToCheck.removeAttribute("data-sa11y-filter"),n.Panel.settingsContent.classList.remove("hide-settings-border"),n.Panel.colourFilterSelect.classList.remove("active"),n.Panel.colourPanel.classList.remove("active"),n.Panel.colourPanel.removeAttribute("data-colour"),n.Panel.content.hidden=!1,o(!1),await e())})}(this.checkAll,this.resetAll),function(){n.Panel.outlineToggle.addEventListener("click",()=>{"true"===n.Panel.outlineToggle.getAttribute("aria-expanded")?j():(V(),J(),X()),n.Panel.outlineHeader.focus()}),"Opened"===v.getItem("sa11y-outline")&&V(),n.Global.showImageOutline&&(n.Panel.imagesToggle.addEventListener("click",()=>{"true"===n.Panel.imagesToggle.getAttribute("aria-expanded")?X():(q(),j(),J()),n.Panel.imagesHeader.focus()}),"Opened"===v.getItem("sa11y-images")&&q()),n.Panel.settingsToggle.addEventListener("click",()=>{"true"===n.Panel.settingsToggle.getAttribute("aria-expanded")?J():(Z(),j(),X()),n.Panel.settingsHeader.focus()}),"Opened"===v.getItem("sa11y-settings")&&Z(),n.Panel.skipToPageIssues.addEventListener("click",()=>{n.Panel.pageIssuesHeader.focus()});const e=n.Panel.panel.querySelectorAll("[role=tab]");if(0!==e.length){let t=Array.from(e).findIndex(e=>e.classList.contains("active"));e.forEach(n=>{n.addEventListener("keydown",n=>{"ArrowRight"===n.key?(n.preventDefault(),t=(t+1)%e.length,e[t].focus()):"ArrowLeft"===n.key&&(n.preventDefault(),t=(t-1+e.length)%e.length,e[t].focus())})})}}(),function(){if(n.Global.colourFilterPlugin&&!1===n.Global.headless){const e=document.createElement("div");e.id="sa11y-colour-filters",e.setAttribute("aria-hidden","true"),e.innerHTML='\n \x3c!-- DaltonLens SVG filters to simulate color vision deficiencies --\x3e\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n ',document.body.appendChild(e)}}(),R(s.detectSPArouting,this.checkAll,this.resetAll),this.panelTooltips=new xn,document.body.appendChild(this.panelTooltips),n.Panel.toggle.disabled=!1,setTimeout(()=>{this.resetAll(),this.checkAll()},s.delayCheck),s.delayCheck>=700&&(n.Panel.toggle.disabled=!0),e=this.checkAll,o=this.resetAll,n.Panel.toggle.addEventListener("click",t=>{"Opened"===v.getItem("sa11y-panel")?(t.preventDefault(),v.setItem("sa11y-panel","Closed"),n.Panel.toggle.classList.remove("on"),n.Panel.toggle.setAttribute("aria-expanded","false"),o(),0===n.Panel.notifCount.innerHTML.trim().length?n.Panel.notifBadge.style.display="none":n.Panel.notifBadge.style.display="flex"):(t.preventDefault(),v.setItem("sa11y-panel","Opened"),n.Panel.toggle.classList.add("on"),n.Panel.toggle.setAttribute("aria-expanded","true"),e(),N(n.Panel.outlineList,n.Panel.outlineContent))}),"Opened"===v.getItem("sa11y-panel")&&(n.Panel.toggle.classList.add("on"),n.Panel.toggle.setAttribute("aria-expanded","true"),n.Panel.panel.style.transform=""),document.onkeydown=e=>{const t=e||window.event;t.altKey&&"KeyA"===t.code&&(n.Panel.toggle.click(),n.Panel.toggle.focus())}}var e,o},"complete"===document.readyState?e():window.addEventListener("load",e))},this.checkAll=async(e=s.checkRoot,o=s.readabilityRoot)=>{try{this.results=[],this.headingOutline=[],this.imageOutline=[],this.errorCount=0,this.warningCount=0,this.customChecksRunning=!1;document.querySelector(e)||!1!==s.headless||T(`${t.sprintf("MISSING_ROOT",e)}`),n.initializeRoot(e,o),function(e){if(e.autoDetectShadowComponents){const t=n.Exclusions.Sa11yElements,o=document.querySelector(e.checkRoot);(o?Array.from(o.querySelectorAll(`*:not(${t})`)):Array.from(document.body.querySelectorAll(`*:not(${t})`))).forEach(e=>{e.shadowRoot&&"open"===e.shadowRoot.mode&&(e.setAttribute("data-sa11y-has-shadow-root",""),P(e))})}else e.shadowComponents&&document.querySelectorAll(e.shadowComponents).forEach(e=>{e.setAttribute("data-sa11y-has-shadow-root",""),P(e)})}(s),O.initializeElements(s),function(e,o,i){let s,a="";O.Found.Headings.forEach((c,d)=>{const p=r(c,n.Exclusions.HeaderSpan),h=b(o.headerIgnoreStrings?p.replace(o.headerIgnoreStrings,""):p),g=u(h),m=n.Root.areaToCheck.contains(c),f=n.Root.areaToCheck.contains(c.getRootNode().host),E=m||f,v=parseInt(c.getAttribute("aria-level")||c.tagName.slice(1),10),_=h.length,I=o.checks.HEADING_LONG.maxLength||160;let T=null,x=null,k=null,N=null;if(0===_)if(c.querySelectorAll("img").length){const e=c.querySelector("img")?.getAttribute("alt");!c.querySelector("img")||e&&""!==e.trim()||o.checks.HEADING_EMPTY_WITH_IMAGE&&(T=o.checks.HEADING_EMPTY_WITH_IMAGE.type||"error",x=t.sprintf(o.checks.HEADING_EMPTY_WITH_IMAGE.content||"HEADING_EMPTY_WITH_IMAGE",v),k=o.checks.HEADING_EMPTY_WITH_IMAGE.developer||!1,N=!!o.checks.HEADING_EMPTY_WITH_IMAGE.dismissAll&&"HEADING_EMPTY_WITH_IMAGE")}else o.checks.HEADING_EMPTY&&(T=o.checks.HEADING_EMPTY.type||"error",x=t.sprintf(o.checks.HEADING_EMPTY.content||"HEADING_EMPTY",v),k=o.checks.HEADING_EMPTY.developer||!1,N=!!o.checks.HEADING_EMPTY.dismissAll&&"HEADING_EMPTY");else v-s>1&&0!==d?o.checks.HEADING_SKIPPED_LEVEL&&(T=o.checks.HEADING_SKIPPED_LEVEL.type||"error",x=t.sprintf(o.checks.HEADING_SKIPPED_LEVEL.content||"HEADING_SKIPPED_LEVEL",s,v,y(g,60),y(a,60),s+1),k=o.checks.HEADING_SKIPPED_LEVEL.developer||!1,N=!!o.checks.HEADING_SKIPPED_LEVEL.dismissAll&&"HEADING_SKIPPED_LEVEL"):0===d&&1!==v&&2!==v?o.checks.HEADING_FIRST&&(T=o.checks.HEADING_FIRST.type||"error",x=t.sprintf(o.checks.HEADING_FIRST.content||"HEADING_FIRST"),k=o.checks.HEADING_FIRST.developer||!1,N=!!o.checks.HEADING_FIRST.dismissAll&&"HEADING_FIRST"):_>I&&o.checks.HEADING_LONG&&(T=o.checks.HEADING_LONG.type||"warning",x=t.sprintf(o.checks.HEADING_LONG.content||"HEADING_LONG",I,_),k=o.checks.HEADING_LONG.developer||!1,N=!!o.checks.HEADING_LONG.dismissAll&&"HEADING_LONG");x&&T&&e.push({element:c,type:T,content:x,dismiss:L(`H${v+g}`),dismissAll:N,isWithinRoot:E,developer:k}),s=v,a=g;const S=l(c),w=A(c,"display","none");i.push({element:c,headingLevel:v,text:g,index:d,type:T,hidden:S,visibleParent:w,dismiss:L(`H${v+g}`),isWithinRoot:E})}),o.checks.HEADING_MISSING_ONE&&0===O.Found.HeadingOne.length&&e.push({type:o.checks.HEADING_MISSING_ONE.type||"warning",content:t.sprintf(o.checks.HEADING_MISSING_ONE.content||"HEADING_MISSING_ONE"),dismiss:"MISSINGH1",developer:o.checks.HEADING_MISSING_ONE.developer||!1})}(this.results,s,this.headingOutline),Gn(this.results,s),$n(this.results,s),function(e,n){n.formLabelsPlugin&&O.Found.Inputs.forEach(o=>{const i="true"===o.getAttribute("aria-hidden"),s="-1"===o.getAttribute("tabindex");if(d(o)||i&&s)return;const a=b(r(o)),l=o.getAttribute("alt"),c=o.getAttribute("type"),p=o.getAttribute("title"),h=o.getAttribute("aria-label")||o.getAttribute("aria-labelledby");if("submit"===c||"button"===c||"hidden"===c)return;if("image"===c)return void(!n.checks.LABELS_MISSING_IMAGE_INPUT||l&&""!==l.trim()||h||p||e.push({element:o,type:n.checks.LABELS_MISSING_IMAGE_INPUT.type||"error",content:t.sprintf(n.checks.LABELS_MISSING_IMAGE_INPUT.content||"LABELS_MISSING_IMAGE_INPUT"),dismiss:L(`INPUTIMAGE${c+a}`),dismissAll:!!n.checks.LABELS_MISSING_IMAGE_INPUT.dismissAll&&"LABELS_MISSING_IMAGE_INPUT",developer:n.checks.LABELS_MISSING_IMAGE_INPUT.developer||!0}));if("reset"===c)return void(n.checks.LABELS_INPUT_RESET&&e.push({element:o,type:n.checks.LABELS_INPUT_RESET.type||"warning",content:t.sprintf(n.checks.LABELS_INPUT_RESET.content||"LABELS_INPUT_RESET"),dismiss:L(`INPUTRESET${c+a}`),dismissAll:!!n.checks.LABELS_INPUT_RESET.dismissAll&&"LABELS_INPUT_RESET",developer:n.checks.LABELS_INPUT_RESET.developer||!1}));if(h||p){if(0===a.length)n.checks.LABELS_MISSING_LABEL&&e.push({element:o,type:n.checks.LABELS_MISSING_LABEL.type||"error",content:t.sprintf(n.checks.LABELS_MISSING_LABEL.content||"LABELS_MISSING_LABEL"),dismiss:L(`INPUTMISSING${c+a}`),dismissAll:!!n.checks.LABELS_MISSING_LABEL.dismissAll&&"LABELS_MISSING_LABEL",developer:n.checks.LABELS_MISSING_LABEL.developer||!0});else if(n.checks.LABELS_ARIA_LABEL_INPUT){const i=u(a);e.push({element:o,type:n.checks.LABELS_ARIA_LABEL_INPUT.type||"warning",content:n.checks.LABELS_ARIA_LABEL_INPUT.content?t.sprintf(n.checks.LABELS_ARIA_LABEL_INPUT.content,i):`${t.sprintf("LABELS_ARIA_LABEL_INPUT",i)} ${t.sprintf("ACC_NAME_TIP")}`,dismiss:L(`INPUTARIA${c+a}`),dismissAll:!!n.checks.LABELS_ARIA_LABEL_INPUT.dismissAll&&"LABELS_ARIA_LABEL_INPUT",developer:n.checks.LABELS_ARIA_LABEL_INPUT.developer||!0})}return}const g=o.closest("label"),m=g?b(r(g)):"";if(g&&m.length)return;const f=o.getAttribute("id");f?O.Found.Labels.some(e=>e.getAttribute("for")===f)||n.checks.LABELS_NO_FOR_ATTRIBUTE&&e.push({element:o,type:n.checks.LABELS_NO_FOR_ATTRIBUTE.type||"error",content:t.sprintf(n.checks.LABELS_NO_FOR_ATTRIBUTE.content||"LABELS_NO_FOR_ATTRIBUTE",f),dismiss:L(`INPUTNOFOR${c+a}`),dismissAll:!!n.checks.LABELS_NO_FOR_ATTRIBUTE.dismissAll&&"LABELS_NO_FOR_ATTRIBUTE",developer:n.checks.LABELS_NO_FOR_ATTRIBUTE.developer||!0}):n.checks.LABELS_MISSING_LABEL&&e.push({element:o,type:n.checks.LABELS_MISSING_LABEL.type||"error",content:t.sprintf(n.checks.LABELS_MISSING_LABEL.content||"LABELS_MISSING_LABEL"),dismiss:L(`INPUTNOID${c+a}`),dismissAll:!!n.checks.LABELS_MISSING_LABEL.dismissAll&&"LABELS_MISSING_LABEL",developer:n.checks.LABELS_MISSING_LABEL.developer||!0}),n.checks.LABELS_PLACEHOLDER&&o.placeholder&&0!==o.placeholder&&e.push({element:o,type:n.checks.LABELS_PLACEHOLDER.type||"warning",content:t.sprintf(n.checks.LABELS_PLACEHOLDER.content||"LABELS_PLACEHOLDER"),dismiss:L(`INPUTPLACEHOLDER${c+a}`),dismissAll:!!n.checks.LABELS_PLACEHOLDER.dismissAll&&"LABELS_PLACEHOLDER",developer:n.checks.LABELS_PLACEHOLDER.developer||!0})})}(this.results,s),Un(this.results,s),function(e,o){if(o.checks.META_LANG&&(!O.Found.Language||O.Found.Language.length<2)&&e.push({type:o.checks.META_LANG.type||"error",content:t.sprintf(o.checks.META_LANG.content||"META_LANG"),dismiss:L("LANG"),developer:o.checks.META_LANG.developer||!0}),o.checks.META_TITLE){const n=document.querySelector("title:not(svg title)");n&&0!==n.textContent.trim().length||e.push({type:o.checks.META_TITLE.type||"error",content:t.sprintf(o.checks.META_TITLE.content||"META_TITLE"),dismiss:L("TITLE"),developer:o.checks.META_TITLE.developer||!0})}if(o.checks.META_SCALABLE||o.checks.META_MAX){const n=document.querySelector('meta[name="viewport"]');if(n){const i=n.getAttribute("content");if(i){const n=i.split(",").reduce((e,t)=>{const[n,o]=t.split("=").map(e=>e.trim());return e[n]=o,e},{});!o.checks.META_SCALABLE||"no"!==n["user-scalable"]&&"0"!==n["user-scalable"]||e.push({type:o.checks.META_SCALABLE.type||"error",content:t.sprintf(o.checks.META_SCALABLE.content||"META_SCALABLE"),dismiss:L("SCALABLE"),developer:o.checks.META_SCALABLE.developer||!0});const s=parseFloat(n["maximum-scale"]);o.checks.META_MAX&&!Number.isNaN(s)&&s<2&&e.push({type:o.checks.META_MAX.type||"error",content:t.sprintf(o.checks.META_MAX.content||"META_MAX"),dismiss:L("MAXSCALE"),developer:o.checks.META_MAX.developer||!0})}}}o.checks.META_REFRESH&&document.querySelector('meta[http-equiv="refresh"]')&&e.push({type:o.checks.META_REFRESH.type||"error",content:t.sprintf(o.checks.META_REFRESH.content||"META_REFRESH"),dismiss:L("REFRESH"),developer:o.checks.META_REFRESH.developer||!0});o.checks.DUPLICATE_ID&&document.querySelectorAll("body, [data-sa11y-has-shadow-root]").forEach(i=>{const s=new Set,a=(n,i)=>{n.forEach(n=>{const{id:a}=n;"string"==typeof a&&0!==a.trim().length&&(a&&!s.has(a)?s.add(a):Array.from(i.querySelectorAll(`\n a[href*="${a}"],\n label[for*="${a}"],\n [aria-labelledby*="${a}"],\n [aria-controls*="${a}"],\n [aria-owns*="${a}"]`)).length>0&&e.push({element:n,type:o.checks.DUPLICATE_ID.type||"error",content:t.sprintf(o.checks.DUPLICATE_ID.content||"DUPLICATE_ID",a),dismiss:L(`DUPLICATEID${a}${n.textContent}`),dismissAll:!!o.checks.DUPLICATE_ID.dismissAll&&"DUPLICATE_ID",developer:o.checks.DUPLICATE_ID.developer||!0}))})};i.shadowRoot&&a(Array.from(i.shadowRoot.querySelectorAll(`[id]:not(${n.Exclusions.Container})`)),i.shadowRoot),a(Array.from(i.querySelectorAll(`[id]:not(${n.Exclusions.Container})`)),i)});(o.checks.BTN_EMPTY||o.checks.BTN_EMPTY_LABELLEDBY||o.checks.BTN_LABEL||o.checks.HIDDEN_FOCUSABLE||o.checks.LABEL_IN_NAME)&&O.Found.Buttons.forEach(n=>{const i=r(n),s=i.replace(/'|"|-|\.|\s+/g,"").toLowerCase(),a=L(`BTN${n.tagName+n.id+n.className+i}`),l=n.querySelector(":scope [aria-labelledby], :scope [aria-label]")||n.getAttribute("aria-labelledby")||n.getAttribute("aria-label"),c=n.querySelector(":scope [aria-labelledby]")||n.getAttribute("aria-labelledby"),d="true"===n.getAttribute("aria-hidden"),p="-1"===n.getAttribute("tabindex");if(d)return void(p||o.checks.HIDDEN_FOCUSABLE&&e.push({element:n,type:o.checks.HIDDEN_FOCUSABLE.type||"error",content:t.sprintf(o.checks.HIDDEN_FOCUSABLE.content||"HIDDEN_FOCUSABLE"),dismiss:a,dismissAll:!!o.checks.HIDDEN_FOCUSABLE.dismissAll&&"BTN_HIDDEN_FOCUSABLE",developer:o.checks.HIDDEN_FOCUSABLE.developer||!0}));if(0===s.length)return void(o.checks.BTN_EMPTY_LABELLEDBY&&c?e.push({element:n,type:o.checks.BTN_EMPTY_LABELLEDBY.type||"error",content:o.checks.BTN_EMPTY_LABELLEDBY.content?t.sprintf(o.checks.BTN_EMPTY_LABELLEDBY.content):`${t.sprintf("BTN_EMPTY_LABELLEDBY")} ${t.sprintf("BTN_TIP")}`,dismiss:L(a),dismissAll:!!o.checks.BTN_EMPTY_LABELLEDBY.dismissAll&&"BTN_EMPTY_LABELLEDBY",developer:o.checks.BTN_EMPTY_LABELLEDBY.developer||!0}):o.checks.BTN_EMPTY&&e.push({element:n,type:o.checks.BTN_EMPTY.type||"error",content:o.checks.BTN_EMPTY.content?t.sprintf(o.checks.BTN_EMPTY.content):`${t.sprintf("BTN_EMPTY")} ${t.sprintf("BTN_TIP")}`,dismiss:a,dismissAll:!!o.checks.BTN_EMPTY.dismissAll&&"BTN_EMPTY",developer:o.checks.BTN_EMPTY.developer||!0}));const h=C(n);if(o.checks.LABEL_IN_NAME&&l&&h){const s=u(i);return void e.push({element:n,type:o.checks.LABEL_IN_NAME.type||"warning",content:o.checks.LABEL_IN_NAME.content?t.sprintf(o.checks.LABEL_IN_NAME.content,s):`${t.sprintf("LABEL_IN_NAME",s)} ${t.sprintf("ACC_NAME_TIP")}`,dismiss:a,dismissAll:!!o.checks.LABEL_IN_NAME.dismissAll&&"BTN_LABEL_IN_NAME",developer:o.checks.LABEL_IN_NAME.developer||!0})}o.checks.BTN_ROLE_IN_NAME&&i.includes(t._("BTN"))&&e.push({element:n,type:o.checks.BTN_ROLE_IN_NAME.type||"warning",content:o.checks.BTN_ROLE_IN_NAME.content?t.sprintf(o.checks.BTN_ROLE_IN_NAME.content):`${t.sprintf("BTN_ROLE_IN_NAME")} ${t.sprintf("BTN_TIP")}`,dismiss:a,dismissAll:!!o.checks.BTN_ROLE_IN_NAME.dismissAll&&"BTN_ROLE_IN_NAME",developer:o.checks.BTN_ROLE_IN_NAME.developer||!0})}),o.checks.UNCONTAINED_LI&&O.Found.Lists.forEach(n=>{n.closest("ul, ol, menu")||e.push({element:n,type:o.checks.UNCONTAINED_LI.type||"error",content:t.sprintf(o.checks.UNCONTAINED_LI.content||"UNCONTAINED_LI"),dismiss:L(`UNCONTAINEDLI${n.textContent}`),dismissAll:!!o.checks.UNCONTAINED_LI.dismissAll&&"UNCONTAINED_LI",developer:o.checks.UNCONTAINED_LI.developer||!0})}),o.checks.TABINDEX_ATTR&&O.Found.TabIndex.forEach(n=>{e.push({element:n,type:o.checks.TABINDEX_ATTR.type||"error",content:t.sprintf(o.checks.TABINDEX_ATTR.content||"TABINDEX_ATTR"),dismiss:L(`TABINDEX${n.tagName+n.id+n.className}`),dismissAll:!!o.checks.TABINDEX_ATTR.dismissAll&&"TABINDEX_ATTR",developer:o.checks.TABINDEX_ATTR.developer||!0})})}(this.results,s),s.embeddedContentPlugin&&function(e,n){const o=e=>"undefined"!==e.getAttribute("src")?e.getAttribute("src"):e.querySelector("[src]")?.getAttribute("src");n.checks.EMBED_AUDIO&&O.Found.Audio.forEach(i=>{e.push({element:i,type:n.checks.EMBED_AUDIO.type||"warning",content:t.sprintf(n.checks.EMBED_AUDIO.content||"EMBED_AUDIO"),dismiss:L(`AUDIO${o(i)}`),dismissAll:!!n.checks.EMBED_AUDIO.dismissAll&&"EMBED_AUDIO",developer:n.checks.EMBED_AUDIO.developer||!1})}),n.checks.EMBED_VIDEO&&O.Found.Videos.forEach(i=>{const s=i.querySelector("track"),a=s?.getAttribute("src");null!==s&&null!==a&&0!==a.trim().length||e.push({element:i,type:n.checks.EMBED_VIDEO.type||"warning",content:t.sprintf(n.checks.EMBED_VIDEO.content||"EMBED_VIDEO"),dismiss:L(`VIDEO${o(i)}`),dismissAll:!!n.checks.EMBED_VIDEO.dismissAll&&"EMBED_VIDEO",developer:n.checks.EMBED_VIDEO.developer||!1})}),n.checks.EMBED_DATA_VIZ&&O.Found.Visualizations.forEach(i=>{e.push({element:i,type:n.checks.EMBED_DATA_VIZ.type||"warning",content:t.sprintf(n.checks.EMBED_DATA_VIZ.content||"EMBED_DATA_VIZ"),dismiss:L(`DATAVIZ${o(i)}`),dismissAll:!!n.checks.EMBED_DATA_VIZ.dismissAll&&"EMBED_DATA_VIZ",developer:n.checks.EMBED_DATA_VIZ.developer||!1})}),O.Found.iframes.forEach(i=>{const s=["presentation","none"].includes(i.getAttribute("role")),r=d(i),l="VIDEO"===i.tagName||"AUDIO"===i.tagName,c="true"===i.getAttribute("aria-hidden"),p="-1"===i.getAttribute("tabindex");if(!(r||l||c&&p||s))if(p)n.checks.EMBED_UNFOCUSABLE&&e.push({element:i,type:n.checks.EMBED_UNFOCUSABLE.type||"error",content:t.sprintf(n.checks.EMBED_UNFOCUSABLE.content||"EMBED_UNFOCUSABLE"),dismiss:L(`EMBEDUNFOCUSABLE${o(i)}`),dismissAll:!!n.checks.EMBED_UNFOCUSABLE.dismissAll&&"EMBED_UNFOCUSABLE",developer:n.checks.EMBED_UNFOCUSABLE.developer||!0});else if(n.checks.EMBED_MISSING_TITLE){const s=a(i);0===b("noAria"===s?i.getAttribute("title")||"":s).length&&e.push({element:i,type:n.checks.EMBED_MISSING_TITLE.type||"error",content:t.sprintf(n.checks.EMBED_MISSING_TITLE.content||"EMBED_MISSING_TITLE"),dismiss:L(`EMBEDMISSTITLE${o(i)}`),dismissAll:!!n.checks.EMBED_MISSING_TITLE.dismissAll&&"EMBED_MISSING_TITLE",developer:n.checks.EMBED_MISSING_TITLE.developer||!0})}}),n.checks.EMBED_GENERAL&&O.Found.EmbeddedContent.forEach(i=>{const s=["presentation","none"].includes(i.getAttribute("role")),a="true"===i.getAttribute("aria-hidden"),r="-1"===i.getAttribute("tabindex");d(i)||a&&r||s||"VIDEO"!==i.tagName&&"AUDIO"!==i.tagName&&e.push({element:i,type:n.checks.EMBED_GENERAL.type||"warning",content:t.sprintf(n.checks.EMBED_GENERAL.content||"EMBED_GENERAL"),dismiss:L(`IFRAMEGENERAL${o(i)}`),dismissAll:!!n.checks.EMBED_GENERAL.dismissAll&&"EMBED_GENERAL",developer:n.checks.EMBED_GENERAL.developer||!1})})}(this.results,s),s.contrastPlugin&&function(e,n){const o=[];for(let e=0;e3===e.nodeType).map(e=>e.textContent).join("").trim(),m=["SELECT","INPUT","TEXTAREA"].includes(t.tagName);if(0!==g.length||m)if("unsupported"===a||"unsupported"===p){const e=r>=24||r>=18.67&&l>=700;o.push({$el:t,type:"unsupported",fontSize:r,fontWeight:l,isLargeText:e,opacity:s,..."unsupported"!==p&&{background:p},..."unsupported"!==a&&{color:a}})}else if("image"===p.type)if(h);else{const e=r>=24||r>=18.67&&l>=700;o.push({$el:t,type:"background-image",color:a,isLargeText:e,background:p,fontSize:r,fontWeight:l,opacity:s})}else if("text"===t.tagName&&t.closest("svg"));else if(h||mn(a)===mn(p));else{const e=Ln(t,a,p,r,l,s,n.contrastAAA);e&&(e.type=m?"input":"text",o.push(e))}}O.Found.Svg.forEach(e=>{const t=dn(e);if(t&&"image"===t.type)return void o.push({$el:e,type:"svg-warning",background:t});if(e.querySelector("text"))return void o.push({$el:e,type:"svg-text",background:t});const i=e.querySelectorAll("path, polygon, circle, rect, ellipse, use");if(1===i.length){const s=getComputedStyle(i[0]),{fill:a,opacity:r,stroke:l,strokeWidth:c}=s;if(a.startsWith("url("))return void o.push({$el:e,type:"svg-warning",background:t});const d=a&&"none"!==a,p=l&&"none"!==l&&"0px"!==c;if(!d&&!p)return void o.push({$el:e,type:"svg-warning",background:t});let u,h,g,m=!1,f=!1;d&&(h=cn("currentColor"===a?getComputedStyle(e).color:a,r),"unsupported"!==h&&(u=bn(h,t),m=n.contrastAPCA?u.ratio>=45:u.ratio>=3)),p&&(g=cn("currentColor"===l?getComputedStyle(e).color:l,r),"unsupported"!==g&&(u=bn(g,t),f=n.contrastAPCA?u.ratio>=45:u.ratio>=3));const b=d&&p&&!m&&!f,y=d&&!p&&!m,A=!d&&p&&!f;"unsupported"===h||"unsupported"===g?o.push({$el:e,type:"svg-warning",background:t}):(b||y||A)&&o.push({$el:e,ratio:fn(u.ratio),color:u.blendedColor,type:"svg-error",background:t})}else o.push({$el:e,type:"svg-warning",background:t})}),O.Found.Inputs.forEach(e=>{if(e.placeholder&&0!==e.placeholder.length){const t=getComputedStyle(e,"::placeholder"),i=cn(t.getPropertyValue("color")),s=parseFloat(t.fontSize),a=ln(t.fontWeight),r=dn(e),l=parseFloat(t.opacity);if("unsupported"===i)o.push({$el:e,type:"placeholder-unsupported"});else if("image"===r.type);else{const t=Ln(e,i,r,s,a,l,n.contrastAAA);t&&(t.type="placeholder",o.push(t))}}}),(e=>{const t=e.filter(e=>"background-image"===e.type),o=e.filter(e=>"background-image"!==e.type);let i;if(n.contrastAPCA)i=t.map(e=>({...e}));else{const e=t.reduce((e,t)=>{const n=e,o=JSON.stringify({background:t.background.value,color:t.color,isLargeText:t.isLargeText});return n[o]||(n[o]=[]),n[o].push(t),n},{});i=Object.values(e).map(e=>({...e[0]}))}return[...i,...o]})(o).forEach(o=>{const{$el:i,ratio:s}=o,a=o,r="OPTION"===i.tagName?i.closest("datalist, select, optgroup"):i,l=u(y(f(m(r,["option:not(option:first-child)"])),80));let c;c="placeholder"===o.type||"placeholder-unsupported"===o.type?u(i.placeholder):"svg-error"===o.type||"svg-warning"===o.type||"svg-text"===o.type?"":l,a.sanitizedText=c;let d="";if(!n.contrastAPCA){const e=n.contrastAAA?"7:1":"4.5:1",i=n.contrastAAA?"4.5:1":"3:1",s=o.isLargeText?i:e,a=o.isLargeText?"CONTRAST_LARGE":"CONTRAST_NORMAL";d=` ${t.sprintf(a,s)}`}const p=n.contrastAPCA?"":` ${t.sprintf("CONTRAST_TIP_GRAPHIC")}`;switch(o.type){case"text":n.checks.CONTRAST_ERROR&&e.push({element:i,type:n.checks.CONTRAST_ERROR.type||"error",content:n.checks.CONTRAST_ERROR.content?t.sprintf(n.checks.CONTRAST_ERROR.content):t.sprintf("CONTRAST_ERROR")+d,dismiss:L(`CONTRAST${l}`),dismissAll:!!n.checks.CONTRAST_ERROR.dismissAll&&"CONTRAST_ERROR",developer:n.checks.CONTRAST_ERROR.developer||!1,contrastDetails:a});break;case"input":n.checks.CONTRAST_INPUT&&e.push({element:r,type:n.checks.CONTRAST_INPUT.type||"error",content:n.checks.CONTRAST_INPUT.content?t.sprintf(n.checks.CONTRAST_INPUT.content):t.sprintf("CONTRAST_INPUT",s)+d,dismiss:L(`CONTRAST${i.getAttribute("class")}${i.tagName}${s}`),dismissAll:!!n.checks.CONTRAST_INPUT.dismissAll&&"CONTRAST_INPUT",developer:n.checks.CONTRAST_INPUT.developer||!0,contrastDetails:a});break;case"placeholder":n.checks.CONTRAST_PLACEHOLDER&&e.push({element:i,type:n.checks.CONTRAST_PLACEHOLDER.type||"error",content:n.checks.CONTRAST_PLACEHOLDER.content?t.sprintf(n.checks.CONTRAST_PLACEHOLDER.content):t.sprintf("CONTRAST_PLACEHOLDER")+d,position:"afterend",dismiss:L(`CPLACEHOLDER${i.getAttribute("class")}${i.tagName}${s}`),dismissAll:!!n.checks.CONTRAST_PLACEHOLDER.dismissAll&&"CONTRAST_PLACEHOLDER",developer:n.checks.CONTRAST_PLACEHOLDER.developer||!0,contrastDetails:a});break;case"placeholder-unsupported":n.checks.CONTRAST_PLACEHOLDER_UNSUPPORTED&&e.push({element:i,type:n.checks.CONTRAST_PLACEHOLDER_UNSUPPORTED.type||"warning",content:n.checks.CONTRAST_PLACEHOLDER_UNSUPPORTED.content?t.sprintf(n.checks.CONTRAST_PLACEHOLDER_UNSUPPORTED.content):t.sprintf("CONTRAST_PLACEHOLDER_UNSUPPORTED")+d,position:"afterend",dismiss:L(`CPLACEHOLDERUN${i.getAttribute("class")}${i.tagName}${s}`),dismissAll:!!n.checks.CONTRAST_PLACEHOLDER_UNSUPPORTED.dismissAll&&"CONTRAST_PLACEHOLDER_UNSUPPORTED",developer:n.checks.CONTRAST_PLACEHOLDER_UNSUPPORTED.developer||!0,contrastDetails:a});break;case"svg-error":n.checks.CONTRAST_ERROR_GRAPHIC&&e.push({element:i,type:n.checks.CONTRAST_ERROR_GRAPHIC.type||"error",content:n.checks.CONTRAST_ERROR_GRAPHIC.content?t.sprintf(n.checks.CONTRAST_ERROR_GRAPHIC.content):t.sprintf("CONTRAST_ERROR_GRAPHIC")+p,dismiss:L(`CONTRASTERROR${i.outerHTML}`),dismissAll:!!n.checks.CONTRAST_ERROR_GRAPHIC.dismissAll&&"CONTRAST_ERROR_GRAPHIC",developer:n.checks.CONTRAST_ERROR_GRAPHIC.developer||!0,contrastDetails:a});break;case"svg-warning":case"svg-text":n.checks.CONTRAST_WARNING_GRAPHIC&&e.push({element:i,type:n.checks.CONTRAST_WARNING_GRAPHIC.type||"warning",content:n.checks.CONTRAST_WARNING_GRAPHIC.content?t.sprintf(n.checks.CONTRAST_WARNING_GRAPHIC.content):t.sprintf("CONTRAST_WARNING_GRAPHIC")+p,dismiss:L(`CONTRASTWARNING${i.outerHTML}`),dismissAll:!!n.checks.CONTRAST_WARNING_GRAPHIC.dismissAll&&"CONTRAST_WARNING_GRAPHIC",developer:n.checks.CONTRAST_WARNING_GRAPHIC.developer||!0,contrastDetails:a});break;case"background-image":n.checks.CONTRAST_WARNING&&e.push({element:r,type:n.checks.CONTRAST_WARNING.type||"warning",content:n.checks.CONTRAST_WARNING.content?t.sprintf(n.checks.CONTRAST_WARNING.content):t.sprintf("CONTRAST_WARNING")+d,dismiss:L(`CONTRAST${l}`),dismissAll:!!n.checks.CONTRAST_WARNING.dismissAll&&"CONTRAST_WARNING",developer:n.checks.CONTRAST_WARNING.developer||!1,contrastDetails:a});break;case"unsupported":n.checks.CONTRAST_UNSUPPORTED&&e.push({element:r,type:n.checks.CONTRAST_UNSUPPORTED.type||"warning",content:n.checks.CONTRAST_UNSUPPORTED.content?t.sprintf(n.checks.CONTRAST_UNSUPPORTED.content):t.sprintf("CONTRAST_WARNING")+d,dismiss:L(`CONTRAST${l}`),dismissAll:!!n.checks.CONTRAST_UNSUPPORTED.dismissAll&&"CONTRAST_UNSUPPORTED",developer:n.checks.CONTRAST_UNSUPPORTED.developer||!1,contrastDetails:a})}})}(this.results,s),s.readabilityPlugin&&function(){let e;if("On"===v.getItem("sa11y-readability")){O.Found.Readability.forEach(e=>{const t=e.textContent;t.length>=120&&"."!==t.charAt(t.length-1)&&e.insertAdjacentHTML("beforeend",".")});const o=[];for(let e=0;e{let t=e;if(t=t.toLowerCase().replace(".","").replace("\n",""),t.length<=3)return 1;t=t.replace(/(?:[^laeiouy]es|ed|[^laeiouy]e)$/,""),t=t.replace(/^y/,"");const n=t.match(/[aeiouy]{1,2}/g);let o=0;return!!n&&(o=n.length),o},s=i.replace(/[.!?-]+/g," ").split(" ");let a=0;for(let e=0;e100?u=100:u<0&&(u=0);const h=u.toFixed(1),g=(a/l).toFixed(1),m=Math.round((a-(d+p))/a*100);let f;f=h>=0&&h<30?t._("VERY_DIFFICULT"):h>31&&h<49?t._("DIFFICULT"):h>50&&h<60?t._("FAIRLY_DIFFICULT"):t._("GOOD"),e={score:h,averageWordsPerSentence:g,complexWords:m,difficultyLevel:f,wordCount:a}}else if(["sv","fi","da","no","nb","nn"].includes(n.Readability.Lang)){const n=(e=>{const n=()=>e.replace(/[-'.]/gi,"").split(/[^a-zA-ZöäåÖÄÅÆæØø0-9]/g).filter(Boolean),o=n().length,i=n().filter(e=>e.length>6).length,s=e.split(/\?|!|\.|\n/g).filter(Boolean).length,a=Math.round(o/s+100*i/o),r=(o/s).toFixed(1),l=Math.round(i/o*100);let c;return c=a>=0&&a<39?t._("GOOD"):a>40&&a<50?t._("FAIRLY_DIFFICULT"):a>51&&a<61?t._("DIFFICULT"):t._("VERY_DIFFICULT"),{score:a,difficulty:c,avgWordsPerSentence:r,complexWords:l,wordCount:o}})(i);e={score:n.score,averageWordsPerSentence:n.avgWordsPerSentence,complexWords:n.complexWords,difficultyLevel:n.difficulty,wordCount:n.wordCount}}!1===n.Global.headless&&(0===i.length?n.Panel.readabilityInfo.innerHTML=t._("READABILITY_NO_CONTENT"):e.wordCount>30?(n.Panel.readabilityInfo.innerHTML=`${e.score} ${e.difficultyLevel}`,n.Panel.readabilityDetails.innerHTML=`\n
                  • \n ${t._("AVG_SENTENCE")}\n ${e.averageWordsPerSentence}\n
                  • \n
                  • \n ${t._("COMPLEX_WORDS")}\n ${e.complexWords}%\n
                  • \n
                  • \n ${t._("TOTAL_WORDS")}\n ${e.wordCount}\n
                  • `):n.Panel.readabilityInfo.textContent=t._("READABILITY_NOT_ENOUGH"))}}(),this.imageResults=this.results.filter((e,t,n)=>{const{element:o}=e;return!(!o||"IMG"!==o.tagName||!o.outerHTML)&&n.findIndex(e=>e.element?.outerHTML===o.outerHTML)===t}),!0===s.customChecks?this.results:"object"==typeof s.customChecks?this.results.push(...s.customChecks):"listen"===s.customChecks&&(this.customChecksRunning=!0,this.customChecksFinished=0,document.addEventListener("sa11y-resume",()=>{this.customChecksFinished+=1,1===this.customChecksFinished&&(this.customChecksRunning=!1,this.updateResults())}),window.setTimeout(()=>{if(!0===this.customChecksRunning)throw this.customChecksRunning=!1,this.updateResults(),Error("Sa11y: No custom checks were returned.")},s.delayCustomCheck),window.setTimeout(()=>{const e=new CustomEvent("sa11y-custom-checks");document.dispatchEvent(e)},0)),this.customChecksRunning||this.updateResults()}catch(e){const t=new z(e);throw document.body.appendChild(t),Error(e)}},this.updateResults=()=>{this.results=this.results.filter(e=>!1!==e.isWithinRoot);const e="Off"===v.getItem("sa11y-developer")||null===v.getItem("sa11y-developer");if((e||!0===s.externalDeveloperChecks)&&(this.results=this.results.filter(e=>!0!==e.developer)),e&&(this.results=this.results.filter(e=>!0!==e.external)),this.results.forEach((e,t)=>{const n=s.selectorPath?function(e){const t=[];let n=e;for(;n;){let e=n.localName;if(n.id){e+=`#${n.id}`,t.unshift(e);break}n.className&&(e+=`.${n.className.replace(/\s+/g,".")}`);const o=n.parentNode;if(!o)break;{const i=o.children;i.length>1&&(e+=`:nth-child(${Array.prototype.indexOf.call(i,n)+1})`),t.unshift(e)}n=n.parentNode.host||n.parentNode}return t.join(" > ")}(e.element):"",o=e.element?.outerHTML.replace(/\s{2,}/g," ").trim()||"";Object.assign(e,{htmlPath:o,cssPath:n,id:t})}),!1===s.headless){const e=D(this.results,this.panelTooltips,this.checkAll,this.resetAll);this.results=e.updatedResults,this.dismissed=e.dismissedIssues;const l=function(e,t,n){let o=t,i=n;return e.forEach((t,n)=>{const s=e[n].type;"error"===s?o+=1:"warning"===s&&(i+=1)}),{error:o,warning:i}}(this.results,this.errorCount,this.warningCount);if(function(e,o){const i=e+o;0===i?(n.Panel.notifCount.innerText="",n.Panel.notifText.innerText="",n.Panel.notifBadge.style.display="none"):o>0&&0===e?(n.Panel.notifBadge.classList.add("notification-badge-warning"),n.Panel.notifCount.innerText=`${o}`,n.Panel.notifText.innerText=`${t._("WARNINGS_FOUND")}`):(n.Panel.notifBadge.classList.remove("notification-badge-warning"),n.Panel.notifCount.innerText=`${i}`,n.Panel.notifText.innerText=t._("TOTAL_FOUND")),"Opened"===v.getItem("sa11y-panel")||0===i?n.Panel.notifBadge.style.display="none":n.Panel.notifBadge.style.display="flex"}(l.error,l.warning),"Opened"===v.getItem("sa11y-panel")){this.results.forEach(e=>{Object.assign(e),function(e,o){const{element:i,type:s,content:a,inline:r=!1,position:l="beforebegin",id:c,dismiss:d,dismissAll:u,contrastDetails:h}=e,g=["error","warning","good"];if(-1===g.indexOf(s))throw Error(`Invalid type [${s}] for annotation`);[s].forEach(e=>{if("error"===e&&void 0!==i){const e=r?"data-sa11y-error-inline":"data-sa11y-error";i.setAttribute(e,c)}else if("warning"===e&&void 0!==i){const e=r?"data-sa11y-warning-inline":"data-sa11y-warning";i.setAttribute(e,c)}});const m={[g[0]]:t._("ERROR"),[g[1]]:t._("WARNING"),[g[2]]:t._("GOOD")};if(!1===o.showGoodImageButton&&"IMG"===i?.tagName&&"good"===s)return;if(!1===o.showGoodLinkButton&&"A"===i?.tagName&&"good"===s)return;const f=!o.dismissAnnotations||"warning"!==s&&"good"!==s||void 0===d?"":``,b=o.dismissAnnotations&&o.dismissAll&&"string"==typeof u&&("warning"===s||"good"===s)?``:"",y=document.createElement("sa11y-annotation");if(y.setAttribute("data-sa11y-annotation",c),void 0===i){const e=document.createElement("li");e.innerHTML=`

                    ${m[s]}

                    ${a}${f}`,n.Panel.pageIssuesList.insertAdjacentElement("afterbegin",e),n.Panel.pageIssues.classList.add("active"),n.Panel.panel.classList.add("has-page-issues")}else{const e=document.createElement("div");e.classList.add(r?"instance-inline":"instance"),e.innerHTML=`\n \n

                    ${m[s]}

                    \n ${p(a)}\n ${h?"
                    ":""}\n
                    ${f}${b}
                    \n "\n >`;const n=o.insertAnnotationBefore?`, ${o.insertAnnotationBefore}`:"";(i.closest(`a, button, [role="link"], [role="button"] ${n}`)||i).insertAdjacentElement(l,y),y.shadowRoot.appendChild(e)}}(e,s)}),O.initializeAnnotations();const c=new Tn;document.body.appendChild(c),$(this.results,this.dismissed,this.checkAll,this.resetAll),ee(this.dismissed,this.headingOutline,s),s.showImageOutline&&function(e,o,i){const s=()=>{const a=[],r=e.map(e=>o.find(t=>e.key===t.dismiss&&e.href===window.location.pathname)).filter(Boolean);o.forEach(e=>{const o=r.some(t=>t.element.outerHTML.toLowerCase()===e.element.outerHTML.toLowerCase());o&&Object.assign(e,{dismissedImage:!0});const s=e.type,l=e.developer,{dismissedImage:c}=e,d=p(e.element.alt),u=!("Off"!==v.getItem("sa11y-developer")&&null!==v.getItem("sa11y-developer")||"error"!==s&&"warning"!==s||!0!==l),h=S(e.element),g=n.Global.editImageURLofCMS?te(e):"",m=i.imageWithinLightbox?`a[href]:not(${i.imageWithinLightbox})`:"a[href]",f=e.element.closest(m)?`
                    ${t._("LINKED")}
                    `:"";let b;if("error"!==s||u)if("warning"!==s||c||u){const n=0===d.length?`
                    ${t._("DECORATIVE")}
                    `:"",o=i.imageWithinLightbox?`a[href]:not(${i.imageWithinLightbox})`:"a[href]",s=e.element.closest(o)?`
                    ${t._("LINKED")}
                    `:"";b=`\n
                  • \n \n
                    \n
                    ${t._("ALT")}
                    \n ${s} ${n} ${d}\n
                    \n ${g}\n
                  • `,a.push(b)}else{const e=0===d.length?`
                    ${t._("DECORATIVE")}
                    `:"";b=`\n
                  • \n \n
                    \n
                    ${t._("WARNING")} ${t._("ALT")}
                    \n ${f} ${e} ${d}\n
                    \n ${g}\n
                  • `,a.push(b)}else{const e=0===d.length?`
                    ${t._("MISSING")}
                    `:`${d}`;b=`\n
                  • \n \n
                    \n
                    ${t._("ERROR")} ${t._("ALT")}
                    ${f} ${e}\n
                    \n ${g}\n
                  • `,a.push(b)}}),n.Panel.imagesList.innerHTML=0===a.length?`
                  • ${t._("NO_IMAGES")}
                  • `:a.join(" "),document.removeEventListener("sa11y-build-image-outline",s)};"Opened"===v.getItem("sa11y-images")&&s(),document.addEventListener("sa11y-build-image-outline",s)}(this.dismissed,this.imageResults,s),i=e.dismissCount,a=l.error,r=l.warning,n.Panel.skipButton.disabled=!1,n.Panel.panel.classList.add("active"),n.Global.html.setAttribute("data-sa11y-active","true"),n.Panel.skipButton.classList.add("active"),a>0&&r>0?(n.Panel.content.setAttribute("class","errors"),n.Panel.status.innerHTML=`${t._("ERRORS")} ${a} ${t._("WARNINGS")} ${r}`):a>0?(n.Panel.content.setAttribute("class","errors"),n.Panel.status.innerHTML=`${t._("ERRORS")} ${a}`):r>0?(n.Panel.content.setAttribute("class","warnings"),n.Panel.status.innerHTML=`${t._("WARNINGS")} ${r}`):i>0?(n.Panel.status.innerHTML=`${t._("DISMISSED")} ${i}`,n.Panel.skipButton.classList.remove("active")):(n.Panel.content.setAttribute("class","good"),n.Panel.status.innerHTML=`${t._("NO_ERRORS_FOUND")}`),0===document.querySelectorAll("sa11y-annotation").length&&(n.Panel.skipButton.disabled=!0),o=this.results,Mn=e=>{Dn(e,o)},Bn=()=>{Rn(o)},document.addEventListener("keydown",Mn),n.Panel.skipButton.addEventListener("click",Bn),s.exportResultsPlugin&&function(e,t){n.Global.exportResultsPlugin&&(F=async()=>{await U(e,t)},K=()=>{H(e)},n.Panel.exportHTML.addEventListener("click",F),n.Panel.exportCSV.addEventListener("click",K))}(this.results,e.dismissedResults),N(n.Panel.pageIssuesList,n.Panel.pageIssuesContent),Nn(s.ignoreHiddenOverflow),document.querySelectorAll("sa11y-annotation").forEach(e=>{const t=e.nextElementSibling;null!==t&&"SA11Y-ANNOTATION"===t.tagName&&customElements.get("sa11y-annotation")&&t.shadowRoot.querySelector("button").setAttribute("style","margin: -5px -15px !important;")})}n.Panel.toggle.disabled=!1}var o,i,a,r;window.sa11yCheckComplete=null;const l=new CustomEvent("sa11y-check-complete",{detail:{results:this.results,page:window.location.pathname}});window.sa11yCheckComplete=l.detail,document.dispatchEvent(l)},this.resetAll=(e=!0)=>{for(n.Global.html.removeAttribute("data-sa11y-active"),k(["sa11y-annotation","sa11y-heading-label","sa11y-heading-anchor","sa11y-tooltips","[data-sa11y-readability-period]","[data-sa11y-clone-image-text]"],"document"),x(["data-sa11y-parent","data-sa11y-error","data-sa11y-warning","data-sa11y-good","data-sa11y-error-inline","data-sa11y-warning-inline","data-sa11y-overflow","data-sa11y-pulse-border","data-sa11y-filter","data-sa11y-has-shadow-root"],"document"),n.Panel.outlineList.innerHTML="",s.showImageOutline&&(n.Panel.imagesList.innerHTML=""),n.Panel.pageIssuesList.innerHTML="",n.Panel.readabilityInfo.innerHTML="",n.Panel.readabilityDetails.innerHTML="",n.Panel.panel.classList.remove("has-page-issues"),n.Panel.pageIssues.classList.remove("active"),n.Panel.settingsContent.classList.remove("hide-settings-border"),n.Panel.panel.querySelector("#readability-alert")?.remove(),I(),document.removeEventListener("keydown",Mn),n.Panel.skipButton.removeEventListener("click",Bn),n.Global.exportResultsPlugin&&(n.Panel.exportHTML.removeEventListener("click",F),n.Panel.exportCSV.removeEventListener("click",K)),n.Panel.panel?.removeEventListener("click",B),n.Panel.dismissButton?.removeEventListener("click",M),n.Global.colourFilterPlugin&&(n.Panel.colourFilterSelect.value=0,n.Panel.colourPanel.classList.remove("active"),n.Panel.colourFilterSelect.classList.remove("active"),n.Panel.content.hidden=!1);n.Panel.status.firstChild;)n.Panel.status.removeChild(n.Panel.status.firstChild);document.querySelectorAll("[data-sa11y-has-shadow-root]").forEach(e=>{e.shadowRoot.querySelectorAll("style.sa11y-css-utilities").forEach(e=>e.remove()),e.removeAttribute("data-sa11y-has-shadow-root")}),e&&n.Panel.panel.classList.remove("active")},this.disabled=()=>{setTimeout(()=>{"Opened"===v.getItem("sa11y-panel")&&n.Panel.toggle.click(),n.Panel.toggle.disabled=!0},s.delayCheck+10)},this.enabled=()=>{n.Panel.toggle&&(n.Panel.toggle.disabled=!1)},this.find=(e,t,n)=>o(e,t,n),this.prepareDismissal=e=>L(e),this.sanitizeHTML=e=>u(e),this.truncateString=(e,t)=>y(e,t),this.initialize()}}export{t as Lang,Hn as Sa11y}; diff --git a/dist/js/sa11y.umd.js b/dist/js/sa11y.umd.js index 0f8a70f2..153e23b9 100644 --- a/dist/js/sa11y.umd.js +++ b/dist/js/sa11y.umd.js @@ -1,7 +1,7 @@ /*! * Sa11y, the accessibility quality assurance assistant. - * @version 4.2.0 + * @version 4.2.1 * @author Adam Chaboryk * @license GPL-2.0-or-later * @copyright © 2020 - 2025 Toronto Metropolitan University. @@ -2224,7 +2224,7 @@ } } - const version = '4.2.0'; + const version = '4.2.1'; var styles = ":host{background:var(--sa11y-panel-bg);border-top:5px solid var(--sa11y-panel-bg-splitter);bottom:0;display:block;height:-moz-fit-content;height:fit-content;left:0;position:fixed;right:0;width:100%;z-index:999999}*{-webkit-font-smoothing:auto!important;color:var(--sa11y-panel-primary);font-family:var(--sa11y-font-face)!important;font-size:var(--sa11y-normal-text);line-height:22px!important}#dialog{margin:20px auto;max-width:900px;padding:20px}h2{font-size:var(--sa11y-large-text);margin-top:0}a{color:var(--sa11y-hyperlink);cursor:pointer;text-decoration:underline}a:focus,a:hover{text-decoration:none}p{margin-top:0}.error{background:var(--sa11y-error);border:2px dashed #f08080;color:var(--sa11y-error-text);margin-bottom:0;padding:5px}"; @@ -9477,7 +9477,7 @@ ${this.error.stack} } // Process simple SVGs with a single shape. - const shapes = $el.querySelectorAll('path, polygon, circle, rect, ellipse'); + const shapes = $el.querySelectorAll('path, polygon, circle, rect, ellipse, use'); if (shapes.length === 1) { const style = getComputedStyle(shapes[0]); const { fill, opacity, stroke, strokeWidth } = style; @@ -9906,7 +9906,7 @@ ${this.error.stack} } // Avoid using placeholder attributes. - if ($el.placeholder && $el.placeholder !== 0) { + if (option.checks.LABELS_PLACEHOLDER && $el.placeholder && $el.placeholder !== 0) { results.push({ element: $el, type: option.checks.LABELS_PLACEHOLDER.type || 'warning', diff --git a/dist/js/sa11y.umd.min.js b/dist/js/sa11y.umd.min.js index fb0a79ae..e13db64a 100644 --- a/dist/js/sa11y.umd.min.js +++ b/dist/js/sa11y.umd.min.js @@ -1,6 +1,6 @@ /*! * Sa11y, the accessibility quality assurance assistant. - * @version 4.2.0 + * @version 4.2.1 * @author Adam Chaboryk * @license GPL-2.0-or-later * @copyright © 2020 - 2025 Toronto Metropolitan University. @@ -9,4 +9,4 @@ * For all acknowledgements, please visit: https://sa11y.netlify.app/acknowledgements/ * The above copyright notice shall be included in all copies or substantial portions of the Software. **/ -!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).Sa11y={})}(this,function(e){"use strict";const t={checkRoot:"body",containerIgnore:".sa11y-ignore",contrastIgnore:".sr-only",outlineIgnore:"",headerIgnore:"",headerIgnoreSpan:"",headerIgnoreStrings:"",imageIgnore:"",linkIgnore:"",linkIgnoreSpan:"",linkIgnoreStrings:"",aboutContent:"",panelPosition:"right",showMovePanelToggle:!0,checkAllHideToggles:!1,developerChecksOnByDefault:!1,showHinPageOutline:!1,showTitleInPageOutline:!0,showImageOutline:!0,editImageURLofCMS:"",relativePathImageSRC:"",relativePathImageID:"",ignoreEditImageURL:[],ignoreEditImageClass:[],delayCheck:0,delayCustomCheck:500,detectSPArouting:!1,doNotRun:"",headless:!1,selectorPath:!1,shadowComponents:"",autoDetectShadowComponents:!1,showGoodImageButton:!0,showGoodLinkButton:!0,dismissAnnotations:!0,dismissAll:!0,ignoreHiddenOverflow:"",insertAnnotationBefore:"",readabilityPlugin:!0,readabilityRoot:"body",readabilityIgnore:"",contrastPlugin:!0,contrastAAA:!1,contrastAPCA:!1,customChecks:!1,linksAdvancedPlugin:!0,formLabelsPlugin:!0,embeddedContentPlugin:!0,developerPlugin:!0,externalDeveloperChecks:!1,colourFilterPlugin:!0,exportResultsPlugin:!1,susAltStopWords:"",linkStopWords:"",extraPlaceholderStopWords:"",imageWithinLightbox:"",checks:{HEADING_SKIPPED_LEVEL:!0,HEADING_EMPTY_WITH_IMAGE:!0,HEADING_EMPTY:!0,HEADING_FIRST:!0,HEADING_LONG:{maxLength:170},HEADING_MISSING_ONE:!0,MISSING_ALT_LINK:!0,MISSING_ALT_LINK_HAS_TEXT:!0,MISSING_ALT:!0,IMAGE_DECORATIVE_CAROUSEL:{sources:".carousel"},LINK_IMAGE_NO_ALT_TEXT:!0,LINK_IMAGE_TEXT:!0,IMAGE_FIGURE_DECORATIVE:!0,IMAGE_DECORATIVE:!0,LINK_ALT_FILE_EXT:!0,ALT_FILE_EXT:!0,LINK_PLACEHOLDER_ALT:!0,ALT_PLACEHOLDER:!0,LINK_SUS_ALT:!0,SUS_ALT:!0,LINK_IMAGE_LONG_ALT:{maxLength:250},IMAGE_ALT_TOO_LONG:{maxLength:250},LINK_IMAGE_ALT:{dismissAll:!0},LINK_IMAGE_ALT_AND_TEXT:!0,IMAGE_FIGURE_DUPLICATE_ALT:!0,IMAGE_PASS:{dismissAll:!0},DUPLICATE_TITLE:{dismissAll:!0},LINK_EMPTY_LABELLEDBY:!0,LINK_EMPTY_NO_LABEL:!0,LINK_STOPWORD:!0,LINK_STOPWORD_ARIA:!0,LINK_SYMBOLS:!0,LINK_CLICK_HERE:!0,LINK_DOI:{dismissAll:!0},LINK_URL:{maxLength:40},LINK_LABEL:{dismissAll:!0},LINK_EMPTY:!0,LINK_IDENTICAL_NAME:{dismissAll:!0},LINK_NEW_TAB:{dismissAll:!0},LINK_FILE_EXT:!0,LABELS_MISSING_IMAGE_INPUT:!0,LABELS_INPUT_RESET:!0,LABELS_MISSING_LABEL:!0,LABELS_ARIA_LABEL_INPUT:!0,LABELS_NO_FOR_ATTRIBUTE:!0,LABELS_PLACEHOLDER:!0,EMBED_AUDIO:{sources:""},EMBED_VIDEO:{sources:""},EMBED_DATA_VIZ:{sources:""},EMBED_UNFOCUSABLE:!0,EMBED_MISSING_TITLE:!0,EMBED_GENERAL:!0,QA_BAD_LINK:{sources:""},QA_STRONG_ITALICS:!0,QA_IN_PAGE_LINK:!0,QA_DOCUMENT:{sources:"",dismissAll:!0},QA_PDF:{dismissAll:!0},QA_BLOCKQUOTE:!0,TABLES_MISSING_HEADINGS:!0,TABLES_SEMANTIC_HEADING:!0,TABLES_EMPTY_HEADING:!0,QA_FAKE_HEADING:!0,QA_FAKE_LIST:!0,QA_UPPERCASE:!0,QA_UNDERLINE:!0,QA_SUBSCRIPT:!0,QA_NESTED_COMPONENTS:{sources:""},QA_JUSTIFY:!0,QA_SMALL_TEXT:!0,META_LANG:!0,META_SCALABLE:!0,META_MAX:!0,META_REFRESH:!0,DUPLICATE_ID:!0,META_TITLE:!0,UNCONTAINED_LI:!0,TABINDEX_ATTR:!0,HIDDEN_FOCUSABLE:!0,LABEL_IN_NAME:!0,BTN_EMPTY:!0,BTN_EMPTY_LABELLEDBY:!0,BTN_ROLE_IN_NAME:!0,CONTRAST_WARNING:{dismissAll:!0},CONTRAST_INPUT:!0,CONTRAST_ERROR:!0,CONTRAST_PLACEHOLDER:!0,CONTRAST_PLACEHOLDER_UNSUPPORTED:!0,CONTRAST_ERROR_GRAPHIC:!0,CONTRAST_WARNING_GRAPHIC:{dismissAll:!0},CONTRAST_UNSUPPORTED:{dismissAll:!0}}},n={langStrings:{},addI18n(e){this.langStrings=e},_(e){return this.translate(e)},sprintf(e,...t){let n=this._(e);return n=this.prepHTML(n),t&&t.length&&t.forEach(e=>{n=n.replace(/%\([a-zA-z]+\)/,e)}),n},translate(e){return this.langStrings[e]||e},prepHTML:e=>e.replaceAll(/
                    /g,'').replaceAll(/${n._("ALT")}
                    `).replaceAll(/{L}/g,`${n._("LINKED")}`)},o=function(){const e={};const t={};const i={};const s={};const a={};return{initializeRoot:function(t,i){if(e.areaToCheck=document.querySelector(t),e.areaToCheck||(e.areaToCheck=document.querySelector("body")),e.Readability=document.querySelector(i),!e.Readability)if(e.areaToCheck){e.Readability=e.areaToCheck;const{readabilityDetails:t,readabilityToggle:s}=o.Panel,a="true"===s?.getAttribute("aria-pressed");if(t&&a){const o=document.createElement("div");o.id="readability-alert",o.innerHTML=`

                    ${n.sprintf("MISSING_READABILITY_ROOT",e.areaToCheck.tagName.toLowerCase(),i)}

                    `,t.insertAdjacentElement("afterend",o)}}else e.Readability=document.querySelector("body")},Root:e,initializeGlobal:function(e){t.html=document.querySelector("html"),t.headless=e.headless,t.panelPosition=e.panelPosition,t.dismissAnnotations=e.dismissAnnotations,t.aboutContent=e.aboutContent,t.contrastAPCA=e.contrastAPCA,t.contrastSuggestions=e.contrastSuggestions,t.contrastAAA=e.contrastAAA,t.shadowDetection=e.shadowComponents.length>0||!0===e.autoDetectShadowComponents,t.developerPlugin=e.developerPlugin,t.colourFilterPlugin=e.colourFilterPlugin,t.checkAllHideToggles=e.checkAllHideToggles,t.exportResultsPlugin=e.exportResultsPlugin,t.readabilityPlugin=e.readabilityPlugin,t.showImageOutline=e.showImageOutline,t.editImageURLofCMS=e.editImageURLofCMS,t.relativePathImageSRC=e.relativePathImageSRC,t.relativePathImageID=e.relativePathImageID,t.ignoreEditImageURL=e.ignoreEditImageURL,t.ignoreEditImageClass=e.ignoreEditImageClass,t.showMovePanelToggle=e.showMovePanelToggle;let n=!1;"function"==typeof window.matchMedia&&(n=window.matchMedia("(prefers-reduced-motion: reduce)")),t.scrollBehaviour=!n||n.matches?"auto":"smooth",t.langDirection="rtl"===t.html.getAttribute("dir")?"rtl":"ltr";const o=e.checks.QA_DOCUMENT.sources,i='a[href$=".doc"], a[href$=".docx"], a[href*=".doc?"], a[href*=".docx?"], a[href$=".ppt"], a[href$=".pptx"], a[href*=".ppt?"], a[href*=".pptx?"], a[href^="https://drive.google.com/file"], a[href^="https://docs.google."], a[href^="https://sway."]';t.documentSources=o?`${i}, ${o}`:i;const s=e.checks.EMBED_VIDEO.sources,a='video, [src*="Video"], [src*="video"], [src*="watch"], [src*="youtube.com"], [src*="vimeo.com"], [src*="panopto.com"], [src*="wistia.com"], [src*="dailymotion.com"], [src*="brightcove.com"], [src*="vidyard.com"]';if(s){const e=s.split(/\s*[\s,]\s*/).map(e=>`[src*="${e}"]`);t.VideoSources=`${a}, ${e.join(", ")}`}else t.VideoSources=a;const r=e.checks.EMBED_AUDIO.sources,l='audio, [src*="soundcloud.com"], [src*="simplecast.com"], [src*="podbean.com"], [src*="buzzsprout.com"], [src*="blubrry.com"], [src*="transistor.fm"], [src*="fusebox.fm"], [src*="libsyn.com"], [src*="spotify.com"], [src*="podcasts.apple.com"], [src*="castbox.fm"], [src*="megaphone.fm"], [src*="spreaker.com"], [src*="anchor.fm"], [src*="rss.com"], [src*="redcircle.com"]';if(r){const e=r.split(/\s*[\s,]\s*/).map(e=>`[src*="${e}"]`);t.AudioSources=`${l}, ${e.join(", ")}`}else t.AudioSources=l;const c=e.checks.EMBED_DATA_VIZ.sources,d='[src*="datastudio"], [src*="tableau"], [src*="lookerstudio"], [src*="powerbi"], [src*="qlik"]';if(c){const e=c.split(/\s*[\s,]\s*/).map(e=>`[src*="${e}"]`);t.VisualizationSources=`${d}, ${e.join(", ")}`}else t.VisualizationSources=d;t.AllEmbeddedContent=`${t.VideoSources}, ${t.AudioSources}, ${t.VisualizationSources}`},Global:t,initializePanelSelectors:function(){const e=document.querySelector("sa11y-control-panel").shadowRoot;i.panel=e.getElementById("panel"),i.content=e.getElementById("panel-content"),i.controls=e.getElementById("panel-controls"),i.outline=e.getElementById("outline-panel"),i.outlineContent=e.getElementById("outline-content"),i.outlineList=e.getElementById("outline-list"),i.outlineHeader=e.getElementById("outline-header"),i.images=e.getElementById("images-panel"),i.imagesContent=e.getElementById("images-content"),i.imagesList=e.getElementById("images-list"),i.imagesHeader=e.getElementById("images-header"),i.notifBadge=e.getElementById("notification-badge"),i.notifCount=e.getElementById("notification-count"),i.notifText=e.getElementById("notification-text"),i.status=e.getElementById("status"),i.pageIssues=e.getElementById("page-issues"),i.pageIssuesList=e.getElementById("page-issues-list"),i.pageIssuesHeader=e.getElementById("page-issues-header"),i.pageIssuesContent=e.getElementById("page-issues-content"),i.settings=e.getElementById("settings-panel"),i.settingsHeader=e.getElementById("settings-header"),i.settingsContent=e.getElementById("settings-content"),i.developerToggle=e.getElementById("developer-toggle"),i.readabilityToggle=e.getElementById("readability-toggle"),i.themeToggle=e.getElementById("theme-toggle"),i.developerItem=e.getElementById("developer-item"),i.readabilityItem=e.getElementById("readability-item"),i.darkModeItem=e.getElementById("dark-mode-item"),i.colourPanel=e.getElementById("panel-colour-filters"),i.colourFilterItem=e.getElementById("colour-filter-item"),i.colourFilterSelect=e.getElementById("colour-filter-select"),i.colourFilterIcon=e.getElementById("filter-icon"),i.toggle=e.getElementById("toggle"),i.outlineToggle=e.getElementById("outline-toggle"),i.imagesToggle=e.getElementById("images-toggle"),i.settingsToggle=e.getElementById("settings-toggle"),i.movePanelToggle=e.getElementById("move-panel"),i.skipButton=e.getElementById("skip-button"),i.dismissButton=e.getElementById("dismiss-button"),i.dismissTooltip=e.getElementById("dismiss-tooltip"),i.skipToPageIssues=e.getElementById("skip-to-page-issues"),i.exportHTML=e.getElementById("export-html"),i.exportCSV=e.getElementById("export-csv"),i.alert=e.getElementById("panel-alert"),i.alertText=e.getElementById("panel-alert-text"),i.alertPreview=e.getElementById("panel-alert-preview"),i.alertClose=e.getElementById("close-alert"),i.readability=e.getElementById("readability-panel"),i.readabilityInfo=e.getElementById("readability-info"),i.readabilityDetails=e.getElementById("readability-details")},Panel:i,initializeReadability:function(e){if(e.readabilityPlugin){s.Lang=n._("LANG_CODE").substring(0,2);const e=["en","fr","es","de","nl","it","sv","fi","da","no","nb","nn","pt"],t=o.Global.html.getAttribute("lang");if(t){const n=t.toLowerCase().substring(0,2);e.includes(n)&&e.includes(s.Lang)?s.Plugin=!0:s.Plugin=!1}else s.Plugin=!1}},Readability:s,initializeExclusions:function(e){a.Sa11yElements=["sa11y-heading-label","sa11y-heading-anchor","sa11y-annotation","sa11y-tooltips","sa11y-panel-tooltips","sa11y-control-panel","#sa11y-colour-filters","#sa11y-colour-filters *"];const t=["style","script","noscript"];if(a.Container=["#wpadminbar","#wpadminbar *",...t],e.containerIgnore){const t=e.containerIgnore.split(",").map(e=>e.trim());a.Container=a.Container.concat(t.flatMap(e=>[`${e} *`,e]))}a.Contrast=["link","hr","option","audio","audio *","video","video *",'input[type="color"]','input[type="range"]',"progress","progress *","meter","meter *","iframe","svg title","svg desc",...t],e.contrastIgnore&&(a.Contrast=e.contrastIgnore.split(",").map(e=>e.trim()).flatMap(e=>[e,`${e} *`]).concat(a.Contrast)),a.Readability=["nav li",'[role="navigation"] li',...t],e.readabilityIgnore&&(a.Readability=e.readabilityIgnore.split(",").map(e=>e.trim()).flatMap(e=>[e,`${e} *`]).concat(a.Readability)),a.Headings=e.headerIgnore?e.headerIgnore.split(",").map(e=>e.trim()):[],a.HeaderSpan=e.headerIgnoreSpan?e.headerIgnoreSpan.split(",").map(e=>e.trim()):[],a.Outline=e.outlineIgnore?e.outlineIgnore.split(",").map(e=>e.trim()):[],a.Images=['[role="presentation"]'],e.imageIgnore&&(a.Images=e.imageIgnore.split(",").map(e=>e.trim()).concat(a.Images)),a.Links=[".anchorjs-link"],e.linkIgnore&&(a.Links=e.linkIgnore.split(",").map(e=>e.trim()).concat(a.Links)),a.LinkSpan=e.linkIgnoreSpan?e.linkIgnoreSpan.split(",").map(e=>e.trim()):[]},Exclusions:a}}();function i(e,t,n){let i;"document"===t?i=document:"readability"===t?(i=o.Readability.Root,i||(i=o.Root.areaToCheck)):"root"===t?(i=o.Root.areaToCheck,i||(i=document.body)):"panel"===t?(i=o.Panel.panel,i||(i=document.body)):(i=document.querySelector(t),i||(i=document.body));const s=document.querySelectorAll("[data-sa11y-has-shadow-root]"),a=s?", [data-sa11y-has-shadow-root]":"",r=o.Exclusions.Container.join(", "),l=n?.join(", ")||"",c=l?`, ${l}`:"",d=Array.from(i.querySelectorAll(`:is(${e}${a}):not(${r}${c})`));if(s.length){const t=[];if(d.forEach((n,o)=>{n&&n.matches&&n.matches("[data-sa11y-has-shadow-root]")&&n.shadowRoot&&(t[o]=n.shadowRoot.querySelectorAll(`:is(${e}):not(${r}${c})`))}),t.length>0)for(let e=t.length-1;e>=0;e--)t[e]&&d.splice(e,1,...t[e])}return d.filter(e=>"SLOT"!==e.parentNode.tagName)}const s=(e,t)=>{const n=e=>{if("none"===e)return"";const t=e.includes("url(")||e.includes("image-set(")?e.match(/\/\s*"([^"]+)"/):e.match(/"([^"]+)"/);return t?t[1]:""};return`${n(window.getComputedStyle(e,":before").getPropertyValue("content"))}${t}${n(window.getComputedStyle(e,":after").getPropertyValue("content"))}`},a=e=>{for(let t=0;t<1e3;t++){if(e.nextSibling())return e.previousNode();if(!e.parentNode())return!1}return!1},r=(e,t=!1)=>{const n=e.getAttribute("aria-labelledby");if(!t&&n)return n.split(/\s+/).filter(e=>e.trim()).map(e=>{const t=document.querySelector(`#${CSS.escape(e)}`);return t?l(t,"",1):""}).join(" ");const o=e.getAttribute("aria-label");return o&&o.trim().length>0?o:"noAria"},l=(e,t=[],n=0)=>{const o=r(e,n);if("noAria"!==o)return o;if("TEXTAREA"===e.tagName&&e.hasAttribute("title"))return e.getAttribute("title");let i="";if(!e.children.length)return i=s(e,e.textContent),!i.trim()&&e.hasAttribute("title")?e.getAttribute("title"):i;const c=(d=e,p=!0,u=!0,document.createTreeWalker(d,NodeFilter.SHOW_ALL,{acceptNode:e=>p&&e.nodeType===Node.ELEMENT_NODE||u&&e.nodeType===Node.TEXT_NODE?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT}));var d,p,u;const h=[...t,"noscript","style","script","video","audio"].join(", "),g=h?e.querySelectorAll(h):[];let m=!1,f=!1,b=0,y=!0;for(;c.nextNode()&&y;){b+=1;const e=c.currentNode;if(Array.from(g).some(t=>t.contains(e)))continue;if(e.shadowRoot){const o=e.shadowRoot.querySelectorAll("*");for(let e=0;e{e.nodeType===Node.ELEMENT_NODE?n+=l(e):e.nodeType===Node.TEXT_NODE&&(n+=e.nodeValue)}),i+=n,i+=s(e,"");break}default:i+=s(e,"")}else i+=` ${o}`,a(c)||(y=!1)}return m&&!f&&(i+=` ${m}`),i=i.replace(/[\uE000-\uF8FF]/gu,""),!i.trim()&&e.hasAttribute("title")?e.getAttribute("title"):i};function c(e){if(e.getAttribute("hidden")||0===e.offsetWidth&&0===e.offsetHeight||1===e.clientHeight&&1===e.clientWidth)return!0;return"none"===getComputedStyle(e).getPropertyValue("display")}function d(e){const t=window.getComputedStyle(e),n=t.getPropertyValue("clip-path"),{position:o}=t,i=parseFloat(t.width),s=parseFloat(t.height),{overflow:a}=t;return"inset(50%)"===n||"absolute"===o&&1===i&&1===s&&"hidden"===a}function p(e){if(e.getAttribute("hidden"))return!0;return"none"===getComputedStyle(e).getPropertyValue("display")}function u(e){const t=document.createElement("div");return t.textContent=e,t.innerHTML.replaceAll('"',""").replaceAll("'","'").replaceAll("`","`")}function h(e){return e.replace(/[^\w. ]/gi,e=>`&#${e.charCodeAt(0)};`)}function g(e){if(!e)return"#";const t=String(e).trim();if(/^javascript:/i.test(t))return"#";if(/^data:/i.test(t))return"#";if(!["http:","https:","mailto:","tel:","ftp:"].some(e=>t.toLowerCase().startsWith(e))&&!t.startsWith("/")&&!t.startsWith("#"))return`./${t}`;const n=t.replace(/<[^>]*>/g,"");return encodeURI(n)}function m(e,t=!1){const n=document.createElement("div");n.innerHTML=e,["script","style","noscript","iframe","form"].forEach(e=>{const t=n.getElementsByTagName(e);for(;t.length>0;)t[0].parentNode.removeChild(t[0])});return Array.from(n.getElementsByTagName("*")).forEach(e=>{Array.from(e.attributes).forEach(t=>{t.name.startsWith("on")&&e.removeAttribute(t.name)}),t||e.removeAttribute("style")}),n.innerHTML}function f(e,t=[]){const n=["noscript","script","style","audio","video","form","iframe",...t].join(", "),o=e.cloneNode(!0);return Array.from(o.querySelectorAll(n)).forEach(e=>{e.parentElement.removeChild(e)}),o}function b(e){return f(e).textContent.replace(/[\r\n]+/g,"").replace(/\s+/g," ").trim()}function y(e){return e.replace(/[\r\n]+/g," ").replace(/\s+/g," ").trim()}function A(e,t){const n=e.substring(0,t).trimEnd();return e.length>t?`${n}...`:e}function E(e,t,n){let o=e;for(;null!==o;){if(window.getComputedStyle(o).getPropertyValue(t)===n)return o;o=o.parentElement}return null}function v(e){const t=e.getBoundingClientRect(),n=window.pageYOffset||document.documentElement.scrollTop;return{top:t.top+n}}const _={getItem(e){try{return null===localStorage.getItem(e)?sessionStorage.getItem(e):localStorage.getItem(e)}catch(e){return!1}},setItem(e,t){try{localStorage.setItem(e,t)}catch(n){sessionStorage.setItem(e,t)}return!0},removeItem(e){try{localStorage.removeItem(e)}catch(t){sessionStorage.removeItem(e)}return!0}};function L(e){const t="data-sa11y-pulse-border";e.setAttribute(t,""),setTimeout(()=>{e.removeAttribute(t)},2500)}function I(e){return String(e).replace(/([^0-9a-zA-Z])/g,"").substring(0,256)}function T(){const e=document.querySelector("sa11y-control-panel").shadowRoot,t=e.getElementById("panel-alert"),n=e.getElementById("panel-alert-text"),o=e.getElementById("panel-alert-preview");for(t.classList.remove("active"),o.classList.remove("panel-alert-preview");n.firstChild;)n.removeChild(n.firstChild);for(;o.firstChild;)o.removeChild(o.firstChild)}function x(e,t,n){T();const o=document.querySelector("sa11y-control-panel").shadowRoot,i=o.getElementById("panel-alert"),s=o.getElementById("panel-alert-text"),a=o.getElementById("panel-alert-preview"),r=o.getElementById("close-alert"),l=o.getElementById("skip-button");i.classList.add("active"),s.innerHTML=e;const c=n?`
                    ${n}
                    `:"";function d(){T();(l.hasAttribute("disabled")?o.getElementById("toggle"):l).focus()}t&&(a.classList.add("panel-alert-preview"),a.innerHTML=`${c}
                    ${t}
                    `),setTimeout(()=>{r.focus()},300),r.addEventListener("click",d),i.onkeydown=e=>{"Escape"===(e||window.event).key&&i.classList.contains("active")&&d()}}function k(e,t){e.forEach(e=>{i(`[${e}]`,`${t}`).forEach(t=>{t.removeAttribute(e)})})}function N(e,t){i(`${e}`,`${t}`).forEach(e=>{e.parentNode.removeChild(e)})}function S(e,t,n){setTimeout(()=>{e.scrollHeight>t.clientHeight?(t.classList.add("scrollable"),e.setAttribute("tabindex","0"),n&&(e.setAttribute("aria-label",n),e.setAttribute("role","region"))):t.classList.remove("scrollable")},50)}function w(e){const t=e=>e?.split(",").pop()?.trim()?.split(/\s+/)[0],n=e=>e?new URL(e,window.location.href).href:null,o=t(e.getAttribute("data-src")||e.getAttribute("srcset"));if(o)return n(o);const i=e.closest("picture")?.querySelector("source[srcset]")?.getAttribute("srcset"),s=t(i);return n(s||e.getAttribute("src"))}function C(e,t=!1){const n=e.element,o=`
                    ${u(A(m(e.htmlPath),600))}
                    `,i=e=>{const t=b(e),n=A(t,100);return t.length?h(n):o},s={SPAN:i,P:i,A:e=>{const t=b(e),n=A(t,100);return t.length>1&&e.href&&!e.hasAttribute("role")?`${h(n)}`:o},IMG:e=>{const n=e.closest("a[href]"),i=e.alt?`alt="${h(e.alt)}"`:"alt",s=w(e);function a(e){return n?``:``}if(t)return new Promise(e=>{if(s){if(new URL(s,window.location.origin).origin===window.location.origin)fetch(s).then(e=>e.blob()).then(e=>(e=>new Promise((t,n)=>{const o=new FileReader;o.onloadend=()=>{let{result:n}=o;const i=e.type&&e.type.startsWith("image/")?e.type:"image/png";n.startsWith("data:application/octet-stream")&&(n=n.replace("data:application/octet-stream",`data:${i}`)),t(n)},o.onerror=n,o.readAsDataURL(e)}))(e)).then(t=>{const n=t.startsWith("data:image/")?t:g(t);e(a(n))}).catch(()=>{e(a(s))});else{const t=s.startsWith("data:image/")?s:g(s);e(a(t))}}else e(o)});const r=s.startsWith("data:image/")?s:g(s);return s?a(r):o},IFRAME:e=>{const t=e.src,n=e.title?e.title:"",i=e.getAttribute("aria-label");if(t){const e=i||""||n;return``}return o},AUDIO:()=>m(e.htmlPath),VIDEO:()=>m(e.htmlPath)}[n.tagName];return s?s(n):o}function O(e){let t="";const n=l(e).toLowerCase();e.childNodes.forEach(e=>{e.nodeType===Node.TEXT_NODE?t+=e.textContent:e.nodeType===Node.ELEMENT_NODE&&(c(e)||(t+=e.textContent))});let o=t.replace(/[\p{Emoji_Presentation}\p{Extended_Pictographic}]/gu,"");return o=y(o).toLowerCase(),"x"!==o&&(0!==o.length&&!n.includes(o))}const P=function(){const e={};const t={};return{initializeElements:function(t){e.Everything=i("*","root",o.Exclusions.Sa11yElements),e.Contrast=e.Everything.filter(e=>!o.Exclusions.Contrast.some(t=>e.matches(t))&&!o.Exclusions.Contrast.includes(e)),e.Images=e.Everything.filter(e=>"IMG"===e.tagName&&!o.Exclusions.Images.some(t=>e.matches(t))),e.Links=e.Everything.filter(e=>("A"===e.tagName||"a"===e.tagName)&&e.hasAttribute("href")&&!e.matches('[role="button"]')&&!o.Exclusions.Links.some(t=>e.matches(t))),e.Headings=i('h1, h2, h3, h4, h5, h6, [role="heading"][aria-level]',"document",o.Exclusions.Headings),e.HeadingOne=i('h1, [role="heading"][aria-level="1"]',"document",o.Exclusions.Headings),e.ExcludedHeadings=e.Headings.filter(e=>o.Exclusions.Headings.some(t=>e.matches(t))),e.ExcludedOutlineHeadings=e.Headings.filter(e=>o.Exclusions.Outline.some(t=>e.matches(t))),e.OutlineIgnore=P.Found.ExcludedOutlineHeadings.concat(P.Found.ExcludedHeadings),e.Paragraphs=e.Everything.filter(e=>"P"===e.tagName&&!e.closest("table")),e.Lists=e.Everything.filter(e=>"LI"===e.tagName),e.Blockquotes=e.Everything.filter(e=>"BLOCKQUOTE"===e.tagName),e.Tables=e.Everything.filter(e=>"TABLE"===e.tagName&&!e.matches('[role="presentation"]')&&!e.matches('[role="none"]')),e.StrongItalics=e.Everything.filter(e=>["STRONG","EM"].includes(e.tagName)),e.Subscripts=e.Everything.filter(e=>["SUP","SUB"].includes(e.tagName));const n=t.checks.QA_BAD_LINK.sources;e.CustomErrorLinks=n.length?e.Links.filter(e=>n.split(",").some(t=>e.matches(t.trim()))):[];const s=e=>o.Root.Readability.contains(e)&&!o.Exclusions.Readability.some(t=>e.matches(t));e.Readability=[...e.Paragraphs.filter(s),...e.Lists.filter(s)];const a=t.checks.QA_NESTED_COMPONENTS.sources||'[role="tablist"], details';e.NestedComponents=a?e.Everything.filter(e=>e.matches(a)):[],e.TabIndex=e.Everything.filter(e=>e.hasAttribute("tabindex")&&"0"!==e.getAttribute("tabindex")&&!e.getAttribute("tabindex").startsWith("-")),e.Svg=e.Everything.filter(e=>"svg"===e.tagName),e.Buttons=e.Everything.filter(e=>"BUTTON"===e.tagName||e.matches('[role="button"]')),e.Inputs=e.Everything.filter(e=>["INPUT","SELECT","TEXTAREA","METER","PROGRESS"].includes(e.tagName)),e.Labels=e.Everything.filter(e=>"LABEL"===e.tagName),e.iframes=e.Everything.filter(e=>["IFRAME","AUDIO","VIDEO"].includes(e.tagName)),e.Videos=e.iframes.filter(e=>e.matches(o.Global.VideoSources)),e.Audio=e.iframes.filter(e=>e.matches(o.Global.AudioSources)),e.Visualizations=e.iframes.filter(e=>e.matches(o.Global.VisualizationSources)),e.EmbeddedContent=e.iframes.filter(e=>!e.matches(o.Global.AllEmbeddedContent));const r=document.querySelector("html");e.Language=r.getAttribute("lang")},Found:e,initializeAnnotations:function(){t.Array=i("sa11y-annotation","document"),t.Array.forEach((e,t)=>{e.setAttribute("data-sa11y-position",t)})},Annotations:t}}();const R=e=>{if(0===e.shadowRoot.querySelectorAll(".sa11y-css-utilities").length){const t=document.createElement("style");t.setAttribute("class","sa11y-css-utilities"),t.textContent="[data-sa11y-overflow]{overflow:auto!important}[data-sa11y-clone-image-text]{display:none!important}[data-sa11y-readability-period]{clip:rect(1px,1px,1px,1px)!important;border:0!important;clip-path:inset(50%)!important;display:block!important;height:1px!important;overflow:hidden!important;padding:0!important;position:absolute!important;white-space:nowrap!important;width:1px!important}[data-sa11y-error-inline],[data-sa11y-error]{outline:5px solid var(--sa11y-error)!important;outline-offset:2px}[data-sa11y-warning-inline]:not([data-sa11y-error-inline]),[data-sa11y-warning]:not([data-sa11y-error]){outline:5px solid var(--sa11y-warning)!important;outline-offset:2px}[data-sa11y-pulse-border]{animation:pulse 2s 3;box-shadow:0;outline:5px solid var(--sa11y-focus-color)!important}[data-sa11y-pulse-border]:focus,[data-sa11y-pulse-border]:hover{animation:none}@keyframes pulse{0%{box-shadow:0 0 0 5px var(--sa11y-focus-color)}70%{box-shadow:0 0 0 12px var(--sa11y-pulse-color)}to{box-shadow:0 0 0 5px var(--sa11y-pulse-color)}}@media (prefers-reduced-motion:reduce){[data-sa11y-pulse-border]{animation:none!important}}@media (forced-colors:active){[data-sa11y-error-inline],[data-sa11y-error],[data-sa11y-good],[data-sa11y-pulse-border],[data-sa11y-warning-inline],[data-sa11y-warning]{forced-color-adjust:none}}",e.shadowRoot.appendChild(t)}};function D(e,t,n){if(!0===e){let e=window.location.href;const o=function(e,t){let n=null;return(...o)=>{window.clearTimeout(n),n=window.setTimeout(()=>{e(...o)},t)}}(async()=>{e!==window.location.href&&("Closed"!==_.getItem("sa11y-panel")&&_.getItem("sa11y-panel")?(n(!1),await t()):t(),e=window.location.href)},250);window.addEventListener("click",o),window.addEventListener("keydown",o)}}function M(e,t){const i=JSON.parse(localStorage.getItem("sa11y-dismissed")||"[]"),s=window.location.pathname,a=[...e.filter(e=>i.some(t=>((e,t)=>t.key.includes(e.dismiss)&&t.href===s&&("warning"===e.type||"good"===e.type))(e,t))),...e.filter(e=>i.some(t=>((e,t)=>"string"==typeof t.dismissAll&&e.dismissAll===t.dismissAll&&t.href===s)(e,t)))],r=a.length,l=e.filter(e=>!a.some(t=>t.dismiss===e.dismiss&&("warning"===e.type||"good"===e.type)));return r?(o.Panel.dismissButton.classList.add("active"),o.Panel.dismissTooltip.innerText=n.sprintf("PANEL_DISMISS_BUTTON",r),t.object.setContent(n.sprintf("PANEL_DISMISS_BUTTON",r))):o.Panel.dismissButton.classList.remove("active"),{dismissedIssues:i,updatedResults:l,dismissCount:r,dismissedResults:a}}let B,$;function G(e,t,s,a){if(o.Global.dismissAnnotations){$=t=>{(async(e,t,o,s)=>{let a=JSON.parse(_.getItem("sa11y-dismissed"));const r=e.target;if(document.querySelector("sa11y-panel-tooltips").hidden=!1,"BUTTON"===r.tagName&&r.hasAttribute("data-sa11y-dismiss")){const e=parseInt(r.getAttribute("data-sa11y-dismiss"),10),l=t.find(t=>t.id===e);if(null===a&&(setTimeout(()=>x(n._("DISMISS_REMINDER")),0),a=[]),l.dismiss){const e=r.hasAttribute("data-sa11y-dismiss-all")?l.dismissAll:"",t={key:l.dismiss,href:window.location.pathname,...e?{dismissAll:e}:{}},n=i(`[data-sa11y-annotation='${l.id}']`),c=n[0]?n[0].getAttribute("data-sa11y-position"):0;_.setItem("sa11y-latest-dismissed",c),_.setItem("sa11y-dismiss-item",JSON.stringify(t)),a.push(t),_.setItem("sa11y-dismissed",JSON.stringify(a)),_.removeItem("sa11y-dismiss-item");const d=r?.closest("[data-tippy-root]");d&&setTimeout(()=>{d.remove()},0),s(!1),await o()}}})(t,e,s,a)};document.querySelector("sa11y-tooltips").shadowRoot.addEventListener("click",$),o.Panel.panel.addEventListener("click",$)}B=()=>{(async(e,t,n)=>{document.querySelector("sa11y-panel-tooltips").hidden=!0;const i=e.filter(e=>e.href!==window.location.pathname);_.setItem("sa11y-dismissed",JSON.stringify(i)),o.Panel.dismissButton.classList.remove("active"),n(!1),await t()})(t,s,a)},o.Panel.dismissButton?.addEventListener("click",B)}function U(){const e=new Date,t=String(e.getDate()).padStart(2,"0"),n=String(e.getMonth()+1).padStart(2,"0"),o=e.getFullYear(),i=(new Date).toLocaleString(),s=`${n}-${t}-${o}`,a=document.querySelector("head title"),r=!a||0===a.textContent.trim().length;return{date:i,numericDate:s,titleCheck:r,metaTitle:r?"":a.textContent,pageURL:window.location.href}}async function H(e,t){const o=await async function(e,t){const o=e.filter(e=>"error"===e.type),i=e.filter(e=>"warning"===e.type),s={error:o.length,warning:i.length,dismiss:t.length};async function a(e,t){const o={error:n._("ERRORS"),warning:n._("WARNINGS"),dismissed:n._("DISMISSED")}[t];if(!(e.length>0))return"";let i=`

                    ${o}

                    `,a=`
                      `,r="
                    ";"dismissed"===t&&(a=`
                    ${n.sprintf("PANEL_DISMISS_BUTTON",s.dismiss)}
                      `,r="
                    "),i+=a;const l=e.map(async e=>{let t="";if(e.element){const o=["IMG","IFRAME","AUDIO","VIDEO"],i=await C(e,!0);t=o.includes(e.element.tagName)?`
                  • ${n._("PREVIEW")}: ${i}
                  • ${n._("ELEMENT")}:
                    ${u(e.htmlPath)}
                  • `:`
                  • ${n._("ELEMENT")}:
                    ${u(e.htmlPath)}
                  • `}const o=e.cssPath?`
                  • ${n._("PATH")}:
                    ${e.cssPath}
                  • `:"";return`
                  • ${e.content}
                      ${t}${o}
                  • `});return i+=(await Promise.all(l)).join(""),i+=r,i}const r=await a(o,"error"),l=await a(i,"warning"),c=await a(t,"dismissed"),d=U(),p=d.titleCheck?"":`
                    ${n._("PAGE_TITLE")}
                    ${d.metaTitle}
                    `,h=0!==s.error?`
                    ${n._("ERRORS")}
                    ${s.error}
                    `:"",g=0!==s.warning?`
                    ${n._("WARNINGS")}
                    ${s.warning}
                    `:"",m=0!==s.dismiss?`
                    ${n._("DISMISSED")}
                    ${s.dismiss}
                    `:"";return`\n \n \n \n \n \n ${n._("RESULTS")}: ${d.metaTitle}\n \n \n \n
                    \n

                    ${n._("RESULTS")}

                    \n
                    \n
                    \n ${p}\n
                    URL
                    \n
                    ${d.pageURL}
                    \n
                    ${n._("DATE")}
                    \n
                    ${d.date}
                    \n
                    \n
                    \n ${h}\n ${g}\n ${m}\n
                    \n
                    \n
                    \n
                    \n ${r}\n ${l}\n ${c}\n
                    \n
                    \n

                    ${n.sprintf("GENERATED",'Sa11y')}

                    \n
                    \n \n \n `}(e,t),i=U(),s=new Blob([o],{type:"text/html"}),a=document.createElement("a"),r=i.titleCheck?"":`_${i.metaTitle.trim().replace(/ /g,"")}`;a.href=window.URL.createObjectURL(s),a.download=`Sa11y_${i.numericDate+r}.html`,document.body.appendChild(a),a.click(),setTimeout(()=>{document.body.removeChild(a),window.URL.revokeObjectURL(a.href)},100)}function F(e){const t=U(),n=e.filter(e=>"warning"===e.type||"error"===e.type).map(e=>{const{type:n,content:o,htmlPath:i,cssPath:s}=e,a=o.replaceAll(/]*>.*?<\/span>/gi,"").replaceAll(''," | ").replaceAll(/"/g,'""');const r=function(e){return e.replace(/&(#?[a-zA-Z0-9]+);/g,(e,t)=>{switch(t){case"amp":return"&";case"lt":return"<";case"gt":return">";case"quot":case"#39":return"'";default:return"#"===t.charAt(0)?String.fromCharCode("x"===t.charAt(1)?parseInt(t.substr(2),16):parseInt(t.substr(1),10)):e}})}(String(a).replace(/<[^>]*>/g,"")),l={Title:`"${t.metaTitle}"`,URL:`"${t.pageURL}"`,Type:`"${String(n)}"`,Issue:`"${r}"`,Element:`"${i}"`};return s&&(l.Path=`"${s}"`),l}),o=Object.keys(n[0]),i=`${o.join(",")}\n${n.map(e=>o.map(t=>e[t]).join(",")).join("\n")}`,s=new Uint8Array([239,187,191]),a=new Blob([s,i],{type:"text/csv;charset=utf-8;"}),r=window.URL.createObjectURL(a),l=document.createElement("a");l.href=r,l.href=window.URL.createObjectURL(a);const c=t.titleCheck?"":`_${t.metaTitle.trim().replace(/ /g,"")}`;l.setAttribute("download",`Sa11y_${t.numericDate+c}.csv`),document.body.appendChild(l),l.click(),setTimeout(()=>{document.body.removeChild(l),window.URL.revokeObjectURL(l.href)},100)}let K,W;const Y="4.2.0";var z='.visually-hidden{clip:rect(1px,1px,1px,1px);border:0;clip-path:inset(50%);display:block;height:1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px}[hidden]{display:none!important}.header-text,.header-text-inline,h2{color:var(--sa11y-panel-primary);display:block;font-size:var(--sa11y-large-text);font-weight:600;margin-bottom:3px}.header-text-inline{display:inline-block!important}code{font-family:monospace!important;font-size:calc(var(--sa11y-normal-text) - 1px);font-weight:600}pre:has(code){display:block;overflow:auto;white-space:pre-wrap}.kbd,code,kbd,pre{background-color:var(--sa11y-panel-badge);border-radius:3.2px;color:var(--sa11y-panel-primary);padding:1.6px 4.8px}.bold{font-weight:600}.error .colour,.red-text{color:var(--sa11y-red-text);font-family:var(--sa11y-font-face)}.warning .colour,.yellow-text{color:var(--sa11y-yellow-text);font-family:var(--sa11y-font-face)}.badge,.normal-badge{background-color:var(--sa11y-panel-badge);border-radius:10px;color:var(--sa11y-panel-primary);display:inline;font-size:14px;font-weight:700!important;line-height:1;min-width:10px;outline:1px solid transparent;padding:1px 5px 1.75px;text-align:center;vertical-align:baseline;white-space:nowrap}.error .badge{background:var(--sa11y-error);color:var(--sa11y-error-text)}.error-badge{background:var(--sa11y-error)!important;color:var(--sa11y-error-text)!important}.warning .badge{background:var(--sa11y-yellow-text);color:var(--sa11y-panel-bg)}.warning-badge{background:var(--sa11y-yellow-text)!important;color:var(--sa11y-panel-bg)!important}.good-contrast{background:var(--sa11y-good)!important;color:var(--sa11y-good-text)!important}#contrast-preview{background-color:#e8e8e8;background-image:linear-gradient(45deg,#ccc 25%,transparent 0,transparent 75%,#ccc 0,#ccc),linear-gradient(45deg,#ccc 25%,transparent 0,transparent 75%,#ccc 0,#ccc);background-position:0 0,5px 5px;background-size:10px 10px;border:2px dashed var(--sa11y-panel-bg-splitter);border-radius:3.2px;line-height:1;margin-top:10px;max-height:100px;overflow:clip;overflow-wrap:break-word;padding:5px}#color-pickers{display:flex;justify-content:space-between;margin-bottom:10px;margin-top:10px}#color-pickers label{align-items:center;display:flex}#color-pickers input{margin-inline-start:7px}input[type=color i]{background:var(--sa11y-panel-bg-secondary);block-size:30px;border-color:var(--sa11y-button-outline);border-radius:50%;border-style:solid;border-width:1px;inline-size:30px;padding:2px}input[type=color i]::-webkit-color-swatch-wrapper{padding:1px}input[type=color i]::-webkit-color-swatch{border-color:var(--sa11y-button-outline);border-radius:50%}input[type=color i]::-moz-color-swatch{border-color:var(--sa11y-button-outline);border-radius:50%}input[type=color i].unknown{box-shadow:0 0 0 2px var(--sa11y-yellow-text)}input[type=color i].unknown:after{align-items:center;color:#fff;content:"?";display:flex;font-size:18px;height:24px;justify-content:center;margin:-24px 0;pointer-events:none;position:absolute;width:24px;z-index:2}.close-btn{background:var(--sa11y-panel-bg-secondary);border:2px solid var(--sa11y-button-outline);border-radius:50%;color:var(--sa11y-panel-primary);cursor:pointer;float:var(--sa11y-float-rtl);font-size:var(--sa11y-normal-text);font-weight:400;height:32px;margin:0;position:relative;transition:all .2s ease-in-out;width:32px}.close-btn:focus,.close-btn:hover{background-color:var(--sa11y-shortcut-hover)}.close-btn:after{background:var(--sa11y-setting-switch-bg-off);content:"";inset:-7px;-webkit-mask:var(--sa11y-close-btn-svg) center no-repeat;mask:var(--sa11y-close-btn-svg) center no-repeat;position:absolute}@media screen and (forced-colors:active){.close-btn:after{filter:invert(1)}}#container [tabindex="-1"]:focus,#container [tabindex="0"]:focus,#container a:focus,#container button:focus,#container input:focus,#container select:focus{box-shadow:0 0 0 5px var(--sa11y-focus-color);outline:0}#container #panel-controls button:focus,#container .switch:focus{box-shadow:inset 0 0 0 4px var(--sa11y-focus-color);outline:0}#container #panel-controls button:focus:not(:focus-visible),#container [tabindex="-1"]:focus:not(:focus-visible),#container [tabindex="0"]:focus:not(:focus-visible),#container button:focus:not(:focus-visible),#container input:focus:not(:focus-visible),#container select:focus:not(:focus-visible){box-shadow:none;outline:0}#container [tabindex="-1"]:focus-visible,#container [tabindex="0"]:focus-visible,#container a:focus-visible,#container button:not(#panel-controls button):not(.switch):focus-visible,#container input:focus-visible,#container select:focus-visible{box-shadow:0 0 0 5px var(--sa11y-focus-color);outline:0}#container #panel-controls button:focus-visible,#container .switch:focus-visible{box-shadow:inset 0 0 0 4px var(--sa11y-focus-color);outline:0}@media screen and (forced-colors:active){#panel-controls button:focus{border:3px solid transparent}#container [tabindex="-1"]:focus,#container [tabindex="0"]:focus,#container a:focus,#container button:focus,#container select:focus,.close-btn:focus{outline:3px solid transparent!important}}';class Q extends HTMLElement{constructor(e){super(),this.error=e}connectedCallback(){const e=this.attachShadow({mode:"open"}),t=document.createElement("style");t.innerHTML=":host{background:var(--sa11y-panel-bg);border-top:5px solid var(--sa11y-panel-bg-splitter);bottom:0;display:block;height:-moz-fit-content;height:fit-content;left:0;position:fixed;right:0;width:100%;z-index:999999}*{-webkit-font-smoothing:auto!important;color:var(--sa11y-panel-primary);font-family:var(--sa11y-font-face)!important;font-size:var(--sa11y-normal-text);line-height:22px!important}#dialog{margin:20px auto;max-width:900px;padding:20px}h2{font-size:var(--sa11y-large-text);margin-top:0}a{color:var(--sa11y-hyperlink);cursor:pointer;text-decoration:underline}a:focus,a:hover{text-decoration:none}p{margin-top:0}.error{background:var(--sa11y-error);border:2px dashed #f08080;color:var(--sa11y-error-text);margin-bottom:0;padding:5px}"+z,e.appendChild(t);const i=document.createElement("div");i.setAttribute("id","dialog"),i.setAttribute("tabindex","-1");const s=window.location,a=`## Error Description\n\`\`\`javascript\n${this.error.stack}\n\`\`\`\n\n## Details\n- **URL:** ${s}\n- **Version:** ${Y}\n\n## Comments\n`,r=`https://github.com/ryersondmp/sa11y/issues/new?title=Bug%20report&body=${encodeURIComponent(a)}`;i.innerHTML=`\n \n

                    ${n._("ERROR")}

                    \n

                    ${n.sprintf("CONSOLE_ERROR","https://forms.gle/sjzK9XykETaoqZv99",r)}

                    \n

                    ${u(this.error.stack)}

                    Version: ${Y}
                    URL: ${s}

                    \n `,e.appendChild(i),setTimeout(()=>{o.Panel.toggle.style.display="none";const e=document.querySelector("sa11y-console-error");e.shadowRoot.getElementById("dialog").focus();e.shadowRoot.querySelector(".close-btn").addEventListener("click",()=>{e.remove()})},0)}}class V extends HTMLElement{connectedCallback(){this.attachShadow({mode:"open"});const e=document.createElement("style");e.textContent='a,button,code,div,h1,h2,h3,kbd,label,li,ol,p,pre,span,strong,svg,ul{all:unset;box-sizing:border-box!important}:after,:before{all:unset}div{display:block}*{-webkit-font-smoothing:auto!important;font-family:var(--sa11y-font-face)!important}label,li,ol,p,ul{font-size:var(--sa11y-normal-text);font-weight:400;letter-spacing:normal;line-height:22px!important;text-align:start;word-break:break-word}.sa11y-overflow{overflow:auto}iframe,img,video{border:0;display:block;height:auto;max-width:100%}audio{max-width:100%}#toggle{align-items:center;background:linear-gradient(0deg,#e040fb,#00bcd4);background-color:var(--sa11y-setting-switch-bg-off);background-size:150% 150%;border-radius:50%;bottom:var(--sa11y-toggle-y-offset);color:#fff;cursor:pointer;display:flex;height:55px;inset-inline-end:var(--sa11y-toggle-x-offset);justify-content:center;margin:0;overflow:visible;position:fixed;transition:all .2s ease-in-out;width:55px;z-index:2147483644}#toggle.left,#toggle.top-left{inset-inline-start:var(--sa11y-toggle-x-offset)}#toggle.top-left,#toggle.top-right{bottom:unset;top:var(--sa11y-toggle-y-offset)}@media screen and (forced-colors:active){#toggle{background:ButtonFace!important;border:2px solid transparent}}#toggle svg{height:35px;width:35px}#toggle svg path{fill:var(--sa11y-panel-bg)}#toggle:focus,#toggle:hover{animation:sa11y-toggle-gradient 3s ease}#toggle:disabled:focus,#toggle:disabled:hover{animation:none}#toggle.on{background:linear-gradient(180deg,#e040fb,#00bcd4)}#toggle:disabled{background:unset;background-color:var(--sa11y-setting-switch-bg-off);cursor:not-allowed}#notification-badge{text-wrap:nowrap;align-items:center;background-color:#eb0000;border:1px solid transparent;border-radius:12px;color:#fff;display:none;font-size:13.5px;font-weight:400;justify-content:center;line-height:1;min-width:20px;padding:2.5px;position:absolute;right:-3px;top:-5.5px}#notification-badge.notification-badge-warning{background-color:var(--sa11y-warning-hover);border:1px solid var(--sa11y-warning);color:var(--sa11y-warning-text)}#panel{background:var(--sa11y-panel-bg);border-radius:4px;bottom:calc(var(--sa11y-toggle-y-offset) + var(--sa11y-panel-y-gap));box-shadow:0 0 20px 4px rgba(154,161,177,.15),0 4px 80px -8px rgba(36,40,47,.25),0 4px 4px -2px rgba(91,94,105,.15);inset-inline-end:calc(var(--sa11y-toggle-x-offset) + var(--sa11y-panel-x-gap));opacity:0;overflow:visible;position:fixed;transform:scale(0);transform-origin:100% 100%;transition:transform .2s,opacity background .2s .2s;visibility:hidden;z-index:2147483643}#panel.left,#panel.top-left{inset-inline-end:unset;inset-inline-start:calc(var(--sa11y-toggle-x-offset) + var(--sa11y-panel-x-gap))}#panel.top-left,#panel.top-right{bottom:unset;top:calc(var(--sa11y-toggle-y-offset) + var(--sa11y-panel-y-gap) + 10px)}#panel.active{height:auto;opacity:1;transform:scale(1);transform-origin:bottom right;transition:transform .2s,opacity .2s;visibility:visible}@media screen and (forced-colors:active){#panel{border:2px solid transparent}}#panel.active.left,[dir=rtl] #panel.active{transform-origin:bottom left}#panel.active.top-left{transform-origin:top left}#panel.active.top-right{transform-origin:top right}#panel-alert{display:none;opacity:0}#panel-alert.active{display:block;opacity:1}#panel-alert-content{align-items:center;border-bottom:1px solid var(--sa11y-panel-bg-splitter);color:var(--sa11y-panel-primary);line-height:22px;max-height:400px;overflow-y:auto;padding:15px 20px 15px 15px;position:relative}.top-left #panel-alert-content,.top-right #panel-alert-content{border:0}#panel-alert-preview .close-tooltip{display:none}#panel-alert-preview,#panel-alert-text{font-family:var(--sa11y-font-face);font-size:var(--sa11y-normal-text);font-weight:400;line-height:22px}.panel-alert-preview{background:var(--sa11y-panel-bg-secondary);border:1px dashed var(--sa11y-panel-bg-splitter);border-radius:5px;margin-top:15px;padding:10px}.panel-alert-preview ul{margin:0;margin-block-end:0;margin-block-start:0;padding:0;position:relative}.panel-alert-preview li{display:list-item;margin:5px 10px 0 20px;padding-bottom:5px}.element-preview{background-color:var(--sa11y-element-preview);border-radius:3.2px;margin-bottom:10px;overflow-wrap:break-word;padding:5px}button[data-sa11y-dismiss]{background:var(--sa11y-panel-bg-secondary);border:2px solid var(--sa11y-button-outline);border-radius:5px;color:var(--sa11y-panel-primary);cursor:pointer;display:block;margin:10px 5px 5px 0;margin-inline-end:15px;padding:4px 8px}button[data-sa11y-dismiss]:focus,button[data-sa11y-dismiss]:hover{background:var(--sa11y-shortcut-hover)}h2{font-size:var(--sa11y-large-text);font-weight:700}h2,h3{display:block;margin-bottom:3px}h3{font-size:calc(var(--sa11y-large-text) - 1px)}h3,strong{font-weight:600}a:not(#outline-list a):not(.edit){border-bottom:0;color:var(--sa11y-hyperlink);cursor:pointer;font-weight:500;text-decoration:underline}a:focus,a:hover{text-decoration:none!important}hr{background:var(--sa11y-panel-bg-splitter);border:none;height:1px;margin:10px 0;opacity:1;padding:0}#dismiss-button,#skip-button{background:var(--sa11y-panel-bg-secondary);border:1px solid var(--sa11y-button-outline);border-radius:50px;cursor:pointer;display:none;height:36px;margin-inline-end:8px;margin-inline-start:2px;overflow:visible;position:relative;text-align:center;transition:all .1s ease-in-out;width:36px}#dismiss-button.active,#skip-button.active{display:block}#dismiss-button:disabled,#skip-button:disabled{background:none;border:0;box-shadow:none;cursor:default}#dismiss-button:before,#skip-button:before{content:"";inset:-5px;position:absolute}#dismiss-button:focus:not(:disabled),#dismiss-button:hover:not(:disabled),#skip-button:focus:not(:disabled),#skip-button:hover:not(:disabled){background-color:var(--sa11y-shortcut-hover)}#panel.left #dismiss-button,#panel.left #skip-button,#panel.top-left #dismiss-button,#panel.top-left #skip-button{margin-inline-end:2px;margin-inline-start:8px}.dismiss-icon{background:var(--sa11y-setting-switch-bg-off);display:inline-block;height:24px;margin-bottom:-4px;-webkit-mask:var(--sa11y-dismiss-icon) center no-repeat;mask:var(--sa11y-dismiss-icon) center no-repeat;width:24px}.dismiss-group{display:flex}@media screen and (forced-colors:active){.dismiss-icon{filter:invert(1)}}#panel-content{align-items:center;color:var(--sa11y-panel-primary);display:flex;padding:6px}#panel-content.errors .panel-icon,#panel-content.good .panel-icon,#panel-content.warnings .panel-icon{height:26px;margin:0 auto;width:26px}#panel-content.errors .panel-icon{background:var(--sa11y-panel-error);margin-top:-2px;-webkit-mask:var(--sa11y-error-svg) center no-repeat;mask:var(--sa11y-error-svg) center no-repeat}#panel-content.good .panel-icon{background:var(--sa11y-good);-webkit-mask:var(--sa11y-good-svg) center no-repeat;mask:var(--sa11y-good-svg) center no-repeat}#panel-content.warnings .panel-icon{background:var(--sa11y-yellow-text);-webkit-mask:var(--sa11y-warning-svg) center no-repeat;mask:var(--sa11y-warning-svg) center no-repeat;transform:scaleX(var(--sa11y-icon-direction))}@media screen and (forced-colors:active){#panel-content.errors .panel-icon,#panel-content.good .panel-icon,#panel-content.warnings .panel-icon{filter:invert(1)}}#panel.left #panel-content,#panel.top-left #panel-content{flex-direction:row-reverse}#status{font-size:var(--sa11y-large-text)}#status,.panel-count{color:var(--sa11y-panel-primary)}.panel-count{background-color:var(--sa11y-panel-badge);border-radius:4px;font-size:15px;font-weight:400;margin-left:3px;margin-right:3px;padding:2px 4px}#images-panel,#outline-panel,#page-issues,#settings-panel{color:var(--sa11y-panel-primary);display:none;opacity:0}#images-panel.active,#outline-panel.active,#page-issues.active,#settings-panel.active{display:block;opacity:1}.panel-header{display:flex;justify-content:space-between;padding:10px 15px 0;text-align:start}#about-content{padding-top:5px}#about-content p{display:block;margin-block-end:1em}#images-content,#outline-content,#page-issues-content,#settings-content{border-bottom:1px solid var(--sa11y-panel-bg-splitter);padding:0 15px 10px}.top-left #images-content,.top-left #outline-content,.top-left #page-issues-content,.top-left #settings-content,.top-right #images-content,.top-right #outline-content,.top-right #page-issues-content,.top-right #settings-content{border:0}#page-issues-content{max-height:160px;overflow-y:auto}#settings-content{max-height:400px;overflow-y:auto}#images-content,#outline-content{max-height:250px;overflow-y:auto}#outline-panel .outline-list-item.sa11y-red-text,#settings-panel .sa11y-red-text{color:var(--sa11y-red-text)}#outline-list{display:block;margin:0;padding:0}#outline-list a{cursor:pointer;display:block;text-decoration:none}#outline-list li{display:block;list-style-type:none;margin-bottom:3px;margin-top:0;padding:0}#outline-list li:first-child{margin-top:5px}#outline-list li a:focus,#outline-list li a:hover{background:var(--sa11y-panel-outline-hover);border-radius:5px;box-shadow:0 0 0 2px var(--sa11y-panel-outline-hover);display:block}#outline-list .outline-2{margin-inline-start:15px}#outline-list .outline-3{margin-inline-start:30px}#outline-list .outline-4{margin-inline-start:45px}#outline-list .outline-5{margin-inline-start:60px}#outline-list .outline-6{margin-inline-start:75px}#images-list{display:block;margin:0;padding:0}#images-list li{border-bottom:1px solid var(--sa11y-panel-bg-splitter);display:block;list-style-type:none;margin:15px 0;overflow:hidden;width:100%}#images-list li:first-child{margin-top:5px}#images-list li:last-child{border:none;margin-bottom:0}#images-list li .alt{padding:2px 5px 10px}#images-list li .edit-block{display:flex;justify-content:flex-end;margin-bottom:15px}#images-list li .edit{background:var(--sa11y-panel-bg-secondary);border:2px solid var(--sa11y-button-outline);border-radius:5px;color:var(--sa11y-panel-primary);cursor:pointer;margin-inline-end:5px;padding:4px 7px;position:relative;text-decoration:none}#images-list li .edit:focus,#images-list li .edit:hover{background-color:var(--sa11y-shortcut-hover)}#images-list li .edit:before{content:"";inset:-10px;position:absolute}#images-list li img{border-radius:5px;float:inline-start;margin-block-end:15px;margin-inline-end:10px;max-width:110px}#images-list li.warning .alt{color:var(--sa11y-yellow-text)}#images-list li.warning img{background-color:var(--sa11y-yellow-text);border:5px solid var(--sa11y-yellow-text)}#images-list li.error .alt{color:var(--sa11y-error)}#images-list li.error img{background-color:var(--sa11y-error);border:5px solid var(--sa11y-error)}#images-list li.good img{background-color:var(--sa11y-panel-badge);border:5px solid var(--sa11y-panel-badge)}@media screen and (forced-colors:active){#images-list li img{background-color:ButtonBorder!important}}.move-panel-icon{height:18px;-webkit-mask:var(--sa11y-move-panel-icon);mask:var(--sa11y-move-panel-icon);-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;width:18px}.info-icon,.move-panel-icon{background:var(--sa11y-setting-switch-bg-off);display:inline-block;vertical-align:middle}.info-icon{height:20px;margin-top:-2px;-webkit-mask:var(--sa11y-info-icon);mask:var(--sa11y-info-icon);-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;width:20px}.sun-icon{-webkit-mask:var(--sa11y-sun-icon);mask:var(--sa11y-sun-icon);-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}.moon-icon,.sun-icon{background:var(--sa11y-setting-switch-bg-off);display:inline-block;height:18px;vertical-align:middle;width:18px}.moon-icon{-webkit-mask:var(--sa11y-moon-icon);mask:var(--sa11y-moon-icon);-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}.error-icon{background:var(--sa11y-error-text);margin-bottom:-4px;-webkit-mask:var(--sa11y-error-svg);mask:var(--sa11y-error-svg);-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}.error-icon,.hidden-icon{display:inline-block;height:16px;width:16px}.hidden-icon{margin-bottom:-3px;-webkit-mask:var(--sa11y-hidden-icon-svg);mask:var(--sa11y-hidden-icon-svg);-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}.hidden-icon,.link-icon{background:var(--sa11y-panel-primary)}.link-icon{display:inline-block;height:16px;margin-bottom:-3.5px;-webkit-mask:var(--sa11y-link-icon-svg);mask:var(--sa11y-link-icon-svg);-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;width:16px}.error-badge .hidden-icon,.error-badge .link-icon{background:var(--sa11y-error-text)}.warning-badge .hidden-icon,.warning-badge .link-icon{background:var(--sa11y-panel-bg)}.error .link-icon{background:var(--sa11y-error-text)}.warning .link-icon{background:var(--sa11y-panel-bg)}@media screen and (forced-colors:active){.error-icon,.hidden-icon,.info-icon,.link-icon,.moon-icon,.move-panel-icon,.sun-icon{filter:invert(1)}}#panel-controls{border-bottom:1px solid var(--sa11y-panel-bg-splitter);border-radius:0 0 4px 4px;display:flex;overflow:hidden}#panel-controls button{background:var(--sa11y-panel-bg-secondary);background-color:var(--sa11y-panel-bg-secondary);border-inline-end:1px solid var(--sa11y-panel-bg-splitter);border-top:1px solid var(--sa11y-panel-bg-splitter);color:var(--sa11y-panel-secondary);cursor:pointer;display:block;font-size:var(--sa11y-normal-text);font-weight:400;height:30px;line-height:0;margin:0;opacity:1;outline:0;padding:0;position:relative;text-align:center;transition:background .2s;width:100%}#panel-controls button.active,#panel-controls button:hover{background-color:var(--sa11y-shortcut-hover)}#panel-controls button.active{font-weight:600}#export-results-mode,label{color:var(--sa11y-panel-primary);display:inline-block;font-weight:400;margin:0;width:100%}label:not(#colour-filter-mode,#export-results-mode){cursor:pointer}#panel.right #panel-controls:has(#images-toggle):after{content:"";width:80px}#panel.left #panel-controls:has(#images-toggle):before{content:"";width:50px}#settings-panel .appearance-group,#settings-panel .export-results-group{display:flex;margin:5px 0}#settings-panel .appearance-group button,#settings-panel .export-results-group button{align-items:center;border:2px solid var(--sa11y-setting-switch-bg-off);border-radius:5px;cursor:pointer;display:flex;justify-content:center;margin:2px 0;margin-inline-end:4px;margin-inline-start:8px;min-height:34px;min-width:44px;position:relative;text-align:center;white-space:nowrap}#settings-panel .appearance-group button:focus,#settings-panel .appearance-group button:focus-within,#settings-panel .appearance-group button:hover,#settings-panel .export-results-group button:focus,#settings-panel .export-results-group button:focus-within,#settings-panel .export-results-group button:hover{background:var(--sa11y-shortcut-hover)}#settings-panel .appearance-group button:before,#settings-panel .export-results-group button:before{content:"";inset:-7px;position:absolute}#settings-panel .appearance-group button .text,#settings-panel .export-results-group button .text{color:var(--sa11y-setting-switch-bg-off);font-weight:600;padding:0 6px}#settings-panel .switch{background:none;border:0;border-radius:5px;color:var(--sa11y-setting-switch-bg-off);cursor:pointer;font-size:var(--sa11y-normal-text);font-weight:600;height:44px;margin:0;padding:7px 10px;position:relative;text-align:end;width:105px}#settings-panel .switch[aria-pressed=false]:after,#settings-panel .switch[aria-pressed=true]:after{content:"";display:inline-block;height:27px;margin:0 4px 4px;vertical-align:middle;width:27px}#settings-panel .switch[aria-pressed=true]:after{background:var(--sa11y-setting-switch-bg-on);-webkit-mask:var(--sa11y-setting-switch-on-svg) center no-repeat;mask:var(--sa11y-setting-switch-on-svg) center no-repeat}#settings-panel .switch[aria-pressed=false]:after{background:var(--sa11y-setting-switch-bg-off);-webkit-mask:var(--sa11y-setting-switch-off-svg) center no-repeat;mask:var(--sa11y-setting-switch-off-svg) center no-repeat}@media screen and (forced-colors:active){#settings-panel .switch[aria-pressed=false]:after,#settings-panel .switch[aria-pressed=true]:after{filter:invert(1)}}#settings-panel #settings-options li{align-items:center;border-bottom:1px solid var(--sa11y-panel-bg-splitter);display:flex;justify-content:space-between;list-style-type:none;padding:1px 0}#settings-panel #settings-options li:last-child{border:none}#page-issues{align-items:center;color:var(--sa11y-panel-primary)}#page-issues-list{display:block;margin-top:4px}#page-issues-list li{display:block;margin:0 0 10px}.top-left.has-page-issues #page-issues,.top-right.has-page-issues #page-issues{border-top:1px solid var(--sa11y-panel-bg-splitter);margin-top:-1px}#panel-colour-filters{align-items:center;color:var(--sa11y-panel-primary);display:none;font-family:var(--sa11y-font-face);font-size:var(--sa11y-normal-text);font-weight:400;line-height:22px}#panel-colour-filters.active{display:flex}#panel-colour-filters p{padding:6px 20px 6px 6px;width:100%}#panel-colour-filters[data-colour=protanopia]{border-bottom:6px solid transparent;-o-border-image:linear-gradient(94deg,#786719 11%,#e0c600 36%,#e0c600 47%,#0059e3 75%,#0042aa 91%);border-image:linear-gradient(94deg,#786719 11%,#e0c600 36%,#e0c600 47%,#0059e3 75%,#0042aa 91%);border-image-slice:1}#panel-colour-filters[data-colour=deuteranopia]{border-bottom:6px solid transparent;-o-border-image:linear-gradient(270deg,#567fdb,#a4a28d 48%,#c3ad14 69%,#a79505);border-image:linear-gradient(270deg,#567fdb,#a4a28d 48%,#c3ad14 69%,#a79505);border-image-slice:1}#panel-colour-filters[data-colour=tritanopia]{border-bottom:6px solid transparent;-o-border-image:linear-gradient(270deg,#b1506f,#0696c1 35%,#f3a9ba 70%,#d91c5d 87%,#fe015c);border-image:linear-gradient(270deg,#b1506f,#0696c1 35%,#f3a9ba 70%,#d91c5d 87%,#fe015c);border-image-slice:1}#panel-colour-filters[data-colour=monochromacy]{border-bottom:6px solid transparent;-o-border-image:linear-gradient(270deg,#000,#a7a7a7 50%,#000);border-image:linear-gradient(270deg,#000,#a7a7a7 50%,#000);border-image-slice:1}#panel-colour-filters[data-colour=protanopia] .panel-icon{background:var(--sa11y-panel-error)}#panel-colour-filters[data-colour=deuteranopia] .panel-icon{background:var(--sa11y-good-hover)}#panel-colour-filters[data-colour=tritanopia] .panel-icon{background:var(--sa11y-blue)}#panel-colour-filters[data-colour=monochromacy] .panel-icon{background:linear-gradient(90deg,#38a459 20%,red 50%,#0077c8 80%)}#panel-colour-filters .panel-icon{height:30px;margin-inline-end:5px;margin-inline-start:10px;-webkit-mask:var(--sa11y-low-vision-icon) center no-repeat;mask:var(--sa11y-low-vision-icon) center no-repeat;width:30px}@media screen and (forced-colors:active){#panel-colour-filters .panel-icon{forced-color-adjust:none}}.select-dropdown{align-items:center;display:flex;position:relative}.select-dropdown:after{border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid var(--sa11y-setting-switch-bg-off);content:" ";inset-inline-end:14px;position:absolute}#colour-filter-select{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:var(--sa11y-panel-bg);border:2px solid var(--sa11y-setting-switch-bg-off);border-radius:5px;color:var(--sa11y-setting-switch-bg-off);cursor:pointer;font-size:var(--sa11y-normal-text);font-weight:600;height:30px;margin-inline-end:4px;padding-inline-end:25px;padding-inline-start:5px;position:relative;text-align:end;vertical-align:middle}#colour-filter-select:focus,#colour-filter-select:hover{background:var(--sa11y-shortcut-hover)}#colour-filter-select.active{box-shadow:0 0 0 2px var(--sa11y-setting-switch-bg-on)}#colour-filter-item label,#colour-filter-item select{margin-bottom:9px;margin-top:10px}#readability-panel{display:none;opacity:0}#readability-panel.active{display:block;opacity:1}.top-left #readability-content,.top-right #readability-content{border-top:1px solid var(--sa11y-panel-bg-splitter)}.left #readability-content,.right #readability-content{border-bottom:1px solid var(--sa11y-panel-bg-splitter)}#readability-content{color:var(--sa11y-panel-primary);padding:10px 15px;width:100%}#readability-details{list-style-type:none;margin:0;padding:0;white-space:normal}#readability-details li{display:inline-block;list-style-type:none;margin:0;padding-inline-end:10px}.readability-score{background-color:var(--sa11y-panel-badge);border-radius:4px;color:var(--sa11y-panel-primary);margin-inline-start:5px;padding:2px 5px}#readability-info{margin-inline-start:10px}#skip-to-page-issues{display:none}#panel.has-page-issues #skip-to-page-issues{clip:rect(0,0,0,0);background:var(--sa11y-panel-bg);border:0;border-radius:5px;display:block;font-weight:600;height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px}#panel.has-page-issues #skip-to-page-issues:focus{clip:auto;height:auto;margin:0;overflow:visible;padding:7px 10px;white-space:normal;width:auto;z-index:1}.hide-settings-border{border-bottom:0!important;padding:0 15px!important}.hide-settings-border li:not(#colour-filter-item){display:none!important}.hide-settings-border #about-content{display:none}.hide-settings-border.scrollable:before{all:unset}#contrast-tools{display:none}::-webkit-scrollbar{height:6px;width:7px}::-webkit-scrollbar-thumb{background-color:var(--sa11y-button-outline);border-radius:6px}*{scrollbar-color:var(--sa11y-button-outline);scrollbar-width:thin}.scrollable:before{animation:fade 1s ease-in-out;background:linear-gradient(180deg,transparent 70%,var(--sa11y-panel-scrollable) 100%);background-position:bottom;bottom:auto;content:"";height:250px;left:0;position:absolute;right:0;top:auto;transition:opacity 1s ease-in-out;width:100%;z-index:-1}#settings-content.scrollable:before{height:400px}.top-left .scrollable:before,.top-right .scrollable:before{border-radius:5px}#page-issues-content.scrollable:before{height:160px}#panel-alert.scrollable:before{height:200px}@keyframes sa11y-toggle-gradient{0%{background-position:50% 0}50%{background-position:50% 100%}to{background-position:50% 0}}@keyframes fade{0%{opacity:0}to{opacity:1}}@media (prefers-reduced-motion:reduce){*{animation:none!important;transform:none!important;transition:none!important}}#panel{width:400px}#container:lang(en) #panel{width:315px}#container:lang(da) #panel,#container:lang(de) #panel,#container:lang(nb) #panel,#container:lang(pl) #panel,#container:lang(sv) #panel,#container:lang(zh) #panel{width:365px}#container:lang(bg) .switch:not(#export-results-item *),#container:lang(es) .switch:not(#export-results-item *){width:225px!important}#container:not(:lang(en)):not(:lang(de)) .switch{width:205px}'+z,this.shadowRoot.appendChild(e);const t="On"===_.getItem("sa11y-developer"),i="On"===_.getItem("sa11y-readability"),s=_.getItem("sa11y-theme"),a=_.getItem("sa11y-position"),r=o.Global.checkAllHideToggles,l=o.Global.developerPlugin?`\n
                  • \n \n \n \n
                  • `:"",c=o.Readability.Plugin?`\n
                  • \n \n \n \n
                  • `:"",d=o.Global.colourFilterPlugin?`\n
                  • \n \n
                    \n \n
                    \n
                  • `:"",p=o.Global.colourFilterPlugin?`\n
                    \n \n

                    ${n._("COLOUR_FILTER_MESSAGE")}

                    \n
                    `:"",u=o.Global.exportResultsPlugin?`\n
                  • \n ${n._("EXPORT_RESULTS")}\n
                    \n \n \n
                    \n
                  • `:"",h=o.Global.aboutContent?`\n
                    ${o.Global.aboutContent}
                    `:"",g=`\n `,m=`\n
                    \n
                    \n

                    ${n._("PAGE_ISSUES")}

                    \n
                    \n
                    \n
                      \n
                      \n
                      `,f=`\n
                      \n
                      \n

                      ${n._("OUTLINE")}

                      \n
                      \n
                      \n
                        \n
                        \n
                        \n
                        \n

                        ${n._("READABILITY")}

                        \n

                        \n
                          \n
                          \n
                          \n
                          `,b=o.Global.showImageOutline?`\n
                          \n
                          \n

                          ${n._("IMAGES")}

                          \n
                          \n
                          \n
                            \n
                            \n
                            `:"",y="left"===a||"top-left"===a?"true":"false",A=o.Global.showMovePanelToggle?``:"",E=`\n
                            \n
                            \n

                            ${n._("SETTINGS")}

                            \n
                            \n
                            \n
                              \n ${l}\n ${c}\n
                            • \n ${n._("APPEARANCE")}\n
                              \n \n ${A}\n
                              \n
                            • \n ${u}\n ${d}\n
                            \n ${h}\n
                            \n
                            `,v=`\n
                            \n
                            \n
                            \n \n

                            ${n._("ALERT_TEXT")}

                            \n
                            \n

                            \n
                            \n
                            \n
                            `,L=`\n
                            \n \n \n \n
                            \n

                            ${n._("PANEL_HEADING")}

                            \n

                            \n
                            \n
                            `,I=``,T=`\n
                            \n \n ${o.Global.showImageOutline?I:""}\n \n
                            `,x=document.createElement("div");x.setAttribute("id","container"),x.setAttribute("role","region"),x.setAttribute("data-sa11y-version",Y),x.setAttribute("lang",n._("LANG_CODE")),x.setAttribute("aria-label",n._("CONTAINER_LABEL")),x.setAttribute("dir",o.Global.langDirection),x.innerHTML="top-left"===a||"top-right"===a?`\n ${g}\n
                            \n ${L}\n ${p}\n ${T}\n ${f}\n ${b}\n ${E}\n ${v}\n ${m}\n
                            `:`\n ${g}\n
                            \n ${m}\n ${f}\n ${b}\n ${E}\n ${v}\n ${p}\n ${L}\n ${T}\n
                            `,this.shadowRoot.appendChild(x),o.initializePanelSelectors()}}const j=()=>{o.Panel.outlineToggle.classList.add("active"),o.Panel.outline.classList.add("active"),o.Panel.outlineToggle.setAttribute("aria-expanded","true"),_.setItem("sa11y-outline","Opened"),S(o.Panel.outlineList,o.Panel.outlineContent);i("sa11y-heading-label","root").forEach(e=>e.hidden=!1);const e=new CustomEvent("sa11y-build-heading-outline");document.dispatchEvent(e)},q=()=>{o.Panel.outline.classList.remove("active"),o.Panel.outlineToggle.classList.remove("active"),o.Panel.outlineToggle.setAttribute("aria-expanded","false"),_.setItem("sa11y-outline","Closed");i("sa11y-heading-label","root").forEach(e=>e.hidden=!0)},X=()=>{o.Panel.imagesToggle.classList.add("active"),o.Panel.images.classList.add("active"),o.Panel.imagesToggle.setAttribute("aria-expanded","true"),_.setItem("sa11y-images","Opened"),S(o.Panel.imagesList,o.Panel.imagesContent);const e=new CustomEvent("sa11y-build-image-outline");document.dispatchEvent(e)},Z=()=>{o.Global.showImageOutline&&(o.Panel.imagesToggle.classList.remove("active"),o.Panel.images.classList.remove("active"),o.Panel.imagesToggle.setAttribute("aria-expanded","false"),_.setItem("sa11y-images","Closed"))},J=()=>{o.Panel.settingsToggle.classList.add("active"),o.Panel.settings.classList.add("active"),o.Panel.settingsToggle.setAttribute("aria-expanded","true"),_.setItem("sa11y-settings","Opened"),S(o.Panel.settingsContent,o.Panel.settingsContent,n._("SETTINGS"))},ee=()=>{o.Panel.settings.classList.remove("active"),o.Panel.settingsToggle.classList.remove("active"),o.Panel.settingsToggle.setAttribute("aria-expanded","false"),_.setItem("sa11y-settings","Closed")};function te(e,t,s){const a=()=>{const r=[];let l;if(e.map(e=>t.find(t=>e.key===t.dismiss&&e.href===window.location.pathname)).filter(Boolean).forEach(e=>Object.assign(e,{dismissedHeading:!0})),s.showTitleInPageOutline){const e=document.querySelector("head title");if(e&&0!==e.textContent.trim().length){const t=b(e);l=`
                          • ${n._("TITLE")} ${h(t)}
                          • `}else l=`
                          • ${n._("TITLE")}
                            ${n._("MISSING")}
                          • `;r.push(l)}return t.forEach(e=>{const t=e.element,o=e.headingLevel,i=e.text,a=e.index,l=e.type,c=e.hidden,d=e.visibleParent,p=e.dismissedHeading,{isWithinRoot:u}=e;if(!P.Found.OutlineIgnore.includes(t)){const e=!0===c?'Hidden':"",t=!0===c?'class="hidden-h"':"",d=!0===s.showHinPageOutline||1===s.showHinPageOutline?"H":"";let h;"error"===l&&!0===u?(h=`\n
                          • \n \n \n \n ${n._("ERROR")} ${d+o}\n ${i}\n \n
                          • `,r.push(h)):"warning"!==l||p||!0!==u?(h=`\n
                          • \n \n ${e} ${d+o}\n ${i}\n \n
                          • `,r.push(h)):(h=`\n
                          • \n \n \n \n ${n._("WARNING")} ${d+o}\n ${i}\n \n
                          • `,r.push(h))}const h=document.createElement("sa11y-heading-label"),g=document.createElement("sa11y-heading-anchor");if(h.hidden=!0,null!==d){t.insertAdjacentElement("beforeend",h);const e=d.previousElementSibling;g.setAttribute("id",`sa11y-h${a}`),e?(e.insertAdjacentElement("beforebegin",g),e.setAttribute("data-sa11y-parent",`h${a}`)):(d.parentNode.insertAdjacentElement("beforebegin",g),d.parentNode.setAttribute("data-sa11y-parent",`h${a}`))}else t.insertAdjacentElement("beforeend",h),h.insertAdjacentElement("beforebegin",g),g.setAttribute("id",`sa11y-h${a}`);const m=document.createElement("span");m.classList.add("heading-label"),m.innerHTML=`H${o}`,h.shadowRoot.appendChild(m),"Opened"===_.getItem("sa11y-outline")&&(h.hidden=!1)}),o.Panel.outlineList.innerHTML=0===t.length?`${l||""}
                          • ${n._("PANEL_NO_HEADINGS")}
                          • `:r.join(" "),setTimeout(()=>{const e=document.querySelector("sa11y-control-panel").shadowRoot,t=Array.from(e.querySelectorAll("#outline-list a"));t.forEach((t,s)=>{const a=e.getElementById(`sa11y-link-${s}`),r=i(`#sa11y-h${s}, [data-sa11y-parent="h${s}"]`,"document",o.Exclusions.Container),l=e=>{("keyup"===e.type&&"Enter"===e.code||"click"===e.type)&&(r.forEach(e=>{(e=>{L(e.parentElement),e.scrollIntoView({behavior:`${o.Global.scrollBehaviour}`,block:"center"})})(e)}),a.classList.contains("hidden-h")?x(`${n._("HEADING_NOT_VISIBLE")}`):o.Panel.alert.classList.contains("active")&&T()),e.preventDefault()};a?.addEventListener("click",l,!1),a?.addEventListener("keyup",l,!1)});let s=0;const a=e=>{if(!["ArrowUp","ArrowDown","Space"].includes(e.code))return;if("Space"===e.code)return void t[s].click();let n;t[s].setAttribute("tabindex",-1),"ArrowDown"===e.code?(n=s+1,s===t.length-1&&(n=0)):"ArrowUp"===e.code&&(n=s-1,0===s&&(n=t.length-1)),t[n].setAttribute("tabindex",0),t[n].focus(),s=n,e.preventDefault()};o.Panel.outlineList.addEventListener("focus",()=>{t.length>0&&(o.Panel.outlineList.setAttribute("tabindex",-1),t[s].setAttribute("tabindex",0),t[s].focus()),o.Panel.outlineList.addEventListener("keydown",a)}),o.Panel.outlineList.addEventListener("blur",()=>{o.Panel.outlineList.removeEventListener("keydown",a)})},0),document.removeEventListener("sa11y-build-heading-outline",a),e};"Opened"===_.getItem("sa11y-outline")&&a(),document.addEventListener("sa11y-build-heading-outline",a)}const ne=e=>{const{src:t}=e.element,i=o.Global.ignoreEditImageURL.some(e=>t.includes(e)),s=o.Global.ignoreEditImageClass.some(t=>e.element.classList.contains(t));if(i||s)return"";const a=o.Global.relativePathImageSRC||window.location.host,r=t.split(a)[1]||"",l=o.Global.relativePathImageID;let c;l.length&&e.element.classList.length&&e.element.classList.forEach(e=>{if(e.startsWith(l)){const[t]=e.match(/\d+/)||[];c=t}});const d=a&&l.length?o.Global.editImageURLofCMS+c:o.Global.editImageURLofCMS+r;return(l.length&&void 0!==c||!l)&&((p=t).includes(window.location.host)||p.startsWith(a))?``:"";var p};var oe="top",ie="bottom",se="right",ae="left",re="auto",le=[oe,ie,se,ae],ce="start",de="end",pe="viewport",ue="popper",he=le.reduce(function(e,t){return e.concat([t+"-"+ce,t+"-"+de])},[]),ge=[].concat(le,[re]).reduce(function(e,t){return e.concat([t,t+"-"+ce,t+"-"+de])},[]),me=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function fe(e){return e?(e.nodeName||"").toLowerCase():null}function be(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function ye(e){return e instanceof be(e).Element||e instanceof Element}function Ae(e){return e instanceof be(e).HTMLElement||e instanceof HTMLElement}function Ee(e){return"undefined"!=typeof ShadowRoot&&(e instanceof be(e).ShadowRoot||e instanceof ShadowRoot)}var ve={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach(function(e){var n=t.styles[e]||{},o=t.attributes[e]||{},i=t.elements[e];Ae(i)&&fe(i)&&(Object.assign(i.style,n),Object.keys(o).forEach(function(e){var t=o[e];!1===t?i.removeAttribute(e):i.setAttribute(e,!0===t?"":t)}))})},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(e){var o=t.elements[e],i=t.attributes[e]||{},s=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce(function(e,t){return e[t]="",e},{});Ae(o)&&fe(o)&&(Object.assign(o.style,s),Object.keys(i).forEach(function(e){o.removeAttribute(e)}))})}},requires:["computeStyles"]};function _e(e){return e.split("-")[0]}var Le=Math.max,Ie=Math.min,Te=Math.round;function xe(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function ke(){return!/^((?!chrome|android).)*safari/i.test(xe())}function Ne(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var o=e.getBoundingClientRect(),i=1,s=1;t&&Ae(e)&&(i=e.offsetWidth>0&&Te(o.width)/e.offsetWidth||1,s=e.offsetHeight>0&&Te(o.height)/e.offsetHeight||1);var a=(ye(e)?be(e):window).visualViewport,r=!ke()&&n,l=(o.left+(r&&a?a.offsetLeft:0))/i,c=(o.top+(r&&a?a.offsetTop:0))/s,d=o.width/i,p=o.height/s;return{width:d,height:p,top:c,right:l+d,bottom:c+p,left:l,x:l,y:c}}function Se(e){var t=Ne(e),n=e.offsetWidth,o=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-o)<=1&&(o=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:o}}function we(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Ee(n)){var o=t;do{if(o&&e.isSameNode(o))return!0;o=o.parentNode||o.host}while(o)}return!1}function Ce(e){return be(e).getComputedStyle(e)}function Oe(e){return["table","td","th"].indexOf(fe(e))>=0}function Pe(e){return((ye(e)?e.ownerDocument:e.document)||window.document).documentElement}function Re(e){return"html"===fe(e)?e:e.assignedSlot||e.parentNode||(Ee(e)?e.host:null)||Pe(e)}function De(e){return Ae(e)&&"fixed"!==Ce(e).position?e.offsetParent:null}function Me(e){for(var t=be(e),n=De(e);n&&Oe(n)&&"static"===Ce(n).position;)n=De(n);return n&&("html"===fe(n)||"body"===fe(n)&&"static"===Ce(n).position)?t:n||function(e){var t=/firefox/i.test(xe());if(/Trident/i.test(xe())&&Ae(e)&&"fixed"===Ce(e).position)return null;var n=Re(e);for(Ee(n)&&(n=n.host);Ae(n)&&["html","body"].indexOf(fe(n))<0;){var o=Ce(n);if("none"!==o.transform||"none"!==o.perspective||"paint"===o.contain||-1!==["transform","perspective"].indexOf(o.willChange)||t&&"filter"===o.willChange||t&&o.filter&&"none"!==o.filter)return n;n=n.parentNode}return null}(e)||t}function Be(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function $e(e,t,n){return Le(e,Ie(t,n))}function Ge(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function Ue(e,t){return t.reduce(function(t,n){return t[n]=e,t},{})}var He={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,o=e.name,i=e.options,s=n.elements.arrow,a=n.modifiersData.popperOffsets,r=_e(n.placement),l=Be(r),c=[ae,se].indexOf(r)>=0?"height":"width";if(s&&a){var d=function(e,t){return Ge("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:Ue(e,le))}(i.padding,n),p=Se(s),u="y"===l?oe:ae,h="y"===l?ie:se,g=n.rects.reference[c]+n.rects.reference[l]-a[l]-n.rects.popper[c],m=a[l]-n.rects.reference[l],f=Me(s),b=f?"y"===l?f.clientHeight||0:f.clientWidth||0:0,y=g/2-m/2,A=d[u],E=b-p[c]-d[h],v=b/2-p[c]/2+y,_=$e(A,v,E),L=l;n.modifiersData[o]=((t={})[L]=_,t.centerOffset=_-v,t)}},effect:function(e){var t=e.state,n=e.options.element,o=void 0===n?"[data-popper-arrow]":n;null!=o&&("string"!=typeof o||(o=t.elements.popper.querySelector(o)))&&we(t.elements.popper,o)&&(t.elements.arrow=o)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Fe(e){return e.split("-")[1]}var Ke={top:"auto",right:"auto",bottom:"auto",left:"auto"};function We(e){var t,n=e.popper,o=e.popperRect,i=e.placement,s=e.variation,a=e.offsets,r=e.position,l=e.gpuAcceleration,c=e.adaptive,d=e.roundOffsets,p=e.isFixed,u=a.x,h=void 0===u?0:u,g=a.y,m=void 0===g?0:g,f="function"==typeof d?d({x:h,y:m}):{x:h,y:m};h=f.x,m=f.y;var b=a.hasOwnProperty("x"),y=a.hasOwnProperty("y"),A=ae,E=oe,v=window;if(c){var _=Me(n),L="clientHeight",I="clientWidth";if(_===be(n)&&"static"!==Ce(_=Pe(n)).position&&"absolute"===r&&(L="scrollHeight",I="scrollWidth"),i===oe||(i===ae||i===se)&&s===de)E=ie,m-=(p&&_===v&&v.visualViewport?v.visualViewport.height:_[L])-o.height,m*=l?1:-1;if(i===ae||(i===oe||i===ie)&&s===de)A=se,h-=(p&&_===v&&v.visualViewport?v.visualViewport.width:_[I])-o.width,h*=l?1:-1}var T,x=Object.assign({position:r},c&&Ke),k=!0===d?function(e,t){var n=e.x,o=e.y,i=t.devicePixelRatio||1;return{x:Te(n*i)/i||0,y:Te(o*i)/i||0}}({x:h,y:m},be(n)):{x:h,y:m};return h=k.x,m=k.y,l?Object.assign({},x,((T={})[E]=y?"0":"",T[A]=b?"0":"",T.transform=(v.devicePixelRatio||1)<=1?"translate("+h+"px, "+m+"px)":"translate3d("+h+"px, "+m+"px, 0)",T)):Object.assign({},x,((t={})[E]=y?m+"px":"",t[A]=b?h+"px":"",t.transform="",t))}var Ye={passive:!0};var ze={left:"right",right:"left",bottom:"top",top:"bottom"};function Qe(e){return e.replace(/left|right|bottom|top/g,function(e){return ze[e]})}var Ve={start:"end",end:"start"};function je(e){return e.replace(/start|end/g,function(e){return Ve[e]})}function qe(e){var t=be(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Xe(e){return Ne(Pe(e)).left+qe(e).scrollLeft}function Ze(e){var t=Ce(e),n=t.overflow,o=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+o)}function Je(e){return["html","body","#document"].indexOf(fe(e))>=0?e.ownerDocument.body:Ae(e)&&Ze(e)?e:Je(Re(e))}function et(e,t){var n;void 0===t&&(t=[]);var o=Je(e),i=o===(null==(n=e.ownerDocument)?void 0:n.body),s=be(o),a=i?[s].concat(s.visualViewport||[],Ze(o)?o:[]):o,r=t.concat(a);return i?r:r.concat(et(Re(a)))}function tt(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function nt(e,t,n){return t===pe?tt(function(e,t){var n=be(e),o=Pe(e),i=n.visualViewport,s=o.clientWidth,a=o.clientHeight,r=0,l=0;if(i){s=i.width,a=i.height;var c=ke();(c||!c&&"fixed"===t)&&(r=i.offsetLeft,l=i.offsetTop)}return{width:s,height:a,x:r+Xe(e),y:l}}(e,n)):ye(t)?function(e,t){var n=Ne(e,!1,"fixed"===t);return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}(t,n):tt(function(e){var t,n=Pe(e),o=qe(e),i=null==(t=e.ownerDocument)?void 0:t.body,s=Le(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),a=Le(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),r=-o.scrollLeft+Xe(e),l=-o.scrollTop;return"rtl"===Ce(i||n).direction&&(r+=Le(n.clientWidth,i?i.clientWidth:0)-s),{width:s,height:a,x:r,y:l}}(Pe(e)))}function ot(e,t,n,o){var i="clippingParents"===t?function(e){var t=et(Re(e)),n=["absolute","fixed"].indexOf(Ce(e).position)>=0&&Ae(e)?Me(e):e;return ye(n)?t.filter(function(e){return ye(e)&&we(e,n)&&"body"!==fe(e)}):[]}(e):[].concat(t),s=[].concat(i,[n]),a=s[0],r=s.reduce(function(t,n){var i=nt(e,n,o);return t.top=Le(i.top,t.top),t.right=Ie(i.right,t.right),t.bottom=Ie(i.bottom,t.bottom),t.left=Le(i.left,t.left),t},nt(e,a,o));return r.width=r.right-r.left,r.height=r.bottom-r.top,r.x=r.left,r.y=r.top,r}function it(e){var t,n=e.reference,o=e.element,i=e.placement,s=i?_e(i):null,a=i?Fe(i):null,r=n.x+n.width/2-o.width/2,l=n.y+n.height/2-o.height/2;switch(s){case oe:t={x:r,y:n.y-o.height};break;case ie:t={x:r,y:n.y+n.height};break;case se:t={x:n.x+n.width,y:l};break;case ae:t={x:n.x-o.width,y:l};break;default:t={x:n.x,y:n.y}}var c=s?Be(s):null;if(null!=c){var d="y"===c?"height":"width";switch(a){case ce:t[c]=t[c]-(n[d]/2-o[d]/2);break;case de:t[c]=t[c]+(n[d]/2-o[d]/2)}}return t}function st(e,t){void 0===t&&(t={});var n=t,o=n.placement,i=void 0===o?e.placement:o,s=n.strategy,a=void 0===s?e.strategy:s,r=n.boundary,l=void 0===r?"clippingParents":r,c=n.rootBoundary,d=void 0===c?pe:c,p=n.elementContext,u=void 0===p?ue:p,h=n.altBoundary,g=void 0!==h&&h,m=n.padding,f=void 0===m?0:m,b=Ge("number"!=typeof f?f:Ue(f,le)),y=u===ue?"reference":ue,A=e.rects.popper,E=e.elements[g?y:u],v=ot(ye(E)?E:E.contextElement||Pe(e.elements.popper),l,d,a),_=Ne(e.elements.reference),L=it({reference:_,element:A,strategy:"absolute",placement:i}),I=tt(Object.assign({},A,L)),T=u===ue?I:_,x={top:v.top-T.top+b.top,bottom:T.bottom-v.bottom+b.bottom,left:v.left-T.left+b.left,right:T.right-v.right+b.right},k=e.modifiersData.offset;if(u===ue&&k){var N=k[i];Object.keys(x).forEach(function(e){var t=[se,ie].indexOf(e)>=0?1:-1,n=[oe,ie].indexOf(e)>=0?"y":"x";x[e]+=N[n]*t})}return x}function at(e,t){void 0===t&&(t={});var n=t,o=n.placement,i=n.boundary,s=n.rootBoundary,a=n.padding,r=n.flipVariations,l=n.allowedAutoPlacements,c=void 0===l?ge:l,d=Fe(o),p=d?r?he:he.filter(function(e){return Fe(e)===d}):le,u=p.filter(function(e){return c.indexOf(e)>=0});0===u.length&&(u=p);var h=u.reduce(function(t,n){return t[n]=st(e,{placement:n,boundary:i,rootBoundary:s,padding:a})[_e(n)],t},{});return Object.keys(h).sort(function(e,t){return h[e]-h[t]})}var rt={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,o=e.name;if(!t.modifiersData[o]._skip){for(var i=n.mainAxis,s=void 0===i||i,a=n.altAxis,r=void 0===a||a,l=n.fallbackPlacements,c=n.padding,d=n.boundary,p=n.rootBoundary,u=n.altBoundary,h=n.flipVariations,g=void 0===h||h,m=n.allowedAutoPlacements,f=t.options.placement,b=_e(f),y=l||(b===f||!g?[Qe(f)]:function(e){if(_e(e)===re)return[];var t=Qe(e);return[je(e),t,je(t)]}(f)),A=[f].concat(y).reduce(function(e,n){return e.concat(_e(n)===re?at(t,{placement:n,boundary:d,rootBoundary:p,padding:c,flipVariations:g,allowedAutoPlacements:m}):n)},[]),E=t.rects.reference,v=t.rects.popper,_=new Map,L=!0,I=A[0],T=0;T=0,w=S?"width":"height",C=st(t,{placement:x,boundary:d,rootBoundary:p,altBoundary:u,padding:c}),O=S?N?se:ae:N?ie:oe;E[w]>v[w]&&(O=Qe(O));var P=Qe(O),R=[];if(s&&R.push(C[k]<=0),r&&R.push(C[O]<=0,C[P]<=0),R.every(function(e){return e})){I=x,L=!1;break}_.set(x,R)}if(L)for(var D=function(e){var t=A.find(function(t){var n=_.get(t);if(n)return n.slice(0,e).every(function(e){return e})});if(t)return I=t,"break"},M=g?3:1;M>0;M--){if("break"===D(M))break}t.placement!==I&&(t.modifiersData[o]._skip=!0,t.placement=I,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function lt(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function ct(e){return[oe,se,ie,ae].some(function(t){return e[t]>=0})}var dt={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,o=e.name,i=n.offset,s=void 0===i?[0,0]:i,a=ge.reduce(function(e,n){return e[n]=function(e,t,n){var o=_e(e),i=[ae,oe].indexOf(o)>=0?-1:1,s="function"==typeof n?n(Object.assign({},t,{placement:e})):n,a=s[0],r=s[1];return a=a||0,r=(r||0)*i,[ae,se].indexOf(o)>=0?{x:r,y:a}:{x:a,y:r}}(n,t.rects,s),e},{}),r=a[t.placement],l=r.x,c=r.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[o]=a}};var pt={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,o=e.name,i=n.mainAxis,s=void 0===i||i,a=n.altAxis,r=void 0!==a&&a,l=n.boundary,c=n.rootBoundary,d=n.altBoundary,p=n.padding,u=n.tether,h=void 0===u||u,g=n.tetherOffset,m=void 0===g?0:g,f=st(t,{boundary:l,rootBoundary:c,padding:p,altBoundary:d}),b=_e(t.placement),y=Fe(t.placement),A=!y,E=Be(b),v="x"===E?"y":"x",_=t.modifiersData.popperOffsets,L=t.rects.reference,I=t.rects.popper,T="function"==typeof m?m(Object.assign({},t.rects,{placement:t.placement})):m,x="number"==typeof T?{mainAxis:T,altAxis:T}:Object.assign({mainAxis:0,altAxis:0},T),k=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,N={x:0,y:0};if(_){if(s){var S,w="y"===E?oe:ae,C="y"===E?ie:se,O="y"===E?"height":"width",P=_[E],R=P+f[w],D=P-f[C],M=h?-I[O]/2:0,B=y===ce?L[O]:I[O],$=y===ce?-I[O]:-L[O],G=t.elements.arrow,U=h&&G?Se(G):{width:0,height:0},H=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},F=H[w],K=H[C],W=$e(0,L[O],U[O]),Y=A?L[O]/2-M-W-F-x.mainAxis:B-W-F-x.mainAxis,z=A?-L[O]/2+M+W+K+x.mainAxis:$+W+K+x.mainAxis,Q=t.elements.arrow&&Me(t.elements.arrow),V=Q?"y"===E?Q.clientTop||0:Q.clientLeft||0:0,j=null!=(S=null==k?void 0:k[E])?S:0,q=P+z-j,X=$e(h?Ie(R,P+Y-j-V):R,P,h?Le(D,q):D);_[E]=X,N[E]=X-P}if(r){var Z,J="x"===E?oe:ae,ee="x"===E?ie:se,te=_[v],ne="y"===v?"height":"width",re=te+f[J],le=te-f[ee],de=-1!==[oe,ae].indexOf(b),pe=null!=(Z=null==k?void 0:k[v])?Z:0,ue=de?re:te-L[ne]-I[ne]-pe+x.altAxis,he=de?te+L[ne]+I[ne]-pe-x.altAxis:le,ge=h&&de?function(e,t,n){var o=$e(e,t,n);return o>n?n:o}(ue,te,he):$e(h?ue:re,te,h?he:le);_[v]=ge,N[v]=ge-te}t.modifiersData[o]=N}},requiresIfExists:["offset"]};function ut(e,t,n){void 0===n&&(n=!1);var o,i,s=Ae(t),a=Ae(t)&&function(e){var t=e.getBoundingClientRect(),n=Te(t.width)/e.offsetWidth||1,o=Te(t.height)/e.offsetHeight||1;return 1!==n||1!==o}(t),r=Pe(t),l=Ne(e,a,n),c={scrollLeft:0,scrollTop:0},d={x:0,y:0};return(s||!s&&!n)&&(("body"!==fe(t)||Ze(r))&&(c=(o=t)!==be(o)&&Ae(o)?{scrollLeft:(i=o).scrollLeft,scrollTop:i.scrollTop}:qe(o)),Ae(t)?((d=Ne(t,!0)).x+=t.clientLeft,d.y+=t.clientTop):r&&(d.x=Xe(r))),{x:l.left+c.scrollLeft-d.x,y:l.top+c.scrollTop-d.y,width:l.width,height:l.height}}function ht(e){var t=new Map,n=new Set,o=[];function i(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach(function(e){if(!n.has(e)){var o=t.get(e);o&&i(o)}}),o.push(e)}return e.forEach(function(e){t.set(e.name,e)}),e.forEach(function(e){n.has(e.name)||i(e)}),o}var gt={placement:"bottom",modifiers:[],strategy:"absolute"};function mt(){for(var e=arguments.length,t=new Array(e),n=0;n-1}function Tt(e,t){return"function"==typeof e?e.apply(void 0,t):e}function xt(e,t){return 0===t?e:function(o){clearTimeout(n),n=setTimeout(function(){e(o)},t)};var n}function kt(e){return[].concat(e)}function Nt(e,t){-1===e.indexOf(t)&&e.push(t)}function St(e){return[].slice.call(e)}function wt(e){return Object.keys(e).reduce(function(t,n){return void 0!==e[n]&&(t[n]=e[n]),t},{})}function Ct(){return document.createElement("div")}function Ot(e){return["Element","Fragment"].some(function(t){return It(e,t)})}function Pt(e){return Ot(e)?[e]:function(e){return It(e,"NodeList")}(e)?St(e):Array.isArray(e)?e:St(document.querySelectorAll(e))}function Rt(e,t){e.forEach(function(e){e&&(e.style.transitionDuration=t+"ms")})}function Dt(e,t){e.forEach(function(e){e&&e.setAttribute("data-state",t)})}function Mt(e,t,n){var o=t+"EventListener";["transitionend","webkitTransitionEnd"].forEach(function(t){e[o](t,n)})}function Bt(e,t){for(var n=t;n;){var o;if(e.contains(n))return!0;n=null==n.getRootNode||null==(o=n.getRootNode())?void 0:o.host}return!1}var $t={isTouch:!1},Gt=0;function Ut(){$t.isTouch||($t.isTouch=!0,window.performance&&document.addEventListener("mousemove",Ht))}function Ht(){var e=performance.now();e-Gt<20&&($t.isTouch=!1,document.removeEventListener("mousemove",Ht)),Gt=e}function Ft(){var e,t=document.activeElement;if((e=t)&&e._tippy&&e._tippy.reference===e){var n=t._tippy;t.blur&&!n.state.isVisible&&t.blur()}}var Kt=!!("undefined"!=typeof window&&"undefined"!=typeof document)&&!!window.msCrypto,Wt=Object.assign({appendTo:_t,aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},{animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},{allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999}),Yt=Object.keys(Wt);function zt(e){var t=(e.plugins||[]).reduce(function(t,n){var o,i=n.name,s=n.defaultValue;i&&(t[i]=void 0!==e[i]?e[i]:null!=(o=Wt[i])?o:s);return t},{});return Object.assign({},e,t)}function Qt(e,t){var n=Object.assign({},t,{content:Tt(t.content,[e])},t.ignoreAttributes?{}:function(e,t){return(t?Object.keys(zt(Object.assign({},Wt,{plugins:t}))):Yt).reduce(function(t,n){var o=(e.getAttribute("data-tippy-"+n)||"").trim();if(!o)return t;if("content"===n)t[n]=o;else try{t[n]=JSON.parse(o)}catch(e){t[n]=o}return t},{})}(e,t.plugins));return n.aria=Object.assign({},Wt.aria,n.aria),n.aria={expanded:"auto"===n.aria.expanded?t.interactive:n.aria.expanded,content:"auto"===n.aria.content?t.interactive?null:"describedby":n.aria.content},n}function Vt(e,t){e.innerHTML=t}function jt(e){var t=Ct();return!0===e?t.className=At:(t.className=Et,Ot(e)?t.appendChild(e):Vt(t,e)),t}function qt(e,t){Ot(t.content)?(Vt(e,""),e.appendChild(t.content)):"function"!=typeof t.content&&(t.allowHTML?Vt(e,t.content):e.textContent=t.content)}function Xt(e){var t=e.firstElementChild,n=St(t.children);return{box:t,content:n.find(function(e){return e.classList.contains(yt)}),arrow:n.find(function(e){return e.classList.contains(At)||e.classList.contains(Et)}),backdrop:n.find(function(e){return e.classList.contains("tippy-backdrop")})}}function Zt(e){var t=Ct(),n=Ct();n.className="tippy-box",n.setAttribute("data-state","hidden"),n.setAttribute("tabindex","-1");var o=Ct();function i(n,o){var i=Xt(t),s=i.box,a=i.content,r=i.arrow;o.theme?s.setAttribute("data-theme",o.theme):s.removeAttribute("data-theme"),"string"==typeof o.animation?s.setAttribute("data-animation",o.animation):s.removeAttribute("data-animation"),o.inertia?s.setAttribute("data-inertia",""):s.removeAttribute("data-inertia"),s.style.maxWidth="number"==typeof o.maxWidth?o.maxWidth+"px":o.maxWidth,o.role?s.setAttribute("role",o.role):s.removeAttribute("role"),n.content===o.content&&n.allowHTML===o.allowHTML||qt(a,e.props),o.arrow?r?n.arrow!==o.arrow&&(s.removeChild(r),s.appendChild(jt(o.arrow))):s.appendChild(jt(o.arrow)):r&&s.removeChild(r)}return o.className=yt,o.setAttribute("data-state","hidden"),qt(o,e.props),t.appendChild(n),n.appendChild(o),i(e.props,e.props),{popper:t,onUpdate:i}}Zt.$$tippy=!0;var Jt=1,en=[],tn=[];function nn(e,t){var n,o,i,s,a,r,l,c,d=Qt(e,Object.assign({},Wt,zt(wt(t)))),p=!1,u=!1,h=!1,g=!1,m=[],f=xt(Q,d.interactiveDebounce),b=Jt++,y=(c=d.plugins).filter(function(e,t){return c.indexOf(e)===t}),A={id:b,reference:e,popper:Ct(),popperInstance:null,props:d,state:{isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},plugins:y,clearDelayTimeouts:function(){clearTimeout(n),clearTimeout(o),cancelAnimationFrame(i)},setProps:function(t){if(A.state.isDestroyed)return;P("onBeforeUpdate",[A,t]),Y();var n=A.props,o=Qt(e,Object.assign({},n,wt(t),{ignoreAttributes:!0}));A.props=o,W(),n.interactiveDebounce!==o.interactiveDebounce&&(M(),f=xt(Q,o.interactiveDebounce));n.triggerTarget&&!o.triggerTarget?kt(n.triggerTarget).forEach(function(e){e.removeAttribute("aria-expanded")}):o.triggerTarget&&e.removeAttribute("aria-expanded");D(),O(),_&&_(n,o);A.popperInstance&&(X(),J().forEach(function(e){requestAnimationFrame(e._tippy.popperInstance.forceUpdate)}));P("onAfterUpdate",[A,t])},setContent:function(e){A.setProps({content:e})},show:function(){var e=A.state.isVisible,t=A.state.isDestroyed,n=!A.state.isEnabled,o=$t.isTouch&&!A.props.touch,i=Lt(A.props.duration,0,Wt.duration);if(e||t||n||o)return;if(N().hasAttribute("disabled"))return;if(P("onShow",[A],!1),!1===A.props.onShow(A))return;A.state.isVisible=!0,k()&&(v.style.visibility="visible");O(),U(),A.state.isMounted||(v.style.transition="none");if(k()){var s=w();Rt([s.box,s.content],0)}r=function(){var e;if(A.state.isVisible&&!g){if(g=!0,v.offsetHeight,v.style.transition=A.props.moveTransition,k()&&A.props.animation){var t=w(),n=t.box,o=t.content;Rt([n,o],i),Dt([n,o],"visible")}R(),D(),Nt(tn,A),null==(e=A.popperInstance)||e.forceUpdate(),P("onMount",[A]),A.props.animation&&k()&&function(e,t){F(e,t)}(i,function(){A.state.isShown=!0,P("onShown",[A])})}},function(){var e,t=A.props.appendTo,n=N();e=A.props.interactive&&t===_t||"parent"===t?n.parentNode:Tt(t,[n]);e.contains(v)||e.appendChild(v);A.state.isMounted=!0,X()}()},hide:function(){var e=!A.state.isVisible,t=A.state.isDestroyed,n=!A.state.isEnabled,o=Lt(A.props.duration,1,Wt.duration);if(e||t||n)return;if(P("onHide",[A],!1),!1===A.props.onHide(A))return;A.state.isVisible=!1,A.state.isShown=!1,g=!1,p=!1,k()&&(v.style.visibility="hidden");if(M(),H(),O(!0),k()){var i=w(),s=i.box,a=i.content;A.props.animation&&(Rt([s,a],o),Dt([s,a],"hidden"))}R(),D(),A.props.animation?k()&&function(e,t){F(e,function(){!A.state.isVisible&&v.parentNode&&v.parentNode.contains(v)&&t()})}(o,A.unmount):A.unmount()},hideWithInteractivity:function(e){S().addEventListener("mousemove",f),Nt(en,f),f(e)},enable:function(){A.state.isEnabled=!0},disable:function(){A.hide(),A.state.isEnabled=!1},unmount:function(){A.state.isVisible&&A.hide();if(!A.state.isMounted)return;Z(),J().forEach(function(e){e._tippy.unmount()}),v.parentNode&&v.parentNode.removeChild(v);tn=tn.filter(function(e){return e!==A}),A.state.isMounted=!1,P("onHidden",[A])},destroy:function(){if(A.state.isDestroyed)return;A.clearDelayTimeouts(),A.unmount(),Y(),delete e._tippy,A.state.isDestroyed=!0,P("onDestroy",[A])}};if(!d.render)return A;var E=d.render(A),v=E.popper,_=E.onUpdate;v.setAttribute("data-tippy-root",""),v.id="tippy-"+A.id,A.popper=v,e._tippy=A,v._tippy=A;var L=y.map(function(e){return e.fn(A)}),I=e.hasAttribute("aria-expanded");return W(),D(),O(),P("onCreate",[A]),d.showOnCreate&&ee(),v.addEventListener("mouseenter",function(){A.props.interactive&&A.state.isVisible&&A.clearDelayTimeouts()}),v.addEventListener("mouseleave",function(){A.props.interactive&&A.props.trigger.indexOf("mouseenter")>=0&&S().addEventListener("mousemove",f)}),A;function T(){var e=A.props.touch;return Array.isArray(e)?e:[e,0]}function x(){return"hold"===T()[0]}function k(){var e;return!(null==(e=A.props.render)||!e.$$tippy)}function N(){return l||e}function S(){var e,t,n=N().parentNode;return n?null!=(t=kt(n)[0])&&null!=(e=t.ownerDocument)&&e.body?t.ownerDocument:document:document}function w(){return Xt(v)}function C(e){return A.state.isMounted&&!A.state.isVisible||$t.isTouch||s&&"focus"===s.type?0:Lt(A.props.delay,e?0:1,Wt.delay)}function O(e){void 0===e&&(e=!1),v.style.pointerEvents=A.props.interactive&&!e?"":"none",v.style.zIndex=""+A.props.zIndex}function P(e,t,n){var o;(void 0===n&&(n=!0),L.forEach(function(n){n[e]&&n[e].apply(n,t)}),n)&&(o=A.props)[e].apply(o,t)}function R(){var t=A.props.aria;if(t.content){var n="aria-"+t.content,o=v.id;kt(A.props.triggerTarget||e).forEach(function(e){var t=e.getAttribute(n);if(A.state.isVisible)e.setAttribute(n,t?t+" "+o:o);else{var i=t&&t.replace(o,"").trim();i?e.setAttribute(n,i):e.removeAttribute(n)}})}}function D(){!I&&A.props.aria.expanded&&kt(A.props.triggerTarget||e).forEach(function(e){A.props.interactive?e.setAttribute("aria-expanded",A.state.isVisible&&e===N()?"true":"false"):e.removeAttribute("aria-expanded")})}function M(){S().removeEventListener("mousemove",f),en=en.filter(function(e){return e!==f})}function B(t){if(!$t.isTouch||!h&&"mousedown"!==t.type){var n=t.composedPath&&t.composedPath()[0]||t.target;if(!A.props.interactive||!Bt(v,n)){if(kt(A.props.triggerTarget||e).some(function(e){return Bt(e,n)})){if($t.isTouch)return;if(A.state.isVisible&&A.props.trigger.indexOf("click")>=0)return}else P("onClickOutside",[A,t]);!0===A.props.hideOnClick&&(A.clearDelayTimeouts(),A.hide(),u=!0,setTimeout(function(){u=!1}),A.state.isMounted||H())}}}function $(){h=!0}function G(){h=!1}function U(){var e=S();e.addEventListener("mousedown",B,!0),e.addEventListener("touchend",B,vt),e.addEventListener("touchstart",G,vt),e.addEventListener("touchmove",$,vt)}function H(){var e=S();e.removeEventListener("mousedown",B,!0),e.removeEventListener("touchend",B,vt),e.removeEventListener("touchstart",G,vt),e.removeEventListener("touchmove",$,vt)}function F(e,t){var n=w().box;function o(e){e.target===n&&(Mt(n,"remove",o),t())}if(0===e)return t();Mt(n,"remove",a),Mt(n,"add",o),a=o}function K(t,n,o){void 0===o&&(o=!1),kt(A.props.triggerTarget||e).forEach(function(e){e.addEventListener(t,n,o),m.push({node:e,eventType:t,handler:n,options:o})})}function W(){var e;x()&&(K("touchstart",z,{passive:!0}),K("touchend",V,{passive:!0})),(e=A.props.trigger,e.split(/\s+/).filter(Boolean)).forEach(function(e){if("manual"!==e)switch(K(e,z),e){case"mouseenter":K("mouseleave",V);break;case"focus":K(Kt?"focusout":"blur",j);break;case"focusin":K("focusout",j)}})}function Y(){m.forEach(function(e){var t=e.node,n=e.eventType,o=e.handler,i=e.options;t.removeEventListener(n,o,i)}),m=[]}function z(e){var t,n=!1;if(A.state.isEnabled&&!q(e)&&!u){var o="focus"===(null==(t=s)?void 0:t.type);s=e,l=e.currentTarget,D(),!A.state.isVisible&&It(e,"MouseEvent")&&en.forEach(function(t){return t(e)}),"click"===e.type&&(A.props.trigger.indexOf("mouseenter")<0||p)&&!1!==A.props.hideOnClick&&A.state.isVisible?n=!0:ee(e),"click"===e.type&&(p=!n),n&&!o&&te(e)}}function Q(e){var t=e.target,n=N().contains(t)||v.contains(t);if("mousemove"!==e.type||!n){var o=J().concat(v).map(function(e){var t,n=null==(t=e._tippy.popperInstance)?void 0:t.state;return n?{popperRect:e.getBoundingClientRect(),popperState:n,props:d}:null}).filter(Boolean);(function(e,t){var n=t.clientX,o=t.clientY;return e.every(function(e){var t=e.popperRect,i=e.popperState,s=e.props.interactiveBorder,a=i.placement.split("-")[0],r=i.modifiersData.offset;if(!r)return!0;var l="bottom"===a?r.top.y:0,c="top"===a?r.bottom.y:0,d="right"===a?r.left.x:0,p="left"===a?r.right.x:0,u=t.top-o+l>s,h=o-t.bottom-c>s,g=t.left-n+d>s,m=n-t.right-p>s;return u||h||g||m})})(o,e)&&(M(),te(e))}}function V(e){q(e)||A.props.trigger.indexOf("click")>=0&&p||(A.props.interactive?A.hideWithInteractivity(e):te(e))}function j(e){A.props.trigger.indexOf("focusin")<0&&e.target!==N()||A.props.interactive&&e.relatedTarget&&v.contains(e.relatedTarget)||te(e)}function q(e){return!!$t.isTouch&&x()!==e.type.indexOf("touch")>=0}function X(){Z();var t=A.props,n=t.popperOptions,o=t.placement,i=t.offset,s=t.getReferenceClientRect,a=t.moveTransition,l=k()?Xt(v).arrow:null,c=s?{getBoundingClientRect:s,contextElement:s.contextElement||N()}:e,d={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(e){var t=e.state;if(k()){var n=w().box;["placement","reference-hidden","escaped"].forEach(function(e){"placement"===e?n.setAttribute("data-placement",t.placement):t.attributes.popper["data-popper-"+e]?n.setAttribute("data-"+e,""):n.removeAttribute("data-"+e)}),t.attributes.popper={}}}},p=[{name:"offset",options:{offset:i}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!a}},d];k()&&l&&p.push({name:"arrow",options:{element:l,padding:3}}),p.push.apply(p,(null==n?void 0:n.modifiers)||[]),A.popperInstance=bt(c,v,Object.assign({},n,{placement:o,onFirstUpdate:r,modifiers:p}))}function Z(){A.popperInstance&&(A.popperInstance.destroy(),A.popperInstance=null)}function J(){return St(v.querySelectorAll("[data-tippy-root]"))}function ee(e){A.clearDelayTimeouts(),e&&P("onTrigger",[A,e]),U();var t=C(!0),o=T(),i=o[0],s=o[1];$t.isTouch&&"hold"===i&&s&&(t=s),t?n=setTimeout(function(){A.show()},t):A.show()}function te(e){if(A.clearDelayTimeouts(),P("onUntrigger",[A,e]),A.state.isVisible){if(!(A.props.trigger.indexOf("mouseenter")>=0&&A.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(e.type)>=0&&p)){var t=C(!1);t?o=setTimeout(function(){A.state.isVisible&&A.hide()},t):i=requestAnimationFrame(function(){A.hide()})}}else H()}}function on(e,t){void 0===t&&(t={});var n=Wt.plugins.concat(t.plugins||[]);document.addEventListener("touchstart",Ut,vt),window.addEventListener("blur",Ft);var o=Object.assign({},t,{plugins:n}),i=Pt(e).reduce(function(e,t){var n=t&&nn(t,o);return n&&e.push(n),e},[]);return Ot(e)?i[0]:i}on.defaultProps=Wt,on.setDefaultProps=function(e){Object.keys(e).forEach(function(t){Wt[t]=e[t]})},on.currentInput=$t,Object.assign({},ve,{effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow)}}),on.setDefaultProps({render:Zt});const sn={mainTRC:2.4,get mainTRCencode(){return 1/this.mainTRC},sRco:.2126729,sGco:.7151522,sBco:.072175,normBG:.56,normTXT:.57,revTXT:.62,revBG:.65,blkThrs:.022,blkClmp:1.414,scaleBoW:1.14,scaleWoB:1.14,loBoWoffset:.027,loWoBoffset:.027,deltaYmin:5e-4,loClip:.1,mFactor:1.9468554433171,get mFactInv(){return 1/this.mFactor},mOffsetIn:.0387393816571401,mExpAdj:.283343396420869,get mExp(){return this.mExpAdj/this.blkClmp},mOffsetOut:.312865795870758};function an(e,t=2){const n=[["Lc",100,200,300,400,500,600,700,800,900],[0,999,999,999,999,999,999,999,999,999],[10,999,999,999,999,999,999,999,999,999],[15,777,777,777,777,777,777,777,777,777],[20,777,777,777,777,777,777,777,777,777],[25,777,777,777,120,120,108,96,96,96],[30,777,777,120,108,108,96,72,72,72],[35,777,120,108,96,72,60,48,48,48],[40,120,108,96,60,48,42,32,32,32],[45,108,96,72,42,32,28,24,24,24],[50,96,72,60,32,28,24,21,21,21],[55,80,60,48,28,24,21,18,18,18],[60,72,48,42,24,21,18,16,16,18],[65,68,46,32,21.75,19,17,15,16,18],[70,64,44,28,19.5,18,16,14.5,16,18],[75,60,42,24,18,16,15,14,16,18],[80,56,38.25,23,17.25,15.81,14.81,14,16,18],[85,52,34.5,22,16.5,15.625,14.625,14,16,18],[90,48,32,21,16,15.5,14.5,14,16,18],[95,45,28,19.5,15.5,15,14,13.5,16,18],[100,42,26.5,18.5,15,14.5,13.5,13,16,18],[105,39,25,18,14.5,14,13,12,16,18],[110,36,24,18,14,13,12,11,16,18],[115,34.5,22.5,17.25,12.5,11.875,11.25,10.625,14.5,16.5],[120,33,21,16.5,11,10.75,10.5,10.25,13,15],[125,32,20,16,10,10,10,10,12,14]],o=[["∆Lc",100,200,300,400,500,600,700,800,900],[0,0,0,0,0,0,0,0,0,0],[10,0,0,0,0,0,0,0,0,0],[15,0,0,0,0,0,0,0,0,0],[20,0,0,0,0,0,0,0,0,0],[25,0,0,0,12,12,12,24,24,24],[30,0,0,12,12,36,36,24,24,24],[35,0,12,12,36,24,18,16,16,16],[40,12,12,24,18,16,14,8,8,8],[45,12,24,12,10,4,4,3,3,3],[50,16,12,12,4,4,3,3,3,3],[55,8,12,6,4,3,3,2,2,0],[60,4,2,10,2.25,2,1,1,0,0],[65,4,2,4,2.25,1,1,.5,0,0],[70,4,2,4,1.5,2,1,.5,0,0],[75,4,3.75,1,.75,.188,.188,0,0,0],[80,4,3.75,1,.75,.188,.188,0,0,0],[85,4,2.5,1,.5,.125,.125,0,0,0],[90,3,4,1.5,.5,.5,.5,.5,0,0],[95,3,1.5,1,.5,.5,.5,.5,0,0],[100,3,1.5,.5,.5,.5,.5,1,0,0],[105,3,1,0,.5,1,1,1,0,0],[110,1.5,1.5,.75,1.5,1.125,.75,.375,1.5,1.5],[115,1.5,1.5,.75,1.5,1.125,.75,.375,1.5,1.5],[120,1,1,.5,1,.75,.5,.25,1,1],[125,0,0,0,0,0,0,0,0,0]];let i=[e.toFixed(t),0,0,0,0,0,0,0,0,0];i.length;let s=777;const a=0==(e=Math.abs(e))?1:.2*e|0;let r=0,l=.2*(e-n[a][r]);for(r++;r<10;r++)s=n[a][r],i[r]=s>400?s:e<14.5?999:e<29.5?777:s>24?Math.round(s-o[a][r]*l):s-.5*(2*o[a][r]*l|0);return i}function rn(e=[0,0,0]){function t(e){return Math.pow(e/255,sn.mainTRC)}return sn.sRco*t(e[0])+sn.sGco*t(e[1])+sn.sBco*t(e[2])}function ln(e=[0,0,0,1],t=[0,0,0],n=!0){e[3]=Math.max(Math.min(e[3],1),0);let o=1-e[3],i=[0,0,0,1,!0];for(let s=0;s<3;s++)i[s]=t[s]*o+e[s]*e[3],n&&(i[s]=Math.min(Math.round(i[s]),255));return i}function cn(e){const t=parseInt(e,10);if(!Number.isNaN(t))return t;return{lighter:100,normal:400,bold:700,bolder:900}[e]||400}function dn(e,t){const n=e;let o,i,s,a=1;if(n.startsWith("rgb")){const e=n.match(/[\d.]+/g).map(Number);[o,i,s,a]=4===e.length?e:[...e,1]}else{if(n.startsWith("color(rec2020")||n.startsWith("color(display-p3"))return"unsupported";const e=document.createElement("canvas").getContext("2d");e.fillStyle=n,e.fillRect(0,0,1,1);const t=e.getImageData(0,0,1,1);[o,i,s,a]=t.data,a=(a/255).toFixed(2)}return t&&t<1&&(a=(a*t).toFixed(2)),[o,i,s,Number(a)]}function pn(e){let t=e;for(;t&&1===t.nodeType;){if(o.Global.shadowDetection){const e=t.getRootNode();if(e instanceof ShadowRoot){let n=t;for(;n&&n!==e.host;){const e=getComputedStyle(n);if(e.backgroundImage&&"none"!==e.backgroundImage)return{type:"image",value:e.backgroundImage};const t=dn(e.backgroundColor);if(0!==t[3]&&"transparent"!==t)return t;n=n.parentElement}return pn(e.host)}}const e=getComputedStyle(t),n=e.backgroundImage;if("none"!==n)return{type:"image",value:n};const i=dn(e.backgroundColor);if(0!==i[3]&&"transparent"!==i){if(i[3]<1){let e=t.parentElement,n="rgba(255, 255, 255, 1)";for(;e&&1===e.nodeType;){if(n=getComputedStyle(e).backgroundColor,"rgba(0, 0, 0, 0)"!==n)break;"rgba(0, 0, 0, 0)"===n&&"HTML"===e.tagName&&(n="rgba(255, 255, 255, 1)"),e=e.parentElement}return ln(i,dn(n||"rgba(255, 255, 255, 1)"))}return i}if("HTML"===t.tagName)return[255,255,255];t=t.parentNode}return[255,255,255]}function un(e){const t=e.slice(0,3).map(e=>{const t=e/255;return t<=.03928?t/12.92:((t+.055)/1.055)**2.4});return.2126*t[0]+.7152*t[1]+.0722*t[2]}function hn(e,t){return(Math.max(e,t)+.05)/(Math.min(e,t)+.05)}function gn(e,t){return e.map((e,n)=>{if(n<3){const n=Math.ceil(e+(255-e)*t);return n>=255?255:n}return e})}function mn(e,t){return e.map((e,n)=>{if(n<3){const n=Math.floor(e*(1-t));return n<=0?0:n}return e})}function fn(e){const[t,n,o]=e.map(e=>Math.min(255,Math.max(0,e)));return`#${t.toString(16).padStart(2,"0")}${n.toString(16).padStart(2,"0")}${o.toString(16).padStart(2,"0")}`}function bn(e){if(o.Global.contrastAPCA)return Math.abs(Number(e.toFixed(1)));const t=Math.round(100*e)/100;return Number.isInteger(t)?`${t}:1`:`${t.toFixed(2)}:1`}function yn(e,t){let n;const i=ln(e,t).slice(0,4);if(o.Global.contrastAPCA){n=function(e,t,n=-1){const o=[0,1.1];if(isNaN(e)||isNaN(t)||Math.min(e,t)o[1])return 0;let i=0,s=0,a="BoW";return e=e>sn.blkThrs?e:e+Math.pow(sn.blkThrs-e,sn.blkClmp),t=t>sn.blkThrs?t:t+Math.pow(sn.blkThrs-t,sn.blkClmp),Math.abs(t-e)e?(i=(Math.pow(t,sn.normBG)-Math.pow(e,sn.normTXT))*sn.scaleBoW,s=i-sn.loClip?0:i+sn.loWoBoffset),n<0?100*s:0==n?Math.round(100*Math.abs(s))+""+a+"":Number.isInteger(n)?(100*s).toFixed(n):0)}(rn(i),rn(t))}else{n=hn(un(i),un(t))}return{ratio:n,blendedColor:i}}function An(e,t,n,o){const i=rn(t),s=(e,t)=>i<=.179?gn(e,t):mn(e,t);let a=e,r=yn(a,t),l=an(r.ratio).slice(1);const c=Math.floor(n/100)-1,d=l[c],p=o{const n=yn(e,[0,0,0,1]),o=yn(e,[255,255,255,1]),i=Math.abs(n.ratio)>Math.abs(o.ratio),s=i?[0,0,0,1]:[255,255,255,1],a=an(i?n.ratio:o.ratio).slice(1);return{suggestedColor:s,size:Math.ceil(a[Math.floor(t/100)-1])}})(t,n);if(u.size>o)return{color:fn(u.suggestedColor),size:u.size};let h=e,g=a,m=r.ratio,f=.16;let b=0;if(p)for(;f>=.01;)if(b+=1,a=s(a,f),r=yn(a,t),l=an(r.ratio).slice(1),l[c]<=o&&(g=Math.abs(r.ratio)<=Math.abs(m)?a:g,m=r.ratio,g=a,a=h,f*=.5),h=a,50===b)return{color:fn(u.suggestedColor),size:u.size};return{color:fn(g),size:null}}function En(e){let t;const{color:i,background:s,fontWeight:a,fontSize:r,isLargeText:l,type:c}=e;if(i&&s&&"image"!==s.type&&"text"===c){const c=o.Global.contrastAPCA?An(i,s,a,r):function(e,t,n,o=!1){let i;i=o?n?4.5:7:n?3:4.5;const s=un(e),a=un(t),r=s>a?hn(1,a)>i:hn(0,a)n?gn(e,t):mn(e,t);let c=e,d=c,p=hn(s,a),u=p,h=e,g=.16,m=0;for(;g>=.01;){if(m+=1,m>100)return{color:null};c=l(c,g,r),p=hn(un(c),a),p>=i&&(d=p<=u?c:d,u=p,c=h,g*=.5),h=c}return{color:fn(d)}}(i,s,l,o.Global.contrastAAA);let d;const p='',u=`${c.color}`,h=`${c.size}px`;o.Global.contrastAPCA?c.color&&c.size?d=`${p} ${n._("CONTRAST_APCA")} ${u} ${h}`:c.color?d=`${p} ${n._("CONTRAST_COLOR")} ${u}`:c.size&&(d=`${p} ${n._("CONTRAST_SIZE")} ${h}`):d=null===c.color?`${p} ${n._("NO_SUGGESTION")}`:`${p} ${n._("CONTRAST_COLOR")} ${u}`,t=document.createElement("div"),t.id="advice";const g=e.opacity<1?` ${n.sprintf("CONTRAST_OPACITY")}`:d;t.innerHTML=g}return t}function vn(e,t){const n=e?.querySelector("#contrast-tools");if(n){const{fontSize:n,fontWeight:i,type:s,isLargeText:a}=t,r=e.querySelector("#contrast"),l=e.querySelector("#contrast-preview"),c=e.querySelector("#fg-input"),d=e.querySelector("#bg-input"),p=e.querySelector("#value"),u=e.querySelector("#good"),h=e.querySelector("#apca-table"),g=(e,t)=>{e.forEach(e=>{e.classList.toggle("good-contrast",t),e.classList.toggle("error-badge",!t)})},m=()=>{const e=c.value,t=d.value;[c,d].forEach(e=>e.classList.remove("unknown")),l.style.color=e,l.style.backgroundColor=t,l.style.backgroundImage="none";const m=l.querySelectorAll("svg *");if(1===m.length){const{fill:t,stroke:n}=getComputedStyle(m[0]);m[0].style.opacity=1,"none"!==t&&(m[0].style.fill=e),"none"!==n&&(m[0].style.stroke=e)}const f=yn(dn(e),dn(t)),b=[p,r];if(o.Global.contrastAPCA){const e=f.ratio;p.textContent=bn(e);const t=an(e).slice(1),o=e>=45&&t[0]>=0&&t[0]<=777;let a;switch(s){case"svg-error":case"svg-warning":u.hidden=!o,a=o,g(b,a);break;case"svg-text":u.hidden=!o,a=t.slice(1,7).some(e=>999!==e&&777!==e),g(b,a),function(e,t){const n=e;n.innerHTML="",n.hidden=!1;const o=document.createElement("div");o.classList.add("row");const i=t.slice(1,7);for(let e=0;e=e,g(b,a),u.hidden=!a;break}}}if(!o.Global.contrastAPCA){const e=f.ratio;p.textContent=bn(e);const t=o.Global.contrastAAA,n=e>=3,i=e>=(t?7:4.5),l=e>=(t?4.5:3);switch(s){case"svg-error":case"svg-text":case"svg-warning":u.hidden=!n,g(b,n);break;default:a?(g([p,r],l),u.hidden=!l):(g([p,r],i),u.hidden=!i)}}};c.addEventListener("input",m),d.addEventListener("input",m)}}function _n(e,t,n,o,i,s,a=!1){const{ratio:r,blendedColor:l}=yn(t,n),c=o>=24||o>=18.67&&i>=700;let d;if(a)d=c?r<4.5:r<7;else{d=c?r<3:r>1&&r<4.5}return d?{$el:e,ratio:bn(r),color:l,background:n,fontSize:o,fontWeight:i,isLargeText:c,opacity:s,textUnderline:getComputedStyle(e).textDecorationLine}:null}function Ln(e,t,n,o,i,s){const{ratio:a,blendedColor:r}=yn(t,n);return o{const t=e.shadowRoot.querySelectorAll(".sa11y-btn");t&&i.push(...Array.from(t))});const s=on(i,{interactive:!0,trigger:"mouseenter click",hideOnClick:!1,arrow:!0,offset:[0,8],delay:[0,400],maxWidth:375,theme:"sa11y-theme",placement:"auto-start",allowHTML:!0,role:"dialog",aria:{content:null,expanded:"auto"},appendTo:e,zIndex:2147483645,onShow(e){s.forEach(t=>{t!==e.popper&&t.hide()});const t=e.reference.getRootNode().host;t.setAttribute("data-sa11y-opened","");const i=e.popper.querySelector(".close-btn"),a=()=>{e.hide(),e.reference.focus()};i.addEventListener("click",a);const r=t=>{"Escape"===t.key&&(e.hide(),e.reference.focus())};if(e.popper.addEventListener("keydown",r),!e.popper.hasAttribute("contrast-tools-initialized")){const i=parseInt(t.getAttribute("data-sa11y-annotation"),10),s=window.sa11yCheckComplete.results.find(e=>e.id===i),{contrastDetails:a}=s||{};if(a){const t=e.popper.querySelector("[data-sa11y-contrast-details]"),i=function(e){const{sanitizedText:t,color:i,background:s,fontWeight:a,fontSize:r,ratio:l,textUnderline:c}=e,d=s&&"image"!==s.type,p=d?fn(s):"#000000",u=i?fn(i):"#000000",h=a?`font-weight:${a};`:"",g=r?`font-size:${r}px;`:"",m=c?`text-decoration:${c};`:"",f=i?"":'class="unknown"',b=s&&"image"!==s.type?"":'class="unknown"',y=i?"":`(${n._("UNKNOWN")})`,A=s?"":`(${n._("UNKNOWN")})`;let E;E=o.Global.contrastAPCA?0===Math.abs(l)?0:Math.abs(l)||n._("UNKNOWN"):l||n._("UNKNOWN");const v=document.createElement("div");return v.id="contrast-tools",v.innerHTML=`\n \n
                            ${n._("CONTRAST")}
                            \n
                            ${E}
                            \n \n \n
                            ${t}
                            \n
                            \n \n \n
                            `,v}(a);t.appendChild(i),vn(e.popper,a);const s=En(a);s&&t.appendChild(s),e.popper.setAttribute("contrast-tools-initialized",!0)}}let l=!0;e.popper.addEventListener("mousedown",function t(n){l&&n.target.matches('input[type="color"]')&&(e.reference.click(),l=!1,e.popper.removeEventListener("mousedown",t))});const c=()=>{i.removeEventListener("click",a),e.popper.removeEventListener("keydown",r),e.popper.removeEventListener("hidden",c)};e.popper.addEventListener("hidden",c)},onTrigger(e,t){"click"===t.type&&setTimeout(()=>{e.popper.querySelector(".close-btn").focus(),function(e){const t=e.querySelectorAll('a[href]:not([disabled]), button:not([disabled]), input[type="color"]'),n=t[0],o=t[t.length-1];e.addEventListener("keydown",t=>{const i="Tab"===t.key||9===t.keyCode,s=e.getRootNode();i&&(t.shiftKey?s.activeElement===n&&(o.focus(),t.preventDefault()):s.activeElement===o&&(n.focus(),t.preventDefault()))})}(e.popper)},0)},onHide(e){e.popper.querySelector(".close-btn").removeEventListener("click",()=>{e.hide()});e.reference.getRootNode().host.removeAttribute("data-sa11y-opened")}})}}class kn extends HTMLElement{connectedCallback(){const e=e=>({allowHTML:!0,delay:[500,0],trigger:"mouseenter focusin",arrow:!0,placement:"top",theme:"sa11y-theme sa11y-panel",role:"tooltip",aria:{content:null,expanded:null},appendTo:e,zIndex:2147483645}),t=this.attachShadow({mode:"open"}),i=document.createElement("style");i.innerHTML=Tn+z,t.appendChild(i);const s=-1!==navigator.userAgent.indexOf("Mac")?'Option + S':'Alt + S';if(on(o.Panel.skipButton,{...e(t),offset:[0,8],maxWidth:200,content:`${n._("SKIP_TO_ISSUE")} »
                            ${s}`}),this.object=on(o.Panel.dismissButton,{offset:[0,8],maxWidth:200,...e(t)}),o.Global.developerPlugin){const i=o.Panel.developerItem.querySelector(".info-icon");i&&on(i,{...e(t),triggerTarget:[o.Panel.developerItem],offset:[0,10],maxWidth:250,content:n._("DEVELOPER_DESC")})}if(o.Global.readabilityPlugin){const i=o.Panel.readabilityItem.querySelector(".info-icon");i&&on(i,{...e(t),triggerTarget:[o.Panel.readabilityItem],offset:[0,10],maxWidth:250,content:n._("READABILITY_DESC")})}}}class Nn extends HTMLElement{connectedCallback(){const e=this.attachShadow({mode:"open"}),t=document.createElement("style");t.innerHTML='.instance{display:block;position:relative}.instance-inline{display:inline-block;position:relative;text-align:end}button{border-radius:50%;box-shadow:0 0 16px 0 rgba(0,0,0,.31);cursor:pointer;display:block;padding:0;transition:all .2s ease-in-out;z-index:8888}button,button:after{height:36px;position:absolute;width:36px}button:after{content:"";left:-7px;padding:7px;top:-7px}.warning-btn{margin:20px}.error-btn,.good-btn{margin:10px}.error-btn-text,.good-btn-text,.warning-btn-text{margin:-30px 10px}.error-btn,.error-btn-text{background:50% 50% var(--sa11y-error-svg) no-repeat;background-color:var(--sa11y-error);background-size:22px;border:1px solid var(--sa11y-error)}.error-btn-text:focus,.error-btn-text:hover,.error-btn:focus,.error-btn:hover{background-color:var(--sa11y-error-hover)}.good-btn,.good-btn-text{background:50% 50% var(--sa11y-good) var(--sa11y-good-svg) no-repeat;background-color:var(--sa11y-good);background-size:20px;border:1px solid var(--sa11y-good)}.good-btn-text:focus,.good-btn-text:hover,.good-btn:focus,.good-btn:hover{background-color:var(--sa11y-good-hover)}.warning-btn,.warning-btn-text{background:50% 50% var(--sa11y-warning) var(--sa11y-warning-svg) no-repeat;background-color:var(--sa11y-warning);background-size:24px;border:1px solid var(--sa11y-warning);transform:scaleX(var(--sa11y-icon-direction))}.warning-btn-text:focus,.warning-btn-text:hover,.warning-btn:focus,.warning-btn:hover{background-color:var(--sa11y-warning-hover)}.sa11y-btn:active,.sa11y-btn:focus{box-shadow:0 0 0 5px var(--sa11y-focus-color);outline:0}@media screen and (forced-colors:active){.sa11y-btn{border:1px solid transparent!important;forced-color-adjust:none;outline:3px solid transparent!important}}'+z,e.appendChild(t)}}const Sn=e=>{document.querySelectorAll("sa11y-annotation").forEach(t=>{const n=((e,t,n)=>{let o=e;for(;null!==o;){if(window.getComputedStyle(o).getPropertyValue(t)===n)return o;o=o.parentElement}return null})(t,"overflow","hidden");if(null!==n){if(e){if(e.split(",").flatMap(e=>[...document.querySelectorAll(e)]).includes(n))return}n.setAttribute("data-sa11y-overflow","")}})};class wn extends HTMLElement{connectedCallback(){this.attachShadow({mode:"open"})}}class Cn extends HTMLElement{connectedCallback(){const e=this.attachShadow({mode:"open"}),t=document.createElement("style");t.textContent="\n span.heading-label {\n background-color: #777678;\n background-image: linear-gradient(to bottom right, #b629ce, #16aec2);\n border-radius: 5px;\n border: 1px solid #36a5c3;\n color: white;\n display: inline-block;\n font-family: var(--sa11y-font-face);\n font-weight: 500;\n font-size: 18px;\n line-height: normal;\n letter-spacing: normal;\n margin: -5px 0 0 5px;\n padding: 3px;\n position: absolute;\n text-shadow: 1px 1px black;\n -webkit-text-fill-color: white;\n word-break: keep-all;\n z-index: 200;\n }\n @media screen and (forced-colors: active) {\n span.heading-label {\n border: 2px solid transparent;\n }\n }",e.appendChild(t)}}const On=(e,t)=>{if(0===e.offsetTop){const o=e.getRootNode().host,i=E(o,"display","none"),s=parseInt(o.getAttribute("data-sa11y-annotation"),10),a=C(t.find(e=>e.id===s));(e=>{const t=E(e.getRootNode().host,"display","none");if(null!==t){L(t.previousElementSibling||t.parentNode)}})(e);const r=e.getAttribute("data-tippy-content");if(x(`${n._("NOT_VISIBLE")}`,r,a),(()=>{const e=document.querySelector("sa11y-tooltips").shadowRoot.querySelector("button");null!==e&&e.click()})(),i){const e=i.previousElementSibling,{parentNode:t}=i;return e?v(e).top-150:v(t).top-150}}else T(),o.Panel.skipButton.focus();return v(e).top-150};let Pn=-1;const Rn=()=>{const e=_.getItem("sa11y-latest-dismissed");null!==e&&(Pn=parseInt(e,10)-1),_.removeItem("sa11y-latest-dismissed");const t=i("[data-sa11y-opened]","root");t[0]&&(Pn=parseInt(t[0].getAttribute("data-sa11y-position"),10))},Dn=e=>{Rn();const t=P.Annotations.Array;Pn>=t.length-1&&(Pn=-1);const n=t[Pn+1].shadowRoot.querySelector("button"),i=On(n,e);window.scrollTo({top:i,behavior:`${o.Global.scrollBehaviour}`}),0!==n.offsetTop&&(n.focus(),n.click()),Pn+=1};function Mn(e,t){P.Annotations.Array.length&&!o.Panel.skipButton.hasAttribute("disabled")&&(!e.altKey||"KeyS"!==e.code&&"Period"!==e.code?!e.altKey||"KeyW"!==e.code&&"Comma"!==e.code||(e.preventDefault(),(e=>{Rn();const t=P.Annotations.Array;Pn<=0&&(Pn=t.length);const n=P.Annotations.Array[Pn-1].shadowRoot.querySelector("button"),i=On(n,e);window.scrollTo({top:i,behavior:`${o.Global.scrollBehaviour}`}),0!==n.offsetTop&&(n.focus(),n.click()),Pn-=1,-1===Pn&&(Pn=P.Annotations.Array.length-1)})(t)):(e.preventDefault(),Dn(t)))}let Bn,$n;function Gn(e,t){return P.Found.Images.forEach(i=>{const s="noAria"===r(i)?i.getAttribute("alt"):r(i),a=i.closest(t.imageWithinLightbox?`a[href]:not(${t.imageWithinLightbox})`:"a[href]"),c=i.getAttribute("src")?i.getAttribute("src"):i.getAttribute("srcset"),d=a?f(a,o.Exclusions.LinkSpan).textContent:"",u=t.linkIgnoreStrings?d.replace(t.linkIgnoreStrings,""):d,g=a?y(u).length:0;if("true"!==i.getAttribute("aria-hidden")&&(1!==i.height||1!==i.width||!p(i))){if(a&&"true"===a.getAttribute("aria-hidden")){const o="-1"===a.getAttribute("tabindex");return void(t.checks.HIDDEN_FOCUSABLE&&!o&&e.push({element:i,type:t.checks.HIDDEN_FOCUSABLE.type||"error",content:n.sprintf(t.checks.HIDDEN_FOCUSABLE.content||"HIDDEN_FOCUSABLE"),dismiss:I(`IMGHIDDENFOCUSABLE${c}`),dismissAll:!!t.checks.HIDDEN_FOCUSABLE.dismissAll&&"LINK_HIDDEN_FOCUSABLE",developer:t.checks.HIDDEN_FOCUSABLE.developer||!0}))}if(null===s)if(a){const o=0===g?t.checks.MISSING_ALT_LINK:t.checks.MISSING_ALT_LINK_HAS_TEXT,s=0===g?"MISSING_ALT_LINK":"MISSING_ALT_LINK_HAS_TEXT";o&&e.push({element:i,type:o.type||"error",content:n.sprintf(o.content||s),dismiss:I(`${s+c+g}`),dismissAll:!!o.dismissAll&&s,developer:o.developer||!1})}else t.checks.MISSING_ALT&&e.push({element:i,type:t.checks.MISSING_ALT.type||"error",content:n.sprintf(t.checks.MISSING_ALT.content||"MISSING_ALT"),dismiss:I(`IMGNOALT${c}`),dismissAll:!!t.checks.MISSING_ALT.dismissAll&&"MISSING_ALT",developer:t.checks.MISSING_ALT.developer||!1});else{const o=y(h(s)),r=(e=>{const o=[null,null,null];[".avif",".png",".jpg",".jpeg",".webp",".gif",".tiff",".svg",".heif",".heic","http"].forEach(t=>{if(-1!==e.toLowerCase().indexOf(t.toLowerCase()))o[0]=t;else{const t=/\b\d{2,6}\s*x\s*\d{2,6}\b/,n=e.toLowerCase().match(t);n&&([o[0]]=n)}}),(t.susAltStopWords?t.susAltStopWords.split(",").map(e=>e.trim()):n._("SUS_ALT_STOPWORDS")).forEach(t=>{const n=e.toLowerCase().indexOf(t);n>-1&&n<6&&(o[1]=t)}),n._("PLACEHOLDER_ALT_STOPWORDS").forEach(t=>{e.length===t.length&&e.toLowerCase().indexOf(t)>=0&&(o[2]=t)});const{extraPlaceholderStopWords:i}=t;i.length&&i.split(",").map(e=>e.trim()).forEach(t=>{const n=e.toLowerCase().indexOf(t);n>-1&&n<6&&(o[2]=t)});return o})(o),d=i.getAttribute("aria-label")||i.getAttribute("aria-labelledby"),p=i.getAttribute("title"),u=""===s||" "===s,m=i.closest("figure"),f=m?.querySelector("figcaption"),b=f?f.textContent.trim():"",E=t.checks.LINK_IMAGE_LONG_ALT.maxLength||250,v=t.checks.IMAGE_ALT_TOO_LONG.maxLength||250;if(d&&""===o)return void(t.checks.MISSING_ALT&&e.push({element:i,type:t.checks.MISSING_ALT.type||"error",content:n.sprintf(t.checks.MISSING_ALT.content||"MISSING_ALT"),dismiss:I(`IMGNOALTARIA${c}`),dismissAll:!!t.checks.MISSING_ALT.dismissAll&&"MISSING_ALT",developer:t.checks.MISSING_ALT.developer||!1}));if(u){const o=t.checks.IMAGE_DECORATIVE_CAROUSEL.sources,s=o?i.closest(o):"";if(s){const o=s.querySelectorAll("img"),a=1===o.length?t.checks.IMAGE_DECORATIVE:t.checks.IMAGE_DECORATIVE_CAROUSEL,r=1===o.length?"IMAGE_DECORATIVE":"IMAGE_DECORATIVE_CAROUSEL";a&&e.push({element:i,type:a.type||"warning",content:n.sprintf(a.content||r),dismiss:I(r+c),dismissAll:!!a.dismissAll&&r,developer:a.developer||!1})}else if(a){const o=0===g?t.checks.LINK_IMAGE_NO_ALT_TEXT:t.checks.LINK_IMAGE_TEXT,s=0===g?"LINK_IMAGE_NO_ALT_TEXT":"LINK_IMAGE_TEXT";o&&e.push({element:i,type:o.type||(0===g?"error":"good"),content:n.sprintf(o.content||s),dismiss:I(`${s+c+g}`),dismissAll:!!o.dismissAll&&s,developer:o.developer||!1})}else if(m){const o=f&&b.length?t.checks.IMAGE_FIGURE_DECORATIVE:t.checks.IMAGE_DECORATIVE,s=f&&b.length?"IMAGE_FIGURE_DECORATIVE":"IMAGE_DECORATIVE";o&&e.push({element:i,type:o.type||"warning",content:n.sprintf(o.content||s),dismiss:I(`${s+c+b}`),dismissAll:!!o.dismissAll&&s,developer:o.developer||!1})}else t.checks.IMAGE_DECORATIVE&&e.push({element:i,type:t.checks.IMAGE_DECORATIVE.type||"warning",content:n.sprintf(t.checks.IMAGE_DECORATIVE.content||"IMAGE_DECORATIVE"),dismiss:I(`DECIMAGE${c}`),dismissAll:!!t.checks.IMAGE_DECORATIVE.dismissAll&&"IMAGE_DECORATIVE",developer:t.checks.IMAGE_DECORATIVE.developer||!1});return}if(null!==r[0]){const s=a?t.checks.LINK_ALT_FILE_EXT:t.checks.ALT_FILE_EXT,l=a?"LINK_ALT_FILE_EXT":"ALT_FILE_EXT";s&&e.push({element:i,type:s.type||"error",content:n.sprintf(s.content||l,r[0],o),dismiss:I(`${l+c+o}`),dismissAll:!!s.dismissAll&&l,developer:s.developer||!1})}else if(null!==r[2]){const s=a?t.checks.LINK_PLACEHOLDER_ALT:t.checks.ALT_PLACEHOLDER,r=a?"LINK_PLACEHOLDER_ALT":"ALT_PLACEHOLDER";s&&e.push({element:i,type:s.type||"error",content:n.sprintf(s.content||r,o),dismiss:I(`${r+c+o}`),dismissAll:!!s.dismissAll&&r,developer:s.developer||!1})}else if(null!==r[1]){const s=a?t.checks.LINK_SUS_ALT:t.checks.SUS_ALT,l=a?"LINK_SUS_ALT":"SUS_ALT";s&&e.push({element:i,type:s.type||"warning",content:n.sprintf(s.content||l,r[1],o),dismiss:I(`${l+c+o}`),dismissAll:!!s.dismissAll&&l,developer:s.developer||!1})}else if(a?s.length>E:s.length>v){const r=a?t.checks.LINK_IMAGE_LONG_ALT:t.checks.IMAGE_ALT_TOO_LONG,l=a?"LINK_IMAGE_LONG_ALT":"IMAGE_ALT_TOO_LONG",d=A(o,600);r&&e.push({element:i,type:r.type||"warning",content:n.sprintf(r.content||l,s.length,d),dismiss:I(`${l+c+o}`),dismissAll:!!r.dismissAll&&l,developer:r.developer||!1})}else if(a){const s=0===g?t.checks.LINK_IMAGE_ALT:t.checks.LINK_IMAGE_ALT_AND_TEXT,r=0===g?"LINK_IMAGE_ALT":"LINK_IMAGE_ALT_AND_TEXT";if(s){const t=h(y(l(a))),d=0===g?n.sprintf("LINK_IMAGE_ALT",o):`${n.sprintf("LINK_IMAGE_ALT_AND_TEXT",o,t)} ${n.sprintf("ACC_NAME_TIP")}`;e.push({element:i,type:s.type||"warning",content:s.content?n.sprintf(s.content,o,t):d,dismiss:I(`${r+c+o}`),dismissAll:!!s.dismissAll&&r,developer:s.developer||!1})}}else if(m){!!f&&b.toLowerCase()===o.trim().toLowerCase()?t.checks.IMAGE_FIGURE_DUPLICATE_ALT&&e.push({element:i,type:t.checks.IMAGE_FIGURE_DUPLICATE_ALT.type||"warning",content:n.sprintf(t.checks.IMAGE_FIGURE_DUPLICATE_ALT.content||"IMAGE_FIGURE_DUPLICATE_ALT",o),dismiss:I(`FIGDUPLICATE${c}`),dismissAll:!!t.checks.IMAGE_FIGURE_DUPLICATE_ALT.dismissAll&&"IMAGE_FIGURE_DUPLICATE_ALT",developer:t.checks.IMAGE_FIGURE_DUPLICATE_ALT.developer||!1}):t.checks.IMAGE_PASS&&e.push({element:i,type:t.checks.IMAGE_PASS.type||"good",content:n.sprintf(t.checks.IMAGE_PASS.content||"IMAGE_PASS",o),dismiss:I(`FIGIMGPASS${c+o}`),dismissAll:!!t.checks.IMAGE_PASS.dismissAll&&"IMAGE_PASS",developer:t.checks.IMAGE_PASS.developer||!1})}else t.checks.IMAGE_PASS&&(i.closest('button, [role="button"]')||e.push({element:i,type:t.checks.IMAGE_PASS.type||"good",content:n.sprintf(t.checks.IMAGE_PASS.content||"IMAGE_PASS",o),dismiss:I(`IMAGEPASS${c+o}`),dismissAll:!!t.checks.IMAGE_PASS.dismissAll&&"IMAGE_PASS",developer:t.checks.IMAGE_PASS.developer||!1}));p?.toLowerCase()===s.toLowerCase()&&t.checks.DUPLICATE_TITLE&&e.push({element:i,type:t.checks.DUPLICATE_TITLE.type||"warning",content:n.sprintf(t.checks.DUPLICATE_TITLE.content||"DUPLICATE_TITLE"),inline:!0,dismiss:I(`ALTDUPLICATETITLE${o}`),dismissAll:!!t.checks.DUPLICATE_TITLE.dismissAll&&"DUPLICATE_TITLE",developer:t.checks.DUPLICATE_TITLE.developer||!1})}}}),e}function Un(e,t){const i=t.linkStopWords?[...n._("PARTIAL_ALT_STOPWORDS"),...t.linkStopWords.split(",").map(e=>e.trim())]:n._("PARTIAL_ALT_STOPWORDS"),s=e=>e.replace(/[^\w\s./]/g,"").replace(/\s+/g," ").trim(),a=(e,t)=>{const n=e.replace(/\./g,"").toLowerCase();let o=null;return t.forEach(e=>{n.length===e.length&&n.indexOf(e.toLowerCase())>=0&&(o=e)}),o},r={};return P.Found.Links.forEach(c=>{const d=function(e){let t=e.getAttribute("href");return t=y(t).toLowerCase(),t.endsWith("/")&&(t=t.slice(0,-1)),t=t.replace(/^https?:\/\/(www\.)?/,""),t=t.replace(/\.(html|php|htm|asp|aspx)$/i,""),t}(c),p=l(c,o.Exclusions.LinkSpan),u=y(t.linkIgnoreStrings?p.replace(t.linkIgnoreStrings,""):p),g=(e=>{const t=[null,null,null,null];return t[0]=a(e,i),n._("CLICK").forEach(n=>(new RegExp(`\\b${n}\\b`,"i").test(e)&&(t[1]=n),!1)),["doi.org/","dl.acm.org/","link.springer.com/","pubmed.ncbi.nlm.nih.gov/","scholar.google.com/","ieeexplore.ieee.org/","researchgate.net/publication/","sciencedirect.com/science/article/"].forEach(n=>(e.toLowerCase().indexOf(n)>=0&&(t[2]=n),!1)),["www.","http"].forEach(n=>(e.toLowerCase().startsWith(n)&&(t[3]=n),!1)),[".edu/",".com/",".net/",".org/",".us/",".ca/",".de/",".icu/",".uk/",".ru/",".info/",".top/",".xyz/",".tk/",".cn/",".ga/",".cf/",".nl/",".io/",".fr/",".pe/",".nz/",".pt/",".es/",".pl/",".ua/"].forEach(n=>(e.toLowerCase().indexOf(n)>=0&&(t[3]=n),!1)),t})(s(u)),m=1===u.length&&/[^a-zA-Z0-9]/g.test(u),A=u.match(/([<>↣↳←→↓«»↴]+)/),E=A?A[1]:null,v=c.getAttribute("title"),_="true"===c.getAttribute("aria-hidden"),L="-1"===c.getAttribute("tabindex"),T=c.querySelector(":scope [aria-labelledby], :scope [aria-label]")||c.getAttribute("aria-labelledby")||c.getAttribute("aria-label"),x=c.querySelector(":scope [aria-labelledby]")||c.getAttribute("aria-labelledby"),k=n._("NEW_WINDOW_PHRASES").some(e=>u.toLowerCase().includes(e)||b(c).toLowerCase().includes(e)),N=n._("CLICK").some(e=>new RegExp(`\\b${e}\\b`,"i").test(c.textContent)),S=["pdf","doc","docx","word","mp3","ppt","text","pptx","txt","exe","dmg","rtf","windows","macos","csv","xls","xlsx","mp4","mov","avi","zip"].concat(n._("FILE_TYPE_PHRASES")).some(e=>u.toLowerCase().includes(e)||b(c).toLowerCase().includes(e)),w=c.matches("\n a[href$='.pdf'],\n a[href$='.doc'],\n a[href$='.docx'],\n a[href$='.zip'],\n a[href$='.mp3'],\n a[href$='.txt'],\n a[href$='.exe'],\n a[href$='.dmg'],\n a[href$='.rtf'],\n a[href$='.pptx'],\n a[href$='.ppt'],\n a[href$='.xls'],\n a[href$='.xlsx'],\n a[href$='.csv'],\n a[href$='.mp4'],\n a[href$='.mov'],\n a[href$='.avi']\n "),C=u.replace(/'|"|-|\.|\s+/g,"").toLowerCase();if(!c.querySelectorAll("img").length){if(_)L||t.checks.HIDDEN_FOCUSABLE&&e.push({element:c,type:t.checks.HIDDEN_FOCUSABLE.type||"error",content:n.sprintf(t.checks.HIDDEN_FOCUSABLE.content||"HIDDEN_FOCUSABLE"),inline:!0,position:"afterend",dismiss:I(`LINKHIDDENFOCUS${d+C}`),dismissAll:!!t.checks.HIDDEN_FOCUSABLE.dismissAll&&"LINK_HIDDEN_FOCUSABLE",developer:t.checks.HIDDEN_FOCUSABLE.developer||!0});else if(!d&&""!==d||0!==u.length)if(null!==g[0])t.checks.LINK_STOPWORD&&e.push({element:c,type:t.checks.LINK_STOPWORD.type||"error",content:t.checks.LINK_STOPWORD.content?n.sprintf(t.checks.LINK_STOPWORD.content,g[0]):n.sprintf("LINK_STOPWORD",g[0])+n.sprintf("LINK_TIP"),inline:!0,position:"afterend",dismiss:I(`LINKSTOPWORD${d+C}`),dismissAll:!!t.checks.LINK_STOPWORD.dismissAll&&"LINK_STOPWORD",developer:t.checks.LINK_STOPWORD.developer||!1});else if(null!==g[2])u.length>8&&t.checks.LINK_DOI&&e.push({element:c,type:t.checks.LINK_DOI.type||"warning",content:n.sprintf(t.checks.LINK_DOI.content||"LINK_DOI"),inline:!0,dismiss:I(`LINKDOI${d+C}`),dismissAll:!!t.checks.LINK_DOI.dismissAll&&"LINK_DOI",developer:t.checks.LINK_DOI.developer||!1});else if(null!==g[3])u.length>(t.checks.LINK_URL.maxLength||40)&&t.checks.LINK_URL&&e.push({element:c,type:t.checks.LINK_URL.type||"warning",content:t.checks.LINK_URL.content?n.sprintf(t.checks.LINK_URL.content):n.sprintf("LINK_URL")+n.sprintf("LINK_TIP"),inline:!0,dismiss:I(`LINKURLNAME${d+C}`),dismissAll:!!t.checks.LINK_URL.dismissAll&&"LINK_URL",developer:t.checks.LINK_URL.developer||!1});else if(T){const r=h(u),l=f(c,o.Exclusions.LinkSpan),p=t.linkIgnoreStrings?b(l).replace(t.linkIgnoreStrings,""):b(l),g=s(p),m=a(g,i);t.checks.LINK_STOPWORD_ARIA&&null!==m?e.push({element:c,type:t.checks.LINK_STOPWORD_ARIA.type||"warning",content:t.checks.LINK_STOPWORD_ARIA.content?n.sprintf(t.checks.LINK_STOPWORD_ARIA.content,m,r):n.sprintf("LINK_STOPWORD_ARIA",m,r)+n.sprintf("LINK_TIP"),inline:!0,dismiss:I(`LINKSTOPWORDARIA${d+C}`),dismissAll:!!t.checks.LINK_STOPWORD_ARIA.dismissAll&&" LINK_STOPWORD_ARIA",developer:t.checks.LINK_STOPWORD_ARIA.developer||!0}):t.checks.LINK_LABEL&&e.push({element:c,type:t.checks.LINK_LABEL.type||"good",content:t.checks.LINK_LABEL.content?n.sprintf(t.checks.LINK_LABEL.content,r):`${n.sprintf("ACC_NAME",r)} ${n.sprintf("ACC_NAME_TIP")}`,inline:!0,position:"afterend",dismiss:I(`LINKGOOD${d+C}`),dismissAll:!!t.checks.LINK_LABEL.dismissAll&&"LINK_LABEL",developer:t.checks.LINK_LABEL.developer||!1});const y=O(c);t.checks.LABEL_IN_NAME&&y&&0!==c.textContent.length&&e.push({element:c,type:t.checks.LABEL_IN_NAME.type||"warning",content:n.sprintf(t.checks.LABEL_IN_NAME.content||"LABEL_IN_NAME",r),inline:!0,position:"afterend",dismiss:I(`LINKLABELNAME${d+C}`),dismissAll:!!t.checks.LABEL_IN_NAME.dismissAll&&"BTN_LABEL_IN_NAME",developer:t.checks.LABEL_IN_NAME.developer||!0})}else E?t.checks.LINK_SYMBOLS&&e.push({element:c,type:t.checks.LINK_SYMBOLS.type||"warning",content:n.sprintf(t.checks.LINK_SYMBOLS.content||"LINK_SYMBOLS",E),inline:!0,dismiss:I(`LINKSYMBOL${d+C}`),dismissAll:!!t.checks.LINK_SYMBOLS.dismissAll&&"LINK_SYMBOLS",developer:t.checks.LINK_SYMBOLS.developer||!1}):m&&t.checks.LINK_EMPTY&&e.push({element:c,type:t.checks.LINK_EMPTY.type||"error",content:n.sprintf(t.checks.LINK_EMPTY.content||"LINK_EMPTY"),inline:!0,position:"afterend",dismiss:I(`LINKCHAR${d}`),dismissAll:!!t.checks.LINK_EMPTY.dismissAll&&"LINK_EMPTY",developer:t.checks.LINK_EMPTY.developer||!1});else x?t.checks.LINK_EMPTY_LABELLEDBY&&e.push({element:c,type:t.checks.LINK_EMPTY_LABELLEDBY.type||"error",content:n.sprintf(t.checks.LINK_EMPTY_LABELLEDBY.content||"LINK_EMPTY_LABELLEDBY"),inline:!0,position:"afterend",dismiss:I(`LINKEMPTYLABELLEDBY${d}`),dismissAll:!!t.checks.LINK_EMPTY_LABELLEDBY.dismissAll&&"LINK_EMPTY_LABELLEDBY",developer:t.checks.LINK_EMPTY_LABELLEDBY.developer||!0}):c.children.length?t.checks.LINK_EMPTY_NO_LABEL&&e.push({element:c,type:t.checks.LINK_EMPTY_NO_LABEL.type||"error",content:n.sprintf(t.checks.LINK_EMPTY_NO_LABEL.content||"LINK_EMPTY_NO_LABEL"),inline:!0,position:"afterend",dismiss:I(`LINKEMPTYNOLABEL${d}`),dismissAll:!!t.checks.LINK_EMPTY_NO_LABEL.dismissAll&&"LINK_EMPTY_NO_LABEL",developer:t.checks.LINK_EMPTY_NO_LABEL.developer||!1}):t.checks.LINK_EMPTY&&e.push({element:c,type:t.checks.LINK_EMPTY.type||"error",content:n.sprintf(t.checks.LINK_EMPTY.content||"LINK_EMPTY"),inline:!0,position:"afterend",dismiss:I(`LINKEMPTY${d}`),dismissAll:!!t.checks.LINK_EMPTY.dismissAll&&"LINK_EMPTY",developer:t.checks.LINK_EMPTY.developer||!1});(null!==g[1]||N)&&t.checks.LINK_CLICK_HERE&&e.push({element:c,type:t.checks.LINK_CLICK_HERE.type||"warning",content:t.checks.LINK_CLICK_HERE.content?n.sprintf(t.checks.LINK_CLICK_HERE.content):n.sprintf("LINK_CLICK_HERE")+n.sprintf("LINK_TIP"),inline:!0,dismiss:I(`LINKCLICKHERE${d+C}`),dismissAll:!!t.checks.LINK_CLICK_HERE.dismissAll&&"LINK_CLICK_HERE",developer:t.checks.LINK_CLICK_HERE.developer||!1}),0!==b(c).length&&v?.toLowerCase()===u.toLowerCase()&&t.checks.DUPLICATE_TITLE&&e.push({element:c,type:t.checks.DUPLICATE_TITLE.type||"warning",content:n.sprintf(t.checks.DUPLICATE_TITLE.content||"DUPLICATE_TITLE"),inline:!0,dismiss:I(`LINKDUPLICATETITLE${d+C}`),dismissAll:!!t.checks.DUPLICATE_TITLE.dismissAll&&"DUPLICATE_TITLE",developer:t.checks.DUPLICATE_TITLE.developer||!1})}if(t.linksAdvancedPlugin&&0!==C.length){if(r[C]&&!r[d]){if(t.checks.LINK_IDENTICAL_NAME){const o=h(u);e.push({element:c,type:t.checks.LINK_IDENTICAL_NAME.type||"warning",content:t.checks.LINK_IDENTICAL_NAME.content?n.sprintf(t.checks.LINK_IDENTICAL_NAME.content,o):`${n.sprintf("LINK_IDENTICAL_NAME",o)} ${n.sprintf("ACC_NAME_TIP")}`,inline:!0,dismiss:I(`LINKSEEN${d+C}`),dismissAll:!!t.checks.LINK_IDENTICAL_NAME.dismissAll&&"LINK_IDENTICAL_NAME",developer:t.checks.LINK_IDENTICAL_NAME.developer||!1})}}else r[C]=!0,r[d]=!0;"_blank"!==c.getAttribute("target")?.toLowerCase()||w||k||t.checks.LINK_NEW_TAB&&e.push({element:c,type:t.checks.LINK_NEW_TAB.type||"warning",content:n.sprintf(t.checks.LINK_NEW_TAB.content||"LINK_NEW_TAB"),inline:!0,dismiss:I(`LINKNEWTAB${d+C}`),dismissAll:!!t.checks.LINK_NEW_TAB.dismissAll&&"LINK_NEW_TAB",developer:t.checks.LINK_NEW_TAB.developer||!1}),w&&!S&&t.checks.LINK_FILE_EXT&&e.push({element:c,type:t.checks.LINK_FILE_EXT.type||"warning",content:n.sprintf(t.checks.LINK_FILE_EXT.content||"LINK_FILE_EXT"),inline:!0,dismiss:I(`LINKEXT${d+C}`),dismissAll:!!t.checks.LINK_FILE_EXT.dismissAll&&"LINK_FILE_EXT",developer:t.checks.LINK_FILE_EXT.developer||!1})}}),e}function Hn(e,t){if(t.checks.QA_BAD_LINK&&P.Found.CustomErrorLinks.forEach(o=>{e.push({element:o,type:t.checks.QA_BAD_LINK.type||"error",content:n.sprintf(t.checks.QA_BAD_LINK.content||"QA_BAD_LINK",o),inline:!0,dismiss:I(o.tagName+o.textContent),dismissAll:!!t.checks.QA_BAD_LINK.dismissAll&&"QA_BAD_LINK",developer:t.checks.QA_BAD_LINK.developer||!1})}),t.checks.QA_STRONG_ITALICS&&P.Found.StrongItalics.forEach(o=>{const i=b(o);0!==i.length&&i.length>400&&e.push({element:o.parentNode,type:t.checks.QA_STRONG_ITALICS.type||"warning",content:n.sprintf(t.checks.QA_STRONG_ITALICS.content||"QA_STRONG_ITALICS"),dismiss:I(o.tagName+o.textContent),dismissAll:!!t.checks.QA_STRONG_ITALICS.dismissAll&&"QA_STRONG_ITALICS",developer:t.checks.QA_STRONG_ITALICS.developer||!1})}),P.Found.Links.forEach(i=>{if(i.hasAttribute("href")){const s=i.getAttribute("href"),a=i.matches(o.Global.documentSources),r=i.matches('a[href$=".pdf"], a[href*=".pdf?"]');if(t.checks.QA_IN_PAGE_LINK){const o="button"===i.getAttribute("role")||i.hasAttribute("aria-haspopup")||i.hasAttribute("aria-expanded")||i.hasAttribute("onclick"),a=0!==b(i).length;if((s.startsWith("#")||""===s)&&!o&&a){const o=s.substring(1),a=i.getAttribute("aria-controls");document.getElementById(o)||document.getElementById(decodeURIComponent(o))||document.getElementById(encodeURIComponent(o))||document.getElementById(a)||document.querySelector(`a[name="${o}"]`)||e.push({element:i,type:t.checks.QA_IN_PAGE_LINK.type||"error",content:n.sprintf(t.checks.QA_IN_PAGE_LINK.content||"QA_IN_PAGE_LINK"),inline:!0,dismiss:I(`QAINPAGE${s}`),dismissAll:!!t.checks.QA_IN_PAGE_LINK.dismissAll&&"QA_IN_PAGE_LINK",developer:t.checks.QA_IN_PAGE_LINK.developer||!1})}}t.checks.QA_DOCUMENT&&a?e.push({element:i,type:t.checks.QA_DOCUMENT.type||"warning",content:n.sprintf(t.checks.QA_DOCUMENT.content||"QA_DOCUMENT"),inline:!0,dismiss:I(`DOC${s}`),dismissAll:!!t.checks.QA_DOCUMENT.dismissAll&&"QA_DOCUMENT",developer:t.checks.QA_DOCUMENT.developer||!1}):t.checks.QA_PDF&&r&&e.push({element:i,type:t.checks.QA_PDF.type||"warning",content:n.sprintf(t.checks.QA_PDF.content||"QA_PDF"),inline:!0,dismiss:I(`PDF${s}`),dismissAll:!!t.checks.QA_PDF.dismissAll&&"QA_PDF",developer:t.checks.QA_PDF.developer||!1})}}),t.checks.QA_BLOCKQUOTE&&P.Found.Blockquotes.forEach(o=>{const i=b(o);if(0!==i.length&&i.length<25){const s=h(i);e.push({element:o,type:t.checks.QA_BLOCKQUOTE.type||"warning",content:n.sprintf(t.checks.QA_BLOCKQUOTE.content||"QA_BLOCKQUOTE",s),dismiss:I(`BLOCKQUOTE${s}`),dismissAll:!!t.checks.QA_BLOCKQUOTE.dismissAll&&"QA_BLOCKQUOTE",developer:t.checks.QA_BLOCKQUOTE.developer||!1})}}),P.Found.Tables.forEach(o=>{if(!1===p(o)){const i=o.querySelectorAll("th"),s=o.querySelectorAll("h1, h2, h3, h4, h5, h6"),a=I(`TABLE${o.textContent}`);t.checks.TABLES_MISSING_HEADINGS&&0===i.length&&e.push({element:o,type:t.checks.TABLES_MISSING_HEADINGS.type||"error",content:n.sprintf(t.checks.TABLES_MISSING_HEADINGS.content||"TABLES_MISSING_HEADINGS"),dismiss:a,dismissAll:!!t.checks.TABLES_MISSING_HEADINGS.dismissAll&&"TABLES_MISSING_HEADINGS",developer:t.checks.TABLES_MISSING_HEADINGS.developer||!1}),t.checks.TABLES_SEMANTIC_HEADING&&s.length>0&&s.forEach(o=>{e.push({element:o,type:t.checks.TABLES_SEMANTIC_HEADING.type||"error",content:n.sprintf(t.checks.TABLES_SEMANTIC_HEADING.content||"TABLES_SEMANTIC_HEADING"),dismiss:a,dismissAll:!!t.checks.TABLES_SEMANTIC_HEADING.dismissAll&&"TABLES_SEMANTIC_HEADING",developer:t.checks.TABLES_SEMANTIC_HEADING.developer||!1})}),i.forEach(o=>{t.checks.TABLES_EMPTY_HEADING&&0===o.textContent.trim().length&&e.push({element:o,type:t.checks.TABLES_EMPTY_HEADING.type||"error",content:n.sprintf(t.checks.TABLES_EMPTY_HEADING.content||"TABLES_EMPTY_HEADING"),position:"afterbegin",dismiss:a,dismissAll:!!t.checks.TABLES_EMPTY_HEADING.dismissAll&&"TABLES_EMPTY_HEADING",developer:t.checks.TABLES_EMPTY_HEADING.developer||!1})})}}),t.checks.QA_FAKE_HEADING){const o=(o,i)=>{e.push({element:o,type:t.checks.QA_FAKE_HEADING.type||"warning",content:n.sprintf(t.checks.QA_FAKE_HEADING.content||"QA_FAKE_HEADING",i),dismiss:I(`BOLD${i}`),inline:!0,dismissAll:!!t.checks.QA_FAKE_HEADING.dismissAll&&"QA_FAKE_HEADING",developer:t.checks.QA_FAKE_HEADING.developer||!1})},i=e=>{const t=e.previousElementSibling;if(!t)return!1;return["H1","H2","H3","H4","H5","H6"].includes(t.tagName)},s='h1, h2, h3, h4, h5, h6, [role="heading"][aria-level], blockquote, table',a=e=>{const t=getComputedStyle(e).fontSize.replace("px",""),n=b(e),a=null===n.match(/[.;?!"]/),r=n.length>=4&&n.length<=120;if(t>=24&&!e.closest(s)&&r&&a&&!i(e)){const t=h(n);o(e,t)}},r=e=>{if(/^(|)/i.test(e.innerHTML.trim())&&!e.closest(s)){const t=e.querySelector("strong, b"),n=b(t),i=null===n.match(/[.:;?!"']/);if(n.length>=3&&n.length<=120&&i){const i=f(e,["strong","b"]).textContent.trim().length;if(0!==i&&i<=250)return;const s=h(n);o(t,s)}}};P.Found.Paragraphs.forEach(e=>{a(e),r(e)})}if(t.checks.QA_FAKE_LIST){const o=new RegExp(/(([023456789][\d\s])|(1\d))/,""),i=new RegExp(/(^[aA1αаΑ]|[^\p{Alphabetic}\s])[-\s.)]/,"u"),s=new RegExp(/\p{Extended_Pictographic}/,"u"),a=["a","A","α","Α","а","А","1"],r=/[([{#]/,l={2:"1",b:"a",B:"A","β":"α","Β":"Α","б":"а","Б":"А"},c=e=>e.replace(/^b|^B|^б|^Б|^β|^В|^2/,e=>l[e]);let d="",p="",u=!1;P.Found.Paragraphs.forEach((l,h)=>{let g=!1,m=!1;p=p||b(l).replace("(","");const f=p.substring(0,2),y=f.match(i),A=f.match(o),E=f.match(s),v=r.test(f.charAt(0));if(f.length>0&&f!==d&&!A&&(y||E||v)){const o=P.Found.Paragraphs[h+1];if(o){if(g=b(o).replace("(","").substring(0,2),a.includes(g?.toLowerCase().trim()))return;const e=c(g);y?"A "!==f&&f===e&&(m=!0):E&&!u&&e.match(s)&&(m=!0,u=!0)}if(!m){let e=l?.querySelector("br")?.nextSibling?.nodeValue;if(e){e=e.replace(/<\/?[^>]+(>|$)/g,"").trim().substring(0,2);(r.test(e.charAt(0))||f===c(e)||!u&&e.match(s))&&(m=!0)}}m?(e.push({element:l,type:t.checks.QA_FAKE_LIST.type||"warning",content:n.sprintf(t.checks.QA_FAKE_LIST.content||"QA_FAKE_LIST",f),dismiss:I(`LIST${l.textContent}`),dismissAll:!!t.checks.QA_FAKE_LIST.dismissAll&&"QA_FAKE_LIST",developer:t.checks.QA_FAKE_LIST.developer||!1}),d=f):d=""}p=g?"":g})}if(t.checks.QA_UPPERCASE){const o=o=>{let i="";"LI"===o.tagName?o.childNodes.forEach(e=>{3===e.nodeType&&(i+=e.textContent)}):i=b(o);const s=i.match(/([A-Z]{2,}[ ])([A-Z]{2,}[ ])([A-Z]{2,}[ ])([A-Z]{2,})/g);s&&s[0].length>10&&e.push({element:o,type:t.checks.QA_UPPERCASE.type||"warning",content:n.sprintf(t.checks.QA_UPPERCASE.content||"QA_UPPERCASE"),dismiss:I(`UPPERCASE${i}`),dismissAll:!!t.checks.QA_UPPERCASE.dismissAll&&"QA_UPPERCASE",developer:t.checks.QA_UPPERCASE.developer||!1})};P.Found.Paragraphs.forEach(e=>o(e)),P.Found.Headings.forEach(e=>o(e)),P.Found.Lists.forEach(e=>o(e)),P.Found.Blockquotes.forEach(e=>o(e))}const i=o=>{const i=getComputedStyle(o),{textDecorationLine:s,textAlign:a,fontSize:r}=i;!t.checks.QA_UNDERLINE||"underline"!==s||o.closest("[onclick]")||o.closest("a[href]")||o.closest("ABBR")||(o=>{e.push({element:o,type:t.checks.QA_UNDERLINE.type||"warning",content:n.sprintf(t.checks.QA_UNDERLINE.content||"QA_UNDERLINE"),inline:!0,dismiss:I(`UNDERLINE${o.textContent}`),dismissAll:!!t.checks.QA_UNDERLINE.dismissAll&&"QA_UNDERLINE",developer:t.checks.QA_UNDERLINE.developer||!1})})(o);const l=t.checks.QA_SMALL_TEXT.fontSize||10,c=parseFloat(r),d=!((o.parentElement?parseFloat(getComputedStyle(o.parentElement).fontSize):null)===c)&&c>1&&c<=l;t.checks.QA_SMALL_TEXT&&d&&(o=>{e.push({element:o,type:t.checks.QA_SMALL_TEXT.type||"warning",content:n.sprintf(t.checks.QA_SMALL_TEXT.content||"QA_SMALL_TEXT"),dismiss:I(`SMALL${o.textContent}`),dismissAll:!!t.checks.QA_SMALL_TEXT.dismissAll&&"QA_SMALL_TEXT",developer:t.checks.QA_SMALL_TEXT.developer||!1})})(o);const p=(o.parentElement?getComputedStyle(o.parentElement).textAlign:null)===a;t.checks.QA_JUSTIFY&&"justify"===a&&!p&&(o=>{e.push({element:o,type:t.checks.QA_JUSTIFY.type||"warning",content:n.sprintf(t.checks.QA_JUSTIFY.content||"QA_JUSTIFY"),dismiss:I(`JUSTIFIED${o.textContent}`),dismissAll:!!t.checks.QA_JUSTIFY.dismissAll&&"QA_JUSTIFY",developer:t.checks.QA_JUSTIFY.developer||!1})})(o)};if(t.checks.QA_UNDERLINE||t.checks.QA_JUSTIFY||t.checks.QA_SMALL_TEXT)for(let e=0;e3===e.nodeType).map(e=>e.textContent).join("").trim().length&&i(t)}return t.checks.QA_SUBSCRIPT&&P.Found.Subscripts.forEach(o=>{const i=b(o);i.length>=80&&e.push({element:o,type:t.checks.QA_SUBSCRIPT.type||"warning",content:n.sprintf(t.checks.QA_SUBSCRIPT.content||"QA_SUBSCRIPT"),inline:!0,dismiss:I(o.tagName+i),dismissAll:!!t.checks.QA_SUBSCRIPT.dismissAll&&"QA_SUBSCRIPT",developer:t.checks.QA_SUBSCRIPT.developer||!1})}),t.checks.QA_NESTED_COMPONENTS&&P.Found.NestedComponents.forEach(o=>{const i=t.checks.QA_NESTED_COMPONENTS.sources||'[role="tablist"], details';o.querySelector(i)&&e.push({element:o,type:t.checks.QA_NESTED_COMPONENTS.type||"warning",content:n.sprintf(t.checks.QA_NESTED_COMPONENTS.content||"QA_NESTED_COMPONENTS"),dismiss:I(`NESTED${o.textContent}`),dismissAll:!!t.checks.QA_NESTED_COMPONENTS.dismissAll&&"QA_NESTED_COMPONENTS",developer:t.checks.QA_NESTED_COMPONENTS.developer||!1})}),e}e.Lang=n,e.Sa11y=class{constructor(e){const s={...t,...e,checks:{...t.checks,...e.checks}};this.initialize=()=>{var e;(()=>{const{doNotRun:e}=s;return e.trim().length>0&&document.querySelector(e)})()||(customElements.define("sa11y-heading-label",Cn),customElements.define("sa11y-heading-anchor",wn),customElements.define("sa11y-annotation",Nn),customElements.define("sa11y-tooltips",xn),customElements.define("sa11y-panel-tooltips",kn),customElements.define("sa11y-control-panel",V),customElements.define("sa11y-console-error",Q),o.initializeGlobal(s),o.initializeReadability(s),o.initializeExclusions(s),s.developerChecksOnByDefault&&(null===_.getItem("sa11y-developer")||s.checkAllHideToggles)&&_.setItem("sa11y-developer","On"),e=()=>{if(s.headless)this.checkAll(),_.removeItem("sa11y-dismissed");else{const i=_.getItem("sa11y-position"),{panelPosition:a}=s;!s.showMovePanelToggle||i&&!i.includes("top")==!a.includes("top")||_.setItem("sa11y-position",a);const r=new V;document.body.appendChild(r),function(e,t){o.Global.showMovePanelToggle&&(o.Panel.movePanelToggle.onclick=async()=>{const e=_.getItem("sa11y-position"),[t,n]=e.includes("top")?["top-right","top-left"]:["right","left"],i=e===t?n:t;_.setItem("sa11y-position",i),[t,n].forEach(e=>{o.Panel.toggle.classList.replace(e,i),o.Panel.panel.classList.replace(e,i)}),o.Panel.movePanelToggle.setAttribute("aria-pressed",e===t?"true":"false")}),o.Global.developerPlugin?o.Panel.developerToggle.onclick=async()=>{"On"===_.getItem("sa11y-developer")?(_.setItem("sa11y-developer","Off"),o.Panel.developerToggle.textContent=`${n._("OFF")}`,o.Panel.developerToggle.setAttribute("aria-pressed","false"),t(!1),await e()):(_.setItem("sa11y-developer","On"),o.Panel.developerToggle.textContent=`${n._("ON")}`,o.Panel.developerToggle.setAttribute("aria-pressed","true"),t(!1),await e())}:_.setItem("sa11y-developer","Off"),o.Readability.Plugin&&(o.Panel.readabilityToggle.onclick=async()=>{"On"===_.getItem("sa11y-readability")?(_.setItem("sa11y-readability","Off"),o.Panel.readabilityToggle.textContent=`${n._("OFF")}`,o.Panel.readabilityToggle.setAttribute("aria-pressed","false"),o.Panel.readability.classList.remove("active"),t(!1),await e()):(_.setItem("sa11y-readability","On"),o.Panel.readabilityToggle.textContent=`${n._("ON")}`,o.Panel.readabilityToggle.setAttribute("aria-pressed","true"),o.Panel.readability.classList.add("active"),t(!1),await e())},"On"===_.getItem("sa11y-readability")&&o.Panel.readability.classList.add("active"));const i=window.matchMedia("(prefers-color-scheme: dark)"),{themeToggle:s}=o.Panel,{html:a}=o.Global,r=e=>{a.setAttribute("data-sa11y-theme",e),_.setItem("sa11y-theme",e);const t=s.querySelector("span").classList;t.toggle("moon-icon","light"===e),t.toggle("sun-icon","dark"===e),s.setAttribute("aria-pressed","dark"===e?"true":"false")},l=_.getItem("sa11y-theme")||(i.matches?"dark":"light");r(l),i.addEventListener("change",()=>{r(i.matches?"dark":"light")}),s.onclick=()=>{const e=_.getItem("sa11y-theme")||(i.matches?"dark":"light");r("dark"===e?"light":"dark")},o.Global.colourFilterPlugin&&o.Panel.colourFilterSelect.addEventListener("change",async()=>{const i=parseInt(o.Panel.colourFilterSelect.value,10),s=["protanopia","deuteranopia","tritanopia","monochromacy"],a=[n._("RED_EYE"),n._("GREEN_EYE"),n._("BLUE_EYE"),n._("MONO_EYE")];i>=1&&i<=4?window.matchMedia("(forced-colors: active)").matches?x(n._("COLOUR_FILTER_HIGH_CONTRAST")):(o.Root.areaToCheck.setAttribute("data-sa11y-filter",s[i-1]),o.Panel.colourFilterIcon.setAttribute("aria-label",a[i-1]),k(["data-sa11y-error","data-sa11y-warning","data-sa11y-good","data-sa11y-error-inline","data-sa11y-warning-inline","data-sa11y-overflow"],"document"),N(["sa11y-annotation","sa11y-tooltips","sa11y-heading-label"],"document"),o.Panel.skipButton.disabled=!0,o.Panel.pageIssues.classList.remove("active"),o.Panel.settingsContent.classList.add("hide-settings-border"),o.Panel.colourFilterSelect.classList.add("active"),o.Panel.colourPanel.classList.add("active"),o.Panel.colourPanel.setAttribute("data-colour",s[i-1]),o.Panel.content.hidden=!0):(o.Root.areaToCheck.removeAttribute("data-sa11y-filter"),o.Panel.settingsContent.classList.remove("hide-settings-border"),o.Panel.colourFilterSelect.classList.remove("active"),o.Panel.colourPanel.classList.remove("active"),o.Panel.colourPanel.removeAttribute("data-colour"),o.Panel.content.hidden=!1,t(!1),await e())})}(this.checkAll,this.resetAll),function(){o.Panel.outlineToggle.addEventListener("click",()=>{"true"===o.Panel.outlineToggle.getAttribute("aria-expanded")?q():(j(),ee(),Z()),o.Panel.outlineHeader.focus()}),"Opened"===_.getItem("sa11y-outline")&&j(),o.Global.showImageOutline&&(o.Panel.imagesToggle.addEventListener("click",()=>{"true"===o.Panel.imagesToggle.getAttribute("aria-expanded")?Z():(X(),q(),ee()),o.Panel.imagesHeader.focus()}),"Opened"===_.getItem("sa11y-images")&&X()),o.Panel.settingsToggle.addEventListener("click",()=>{"true"===o.Panel.settingsToggle.getAttribute("aria-expanded")?ee():(J(),q(),Z()),o.Panel.settingsHeader.focus()}),"Opened"===_.getItem("sa11y-settings")&&J(),o.Panel.skipToPageIssues.addEventListener("click",()=>{o.Panel.pageIssuesHeader.focus()});const e=o.Panel.panel.querySelectorAll("[role=tab]");if(0!==e.length){let t=Array.from(e).findIndex(e=>e.classList.contains("active"));e.forEach(n=>{n.addEventListener("keydown",n=>{"ArrowRight"===n.key?(n.preventDefault(),t=(t+1)%e.length,e[t].focus()):"ArrowLeft"===n.key&&(n.preventDefault(),t=(t-1+e.length)%e.length,e[t].focus())})})}}(),function(){if(o.Global.colourFilterPlugin&&!1===o.Global.headless){const e=document.createElement("div");e.id="sa11y-colour-filters",e.setAttribute("aria-hidden","true"),e.innerHTML='\n \x3c!-- DaltonLens SVG filters to simulate color vision deficiencies --\x3e\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n ',document.body.appendChild(e)}}(),D(s.detectSPArouting,this.checkAll,this.resetAll),this.panelTooltips=new kn,document.body.appendChild(this.panelTooltips),o.Panel.toggle.disabled=!1,setTimeout(()=>{this.resetAll(),this.checkAll()},s.delayCheck),s.delayCheck>=700&&(o.Panel.toggle.disabled=!0),e=this.checkAll,t=this.resetAll,o.Panel.toggle.addEventListener("click",n=>{"Opened"===_.getItem("sa11y-panel")?(n.preventDefault(),_.setItem("sa11y-panel","Closed"),o.Panel.toggle.classList.remove("on"),o.Panel.toggle.setAttribute("aria-expanded","false"),t(),0===o.Panel.notifCount.innerHTML.trim().length?o.Panel.notifBadge.style.display="none":o.Panel.notifBadge.style.display="flex"):(n.preventDefault(),_.setItem("sa11y-panel","Opened"),o.Panel.toggle.classList.add("on"),o.Panel.toggle.setAttribute("aria-expanded","true"),e(),S(o.Panel.outlineList,o.Panel.outlineContent))}),"Opened"===_.getItem("sa11y-panel")&&(o.Panel.toggle.classList.add("on"),o.Panel.toggle.setAttribute("aria-expanded","true"),o.Panel.panel.style.transform=""),document.onkeydown=e=>{const t=e||window.event;t.altKey&&"KeyA"===t.code&&(o.Panel.toggle.click(),o.Panel.toggle.focus())}}var e,t},"complete"===document.readyState?e():window.addEventListener("load",e))},this.checkAll=async(e=s.checkRoot,t=s.readabilityRoot)=>{try{this.results=[],this.headingOutline=[],this.imageOutline=[],this.errorCount=0,this.warningCount=0,this.customChecksRunning=!1;document.querySelector(e)||!1!==s.headless||x(`${n.sprintf("MISSING_ROOT",e)}`),o.initializeRoot(e,t),function(e){if(e.autoDetectShadowComponents){const t=o.Exclusions.Sa11yElements,n=document.querySelector(e.checkRoot);(n?Array.from(n.querySelectorAll(`*:not(${t})`)):Array.from(document.body.querySelectorAll(`*:not(${t})`))).forEach(e=>{e.shadowRoot&&"open"===e.shadowRoot.mode&&(e.setAttribute("data-sa11y-has-shadow-root",""),R(e))})}else e.shadowComponents&&document.querySelectorAll(e.shadowComponents).forEach(e=>{e.setAttribute("data-sa11y-has-shadow-root",""),R(e)})}(s),P.initializeElements(s),function(e,t,i){let s,a="";P.Found.Headings.forEach((r,d)=>{const p=l(r,o.Exclusions.HeaderSpan),u=y(t.headerIgnoreStrings?p.replace(t.headerIgnoreStrings,""):p),g=h(u),m=o.Root.areaToCheck.contains(r),f=o.Root.areaToCheck.contains(r.getRootNode().host),b=m||f,v=parseInt(r.getAttribute("aria-level")||r.tagName.slice(1),10),_=u.length,L=t.checks.HEADING_LONG.maxLength||160;let T=null,x=null,k=null,N=null;if(0===_)if(r.querySelectorAll("img").length){const e=r.querySelector("img")?.getAttribute("alt");!r.querySelector("img")||e&&""!==e.trim()||t.checks.HEADING_EMPTY_WITH_IMAGE&&(T=t.checks.HEADING_EMPTY_WITH_IMAGE.type||"error",x=n.sprintf(t.checks.HEADING_EMPTY_WITH_IMAGE.content||"HEADING_EMPTY_WITH_IMAGE",v),k=t.checks.HEADING_EMPTY_WITH_IMAGE.developer||!1,N=!!t.checks.HEADING_EMPTY_WITH_IMAGE.dismissAll&&"HEADING_EMPTY_WITH_IMAGE")}else t.checks.HEADING_EMPTY&&(T=t.checks.HEADING_EMPTY.type||"error",x=n.sprintf(t.checks.HEADING_EMPTY.content||"HEADING_EMPTY",v),k=t.checks.HEADING_EMPTY.developer||!1,N=!!t.checks.HEADING_EMPTY.dismissAll&&"HEADING_EMPTY");else v-s>1&&0!==d?t.checks.HEADING_SKIPPED_LEVEL&&(T=t.checks.HEADING_SKIPPED_LEVEL.type||"error",x=n.sprintf(t.checks.HEADING_SKIPPED_LEVEL.content||"HEADING_SKIPPED_LEVEL",s,v,A(g,60),A(a,60),s+1),k=t.checks.HEADING_SKIPPED_LEVEL.developer||!1,N=!!t.checks.HEADING_SKIPPED_LEVEL.dismissAll&&"HEADING_SKIPPED_LEVEL"):0===d&&1!==v&&2!==v?t.checks.HEADING_FIRST&&(T=t.checks.HEADING_FIRST.type||"error",x=n.sprintf(t.checks.HEADING_FIRST.content||"HEADING_FIRST"),k=t.checks.HEADING_FIRST.developer||!1,N=!!t.checks.HEADING_FIRST.dismissAll&&"HEADING_FIRST"):_>L&&t.checks.HEADING_LONG&&(T=t.checks.HEADING_LONG.type||"warning",x=n.sprintf(t.checks.HEADING_LONG.content||"HEADING_LONG",L,_),k=t.checks.HEADING_LONG.developer||!1,N=!!t.checks.HEADING_LONG.dismissAll&&"HEADING_LONG");x&&T&&e.push({element:r,type:T,content:x,dismiss:I(`H${v+g}`),dismissAll:N,isWithinRoot:b,developer:k}),s=v,a=g;const S=c(r),w=E(r,"display","none");i.push({element:r,headingLevel:v,text:g,index:d,type:T,hidden:S,visibleParent:w,dismiss:I(`H${v+g}`),isWithinRoot:b})}),t.checks.HEADING_MISSING_ONE&&0===P.Found.HeadingOne.length&&e.push({type:t.checks.HEADING_MISSING_ONE.type||"warning",content:n.sprintf(t.checks.HEADING_MISSING_ONE.content||"HEADING_MISSING_ONE"),dismiss:"MISSINGH1",developer:t.checks.HEADING_MISSING_ONE.developer||!1})}(this.results,s,this.headingOutline),Un(this.results,s),Gn(this.results,s),function(e,t){t.formLabelsPlugin&&P.Found.Inputs.forEach(o=>{const i="true"===o.getAttribute("aria-hidden"),s="-1"===o.getAttribute("tabindex");if(p(o)||i&&s)return;const a=y(l(o)),r=o.getAttribute("alt"),c=o.getAttribute("type"),d=o.getAttribute("title"),u=o.getAttribute("aria-label")||o.getAttribute("aria-labelledby");if("submit"===c||"button"===c||"hidden"===c)return;if("image"===c)return void(!t.checks.LABELS_MISSING_IMAGE_INPUT||r&&""!==r.trim()||u||d||e.push({element:o,type:t.checks.LABELS_MISSING_IMAGE_INPUT.type||"error",content:n.sprintf(t.checks.LABELS_MISSING_IMAGE_INPUT.content||"LABELS_MISSING_IMAGE_INPUT"),dismiss:I(`INPUTIMAGE${c+a}`),dismissAll:!!t.checks.LABELS_MISSING_IMAGE_INPUT.dismissAll&&"LABELS_MISSING_IMAGE_INPUT",developer:t.checks.LABELS_MISSING_IMAGE_INPUT.developer||!0}));if("reset"===c)return void(t.checks.LABELS_INPUT_RESET&&e.push({element:o,type:t.checks.LABELS_INPUT_RESET.type||"warning",content:n.sprintf(t.checks.LABELS_INPUT_RESET.content||"LABELS_INPUT_RESET"),dismiss:I(`INPUTRESET${c+a}`),dismissAll:!!t.checks.LABELS_INPUT_RESET.dismissAll&&"LABELS_INPUT_RESET",developer:t.checks.LABELS_INPUT_RESET.developer||!1}));if(u||d){if(0===a.length)t.checks.LABELS_MISSING_LABEL&&e.push({element:o,type:t.checks.LABELS_MISSING_LABEL.type||"error",content:n.sprintf(t.checks.LABELS_MISSING_LABEL.content||"LABELS_MISSING_LABEL"),dismiss:I(`INPUTMISSING${c+a}`),dismissAll:!!t.checks.LABELS_MISSING_LABEL.dismissAll&&"LABELS_MISSING_LABEL",developer:t.checks.LABELS_MISSING_LABEL.developer||!0});else if(t.checks.LABELS_ARIA_LABEL_INPUT){const i=h(a);e.push({element:o,type:t.checks.LABELS_ARIA_LABEL_INPUT.type||"warning",content:t.checks.LABELS_ARIA_LABEL_INPUT.content?n.sprintf(t.checks.LABELS_ARIA_LABEL_INPUT.content,i):`${n.sprintf("LABELS_ARIA_LABEL_INPUT",i)} ${n.sprintf("ACC_NAME_TIP")}`,dismiss:I(`INPUTARIA${c+a}`),dismissAll:!!t.checks.LABELS_ARIA_LABEL_INPUT.dismissAll&&"LABELS_ARIA_LABEL_INPUT",developer:t.checks.LABELS_ARIA_LABEL_INPUT.developer||!0})}return}const g=o.closest("label"),m=g?y(l(g)):"";if(g&&m.length)return;const f=o.getAttribute("id");f?P.Found.Labels.some(e=>e.getAttribute("for")===f)||t.checks.LABELS_NO_FOR_ATTRIBUTE&&e.push({element:o,type:t.checks.LABELS_NO_FOR_ATTRIBUTE.type||"error",content:n.sprintf(t.checks.LABELS_NO_FOR_ATTRIBUTE.content||"LABELS_NO_FOR_ATTRIBUTE",f),dismiss:I(`INPUTNOFOR${c+a}`),dismissAll:!!t.checks.LABELS_NO_FOR_ATTRIBUTE.dismissAll&&"LABELS_NO_FOR_ATTRIBUTE",developer:t.checks.LABELS_NO_FOR_ATTRIBUTE.developer||!0}):t.checks.LABELS_MISSING_LABEL&&e.push({element:o,type:t.checks.LABELS_MISSING_LABEL.type||"error",content:n.sprintf(t.checks.LABELS_MISSING_LABEL.content||"LABELS_MISSING_LABEL"),dismiss:I(`INPUTNOID${c+a}`),dismissAll:!!t.checks.LABELS_MISSING_LABEL.dismissAll&&"LABELS_MISSING_LABEL",developer:t.checks.LABELS_MISSING_LABEL.developer||!0}),o.placeholder&&0!==o.placeholder&&e.push({element:o,type:t.checks.LABELS_PLACEHOLDER.type||"warning",content:n.sprintf(t.checks.LABELS_PLACEHOLDER.content||"LABELS_PLACEHOLDER"),dismiss:I(`INPUTPLACEHOLDER${c+a}`),dismissAll:!!t.checks.LABELS_PLACEHOLDER.dismissAll&&"LABELS_PLACEHOLDER",developer:t.checks.LABELS_PLACEHOLDER.developer||!0})})}(this.results,s),Hn(this.results,s),function(e,t){if(t.checks.META_LANG&&(!P.Found.Language||P.Found.Language.length<2)&&e.push({type:t.checks.META_LANG.type||"error",content:n.sprintf(t.checks.META_LANG.content||"META_LANG"),dismiss:I("LANG"),developer:t.checks.META_LANG.developer||!0}),t.checks.META_TITLE){const o=document.querySelector("title:not(svg title)");o&&0!==o.textContent.trim().length||e.push({type:t.checks.META_TITLE.type||"error",content:n.sprintf(t.checks.META_TITLE.content||"META_TITLE"),dismiss:I("TITLE"),developer:t.checks.META_TITLE.developer||!0})}if(t.checks.META_SCALABLE||t.checks.META_MAX){const o=document.querySelector('meta[name="viewport"]');if(o){const i=o.getAttribute("content");if(i){const o=i.split(",").reduce((e,t)=>{const[n,o]=t.split("=").map(e=>e.trim());return e[n]=o,e},{});!t.checks.META_SCALABLE||"no"!==o["user-scalable"]&&"0"!==o["user-scalable"]||e.push({type:t.checks.META_SCALABLE.type||"error",content:n.sprintf(t.checks.META_SCALABLE.content||"META_SCALABLE"),dismiss:I("SCALABLE"),developer:t.checks.META_SCALABLE.developer||!0});const s=parseFloat(o["maximum-scale"]);t.checks.META_MAX&&!Number.isNaN(s)&&s<2&&e.push({type:t.checks.META_MAX.type||"error",content:n.sprintf(t.checks.META_MAX.content||"META_MAX"),dismiss:I("MAXSCALE"),developer:t.checks.META_MAX.developer||!0})}}}t.checks.META_REFRESH&&document.querySelector('meta[http-equiv="refresh"]')&&e.push({type:t.checks.META_REFRESH.type||"error",content:n.sprintf(t.checks.META_REFRESH.content||"META_REFRESH"),dismiss:I("REFRESH"),developer:t.checks.META_REFRESH.developer||!0});t.checks.DUPLICATE_ID&&document.querySelectorAll("body, [data-sa11y-has-shadow-root]").forEach(i=>{const s=new Set,a=(o,i)=>{o.forEach(o=>{const{id:a}=o;"string"==typeof a&&0!==a.trim().length&&(a&&!s.has(a)?s.add(a):Array.from(i.querySelectorAll(`\n a[href*="${a}"],\n label[for*="${a}"],\n [aria-labelledby*="${a}"],\n [aria-controls*="${a}"],\n [aria-owns*="${a}"]`)).length>0&&e.push({element:o,type:t.checks.DUPLICATE_ID.type||"error",content:n.sprintf(t.checks.DUPLICATE_ID.content||"DUPLICATE_ID",a),dismiss:I(`DUPLICATEID${a}${o.textContent}`),dismissAll:!!t.checks.DUPLICATE_ID.dismissAll&&"DUPLICATE_ID",developer:t.checks.DUPLICATE_ID.developer||!0}))})};i.shadowRoot&&a(Array.from(i.shadowRoot.querySelectorAll(`[id]:not(${o.Exclusions.Container})`)),i.shadowRoot),a(Array.from(i.querySelectorAll(`[id]:not(${o.Exclusions.Container})`)),i)});(t.checks.BTN_EMPTY||t.checks.BTN_EMPTY_LABELLEDBY||t.checks.BTN_LABEL||t.checks.HIDDEN_FOCUSABLE||t.checks.LABEL_IN_NAME)&&P.Found.Buttons.forEach(o=>{const i=l(o),s=i.replace(/'|"|-|\.|\s+/g,"").toLowerCase(),a=I(`BTN${o.tagName+o.id+o.className+i}`),r=o.querySelector(":scope [aria-labelledby], :scope [aria-label]")||o.getAttribute("aria-labelledby")||o.getAttribute("aria-label"),c=o.querySelector(":scope [aria-labelledby]")||o.getAttribute("aria-labelledby"),d="true"===o.getAttribute("aria-hidden"),p="-1"===o.getAttribute("tabindex");if(d)return void(p||t.checks.HIDDEN_FOCUSABLE&&e.push({element:o,type:t.checks.HIDDEN_FOCUSABLE.type||"error",content:n.sprintf(t.checks.HIDDEN_FOCUSABLE.content||"HIDDEN_FOCUSABLE"),dismiss:a,dismissAll:!!t.checks.HIDDEN_FOCUSABLE.dismissAll&&"BTN_HIDDEN_FOCUSABLE",developer:t.checks.HIDDEN_FOCUSABLE.developer||!0}));if(0===s.length)return void(t.checks.BTN_EMPTY_LABELLEDBY&&c?e.push({element:o,type:t.checks.BTN_EMPTY_LABELLEDBY.type||"error",content:t.checks.BTN_EMPTY_LABELLEDBY.content?n.sprintf(t.checks.BTN_EMPTY_LABELLEDBY.content):`${n.sprintf("BTN_EMPTY_LABELLEDBY")} ${n.sprintf("BTN_TIP")}`,dismiss:I(a),dismissAll:!!t.checks.BTN_EMPTY_LABELLEDBY.dismissAll&&"BTN_EMPTY_LABELLEDBY",developer:t.checks.BTN_EMPTY_LABELLEDBY.developer||!0}):t.checks.BTN_EMPTY&&e.push({element:o,type:t.checks.BTN_EMPTY.type||"error",content:t.checks.BTN_EMPTY.content?n.sprintf(t.checks.BTN_EMPTY.content):`${n.sprintf("BTN_EMPTY")} ${n.sprintf("BTN_TIP")}`,dismiss:a,dismissAll:!!t.checks.BTN_EMPTY.dismissAll&&"BTN_EMPTY",developer:t.checks.BTN_EMPTY.developer||!0}));const u=O(o);if(t.checks.LABEL_IN_NAME&&r&&u){const s=h(i);return void e.push({element:o,type:t.checks.LABEL_IN_NAME.type||"warning",content:t.checks.LABEL_IN_NAME.content?n.sprintf(t.checks.LABEL_IN_NAME.content,s):`${n.sprintf("LABEL_IN_NAME",s)} ${n.sprintf("ACC_NAME_TIP")}`,dismiss:a,dismissAll:!!t.checks.LABEL_IN_NAME.dismissAll&&"BTN_LABEL_IN_NAME",developer:t.checks.LABEL_IN_NAME.developer||!0})}t.checks.BTN_ROLE_IN_NAME&&i.includes(n._("BTN"))&&e.push({element:o,type:t.checks.BTN_ROLE_IN_NAME.type||"warning",content:t.checks.BTN_ROLE_IN_NAME.content?n.sprintf(t.checks.BTN_ROLE_IN_NAME.content):`${n.sprintf("BTN_ROLE_IN_NAME")} ${n.sprintf("BTN_TIP")}`,dismiss:a,dismissAll:!!t.checks.BTN_ROLE_IN_NAME.dismissAll&&"BTN_ROLE_IN_NAME",developer:t.checks.BTN_ROLE_IN_NAME.developer||!0})}),t.checks.UNCONTAINED_LI&&P.Found.Lists.forEach(o=>{o.closest("ul, ol, menu")||e.push({element:o,type:t.checks.UNCONTAINED_LI.type||"error",content:n.sprintf(t.checks.UNCONTAINED_LI.content||"UNCONTAINED_LI"),dismiss:I(`UNCONTAINEDLI${o.textContent}`),dismissAll:!!t.checks.UNCONTAINED_LI.dismissAll&&"UNCONTAINED_LI",developer:t.checks.UNCONTAINED_LI.developer||!0})}),t.checks.TABINDEX_ATTR&&P.Found.TabIndex.forEach(o=>{e.push({element:o,type:t.checks.TABINDEX_ATTR.type||"error",content:n.sprintf(t.checks.TABINDEX_ATTR.content||"TABINDEX_ATTR"),dismiss:I(`TABINDEX${o.tagName+o.id+o.className}`),dismissAll:!!t.checks.TABINDEX_ATTR.dismissAll&&"TABINDEX_ATTR",developer:t.checks.TABINDEX_ATTR.developer||!0})})}(this.results,s),s.embeddedContentPlugin&&function(e,t){const o=e=>"undefined"!==e.getAttribute("src")?e.getAttribute("src"):e.querySelector("[src]")?.getAttribute("src");t.checks.EMBED_AUDIO&&P.Found.Audio.forEach(i=>{e.push({element:i,type:t.checks.EMBED_AUDIO.type||"warning",content:n.sprintf(t.checks.EMBED_AUDIO.content||"EMBED_AUDIO"),dismiss:I(`AUDIO${o(i)}`),dismissAll:!!t.checks.EMBED_AUDIO.dismissAll&&"EMBED_AUDIO",developer:t.checks.EMBED_AUDIO.developer||!1})}),t.checks.EMBED_VIDEO&&P.Found.Videos.forEach(i=>{const s=i.querySelector("track"),a=s?.getAttribute("src");null!==s&&null!==a&&0!==a.trim().length||e.push({element:i,type:t.checks.EMBED_VIDEO.type||"warning",content:n.sprintf(t.checks.EMBED_VIDEO.content||"EMBED_VIDEO"),dismiss:I(`VIDEO${o(i)}`),dismissAll:!!t.checks.EMBED_VIDEO.dismissAll&&"EMBED_VIDEO",developer:t.checks.EMBED_VIDEO.developer||!1})}),t.checks.EMBED_DATA_VIZ&&P.Found.Visualizations.forEach(i=>{e.push({element:i,type:t.checks.EMBED_DATA_VIZ.type||"warning",content:n.sprintf(t.checks.EMBED_DATA_VIZ.content||"EMBED_DATA_VIZ"),dismiss:I(`DATAVIZ${o(i)}`),dismissAll:!!t.checks.EMBED_DATA_VIZ.dismissAll&&"EMBED_DATA_VIZ",developer:t.checks.EMBED_DATA_VIZ.developer||!1})}),P.Found.iframes.forEach(i=>{const s=["presentation","none"].includes(i.getAttribute("role")),a=p(i),l="VIDEO"===i.tagName||"AUDIO"===i.tagName,c="true"===i.getAttribute("aria-hidden"),d="-1"===i.getAttribute("tabindex");if(!(a||l||c&&d||s))if(d)t.checks.EMBED_UNFOCUSABLE&&e.push({element:i,type:t.checks.EMBED_UNFOCUSABLE.type||"error",content:n.sprintf(t.checks.EMBED_UNFOCUSABLE.content||"EMBED_UNFOCUSABLE"),dismiss:I(`EMBEDUNFOCUSABLE${o(i)}`),dismissAll:!!t.checks.EMBED_UNFOCUSABLE.dismissAll&&"EMBED_UNFOCUSABLE",developer:t.checks.EMBED_UNFOCUSABLE.developer||!0});else if(t.checks.EMBED_MISSING_TITLE){const s=r(i);0===y("noAria"===s?i.getAttribute("title")||"":s).length&&e.push({element:i,type:t.checks.EMBED_MISSING_TITLE.type||"error",content:n.sprintf(t.checks.EMBED_MISSING_TITLE.content||"EMBED_MISSING_TITLE"),dismiss:I(`EMBEDMISSTITLE${o(i)}`),dismissAll:!!t.checks.EMBED_MISSING_TITLE.dismissAll&&"EMBED_MISSING_TITLE",developer:t.checks.EMBED_MISSING_TITLE.developer||!0})}}),t.checks.EMBED_GENERAL&&P.Found.EmbeddedContent.forEach(i=>{const s=["presentation","none"].includes(i.getAttribute("role")),a="true"===i.getAttribute("aria-hidden"),r="-1"===i.getAttribute("tabindex");p(i)||a&&r||s||"VIDEO"!==i.tagName&&"AUDIO"!==i.tagName&&e.push({element:i,type:t.checks.EMBED_GENERAL.type||"warning",content:n.sprintf(t.checks.EMBED_GENERAL.content||"EMBED_GENERAL"),dismiss:I(`IFRAMEGENERAL${o(i)}`),dismissAll:!!t.checks.EMBED_GENERAL.dismissAll&&"EMBED_GENERAL",developer:t.checks.EMBED_GENERAL.developer||!1})})}(this.results,s),s.contrastPlugin&&function(e,t){const o=[];for(let e=0;e3===e.nodeType).map(e=>e.textContent).join("").trim(),m=["SELECT","INPUT","TEXTAREA"].includes(n.tagName);if(0!==g.length||m)if("unsupported"===a||"unsupported"===c){const e=r>=24||r>=18.67&&l>=700;o.push({$el:n,type:"unsupported",fontSize:r,fontWeight:l,isLargeText:e,opacity:s,..."unsupported"!==c&&{background:c},..."unsupported"!==a&&{color:a}})}else if("image"===c.type)if(h);else{const e=r>=24||r>=18.67&&l>=700;o.push({$el:n,type:"background-image",color:a,isLargeText:e,background:c,fontSize:r,fontWeight:l,opacity:s})}else if("text"===n.tagName&&n.closest("svg"));else if(h||fn(a)===fn(c));else{const e=In(n,a,c,r,l,s,t.contrastAAA);e&&(e.type=m?"input":"text",o.push(e))}}P.Found.Svg.forEach(e=>{const n=pn(e);if(n&&"image"===n.type)return void o.push({$el:e,type:"svg-warning",background:n});if(e.querySelector("text"))return void o.push({$el:e,type:"svg-text",background:n});const i=e.querySelectorAll("path, polygon, circle, rect, ellipse");if(1===i.length){const s=getComputedStyle(i[0]),{fill:a,opacity:r,stroke:l,strokeWidth:c}=s;if(a.startsWith("url("))return void o.push({$el:e,type:"svg-warning",background:n});const d=a&&"none"!==a,p=l&&"none"!==l&&"0px"!==c;if(!d&&!p)return void o.push({$el:e,type:"svg-warning",background:n});let u,h,g,m=!1,f=!1;d&&(h=dn("currentColor"===a?getComputedStyle(e).color:a,r),"unsupported"!==h&&(u=yn(h,n),m=t.contrastAPCA?u.ratio>=45:u.ratio>=3)),p&&(g=dn("currentColor"===l?getComputedStyle(e).color:l,r),"unsupported"!==g&&(u=yn(g,n),f=t.contrastAPCA?u.ratio>=45:u.ratio>=3));const b=d&&p&&!m&&!f,y=d&&!p&&!m,A=!d&&p&&!f;"unsupported"===h||"unsupported"===g?o.push({$el:e,type:"svg-warning",background:n}):(b||y||A)&&o.push({$el:e,ratio:bn(u.ratio),color:u.blendedColor,type:"svg-error",background:n})}else o.push({$el:e,type:"svg-warning",background:n})}),P.Found.Inputs.forEach(e=>{if(e.placeholder&&0!==e.placeholder.length){const n=getComputedStyle(e,"::placeholder"),i=dn(n.getPropertyValue("color")),s=parseFloat(n.fontSize),a=cn(n.fontWeight),r=pn(e),l=parseFloat(n.opacity);if("unsupported"===i)o.push({$el:e,type:"placeholder-unsupported"});else if("image"===r.type);else{const n=In(e,i,r,s,a,l,t.contrastAAA);n&&(n.type="placeholder",o.push(n))}}}),(e=>{const n=e.filter(e=>"background-image"===e.type),o=e.filter(e=>"background-image"!==e.type);let i;if(t.contrastAPCA)i=n.map(e=>({...e}));else{const e=n.reduce((e,t)=>{const n=e,o=JSON.stringify({background:t.background.value,color:t.color,isLargeText:t.isLargeText});return n[o]||(n[o]=[]),n[o].push(t),n},{});i=Object.values(e).map(e=>({...e[0]}))}return[...i,...o]})(o).forEach(o=>{const{$el:i,ratio:s}=o,a=o,r="OPTION"===i.tagName?i.closest("datalist, select, optgroup"):i,l=h(A(b(f(r,["option:not(option:first-child)"])),80));let c;c="placeholder"===o.type||"placeholder-unsupported"===o.type?h(i.placeholder):"svg-error"===o.type||"svg-warning"===o.type||"svg-text"===o.type?"":l,a.sanitizedText=c;let d="";if(!t.contrastAPCA){const e=t.contrastAAA?"7:1":"4.5:1",i=t.contrastAAA?"4.5:1":"3:1",s=o.isLargeText?i:e,a=o.isLargeText?"CONTRAST_LARGE":"CONTRAST_NORMAL";d=` ${n.sprintf(a,s)}`}const p=t.contrastAPCA?"":` ${n.sprintf("CONTRAST_TIP_GRAPHIC")}`;switch(o.type){case"text":t.checks.CONTRAST_ERROR&&e.push({element:i,type:t.checks.CONTRAST_ERROR.type||"error",content:t.checks.CONTRAST_ERROR.content?n.sprintf(t.checks.CONTRAST_ERROR.content):n.sprintf("CONTRAST_ERROR")+d,dismiss:I(`CONTRAST${l}`),dismissAll:!!t.checks.CONTRAST_ERROR.dismissAll&&"CONTRAST_ERROR",developer:t.checks.CONTRAST_ERROR.developer||!1,contrastDetails:a});break;case"input":t.checks.CONTRAST_INPUT&&e.push({element:r,type:t.checks.CONTRAST_INPUT.type||"error",content:t.checks.CONTRAST_INPUT.content?n.sprintf(t.checks.CONTRAST_INPUT.content):n.sprintf("CONTRAST_INPUT",s)+d,dismiss:I(`CONTRAST${i.getAttribute("class")}${i.tagName}${s}`),dismissAll:!!t.checks.CONTRAST_INPUT.dismissAll&&"CONTRAST_INPUT",developer:t.checks.CONTRAST_INPUT.developer||!0,contrastDetails:a});break;case"placeholder":t.checks.CONTRAST_PLACEHOLDER&&e.push({element:i,type:t.checks.CONTRAST_PLACEHOLDER.type||"error",content:t.checks.CONTRAST_PLACEHOLDER.content?n.sprintf(t.checks.CONTRAST_PLACEHOLDER.content):n.sprintf("CONTRAST_PLACEHOLDER")+d,position:"afterend",dismiss:I(`CPLACEHOLDER${i.getAttribute("class")}${i.tagName}${s}`),dismissAll:!!t.checks.CONTRAST_PLACEHOLDER.dismissAll&&"CONTRAST_PLACEHOLDER",developer:t.checks.CONTRAST_PLACEHOLDER.developer||!0,contrastDetails:a});break;case"placeholder-unsupported":t.checks.CONTRAST_PLACEHOLDER_UNSUPPORTED&&e.push({element:i,type:t.checks.CONTRAST_PLACEHOLDER_UNSUPPORTED.type||"warning",content:t.checks.CONTRAST_PLACEHOLDER_UNSUPPORTED.content?n.sprintf(t.checks.CONTRAST_PLACEHOLDER_UNSUPPORTED.content):n.sprintf("CONTRAST_PLACEHOLDER_UNSUPPORTED")+d,position:"afterend",dismiss:I(`CPLACEHOLDERUN${i.getAttribute("class")}${i.tagName}${s}`),dismissAll:!!t.checks.CONTRAST_PLACEHOLDER_UNSUPPORTED.dismissAll&&"CONTRAST_PLACEHOLDER_UNSUPPORTED",developer:t.checks.CONTRAST_PLACEHOLDER_UNSUPPORTED.developer||!0,contrastDetails:a});break;case"svg-error":t.checks.CONTRAST_ERROR_GRAPHIC&&e.push({element:i,type:t.checks.CONTRAST_ERROR_GRAPHIC.type||"error",content:t.checks.CONTRAST_ERROR_GRAPHIC.content?n.sprintf(t.checks.CONTRAST_ERROR_GRAPHIC.content):n.sprintf("CONTRAST_ERROR_GRAPHIC")+p,dismiss:I(`CONTRASTERROR${i.outerHTML}`),dismissAll:!!t.checks.CONTRAST_ERROR_GRAPHIC.dismissAll&&"CONTRAST_ERROR_GRAPHIC",developer:t.checks.CONTRAST_ERROR_GRAPHIC.developer||!0,contrastDetails:a});break;case"svg-warning":case"svg-text":t.checks.CONTRAST_WARNING_GRAPHIC&&e.push({element:i,type:t.checks.CONTRAST_WARNING_GRAPHIC.type||"warning",content:t.checks.CONTRAST_WARNING_GRAPHIC.content?n.sprintf(t.checks.CONTRAST_WARNING_GRAPHIC.content):n.sprintf("CONTRAST_WARNING_GRAPHIC")+p,dismiss:I(`CONTRASTWARNING${i.outerHTML}`),dismissAll:!!t.checks.CONTRAST_WARNING_GRAPHIC.dismissAll&&"CONTRAST_WARNING_GRAPHIC",developer:t.checks.CONTRAST_WARNING_GRAPHIC.developer||!0,contrastDetails:a});break;case"background-image":t.checks.CONTRAST_WARNING&&e.push({element:r,type:t.checks.CONTRAST_WARNING.type||"warning",content:t.checks.CONTRAST_WARNING.content?n.sprintf(t.checks.CONTRAST_WARNING.content):n.sprintf("CONTRAST_WARNING")+d,dismiss:I(`CONTRAST${l}`),dismissAll:!!t.checks.CONTRAST_WARNING.dismissAll&&"CONTRAST_WARNING",developer:t.checks.CONTRAST_WARNING.developer||!1,contrastDetails:a});break;case"unsupported":t.checks.CONTRAST_UNSUPPORTED&&e.push({element:r,type:t.checks.CONTRAST_UNSUPPORTED.type||"warning",content:t.checks.CONTRAST_UNSUPPORTED.content?n.sprintf(t.checks.CONTRAST_UNSUPPORTED.content):n.sprintf("CONTRAST_WARNING")+d,dismiss:I(`CONTRAST${l}`),dismissAll:!!t.checks.CONTRAST_UNSUPPORTED.dismissAll&&"CONTRAST_UNSUPPORTED",developer:t.checks.CONTRAST_UNSUPPORTED.developer||!1,contrastDetails:a})}})}(this.results,s),s.readabilityPlugin&&function(){let e;if("On"===_.getItem("sa11y-readability")){P.Found.Readability.forEach(e=>{const t=e.textContent;t.length>=120&&"."!==t.charAt(t.length-1)&&e.insertAdjacentHTML("beforeend",".")});const t=[];for(let e=0;e{let t=e;if(t=t.toLowerCase().replace(".","").replace("\n",""),t.length<=3)return 1;t=t.replace(/(?:[^laeiouy]es|ed|[^laeiouy]e)$/,""),t=t.replace(/^y/,"");const n=t.match(/[aeiouy]{1,2}/g);let o=0;return!!n&&(o=n.length),o},s=i.replace(/[.!?-]+/g," ").split(" ");let a=0;for(let e=0;e100?u=100:u<0&&(u=0);const h=u.toFixed(1),g=(a/l).toFixed(1),m=Math.round((a-(d+p))/a*100);let f;f=h>=0&&h<30?n._("VERY_DIFFICULT"):h>31&&h<49?n._("DIFFICULT"):h>50&&h<60?n._("FAIRLY_DIFFICULT"):n._("GOOD"),e={score:h,averageWordsPerSentence:g,complexWords:m,difficultyLevel:f,wordCount:a}}else if(["sv","fi","da","no","nb","nn"].includes(o.Readability.Lang)){const t=(e=>{const t=()=>e.replace(/[-'.]/gi,"").split(/[^a-zA-ZöäåÖÄÅÆæØø0-9]/g).filter(Boolean),o=t().length,i=t().filter(e=>e.length>6).length,s=e.split(/\?|!|\.|\n/g).filter(Boolean).length,a=Math.round(o/s+100*i/o),r=(o/s).toFixed(1),l=Math.round(i/o*100);let c;return c=a>=0&&a<39?n._("GOOD"):a>40&&a<50?n._("FAIRLY_DIFFICULT"):a>51&&a<61?n._("DIFFICULT"):n._("VERY_DIFFICULT"),{score:a,difficulty:c,avgWordsPerSentence:r,complexWords:l,wordCount:o}})(i);e={score:t.score,averageWordsPerSentence:t.avgWordsPerSentence,complexWords:t.complexWords,difficultyLevel:t.difficulty,wordCount:t.wordCount}}!1===o.Global.headless&&(0===i.length?o.Panel.readabilityInfo.innerHTML=n._("READABILITY_NO_CONTENT"):e.wordCount>30?(o.Panel.readabilityInfo.innerHTML=`${e.score} ${e.difficultyLevel}`,o.Panel.readabilityDetails.innerHTML=`\n
                          • \n ${n._("AVG_SENTENCE")}\n ${e.averageWordsPerSentence}\n
                          • \n
                          • \n ${n._("COMPLEX_WORDS")}\n ${e.complexWords}%\n
                          • \n
                          • \n ${n._("TOTAL_WORDS")}\n ${e.wordCount}\n
                          • `):o.Panel.readabilityInfo.textContent=n._("READABILITY_NOT_ENOUGH"))}}(),this.imageResults=this.results.filter((e,t,n)=>{const{element:o}=e;return!(!o||"IMG"!==o.tagName||!o.outerHTML)&&n.findIndex(e=>e.element?.outerHTML===o.outerHTML)===t}),!0===s.customChecks?this.results:"object"==typeof s.customChecks?this.results.push(...s.customChecks):"listen"===s.customChecks&&(this.customChecksRunning=!0,this.customChecksFinished=0,document.addEventListener("sa11y-resume",()=>{this.customChecksFinished+=1,1===this.customChecksFinished&&(this.customChecksRunning=!1,this.updateResults())}),window.setTimeout(()=>{if(!0===this.customChecksRunning)throw this.customChecksRunning=!1,this.updateResults(),Error("Sa11y: No custom checks were returned.")},s.delayCustomCheck),window.setTimeout(()=>{const e=new CustomEvent("sa11y-custom-checks");document.dispatchEvent(e)},0)),this.customChecksRunning||this.updateResults()}catch(e){const t=new Q(e);throw document.body.appendChild(t),Error(e)}},this.updateResults=()=>{this.results=this.results.filter(e=>!1!==e.isWithinRoot);const e="Off"===_.getItem("sa11y-developer")||null===_.getItem("sa11y-developer");if((e||!0===s.externalDeveloperChecks)&&(this.results=this.results.filter(e=>!0!==e.developer)),e&&(this.results=this.results.filter(e=>!0!==e.external)),this.results.forEach((e,t)=>{const n=s.selectorPath?function(e){const t=[];let n=e;for(;n;){let e=n.localName;if(n.id){e+=`#${n.id}`,t.unshift(e);break}n.className&&(e+=`.${n.className.replace(/\s+/g,".")}`);const o=n.parentNode;if(!o)break;{const i=o.children;i.length>1&&(e+=`:nth-child(${Array.prototype.indexOf.call(i,n)+1})`),t.unshift(e)}n=n.parentNode.host||n.parentNode}return t.join(" > ")}(e.element):"",o=e.element?.outerHTML.replace(/\s{2,}/g," ").trim()||"";Object.assign(e,{htmlPath:o,cssPath:n,id:t})}),!1===s.headless){const e=M(this.results,this.panelTooltips,this.checkAll,this.resetAll);this.results=e.updatedResults,this.dismissed=e.dismissedIssues;const l=function(e,t,n){let o=t,i=n;return e.forEach((t,n)=>{const s=e[n].type;"error"===s?o+=1:"warning"===s&&(i+=1)}),{error:o,warning:i}}(this.results,this.errorCount,this.warningCount);if(function(e,t){const i=e+t;0===i?(o.Panel.notifCount.innerText="",o.Panel.notifText.innerText="",o.Panel.notifBadge.style.display="none"):t>0&&0===e?(o.Panel.notifBadge.classList.add("notification-badge-warning"),o.Panel.notifCount.innerText=`${t}`,o.Panel.notifText.innerText=`${n._("WARNINGS_FOUND")}`):(o.Panel.notifBadge.classList.remove("notification-badge-warning"),o.Panel.notifCount.innerText=`${i}`,o.Panel.notifText.innerText=n._("TOTAL_FOUND")),"Opened"===_.getItem("sa11y-panel")||0===i?o.Panel.notifBadge.style.display="none":o.Panel.notifBadge.style.display="flex"}(l.error,l.warning),"Opened"===_.getItem("sa11y-panel")){this.results.forEach(e=>{Object.assign(e),function(e,t){const{element:i,type:s,content:a,inline:r=!1,position:l="beforebegin",id:c,dismiss:d,dismissAll:p,contrastDetails:h}=e,g=["error","warning","good"];if(-1===g.indexOf(s))throw Error(`Invalid type [${s}] for annotation`);[s].forEach(e=>{if("error"===e&&void 0!==i){const e=r?"data-sa11y-error-inline":"data-sa11y-error";i.setAttribute(e,c)}else if("warning"===e&&void 0!==i){const e=r?"data-sa11y-warning-inline":"data-sa11y-warning";i.setAttribute(e,c)}});const m={[g[0]]:n._("ERROR"),[g[1]]:n._("WARNING"),[g[2]]:n._("GOOD")};if(!1===t.showGoodImageButton&&"IMG"===i?.tagName&&"good"===s)return;if(!1===t.showGoodLinkButton&&"A"===i?.tagName&&"good"===s)return;const f=!t.dismissAnnotations||"warning"!==s&&"good"!==s||void 0===d?"":``,b=t.dismissAnnotations&&t.dismissAll&&"string"==typeof p&&("warning"===s||"good"===s)?``:"",y=document.createElement("sa11y-annotation");if(y.setAttribute("data-sa11y-annotation",c),void 0===i){const e=document.createElement("li");e.innerHTML=`

                            ${m[s]}

                            ${a}${f}`,o.Panel.pageIssuesList.insertAdjacentElement("afterbegin",e),o.Panel.pageIssues.classList.add("active"),o.Panel.panel.classList.add("has-page-issues")}else{const e=document.createElement("div");e.classList.add(r?"instance-inline":"instance"),e.innerHTML=`\n \n

                            ${m[s]}

                            \n ${u(a)}\n ${h?"
                            ":""}\n
                            ${f}${b}
                            \n "\n >`;const o=t.insertAnnotationBefore?`, ${t.insertAnnotationBefore}`:"";(i.closest(`a, button, [role="link"], [role="button"] ${o}`)||i).insertAdjacentElement(l,y),y.shadowRoot.appendChild(e)}}(e,s)}),P.initializeAnnotations();const c=new xn;document.body.appendChild(c),G(this.results,this.dismissed,this.checkAll,this.resetAll),te(this.dismissed,this.headingOutline,s),s.showImageOutline&&function(e,t,i){const s=()=>{const a=[],r=e.map(e=>t.find(t=>e.key===t.dismiss&&e.href===window.location.pathname)).filter(Boolean);t.forEach(e=>{const t=r.some(t=>t.element.outerHTML.toLowerCase()===e.element.outerHTML.toLowerCase());t&&Object.assign(e,{dismissedImage:!0});const s=e.type,l=e.developer,{dismissedImage:c}=e,d=u(e.element.alt),p=!("Off"!==_.getItem("sa11y-developer")&&null!==_.getItem("sa11y-developer")||"error"!==s&&"warning"!==s||!0!==l),h=w(e.element),g=o.Global.editImageURLofCMS?ne(e):"",m=i.imageWithinLightbox?`a[href]:not(${i.imageWithinLightbox})`:"a[href]",f=e.element.closest(m)?`
                            ${n._("LINKED")}
                            `:"";let b;if("error"!==s||p)if("warning"!==s||c||p){const t=0===d.length?`
                            ${n._("DECORATIVE")}
                            `:"",o=i.imageWithinLightbox?`a[href]:not(${i.imageWithinLightbox})`:"a[href]",s=e.element.closest(o)?`
                            ${n._("LINKED")}
                            `:"";b=`\n
                          • \n \n
                            \n
                            ${n._("ALT")}
                            \n ${s} ${t} ${d}\n
                            \n ${g}\n
                          • `,a.push(b)}else{const e=0===d.length?`
                            ${n._("DECORATIVE")}
                            `:"";b=`\n
                          • \n \n
                            \n
                            ${n._("WARNING")} ${n._("ALT")}
                            \n ${f} ${e} ${d}\n
                            \n ${g}\n
                          • `,a.push(b)}else{const e=0===d.length?`
                            ${n._("MISSING")}
                            `:`${d}`;b=`\n
                          • \n \n
                            \n
                            ${n._("ERROR")} ${n._("ALT")}
                            ${f} ${e}\n
                            \n ${g}\n
                          • `,a.push(b)}}),o.Panel.imagesList.innerHTML=0===a.length?`
                          • ${n._("NO_IMAGES")}
                          • `:a.join(" "),document.removeEventListener("sa11y-build-image-outline",s)};"Opened"===_.getItem("sa11y-images")&&s(),document.addEventListener("sa11y-build-image-outline",s)}(this.dismissed,this.imageResults,s),i=e.dismissCount,a=l.error,r=l.warning,o.Panel.skipButton.disabled=!1,o.Panel.panel.classList.add("active"),o.Global.html.setAttribute("data-sa11y-active","true"),o.Panel.skipButton.classList.add("active"),a>0&&r>0?(o.Panel.content.setAttribute("class","errors"),o.Panel.status.innerHTML=`${n._("ERRORS")} ${a} ${n._("WARNINGS")} ${r}`):a>0?(o.Panel.content.setAttribute("class","errors"),o.Panel.status.innerHTML=`${n._("ERRORS")} ${a}`):r>0?(o.Panel.content.setAttribute("class","warnings"),o.Panel.status.innerHTML=`${n._("WARNINGS")} ${r}`):i>0?(o.Panel.status.innerHTML=`${n._("DISMISSED")} ${i}`,o.Panel.skipButton.classList.remove("active")):(o.Panel.content.setAttribute("class","good"),o.Panel.status.innerHTML=`${n._("NO_ERRORS_FOUND")}`),0===document.querySelectorAll("sa11y-annotation").length&&(o.Panel.skipButton.disabled=!0),t=this.results,Bn=e=>{Mn(e,t)},$n=()=>{Dn(t)},document.addEventListener("keydown",Bn),o.Panel.skipButton.addEventListener("click",$n),s.exportResultsPlugin&&function(e,t){o.Global.exportResultsPlugin&&(K=async()=>{await H(e,t)},W=()=>{F(e)},o.Panel.exportHTML.addEventListener("click",K),o.Panel.exportCSV.addEventListener("click",W))}(this.results,e.dismissedResults),S(o.Panel.pageIssuesList,o.Panel.pageIssuesContent),Sn(s.ignoreHiddenOverflow),document.querySelectorAll("sa11y-annotation").forEach(e=>{const t=e.nextElementSibling;null!==t&&"SA11Y-ANNOTATION"===t.tagName&&customElements.get("sa11y-annotation")&&t.shadowRoot.querySelector("button").setAttribute("style","margin: -5px -15px !important;")})}o.Panel.toggle.disabled=!1}var t,i,a,r;window.sa11yCheckComplete=null;const l=new CustomEvent("sa11y-check-complete",{detail:{results:this.results,page:window.location.pathname}});window.sa11yCheckComplete=l.detail,document.dispatchEvent(l)},this.resetAll=(e=!0)=>{for(o.Global.html.removeAttribute("data-sa11y-active"),N(["sa11y-annotation","sa11y-heading-label","sa11y-heading-anchor","sa11y-tooltips","[data-sa11y-readability-period]","[data-sa11y-clone-image-text]"],"document"),k(["data-sa11y-parent","data-sa11y-error","data-sa11y-warning","data-sa11y-good","data-sa11y-error-inline","data-sa11y-warning-inline","data-sa11y-overflow","data-sa11y-pulse-border","data-sa11y-filter","data-sa11y-has-shadow-root"],"document"),o.Panel.outlineList.innerHTML="",s.showImageOutline&&(o.Panel.imagesList.innerHTML=""),o.Panel.pageIssuesList.innerHTML="",o.Panel.readabilityInfo.innerHTML="",o.Panel.readabilityDetails.innerHTML="",o.Panel.panel.classList.remove("has-page-issues"),o.Panel.pageIssues.classList.remove("active"),o.Panel.settingsContent.classList.remove("hide-settings-border"),o.Panel.panel.querySelector("#readability-alert")?.remove(),T(),document.removeEventListener("keydown",Bn),o.Panel.skipButton.removeEventListener("click",$n),o.Global.exportResultsPlugin&&(o.Panel.exportHTML.removeEventListener("click",K),o.Panel.exportCSV.removeEventListener("click",W)),o.Panel.panel?.removeEventListener("click",$),o.Panel.dismissButton?.removeEventListener("click",B),o.Global.colourFilterPlugin&&(o.Panel.colourFilterSelect.value=0,o.Panel.colourPanel.classList.remove("active"),o.Panel.colourFilterSelect.classList.remove("active"),o.Panel.content.hidden=!1);o.Panel.status.firstChild;)o.Panel.status.removeChild(o.Panel.status.firstChild);document.querySelectorAll("[data-sa11y-has-shadow-root]").forEach(e=>{e.shadowRoot.querySelectorAll("style.sa11y-css-utilities").forEach(e=>e.remove()),e.removeAttribute("data-sa11y-has-shadow-root")}),e&&o.Panel.panel.classList.remove("active")},this.disabled=()=>{setTimeout(()=>{"Opened"===_.getItem("sa11y-panel")&&o.Panel.toggle.click(),o.Panel.toggle.disabled=!0},s.delayCheck+10)},this.enabled=()=>{o.Panel.toggle&&(o.Panel.toggle.disabled=!1)},this.find=(e,t,n)=>i(e,t,n),this.prepareDismissal=e=>I(e),this.sanitizeHTML=e=>h(e),this.truncateString=(e,t)=>A(e,t),this.initialize()}},Object.defineProperty(e,"__esModule",{value:!0})}); +!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).Sa11y={})}(this,function(e){"use strict";const t={checkRoot:"body",containerIgnore:".sa11y-ignore",contrastIgnore:".sr-only",outlineIgnore:"",headerIgnore:"",headerIgnoreSpan:"",headerIgnoreStrings:"",imageIgnore:"",linkIgnore:"",linkIgnoreSpan:"",linkIgnoreStrings:"",aboutContent:"",panelPosition:"right",showMovePanelToggle:!0,checkAllHideToggles:!1,developerChecksOnByDefault:!1,showHinPageOutline:!1,showTitleInPageOutline:!0,showImageOutline:!0,editImageURLofCMS:"",relativePathImageSRC:"",relativePathImageID:"",ignoreEditImageURL:[],ignoreEditImageClass:[],delayCheck:0,delayCustomCheck:500,detectSPArouting:!1,doNotRun:"",headless:!1,selectorPath:!1,shadowComponents:"",autoDetectShadowComponents:!1,showGoodImageButton:!0,showGoodLinkButton:!0,dismissAnnotations:!0,dismissAll:!0,ignoreHiddenOverflow:"",insertAnnotationBefore:"",readabilityPlugin:!0,readabilityRoot:"body",readabilityIgnore:"",contrastPlugin:!0,contrastAAA:!1,contrastAPCA:!1,customChecks:!1,linksAdvancedPlugin:!0,formLabelsPlugin:!0,embeddedContentPlugin:!0,developerPlugin:!0,externalDeveloperChecks:!1,colourFilterPlugin:!0,exportResultsPlugin:!1,susAltStopWords:"",linkStopWords:"",extraPlaceholderStopWords:"",imageWithinLightbox:"",checks:{HEADING_SKIPPED_LEVEL:!0,HEADING_EMPTY_WITH_IMAGE:!0,HEADING_EMPTY:!0,HEADING_FIRST:!0,HEADING_LONG:{maxLength:170},HEADING_MISSING_ONE:!0,MISSING_ALT_LINK:!0,MISSING_ALT_LINK_HAS_TEXT:!0,MISSING_ALT:!0,IMAGE_DECORATIVE_CAROUSEL:{sources:".carousel"},LINK_IMAGE_NO_ALT_TEXT:!0,LINK_IMAGE_TEXT:!0,IMAGE_FIGURE_DECORATIVE:!0,IMAGE_DECORATIVE:!0,LINK_ALT_FILE_EXT:!0,ALT_FILE_EXT:!0,LINK_PLACEHOLDER_ALT:!0,ALT_PLACEHOLDER:!0,LINK_SUS_ALT:!0,SUS_ALT:!0,LINK_IMAGE_LONG_ALT:{maxLength:250},IMAGE_ALT_TOO_LONG:{maxLength:250},LINK_IMAGE_ALT:{dismissAll:!0},LINK_IMAGE_ALT_AND_TEXT:!0,IMAGE_FIGURE_DUPLICATE_ALT:!0,IMAGE_PASS:{dismissAll:!0},DUPLICATE_TITLE:{dismissAll:!0},LINK_EMPTY_LABELLEDBY:!0,LINK_EMPTY_NO_LABEL:!0,LINK_STOPWORD:!0,LINK_STOPWORD_ARIA:!0,LINK_SYMBOLS:!0,LINK_CLICK_HERE:!0,LINK_DOI:{dismissAll:!0},LINK_URL:{maxLength:40},LINK_LABEL:{dismissAll:!0},LINK_EMPTY:!0,LINK_IDENTICAL_NAME:{dismissAll:!0},LINK_NEW_TAB:{dismissAll:!0},LINK_FILE_EXT:!0,LABELS_MISSING_IMAGE_INPUT:!0,LABELS_INPUT_RESET:!0,LABELS_MISSING_LABEL:!0,LABELS_ARIA_LABEL_INPUT:!0,LABELS_NO_FOR_ATTRIBUTE:!0,LABELS_PLACEHOLDER:!0,EMBED_AUDIO:{sources:""},EMBED_VIDEO:{sources:""},EMBED_DATA_VIZ:{sources:""},EMBED_UNFOCUSABLE:!0,EMBED_MISSING_TITLE:!0,EMBED_GENERAL:!0,QA_BAD_LINK:{sources:""},QA_STRONG_ITALICS:!0,QA_IN_PAGE_LINK:!0,QA_DOCUMENT:{sources:"",dismissAll:!0},QA_PDF:{dismissAll:!0},QA_BLOCKQUOTE:!0,TABLES_MISSING_HEADINGS:!0,TABLES_SEMANTIC_HEADING:!0,TABLES_EMPTY_HEADING:!0,QA_FAKE_HEADING:!0,QA_FAKE_LIST:!0,QA_UPPERCASE:!0,QA_UNDERLINE:!0,QA_SUBSCRIPT:!0,QA_NESTED_COMPONENTS:{sources:""},QA_JUSTIFY:!0,QA_SMALL_TEXT:!0,META_LANG:!0,META_SCALABLE:!0,META_MAX:!0,META_REFRESH:!0,DUPLICATE_ID:!0,META_TITLE:!0,UNCONTAINED_LI:!0,TABINDEX_ATTR:!0,HIDDEN_FOCUSABLE:!0,LABEL_IN_NAME:!0,BTN_EMPTY:!0,BTN_EMPTY_LABELLEDBY:!0,BTN_ROLE_IN_NAME:!0,CONTRAST_WARNING:{dismissAll:!0},CONTRAST_INPUT:!0,CONTRAST_ERROR:!0,CONTRAST_PLACEHOLDER:!0,CONTRAST_PLACEHOLDER_UNSUPPORTED:!0,CONTRAST_ERROR_GRAPHIC:!0,CONTRAST_WARNING_GRAPHIC:{dismissAll:!0},CONTRAST_UNSUPPORTED:{dismissAll:!0}}},n={langStrings:{},addI18n(e){this.langStrings=e},_(e){return this.translate(e)},sprintf(e,...t){let n=this._(e);return n=this.prepHTML(n),t&&t.length&&t.forEach(e=>{n=n.replace(/%\([a-zA-z]+\)/,e)}),n},translate(e){return this.langStrings[e]||e},prepHTML:e=>e.replaceAll(/
                            /g,'').replaceAll(/${n._("ALT")}
                            `).replaceAll(/{L}/g,`${n._("LINKED")}`)},o=function(){const e={};const t={};const i={};const s={};const a={};return{initializeRoot:function(t,i){if(e.areaToCheck=document.querySelector(t),e.areaToCheck||(e.areaToCheck=document.querySelector("body")),e.Readability=document.querySelector(i),!e.Readability)if(e.areaToCheck){e.Readability=e.areaToCheck;const{readabilityDetails:t,readabilityToggle:s}=o.Panel,a="true"===s?.getAttribute("aria-pressed");if(t&&a){const o=document.createElement("div");o.id="readability-alert",o.innerHTML=`

                            ${n.sprintf("MISSING_READABILITY_ROOT",e.areaToCheck.tagName.toLowerCase(),i)}

                            `,t.insertAdjacentElement("afterend",o)}}else e.Readability=document.querySelector("body")},Root:e,initializeGlobal:function(e){t.html=document.querySelector("html"),t.headless=e.headless,t.panelPosition=e.panelPosition,t.dismissAnnotations=e.dismissAnnotations,t.aboutContent=e.aboutContent,t.contrastAPCA=e.contrastAPCA,t.contrastSuggestions=e.contrastSuggestions,t.contrastAAA=e.contrastAAA,t.shadowDetection=e.shadowComponents.length>0||!0===e.autoDetectShadowComponents,t.developerPlugin=e.developerPlugin,t.colourFilterPlugin=e.colourFilterPlugin,t.checkAllHideToggles=e.checkAllHideToggles,t.exportResultsPlugin=e.exportResultsPlugin,t.readabilityPlugin=e.readabilityPlugin,t.showImageOutline=e.showImageOutline,t.editImageURLofCMS=e.editImageURLofCMS,t.relativePathImageSRC=e.relativePathImageSRC,t.relativePathImageID=e.relativePathImageID,t.ignoreEditImageURL=e.ignoreEditImageURL,t.ignoreEditImageClass=e.ignoreEditImageClass,t.showMovePanelToggle=e.showMovePanelToggle;let n=!1;"function"==typeof window.matchMedia&&(n=window.matchMedia("(prefers-reduced-motion: reduce)")),t.scrollBehaviour=!n||n.matches?"auto":"smooth",t.langDirection="rtl"===t.html.getAttribute("dir")?"rtl":"ltr";const o=e.checks.QA_DOCUMENT.sources,i='a[href$=".doc"], a[href$=".docx"], a[href*=".doc?"], a[href*=".docx?"], a[href$=".ppt"], a[href$=".pptx"], a[href*=".ppt?"], a[href*=".pptx?"], a[href^="https://drive.google.com/file"], a[href^="https://docs.google."], a[href^="https://sway."]';t.documentSources=o?`${i}, ${o}`:i;const s=e.checks.EMBED_VIDEO.sources,a='video, [src*="Video"], [src*="video"], [src*="watch"], [src*="youtube.com"], [src*="vimeo.com"], [src*="panopto.com"], [src*="wistia.com"], [src*="dailymotion.com"], [src*="brightcove.com"], [src*="vidyard.com"]';if(s){const e=s.split(/\s*[\s,]\s*/).map(e=>`[src*="${e}"]`);t.VideoSources=`${a}, ${e.join(", ")}`}else t.VideoSources=a;const r=e.checks.EMBED_AUDIO.sources,l='audio, [src*="soundcloud.com"], [src*="simplecast.com"], [src*="podbean.com"], [src*="buzzsprout.com"], [src*="blubrry.com"], [src*="transistor.fm"], [src*="fusebox.fm"], [src*="libsyn.com"], [src*="spotify.com"], [src*="podcasts.apple.com"], [src*="castbox.fm"], [src*="megaphone.fm"], [src*="spreaker.com"], [src*="anchor.fm"], [src*="rss.com"], [src*="redcircle.com"]';if(r){const e=r.split(/\s*[\s,]\s*/).map(e=>`[src*="${e}"]`);t.AudioSources=`${l}, ${e.join(", ")}`}else t.AudioSources=l;const c=e.checks.EMBED_DATA_VIZ.sources,d='[src*="datastudio"], [src*="tableau"], [src*="lookerstudio"], [src*="powerbi"], [src*="qlik"]';if(c){const e=c.split(/\s*[\s,]\s*/).map(e=>`[src*="${e}"]`);t.VisualizationSources=`${d}, ${e.join(", ")}`}else t.VisualizationSources=d;t.AllEmbeddedContent=`${t.VideoSources}, ${t.AudioSources}, ${t.VisualizationSources}`},Global:t,initializePanelSelectors:function(){const e=document.querySelector("sa11y-control-panel").shadowRoot;i.panel=e.getElementById("panel"),i.content=e.getElementById("panel-content"),i.controls=e.getElementById("panel-controls"),i.outline=e.getElementById("outline-panel"),i.outlineContent=e.getElementById("outline-content"),i.outlineList=e.getElementById("outline-list"),i.outlineHeader=e.getElementById("outline-header"),i.images=e.getElementById("images-panel"),i.imagesContent=e.getElementById("images-content"),i.imagesList=e.getElementById("images-list"),i.imagesHeader=e.getElementById("images-header"),i.notifBadge=e.getElementById("notification-badge"),i.notifCount=e.getElementById("notification-count"),i.notifText=e.getElementById("notification-text"),i.status=e.getElementById("status"),i.pageIssues=e.getElementById("page-issues"),i.pageIssuesList=e.getElementById("page-issues-list"),i.pageIssuesHeader=e.getElementById("page-issues-header"),i.pageIssuesContent=e.getElementById("page-issues-content"),i.settings=e.getElementById("settings-panel"),i.settingsHeader=e.getElementById("settings-header"),i.settingsContent=e.getElementById("settings-content"),i.developerToggle=e.getElementById("developer-toggle"),i.readabilityToggle=e.getElementById("readability-toggle"),i.themeToggle=e.getElementById("theme-toggle"),i.developerItem=e.getElementById("developer-item"),i.readabilityItem=e.getElementById("readability-item"),i.darkModeItem=e.getElementById("dark-mode-item"),i.colourPanel=e.getElementById("panel-colour-filters"),i.colourFilterItem=e.getElementById("colour-filter-item"),i.colourFilterSelect=e.getElementById("colour-filter-select"),i.colourFilterIcon=e.getElementById("filter-icon"),i.toggle=e.getElementById("toggle"),i.outlineToggle=e.getElementById("outline-toggle"),i.imagesToggle=e.getElementById("images-toggle"),i.settingsToggle=e.getElementById("settings-toggle"),i.movePanelToggle=e.getElementById("move-panel"),i.skipButton=e.getElementById("skip-button"),i.dismissButton=e.getElementById("dismiss-button"),i.dismissTooltip=e.getElementById("dismiss-tooltip"),i.skipToPageIssues=e.getElementById("skip-to-page-issues"),i.exportHTML=e.getElementById("export-html"),i.exportCSV=e.getElementById("export-csv"),i.alert=e.getElementById("panel-alert"),i.alertText=e.getElementById("panel-alert-text"),i.alertPreview=e.getElementById("panel-alert-preview"),i.alertClose=e.getElementById("close-alert"),i.readability=e.getElementById("readability-panel"),i.readabilityInfo=e.getElementById("readability-info"),i.readabilityDetails=e.getElementById("readability-details")},Panel:i,initializeReadability:function(e){if(e.readabilityPlugin){s.Lang=n._("LANG_CODE").substring(0,2);const e=["en","fr","es","de","nl","it","sv","fi","da","no","nb","nn","pt"],t=o.Global.html.getAttribute("lang");if(t){const n=t.toLowerCase().substring(0,2);e.includes(n)&&e.includes(s.Lang)?s.Plugin=!0:s.Plugin=!1}else s.Plugin=!1}},Readability:s,initializeExclusions:function(e){a.Sa11yElements=["sa11y-heading-label","sa11y-heading-anchor","sa11y-annotation","sa11y-tooltips","sa11y-panel-tooltips","sa11y-control-panel","#sa11y-colour-filters","#sa11y-colour-filters *"];const t=["style","script","noscript"];if(a.Container=["#wpadminbar","#wpadminbar *",...t],e.containerIgnore){const t=e.containerIgnore.split(",").map(e=>e.trim());a.Container=a.Container.concat(t.flatMap(e=>[`${e} *`,e]))}a.Contrast=["link","hr","option","audio","audio *","video","video *",'input[type="color"]','input[type="range"]',"progress","progress *","meter","meter *","iframe","svg title","svg desc",...t],e.contrastIgnore&&(a.Contrast=e.contrastIgnore.split(",").map(e=>e.trim()).flatMap(e=>[e,`${e} *`]).concat(a.Contrast)),a.Readability=["nav li",'[role="navigation"] li',...t],e.readabilityIgnore&&(a.Readability=e.readabilityIgnore.split(",").map(e=>e.trim()).flatMap(e=>[e,`${e} *`]).concat(a.Readability)),a.Headings=e.headerIgnore?e.headerIgnore.split(",").map(e=>e.trim()):[],a.HeaderSpan=e.headerIgnoreSpan?e.headerIgnoreSpan.split(",").map(e=>e.trim()):[],a.Outline=e.outlineIgnore?e.outlineIgnore.split(",").map(e=>e.trim()):[],a.Images=['[role="presentation"]'],e.imageIgnore&&(a.Images=e.imageIgnore.split(",").map(e=>e.trim()).concat(a.Images)),a.Links=[".anchorjs-link"],e.linkIgnore&&(a.Links=e.linkIgnore.split(",").map(e=>e.trim()).concat(a.Links)),a.LinkSpan=e.linkIgnoreSpan?e.linkIgnoreSpan.split(",").map(e=>e.trim()):[]},Exclusions:a}}();function i(e,t,n){let i;"document"===t?i=document:"readability"===t?(i=o.Readability.Root,i||(i=o.Root.areaToCheck)):"root"===t?(i=o.Root.areaToCheck,i||(i=document.body)):"panel"===t?(i=o.Panel.panel,i||(i=document.body)):(i=document.querySelector(t),i||(i=document.body));const s=document.querySelectorAll("[data-sa11y-has-shadow-root]"),a=s?", [data-sa11y-has-shadow-root]":"",r=o.Exclusions.Container.join(", "),l=n?.join(", ")||"",c=l?`, ${l}`:"",d=Array.from(i.querySelectorAll(`:is(${e}${a}):not(${r}${c})`));if(s.length){const t=[];if(d.forEach((n,o)=>{n&&n.matches&&n.matches("[data-sa11y-has-shadow-root]")&&n.shadowRoot&&(t[o]=n.shadowRoot.querySelectorAll(`:is(${e}):not(${r}${c})`))}),t.length>0)for(let e=t.length-1;e>=0;e--)t[e]&&d.splice(e,1,...t[e])}return d.filter(e=>"SLOT"!==e.parentNode.tagName)}const s=(e,t)=>{const n=e=>{if("none"===e)return"";const t=e.includes("url(")||e.includes("image-set(")?e.match(/\/\s*"([^"]+)"/):e.match(/"([^"]+)"/);return t?t[1]:""};return`${n(window.getComputedStyle(e,":before").getPropertyValue("content"))}${t}${n(window.getComputedStyle(e,":after").getPropertyValue("content"))}`},a=e=>{for(let t=0;t<1e3;t++){if(e.nextSibling())return e.previousNode();if(!e.parentNode())return!1}return!1},r=(e,t=!1)=>{const n=e.getAttribute("aria-labelledby");if(!t&&n)return n.split(/\s+/).filter(e=>e.trim()).map(e=>{const t=document.querySelector(`#${CSS.escape(e)}`);return t?l(t,"",1):""}).join(" ");const o=e.getAttribute("aria-label");return o&&o.trim().length>0?o:"noAria"},l=(e,t=[],n=0)=>{const o=r(e,n);if("noAria"!==o)return o;if("TEXTAREA"===e.tagName&&e.hasAttribute("title"))return e.getAttribute("title");let i="";if(!e.children.length)return i=s(e,e.textContent),!i.trim()&&e.hasAttribute("title")?e.getAttribute("title"):i;const c=(d=e,p=!0,u=!0,document.createTreeWalker(d,NodeFilter.SHOW_ALL,{acceptNode:e=>p&&e.nodeType===Node.ELEMENT_NODE||u&&e.nodeType===Node.TEXT_NODE?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT}));var d,p,u;const h=[...t,"noscript","style","script","video","audio"].join(", "),g=h?e.querySelectorAll(h):[];let m=!1,f=!1,b=0,y=!0;for(;c.nextNode()&&y;){b+=1;const e=c.currentNode;if(Array.from(g).some(t=>t.contains(e)))continue;if(e.shadowRoot){const o=e.shadowRoot.querySelectorAll("*");for(let e=0;e{e.nodeType===Node.ELEMENT_NODE?n+=l(e):e.nodeType===Node.TEXT_NODE&&(n+=e.nodeValue)}),i+=n,i+=s(e,"");break}default:i+=s(e,"")}else i+=` ${o}`,a(c)||(y=!1)}return m&&!f&&(i+=` ${m}`),i=i.replace(/[\uE000-\uF8FF]/gu,""),!i.trim()&&e.hasAttribute("title")?e.getAttribute("title"):i};function c(e){if(e.getAttribute("hidden")||0===e.offsetWidth&&0===e.offsetHeight||1===e.clientHeight&&1===e.clientWidth)return!0;return"none"===getComputedStyle(e).getPropertyValue("display")}function d(e){const t=window.getComputedStyle(e),n=t.getPropertyValue("clip-path"),{position:o}=t,i=parseFloat(t.width),s=parseFloat(t.height),{overflow:a}=t;return"inset(50%)"===n||"absolute"===o&&1===i&&1===s&&"hidden"===a}function p(e){if(e.getAttribute("hidden"))return!0;return"none"===getComputedStyle(e).getPropertyValue("display")}function u(e){const t=document.createElement("div");return t.textContent=e,t.innerHTML.replaceAll('"',""").replaceAll("'","'").replaceAll("`","`")}function h(e){return e.replace(/[^\w. ]/gi,e=>`&#${e.charCodeAt(0)};`)}function g(e){if(!e)return"#";const t=String(e).trim();if(/^javascript:/i.test(t))return"#";if(/^data:/i.test(t))return"#";if(!["http:","https:","mailto:","tel:","ftp:"].some(e=>t.toLowerCase().startsWith(e))&&!t.startsWith("/")&&!t.startsWith("#"))return`./${t}`;const n=t.replace(/<[^>]*>/g,"");return encodeURI(n)}function m(e,t=!1){const n=document.createElement("div");n.innerHTML=e,["script","style","noscript","iframe","form"].forEach(e=>{const t=n.getElementsByTagName(e);for(;t.length>0;)t[0].parentNode.removeChild(t[0])});return Array.from(n.getElementsByTagName("*")).forEach(e=>{Array.from(e.attributes).forEach(t=>{t.name.startsWith("on")&&e.removeAttribute(t.name)}),t||e.removeAttribute("style")}),n.innerHTML}function f(e,t=[]){const n=["noscript","script","style","audio","video","form","iframe",...t].join(", "),o=e.cloneNode(!0);return Array.from(o.querySelectorAll(n)).forEach(e=>{e.parentElement.removeChild(e)}),o}function b(e){return f(e).textContent.replace(/[\r\n]+/g,"").replace(/\s+/g," ").trim()}function y(e){return e.replace(/[\r\n]+/g," ").replace(/\s+/g," ").trim()}function A(e,t){const n=e.substring(0,t).trimEnd();return e.length>t?`${n}...`:e}function E(e,t,n){let o=e;for(;null!==o;){if(window.getComputedStyle(o).getPropertyValue(t)===n)return o;o=o.parentElement}return null}function v(e){const t=e.getBoundingClientRect(),n=window.pageYOffset||document.documentElement.scrollTop;return{top:t.top+n}}const _={getItem(e){try{return null===localStorage.getItem(e)?sessionStorage.getItem(e):localStorage.getItem(e)}catch(e){return!1}},setItem(e,t){try{localStorage.setItem(e,t)}catch(n){sessionStorage.setItem(e,t)}return!0},removeItem(e){try{localStorage.removeItem(e)}catch(t){sessionStorage.removeItem(e)}return!0}};function L(e){const t="data-sa11y-pulse-border";e.setAttribute(t,""),setTimeout(()=>{e.removeAttribute(t)},2500)}function I(e){return String(e).replace(/([^0-9a-zA-Z])/g,"").substring(0,256)}function T(){const e=document.querySelector("sa11y-control-panel").shadowRoot,t=e.getElementById("panel-alert"),n=e.getElementById("panel-alert-text"),o=e.getElementById("panel-alert-preview");for(t.classList.remove("active"),o.classList.remove("panel-alert-preview");n.firstChild;)n.removeChild(n.firstChild);for(;o.firstChild;)o.removeChild(o.firstChild)}function x(e,t,n){T();const o=document.querySelector("sa11y-control-panel").shadowRoot,i=o.getElementById("panel-alert"),s=o.getElementById("panel-alert-text"),a=o.getElementById("panel-alert-preview"),r=o.getElementById("close-alert"),l=o.getElementById("skip-button");i.classList.add("active"),s.innerHTML=e;const c=n?`
                            ${n}
                            `:"";function d(){T();(l.hasAttribute("disabled")?o.getElementById("toggle"):l).focus()}t&&(a.classList.add("panel-alert-preview"),a.innerHTML=`${c}
                            ${t}
                            `),setTimeout(()=>{r.focus()},300),r.addEventListener("click",d),i.onkeydown=e=>{"Escape"===(e||window.event).key&&i.classList.contains("active")&&d()}}function k(e,t){e.forEach(e=>{i(`[${e}]`,`${t}`).forEach(t=>{t.removeAttribute(e)})})}function N(e,t){i(`${e}`,`${t}`).forEach(e=>{e.parentNode.removeChild(e)})}function S(e,t,n){setTimeout(()=>{e.scrollHeight>t.clientHeight?(t.classList.add("scrollable"),e.setAttribute("tabindex","0"),n&&(e.setAttribute("aria-label",n),e.setAttribute("role","region"))):t.classList.remove("scrollable")},50)}function w(e){const t=e=>e?.split(",").pop()?.trim()?.split(/\s+/)[0],n=e=>e?new URL(e,window.location.href).href:null,o=t(e.getAttribute("data-src")||e.getAttribute("srcset"));if(o)return n(o);const i=e.closest("picture")?.querySelector("source[srcset]")?.getAttribute("srcset"),s=t(i);return n(s||e.getAttribute("src"))}function C(e,t=!1){const n=e.element,o=`
                            ${u(A(m(e.htmlPath),600))}
                            `,i=e=>{const t=b(e),n=A(t,100);return t.length?h(n):o},s={SPAN:i,P:i,A:e=>{const t=b(e),n=A(t,100);return t.length>1&&e.href&&!e.hasAttribute("role")?`${h(n)}`:o},IMG:e=>{const n=e.closest("a[href]"),i=e.alt?`alt="${h(e.alt)}"`:"alt",s=w(e);function a(e){return n?``:``}if(t)return new Promise(e=>{if(s){if(new URL(s,window.location.origin).origin===window.location.origin)fetch(s).then(e=>e.blob()).then(e=>(e=>new Promise((t,n)=>{const o=new FileReader;o.onloadend=()=>{let{result:n}=o;const i=e.type&&e.type.startsWith("image/")?e.type:"image/png";n.startsWith("data:application/octet-stream")&&(n=n.replace("data:application/octet-stream",`data:${i}`)),t(n)},o.onerror=n,o.readAsDataURL(e)}))(e)).then(t=>{const n=t.startsWith("data:image/")?t:g(t);e(a(n))}).catch(()=>{e(a(s))});else{const t=s.startsWith("data:image/")?s:g(s);e(a(t))}}else e(o)});const r=s.startsWith("data:image/")?s:g(s);return s?a(r):o},IFRAME:e=>{const t=e.src,n=e.title?e.title:"",i=e.getAttribute("aria-label");if(t){const e=i||""||n;return``}return o},AUDIO:()=>m(e.htmlPath),VIDEO:()=>m(e.htmlPath)}[n.tagName];return s?s(n):o}function O(e){let t="";const n=l(e).toLowerCase();e.childNodes.forEach(e=>{e.nodeType===Node.TEXT_NODE?t+=e.textContent:e.nodeType===Node.ELEMENT_NODE&&(c(e)||(t+=e.textContent))});let o=t.replace(/[\p{Emoji_Presentation}\p{Extended_Pictographic}]/gu,"");return o=y(o).toLowerCase(),"x"!==o&&(0!==o.length&&!n.includes(o))}const P=function(){const e={};const t={};return{initializeElements:function(t){e.Everything=i("*","root",o.Exclusions.Sa11yElements),e.Contrast=e.Everything.filter(e=>!o.Exclusions.Contrast.some(t=>e.matches(t))&&!o.Exclusions.Contrast.includes(e)),e.Images=e.Everything.filter(e=>"IMG"===e.tagName&&!o.Exclusions.Images.some(t=>e.matches(t))),e.Links=e.Everything.filter(e=>("A"===e.tagName||"a"===e.tagName)&&e.hasAttribute("href")&&!e.matches('[role="button"]')&&!o.Exclusions.Links.some(t=>e.matches(t))),e.Headings=i('h1, h2, h3, h4, h5, h6, [role="heading"][aria-level]',"document",o.Exclusions.Headings),e.HeadingOne=i('h1, [role="heading"][aria-level="1"]',"document",o.Exclusions.Headings),e.ExcludedHeadings=e.Headings.filter(e=>o.Exclusions.Headings.some(t=>e.matches(t))),e.ExcludedOutlineHeadings=e.Headings.filter(e=>o.Exclusions.Outline.some(t=>e.matches(t))),e.OutlineIgnore=P.Found.ExcludedOutlineHeadings.concat(P.Found.ExcludedHeadings),e.Paragraphs=e.Everything.filter(e=>"P"===e.tagName&&!e.closest("table")),e.Lists=e.Everything.filter(e=>"LI"===e.tagName),e.Blockquotes=e.Everything.filter(e=>"BLOCKQUOTE"===e.tagName),e.Tables=e.Everything.filter(e=>"TABLE"===e.tagName&&!e.matches('[role="presentation"]')&&!e.matches('[role="none"]')),e.StrongItalics=e.Everything.filter(e=>["STRONG","EM"].includes(e.tagName)),e.Subscripts=e.Everything.filter(e=>["SUP","SUB"].includes(e.tagName));const n=t.checks.QA_BAD_LINK.sources;e.CustomErrorLinks=n.length?e.Links.filter(e=>n.split(",").some(t=>e.matches(t.trim()))):[];const s=e=>o.Root.Readability.contains(e)&&!o.Exclusions.Readability.some(t=>e.matches(t));e.Readability=[...e.Paragraphs.filter(s),...e.Lists.filter(s)];const a=t.checks.QA_NESTED_COMPONENTS.sources||'[role="tablist"], details';e.NestedComponents=a?e.Everything.filter(e=>e.matches(a)):[],e.TabIndex=e.Everything.filter(e=>e.hasAttribute("tabindex")&&"0"!==e.getAttribute("tabindex")&&!e.getAttribute("tabindex").startsWith("-")),e.Svg=e.Everything.filter(e=>"svg"===e.tagName),e.Buttons=e.Everything.filter(e=>"BUTTON"===e.tagName||e.matches('[role="button"]')),e.Inputs=e.Everything.filter(e=>["INPUT","SELECT","TEXTAREA","METER","PROGRESS"].includes(e.tagName)),e.Labels=e.Everything.filter(e=>"LABEL"===e.tagName),e.iframes=e.Everything.filter(e=>["IFRAME","AUDIO","VIDEO"].includes(e.tagName)),e.Videos=e.iframes.filter(e=>e.matches(o.Global.VideoSources)),e.Audio=e.iframes.filter(e=>e.matches(o.Global.AudioSources)),e.Visualizations=e.iframes.filter(e=>e.matches(o.Global.VisualizationSources)),e.EmbeddedContent=e.iframes.filter(e=>!e.matches(o.Global.AllEmbeddedContent));const r=document.querySelector("html");e.Language=r.getAttribute("lang")},Found:e,initializeAnnotations:function(){t.Array=i("sa11y-annotation","document"),t.Array.forEach((e,t)=>{e.setAttribute("data-sa11y-position",t)})},Annotations:t}}();const R=e=>{if(0===e.shadowRoot.querySelectorAll(".sa11y-css-utilities").length){const t=document.createElement("style");t.setAttribute("class","sa11y-css-utilities"),t.textContent="[data-sa11y-overflow]{overflow:auto!important}[data-sa11y-clone-image-text]{display:none!important}[data-sa11y-readability-period]{clip:rect(1px,1px,1px,1px)!important;border:0!important;clip-path:inset(50%)!important;display:block!important;height:1px!important;overflow:hidden!important;padding:0!important;position:absolute!important;white-space:nowrap!important;width:1px!important}[data-sa11y-error-inline],[data-sa11y-error]{outline:5px solid var(--sa11y-error)!important;outline-offset:2px}[data-sa11y-warning-inline]:not([data-sa11y-error-inline]),[data-sa11y-warning]:not([data-sa11y-error]){outline:5px solid var(--sa11y-warning)!important;outline-offset:2px}[data-sa11y-pulse-border]{animation:pulse 2s 3;box-shadow:0;outline:5px solid var(--sa11y-focus-color)!important}[data-sa11y-pulse-border]:focus,[data-sa11y-pulse-border]:hover{animation:none}@keyframes pulse{0%{box-shadow:0 0 0 5px var(--sa11y-focus-color)}70%{box-shadow:0 0 0 12px var(--sa11y-pulse-color)}to{box-shadow:0 0 0 5px var(--sa11y-pulse-color)}}@media (prefers-reduced-motion:reduce){[data-sa11y-pulse-border]{animation:none!important}}@media (forced-colors:active){[data-sa11y-error-inline],[data-sa11y-error],[data-sa11y-good],[data-sa11y-pulse-border],[data-sa11y-warning-inline],[data-sa11y-warning]{forced-color-adjust:none}}",e.shadowRoot.appendChild(t)}};function D(e,t,n){if(!0===e){let e=window.location.href;const o=function(e,t){let n=null;return(...o)=>{window.clearTimeout(n),n=window.setTimeout(()=>{e(...o)},t)}}(async()=>{e!==window.location.href&&("Closed"!==_.getItem("sa11y-panel")&&_.getItem("sa11y-panel")?(n(!1),await t()):t(),e=window.location.href)},250);window.addEventListener("click",o),window.addEventListener("keydown",o)}}function M(e,t){const i=JSON.parse(localStorage.getItem("sa11y-dismissed")||"[]"),s=window.location.pathname,a=[...e.filter(e=>i.some(t=>((e,t)=>t.key.includes(e.dismiss)&&t.href===s&&("warning"===e.type||"good"===e.type))(e,t))),...e.filter(e=>i.some(t=>((e,t)=>"string"==typeof t.dismissAll&&e.dismissAll===t.dismissAll&&t.href===s)(e,t)))],r=a.length,l=e.filter(e=>!a.some(t=>t.dismiss===e.dismiss&&("warning"===e.type||"good"===e.type)));return r?(o.Panel.dismissButton.classList.add("active"),o.Panel.dismissTooltip.innerText=n.sprintf("PANEL_DISMISS_BUTTON",r),t.object.setContent(n.sprintf("PANEL_DISMISS_BUTTON",r))):o.Panel.dismissButton.classList.remove("active"),{dismissedIssues:i,updatedResults:l,dismissCount:r,dismissedResults:a}}let B,$;function G(e,t,s,a){if(o.Global.dismissAnnotations){$=t=>{(async(e,t,o,s)=>{let a=JSON.parse(_.getItem("sa11y-dismissed"));const r=e.target;if(document.querySelector("sa11y-panel-tooltips").hidden=!1,"BUTTON"===r.tagName&&r.hasAttribute("data-sa11y-dismiss")){const e=parseInt(r.getAttribute("data-sa11y-dismiss"),10),l=t.find(t=>t.id===e);if(null===a&&(setTimeout(()=>x(n._("DISMISS_REMINDER")),0),a=[]),l.dismiss){const e=r.hasAttribute("data-sa11y-dismiss-all")?l.dismissAll:"",t={key:l.dismiss,href:window.location.pathname,...e?{dismissAll:e}:{}},n=i(`[data-sa11y-annotation='${l.id}']`),c=n[0]?n[0].getAttribute("data-sa11y-position"):0;_.setItem("sa11y-latest-dismissed",c),_.setItem("sa11y-dismiss-item",JSON.stringify(t)),a.push(t),_.setItem("sa11y-dismissed",JSON.stringify(a)),_.removeItem("sa11y-dismiss-item");const d=r?.closest("[data-tippy-root]");d&&setTimeout(()=>{d.remove()},0),s(!1),await o()}}})(t,e,s,a)};document.querySelector("sa11y-tooltips").shadowRoot.addEventListener("click",$),o.Panel.panel.addEventListener("click",$)}B=()=>{(async(e,t,n)=>{document.querySelector("sa11y-panel-tooltips").hidden=!0;const i=e.filter(e=>e.href!==window.location.pathname);_.setItem("sa11y-dismissed",JSON.stringify(i)),o.Panel.dismissButton.classList.remove("active"),n(!1),await t()})(t,s,a)},o.Panel.dismissButton?.addEventListener("click",B)}function U(){const e=new Date,t=String(e.getDate()).padStart(2,"0"),n=String(e.getMonth()+1).padStart(2,"0"),o=e.getFullYear(),i=(new Date).toLocaleString(),s=`${n}-${t}-${o}`,a=document.querySelector("head title"),r=!a||0===a.textContent.trim().length;return{date:i,numericDate:s,titleCheck:r,metaTitle:r?"":a.textContent,pageURL:window.location.href}}async function H(e,t){const o=await async function(e,t){const o=e.filter(e=>"error"===e.type),i=e.filter(e=>"warning"===e.type),s={error:o.length,warning:i.length,dismiss:t.length};async function a(e,t){const o={error:n._("ERRORS"),warning:n._("WARNINGS"),dismissed:n._("DISMISSED")}[t];if(!(e.length>0))return"";let i=`

                            ${o}

                            `,a=`
                              `,r="
                            ";"dismissed"===t&&(a=`
                            ${n.sprintf("PANEL_DISMISS_BUTTON",s.dismiss)}
                              `,r="
                            "),i+=a;const l=e.map(async e=>{let t="";if(e.element){const o=["IMG","IFRAME","AUDIO","VIDEO"],i=await C(e,!0);t=o.includes(e.element.tagName)?`
                          • ${n._("PREVIEW")}: ${i}
                          • ${n._("ELEMENT")}:
                            ${u(e.htmlPath)}
                          • `:`
                          • ${n._("ELEMENT")}:
                            ${u(e.htmlPath)}
                          • `}const o=e.cssPath?`
                          • ${n._("PATH")}:
                            ${e.cssPath}
                          • `:"";return`
                          • ${e.content}
                              ${t}${o}
                          • `});return i+=(await Promise.all(l)).join(""),i+=r,i}const r=await a(o,"error"),l=await a(i,"warning"),c=await a(t,"dismissed"),d=U(),p=d.titleCheck?"":`
                            ${n._("PAGE_TITLE")}
                            ${d.metaTitle}
                            `,h=0!==s.error?`
                            ${n._("ERRORS")}
                            ${s.error}
                            `:"",g=0!==s.warning?`
                            ${n._("WARNINGS")}
                            ${s.warning}
                            `:"",m=0!==s.dismiss?`
                            ${n._("DISMISSED")}
                            ${s.dismiss}
                            `:"";return`\n \n \n \n \n \n ${n._("RESULTS")}: ${d.metaTitle}\n \n \n \n
                            \n

                            ${n._("RESULTS")}

                            \n
                            \n
                            \n ${p}\n
                            URL
                            \n
                            ${d.pageURL}
                            \n
                            ${n._("DATE")}
                            \n
                            ${d.date}
                            \n
                            \n
                            \n ${h}\n ${g}\n ${m}\n
                            \n
                            \n
                            \n
                            \n ${r}\n ${l}\n ${c}\n
                            \n
                            \n

                            ${n.sprintf("GENERATED",'Sa11y')}

                            \n
                            \n \n \n `}(e,t),i=U(),s=new Blob([o],{type:"text/html"}),a=document.createElement("a"),r=i.titleCheck?"":`_${i.metaTitle.trim().replace(/ /g,"")}`;a.href=window.URL.createObjectURL(s),a.download=`Sa11y_${i.numericDate+r}.html`,document.body.appendChild(a),a.click(),setTimeout(()=>{document.body.removeChild(a),window.URL.revokeObjectURL(a.href)},100)}function F(e){const t=U(),n=e.filter(e=>"warning"===e.type||"error"===e.type).map(e=>{const{type:n,content:o,htmlPath:i,cssPath:s}=e,a=o.replaceAll(/]*>.*?<\/span>/gi,"").replaceAll(''," | ").replaceAll(/"/g,'""');const r=function(e){return e.replace(/&(#?[a-zA-Z0-9]+);/g,(e,t)=>{switch(t){case"amp":return"&";case"lt":return"<";case"gt":return">";case"quot":case"#39":return"'";default:return"#"===t.charAt(0)?String.fromCharCode("x"===t.charAt(1)?parseInt(t.substr(2),16):parseInt(t.substr(1),10)):e}})}(String(a).replace(/<[^>]*>/g,"")),l={Title:`"${t.metaTitle}"`,URL:`"${t.pageURL}"`,Type:`"${String(n)}"`,Issue:`"${r}"`,Element:`"${i}"`};return s&&(l.Path=`"${s}"`),l}),o=Object.keys(n[0]),i=`${o.join(",")}\n${n.map(e=>o.map(t=>e[t]).join(",")).join("\n")}`,s=new Uint8Array([239,187,191]),a=new Blob([s,i],{type:"text/csv;charset=utf-8;"}),r=window.URL.createObjectURL(a),l=document.createElement("a");l.href=r,l.href=window.URL.createObjectURL(a);const c=t.titleCheck?"":`_${t.metaTitle.trim().replace(/ /g,"")}`;l.setAttribute("download",`Sa11y_${t.numericDate+c}.csv`),document.body.appendChild(l),l.click(),setTimeout(()=>{document.body.removeChild(l),window.URL.revokeObjectURL(l.href)},100)}let K,W;const Y="4.2.1";var z='.visually-hidden{clip:rect(1px,1px,1px,1px);border:0;clip-path:inset(50%);display:block;height:1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px}[hidden]{display:none!important}.header-text,.header-text-inline,h2{color:var(--sa11y-panel-primary);display:block;font-size:var(--sa11y-large-text);font-weight:600;margin-bottom:3px}.header-text-inline{display:inline-block!important}code{font-family:monospace!important;font-size:calc(var(--sa11y-normal-text) - 1px);font-weight:600}pre:has(code){display:block;overflow:auto;white-space:pre-wrap}.kbd,code,kbd,pre{background-color:var(--sa11y-panel-badge);border-radius:3.2px;color:var(--sa11y-panel-primary);padding:1.6px 4.8px}.bold{font-weight:600}.error .colour,.red-text{color:var(--sa11y-red-text);font-family:var(--sa11y-font-face)}.warning .colour,.yellow-text{color:var(--sa11y-yellow-text);font-family:var(--sa11y-font-face)}.badge,.normal-badge{background-color:var(--sa11y-panel-badge);border-radius:10px;color:var(--sa11y-panel-primary);display:inline;font-size:14px;font-weight:700!important;line-height:1;min-width:10px;outline:1px solid transparent;padding:1px 5px 1.75px;text-align:center;vertical-align:baseline;white-space:nowrap}.error .badge{background:var(--sa11y-error);color:var(--sa11y-error-text)}.error-badge{background:var(--sa11y-error)!important;color:var(--sa11y-error-text)!important}.warning .badge{background:var(--sa11y-yellow-text);color:var(--sa11y-panel-bg)}.warning-badge{background:var(--sa11y-yellow-text)!important;color:var(--sa11y-panel-bg)!important}.good-contrast{background:var(--sa11y-good)!important;color:var(--sa11y-good-text)!important}#contrast-preview{background-color:#e8e8e8;background-image:linear-gradient(45deg,#ccc 25%,transparent 0,transparent 75%,#ccc 0,#ccc),linear-gradient(45deg,#ccc 25%,transparent 0,transparent 75%,#ccc 0,#ccc);background-position:0 0,5px 5px;background-size:10px 10px;border:2px dashed var(--sa11y-panel-bg-splitter);border-radius:3.2px;line-height:1;margin-top:10px;max-height:100px;overflow:clip;overflow-wrap:break-word;padding:5px}#color-pickers{display:flex;justify-content:space-between;margin-bottom:10px;margin-top:10px}#color-pickers label{align-items:center;display:flex}#color-pickers input{margin-inline-start:7px}input[type=color i]{background:var(--sa11y-panel-bg-secondary);block-size:30px;border-color:var(--sa11y-button-outline);border-radius:50%;border-style:solid;border-width:1px;inline-size:30px;padding:2px}input[type=color i]::-webkit-color-swatch-wrapper{padding:1px}input[type=color i]::-webkit-color-swatch{border-color:var(--sa11y-button-outline);border-radius:50%}input[type=color i]::-moz-color-swatch{border-color:var(--sa11y-button-outline);border-radius:50%}input[type=color i].unknown{box-shadow:0 0 0 2px var(--sa11y-yellow-text)}input[type=color i].unknown:after{align-items:center;color:#fff;content:"?";display:flex;font-size:18px;height:24px;justify-content:center;margin:-24px 0;pointer-events:none;position:absolute;width:24px;z-index:2}.close-btn{background:var(--sa11y-panel-bg-secondary);border:2px solid var(--sa11y-button-outline);border-radius:50%;color:var(--sa11y-panel-primary);cursor:pointer;float:var(--sa11y-float-rtl);font-size:var(--sa11y-normal-text);font-weight:400;height:32px;margin:0;position:relative;transition:all .2s ease-in-out;width:32px}.close-btn:focus,.close-btn:hover{background-color:var(--sa11y-shortcut-hover)}.close-btn:after{background:var(--sa11y-setting-switch-bg-off);content:"";inset:-7px;-webkit-mask:var(--sa11y-close-btn-svg) center no-repeat;mask:var(--sa11y-close-btn-svg) center no-repeat;position:absolute}@media screen and (forced-colors:active){.close-btn:after{filter:invert(1)}}#container [tabindex="-1"]:focus,#container [tabindex="0"]:focus,#container a:focus,#container button:focus,#container input:focus,#container select:focus{box-shadow:0 0 0 5px var(--sa11y-focus-color);outline:0}#container #panel-controls button:focus,#container .switch:focus{box-shadow:inset 0 0 0 4px var(--sa11y-focus-color);outline:0}#container #panel-controls button:focus:not(:focus-visible),#container [tabindex="-1"]:focus:not(:focus-visible),#container [tabindex="0"]:focus:not(:focus-visible),#container button:focus:not(:focus-visible),#container input:focus:not(:focus-visible),#container select:focus:not(:focus-visible){box-shadow:none;outline:0}#container [tabindex="-1"]:focus-visible,#container [tabindex="0"]:focus-visible,#container a:focus-visible,#container button:not(#panel-controls button):not(.switch):focus-visible,#container input:focus-visible,#container select:focus-visible{box-shadow:0 0 0 5px var(--sa11y-focus-color);outline:0}#container #panel-controls button:focus-visible,#container .switch:focus-visible{box-shadow:inset 0 0 0 4px var(--sa11y-focus-color);outline:0}@media screen and (forced-colors:active){#panel-controls button:focus{border:3px solid transparent}#container [tabindex="-1"]:focus,#container [tabindex="0"]:focus,#container a:focus,#container button:focus,#container select:focus,.close-btn:focus{outline:3px solid transparent!important}}';class Q extends HTMLElement{constructor(e){super(),this.error=e}connectedCallback(){const e=this.attachShadow({mode:"open"}),t=document.createElement("style");t.innerHTML=":host{background:var(--sa11y-panel-bg);border-top:5px solid var(--sa11y-panel-bg-splitter);bottom:0;display:block;height:-moz-fit-content;height:fit-content;left:0;position:fixed;right:0;width:100%;z-index:999999}*{-webkit-font-smoothing:auto!important;color:var(--sa11y-panel-primary);font-family:var(--sa11y-font-face)!important;font-size:var(--sa11y-normal-text);line-height:22px!important}#dialog{margin:20px auto;max-width:900px;padding:20px}h2{font-size:var(--sa11y-large-text);margin-top:0}a{color:var(--sa11y-hyperlink);cursor:pointer;text-decoration:underline}a:focus,a:hover{text-decoration:none}p{margin-top:0}.error{background:var(--sa11y-error);border:2px dashed #f08080;color:var(--sa11y-error-text);margin-bottom:0;padding:5px}"+z,e.appendChild(t);const i=document.createElement("div");i.setAttribute("id","dialog"),i.setAttribute("tabindex","-1");const s=window.location,a=`## Error Description\n\`\`\`javascript\n${this.error.stack}\n\`\`\`\n\n## Details\n- **URL:** ${s}\n- **Version:** ${Y}\n\n## Comments\n`,r=`https://github.com/ryersondmp/sa11y/issues/new?title=Bug%20report&body=${encodeURIComponent(a)}`;i.innerHTML=`\n \n

                            ${n._("ERROR")}

                            \n

                            ${n.sprintf("CONSOLE_ERROR","https://forms.gle/sjzK9XykETaoqZv99",r)}

                            \n

                            ${u(this.error.stack)}

                            Version: ${Y}
                            URL: ${s}

                            \n `,e.appendChild(i),setTimeout(()=>{o.Panel.toggle.style.display="none";const e=document.querySelector("sa11y-console-error");e.shadowRoot.getElementById("dialog").focus();e.shadowRoot.querySelector(".close-btn").addEventListener("click",()=>{e.remove()})},0)}}class V extends HTMLElement{connectedCallback(){this.attachShadow({mode:"open"});const e=document.createElement("style");e.textContent='a,button,code,div,h1,h2,h3,kbd,label,li,ol,p,pre,span,strong,svg,ul{all:unset;box-sizing:border-box!important}:after,:before{all:unset}div{display:block}*{-webkit-font-smoothing:auto!important;font-family:var(--sa11y-font-face)!important}label,li,ol,p,ul{font-size:var(--sa11y-normal-text);font-weight:400;letter-spacing:normal;line-height:22px!important;text-align:start;word-break:break-word}.sa11y-overflow{overflow:auto}iframe,img,video{border:0;display:block;height:auto;max-width:100%}audio{max-width:100%}#toggle{align-items:center;background:linear-gradient(0deg,#e040fb,#00bcd4);background-color:var(--sa11y-setting-switch-bg-off);background-size:150% 150%;border-radius:50%;bottom:var(--sa11y-toggle-y-offset);color:#fff;cursor:pointer;display:flex;height:55px;inset-inline-end:var(--sa11y-toggle-x-offset);justify-content:center;margin:0;overflow:visible;position:fixed;transition:all .2s ease-in-out;width:55px;z-index:2147483644}#toggle.left,#toggle.top-left{inset-inline-start:var(--sa11y-toggle-x-offset)}#toggle.top-left,#toggle.top-right{bottom:unset;top:var(--sa11y-toggle-y-offset)}@media screen and (forced-colors:active){#toggle{background:ButtonFace!important;border:2px solid transparent}}#toggle svg{height:35px;width:35px}#toggle svg path{fill:var(--sa11y-panel-bg)}#toggle:focus,#toggle:hover{animation:sa11y-toggle-gradient 3s ease}#toggle:disabled:focus,#toggle:disabled:hover{animation:none}#toggle.on{background:linear-gradient(180deg,#e040fb,#00bcd4)}#toggle:disabled{background:unset;background-color:var(--sa11y-setting-switch-bg-off);cursor:not-allowed}#notification-badge{text-wrap:nowrap;align-items:center;background-color:#eb0000;border:1px solid transparent;border-radius:12px;color:#fff;display:none;font-size:13.5px;font-weight:400;justify-content:center;line-height:1;min-width:20px;padding:2.5px;position:absolute;right:-3px;top:-5.5px}#notification-badge.notification-badge-warning{background-color:var(--sa11y-warning-hover);border:1px solid var(--sa11y-warning);color:var(--sa11y-warning-text)}#panel{background:var(--sa11y-panel-bg);border-radius:4px;bottom:calc(var(--sa11y-toggle-y-offset) + var(--sa11y-panel-y-gap));box-shadow:0 0 20px 4px rgba(154,161,177,.15),0 4px 80px -8px rgba(36,40,47,.25),0 4px 4px -2px rgba(91,94,105,.15);inset-inline-end:calc(var(--sa11y-toggle-x-offset) + var(--sa11y-panel-x-gap));opacity:0;overflow:visible;position:fixed;transform:scale(0);transform-origin:100% 100%;transition:transform .2s,opacity background .2s .2s;visibility:hidden;z-index:2147483643}#panel.left,#panel.top-left{inset-inline-end:unset;inset-inline-start:calc(var(--sa11y-toggle-x-offset) + var(--sa11y-panel-x-gap))}#panel.top-left,#panel.top-right{bottom:unset;top:calc(var(--sa11y-toggle-y-offset) + var(--sa11y-panel-y-gap) + 10px)}#panel.active{height:auto;opacity:1;transform:scale(1);transform-origin:bottom right;transition:transform .2s,opacity .2s;visibility:visible}@media screen and (forced-colors:active){#panel{border:2px solid transparent}}#panel.active.left,[dir=rtl] #panel.active{transform-origin:bottom left}#panel.active.top-left{transform-origin:top left}#panel.active.top-right{transform-origin:top right}#panel-alert{display:none;opacity:0}#panel-alert.active{display:block;opacity:1}#panel-alert-content{align-items:center;border-bottom:1px solid var(--sa11y-panel-bg-splitter);color:var(--sa11y-panel-primary);line-height:22px;max-height:400px;overflow-y:auto;padding:15px 20px 15px 15px;position:relative}.top-left #panel-alert-content,.top-right #panel-alert-content{border:0}#panel-alert-preview .close-tooltip{display:none}#panel-alert-preview,#panel-alert-text{font-family:var(--sa11y-font-face);font-size:var(--sa11y-normal-text);font-weight:400;line-height:22px}.panel-alert-preview{background:var(--sa11y-panel-bg-secondary);border:1px dashed var(--sa11y-panel-bg-splitter);border-radius:5px;margin-top:15px;padding:10px}.panel-alert-preview ul{margin:0;margin-block-end:0;margin-block-start:0;padding:0;position:relative}.panel-alert-preview li{display:list-item;margin:5px 10px 0 20px;padding-bottom:5px}.element-preview{background-color:var(--sa11y-element-preview);border-radius:3.2px;margin-bottom:10px;overflow-wrap:break-word;padding:5px}button[data-sa11y-dismiss]{background:var(--sa11y-panel-bg-secondary);border:2px solid var(--sa11y-button-outline);border-radius:5px;color:var(--sa11y-panel-primary);cursor:pointer;display:block;margin:10px 5px 5px 0;margin-inline-end:15px;padding:4px 8px}button[data-sa11y-dismiss]:focus,button[data-sa11y-dismiss]:hover{background:var(--sa11y-shortcut-hover)}h2{font-size:var(--sa11y-large-text);font-weight:700}h2,h3{display:block;margin-bottom:3px}h3{font-size:calc(var(--sa11y-large-text) - 1px)}h3,strong{font-weight:600}a:not(#outline-list a):not(.edit){border-bottom:0;color:var(--sa11y-hyperlink);cursor:pointer;font-weight:500;text-decoration:underline}a:focus,a:hover{text-decoration:none!important}hr{background:var(--sa11y-panel-bg-splitter);border:none;height:1px;margin:10px 0;opacity:1;padding:0}#dismiss-button,#skip-button{background:var(--sa11y-panel-bg-secondary);border:1px solid var(--sa11y-button-outline);border-radius:50px;cursor:pointer;display:none;height:36px;margin-inline-end:8px;margin-inline-start:2px;overflow:visible;position:relative;text-align:center;transition:all .1s ease-in-out;width:36px}#dismiss-button.active,#skip-button.active{display:block}#dismiss-button:disabled,#skip-button:disabled{background:none;border:0;box-shadow:none;cursor:default}#dismiss-button:before,#skip-button:before{content:"";inset:-5px;position:absolute}#dismiss-button:focus:not(:disabled),#dismiss-button:hover:not(:disabled),#skip-button:focus:not(:disabled),#skip-button:hover:not(:disabled){background-color:var(--sa11y-shortcut-hover)}#panel.left #dismiss-button,#panel.left #skip-button,#panel.top-left #dismiss-button,#panel.top-left #skip-button{margin-inline-end:2px;margin-inline-start:8px}.dismiss-icon{background:var(--sa11y-setting-switch-bg-off);display:inline-block;height:24px;margin-bottom:-4px;-webkit-mask:var(--sa11y-dismiss-icon) center no-repeat;mask:var(--sa11y-dismiss-icon) center no-repeat;width:24px}.dismiss-group{display:flex}@media screen and (forced-colors:active){.dismiss-icon{filter:invert(1)}}#panel-content{align-items:center;color:var(--sa11y-panel-primary);display:flex;padding:6px}#panel-content.errors .panel-icon,#panel-content.good .panel-icon,#panel-content.warnings .panel-icon{height:26px;margin:0 auto;width:26px}#panel-content.errors .panel-icon{background:var(--sa11y-panel-error);margin-top:-2px;-webkit-mask:var(--sa11y-error-svg) center no-repeat;mask:var(--sa11y-error-svg) center no-repeat}#panel-content.good .panel-icon{background:var(--sa11y-good);-webkit-mask:var(--sa11y-good-svg) center no-repeat;mask:var(--sa11y-good-svg) center no-repeat}#panel-content.warnings .panel-icon{background:var(--sa11y-yellow-text);-webkit-mask:var(--sa11y-warning-svg) center no-repeat;mask:var(--sa11y-warning-svg) center no-repeat;transform:scaleX(var(--sa11y-icon-direction))}@media screen and (forced-colors:active){#panel-content.errors .panel-icon,#panel-content.good .panel-icon,#panel-content.warnings .panel-icon{filter:invert(1)}}#panel.left #panel-content,#panel.top-left #panel-content{flex-direction:row-reverse}#status{font-size:var(--sa11y-large-text)}#status,.panel-count{color:var(--sa11y-panel-primary)}.panel-count{background-color:var(--sa11y-panel-badge);border-radius:4px;font-size:15px;font-weight:400;margin-left:3px;margin-right:3px;padding:2px 4px}#images-panel,#outline-panel,#page-issues,#settings-panel{color:var(--sa11y-panel-primary);display:none;opacity:0}#images-panel.active,#outline-panel.active,#page-issues.active,#settings-panel.active{display:block;opacity:1}.panel-header{display:flex;justify-content:space-between;padding:10px 15px 0;text-align:start}#about-content{padding-top:5px}#about-content p{display:block;margin-block-end:1em}#images-content,#outline-content,#page-issues-content,#settings-content{border-bottom:1px solid var(--sa11y-panel-bg-splitter);padding:0 15px 10px}.top-left #images-content,.top-left #outline-content,.top-left #page-issues-content,.top-left #settings-content,.top-right #images-content,.top-right #outline-content,.top-right #page-issues-content,.top-right #settings-content{border:0}#page-issues-content{max-height:160px;overflow-y:auto}#settings-content{max-height:400px;overflow-y:auto}#images-content,#outline-content{max-height:250px;overflow-y:auto}#outline-panel .outline-list-item.sa11y-red-text,#settings-panel .sa11y-red-text{color:var(--sa11y-red-text)}#outline-list{display:block;margin:0;padding:0}#outline-list a{cursor:pointer;display:block;text-decoration:none}#outline-list li{display:block;list-style-type:none;margin-bottom:3px;margin-top:0;padding:0}#outline-list li:first-child{margin-top:5px}#outline-list li a:focus,#outline-list li a:hover{background:var(--sa11y-panel-outline-hover);border-radius:5px;box-shadow:0 0 0 2px var(--sa11y-panel-outline-hover);display:block}#outline-list .outline-2{margin-inline-start:15px}#outline-list .outline-3{margin-inline-start:30px}#outline-list .outline-4{margin-inline-start:45px}#outline-list .outline-5{margin-inline-start:60px}#outline-list .outline-6{margin-inline-start:75px}#images-list{display:block;margin:0;padding:0}#images-list li{border-bottom:1px solid var(--sa11y-panel-bg-splitter);display:block;list-style-type:none;margin:15px 0;overflow:hidden;width:100%}#images-list li:first-child{margin-top:5px}#images-list li:last-child{border:none;margin-bottom:0}#images-list li .alt{padding:2px 5px 10px}#images-list li .edit-block{display:flex;justify-content:flex-end;margin-bottom:15px}#images-list li .edit{background:var(--sa11y-panel-bg-secondary);border:2px solid var(--sa11y-button-outline);border-radius:5px;color:var(--sa11y-panel-primary);cursor:pointer;margin-inline-end:5px;padding:4px 7px;position:relative;text-decoration:none}#images-list li .edit:focus,#images-list li .edit:hover{background-color:var(--sa11y-shortcut-hover)}#images-list li .edit:before{content:"";inset:-10px;position:absolute}#images-list li img{border-radius:5px;float:inline-start;margin-block-end:15px;margin-inline-end:10px;max-width:110px}#images-list li.warning .alt{color:var(--sa11y-yellow-text)}#images-list li.warning img{background-color:var(--sa11y-yellow-text);border:5px solid var(--sa11y-yellow-text)}#images-list li.error .alt{color:var(--sa11y-error)}#images-list li.error img{background-color:var(--sa11y-error);border:5px solid var(--sa11y-error)}#images-list li.good img{background-color:var(--sa11y-panel-badge);border:5px solid var(--sa11y-panel-badge)}@media screen and (forced-colors:active){#images-list li img{background-color:ButtonBorder!important}}.move-panel-icon{height:18px;-webkit-mask:var(--sa11y-move-panel-icon);mask:var(--sa11y-move-panel-icon);-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;width:18px}.info-icon,.move-panel-icon{background:var(--sa11y-setting-switch-bg-off);display:inline-block;vertical-align:middle}.info-icon{height:20px;margin-top:-2px;-webkit-mask:var(--sa11y-info-icon);mask:var(--sa11y-info-icon);-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;width:20px}.sun-icon{-webkit-mask:var(--sa11y-sun-icon);mask:var(--sa11y-sun-icon);-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}.moon-icon,.sun-icon{background:var(--sa11y-setting-switch-bg-off);display:inline-block;height:18px;vertical-align:middle;width:18px}.moon-icon{-webkit-mask:var(--sa11y-moon-icon);mask:var(--sa11y-moon-icon);-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}.error-icon{background:var(--sa11y-error-text);margin-bottom:-4px;-webkit-mask:var(--sa11y-error-svg);mask:var(--sa11y-error-svg);-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}.error-icon,.hidden-icon{display:inline-block;height:16px;width:16px}.hidden-icon{margin-bottom:-3px;-webkit-mask:var(--sa11y-hidden-icon-svg);mask:var(--sa11y-hidden-icon-svg);-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}.hidden-icon,.link-icon{background:var(--sa11y-panel-primary)}.link-icon{display:inline-block;height:16px;margin-bottom:-3.5px;-webkit-mask:var(--sa11y-link-icon-svg);mask:var(--sa11y-link-icon-svg);-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;width:16px}.error-badge .hidden-icon,.error-badge .link-icon{background:var(--sa11y-error-text)}.warning-badge .hidden-icon,.warning-badge .link-icon{background:var(--sa11y-panel-bg)}.error .link-icon{background:var(--sa11y-error-text)}.warning .link-icon{background:var(--sa11y-panel-bg)}@media screen and (forced-colors:active){.error-icon,.hidden-icon,.info-icon,.link-icon,.moon-icon,.move-panel-icon,.sun-icon{filter:invert(1)}}#panel-controls{border-bottom:1px solid var(--sa11y-panel-bg-splitter);border-radius:0 0 4px 4px;display:flex;overflow:hidden}#panel-controls button{background:var(--sa11y-panel-bg-secondary);background-color:var(--sa11y-panel-bg-secondary);border-inline-end:1px solid var(--sa11y-panel-bg-splitter);border-top:1px solid var(--sa11y-panel-bg-splitter);color:var(--sa11y-panel-secondary);cursor:pointer;display:block;font-size:var(--sa11y-normal-text);font-weight:400;height:30px;line-height:0;margin:0;opacity:1;outline:0;padding:0;position:relative;text-align:center;transition:background .2s;width:100%}#panel-controls button.active,#panel-controls button:hover{background-color:var(--sa11y-shortcut-hover)}#panel-controls button.active{font-weight:600}#export-results-mode,label{color:var(--sa11y-panel-primary);display:inline-block;font-weight:400;margin:0;width:100%}label:not(#colour-filter-mode,#export-results-mode){cursor:pointer}#panel.right #panel-controls:has(#images-toggle):after{content:"";width:80px}#panel.left #panel-controls:has(#images-toggle):before{content:"";width:50px}#settings-panel .appearance-group,#settings-panel .export-results-group{display:flex;margin:5px 0}#settings-panel .appearance-group button,#settings-panel .export-results-group button{align-items:center;border:2px solid var(--sa11y-setting-switch-bg-off);border-radius:5px;cursor:pointer;display:flex;justify-content:center;margin:2px 0;margin-inline-end:4px;margin-inline-start:8px;min-height:34px;min-width:44px;position:relative;text-align:center;white-space:nowrap}#settings-panel .appearance-group button:focus,#settings-panel .appearance-group button:focus-within,#settings-panel .appearance-group button:hover,#settings-panel .export-results-group button:focus,#settings-panel .export-results-group button:focus-within,#settings-panel .export-results-group button:hover{background:var(--sa11y-shortcut-hover)}#settings-panel .appearance-group button:before,#settings-panel .export-results-group button:before{content:"";inset:-7px;position:absolute}#settings-panel .appearance-group button .text,#settings-panel .export-results-group button .text{color:var(--sa11y-setting-switch-bg-off);font-weight:600;padding:0 6px}#settings-panel .switch{background:none;border:0;border-radius:5px;color:var(--sa11y-setting-switch-bg-off);cursor:pointer;font-size:var(--sa11y-normal-text);font-weight:600;height:44px;margin:0;padding:7px 10px;position:relative;text-align:end;width:105px}#settings-panel .switch[aria-pressed=false]:after,#settings-panel .switch[aria-pressed=true]:after{content:"";display:inline-block;height:27px;margin:0 4px 4px;vertical-align:middle;width:27px}#settings-panel .switch[aria-pressed=true]:after{background:var(--sa11y-setting-switch-bg-on);-webkit-mask:var(--sa11y-setting-switch-on-svg) center no-repeat;mask:var(--sa11y-setting-switch-on-svg) center no-repeat}#settings-panel .switch[aria-pressed=false]:after{background:var(--sa11y-setting-switch-bg-off);-webkit-mask:var(--sa11y-setting-switch-off-svg) center no-repeat;mask:var(--sa11y-setting-switch-off-svg) center no-repeat}@media screen and (forced-colors:active){#settings-panel .switch[aria-pressed=false]:after,#settings-panel .switch[aria-pressed=true]:after{filter:invert(1)}}#settings-panel #settings-options li{align-items:center;border-bottom:1px solid var(--sa11y-panel-bg-splitter);display:flex;justify-content:space-between;list-style-type:none;padding:1px 0}#settings-panel #settings-options li:last-child{border:none}#page-issues{align-items:center;color:var(--sa11y-panel-primary)}#page-issues-list{display:block;margin-top:4px}#page-issues-list li{display:block;margin:0 0 10px}.top-left.has-page-issues #page-issues,.top-right.has-page-issues #page-issues{border-top:1px solid var(--sa11y-panel-bg-splitter);margin-top:-1px}#panel-colour-filters{align-items:center;color:var(--sa11y-panel-primary);display:none;font-family:var(--sa11y-font-face);font-size:var(--sa11y-normal-text);font-weight:400;line-height:22px}#panel-colour-filters.active{display:flex}#panel-colour-filters p{padding:6px 20px 6px 6px;width:100%}#panel-colour-filters[data-colour=protanopia]{border-bottom:6px solid transparent;-o-border-image:linear-gradient(94deg,#786719 11%,#e0c600 36%,#e0c600 47%,#0059e3 75%,#0042aa 91%);border-image:linear-gradient(94deg,#786719 11%,#e0c600 36%,#e0c600 47%,#0059e3 75%,#0042aa 91%);border-image-slice:1}#panel-colour-filters[data-colour=deuteranopia]{border-bottom:6px solid transparent;-o-border-image:linear-gradient(270deg,#567fdb,#a4a28d 48%,#c3ad14 69%,#a79505);border-image:linear-gradient(270deg,#567fdb,#a4a28d 48%,#c3ad14 69%,#a79505);border-image-slice:1}#panel-colour-filters[data-colour=tritanopia]{border-bottom:6px solid transparent;-o-border-image:linear-gradient(270deg,#b1506f,#0696c1 35%,#f3a9ba 70%,#d91c5d 87%,#fe015c);border-image:linear-gradient(270deg,#b1506f,#0696c1 35%,#f3a9ba 70%,#d91c5d 87%,#fe015c);border-image-slice:1}#panel-colour-filters[data-colour=monochromacy]{border-bottom:6px solid transparent;-o-border-image:linear-gradient(270deg,#000,#a7a7a7 50%,#000);border-image:linear-gradient(270deg,#000,#a7a7a7 50%,#000);border-image-slice:1}#panel-colour-filters[data-colour=protanopia] .panel-icon{background:var(--sa11y-panel-error)}#panel-colour-filters[data-colour=deuteranopia] .panel-icon{background:var(--sa11y-good-hover)}#panel-colour-filters[data-colour=tritanopia] .panel-icon{background:var(--sa11y-blue)}#panel-colour-filters[data-colour=monochromacy] .panel-icon{background:linear-gradient(90deg,#38a459 20%,red 50%,#0077c8 80%)}#panel-colour-filters .panel-icon{height:30px;margin-inline-end:5px;margin-inline-start:10px;-webkit-mask:var(--sa11y-low-vision-icon) center no-repeat;mask:var(--sa11y-low-vision-icon) center no-repeat;width:30px}@media screen and (forced-colors:active){#panel-colour-filters .panel-icon{forced-color-adjust:none}}.select-dropdown{align-items:center;display:flex;position:relative}.select-dropdown:after{border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid var(--sa11y-setting-switch-bg-off);content:" ";inset-inline-end:14px;position:absolute}#colour-filter-select{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:var(--sa11y-panel-bg);border:2px solid var(--sa11y-setting-switch-bg-off);border-radius:5px;color:var(--sa11y-setting-switch-bg-off);cursor:pointer;font-size:var(--sa11y-normal-text);font-weight:600;height:30px;margin-inline-end:4px;padding-inline-end:25px;padding-inline-start:5px;position:relative;text-align:end;vertical-align:middle}#colour-filter-select:focus,#colour-filter-select:hover{background:var(--sa11y-shortcut-hover)}#colour-filter-select.active{box-shadow:0 0 0 2px var(--sa11y-setting-switch-bg-on)}#colour-filter-item label,#colour-filter-item select{margin-bottom:9px;margin-top:10px}#readability-panel{display:none;opacity:0}#readability-panel.active{display:block;opacity:1}.top-left #readability-content,.top-right #readability-content{border-top:1px solid var(--sa11y-panel-bg-splitter)}.left #readability-content,.right #readability-content{border-bottom:1px solid var(--sa11y-panel-bg-splitter)}#readability-content{color:var(--sa11y-panel-primary);padding:10px 15px;width:100%}#readability-details{list-style-type:none;margin:0;padding:0;white-space:normal}#readability-details li{display:inline-block;list-style-type:none;margin:0;padding-inline-end:10px}.readability-score{background-color:var(--sa11y-panel-badge);border-radius:4px;color:var(--sa11y-panel-primary);margin-inline-start:5px;padding:2px 5px}#readability-info{margin-inline-start:10px}#skip-to-page-issues{display:none}#panel.has-page-issues #skip-to-page-issues{clip:rect(0,0,0,0);background:var(--sa11y-panel-bg);border:0;border-radius:5px;display:block;font-weight:600;height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px}#panel.has-page-issues #skip-to-page-issues:focus{clip:auto;height:auto;margin:0;overflow:visible;padding:7px 10px;white-space:normal;width:auto;z-index:1}.hide-settings-border{border-bottom:0!important;padding:0 15px!important}.hide-settings-border li:not(#colour-filter-item){display:none!important}.hide-settings-border #about-content{display:none}.hide-settings-border.scrollable:before{all:unset}#contrast-tools{display:none}::-webkit-scrollbar{height:6px;width:7px}::-webkit-scrollbar-thumb{background-color:var(--sa11y-button-outline);border-radius:6px}*{scrollbar-color:var(--sa11y-button-outline);scrollbar-width:thin}.scrollable:before{animation:fade 1s ease-in-out;background:linear-gradient(180deg,transparent 70%,var(--sa11y-panel-scrollable) 100%);background-position:bottom;bottom:auto;content:"";height:250px;left:0;position:absolute;right:0;top:auto;transition:opacity 1s ease-in-out;width:100%;z-index:-1}#settings-content.scrollable:before{height:400px}.top-left .scrollable:before,.top-right .scrollable:before{border-radius:5px}#page-issues-content.scrollable:before{height:160px}#panel-alert.scrollable:before{height:200px}@keyframes sa11y-toggle-gradient{0%{background-position:50% 0}50%{background-position:50% 100%}to{background-position:50% 0}}@keyframes fade{0%{opacity:0}to{opacity:1}}@media (prefers-reduced-motion:reduce){*{animation:none!important;transform:none!important;transition:none!important}}#panel{width:400px}#container:lang(en) #panel{width:315px}#container:lang(da) #panel,#container:lang(de) #panel,#container:lang(nb) #panel,#container:lang(pl) #panel,#container:lang(sv) #panel,#container:lang(zh) #panel{width:365px}#container:lang(bg) .switch:not(#export-results-item *),#container:lang(es) .switch:not(#export-results-item *){width:225px!important}#container:not(:lang(en)):not(:lang(de)) .switch{width:205px}'+z,this.shadowRoot.appendChild(e);const t="On"===_.getItem("sa11y-developer"),i="On"===_.getItem("sa11y-readability"),s=_.getItem("sa11y-theme"),a=_.getItem("sa11y-position"),r=o.Global.checkAllHideToggles,l=o.Global.developerPlugin?`\n
                          • \n \n \n \n
                          • `:"",c=o.Readability.Plugin?`\n
                          • \n \n \n \n
                          • `:"",d=o.Global.colourFilterPlugin?`\n
                          • \n \n
                            \n \n
                            \n
                          • `:"",p=o.Global.colourFilterPlugin?`\n
                            \n \n

                            ${n._("COLOUR_FILTER_MESSAGE")}

                            \n
                            `:"",u=o.Global.exportResultsPlugin?`\n
                          • \n ${n._("EXPORT_RESULTS")}\n
                            \n \n \n
                            \n
                          • `:"",h=o.Global.aboutContent?`\n
                            ${o.Global.aboutContent}
                            `:"",g=`\n `,m=`\n
                            \n
                            \n

                            ${n._("PAGE_ISSUES")}

                            \n
                            \n
                            \n
                              \n
                              \n
                              `,f=`\n
                              \n
                              \n

                              ${n._("OUTLINE")}

                              \n
                              \n
                              \n
                                \n
                                \n
                                \n
                                \n

                                ${n._("READABILITY")}

                                \n

                                \n
                                  \n
                                  \n
                                  \n
                                  `,b=o.Global.showImageOutline?`\n
                                  \n
                                  \n

                                  ${n._("IMAGES")}

                                  \n
                                  \n
                                  \n
                                    \n
                                    \n
                                    `:"",y="left"===a||"top-left"===a?"true":"false",A=o.Global.showMovePanelToggle?``:"",E=`\n
                                    \n
                                    \n

                                    ${n._("SETTINGS")}

                                    \n
                                    \n
                                    \n
                                      \n ${l}\n ${c}\n
                                    • \n ${n._("APPEARANCE")}\n
                                      \n \n ${A}\n
                                      \n
                                    • \n ${u}\n ${d}\n
                                    \n ${h}\n
                                    \n
                                    `,v=`\n
                                    \n
                                    \n
                                    \n \n

                                    ${n._("ALERT_TEXT")}

                                    \n
                                    \n

                                    \n
                                    \n
                                    \n
                                    `,L=`\n
                                    \n \n \n \n
                                    \n

                                    ${n._("PANEL_HEADING")}

                                    \n

                                    \n
                                    \n
                                    `,I=``,T=`\n
                                    \n \n ${o.Global.showImageOutline?I:""}\n \n
                                    `,x=document.createElement("div");x.setAttribute("id","container"),x.setAttribute("role","region"),x.setAttribute("data-sa11y-version",Y),x.setAttribute("lang",n._("LANG_CODE")),x.setAttribute("aria-label",n._("CONTAINER_LABEL")),x.setAttribute("dir",o.Global.langDirection),x.innerHTML="top-left"===a||"top-right"===a?`\n ${g}\n
                                    \n ${L}\n ${p}\n ${T}\n ${f}\n ${b}\n ${E}\n ${v}\n ${m}\n
                                    `:`\n ${g}\n
                                    \n ${m}\n ${f}\n ${b}\n ${E}\n ${v}\n ${p}\n ${L}\n ${T}\n
                                    `,this.shadowRoot.appendChild(x),o.initializePanelSelectors()}}const j=()=>{o.Panel.outlineToggle.classList.add("active"),o.Panel.outline.classList.add("active"),o.Panel.outlineToggle.setAttribute("aria-expanded","true"),_.setItem("sa11y-outline","Opened"),S(o.Panel.outlineList,o.Panel.outlineContent);i("sa11y-heading-label","root").forEach(e=>e.hidden=!1);const e=new CustomEvent("sa11y-build-heading-outline");document.dispatchEvent(e)},q=()=>{o.Panel.outline.classList.remove("active"),o.Panel.outlineToggle.classList.remove("active"),o.Panel.outlineToggle.setAttribute("aria-expanded","false"),_.setItem("sa11y-outline","Closed");i("sa11y-heading-label","root").forEach(e=>e.hidden=!0)},X=()=>{o.Panel.imagesToggle.classList.add("active"),o.Panel.images.classList.add("active"),o.Panel.imagesToggle.setAttribute("aria-expanded","true"),_.setItem("sa11y-images","Opened"),S(o.Panel.imagesList,o.Panel.imagesContent);const e=new CustomEvent("sa11y-build-image-outline");document.dispatchEvent(e)},Z=()=>{o.Global.showImageOutline&&(o.Panel.imagesToggle.classList.remove("active"),o.Panel.images.classList.remove("active"),o.Panel.imagesToggle.setAttribute("aria-expanded","false"),_.setItem("sa11y-images","Closed"))},J=()=>{o.Panel.settingsToggle.classList.add("active"),o.Panel.settings.classList.add("active"),o.Panel.settingsToggle.setAttribute("aria-expanded","true"),_.setItem("sa11y-settings","Opened"),S(o.Panel.settingsContent,o.Panel.settingsContent,n._("SETTINGS"))},ee=()=>{o.Panel.settings.classList.remove("active"),o.Panel.settingsToggle.classList.remove("active"),o.Panel.settingsToggle.setAttribute("aria-expanded","false"),_.setItem("sa11y-settings","Closed")};function te(e,t,s){const a=()=>{const r=[];let l;if(e.map(e=>t.find(t=>e.key===t.dismiss&&e.href===window.location.pathname)).filter(Boolean).forEach(e=>Object.assign(e,{dismissedHeading:!0})),s.showTitleInPageOutline){const e=document.querySelector("head title");if(e&&0!==e.textContent.trim().length){const t=b(e);l=`
                                  • ${n._("TITLE")} ${h(t)}
                                  • `}else l=`
                                  • ${n._("TITLE")}
                                    ${n._("MISSING")}
                                  • `;r.push(l)}return t.forEach(e=>{const t=e.element,o=e.headingLevel,i=e.text,a=e.index,l=e.type,c=e.hidden,d=e.visibleParent,p=e.dismissedHeading,{isWithinRoot:u}=e;if(!P.Found.OutlineIgnore.includes(t)){const e=!0===c?'Hidden':"",t=!0===c?'class="hidden-h"':"",d=!0===s.showHinPageOutline||1===s.showHinPageOutline?"H":"";let h;"error"===l&&!0===u?(h=`\n
                                  • \n \n \n \n ${n._("ERROR")} ${d+o}\n ${i}\n \n
                                  • `,r.push(h)):"warning"!==l||p||!0!==u?(h=`\n
                                  • \n \n ${e} ${d+o}\n ${i}\n \n
                                  • `,r.push(h)):(h=`\n
                                  • \n \n \n \n ${n._("WARNING")} ${d+o}\n ${i}\n \n
                                  • `,r.push(h))}const h=document.createElement("sa11y-heading-label"),g=document.createElement("sa11y-heading-anchor");if(h.hidden=!0,null!==d){t.insertAdjacentElement("beforeend",h);const e=d.previousElementSibling;g.setAttribute("id",`sa11y-h${a}`),e?(e.insertAdjacentElement("beforebegin",g),e.setAttribute("data-sa11y-parent",`h${a}`)):(d.parentNode.insertAdjacentElement("beforebegin",g),d.parentNode.setAttribute("data-sa11y-parent",`h${a}`))}else t.insertAdjacentElement("beforeend",h),h.insertAdjacentElement("beforebegin",g),g.setAttribute("id",`sa11y-h${a}`);const m=document.createElement("span");m.classList.add("heading-label"),m.innerHTML=`H${o}`,h.shadowRoot.appendChild(m),"Opened"===_.getItem("sa11y-outline")&&(h.hidden=!1)}),o.Panel.outlineList.innerHTML=0===t.length?`${l||""}
                                  • ${n._("PANEL_NO_HEADINGS")}
                                  • `:r.join(" "),setTimeout(()=>{const e=document.querySelector("sa11y-control-panel").shadowRoot,t=Array.from(e.querySelectorAll("#outline-list a"));t.forEach((t,s)=>{const a=e.getElementById(`sa11y-link-${s}`),r=i(`#sa11y-h${s}, [data-sa11y-parent="h${s}"]`,"document",o.Exclusions.Container),l=e=>{("keyup"===e.type&&"Enter"===e.code||"click"===e.type)&&(r.forEach(e=>{(e=>{L(e.parentElement),e.scrollIntoView({behavior:`${o.Global.scrollBehaviour}`,block:"center"})})(e)}),a.classList.contains("hidden-h")?x(`${n._("HEADING_NOT_VISIBLE")}`):o.Panel.alert.classList.contains("active")&&T()),e.preventDefault()};a?.addEventListener("click",l,!1),a?.addEventListener("keyup",l,!1)});let s=0;const a=e=>{if(!["ArrowUp","ArrowDown","Space"].includes(e.code))return;if("Space"===e.code)return void t[s].click();let n;t[s].setAttribute("tabindex",-1),"ArrowDown"===e.code?(n=s+1,s===t.length-1&&(n=0)):"ArrowUp"===e.code&&(n=s-1,0===s&&(n=t.length-1)),t[n].setAttribute("tabindex",0),t[n].focus(),s=n,e.preventDefault()};o.Panel.outlineList.addEventListener("focus",()=>{t.length>0&&(o.Panel.outlineList.setAttribute("tabindex",-1),t[s].setAttribute("tabindex",0),t[s].focus()),o.Panel.outlineList.addEventListener("keydown",a)}),o.Panel.outlineList.addEventListener("blur",()=>{o.Panel.outlineList.removeEventListener("keydown",a)})},0),document.removeEventListener("sa11y-build-heading-outline",a),e};"Opened"===_.getItem("sa11y-outline")&&a(),document.addEventListener("sa11y-build-heading-outline",a)}const ne=e=>{const{src:t}=e.element,i=o.Global.ignoreEditImageURL.some(e=>t.includes(e)),s=o.Global.ignoreEditImageClass.some(t=>e.element.classList.contains(t));if(i||s)return"";const a=o.Global.relativePathImageSRC||window.location.host,r=t.split(a)[1]||"",l=o.Global.relativePathImageID;let c;l.length&&e.element.classList.length&&e.element.classList.forEach(e=>{if(e.startsWith(l)){const[t]=e.match(/\d+/)||[];c=t}});const d=a&&l.length?o.Global.editImageURLofCMS+c:o.Global.editImageURLofCMS+r;return(l.length&&void 0!==c||!l)&&((p=t).includes(window.location.host)||p.startsWith(a))?``:"";var p};var oe="top",ie="bottom",se="right",ae="left",re="auto",le=[oe,ie,se,ae],ce="start",de="end",pe="viewport",ue="popper",he=le.reduce(function(e,t){return e.concat([t+"-"+ce,t+"-"+de])},[]),ge=[].concat(le,[re]).reduce(function(e,t){return e.concat([t,t+"-"+ce,t+"-"+de])},[]),me=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function fe(e){return e?(e.nodeName||"").toLowerCase():null}function be(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function ye(e){return e instanceof be(e).Element||e instanceof Element}function Ae(e){return e instanceof be(e).HTMLElement||e instanceof HTMLElement}function Ee(e){return"undefined"!=typeof ShadowRoot&&(e instanceof be(e).ShadowRoot||e instanceof ShadowRoot)}var ve={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach(function(e){var n=t.styles[e]||{},o=t.attributes[e]||{},i=t.elements[e];Ae(i)&&fe(i)&&(Object.assign(i.style,n),Object.keys(o).forEach(function(e){var t=o[e];!1===t?i.removeAttribute(e):i.setAttribute(e,!0===t?"":t)}))})},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(e){var o=t.elements[e],i=t.attributes[e]||{},s=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce(function(e,t){return e[t]="",e},{});Ae(o)&&fe(o)&&(Object.assign(o.style,s),Object.keys(i).forEach(function(e){o.removeAttribute(e)}))})}},requires:["computeStyles"]};function _e(e){return e.split("-")[0]}var Le=Math.max,Ie=Math.min,Te=Math.round;function xe(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function ke(){return!/^((?!chrome|android).)*safari/i.test(xe())}function Ne(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var o=e.getBoundingClientRect(),i=1,s=1;t&&Ae(e)&&(i=e.offsetWidth>0&&Te(o.width)/e.offsetWidth||1,s=e.offsetHeight>0&&Te(o.height)/e.offsetHeight||1);var a=(ye(e)?be(e):window).visualViewport,r=!ke()&&n,l=(o.left+(r&&a?a.offsetLeft:0))/i,c=(o.top+(r&&a?a.offsetTop:0))/s,d=o.width/i,p=o.height/s;return{width:d,height:p,top:c,right:l+d,bottom:c+p,left:l,x:l,y:c}}function Se(e){var t=Ne(e),n=e.offsetWidth,o=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-o)<=1&&(o=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:o}}function we(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Ee(n)){var o=t;do{if(o&&e.isSameNode(o))return!0;o=o.parentNode||o.host}while(o)}return!1}function Ce(e){return be(e).getComputedStyle(e)}function Oe(e){return["table","td","th"].indexOf(fe(e))>=0}function Pe(e){return((ye(e)?e.ownerDocument:e.document)||window.document).documentElement}function Re(e){return"html"===fe(e)?e:e.assignedSlot||e.parentNode||(Ee(e)?e.host:null)||Pe(e)}function De(e){return Ae(e)&&"fixed"!==Ce(e).position?e.offsetParent:null}function Me(e){for(var t=be(e),n=De(e);n&&Oe(n)&&"static"===Ce(n).position;)n=De(n);return n&&("html"===fe(n)||"body"===fe(n)&&"static"===Ce(n).position)?t:n||function(e){var t=/firefox/i.test(xe());if(/Trident/i.test(xe())&&Ae(e)&&"fixed"===Ce(e).position)return null;var n=Re(e);for(Ee(n)&&(n=n.host);Ae(n)&&["html","body"].indexOf(fe(n))<0;){var o=Ce(n);if("none"!==o.transform||"none"!==o.perspective||"paint"===o.contain||-1!==["transform","perspective"].indexOf(o.willChange)||t&&"filter"===o.willChange||t&&o.filter&&"none"!==o.filter)return n;n=n.parentNode}return null}(e)||t}function Be(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function $e(e,t,n){return Le(e,Ie(t,n))}function Ge(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function Ue(e,t){return t.reduce(function(t,n){return t[n]=e,t},{})}var He={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,o=e.name,i=e.options,s=n.elements.arrow,a=n.modifiersData.popperOffsets,r=_e(n.placement),l=Be(r),c=[ae,se].indexOf(r)>=0?"height":"width";if(s&&a){var d=function(e,t){return Ge("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:Ue(e,le))}(i.padding,n),p=Se(s),u="y"===l?oe:ae,h="y"===l?ie:se,g=n.rects.reference[c]+n.rects.reference[l]-a[l]-n.rects.popper[c],m=a[l]-n.rects.reference[l],f=Me(s),b=f?"y"===l?f.clientHeight||0:f.clientWidth||0:0,y=g/2-m/2,A=d[u],E=b-p[c]-d[h],v=b/2-p[c]/2+y,_=$e(A,v,E),L=l;n.modifiersData[o]=((t={})[L]=_,t.centerOffset=_-v,t)}},effect:function(e){var t=e.state,n=e.options.element,o=void 0===n?"[data-popper-arrow]":n;null!=o&&("string"!=typeof o||(o=t.elements.popper.querySelector(o)))&&we(t.elements.popper,o)&&(t.elements.arrow=o)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Fe(e){return e.split("-")[1]}var Ke={top:"auto",right:"auto",bottom:"auto",left:"auto"};function We(e){var t,n=e.popper,o=e.popperRect,i=e.placement,s=e.variation,a=e.offsets,r=e.position,l=e.gpuAcceleration,c=e.adaptive,d=e.roundOffsets,p=e.isFixed,u=a.x,h=void 0===u?0:u,g=a.y,m=void 0===g?0:g,f="function"==typeof d?d({x:h,y:m}):{x:h,y:m};h=f.x,m=f.y;var b=a.hasOwnProperty("x"),y=a.hasOwnProperty("y"),A=ae,E=oe,v=window;if(c){var _=Me(n),L="clientHeight",I="clientWidth";if(_===be(n)&&"static"!==Ce(_=Pe(n)).position&&"absolute"===r&&(L="scrollHeight",I="scrollWidth"),i===oe||(i===ae||i===se)&&s===de)E=ie,m-=(p&&_===v&&v.visualViewport?v.visualViewport.height:_[L])-o.height,m*=l?1:-1;if(i===ae||(i===oe||i===ie)&&s===de)A=se,h-=(p&&_===v&&v.visualViewport?v.visualViewport.width:_[I])-o.width,h*=l?1:-1}var T,x=Object.assign({position:r},c&&Ke),k=!0===d?function(e,t){var n=e.x,o=e.y,i=t.devicePixelRatio||1;return{x:Te(n*i)/i||0,y:Te(o*i)/i||0}}({x:h,y:m},be(n)):{x:h,y:m};return h=k.x,m=k.y,l?Object.assign({},x,((T={})[E]=y?"0":"",T[A]=b?"0":"",T.transform=(v.devicePixelRatio||1)<=1?"translate("+h+"px, "+m+"px)":"translate3d("+h+"px, "+m+"px, 0)",T)):Object.assign({},x,((t={})[E]=y?m+"px":"",t[A]=b?h+"px":"",t.transform="",t))}var Ye={passive:!0};var ze={left:"right",right:"left",bottom:"top",top:"bottom"};function Qe(e){return e.replace(/left|right|bottom|top/g,function(e){return ze[e]})}var Ve={start:"end",end:"start"};function je(e){return e.replace(/start|end/g,function(e){return Ve[e]})}function qe(e){var t=be(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Xe(e){return Ne(Pe(e)).left+qe(e).scrollLeft}function Ze(e){var t=Ce(e),n=t.overflow,o=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+o)}function Je(e){return["html","body","#document"].indexOf(fe(e))>=0?e.ownerDocument.body:Ae(e)&&Ze(e)?e:Je(Re(e))}function et(e,t){var n;void 0===t&&(t=[]);var o=Je(e),i=o===(null==(n=e.ownerDocument)?void 0:n.body),s=be(o),a=i?[s].concat(s.visualViewport||[],Ze(o)?o:[]):o,r=t.concat(a);return i?r:r.concat(et(Re(a)))}function tt(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function nt(e,t,n){return t===pe?tt(function(e,t){var n=be(e),o=Pe(e),i=n.visualViewport,s=o.clientWidth,a=o.clientHeight,r=0,l=0;if(i){s=i.width,a=i.height;var c=ke();(c||!c&&"fixed"===t)&&(r=i.offsetLeft,l=i.offsetTop)}return{width:s,height:a,x:r+Xe(e),y:l}}(e,n)):ye(t)?function(e,t){var n=Ne(e,!1,"fixed"===t);return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}(t,n):tt(function(e){var t,n=Pe(e),o=qe(e),i=null==(t=e.ownerDocument)?void 0:t.body,s=Le(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),a=Le(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),r=-o.scrollLeft+Xe(e),l=-o.scrollTop;return"rtl"===Ce(i||n).direction&&(r+=Le(n.clientWidth,i?i.clientWidth:0)-s),{width:s,height:a,x:r,y:l}}(Pe(e)))}function ot(e,t,n,o){var i="clippingParents"===t?function(e){var t=et(Re(e)),n=["absolute","fixed"].indexOf(Ce(e).position)>=0&&Ae(e)?Me(e):e;return ye(n)?t.filter(function(e){return ye(e)&&we(e,n)&&"body"!==fe(e)}):[]}(e):[].concat(t),s=[].concat(i,[n]),a=s[0],r=s.reduce(function(t,n){var i=nt(e,n,o);return t.top=Le(i.top,t.top),t.right=Ie(i.right,t.right),t.bottom=Ie(i.bottom,t.bottom),t.left=Le(i.left,t.left),t},nt(e,a,o));return r.width=r.right-r.left,r.height=r.bottom-r.top,r.x=r.left,r.y=r.top,r}function it(e){var t,n=e.reference,o=e.element,i=e.placement,s=i?_e(i):null,a=i?Fe(i):null,r=n.x+n.width/2-o.width/2,l=n.y+n.height/2-o.height/2;switch(s){case oe:t={x:r,y:n.y-o.height};break;case ie:t={x:r,y:n.y+n.height};break;case se:t={x:n.x+n.width,y:l};break;case ae:t={x:n.x-o.width,y:l};break;default:t={x:n.x,y:n.y}}var c=s?Be(s):null;if(null!=c){var d="y"===c?"height":"width";switch(a){case ce:t[c]=t[c]-(n[d]/2-o[d]/2);break;case de:t[c]=t[c]+(n[d]/2-o[d]/2)}}return t}function st(e,t){void 0===t&&(t={});var n=t,o=n.placement,i=void 0===o?e.placement:o,s=n.strategy,a=void 0===s?e.strategy:s,r=n.boundary,l=void 0===r?"clippingParents":r,c=n.rootBoundary,d=void 0===c?pe:c,p=n.elementContext,u=void 0===p?ue:p,h=n.altBoundary,g=void 0!==h&&h,m=n.padding,f=void 0===m?0:m,b=Ge("number"!=typeof f?f:Ue(f,le)),y=u===ue?"reference":ue,A=e.rects.popper,E=e.elements[g?y:u],v=ot(ye(E)?E:E.contextElement||Pe(e.elements.popper),l,d,a),_=Ne(e.elements.reference),L=it({reference:_,element:A,strategy:"absolute",placement:i}),I=tt(Object.assign({},A,L)),T=u===ue?I:_,x={top:v.top-T.top+b.top,bottom:T.bottom-v.bottom+b.bottom,left:v.left-T.left+b.left,right:T.right-v.right+b.right},k=e.modifiersData.offset;if(u===ue&&k){var N=k[i];Object.keys(x).forEach(function(e){var t=[se,ie].indexOf(e)>=0?1:-1,n=[oe,ie].indexOf(e)>=0?"y":"x";x[e]+=N[n]*t})}return x}function at(e,t){void 0===t&&(t={});var n=t,o=n.placement,i=n.boundary,s=n.rootBoundary,a=n.padding,r=n.flipVariations,l=n.allowedAutoPlacements,c=void 0===l?ge:l,d=Fe(o),p=d?r?he:he.filter(function(e){return Fe(e)===d}):le,u=p.filter(function(e){return c.indexOf(e)>=0});0===u.length&&(u=p);var h=u.reduce(function(t,n){return t[n]=st(e,{placement:n,boundary:i,rootBoundary:s,padding:a})[_e(n)],t},{});return Object.keys(h).sort(function(e,t){return h[e]-h[t]})}var rt={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,o=e.name;if(!t.modifiersData[o]._skip){for(var i=n.mainAxis,s=void 0===i||i,a=n.altAxis,r=void 0===a||a,l=n.fallbackPlacements,c=n.padding,d=n.boundary,p=n.rootBoundary,u=n.altBoundary,h=n.flipVariations,g=void 0===h||h,m=n.allowedAutoPlacements,f=t.options.placement,b=_e(f),y=l||(b===f||!g?[Qe(f)]:function(e){if(_e(e)===re)return[];var t=Qe(e);return[je(e),t,je(t)]}(f)),A=[f].concat(y).reduce(function(e,n){return e.concat(_e(n)===re?at(t,{placement:n,boundary:d,rootBoundary:p,padding:c,flipVariations:g,allowedAutoPlacements:m}):n)},[]),E=t.rects.reference,v=t.rects.popper,_=new Map,L=!0,I=A[0],T=0;T=0,w=S?"width":"height",C=st(t,{placement:x,boundary:d,rootBoundary:p,altBoundary:u,padding:c}),O=S?N?se:ae:N?ie:oe;E[w]>v[w]&&(O=Qe(O));var P=Qe(O),R=[];if(s&&R.push(C[k]<=0),r&&R.push(C[O]<=0,C[P]<=0),R.every(function(e){return e})){I=x,L=!1;break}_.set(x,R)}if(L)for(var D=function(e){var t=A.find(function(t){var n=_.get(t);if(n)return n.slice(0,e).every(function(e){return e})});if(t)return I=t,"break"},M=g?3:1;M>0;M--){if("break"===D(M))break}t.placement!==I&&(t.modifiersData[o]._skip=!0,t.placement=I,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function lt(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function ct(e){return[oe,se,ie,ae].some(function(t){return e[t]>=0})}var dt={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,o=e.name,i=n.offset,s=void 0===i?[0,0]:i,a=ge.reduce(function(e,n){return e[n]=function(e,t,n){var o=_e(e),i=[ae,oe].indexOf(o)>=0?-1:1,s="function"==typeof n?n(Object.assign({},t,{placement:e})):n,a=s[0],r=s[1];return a=a||0,r=(r||0)*i,[ae,se].indexOf(o)>=0?{x:r,y:a}:{x:a,y:r}}(n,t.rects,s),e},{}),r=a[t.placement],l=r.x,c=r.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[o]=a}};var pt={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,o=e.name,i=n.mainAxis,s=void 0===i||i,a=n.altAxis,r=void 0!==a&&a,l=n.boundary,c=n.rootBoundary,d=n.altBoundary,p=n.padding,u=n.tether,h=void 0===u||u,g=n.tetherOffset,m=void 0===g?0:g,f=st(t,{boundary:l,rootBoundary:c,padding:p,altBoundary:d}),b=_e(t.placement),y=Fe(t.placement),A=!y,E=Be(b),v="x"===E?"y":"x",_=t.modifiersData.popperOffsets,L=t.rects.reference,I=t.rects.popper,T="function"==typeof m?m(Object.assign({},t.rects,{placement:t.placement})):m,x="number"==typeof T?{mainAxis:T,altAxis:T}:Object.assign({mainAxis:0,altAxis:0},T),k=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,N={x:0,y:0};if(_){if(s){var S,w="y"===E?oe:ae,C="y"===E?ie:se,O="y"===E?"height":"width",P=_[E],R=P+f[w],D=P-f[C],M=h?-I[O]/2:0,B=y===ce?L[O]:I[O],$=y===ce?-I[O]:-L[O],G=t.elements.arrow,U=h&&G?Se(G):{width:0,height:0},H=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},F=H[w],K=H[C],W=$e(0,L[O],U[O]),Y=A?L[O]/2-M-W-F-x.mainAxis:B-W-F-x.mainAxis,z=A?-L[O]/2+M+W+K+x.mainAxis:$+W+K+x.mainAxis,Q=t.elements.arrow&&Me(t.elements.arrow),V=Q?"y"===E?Q.clientTop||0:Q.clientLeft||0:0,j=null!=(S=null==k?void 0:k[E])?S:0,q=P+z-j,X=$e(h?Ie(R,P+Y-j-V):R,P,h?Le(D,q):D);_[E]=X,N[E]=X-P}if(r){var Z,J="x"===E?oe:ae,ee="x"===E?ie:se,te=_[v],ne="y"===v?"height":"width",re=te+f[J],le=te-f[ee],de=-1!==[oe,ae].indexOf(b),pe=null!=(Z=null==k?void 0:k[v])?Z:0,ue=de?re:te-L[ne]-I[ne]-pe+x.altAxis,he=de?te+L[ne]+I[ne]-pe-x.altAxis:le,ge=h&&de?function(e,t,n){var o=$e(e,t,n);return o>n?n:o}(ue,te,he):$e(h?ue:re,te,h?he:le);_[v]=ge,N[v]=ge-te}t.modifiersData[o]=N}},requiresIfExists:["offset"]};function ut(e,t,n){void 0===n&&(n=!1);var o,i,s=Ae(t),a=Ae(t)&&function(e){var t=e.getBoundingClientRect(),n=Te(t.width)/e.offsetWidth||1,o=Te(t.height)/e.offsetHeight||1;return 1!==n||1!==o}(t),r=Pe(t),l=Ne(e,a,n),c={scrollLeft:0,scrollTop:0},d={x:0,y:0};return(s||!s&&!n)&&(("body"!==fe(t)||Ze(r))&&(c=(o=t)!==be(o)&&Ae(o)?{scrollLeft:(i=o).scrollLeft,scrollTop:i.scrollTop}:qe(o)),Ae(t)?((d=Ne(t,!0)).x+=t.clientLeft,d.y+=t.clientTop):r&&(d.x=Xe(r))),{x:l.left+c.scrollLeft-d.x,y:l.top+c.scrollTop-d.y,width:l.width,height:l.height}}function ht(e){var t=new Map,n=new Set,o=[];function i(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach(function(e){if(!n.has(e)){var o=t.get(e);o&&i(o)}}),o.push(e)}return e.forEach(function(e){t.set(e.name,e)}),e.forEach(function(e){n.has(e.name)||i(e)}),o}var gt={placement:"bottom",modifiers:[],strategy:"absolute"};function mt(){for(var e=arguments.length,t=new Array(e),n=0;n-1}function Tt(e,t){return"function"==typeof e?e.apply(void 0,t):e}function xt(e,t){return 0===t?e:function(o){clearTimeout(n),n=setTimeout(function(){e(o)},t)};var n}function kt(e){return[].concat(e)}function Nt(e,t){-1===e.indexOf(t)&&e.push(t)}function St(e){return[].slice.call(e)}function wt(e){return Object.keys(e).reduce(function(t,n){return void 0!==e[n]&&(t[n]=e[n]),t},{})}function Ct(){return document.createElement("div")}function Ot(e){return["Element","Fragment"].some(function(t){return It(e,t)})}function Pt(e){return Ot(e)?[e]:function(e){return It(e,"NodeList")}(e)?St(e):Array.isArray(e)?e:St(document.querySelectorAll(e))}function Rt(e,t){e.forEach(function(e){e&&(e.style.transitionDuration=t+"ms")})}function Dt(e,t){e.forEach(function(e){e&&e.setAttribute("data-state",t)})}function Mt(e,t,n){var o=t+"EventListener";["transitionend","webkitTransitionEnd"].forEach(function(t){e[o](t,n)})}function Bt(e,t){for(var n=t;n;){var o;if(e.contains(n))return!0;n=null==n.getRootNode||null==(o=n.getRootNode())?void 0:o.host}return!1}var $t={isTouch:!1},Gt=0;function Ut(){$t.isTouch||($t.isTouch=!0,window.performance&&document.addEventListener("mousemove",Ht))}function Ht(){var e=performance.now();e-Gt<20&&($t.isTouch=!1,document.removeEventListener("mousemove",Ht)),Gt=e}function Ft(){var e,t=document.activeElement;if((e=t)&&e._tippy&&e._tippy.reference===e){var n=t._tippy;t.blur&&!n.state.isVisible&&t.blur()}}var Kt=!!("undefined"!=typeof window&&"undefined"!=typeof document)&&!!window.msCrypto,Wt=Object.assign({appendTo:_t,aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},{animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},{allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999}),Yt=Object.keys(Wt);function zt(e){var t=(e.plugins||[]).reduce(function(t,n){var o,i=n.name,s=n.defaultValue;i&&(t[i]=void 0!==e[i]?e[i]:null!=(o=Wt[i])?o:s);return t},{});return Object.assign({},e,t)}function Qt(e,t){var n=Object.assign({},t,{content:Tt(t.content,[e])},t.ignoreAttributes?{}:function(e,t){return(t?Object.keys(zt(Object.assign({},Wt,{plugins:t}))):Yt).reduce(function(t,n){var o=(e.getAttribute("data-tippy-"+n)||"").trim();if(!o)return t;if("content"===n)t[n]=o;else try{t[n]=JSON.parse(o)}catch(e){t[n]=o}return t},{})}(e,t.plugins));return n.aria=Object.assign({},Wt.aria,n.aria),n.aria={expanded:"auto"===n.aria.expanded?t.interactive:n.aria.expanded,content:"auto"===n.aria.content?t.interactive?null:"describedby":n.aria.content},n}function Vt(e,t){e.innerHTML=t}function jt(e){var t=Ct();return!0===e?t.className=At:(t.className=Et,Ot(e)?t.appendChild(e):Vt(t,e)),t}function qt(e,t){Ot(t.content)?(Vt(e,""),e.appendChild(t.content)):"function"!=typeof t.content&&(t.allowHTML?Vt(e,t.content):e.textContent=t.content)}function Xt(e){var t=e.firstElementChild,n=St(t.children);return{box:t,content:n.find(function(e){return e.classList.contains(yt)}),arrow:n.find(function(e){return e.classList.contains(At)||e.classList.contains(Et)}),backdrop:n.find(function(e){return e.classList.contains("tippy-backdrop")})}}function Zt(e){var t=Ct(),n=Ct();n.className="tippy-box",n.setAttribute("data-state","hidden"),n.setAttribute("tabindex","-1");var o=Ct();function i(n,o){var i=Xt(t),s=i.box,a=i.content,r=i.arrow;o.theme?s.setAttribute("data-theme",o.theme):s.removeAttribute("data-theme"),"string"==typeof o.animation?s.setAttribute("data-animation",o.animation):s.removeAttribute("data-animation"),o.inertia?s.setAttribute("data-inertia",""):s.removeAttribute("data-inertia"),s.style.maxWidth="number"==typeof o.maxWidth?o.maxWidth+"px":o.maxWidth,o.role?s.setAttribute("role",o.role):s.removeAttribute("role"),n.content===o.content&&n.allowHTML===o.allowHTML||qt(a,e.props),o.arrow?r?n.arrow!==o.arrow&&(s.removeChild(r),s.appendChild(jt(o.arrow))):s.appendChild(jt(o.arrow)):r&&s.removeChild(r)}return o.className=yt,o.setAttribute("data-state","hidden"),qt(o,e.props),t.appendChild(n),n.appendChild(o),i(e.props,e.props),{popper:t,onUpdate:i}}Zt.$$tippy=!0;var Jt=1,en=[],tn=[];function nn(e,t){var n,o,i,s,a,r,l,c,d=Qt(e,Object.assign({},Wt,zt(wt(t)))),p=!1,u=!1,h=!1,g=!1,m=[],f=xt(Q,d.interactiveDebounce),b=Jt++,y=(c=d.plugins).filter(function(e,t){return c.indexOf(e)===t}),A={id:b,reference:e,popper:Ct(),popperInstance:null,props:d,state:{isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},plugins:y,clearDelayTimeouts:function(){clearTimeout(n),clearTimeout(o),cancelAnimationFrame(i)},setProps:function(t){if(A.state.isDestroyed)return;P("onBeforeUpdate",[A,t]),Y();var n=A.props,o=Qt(e,Object.assign({},n,wt(t),{ignoreAttributes:!0}));A.props=o,W(),n.interactiveDebounce!==o.interactiveDebounce&&(M(),f=xt(Q,o.interactiveDebounce));n.triggerTarget&&!o.triggerTarget?kt(n.triggerTarget).forEach(function(e){e.removeAttribute("aria-expanded")}):o.triggerTarget&&e.removeAttribute("aria-expanded");D(),O(),_&&_(n,o);A.popperInstance&&(X(),J().forEach(function(e){requestAnimationFrame(e._tippy.popperInstance.forceUpdate)}));P("onAfterUpdate",[A,t])},setContent:function(e){A.setProps({content:e})},show:function(){var e=A.state.isVisible,t=A.state.isDestroyed,n=!A.state.isEnabled,o=$t.isTouch&&!A.props.touch,i=Lt(A.props.duration,0,Wt.duration);if(e||t||n||o)return;if(N().hasAttribute("disabled"))return;if(P("onShow",[A],!1),!1===A.props.onShow(A))return;A.state.isVisible=!0,k()&&(v.style.visibility="visible");O(),U(),A.state.isMounted||(v.style.transition="none");if(k()){var s=w();Rt([s.box,s.content],0)}r=function(){var e;if(A.state.isVisible&&!g){if(g=!0,v.offsetHeight,v.style.transition=A.props.moveTransition,k()&&A.props.animation){var t=w(),n=t.box,o=t.content;Rt([n,o],i),Dt([n,o],"visible")}R(),D(),Nt(tn,A),null==(e=A.popperInstance)||e.forceUpdate(),P("onMount",[A]),A.props.animation&&k()&&function(e,t){F(e,t)}(i,function(){A.state.isShown=!0,P("onShown",[A])})}},function(){var e,t=A.props.appendTo,n=N();e=A.props.interactive&&t===_t||"parent"===t?n.parentNode:Tt(t,[n]);e.contains(v)||e.appendChild(v);A.state.isMounted=!0,X()}()},hide:function(){var e=!A.state.isVisible,t=A.state.isDestroyed,n=!A.state.isEnabled,o=Lt(A.props.duration,1,Wt.duration);if(e||t||n)return;if(P("onHide",[A],!1),!1===A.props.onHide(A))return;A.state.isVisible=!1,A.state.isShown=!1,g=!1,p=!1,k()&&(v.style.visibility="hidden");if(M(),H(),O(!0),k()){var i=w(),s=i.box,a=i.content;A.props.animation&&(Rt([s,a],o),Dt([s,a],"hidden"))}R(),D(),A.props.animation?k()&&function(e,t){F(e,function(){!A.state.isVisible&&v.parentNode&&v.parentNode.contains(v)&&t()})}(o,A.unmount):A.unmount()},hideWithInteractivity:function(e){S().addEventListener("mousemove",f),Nt(en,f),f(e)},enable:function(){A.state.isEnabled=!0},disable:function(){A.hide(),A.state.isEnabled=!1},unmount:function(){A.state.isVisible&&A.hide();if(!A.state.isMounted)return;Z(),J().forEach(function(e){e._tippy.unmount()}),v.parentNode&&v.parentNode.removeChild(v);tn=tn.filter(function(e){return e!==A}),A.state.isMounted=!1,P("onHidden",[A])},destroy:function(){if(A.state.isDestroyed)return;A.clearDelayTimeouts(),A.unmount(),Y(),delete e._tippy,A.state.isDestroyed=!0,P("onDestroy",[A])}};if(!d.render)return A;var E=d.render(A),v=E.popper,_=E.onUpdate;v.setAttribute("data-tippy-root",""),v.id="tippy-"+A.id,A.popper=v,e._tippy=A,v._tippy=A;var L=y.map(function(e){return e.fn(A)}),I=e.hasAttribute("aria-expanded");return W(),D(),O(),P("onCreate",[A]),d.showOnCreate&&ee(),v.addEventListener("mouseenter",function(){A.props.interactive&&A.state.isVisible&&A.clearDelayTimeouts()}),v.addEventListener("mouseleave",function(){A.props.interactive&&A.props.trigger.indexOf("mouseenter")>=0&&S().addEventListener("mousemove",f)}),A;function T(){var e=A.props.touch;return Array.isArray(e)?e:[e,0]}function x(){return"hold"===T()[0]}function k(){var e;return!(null==(e=A.props.render)||!e.$$tippy)}function N(){return l||e}function S(){var e,t,n=N().parentNode;return n?null!=(t=kt(n)[0])&&null!=(e=t.ownerDocument)&&e.body?t.ownerDocument:document:document}function w(){return Xt(v)}function C(e){return A.state.isMounted&&!A.state.isVisible||$t.isTouch||s&&"focus"===s.type?0:Lt(A.props.delay,e?0:1,Wt.delay)}function O(e){void 0===e&&(e=!1),v.style.pointerEvents=A.props.interactive&&!e?"":"none",v.style.zIndex=""+A.props.zIndex}function P(e,t,n){var o;(void 0===n&&(n=!0),L.forEach(function(n){n[e]&&n[e].apply(n,t)}),n)&&(o=A.props)[e].apply(o,t)}function R(){var t=A.props.aria;if(t.content){var n="aria-"+t.content,o=v.id;kt(A.props.triggerTarget||e).forEach(function(e){var t=e.getAttribute(n);if(A.state.isVisible)e.setAttribute(n,t?t+" "+o:o);else{var i=t&&t.replace(o,"").trim();i?e.setAttribute(n,i):e.removeAttribute(n)}})}}function D(){!I&&A.props.aria.expanded&&kt(A.props.triggerTarget||e).forEach(function(e){A.props.interactive?e.setAttribute("aria-expanded",A.state.isVisible&&e===N()?"true":"false"):e.removeAttribute("aria-expanded")})}function M(){S().removeEventListener("mousemove",f),en=en.filter(function(e){return e!==f})}function B(t){if(!$t.isTouch||!h&&"mousedown"!==t.type){var n=t.composedPath&&t.composedPath()[0]||t.target;if(!A.props.interactive||!Bt(v,n)){if(kt(A.props.triggerTarget||e).some(function(e){return Bt(e,n)})){if($t.isTouch)return;if(A.state.isVisible&&A.props.trigger.indexOf("click")>=0)return}else P("onClickOutside",[A,t]);!0===A.props.hideOnClick&&(A.clearDelayTimeouts(),A.hide(),u=!0,setTimeout(function(){u=!1}),A.state.isMounted||H())}}}function $(){h=!0}function G(){h=!1}function U(){var e=S();e.addEventListener("mousedown",B,!0),e.addEventListener("touchend",B,vt),e.addEventListener("touchstart",G,vt),e.addEventListener("touchmove",$,vt)}function H(){var e=S();e.removeEventListener("mousedown",B,!0),e.removeEventListener("touchend",B,vt),e.removeEventListener("touchstart",G,vt),e.removeEventListener("touchmove",$,vt)}function F(e,t){var n=w().box;function o(e){e.target===n&&(Mt(n,"remove",o),t())}if(0===e)return t();Mt(n,"remove",a),Mt(n,"add",o),a=o}function K(t,n,o){void 0===o&&(o=!1),kt(A.props.triggerTarget||e).forEach(function(e){e.addEventListener(t,n,o),m.push({node:e,eventType:t,handler:n,options:o})})}function W(){var e;x()&&(K("touchstart",z,{passive:!0}),K("touchend",V,{passive:!0})),(e=A.props.trigger,e.split(/\s+/).filter(Boolean)).forEach(function(e){if("manual"!==e)switch(K(e,z),e){case"mouseenter":K("mouseleave",V);break;case"focus":K(Kt?"focusout":"blur",j);break;case"focusin":K("focusout",j)}})}function Y(){m.forEach(function(e){var t=e.node,n=e.eventType,o=e.handler,i=e.options;t.removeEventListener(n,o,i)}),m=[]}function z(e){var t,n=!1;if(A.state.isEnabled&&!q(e)&&!u){var o="focus"===(null==(t=s)?void 0:t.type);s=e,l=e.currentTarget,D(),!A.state.isVisible&&It(e,"MouseEvent")&&en.forEach(function(t){return t(e)}),"click"===e.type&&(A.props.trigger.indexOf("mouseenter")<0||p)&&!1!==A.props.hideOnClick&&A.state.isVisible?n=!0:ee(e),"click"===e.type&&(p=!n),n&&!o&&te(e)}}function Q(e){var t=e.target,n=N().contains(t)||v.contains(t);if("mousemove"!==e.type||!n){var o=J().concat(v).map(function(e){var t,n=null==(t=e._tippy.popperInstance)?void 0:t.state;return n?{popperRect:e.getBoundingClientRect(),popperState:n,props:d}:null}).filter(Boolean);(function(e,t){var n=t.clientX,o=t.clientY;return e.every(function(e){var t=e.popperRect,i=e.popperState,s=e.props.interactiveBorder,a=i.placement.split("-")[0],r=i.modifiersData.offset;if(!r)return!0;var l="bottom"===a?r.top.y:0,c="top"===a?r.bottom.y:0,d="right"===a?r.left.x:0,p="left"===a?r.right.x:0,u=t.top-o+l>s,h=o-t.bottom-c>s,g=t.left-n+d>s,m=n-t.right-p>s;return u||h||g||m})})(o,e)&&(M(),te(e))}}function V(e){q(e)||A.props.trigger.indexOf("click")>=0&&p||(A.props.interactive?A.hideWithInteractivity(e):te(e))}function j(e){A.props.trigger.indexOf("focusin")<0&&e.target!==N()||A.props.interactive&&e.relatedTarget&&v.contains(e.relatedTarget)||te(e)}function q(e){return!!$t.isTouch&&x()!==e.type.indexOf("touch")>=0}function X(){Z();var t=A.props,n=t.popperOptions,o=t.placement,i=t.offset,s=t.getReferenceClientRect,a=t.moveTransition,l=k()?Xt(v).arrow:null,c=s?{getBoundingClientRect:s,contextElement:s.contextElement||N()}:e,d={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(e){var t=e.state;if(k()){var n=w().box;["placement","reference-hidden","escaped"].forEach(function(e){"placement"===e?n.setAttribute("data-placement",t.placement):t.attributes.popper["data-popper-"+e]?n.setAttribute("data-"+e,""):n.removeAttribute("data-"+e)}),t.attributes.popper={}}}},p=[{name:"offset",options:{offset:i}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!a}},d];k()&&l&&p.push({name:"arrow",options:{element:l,padding:3}}),p.push.apply(p,(null==n?void 0:n.modifiers)||[]),A.popperInstance=bt(c,v,Object.assign({},n,{placement:o,onFirstUpdate:r,modifiers:p}))}function Z(){A.popperInstance&&(A.popperInstance.destroy(),A.popperInstance=null)}function J(){return St(v.querySelectorAll("[data-tippy-root]"))}function ee(e){A.clearDelayTimeouts(),e&&P("onTrigger",[A,e]),U();var t=C(!0),o=T(),i=o[0],s=o[1];$t.isTouch&&"hold"===i&&s&&(t=s),t?n=setTimeout(function(){A.show()},t):A.show()}function te(e){if(A.clearDelayTimeouts(),P("onUntrigger",[A,e]),A.state.isVisible){if(!(A.props.trigger.indexOf("mouseenter")>=0&&A.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(e.type)>=0&&p)){var t=C(!1);t?o=setTimeout(function(){A.state.isVisible&&A.hide()},t):i=requestAnimationFrame(function(){A.hide()})}}else H()}}function on(e,t){void 0===t&&(t={});var n=Wt.plugins.concat(t.plugins||[]);document.addEventListener("touchstart",Ut,vt),window.addEventListener("blur",Ft);var o=Object.assign({},t,{plugins:n}),i=Pt(e).reduce(function(e,t){var n=t&&nn(t,o);return n&&e.push(n),e},[]);return Ot(e)?i[0]:i}on.defaultProps=Wt,on.setDefaultProps=function(e){Object.keys(e).forEach(function(t){Wt[t]=e[t]})},on.currentInput=$t,Object.assign({},ve,{effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow)}}),on.setDefaultProps({render:Zt});const sn={mainTRC:2.4,get mainTRCencode(){return 1/this.mainTRC},sRco:.2126729,sGco:.7151522,sBco:.072175,normBG:.56,normTXT:.57,revTXT:.62,revBG:.65,blkThrs:.022,blkClmp:1.414,scaleBoW:1.14,scaleWoB:1.14,loBoWoffset:.027,loWoBoffset:.027,deltaYmin:5e-4,loClip:.1,mFactor:1.9468554433171,get mFactInv(){return 1/this.mFactor},mOffsetIn:.0387393816571401,mExpAdj:.283343396420869,get mExp(){return this.mExpAdj/this.blkClmp},mOffsetOut:.312865795870758};function an(e,t=2){const n=[["Lc",100,200,300,400,500,600,700,800,900],[0,999,999,999,999,999,999,999,999,999],[10,999,999,999,999,999,999,999,999,999],[15,777,777,777,777,777,777,777,777,777],[20,777,777,777,777,777,777,777,777,777],[25,777,777,777,120,120,108,96,96,96],[30,777,777,120,108,108,96,72,72,72],[35,777,120,108,96,72,60,48,48,48],[40,120,108,96,60,48,42,32,32,32],[45,108,96,72,42,32,28,24,24,24],[50,96,72,60,32,28,24,21,21,21],[55,80,60,48,28,24,21,18,18,18],[60,72,48,42,24,21,18,16,16,18],[65,68,46,32,21.75,19,17,15,16,18],[70,64,44,28,19.5,18,16,14.5,16,18],[75,60,42,24,18,16,15,14,16,18],[80,56,38.25,23,17.25,15.81,14.81,14,16,18],[85,52,34.5,22,16.5,15.625,14.625,14,16,18],[90,48,32,21,16,15.5,14.5,14,16,18],[95,45,28,19.5,15.5,15,14,13.5,16,18],[100,42,26.5,18.5,15,14.5,13.5,13,16,18],[105,39,25,18,14.5,14,13,12,16,18],[110,36,24,18,14,13,12,11,16,18],[115,34.5,22.5,17.25,12.5,11.875,11.25,10.625,14.5,16.5],[120,33,21,16.5,11,10.75,10.5,10.25,13,15],[125,32,20,16,10,10,10,10,12,14]],o=[["∆Lc",100,200,300,400,500,600,700,800,900],[0,0,0,0,0,0,0,0,0,0],[10,0,0,0,0,0,0,0,0,0],[15,0,0,0,0,0,0,0,0,0],[20,0,0,0,0,0,0,0,0,0],[25,0,0,0,12,12,12,24,24,24],[30,0,0,12,12,36,36,24,24,24],[35,0,12,12,36,24,18,16,16,16],[40,12,12,24,18,16,14,8,8,8],[45,12,24,12,10,4,4,3,3,3],[50,16,12,12,4,4,3,3,3,3],[55,8,12,6,4,3,3,2,2,0],[60,4,2,10,2.25,2,1,1,0,0],[65,4,2,4,2.25,1,1,.5,0,0],[70,4,2,4,1.5,2,1,.5,0,0],[75,4,3.75,1,.75,.188,.188,0,0,0],[80,4,3.75,1,.75,.188,.188,0,0,0],[85,4,2.5,1,.5,.125,.125,0,0,0],[90,3,4,1.5,.5,.5,.5,.5,0,0],[95,3,1.5,1,.5,.5,.5,.5,0,0],[100,3,1.5,.5,.5,.5,.5,1,0,0],[105,3,1,0,.5,1,1,1,0,0],[110,1.5,1.5,.75,1.5,1.125,.75,.375,1.5,1.5],[115,1.5,1.5,.75,1.5,1.125,.75,.375,1.5,1.5],[120,1,1,.5,1,.75,.5,.25,1,1],[125,0,0,0,0,0,0,0,0,0]];let i=[e.toFixed(t),0,0,0,0,0,0,0,0,0];i.length;let s=777;const a=0==(e=Math.abs(e))?1:.2*e|0;let r=0,l=.2*(e-n[a][r]);for(r++;r<10;r++)s=n[a][r],i[r]=s>400?s:e<14.5?999:e<29.5?777:s>24?Math.round(s-o[a][r]*l):s-.5*(2*o[a][r]*l|0);return i}function rn(e=[0,0,0]){function t(e){return Math.pow(e/255,sn.mainTRC)}return sn.sRco*t(e[0])+sn.sGco*t(e[1])+sn.sBco*t(e[2])}function ln(e=[0,0,0,1],t=[0,0,0],n=!0){e[3]=Math.max(Math.min(e[3],1),0);let o=1-e[3],i=[0,0,0,1,!0];for(let s=0;s<3;s++)i[s]=t[s]*o+e[s]*e[3],n&&(i[s]=Math.min(Math.round(i[s]),255));return i}function cn(e){const t=parseInt(e,10);if(!Number.isNaN(t))return t;return{lighter:100,normal:400,bold:700,bolder:900}[e]||400}function dn(e,t){const n=e;let o,i,s,a=1;if(n.startsWith("rgb")){const e=n.match(/[\d.]+/g).map(Number);[o,i,s,a]=4===e.length?e:[...e,1]}else{if(n.startsWith("color(rec2020")||n.startsWith("color(display-p3"))return"unsupported";const e=document.createElement("canvas").getContext("2d");e.fillStyle=n,e.fillRect(0,0,1,1);const t=e.getImageData(0,0,1,1);[o,i,s,a]=t.data,a=(a/255).toFixed(2)}return t&&t<1&&(a=(a*t).toFixed(2)),[o,i,s,Number(a)]}function pn(e){let t=e;for(;t&&1===t.nodeType;){if(o.Global.shadowDetection){const e=t.getRootNode();if(e instanceof ShadowRoot){let n=t;for(;n&&n!==e.host;){const e=getComputedStyle(n);if(e.backgroundImage&&"none"!==e.backgroundImage)return{type:"image",value:e.backgroundImage};const t=dn(e.backgroundColor);if(0!==t[3]&&"transparent"!==t)return t;n=n.parentElement}return pn(e.host)}}const e=getComputedStyle(t),n=e.backgroundImage;if("none"!==n)return{type:"image",value:n};const i=dn(e.backgroundColor);if(0!==i[3]&&"transparent"!==i){if(i[3]<1){let e=t.parentElement,n="rgba(255, 255, 255, 1)";for(;e&&1===e.nodeType;){if(n=getComputedStyle(e).backgroundColor,"rgba(0, 0, 0, 0)"!==n)break;"rgba(0, 0, 0, 0)"===n&&"HTML"===e.tagName&&(n="rgba(255, 255, 255, 1)"),e=e.parentElement}return ln(i,dn(n||"rgba(255, 255, 255, 1)"))}return i}if("HTML"===t.tagName)return[255,255,255];t=t.parentNode}return[255,255,255]}function un(e){const t=e.slice(0,3).map(e=>{const t=e/255;return t<=.03928?t/12.92:((t+.055)/1.055)**2.4});return.2126*t[0]+.7152*t[1]+.0722*t[2]}function hn(e,t){return(Math.max(e,t)+.05)/(Math.min(e,t)+.05)}function gn(e,t){return e.map((e,n)=>{if(n<3){const n=Math.ceil(e+(255-e)*t);return n>=255?255:n}return e})}function mn(e,t){return e.map((e,n)=>{if(n<3){const n=Math.floor(e*(1-t));return n<=0?0:n}return e})}function fn(e){const[t,n,o]=e.map(e=>Math.min(255,Math.max(0,e)));return`#${t.toString(16).padStart(2,"0")}${n.toString(16).padStart(2,"0")}${o.toString(16).padStart(2,"0")}`}function bn(e){if(o.Global.contrastAPCA)return Math.abs(Number(e.toFixed(1)));const t=Math.round(100*e)/100;return Number.isInteger(t)?`${t}:1`:`${t.toFixed(2)}:1`}function yn(e,t){let n;const i=ln(e,t).slice(0,4);if(o.Global.contrastAPCA){n=function(e,t,n=-1){const o=[0,1.1];if(isNaN(e)||isNaN(t)||Math.min(e,t)o[1])return 0;let i=0,s=0,a="BoW";return e=e>sn.blkThrs?e:e+Math.pow(sn.blkThrs-e,sn.blkClmp),t=t>sn.blkThrs?t:t+Math.pow(sn.blkThrs-t,sn.blkClmp),Math.abs(t-e)e?(i=(Math.pow(t,sn.normBG)-Math.pow(e,sn.normTXT))*sn.scaleBoW,s=i-sn.loClip?0:i+sn.loWoBoffset),n<0?100*s:0==n?Math.round(100*Math.abs(s))+""+a+"":Number.isInteger(n)?(100*s).toFixed(n):0)}(rn(i),rn(t))}else{n=hn(un(i),un(t))}return{ratio:n,blendedColor:i}}function An(e,t,n,o){const i=rn(t),s=(e,t)=>i<=.179?gn(e,t):mn(e,t);let a=e,r=yn(a,t),l=an(r.ratio).slice(1);const c=Math.floor(n/100)-1,d=l[c],p=o{const n=yn(e,[0,0,0,1]),o=yn(e,[255,255,255,1]),i=Math.abs(n.ratio)>Math.abs(o.ratio),s=i?[0,0,0,1]:[255,255,255,1],a=an(i?n.ratio:o.ratio).slice(1);return{suggestedColor:s,size:Math.ceil(a[Math.floor(t/100)-1])}})(t,n);if(u.size>o)return{color:fn(u.suggestedColor),size:u.size};let h=e,g=a,m=r.ratio,f=.16;let b=0;if(p)for(;f>=.01;)if(b+=1,a=s(a,f),r=yn(a,t),l=an(r.ratio).slice(1),l[c]<=o&&(g=Math.abs(r.ratio)<=Math.abs(m)?a:g,m=r.ratio,g=a,a=h,f*=.5),h=a,50===b)return{color:fn(u.suggestedColor),size:u.size};return{color:fn(g),size:null}}function En(e){let t;const{color:i,background:s,fontWeight:a,fontSize:r,isLargeText:l,type:c}=e;if(i&&s&&"image"!==s.type&&"text"===c){const c=o.Global.contrastAPCA?An(i,s,a,r):function(e,t,n,o=!1){let i;i=o?n?4.5:7:n?3:4.5;const s=un(e),a=un(t),r=s>a?hn(1,a)>i:hn(0,a)n?gn(e,t):mn(e,t);let c=e,d=c,p=hn(s,a),u=p,h=e,g=.16,m=0;for(;g>=.01;){if(m+=1,m>100)return{color:null};c=l(c,g,r),p=hn(un(c),a),p>=i&&(d=p<=u?c:d,u=p,c=h,g*=.5),h=c}return{color:fn(d)}}(i,s,l,o.Global.contrastAAA);let d;const p='',u=`${c.color}`,h=`${c.size}px`;o.Global.contrastAPCA?c.color&&c.size?d=`${p} ${n._("CONTRAST_APCA")} ${u} ${h}`:c.color?d=`${p} ${n._("CONTRAST_COLOR")} ${u}`:c.size&&(d=`${p} ${n._("CONTRAST_SIZE")} ${h}`):d=null===c.color?`${p} ${n._("NO_SUGGESTION")}`:`${p} ${n._("CONTRAST_COLOR")} ${u}`,t=document.createElement("div"),t.id="advice";const g=e.opacity<1?` ${n.sprintf("CONTRAST_OPACITY")}`:d;t.innerHTML=g}return t}function vn(e,t){const n=e?.querySelector("#contrast-tools");if(n){const{fontSize:n,fontWeight:i,type:s,isLargeText:a}=t,r=e.querySelector("#contrast"),l=e.querySelector("#contrast-preview"),c=e.querySelector("#fg-input"),d=e.querySelector("#bg-input"),p=e.querySelector("#value"),u=e.querySelector("#good"),h=e.querySelector("#apca-table"),g=(e,t)=>{e.forEach(e=>{e.classList.toggle("good-contrast",t),e.classList.toggle("error-badge",!t)})},m=()=>{const e=c.value,t=d.value;[c,d].forEach(e=>e.classList.remove("unknown")),l.style.color=e,l.style.backgroundColor=t,l.style.backgroundImage="none";const m=l.querySelectorAll("svg *");if(1===m.length){const{fill:t,stroke:n}=getComputedStyle(m[0]);m[0].style.opacity=1,"none"!==t&&(m[0].style.fill=e),"none"!==n&&(m[0].style.stroke=e)}const f=yn(dn(e),dn(t)),b=[p,r];if(o.Global.contrastAPCA){const e=f.ratio;p.textContent=bn(e);const t=an(e).slice(1),o=e>=45&&t[0]>=0&&t[0]<=777;let a;switch(s){case"svg-error":case"svg-warning":u.hidden=!o,a=o,g(b,a);break;case"svg-text":u.hidden=!o,a=t.slice(1,7).some(e=>999!==e&&777!==e),g(b,a),function(e,t){const n=e;n.innerHTML="",n.hidden=!1;const o=document.createElement("div");o.classList.add("row");const i=t.slice(1,7);for(let e=0;e=e,g(b,a),u.hidden=!a;break}}}if(!o.Global.contrastAPCA){const e=f.ratio;p.textContent=bn(e);const t=o.Global.contrastAAA,n=e>=3,i=e>=(t?7:4.5),l=e>=(t?4.5:3);switch(s){case"svg-error":case"svg-text":case"svg-warning":u.hidden=!n,g(b,n);break;default:a?(g([p,r],l),u.hidden=!l):(g([p,r],i),u.hidden=!i)}}};c.addEventListener("input",m),d.addEventListener("input",m)}}function _n(e,t,n,o,i,s,a=!1){const{ratio:r,blendedColor:l}=yn(t,n),c=o>=24||o>=18.67&&i>=700;let d;if(a)d=c?r<4.5:r<7;else{d=c?r<3:r>1&&r<4.5}return d?{$el:e,ratio:bn(r),color:l,background:n,fontSize:o,fontWeight:i,isLargeText:c,opacity:s,textUnderline:getComputedStyle(e).textDecorationLine}:null}function Ln(e,t,n,o,i,s){const{ratio:a,blendedColor:r}=yn(t,n);return o{const t=e.shadowRoot.querySelectorAll(".sa11y-btn");t&&i.push(...Array.from(t))});const s=on(i,{interactive:!0,trigger:"mouseenter click",hideOnClick:!1,arrow:!0,offset:[0,8],delay:[0,400],maxWidth:375,theme:"sa11y-theme",placement:"auto-start",allowHTML:!0,role:"dialog",aria:{content:null,expanded:"auto"},appendTo:e,zIndex:2147483645,onShow(e){s.forEach(t=>{t!==e.popper&&t.hide()});const t=e.reference.getRootNode().host;t.setAttribute("data-sa11y-opened","");const i=e.popper.querySelector(".close-btn"),a=()=>{e.hide(),e.reference.focus()};i.addEventListener("click",a);const r=t=>{"Escape"===t.key&&(e.hide(),e.reference.focus())};if(e.popper.addEventListener("keydown",r),!e.popper.hasAttribute("contrast-tools-initialized")){const i=parseInt(t.getAttribute("data-sa11y-annotation"),10),s=window.sa11yCheckComplete.results.find(e=>e.id===i),{contrastDetails:a}=s||{};if(a){const t=e.popper.querySelector("[data-sa11y-contrast-details]"),i=function(e){const{sanitizedText:t,color:i,background:s,fontWeight:a,fontSize:r,ratio:l,textUnderline:c}=e,d=s&&"image"!==s.type,p=d?fn(s):"#000000",u=i?fn(i):"#000000",h=a?`font-weight:${a};`:"",g=r?`font-size:${r}px;`:"",m=c?`text-decoration:${c};`:"",f=i?"":'class="unknown"',b=s&&"image"!==s.type?"":'class="unknown"',y=i?"":`(${n._("UNKNOWN")})`,A=s?"":`(${n._("UNKNOWN")})`;let E;E=o.Global.contrastAPCA?0===Math.abs(l)?0:Math.abs(l)||n._("UNKNOWN"):l||n._("UNKNOWN");const v=document.createElement("div");return v.id="contrast-tools",v.innerHTML=`\n \n
                                    ${n._("CONTRAST")}
                                    \n
                                    ${E}
                                    \n \n \n
                                    ${t}
                                    \n
                                    \n \n \n
                                    `,v}(a);t.appendChild(i),vn(e.popper,a);const s=En(a);s&&t.appendChild(s),e.popper.setAttribute("contrast-tools-initialized",!0)}}let l=!0;e.popper.addEventListener("mousedown",function t(n){l&&n.target.matches('input[type="color"]')&&(e.reference.click(),l=!1,e.popper.removeEventListener("mousedown",t))});const c=()=>{i.removeEventListener("click",a),e.popper.removeEventListener("keydown",r),e.popper.removeEventListener("hidden",c)};e.popper.addEventListener("hidden",c)},onTrigger(e,t){"click"===t.type&&setTimeout(()=>{e.popper.querySelector(".close-btn").focus(),function(e){const t=e.querySelectorAll('a[href]:not([disabled]), button:not([disabled]), input[type="color"]'),n=t[0],o=t[t.length-1];e.addEventListener("keydown",t=>{const i="Tab"===t.key||9===t.keyCode,s=e.getRootNode();i&&(t.shiftKey?s.activeElement===n&&(o.focus(),t.preventDefault()):s.activeElement===o&&(n.focus(),t.preventDefault()))})}(e.popper)},0)},onHide(e){e.popper.querySelector(".close-btn").removeEventListener("click",()=>{e.hide()});e.reference.getRootNode().host.removeAttribute("data-sa11y-opened")}})}}class kn extends HTMLElement{connectedCallback(){const e=e=>({allowHTML:!0,delay:[500,0],trigger:"mouseenter focusin",arrow:!0,placement:"top",theme:"sa11y-theme sa11y-panel",role:"tooltip",aria:{content:null,expanded:null},appendTo:e,zIndex:2147483645}),t=this.attachShadow({mode:"open"}),i=document.createElement("style");i.innerHTML=Tn+z,t.appendChild(i);const s=-1!==navigator.userAgent.indexOf("Mac")?'Option + S':'Alt + S';if(on(o.Panel.skipButton,{...e(t),offset:[0,8],maxWidth:200,content:`${n._("SKIP_TO_ISSUE")} »
                                    ${s}`}),this.object=on(o.Panel.dismissButton,{offset:[0,8],maxWidth:200,...e(t)}),o.Global.developerPlugin){const i=o.Panel.developerItem.querySelector(".info-icon");i&&on(i,{...e(t),triggerTarget:[o.Panel.developerItem],offset:[0,10],maxWidth:250,content:n._("DEVELOPER_DESC")})}if(o.Global.readabilityPlugin){const i=o.Panel.readabilityItem.querySelector(".info-icon");i&&on(i,{...e(t),triggerTarget:[o.Panel.readabilityItem],offset:[0,10],maxWidth:250,content:n._("READABILITY_DESC")})}}}class Nn extends HTMLElement{connectedCallback(){const e=this.attachShadow({mode:"open"}),t=document.createElement("style");t.innerHTML='.instance{display:block;position:relative}.instance-inline{display:inline-block;position:relative;text-align:end}button{border-radius:50%;box-shadow:0 0 16px 0 rgba(0,0,0,.31);cursor:pointer;display:block;padding:0;transition:all .2s ease-in-out;z-index:8888}button,button:after{height:36px;position:absolute;width:36px}button:after{content:"";left:-7px;padding:7px;top:-7px}.warning-btn{margin:20px}.error-btn,.good-btn{margin:10px}.error-btn-text,.good-btn-text,.warning-btn-text{margin:-30px 10px}.error-btn,.error-btn-text{background:50% 50% var(--sa11y-error-svg) no-repeat;background-color:var(--sa11y-error);background-size:22px;border:1px solid var(--sa11y-error)}.error-btn-text:focus,.error-btn-text:hover,.error-btn:focus,.error-btn:hover{background-color:var(--sa11y-error-hover)}.good-btn,.good-btn-text{background:50% 50% var(--sa11y-good) var(--sa11y-good-svg) no-repeat;background-color:var(--sa11y-good);background-size:20px;border:1px solid var(--sa11y-good)}.good-btn-text:focus,.good-btn-text:hover,.good-btn:focus,.good-btn:hover{background-color:var(--sa11y-good-hover)}.warning-btn,.warning-btn-text{background:50% 50% var(--sa11y-warning) var(--sa11y-warning-svg) no-repeat;background-color:var(--sa11y-warning);background-size:24px;border:1px solid var(--sa11y-warning);transform:scaleX(var(--sa11y-icon-direction))}.warning-btn-text:focus,.warning-btn-text:hover,.warning-btn:focus,.warning-btn:hover{background-color:var(--sa11y-warning-hover)}.sa11y-btn:active,.sa11y-btn:focus{box-shadow:0 0 0 5px var(--sa11y-focus-color);outline:0}@media screen and (forced-colors:active){.sa11y-btn{border:1px solid transparent!important;forced-color-adjust:none;outline:3px solid transparent!important}}'+z,e.appendChild(t)}}const Sn=e=>{document.querySelectorAll("sa11y-annotation").forEach(t=>{const n=((e,t,n)=>{let o=e;for(;null!==o;){if(window.getComputedStyle(o).getPropertyValue(t)===n)return o;o=o.parentElement}return null})(t,"overflow","hidden");if(null!==n){if(e){if(e.split(",").flatMap(e=>[...document.querySelectorAll(e)]).includes(n))return}n.setAttribute("data-sa11y-overflow","")}})};class wn extends HTMLElement{connectedCallback(){this.attachShadow({mode:"open"})}}class Cn extends HTMLElement{connectedCallback(){const e=this.attachShadow({mode:"open"}),t=document.createElement("style");t.textContent="\n span.heading-label {\n background-color: #777678;\n background-image: linear-gradient(to bottom right, #b629ce, #16aec2);\n border-radius: 5px;\n border: 1px solid #36a5c3;\n color: white;\n display: inline-block;\n font-family: var(--sa11y-font-face);\n font-weight: 500;\n font-size: 18px;\n line-height: normal;\n letter-spacing: normal;\n margin: -5px 0 0 5px;\n padding: 3px;\n position: absolute;\n text-shadow: 1px 1px black;\n -webkit-text-fill-color: white;\n word-break: keep-all;\n z-index: 200;\n }\n @media screen and (forced-colors: active) {\n span.heading-label {\n border: 2px solid transparent;\n }\n }",e.appendChild(t)}}const On=(e,t)=>{if(0===e.offsetTop){const o=e.getRootNode().host,i=E(o,"display","none"),s=parseInt(o.getAttribute("data-sa11y-annotation"),10),a=C(t.find(e=>e.id===s));(e=>{const t=E(e.getRootNode().host,"display","none");if(null!==t){L(t.previousElementSibling||t.parentNode)}})(e);const r=e.getAttribute("data-tippy-content");if(x(`${n._("NOT_VISIBLE")}`,r,a),(()=>{const e=document.querySelector("sa11y-tooltips").shadowRoot.querySelector("button");null!==e&&e.click()})(),i){const e=i.previousElementSibling,{parentNode:t}=i;return e?v(e).top-150:v(t).top-150}}else T(),o.Panel.skipButton.focus();return v(e).top-150};let Pn=-1;const Rn=()=>{const e=_.getItem("sa11y-latest-dismissed");null!==e&&(Pn=parseInt(e,10)-1),_.removeItem("sa11y-latest-dismissed");const t=i("[data-sa11y-opened]","root");t[0]&&(Pn=parseInt(t[0].getAttribute("data-sa11y-position"),10))},Dn=e=>{Rn();const t=P.Annotations.Array;Pn>=t.length-1&&(Pn=-1);const n=t[Pn+1].shadowRoot.querySelector("button"),i=On(n,e);window.scrollTo({top:i,behavior:`${o.Global.scrollBehaviour}`}),0!==n.offsetTop&&(n.focus(),n.click()),Pn+=1};function Mn(e,t){P.Annotations.Array.length&&!o.Panel.skipButton.hasAttribute("disabled")&&(!e.altKey||"KeyS"!==e.code&&"Period"!==e.code?!e.altKey||"KeyW"!==e.code&&"Comma"!==e.code||(e.preventDefault(),(e=>{Rn();const t=P.Annotations.Array;Pn<=0&&(Pn=t.length);const n=P.Annotations.Array[Pn-1].shadowRoot.querySelector("button"),i=On(n,e);window.scrollTo({top:i,behavior:`${o.Global.scrollBehaviour}`}),0!==n.offsetTop&&(n.focus(),n.click()),Pn-=1,-1===Pn&&(Pn=P.Annotations.Array.length-1)})(t)):(e.preventDefault(),Dn(t)))}let Bn,$n;function Gn(e,t){return P.Found.Images.forEach(i=>{const s="noAria"===r(i)?i.getAttribute("alt"):r(i),a=i.closest(t.imageWithinLightbox?`a[href]:not(${t.imageWithinLightbox})`:"a[href]"),c=i.getAttribute("src")?i.getAttribute("src"):i.getAttribute("srcset"),d=a?f(a,o.Exclusions.LinkSpan).textContent:"",u=t.linkIgnoreStrings?d.replace(t.linkIgnoreStrings,""):d,g=a?y(u).length:0;if("true"!==i.getAttribute("aria-hidden")&&(1!==i.height||1!==i.width||!p(i))){if(a&&"true"===a.getAttribute("aria-hidden")){const o="-1"===a.getAttribute("tabindex");return void(t.checks.HIDDEN_FOCUSABLE&&!o&&e.push({element:i,type:t.checks.HIDDEN_FOCUSABLE.type||"error",content:n.sprintf(t.checks.HIDDEN_FOCUSABLE.content||"HIDDEN_FOCUSABLE"),dismiss:I(`IMGHIDDENFOCUSABLE${c}`),dismissAll:!!t.checks.HIDDEN_FOCUSABLE.dismissAll&&"LINK_HIDDEN_FOCUSABLE",developer:t.checks.HIDDEN_FOCUSABLE.developer||!0}))}if(null===s)if(a){const o=0===g?t.checks.MISSING_ALT_LINK:t.checks.MISSING_ALT_LINK_HAS_TEXT,s=0===g?"MISSING_ALT_LINK":"MISSING_ALT_LINK_HAS_TEXT";o&&e.push({element:i,type:o.type||"error",content:n.sprintf(o.content||s),dismiss:I(`${s+c+g}`),dismissAll:!!o.dismissAll&&s,developer:o.developer||!1})}else t.checks.MISSING_ALT&&e.push({element:i,type:t.checks.MISSING_ALT.type||"error",content:n.sprintf(t.checks.MISSING_ALT.content||"MISSING_ALT"),dismiss:I(`IMGNOALT${c}`),dismissAll:!!t.checks.MISSING_ALT.dismissAll&&"MISSING_ALT",developer:t.checks.MISSING_ALT.developer||!1});else{const o=y(h(s)),r=(e=>{const o=[null,null,null];[".avif",".png",".jpg",".jpeg",".webp",".gif",".tiff",".svg",".heif",".heic","http"].forEach(t=>{if(-1!==e.toLowerCase().indexOf(t.toLowerCase()))o[0]=t;else{const t=/\b\d{2,6}\s*x\s*\d{2,6}\b/,n=e.toLowerCase().match(t);n&&([o[0]]=n)}}),(t.susAltStopWords?t.susAltStopWords.split(",").map(e=>e.trim()):n._("SUS_ALT_STOPWORDS")).forEach(t=>{const n=e.toLowerCase().indexOf(t);n>-1&&n<6&&(o[1]=t)}),n._("PLACEHOLDER_ALT_STOPWORDS").forEach(t=>{e.length===t.length&&e.toLowerCase().indexOf(t)>=0&&(o[2]=t)});const{extraPlaceholderStopWords:i}=t;i.length&&i.split(",").map(e=>e.trim()).forEach(t=>{const n=e.toLowerCase().indexOf(t);n>-1&&n<6&&(o[2]=t)});return o})(o),d=i.getAttribute("aria-label")||i.getAttribute("aria-labelledby"),p=i.getAttribute("title"),u=""===s||" "===s,m=i.closest("figure"),f=m?.querySelector("figcaption"),b=f?f.textContent.trim():"",E=t.checks.LINK_IMAGE_LONG_ALT.maxLength||250,v=t.checks.IMAGE_ALT_TOO_LONG.maxLength||250;if(d&&""===o)return void(t.checks.MISSING_ALT&&e.push({element:i,type:t.checks.MISSING_ALT.type||"error",content:n.sprintf(t.checks.MISSING_ALT.content||"MISSING_ALT"),dismiss:I(`IMGNOALTARIA${c}`),dismissAll:!!t.checks.MISSING_ALT.dismissAll&&"MISSING_ALT",developer:t.checks.MISSING_ALT.developer||!1}));if(u){const o=t.checks.IMAGE_DECORATIVE_CAROUSEL.sources,s=o?i.closest(o):"";if(s){const o=s.querySelectorAll("img"),a=1===o.length?t.checks.IMAGE_DECORATIVE:t.checks.IMAGE_DECORATIVE_CAROUSEL,r=1===o.length?"IMAGE_DECORATIVE":"IMAGE_DECORATIVE_CAROUSEL";a&&e.push({element:i,type:a.type||"warning",content:n.sprintf(a.content||r),dismiss:I(r+c),dismissAll:!!a.dismissAll&&r,developer:a.developer||!1})}else if(a){const o=0===g?t.checks.LINK_IMAGE_NO_ALT_TEXT:t.checks.LINK_IMAGE_TEXT,s=0===g?"LINK_IMAGE_NO_ALT_TEXT":"LINK_IMAGE_TEXT";o&&e.push({element:i,type:o.type||(0===g?"error":"good"),content:n.sprintf(o.content||s),dismiss:I(`${s+c+g}`),dismissAll:!!o.dismissAll&&s,developer:o.developer||!1})}else if(m){const o=f&&b.length?t.checks.IMAGE_FIGURE_DECORATIVE:t.checks.IMAGE_DECORATIVE,s=f&&b.length?"IMAGE_FIGURE_DECORATIVE":"IMAGE_DECORATIVE";o&&e.push({element:i,type:o.type||"warning",content:n.sprintf(o.content||s),dismiss:I(`${s+c+b}`),dismissAll:!!o.dismissAll&&s,developer:o.developer||!1})}else t.checks.IMAGE_DECORATIVE&&e.push({element:i,type:t.checks.IMAGE_DECORATIVE.type||"warning",content:n.sprintf(t.checks.IMAGE_DECORATIVE.content||"IMAGE_DECORATIVE"),dismiss:I(`DECIMAGE${c}`),dismissAll:!!t.checks.IMAGE_DECORATIVE.dismissAll&&"IMAGE_DECORATIVE",developer:t.checks.IMAGE_DECORATIVE.developer||!1});return}if(null!==r[0]){const s=a?t.checks.LINK_ALT_FILE_EXT:t.checks.ALT_FILE_EXT,l=a?"LINK_ALT_FILE_EXT":"ALT_FILE_EXT";s&&e.push({element:i,type:s.type||"error",content:n.sprintf(s.content||l,r[0],o),dismiss:I(`${l+c+o}`),dismissAll:!!s.dismissAll&&l,developer:s.developer||!1})}else if(null!==r[2]){const s=a?t.checks.LINK_PLACEHOLDER_ALT:t.checks.ALT_PLACEHOLDER,r=a?"LINK_PLACEHOLDER_ALT":"ALT_PLACEHOLDER";s&&e.push({element:i,type:s.type||"error",content:n.sprintf(s.content||r,o),dismiss:I(`${r+c+o}`),dismissAll:!!s.dismissAll&&r,developer:s.developer||!1})}else if(null!==r[1]){const s=a?t.checks.LINK_SUS_ALT:t.checks.SUS_ALT,l=a?"LINK_SUS_ALT":"SUS_ALT";s&&e.push({element:i,type:s.type||"warning",content:n.sprintf(s.content||l,r[1],o),dismiss:I(`${l+c+o}`),dismissAll:!!s.dismissAll&&l,developer:s.developer||!1})}else if(a?s.length>E:s.length>v){const r=a?t.checks.LINK_IMAGE_LONG_ALT:t.checks.IMAGE_ALT_TOO_LONG,l=a?"LINK_IMAGE_LONG_ALT":"IMAGE_ALT_TOO_LONG",d=A(o,600);r&&e.push({element:i,type:r.type||"warning",content:n.sprintf(r.content||l,s.length,d),dismiss:I(`${l+c+o}`),dismissAll:!!r.dismissAll&&l,developer:r.developer||!1})}else if(a){const s=0===g?t.checks.LINK_IMAGE_ALT:t.checks.LINK_IMAGE_ALT_AND_TEXT,r=0===g?"LINK_IMAGE_ALT":"LINK_IMAGE_ALT_AND_TEXT";if(s){const t=h(y(l(a))),d=0===g?n.sprintf("LINK_IMAGE_ALT",o):`${n.sprintf("LINK_IMAGE_ALT_AND_TEXT",o,t)} ${n.sprintf("ACC_NAME_TIP")}`;e.push({element:i,type:s.type||"warning",content:s.content?n.sprintf(s.content,o,t):d,dismiss:I(`${r+c+o}`),dismissAll:!!s.dismissAll&&r,developer:s.developer||!1})}}else if(m){!!f&&b.toLowerCase()===o.trim().toLowerCase()?t.checks.IMAGE_FIGURE_DUPLICATE_ALT&&e.push({element:i,type:t.checks.IMAGE_FIGURE_DUPLICATE_ALT.type||"warning",content:n.sprintf(t.checks.IMAGE_FIGURE_DUPLICATE_ALT.content||"IMAGE_FIGURE_DUPLICATE_ALT",o),dismiss:I(`FIGDUPLICATE${c}`),dismissAll:!!t.checks.IMAGE_FIGURE_DUPLICATE_ALT.dismissAll&&"IMAGE_FIGURE_DUPLICATE_ALT",developer:t.checks.IMAGE_FIGURE_DUPLICATE_ALT.developer||!1}):t.checks.IMAGE_PASS&&e.push({element:i,type:t.checks.IMAGE_PASS.type||"good",content:n.sprintf(t.checks.IMAGE_PASS.content||"IMAGE_PASS",o),dismiss:I(`FIGIMGPASS${c+o}`),dismissAll:!!t.checks.IMAGE_PASS.dismissAll&&"IMAGE_PASS",developer:t.checks.IMAGE_PASS.developer||!1})}else t.checks.IMAGE_PASS&&(i.closest('button, [role="button"]')||e.push({element:i,type:t.checks.IMAGE_PASS.type||"good",content:n.sprintf(t.checks.IMAGE_PASS.content||"IMAGE_PASS",o),dismiss:I(`IMAGEPASS${c+o}`),dismissAll:!!t.checks.IMAGE_PASS.dismissAll&&"IMAGE_PASS",developer:t.checks.IMAGE_PASS.developer||!1}));p?.toLowerCase()===s.toLowerCase()&&t.checks.DUPLICATE_TITLE&&e.push({element:i,type:t.checks.DUPLICATE_TITLE.type||"warning",content:n.sprintf(t.checks.DUPLICATE_TITLE.content||"DUPLICATE_TITLE"),inline:!0,dismiss:I(`ALTDUPLICATETITLE${o}`),dismissAll:!!t.checks.DUPLICATE_TITLE.dismissAll&&"DUPLICATE_TITLE",developer:t.checks.DUPLICATE_TITLE.developer||!1})}}}),e}function Un(e,t){const i=t.linkStopWords?[...n._("PARTIAL_ALT_STOPWORDS"),...t.linkStopWords.split(",").map(e=>e.trim())]:n._("PARTIAL_ALT_STOPWORDS"),s=e=>e.replace(/[^\w\s./]/g,"").replace(/\s+/g," ").trim(),a=(e,t)=>{const n=e.replace(/\./g,"").toLowerCase();let o=null;return t.forEach(e=>{n.length===e.length&&n.indexOf(e.toLowerCase())>=0&&(o=e)}),o},r={};return P.Found.Links.forEach(c=>{const d=function(e){let t=e.getAttribute("href");return t=y(t).toLowerCase(),t.endsWith("/")&&(t=t.slice(0,-1)),t=t.replace(/^https?:\/\/(www\.)?/,""),t=t.replace(/\.(html|php|htm|asp|aspx)$/i,""),t}(c),p=l(c,o.Exclusions.LinkSpan),u=y(t.linkIgnoreStrings?p.replace(t.linkIgnoreStrings,""):p),g=(e=>{const t=[null,null,null,null];return t[0]=a(e,i),n._("CLICK").forEach(n=>(new RegExp(`\\b${n}\\b`,"i").test(e)&&(t[1]=n),!1)),["doi.org/","dl.acm.org/","link.springer.com/","pubmed.ncbi.nlm.nih.gov/","scholar.google.com/","ieeexplore.ieee.org/","researchgate.net/publication/","sciencedirect.com/science/article/"].forEach(n=>(e.toLowerCase().indexOf(n)>=0&&(t[2]=n),!1)),["www.","http"].forEach(n=>(e.toLowerCase().startsWith(n)&&(t[3]=n),!1)),[".edu/",".com/",".net/",".org/",".us/",".ca/",".de/",".icu/",".uk/",".ru/",".info/",".top/",".xyz/",".tk/",".cn/",".ga/",".cf/",".nl/",".io/",".fr/",".pe/",".nz/",".pt/",".es/",".pl/",".ua/"].forEach(n=>(e.toLowerCase().indexOf(n)>=0&&(t[3]=n),!1)),t})(s(u)),m=1===u.length&&/[^a-zA-Z0-9]/g.test(u),A=u.match(/([<>↣↳←→↓«»↴]+)/),E=A?A[1]:null,v=c.getAttribute("title"),_="true"===c.getAttribute("aria-hidden"),L="-1"===c.getAttribute("tabindex"),T=c.querySelector(":scope [aria-labelledby], :scope [aria-label]")||c.getAttribute("aria-labelledby")||c.getAttribute("aria-label"),x=c.querySelector(":scope [aria-labelledby]")||c.getAttribute("aria-labelledby"),k=n._("NEW_WINDOW_PHRASES").some(e=>u.toLowerCase().includes(e)||b(c).toLowerCase().includes(e)),N=n._("CLICK").some(e=>new RegExp(`\\b${e}\\b`,"i").test(c.textContent)),S=["pdf","doc","docx","word","mp3","ppt","text","pptx","txt","exe","dmg","rtf","windows","macos","csv","xls","xlsx","mp4","mov","avi","zip"].concat(n._("FILE_TYPE_PHRASES")).some(e=>u.toLowerCase().includes(e)||b(c).toLowerCase().includes(e)),w=c.matches("\n a[href$='.pdf'],\n a[href$='.doc'],\n a[href$='.docx'],\n a[href$='.zip'],\n a[href$='.mp3'],\n a[href$='.txt'],\n a[href$='.exe'],\n a[href$='.dmg'],\n a[href$='.rtf'],\n a[href$='.pptx'],\n a[href$='.ppt'],\n a[href$='.xls'],\n a[href$='.xlsx'],\n a[href$='.csv'],\n a[href$='.mp4'],\n a[href$='.mov'],\n a[href$='.avi']\n "),C=u.replace(/'|"|-|\.|\s+/g,"").toLowerCase();if(!c.querySelectorAll("img").length){if(_)L||t.checks.HIDDEN_FOCUSABLE&&e.push({element:c,type:t.checks.HIDDEN_FOCUSABLE.type||"error",content:n.sprintf(t.checks.HIDDEN_FOCUSABLE.content||"HIDDEN_FOCUSABLE"),inline:!0,position:"afterend",dismiss:I(`LINKHIDDENFOCUS${d+C}`),dismissAll:!!t.checks.HIDDEN_FOCUSABLE.dismissAll&&"LINK_HIDDEN_FOCUSABLE",developer:t.checks.HIDDEN_FOCUSABLE.developer||!0});else if(!d&&""!==d||0!==u.length)if(null!==g[0])t.checks.LINK_STOPWORD&&e.push({element:c,type:t.checks.LINK_STOPWORD.type||"error",content:t.checks.LINK_STOPWORD.content?n.sprintf(t.checks.LINK_STOPWORD.content,g[0]):n.sprintf("LINK_STOPWORD",g[0])+n.sprintf("LINK_TIP"),inline:!0,position:"afterend",dismiss:I(`LINKSTOPWORD${d+C}`),dismissAll:!!t.checks.LINK_STOPWORD.dismissAll&&"LINK_STOPWORD",developer:t.checks.LINK_STOPWORD.developer||!1});else if(null!==g[2])u.length>8&&t.checks.LINK_DOI&&e.push({element:c,type:t.checks.LINK_DOI.type||"warning",content:n.sprintf(t.checks.LINK_DOI.content||"LINK_DOI"),inline:!0,dismiss:I(`LINKDOI${d+C}`),dismissAll:!!t.checks.LINK_DOI.dismissAll&&"LINK_DOI",developer:t.checks.LINK_DOI.developer||!1});else if(null!==g[3])u.length>(t.checks.LINK_URL.maxLength||40)&&t.checks.LINK_URL&&e.push({element:c,type:t.checks.LINK_URL.type||"warning",content:t.checks.LINK_URL.content?n.sprintf(t.checks.LINK_URL.content):n.sprintf("LINK_URL")+n.sprintf("LINK_TIP"),inline:!0,dismiss:I(`LINKURLNAME${d+C}`),dismissAll:!!t.checks.LINK_URL.dismissAll&&"LINK_URL",developer:t.checks.LINK_URL.developer||!1});else if(T){const r=h(u),l=f(c,o.Exclusions.LinkSpan),p=t.linkIgnoreStrings?b(l).replace(t.linkIgnoreStrings,""):b(l),g=s(p),m=a(g,i);t.checks.LINK_STOPWORD_ARIA&&null!==m?e.push({element:c,type:t.checks.LINK_STOPWORD_ARIA.type||"warning",content:t.checks.LINK_STOPWORD_ARIA.content?n.sprintf(t.checks.LINK_STOPWORD_ARIA.content,m,r):n.sprintf("LINK_STOPWORD_ARIA",m,r)+n.sprintf("LINK_TIP"),inline:!0,dismiss:I(`LINKSTOPWORDARIA${d+C}`),dismissAll:!!t.checks.LINK_STOPWORD_ARIA.dismissAll&&" LINK_STOPWORD_ARIA",developer:t.checks.LINK_STOPWORD_ARIA.developer||!0}):t.checks.LINK_LABEL&&e.push({element:c,type:t.checks.LINK_LABEL.type||"good",content:t.checks.LINK_LABEL.content?n.sprintf(t.checks.LINK_LABEL.content,r):`${n.sprintf("ACC_NAME",r)} ${n.sprintf("ACC_NAME_TIP")}`,inline:!0,position:"afterend",dismiss:I(`LINKGOOD${d+C}`),dismissAll:!!t.checks.LINK_LABEL.dismissAll&&"LINK_LABEL",developer:t.checks.LINK_LABEL.developer||!1});const y=O(c);t.checks.LABEL_IN_NAME&&y&&0!==c.textContent.length&&e.push({element:c,type:t.checks.LABEL_IN_NAME.type||"warning",content:n.sprintf(t.checks.LABEL_IN_NAME.content||"LABEL_IN_NAME",r),inline:!0,position:"afterend",dismiss:I(`LINKLABELNAME${d+C}`),dismissAll:!!t.checks.LABEL_IN_NAME.dismissAll&&"BTN_LABEL_IN_NAME",developer:t.checks.LABEL_IN_NAME.developer||!0})}else E?t.checks.LINK_SYMBOLS&&e.push({element:c,type:t.checks.LINK_SYMBOLS.type||"warning",content:n.sprintf(t.checks.LINK_SYMBOLS.content||"LINK_SYMBOLS",E),inline:!0,dismiss:I(`LINKSYMBOL${d+C}`),dismissAll:!!t.checks.LINK_SYMBOLS.dismissAll&&"LINK_SYMBOLS",developer:t.checks.LINK_SYMBOLS.developer||!1}):m&&t.checks.LINK_EMPTY&&e.push({element:c,type:t.checks.LINK_EMPTY.type||"error",content:n.sprintf(t.checks.LINK_EMPTY.content||"LINK_EMPTY"),inline:!0,position:"afterend",dismiss:I(`LINKCHAR${d}`),dismissAll:!!t.checks.LINK_EMPTY.dismissAll&&"LINK_EMPTY",developer:t.checks.LINK_EMPTY.developer||!1});else x?t.checks.LINK_EMPTY_LABELLEDBY&&e.push({element:c,type:t.checks.LINK_EMPTY_LABELLEDBY.type||"error",content:n.sprintf(t.checks.LINK_EMPTY_LABELLEDBY.content||"LINK_EMPTY_LABELLEDBY"),inline:!0,position:"afterend",dismiss:I(`LINKEMPTYLABELLEDBY${d}`),dismissAll:!!t.checks.LINK_EMPTY_LABELLEDBY.dismissAll&&"LINK_EMPTY_LABELLEDBY",developer:t.checks.LINK_EMPTY_LABELLEDBY.developer||!0}):c.children.length?t.checks.LINK_EMPTY_NO_LABEL&&e.push({element:c,type:t.checks.LINK_EMPTY_NO_LABEL.type||"error",content:n.sprintf(t.checks.LINK_EMPTY_NO_LABEL.content||"LINK_EMPTY_NO_LABEL"),inline:!0,position:"afterend",dismiss:I(`LINKEMPTYNOLABEL${d}`),dismissAll:!!t.checks.LINK_EMPTY_NO_LABEL.dismissAll&&"LINK_EMPTY_NO_LABEL",developer:t.checks.LINK_EMPTY_NO_LABEL.developer||!1}):t.checks.LINK_EMPTY&&e.push({element:c,type:t.checks.LINK_EMPTY.type||"error",content:n.sprintf(t.checks.LINK_EMPTY.content||"LINK_EMPTY"),inline:!0,position:"afterend",dismiss:I(`LINKEMPTY${d}`),dismissAll:!!t.checks.LINK_EMPTY.dismissAll&&"LINK_EMPTY",developer:t.checks.LINK_EMPTY.developer||!1});(null!==g[1]||N)&&t.checks.LINK_CLICK_HERE&&e.push({element:c,type:t.checks.LINK_CLICK_HERE.type||"warning",content:t.checks.LINK_CLICK_HERE.content?n.sprintf(t.checks.LINK_CLICK_HERE.content):n.sprintf("LINK_CLICK_HERE")+n.sprintf("LINK_TIP"),inline:!0,dismiss:I(`LINKCLICKHERE${d+C}`),dismissAll:!!t.checks.LINK_CLICK_HERE.dismissAll&&"LINK_CLICK_HERE",developer:t.checks.LINK_CLICK_HERE.developer||!1}),0!==b(c).length&&v?.toLowerCase()===u.toLowerCase()&&t.checks.DUPLICATE_TITLE&&e.push({element:c,type:t.checks.DUPLICATE_TITLE.type||"warning",content:n.sprintf(t.checks.DUPLICATE_TITLE.content||"DUPLICATE_TITLE"),inline:!0,dismiss:I(`LINKDUPLICATETITLE${d+C}`),dismissAll:!!t.checks.DUPLICATE_TITLE.dismissAll&&"DUPLICATE_TITLE",developer:t.checks.DUPLICATE_TITLE.developer||!1})}if(t.linksAdvancedPlugin&&0!==C.length){if(r[C]&&!r[d]){if(t.checks.LINK_IDENTICAL_NAME){const o=h(u);e.push({element:c,type:t.checks.LINK_IDENTICAL_NAME.type||"warning",content:t.checks.LINK_IDENTICAL_NAME.content?n.sprintf(t.checks.LINK_IDENTICAL_NAME.content,o):`${n.sprintf("LINK_IDENTICAL_NAME",o)} ${n.sprintf("ACC_NAME_TIP")}`,inline:!0,dismiss:I(`LINKSEEN${d+C}`),dismissAll:!!t.checks.LINK_IDENTICAL_NAME.dismissAll&&"LINK_IDENTICAL_NAME",developer:t.checks.LINK_IDENTICAL_NAME.developer||!1})}}else r[C]=!0,r[d]=!0;"_blank"!==c.getAttribute("target")?.toLowerCase()||w||k||t.checks.LINK_NEW_TAB&&e.push({element:c,type:t.checks.LINK_NEW_TAB.type||"warning",content:n.sprintf(t.checks.LINK_NEW_TAB.content||"LINK_NEW_TAB"),inline:!0,dismiss:I(`LINKNEWTAB${d+C}`),dismissAll:!!t.checks.LINK_NEW_TAB.dismissAll&&"LINK_NEW_TAB",developer:t.checks.LINK_NEW_TAB.developer||!1}),w&&!S&&t.checks.LINK_FILE_EXT&&e.push({element:c,type:t.checks.LINK_FILE_EXT.type||"warning",content:n.sprintf(t.checks.LINK_FILE_EXT.content||"LINK_FILE_EXT"),inline:!0,dismiss:I(`LINKEXT${d+C}`),dismissAll:!!t.checks.LINK_FILE_EXT.dismissAll&&"LINK_FILE_EXT",developer:t.checks.LINK_FILE_EXT.developer||!1})}}),e}function Hn(e,t){if(t.checks.QA_BAD_LINK&&P.Found.CustomErrorLinks.forEach(o=>{e.push({element:o,type:t.checks.QA_BAD_LINK.type||"error",content:n.sprintf(t.checks.QA_BAD_LINK.content||"QA_BAD_LINK",o),inline:!0,dismiss:I(o.tagName+o.textContent),dismissAll:!!t.checks.QA_BAD_LINK.dismissAll&&"QA_BAD_LINK",developer:t.checks.QA_BAD_LINK.developer||!1})}),t.checks.QA_STRONG_ITALICS&&P.Found.StrongItalics.forEach(o=>{const i=b(o);0!==i.length&&i.length>400&&e.push({element:o.parentNode,type:t.checks.QA_STRONG_ITALICS.type||"warning",content:n.sprintf(t.checks.QA_STRONG_ITALICS.content||"QA_STRONG_ITALICS"),dismiss:I(o.tagName+o.textContent),dismissAll:!!t.checks.QA_STRONG_ITALICS.dismissAll&&"QA_STRONG_ITALICS",developer:t.checks.QA_STRONG_ITALICS.developer||!1})}),P.Found.Links.forEach(i=>{if(i.hasAttribute("href")){const s=i.getAttribute("href"),a=i.matches(o.Global.documentSources),r=i.matches('a[href$=".pdf"], a[href*=".pdf?"]');if(t.checks.QA_IN_PAGE_LINK){const o="button"===i.getAttribute("role")||i.hasAttribute("aria-haspopup")||i.hasAttribute("aria-expanded")||i.hasAttribute("onclick"),a=0!==b(i).length;if((s.startsWith("#")||""===s)&&!o&&a){const o=s.substring(1),a=i.getAttribute("aria-controls");document.getElementById(o)||document.getElementById(decodeURIComponent(o))||document.getElementById(encodeURIComponent(o))||document.getElementById(a)||document.querySelector(`a[name="${o}"]`)||e.push({element:i,type:t.checks.QA_IN_PAGE_LINK.type||"error",content:n.sprintf(t.checks.QA_IN_PAGE_LINK.content||"QA_IN_PAGE_LINK"),inline:!0,dismiss:I(`QAINPAGE${s}`),dismissAll:!!t.checks.QA_IN_PAGE_LINK.dismissAll&&"QA_IN_PAGE_LINK",developer:t.checks.QA_IN_PAGE_LINK.developer||!1})}}t.checks.QA_DOCUMENT&&a?e.push({element:i,type:t.checks.QA_DOCUMENT.type||"warning",content:n.sprintf(t.checks.QA_DOCUMENT.content||"QA_DOCUMENT"),inline:!0,dismiss:I(`DOC${s}`),dismissAll:!!t.checks.QA_DOCUMENT.dismissAll&&"QA_DOCUMENT",developer:t.checks.QA_DOCUMENT.developer||!1}):t.checks.QA_PDF&&r&&e.push({element:i,type:t.checks.QA_PDF.type||"warning",content:n.sprintf(t.checks.QA_PDF.content||"QA_PDF"),inline:!0,dismiss:I(`PDF${s}`),dismissAll:!!t.checks.QA_PDF.dismissAll&&"QA_PDF",developer:t.checks.QA_PDF.developer||!1})}}),t.checks.QA_BLOCKQUOTE&&P.Found.Blockquotes.forEach(o=>{const i=b(o);if(0!==i.length&&i.length<25){const s=h(i);e.push({element:o,type:t.checks.QA_BLOCKQUOTE.type||"warning",content:n.sprintf(t.checks.QA_BLOCKQUOTE.content||"QA_BLOCKQUOTE",s),dismiss:I(`BLOCKQUOTE${s}`),dismissAll:!!t.checks.QA_BLOCKQUOTE.dismissAll&&"QA_BLOCKQUOTE",developer:t.checks.QA_BLOCKQUOTE.developer||!1})}}),P.Found.Tables.forEach(o=>{if(!1===p(o)){const i=o.querySelectorAll("th"),s=o.querySelectorAll("h1, h2, h3, h4, h5, h6"),a=I(`TABLE${o.textContent}`);t.checks.TABLES_MISSING_HEADINGS&&0===i.length&&e.push({element:o,type:t.checks.TABLES_MISSING_HEADINGS.type||"error",content:n.sprintf(t.checks.TABLES_MISSING_HEADINGS.content||"TABLES_MISSING_HEADINGS"),dismiss:a,dismissAll:!!t.checks.TABLES_MISSING_HEADINGS.dismissAll&&"TABLES_MISSING_HEADINGS",developer:t.checks.TABLES_MISSING_HEADINGS.developer||!1}),t.checks.TABLES_SEMANTIC_HEADING&&s.length>0&&s.forEach(o=>{e.push({element:o,type:t.checks.TABLES_SEMANTIC_HEADING.type||"error",content:n.sprintf(t.checks.TABLES_SEMANTIC_HEADING.content||"TABLES_SEMANTIC_HEADING"),dismiss:a,dismissAll:!!t.checks.TABLES_SEMANTIC_HEADING.dismissAll&&"TABLES_SEMANTIC_HEADING",developer:t.checks.TABLES_SEMANTIC_HEADING.developer||!1})}),i.forEach(o=>{t.checks.TABLES_EMPTY_HEADING&&0===o.textContent.trim().length&&e.push({element:o,type:t.checks.TABLES_EMPTY_HEADING.type||"error",content:n.sprintf(t.checks.TABLES_EMPTY_HEADING.content||"TABLES_EMPTY_HEADING"),position:"afterbegin",dismiss:a,dismissAll:!!t.checks.TABLES_EMPTY_HEADING.dismissAll&&"TABLES_EMPTY_HEADING",developer:t.checks.TABLES_EMPTY_HEADING.developer||!1})})}}),t.checks.QA_FAKE_HEADING){const o=(o,i)=>{e.push({element:o,type:t.checks.QA_FAKE_HEADING.type||"warning",content:n.sprintf(t.checks.QA_FAKE_HEADING.content||"QA_FAKE_HEADING",i),dismiss:I(`BOLD${i}`),inline:!0,dismissAll:!!t.checks.QA_FAKE_HEADING.dismissAll&&"QA_FAKE_HEADING",developer:t.checks.QA_FAKE_HEADING.developer||!1})},i=e=>{const t=e.previousElementSibling;if(!t)return!1;return["H1","H2","H3","H4","H5","H6"].includes(t.tagName)},s='h1, h2, h3, h4, h5, h6, [role="heading"][aria-level], blockquote, table',a=e=>{const t=getComputedStyle(e).fontSize.replace("px",""),n=b(e),a=null===n.match(/[.;?!"]/),r=n.length>=4&&n.length<=120;if(t>=24&&!e.closest(s)&&r&&a&&!i(e)){const t=h(n);o(e,t)}},r=e=>{if(/^(|)/i.test(e.innerHTML.trim())&&!e.closest(s)){const t=e.querySelector("strong, b"),n=b(t),i=null===n.match(/[.:;?!"']/);if(n.length>=3&&n.length<=120&&i){const i=f(e,["strong","b"]).textContent.trim().length;if(0!==i&&i<=250)return;const s=h(n);o(t,s)}}};P.Found.Paragraphs.forEach(e=>{a(e),r(e)})}if(t.checks.QA_FAKE_LIST){const o=new RegExp(/(([023456789][\d\s])|(1\d))/,""),i=new RegExp(/(^[aA1αаΑ]|[^\p{Alphabetic}\s])[-\s.)]/,"u"),s=new RegExp(/\p{Extended_Pictographic}/,"u"),a=["a","A","α","Α","а","А","1"],r=/[([{#]/,l={2:"1",b:"a",B:"A","β":"α","Β":"Α","б":"а","Б":"А"},c=e=>e.replace(/^b|^B|^б|^Б|^β|^В|^2/,e=>l[e]);let d="",p="",u=!1;P.Found.Paragraphs.forEach((l,h)=>{let g=!1,m=!1;p=p||b(l).replace("(","");const f=p.substring(0,2),y=f.match(i),A=f.match(o),E=f.match(s),v=r.test(f.charAt(0));if(f.length>0&&f!==d&&!A&&(y||E||v)){const o=P.Found.Paragraphs[h+1];if(o){if(g=b(o).replace("(","").substring(0,2),a.includes(g?.toLowerCase().trim()))return;const e=c(g);y?"A "!==f&&f===e&&(m=!0):E&&!u&&e.match(s)&&(m=!0,u=!0)}if(!m){let e=l?.querySelector("br")?.nextSibling?.nodeValue;if(e){e=e.replace(/<\/?[^>]+(>|$)/g,"").trim().substring(0,2);(r.test(e.charAt(0))||f===c(e)||!u&&e.match(s))&&(m=!0)}}m?(e.push({element:l,type:t.checks.QA_FAKE_LIST.type||"warning",content:n.sprintf(t.checks.QA_FAKE_LIST.content||"QA_FAKE_LIST",f),dismiss:I(`LIST${l.textContent}`),dismissAll:!!t.checks.QA_FAKE_LIST.dismissAll&&"QA_FAKE_LIST",developer:t.checks.QA_FAKE_LIST.developer||!1}),d=f):d=""}p=g?"":g})}if(t.checks.QA_UPPERCASE){const o=o=>{let i="";"LI"===o.tagName?o.childNodes.forEach(e=>{3===e.nodeType&&(i+=e.textContent)}):i=b(o);const s=i.match(/([A-Z]{2,}[ ])([A-Z]{2,}[ ])([A-Z]{2,}[ ])([A-Z]{2,})/g);s&&s[0].length>10&&e.push({element:o,type:t.checks.QA_UPPERCASE.type||"warning",content:n.sprintf(t.checks.QA_UPPERCASE.content||"QA_UPPERCASE"),dismiss:I(`UPPERCASE${i}`),dismissAll:!!t.checks.QA_UPPERCASE.dismissAll&&"QA_UPPERCASE",developer:t.checks.QA_UPPERCASE.developer||!1})};P.Found.Paragraphs.forEach(e=>o(e)),P.Found.Headings.forEach(e=>o(e)),P.Found.Lists.forEach(e=>o(e)),P.Found.Blockquotes.forEach(e=>o(e))}const i=o=>{const i=getComputedStyle(o),{textDecorationLine:s,textAlign:a,fontSize:r}=i;!t.checks.QA_UNDERLINE||"underline"!==s||o.closest("[onclick]")||o.closest("a[href]")||o.closest("ABBR")||(o=>{e.push({element:o,type:t.checks.QA_UNDERLINE.type||"warning",content:n.sprintf(t.checks.QA_UNDERLINE.content||"QA_UNDERLINE"),inline:!0,dismiss:I(`UNDERLINE${o.textContent}`),dismissAll:!!t.checks.QA_UNDERLINE.dismissAll&&"QA_UNDERLINE",developer:t.checks.QA_UNDERLINE.developer||!1})})(o);const l=t.checks.QA_SMALL_TEXT.fontSize||10,c=parseFloat(r),d=!((o.parentElement?parseFloat(getComputedStyle(o.parentElement).fontSize):null)===c)&&c>1&&c<=l;t.checks.QA_SMALL_TEXT&&d&&(o=>{e.push({element:o,type:t.checks.QA_SMALL_TEXT.type||"warning",content:n.sprintf(t.checks.QA_SMALL_TEXT.content||"QA_SMALL_TEXT"),dismiss:I(`SMALL${o.textContent}`),dismissAll:!!t.checks.QA_SMALL_TEXT.dismissAll&&"QA_SMALL_TEXT",developer:t.checks.QA_SMALL_TEXT.developer||!1})})(o);const p=(o.parentElement?getComputedStyle(o.parentElement).textAlign:null)===a;t.checks.QA_JUSTIFY&&"justify"===a&&!p&&(o=>{e.push({element:o,type:t.checks.QA_JUSTIFY.type||"warning",content:n.sprintf(t.checks.QA_JUSTIFY.content||"QA_JUSTIFY"),dismiss:I(`JUSTIFIED${o.textContent}`),dismissAll:!!t.checks.QA_JUSTIFY.dismissAll&&"QA_JUSTIFY",developer:t.checks.QA_JUSTIFY.developer||!1})})(o)};if(t.checks.QA_UNDERLINE||t.checks.QA_JUSTIFY||t.checks.QA_SMALL_TEXT)for(let e=0;e3===e.nodeType).map(e=>e.textContent).join("").trim().length&&i(t)}return t.checks.QA_SUBSCRIPT&&P.Found.Subscripts.forEach(o=>{const i=b(o);i.length>=80&&e.push({element:o,type:t.checks.QA_SUBSCRIPT.type||"warning",content:n.sprintf(t.checks.QA_SUBSCRIPT.content||"QA_SUBSCRIPT"),inline:!0,dismiss:I(o.tagName+i),dismissAll:!!t.checks.QA_SUBSCRIPT.dismissAll&&"QA_SUBSCRIPT",developer:t.checks.QA_SUBSCRIPT.developer||!1})}),t.checks.QA_NESTED_COMPONENTS&&P.Found.NestedComponents.forEach(o=>{const i=t.checks.QA_NESTED_COMPONENTS.sources||'[role="tablist"], details';o.querySelector(i)&&e.push({element:o,type:t.checks.QA_NESTED_COMPONENTS.type||"warning",content:n.sprintf(t.checks.QA_NESTED_COMPONENTS.content||"QA_NESTED_COMPONENTS"),dismiss:I(`NESTED${o.textContent}`),dismissAll:!!t.checks.QA_NESTED_COMPONENTS.dismissAll&&"QA_NESTED_COMPONENTS",developer:t.checks.QA_NESTED_COMPONENTS.developer||!1})}),e}e.Lang=n,e.Sa11y=class{constructor(e){const s={...t,...e,checks:{...t.checks,...e.checks}};this.initialize=()=>{var e;(()=>{const{doNotRun:e}=s;return e.trim().length>0&&document.querySelector(e)})()||(customElements.define("sa11y-heading-label",Cn),customElements.define("sa11y-heading-anchor",wn),customElements.define("sa11y-annotation",Nn),customElements.define("sa11y-tooltips",xn),customElements.define("sa11y-panel-tooltips",kn),customElements.define("sa11y-control-panel",V),customElements.define("sa11y-console-error",Q),o.initializeGlobal(s),o.initializeReadability(s),o.initializeExclusions(s),s.developerChecksOnByDefault&&(null===_.getItem("sa11y-developer")||s.checkAllHideToggles)&&_.setItem("sa11y-developer","On"),e=()=>{if(s.headless)this.checkAll(),_.removeItem("sa11y-dismissed");else{const i=_.getItem("sa11y-position"),{panelPosition:a}=s;!s.showMovePanelToggle||i&&!i.includes("top")==!a.includes("top")||_.setItem("sa11y-position",a);const r=new V;document.body.appendChild(r),function(e,t){o.Global.showMovePanelToggle&&(o.Panel.movePanelToggle.onclick=async()=>{const e=_.getItem("sa11y-position"),[t,n]=e.includes("top")?["top-right","top-left"]:["right","left"],i=e===t?n:t;_.setItem("sa11y-position",i),[t,n].forEach(e=>{o.Panel.toggle.classList.replace(e,i),o.Panel.panel.classList.replace(e,i)}),o.Panel.movePanelToggle.setAttribute("aria-pressed",e===t?"true":"false")}),o.Global.developerPlugin?o.Panel.developerToggle.onclick=async()=>{"On"===_.getItem("sa11y-developer")?(_.setItem("sa11y-developer","Off"),o.Panel.developerToggle.textContent=`${n._("OFF")}`,o.Panel.developerToggle.setAttribute("aria-pressed","false"),t(!1),await e()):(_.setItem("sa11y-developer","On"),o.Panel.developerToggle.textContent=`${n._("ON")}`,o.Panel.developerToggle.setAttribute("aria-pressed","true"),t(!1),await e())}:_.setItem("sa11y-developer","Off"),o.Readability.Plugin&&(o.Panel.readabilityToggle.onclick=async()=>{"On"===_.getItem("sa11y-readability")?(_.setItem("sa11y-readability","Off"),o.Panel.readabilityToggle.textContent=`${n._("OFF")}`,o.Panel.readabilityToggle.setAttribute("aria-pressed","false"),o.Panel.readability.classList.remove("active"),t(!1),await e()):(_.setItem("sa11y-readability","On"),o.Panel.readabilityToggle.textContent=`${n._("ON")}`,o.Panel.readabilityToggle.setAttribute("aria-pressed","true"),o.Panel.readability.classList.add("active"),t(!1),await e())},"On"===_.getItem("sa11y-readability")&&o.Panel.readability.classList.add("active"));const i=window.matchMedia("(prefers-color-scheme: dark)"),{themeToggle:s}=o.Panel,{html:a}=o.Global,r=e=>{a.setAttribute("data-sa11y-theme",e),_.setItem("sa11y-theme",e);const t=s.querySelector("span").classList;t.toggle("moon-icon","light"===e),t.toggle("sun-icon","dark"===e),s.setAttribute("aria-pressed","dark"===e?"true":"false")},l=_.getItem("sa11y-theme")||(i.matches?"dark":"light");r(l),i.addEventListener("change",()=>{r(i.matches?"dark":"light")}),s.onclick=()=>{const e=_.getItem("sa11y-theme")||(i.matches?"dark":"light");r("dark"===e?"light":"dark")},o.Global.colourFilterPlugin&&o.Panel.colourFilterSelect.addEventListener("change",async()=>{const i=parseInt(o.Panel.colourFilterSelect.value,10),s=["protanopia","deuteranopia","tritanopia","monochromacy"],a=[n._("RED_EYE"),n._("GREEN_EYE"),n._("BLUE_EYE"),n._("MONO_EYE")];i>=1&&i<=4?window.matchMedia("(forced-colors: active)").matches?x(n._("COLOUR_FILTER_HIGH_CONTRAST")):(o.Root.areaToCheck.setAttribute("data-sa11y-filter",s[i-1]),o.Panel.colourFilterIcon.setAttribute("aria-label",a[i-1]),k(["data-sa11y-error","data-sa11y-warning","data-sa11y-good","data-sa11y-error-inline","data-sa11y-warning-inline","data-sa11y-overflow"],"document"),N(["sa11y-annotation","sa11y-tooltips","sa11y-heading-label"],"document"),o.Panel.skipButton.disabled=!0,o.Panel.pageIssues.classList.remove("active"),o.Panel.settingsContent.classList.add("hide-settings-border"),o.Panel.colourFilterSelect.classList.add("active"),o.Panel.colourPanel.classList.add("active"),o.Panel.colourPanel.setAttribute("data-colour",s[i-1]),o.Panel.content.hidden=!0):(o.Root.areaToCheck.removeAttribute("data-sa11y-filter"),o.Panel.settingsContent.classList.remove("hide-settings-border"),o.Panel.colourFilterSelect.classList.remove("active"),o.Panel.colourPanel.classList.remove("active"),o.Panel.colourPanel.removeAttribute("data-colour"),o.Panel.content.hidden=!1,t(!1),await e())})}(this.checkAll,this.resetAll),function(){o.Panel.outlineToggle.addEventListener("click",()=>{"true"===o.Panel.outlineToggle.getAttribute("aria-expanded")?q():(j(),ee(),Z()),o.Panel.outlineHeader.focus()}),"Opened"===_.getItem("sa11y-outline")&&j(),o.Global.showImageOutline&&(o.Panel.imagesToggle.addEventListener("click",()=>{"true"===o.Panel.imagesToggle.getAttribute("aria-expanded")?Z():(X(),q(),ee()),o.Panel.imagesHeader.focus()}),"Opened"===_.getItem("sa11y-images")&&X()),o.Panel.settingsToggle.addEventListener("click",()=>{"true"===o.Panel.settingsToggle.getAttribute("aria-expanded")?ee():(J(),q(),Z()),o.Panel.settingsHeader.focus()}),"Opened"===_.getItem("sa11y-settings")&&J(),o.Panel.skipToPageIssues.addEventListener("click",()=>{o.Panel.pageIssuesHeader.focus()});const e=o.Panel.panel.querySelectorAll("[role=tab]");if(0!==e.length){let t=Array.from(e).findIndex(e=>e.classList.contains("active"));e.forEach(n=>{n.addEventListener("keydown",n=>{"ArrowRight"===n.key?(n.preventDefault(),t=(t+1)%e.length,e[t].focus()):"ArrowLeft"===n.key&&(n.preventDefault(),t=(t-1+e.length)%e.length,e[t].focus())})})}}(),function(){if(o.Global.colourFilterPlugin&&!1===o.Global.headless){const e=document.createElement("div");e.id="sa11y-colour-filters",e.setAttribute("aria-hidden","true"),e.innerHTML='\n \x3c!-- DaltonLens SVG filters to simulate color vision deficiencies --\x3e\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n ',document.body.appendChild(e)}}(),D(s.detectSPArouting,this.checkAll,this.resetAll),this.panelTooltips=new kn,document.body.appendChild(this.panelTooltips),o.Panel.toggle.disabled=!1,setTimeout(()=>{this.resetAll(),this.checkAll()},s.delayCheck),s.delayCheck>=700&&(o.Panel.toggle.disabled=!0),e=this.checkAll,t=this.resetAll,o.Panel.toggle.addEventListener("click",n=>{"Opened"===_.getItem("sa11y-panel")?(n.preventDefault(),_.setItem("sa11y-panel","Closed"),o.Panel.toggle.classList.remove("on"),o.Panel.toggle.setAttribute("aria-expanded","false"),t(),0===o.Panel.notifCount.innerHTML.trim().length?o.Panel.notifBadge.style.display="none":o.Panel.notifBadge.style.display="flex"):(n.preventDefault(),_.setItem("sa11y-panel","Opened"),o.Panel.toggle.classList.add("on"),o.Panel.toggle.setAttribute("aria-expanded","true"),e(),S(o.Panel.outlineList,o.Panel.outlineContent))}),"Opened"===_.getItem("sa11y-panel")&&(o.Panel.toggle.classList.add("on"),o.Panel.toggle.setAttribute("aria-expanded","true"),o.Panel.panel.style.transform=""),document.onkeydown=e=>{const t=e||window.event;t.altKey&&"KeyA"===t.code&&(o.Panel.toggle.click(),o.Panel.toggle.focus())}}var e,t},"complete"===document.readyState?e():window.addEventListener("load",e))},this.checkAll=async(e=s.checkRoot,t=s.readabilityRoot)=>{try{this.results=[],this.headingOutline=[],this.imageOutline=[],this.errorCount=0,this.warningCount=0,this.customChecksRunning=!1;document.querySelector(e)||!1!==s.headless||x(`${n.sprintf("MISSING_ROOT",e)}`),o.initializeRoot(e,t),function(e){if(e.autoDetectShadowComponents){const t=o.Exclusions.Sa11yElements,n=document.querySelector(e.checkRoot);(n?Array.from(n.querySelectorAll(`*:not(${t})`)):Array.from(document.body.querySelectorAll(`*:not(${t})`))).forEach(e=>{e.shadowRoot&&"open"===e.shadowRoot.mode&&(e.setAttribute("data-sa11y-has-shadow-root",""),R(e))})}else e.shadowComponents&&document.querySelectorAll(e.shadowComponents).forEach(e=>{e.setAttribute("data-sa11y-has-shadow-root",""),R(e)})}(s),P.initializeElements(s),function(e,t,i){let s,a="";P.Found.Headings.forEach((r,d)=>{const p=l(r,o.Exclusions.HeaderSpan),u=y(t.headerIgnoreStrings?p.replace(t.headerIgnoreStrings,""):p),g=h(u),m=o.Root.areaToCheck.contains(r),f=o.Root.areaToCheck.contains(r.getRootNode().host),b=m||f,v=parseInt(r.getAttribute("aria-level")||r.tagName.slice(1),10),_=u.length,L=t.checks.HEADING_LONG.maxLength||160;let T=null,x=null,k=null,N=null;if(0===_)if(r.querySelectorAll("img").length){const e=r.querySelector("img")?.getAttribute("alt");!r.querySelector("img")||e&&""!==e.trim()||t.checks.HEADING_EMPTY_WITH_IMAGE&&(T=t.checks.HEADING_EMPTY_WITH_IMAGE.type||"error",x=n.sprintf(t.checks.HEADING_EMPTY_WITH_IMAGE.content||"HEADING_EMPTY_WITH_IMAGE",v),k=t.checks.HEADING_EMPTY_WITH_IMAGE.developer||!1,N=!!t.checks.HEADING_EMPTY_WITH_IMAGE.dismissAll&&"HEADING_EMPTY_WITH_IMAGE")}else t.checks.HEADING_EMPTY&&(T=t.checks.HEADING_EMPTY.type||"error",x=n.sprintf(t.checks.HEADING_EMPTY.content||"HEADING_EMPTY",v),k=t.checks.HEADING_EMPTY.developer||!1,N=!!t.checks.HEADING_EMPTY.dismissAll&&"HEADING_EMPTY");else v-s>1&&0!==d?t.checks.HEADING_SKIPPED_LEVEL&&(T=t.checks.HEADING_SKIPPED_LEVEL.type||"error",x=n.sprintf(t.checks.HEADING_SKIPPED_LEVEL.content||"HEADING_SKIPPED_LEVEL",s,v,A(g,60),A(a,60),s+1),k=t.checks.HEADING_SKIPPED_LEVEL.developer||!1,N=!!t.checks.HEADING_SKIPPED_LEVEL.dismissAll&&"HEADING_SKIPPED_LEVEL"):0===d&&1!==v&&2!==v?t.checks.HEADING_FIRST&&(T=t.checks.HEADING_FIRST.type||"error",x=n.sprintf(t.checks.HEADING_FIRST.content||"HEADING_FIRST"),k=t.checks.HEADING_FIRST.developer||!1,N=!!t.checks.HEADING_FIRST.dismissAll&&"HEADING_FIRST"):_>L&&t.checks.HEADING_LONG&&(T=t.checks.HEADING_LONG.type||"warning",x=n.sprintf(t.checks.HEADING_LONG.content||"HEADING_LONG",L,_),k=t.checks.HEADING_LONG.developer||!1,N=!!t.checks.HEADING_LONG.dismissAll&&"HEADING_LONG");x&&T&&e.push({element:r,type:T,content:x,dismiss:I(`H${v+g}`),dismissAll:N,isWithinRoot:b,developer:k}),s=v,a=g;const S=c(r),w=E(r,"display","none");i.push({element:r,headingLevel:v,text:g,index:d,type:T,hidden:S,visibleParent:w,dismiss:I(`H${v+g}`),isWithinRoot:b})}),t.checks.HEADING_MISSING_ONE&&0===P.Found.HeadingOne.length&&e.push({type:t.checks.HEADING_MISSING_ONE.type||"warning",content:n.sprintf(t.checks.HEADING_MISSING_ONE.content||"HEADING_MISSING_ONE"),dismiss:"MISSINGH1",developer:t.checks.HEADING_MISSING_ONE.developer||!1})}(this.results,s,this.headingOutline),Un(this.results,s),Gn(this.results,s),function(e,t){t.formLabelsPlugin&&P.Found.Inputs.forEach(o=>{const i="true"===o.getAttribute("aria-hidden"),s="-1"===o.getAttribute("tabindex");if(p(o)||i&&s)return;const a=y(l(o)),r=o.getAttribute("alt"),c=o.getAttribute("type"),d=o.getAttribute("title"),u=o.getAttribute("aria-label")||o.getAttribute("aria-labelledby");if("submit"===c||"button"===c||"hidden"===c)return;if("image"===c)return void(!t.checks.LABELS_MISSING_IMAGE_INPUT||r&&""!==r.trim()||u||d||e.push({element:o,type:t.checks.LABELS_MISSING_IMAGE_INPUT.type||"error",content:n.sprintf(t.checks.LABELS_MISSING_IMAGE_INPUT.content||"LABELS_MISSING_IMAGE_INPUT"),dismiss:I(`INPUTIMAGE${c+a}`),dismissAll:!!t.checks.LABELS_MISSING_IMAGE_INPUT.dismissAll&&"LABELS_MISSING_IMAGE_INPUT",developer:t.checks.LABELS_MISSING_IMAGE_INPUT.developer||!0}));if("reset"===c)return void(t.checks.LABELS_INPUT_RESET&&e.push({element:o,type:t.checks.LABELS_INPUT_RESET.type||"warning",content:n.sprintf(t.checks.LABELS_INPUT_RESET.content||"LABELS_INPUT_RESET"),dismiss:I(`INPUTRESET${c+a}`),dismissAll:!!t.checks.LABELS_INPUT_RESET.dismissAll&&"LABELS_INPUT_RESET",developer:t.checks.LABELS_INPUT_RESET.developer||!1}));if(u||d){if(0===a.length)t.checks.LABELS_MISSING_LABEL&&e.push({element:o,type:t.checks.LABELS_MISSING_LABEL.type||"error",content:n.sprintf(t.checks.LABELS_MISSING_LABEL.content||"LABELS_MISSING_LABEL"),dismiss:I(`INPUTMISSING${c+a}`),dismissAll:!!t.checks.LABELS_MISSING_LABEL.dismissAll&&"LABELS_MISSING_LABEL",developer:t.checks.LABELS_MISSING_LABEL.developer||!0});else if(t.checks.LABELS_ARIA_LABEL_INPUT){const i=h(a);e.push({element:o,type:t.checks.LABELS_ARIA_LABEL_INPUT.type||"warning",content:t.checks.LABELS_ARIA_LABEL_INPUT.content?n.sprintf(t.checks.LABELS_ARIA_LABEL_INPUT.content,i):`${n.sprintf("LABELS_ARIA_LABEL_INPUT",i)} ${n.sprintf("ACC_NAME_TIP")}`,dismiss:I(`INPUTARIA${c+a}`),dismissAll:!!t.checks.LABELS_ARIA_LABEL_INPUT.dismissAll&&"LABELS_ARIA_LABEL_INPUT",developer:t.checks.LABELS_ARIA_LABEL_INPUT.developer||!0})}return}const g=o.closest("label"),m=g?y(l(g)):"";if(g&&m.length)return;const f=o.getAttribute("id");f?P.Found.Labels.some(e=>e.getAttribute("for")===f)||t.checks.LABELS_NO_FOR_ATTRIBUTE&&e.push({element:o,type:t.checks.LABELS_NO_FOR_ATTRIBUTE.type||"error",content:n.sprintf(t.checks.LABELS_NO_FOR_ATTRIBUTE.content||"LABELS_NO_FOR_ATTRIBUTE",f),dismiss:I(`INPUTNOFOR${c+a}`),dismissAll:!!t.checks.LABELS_NO_FOR_ATTRIBUTE.dismissAll&&"LABELS_NO_FOR_ATTRIBUTE",developer:t.checks.LABELS_NO_FOR_ATTRIBUTE.developer||!0}):t.checks.LABELS_MISSING_LABEL&&e.push({element:o,type:t.checks.LABELS_MISSING_LABEL.type||"error",content:n.sprintf(t.checks.LABELS_MISSING_LABEL.content||"LABELS_MISSING_LABEL"),dismiss:I(`INPUTNOID${c+a}`),dismissAll:!!t.checks.LABELS_MISSING_LABEL.dismissAll&&"LABELS_MISSING_LABEL",developer:t.checks.LABELS_MISSING_LABEL.developer||!0}),t.checks.LABELS_PLACEHOLDER&&o.placeholder&&0!==o.placeholder&&e.push({element:o,type:t.checks.LABELS_PLACEHOLDER.type||"warning",content:n.sprintf(t.checks.LABELS_PLACEHOLDER.content||"LABELS_PLACEHOLDER"),dismiss:I(`INPUTPLACEHOLDER${c+a}`),dismissAll:!!t.checks.LABELS_PLACEHOLDER.dismissAll&&"LABELS_PLACEHOLDER",developer:t.checks.LABELS_PLACEHOLDER.developer||!0})})}(this.results,s),Hn(this.results,s),function(e,t){if(t.checks.META_LANG&&(!P.Found.Language||P.Found.Language.length<2)&&e.push({type:t.checks.META_LANG.type||"error",content:n.sprintf(t.checks.META_LANG.content||"META_LANG"),dismiss:I("LANG"),developer:t.checks.META_LANG.developer||!0}),t.checks.META_TITLE){const o=document.querySelector("title:not(svg title)");o&&0!==o.textContent.trim().length||e.push({type:t.checks.META_TITLE.type||"error",content:n.sprintf(t.checks.META_TITLE.content||"META_TITLE"),dismiss:I("TITLE"),developer:t.checks.META_TITLE.developer||!0})}if(t.checks.META_SCALABLE||t.checks.META_MAX){const o=document.querySelector('meta[name="viewport"]');if(o){const i=o.getAttribute("content");if(i){const o=i.split(",").reduce((e,t)=>{const[n,o]=t.split("=").map(e=>e.trim());return e[n]=o,e},{});!t.checks.META_SCALABLE||"no"!==o["user-scalable"]&&"0"!==o["user-scalable"]||e.push({type:t.checks.META_SCALABLE.type||"error",content:n.sprintf(t.checks.META_SCALABLE.content||"META_SCALABLE"),dismiss:I("SCALABLE"),developer:t.checks.META_SCALABLE.developer||!0});const s=parseFloat(o["maximum-scale"]);t.checks.META_MAX&&!Number.isNaN(s)&&s<2&&e.push({type:t.checks.META_MAX.type||"error",content:n.sprintf(t.checks.META_MAX.content||"META_MAX"),dismiss:I("MAXSCALE"),developer:t.checks.META_MAX.developer||!0})}}}t.checks.META_REFRESH&&document.querySelector('meta[http-equiv="refresh"]')&&e.push({type:t.checks.META_REFRESH.type||"error",content:n.sprintf(t.checks.META_REFRESH.content||"META_REFRESH"),dismiss:I("REFRESH"),developer:t.checks.META_REFRESH.developer||!0});t.checks.DUPLICATE_ID&&document.querySelectorAll("body, [data-sa11y-has-shadow-root]").forEach(i=>{const s=new Set,a=(o,i)=>{o.forEach(o=>{const{id:a}=o;"string"==typeof a&&0!==a.trim().length&&(a&&!s.has(a)?s.add(a):Array.from(i.querySelectorAll(`\n a[href*="${a}"],\n label[for*="${a}"],\n [aria-labelledby*="${a}"],\n [aria-controls*="${a}"],\n [aria-owns*="${a}"]`)).length>0&&e.push({element:o,type:t.checks.DUPLICATE_ID.type||"error",content:n.sprintf(t.checks.DUPLICATE_ID.content||"DUPLICATE_ID",a),dismiss:I(`DUPLICATEID${a}${o.textContent}`),dismissAll:!!t.checks.DUPLICATE_ID.dismissAll&&"DUPLICATE_ID",developer:t.checks.DUPLICATE_ID.developer||!0}))})};i.shadowRoot&&a(Array.from(i.shadowRoot.querySelectorAll(`[id]:not(${o.Exclusions.Container})`)),i.shadowRoot),a(Array.from(i.querySelectorAll(`[id]:not(${o.Exclusions.Container})`)),i)});(t.checks.BTN_EMPTY||t.checks.BTN_EMPTY_LABELLEDBY||t.checks.BTN_LABEL||t.checks.HIDDEN_FOCUSABLE||t.checks.LABEL_IN_NAME)&&P.Found.Buttons.forEach(o=>{const i=l(o),s=i.replace(/'|"|-|\.|\s+/g,"").toLowerCase(),a=I(`BTN${o.tagName+o.id+o.className+i}`),r=o.querySelector(":scope [aria-labelledby], :scope [aria-label]")||o.getAttribute("aria-labelledby")||o.getAttribute("aria-label"),c=o.querySelector(":scope [aria-labelledby]")||o.getAttribute("aria-labelledby"),d="true"===o.getAttribute("aria-hidden"),p="-1"===o.getAttribute("tabindex");if(d)return void(p||t.checks.HIDDEN_FOCUSABLE&&e.push({element:o,type:t.checks.HIDDEN_FOCUSABLE.type||"error",content:n.sprintf(t.checks.HIDDEN_FOCUSABLE.content||"HIDDEN_FOCUSABLE"),dismiss:a,dismissAll:!!t.checks.HIDDEN_FOCUSABLE.dismissAll&&"BTN_HIDDEN_FOCUSABLE",developer:t.checks.HIDDEN_FOCUSABLE.developer||!0}));if(0===s.length)return void(t.checks.BTN_EMPTY_LABELLEDBY&&c?e.push({element:o,type:t.checks.BTN_EMPTY_LABELLEDBY.type||"error",content:t.checks.BTN_EMPTY_LABELLEDBY.content?n.sprintf(t.checks.BTN_EMPTY_LABELLEDBY.content):`${n.sprintf("BTN_EMPTY_LABELLEDBY")} ${n.sprintf("BTN_TIP")}`,dismiss:I(a),dismissAll:!!t.checks.BTN_EMPTY_LABELLEDBY.dismissAll&&"BTN_EMPTY_LABELLEDBY",developer:t.checks.BTN_EMPTY_LABELLEDBY.developer||!0}):t.checks.BTN_EMPTY&&e.push({element:o,type:t.checks.BTN_EMPTY.type||"error",content:t.checks.BTN_EMPTY.content?n.sprintf(t.checks.BTN_EMPTY.content):`${n.sprintf("BTN_EMPTY")} ${n.sprintf("BTN_TIP")}`,dismiss:a,dismissAll:!!t.checks.BTN_EMPTY.dismissAll&&"BTN_EMPTY",developer:t.checks.BTN_EMPTY.developer||!0}));const u=O(o);if(t.checks.LABEL_IN_NAME&&r&&u){const s=h(i);return void e.push({element:o,type:t.checks.LABEL_IN_NAME.type||"warning",content:t.checks.LABEL_IN_NAME.content?n.sprintf(t.checks.LABEL_IN_NAME.content,s):`${n.sprintf("LABEL_IN_NAME",s)} ${n.sprintf("ACC_NAME_TIP")}`,dismiss:a,dismissAll:!!t.checks.LABEL_IN_NAME.dismissAll&&"BTN_LABEL_IN_NAME",developer:t.checks.LABEL_IN_NAME.developer||!0})}t.checks.BTN_ROLE_IN_NAME&&i.includes(n._("BTN"))&&e.push({element:o,type:t.checks.BTN_ROLE_IN_NAME.type||"warning",content:t.checks.BTN_ROLE_IN_NAME.content?n.sprintf(t.checks.BTN_ROLE_IN_NAME.content):`${n.sprintf("BTN_ROLE_IN_NAME")} ${n.sprintf("BTN_TIP")}`,dismiss:a,dismissAll:!!t.checks.BTN_ROLE_IN_NAME.dismissAll&&"BTN_ROLE_IN_NAME",developer:t.checks.BTN_ROLE_IN_NAME.developer||!0})}),t.checks.UNCONTAINED_LI&&P.Found.Lists.forEach(o=>{o.closest("ul, ol, menu")||e.push({element:o,type:t.checks.UNCONTAINED_LI.type||"error",content:n.sprintf(t.checks.UNCONTAINED_LI.content||"UNCONTAINED_LI"),dismiss:I(`UNCONTAINEDLI${o.textContent}`),dismissAll:!!t.checks.UNCONTAINED_LI.dismissAll&&"UNCONTAINED_LI",developer:t.checks.UNCONTAINED_LI.developer||!0})}),t.checks.TABINDEX_ATTR&&P.Found.TabIndex.forEach(o=>{e.push({element:o,type:t.checks.TABINDEX_ATTR.type||"error",content:n.sprintf(t.checks.TABINDEX_ATTR.content||"TABINDEX_ATTR"),dismiss:I(`TABINDEX${o.tagName+o.id+o.className}`),dismissAll:!!t.checks.TABINDEX_ATTR.dismissAll&&"TABINDEX_ATTR",developer:t.checks.TABINDEX_ATTR.developer||!0})})}(this.results,s),s.embeddedContentPlugin&&function(e,t){const o=e=>"undefined"!==e.getAttribute("src")?e.getAttribute("src"):e.querySelector("[src]")?.getAttribute("src");t.checks.EMBED_AUDIO&&P.Found.Audio.forEach(i=>{e.push({element:i,type:t.checks.EMBED_AUDIO.type||"warning",content:n.sprintf(t.checks.EMBED_AUDIO.content||"EMBED_AUDIO"),dismiss:I(`AUDIO${o(i)}`),dismissAll:!!t.checks.EMBED_AUDIO.dismissAll&&"EMBED_AUDIO",developer:t.checks.EMBED_AUDIO.developer||!1})}),t.checks.EMBED_VIDEO&&P.Found.Videos.forEach(i=>{const s=i.querySelector("track"),a=s?.getAttribute("src");null!==s&&null!==a&&0!==a.trim().length||e.push({element:i,type:t.checks.EMBED_VIDEO.type||"warning",content:n.sprintf(t.checks.EMBED_VIDEO.content||"EMBED_VIDEO"),dismiss:I(`VIDEO${o(i)}`),dismissAll:!!t.checks.EMBED_VIDEO.dismissAll&&"EMBED_VIDEO",developer:t.checks.EMBED_VIDEO.developer||!1})}),t.checks.EMBED_DATA_VIZ&&P.Found.Visualizations.forEach(i=>{e.push({element:i,type:t.checks.EMBED_DATA_VIZ.type||"warning",content:n.sprintf(t.checks.EMBED_DATA_VIZ.content||"EMBED_DATA_VIZ"),dismiss:I(`DATAVIZ${o(i)}`),dismissAll:!!t.checks.EMBED_DATA_VIZ.dismissAll&&"EMBED_DATA_VIZ",developer:t.checks.EMBED_DATA_VIZ.developer||!1})}),P.Found.iframes.forEach(i=>{const s=["presentation","none"].includes(i.getAttribute("role")),a=p(i),l="VIDEO"===i.tagName||"AUDIO"===i.tagName,c="true"===i.getAttribute("aria-hidden"),d="-1"===i.getAttribute("tabindex");if(!(a||l||c&&d||s))if(d)t.checks.EMBED_UNFOCUSABLE&&e.push({element:i,type:t.checks.EMBED_UNFOCUSABLE.type||"error",content:n.sprintf(t.checks.EMBED_UNFOCUSABLE.content||"EMBED_UNFOCUSABLE"),dismiss:I(`EMBEDUNFOCUSABLE${o(i)}`),dismissAll:!!t.checks.EMBED_UNFOCUSABLE.dismissAll&&"EMBED_UNFOCUSABLE",developer:t.checks.EMBED_UNFOCUSABLE.developer||!0});else if(t.checks.EMBED_MISSING_TITLE){const s=r(i);0===y("noAria"===s?i.getAttribute("title")||"":s).length&&e.push({element:i,type:t.checks.EMBED_MISSING_TITLE.type||"error",content:n.sprintf(t.checks.EMBED_MISSING_TITLE.content||"EMBED_MISSING_TITLE"),dismiss:I(`EMBEDMISSTITLE${o(i)}`),dismissAll:!!t.checks.EMBED_MISSING_TITLE.dismissAll&&"EMBED_MISSING_TITLE",developer:t.checks.EMBED_MISSING_TITLE.developer||!0})}}),t.checks.EMBED_GENERAL&&P.Found.EmbeddedContent.forEach(i=>{const s=["presentation","none"].includes(i.getAttribute("role")),a="true"===i.getAttribute("aria-hidden"),r="-1"===i.getAttribute("tabindex");p(i)||a&&r||s||"VIDEO"!==i.tagName&&"AUDIO"!==i.tagName&&e.push({element:i,type:t.checks.EMBED_GENERAL.type||"warning",content:n.sprintf(t.checks.EMBED_GENERAL.content||"EMBED_GENERAL"),dismiss:I(`IFRAMEGENERAL${o(i)}`),dismissAll:!!t.checks.EMBED_GENERAL.dismissAll&&"EMBED_GENERAL",developer:t.checks.EMBED_GENERAL.developer||!1})})}(this.results,s),s.contrastPlugin&&function(e,t){const o=[];for(let e=0;e3===e.nodeType).map(e=>e.textContent).join("").trim(),m=["SELECT","INPUT","TEXTAREA"].includes(n.tagName);if(0!==g.length||m)if("unsupported"===a||"unsupported"===c){const e=r>=24||r>=18.67&&l>=700;o.push({$el:n,type:"unsupported",fontSize:r,fontWeight:l,isLargeText:e,opacity:s,..."unsupported"!==c&&{background:c},..."unsupported"!==a&&{color:a}})}else if("image"===c.type)if(h);else{const e=r>=24||r>=18.67&&l>=700;o.push({$el:n,type:"background-image",color:a,isLargeText:e,background:c,fontSize:r,fontWeight:l,opacity:s})}else if("text"===n.tagName&&n.closest("svg"));else if(h||fn(a)===fn(c));else{const e=In(n,a,c,r,l,s,t.contrastAAA);e&&(e.type=m?"input":"text",o.push(e))}}P.Found.Svg.forEach(e=>{const n=pn(e);if(n&&"image"===n.type)return void o.push({$el:e,type:"svg-warning",background:n});if(e.querySelector("text"))return void o.push({$el:e,type:"svg-text",background:n});const i=e.querySelectorAll("path, polygon, circle, rect, ellipse, use");if(1===i.length){const s=getComputedStyle(i[0]),{fill:a,opacity:r,stroke:l,strokeWidth:c}=s;if(a.startsWith("url("))return void o.push({$el:e,type:"svg-warning",background:n});const d=a&&"none"!==a,p=l&&"none"!==l&&"0px"!==c;if(!d&&!p)return void o.push({$el:e,type:"svg-warning",background:n});let u,h,g,m=!1,f=!1;d&&(h=dn("currentColor"===a?getComputedStyle(e).color:a,r),"unsupported"!==h&&(u=yn(h,n),m=t.contrastAPCA?u.ratio>=45:u.ratio>=3)),p&&(g=dn("currentColor"===l?getComputedStyle(e).color:l,r),"unsupported"!==g&&(u=yn(g,n),f=t.contrastAPCA?u.ratio>=45:u.ratio>=3));const b=d&&p&&!m&&!f,y=d&&!p&&!m,A=!d&&p&&!f;"unsupported"===h||"unsupported"===g?o.push({$el:e,type:"svg-warning",background:n}):(b||y||A)&&o.push({$el:e,ratio:bn(u.ratio),color:u.blendedColor,type:"svg-error",background:n})}else o.push({$el:e,type:"svg-warning",background:n})}),P.Found.Inputs.forEach(e=>{if(e.placeholder&&0!==e.placeholder.length){const n=getComputedStyle(e,"::placeholder"),i=dn(n.getPropertyValue("color")),s=parseFloat(n.fontSize),a=cn(n.fontWeight),r=pn(e),l=parseFloat(n.opacity);if("unsupported"===i)o.push({$el:e,type:"placeholder-unsupported"});else if("image"===r.type);else{const n=In(e,i,r,s,a,l,t.contrastAAA);n&&(n.type="placeholder",o.push(n))}}}),(e=>{const n=e.filter(e=>"background-image"===e.type),o=e.filter(e=>"background-image"!==e.type);let i;if(t.contrastAPCA)i=n.map(e=>({...e}));else{const e=n.reduce((e,t)=>{const n=e,o=JSON.stringify({background:t.background.value,color:t.color,isLargeText:t.isLargeText});return n[o]||(n[o]=[]),n[o].push(t),n},{});i=Object.values(e).map(e=>({...e[0]}))}return[...i,...o]})(o).forEach(o=>{const{$el:i,ratio:s}=o,a=o,r="OPTION"===i.tagName?i.closest("datalist, select, optgroup"):i,l=h(A(b(f(r,["option:not(option:first-child)"])),80));let c;c="placeholder"===o.type||"placeholder-unsupported"===o.type?h(i.placeholder):"svg-error"===o.type||"svg-warning"===o.type||"svg-text"===o.type?"":l,a.sanitizedText=c;let d="";if(!t.contrastAPCA){const e=t.contrastAAA?"7:1":"4.5:1",i=t.contrastAAA?"4.5:1":"3:1",s=o.isLargeText?i:e,a=o.isLargeText?"CONTRAST_LARGE":"CONTRAST_NORMAL";d=` ${n.sprintf(a,s)}`}const p=t.contrastAPCA?"":` ${n.sprintf("CONTRAST_TIP_GRAPHIC")}`;switch(o.type){case"text":t.checks.CONTRAST_ERROR&&e.push({element:i,type:t.checks.CONTRAST_ERROR.type||"error",content:t.checks.CONTRAST_ERROR.content?n.sprintf(t.checks.CONTRAST_ERROR.content):n.sprintf("CONTRAST_ERROR")+d,dismiss:I(`CONTRAST${l}`),dismissAll:!!t.checks.CONTRAST_ERROR.dismissAll&&"CONTRAST_ERROR",developer:t.checks.CONTRAST_ERROR.developer||!1,contrastDetails:a});break;case"input":t.checks.CONTRAST_INPUT&&e.push({element:r,type:t.checks.CONTRAST_INPUT.type||"error",content:t.checks.CONTRAST_INPUT.content?n.sprintf(t.checks.CONTRAST_INPUT.content):n.sprintf("CONTRAST_INPUT",s)+d,dismiss:I(`CONTRAST${i.getAttribute("class")}${i.tagName}${s}`),dismissAll:!!t.checks.CONTRAST_INPUT.dismissAll&&"CONTRAST_INPUT",developer:t.checks.CONTRAST_INPUT.developer||!0,contrastDetails:a});break;case"placeholder":t.checks.CONTRAST_PLACEHOLDER&&e.push({element:i,type:t.checks.CONTRAST_PLACEHOLDER.type||"error",content:t.checks.CONTRAST_PLACEHOLDER.content?n.sprintf(t.checks.CONTRAST_PLACEHOLDER.content):n.sprintf("CONTRAST_PLACEHOLDER")+d,position:"afterend",dismiss:I(`CPLACEHOLDER${i.getAttribute("class")}${i.tagName}${s}`),dismissAll:!!t.checks.CONTRAST_PLACEHOLDER.dismissAll&&"CONTRAST_PLACEHOLDER",developer:t.checks.CONTRAST_PLACEHOLDER.developer||!0,contrastDetails:a});break;case"placeholder-unsupported":t.checks.CONTRAST_PLACEHOLDER_UNSUPPORTED&&e.push({element:i,type:t.checks.CONTRAST_PLACEHOLDER_UNSUPPORTED.type||"warning",content:t.checks.CONTRAST_PLACEHOLDER_UNSUPPORTED.content?n.sprintf(t.checks.CONTRAST_PLACEHOLDER_UNSUPPORTED.content):n.sprintf("CONTRAST_PLACEHOLDER_UNSUPPORTED")+d,position:"afterend",dismiss:I(`CPLACEHOLDERUN${i.getAttribute("class")}${i.tagName}${s}`),dismissAll:!!t.checks.CONTRAST_PLACEHOLDER_UNSUPPORTED.dismissAll&&"CONTRAST_PLACEHOLDER_UNSUPPORTED",developer:t.checks.CONTRAST_PLACEHOLDER_UNSUPPORTED.developer||!0,contrastDetails:a});break;case"svg-error":t.checks.CONTRAST_ERROR_GRAPHIC&&e.push({element:i,type:t.checks.CONTRAST_ERROR_GRAPHIC.type||"error",content:t.checks.CONTRAST_ERROR_GRAPHIC.content?n.sprintf(t.checks.CONTRAST_ERROR_GRAPHIC.content):n.sprintf("CONTRAST_ERROR_GRAPHIC")+p,dismiss:I(`CONTRASTERROR${i.outerHTML}`),dismissAll:!!t.checks.CONTRAST_ERROR_GRAPHIC.dismissAll&&"CONTRAST_ERROR_GRAPHIC",developer:t.checks.CONTRAST_ERROR_GRAPHIC.developer||!0,contrastDetails:a});break;case"svg-warning":case"svg-text":t.checks.CONTRAST_WARNING_GRAPHIC&&e.push({element:i,type:t.checks.CONTRAST_WARNING_GRAPHIC.type||"warning",content:t.checks.CONTRAST_WARNING_GRAPHIC.content?n.sprintf(t.checks.CONTRAST_WARNING_GRAPHIC.content):n.sprintf("CONTRAST_WARNING_GRAPHIC")+p,dismiss:I(`CONTRASTWARNING${i.outerHTML}`),dismissAll:!!t.checks.CONTRAST_WARNING_GRAPHIC.dismissAll&&"CONTRAST_WARNING_GRAPHIC",developer:t.checks.CONTRAST_WARNING_GRAPHIC.developer||!0,contrastDetails:a});break;case"background-image":t.checks.CONTRAST_WARNING&&e.push({element:r,type:t.checks.CONTRAST_WARNING.type||"warning",content:t.checks.CONTRAST_WARNING.content?n.sprintf(t.checks.CONTRAST_WARNING.content):n.sprintf("CONTRAST_WARNING")+d,dismiss:I(`CONTRAST${l}`),dismissAll:!!t.checks.CONTRAST_WARNING.dismissAll&&"CONTRAST_WARNING",developer:t.checks.CONTRAST_WARNING.developer||!1,contrastDetails:a});break;case"unsupported":t.checks.CONTRAST_UNSUPPORTED&&e.push({element:r,type:t.checks.CONTRAST_UNSUPPORTED.type||"warning",content:t.checks.CONTRAST_UNSUPPORTED.content?n.sprintf(t.checks.CONTRAST_UNSUPPORTED.content):n.sprintf("CONTRAST_WARNING")+d,dismiss:I(`CONTRAST${l}`),dismissAll:!!t.checks.CONTRAST_UNSUPPORTED.dismissAll&&"CONTRAST_UNSUPPORTED",developer:t.checks.CONTRAST_UNSUPPORTED.developer||!1,contrastDetails:a})}})}(this.results,s),s.readabilityPlugin&&function(){let e;if("On"===_.getItem("sa11y-readability")){P.Found.Readability.forEach(e=>{const t=e.textContent;t.length>=120&&"."!==t.charAt(t.length-1)&&e.insertAdjacentHTML("beforeend",".")});const t=[];for(let e=0;e{let t=e;if(t=t.toLowerCase().replace(".","").replace("\n",""),t.length<=3)return 1;t=t.replace(/(?:[^laeiouy]es|ed|[^laeiouy]e)$/,""),t=t.replace(/^y/,"");const n=t.match(/[aeiouy]{1,2}/g);let o=0;return!!n&&(o=n.length),o},s=i.replace(/[.!?-]+/g," ").split(" ");let a=0;for(let e=0;e100?u=100:u<0&&(u=0);const h=u.toFixed(1),g=(a/l).toFixed(1),m=Math.round((a-(d+p))/a*100);let f;f=h>=0&&h<30?n._("VERY_DIFFICULT"):h>31&&h<49?n._("DIFFICULT"):h>50&&h<60?n._("FAIRLY_DIFFICULT"):n._("GOOD"),e={score:h,averageWordsPerSentence:g,complexWords:m,difficultyLevel:f,wordCount:a}}else if(["sv","fi","da","no","nb","nn"].includes(o.Readability.Lang)){const t=(e=>{const t=()=>e.replace(/[-'.]/gi,"").split(/[^a-zA-ZöäåÖÄÅÆæØø0-9]/g).filter(Boolean),o=t().length,i=t().filter(e=>e.length>6).length,s=e.split(/\?|!|\.|\n/g).filter(Boolean).length,a=Math.round(o/s+100*i/o),r=(o/s).toFixed(1),l=Math.round(i/o*100);let c;return c=a>=0&&a<39?n._("GOOD"):a>40&&a<50?n._("FAIRLY_DIFFICULT"):a>51&&a<61?n._("DIFFICULT"):n._("VERY_DIFFICULT"),{score:a,difficulty:c,avgWordsPerSentence:r,complexWords:l,wordCount:o}})(i);e={score:t.score,averageWordsPerSentence:t.avgWordsPerSentence,complexWords:t.complexWords,difficultyLevel:t.difficulty,wordCount:t.wordCount}}!1===o.Global.headless&&(0===i.length?o.Panel.readabilityInfo.innerHTML=n._("READABILITY_NO_CONTENT"):e.wordCount>30?(o.Panel.readabilityInfo.innerHTML=`${e.score} ${e.difficultyLevel}`,o.Panel.readabilityDetails.innerHTML=`\n
                                  • \n ${n._("AVG_SENTENCE")}\n ${e.averageWordsPerSentence}\n
                                  • \n
                                  • \n ${n._("COMPLEX_WORDS")}\n ${e.complexWords}%\n
                                  • \n
                                  • \n ${n._("TOTAL_WORDS")}\n ${e.wordCount}\n
                                  • `):o.Panel.readabilityInfo.textContent=n._("READABILITY_NOT_ENOUGH"))}}(),this.imageResults=this.results.filter((e,t,n)=>{const{element:o}=e;return!(!o||"IMG"!==o.tagName||!o.outerHTML)&&n.findIndex(e=>e.element?.outerHTML===o.outerHTML)===t}),!0===s.customChecks?this.results:"object"==typeof s.customChecks?this.results.push(...s.customChecks):"listen"===s.customChecks&&(this.customChecksRunning=!0,this.customChecksFinished=0,document.addEventListener("sa11y-resume",()=>{this.customChecksFinished+=1,1===this.customChecksFinished&&(this.customChecksRunning=!1,this.updateResults())}),window.setTimeout(()=>{if(!0===this.customChecksRunning)throw this.customChecksRunning=!1,this.updateResults(),Error("Sa11y: No custom checks were returned.")},s.delayCustomCheck),window.setTimeout(()=>{const e=new CustomEvent("sa11y-custom-checks");document.dispatchEvent(e)},0)),this.customChecksRunning||this.updateResults()}catch(e){const t=new Q(e);throw document.body.appendChild(t),Error(e)}},this.updateResults=()=>{this.results=this.results.filter(e=>!1!==e.isWithinRoot);const e="Off"===_.getItem("sa11y-developer")||null===_.getItem("sa11y-developer");if((e||!0===s.externalDeveloperChecks)&&(this.results=this.results.filter(e=>!0!==e.developer)),e&&(this.results=this.results.filter(e=>!0!==e.external)),this.results.forEach((e,t)=>{const n=s.selectorPath?function(e){const t=[];let n=e;for(;n;){let e=n.localName;if(n.id){e+=`#${n.id}`,t.unshift(e);break}n.className&&(e+=`.${n.className.replace(/\s+/g,".")}`);const o=n.parentNode;if(!o)break;{const i=o.children;i.length>1&&(e+=`:nth-child(${Array.prototype.indexOf.call(i,n)+1})`),t.unshift(e)}n=n.parentNode.host||n.parentNode}return t.join(" > ")}(e.element):"",o=e.element?.outerHTML.replace(/\s{2,}/g," ").trim()||"";Object.assign(e,{htmlPath:o,cssPath:n,id:t})}),!1===s.headless){const e=M(this.results,this.panelTooltips,this.checkAll,this.resetAll);this.results=e.updatedResults,this.dismissed=e.dismissedIssues;const l=function(e,t,n){let o=t,i=n;return e.forEach((t,n)=>{const s=e[n].type;"error"===s?o+=1:"warning"===s&&(i+=1)}),{error:o,warning:i}}(this.results,this.errorCount,this.warningCount);if(function(e,t){const i=e+t;0===i?(o.Panel.notifCount.innerText="",o.Panel.notifText.innerText="",o.Panel.notifBadge.style.display="none"):t>0&&0===e?(o.Panel.notifBadge.classList.add("notification-badge-warning"),o.Panel.notifCount.innerText=`${t}`,o.Panel.notifText.innerText=`${n._("WARNINGS_FOUND")}`):(o.Panel.notifBadge.classList.remove("notification-badge-warning"),o.Panel.notifCount.innerText=`${i}`,o.Panel.notifText.innerText=n._("TOTAL_FOUND")),"Opened"===_.getItem("sa11y-panel")||0===i?o.Panel.notifBadge.style.display="none":o.Panel.notifBadge.style.display="flex"}(l.error,l.warning),"Opened"===_.getItem("sa11y-panel")){this.results.forEach(e=>{Object.assign(e),function(e,t){const{element:i,type:s,content:a,inline:r=!1,position:l="beforebegin",id:c,dismiss:d,dismissAll:p,contrastDetails:h}=e,g=["error","warning","good"];if(-1===g.indexOf(s))throw Error(`Invalid type [${s}] for annotation`);[s].forEach(e=>{if("error"===e&&void 0!==i){const e=r?"data-sa11y-error-inline":"data-sa11y-error";i.setAttribute(e,c)}else if("warning"===e&&void 0!==i){const e=r?"data-sa11y-warning-inline":"data-sa11y-warning";i.setAttribute(e,c)}});const m={[g[0]]:n._("ERROR"),[g[1]]:n._("WARNING"),[g[2]]:n._("GOOD")};if(!1===t.showGoodImageButton&&"IMG"===i?.tagName&&"good"===s)return;if(!1===t.showGoodLinkButton&&"A"===i?.tagName&&"good"===s)return;const f=!t.dismissAnnotations||"warning"!==s&&"good"!==s||void 0===d?"":``,b=t.dismissAnnotations&&t.dismissAll&&"string"==typeof p&&("warning"===s||"good"===s)?``:"",y=document.createElement("sa11y-annotation");if(y.setAttribute("data-sa11y-annotation",c),void 0===i){const e=document.createElement("li");e.innerHTML=`

                                    ${m[s]}

                                    ${a}${f}`,o.Panel.pageIssuesList.insertAdjacentElement("afterbegin",e),o.Panel.pageIssues.classList.add("active"),o.Panel.panel.classList.add("has-page-issues")}else{const e=document.createElement("div");e.classList.add(r?"instance-inline":"instance"),e.innerHTML=`\n \n

                                    ${m[s]}

                                    \n ${u(a)}\n ${h?"
                                    ":""}\n
                                    ${f}${b}
                                    \n "\n >`;const o=t.insertAnnotationBefore?`, ${t.insertAnnotationBefore}`:"";(i.closest(`a, button, [role="link"], [role="button"] ${o}`)||i).insertAdjacentElement(l,y),y.shadowRoot.appendChild(e)}}(e,s)}),P.initializeAnnotations();const c=new xn;document.body.appendChild(c),G(this.results,this.dismissed,this.checkAll,this.resetAll),te(this.dismissed,this.headingOutline,s),s.showImageOutline&&function(e,t,i){const s=()=>{const a=[],r=e.map(e=>t.find(t=>e.key===t.dismiss&&e.href===window.location.pathname)).filter(Boolean);t.forEach(e=>{const t=r.some(t=>t.element.outerHTML.toLowerCase()===e.element.outerHTML.toLowerCase());t&&Object.assign(e,{dismissedImage:!0});const s=e.type,l=e.developer,{dismissedImage:c}=e,d=u(e.element.alt),p=!("Off"!==_.getItem("sa11y-developer")&&null!==_.getItem("sa11y-developer")||"error"!==s&&"warning"!==s||!0!==l),h=w(e.element),g=o.Global.editImageURLofCMS?ne(e):"",m=i.imageWithinLightbox?`a[href]:not(${i.imageWithinLightbox})`:"a[href]",f=e.element.closest(m)?`
                                    ${n._("LINKED")}
                                    `:"";let b;if("error"!==s||p)if("warning"!==s||c||p){const t=0===d.length?`
                                    ${n._("DECORATIVE")}
                                    `:"",o=i.imageWithinLightbox?`a[href]:not(${i.imageWithinLightbox})`:"a[href]",s=e.element.closest(o)?`
                                    ${n._("LINKED")}
                                    `:"";b=`\n
                                  • \n \n
                                    \n
                                    ${n._("ALT")}
                                    \n ${s} ${t} ${d}\n
                                    \n ${g}\n
                                  • `,a.push(b)}else{const e=0===d.length?`
                                    ${n._("DECORATIVE")}
                                    `:"";b=`\n
                                  • \n \n
                                    \n
                                    ${n._("WARNING")} ${n._("ALT")}
                                    \n ${f} ${e} ${d}\n
                                    \n ${g}\n
                                  • `,a.push(b)}else{const e=0===d.length?`
                                    ${n._("MISSING")}
                                    `:`${d}`;b=`\n
                                  • \n \n
                                    \n
                                    ${n._("ERROR")} ${n._("ALT")}
                                    ${f} ${e}\n
                                    \n ${g}\n
                                  • `,a.push(b)}}),o.Panel.imagesList.innerHTML=0===a.length?`
                                  • ${n._("NO_IMAGES")}
                                  • `:a.join(" "),document.removeEventListener("sa11y-build-image-outline",s)};"Opened"===_.getItem("sa11y-images")&&s(),document.addEventListener("sa11y-build-image-outline",s)}(this.dismissed,this.imageResults,s),i=e.dismissCount,a=l.error,r=l.warning,o.Panel.skipButton.disabled=!1,o.Panel.panel.classList.add("active"),o.Global.html.setAttribute("data-sa11y-active","true"),o.Panel.skipButton.classList.add("active"),a>0&&r>0?(o.Panel.content.setAttribute("class","errors"),o.Panel.status.innerHTML=`${n._("ERRORS")} ${a} ${n._("WARNINGS")} ${r}`):a>0?(o.Panel.content.setAttribute("class","errors"),o.Panel.status.innerHTML=`${n._("ERRORS")} ${a}`):r>0?(o.Panel.content.setAttribute("class","warnings"),o.Panel.status.innerHTML=`${n._("WARNINGS")} ${r}`):i>0?(o.Panel.status.innerHTML=`${n._("DISMISSED")} ${i}`,o.Panel.skipButton.classList.remove("active")):(o.Panel.content.setAttribute("class","good"),o.Panel.status.innerHTML=`${n._("NO_ERRORS_FOUND")}`),0===document.querySelectorAll("sa11y-annotation").length&&(o.Panel.skipButton.disabled=!0),t=this.results,Bn=e=>{Mn(e,t)},$n=()=>{Dn(t)},document.addEventListener("keydown",Bn),o.Panel.skipButton.addEventListener("click",$n),s.exportResultsPlugin&&function(e,t){o.Global.exportResultsPlugin&&(K=async()=>{await H(e,t)},W=()=>{F(e)},o.Panel.exportHTML.addEventListener("click",K),o.Panel.exportCSV.addEventListener("click",W))}(this.results,e.dismissedResults),S(o.Panel.pageIssuesList,o.Panel.pageIssuesContent),Sn(s.ignoreHiddenOverflow),document.querySelectorAll("sa11y-annotation").forEach(e=>{const t=e.nextElementSibling;null!==t&&"SA11Y-ANNOTATION"===t.tagName&&customElements.get("sa11y-annotation")&&t.shadowRoot.querySelector("button").setAttribute("style","margin: -5px -15px !important;")})}o.Panel.toggle.disabled=!1}var t,i,a,r;window.sa11yCheckComplete=null;const l=new CustomEvent("sa11y-check-complete",{detail:{results:this.results,page:window.location.pathname}});window.sa11yCheckComplete=l.detail,document.dispatchEvent(l)},this.resetAll=(e=!0)=>{for(o.Global.html.removeAttribute("data-sa11y-active"),N(["sa11y-annotation","sa11y-heading-label","sa11y-heading-anchor","sa11y-tooltips","[data-sa11y-readability-period]","[data-sa11y-clone-image-text]"],"document"),k(["data-sa11y-parent","data-sa11y-error","data-sa11y-warning","data-sa11y-good","data-sa11y-error-inline","data-sa11y-warning-inline","data-sa11y-overflow","data-sa11y-pulse-border","data-sa11y-filter","data-sa11y-has-shadow-root"],"document"),o.Panel.outlineList.innerHTML="",s.showImageOutline&&(o.Panel.imagesList.innerHTML=""),o.Panel.pageIssuesList.innerHTML="",o.Panel.readabilityInfo.innerHTML="",o.Panel.readabilityDetails.innerHTML="",o.Panel.panel.classList.remove("has-page-issues"),o.Panel.pageIssues.classList.remove("active"),o.Panel.settingsContent.classList.remove("hide-settings-border"),o.Panel.panel.querySelector("#readability-alert")?.remove(),T(),document.removeEventListener("keydown",Bn),o.Panel.skipButton.removeEventListener("click",$n),o.Global.exportResultsPlugin&&(o.Panel.exportHTML.removeEventListener("click",K),o.Panel.exportCSV.removeEventListener("click",W)),o.Panel.panel?.removeEventListener("click",$),o.Panel.dismissButton?.removeEventListener("click",B),o.Global.colourFilterPlugin&&(o.Panel.colourFilterSelect.value=0,o.Panel.colourPanel.classList.remove("active"),o.Panel.colourFilterSelect.classList.remove("active"),o.Panel.content.hidden=!1);o.Panel.status.firstChild;)o.Panel.status.removeChild(o.Panel.status.firstChild);document.querySelectorAll("[data-sa11y-has-shadow-root]").forEach(e=>{e.shadowRoot.querySelectorAll("style.sa11y-css-utilities").forEach(e=>e.remove()),e.removeAttribute("data-sa11y-has-shadow-root")}),e&&o.Panel.panel.classList.remove("active")},this.disabled=()=>{setTimeout(()=>{"Opened"===_.getItem("sa11y-panel")&&o.Panel.toggle.click(),o.Panel.toggle.disabled=!0},s.delayCheck+10)},this.enabled=()=>{o.Panel.toggle&&(o.Panel.toggle.disabled=!1)},this.find=(e,t,n)=>i(e,t,n),this.prepareDismissal=e=>I(e),this.sanitizeHTML=e=>h(e),this.truncateString=(e,t)=>A(e,t),this.initialize()}},Object.defineProperty(e,"__esModule",{value:!0})}); diff --git a/docs/assets/js/lang/bg.js b/docs/assets/js/lang/bg.js index 85b595bb..46239170 100644 --- a/docs/assets/js/lang/bg.js +++ b/docs/assets/js/lang/bg.js @@ -1,7 +1,7 @@ /*! * Sa11y, the accessibility quality assurance assistant. - * @version 4.2.0 + * @version 4.2.1 * @author Adam Chaboryk * @license GPL-2.0-or-later * @copyright © 2020 - 2025 Toronto Metropolitan University. diff --git a/docs/assets/js/lang/bg.umd.js b/docs/assets/js/lang/bg.umd.js index b54220a3..80225ca4 100644 --- a/docs/assets/js/lang/bg.umd.js +++ b/docs/assets/js/lang/bg.umd.js @@ -1,7 +1,7 @@ /*! * Sa11y, the accessibility quality assurance assistant. - * @version 4.2.0 + * @version 4.2.1 * @author Adam Chaboryk * @license GPL-2.0-or-later * @copyright © 2020 - 2025 Toronto Metropolitan University. diff --git a/docs/assets/js/lang/cs.js b/docs/assets/js/lang/cs.js index 6cf7b9a0..486c2dfa 100644 --- a/docs/assets/js/lang/cs.js +++ b/docs/assets/js/lang/cs.js @@ -1,7 +1,7 @@ /*! * Sa11y, the accessibility quality assurance assistant. - * @version 4.2.0 + * @version 4.2.1 * @author Adam Chaboryk * @license GPL-2.0-or-later * @copyright © 2020 - 2025 Toronto Metropolitan University. diff --git a/docs/assets/js/lang/cs.umd.js b/docs/assets/js/lang/cs.umd.js index 703e6df7..c45fdcb6 100644 --- a/docs/assets/js/lang/cs.umd.js +++ b/docs/assets/js/lang/cs.umd.js @@ -1,7 +1,7 @@ /*! * Sa11y, the accessibility quality assurance assistant. - * @version 4.2.0 + * @version 4.2.1 * @author Adam Chaboryk * @license GPL-2.0-or-later * @copyright © 2020 - 2025 Toronto Metropolitan University. diff --git a/docs/assets/js/lang/da.js b/docs/assets/js/lang/da.js index 4330a3c4..7135a844 100644 --- a/docs/assets/js/lang/da.js +++ b/docs/assets/js/lang/da.js @@ -1,7 +1,7 @@ /*! * Sa11y, the accessibility quality assurance assistant. - * @version 4.2.0 + * @version 4.2.1 * @author Adam Chaboryk * @license GPL-2.0-or-later * @copyright © 2020 - 2025 Toronto Metropolitan University. diff --git a/docs/assets/js/lang/da.umd.js b/docs/assets/js/lang/da.umd.js index a0334828..7d1c050a 100644 --- a/docs/assets/js/lang/da.umd.js +++ b/docs/assets/js/lang/da.umd.js @@ -1,7 +1,7 @@ /*! * Sa11y, the accessibility quality assurance assistant. - * @version 4.2.0 + * @version 4.2.1 * @author Adam Chaboryk * @license GPL-2.0-or-later * @copyright © 2020 - 2025 Toronto Metropolitan University. diff --git a/docs/assets/js/lang/de.js b/docs/assets/js/lang/de.js index 90a70a10..bccfba77 100644 --- a/docs/assets/js/lang/de.js +++ b/docs/assets/js/lang/de.js @@ -1,7 +1,7 @@ /*! * Sa11y, the accessibility quality assurance assistant. - * @version 4.2.0 + * @version 4.2.1 * @author Adam Chaboryk * @license GPL-2.0-or-later * @copyright © 2020 - 2025 Toronto Metropolitan University. diff --git a/docs/assets/js/lang/de.umd.js b/docs/assets/js/lang/de.umd.js index cfc7272f..fec88221 100644 --- a/docs/assets/js/lang/de.umd.js +++ b/docs/assets/js/lang/de.umd.js @@ -1,7 +1,7 @@ /*! * Sa11y, the accessibility quality assurance assistant. - * @version 4.2.0 + * @version 4.2.1 * @author Adam Chaboryk * @license GPL-2.0-or-later * @copyright © 2020 - 2025 Toronto Metropolitan University. diff --git a/docs/assets/js/lang/el.js b/docs/assets/js/lang/el.js index 3cce21ec..2c3a3881 100644 --- a/docs/assets/js/lang/el.js +++ b/docs/assets/js/lang/el.js @@ -1,7 +1,7 @@ /*! * Sa11y, the accessibility quality assurance assistant. - * @version 4.2.0 + * @version 4.2.1 * @author Adam Chaboryk * @license GPL-2.0-or-later * @copyright © 2020 - 2025 Toronto Metropolitan University. diff --git a/docs/assets/js/lang/el.umd.js b/docs/assets/js/lang/el.umd.js index 71502d9f..60589c47 100644 --- a/docs/assets/js/lang/el.umd.js +++ b/docs/assets/js/lang/el.umd.js @@ -1,7 +1,7 @@ /*! * Sa11y, the accessibility quality assurance assistant. - * @version 4.2.0 + * @version 4.2.1 * @author Adam Chaboryk * @license GPL-2.0-or-later * @copyright © 2020 - 2025 Toronto Metropolitan University. diff --git a/docs/assets/js/lang/en.js b/docs/assets/js/lang/en.js index 2fe072ec..d5425866 100644 --- a/docs/assets/js/lang/en.js +++ b/docs/assets/js/lang/en.js @@ -1,7 +1,7 @@ /*! * Sa11y, the accessibility quality assurance assistant. - * @version 4.2.0 + * @version 4.2.1 * @author Adam Chaboryk * @license GPL-2.0-or-later * @copyright © 2020 - 2025 Toronto Metropolitan University. diff --git a/docs/assets/js/lang/en.umd.js b/docs/assets/js/lang/en.umd.js index 2e18d8d9..3a4c7544 100644 --- a/docs/assets/js/lang/en.umd.js +++ b/docs/assets/js/lang/en.umd.js @@ -1,7 +1,7 @@ /*! * Sa11y, the accessibility quality assurance assistant. - * @version 4.2.0 + * @version 4.2.1 * @author Adam Chaboryk * @license GPL-2.0-or-later * @copyright © 2020 - 2025 Toronto Metropolitan University. diff --git a/docs/assets/js/lang/enUS.js b/docs/assets/js/lang/enUS.js index a113d130..c1e21111 100644 --- a/docs/assets/js/lang/enUS.js +++ b/docs/assets/js/lang/enUS.js @@ -1,7 +1,7 @@ /*! * Sa11y, the accessibility quality assurance assistant. - * @version 4.2.0 + * @version 4.2.1 * @author Adam Chaboryk * @license GPL-2.0-or-later * @copyright © 2020 - 2025 Toronto Metropolitan University. diff --git a/docs/assets/js/lang/enUS.umd.js b/docs/assets/js/lang/enUS.umd.js index de97cde4..539df12f 100644 --- a/docs/assets/js/lang/enUS.umd.js +++ b/docs/assets/js/lang/enUS.umd.js @@ -1,7 +1,7 @@ /*! * Sa11y, the accessibility quality assurance assistant. - * @version 4.2.0 + * @version 4.2.1 * @author Adam Chaboryk * @license GPL-2.0-or-later * @copyright © 2020 - 2025 Toronto Metropolitan University. diff --git a/docs/assets/js/lang/es.js b/docs/assets/js/lang/es.js index 78921603..ac3f4852 100644 --- a/docs/assets/js/lang/es.js +++ b/docs/assets/js/lang/es.js @@ -1,7 +1,7 @@ /*! * Sa11y, the accessibility quality assurance assistant. - * @version 4.2.0 + * @version 4.2.1 * @author Adam Chaboryk * @license GPL-2.0-or-later * @copyright © 2020 - 2025 Toronto Metropolitan University. diff --git a/docs/assets/js/lang/es.umd.js b/docs/assets/js/lang/es.umd.js index 964a8343..28596190 100644 --- a/docs/assets/js/lang/es.umd.js +++ b/docs/assets/js/lang/es.umd.js @@ -1,7 +1,7 @@ /*! * Sa11y, the accessibility quality assurance assistant. - * @version 4.2.0 + * @version 4.2.1 * @author Adam Chaboryk * @license GPL-2.0-or-later * @copyright © 2020 - 2025 Toronto Metropolitan University. diff --git a/docs/assets/js/lang/et.js b/docs/assets/js/lang/et.js index e6407cbf..3495a619 100644 --- a/docs/assets/js/lang/et.js +++ b/docs/assets/js/lang/et.js @@ -1,7 +1,7 @@ /*! * Sa11y, the accessibility quality assurance assistant. - * @version 4.2.0 + * @version 4.2.1 * @author Adam Chaboryk * @license GPL-2.0-or-later * @copyright © 2020 - 2025 Toronto Metropolitan University. diff --git a/docs/assets/js/lang/et.umd.js b/docs/assets/js/lang/et.umd.js index 154f9510..e2de836d 100644 --- a/docs/assets/js/lang/et.umd.js +++ b/docs/assets/js/lang/et.umd.js @@ -1,7 +1,7 @@ /*! * Sa11y, the accessibility quality assurance assistant. - * @version 4.2.0 + * @version 4.2.1 * @author Adam Chaboryk * @license GPL-2.0-or-later * @copyright © 2020 - 2025 Toronto Metropolitan University. diff --git a/docs/assets/js/lang/fi.js b/docs/assets/js/lang/fi.js index 9a4bc269..88a1ddd9 100644 --- a/docs/assets/js/lang/fi.js +++ b/docs/assets/js/lang/fi.js @@ -1,7 +1,7 @@ /*! * Sa11y, the accessibility quality assurance assistant. - * @version 4.2.0 + * @version 4.2.1 * @author Adam Chaboryk * @license GPL-2.0-or-later * @copyright © 2020 - 2025 Toronto Metropolitan University. diff --git a/docs/assets/js/lang/fi.umd.js b/docs/assets/js/lang/fi.umd.js index e37c253c..c10367b7 100644 --- a/docs/assets/js/lang/fi.umd.js +++ b/docs/assets/js/lang/fi.umd.js @@ -1,7 +1,7 @@ /*! * Sa11y, the accessibility quality assurance assistant. - * @version 4.2.0 + * @version 4.2.1 * @author Adam Chaboryk * @license GPL-2.0-or-later * @copyright © 2020 - 2025 Toronto Metropolitan University. diff --git a/docs/assets/js/lang/fr.js b/docs/assets/js/lang/fr.js index b9aa89aa..3bd16e40 100644 --- a/docs/assets/js/lang/fr.js +++ b/docs/assets/js/lang/fr.js @@ -1,7 +1,7 @@ /*! * Sa11y, the accessibility quality assurance assistant. - * @version 4.2.0 + * @version 4.2.1 * @author Adam Chaboryk * @license GPL-2.0-or-later * @copyright © 2020 - 2025 Toronto Metropolitan University. diff --git a/docs/assets/js/lang/fr.umd.js b/docs/assets/js/lang/fr.umd.js index fd01f3e7..a269a07f 100644 --- a/docs/assets/js/lang/fr.umd.js +++ b/docs/assets/js/lang/fr.umd.js @@ -1,7 +1,7 @@ /*! * Sa11y, the accessibility quality assurance assistant. - * @version 4.2.0 + * @version 4.2.1 * @author Adam Chaboryk * @license GPL-2.0-or-later * @copyright © 2020 - 2025 Toronto Metropolitan University. diff --git a/docs/assets/js/lang/hu.js b/docs/assets/js/lang/hu.js index 61c9e93b..4d14c79d 100644 --- a/docs/assets/js/lang/hu.js +++ b/docs/assets/js/lang/hu.js @@ -1,7 +1,7 @@ /*! * Sa11y, the accessibility quality assurance assistant. - * @version 4.2.0 + * @version 4.2.1 * @author Adam Chaboryk * @license GPL-2.0-or-later * @copyright © 2020 - 2025 Toronto Metropolitan University. diff --git a/docs/assets/js/lang/hu.umd.js b/docs/assets/js/lang/hu.umd.js index df9db9e5..49b3b71a 100644 --- a/docs/assets/js/lang/hu.umd.js +++ b/docs/assets/js/lang/hu.umd.js @@ -1,7 +1,7 @@ /*! * Sa11y, the accessibility quality assurance assistant. - * @version 4.2.0 + * @version 4.2.1 * @author Adam Chaboryk * @license GPL-2.0-or-later * @copyright © 2020 - 2025 Toronto Metropolitan University. diff --git a/docs/assets/js/lang/id.js b/docs/assets/js/lang/id.js index d05fde25..a7ed2dd0 100644 --- a/docs/assets/js/lang/id.js +++ b/docs/assets/js/lang/id.js @@ -1,7 +1,7 @@ /*! * Sa11y, the accessibility quality assurance assistant. - * @version 4.2.0 + * @version 4.2.1 * @author Adam Chaboryk * @license GPL-2.0-or-later * @copyright © 2020 - 2025 Toronto Metropolitan University. diff --git a/docs/assets/js/lang/id.umd.js b/docs/assets/js/lang/id.umd.js index 29d2a073..9a646219 100644 --- a/docs/assets/js/lang/id.umd.js +++ b/docs/assets/js/lang/id.umd.js @@ -1,7 +1,7 @@ /*! * Sa11y, the accessibility quality assurance assistant. - * @version 4.2.0 + * @version 4.2.1 * @author Adam Chaboryk * @license GPL-2.0-or-later * @copyright © 2020 - 2025 Toronto Metropolitan University. diff --git a/docs/assets/js/lang/it.js b/docs/assets/js/lang/it.js index 50cf022c..55e41974 100644 --- a/docs/assets/js/lang/it.js +++ b/docs/assets/js/lang/it.js @@ -1,7 +1,7 @@ /*! * Sa11y, the accessibility quality assurance assistant. - * @version 4.2.0 + * @version 4.2.1 * @author Adam Chaboryk * @license GPL-2.0-or-later * @copyright © 2020 - 2025 Toronto Metropolitan University. diff --git a/docs/assets/js/lang/it.umd.js b/docs/assets/js/lang/it.umd.js index b1701542..c2066244 100644 --- a/docs/assets/js/lang/it.umd.js +++ b/docs/assets/js/lang/it.umd.js @@ -1,7 +1,7 @@ /*! * Sa11y, the accessibility quality assurance assistant. - * @version 4.2.0 + * @version 4.2.1 * @author Adam Chaboryk * @license GPL-2.0-or-later * @copyright © 2020 - 2025 Toronto Metropolitan University. diff --git a/docs/assets/js/lang/ja.js b/docs/assets/js/lang/ja.js index c424aa2a..c2cad6aa 100644 --- a/docs/assets/js/lang/ja.js +++ b/docs/assets/js/lang/ja.js @@ -1,7 +1,7 @@ /*! * Sa11y, the accessibility quality assurance assistant. - * @version 4.2.0 + * @version 4.2.1 * @author Adam Chaboryk * @license GPL-2.0-or-later * @copyright © 2020 - 2025 Toronto Metropolitan University. diff --git a/docs/assets/js/lang/ja.umd.js b/docs/assets/js/lang/ja.umd.js index 5d9ae91e..a3d6db0e 100644 --- a/docs/assets/js/lang/ja.umd.js +++ b/docs/assets/js/lang/ja.umd.js @@ -1,7 +1,7 @@ /*! * Sa11y, the accessibility quality assurance assistant. - * @version 4.2.0 + * @version 4.2.1 * @author Adam Chaboryk * @license GPL-2.0-or-later * @copyright © 2020 - 2025 Toronto Metropolitan University. diff --git a/docs/assets/js/lang/ko.js b/docs/assets/js/lang/ko.js index 5ae3cfb0..945e14c1 100644 --- a/docs/assets/js/lang/ko.js +++ b/docs/assets/js/lang/ko.js @@ -1,7 +1,7 @@ /*! * Sa11y, the accessibility quality assurance assistant. - * @version 4.2.0 + * @version 4.2.1 * @author Adam Chaboryk * @license GPL-2.0-or-later * @copyright © 2020 - 2025 Toronto Metropolitan University. diff --git a/docs/assets/js/lang/ko.umd.js b/docs/assets/js/lang/ko.umd.js index 98a88070..e2083a8c 100644 --- a/docs/assets/js/lang/ko.umd.js +++ b/docs/assets/js/lang/ko.umd.js @@ -1,7 +1,7 @@ /*! * Sa11y, the accessibility quality assurance assistant. - * @version 4.2.0 + * @version 4.2.1 * @author Adam Chaboryk * @license GPL-2.0-or-later * @copyright © 2020 - 2025 Toronto Metropolitan University. diff --git a/docs/assets/js/lang/lt.js b/docs/assets/js/lang/lt.js index ec32e0a5..2e292742 100644 --- a/docs/assets/js/lang/lt.js +++ b/docs/assets/js/lang/lt.js @@ -1,7 +1,7 @@ /*! * Sa11y, the accessibility quality assurance assistant. - * @version 4.2.0 + * @version 4.2.1 * @author Adam Chaboryk * @license GPL-2.0-or-later * @copyright © 2020 - 2025 Toronto Metropolitan University. diff --git a/docs/assets/js/lang/lt.umd.js b/docs/assets/js/lang/lt.umd.js index 7a8a862c..381beb28 100644 --- a/docs/assets/js/lang/lt.umd.js +++ b/docs/assets/js/lang/lt.umd.js @@ -1,7 +1,7 @@ /*! * Sa11y, the accessibility quality assurance assistant. - * @version 4.2.0 + * @version 4.2.1 * @author Adam Chaboryk * @license GPL-2.0-or-later * @copyright © 2020 - 2025 Toronto Metropolitan University. diff --git a/docs/assets/js/lang/lv.js b/docs/assets/js/lang/lv.js index a6bf1b08..6ab4c22f 100644 --- a/docs/assets/js/lang/lv.js +++ b/docs/assets/js/lang/lv.js @@ -1,7 +1,7 @@ /*! * Sa11y, the accessibility quality assurance assistant. - * @version 4.2.0 + * @version 4.2.1 * @author Adam Chaboryk * @license GPL-2.0-or-later * @copyright © 2020 - 2025 Toronto Metropolitan University. diff --git a/docs/assets/js/lang/lv.umd.js b/docs/assets/js/lang/lv.umd.js index 6b11e14b..3986379c 100644 --- a/docs/assets/js/lang/lv.umd.js +++ b/docs/assets/js/lang/lv.umd.js @@ -1,7 +1,7 @@ /*! * Sa11y, the accessibility quality assurance assistant. - * @version 4.2.0 + * @version 4.2.1 * @author Adam Chaboryk * @license GPL-2.0-or-later * @copyright © 2020 - 2025 Toronto Metropolitan University. diff --git a/docs/assets/js/lang/nb.js b/docs/assets/js/lang/nb.js index 74202273..46412d6c 100644 --- a/docs/assets/js/lang/nb.js +++ b/docs/assets/js/lang/nb.js @@ -1,7 +1,7 @@ /*! * Sa11y, the accessibility quality assurance assistant. - * @version 4.2.0 + * @version 4.2.1 * @author Adam Chaboryk * @license GPL-2.0-or-later * @copyright © 2020 - 2025 Toronto Metropolitan University. diff --git a/docs/assets/js/lang/nb.umd.js b/docs/assets/js/lang/nb.umd.js index 46a4b802..dc15be07 100644 --- a/docs/assets/js/lang/nb.umd.js +++ b/docs/assets/js/lang/nb.umd.js @@ -1,7 +1,7 @@ /*! * Sa11y, the accessibility quality assurance assistant. - * @version 4.2.0 + * @version 4.2.1 * @author Adam Chaboryk * @license GPL-2.0-or-later * @copyright © 2020 - 2025 Toronto Metropolitan University. diff --git a/docs/assets/js/lang/nl.js b/docs/assets/js/lang/nl.js index 3a8a5198..12a71e38 100644 --- a/docs/assets/js/lang/nl.js +++ b/docs/assets/js/lang/nl.js @@ -1,7 +1,7 @@ /*! * Sa11y, the accessibility quality assurance assistant. - * @version 4.2.0 + * @version 4.2.1 * @author Adam Chaboryk * @license GPL-2.0-or-later * @copyright © 2020 - 2025 Toronto Metropolitan University. diff --git a/docs/assets/js/lang/nl.umd.js b/docs/assets/js/lang/nl.umd.js index d589afc6..9f874c92 100644 --- a/docs/assets/js/lang/nl.umd.js +++ b/docs/assets/js/lang/nl.umd.js @@ -1,7 +1,7 @@ /*! * Sa11y, the accessibility quality assurance assistant. - * @version 4.2.0 + * @version 4.2.1 * @author Adam Chaboryk * @license GPL-2.0-or-later * @copyright © 2020 - 2025 Toronto Metropolitan University. diff --git a/docs/assets/js/lang/pl.js b/docs/assets/js/lang/pl.js index b140f8f3..babeb6e1 100644 --- a/docs/assets/js/lang/pl.js +++ b/docs/assets/js/lang/pl.js @@ -1,7 +1,7 @@ /*! * Sa11y, the accessibility quality assurance assistant. - * @version 4.2.0 + * @version 4.2.1 * @author Adam Chaboryk * @license GPL-2.0-or-later * @copyright © 2020 - 2025 Toronto Metropolitan University. diff --git a/docs/assets/js/lang/pl.umd.js b/docs/assets/js/lang/pl.umd.js index b3207dbf..07584243 100644 --- a/docs/assets/js/lang/pl.umd.js +++ b/docs/assets/js/lang/pl.umd.js @@ -1,7 +1,7 @@ /*! * Sa11y, the accessibility quality assurance assistant. - * @version 4.2.0 + * @version 4.2.1 * @author Adam Chaboryk * @license GPL-2.0-or-later * @copyright © 2020 - 2025 Toronto Metropolitan University. diff --git a/docs/assets/js/lang/ptBR.js b/docs/assets/js/lang/ptBR.js index 5da7c61c..d7e14520 100644 --- a/docs/assets/js/lang/ptBR.js +++ b/docs/assets/js/lang/ptBR.js @@ -1,7 +1,7 @@ /*! * Sa11y, the accessibility quality assurance assistant. - * @version 4.2.0 + * @version 4.2.1 * @author Adam Chaboryk * @license GPL-2.0-or-later * @copyright © 2020 - 2025 Toronto Metropolitan University. diff --git a/docs/assets/js/lang/ptBR.umd.js b/docs/assets/js/lang/ptBR.umd.js index c15308a3..d79b3398 100644 --- a/docs/assets/js/lang/ptBR.umd.js +++ b/docs/assets/js/lang/ptBR.umd.js @@ -1,7 +1,7 @@ /*! * Sa11y, the accessibility quality assurance assistant. - * @version 4.2.0 + * @version 4.2.1 * @author Adam Chaboryk * @license GPL-2.0-or-later * @copyright © 2020 - 2025 Toronto Metropolitan University. diff --git a/docs/assets/js/lang/ptPT.js b/docs/assets/js/lang/ptPT.js index 7db1dd7c..1253676b 100644 --- a/docs/assets/js/lang/ptPT.js +++ b/docs/assets/js/lang/ptPT.js @@ -1,7 +1,7 @@ /*! * Sa11y, the accessibility quality assurance assistant. - * @version 4.2.0 + * @version 4.2.1 * @author Adam Chaboryk * @license GPL-2.0-or-later * @copyright © 2020 - 2025 Toronto Metropolitan University. diff --git a/docs/assets/js/lang/ptPT.umd.js b/docs/assets/js/lang/ptPT.umd.js index 31980e46..10d8bfad 100644 --- a/docs/assets/js/lang/ptPT.umd.js +++ b/docs/assets/js/lang/ptPT.umd.js @@ -1,7 +1,7 @@ /*! * Sa11y, the accessibility quality assurance assistant. - * @version 4.2.0 + * @version 4.2.1 * @author Adam Chaboryk * @license GPL-2.0-or-later * @copyright © 2020 - 2025 Toronto Metropolitan University. diff --git a/docs/assets/js/lang/ro.js b/docs/assets/js/lang/ro.js index b3848f0a..38b13119 100644 --- a/docs/assets/js/lang/ro.js +++ b/docs/assets/js/lang/ro.js @@ -1,7 +1,7 @@ /*! * Sa11y, the accessibility quality assurance assistant. - * @version 4.2.0 + * @version 4.2.1 * @author Adam Chaboryk * @license GPL-2.0-or-later * @copyright © 2020 - 2025 Toronto Metropolitan University. diff --git a/docs/assets/js/lang/ro.umd.js b/docs/assets/js/lang/ro.umd.js index cefa8930..1480cec3 100644 --- a/docs/assets/js/lang/ro.umd.js +++ b/docs/assets/js/lang/ro.umd.js @@ -1,7 +1,7 @@ /*! * Sa11y, the accessibility quality assurance assistant. - * @version 4.2.0 + * @version 4.2.1 * @author Adam Chaboryk * @license GPL-2.0-or-later * @copyright © 2020 - 2025 Toronto Metropolitan University. diff --git a/docs/assets/js/lang/sk.js b/docs/assets/js/lang/sk.js index 4c7c3def..b1684179 100644 --- a/docs/assets/js/lang/sk.js +++ b/docs/assets/js/lang/sk.js @@ -1,7 +1,7 @@ /*! * Sa11y, the accessibility quality assurance assistant. - * @version 4.2.0 + * @version 4.2.1 * @author Adam Chaboryk * @license GPL-2.0-or-later * @copyright © 2020 - 2025 Toronto Metropolitan University. diff --git a/docs/assets/js/lang/sk.umd.js b/docs/assets/js/lang/sk.umd.js index e2fa4433..5e9e66cc 100644 --- a/docs/assets/js/lang/sk.umd.js +++ b/docs/assets/js/lang/sk.umd.js @@ -1,7 +1,7 @@ /*! * Sa11y, the accessibility quality assurance assistant. - * @version 4.2.0 + * @version 4.2.1 * @author Adam Chaboryk * @license GPL-2.0-or-later * @copyright © 2020 - 2025 Toronto Metropolitan University. diff --git a/docs/assets/js/lang/sl.js b/docs/assets/js/lang/sl.js index ec040e86..038cb29b 100644 --- a/docs/assets/js/lang/sl.js +++ b/docs/assets/js/lang/sl.js @@ -1,7 +1,7 @@ /*! * Sa11y, the accessibility quality assurance assistant. - * @version 4.2.0 + * @version 4.2.1 * @author Adam Chaboryk * @license GPL-2.0-or-later * @copyright © 2020 - 2025 Toronto Metropolitan University. diff --git a/docs/assets/js/lang/sl.umd.js b/docs/assets/js/lang/sl.umd.js index 3d327446..6ffdfc59 100644 --- a/docs/assets/js/lang/sl.umd.js +++ b/docs/assets/js/lang/sl.umd.js @@ -1,7 +1,7 @@ /*! * Sa11y, the accessibility quality assurance assistant. - * @version 4.2.0 + * @version 4.2.1 * @author Adam Chaboryk * @license GPL-2.0-or-later * @copyright © 2020 - 2025 Toronto Metropolitan University. diff --git a/docs/assets/js/lang/sv.js b/docs/assets/js/lang/sv.js index 830381ae..10c19857 100644 --- a/docs/assets/js/lang/sv.js +++ b/docs/assets/js/lang/sv.js @@ -1,7 +1,7 @@ /*! * Sa11y, the accessibility quality assurance assistant. - * @version 4.2.0 + * @version 4.2.1 * @author Adam Chaboryk * @license GPL-2.0-or-later * @copyright © 2020 - 2025 Toronto Metropolitan University. diff --git a/docs/assets/js/lang/sv.umd.js b/docs/assets/js/lang/sv.umd.js index becd558c..a6aec5b2 100644 --- a/docs/assets/js/lang/sv.umd.js +++ b/docs/assets/js/lang/sv.umd.js @@ -1,7 +1,7 @@ /*! * Sa11y, the accessibility quality assurance assistant. - * @version 4.2.0 + * @version 4.2.1 * @author Adam Chaboryk * @license GPL-2.0-or-later * @copyright © 2020 - 2025 Toronto Metropolitan University. diff --git a/docs/assets/js/lang/tr.js b/docs/assets/js/lang/tr.js index 46cb81ca..69d9babc 100644 --- a/docs/assets/js/lang/tr.js +++ b/docs/assets/js/lang/tr.js @@ -1,7 +1,7 @@ /*! * Sa11y, the accessibility quality assurance assistant. - * @version 4.2.0 + * @version 4.2.1 * @author Adam Chaboryk * @license GPL-2.0-or-later * @copyright © 2020 - 2025 Toronto Metropolitan University. diff --git a/docs/assets/js/lang/tr.umd.js b/docs/assets/js/lang/tr.umd.js index c1826646..88f46e43 100644 --- a/docs/assets/js/lang/tr.umd.js +++ b/docs/assets/js/lang/tr.umd.js @@ -1,7 +1,7 @@ /*! * Sa11y, the accessibility quality assurance assistant. - * @version 4.2.0 + * @version 4.2.1 * @author Adam Chaboryk * @license GPL-2.0-or-later * @copyright © 2020 - 2025 Toronto Metropolitan University. diff --git a/docs/assets/js/lang/ua.js b/docs/assets/js/lang/ua.js index c1580f65..57c553cd 100644 --- a/docs/assets/js/lang/ua.js +++ b/docs/assets/js/lang/ua.js @@ -1,7 +1,7 @@ /*! * Sa11y, the accessibility quality assurance assistant. - * @version 4.2.0 + * @version 4.2.1 * @author Adam Chaboryk * @license GPL-2.0-or-later * @copyright © 2020 - 2025 Toronto Metropolitan University. diff --git a/docs/assets/js/lang/ua.umd.js b/docs/assets/js/lang/ua.umd.js index 6cecf4c2..bc975411 100644 --- a/docs/assets/js/lang/ua.umd.js +++ b/docs/assets/js/lang/ua.umd.js @@ -1,7 +1,7 @@ /*! * Sa11y, the accessibility quality assurance assistant. - * @version 4.2.0 + * @version 4.2.1 * @author Adam Chaboryk * @license GPL-2.0-or-later * @copyright © 2020 - 2025 Toronto Metropolitan University. diff --git a/docs/assets/js/lang/zh.js b/docs/assets/js/lang/zh.js index fbeef927..80ec80a6 100644 --- a/docs/assets/js/lang/zh.js +++ b/docs/assets/js/lang/zh.js @@ -1,7 +1,7 @@ /*! * Sa11y, the accessibility quality assurance assistant. - * @version 4.2.0 + * @version 4.2.1 * @author Adam Chaboryk * @license GPL-2.0-or-later * @copyright © 2020 - 2025 Toronto Metropolitan University. diff --git a/docs/assets/js/lang/zh.umd.js b/docs/assets/js/lang/zh.umd.js index 3e508a30..f8284463 100644 --- a/docs/assets/js/lang/zh.umd.js +++ b/docs/assets/js/lang/zh.umd.js @@ -1,7 +1,7 @@ /*! * Sa11y, the accessibility quality assurance assistant. - * @version 4.2.0 + * @version 4.2.1 * @author Adam Chaboryk * @license GPL-2.0-or-later * @copyright © 2020 - 2025 Toronto Metropolitan University. diff --git a/docs/assets/js/sa11y.esm.js b/docs/assets/js/sa11y.esm.js index 47537267..378148ff 100644 --- a/docs/assets/js/sa11y.esm.js +++ b/docs/assets/js/sa11y.esm.js @@ -1,7 +1,7 @@ /*! * Sa11y, the accessibility quality assurance assistant. - * @version 4.2.0 + * @version 4.2.1 * @author Adam Chaboryk * @license GPL-2.0-or-later * @copyright © 2020 - 2025 Toronto Metropolitan University. @@ -2218,7 +2218,7 @@ function removeExportListeners() { } } -const version = '4.2.0'; +const version = '4.2.1'; var styles = ":host{background:var(--sa11y-panel-bg);border-top:5px solid var(--sa11y-panel-bg-splitter);bottom:0;display:block;height:-moz-fit-content;height:fit-content;left:0;position:fixed;right:0;width:100%;z-index:999999}*{-webkit-font-smoothing:auto!important;color:var(--sa11y-panel-primary);font-family:var(--sa11y-font-face)!important;font-size:var(--sa11y-normal-text);line-height:22px!important}#dialog{margin:20px auto;max-width:900px;padding:20px}h2{font-size:var(--sa11y-large-text);margin-top:0}a{color:var(--sa11y-hyperlink);cursor:pointer;text-decoration:underline}a:focus,a:hover{text-decoration:none}p{margin-top:0}.error{background:var(--sa11y-error);border:2px dashed #f08080;color:var(--sa11y-error-text);margin-bottom:0;padding:5px}"; @@ -9471,7 +9471,7 @@ function checkContrast(results, option) { } // Process simple SVGs with a single shape. - const shapes = $el.querySelectorAll('path, polygon, circle, rect, ellipse'); + const shapes = $el.querySelectorAll('path, polygon, circle, rect, ellipse, use'); if (shapes.length === 1) { const style = getComputedStyle(shapes[0]); const { fill, opacity, stroke, strokeWidth } = style; @@ -9900,7 +9900,7 @@ function checkLabels(results, option) { } // Avoid using placeholder attributes. - if ($el.placeholder && $el.placeholder !== 0) { + if (option.checks.LABELS_PLACEHOLDER && $el.placeholder && $el.placeholder !== 0) { results.push({ element: $el, type: option.checks.LABELS_PLACEHOLDER.type || 'warning', diff --git a/docs/assets/js/sa11y.esm.min.js b/docs/assets/js/sa11y.esm.min.js index 63119e4c..521544f8 100644 --- a/docs/assets/js/sa11y.esm.min.js +++ b/docs/assets/js/sa11y.esm.min.js @@ -1,6 +1,6 @@ /*! * Sa11y, the accessibility quality assurance assistant. - * @version 4.2.0 + * @version 4.2.1 * @author Adam Chaboryk * @license GPL-2.0-or-later * @copyright © 2020 - 2025 Toronto Metropolitan University. @@ -9,4 +9,4 @@ * For all acknowledgements, please visit: https://sa11y.netlify.app/acknowledgements/ * The above copyright notice shall be included in all copies or substantial portions of the Software. **/ -const e={checkRoot:"body",containerIgnore:".sa11y-ignore",contrastIgnore:".sr-only",outlineIgnore:"",headerIgnore:"",headerIgnoreSpan:"",headerIgnoreStrings:"",imageIgnore:"",linkIgnore:"",linkIgnoreSpan:"",linkIgnoreStrings:"",aboutContent:"",panelPosition:"right",showMovePanelToggle:!0,checkAllHideToggles:!1,developerChecksOnByDefault:!1,showHinPageOutline:!1,showTitleInPageOutline:!0,showImageOutline:!0,editImageURLofCMS:"",relativePathImageSRC:"",relativePathImageID:"",ignoreEditImageURL:[],ignoreEditImageClass:[],delayCheck:0,delayCustomCheck:500,detectSPArouting:!1,doNotRun:"",headless:!1,selectorPath:!1,shadowComponents:"",autoDetectShadowComponents:!1,showGoodImageButton:!0,showGoodLinkButton:!0,dismissAnnotations:!0,dismissAll:!0,ignoreHiddenOverflow:"",insertAnnotationBefore:"",readabilityPlugin:!0,readabilityRoot:"body",readabilityIgnore:"",contrastPlugin:!0,contrastAAA:!1,contrastAPCA:!1,customChecks:!1,linksAdvancedPlugin:!0,formLabelsPlugin:!0,embeddedContentPlugin:!0,developerPlugin:!0,externalDeveloperChecks:!1,colourFilterPlugin:!0,exportResultsPlugin:!1,susAltStopWords:"",linkStopWords:"",extraPlaceholderStopWords:"",imageWithinLightbox:"",checks:{HEADING_SKIPPED_LEVEL:!0,HEADING_EMPTY_WITH_IMAGE:!0,HEADING_EMPTY:!0,HEADING_FIRST:!0,HEADING_LONG:{maxLength:170},HEADING_MISSING_ONE:!0,MISSING_ALT_LINK:!0,MISSING_ALT_LINK_HAS_TEXT:!0,MISSING_ALT:!0,IMAGE_DECORATIVE_CAROUSEL:{sources:".carousel"},LINK_IMAGE_NO_ALT_TEXT:!0,LINK_IMAGE_TEXT:!0,IMAGE_FIGURE_DECORATIVE:!0,IMAGE_DECORATIVE:!0,LINK_ALT_FILE_EXT:!0,ALT_FILE_EXT:!0,LINK_PLACEHOLDER_ALT:!0,ALT_PLACEHOLDER:!0,LINK_SUS_ALT:!0,SUS_ALT:!0,LINK_IMAGE_LONG_ALT:{maxLength:250},IMAGE_ALT_TOO_LONG:{maxLength:250},LINK_IMAGE_ALT:{dismissAll:!0},LINK_IMAGE_ALT_AND_TEXT:!0,IMAGE_FIGURE_DUPLICATE_ALT:!0,IMAGE_PASS:{dismissAll:!0},DUPLICATE_TITLE:{dismissAll:!0},LINK_EMPTY_LABELLEDBY:!0,LINK_EMPTY_NO_LABEL:!0,LINK_STOPWORD:!0,LINK_STOPWORD_ARIA:!0,LINK_SYMBOLS:!0,LINK_CLICK_HERE:!0,LINK_DOI:{dismissAll:!0},LINK_URL:{maxLength:40},LINK_LABEL:{dismissAll:!0},LINK_EMPTY:!0,LINK_IDENTICAL_NAME:{dismissAll:!0},LINK_NEW_TAB:{dismissAll:!0},LINK_FILE_EXT:!0,LABELS_MISSING_IMAGE_INPUT:!0,LABELS_INPUT_RESET:!0,LABELS_MISSING_LABEL:!0,LABELS_ARIA_LABEL_INPUT:!0,LABELS_NO_FOR_ATTRIBUTE:!0,LABELS_PLACEHOLDER:!0,EMBED_AUDIO:{sources:""},EMBED_VIDEO:{sources:""},EMBED_DATA_VIZ:{sources:""},EMBED_UNFOCUSABLE:!0,EMBED_MISSING_TITLE:!0,EMBED_GENERAL:!0,QA_BAD_LINK:{sources:""},QA_STRONG_ITALICS:!0,QA_IN_PAGE_LINK:!0,QA_DOCUMENT:{sources:"",dismissAll:!0},QA_PDF:{dismissAll:!0},QA_BLOCKQUOTE:!0,TABLES_MISSING_HEADINGS:!0,TABLES_SEMANTIC_HEADING:!0,TABLES_EMPTY_HEADING:!0,QA_FAKE_HEADING:!0,QA_FAKE_LIST:!0,QA_UPPERCASE:!0,QA_UNDERLINE:!0,QA_SUBSCRIPT:!0,QA_NESTED_COMPONENTS:{sources:""},QA_JUSTIFY:!0,QA_SMALL_TEXT:!0,META_LANG:!0,META_SCALABLE:!0,META_MAX:!0,META_REFRESH:!0,DUPLICATE_ID:!0,META_TITLE:!0,UNCONTAINED_LI:!0,TABINDEX_ATTR:!0,HIDDEN_FOCUSABLE:!0,LABEL_IN_NAME:!0,BTN_EMPTY:!0,BTN_EMPTY_LABELLEDBY:!0,BTN_ROLE_IN_NAME:!0,CONTRAST_WARNING:{dismissAll:!0},CONTRAST_INPUT:!0,CONTRAST_ERROR:!0,CONTRAST_PLACEHOLDER:!0,CONTRAST_PLACEHOLDER_UNSUPPORTED:!0,CONTRAST_ERROR_GRAPHIC:!0,CONTRAST_WARNING_GRAPHIC:{dismissAll:!0},CONTRAST_UNSUPPORTED:{dismissAll:!0}}},t={langStrings:{},addI18n(e){this.langStrings=e},_(e){return this.translate(e)},sprintf(e,...t){let n=this._(e);return n=this.prepHTML(n),t&&t.length&&t.forEach(e=>{n=n.replace(/%\([a-zA-z]+\)/,e)}),n},translate(e){return this.langStrings[e]||e},prepHTML:e=>e.replaceAll(/
                                    /g,'').replaceAll(/${t._("ALT")}
                                    `).replaceAll(/{L}/g,`${t._("LINKED")}`)},n=function(){const e={};const o={};const i={};const s={};const a={};return{initializeRoot:function(o,i){if(e.areaToCheck=document.querySelector(o),e.areaToCheck||(e.areaToCheck=document.querySelector("body")),e.Readability=document.querySelector(i),!e.Readability)if(e.areaToCheck){e.Readability=e.areaToCheck;const{readabilityDetails:o,readabilityToggle:s}=n.Panel,a="true"===s?.getAttribute("aria-pressed");if(o&&a){const n=document.createElement("div");n.id="readability-alert",n.innerHTML=`

                                    ${t.sprintf("MISSING_READABILITY_ROOT",e.areaToCheck.tagName.toLowerCase(),i)}

                                    `,o.insertAdjacentElement("afterend",n)}}else e.Readability=document.querySelector("body")},Root:e,initializeGlobal:function(e){o.html=document.querySelector("html"),o.headless=e.headless,o.panelPosition=e.panelPosition,o.dismissAnnotations=e.dismissAnnotations,o.aboutContent=e.aboutContent,o.contrastAPCA=e.contrastAPCA,o.contrastSuggestions=e.contrastSuggestions,o.contrastAAA=e.contrastAAA,o.shadowDetection=e.shadowComponents.length>0||!0===e.autoDetectShadowComponents,o.developerPlugin=e.developerPlugin,o.colourFilterPlugin=e.colourFilterPlugin,o.checkAllHideToggles=e.checkAllHideToggles,o.exportResultsPlugin=e.exportResultsPlugin,o.readabilityPlugin=e.readabilityPlugin,o.showImageOutline=e.showImageOutline,o.editImageURLofCMS=e.editImageURLofCMS,o.relativePathImageSRC=e.relativePathImageSRC,o.relativePathImageID=e.relativePathImageID,o.ignoreEditImageURL=e.ignoreEditImageURL,o.ignoreEditImageClass=e.ignoreEditImageClass,o.showMovePanelToggle=e.showMovePanelToggle;let t=!1;"function"==typeof window.matchMedia&&(t=window.matchMedia("(prefers-reduced-motion: reduce)")),o.scrollBehaviour=!t||t.matches?"auto":"smooth",o.langDirection="rtl"===o.html.getAttribute("dir")?"rtl":"ltr";const n=e.checks.QA_DOCUMENT.sources,i='a[href$=".doc"], a[href$=".docx"], a[href*=".doc?"], a[href*=".docx?"], a[href$=".ppt"], a[href$=".pptx"], a[href*=".ppt?"], a[href*=".pptx?"], a[href^="https://drive.google.com/file"], a[href^="https://docs.google."], a[href^="https://sway."]';o.documentSources=n?`${i}, ${n}`:i;const s=e.checks.EMBED_VIDEO.sources,a='video, [src*="Video"], [src*="video"], [src*="watch"], [src*="youtube.com"], [src*="vimeo.com"], [src*="panopto.com"], [src*="wistia.com"], [src*="dailymotion.com"], [src*="brightcove.com"], [src*="vidyard.com"]';if(s){const e=s.split(/\s*[\s,]\s*/).map(e=>`[src*="${e}"]`);o.VideoSources=`${a}, ${e.join(", ")}`}else o.VideoSources=a;const r=e.checks.EMBED_AUDIO.sources,l='audio, [src*="soundcloud.com"], [src*="simplecast.com"], [src*="podbean.com"], [src*="buzzsprout.com"], [src*="blubrry.com"], [src*="transistor.fm"], [src*="fusebox.fm"], [src*="libsyn.com"], [src*="spotify.com"], [src*="podcasts.apple.com"], [src*="castbox.fm"], [src*="megaphone.fm"], [src*="spreaker.com"], [src*="anchor.fm"], [src*="rss.com"], [src*="redcircle.com"]';if(r){const e=r.split(/\s*[\s,]\s*/).map(e=>`[src*="${e}"]`);o.AudioSources=`${l}, ${e.join(", ")}`}else o.AudioSources=l;const c=e.checks.EMBED_DATA_VIZ.sources,d='[src*="datastudio"], [src*="tableau"], [src*="lookerstudio"], [src*="powerbi"], [src*="qlik"]';if(c){const e=c.split(/\s*[\s,]\s*/).map(e=>`[src*="${e}"]`);o.VisualizationSources=`${d}, ${e.join(", ")}`}else o.VisualizationSources=d;o.AllEmbeddedContent=`${o.VideoSources}, ${o.AudioSources}, ${o.VisualizationSources}`},Global:o,initializePanelSelectors:function(){const e=document.querySelector("sa11y-control-panel").shadowRoot;i.panel=e.getElementById("panel"),i.content=e.getElementById("panel-content"),i.controls=e.getElementById("panel-controls"),i.outline=e.getElementById("outline-panel"),i.outlineContent=e.getElementById("outline-content"),i.outlineList=e.getElementById("outline-list"),i.outlineHeader=e.getElementById("outline-header"),i.images=e.getElementById("images-panel"),i.imagesContent=e.getElementById("images-content"),i.imagesList=e.getElementById("images-list"),i.imagesHeader=e.getElementById("images-header"),i.notifBadge=e.getElementById("notification-badge"),i.notifCount=e.getElementById("notification-count"),i.notifText=e.getElementById("notification-text"),i.status=e.getElementById("status"),i.pageIssues=e.getElementById("page-issues"),i.pageIssuesList=e.getElementById("page-issues-list"),i.pageIssuesHeader=e.getElementById("page-issues-header"),i.pageIssuesContent=e.getElementById("page-issues-content"),i.settings=e.getElementById("settings-panel"),i.settingsHeader=e.getElementById("settings-header"),i.settingsContent=e.getElementById("settings-content"),i.developerToggle=e.getElementById("developer-toggle"),i.readabilityToggle=e.getElementById("readability-toggle"),i.themeToggle=e.getElementById("theme-toggle"),i.developerItem=e.getElementById("developer-item"),i.readabilityItem=e.getElementById("readability-item"),i.darkModeItem=e.getElementById("dark-mode-item"),i.colourPanel=e.getElementById("panel-colour-filters"),i.colourFilterItem=e.getElementById("colour-filter-item"),i.colourFilterSelect=e.getElementById("colour-filter-select"),i.colourFilterIcon=e.getElementById("filter-icon"),i.toggle=e.getElementById("toggle"),i.outlineToggle=e.getElementById("outline-toggle"),i.imagesToggle=e.getElementById("images-toggle"),i.settingsToggle=e.getElementById("settings-toggle"),i.movePanelToggle=e.getElementById("move-panel"),i.skipButton=e.getElementById("skip-button"),i.dismissButton=e.getElementById("dismiss-button"),i.dismissTooltip=e.getElementById("dismiss-tooltip"),i.skipToPageIssues=e.getElementById("skip-to-page-issues"),i.exportHTML=e.getElementById("export-html"),i.exportCSV=e.getElementById("export-csv"),i.alert=e.getElementById("panel-alert"),i.alertText=e.getElementById("panel-alert-text"),i.alertPreview=e.getElementById("panel-alert-preview"),i.alertClose=e.getElementById("close-alert"),i.readability=e.getElementById("readability-panel"),i.readabilityInfo=e.getElementById("readability-info"),i.readabilityDetails=e.getElementById("readability-details")},Panel:i,initializeReadability:function(e){if(e.readabilityPlugin){s.Lang=t._("LANG_CODE").substring(0,2);const e=["en","fr","es","de","nl","it","sv","fi","da","no","nb","nn","pt"],o=n.Global.html.getAttribute("lang");if(o){const t=o.toLowerCase().substring(0,2);e.includes(t)&&e.includes(s.Lang)?s.Plugin=!0:s.Plugin=!1}else s.Plugin=!1}},Readability:s,initializeExclusions:function(e){a.Sa11yElements=["sa11y-heading-label","sa11y-heading-anchor","sa11y-annotation","sa11y-tooltips","sa11y-panel-tooltips","sa11y-control-panel","#sa11y-colour-filters","#sa11y-colour-filters *"];const t=["style","script","noscript"];if(a.Container=["#wpadminbar","#wpadminbar *",...t],e.containerIgnore){const t=e.containerIgnore.split(",").map(e=>e.trim());a.Container=a.Container.concat(t.flatMap(e=>[`${e} *`,e]))}a.Contrast=["link","hr","option","audio","audio *","video","video *",'input[type="color"]','input[type="range"]',"progress","progress *","meter","meter *","iframe","svg title","svg desc",...t],e.contrastIgnore&&(a.Contrast=e.contrastIgnore.split(",").map(e=>e.trim()).flatMap(e=>[e,`${e} *`]).concat(a.Contrast)),a.Readability=["nav li",'[role="navigation"] li',...t],e.readabilityIgnore&&(a.Readability=e.readabilityIgnore.split(",").map(e=>e.trim()).flatMap(e=>[e,`${e} *`]).concat(a.Readability)),a.Headings=e.headerIgnore?e.headerIgnore.split(",").map(e=>e.trim()):[],a.HeaderSpan=e.headerIgnoreSpan?e.headerIgnoreSpan.split(",").map(e=>e.trim()):[],a.Outline=e.outlineIgnore?e.outlineIgnore.split(",").map(e=>e.trim()):[],a.Images=['[role="presentation"]'],e.imageIgnore&&(a.Images=e.imageIgnore.split(",").map(e=>e.trim()).concat(a.Images)),a.Links=[".anchorjs-link"],e.linkIgnore&&(a.Links=e.linkIgnore.split(",").map(e=>e.trim()).concat(a.Links)),a.LinkSpan=e.linkIgnoreSpan?e.linkIgnoreSpan.split(",").map(e=>e.trim()):[]},Exclusions:a}}();function o(e,t,o){let i;"document"===t?i=document:"readability"===t?(i=n.Readability.Root,i||(i=n.Root.areaToCheck)):"root"===t?(i=n.Root.areaToCheck,i||(i=document.body)):"panel"===t?(i=n.Panel.panel,i||(i=document.body)):(i=document.querySelector(t),i||(i=document.body));const s=document.querySelectorAll("[data-sa11y-has-shadow-root]"),a=s?", [data-sa11y-has-shadow-root]":"",r=n.Exclusions.Container.join(", "),l=o?.join(", ")||"",c=l?`, ${l}`:"",d=Array.from(i.querySelectorAll(`:is(${e}${a}):not(${r}${c})`));if(s.length){const t=[];if(d.forEach((n,o)=>{n&&n.matches&&n.matches("[data-sa11y-has-shadow-root]")&&n.shadowRoot&&(t[o]=n.shadowRoot.querySelectorAll(`:is(${e}):not(${r}${c})`))}),t.length>0)for(let e=t.length-1;e>=0;e--)t[e]&&d.splice(e,1,...t[e])}return d.filter(e=>"SLOT"!==e.parentNode.tagName)}const i=(e,t)=>{const n=e=>{if("none"===e)return"";const t=e.includes("url(")||e.includes("image-set(")?e.match(/\/\s*"([^"]+)"/):e.match(/"([^"]+)"/);return t?t[1]:""};return`${n(window.getComputedStyle(e,":before").getPropertyValue("content"))}${t}${n(window.getComputedStyle(e,":after").getPropertyValue("content"))}`},s=e=>{for(let t=0;t<1e3;t++){if(e.nextSibling())return e.previousNode();if(!e.parentNode())return!1}return!1},a=(e,t=!1)=>{const n=e.getAttribute("aria-labelledby");if(!t&&n)return n.split(/\s+/).filter(e=>e.trim()).map(e=>{const t=document.querySelector(`#${CSS.escape(e)}`);return t?r(t,"",1):""}).join(" ");const o=e.getAttribute("aria-label");return o&&o.trim().length>0?o:"noAria"},r=(e,t=[],n=0)=>{const o=a(e,n);if("noAria"!==o)return o;if("TEXTAREA"===e.tagName&&e.hasAttribute("title"))return e.getAttribute("title");let l="";if(!e.children.length)return l=i(e,e.textContent),!l.trim()&&e.hasAttribute("title")?e.getAttribute("title"):l;const c=(d=e,p=!0,u=!0,document.createTreeWalker(d,NodeFilter.SHOW_ALL,{acceptNode:e=>p&&e.nodeType===Node.ELEMENT_NODE||u&&e.nodeType===Node.TEXT_NODE?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT}));var d,p,u;const h=[...t,"noscript","style","script","video","audio"].join(", "),g=h?e.querySelectorAll(h):[];let m=!1,f=!1,b=0,y=!0;for(;c.nextNode()&&y;){b+=1;const e=c.currentNode;if(Array.from(g).some(t=>t.contains(e)))continue;if(e.shadowRoot){const o=e.shadowRoot.querySelectorAll("*");for(let e=0;e{e.nodeType===Node.ELEMENT_NODE?n+=r(e):e.nodeType===Node.TEXT_NODE&&(n+=e.nodeValue)}),l+=n,l+=i(e,"");break}default:l+=i(e,"")}else l+=` ${o}`,s(c)||(y=!1)}return m&&!f&&(l+=` ${m}`),l=l.replace(/[\uE000-\uF8FF]/gu,""),!l.trim()&&e.hasAttribute("title")?e.getAttribute("title"):l};function l(e){if(e.getAttribute("hidden")||0===e.offsetWidth&&0===e.offsetHeight||1===e.clientHeight&&1===e.clientWidth)return!0;return"none"===getComputedStyle(e).getPropertyValue("display")}function c(e){const t=window.getComputedStyle(e),n=t.getPropertyValue("clip-path"),{position:o}=t,i=parseFloat(t.width),s=parseFloat(t.height),{overflow:a}=t;return"inset(50%)"===n||"absolute"===o&&1===i&&1===s&&"hidden"===a}function d(e){if(e.getAttribute("hidden"))return!0;return"none"===getComputedStyle(e).getPropertyValue("display")}function p(e){const t=document.createElement("div");return t.textContent=e,t.innerHTML.replaceAll('"',""").replaceAll("'","'").replaceAll("`","`")}function u(e){return e.replace(/[^\w. ]/gi,e=>`&#${e.charCodeAt(0)};`)}function h(e){if(!e)return"#";const t=String(e).trim();if(/^javascript:/i.test(t))return"#";if(/^data:/i.test(t))return"#";if(!["http:","https:","mailto:","tel:","ftp:"].some(e=>t.toLowerCase().startsWith(e))&&!t.startsWith("/")&&!t.startsWith("#"))return`./${t}`;const n=t.replace(/<[^>]*>/g,"");return encodeURI(n)}function g(e,t=!1){const n=document.createElement("div");n.innerHTML=e,["script","style","noscript","iframe","form"].forEach(e=>{const t=n.getElementsByTagName(e);for(;t.length>0;)t[0].parentNode.removeChild(t[0])});return Array.from(n.getElementsByTagName("*")).forEach(e=>{Array.from(e.attributes).forEach(t=>{t.name.startsWith("on")&&e.removeAttribute(t.name)}),t||e.removeAttribute("style")}),n.innerHTML}function m(e,t=[]){const n=["noscript","script","style","audio","video","form","iframe",...t].join(", "),o=e.cloneNode(!0);return Array.from(o.querySelectorAll(n)).forEach(e=>{e.parentElement.removeChild(e)}),o}function f(e){return m(e).textContent.replace(/[\r\n]+/g,"").replace(/\s+/g," ").trim()}function b(e){return e.replace(/[\r\n]+/g," ").replace(/\s+/g," ").trim()}function y(e,t){const n=e.substring(0,t).trimEnd();return e.length>t?`${n}...`:e}function A(e,t,n){let o=e;for(;null!==o;){if(window.getComputedStyle(o).getPropertyValue(t)===n)return o;o=o.parentElement}return null}function E(e){const t=e.getBoundingClientRect(),n=window.pageYOffset||document.documentElement.scrollTop;return{top:t.top+n}}const v={getItem(e){try{return null===localStorage.getItem(e)?sessionStorage.getItem(e):localStorage.getItem(e)}catch(e){return!1}},setItem(e,t){try{localStorage.setItem(e,t)}catch(n){sessionStorage.setItem(e,t)}return!0},removeItem(e){try{localStorage.removeItem(e)}catch(t){sessionStorage.removeItem(e)}return!0}};function _(e){const t="data-sa11y-pulse-border";e.setAttribute(t,""),setTimeout(()=>{e.removeAttribute(t)},2500)}function L(e){return String(e).replace(/([^0-9a-zA-Z])/g,"").substring(0,256)}function I(){const e=document.querySelector("sa11y-control-panel").shadowRoot,t=e.getElementById("panel-alert"),n=e.getElementById("panel-alert-text"),o=e.getElementById("panel-alert-preview");for(t.classList.remove("active"),o.classList.remove("panel-alert-preview");n.firstChild;)n.removeChild(n.firstChild);for(;o.firstChild;)o.removeChild(o.firstChild)}function T(e,t,n){I();const o=document.querySelector("sa11y-control-panel").shadowRoot,i=o.getElementById("panel-alert"),s=o.getElementById("panel-alert-text"),a=o.getElementById("panel-alert-preview"),r=o.getElementById("close-alert"),l=o.getElementById("skip-button");i.classList.add("active"),s.innerHTML=e;const c=n?`
                                    ${n}
                                    `:"";function d(){I();(l.hasAttribute("disabled")?o.getElementById("toggle"):l).focus()}t&&(a.classList.add("panel-alert-preview"),a.innerHTML=`${c}
                                    ${t}
                                    `),setTimeout(()=>{r.focus()},300),r.addEventListener("click",d),i.onkeydown=e=>{"Escape"===(e||window.event).key&&i.classList.contains("active")&&d()}}function x(e,t){e.forEach(e=>{o(`[${e}]`,`${t}`).forEach(t=>{t.removeAttribute(e)})})}function k(e,t){o(`${e}`,`${t}`).forEach(e=>{e.parentNode.removeChild(e)})}function N(e,t,n){setTimeout(()=>{e.scrollHeight>t.clientHeight?(t.classList.add("scrollable"),e.setAttribute("tabindex","0"),n&&(e.setAttribute("aria-label",n),e.setAttribute("role","region"))):t.classList.remove("scrollable")},50)}function S(e){const t=e=>e?.split(",").pop()?.trim()?.split(/\s+/)[0],n=e=>e?new URL(e,window.location.href).href:null,o=t(e.getAttribute("data-src")||e.getAttribute("srcset"));if(o)return n(o);const i=e.closest("picture")?.querySelector("source[srcset]")?.getAttribute("srcset"),s=t(i);return n(s||e.getAttribute("src"))}function w(e,t=!1){const n=e.element,o=`
                                    ${p(y(g(e.htmlPath),600))}
                                    `,i=e=>{const t=f(e),n=y(t,100);return t.length?u(n):o},s={SPAN:i,P:i,A:e=>{const t=f(e),n=y(t,100);return t.length>1&&e.href&&!e.hasAttribute("role")?`${u(n)}`:o},IMG:e=>{const n=e.closest("a[href]"),i=e.alt?`alt="${u(e.alt)}"`:"alt",s=S(e);function a(e){return n?``:``}if(t)return new Promise(e=>{if(s){if(new URL(s,window.location.origin).origin===window.location.origin)fetch(s).then(e=>e.blob()).then(e=>(e=>new Promise((t,n)=>{const o=new FileReader;o.onloadend=()=>{let{result:n}=o;const i=e.type&&e.type.startsWith("image/")?e.type:"image/png";n.startsWith("data:application/octet-stream")&&(n=n.replace("data:application/octet-stream",`data:${i}`)),t(n)},o.onerror=n,o.readAsDataURL(e)}))(e)).then(t=>{const n=t.startsWith("data:image/")?t:h(t);e(a(n))}).catch(()=>{e(a(s))});else{const t=s.startsWith("data:image/")?s:h(s);e(a(t))}}else e(o)});const r=s.startsWith("data:image/")?s:h(s);return s?a(r):o},IFRAME:e=>{const t=e.src,n=e.title?e.title:"",i=e.getAttribute("aria-label");if(t){const e=i||""||n;return``}return o},AUDIO:()=>g(e.htmlPath),VIDEO:()=>g(e.htmlPath)}[n.tagName];return s?s(n):o}function C(e){let t="";const n=r(e).toLowerCase();e.childNodes.forEach(e=>{e.nodeType===Node.TEXT_NODE?t+=e.textContent:e.nodeType===Node.ELEMENT_NODE&&(l(e)||(t+=e.textContent))});let o=t.replace(/[\p{Emoji_Presentation}\p{Extended_Pictographic}]/gu,"");return o=b(o).toLowerCase(),"x"!==o&&(0!==o.length&&!n.includes(o))}const O=function(){const e={};const t={};return{initializeElements:function(t){e.Everything=o("*","root",n.Exclusions.Sa11yElements),e.Contrast=e.Everything.filter(e=>!n.Exclusions.Contrast.some(t=>e.matches(t))&&!n.Exclusions.Contrast.includes(e)),e.Images=e.Everything.filter(e=>"IMG"===e.tagName&&!n.Exclusions.Images.some(t=>e.matches(t))),e.Links=e.Everything.filter(e=>("A"===e.tagName||"a"===e.tagName)&&e.hasAttribute("href")&&!e.matches('[role="button"]')&&!n.Exclusions.Links.some(t=>e.matches(t))),e.Headings=o('h1, h2, h3, h4, h5, h6, [role="heading"][aria-level]',"document",n.Exclusions.Headings),e.HeadingOne=o('h1, [role="heading"][aria-level="1"]',"document",n.Exclusions.Headings),e.ExcludedHeadings=e.Headings.filter(e=>n.Exclusions.Headings.some(t=>e.matches(t))),e.ExcludedOutlineHeadings=e.Headings.filter(e=>n.Exclusions.Outline.some(t=>e.matches(t))),e.OutlineIgnore=O.Found.ExcludedOutlineHeadings.concat(O.Found.ExcludedHeadings),e.Paragraphs=e.Everything.filter(e=>"P"===e.tagName&&!e.closest("table")),e.Lists=e.Everything.filter(e=>"LI"===e.tagName),e.Blockquotes=e.Everything.filter(e=>"BLOCKQUOTE"===e.tagName),e.Tables=e.Everything.filter(e=>"TABLE"===e.tagName&&!e.matches('[role="presentation"]')&&!e.matches('[role="none"]')),e.StrongItalics=e.Everything.filter(e=>["STRONG","EM"].includes(e.tagName)),e.Subscripts=e.Everything.filter(e=>["SUP","SUB"].includes(e.tagName));const i=t.checks.QA_BAD_LINK.sources;e.CustomErrorLinks=i.length?e.Links.filter(e=>i.split(",").some(t=>e.matches(t.trim()))):[];const s=e=>n.Root.Readability.contains(e)&&!n.Exclusions.Readability.some(t=>e.matches(t));e.Readability=[...e.Paragraphs.filter(s),...e.Lists.filter(s)];const a=t.checks.QA_NESTED_COMPONENTS.sources||'[role="tablist"], details';e.NestedComponents=a?e.Everything.filter(e=>e.matches(a)):[],e.TabIndex=e.Everything.filter(e=>e.hasAttribute("tabindex")&&"0"!==e.getAttribute("tabindex")&&!e.getAttribute("tabindex").startsWith("-")),e.Svg=e.Everything.filter(e=>"svg"===e.tagName),e.Buttons=e.Everything.filter(e=>"BUTTON"===e.tagName||e.matches('[role="button"]')),e.Inputs=e.Everything.filter(e=>["INPUT","SELECT","TEXTAREA","METER","PROGRESS"].includes(e.tagName)),e.Labels=e.Everything.filter(e=>"LABEL"===e.tagName),e.iframes=e.Everything.filter(e=>["IFRAME","AUDIO","VIDEO"].includes(e.tagName)),e.Videos=e.iframes.filter(e=>e.matches(n.Global.VideoSources)),e.Audio=e.iframes.filter(e=>e.matches(n.Global.AudioSources)),e.Visualizations=e.iframes.filter(e=>e.matches(n.Global.VisualizationSources)),e.EmbeddedContent=e.iframes.filter(e=>!e.matches(n.Global.AllEmbeddedContent));const r=document.querySelector("html");e.Language=r.getAttribute("lang")},Found:e,initializeAnnotations:function(){t.Array=o("sa11y-annotation","document"),t.Array.forEach((e,t)=>{e.setAttribute("data-sa11y-position",t)})},Annotations:t}}();const P=e=>{if(0===e.shadowRoot.querySelectorAll(".sa11y-css-utilities").length){const t=document.createElement("style");t.setAttribute("class","sa11y-css-utilities"),t.textContent="[data-sa11y-overflow]{overflow:auto!important}[data-sa11y-clone-image-text]{display:none!important}[data-sa11y-readability-period]{clip:rect(1px,1px,1px,1px)!important;border:0!important;clip-path:inset(50%)!important;display:block!important;height:1px!important;overflow:hidden!important;padding:0!important;position:absolute!important;white-space:nowrap!important;width:1px!important}[data-sa11y-error-inline],[data-sa11y-error]{outline:5px solid var(--sa11y-error)!important;outline-offset:2px}[data-sa11y-warning-inline]:not([data-sa11y-error-inline]),[data-sa11y-warning]:not([data-sa11y-error]){outline:5px solid var(--sa11y-warning)!important;outline-offset:2px}[data-sa11y-pulse-border]{animation:pulse 2s 3;box-shadow:0;outline:5px solid var(--sa11y-focus-color)!important}[data-sa11y-pulse-border]:focus,[data-sa11y-pulse-border]:hover{animation:none}@keyframes pulse{0%{box-shadow:0 0 0 5px var(--sa11y-focus-color)}70%{box-shadow:0 0 0 12px var(--sa11y-pulse-color)}to{box-shadow:0 0 0 5px var(--sa11y-pulse-color)}}@media (prefers-reduced-motion:reduce){[data-sa11y-pulse-border]{animation:none!important}}@media (forced-colors:active){[data-sa11y-error-inline],[data-sa11y-error],[data-sa11y-good],[data-sa11y-pulse-border],[data-sa11y-warning-inline],[data-sa11y-warning]{forced-color-adjust:none}}",e.shadowRoot.appendChild(t)}};function R(e,t,n){if(!0===e){let e=window.location.href;const o=function(e,t){let n=null;return(...o)=>{window.clearTimeout(n),n=window.setTimeout(()=>{e(...o)},t)}}(async()=>{e!==window.location.href&&("Closed"!==v.getItem("sa11y-panel")&&v.getItem("sa11y-panel")?(n(!1),await t()):t(),e=window.location.href)},250);window.addEventListener("click",o),window.addEventListener("keydown",o)}}function D(e,o){const i=JSON.parse(localStorage.getItem("sa11y-dismissed")||"[]"),s=window.location.pathname,a=[...e.filter(e=>i.some(t=>((e,t)=>t.key.includes(e.dismiss)&&t.href===s&&("warning"===e.type||"good"===e.type))(e,t))),...e.filter(e=>i.some(t=>((e,t)=>"string"==typeof t.dismissAll&&e.dismissAll===t.dismissAll&&t.href===s)(e,t)))],r=a.length,l=e.filter(e=>!a.some(t=>t.dismiss===e.dismiss&&("warning"===e.type||"good"===e.type)));return r?(n.Panel.dismissButton.classList.add("active"),n.Panel.dismissTooltip.innerText=t.sprintf("PANEL_DISMISS_BUTTON",r),o.object.setContent(t.sprintf("PANEL_DISMISS_BUTTON",r))):n.Panel.dismissButton.classList.remove("active"),{dismissedIssues:i,updatedResults:l,dismissCount:r,dismissedResults:a}}let M,B;function $(e,i,s,a){if(n.Global.dismissAnnotations){B=n=>{(async(e,n,i,s)=>{let a=JSON.parse(v.getItem("sa11y-dismissed"));const r=e.target;if(document.querySelector("sa11y-panel-tooltips").hidden=!1,"BUTTON"===r.tagName&&r.hasAttribute("data-sa11y-dismiss")){const e=parseInt(r.getAttribute("data-sa11y-dismiss"),10),l=n.find(t=>t.id===e);if(null===a&&(setTimeout(()=>T(t._("DISMISS_REMINDER")),0),a=[]),l.dismiss){const e=r.hasAttribute("data-sa11y-dismiss-all")?l.dismissAll:"",t={key:l.dismiss,href:window.location.pathname,...e?{dismissAll:e}:{}},n=o(`[data-sa11y-annotation='${l.id}']`),c=n[0]?n[0].getAttribute("data-sa11y-position"):0;v.setItem("sa11y-latest-dismissed",c),v.setItem("sa11y-dismiss-item",JSON.stringify(t)),a.push(t),v.setItem("sa11y-dismissed",JSON.stringify(a)),v.removeItem("sa11y-dismiss-item");const d=r?.closest("[data-tippy-root]");d&&setTimeout(()=>{d.remove()},0),s(!1),await i()}}})(n,e,s,a)};document.querySelector("sa11y-tooltips").shadowRoot.addEventListener("click",B),n.Panel.panel.addEventListener("click",B)}M=()=>{(async(e,t,o)=>{document.querySelector("sa11y-panel-tooltips").hidden=!0;const i=e.filter(e=>e.href!==window.location.pathname);v.setItem("sa11y-dismissed",JSON.stringify(i)),n.Panel.dismissButton.classList.remove("active"),o(!1),await t()})(i,s,a)},n.Panel.dismissButton?.addEventListener("click",M)}function G(){const e=new Date,t=String(e.getDate()).padStart(2,"0"),n=String(e.getMonth()+1).padStart(2,"0"),o=e.getFullYear(),i=(new Date).toLocaleString(),s=`${n}-${t}-${o}`,a=document.querySelector("head title"),r=!a||0===a.textContent.trim().length;return{date:i,numericDate:s,titleCheck:r,metaTitle:r?"":a.textContent,pageURL:window.location.href}}async function U(e,n){const o=await async function(e,n){const o=e.filter(e=>"error"===e.type),i=e.filter(e=>"warning"===e.type),s={error:o.length,warning:i.length,dismiss:n.length};async function a(e,n){const o={error:t._("ERRORS"),warning:t._("WARNINGS"),dismissed:t._("DISMISSED")}[n];if(!(e.length>0))return"";let i=`

                                    ${o}

                                    `,a=`
                                      `,r="
                                    ";"dismissed"===n&&(a=`
                                    ${t.sprintf("PANEL_DISMISS_BUTTON",s.dismiss)}
                                      `,r="
                                    "),i+=a;const l=e.map(async e=>{let n="";if(e.element){const o=["IMG","IFRAME","AUDIO","VIDEO"],i=await w(e,!0);n=o.includes(e.element.tagName)?`
                                  • ${t._("PREVIEW")}: ${i}
                                  • ${t._("ELEMENT")}:
                                    ${p(e.htmlPath)}
                                  • `:`
                                  • ${t._("ELEMENT")}:
                                    ${p(e.htmlPath)}
                                  • `}const o=e.cssPath?`
                                  • ${t._("PATH")}:
                                    ${e.cssPath}
                                  • `:"";return`
                                  • ${e.content}
                                      ${n}${o}
                                  • `});return i+=(await Promise.all(l)).join(""),i+=r,i}const r=await a(o,"error"),l=await a(i,"warning"),c=await a(n,"dismissed"),d=G(),u=d.titleCheck?"":`
                                    ${t._("PAGE_TITLE")}
                                    ${d.metaTitle}
                                    `,h=0!==s.error?`
                                    ${t._("ERRORS")}
                                    ${s.error}
                                    `:"",g=0!==s.warning?`
                                    ${t._("WARNINGS")}
                                    ${s.warning}
                                    `:"",m=0!==s.dismiss?`
                                    ${t._("DISMISSED")}
                                    ${s.dismiss}
                                    `:"";return`\n \n \n \n \n \n ${t._("RESULTS")}: ${d.metaTitle}\n \n \n \n
                                    \n

                                    ${t._("RESULTS")}

                                    \n
                                    \n
                                    \n ${u}\n
                                    URL
                                    \n
                                    ${d.pageURL}
                                    \n
                                    ${t._("DATE")}
                                    \n
                                    ${d.date}
                                    \n
                                    \n
                                    \n ${h}\n ${g}\n ${m}\n
                                    \n
                                    \n
                                    \n
                                    \n ${r}\n ${l}\n ${c}\n
                                    \n
                                    \n

                                    ${t.sprintf("GENERATED",'Sa11y')}

                                    \n
                                    \n \n \n `}(e,n),i=G(),s=new Blob([o],{type:"text/html"}),a=document.createElement("a"),r=i.titleCheck?"":`_${i.metaTitle.trim().replace(/ /g,"")}`;a.href=window.URL.createObjectURL(s),a.download=`Sa11y_${i.numericDate+r}.html`,document.body.appendChild(a),a.click(),setTimeout(()=>{document.body.removeChild(a),window.URL.revokeObjectURL(a.href)},100)}function H(e){const t=G(),n=e.filter(e=>"warning"===e.type||"error"===e.type).map(e=>{const{type:n,content:o,htmlPath:i,cssPath:s}=e,a=o.replaceAll(/]*>.*?<\/span>/gi,"").replaceAll(''," | ").replaceAll(/"/g,'""');const r=function(e){return e.replace(/&(#?[a-zA-Z0-9]+);/g,(e,t)=>{switch(t){case"amp":return"&";case"lt":return"<";case"gt":return">";case"quot":case"#39":return"'";default:return"#"===t.charAt(0)?String.fromCharCode("x"===t.charAt(1)?parseInt(t.substr(2),16):parseInt(t.substr(1),10)):e}})}(String(a).replace(/<[^>]*>/g,"")),l={Title:`"${t.metaTitle}"`,URL:`"${t.pageURL}"`,Type:`"${String(n)}"`,Issue:`"${r}"`,Element:`"${i}"`};return s&&(l.Path=`"${s}"`),l}),o=Object.keys(n[0]),i=`${o.join(",")}\n${n.map(e=>o.map(t=>e[t]).join(",")).join("\n")}`,s=new Uint8Array([239,187,191]),a=new Blob([s,i],{type:"text/csv;charset=utf-8;"}),r=window.URL.createObjectURL(a),l=document.createElement("a");l.href=r,l.href=window.URL.createObjectURL(a);const c=t.titleCheck?"":`_${t.metaTitle.trim().replace(/ /g,"")}`;l.setAttribute("download",`Sa11y_${t.numericDate+c}.csv`),document.body.appendChild(l),l.click(),setTimeout(()=>{document.body.removeChild(l),window.URL.revokeObjectURL(l.href)},100)}let F,K;const W="4.2.0";var Y='.visually-hidden{clip:rect(1px,1px,1px,1px);border:0;clip-path:inset(50%);display:block;height:1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px}[hidden]{display:none!important}.header-text,.header-text-inline,h2{color:var(--sa11y-panel-primary);display:block;font-size:var(--sa11y-large-text);font-weight:600;margin-bottom:3px}.header-text-inline{display:inline-block!important}code{font-family:monospace!important;font-size:calc(var(--sa11y-normal-text) - 1px);font-weight:600}pre:has(code){display:block;overflow:auto;white-space:pre-wrap}.kbd,code,kbd,pre{background-color:var(--sa11y-panel-badge);border-radius:3.2px;color:var(--sa11y-panel-primary);padding:1.6px 4.8px}.bold{font-weight:600}.error .colour,.red-text{color:var(--sa11y-red-text);font-family:var(--sa11y-font-face)}.warning .colour,.yellow-text{color:var(--sa11y-yellow-text);font-family:var(--sa11y-font-face)}.badge,.normal-badge{background-color:var(--sa11y-panel-badge);border-radius:10px;color:var(--sa11y-panel-primary);display:inline;font-size:14px;font-weight:700!important;line-height:1;min-width:10px;outline:1px solid transparent;padding:1px 5px 1.75px;text-align:center;vertical-align:baseline;white-space:nowrap}.error .badge{background:var(--sa11y-error);color:var(--sa11y-error-text)}.error-badge{background:var(--sa11y-error)!important;color:var(--sa11y-error-text)!important}.warning .badge{background:var(--sa11y-yellow-text);color:var(--sa11y-panel-bg)}.warning-badge{background:var(--sa11y-yellow-text)!important;color:var(--sa11y-panel-bg)!important}.good-contrast{background:var(--sa11y-good)!important;color:var(--sa11y-good-text)!important}#contrast-preview{background-color:#e8e8e8;background-image:linear-gradient(45deg,#ccc 25%,transparent 0,transparent 75%,#ccc 0,#ccc),linear-gradient(45deg,#ccc 25%,transparent 0,transparent 75%,#ccc 0,#ccc);background-position:0 0,5px 5px;background-size:10px 10px;border:2px dashed var(--sa11y-panel-bg-splitter);border-radius:3.2px;line-height:1;margin-top:10px;max-height:100px;overflow:clip;overflow-wrap:break-word;padding:5px}#color-pickers{display:flex;justify-content:space-between;margin-bottom:10px;margin-top:10px}#color-pickers label{align-items:center;display:flex}#color-pickers input{margin-inline-start:7px}input[type=color i]{background:var(--sa11y-panel-bg-secondary);block-size:30px;border-color:var(--sa11y-button-outline);border-radius:50%;border-style:solid;border-width:1px;inline-size:30px;padding:2px}input[type=color i]::-webkit-color-swatch-wrapper{padding:1px}input[type=color i]::-webkit-color-swatch{border-color:var(--sa11y-button-outline);border-radius:50%}input[type=color i]::-moz-color-swatch{border-color:var(--sa11y-button-outline);border-radius:50%}input[type=color i].unknown{box-shadow:0 0 0 2px var(--sa11y-yellow-text)}input[type=color i].unknown:after{align-items:center;color:#fff;content:"?";display:flex;font-size:18px;height:24px;justify-content:center;margin:-24px 0;pointer-events:none;position:absolute;width:24px;z-index:2}.close-btn{background:var(--sa11y-panel-bg-secondary);border:2px solid var(--sa11y-button-outline);border-radius:50%;color:var(--sa11y-panel-primary);cursor:pointer;float:var(--sa11y-float-rtl);font-size:var(--sa11y-normal-text);font-weight:400;height:32px;margin:0;position:relative;transition:all .2s ease-in-out;width:32px}.close-btn:focus,.close-btn:hover{background-color:var(--sa11y-shortcut-hover)}.close-btn:after{background:var(--sa11y-setting-switch-bg-off);content:"";inset:-7px;-webkit-mask:var(--sa11y-close-btn-svg) center no-repeat;mask:var(--sa11y-close-btn-svg) center no-repeat;position:absolute}@media screen and (forced-colors:active){.close-btn:after{filter:invert(1)}}#container [tabindex="-1"]:focus,#container [tabindex="0"]:focus,#container a:focus,#container button:focus,#container input:focus,#container select:focus{box-shadow:0 0 0 5px var(--sa11y-focus-color);outline:0}#container #panel-controls button:focus,#container .switch:focus{box-shadow:inset 0 0 0 4px var(--sa11y-focus-color);outline:0}#container #panel-controls button:focus:not(:focus-visible),#container [tabindex="-1"]:focus:not(:focus-visible),#container [tabindex="0"]:focus:not(:focus-visible),#container button:focus:not(:focus-visible),#container input:focus:not(:focus-visible),#container select:focus:not(:focus-visible){box-shadow:none;outline:0}#container [tabindex="-1"]:focus-visible,#container [tabindex="0"]:focus-visible,#container a:focus-visible,#container button:not(#panel-controls button):not(.switch):focus-visible,#container input:focus-visible,#container select:focus-visible{box-shadow:0 0 0 5px var(--sa11y-focus-color);outline:0}#container #panel-controls button:focus-visible,#container .switch:focus-visible{box-shadow:inset 0 0 0 4px var(--sa11y-focus-color);outline:0}@media screen and (forced-colors:active){#panel-controls button:focus{border:3px solid transparent}#container [tabindex="-1"]:focus,#container [tabindex="0"]:focus,#container a:focus,#container button:focus,#container select:focus,.close-btn:focus{outline:3px solid transparent!important}}';class z extends HTMLElement{constructor(e){super(),this.error=e}connectedCallback(){const e=this.attachShadow({mode:"open"}),o=document.createElement("style");o.innerHTML=":host{background:var(--sa11y-panel-bg);border-top:5px solid var(--sa11y-panel-bg-splitter);bottom:0;display:block;height:-moz-fit-content;height:fit-content;left:0;position:fixed;right:0;width:100%;z-index:999999}*{-webkit-font-smoothing:auto!important;color:var(--sa11y-panel-primary);font-family:var(--sa11y-font-face)!important;font-size:var(--sa11y-normal-text);line-height:22px!important}#dialog{margin:20px auto;max-width:900px;padding:20px}h2{font-size:var(--sa11y-large-text);margin-top:0}a{color:var(--sa11y-hyperlink);cursor:pointer;text-decoration:underline}a:focus,a:hover{text-decoration:none}p{margin-top:0}.error{background:var(--sa11y-error);border:2px dashed #f08080;color:var(--sa11y-error-text);margin-bottom:0;padding:5px}"+Y,e.appendChild(o);const i=document.createElement("div");i.setAttribute("id","dialog"),i.setAttribute("tabindex","-1");const s=window.location,a=`## Error Description\n\`\`\`javascript\n${this.error.stack}\n\`\`\`\n\n## Details\n- **URL:** ${s}\n- **Version:** ${W}\n\n## Comments\n`,r=`https://github.com/ryersondmp/sa11y/issues/new?title=Bug%20report&body=${encodeURIComponent(a)}`;i.innerHTML=`\n \n

                                    ${t._("ERROR")}

                                    \n

                                    ${t.sprintf("CONSOLE_ERROR","https://forms.gle/sjzK9XykETaoqZv99",r)}

                                    \n

                                    ${p(this.error.stack)}

                                    Version: ${W}
                                    URL: ${s}

                                    \n `,e.appendChild(i),setTimeout(()=>{n.Panel.toggle.style.display="none";const e=document.querySelector("sa11y-console-error");e.shadowRoot.getElementById("dialog").focus();e.shadowRoot.querySelector(".close-btn").addEventListener("click",()=>{e.remove()})},0)}}class Q extends HTMLElement{connectedCallback(){this.attachShadow({mode:"open"});const e=document.createElement("style");e.textContent='a,button,code,div,h1,h2,h3,kbd,label,li,ol,p,pre,span,strong,svg,ul{all:unset;box-sizing:border-box!important}:after,:before{all:unset}div{display:block}*{-webkit-font-smoothing:auto!important;font-family:var(--sa11y-font-face)!important}label,li,ol,p,ul{font-size:var(--sa11y-normal-text);font-weight:400;letter-spacing:normal;line-height:22px!important;text-align:start;word-break:break-word}.sa11y-overflow{overflow:auto}iframe,img,video{border:0;display:block;height:auto;max-width:100%}audio{max-width:100%}#toggle{align-items:center;background:linear-gradient(0deg,#e040fb,#00bcd4);background-color:var(--sa11y-setting-switch-bg-off);background-size:150% 150%;border-radius:50%;bottom:var(--sa11y-toggle-y-offset);color:#fff;cursor:pointer;display:flex;height:55px;inset-inline-end:var(--sa11y-toggle-x-offset);justify-content:center;margin:0;overflow:visible;position:fixed;transition:all .2s ease-in-out;width:55px;z-index:2147483644}#toggle.left,#toggle.top-left{inset-inline-start:var(--sa11y-toggle-x-offset)}#toggle.top-left,#toggle.top-right{bottom:unset;top:var(--sa11y-toggle-y-offset)}@media screen and (forced-colors:active){#toggle{background:ButtonFace!important;border:2px solid transparent}}#toggle svg{height:35px;width:35px}#toggle svg path{fill:var(--sa11y-panel-bg)}#toggle:focus,#toggle:hover{animation:sa11y-toggle-gradient 3s ease}#toggle:disabled:focus,#toggle:disabled:hover{animation:none}#toggle.on{background:linear-gradient(180deg,#e040fb,#00bcd4)}#toggle:disabled{background:unset;background-color:var(--sa11y-setting-switch-bg-off);cursor:not-allowed}#notification-badge{text-wrap:nowrap;align-items:center;background-color:#eb0000;border:1px solid transparent;border-radius:12px;color:#fff;display:none;font-size:13.5px;font-weight:400;justify-content:center;line-height:1;min-width:20px;padding:2.5px;position:absolute;right:-3px;top:-5.5px}#notification-badge.notification-badge-warning{background-color:var(--sa11y-warning-hover);border:1px solid var(--sa11y-warning);color:var(--sa11y-warning-text)}#panel{background:var(--sa11y-panel-bg);border-radius:4px;bottom:calc(var(--sa11y-toggle-y-offset) + var(--sa11y-panel-y-gap));box-shadow:0 0 20px 4px rgba(154,161,177,.15),0 4px 80px -8px rgba(36,40,47,.25),0 4px 4px -2px rgba(91,94,105,.15);inset-inline-end:calc(var(--sa11y-toggle-x-offset) + var(--sa11y-panel-x-gap));opacity:0;overflow:visible;position:fixed;transform:scale(0);transform-origin:100% 100%;transition:transform .2s,opacity background .2s .2s;visibility:hidden;z-index:2147483643}#panel.left,#panel.top-left{inset-inline-end:unset;inset-inline-start:calc(var(--sa11y-toggle-x-offset) + var(--sa11y-panel-x-gap))}#panel.top-left,#panel.top-right{bottom:unset;top:calc(var(--sa11y-toggle-y-offset) + var(--sa11y-panel-y-gap) + 10px)}#panel.active{height:auto;opacity:1;transform:scale(1);transform-origin:bottom right;transition:transform .2s,opacity .2s;visibility:visible}@media screen and (forced-colors:active){#panel{border:2px solid transparent}}#panel.active.left,[dir=rtl] #panel.active{transform-origin:bottom left}#panel.active.top-left{transform-origin:top left}#panel.active.top-right{transform-origin:top right}#panel-alert{display:none;opacity:0}#panel-alert.active{display:block;opacity:1}#panel-alert-content{align-items:center;border-bottom:1px solid var(--sa11y-panel-bg-splitter);color:var(--sa11y-panel-primary);line-height:22px;max-height:400px;overflow-y:auto;padding:15px 20px 15px 15px;position:relative}.top-left #panel-alert-content,.top-right #panel-alert-content{border:0}#panel-alert-preview .close-tooltip{display:none}#panel-alert-preview,#panel-alert-text{font-family:var(--sa11y-font-face);font-size:var(--sa11y-normal-text);font-weight:400;line-height:22px}.panel-alert-preview{background:var(--sa11y-panel-bg-secondary);border:1px dashed var(--sa11y-panel-bg-splitter);border-radius:5px;margin-top:15px;padding:10px}.panel-alert-preview ul{margin:0;margin-block-end:0;margin-block-start:0;padding:0;position:relative}.panel-alert-preview li{display:list-item;margin:5px 10px 0 20px;padding-bottom:5px}.element-preview{background-color:var(--sa11y-element-preview);border-radius:3.2px;margin-bottom:10px;overflow-wrap:break-word;padding:5px}button[data-sa11y-dismiss]{background:var(--sa11y-panel-bg-secondary);border:2px solid var(--sa11y-button-outline);border-radius:5px;color:var(--sa11y-panel-primary);cursor:pointer;display:block;margin:10px 5px 5px 0;margin-inline-end:15px;padding:4px 8px}button[data-sa11y-dismiss]:focus,button[data-sa11y-dismiss]:hover{background:var(--sa11y-shortcut-hover)}h2{font-size:var(--sa11y-large-text);font-weight:700}h2,h3{display:block;margin-bottom:3px}h3{font-size:calc(var(--sa11y-large-text) - 1px)}h3,strong{font-weight:600}a:not(#outline-list a):not(.edit){border-bottom:0;color:var(--sa11y-hyperlink);cursor:pointer;font-weight:500;text-decoration:underline}a:focus,a:hover{text-decoration:none!important}hr{background:var(--sa11y-panel-bg-splitter);border:none;height:1px;margin:10px 0;opacity:1;padding:0}#dismiss-button,#skip-button{background:var(--sa11y-panel-bg-secondary);border:1px solid var(--sa11y-button-outline);border-radius:50px;cursor:pointer;display:none;height:36px;margin-inline-end:8px;margin-inline-start:2px;overflow:visible;position:relative;text-align:center;transition:all .1s ease-in-out;width:36px}#dismiss-button.active,#skip-button.active{display:block}#dismiss-button:disabled,#skip-button:disabled{background:none;border:0;box-shadow:none;cursor:default}#dismiss-button:before,#skip-button:before{content:"";inset:-5px;position:absolute}#dismiss-button:focus:not(:disabled),#dismiss-button:hover:not(:disabled),#skip-button:focus:not(:disabled),#skip-button:hover:not(:disabled){background-color:var(--sa11y-shortcut-hover)}#panel.left #dismiss-button,#panel.left #skip-button,#panel.top-left #dismiss-button,#panel.top-left #skip-button{margin-inline-end:2px;margin-inline-start:8px}.dismiss-icon{background:var(--sa11y-setting-switch-bg-off);display:inline-block;height:24px;margin-bottom:-4px;-webkit-mask:var(--sa11y-dismiss-icon) center no-repeat;mask:var(--sa11y-dismiss-icon) center no-repeat;width:24px}.dismiss-group{display:flex}@media screen and (forced-colors:active){.dismiss-icon{filter:invert(1)}}#panel-content{align-items:center;color:var(--sa11y-panel-primary);display:flex;padding:6px}#panel-content.errors .panel-icon,#panel-content.good .panel-icon,#panel-content.warnings .panel-icon{height:26px;margin:0 auto;width:26px}#panel-content.errors .panel-icon{background:var(--sa11y-panel-error);margin-top:-2px;-webkit-mask:var(--sa11y-error-svg) center no-repeat;mask:var(--sa11y-error-svg) center no-repeat}#panel-content.good .panel-icon{background:var(--sa11y-good);-webkit-mask:var(--sa11y-good-svg) center no-repeat;mask:var(--sa11y-good-svg) center no-repeat}#panel-content.warnings .panel-icon{background:var(--sa11y-yellow-text);-webkit-mask:var(--sa11y-warning-svg) center no-repeat;mask:var(--sa11y-warning-svg) center no-repeat;transform:scaleX(var(--sa11y-icon-direction))}@media screen and (forced-colors:active){#panel-content.errors .panel-icon,#panel-content.good .panel-icon,#panel-content.warnings .panel-icon{filter:invert(1)}}#panel.left #panel-content,#panel.top-left #panel-content{flex-direction:row-reverse}#status{font-size:var(--sa11y-large-text)}#status,.panel-count{color:var(--sa11y-panel-primary)}.panel-count{background-color:var(--sa11y-panel-badge);border-radius:4px;font-size:15px;font-weight:400;margin-left:3px;margin-right:3px;padding:2px 4px}#images-panel,#outline-panel,#page-issues,#settings-panel{color:var(--sa11y-panel-primary);display:none;opacity:0}#images-panel.active,#outline-panel.active,#page-issues.active,#settings-panel.active{display:block;opacity:1}.panel-header{display:flex;justify-content:space-between;padding:10px 15px 0;text-align:start}#about-content{padding-top:5px}#about-content p{display:block;margin-block-end:1em}#images-content,#outline-content,#page-issues-content,#settings-content{border-bottom:1px solid var(--sa11y-panel-bg-splitter);padding:0 15px 10px}.top-left #images-content,.top-left #outline-content,.top-left #page-issues-content,.top-left #settings-content,.top-right #images-content,.top-right #outline-content,.top-right #page-issues-content,.top-right #settings-content{border:0}#page-issues-content{max-height:160px;overflow-y:auto}#settings-content{max-height:400px;overflow-y:auto}#images-content,#outline-content{max-height:250px;overflow-y:auto}#outline-panel .outline-list-item.sa11y-red-text,#settings-panel .sa11y-red-text{color:var(--sa11y-red-text)}#outline-list{display:block;margin:0;padding:0}#outline-list a{cursor:pointer;display:block;text-decoration:none}#outline-list li{display:block;list-style-type:none;margin-bottom:3px;margin-top:0;padding:0}#outline-list li:first-child{margin-top:5px}#outline-list li a:focus,#outline-list li a:hover{background:var(--sa11y-panel-outline-hover);border-radius:5px;box-shadow:0 0 0 2px var(--sa11y-panel-outline-hover);display:block}#outline-list .outline-2{margin-inline-start:15px}#outline-list .outline-3{margin-inline-start:30px}#outline-list .outline-4{margin-inline-start:45px}#outline-list .outline-5{margin-inline-start:60px}#outline-list .outline-6{margin-inline-start:75px}#images-list{display:block;margin:0;padding:0}#images-list li{border-bottom:1px solid var(--sa11y-panel-bg-splitter);display:block;list-style-type:none;margin:15px 0;overflow:hidden;width:100%}#images-list li:first-child{margin-top:5px}#images-list li:last-child{border:none;margin-bottom:0}#images-list li .alt{padding:2px 5px 10px}#images-list li .edit-block{display:flex;justify-content:flex-end;margin-bottom:15px}#images-list li .edit{background:var(--sa11y-panel-bg-secondary);border:2px solid var(--sa11y-button-outline);border-radius:5px;color:var(--sa11y-panel-primary);cursor:pointer;margin-inline-end:5px;padding:4px 7px;position:relative;text-decoration:none}#images-list li .edit:focus,#images-list li .edit:hover{background-color:var(--sa11y-shortcut-hover)}#images-list li .edit:before{content:"";inset:-10px;position:absolute}#images-list li img{border-radius:5px;float:inline-start;margin-block-end:15px;margin-inline-end:10px;max-width:110px}#images-list li.warning .alt{color:var(--sa11y-yellow-text)}#images-list li.warning img{background-color:var(--sa11y-yellow-text);border:5px solid var(--sa11y-yellow-text)}#images-list li.error .alt{color:var(--sa11y-error)}#images-list li.error img{background-color:var(--sa11y-error);border:5px solid var(--sa11y-error)}#images-list li.good img{background-color:var(--sa11y-panel-badge);border:5px solid var(--sa11y-panel-badge)}@media screen and (forced-colors:active){#images-list li img{background-color:ButtonBorder!important}}.move-panel-icon{height:18px;-webkit-mask:var(--sa11y-move-panel-icon);mask:var(--sa11y-move-panel-icon);-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;width:18px}.info-icon,.move-panel-icon{background:var(--sa11y-setting-switch-bg-off);display:inline-block;vertical-align:middle}.info-icon{height:20px;margin-top:-2px;-webkit-mask:var(--sa11y-info-icon);mask:var(--sa11y-info-icon);-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;width:20px}.sun-icon{-webkit-mask:var(--sa11y-sun-icon);mask:var(--sa11y-sun-icon);-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}.moon-icon,.sun-icon{background:var(--sa11y-setting-switch-bg-off);display:inline-block;height:18px;vertical-align:middle;width:18px}.moon-icon{-webkit-mask:var(--sa11y-moon-icon);mask:var(--sa11y-moon-icon);-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}.error-icon{background:var(--sa11y-error-text);margin-bottom:-4px;-webkit-mask:var(--sa11y-error-svg);mask:var(--sa11y-error-svg);-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}.error-icon,.hidden-icon{display:inline-block;height:16px;width:16px}.hidden-icon{margin-bottom:-3px;-webkit-mask:var(--sa11y-hidden-icon-svg);mask:var(--sa11y-hidden-icon-svg);-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}.hidden-icon,.link-icon{background:var(--sa11y-panel-primary)}.link-icon{display:inline-block;height:16px;margin-bottom:-3.5px;-webkit-mask:var(--sa11y-link-icon-svg);mask:var(--sa11y-link-icon-svg);-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;width:16px}.error-badge .hidden-icon,.error-badge .link-icon{background:var(--sa11y-error-text)}.warning-badge .hidden-icon,.warning-badge .link-icon{background:var(--sa11y-panel-bg)}.error .link-icon{background:var(--sa11y-error-text)}.warning .link-icon{background:var(--sa11y-panel-bg)}@media screen and (forced-colors:active){.error-icon,.hidden-icon,.info-icon,.link-icon,.moon-icon,.move-panel-icon,.sun-icon{filter:invert(1)}}#panel-controls{border-bottom:1px solid var(--sa11y-panel-bg-splitter);border-radius:0 0 4px 4px;display:flex;overflow:hidden}#panel-controls button{background:var(--sa11y-panel-bg-secondary);background-color:var(--sa11y-panel-bg-secondary);border-inline-end:1px solid var(--sa11y-panel-bg-splitter);border-top:1px solid var(--sa11y-panel-bg-splitter);color:var(--sa11y-panel-secondary);cursor:pointer;display:block;font-size:var(--sa11y-normal-text);font-weight:400;height:30px;line-height:0;margin:0;opacity:1;outline:0;padding:0;position:relative;text-align:center;transition:background .2s;width:100%}#panel-controls button.active,#panel-controls button:hover{background-color:var(--sa11y-shortcut-hover)}#panel-controls button.active{font-weight:600}#export-results-mode,label{color:var(--sa11y-panel-primary);display:inline-block;font-weight:400;margin:0;width:100%}label:not(#colour-filter-mode,#export-results-mode){cursor:pointer}#panel.right #panel-controls:has(#images-toggle):after{content:"";width:80px}#panel.left #panel-controls:has(#images-toggle):before{content:"";width:50px}#settings-panel .appearance-group,#settings-panel .export-results-group{display:flex;margin:5px 0}#settings-panel .appearance-group button,#settings-panel .export-results-group button{align-items:center;border:2px solid var(--sa11y-setting-switch-bg-off);border-radius:5px;cursor:pointer;display:flex;justify-content:center;margin:2px 0;margin-inline-end:4px;margin-inline-start:8px;min-height:34px;min-width:44px;position:relative;text-align:center;white-space:nowrap}#settings-panel .appearance-group button:focus,#settings-panel .appearance-group button:focus-within,#settings-panel .appearance-group button:hover,#settings-panel .export-results-group button:focus,#settings-panel .export-results-group button:focus-within,#settings-panel .export-results-group button:hover{background:var(--sa11y-shortcut-hover)}#settings-panel .appearance-group button:before,#settings-panel .export-results-group button:before{content:"";inset:-7px;position:absolute}#settings-panel .appearance-group button .text,#settings-panel .export-results-group button .text{color:var(--sa11y-setting-switch-bg-off);font-weight:600;padding:0 6px}#settings-panel .switch{background:none;border:0;border-radius:5px;color:var(--sa11y-setting-switch-bg-off);cursor:pointer;font-size:var(--sa11y-normal-text);font-weight:600;height:44px;margin:0;padding:7px 10px;position:relative;text-align:end;width:105px}#settings-panel .switch[aria-pressed=false]:after,#settings-panel .switch[aria-pressed=true]:after{content:"";display:inline-block;height:27px;margin:0 4px 4px;vertical-align:middle;width:27px}#settings-panel .switch[aria-pressed=true]:after{background:var(--sa11y-setting-switch-bg-on);-webkit-mask:var(--sa11y-setting-switch-on-svg) center no-repeat;mask:var(--sa11y-setting-switch-on-svg) center no-repeat}#settings-panel .switch[aria-pressed=false]:after{background:var(--sa11y-setting-switch-bg-off);-webkit-mask:var(--sa11y-setting-switch-off-svg) center no-repeat;mask:var(--sa11y-setting-switch-off-svg) center no-repeat}@media screen and (forced-colors:active){#settings-panel .switch[aria-pressed=false]:after,#settings-panel .switch[aria-pressed=true]:after{filter:invert(1)}}#settings-panel #settings-options li{align-items:center;border-bottom:1px solid var(--sa11y-panel-bg-splitter);display:flex;justify-content:space-between;list-style-type:none;padding:1px 0}#settings-panel #settings-options li:last-child{border:none}#page-issues{align-items:center;color:var(--sa11y-panel-primary)}#page-issues-list{display:block;margin-top:4px}#page-issues-list li{display:block;margin:0 0 10px}.top-left.has-page-issues #page-issues,.top-right.has-page-issues #page-issues{border-top:1px solid var(--sa11y-panel-bg-splitter);margin-top:-1px}#panel-colour-filters{align-items:center;color:var(--sa11y-panel-primary);display:none;font-family:var(--sa11y-font-face);font-size:var(--sa11y-normal-text);font-weight:400;line-height:22px}#panel-colour-filters.active{display:flex}#panel-colour-filters p{padding:6px 20px 6px 6px;width:100%}#panel-colour-filters[data-colour=protanopia]{border-bottom:6px solid transparent;-o-border-image:linear-gradient(94deg,#786719 11%,#e0c600 36%,#e0c600 47%,#0059e3 75%,#0042aa 91%);border-image:linear-gradient(94deg,#786719 11%,#e0c600 36%,#e0c600 47%,#0059e3 75%,#0042aa 91%);border-image-slice:1}#panel-colour-filters[data-colour=deuteranopia]{border-bottom:6px solid transparent;-o-border-image:linear-gradient(270deg,#567fdb,#a4a28d 48%,#c3ad14 69%,#a79505);border-image:linear-gradient(270deg,#567fdb,#a4a28d 48%,#c3ad14 69%,#a79505);border-image-slice:1}#panel-colour-filters[data-colour=tritanopia]{border-bottom:6px solid transparent;-o-border-image:linear-gradient(270deg,#b1506f,#0696c1 35%,#f3a9ba 70%,#d91c5d 87%,#fe015c);border-image:linear-gradient(270deg,#b1506f,#0696c1 35%,#f3a9ba 70%,#d91c5d 87%,#fe015c);border-image-slice:1}#panel-colour-filters[data-colour=monochromacy]{border-bottom:6px solid transparent;-o-border-image:linear-gradient(270deg,#000,#a7a7a7 50%,#000);border-image:linear-gradient(270deg,#000,#a7a7a7 50%,#000);border-image-slice:1}#panel-colour-filters[data-colour=protanopia] .panel-icon{background:var(--sa11y-panel-error)}#panel-colour-filters[data-colour=deuteranopia] .panel-icon{background:var(--sa11y-good-hover)}#panel-colour-filters[data-colour=tritanopia] .panel-icon{background:var(--sa11y-blue)}#panel-colour-filters[data-colour=monochromacy] .panel-icon{background:linear-gradient(90deg,#38a459 20%,red 50%,#0077c8 80%)}#panel-colour-filters .panel-icon{height:30px;margin-inline-end:5px;margin-inline-start:10px;-webkit-mask:var(--sa11y-low-vision-icon) center no-repeat;mask:var(--sa11y-low-vision-icon) center no-repeat;width:30px}@media screen and (forced-colors:active){#panel-colour-filters .panel-icon{forced-color-adjust:none}}.select-dropdown{align-items:center;display:flex;position:relative}.select-dropdown:after{border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid var(--sa11y-setting-switch-bg-off);content:" ";inset-inline-end:14px;position:absolute}#colour-filter-select{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:var(--sa11y-panel-bg);border:2px solid var(--sa11y-setting-switch-bg-off);border-radius:5px;color:var(--sa11y-setting-switch-bg-off);cursor:pointer;font-size:var(--sa11y-normal-text);font-weight:600;height:30px;margin-inline-end:4px;padding-inline-end:25px;padding-inline-start:5px;position:relative;text-align:end;vertical-align:middle}#colour-filter-select:focus,#colour-filter-select:hover{background:var(--sa11y-shortcut-hover)}#colour-filter-select.active{box-shadow:0 0 0 2px var(--sa11y-setting-switch-bg-on)}#colour-filter-item label,#colour-filter-item select{margin-bottom:9px;margin-top:10px}#readability-panel{display:none;opacity:0}#readability-panel.active{display:block;opacity:1}.top-left #readability-content,.top-right #readability-content{border-top:1px solid var(--sa11y-panel-bg-splitter)}.left #readability-content,.right #readability-content{border-bottom:1px solid var(--sa11y-panel-bg-splitter)}#readability-content{color:var(--sa11y-panel-primary);padding:10px 15px;width:100%}#readability-details{list-style-type:none;margin:0;padding:0;white-space:normal}#readability-details li{display:inline-block;list-style-type:none;margin:0;padding-inline-end:10px}.readability-score{background-color:var(--sa11y-panel-badge);border-radius:4px;color:var(--sa11y-panel-primary);margin-inline-start:5px;padding:2px 5px}#readability-info{margin-inline-start:10px}#skip-to-page-issues{display:none}#panel.has-page-issues #skip-to-page-issues{clip:rect(0,0,0,0);background:var(--sa11y-panel-bg);border:0;border-radius:5px;display:block;font-weight:600;height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px}#panel.has-page-issues #skip-to-page-issues:focus{clip:auto;height:auto;margin:0;overflow:visible;padding:7px 10px;white-space:normal;width:auto;z-index:1}.hide-settings-border{border-bottom:0!important;padding:0 15px!important}.hide-settings-border li:not(#colour-filter-item){display:none!important}.hide-settings-border #about-content{display:none}.hide-settings-border.scrollable:before{all:unset}#contrast-tools{display:none}::-webkit-scrollbar{height:6px;width:7px}::-webkit-scrollbar-thumb{background-color:var(--sa11y-button-outline);border-radius:6px}*{scrollbar-color:var(--sa11y-button-outline);scrollbar-width:thin}.scrollable:before{animation:fade 1s ease-in-out;background:linear-gradient(180deg,transparent 70%,var(--sa11y-panel-scrollable) 100%);background-position:bottom;bottom:auto;content:"";height:250px;left:0;position:absolute;right:0;top:auto;transition:opacity 1s ease-in-out;width:100%;z-index:-1}#settings-content.scrollable:before{height:400px}.top-left .scrollable:before,.top-right .scrollable:before{border-radius:5px}#page-issues-content.scrollable:before{height:160px}#panel-alert.scrollable:before{height:200px}@keyframes sa11y-toggle-gradient{0%{background-position:50% 0}50%{background-position:50% 100%}to{background-position:50% 0}}@keyframes fade{0%{opacity:0}to{opacity:1}}@media (prefers-reduced-motion:reduce){*{animation:none!important;transform:none!important;transition:none!important}}#panel{width:400px}#container:lang(en) #panel{width:315px}#container:lang(da) #panel,#container:lang(de) #panel,#container:lang(nb) #panel,#container:lang(pl) #panel,#container:lang(sv) #panel,#container:lang(zh) #panel{width:365px}#container:lang(bg) .switch:not(#export-results-item *),#container:lang(es) .switch:not(#export-results-item *){width:225px!important}#container:not(:lang(en)):not(:lang(de)) .switch{width:205px}'+Y,this.shadowRoot.appendChild(e);const o="On"===v.getItem("sa11y-developer"),i="On"===v.getItem("sa11y-readability"),s=v.getItem("sa11y-theme"),a=v.getItem("sa11y-position"),r=n.Global.checkAllHideToggles,l=n.Global.developerPlugin?`\n
                                  • \n \n \n \n
                                  • `:"",c=n.Readability.Plugin?`\n
                                  • \n \n \n \n
                                  • `:"",d=n.Global.colourFilterPlugin?`\n
                                  • \n \n
                                    \n \n
                                    \n
                                  • `:"",p=n.Global.colourFilterPlugin?`\n
                                    \n \n

                                    ${t._("COLOUR_FILTER_MESSAGE")}

                                    \n
                                    `:"",u=n.Global.exportResultsPlugin?`\n
                                  • \n ${t._("EXPORT_RESULTS")}\n
                                    \n \n \n
                                    \n
                                  • `:"",h=n.Global.aboutContent?`\n
                                    ${n.Global.aboutContent}
                                    `:"",g=`\n `,m=`\n
                                    \n
                                    \n

                                    ${t._("PAGE_ISSUES")}

                                    \n
                                    \n
                                    \n
                                      \n
                                      \n
                                      `,f=`\n
                                      \n
                                      \n

                                      ${t._("OUTLINE")}

                                      \n
                                      \n
                                      \n
                                        \n
                                        \n
                                        \n
                                        \n

                                        ${t._("READABILITY")}

                                        \n

                                        \n
                                          \n
                                          \n
                                          \n
                                          `,b=n.Global.showImageOutline?`\n
                                          \n
                                          \n

                                          ${t._("IMAGES")}

                                          \n
                                          \n
                                          \n
                                            \n
                                            \n
                                            `:"",y="left"===a||"top-left"===a?"true":"false",A=n.Global.showMovePanelToggle?``:"",E=`\n
                                            \n
                                            \n

                                            ${t._("SETTINGS")}

                                            \n
                                            \n
                                            \n
                                              \n ${l}\n ${c}\n
                                            • \n ${t._("APPEARANCE")}\n
                                              \n \n ${A}\n
                                              \n
                                            • \n ${u}\n ${d}\n
                                            \n ${h}\n
                                            \n
                                            `,_=`\n
                                            \n
                                            \n
                                            \n \n

                                            ${t._("ALERT_TEXT")}

                                            \n
                                            \n

                                            \n
                                            \n
                                            \n
                                            `,L=`\n
                                            \n \n \n \n
                                            \n

                                            ${t._("PANEL_HEADING")}

                                            \n

                                            \n
                                            \n
                                            `,I=``,T=`\n
                                            \n \n ${n.Global.showImageOutline?I:""}\n \n
                                            `,x=document.createElement("div");x.setAttribute("id","container"),x.setAttribute("role","region"),x.setAttribute("data-sa11y-version",W),x.setAttribute("lang",t._("LANG_CODE")),x.setAttribute("aria-label",t._("CONTAINER_LABEL")),x.setAttribute("dir",n.Global.langDirection),x.innerHTML="top-left"===a||"top-right"===a?`\n ${g}\n
                                            \n ${L}\n ${p}\n ${T}\n ${f}\n ${b}\n ${E}\n ${_}\n ${m}\n
                                            `:`\n ${g}\n
                                            \n ${m}\n ${f}\n ${b}\n ${E}\n ${_}\n ${p}\n ${L}\n ${T}\n
                                            `,this.shadowRoot.appendChild(x),n.initializePanelSelectors()}}const V=()=>{n.Panel.outlineToggle.classList.add("active"),n.Panel.outline.classList.add("active"),n.Panel.outlineToggle.setAttribute("aria-expanded","true"),v.setItem("sa11y-outline","Opened"),N(n.Panel.outlineList,n.Panel.outlineContent);o("sa11y-heading-label","root").forEach(e=>e.hidden=!1);const e=new CustomEvent("sa11y-build-heading-outline");document.dispatchEvent(e)},j=()=>{n.Panel.outline.classList.remove("active"),n.Panel.outlineToggle.classList.remove("active"),n.Panel.outlineToggle.setAttribute("aria-expanded","false"),v.setItem("sa11y-outline","Closed");o("sa11y-heading-label","root").forEach(e=>e.hidden=!0)},q=()=>{n.Panel.imagesToggle.classList.add("active"),n.Panel.images.classList.add("active"),n.Panel.imagesToggle.setAttribute("aria-expanded","true"),v.setItem("sa11y-images","Opened"),N(n.Panel.imagesList,n.Panel.imagesContent);const e=new CustomEvent("sa11y-build-image-outline");document.dispatchEvent(e)},X=()=>{n.Global.showImageOutline&&(n.Panel.imagesToggle.classList.remove("active"),n.Panel.images.classList.remove("active"),n.Panel.imagesToggle.setAttribute("aria-expanded","false"),v.setItem("sa11y-images","Closed"))},Z=()=>{n.Panel.settingsToggle.classList.add("active"),n.Panel.settings.classList.add("active"),n.Panel.settingsToggle.setAttribute("aria-expanded","true"),v.setItem("sa11y-settings","Opened"),N(n.Panel.settingsContent,n.Panel.settingsContent,t._("SETTINGS"))},J=()=>{n.Panel.settings.classList.remove("active"),n.Panel.settingsToggle.classList.remove("active"),n.Panel.settingsToggle.setAttribute("aria-expanded","false"),v.setItem("sa11y-settings","Closed")};function ee(e,i,s){const a=()=>{const r=[];let l;if(e.map(e=>i.find(t=>e.key===t.dismiss&&e.href===window.location.pathname)).filter(Boolean).forEach(e=>Object.assign(e,{dismissedHeading:!0})),s.showTitleInPageOutline){const e=document.querySelector("head title");if(e&&0!==e.textContent.trim().length){const n=f(e);l=`
                                          • ${t._("TITLE")} ${u(n)}
                                          • `}else l=`
                                          • ${t._("TITLE")}
                                            ${t._("MISSING")}
                                          • `;r.push(l)}return i.forEach(e=>{const n=e.element,o=e.headingLevel,i=e.text,a=e.index,l=e.type,c=e.hidden,d=e.visibleParent,p=e.dismissedHeading,{isWithinRoot:u}=e;if(!O.Found.OutlineIgnore.includes(n)){const e=!0===c?'Hidden':"",n=!0===c?'class="hidden-h"':"",d=!0===s.showHinPageOutline||1===s.showHinPageOutline?"H":"";let h;"error"===l&&!0===u?(h=`\n
                                          • \n \n \n \n ${t._("ERROR")} ${d+o}\n ${i}\n \n
                                          • `,r.push(h)):"warning"!==l||p||!0!==u?(h=`\n
                                          • \n \n ${e} ${d+o}\n ${i}\n \n
                                          • `,r.push(h)):(h=`\n
                                          • \n \n \n \n ${t._("WARNING")} ${d+o}\n ${i}\n \n
                                          • `,r.push(h))}const h=document.createElement("sa11y-heading-label"),g=document.createElement("sa11y-heading-anchor");if(h.hidden=!0,null!==d){n.insertAdjacentElement("beforeend",h);const e=d.previousElementSibling;g.setAttribute("id",`sa11y-h${a}`),e?(e.insertAdjacentElement("beforebegin",g),e.setAttribute("data-sa11y-parent",`h${a}`)):(d.parentNode.insertAdjacentElement("beforebegin",g),d.parentNode.setAttribute("data-sa11y-parent",`h${a}`))}else n.insertAdjacentElement("beforeend",h),h.insertAdjacentElement("beforebegin",g),g.setAttribute("id",`sa11y-h${a}`);const m=document.createElement("span");m.classList.add("heading-label"),m.innerHTML=`H${o}`,h.shadowRoot.appendChild(m),"Opened"===v.getItem("sa11y-outline")&&(h.hidden=!1)}),n.Panel.outlineList.innerHTML=0===i.length?`${l||""}
                                          • ${t._("PANEL_NO_HEADINGS")}
                                          • `:r.join(" "),setTimeout(()=>{const e=document.querySelector("sa11y-control-panel").shadowRoot,i=Array.from(e.querySelectorAll("#outline-list a"));i.forEach((i,s)=>{const a=e.getElementById(`sa11y-link-${s}`),r=o(`#sa11y-h${s}, [data-sa11y-parent="h${s}"]`,"document",n.Exclusions.Container),l=e=>{("keyup"===e.type&&"Enter"===e.code||"click"===e.type)&&(r.forEach(e=>{(e=>{_(e.parentElement),e.scrollIntoView({behavior:`${n.Global.scrollBehaviour}`,block:"center"})})(e)}),a.classList.contains("hidden-h")?T(`${t._("HEADING_NOT_VISIBLE")}`):n.Panel.alert.classList.contains("active")&&I()),e.preventDefault()};a?.addEventListener("click",l,!1),a?.addEventListener("keyup",l,!1)});let s=0;const a=e=>{if(!["ArrowUp","ArrowDown","Space"].includes(e.code))return;if("Space"===e.code)return void i[s].click();let t;i[s].setAttribute("tabindex",-1),"ArrowDown"===e.code?(t=s+1,s===i.length-1&&(t=0)):"ArrowUp"===e.code&&(t=s-1,0===s&&(t=i.length-1)),i[t].setAttribute("tabindex",0),i[t].focus(),s=t,e.preventDefault()};n.Panel.outlineList.addEventListener("focus",()=>{i.length>0&&(n.Panel.outlineList.setAttribute("tabindex",-1),i[s].setAttribute("tabindex",0),i[s].focus()),n.Panel.outlineList.addEventListener("keydown",a)}),n.Panel.outlineList.addEventListener("blur",()=>{n.Panel.outlineList.removeEventListener("keydown",a)})},0),document.removeEventListener("sa11y-build-heading-outline",a),e};"Opened"===v.getItem("sa11y-outline")&&a(),document.addEventListener("sa11y-build-heading-outline",a)}const te=e=>{const{src:o}=e.element,i=n.Global.ignoreEditImageURL.some(e=>o.includes(e)),s=n.Global.ignoreEditImageClass.some(t=>e.element.classList.contains(t));if(i||s)return"";const a=n.Global.relativePathImageSRC||window.location.host,r=o.split(a)[1]||"",l=n.Global.relativePathImageID;let c;l.length&&e.element.classList.length&&e.element.classList.forEach(e=>{if(e.startsWith(l)){const[t]=e.match(/\d+/)||[];c=t}});const d=a&&l.length?n.Global.editImageURLofCMS+c:n.Global.editImageURLofCMS+r;return(l.length&&void 0!==c||!l)&&((p=o).includes(window.location.host)||p.startsWith(a))?``:"";var p};var ne="top",oe="bottom",ie="right",se="left",ae="auto",re=[ne,oe,ie,se],le="start",ce="end",de="viewport",pe="popper",ue=re.reduce(function(e,t){return e.concat([t+"-"+le,t+"-"+ce])},[]),he=[].concat(re,[ae]).reduce(function(e,t){return e.concat([t,t+"-"+le,t+"-"+ce])},[]),ge=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function me(e){return e?(e.nodeName||"").toLowerCase():null}function fe(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function be(e){return e instanceof fe(e).Element||e instanceof Element}function ye(e){return e instanceof fe(e).HTMLElement||e instanceof HTMLElement}function Ae(e){return"undefined"!=typeof ShadowRoot&&(e instanceof fe(e).ShadowRoot||e instanceof ShadowRoot)}var Ee={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach(function(e){var n=t.styles[e]||{},o=t.attributes[e]||{},i=t.elements[e];ye(i)&&me(i)&&(Object.assign(i.style,n),Object.keys(o).forEach(function(e){var t=o[e];!1===t?i.removeAttribute(e):i.setAttribute(e,!0===t?"":t)}))})},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(e){var o=t.elements[e],i=t.attributes[e]||{},s=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce(function(e,t){return e[t]="",e},{});ye(o)&&me(o)&&(Object.assign(o.style,s),Object.keys(i).forEach(function(e){o.removeAttribute(e)}))})}},requires:["computeStyles"]};function ve(e){return e.split("-")[0]}var _e=Math.max,Le=Math.min,Ie=Math.round;function Te(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function xe(){return!/^((?!chrome|android).)*safari/i.test(Te())}function ke(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var o=e.getBoundingClientRect(),i=1,s=1;t&&ye(e)&&(i=e.offsetWidth>0&&Ie(o.width)/e.offsetWidth||1,s=e.offsetHeight>0&&Ie(o.height)/e.offsetHeight||1);var a=(be(e)?fe(e):window).visualViewport,r=!xe()&&n,l=(o.left+(r&&a?a.offsetLeft:0))/i,c=(o.top+(r&&a?a.offsetTop:0))/s,d=o.width/i,p=o.height/s;return{width:d,height:p,top:c,right:l+d,bottom:c+p,left:l,x:l,y:c}}function Ne(e){var t=ke(e),n=e.offsetWidth,o=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-o)<=1&&(o=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:o}}function Se(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Ae(n)){var o=t;do{if(o&&e.isSameNode(o))return!0;o=o.parentNode||o.host}while(o)}return!1}function we(e){return fe(e).getComputedStyle(e)}function Ce(e){return["table","td","th"].indexOf(me(e))>=0}function Oe(e){return((be(e)?e.ownerDocument:e.document)||window.document).documentElement}function Pe(e){return"html"===me(e)?e:e.assignedSlot||e.parentNode||(Ae(e)?e.host:null)||Oe(e)}function Re(e){return ye(e)&&"fixed"!==we(e).position?e.offsetParent:null}function De(e){for(var t=fe(e),n=Re(e);n&&Ce(n)&&"static"===we(n).position;)n=Re(n);return n&&("html"===me(n)||"body"===me(n)&&"static"===we(n).position)?t:n||function(e){var t=/firefox/i.test(Te());if(/Trident/i.test(Te())&&ye(e)&&"fixed"===we(e).position)return null;var n=Pe(e);for(Ae(n)&&(n=n.host);ye(n)&&["html","body"].indexOf(me(n))<0;){var o=we(n);if("none"!==o.transform||"none"!==o.perspective||"paint"===o.contain||-1!==["transform","perspective"].indexOf(o.willChange)||t&&"filter"===o.willChange||t&&o.filter&&"none"!==o.filter)return n;n=n.parentNode}return null}(e)||t}function Me(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Be(e,t,n){return _e(e,Le(t,n))}function $e(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function Ge(e,t){return t.reduce(function(t,n){return t[n]=e,t},{})}var Ue={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,o=e.name,i=e.options,s=n.elements.arrow,a=n.modifiersData.popperOffsets,r=ve(n.placement),l=Me(r),c=[se,ie].indexOf(r)>=0?"height":"width";if(s&&a){var d=function(e,t){return $e("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:Ge(e,re))}(i.padding,n),p=Ne(s),u="y"===l?ne:se,h="y"===l?oe:ie,g=n.rects.reference[c]+n.rects.reference[l]-a[l]-n.rects.popper[c],m=a[l]-n.rects.reference[l],f=De(s),b=f?"y"===l?f.clientHeight||0:f.clientWidth||0:0,y=g/2-m/2,A=d[u],E=b-p[c]-d[h],v=b/2-p[c]/2+y,_=Be(A,v,E),L=l;n.modifiersData[o]=((t={})[L]=_,t.centerOffset=_-v,t)}},effect:function(e){var t=e.state,n=e.options.element,o=void 0===n?"[data-popper-arrow]":n;null!=o&&("string"!=typeof o||(o=t.elements.popper.querySelector(o)))&&Se(t.elements.popper,o)&&(t.elements.arrow=o)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function He(e){return e.split("-")[1]}var Fe={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Ke(e){var t,n=e.popper,o=e.popperRect,i=e.placement,s=e.variation,a=e.offsets,r=e.position,l=e.gpuAcceleration,c=e.adaptive,d=e.roundOffsets,p=e.isFixed,u=a.x,h=void 0===u?0:u,g=a.y,m=void 0===g?0:g,f="function"==typeof d?d({x:h,y:m}):{x:h,y:m};h=f.x,m=f.y;var b=a.hasOwnProperty("x"),y=a.hasOwnProperty("y"),A=se,E=ne,v=window;if(c){var _=De(n),L="clientHeight",I="clientWidth";if(_===fe(n)&&"static"!==we(_=Oe(n)).position&&"absolute"===r&&(L="scrollHeight",I="scrollWidth"),i===ne||(i===se||i===ie)&&s===ce)E=oe,m-=(p&&_===v&&v.visualViewport?v.visualViewport.height:_[L])-o.height,m*=l?1:-1;if(i===se||(i===ne||i===oe)&&s===ce)A=ie,h-=(p&&_===v&&v.visualViewport?v.visualViewport.width:_[I])-o.width,h*=l?1:-1}var T,x=Object.assign({position:r},c&&Fe),k=!0===d?function(e,t){var n=e.x,o=e.y,i=t.devicePixelRatio||1;return{x:Ie(n*i)/i||0,y:Ie(o*i)/i||0}}({x:h,y:m},fe(n)):{x:h,y:m};return h=k.x,m=k.y,l?Object.assign({},x,((T={})[E]=y?"0":"",T[A]=b?"0":"",T.transform=(v.devicePixelRatio||1)<=1?"translate("+h+"px, "+m+"px)":"translate3d("+h+"px, "+m+"px, 0)",T)):Object.assign({},x,((t={})[E]=y?m+"px":"",t[A]=b?h+"px":"",t.transform="",t))}var We={passive:!0};var Ye={left:"right",right:"left",bottom:"top",top:"bottom"};function ze(e){return e.replace(/left|right|bottom|top/g,function(e){return Ye[e]})}var Qe={start:"end",end:"start"};function Ve(e){return e.replace(/start|end/g,function(e){return Qe[e]})}function je(e){var t=fe(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function qe(e){return ke(Oe(e)).left+je(e).scrollLeft}function Xe(e){var t=we(e),n=t.overflow,o=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+o)}function Ze(e){return["html","body","#document"].indexOf(me(e))>=0?e.ownerDocument.body:ye(e)&&Xe(e)?e:Ze(Pe(e))}function Je(e,t){var n;void 0===t&&(t=[]);var o=Ze(e),i=o===(null==(n=e.ownerDocument)?void 0:n.body),s=fe(o),a=i?[s].concat(s.visualViewport||[],Xe(o)?o:[]):o,r=t.concat(a);return i?r:r.concat(Je(Pe(a)))}function et(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function tt(e,t,n){return t===de?et(function(e,t){var n=fe(e),o=Oe(e),i=n.visualViewport,s=o.clientWidth,a=o.clientHeight,r=0,l=0;if(i){s=i.width,a=i.height;var c=xe();(c||!c&&"fixed"===t)&&(r=i.offsetLeft,l=i.offsetTop)}return{width:s,height:a,x:r+qe(e),y:l}}(e,n)):be(t)?function(e,t){var n=ke(e,!1,"fixed"===t);return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}(t,n):et(function(e){var t,n=Oe(e),o=je(e),i=null==(t=e.ownerDocument)?void 0:t.body,s=_e(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),a=_e(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),r=-o.scrollLeft+qe(e),l=-o.scrollTop;return"rtl"===we(i||n).direction&&(r+=_e(n.clientWidth,i?i.clientWidth:0)-s),{width:s,height:a,x:r,y:l}}(Oe(e)))}function nt(e,t,n,o){var i="clippingParents"===t?function(e){var t=Je(Pe(e)),n=["absolute","fixed"].indexOf(we(e).position)>=0&&ye(e)?De(e):e;return be(n)?t.filter(function(e){return be(e)&&Se(e,n)&&"body"!==me(e)}):[]}(e):[].concat(t),s=[].concat(i,[n]),a=s[0],r=s.reduce(function(t,n){var i=tt(e,n,o);return t.top=_e(i.top,t.top),t.right=Le(i.right,t.right),t.bottom=Le(i.bottom,t.bottom),t.left=_e(i.left,t.left),t},tt(e,a,o));return r.width=r.right-r.left,r.height=r.bottom-r.top,r.x=r.left,r.y=r.top,r}function ot(e){var t,n=e.reference,o=e.element,i=e.placement,s=i?ve(i):null,a=i?He(i):null,r=n.x+n.width/2-o.width/2,l=n.y+n.height/2-o.height/2;switch(s){case ne:t={x:r,y:n.y-o.height};break;case oe:t={x:r,y:n.y+n.height};break;case ie:t={x:n.x+n.width,y:l};break;case se:t={x:n.x-o.width,y:l};break;default:t={x:n.x,y:n.y}}var c=s?Me(s):null;if(null!=c){var d="y"===c?"height":"width";switch(a){case le:t[c]=t[c]-(n[d]/2-o[d]/2);break;case ce:t[c]=t[c]+(n[d]/2-o[d]/2)}}return t}function it(e,t){void 0===t&&(t={});var n=t,o=n.placement,i=void 0===o?e.placement:o,s=n.strategy,a=void 0===s?e.strategy:s,r=n.boundary,l=void 0===r?"clippingParents":r,c=n.rootBoundary,d=void 0===c?de:c,p=n.elementContext,u=void 0===p?pe:p,h=n.altBoundary,g=void 0!==h&&h,m=n.padding,f=void 0===m?0:m,b=$e("number"!=typeof f?f:Ge(f,re)),y=u===pe?"reference":pe,A=e.rects.popper,E=e.elements[g?y:u],v=nt(be(E)?E:E.contextElement||Oe(e.elements.popper),l,d,a),_=ke(e.elements.reference),L=ot({reference:_,element:A,strategy:"absolute",placement:i}),I=et(Object.assign({},A,L)),T=u===pe?I:_,x={top:v.top-T.top+b.top,bottom:T.bottom-v.bottom+b.bottom,left:v.left-T.left+b.left,right:T.right-v.right+b.right},k=e.modifiersData.offset;if(u===pe&&k){var N=k[i];Object.keys(x).forEach(function(e){var t=[ie,oe].indexOf(e)>=0?1:-1,n=[ne,oe].indexOf(e)>=0?"y":"x";x[e]+=N[n]*t})}return x}function st(e,t){void 0===t&&(t={});var n=t,o=n.placement,i=n.boundary,s=n.rootBoundary,a=n.padding,r=n.flipVariations,l=n.allowedAutoPlacements,c=void 0===l?he:l,d=He(o),p=d?r?ue:ue.filter(function(e){return He(e)===d}):re,u=p.filter(function(e){return c.indexOf(e)>=0});0===u.length&&(u=p);var h=u.reduce(function(t,n){return t[n]=it(e,{placement:n,boundary:i,rootBoundary:s,padding:a})[ve(n)],t},{});return Object.keys(h).sort(function(e,t){return h[e]-h[t]})}var at={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,o=e.name;if(!t.modifiersData[o]._skip){for(var i=n.mainAxis,s=void 0===i||i,a=n.altAxis,r=void 0===a||a,l=n.fallbackPlacements,c=n.padding,d=n.boundary,p=n.rootBoundary,u=n.altBoundary,h=n.flipVariations,g=void 0===h||h,m=n.allowedAutoPlacements,f=t.options.placement,b=ve(f),y=l||(b===f||!g?[ze(f)]:function(e){if(ve(e)===ae)return[];var t=ze(e);return[Ve(e),t,Ve(t)]}(f)),A=[f].concat(y).reduce(function(e,n){return e.concat(ve(n)===ae?st(t,{placement:n,boundary:d,rootBoundary:p,padding:c,flipVariations:g,allowedAutoPlacements:m}):n)},[]),E=t.rects.reference,v=t.rects.popper,_=new Map,L=!0,I=A[0],T=0;T=0,w=S?"width":"height",C=it(t,{placement:x,boundary:d,rootBoundary:p,altBoundary:u,padding:c}),O=S?N?ie:se:N?oe:ne;E[w]>v[w]&&(O=ze(O));var P=ze(O),R=[];if(s&&R.push(C[k]<=0),r&&R.push(C[O]<=0,C[P]<=0),R.every(function(e){return e})){I=x,L=!1;break}_.set(x,R)}if(L)for(var D=function(e){var t=A.find(function(t){var n=_.get(t);if(n)return n.slice(0,e).every(function(e){return e})});if(t)return I=t,"break"},M=g?3:1;M>0;M--){if("break"===D(M))break}t.placement!==I&&(t.modifiersData[o]._skip=!0,t.placement=I,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function rt(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function lt(e){return[ne,ie,oe,se].some(function(t){return e[t]>=0})}var ct={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,o=e.name,i=n.offset,s=void 0===i?[0,0]:i,a=he.reduce(function(e,n){return e[n]=function(e,t,n){var o=ve(e),i=[se,ne].indexOf(o)>=0?-1:1,s="function"==typeof n?n(Object.assign({},t,{placement:e})):n,a=s[0],r=s[1];return a=a||0,r=(r||0)*i,[se,ie].indexOf(o)>=0?{x:r,y:a}:{x:a,y:r}}(n,t.rects,s),e},{}),r=a[t.placement],l=r.x,c=r.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[o]=a}};var dt={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,o=e.name,i=n.mainAxis,s=void 0===i||i,a=n.altAxis,r=void 0!==a&&a,l=n.boundary,c=n.rootBoundary,d=n.altBoundary,p=n.padding,u=n.tether,h=void 0===u||u,g=n.tetherOffset,m=void 0===g?0:g,f=it(t,{boundary:l,rootBoundary:c,padding:p,altBoundary:d}),b=ve(t.placement),y=He(t.placement),A=!y,E=Me(b),v="x"===E?"y":"x",_=t.modifiersData.popperOffsets,L=t.rects.reference,I=t.rects.popper,T="function"==typeof m?m(Object.assign({},t.rects,{placement:t.placement})):m,x="number"==typeof T?{mainAxis:T,altAxis:T}:Object.assign({mainAxis:0,altAxis:0},T),k=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,N={x:0,y:0};if(_){if(s){var S,w="y"===E?ne:se,C="y"===E?oe:ie,O="y"===E?"height":"width",P=_[E],R=P+f[w],D=P-f[C],M=h?-I[O]/2:0,B=y===le?L[O]:I[O],$=y===le?-I[O]:-L[O],G=t.elements.arrow,U=h&&G?Ne(G):{width:0,height:0},H=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},F=H[w],K=H[C],W=Be(0,L[O],U[O]),Y=A?L[O]/2-M-W-F-x.mainAxis:B-W-F-x.mainAxis,z=A?-L[O]/2+M+W+K+x.mainAxis:$+W+K+x.mainAxis,Q=t.elements.arrow&&De(t.elements.arrow),V=Q?"y"===E?Q.clientTop||0:Q.clientLeft||0:0,j=null!=(S=null==k?void 0:k[E])?S:0,q=P+z-j,X=Be(h?Le(R,P+Y-j-V):R,P,h?_e(D,q):D);_[E]=X,N[E]=X-P}if(r){var Z,J="x"===E?ne:se,ee="x"===E?oe:ie,te=_[v],ae="y"===v?"height":"width",re=te+f[J],ce=te-f[ee],de=-1!==[ne,se].indexOf(b),pe=null!=(Z=null==k?void 0:k[v])?Z:0,ue=de?re:te-L[ae]-I[ae]-pe+x.altAxis,he=de?te+L[ae]+I[ae]-pe-x.altAxis:ce,ge=h&&de?function(e,t,n){var o=Be(e,t,n);return o>n?n:o}(ue,te,he):Be(h?ue:re,te,h?he:ce);_[v]=ge,N[v]=ge-te}t.modifiersData[o]=N}},requiresIfExists:["offset"]};function pt(e,t,n){void 0===n&&(n=!1);var o,i,s=ye(t),a=ye(t)&&function(e){var t=e.getBoundingClientRect(),n=Ie(t.width)/e.offsetWidth||1,o=Ie(t.height)/e.offsetHeight||1;return 1!==n||1!==o}(t),r=Oe(t),l=ke(e,a,n),c={scrollLeft:0,scrollTop:0},d={x:0,y:0};return(s||!s&&!n)&&(("body"!==me(t)||Xe(r))&&(c=(o=t)!==fe(o)&&ye(o)?{scrollLeft:(i=o).scrollLeft,scrollTop:i.scrollTop}:je(o)),ye(t)?((d=ke(t,!0)).x+=t.clientLeft,d.y+=t.clientTop):r&&(d.x=qe(r))),{x:l.left+c.scrollLeft-d.x,y:l.top+c.scrollTop-d.y,width:l.width,height:l.height}}function ut(e){var t=new Map,n=new Set,o=[];function i(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach(function(e){if(!n.has(e)){var o=t.get(e);o&&i(o)}}),o.push(e)}return e.forEach(function(e){t.set(e.name,e)}),e.forEach(function(e){n.has(e.name)||i(e)}),o}var ht={placement:"bottom",modifiers:[],strategy:"absolute"};function gt(){for(var e=arguments.length,t=new Array(e),n=0;n-1}function It(e,t){return"function"==typeof e?e.apply(void 0,t):e}function Tt(e,t){return 0===t?e:function(o){clearTimeout(n),n=setTimeout(function(){e(o)},t)};var n}function xt(e){return[].concat(e)}function kt(e,t){-1===e.indexOf(t)&&e.push(t)}function Nt(e){return[].slice.call(e)}function St(e){return Object.keys(e).reduce(function(t,n){return void 0!==e[n]&&(t[n]=e[n]),t},{})}function wt(){return document.createElement("div")}function Ct(e){return["Element","Fragment"].some(function(t){return Lt(e,t)})}function Ot(e){return Ct(e)?[e]:function(e){return Lt(e,"NodeList")}(e)?Nt(e):Array.isArray(e)?e:Nt(document.querySelectorAll(e))}function Pt(e,t){e.forEach(function(e){e&&(e.style.transitionDuration=t+"ms")})}function Rt(e,t){e.forEach(function(e){e&&e.setAttribute("data-state",t)})}function Dt(e,t,n){var o=t+"EventListener";["transitionend","webkitTransitionEnd"].forEach(function(t){e[o](t,n)})}function Mt(e,t){for(var n=t;n;){var o;if(e.contains(n))return!0;n=null==n.getRootNode||null==(o=n.getRootNode())?void 0:o.host}return!1}var Bt={isTouch:!1},$t=0;function Gt(){Bt.isTouch||(Bt.isTouch=!0,window.performance&&document.addEventListener("mousemove",Ut))}function Ut(){var e=performance.now();e-$t<20&&(Bt.isTouch=!1,document.removeEventListener("mousemove",Ut)),$t=e}function Ht(){var e,t=document.activeElement;if((e=t)&&e._tippy&&e._tippy.reference===e){var n=t._tippy;t.blur&&!n.state.isVisible&&t.blur()}}var Ft=!!("undefined"!=typeof window&&"undefined"!=typeof document)&&!!window.msCrypto,Kt=Object.assign({appendTo:vt,aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},{animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},{allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999}),Wt=Object.keys(Kt);function Yt(e){var t=(e.plugins||[]).reduce(function(t,n){var o,i=n.name,s=n.defaultValue;i&&(t[i]=void 0!==e[i]?e[i]:null!=(o=Kt[i])?o:s);return t},{});return Object.assign({},e,t)}function zt(e,t){var n=Object.assign({},t,{content:It(t.content,[e])},t.ignoreAttributes?{}:function(e,t){return(t?Object.keys(Yt(Object.assign({},Kt,{plugins:t}))):Wt).reduce(function(t,n){var o=(e.getAttribute("data-tippy-"+n)||"").trim();if(!o)return t;if("content"===n)t[n]=o;else try{t[n]=JSON.parse(o)}catch(e){t[n]=o}return t},{})}(e,t.plugins));return n.aria=Object.assign({},Kt.aria,n.aria),n.aria={expanded:"auto"===n.aria.expanded?t.interactive:n.aria.expanded,content:"auto"===n.aria.content?t.interactive?null:"describedby":n.aria.content},n}function Qt(e,t){e.innerHTML=t}function Vt(e){var t=wt();return!0===e?t.className=yt:(t.className=At,Ct(e)?t.appendChild(e):Qt(t,e)),t}function jt(e,t){Ct(t.content)?(Qt(e,""),e.appendChild(t.content)):"function"!=typeof t.content&&(t.allowHTML?Qt(e,t.content):e.textContent=t.content)}function qt(e){var t=e.firstElementChild,n=Nt(t.children);return{box:t,content:n.find(function(e){return e.classList.contains(bt)}),arrow:n.find(function(e){return e.classList.contains(yt)||e.classList.contains(At)}),backdrop:n.find(function(e){return e.classList.contains("tippy-backdrop")})}}function Xt(e){var t=wt(),n=wt();n.className="tippy-box",n.setAttribute("data-state","hidden"),n.setAttribute("tabindex","-1");var o=wt();function i(n,o){var i=qt(t),s=i.box,a=i.content,r=i.arrow;o.theme?s.setAttribute("data-theme",o.theme):s.removeAttribute("data-theme"),"string"==typeof o.animation?s.setAttribute("data-animation",o.animation):s.removeAttribute("data-animation"),o.inertia?s.setAttribute("data-inertia",""):s.removeAttribute("data-inertia"),s.style.maxWidth="number"==typeof o.maxWidth?o.maxWidth+"px":o.maxWidth,o.role?s.setAttribute("role",o.role):s.removeAttribute("role"),n.content===o.content&&n.allowHTML===o.allowHTML||jt(a,e.props),o.arrow?r?n.arrow!==o.arrow&&(s.removeChild(r),s.appendChild(Vt(o.arrow))):s.appendChild(Vt(o.arrow)):r&&s.removeChild(r)}return o.className=bt,o.setAttribute("data-state","hidden"),jt(o,e.props),t.appendChild(n),n.appendChild(o),i(e.props,e.props),{popper:t,onUpdate:i}}Xt.$$tippy=!0;var Zt=1,Jt=[],en=[];function tn(e,t){var n,o,i,s,a,r,l,c,d=zt(e,Object.assign({},Kt,Yt(St(t)))),p=!1,u=!1,h=!1,g=!1,m=[],f=Tt(Q,d.interactiveDebounce),b=Zt++,y=(c=d.plugins).filter(function(e,t){return c.indexOf(e)===t}),A={id:b,reference:e,popper:wt(),popperInstance:null,props:d,state:{isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},plugins:y,clearDelayTimeouts:function(){clearTimeout(n),clearTimeout(o),cancelAnimationFrame(i)},setProps:function(t){if(A.state.isDestroyed)return;P("onBeforeUpdate",[A,t]),Y();var n=A.props,o=zt(e,Object.assign({},n,St(t),{ignoreAttributes:!0}));A.props=o,W(),n.interactiveDebounce!==o.interactiveDebounce&&(M(),f=Tt(Q,o.interactiveDebounce));n.triggerTarget&&!o.triggerTarget?xt(n.triggerTarget).forEach(function(e){e.removeAttribute("aria-expanded")}):o.triggerTarget&&e.removeAttribute("aria-expanded");D(),O(),_&&_(n,o);A.popperInstance&&(X(),J().forEach(function(e){requestAnimationFrame(e._tippy.popperInstance.forceUpdate)}));P("onAfterUpdate",[A,t])},setContent:function(e){A.setProps({content:e})},show:function(){var e=A.state.isVisible,t=A.state.isDestroyed,n=!A.state.isEnabled,o=Bt.isTouch&&!A.props.touch,i=_t(A.props.duration,0,Kt.duration);if(e||t||n||o)return;if(N().hasAttribute("disabled"))return;if(P("onShow",[A],!1),!1===A.props.onShow(A))return;A.state.isVisible=!0,k()&&(v.style.visibility="visible");O(),U(),A.state.isMounted||(v.style.transition="none");if(k()){var s=w();Pt([s.box,s.content],0)}r=function(){var e;if(A.state.isVisible&&!g){if(g=!0,v.offsetHeight,v.style.transition=A.props.moveTransition,k()&&A.props.animation){var t=w(),n=t.box,o=t.content;Pt([n,o],i),Rt([n,o],"visible")}R(),D(),kt(en,A),null==(e=A.popperInstance)||e.forceUpdate(),P("onMount",[A]),A.props.animation&&k()&&function(e,t){F(e,t)}(i,function(){A.state.isShown=!0,P("onShown",[A])})}},function(){var e,t=A.props.appendTo,n=N();e=A.props.interactive&&t===vt||"parent"===t?n.parentNode:It(t,[n]);e.contains(v)||e.appendChild(v);A.state.isMounted=!0,X()}()},hide:function(){var e=!A.state.isVisible,t=A.state.isDestroyed,n=!A.state.isEnabled,o=_t(A.props.duration,1,Kt.duration);if(e||t||n)return;if(P("onHide",[A],!1),!1===A.props.onHide(A))return;A.state.isVisible=!1,A.state.isShown=!1,g=!1,p=!1,k()&&(v.style.visibility="hidden");if(M(),H(),O(!0),k()){var i=w(),s=i.box,a=i.content;A.props.animation&&(Pt([s,a],o),Rt([s,a],"hidden"))}R(),D(),A.props.animation?k()&&function(e,t){F(e,function(){!A.state.isVisible&&v.parentNode&&v.parentNode.contains(v)&&t()})}(o,A.unmount):A.unmount()},hideWithInteractivity:function(e){S().addEventListener("mousemove",f),kt(Jt,f),f(e)},enable:function(){A.state.isEnabled=!0},disable:function(){A.hide(),A.state.isEnabled=!1},unmount:function(){A.state.isVisible&&A.hide();if(!A.state.isMounted)return;Z(),J().forEach(function(e){e._tippy.unmount()}),v.parentNode&&v.parentNode.removeChild(v);en=en.filter(function(e){return e!==A}),A.state.isMounted=!1,P("onHidden",[A])},destroy:function(){if(A.state.isDestroyed)return;A.clearDelayTimeouts(),A.unmount(),Y(),delete e._tippy,A.state.isDestroyed=!0,P("onDestroy",[A])}};if(!d.render)return A;var E=d.render(A),v=E.popper,_=E.onUpdate;v.setAttribute("data-tippy-root",""),v.id="tippy-"+A.id,A.popper=v,e._tippy=A,v._tippy=A;var L=y.map(function(e){return e.fn(A)}),I=e.hasAttribute("aria-expanded");return W(),D(),O(),P("onCreate",[A]),d.showOnCreate&&ee(),v.addEventListener("mouseenter",function(){A.props.interactive&&A.state.isVisible&&A.clearDelayTimeouts()}),v.addEventListener("mouseleave",function(){A.props.interactive&&A.props.trigger.indexOf("mouseenter")>=0&&S().addEventListener("mousemove",f)}),A;function T(){var e=A.props.touch;return Array.isArray(e)?e:[e,0]}function x(){return"hold"===T()[0]}function k(){var e;return!(null==(e=A.props.render)||!e.$$tippy)}function N(){return l||e}function S(){var e,t,n=N().parentNode;return n?null!=(t=xt(n)[0])&&null!=(e=t.ownerDocument)&&e.body?t.ownerDocument:document:document}function w(){return qt(v)}function C(e){return A.state.isMounted&&!A.state.isVisible||Bt.isTouch||s&&"focus"===s.type?0:_t(A.props.delay,e?0:1,Kt.delay)}function O(e){void 0===e&&(e=!1),v.style.pointerEvents=A.props.interactive&&!e?"":"none",v.style.zIndex=""+A.props.zIndex}function P(e,t,n){var o;(void 0===n&&(n=!0),L.forEach(function(n){n[e]&&n[e].apply(n,t)}),n)&&(o=A.props)[e].apply(o,t)}function R(){var t=A.props.aria;if(t.content){var n="aria-"+t.content,o=v.id;xt(A.props.triggerTarget||e).forEach(function(e){var t=e.getAttribute(n);if(A.state.isVisible)e.setAttribute(n,t?t+" "+o:o);else{var i=t&&t.replace(o,"").trim();i?e.setAttribute(n,i):e.removeAttribute(n)}})}}function D(){!I&&A.props.aria.expanded&&xt(A.props.triggerTarget||e).forEach(function(e){A.props.interactive?e.setAttribute("aria-expanded",A.state.isVisible&&e===N()?"true":"false"):e.removeAttribute("aria-expanded")})}function M(){S().removeEventListener("mousemove",f),Jt=Jt.filter(function(e){return e!==f})}function B(t){if(!Bt.isTouch||!h&&"mousedown"!==t.type){var n=t.composedPath&&t.composedPath()[0]||t.target;if(!A.props.interactive||!Mt(v,n)){if(xt(A.props.triggerTarget||e).some(function(e){return Mt(e,n)})){if(Bt.isTouch)return;if(A.state.isVisible&&A.props.trigger.indexOf("click")>=0)return}else P("onClickOutside",[A,t]);!0===A.props.hideOnClick&&(A.clearDelayTimeouts(),A.hide(),u=!0,setTimeout(function(){u=!1}),A.state.isMounted||H())}}}function $(){h=!0}function G(){h=!1}function U(){var e=S();e.addEventListener("mousedown",B,!0),e.addEventListener("touchend",B,Et),e.addEventListener("touchstart",G,Et),e.addEventListener("touchmove",$,Et)}function H(){var e=S();e.removeEventListener("mousedown",B,!0),e.removeEventListener("touchend",B,Et),e.removeEventListener("touchstart",G,Et),e.removeEventListener("touchmove",$,Et)}function F(e,t){var n=w().box;function o(e){e.target===n&&(Dt(n,"remove",o),t())}if(0===e)return t();Dt(n,"remove",a),Dt(n,"add",o),a=o}function K(t,n,o){void 0===o&&(o=!1),xt(A.props.triggerTarget||e).forEach(function(e){e.addEventListener(t,n,o),m.push({node:e,eventType:t,handler:n,options:o})})}function W(){var e;x()&&(K("touchstart",z,{passive:!0}),K("touchend",V,{passive:!0})),(e=A.props.trigger,e.split(/\s+/).filter(Boolean)).forEach(function(e){if("manual"!==e)switch(K(e,z),e){case"mouseenter":K("mouseleave",V);break;case"focus":K(Ft?"focusout":"blur",j);break;case"focusin":K("focusout",j)}})}function Y(){m.forEach(function(e){var t=e.node,n=e.eventType,o=e.handler,i=e.options;t.removeEventListener(n,o,i)}),m=[]}function z(e){var t,n=!1;if(A.state.isEnabled&&!q(e)&&!u){var o="focus"===(null==(t=s)?void 0:t.type);s=e,l=e.currentTarget,D(),!A.state.isVisible&&Lt(e,"MouseEvent")&&Jt.forEach(function(t){return t(e)}),"click"===e.type&&(A.props.trigger.indexOf("mouseenter")<0||p)&&!1!==A.props.hideOnClick&&A.state.isVisible?n=!0:ee(e),"click"===e.type&&(p=!n),n&&!o&&te(e)}}function Q(e){var t=e.target,n=N().contains(t)||v.contains(t);if("mousemove"!==e.type||!n){var o=J().concat(v).map(function(e){var t,n=null==(t=e._tippy.popperInstance)?void 0:t.state;return n?{popperRect:e.getBoundingClientRect(),popperState:n,props:d}:null}).filter(Boolean);(function(e,t){var n=t.clientX,o=t.clientY;return e.every(function(e){var t=e.popperRect,i=e.popperState,s=e.props.interactiveBorder,a=i.placement.split("-")[0],r=i.modifiersData.offset;if(!r)return!0;var l="bottom"===a?r.top.y:0,c="top"===a?r.bottom.y:0,d="right"===a?r.left.x:0,p="left"===a?r.right.x:0,u=t.top-o+l>s,h=o-t.bottom-c>s,g=t.left-n+d>s,m=n-t.right-p>s;return u||h||g||m})})(o,e)&&(M(),te(e))}}function V(e){q(e)||A.props.trigger.indexOf("click")>=0&&p||(A.props.interactive?A.hideWithInteractivity(e):te(e))}function j(e){A.props.trigger.indexOf("focusin")<0&&e.target!==N()||A.props.interactive&&e.relatedTarget&&v.contains(e.relatedTarget)||te(e)}function q(e){return!!Bt.isTouch&&x()!==e.type.indexOf("touch")>=0}function X(){Z();var t=A.props,n=t.popperOptions,o=t.placement,i=t.offset,s=t.getReferenceClientRect,a=t.moveTransition,l=k()?qt(v).arrow:null,c=s?{getBoundingClientRect:s,contextElement:s.contextElement||N()}:e,d={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(e){var t=e.state;if(k()){var n=w().box;["placement","reference-hidden","escaped"].forEach(function(e){"placement"===e?n.setAttribute("data-placement",t.placement):t.attributes.popper["data-popper-"+e]?n.setAttribute("data-"+e,""):n.removeAttribute("data-"+e)}),t.attributes.popper={}}}},p=[{name:"offset",options:{offset:i}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!a}},d];k()&&l&&p.push({name:"arrow",options:{element:l,padding:3}}),p.push.apply(p,(null==n?void 0:n.modifiers)||[]),A.popperInstance=ft(c,v,Object.assign({},n,{placement:o,onFirstUpdate:r,modifiers:p}))}function Z(){A.popperInstance&&(A.popperInstance.destroy(),A.popperInstance=null)}function J(){return Nt(v.querySelectorAll("[data-tippy-root]"))}function ee(e){A.clearDelayTimeouts(),e&&P("onTrigger",[A,e]),U();var t=C(!0),o=T(),i=o[0],s=o[1];Bt.isTouch&&"hold"===i&&s&&(t=s),t?n=setTimeout(function(){A.show()},t):A.show()}function te(e){if(A.clearDelayTimeouts(),P("onUntrigger",[A,e]),A.state.isVisible){if(!(A.props.trigger.indexOf("mouseenter")>=0&&A.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(e.type)>=0&&p)){var t=C(!1);t?o=setTimeout(function(){A.state.isVisible&&A.hide()},t):i=requestAnimationFrame(function(){A.hide()})}}else H()}}function nn(e,t){void 0===t&&(t={});var n=Kt.plugins.concat(t.plugins||[]);document.addEventListener("touchstart",Gt,Et),window.addEventListener("blur",Ht);var o=Object.assign({},t,{plugins:n}),i=Ot(e).reduce(function(e,t){var n=t&&tn(t,o);return n&&e.push(n),e},[]);return Ct(e)?i[0]:i}nn.defaultProps=Kt,nn.setDefaultProps=function(e){Object.keys(e).forEach(function(t){Kt[t]=e[t]})},nn.currentInput=Bt,Object.assign({},Ee,{effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow)}}),nn.setDefaultProps({render:Xt});const on={mainTRC:2.4,get mainTRCencode(){return 1/this.mainTRC},sRco:.2126729,sGco:.7151522,sBco:.072175,normBG:.56,normTXT:.57,revTXT:.62,revBG:.65,blkThrs:.022,blkClmp:1.414,scaleBoW:1.14,scaleWoB:1.14,loBoWoffset:.027,loWoBoffset:.027,deltaYmin:5e-4,loClip:.1,mFactor:1.9468554433171,get mFactInv(){return 1/this.mFactor},mOffsetIn:.0387393816571401,mExpAdj:.283343396420869,get mExp(){return this.mExpAdj/this.blkClmp},mOffsetOut:.312865795870758};function sn(e,t=2){const n=[["Lc",100,200,300,400,500,600,700,800,900],[0,999,999,999,999,999,999,999,999,999],[10,999,999,999,999,999,999,999,999,999],[15,777,777,777,777,777,777,777,777,777],[20,777,777,777,777,777,777,777,777,777],[25,777,777,777,120,120,108,96,96,96],[30,777,777,120,108,108,96,72,72,72],[35,777,120,108,96,72,60,48,48,48],[40,120,108,96,60,48,42,32,32,32],[45,108,96,72,42,32,28,24,24,24],[50,96,72,60,32,28,24,21,21,21],[55,80,60,48,28,24,21,18,18,18],[60,72,48,42,24,21,18,16,16,18],[65,68,46,32,21.75,19,17,15,16,18],[70,64,44,28,19.5,18,16,14.5,16,18],[75,60,42,24,18,16,15,14,16,18],[80,56,38.25,23,17.25,15.81,14.81,14,16,18],[85,52,34.5,22,16.5,15.625,14.625,14,16,18],[90,48,32,21,16,15.5,14.5,14,16,18],[95,45,28,19.5,15.5,15,14,13.5,16,18],[100,42,26.5,18.5,15,14.5,13.5,13,16,18],[105,39,25,18,14.5,14,13,12,16,18],[110,36,24,18,14,13,12,11,16,18],[115,34.5,22.5,17.25,12.5,11.875,11.25,10.625,14.5,16.5],[120,33,21,16.5,11,10.75,10.5,10.25,13,15],[125,32,20,16,10,10,10,10,12,14]],o=[["∆Lc",100,200,300,400,500,600,700,800,900],[0,0,0,0,0,0,0,0,0,0],[10,0,0,0,0,0,0,0,0,0],[15,0,0,0,0,0,0,0,0,0],[20,0,0,0,0,0,0,0,0,0],[25,0,0,0,12,12,12,24,24,24],[30,0,0,12,12,36,36,24,24,24],[35,0,12,12,36,24,18,16,16,16],[40,12,12,24,18,16,14,8,8,8],[45,12,24,12,10,4,4,3,3,3],[50,16,12,12,4,4,3,3,3,3],[55,8,12,6,4,3,3,2,2,0],[60,4,2,10,2.25,2,1,1,0,0],[65,4,2,4,2.25,1,1,.5,0,0],[70,4,2,4,1.5,2,1,.5,0,0],[75,4,3.75,1,.75,.188,.188,0,0,0],[80,4,3.75,1,.75,.188,.188,0,0,0],[85,4,2.5,1,.5,.125,.125,0,0,0],[90,3,4,1.5,.5,.5,.5,.5,0,0],[95,3,1.5,1,.5,.5,.5,.5,0,0],[100,3,1.5,.5,.5,.5,.5,1,0,0],[105,3,1,0,.5,1,1,1,0,0],[110,1.5,1.5,.75,1.5,1.125,.75,.375,1.5,1.5],[115,1.5,1.5,.75,1.5,1.125,.75,.375,1.5,1.5],[120,1,1,.5,1,.75,.5,.25,1,1],[125,0,0,0,0,0,0,0,0,0]];let i=[e.toFixed(t),0,0,0,0,0,0,0,0,0];i.length;let s=777;const a=0==(e=Math.abs(e))?1:.2*e|0;let r=0,l=.2*(e-n[a][r]);for(r++;r<10;r++)s=n[a][r],i[r]=s>400?s:e<14.5?999:e<29.5?777:s>24?Math.round(s-o[a][r]*l):s-.5*(2*o[a][r]*l|0);return i}function an(e=[0,0,0]){function t(e){return Math.pow(e/255,on.mainTRC)}return on.sRco*t(e[0])+on.sGco*t(e[1])+on.sBco*t(e[2])}function rn(e=[0,0,0,1],t=[0,0,0],n=!0){e[3]=Math.max(Math.min(e[3],1),0);let o=1-e[3],i=[0,0,0,1,!0];for(let s=0;s<3;s++)i[s]=t[s]*o+e[s]*e[3],n&&(i[s]=Math.min(Math.round(i[s]),255));return i}function ln(e){const t=parseInt(e,10);if(!Number.isNaN(t))return t;return{lighter:100,normal:400,bold:700,bolder:900}[e]||400}function cn(e,t){const n=e;let o,i,s,a=1;if(n.startsWith("rgb")){const e=n.match(/[\d.]+/g).map(Number);[o,i,s,a]=4===e.length?e:[...e,1]}else{if(n.startsWith("color(rec2020")||n.startsWith("color(display-p3"))return"unsupported";const e=document.createElement("canvas").getContext("2d");e.fillStyle=n,e.fillRect(0,0,1,1);const t=e.getImageData(0,0,1,1);[o,i,s,a]=t.data,a=(a/255).toFixed(2)}return t&&t<1&&(a=(a*t).toFixed(2)),[o,i,s,Number(a)]}function dn(e){let t=e;for(;t&&1===t.nodeType;){if(n.Global.shadowDetection){const e=t.getRootNode();if(e instanceof ShadowRoot){let n=t;for(;n&&n!==e.host;){const e=getComputedStyle(n);if(e.backgroundImage&&"none"!==e.backgroundImage)return{type:"image",value:e.backgroundImage};const t=cn(e.backgroundColor);if(0!==t[3]&&"transparent"!==t)return t;n=n.parentElement}return dn(e.host)}}const e=getComputedStyle(t),o=e.backgroundImage;if("none"!==o)return{type:"image",value:o};const i=cn(e.backgroundColor);if(0!==i[3]&&"transparent"!==i){if(i[3]<1){let e=t.parentElement,n="rgba(255, 255, 255, 1)";for(;e&&1===e.nodeType;){if(n=getComputedStyle(e).backgroundColor,"rgba(0, 0, 0, 0)"!==n)break;"rgba(0, 0, 0, 0)"===n&&"HTML"===e.tagName&&(n="rgba(255, 255, 255, 1)"),e=e.parentElement}return rn(i,cn(n||"rgba(255, 255, 255, 1)"))}return i}if("HTML"===t.tagName)return[255,255,255];t=t.parentNode}return[255,255,255]}function pn(e){const t=e.slice(0,3).map(e=>{const t=e/255;return t<=.03928?t/12.92:((t+.055)/1.055)**2.4});return.2126*t[0]+.7152*t[1]+.0722*t[2]}function un(e,t){return(Math.max(e,t)+.05)/(Math.min(e,t)+.05)}function hn(e,t){return e.map((e,n)=>{if(n<3){const n=Math.ceil(e+(255-e)*t);return n>=255?255:n}return e})}function gn(e,t){return e.map((e,n)=>{if(n<3){const n=Math.floor(e*(1-t));return n<=0?0:n}return e})}function mn(e){const[t,n,o]=e.map(e=>Math.min(255,Math.max(0,e)));return`#${t.toString(16).padStart(2,"0")}${n.toString(16).padStart(2,"0")}${o.toString(16).padStart(2,"0")}`}function fn(e){if(n.Global.contrastAPCA)return Math.abs(Number(e.toFixed(1)));const t=Math.round(100*e)/100;return Number.isInteger(t)?`${t}:1`:`${t.toFixed(2)}:1`}function bn(e,t){let o;const i=rn(e,t).slice(0,4);if(n.Global.contrastAPCA){o=function(e,t,n=-1){const o=[0,1.1];if(isNaN(e)||isNaN(t)||Math.min(e,t)o[1])return 0;let i=0,s=0,a="BoW";return e=e>on.blkThrs?e:e+Math.pow(on.blkThrs-e,on.blkClmp),t=t>on.blkThrs?t:t+Math.pow(on.blkThrs-t,on.blkClmp),Math.abs(t-e)e?(i=(Math.pow(t,on.normBG)-Math.pow(e,on.normTXT))*on.scaleBoW,s=i-on.loClip?0:i+on.loWoBoffset),n<0?100*s:0==n?Math.round(100*Math.abs(s))+""+a+"":Number.isInteger(n)?(100*s).toFixed(n):0)}(an(i),an(t))}else{o=un(pn(i),pn(t))}return{ratio:o,blendedColor:i}}function yn(e,t,n,o){const i=an(t),s=(e,t)=>i<=.179?hn(e,t):gn(e,t);let a=e,r=bn(a,t),l=sn(r.ratio).slice(1);const c=Math.floor(n/100)-1,d=l[c],p=o{const n=bn(e,[0,0,0,1]),o=bn(e,[255,255,255,1]),i=Math.abs(n.ratio)>Math.abs(o.ratio),s=i?[0,0,0,1]:[255,255,255,1],a=sn(i?n.ratio:o.ratio).slice(1);return{suggestedColor:s,size:Math.ceil(a[Math.floor(t/100)-1])}})(t,n);if(u.size>o)return{color:mn(u.suggestedColor),size:u.size};let h=e,g=a,m=r.ratio,f=.16;let b=0;if(p)for(;f>=.01;)if(b+=1,a=s(a,f),r=bn(a,t),l=sn(r.ratio).slice(1),l[c]<=o&&(g=Math.abs(r.ratio)<=Math.abs(m)?a:g,m=r.ratio,g=a,a=h,f*=.5),h=a,50===b)return{color:mn(u.suggestedColor),size:u.size};return{color:mn(g),size:null}}function An(e){let o;const{color:i,background:s,fontWeight:a,fontSize:r,isLargeText:l,type:c}=e;if(i&&s&&"image"!==s.type&&"text"===c){const c=n.Global.contrastAPCA?yn(i,s,a,r):function(e,t,n,o=!1){let i;i=o?n?4.5:7:n?3:4.5;const s=pn(e),a=pn(t),r=s>a?un(1,a)>i:un(0,a)n?hn(e,t):gn(e,t);let c=e,d=c,p=un(s,a),u=p,h=e,g=.16,m=0;for(;g>=.01;){if(m+=1,m>100)return{color:null};c=l(c,g,r),p=un(pn(c),a),p>=i&&(d=p<=u?c:d,u=p,c=h,g*=.5),h=c}return{color:mn(d)}}(i,s,l,n.Global.contrastAAA);let d;const p='',u=`${c.color}`,h=`${c.size}px`;n.Global.contrastAPCA?c.color&&c.size?d=`${p} ${t._("CONTRAST_APCA")} ${u} ${h}`:c.color?d=`${p} ${t._("CONTRAST_COLOR")} ${u}`:c.size&&(d=`${p} ${t._("CONTRAST_SIZE")} ${h}`):d=null===c.color?`${p} ${t._("NO_SUGGESTION")}`:`${p} ${t._("CONTRAST_COLOR")} ${u}`,o=document.createElement("div"),o.id="advice";const g=e.opacity<1?` ${t.sprintf("CONTRAST_OPACITY")}`:d;o.innerHTML=g}return o}function En(e,t){const o=e?.querySelector("#contrast-tools");if(o){const{fontSize:o,fontWeight:i,type:s,isLargeText:a}=t,r=e.querySelector("#contrast"),l=e.querySelector("#contrast-preview"),c=e.querySelector("#fg-input"),d=e.querySelector("#bg-input"),p=e.querySelector("#value"),u=e.querySelector("#good"),h=e.querySelector("#apca-table"),g=(e,t)=>{e.forEach(e=>{e.classList.toggle("good-contrast",t),e.classList.toggle("error-badge",!t)})},m=()=>{const e=c.value,t=d.value;[c,d].forEach(e=>e.classList.remove("unknown")),l.style.color=e,l.style.backgroundColor=t,l.style.backgroundImage="none";const m=l.querySelectorAll("svg *");if(1===m.length){const{fill:t,stroke:n}=getComputedStyle(m[0]);m[0].style.opacity=1,"none"!==t&&(m[0].style.fill=e),"none"!==n&&(m[0].style.stroke=e)}const f=bn(cn(e),cn(t)),b=[p,r];if(n.Global.contrastAPCA){const e=f.ratio;p.textContent=fn(e);const t=sn(e).slice(1),n=e>=45&&t[0]>=0&&t[0]<=777;let a;switch(s){case"svg-error":case"svg-warning":u.hidden=!n,a=n,g(b,a);break;case"svg-text":u.hidden=!n,a=t.slice(1,7).some(e=>999!==e&&777!==e),g(b,a),function(e,t){const n=e;n.innerHTML="",n.hidden=!1;const o=document.createElement("div");o.classList.add("row");const i=t.slice(1,7);for(let e=0;e=e,g(b,a),u.hidden=!a;break}}}if(!n.Global.contrastAPCA){const e=f.ratio;p.textContent=fn(e);const t=n.Global.contrastAAA,o=e>=3,i=e>=(t?7:4.5),l=e>=(t?4.5:3);switch(s){case"svg-error":case"svg-text":case"svg-warning":u.hidden=!o,g(b,o);break;default:a?(g([p,r],l),u.hidden=!l):(g([p,r],i),u.hidden=!i)}}};c.addEventListener("input",m),d.addEventListener("input",m)}}function vn(e,t,n,o,i,s,a=!1){const{ratio:r,blendedColor:l}=bn(t,n),c=o>=24||o>=18.67&&i>=700;let d;if(a)d=c?r<4.5:r<7;else{d=c?r<3:r>1&&r<4.5}return d?{$el:e,ratio:fn(r),color:l,background:n,fontSize:o,fontWeight:i,isLargeText:c,opacity:s,textUnderline:getComputedStyle(e).textDecorationLine}:null}function _n(e,t,n,o,i,s){const{ratio:a,blendedColor:r}=bn(t,n);return o{const t=e.shadowRoot.querySelectorAll(".sa11y-btn");t&&i.push(...Array.from(t))});const s=nn(i,{interactive:!0,trigger:"mouseenter click",hideOnClick:!1,arrow:!0,offset:[0,8],delay:[0,400],maxWidth:375,theme:"sa11y-theme",placement:"auto-start",allowHTML:!0,role:"dialog",aria:{content:null,expanded:"auto"},appendTo:e,zIndex:2147483645,onShow(e){s.forEach(t=>{t!==e.popper&&t.hide()});const o=e.reference.getRootNode().host;o.setAttribute("data-sa11y-opened","");const i=e.popper.querySelector(".close-btn"),a=()=>{e.hide(),e.reference.focus()};i.addEventListener("click",a);const r=t=>{"Escape"===t.key&&(e.hide(),e.reference.focus())};if(e.popper.addEventListener("keydown",r),!e.popper.hasAttribute("contrast-tools-initialized")){const i=parseInt(o.getAttribute("data-sa11y-annotation"),10),s=window.sa11yCheckComplete.results.find(e=>e.id===i),{contrastDetails:a}=s||{};if(a){const o=e.popper.querySelector("[data-sa11y-contrast-details]"),i=function(e){const{sanitizedText:o,color:i,background:s,fontWeight:a,fontSize:r,ratio:l,textUnderline:c}=e,d=s&&"image"!==s.type,p=d?mn(s):"#000000",u=i?mn(i):"#000000",h=a?`font-weight:${a};`:"",g=r?`font-size:${r}px;`:"",m=c?`text-decoration:${c};`:"",f=i?"":'class="unknown"',b=s&&"image"!==s.type?"":'class="unknown"',y=i?"":`(${t._("UNKNOWN")})`,A=s?"":`(${t._("UNKNOWN")})`;let E;E=n.Global.contrastAPCA?0===Math.abs(l)?0:Math.abs(l)||t._("UNKNOWN"):l||t._("UNKNOWN");const v=document.createElement("div");return v.id="contrast-tools",v.innerHTML=`\n \n
                                            ${t._("CONTRAST")}
                                            \n
                                            ${E}
                                            \n \n \n
                                            ${o}
                                            \n
                                            \n \n \n
                                            `,v}(a);o.appendChild(i),En(e.popper,a);const s=An(a);s&&o.appendChild(s),e.popper.setAttribute("contrast-tools-initialized",!0)}}let l=!0;e.popper.addEventListener("mousedown",function t(n){l&&n.target.matches('input[type="color"]')&&(e.reference.click(),l=!1,e.popper.removeEventListener("mousedown",t))});const c=()=>{i.removeEventListener("click",a),e.popper.removeEventListener("keydown",r),e.popper.removeEventListener("hidden",c)};e.popper.addEventListener("hidden",c)},onTrigger(e,t){"click"===t.type&&setTimeout(()=>{e.popper.querySelector(".close-btn").focus(),function(e){const t=e.querySelectorAll('a[href]:not([disabled]), button:not([disabled]), input[type="color"]'),n=t[0],o=t[t.length-1];e.addEventListener("keydown",t=>{const i="Tab"===t.key||9===t.keyCode,s=e.getRootNode();i&&(t.shiftKey?s.activeElement===n&&(o.focus(),t.preventDefault()):s.activeElement===o&&(n.focus(),t.preventDefault()))})}(e.popper)},0)},onHide(e){e.popper.querySelector(".close-btn").removeEventListener("click",()=>{e.hide()});e.reference.getRootNode().host.removeAttribute("data-sa11y-opened")}})}}class xn extends HTMLElement{connectedCallback(){const e=e=>({allowHTML:!0,delay:[500,0],trigger:"mouseenter focusin",arrow:!0,placement:"top",theme:"sa11y-theme sa11y-panel",role:"tooltip",aria:{content:null,expanded:null},appendTo:e,zIndex:2147483645}),o=this.attachShadow({mode:"open"}),i=document.createElement("style");i.innerHTML=In+Y,o.appendChild(i);const s=-1!==navigator.userAgent.indexOf("Mac")?'Option + S':'Alt + S';if(nn(n.Panel.skipButton,{...e(o),offset:[0,8],maxWidth:200,content:`${t._("SKIP_TO_ISSUE")} »
                                            ${s}`}),this.object=nn(n.Panel.dismissButton,{offset:[0,8],maxWidth:200,...e(o)}),n.Global.developerPlugin){const i=n.Panel.developerItem.querySelector(".info-icon");i&&nn(i,{...e(o),triggerTarget:[n.Panel.developerItem],offset:[0,10],maxWidth:250,content:t._("DEVELOPER_DESC")})}if(n.Global.readabilityPlugin){const i=n.Panel.readabilityItem.querySelector(".info-icon");i&&nn(i,{...e(o),triggerTarget:[n.Panel.readabilityItem],offset:[0,10],maxWidth:250,content:t._("READABILITY_DESC")})}}}class kn extends HTMLElement{connectedCallback(){const e=this.attachShadow({mode:"open"}),t=document.createElement("style");t.innerHTML='.instance{display:block;position:relative}.instance-inline{display:inline-block;position:relative;text-align:end}button{border-radius:50%;box-shadow:0 0 16px 0 rgba(0,0,0,.31);cursor:pointer;display:block;padding:0;transition:all .2s ease-in-out;z-index:8888}button,button:after{height:36px;position:absolute;width:36px}button:after{content:"";left:-7px;padding:7px;top:-7px}.warning-btn{margin:20px}.error-btn,.good-btn{margin:10px}.error-btn-text,.good-btn-text,.warning-btn-text{margin:-30px 10px}.error-btn,.error-btn-text{background:50% 50% var(--sa11y-error-svg) no-repeat;background-color:var(--sa11y-error);background-size:22px;border:1px solid var(--sa11y-error)}.error-btn-text:focus,.error-btn-text:hover,.error-btn:focus,.error-btn:hover{background-color:var(--sa11y-error-hover)}.good-btn,.good-btn-text{background:50% 50% var(--sa11y-good) var(--sa11y-good-svg) no-repeat;background-color:var(--sa11y-good);background-size:20px;border:1px solid var(--sa11y-good)}.good-btn-text:focus,.good-btn-text:hover,.good-btn:focus,.good-btn:hover{background-color:var(--sa11y-good-hover)}.warning-btn,.warning-btn-text{background:50% 50% var(--sa11y-warning) var(--sa11y-warning-svg) no-repeat;background-color:var(--sa11y-warning);background-size:24px;border:1px solid var(--sa11y-warning);transform:scaleX(var(--sa11y-icon-direction))}.warning-btn-text:focus,.warning-btn-text:hover,.warning-btn:focus,.warning-btn:hover{background-color:var(--sa11y-warning-hover)}.sa11y-btn:active,.sa11y-btn:focus{box-shadow:0 0 0 5px var(--sa11y-focus-color);outline:0}@media screen and (forced-colors:active){.sa11y-btn{border:1px solid transparent!important;forced-color-adjust:none;outline:3px solid transparent!important}}'+Y,e.appendChild(t)}}const Nn=e=>{document.querySelectorAll("sa11y-annotation").forEach(t=>{const n=((e,t,n)=>{let o=e;for(;null!==o;){if(window.getComputedStyle(o).getPropertyValue(t)===n)return o;o=o.parentElement}return null})(t,"overflow","hidden");if(null!==n){if(e){if(e.split(",").flatMap(e=>[...document.querySelectorAll(e)]).includes(n))return}n.setAttribute("data-sa11y-overflow","")}})};class Sn extends HTMLElement{connectedCallback(){this.attachShadow({mode:"open"})}}class wn extends HTMLElement{connectedCallback(){const e=this.attachShadow({mode:"open"}),t=document.createElement("style");t.textContent="\n span.heading-label {\n background-color: #777678;\n background-image: linear-gradient(to bottom right, #b629ce, #16aec2);\n border-radius: 5px;\n border: 1px solid #36a5c3;\n color: white;\n display: inline-block;\n font-family: var(--sa11y-font-face);\n font-weight: 500;\n font-size: 18px;\n line-height: normal;\n letter-spacing: normal;\n margin: -5px 0 0 5px;\n padding: 3px;\n position: absolute;\n text-shadow: 1px 1px black;\n -webkit-text-fill-color: white;\n word-break: keep-all;\n z-index: 200;\n }\n @media screen and (forced-colors: active) {\n span.heading-label {\n border: 2px solid transparent;\n }\n }",e.appendChild(t)}}const Cn=(e,o)=>{if(0===e.offsetTop){const n=e.getRootNode().host,i=A(n,"display","none"),s=parseInt(n.getAttribute("data-sa11y-annotation"),10),a=w(o.find(e=>e.id===s));(e=>{const t=A(e.getRootNode().host,"display","none");if(null!==t){_(t.previousElementSibling||t.parentNode)}})(e);const r=e.getAttribute("data-tippy-content");if(T(`${t._("NOT_VISIBLE")}`,r,a),(()=>{const e=document.querySelector("sa11y-tooltips").shadowRoot.querySelector("button");null!==e&&e.click()})(),i){const e=i.previousElementSibling,{parentNode:t}=i;return e?E(e).top-150:E(t).top-150}}else I(),n.Panel.skipButton.focus();return E(e).top-150};let On=-1;const Pn=()=>{const e=v.getItem("sa11y-latest-dismissed");null!==e&&(On=parseInt(e,10)-1),v.removeItem("sa11y-latest-dismissed");const t=o("[data-sa11y-opened]","root");t[0]&&(On=parseInt(t[0].getAttribute("data-sa11y-position"),10))},Rn=e=>{Pn();const t=O.Annotations.Array;On>=t.length-1&&(On=-1);const o=t[On+1].shadowRoot.querySelector("button"),i=Cn(o,e);window.scrollTo({top:i,behavior:`${n.Global.scrollBehaviour}`}),0!==o.offsetTop&&(o.focus(),o.click()),On+=1};function Dn(e,t){O.Annotations.Array.length&&!n.Panel.skipButton.hasAttribute("disabled")&&(!e.altKey||"KeyS"!==e.code&&"Period"!==e.code?!e.altKey||"KeyW"!==e.code&&"Comma"!==e.code||(e.preventDefault(),(e=>{Pn();const t=O.Annotations.Array;On<=0&&(On=t.length);const o=O.Annotations.Array[On-1].shadowRoot.querySelector("button"),i=Cn(o,e);window.scrollTo({top:i,behavior:`${n.Global.scrollBehaviour}`}),0!==o.offsetTop&&(o.focus(),o.click()),On-=1,-1===On&&(On=O.Annotations.Array.length-1)})(t)):(e.preventDefault(),Rn(t)))}let Mn,Bn;function $n(e,o){return O.Found.Images.forEach(i=>{const s="noAria"===a(i)?i.getAttribute("alt"):a(i),l=i.closest(o.imageWithinLightbox?`a[href]:not(${o.imageWithinLightbox})`:"a[href]"),c=i.getAttribute("src")?i.getAttribute("src"):i.getAttribute("srcset"),p=l?m(l,n.Exclusions.LinkSpan).textContent:"",h=o.linkIgnoreStrings?p.replace(o.linkIgnoreStrings,""):p,g=l?b(h).length:0;if("true"!==i.getAttribute("aria-hidden")&&(1!==i.height||1!==i.width||!d(i))){if(l&&"true"===l.getAttribute("aria-hidden")){const n="-1"===l.getAttribute("tabindex");return void(o.checks.HIDDEN_FOCUSABLE&&!n&&e.push({element:i,type:o.checks.HIDDEN_FOCUSABLE.type||"error",content:t.sprintf(o.checks.HIDDEN_FOCUSABLE.content||"HIDDEN_FOCUSABLE"),dismiss:L(`IMGHIDDENFOCUSABLE${c}`),dismissAll:!!o.checks.HIDDEN_FOCUSABLE.dismissAll&&"LINK_HIDDEN_FOCUSABLE",developer:o.checks.HIDDEN_FOCUSABLE.developer||!0}))}if(null===s)if(l){const n=0===g?o.checks.MISSING_ALT_LINK:o.checks.MISSING_ALT_LINK_HAS_TEXT,s=0===g?"MISSING_ALT_LINK":"MISSING_ALT_LINK_HAS_TEXT";n&&e.push({element:i,type:n.type||"error",content:t.sprintf(n.content||s),dismiss:L(`${s+c+g}`),dismissAll:!!n.dismissAll&&s,developer:n.developer||!1})}else o.checks.MISSING_ALT&&e.push({element:i,type:o.checks.MISSING_ALT.type||"error",content:t.sprintf(o.checks.MISSING_ALT.content||"MISSING_ALT"),dismiss:L(`IMGNOALT${c}`),dismissAll:!!o.checks.MISSING_ALT.dismissAll&&"MISSING_ALT",developer:o.checks.MISSING_ALT.developer||!1});else{const n=b(u(s)),a=(e=>{const n=[null,null,null];[".avif",".png",".jpg",".jpeg",".webp",".gif",".tiff",".svg",".heif",".heic","http"].forEach(t=>{if(-1!==e.toLowerCase().indexOf(t.toLowerCase()))n[0]=t;else{const t=/\b\d{2,6}\s*x\s*\d{2,6}\b/,o=e.toLowerCase().match(t);o&&([n[0]]=o)}}),(o.susAltStopWords?o.susAltStopWords.split(",").map(e=>e.trim()):t._("SUS_ALT_STOPWORDS")).forEach(t=>{const o=e.toLowerCase().indexOf(t);o>-1&&o<6&&(n[1]=t)}),t._("PLACEHOLDER_ALT_STOPWORDS").forEach(t=>{e.length===t.length&&e.toLowerCase().indexOf(t)>=0&&(n[2]=t)});const{extraPlaceholderStopWords:i}=o;i.length&&i.split(",").map(e=>e.trim()).forEach(t=>{const o=e.toLowerCase().indexOf(t);o>-1&&o<6&&(n[2]=t)});return n})(n),d=i.getAttribute("aria-label")||i.getAttribute("aria-labelledby"),p=i.getAttribute("title"),h=""===s||" "===s,m=i.closest("figure"),f=m?.querySelector("figcaption"),A=f?f.textContent.trim():"",E=o.checks.LINK_IMAGE_LONG_ALT.maxLength||250,v=o.checks.IMAGE_ALT_TOO_LONG.maxLength||250;if(d&&""===n)return void(o.checks.MISSING_ALT&&e.push({element:i,type:o.checks.MISSING_ALT.type||"error",content:t.sprintf(o.checks.MISSING_ALT.content||"MISSING_ALT"),dismiss:L(`IMGNOALTARIA${c}`),dismissAll:!!o.checks.MISSING_ALT.dismissAll&&"MISSING_ALT",developer:o.checks.MISSING_ALT.developer||!1}));if(h){const n=o.checks.IMAGE_DECORATIVE_CAROUSEL.sources,s=n?i.closest(n):"";if(s){const n=s.querySelectorAll("img"),a=1===n.length?o.checks.IMAGE_DECORATIVE:o.checks.IMAGE_DECORATIVE_CAROUSEL,r=1===n.length?"IMAGE_DECORATIVE":"IMAGE_DECORATIVE_CAROUSEL";a&&e.push({element:i,type:a.type||"warning",content:t.sprintf(a.content||r),dismiss:L(r+c),dismissAll:!!a.dismissAll&&r,developer:a.developer||!1})}else if(l){const n=0===g?o.checks.LINK_IMAGE_NO_ALT_TEXT:o.checks.LINK_IMAGE_TEXT,s=0===g?"LINK_IMAGE_NO_ALT_TEXT":"LINK_IMAGE_TEXT";n&&e.push({element:i,type:n.type||(0===g?"error":"good"),content:t.sprintf(n.content||s),dismiss:L(`${s+c+g}`),dismissAll:!!n.dismissAll&&s,developer:n.developer||!1})}else if(m){const n=f&&A.length?o.checks.IMAGE_FIGURE_DECORATIVE:o.checks.IMAGE_DECORATIVE,s=f&&A.length?"IMAGE_FIGURE_DECORATIVE":"IMAGE_DECORATIVE";n&&e.push({element:i,type:n.type||"warning",content:t.sprintf(n.content||s),dismiss:L(`${s+c+A}`),dismissAll:!!n.dismissAll&&s,developer:n.developer||!1})}else o.checks.IMAGE_DECORATIVE&&e.push({element:i,type:o.checks.IMAGE_DECORATIVE.type||"warning",content:t.sprintf(o.checks.IMAGE_DECORATIVE.content||"IMAGE_DECORATIVE"),dismiss:L(`DECIMAGE${c}`),dismissAll:!!o.checks.IMAGE_DECORATIVE.dismissAll&&"IMAGE_DECORATIVE",developer:o.checks.IMAGE_DECORATIVE.developer||!1});return}if(null!==a[0]){const s=l?o.checks.LINK_ALT_FILE_EXT:o.checks.ALT_FILE_EXT,r=l?"LINK_ALT_FILE_EXT":"ALT_FILE_EXT";s&&e.push({element:i,type:s.type||"error",content:t.sprintf(s.content||r,a[0],n),dismiss:L(`${r+c+n}`),dismissAll:!!s.dismissAll&&r,developer:s.developer||!1})}else if(null!==a[2]){const s=l?o.checks.LINK_PLACEHOLDER_ALT:o.checks.ALT_PLACEHOLDER,a=l?"LINK_PLACEHOLDER_ALT":"ALT_PLACEHOLDER";s&&e.push({element:i,type:s.type||"error",content:t.sprintf(s.content||a,n),dismiss:L(`${a+c+n}`),dismissAll:!!s.dismissAll&&a,developer:s.developer||!1})}else if(null!==a[1]){const s=l?o.checks.LINK_SUS_ALT:o.checks.SUS_ALT,r=l?"LINK_SUS_ALT":"SUS_ALT";s&&e.push({element:i,type:s.type||"warning",content:t.sprintf(s.content||r,a[1],n),dismiss:L(`${r+c+n}`),dismissAll:!!s.dismissAll&&r,developer:s.developer||!1})}else if(l?s.length>E:s.length>v){const a=l?o.checks.LINK_IMAGE_LONG_ALT:o.checks.IMAGE_ALT_TOO_LONG,r=l?"LINK_IMAGE_LONG_ALT":"IMAGE_ALT_TOO_LONG",d=y(n,600);a&&e.push({element:i,type:a.type||"warning",content:t.sprintf(a.content||r,s.length,d),dismiss:L(`${r+c+n}`),dismissAll:!!a.dismissAll&&r,developer:a.developer||!1})}else if(l){const s=0===g?o.checks.LINK_IMAGE_ALT:o.checks.LINK_IMAGE_ALT_AND_TEXT,a=0===g?"LINK_IMAGE_ALT":"LINK_IMAGE_ALT_AND_TEXT";if(s){const o=u(b(r(l))),d=0===g?t.sprintf("LINK_IMAGE_ALT",n):`${t.sprintf("LINK_IMAGE_ALT_AND_TEXT",n,o)} ${t.sprintf("ACC_NAME_TIP")}`;e.push({element:i,type:s.type||"warning",content:s.content?t.sprintf(s.content,n,o):d,dismiss:L(`${a+c+n}`),dismissAll:!!s.dismissAll&&a,developer:s.developer||!1})}}else if(m){!!f&&A.toLowerCase()===n.trim().toLowerCase()?o.checks.IMAGE_FIGURE_DUPLICATE_ALT&&e.push({element:i,type:o.checks.IMAGE_FIGURE_DUPLICATE_ALT.type||"warning",content:t.sprintf(o.checks.IMAGE_FIGURE_DUPLICATE_ALT.content||"IMAGE_FIGURE_DUPLICATE_ALT",n),dismiss:L(`FIGDUPLICATE${c}`),dismissAll:!!o.checks.IMAGE_FIGURE_DUPLICATE_ALT.dismissAll&&"IMAGE_FIGURE_DUPLICATE_ALT",developer:o.checks.IMAGE_FIGURE_DUPLICATE_ALT.developer||!1}):o.checks.IMAGE_PASS&&e.push({element:i,type:o.checks.IMAGE_PASS.type||"good",content:t.sprintf(o.checks.IMAGE_PASS.content||"IMAGE_PASS",n),dismiss:L(`FIGIMGPASS${c+n}`),dismissAll:!!o.checks.IMAGE_PASS.dismissAll&&"IMAGE_PASS",developer:o.checks.IMAGE_PASS.developer||!1})}else o.checks.IMAGE_PASS&&(i.closest('button, [role="button"]')||e.push({element:i,type:o.checks.IMAGE_PASS.type||"good",content:t.sprintf(o.checks.IMAGE_PASS.content||"IMAGE_PASS",n),dismiss:L(`IMAGEPASS${c+n}`),dismissAll:!!o.checks.IMAGE_PASS.dismissAll&&"IMAGE_PASS",developer:o.checks.IMAGE_PASS.developer||!1}));p?.toLowerCase()===s.toLowerCase()&&o.checks.DUPLICATE_TITLE&&e.push({element:i,type:o.checks.DUPLICATE_TITLE.type||"warning",content:t.sprintf(o.checks.DUPLICATE_TITLE.content||"DUPLICATE_TITLE"),inline:!0,dismiss:L(`ALTDUPLICATETITLE${n}`),dismissAll:!!o.checks.DUPLICATE_TITLE.dismissAll&&"DUPLICATE_TITLE",developer:o.checks.DUPLICATE_TITLE.developer||!1})}}}),e}function Gn(e,o){const i=o.linkStopWords?[...t._("PARTIAL_ALT_STOPWORDS"),...o.linkStopWords.split(",").map(e=>e.trim())]:t._("PARTIAL_ALT_STOPWORDS"),s=e=>e.replace(/[^\w\s./]/g,"").replace(/\s+/g," ").trim(),a=(e,t)=>{const n=e.replace(/\./g,"").toLowerCase();let o=null;return t.forEach(e=>{n.length===e.length&&n.indexOf(e.toLowerCase())>=0&&(o=e)}),o},l={};return O.Found.Links.forEach(c=>{const d=function(e){let t=e.getAttribute("href");return t=b(t).toLowerCase(),t.endsWith("/")&&(t=t.slice(0,-1)),t=t.replace(/^https?:\/\/(www\.)?/,""),t=t.replace(/\.(html|php|htm|asp|aspx)$/i,""),t}(c),p=r(c,n.Exclusions.LinkSpan),h=b(o.linkIgnoreStrings?p.replace(o.linkIgnoreStrings,""):p),g=(e=>{const n=[null,null,null,null];return n[0]=a(e,i),t._("CLICK").forEach(t=>(new RegExp(`\\b${t}\\b`,"i").test(e)&&(n[1]=t),!1)),["doi.org/","dl.acm.org/","link.springer.com/","pubmed.ncbi.nlm.nih.gov/","scholar.google.com/","ieeexplore.ieee.org/","researchgate.net/publication/","sciencedirect.com/science/article/"].forEach(t=>(e.toLowerCase().indexOf(t)>=0&&(n[2]=t),!1)),["www.","http"].forEach(t=>(e.toLowerCase().startsWith(t)&&(n[3]=t),!1)),[".edu/",".com/",".net/",".org/",".us/",".ca/",".de/",".icu/",".uk/",".ru/",".info/",".top/",".xyz/",".tk/",".cn/",".ga/",".cf/",".nl/",".io/",".fr/",".pe/",".nz/",".pt/",".es/",".pl/",".ua/"].forEach(t=>(e.toLowerCase().indexOf(t)>=0&&(n[3]=t),!1)),n})(s(h)),y=1===h.length&&/[^a-zA-Z0-9]/g.test(h),A=h.match(/([<>↣↳←→↓«»↴]+)/),E=A?A[1]:null,v=c.getAttribute("title"),_="true"===c.getAttribute("aria-hidden"),I="-1"===c.getAttribute("tabindex"),T=c.querySelector(":scope [aria-labelledby], :scope [aria-label]")||c.getAttribute("aria-labelledby")||c.getAttribute("aria-label"),x=c.querySelector(":scope [aria-labelledby]")||c.getAttribute("aria-labelledby"),k=t._("NEW_WINDOW_PHRASES").some(e=>h.toLowerCase().includes(e)||f(c).toLowerCase().includes(e)),N=t._("CLICK").some(e=>new RegExp(`\\b${e}\\b`,"i").test(c.textContent)),S=["pdf","doc","docx","word","mp3","ppt","text","pptx","txt","exe","dmg","rtf","windows","macos","csv","xls","xlsx","mp4","mov","avi","zip"].concat(t._("FILE_TYPE_PHRASES")).some(e=>h.toLowerCase().includes(e)||f(c).toLowerCase().includes(e)),w=c.matches("\n a[href$='.pdf'],\n a[href$='.doc'],\n a[href$='.docx'],\n a[href$='.zip'],\n a[href$='.mp3'],\n a[href$='.txt'],\n a[href$='.exe'],\n a[href$='.dmg'],\n a[href$='.rtf'],\n a[href$='.pptx'],\n a[href$='.ppt'],\n a[href$='.xls'],\n a[href$='.xlsx'],\n a[href$='.csv'],\n a[href$='.mp4'],\n a[href$='.mov'],\n a[href$='.avi']\n "),O=h.replace(/'|"|-|\.|\s+/g,"").toLowerCase();if(!c.querySelectorAll("img").length){if(_)I||o.checks.HIDDEN_FOCUSABLE&&e.push({element:c,type:o.checks.HIDDEN_FOCUSABLE.type||"error",content:t.sprintf(o.checks.HIDDEN_FOCUSABLE.content||"HIDDEN_FOCUSABLE"),inline:!0,position:"afterend",dismiss:L(`LINKHIDDENFOCUS${d+O}`),dismissAll:!!o.checks.HIDDEN_FOCUSABLE.dismissAll&&"LINK_HIDDEN_FOCUSABLE",developer:o.checks.HIDDEN_FOCUSABLE.developer||!0});else if(!d&&""!==d||0!==h.length)if(null!==g[0])o.checks.LINK_STOPWORD&&e.push({element:c,type:o.checks.LINK_STOPWORD.type||"error",content:o.checks.LINK_STOPWORD.content?t.sprintf(o.checks.LINK_STOPWORD.content,g[0]):t.sprintf("LINK_STOPWORD",g[0])+t.sprintf("LINK_TIP"),inline:!0,position:"afterend",dismiss:L(`LINKSTOPWORD${d+O}`),dismissAll:!!o.checks.LINK_STOPWORD.dismissAll&&"LINK_STOPWORD",developer:o.checks.LINK_STOPWORD.developer||!1});else if(null!==g[2])h.length>8&&o.checks.LINK_DOI&&e.push({element:c,type:o.checks.LINK_DOI.type||"warning",content:t.sprintf(o.checks.LINK_DOI.content||"LINK_DOI"),inline:!0,dismiss:L(`LINKDOI${d+O}`),dismissAll:!!o.checks.LINK_DOI.dismissAll&&"LINK_DOI",developer:o.checks.LINK_DOI.developer||!1});else if(null!==g[3])h.length>(o.checks.LINK_URL.maxLength||40)&&o.checks.LINK_URL&&e.push({element:c,type:o.checks.LINK_URL.type||"warning",content:o.checks.LINK_URL.content?t.sprintf(o.checks.LINK_URL.content):t.sprintf("LINK_URL")+t.sprintf("LINK_TIP"),inline:!0,dismiss:L(`LINKURLNAME${d+O}`),dismissAll:!!o.checks.LINK_URL.dismissAll&&"LINK_URL",developer:o.checks.LINK_URL.developer||!1});else if(T){const r=u(h),l=m(c,n.Exclusions.LinkSpan),p=o.linkIgnoreStrings?f(l).replace(o.linkIgnoreStrings,""):f(l),g=s(p),b=a(g,i);o.checks.LINK_STOPWORD_ARIA&&null!==b?e.push({element:c,type:o.checks.LINK_STOPWORD_ARIA.type||"warning",content:o.checks.LINK_STOPWORD_ARIA.content?t.sprintf(o.checks.LINK_STOPWORD_ARIA.content,b,r):t.sprintf("LINK_STOPWORD_ARIA",b,r)+t.sprintf("LINK_TIP"),inline:!0,dismiss:L(`LINKSTOPWORDARIA${d+O}`),dismissAll:!!o.checks.LINK_STOPWORD_ARIA.dismissAll&&" LINK_STOPWORD_ARIA",developer:o.checks.LINK_STOPWORD_ARIA.developer||!0}):o.checks.LINK_LABEL&&e.push({element:c,type:o.checks.LINK_LABEL.type||"good",content:o.checks.LINK_LABEL.content?t.sprintf(o.checks.LINK_LABEL.content,r):`${t.sprintf("ACC_NAME",r)} ${t.sprintf("ACC_NAME_TIP")}`,inline:!0,position:"afterend",dismiss:L(`LINKGOOD${d+O}`),dismissAll:!!o.checks.LINK_LABEL.dismissAll&&"LINK_LABEL",developer:o.checks.LINK_LABEL.developer||!1});const y=C(c);o.checks.LABEL_IN_NAME&&y&&0!==c.textContent.length&&e.push({element:c,type:o.checks.LABEL_IN_NAME.type||"warning",content:t.sprintf(o.checks.LABEL_IN_NAME.content||"LABEL_IN_NAME",r),inline:!0,position:"afterend",dismiss:L(`LINKLABELNAME${d+O}`),dismissAll:!!o.checks.LABEL_IN_NAME.dismissAll&&"BTN_LABEL_IN_NAME",developer:o.checks.LABEL_IN_NAME.developer||!0})}else E?o.checks.LINK_SYMBOLS&&e.push({element:c,type:o.checks.LINK_SYMBOLS.type||"warning",content:t.sprintf(o.checks.LINK_SYMBOLS.content||"LINK_SYMBOLS",E),inline:!0,dismiss:L(`LINKSYMBOL${d+O}`),dismissAll:!!o.checks.LINK_SYMBOLS.dismissAll&&"LINK_SYMBOLS",developer:o.checks.LINK_SYMBOLS.developer||!1}):y&&o.checks.LINK_EMPTY&&e.push({element:c,type:o.checks.LINK_EMPTY.type||"error",content:t.sprintf(o.checks.LINK_EMPTY.content||"LINK_EMPTY"),inline:!0,position:"afterend",dismiss:L(`LINKCHAR${d}`),dismissAll:!!o.checks.LINK_EMPTY.dismissAll&&"LINK_EMPTY",developer:o.checks.LINK_EMPTY.developer||!1});else x?o.checks.LINK_EMPTY_LABELLEDBY&&e.push({element:c,type:o.checks.LINK_EMPTY_LABELLEDBY.type||"error",content:t.sprintf(o.checks.LINK_EMPTY_LABELLEDBY.content||"LINK_EMPTY_LABELLEDBY"),inline:!0,position:"afterend",dismiss:L(`LINKEMPTYLABELLEDBY${d}`),dismissAll:!!o.checks.LINK_EMPTY_LABELLEDBY.dismissAll&&"LINK_EMPTY_LABELLEDBY",developer:o.checks.LINK_EMPTY_LABELLEDBY.developer||!0}):c.children.length?o.checks.LINK_EMPTY_NO_LABEL&&e.push({element:c,type:o.checks.LINK_EMPTY_NO_LABEL.type||"error",content:t.sprintf(o.checks.LINK_EMPTY_NO_LABEL.content||"LINK_EMPTY_NO_LABEL"),inline:!0,position:"afterend",dismiss:L(`LINKEMPTYNOLABEL${d}`),dismissAll:!!o.checks.LINK_EMPTY_NO_LABEL.dismissAll&&"LINK_EMPTY_NO_LABEL",developer:o.checks.LINK_EMPTY_NO_LABEL.developer||!1}):o.checks.LINK_EMPTY&&e.push({element:c,type:o.checks.LINK_EMPTY.type||"error",content:t.sprintf(o.checks.LINK_EMPTY.content||"LINK_EMPTY"),inline:!0,position:"afterend",dismiss:L(`LINKEMPTY${d}`),dismissAll:!!o.checks.LINK_EMPTY.dismissAll&&"LINK_EMPTY",developer:o.checks.LINK_EMPTY.developer||!1});(null!==g[1]||N)&&o.checks.LINK_CLICK_HERE&&e.push({element:c,type:o.checks.LINK_CLICK_HERE.type||"warning",content:o.checks.LINK_CLICK_HERE.content?t.sprintf(o.checks.LINK_CLICK_HERE.content):t.sprintf("LINK_CLICK_HERE")+t.sprintf("LINK_TIP"),inline:!0,dismiss:L(`LINKCLICKHERE${d+O}`),dismissAll:!!o.checks.LINK_CLICK_HERE.dismissAll&&"LINK_CLICK_HERE",developer:o.checks.LINK_CLICK_HERE.developer||!1}),0!==f(c).length&&v?.toLowerCase()===h.toLowerCase()&&o.checks.DUPLICATE_TITLE&&e.push({element:c,type:o.checks.DUPLICATE_TITLE.type||"warning",content:t.sprintf(o.checks.DUPLICATE_TITLE.content||"DUPLICATE_TITLE"),inline:!0,dismiss:L(`LINKDUPLICATETITLE${d+O}`),dismissAll:!!o.checks.DUPLICATE_TITLE.dismissAll&&"DUPLICATE_TITLE",developer:o.checks.DUPLICATE_TITLE.developer||!1})}if(o.linksAdvancedPlugin&&0!==O.length){if(l[O]&&!l[d]){if(o.checks.LINK_IDENTICAL_NAME){const n=u(h);e.push({element:c,type:o.checks.LINK_IDENTICAL_NAME.type||"warning",content:o.checks.LINK_IDENTICAL_NAME.content?t.sprintf(o.checks.LINK_IDENTICAL_NAME.content,n):`${t.sprintf("LINK_IDENTICAL_NAME",n)} ${t.sprintf("ACC_NAME_TIP")}`,inline:!0,dismiss:L(`LINKSEEN${d+O}`),dismissAll:!!o.checks.LINK_IDENTICAL_NAME.dismissAll&&"LINK_IDENTICAL_NAME",developer:o.checks.LINK_IDENTICAL_NAME.developer||!1})}}else l[O]=!0,l[d]=!0;"_blank"!==c.getAttribute("target")?.toLowerCase()||w||k||o.checks.LINK_NEW_TAB&&e.push({element:c,type:o.checks.LINK_NEW_TAB.type||"warning",content:t.sprintf(o.checks.LINK_NEW_TAB.content||"LINK_NEW_TAB"),inline:!0,dismiss:L(`LINKNEWTAB${d+O}`),dismissAll:!!o.checks.LINK_NEW_TAB.dismissAll&&"LINK_NEW_TAB",developer:o.checks.LINK_NEW_TAB.developer||!1}),w&&!S&&o.checks.LINK_FILE_EXT&&e.push({element:c,type:o.checks.LINK_FILE_EXT.type||"warning",content:t.sprintf(o.checks.LINK_FILE_EXT.content||"LINK_FILE_EXT"),inline:!0,dismiss:L(`LINKEXT${d+O}`),dismissAll:!!o.checks.LINK_FILE_EXT.dismissAll&&"LINK_FILE_EXT",developer:o.checks.LINK_FILE_EXT.developer||!1})}}),e}function Un(e,o){if(o.checks.QA_BAD_LINK&&O.Found.CustomErrorLinks.forEach(n=>{e.push({element:n,type:o.checks.QA_BAD_LINK.type||"error",content:t.sprintf(o.checks.QA_BAD_LINK.content||"QA_BAD_LINK",n),inline:!0,dismiss:L(n.tagName+n.textContent),dismissAll:!!o.checks.QA_BAD_LINK.dismissAll&&"QA_BAD_LINK",developer:o.checks.QA_BAD_LINK.developer||!1})}),o.checks.QA_STRONG_ITALICS&&O.Found.StrongItalics.forEach(n=>{const i=f(n);0!==i.length&&i.length>400&&e.push({element:n.parentNode,type:o.checks.QA_STRONG_ITALICS.type||"warning",content:t.sprintf(o.checks.QA_STRONG_ITALICS.content||"QA_STRONG_ITALICS"),dismiss:L(n.tagName+n.textContent),dismissAll:!!o.checks.QA_STRONG_ITALICS.dismissAll&&"QA_STRONG_ITALICS",developer:o.checks.QA_STRONG_ITALICS.developer||!1})}),O.Found.Links.forEach(i=>{if(i.hasAttribute("href")){const s=i.getAttribute("href"),a=i.matches(n.Global.documentSources),r=i.matches('a[href$=".pdf"], a[href*=".pdf?"]');if(o.checks.QA_IN_PAGE_LINK){const n="button"===i.getAttribute("role")||i.hasAttribute("aria-haspopup")||i.hasAttribute("aria-expanded")||i.hasAttribute("onclick"),a=0!==f(i).length;if((s.startsWith("#")||""===s)&&!n&&a){const n=s.substring(1),a=i.getAttribute("aria-controls");document.getElementById(n)||document.getElementById(decodeURIComponent(n))||document.getElementById(encodeURIComponent(n))||document.getElementById(a)||document.querySelector(`a[name="${n}"]`)||e.push({element:i,type:o.checks.QA_IN_PAGE_LINK.type||"error",content:t.sprintf(o.checks.QA_IN_PAGE_LINK.content||"QA_IN_PAGE_LINK"),inline:!0,dismiss:L(`QAINPAGE${s}`),dismissAll:!!o.checks.QA_IN_PAGE_LINK.dismissAll&&"QA_IN_PAGE_LINK",developer:o.checks.QA_IN_PAGE_LINK.developer||!1})}}o.checks.QA_DOCUMENT&&a?e.push({element:i,type:o.checks.QA_DOCUMENT.type||"warning",content:t.sprintf(o.checks.QA_DOCUMENT.content||"QA_DOCUMENT"),inline:!0,dismiss:L(`DOC${s}`),dismissAll:!!o.checks.QA_DOCUMENT.dismissAll&&"QA_DOCUMENT",developer:o.checks.QA_DOCUMENT.developer||!1}):o.checks.QA_PDF&&r&&e.push({element:i,type:o.checks.QA_PDF.type||"warning",content:t.sprintf(o.checks.QA_PDF.content||"QA_PDF"),inline:!0,dismiss:L(`PDF${s}`),dismissAll:!!o.checks.QA_PDF.dismissAll&&"QA_PDF",developer:o.checks.QA_PDF.developer||!1})}}),o.checks.QA_BLOCKQUOTE&&O.Found.Blockquotes.forEach(n=>{const i=f(n);if(0!==i.length&&i.length<25){const s=u(i);e.push({element:n,type:o.checks.QA_BLOCKQUOTE.type||"warning",content:t.sprintf(o.checks.QA_BLOCKQUOTE.content||"QA_BLOCKQUOTE",s),dismiss:L(`BLOCKQUOTE${s}`),dismissAll:!!o.checks.QA_BLOCKQUOTE.dismissAll&&"QA_BLOCKQUOTE",developer:o.checks.QA_BLOCKQUOTE.developer||!1})}}),O.Found.Tables.forEach(n=>{if(!1===d(n)){const i=n.querySelectorAll("th"),s=n.querySelectorAll("h1, h2, h3, h4, h5, h6"),a=L(`TABLE${n.textContent}`);o.checks.TABLES_MISSING_HEADINGS&&0===i.length&&e.push({element:n,type:o.checks.TABLES_MISSING_HEADINGS.type||"error",content:t.sprintf(o.checks.TABLES_MISSING_HEADINGS.content||"TABLES_MISSING_HEADINGS"),dismiss:a,dismissAll:!!o.checks.TABLES_MISSING_HEADINGS.dismissAll&&"TABLES_MISSING_HEADINGS",developer:o.checks.TABLES_MISSING_HEADINGS.developer||!1}),o.checks.TABLES_SEMANTIC_HEADING&&s.length>0&&s.forEach(n=>{e.push({element:n,type:o.checks.TABLES_SEMANTIC_HEADING.type||"error",content:t.sprintf(o.checks.TABLES_SEMANTIC_HEADING.content||"TABLES_SEMANTIC_HEADING"),dismiss:a,dismissAll:!!o.checks.TABLES_SEMANTIC_HEADING.dismissAll&&"TABLES_SEMANTIC_HEADING",developer:o.checks.TABLES_SEMANTIC_HEADING.developer||!1})}),i.forEach(n=>{o.checks.TABLES_EMPTY_HEADING&&0===n.textContent.trim().length&&e.push({element:n,type:o.checks.TABLES_EMPTY_HEADING.type||"error",content:t.sprintf(o.checks.TABLES_EMPTY_HEADING.content||"TABLES_EMPTY_HEADING"),position:"afterbegin",dismiss:a,dismissAll:!!o.checks.TABLES_EMPTY_HEADING.dismissAll&&"TABLES_EMPTY_HEADING",developer:o.checks.TABLES_EMPTY_HEADING.developer||!1})})}}),o.checks.QA_FAKE_HEADING){const n=(n,i)=>{e.push({element:n,type:o.checks.QA_FAKE_HEADING.type||"warning",content:t.sprintf(o.checks.QA_FAKE_HEADING.content||"QA_FAKE_HEADING",i),dismiss:L(`BOLD${i}`),inline:!0,dismissAll:!!o.checks.QA_FAKE_HEADING.dismissAll&&"QA_FAKE_HEADING",developer:o.checks.QA_FAKE_HEADING.developer||!1})},i=e=>{const t=e.previousElementSibling;if(!t)return!1;return["H1","H2","H3","H4","H5","H6"].includes(t.tagName)},s='h1, h2, h3, h4, h5, h6, [role="heading"][aria-level], blockquote, table',a=e=>{const t=getComputedStyle(e).fontSize.replace("px",""),o=f(e),a=null===o.match(/[.;?!"]/),r=o.length>=4&&o.length<=120;if(t>=24&&!e.closest(s)&&r&&a&&!i(e)){const t=u(o);n(e,t)}},r=e=>{if(/^(|)/i.test(e.innerHTML.trim())&&!e.closest(s)){const t=e.querySelector("strong, b"),o=f(t),i=null===o.match(/[.:;?!"']/);if(o.length>=3&&o.length<=120&&i){const i=m(e,["strong","b"]).textContent.trim().length;if(0!==i&&i<=250)return;const s=u(o);n(t,s)}}};O.Found.Paragraphs.forEach(e=>{a(e),r(e)})}if(o.checks.QA_FAKE_LIST){const n=new RegExp(/(([023456789][\d\s])|(1\d))/,""),i=new RegExp(/(^[aA1αаΑ]|[^\p{Alphabetic}\s])[-\s.)]/,"u"),s=new RegExp(/\p{Extended_Pictographic}/,"u"),a=["a","A","α","Α","а","А","1"],r=/[([{#]/,l={2:"1",b:"a",B:"A","β":"α","Β":"Α","б":"а","Б":"А"},c=e=>e.replace(/^b|^B|^б|^Б|^β|^В|^2/,e=>l[e]);let d="",p="",u=!1;O.Found.Paragraphs.forEach((l,h)=>{let g=!1,m=!1;p=p||f(l).replace("(","");const b=p.substring(0,2),y=b.match(i),A=b.match(n),E=b.match(s),v=r.test(b.charAt(0));if(b.length>0&&b!==d&&!A&&(y||E||v)){const n=O.Found.Paragraphs[h+1];if(n){if(g=f(n).replace("(","").substring(0,2),a.includes(g?.toLowerCase().trim()))return;const e=c(g);y?"A "!==b&&b===e&&(m=!0):E&&!u&&e.match(s)&&(m=!0,u=!0)}if(!m){let e=l?.querySelector("br")?.nextSibling?.nodeValue;if(e){e=e.replace(/<\/?[^>]+(>|$)/g,"").trim().substring(0,2);(r.test(e.charAt(0))||b===c(e)||!u&&e.match(s))&&(m=!0)}}m?(e.push({element:l,type:o.checks.QA_FAKE_LIST.type||"warning",content:t.sprintf(o.checks.QA_FAKE_LIST.content||"QA_FAKE_LIST",b),dismiss:L(`LIST${l.textContent}`),dismissAll:!!o.checks.QA_FAKE_LIST.dismissAll&&"QA_FAKE_LIST",developer:o.checks.QA_FAKE_LIST.developer||!1}),d=b):d=""}p=g?"":g})}if(o.checks.QA_UPPERCASE){const n=n=>{let i="";"LI"===n.tagName?n.childNodes.forEach(e=>{3===e.nodeType&&(i+=e.textContent)}):i=f(n);const s=i.match(/([A-Z]{2,}[ ])([A-Z]{2,}[ ])([A-Z]{2,}[ ])([A-Z]{2,})/g);s&&s[0].length>10&&e.push({element:n,type:o.checks.QA_UPPERCASE.type||"warning",content:t.sprintf(o.checks.QA_UPPERCASE.content||"QA_UPPERCASE"),dismiss:L(`UPPERCASE${i}`),dismissAll:!!o.checks.QA_UPPERCASE.dismissAll&&"QA_UPPERCASE",developer:o.checks.QA_UPPERCASE.developer||!1})};O.Found.Paragraphs.forEach(e=>n(e)),O.Found.Headings.forEach(e=>n(e)),O.Found.Lists.forEach(e=>n(e)),O.Found.Blockquotes.forEach(e=>n(e))}const i=n=>{const i=getComputedStyle(n),{textDecorationLine:s,textAlign:a,fontSize:r}=i;!o.checks.QA_UNDERLINE||"underline"!==s||n.closest("[onclick]")||n.closest("a[href]")||n.closest("ABBR")||(n=>{e.push({element:n,type:o.checks.QA_UNDERLINE.type||"warning",content:t.sprintf(o.checks.QA_UNDERLINE.content||"QA_UNDERLINE"),inline:!0,dismiss:L(`UNDERLINE${n.textContent}`),dismissAll:!!o.checks.QA_UNDERLINE.dismissAll&&"QA_UNDERLINE",developer:o.checks.QA_UNDERLINE.developer||!1})})(n);const l=o.checks.QA_SMALL_TEXT.fontSize||10,c=parseFloat(r),d=!((n.parentElement?parseFloat(getComputedStyle(n.parentElement).fontSize):null)===c)&&c>1&&c<=l;o.checks.QA_SMALL_TEXT&&d&&(n=>{e.push({element:n,type:o.checks.QA_SMALL_TEXT.type||"warning",content:t.sprintf(o.checks.QA_SMALL_TEXT.content||"QA_SMALL_TEXT"),dismiss:L(`SMALL${n.textContent}`),dismissAll:!!o.checks.QA_SMALL_TEXT.dismissAll&&"QA_SMALL_TEXT",developer:o.checks.QA_SMALL_TEXT.developer||!1})})(n);const p=(n.parentElement?getComputedStyle(n.parentElement).textAlign:null)===a;o.checks.QA_JUSTIFY&&"justify"===a&&!p&&(n=>{e.push({element:n,type:o.checks.QA_JUSTIFY.type||"warning",content:t.sprintf(o.checks.QA_JUSTIFY.content||"QA_JUSTIFY"),dismiss:L(`JUSTIFIED${n.textContent}`),dismissAll:!!o.checks.QA_JUSTIFY.dismissAll&&"QA_JUSTIFY",developer:o.checks.QA_JUSTIFY.developer||!1})})(n)};if(o.checks.QA_UNDERLINE||o.checks.QA_JUSTIFY||o.checks.QA_SMALL_TEXT)for(let e=0;e3===e.nodeType).map(e=>e.textContent).join("").trim().length&&i(t)}return o.checks.QA_SUBSCRIPT&&O.Found.Subscripts.forEach(n=>{const i=f(n);i.length>=80&&e.push({element:n,type:o.checks.QA_SUBSCRIPT.type||"warning",content:t.sprintf(o.checks.QA_SUBSCRIPT.content||"QA_SUBSCRIPT"),inline:!0,dismiss:L(n.tagName+i),dismissAll:!!o.checks.QA_SUBSCRIPT.dismissAll&&"QA_SUBSCRIPT",developer:o.checks.QA_SUBSCRIPT.developer||!1})}),o.checks.QA_NESTED_COMPONENTS&&O.Found.NestedComponents.forEach(n=>{const i=o.checks.QA_NESTED_COMPONENTS.sources||'[role="tablist"], details';n.querySelector(i)&&e.push({element:n,type:o.checks.QA_NESTED_COMPONENTS.type||"warning",content:t.sprintf(o.checks.QA_NESTED_COMPONENTS.content||"QA_NESTED_COMPONENTS"),dismiss:L(`NESTED${n.textContent}`),dismissAll:!!o.checks.QA_NESTED_COMPONENTS.dismissAll&&"QA_NESTED_COMPONENTS",developer:o.checks.QA_NESTED_COMPONENTS.developer||!1})}),e}class Hn{constructor(i){const s={...e,...i,checks:{...e.checks,...i.checks}};this.initialize=()=>{var e;(()=>{const{doNotRun:e}=s;return e.trim().length>0&&document.querySelector(e)})()||(customElements.define("sa11y-heading-label",wn),customElements.define("sa11y-heading-anchor",Sn),customElements.define("sa11y-annotation",kn),customElements.define("sa11y-tooltips",Tn),customElements.define("sa11y-panel-tooltips",xn),customElements.define("sa11y-control-panel",Q),customElements.define("sa11y-console-error",z),n.initializeGlobal(s),n.initializeReadability(s),n.initializeExclusions(s),s.developerChecksOnByDefault&&(null===v.getItem("sa11y-developer")||s.checkAllHideToggles)&&v.setItem("sa11y-developer","On"),e=()=>{if(s.headless)this.checkAll(),v.removeItem("sa11y-dismissed");else{const i=v.getItem("sa11y-position"),{panelPosition:a}=s;!s.showMovePanelToggle||i&&!i.includes("top")==!a.includes("top")||v.setItem("sa11y-position",a);const r=new Q;document.body.appendChild(r),function(e,o){n.Global.showMovePanelToggle&&(n.Panel.movePanelToggle.onclick=async()=>{const e=v.getItem("sa11y-position"),[t,o]=e.includes("top")?["top-right","top-left"]:["right","left"],i=e===t?o:t;v.setItem("sa11y-position",i),[t,o].forEach(e=>{n.Panel.toggle.classList.replace(e,i),n.Panel.panel.classList.replace(e,i)}),n.Panel.movePanelToggle.setAttribute("aria-pressed",e===t?"true":"false")}),n.Global.developerPlugin?n.Panel.developerToggle.onclick=async()=>{"On"===v.getItem("sa11y-developer")?(v.setItem("sa11y-developer","Off"),n.Panel.developerToggle.textContent=`${t._("OFF")}`,n.Panel.developerToggle.setAttribute("aria-pressed","false"),o(!1),await e()):(v.setItem("sa11y-developer","On"),n.Panel.developerToggle.textContent=`${t._("ON")}`,n.Panel.developerToggle.setAttribute("aria-pressed","true"),o(!1),await e())}:v.setItem("sa11y-developer","Off"),n.Readability.Plugin&&(n.Panel.readabilityToggle.onclick=async()=>{"On"===v.getItem("sa11y-readability")?(v.setItem("sa11y-readability","Off"),n.Panel.readabilityToggle.textContent=`${t._("OFF")}`,n.Panel.readabilityToggle.setAttribute("aria-pressed","false"),n.Panel.readability.classList.remove("active"),o(!1),await e()):(v.setItem("sa11y-readability","On"),n.Panel.readabilityToggle.textContent=`${t._("ON")}`,n.Panel.readabilityToggle.setAttribute("aria-pressed","true"),n.Panel.readability.classList.add("active"),o(!1),await e())},"On"===v.getItem("sa11y-readability")&&n.Panel.readability.classList.add("active"));const i=window.matchMedia("(prefers-color-scheme: dark)"),{themeToggle:s}=n.Panel,{html:a}=n.Global,r=e=>{a.setAttribute("data-sa11y-theme",e),v.setItem("sa11y-theme",e);const t=s.querySelector("span").classList;t.toggle("moon-icon","light"===e),t.toggle("sun-icon","dark"===e),s.setAttribute("aria-pressed","dark"===e?"true":"false")},l=v.getItem("sa11y-theme")||(i.matches?"dark":"light");r(l),i.addEventListener("change",()=>{r(i.matches?"dark":"light")}),s.onclick=()=>{const e=v.getItem("sa11y-theme")||(i.matches?"dark":"light");r("dark"===e?"light":"dark")},n.Global.colourFilterPlugin&&n.Panel.colourFilterSelect.addEventListener("change",async()=>{const i=parseInt(n.Panel.colourFilterSelect.value,10),s=["protanopia","deuteranopia","tritanopia","monochromacy"],a=[t._("RED_EYE"),t._("GREEN_EYE"),t._("BLUE_EYE"),t._("MONO_EYE")];i>=1&&i<=4?window.matchMedia("(forced-colors: active)").matches?T(t._("COLOUR_FILTER_HIGH_CONTRAST")):(n.Root.areaToCheck.setAttribute("data-sa11y-filter",s[i-1]),n.Panel.colourFilterIcon.setAttribute("aria-label",a[i-1]),x(["data-sa11y-error","data-sa11y-warning","data-sa11y-good","data-sa11y-error-inline","data-sa11y-warning-inline","data-sa11y-overflow"],"document"),k(["sa11y-annotation","sa11y-tooltips","sa11y-heading-label"],"document"),n.Panel.skipButton.disabled=!0,n.Panel.pageIssues.classList.remove("active"),n.Panel.settingsContent.classList.add("hide-settings-border"),n.Panel.colourFilterSelect.classList.add("active"),n.Panel.colourPanel.classList.add("active"),n.Panel.colourPanel.setAttribute("data-colour",s[i-1]),n.Panel.content.hidden=!0):(n.Root.areaToCheck.removeAttribute("data-sa11y-filter"),n.Panel.settingsContent.classList.remove("hide-settings-border"),n.Panel.colourFilterSelect.classList.remove("active"),n.Panel.colourPanel.classList.remove("active"),n.Panel.colourPanel.removeAttribute("data-colour"),n.Panel.content.hidden=!1,o(!1),await e())})}(this.checkAll,this.resetAll),function(){n.Panel.outlineToggle.addEventListener("click",()=>{"true"===n.Panel.outlineToggle.getAttribute("aria-expanded")?j():(V(),J(),X()),n.Panel.outlineHeader.focus()}),"Opened"===v.getItem("sa11y-outline")&&V(),n.Global.showImageOutline&&(n.Panel.imagesToggle.addEventListener("click",()=>{"true"===n.Panel.imagesToggle.getAttribute("aria-expanded")?X():(q(),j(),J()),n.Panel.imagesHeader.focus()}),"Opened"===v.getItem("sa11y-images")&&q()),n.Panel.settingsToggle.addEventListener("click",()=>{"true"===n.Panel.settingsToggle.getAttribute("aria-expanded")?J():(Z(),j(),X()),n.Panel.settingsHeader.focus()}),"Opened"===v.getItem("sa11y-settings")&&Z(),n.Panel.skipToPageIssues.addEventListener("click",()=>{n.Panel.pageIssuesHeader.focus()});const e=n.Panel.panel.querySelectorAll("[role=tab]");if(0!==e.length){let t=Array.from(e).findIndex(e=>e.classList.contains("active"));e.forEach(n=>{n.addEventListener("keydown",n=>{"ArrowRight"===n.key?(n.preventDefault(),t=(t+1)%e.length,e[t].focus()):"ArrowLeft"===n.key&&(n.preventDefault(),t=(t-1+e.length)%e.length,e[t].focus())})})}}(),function(){if(n.Global.colourFilterPlugin&&!1===n.Global.headless){const e=document.createElement("div");e.id="sa11y-colour-filters",e.setAttribute("aria-hidden","true"),e.innerHTML='\n \x3c!-- DaltonLens SVG filters to simulate color vision deficiencies --\x3e\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n ',document.body.appendChild(e)}}(),R(s.detectSPArouting,this.checkAll,this.resetAll),this.panelTooltips=new xn,document.body.appendChild(this.panelTooltips),n.Panel.toggle.disabled=!1,setTimeout(()=>{this.resetAll(),this.checkAll()},s.delayCheck),s.delayCheck>=700&&(n.Panel.toggle.disabled=!0),e=this.checkAll,o=this.resetAll,n.Panel.toggle.addEventListener("click",t=>{"Opened"===v.getItem("sa11y-panel")?(t.preventDefault(),v.setItem("sa11y-panel","Closed"),n.Panel.toggle.classList.remove("on"),n.Panel.toggle.setAttribute("aria-expanded","false"),o(),0===n.Panel.notifCount.innerHTML.trim().length?n.Panel.notifBadge.style.display="none":n.Panel.notifBadge.style.display="flex"):(t.preventDefault(),v.setItem("sa11y-panel","Opened"),n.Panel.toggle.classList.add("on"),n.Panel.toggle.setAttribute("aria-expanded","true"),e(),N(n.Panel.outlineList,n.Panel.outlineContent))}),"Opened"===v.getItem("sa11y-panel")&&(n.Panel.toggle.classList.add("on"),n.Panel.toggle.setAttribute("aria-expanded","true"),n.Panel.panel.style.transform=""),document.onkeydown=e=>{const t=e||window.event;t.altKey&&"KeyA"===t.code&&(n.Panel.toggle.click(),n.Panel.toggle.focus())}}var e,o},"complete"===document.readyState?e():window.addEventListener("load",e))},this.checkAll=async(e=s.checkRoot,o=s.readabilityRoot)=>{try{this.results=[],this.headingOutline=[],this.imageOutline=[],this.errorCount=0,this.warningCount=0,this.customChecksRunning=!1;document.querySelector(e)||!1!==s.headless||T(`${t.sprintf("MISSING_ROOT",e)}`),n.initializeRoot(e,o),function(e){if(e.autoDetectShadowComponents){const t=n.Exclusions.Sa11yElements,o=document.querySelector(e.checkRoot);(o?Array.from(o.querySelectorAll(`*:not(${t})`)):Array.from(document.body.querySelectorAll(`*:not(${t})`))).forEach(e=>{e.shadowRoot&&"open"===e.shadowRoot.mode&&(e.setAttribute("data-sa11y-has-shadow-root",""),P(e))})}else e.shadowComponents&&document.querySelectorAll(e.shadowComponents).forEach(e=>{e.setAttribute("data-sa11y-has-shadow-root",""),P(e)})}(s),O.initializeElements(s),function(e,o,i){let s,a="";O.Found.Headings.forEach((c,d)=>{const p=r(c,n.Exclusions.HeaderSpan),h=b(o.headerIgnoreStrings?p.replace(o.headerIgnoreStrings,""):p),g=u(h),m=n.Root.areaToCheck.contains(c),f=n.Root.areaToCheck.contains(c.getRootNode().host),E=m||f,v=parseInt(c.getAttribute("aria-level")||c.tagName.slice(1),10),_=h.length,I=o.checks.HEADING_LONG.maxLength||160;let T=null,x=null,k=null,N=null;if(0===_)if(c.querySelectorAll("img").length){const e=c.querySelector("img")?.getAttribute("alt");!c.querySelector("img")||e&&""!==e.trim()||o.checks.HEADING_EMPTY_WITH_IMAGE&&(T=o.checks.HEADING_EMPTY_WITH_IMAGE.type||"error",x=t.sprintf(o.checks.HEADING_EMPTY_WITH_IMAGE.content||"HEADING_EMPTY_WITH_IMAGE",v),k=o.checks.HEADING_EMPTY_WITH_IMAGE.developer||!1,N=!!o.checks.HEADING_EMPTY_WITH_IMAGE.dismissAll&&"HEADING_EMPTY_WITH_IMAGE")}else o.checks.HEADING_EMPTY&&(T=o.checks.HEADING_EMPTY.type||"error",x=t.sprintf(o.checks.HEADING_EMPTY.content||"HEADING_EMPTY",v),k=o.checks.HEADING_EMPTY.developer||!1,N=!!o.checks.HEADING_EMPTY.dismissAll&&"HEADING_EMPTY");else v-s>1&&0!==d?o.checks.HEADING_SKIPPED_LEVEL&&(T=o.checks.HEADING_SKIPPED_LEVEL.type||"error",x=t.sprintf(o.checks.HEADING_SKIPPED_LEVEL.content||"HEADING_SKIPPED_LEVEL",s,v,y(g,60),y(a,60),s+1),k=o.checks.HEADING_SKIPPED_LEVEL.developer||!1,N=!!o.checks.HEADING_SKIPPED_LEVEL.dismissAll&&"HEADING_SKIPPED_LEVEL"):0===d&&1!==v&&2!==v?o.checks.HEADING_FIRST&&(T=o.checks.HEADING_FIRST.type||"error",x=t.sprintf(o.checks.HEADING_FIRST.content||"HEADING_FIRST"),k=o.checks.HEADING_FIRST.developer||!1,N=!!o.checks.HEADING_FIRST.dismissAll&&"HEADING_FIRST"):_>I&&o.checks.HEADING_LONG&&(T=o.checks.HEADING_LONG.type||"warning",x=t.sprintf(o.checks.HEADING_LONG.content||"HEADING_LONG",I,_),k=o.checks.HEADING_LONG.developer||!1,N=!!o.checks.HEADING_LONG.dismissAll&&"HEADING_LONG");x&&T&&e.push({element:c,type:T,content:x,dismiss:L(`H${v+g}`),dismissAll:N,isWithinRoot:E,developer:k}),s=v,a=g;const S=l(c),w=A(c,"display","none");i.push({element:c,headingLevel:v,text:g,index:d,type:T,hidden:S,visibleParent:w,dismiss:L(`H${v+g}`),isWithinRoot:E})}),o.checks.HEADING_MISSING_ONE&&0===O.Found.HeadingOne.length&&e.push({type:o.checks.HEADING_MISSING_ONE.type||"warning",content:t.sprintf(o.checks.HEADING_MISSING_ONE.content||"HEADING_MISSING_ONE"),dismiss:"MISSINGH1",developer:o.checks.HEADING_MISSING_ONE.developer||!1})}(this.results,s,this.headingOutline),Gn(this.results,s),$n(this.results,s),function(e,n){n.formLabelsPlugin&&O.Found.Inputs.forEach(o=>{const i="true"===o.getAttribute("aria-hidden"),s="-1"===o.getAttribute("tabindex");if(d(o)||i&&s)return;const a=b(r(o)),l=o.getAttribute("alt"),c=o.getAttribute("type"),p=o.getAttribute("title"),h=o.getAttribute("aria-label")||o.getAttribute("aria-labelledby");if("submit"===c||"button"===c||"hidden"===c)return;if("image"===c)return void(!n.checks.LABELS_MISSING_IMAGE_INPUT||l&&""!==l.trim()||h||p||e.push({element:o,type:n.checks.LABELS_MISSING_IMAGE_INPUT.type||"error",content:t.sprintf(n.checks.LABELS_MISSING_IMAGE_INPUT.content||"LABELS_MISSING_IMAGE_INPUT"),dismiss:L(`INPUTIMAGE${c+a}`),dismissAll:!!n.checks.LABELS_MISSING_IMAGE_INPUT.dismissAll&&"LABELS_MISSING_IMAGE_INPUT",developer:n.checks.LABELS_MISSING_IMAGE_INPUT.developer||!0}));if("reset"===c)return void(n.checks.LABELS_INPUT_RESET&&e.push({element:o,type:n.checks.LABELS_INPUT_RESET.type||"warning",content:t.sprintf(n.checks.LABELS_INPUT_RESET.content||"LABELS_INPUT_RESET"),dismiss:L(`INPUTRESET${c+a}`),dismissAll:!!n.checks.LABELS_INPUT_RESET.dismissAll&&"LABELS_INPUT_RESET",developer:n.checks.LABELS_INPUT_RESET.developer||!1}));if(h||p){if(0===a.length)n.checks.LABELS_MISSING_LABEL&&e.push({element:o,type:n.checks.LABELS_MISSING_LABEL.type||"error",content:t.sprintf(n.checks.LABELS_MISSING_LABEL.content||"LABELS_MISSING_LABEL"),dismiss:L(`INPUTMISSING${c+a}`),dismissAll:!!n.checks.LABELS_MISSING_LABEL.dismissAll&&"LABELS_MISSING_LABEL",developer:n.checks.LABELS_MISSING_LABEL.developer||!0});else if(n.checks.LABELS_ARIA_LABEL_INPUT){const i=u(a);e.push({element:o,type:n.checks.LABELS_ARIA_LABEL_INPUT.type||"warning",content:n.checks.LABELS_ARIA_LABEL_INPUT.content?t.sprintf(n.checks.LABELS_ARIA_LABEL_INPUT.content,i):`${t.sprintf("LABELS_ARIA_LABEL_INPUT",i)} ${t.sprintf("ACC_NAME_TIP")}`,dismiss:L(`INPUTARIA${c+a}`),dismissAll:!!n.checks.LABELS_ARIA_LABEL_INPUT.dismissAll&&"LABELS_ARIA_LABEL_INPUT",developer:n.checks.LABELS_ARIA_LABEL_INPUT.developer||!0})}return}const g=o.closest("label"),m=g?b(r(g)):"";if(g&&m.length)return;const f=o.getAttribute("id");f?O.Found.Labels.some(e=>e.getAttribute("for")===f)||n.checks.LABELS_NO_FOR_ATTRIBUTE&&e.push({element:o,type:n.checks.LABELS_NO_FOR_ATTRIBUTE.type||"error",content:t.sprintf(n.checks.LABELS_NO_FOR_ATTRIBUTE.content||"LABELS_NO_FOR_ATTRIBUTE",f),dismiss:L(`INPUTNOFOR${c+a}`),dismissAll:!!n.checks.LABELS_NO_FOR_ATTRIBUTE.dismissAll&&"LABELS_NO_FOR_ATTRIBUTE",developer:n.checks.LABELS_NO_FOR_ATTRIBUTE.developer||!0}):n.checks.LABELS_MISSING_LABEL&&e.push({element:o,type:n.checks.LABELS_MISSING_LABEL.type||"error",content:t.sprintf(n.checks.LABELS_MISSING_LABEL.content||"LABELS_MISSING_LABEL"),dismiss:L(`INPUTNOID${c+a}`),dismissAll:!!n.checks.LABELS_MISSING_LABEL.dismissAll&&"LABELS_MISSING_LABEL",developer:n.checks.LABELS_MISSING_LABEL.developer||!0}),o.placeholder&&0!==o.placeholder&&e.push({element:o,type:n.checks.LABELS_PLACEHOLDER.type||"warning",content:t.sprintf(n.checks.LABELS_PLACEHOLDER.content||"LABELS_PLACEHOLDER"),dismiss:L(`INPUTPLACEHOLDER${c+a}`),dismissAll:!!n.checks.LABELS_PLACEHOLDER.dismissAll&&"LABELS_PLACEHOLDER",developer:n.checks.LABELS_PLACEHOLDER.developer||!0})})}(this.results,s),Un(this.results,s),function(e,o){if(o.checks.META_LANG&&(!O.Found.Language||O.Found.Language.length<2)&&e.push({type:o.checks.META_LANG.type||"error",content:t.sprintf(o.checks.META_LANG.content||"META_LANG"),dismiss:L("LANG"),developer:o.checks.META_LANG.developer||!0}),o.checks.META_TITLE){const n=document.querySelector("title:not(svg title)");n&&0!==n.textContent.trim().length||e.push({type:o.checks.META_TITLE.type||"error",content:t.sprintf(o.checks.META_TITLE.content||"META_TITLE"),dismiss:L("TITLE"),developer:o.checks.META_TITLE.developer||!0})}if(o.checks.META_SCALABLE||o.checks.META_MAX){const n=document.querySelector('meta[name="viewport"]');if(n){const i=n.getAttribute("content");if(i){const n=i.split(",").reduce((e,t)=>{const[n,o]=t.split("=").map(e=>e.trim());return e[n]=o,e},{});!o.checks.META_SCALABLE||"no"!==n["user-scalable"]&&"0"!==n["user-scalable"]||e.push({type:o.checks.META_SCALABLE.type||"error",content:t.sprintf(o.checks.META_SCALABLE.content||"META_SCALABLE"),dismiss:L("SCALABLE"),developer:o.checks.META_SCALABLE.developer||!0});const s=parseFloat(n["maximum-scale"]);o.checks.META_MAX&&!Number.isNaN(s)&&s<2&&e.push({type:o.checks.META_MAX.type||"error",content:t.sprintf(o.checks.META_MAX.content||"META_MAX"),dismiss:L("MAXSCALE"),developer:o.checks.META_MAX.developer||!0})}}}o.checks.META_REFRESH&&document.querySelector('meta[http-equiv="refresh"]')&&e.push({type:o.checks.META_REFRESH.type||"error",content:t.sprintf(o.checks.META_REFRESH.content||"META_REFRESH"),dismiss:L("REFRESH"),developer:o.checks.META_REFRESH.developer||!0});o.checks.DUPLICATE_ID&&document.querySelectorAll("body, [data-sa11y-has-shadow-root]").forEach(i=>{const s=new Set,a=(n,i)=>{n.forEach(n=>{const{id:a}=n;"string"==typeof a&&0!==a.trim().length&&(a&&!s.has(a)?s.add(a):Array.from(i.querySelectorAll(`\n a[href*="${a}"],\n label[for*="${a}"],\n [aria-labelledby*="${a}"],\n [aria-controls*="${a}"],\n [aria-owns*="${a}"]`)).length>0&&e.push({element:n,type:o.checks.DUPLICATE_ID.type||"error",content:t.sprintf(o.checks.DUPLICATE_ID.content||"DUPLICATE_ID",a),dismiss:L(`DUPLICATEID${a}${n.textContent}`),dismissAll:!!o.checks.DUPLICATE_ID.dismissAll&&"DUPLICATE_ID",developer:o.checks.DUPLICATE_ID.developer||!0}))})};i.shadowRoot&&a(Array.from(i.shadowRoot.querySelectorAll(`[id]:not(${n.Exclusions.Container})`)),i.shadowRoot),a(Array.from(i.querySelectorAll(`[id]:not(${n.Exclusions.Container})`)),i)});(o.checks.BTN_EMPTY||o.checks.BTN_EMPTY_LABELLEDBY||o.checks.BTN_LABEL||o.checks.HIDDEN_FOCUSABLE||o.checks.LABEL_IN_NAME)&&O.Found.Buttons.forEach(n=>{const i=r(n),s=i.replace(/'|"|-|\.|\s+/g,"").toLowerCase(),a=L(`BTN${n.tagName+n.id+n.className+i}`),l=n.querySelector(":scope [aria-labelledby], :scope [aria-label]")||n.getAttribute("aria-labelledby")||n.getAttribute("aria-label"),c=n.querySelector(":scope [aria-labelledby]")||n.getAttribute("aria-labelledby"),d="true"===n.getAttribute("aria-hidden"),p="-1"===n.getAttribute("tabindex");if(d)return void(p||o.checks.HIDDEN_FOCUSABLE&&e.push({element:n,type:o.checks.HIDDEN_FOCUSABLE.type||"error",content:t.sprintf(o.checks.HIDDEN_FOCUSABLE.content||"HIDDEN_FOCUSABLE"),dismiss:a,dismissAll:!!o.checks.HIDDEN_FOCUSABLE.dismissAll&&"BTN_HIDDEN_FOCUSABLE",developer:o.checks.HIDDEN_FOCUSABLE.developer||!0}));if(0===s.length)return void(o.checks.BTN_EMPTY_LABELLEDBY&&c?e.push({element:n,type:o.checks.BTN_EMPTY_LABELLEDBY.type||"error",content:o.checks.BTN_EMPTY_LABELLEDBY.content?t.sprintf(o.checks.BTN_EMPTY_LABELLEDBY.content):`${t.sprintf("BTN_EMPTY_LABELLEDBY")} ${t.sprintf("BTN_TIP")}`,dismiss:L(a),dismissAll:!!o.checks.BTN_EMPTY_LABELLEDBY.dismissAll&&"BTN_EMPTY_LABELLEDBY",developer:o.checks.BTN_EMPTY_LABELLEDBY.developer||!0}):o.checks.BTN_EMPTY&&e.push({element:n,type:o.checks.BTN_EMPTY.type||"error",content:o.checks.BTN_EMPTY.content?t.sprintf(o.checks.BTN_EMPTY.content):`${t.sprintf("BTN_EMPTY")} ${t.sprintf("BTN_TIP")}`,dismiss:a,dismissAll:!!o.checks.BTN_EMPTY.dismissAll&&"BTN_EMPTY",developer:o.checks.BTN_EMPTY.developer||!0}));const h=C(n);if(o.checks.LABEL_IN_NAME&&l&&h){const s=u(i);return void e.push({element:n,type:o.checks.LABEL_IN_NAME.type||"warning",content:o.checks.LABEL_IN_NAME.content?t.sprintf(o.checks.LABEL_IN_NAME.content,s):`${t.sprintf("LABEL_IN_NAME",s)} ${t.sprintf("ACC_NAME_TIP")}`,dismiss:a,dismissAll:!!o.checks.LABEL_IN_NAME.dismissAll&&"BTN_LABEL_IN_NAME",developer:o.checks.LABEL_IN_NAME.developer||!0})}o.checks.BTN_ROLE_IN_NAME&&i.includes(t._("BTN"))&&e.push({element:n,type:o.checks.BTN_ROLE_IN_NAME.type||"warning",content:o.checks.BTN_ROLE_IN_NAME.content?t.sprintf(o.checks.BTN_ROLE_IN_NAME.content):`${t.sprintf("BTN_ROLE_IN_NAME")} ${t.sprintf("BTN_TIP")}`,dismiss:a,dismissAll:!!o.checks.BTN_ROLE_IN_NAME.dismissAll&&"BTN_ROLE_IN_NAME",developer:o.checks.BTN_ROLE_IN_NAME.developer||!0})}),o.checks.UNCONTAINED_LI&&O.Found.Lists.forEach(n=>{n.closest("ul, ol, menu")||e.push({element:n,type:o.checks.UNCONTAINED_LI.type||"error",content:t.sprintf(o.checks.UNCONTAINED_LI.content||"UNCONTAINED_LI"),dismiss:L(`UNCONTAINEDLI${n.textContent}`),dismissAll:!!o.checks.UNCONTAINED_LI.dismissAll&&"UNCONTAINED_LI",developer:o.checks.UNCONTAINED_LI.developer||!0})}),o.checks.TABINDEX_ATTR&&O.Found.TabIndex.forEach(n=>{e.push({element:n,type:o.checks.TABINDEX_ATTR.type||"error",content:t.sprintf(o.checks.TABINDEX_ATTR.content||"TABINDEX_ATTR"),dismiss:L(`TABINDEX${n.tagName+n.id+n.className}`),dismissAll:!!o.checks.TABINDEX_ATTR.dismissAll&&"TABINDEX_ATTR",developer:o.checks.TABINDEX_ATTR.developer||!0})})}(this.results,s),s.embeddedContentPlugin&&function(e,n){const o=e=>"undefined"!==e.getAttribute("src")?e.getAttribute("src"):e.querySelector("[src]")?.getAttribute("src");n.checks.EMBED_AUDIO&&O.Found.Audio.forEach(i=>{e.push({element:i,type:n.checks.EMBED_AUDIO.type||"warning",content:t.sprintf(n.checks.EMBED_AUDIO.content||"EMBED_AUDIO"),dismiss:L(`AUDIO${o(i)}`),dismissAll:!!n.checks.EMBED_AUDIO.dismissAll&&"EMBED_AUDIO",developer:n.checks.EMBED_AUDIO.developer||!1})}),n.checks.EMBED_VIDEO&&O.Found.Videos.forEach(i=>{const s=i.querySelector("track"),a=s?.getAttribute("src");null!==s&&null!==a&&0!==a.trim().length||e.push({element:i,type:n.checks.EMBED_VIDEO.type||"warning",content:t.sprintf(n.checks.EMBED_VIDEO.content||"EMBED_VIDEO"),dismiss:L(`VIDEO${o(i)}`),dismissAll:!!n.checks.EMBED_VIDEO.dismissAll&&"EMBED_VIDEO",developer:n.checks.EMBED_VIDEO.developer||!1})}),n.checks.EMBED_DATA_VIZ&&O.Found.Visualizations.forEach(i=>{e.push({element:i,type:n.checks.EMBED_DATA_VIZ.type||"warning",content:t.sprintf(n.checks.EMBED_DATA_VIZ.content||"EMBED_DATA_VIZ"),dismiss:L(`DATAVIZ${o(i)}`),dismissAll:!!n.checks.EMBED_DATA_VIZ.dismissAll&&"EMBED_DATA_VIZ",developer:n.checks.EMBED_DATA_VIZ.developer||!1})}),O.Found.iframes.forEach(i=>{const s=["presentation","none"].includes(i.getAttribute("role")),r=d(i),l="VIDEO"===i.tagName||"AUDIO"===i.tagName,c="true"===i.getAttribute("aria-hidden"),p="-1"===i.getAttribute("tabindex");if(!(r||l||c&&p||s))if(p)n.checks.EMBED_UNFOCUSABLE&&e.push({element:i,type:n.checks.EMBED_UNFOCUSABLE.type||"error",content:t.sprintf(n.checks.EMBED_UNFOCUSABLE.content||"EMBED_UNFOCUSABLE"),dismiss:L(`EMBEDUNFOCUSABLE${o(i)}`),dismissAll:!!n.checks.EMBED_UNFOCUSABLE.dismissAll&&"EMBED_UNFOCUSABLE",developer:n.checks.EMBED_UNFOCUSABLE.developer||!0});else if(n.checks.EMBED_MISSING_TITLE){const s=a(i);0===b("noAria"===s?i.getAttribute("title")||"":s).length&&e.push({element:i,type:n.checks.EMBED_MISSING_TITLE.type||"error",content:t.sprintf(n.checks.EMBED_MISSING_TITLE.content||"EMBED_MISSING_TITLE"),dismiss:L(`EMBEDMISSTITLE${o(i)}`),dismissAll:!!n.checks.EMBED_MISSING_TITLE.dismissAll&&"EMBED_MISSING_TITLE",developer:n.checks.EMBED_MISSING_TITLE.developer||!0})}}),n.checks.EMBED_GENERAL&&O.Found.EmbeddedContent.forEach(i=>{const s=["presentation","none"].includes(i.getAttribute("role")),a="true"===i.getAttribute("aria-hidden"),r="-1"===i.getAttribute("tabindex");d(i)||a&&r||s||"VIDEO"!==i.tagName&&"AUDIO"!==i.tagName&&e.push({element:i,type:n.checks.EMBED_GENERAL.type||"warning",content:t.sprintf(n.checks.EMBED_GENERAL.content||"EMBED_GENERAL"),dismiss:L(`IFRAMEGENERAL${o(i)}`),dismissAll:!!n.checks.EMBED_GENERAL.dismissAll&&"EMBED_GENERAL",developer:n.checks.EMBED_GENERAL.developer||!1})})}(this.results,s),s.contrastPlugin&&function(e,n){const o=[];for(let e=0;e3===e.nodeType).map(e=>e.textContent).join("").trim(),m=["SELECT","INPUT","TEXTAREA"].includes(t.tagName);if(0!==g.length||m)if("unsupported"===a||"unsupported"===p){const e=r>=24||r>=18.67&&l>=700;o.push({$el:t,type:"unsupported",fontSize:r,fontWeight:l,isLargeText:e,opacity:s,..."unsupported"!==p&&{background:p},..."unsupported"!==a&&{color:a}})}else if("image"===p.type)if(h);else{const e=r>=24||r>=18.67&&l>=700;o.push({$el:t,type:"background-image",color:a,isLargeText:e,background:p,fontSize:r,fontWeight:l,opacity:s})}else if("text"===t.tagName&&t.closest("svg"));else if(h||mn(a)===mn(p));else{const e=Ln(t,a,p,r,l,s,n.contrastAAA);e&&(e.type=m?"input":"text",o.push(e))}}O.Found.Svg.forEach(e=>{const t=dn(e);if(t&&"image"===t.type)return void o.push({$el:e,type:"svg-warning",background:t});if(e.querySelector("text"))return void o.push({$el:e,type:"svg-text",background:t});const i=e.querySelectorAll("path, polygon, circle, rect, ellipse");if(1===i.length){const s=getComputedStyle(i[0]),{fill:a,opacity:r,stroke:l,strokeWidth:c}=s;if(a.startsWith("url("))return void o.push({$el:e,type:"svg-warning",background:t});const d=a&&"none"!==a,p=l&&"none"!==l&&"0px"!==c;if(!d&&!p)return void o.push({$el:e,type:"svg-warning",background:t});let u,h,g,m=!1,f=!1;d&&(h=cn("currentColor"===a?getComputedStyle(e).color:a,r),"unsupported"!==h&&(u=bn(h,t),m=n.contrastAPCA?u.ratio>=45:u.ratio>=3)),p&&(g=cn("currentColor"===l?getComputedStyle(e).color:l,r),"unsupported"!==g&&(u=bn(g,t),f=n.contrastAPCA?u.ratio>=45:u.ratio>=3));const b=d&&p&&!m&&!f,y=d&&!p&&!m,A=!d&&p&&!f;"unsupported"===h||"unsupported"===g?o.push({$el:e,type:"svg-warning",background:t}):(b||y||A)&&o.push({$el:e,ratio:fn(u.ratio),color:u.blendedColor,type:"svg-error",background:t})}else o.push({$el:e,type:"svg-warning",background:t})}),O.Found.Inputs.forEach(e=>{if(e.placeholder&&0!==e.placeholder.length){const t=getComputedStyle(e,"::placeholder"),i=cn(t.getPropertyValue("color")),s=parseFloat(t.fontSize),a=ln(t.fontWeight),r=dn(e),l=parseFloat(t.opacity);if("unsupported"===i)o.push({$el:e,type:"placeholder-unsupported"});else if("image"===r.type);else{const t=Ln(e,i,r,s,a,l,n.contrastAAA);t&&(t.type="placeholder",o.push(t))}}}),(e=>{const t=e.filter(e=>"background-image"===e.type),o=e.filter(e=>"background-image"!==e.type);let i;if(n.contrastAPCA)i=t.map(e=>({...e}));else{const e=t.reduce((e,t)=>{const n=e,o=JSON.stringify({background:t.background.value,color:t.color,isLargeText:t.isLargeText});return n[o]||(n[o]=[]),n[o].push(t),n},{});i=Object.values(e).map(e=>({...e[0]}))}return[...i,...o]})(o).forEach(o=>{const{$el:i,ratio:s}=o,a=o,r="OPTION"===i.tagName?i.closest("datalist, select, optgroup"):i,l=u(y(f(m(r,["option:not(option:first-child)"])),80));let c;c="placeholder"===o.type||"placeholder-unsupported"===o.type?u(i.placeholder):"svg-error"===o.type||"svg-warning"===o.type||"svg-text"===o.type?"":l,a.sanitizedText=c;let d="";if(!n.contrastAPCA){const e=n.contrastAAA?"7:1":"4.5:1",i=n.contrastAAA?"4.5:1":"3:1",s=o.isLargeText?i:e,a=o.isLargeText?"CONTRAST_LARGE":"CONTRAST_NORMAL";d=` ${t.sprintf(a,s)}`}const p=n.contrastAPCA?"":` ${t.sprintf("CONTRAST_TIP_GRAPHIC")}`;switch(o.type){case"text":n.checks.CONTRAST_ERROR&&e.push({element:i,type:n.checks.CONTRAST_ERROR.type||"error",content:n.checks.CONTRAST_ERROR.content?t.sprintf(n.checks.CONTRAST_ERROR.content):t.sprintf("CONTRAST_ERROR")+d,dismiss:L(`CONTRAST${l}`),dismissAll:!!n.checks.CONTRAST_ERROR.dismissAll&&"CONTRAST_ERROR",developer:n.checks.CONTRAST_ERROR.developer||!1,contrastDetails:a});break;case"input":n.checks.CONTRAST_INPUT&&e.push({element:r,type:n.checks.CONTRAST_INPUT.type||"error",content:n.checks.CONTRAST_INPUT.content?t.sprintf(n.checks.CONTRAST_INPUT.content):t.sprintf("CONTRAST_INPUT",s)+d,dismiss:L(`CONTRAST${i.getAttribute("class")}${i.tagName}${s}`),dismissAll:!!n.checks.CONTRAST_INPUT.dismissAll&&"CONTRAST_INPUT",developer:n.checks.CONTRAST_INPUT.developer||!0,contrastDetails:a});break;case"placeholder":n.checks.CONTRAST_PLACEHOLDER&&e.push({element:i,type:n.checks.CONTRAST_PLACEHOLDER.type||"error",content:n.checks.CONTRAST_PLACEHOLDER.content?t.sprintf(n.checks.CONTRAST_PLACEHOLDER.content):t.sprintf("CONTRAST_PLACEHOLDER")+d,position:"afterend",dismiss:L(`CPLACEHOLDER${i.getAttribute("class")}${i.tagName}${s}`),dismissAll:!!n.checks.CONTRAST_PLACEHOLDER.dismissAll&&"CONTRAST_PLACEHOLDER",developer:n.checks.CONTRAST_PLACEHOLDER.developer||!0,contrastDetails:a});break;case"placeholder-unsupported":n.checks.CONTRAST_PLACEHOLDER_UNSUPPORTED&&e.push({element:i,type:n.checks.CONTRAST_PLACEHOLDER_UNSUPPORTED.type||"warning",content:n.checks.CONTRAST_PLACEHOLDER_UNSUPPORTED.content?t.sprintf(n.checks.CONTRAST_PLACEHOLDER_UNSUPPORTED.content):t.sprintf("CONTRAST_PLACEHOLDER_UNSUPPORTED")+d,position:"afterend",dismiss:L(`CPLACEHOLDERUN${i.getAttribute("class")}${i.tagName}${s}`),dismissAll:!!n.checks.CONTRAST_PLACEHOLDER_UNSUPPORTED.dismissAll&&"CONTRAST_PLACEHOLDER_UNSUPPORTED",developer:n.checks.CONTRAST_PLACEHOLDER_UNSUPPORTED.developer||!0,contrastDetails:a});break;case"svg-error":n.checks.CONTRAST_ERROR_GRAPHIC&&e.push({element:i,type:n.checks.CONTRAST_ERROR_GRAPHIC.type||"error",content:n.checks.CONTRAST_ERROR_GRAPHIC.content?t.sprintf(n.checks.CONTRAST_ERROR_GRAPHIC.content):t.sprintf("CONTRAST_ERROR_GRAPHIC")+p,dismiss:L(`CONTRASTERROR${i.outerHTML}`),dismissAll:!!n.checks.CONTRAST_ERROR_GRAPHIC.dismissAll&&"CONTRAST_ERROR_GRAPHIC",developer:n.checks.CONTRAST_ERROR_GRAPHIC.developer||!0,contrastDetails:a});break;case"svg-warning":case"svg-text":n.checks.CONTRAST_WARNING_GRAPHIC&&e.push({element:i,type:n.checks.CONTRAST_WARNING_GRAPHIC.type||"warning",content:n.checks.CONTRAST_WARNING_GRAPHIC.content?t.sprintf(n.checks.CONTRAST_WARNING_GRAPHIC.content):t.sprintf("CONTRAST_WARNING_GRAPHIC")+p,dismiss:L(`CONTRASTWARNING${i.outerHTML}`),dismissAll:!!n.checks.CONTRAST_WARNING_GRAPHIC.dismissAll&&"CONTRAST_WARNING_GRAPHIC",developer:n.checks.CONTRAST_WARNING_GRAPHIC.developer||!0,contrastDetails:a});break;case"background-image":n.checks.CONTRAST_WARNING&&e.push({element:r,type:n.checks.CONTRAST_WARNING.type||"warning",content:n.checks.CONTRAST_WARNING.content?t.sprintf(n.checks.CONTRAST_WARNING.content):t.sprintf("CONTRAST_WARNING")+d,dismiss:L(`CONTRAST${l}`),dismissAll:!!n.checks.CONTRAST_WARNING.dismissAll&&"CONTRAST_WARNING",developer:n.checks.CONTRAST_WARNING.developer||!1,contrastDetails:a});break;case"unsupported":n.checks.CONTRAST_UNSUPPORTED&&e.push({element:r,type:n.checks.CONTRAST_UNSUPPORTED.type||"warning",content:n.checks.CONTRAST_UNSUPPORTED.content?t.sprintf(n.checks.CONTRAST_UNSUPPORTED.content):t.sprintf("CONTRAST_WARNING")+d,dismiss:L(`CONTRAST${l}`),dismissAll:!!n.checks.CONTRAST_UNSUPPORTED.dismissAll&&"CONTRAST_UNSUPPORTED",developer:n.checks.CONTRAST_UNSUPPORTED.developer||!1,contrastDetails:a})}})}(this.results,s),s.readabilityPlugin&&function(){let e;if("On"===v.getItem("sa11y-readability")){O.Found.Readability.forEach(e=>{const t=e.textContent;t.length>=120&&"."!==t.charAt(t.length-1)&&e.insertAdjacentHTML("beforeend",".")});const o=[];for(let e=0;e{let t=e;if(t=t.toLowerCase().replace(".","").replace("\n",""),t.length<=3)return 1;t=t.replace(/(?:[^laeiouy]es|ed|[^laeiouy]e)$/,""),t=t.replace(/^y/,"");const n=t.match(/[aeiouy]{1,2}/g);let o=0;return!!n&&(o=n.length),o},s=i.replace(/[.!?-]+/g," ").split(" ");let a=0;for(let e=0;e100?u=100:u<0&&(u=0);const h=u.toFixed(1),g=(a/l).toFixed(1),m=Math.round((a-(d+p))/a*100);let f;f=h>=0&&h<30?t._("VERY_DIFFICULT"):h>31&&h<49?t._("DIFFICULT"):h>50&&h<60?t._("FAIRLY_DIFFICULT"):t._("GOOD"),e={score:h,averageWordsPerSentence:g,complexWords:m,difficultyLevel:f,wordCount:a}}else if(["sv","fi","da","no","nb","nn"].includes(n.Readability.Lang)){const n=(e=>{const n=()=>e.replace(/[-'.]/gi,"").split(/[^a-zA-ZöäåÖÄÅÆæØø0-9]/g).filter(Boolean),o=n().length,i=n().filter(e=>e.length>6).length,s=e.split(/\?|!|\.|\n/g).filter(Boolean).length,a=Math.round(o/s+100*i/o),r=(o/s).toFixed(1),l=Math.round(i/o*100);let c;return c=a>=0&&a<39?t._("GOOD"):a>40&&a<50?t._("FAIRLY_DIFFICULT"):a>51&&a<61?t._("DIFFICULT"):t._("VERY_DIFFICULT"),{score:a,difficulty:c,avgWordsPerSentence:r,complexWords:l,wordCount:o}})(i);e={score:n.score,averageWordsPerSentence:n.avgWordsPerSentence,complexWords:n.complexWords,difficultyLevel:n.difficulty,wordCount:n.wordCount}}!1===n.Global.headless&&(0===i.length?n.Panel.readabilityInfo.innerHTML=t._("READABILITY_NO_CONTENT"):e.wordCount>30?(n.Panel.readabilityInfo.innerHTML=`${e.score} ${e.difficultyLevel}`,n.Panel.readabilityDetails.innerHTML=`\n
                                          • \n ${t._("AVG_SENTENCE")}\n ${e.averageWordsPerSentence}\n
                                          • \n
                                          • \n ${t._("COMPLEX_WORDS")}\n ${e.complexWords}%\n
                                          • \n
                                          • \n ${t._("TOTAL_WORDS")}\n ${e.wordCount}\n
                                          • `):n.Panel.readabilityInfo.textContent=t._("READABILITY_NOT_ENOUGH"))}}(),this.imageResults=this.results.filter((e,t,n)=>{const{element:o}=e;return!(!o||"IMG"!==o.tagName||!o.outerHTML)&&n.findIndex(e=>e.element?.outerHTML===o.outerHTML)===t}),!0===s.customChecks?this.results:"object"==typeof s.customChecks?this.results.push(...s.customChecks):"listen"===s.customChecks&&(this.customChecksRunning=!0,this.customChecksFinished=0,document.addEventListener("sa11y-resume",()=>{this.customChecksFinished+=1,1===this.customChecksFinished&&(this.customChecksRunning=!1,this.updateResults())}),window.setTimeout(()=>{if(!0===this.customChecksRunning)throw this.customChecksRunning=!1,this.updateResults(),Error("Sa11y: No custom checks were returned.")},s.delayCustomCheck),window.setTimeout(()=>{const e=new CustomEvent("sa11y-custom-checks");document.dispatchEvent(e)},0)),this.customChecksRunning||this.updateResults()}catch(e){const t=new z(e);throw document.body.appendChild(t),Error(e)}},this.updateResults=()=>{this.results=this.results.filter(e=>!1!==e.isWithinRoot);const e="Off"===v.getItem("sa11y-developer")||null===v.getItem("sa11y-developer");if((e||!0===s.externalDeveloperChecks)&&(this.results=this.results.filter(e=>!0!==e.developer)),e&&(this.results=this.results.filter(e=>!0!==e.external)),this.results.forEach((e,t)=>{const n=s.selectorPath?function(e){const t=[];let n=e;for(;n;){let e=n.localName;if(n.id){e+=`#${n.id}`,t.unshift(e);break}n.className&&(e+=`.${n.className.replace(/\s+/g,".")}`);const o=n.parentNode;if(!o)break;{const i=o.children;i.length>1&&(e+=`:nth-child(${Array.prototype.indexOf.call(i,n)+1})`),t.unshift(e)}n=n.parentNode.host||n.parentNode}return t.join(" > ")}(e.element):"",o=e.element?.outerHTML.replace(/\s{2,}/g," ").trim()||"";Object.assign(e,{htmlPath:o,cssPath:n,id:t})}),!1===s.headless){const e=D(this.results,this.panelTooltips,this.checkAll,this.resetAll);this.results=e.updatedResults,this.dismissed=e.dismissedIssues;const l=function(e,t,n){let o=t,i=n;return e.forEach((t,n)=>{const s=e[n].type;"error"===s?o+=1:"warning"===s&&(i+=1)}),{error:o,warning:i}}(this.results,this.errorCount,this.warningCount);if(function(e,o){const i=e+o;0===i?(n.Panel.notifCount.innerText="",n.Panel.notifText.innerText="",n.Panel.notifBadge.style.display="none"):o>0&&0===e?(n.Panel.notifBadge.classList.add("notification-badge-warning"),n.Panel.notifCount.innerText=`${o}`,n.Panel.notifText.innerText=`${t._("WARNINGS_FOUND")}`):(n.Panel.notifBadge.classList.remove("notification-badge-warning"),n.Panel.notifCount.innerText=`${i}`,n.Panel.notifText.innerText=t._("TOTAL_FOUND")),"Opened"===v.getItem("sa11y-panel")||0===i?n.Panel.notifBadge.style.display="none":n.Panel.notifBadge.style.display="flex"}(l.error,l.warning),"Opened"===v.getItem("sa11y-panel")){this.results.forEach(e=>{Object.assign(e),function(e,o){const{element:i,type:s,content:a,inline:r=!1,position:l="beforebegin",id:c,dismiss:d,dismissAll:u,contrastDetails:h}=e,g=["error","warning","good"];if(-1===g.indexOf(s))throw Error(`Invalid type [${s}] for annotation`);[s].forEach(e=>{if("error"===e&&void 0!==i){const e=r?"data-sa11y-error-inline":"data-sa11y-error";i.setAttribute(e,c)}else if("warning"===e&&void 0!==i){const e=r?"data-sa11y-warning-inline":"data-sa11y-warning";i.setAttribute(e,c)}});const m={[g[0]]:t._("ERROR"),[g[1]]:t._("WARNING"),[g[2]]:t._("GOOD")};if(!1===o.showGoodImageButton&&"IMG"===i?.tagName&&"good"===s)return;if(!1===o.showGoodLinkButton&&"A"===i?.tagName&&"good"===s)return;const f=!o.dismissAnnotations||"warning"!==s&&"good"!==s||void 0===d?"":``,b=o.dismissAnnotations&&o.dismissAll&&"string"==typeof u&&("warning"===s||"good"===s)?``:"",y=document.createElement("sa11y-annotation");if(y.setAttribute("data-sa11y-annotation",c),void 0===i){const e=document.createElement("li");e.innerHTML=`

                                            ${m[s]}

                                            ${a}${f}`,n.Panel.pageIssuesList.insertAdjacentElement("afterbegin",e),n.Panel.pageIssues.classList.add("active"),n.Panel.panel.classList.add("has-page-issues")}else{const e=document.createElement("div");e.classList.add(r?"instance-inline":"instance"),e.innerHTML=`\n \n

                                            ${m[s]}

                                            \n ${p(a)}\n ${h?"
                                            ":""}\n
                                            ${f}${b}
                                            \n "\n >`;const n=o.insertAnnotationBefore?`, ${o.insertAnnotationBefore}`:"";(i.closest(`a, button, [role="link"], [role="button"] ${n}`)||i).insertAdjacentElement(l,y),y.shadowRoot.appendChild(e)}}(e,s)}),O.initializeAnnotations();const c=new Tn;document.body.appendChild(c),$(this.results,this.dismissed,this.checkAll,this.resetAll),ee(this.dismissed,this.headingOutline,s),s.showImageOutline&&function(e,o,i){const s=()=>{const a=[],r=e.map(e=>o.find(t=>e.key===t.dismiss&&e.href===window.location.pathname)).filter(Boolean);o.forEach(e=>{const o=r.some(t=>t.element.outerHTML.toLowerCase()===e.element.outerHTML.toLowerCase());o&&Object.assign(e,{dismissedImage:!0});const s=e.type,l=e.developer,{dismissedImage:c}=e,d=p(e.element.alt),u=!("Off"!==v.getItem("sa11y-developer")&&null!==v.getItem("sa11y-developer")||"error"!==s&&"warning"!==s||!0!==l),h=S(e.element),g=n.Global.editImageURLofCMS?te(e):"",m=i.imageWithinLightbox?`a[href]:not(${i.imageWithinLightbox})`:"a[href]",f=e.element.closest(m)?`
                                            ${t._("LINKED")}
                                            `:"";let b;if("error"!==s||u)if("warning"!==s||c||u){const n=0===d.length?`
                                            ${t._("DECORATIVE")}
                                            `:"",o=i.imageWithinLightbox?`a[href]:not(${i.imageWithinLightbox})`:"a[href]",s=e.element.closest(o)?`
                                            ${t._("LINKED")}
                                            `:"";b=`\n
                                          • \n \n
                                            \n
                                            ${t._("ALT")}
                                            \n ${s} ${n} ${d}\n
                                            \n ${g}\n
                                          • `,a.push(b)}else{const e=0===d.length?`
                                            ${t._("DECORATIVE")}
                                            `:"";b=`\n
                                          • \n \n
                                            \n
                                            ${t._("WARNING")} ${t._("ALT")}
                                            \n ${f} ${e} ${d}\n
                                            \n ${g}\n
                                          • `,a.push(b)}else{const e=0===d.length?`
                                            ${t._("MISSING")}
                                            `:`${d}`;b=`\n
                                          • \n \n
                                            \n
                                            ${t._("ERROR")} ${t._("ALT")}
                                            ${f} ${e}\n
                                            \n ${g}\n
                                          • `,a.push(b)}}),n.Panel.imagesList.innerHTML=0===a.length?`
                                          • ${t._("NO_IMAGES")}
                                          • `:a.join(" "),document.removeEventListener("sa11y-build-image-outline",s)};"Opened"===v.getItem("sa11y-images")&&s(),document.addEventListener("sa11y-build-image-outline",s)}(this.dismissed,this.imageResults,s),i=e.dismissCount,a=l.error,r=l.warning,n.Panel.skipButton.disabled=!1,n.Panel.panel.classList.add("active"),n.Global.html.setAttribute("data-sa11y-active","true"),n.Panel.skipButton.classList.add("active"),a>0&&r>0?(n.Panel.content.setAttribute("class","errors"),n.Panel.status.innerHTML=`${t._("ERRORS")} ${a} ${t._("WARNINGS")} ${r}`):a>0?(n.Panel.content.setAttribute("class","errors"),n.Panel.status.innerHTML=`${t._("ERRORS")} ${a}`):r>0?(n.Panel.content.setAttribute("class","warnings"),n.Panel.status.innerHTML=`${t._("WARNINGS")} ${r}`):i>0?(n.Panel.status.innerHTML=`${t._("DISMISSED")} ${i}`,n.Panel.skipButton.classList.remove("active")):(n.Panel.content.setAttribute("class","good"),n.Panel.status.innerHTML=`${t._("NO_ERRORS_FOUND")}`),0===document.querySelectorAll("sa11y-annotation").length&&(n.Panel.skipButton.disabled=!0),o=this.results,Mn=e=>{Dn(e,o)},Bn=()=>{Rn(o)},document.addEventListener("keydown",Mn),n.Panel.skipButton.addEventListener("click",Bn),s.exportResultsPlugin&&function(e,t){n.Global.exportResultsPlugin&&(F=async()=>{await U(e,t)},K=()=>{H(e)},n.Panel.exportHTML.addEventListener("click",F),n.Panel.exportCSV.addEventListener("click",K))}(this.results,e.dismissedResults),N(n.Panel.pageIssuesList,n.Panel.pageIssuesContent),Nn(s.ignoreHiddenOverflow),document.querySelectorAll("sa11y-annotation").forEach(e=>{const t=e.nextElementSibling;null!==t&&"SA11Y-ANNOTATION"===t.tagName&&customElements.get("sa11y-annotation")&&t.shadowRoot.querySelector("button").setAttribute("style","margin: -5px -15px !important;")})}n.Panel.toggle.disabled=!1}var o,i,a,r;window.sa11yCheckComplete=null;const l=new CustomEvent("sa11y-check-complete",{detail:{results:this.results,page:window.location.pathname}});window.sa11yCheckComplete=l.detail,document.dispatchEvent(l)},this.resetAll=(e=!0)=>{for(n.Global.html.removeAttribute("data-sa11y-active"),k(["sa11y-annotation","sa11y-heading-label","sa11y-heading-anchor","sa11y-tooltips","[data-sa11y-readability-period]","[data-sa11y-clone-image-text]"],"document"),x(["data-sa11y-parent","data-sa11y-error","data-sa11y-warning","data-sa11y-good","data-sa11y-error-inline","data-sa11y-warning-inline","data-sa11y-overflow","data-sa11y-pulse-border","data-sa11y-filter","data-sa11y-has-shadow-root"],"document"),n.Panel.outlineList.innerHTML="",s.showImageOutline&&(n.Panel.imagesList.innerHTML=""),n.Panel.pageIssuesList.innerHTML="",n.Panel.readabilityInfo.innerHTML="",n.Panel.readabilityDetails.innerHTML="",n.Panel.panel.classList.remove("has-page-issues"),n.Panel.pageIssues.classList.remove("active"),n.Panel.settingsContent.classList.remove("hide-settings-border"),n.Panel.panel.querySelector("#readability-alert")?.remove(),I(),document.removeEventListener("keydown",Mn),n.Panel.skipButton.removeEventListener("click",Bn),n.Global.exportResultsPlugin&&(n.Panel.exportHTML.removeEventListener("click",F),n.Panel.exportCSV.removeEventListener("click",K)),n.Panel.panel?.removeEventListener("click",B),n.Panel.dismissButton?.removeEventListener("click",M),n.Global.colourFilterPlugin&&(n.Panel.colourFilterSelect.value=0,n.Panel.colourPanel.classList.remove("active"),n.Panel.colourFilterSelect.classList.remove("active"),n.Panel.content.hidden=!1);n.Panel.status.firstChild;)n.Panel.status.removeChild(n.Panel.status.firstChild);document.querySelectorAll("[data-sa11y-has-shadow-root]").forEach(e=>{e.shadowRoot.querySelectorAll("style.sa11y-css-utilities").forEach(e=>e.remove()),e.removeAttribute("data-sa11y-has-shadow-root")}),e&&n.Panel.panel.classList.remove("active")},this.disabled=()=>{setTimeout(()=>{"Opened"===v.getItem("sa11y-panel")&&n.Panel.toggle.click(),n.Panel.toggle.disabled=!0},s.delayCheck+10)},this.enabled=()=>{n.Panel.toggle&&(n.Panel.toggle.disabled=!1)},this.find=(e,t,n)=>o(e,t,n),this.prepareDismissal=e=>L(e),this.sanitizeHTML=e=>u(e),this.truncateString=(e,t)=>y(e,t),this.initialize()}}export{t as Lang,Hn as Sa11y}; +const e={checkRoot:"body",containerIgnore:".sa11y-ignore",contrastIgnore:".sr-only",outlineIgnore:"",headerIgnore:"",headerIgnoreSpan:"",headerIgnoreStrings:"",imageIgnore:"",linkIgnore:"",linkIgnoreSpan:"",linkIgnoreStrings:"",aboutContent:"",panelPosition:"right",showMovePanelToggle:!0,checkAllHideToggles:!1,developerChecksOnByDefault:!1,showHinPageOutline:!1,showTitleInPageOutline:!0,showImageOutline:!0,editImageURLofCMS:"",relativePathImageSRC:"",relativePathImageID:"",ignoreEditImageURL:[],ignoreEditImageClass:[],delayCheck:0,delayCustomCheck:500,detectSPArouting:!1,doNotRun:"",headless:!1,selectorPath:!1,shadowComponents:"",autoDetectShadowComponents:!1,showGoodImageButton:!0,showGoodLinkButton:!0,dismissAnnotations:!0,dismissAll:!0,ignoreHiddenOverflow:"",insertAnnotationBefore:"",readabilityPlugin:!0,readabilityRoot:"body",readabilityIgnore:"",contrastPlugin:!0,contrastAAA:!1,contrastAPCA:!1,customChecks:!1,linksAdvancedPlugin:!0,formLabelsPlugin:!0,embeddedContentPlugin:!0,developerPlugin:!0,externalDeveloperChecks:!1,colourFilterPlugin:!0,exportResultsPlugin:!1,susAltStopWords:"",linkStopWords:"",extraPlaceholderStopWords:"",imageWithinLightbox:"",checks:{HEADING_SKIPPED_LEVEL:!0,HEADING_EMPTY_WITH_IMAGE:!0,HEADING_EMPTY:!0,HEADING_FIRST:!0,HEADING_LONG:{maxLength:170},HEADING_MISSING_ONE:!0,MISSING_ALT_LINK:!0,MISSING_ALT_LINK_HAS_TEXT:!0,MISSING_ALT:!0,IMAGE_DECORATIVE_CAROUSEL:{sources:".carousel"},LINK_IMAGE_NO_ALT_TEXT:!0,LINK_IMAGE_TEXT:!0,IMAGE_FIGURE_DECORATIVE:!0,IMAGE_DECORATIVE:!0,LINK_ALT_FILE_EXT:!0,ALT_FILE_EXT:!0,LINK_PLACEHOLDER_ALT:!0,ALT_PLACEHOLDER:!0,LINK_SUS_ALT:!0,SUS_ALT:!0,LINK_IMAGE_LONG_ALT:{maxLength:250},IMAGE_ALT_TOO_LONG:{maxLength:250},LINK_IMAGE_ALT:{dismissAll:!0},LINK_IMAGE_ALT_AND_TEXT:!0,IMAGE_FIGURE_DUPLICATE_ALT:!0,IMAGE_PASS:{dismissAll:!0},DUPLICATE_TITLE:{dismissAll:!0},LINK_EMPTY_LABELLEDBY:!0,LINK_EMPTY_NO_LABEL:!0,LINK_STOPWORD:!0,LINK_STOPWORD_ARIA:!0,LINK_SYMBOLS:!0,LINK_CLICK_HERE:!0,LINK_DOI:{dismissAll:!0},LINK_URL:{maxLength:40},LINK_LABEL:{dismissAll:!0},LINK_EMPTY:!0,LINK_IDENTICAL_NAME:{dismissAll:!0},LINK_NEW_TAB:{dismissAll:!0},LINK_FILE_EXT:!0,LABELS_MISSING_IMAGE_INPUT:!0,LABELS_INPUT_RESET:!0,LABELS_MISSING_LABEL:!0,LABELS_ARIA_LABEL_INPUT:!0,LABELS_NO_FOR_ATTRIBUTE:!0,LABELS_PLACEHOLDER:!0,EMBED_AUDIO:{sources:""},EMBED_VIDEO:{sources:""},EMBED_DATA_VIZ:{sources:""},EMBED_UNFOCUSABLE:!0,EMBED_MISSING_TITLE:!0,EMBED_GENERAL:!0,QA_BAD_LINK:{sources:""},QA_STRONG_ITALICS:!0,QA_IN_PAGE_LINK:!0,QA_DOCUMENT:{sources:"",dismissAll:!0},QA_PDF:{dismissAll:!0},QA_BLOCKQUOTE:!0,TABLES_MISSING_HEADINGS:!0,TABLES_SEMANTIC_HEADING:!0,TABLES_EMPTY_HEADING:!0,QA_FAKE_HEADING:!0,QA_FAKE_LIST:!0,QA_UPPERCASE:!0,QA_UNDERLINE:!0,QA_SUBSCRIPT:!0,QA_NESTED_COMPONENTS:{sources:""},QA_JUSTIFY:!0,QA_SMALL_TEXT:!0,META_LANG:!0,META_SCALABLE:!0,META_MAX:!0,META_REFRESH:!0,DUPLICATE_ID:!0,META_TITLE:!0,UNCONTAINED_LI:!0,TABINDEX_ATTR:!0,HIDDEN_FOCUSABLE:!0,LABEL_IN_NAME:!0,BTN_EMPTY:!0,BTN_EMPTY_LABELLEDBY:!0,BTN_ROLE_IN_NAME:!0,CONTRAST_WARNING:{dismissAll:!0},CONTRAST_INPUT:!0,CONTRAST_ERROR:!0,CONTRAST_PLACEHOLDER:!0,CONTRAST_PLACEHOLDER_UNSUPPORTED:!0,CONTRAST_ERROR_GRAPHIC:!0,CONTRAST_WARNING_GRAPHIC:{dismissAll:!0},CONTRAST_UNSUPPORTED:{dismissAll:!0}}},t={langStrings:{},addI18n(e){this.langStrings=e},_(e){return this.translate(e)},sprintf(e,...t){let n=this._(e);return n=this.prepHTML(n),t&&t.length&&t.forEach(e=>{n=n.replace(/%\([a-zA-z]+\)/,e)}),n},translate(e){return this.langStrings[e]||e},prepHTML:e=>e.replaceAll(/
                                            /g,'').replaceAll(/${t._("ALT")}
                                            `).replaceAll(/{L}/g,`${t._("LINKED")}`)},n=function(){const e={};const o={};const i={};const s={};const a={};return{initializeRoot:function(o,i){if(e.areaToCheck=document.querySelector(o),e.areaToCheck||(e.areaToCheck=document.querySelector("body")),e.Readability=document.querySelector(i),!e.Readability)if(e.areaToCheck){e.Readability=e.areaToCheck;const{readabilityDetails:o,readabilityToggle:s}=n.Panel,a="true"===s?.getAttribute("aria-pressed");if(o&&a){const n=document.createElement("div");n.id="readability-alert",n.innerHTML=`

                                            ${t.sprintf("MISSING_READABILITY_ROOT",e.areaToCheck.tagName.toLowerCase(),i)}

                                            `,o.insertAdjacentElement("afterend",n)}}else e.Readability=document.querySelector("body")},Root:e,initializeGlobal:function(e){o.html=document.querySelector("html"),o.headless=e.headless,o.panelPosition=e.panelPosition,o.dismissAnnotations=e.dismissAnnotations,o.aboutContent=e.aboutContent,o.contrastAPCA=e.contrastAPCA,o.contrastSuggestions=e.contrastSuggestions,o.contrastAAA=e.contrastAAA,o.shadowDetection=e.shadowComponents.length>0||!0===e.autoDetectShadowComponents,o.developerPlugin=e.developerPlugin,o.colourFilterPlugin=e.colourFilterPlugin,o.checkAllHideToggles=e.checkAllHideToggles,o.exportResultsPlugin=e.exportResultsPlugin,o.readabilityPlugin=e.readabilityPlugin,o.showImageOutline=e.showImageOutline,o.editImageURLofCMS=e.editImageURLofCMS,o.relativePathImageSRC=e.relativePathImageSRC,o.relativePathImageID=e.relativePathImageID,o.ignoreEditImageURL=e.ignoreEditImageURL,o.ignoreEditImageClass=e.ignoreEditImageClass,o.showMovePanelToggle=e.showMovePanelToggle;let t=!1;"function"==typeof window.matchMedia&&(t=window.matchMedia("(prefers-reduced-motion: reduce)")),o.scrollBehaviour=!t||t.matches?"auto":"smooth",o.langDirection="rtl"===o.html.getAttribute("dir")?"rtl":"ltr";const n=e.checks.QA_DOCUMENT.sources,i='a[href$=".doc"], a[href$=".docx"], a[href*=".doc?"], a[href*=".docx?"], a[href$=".ppt"], a[href$=".pptx"], a[href*=".ppt?"], a[href*=".pptx?"], a[href^="https://drive.google.com/file"], a[href^="https://docs.google."], a[href^="https://sway."]';o.documentSources=n?`${i}, ${n}`:i;const s=e.checks.EMBED_VIDEO.sources,a='video, [src*="Video"], [src*="video"], [src*="watch"], [src*="youtube.com"], [src*="vimeo.com"], [src*="panopto.com"], [src*="wistia.com"], [src*="dailymotion.com"], [src*="brightcove.com"], [src*="vidyard.com"]';if(s){const e=s.split(/\s*[\s,]\s*/).map(e=>`[src*="${e}"]`);o.VideoSources=`${a}, ${e.join(", ")}`}else o.VideoSources=a;const r=e.checks.EMBED_AUDIO.sources,l='audio, [src*="soundcloud.com"], [src*="simplecast.com"], [src*="podbean.com"], [src*="buzzsprout.com"], [src*="blubrry.com"], [src*="transistor.fm"], [src*="fusebox.fm"], [src*="libsyn.com"], [src*="spotify.com"], [src*="podcasts.apple.com"], [src*="castbox.fm"], [src*="megaphone.fm"], [src*="spreaker.com"], [src*="anchor.fm"], [src*="rss.com"], [src*="redcircle.com"]';if(r){const e=r.split(/\s*[\s,]\s*/).map(e=>`[src*="${e}"]`);o.AudioSources=`${l}, ${e.join(", ")}`}else o.AudioSources=l;const c=e.checks.EMBED_DATA_VIZ.sources,d='[src*="datastudio"], [src*="tableau"], [src*="lookerstudio"], [src*="powerbi"], [src*="qlik"]';if(c){const e=c.split(/\s*[\s,]\s*/).map(e=>`[src*="${e}"]`);o.VisualizationSources=`${d}, ${e.join(", ")}`}else o.VisualizationSources=d;o.AllEmbeddedContent=`${o.VideoSources}, ${o.AudioSources}, ${o.VisualizationSources}`},Global:o,initializePanelSelectors:function(){const e=document.querySelector("sa11y-control-panel").shadowRoot;i.panel=e.getElementById("panel"),i.content=e.getElementById("panel-content"),i.controls=e.getElementById("panel-controls"),i.outline=e.getElementById("outline-panel"),i.outlineContent=e.getElementById("outline-content"),i.outlineList=e.getElementById("outline-list"),i.outlineHeader=e.getElementById("outline-header"),i.images=e.getElementById("images-panel"),i.imagesContent=e.getElementById("images-content"),i.imagesList=e.getElementById("images-list"),i.imagesHeader=e.getElementById("images-header"),i.notifBadge=e.getElementById("notification-badge"),i.notifCount=e.getElementById("notification-count"),i.notifText=e.getElementById("notification-text"),i.status=e.getElementById("status"),i.pageIssues=e.getElementById("page-issues"),i.pageIssuesList=e.getElementById("page-issues-list"),i.pageIssuesHeader=e.getElementById("page-issues-header"),i.pageIssuesContent=e.getElementById("page-issues-content"),i.settings=e.getElementById("settings-panel"),i.settingsHeader=e.getElementById("settings-header"),i.settingsContent=e.getElementById("settings-content"),i.developerToggle=e.getElementById("developer-toggle"),i.readabilityToggle=e.getElementById("readability-toggle"),i.themeToggle=e.getElementById("theme-toggle"),i.developerItem=e.getElementById("developer-item"),i.readabilityItem=e.getElementById("readability-item"),i.darkModeItem=e.getElementById("dark-mode-item"),i.colourPanel=e.getElementById("panel-colour-filters"),i.colourFilterItem=e.getElementById("colour-filter-item"),i.colourFilterSelect=e.getElementById("colour-filter-select"),i.colourFilterIcon=e.getElementById("filter-icon"),i.toggle=e.getElementById("toggle"),i.outlineToggle=e.getElementById("outline-toggle"),i.imagesToggle=e.getElementById("images-toggle"),i.settingsToggle=e.getElementById("settings-toggle"),i.movePanelToggle=e.getElementById("move-panel"),i.skipButton=e.getElementById("skip-button"),i.dismissButton=e.getElementById("dismiss-button"),i.dismissTooltip=e.getElementById("dismiss-tooltip"),i.skipToPageIssues=e.getElementById("skip-to-page-issues"),i.exportHTML=e.getElementById("export-html"),i.exportCSV=e.getElementById("export-csv"),i.alert=e.getElementById("panel-alert"),i.alertText=e.getElementById("panel-alert-text"),i.alertPreview=e.getElementById("panel-alert-preview"),i.alertClose=e.getElementById("close-alert"),i.readability=e.getElementById("readability-panel"),i.readabilityInfo=e.getElementById("readability-info"),i.readabilityDetails=e.getElementById("readability-details")},Panel:i,initializeReadability:function(e){if(e.readabilityPlugin){s.Lang=t._("LANG_CODE").substring(0,2);const e=["en","fr","es","de","nl","it","sv","fi","da","no","nb","nn","pt"],o=n.Global.html.getAttribute("lang");if(o){const t=o.toLowerCase().substring(0,2);e.includes(t)&&e.includes(s.Lang)?s.Plugin=!0:s.Plugin=!1}else s.Plugin=!1}},Readability:s,initializeExclusions:function(e){a.Sa11yElements=["sa11y-heading-label","sa11y-heading-anchor","sa11y-annotation","sa11y-tooltips","sa11y-panel-tooltips","sa11y-control-panel","#sa11y-colour-filters","#sa11y-colour-filters *"];const t=["style","script","noscript"];if(a.Container=["#wpadminbar","#wpadminbar *",...t],e.containerIgnore){const t=e.containerIgnore.split(",").map(e=>e.trim());a.Container=a.Container.concat(t.flatMap(e=>[`${e} *`,e]))}a.Contrast=["link","hr","option","audio","audio *","video","video *",'input[type="color"]','input[type="range"]',"progress","progress *","meter","meter *","iframe","svg title","svg desc",...t],e.contrastIgnore&&(a.Contrast=e.contrastIgnore.split(",").map(e=>e.trim()).flatMap(e=>[e,`${e} *`]).concat(a.Contrast)),a.Readability=["nav li",'[role="navigation"] li',...t],e.readabilityIgnore&&(a.Readability=e.readabilityIgnore.split(",").map(e=>e.trim()).flatMap(e=>[e,`${e} *`]).concat(a.Readability)),a.Headings=e.headerIgnore?e.headerIgnore.split(",").map(e=>e.trim()):[],a.HeaderSpan=e.headerIgnoreSpan?e.headerIgnoreSpan.split(",").map(e=>e.trim()):[],a.Outline=e.outlineIgnore?e.outlineIgnore.split(",").map(e=>e.trim()):[],a.Images=['[role="presentation"]'],e.imageIgnore&&(a.Images=e.imageIgnore.split(",").map(e=>e.trim()).concat(a.Images)),a.Links=[".anchorjs-link"],e.linkIgnore&&(a.Links=e.linkIgnore.split(",").map(e=>e.trim()).concat(a.Links)),a.LinkSpan=e.linkIgnoreSpan?e.linkIgnoreSpan.split(",").map(e=>e.trim()):[]},Exclusions:a}}();function o(e,t,o){let i;"document"===t?i=document:"readability"===t?(i=n.Readability.Root,i||(i=n.Root.areaToCheck)):"root"===t?(i=n.Root.areaToCheck,i||(i=document.body)):"panel"===t?(i=n.Panel.panel,i||(i=document.body)):(i=document.querySelector(t),i||(i=document.body));const s=document.querySelectorAll("[data-sa11y-has-shadow-root]"),a=s?", [data-sa11y-has-shadow-root]":"",r=n.Exclusions.Container.join(", "),l=o?.join(", ")||"",c=l?`, ${l}`:"",d=Array.from(i.querySelectorAll(`:is(${e}${a}):not(${r}${c})`));if(s.length){const t=[];if(d.forEach((n,o)=>{n&&n.matches&&n.matches("[data-sa11y-has-shadow-root]")&&n.shadowRoot&&(t[o]=n.shadowRoot.querySelectorAll(`:is(${e}):not(${r}${c})`))}),t.length>0)for(let e=t.length-1;e>=0;e--)t[e]&&d.splice(e,1,...t[e])}return d.filter(e=>"SLOT"!==e.parentNode.tagName)}const i=(e,t)=>{const n=e=>{if("none"===e)return"";const t=e.includes("url(")||e.includes("image-set(")?e.match(/\/\s*"([^"]+)"/):e.match(/"([^"]+)"/);return t?t[1]:""};return`${n(window.getComputedStyle(e,":before").getPropertyValue("content"))}${t}${n(window.getComputedStyle(e,":after").getPropertyValue("content"))}`},s=e=>{for(let t=0;t<1e3;t++){if(e.nextSibling())return e.previousNode();if(!e.parentNode())return!1}return!1},a=(e,t=!1)=>{const n=e.getAttribute("aria-labelledby");if(!t&&n)return n.split(/\s+/).filter(e=>e.trim()).map(e=>{const t=document.querySelector(`#${CSS.escape(e)}`);return t?r(t,"",1):""}).join(" ");const o=e.getAttribute("aria-label");return o&&o.trim().length>0?o:"noAria"},r=(e,t=[],n=0)=>{const o=a(e,n);if("noAria"!==o)return o;if("TEXTAREA"===e.tagName&&e.hasAttribute("title"))return e.getAttribute("title");let l="";if(!e.children.length)return l=i(e,e.textContent),!l.trim()&&e.hasAttribute("title")?e.getAttribute("title"):l;const c=(d=e,p=!0,u=!0,document.createTreeWalker(d,NodeFilter.SHOW_ALL,{acceptNode:e=>p&&e.nodeType===Node.ELEMENT_NODE||u&&e.nodeType===Node.TEXT_NODE?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT}));var d,p,u;const h=[...t,"noscript","style","script","video","audio"].join(", "),g=h?e.querySelectorAll(h):[];let m=!1,f=!1,b=0,y=!0;for(;c.nextNode()&&y;){b+=1;const e=c.currentNode;if(Array.from(g).some(t=>t.contains(e)))continue;if(e.shadowRoot){const o=e.shadowRoot.querySelectorAll("*");for(let e=0;e{e.nodeType===Node.ELEMENT_NODE?n+=r(e):e.nodeType===Node.TEXT_NODE&&(n+=e.nodeValue)}),l+=n,l+=i(e,"");break}default:l+=i(e,"")}else l+=` ${o}`,s(c)||(y=!1)}return m&&!f&&(l+=` ${m}`),l=l.replace(/[\uE000-\uF8FF]/gu,""),!l.trim()&&e.hasAttribute("title")?e.getAttribute("title"):l};function l(e){if(e.getAttribute("hidden")||0===e.offsetWidth&&0===e.offsetHeight||1===e.clientHeight&&1===e.clientWidth)return!0;return"none"===getComputedStyle(e).getPropertyValue("display")}function c(e){const t=window.getComputedStyle(e),n=t.getPropertyValue("clip-path"),{position:o}=t,i=parseFloat(t.width),s=parseFloat(t.height),{overflow:a}=t;return"inset(50%)"===n||"absolute"===o&&1===i&&1===s&&"hidden"===a}function d(e){if(e.getAttribute("hidden"))return!0;return"none"===getComputedStyle(e).getPropertyValue("display")}function p(e){const t=document.createElement("div");return t.textContent=e,t.innerHTML.replaceAll('"',""").replaceAll("'","'").replaceAll("`","`")}function u(e){return e.replace(/[^\w. ]/gi,e=>`&#${e.charCodeAt(0)};`)}function h(e){if(!e)return"#";const t=String(e).trim();if(/^javascript:/i.test(t))return"#";if(/^data:/i.test(t))return"#";if(!["http:","https:","mailto:","tel:","ftp:"].some(e=>t.toLowerCase().startsWith(e))&&!t.startsWith("/")&&!t.startsWith("#"))return`./${t}`;const n=t.replace(/<[^>]*>/g,"");return encodeURI(n)}function g(e,t=!1){const n=document.createElement("div");n.innerHTML=e,["script","style","noscript","iframe","form"].forEach(e=>{const t=n.getElementsByTagName(e);for(;t.length>0;)t[0].parentNode.removeChild(t[0])});return Array.from(n.getElementsByTagName("*")).forEach(e=>{Array.from(e.attributes).forEach(t=>{t.name.startsWith("on")&&e.removeAttribute(t.name)}),t||e.removeAttribute("style")}),n.innerHTML}function m(e,t=[]){const n=["noscript","script","style","audio","video","form","iframe",...t].join(", "),o=e.cloneNode(!0);return Array.from(o.querySelectorAll(n)).forEach(e=>{e.parentElement.removeChild(e)}),o}function f(e){return m(e).textContent.replace(/[\r\n]+/g,"").replace(/\s+/g," ").trim()}function b(e){return e.replace(/[\r\n]+/g," ").replace(/\s+/g," ").trim()}function y(e,t){const n=e.substring(0,t).trimEnd();return e.length>t?`${n}...`:e}function A(e,t,n){let o=e;for(;null!==o;){if(window.getComputedStyle(o).getPropertyValue(t)===n)return o;o=o.parentElement}return null}function E(e){const t=e.getBoundingClientRect(),n=window.pageYOffset||document.documentElement.scrollTop;return{top:t.top+n}}const v={getItem(e){try{return null===localStorage.getItem(e)?sessionStorage.getItem(e):localStorage.getItem(e)}catch(e){return!1}},setItem(e,t){try{localStorage.setItem(e,t)}catch(n){sessionStorage.setItem(e,t)}return!0},removeItem(e){try{localStorage.removeItem(e)}catch(t){sessionStorage.removeItem(e)}return!0}};function _(e){const t="data-sa11y-pulse-border";e.setAttribute(t,""),setTimeout(()=>{e.removeAttribute(t)},2500)}function L(e){return String(e).replace(/([^0-9a-zA-Z])/g,"").substring(0,256)}function I(){const e=document.querySelector("sa11y-control-panel").shadowRoot,t=e.getElementById("panel-alert"),n=e.getElementById("panel-alert-text"),o=e.getElementById("panel-alert-preview");for(t.classList.remove("active"),o.classList.remove("panel-alert-preview");n.firstChild;)n.removeChild(n.firstChild);for(;o.firstChild;)o.removeChild(o.firstChild)}function T(e,t,n){I();const o=document.querySelector("sa11y-control-panel").shadowRoot,i=o.getElementById("panel-alert"),s=o.getElementById("panel-alert-text"),a=o.getElementById("panel-alert-preview"),r=o.getElementById("close-alert"),l=o.getElementById("skip-button");i.classList.add("active"),s.innerHTML=e;const c=n?`
                                            ${n}
                                            `:"";function d(){I();(l.hasAttribute("disabled")?o.getElementById("toggle"):l).focus()}t&&(a.classList.add("panel-alert-preview"),a.innerHTML=`${c}
                                            ${t}
                                            `),setTimeout(()=>{r.focus()},300),r.addEventListener("click",d),i.onkeydown=e=>{"Escape"===(e||window.event).key&&i.classList.contains("active")&&d()}}function x(e,t){e.forEach(e=>{o(`[${e}]`,`${t}`).forEach(t=>{t.removeAttribute(e)})})}function k(e,t){o(`${e}`,`${t}`).forEach(e=>{e.parentNode.removeChild(e)})}function N(e,t,n){setTimeout(()=>{e.scrollHeight>t.clientHeight?(t.classList.add("scrollable"),e.setAttribute("tabindex","0"),n&&(e.setAttribute("aria-label",n),e.setAttribute("role","region"))):t.classList.remove("scrollable")},50)}function S(e){const t=e=>e?.split(",").pop()?.trim()?.split(/\s+/)[0],n=e=>e?new URL(e,window.location.href).href:null,o=t(e.getAttribute("data-src")||e.getAttribute("srcset"));if(o)return n(o);const i=e.closest("picture")?.querySelector("source[srcset]")?.getAttribute("srcset"),s=t(i);return n(s||e.getAttribute("src"))}function w(e,t=!1){const n=e.element,o=`
                                            ${p(y(g(e.htmlPath),600))}
                                            `,i=e=>{const t=f(e),n=y(t,100);return t.length?u(n):o},s={SPAN:i,P:i,A:e=>{const t=f(e),n=y(t,100);return t.length>1&&e.href&&!e.hasAttribute("role")?`${u(n)}`:o},IMG:e=>{const n=e.closest("a[href]"),i=e.alt?`alt="${u(e.alt)}"`:"alt",s=S(e);function a(e){return n?``:``}if(t)return new Promise(e=>{if(s){if(new URL(s,window.location.origin).origin===window.location.origin)fetch(s).then(e=>e.blob()).then(e=>(e=>new Promise((t,n)=>{const o=new FileReader;o.onloadend=()=>{let{result:n}=o;const i=e.type&&e.type.startsWith("image/")?e.type:"image/png";n.startsWith("data:application/octet-stream")&&(n=n.replace("data:application/octet-stream",`data:${i}`)),t(n)},o.onerror=n,o.readAsDataURL(e)}))(e)).then(t=>{const n=t.startsWith("data:image/")?t:h(t);e(a(n))}).catch(()=>{e(a(s))});else{const t=s.startsWith("data:image/")?s:h(s);e(a(t))}}else e(o)});const r=s.startsWith("data:image/")?s:h(s);return s?a(r):o},IFRAME:e=>{const t=e.src,n=e.title?e.title:"",i=e.getAttribute("aria-label");if(t){const e=i||""||n;return``}return o},AUDIO:()=>g(e.htmlPath),VIDEO:()=>g(e.htmlPath)}[n.tagName];return s?s(n):o}function C(e){let t="";const n=r(e).toLowerCase();e.childNodes.forEach(e=>{e.nodeType===Node.TEXT_NODE?t+=e.textContent:e.nodeType===Node.ELEMENT_NODE&&(l(e)||(t+=e.textContent))});let o=t.replace(/[\p{Emoji_Presentation}\p{Extended_Pictographic}]/gu,"");return o=b(o).toLowerCase(),"x"!==o&&(0!==o.length&&!n.includes(o))}const O=function(){const e={};const t={};return{initializeElements:function(t){e.Everything=o("*","root",n.Exclusions.Sa11yElements),e.Contrast=e.Everything.filter(e=>!n.Exclusions.Contrast.some(t=>e.matches(t))&&!n.Exclusions.Contrast.includes(e)),e.Images=e.Everything.filter(e=>"IMG"===e.tagName&&!n.Exclusions.Images.some(t=>e.matches(t))),e.Links=e.Everything.filter(e=>("A"===e.tagName||"a"===e.tagName)&&e.hasAttribute("href")&&!e.matches('[role="button"]')&&!n.Exclusions.Links.some(t=>e.matches(t))),e.Headings=o('h1, h2, h3, h4, h5, h6, [role="heading"][aria-level]',"document",n.Exclusions.Headings),e.HeadingOne=o('h1, [role="heading"][aria-level="1"]',"document",n.Exclusions.Headings),e.ExcludedHeadings=e.Headings.filter(e=>n.Exclusions.Headings.some(t=>e.matches(t))),e.ExcludedOutlineHeadings=e.Headings.filter(e=>n.Exclusions.Outline.some(t=>e.matches(t))),e.OutlineIgnore=O.Found.ExcludedOutlineHeadings.concat(O.Found.ExcludedHeadings),e.Paragraphs=e.Everything.filter(e=>"P"===e.tagName&&!e.closest("table")),e.Lists=e.Everything.filter(e=>"LI"===e.tagName),e.Blockquotes=e.Everything.filter(e=>"BLOCKQUOTE"===e.tagName),e.Tables=e.Everything.filter(e=>"TABLE"===e.tagName&&!e.matches('[role="presentation"]')&&!e.matches('[role="none"]')),e.StrongItalics=e.Everything.filter(e=>["STRONG","EM"].includes(e.tagName)),e.Subscripts=e.Everything.filter(e=>["SUP","SUB"].includes(e.tagName));const i=t.checks.QA_BAD_LINK.sources;e.CustomErrorLinks=i.length?e.Links.filter(e=>i.split(",").some(t=>e.matches(t.trim()))):[];const s=e=>n.Root.Readability.contains(e)&&!n.Exclusions.Readability.some(t=>e.matches(t));e.Readability=[...e.Paragraphs.filter(s),...e.Lists.filter(s)];const a=t.checks.QA_NESTED_COMPONENTS.sources||'[role="tablist"], details';e.NestedComponents=a?e.Everything.filter(e=>e.matches(a)):[],e.TabIndex=e.Everything.filter(e=>e.hasAttribute("tabindex")&&"0"!==e.getAttribute("tabindex")&&!e.getAttribute("tabindex").startsWith("-")),e.Svg=e.Everything.filter(e=>"svg"===e.tagName),e.Buttons=e.Everything.filter(e=>"BUTTON"===e.tagName||e.matches('[role="button"]')),e.Inputs=e.Everything.filter(e=>["INPUT","SELECT","TEXTAREA","METER","PROGRESS"].includes(e.tagName)),e.Labels=e.Everything.filter(e=>"LABEL"===e.tagName),e.iframes=e.Everything.filter(e=>["IFRAME","AUDIO","VIDEO"].includes(e.tagName)),e.Videos=e.iframes.filter(e=>e.matches(n.Global.VideoSources)),e.Audio=e.iframes.filter(e=>e.matches(n.Global.AudioSources)),e.Visualizations=e.iframes.filter(e=>e.matches(n.Global.VisualizationSources)),e.EmbeddedContent=e.iframes.filter(e=>!e.matches(n.Global.AllEmbeddedContent));const r=document.querySelector("html");e.Language=r.getAttribute("lang")},Found:e,initializeAnnotations:function(){t.Array=o("sa11y-annotation","document"),t.Array.forEach((e,t)=>{e.setAttribute("data-sa11y-position",t)})},Annotations:t}}();const P=e=>{if(0===e.shadowRoot.querySelectorAll(".sa11y-css-utilities").length){const t=document.createElement("style");t.setAttribute("class","sa11y-css-utilities"),t.textContent="[data-sa11y-overflow]{overflow:auto!important}[data-sa11y-clone-image-text]{display:none!important}[data-sa11y-readability-period]{clip:rect(1px,1px,1px,1px)!important;border:0!important;clip-path:inset(50%)!important;display:block!important;height:1px!important;overflow:hidden!important;padding:0!important;position:absolute!important;white-space:nowrap!important;width:1px!important}[data-sa11y-error-inline],[data-sa11y-error]{outline:5px solid var(--sa11y-error)!important;outline-offset:2px}[data-sa11y-warning-inline]:not([data-sa11y-error-inline]),[data-sa11y-warning]:not([data-sa11y-error]){outline:5px solid var(--sa11y-warning)!important;outline-offset:2px}[data-sa11y-pulse-border]{animation:pulse 2s 3;box-shadow:0;outline:5px solid var(--sa11y-focus-color)!important}[data-sa11y-pulse-border]:focus,[data-sa11y-pulse-border]:hover{animation:none}@keyframes pulse{0%{box-shadow:0 0 0 5px var(--sa11y-focus-color)}70%{box-shadow:0 0 0 12px var(--sa11y-pulse-color)}to{box-shadow:0 0 0 5px var(--sa11y-pulse-color)}}@media (prefers-reduced-motion:reduce){[data-sa11y-pulse-border]{animation:none!important}}@media (forced-colors:active){[data-sa11y-error-inline],[data-sa11y-error],[data-sa11y-good],[data-sa11y-pulse-border],[data-sa11y-warning-inline],[data-sa11y-warning]{forced-color-adjust:none}}",e.shadowRoot.appendChild(t)}};function R(e,t,n){if(!0===e){let e=window.location.href;const o=function(e,t){let n=null;return(...o)=>{window.clearTimeout(n),n=window.setTimeout(()=>{e(...o)},t)}}(async()=>{e!==window.location.href&&("Closed"!==v.getItem("sa11y-panel")&&v.getItem("sa11y-panel")?(n(!1),await t()):t(),e=window.location.href)},250);window.addEventListener("click",o),window.addEventListener("keydown",o)}}function D(e,o){const i=JSON.parse(localStorage.getItem("sa11y-dismissed")||"[]"),s=window.location.pathname,a=[...e.filter(e=>i.some(t=>((e,t)=>t.key.includes(e.dismiss)&&t.href===s&&("warning"===e.type||"good"===e.type))(e,t))),...e.filter(e=>i.some(t=>((e,t)=>"string"==typeof t.dismissAll&&e.dismissAll===t.dismissAll&&t.href===s)(e,t)))],r=a.length,l=e.filter(e=>!a.some(t=>t.dismiss===e.dismiss&&("warning"===e.type||"good"===e.type)));return r?(n.Panel.dismissButton.classList.add("active"),n.Panel.dismissTooltip.innerText=t.sprintf("PANEL_DISMISS_BUTTON",r),o.object.setContent(t.sprintf("PANEL_DISMISS_BUTTON",r))):n.Panel.dismissButton.classList.remove("active"),{dismissedIssues:i,updatedResults:l,dismissCount:r,dismissedResults:a}}let M,B;function $(e,i,s,a){if(n.Global.dismissAnnotations){B=n=>{(async(e,n,i,s)=>{let a=JSON.parse(v.getItem("sa11y-dismissed"));const r=e.target;if(document.querySelector("sa11y-panel-tooltips").hidden=!1,"BUTTON"===r.tagName&&r.hasAttribute("data-sa11y-dismiss")){const e=parseInt(r.getAttribute("data-sa11y-dismiss"),10),l=n.find(t=>t.id===e);if(null===a&&(setTimeout(()=>T(t._("DISMISS_REMINDER")),0),a=[]),l.dismiss){const e=r.hasAttribute("data-sa11y-dismiss-all")?l.dismissAll:"",t={key:l.dismiss,href:window.location.pathname,...e?{dismissAll:e}:{}},n=o(`[data-sa11y-annotation='${l.id}']`),c=n[0]?n[0].getAttribute("data-sa11y-position"):0;v.setItem("sa11y-latest-dismissed",c),v.setItem("sa11y-dismiss-item",JSON.stringify(t)),a.push(t),v.setItem("sa11y-dismissed",JSON.stringify(a)),v.removeItem("sa11y-dismiss-item");const d=r?.closest("[data-tippy-root]");d&&setTimeout(()=>{d.remove()},0),s(!1),await i()}}})(n,e,s,a)};document.querySelector("sa11y-tooltips").shadowRoot.addEventListener("click",B),n.Panel.panel.addEventListener("click",B)}M=()=>{(async(e,t,o)=>{document.querySelector("sa11y-panel-tooltips").hidden=!0;const i=e.filter(e=>e.href!==window.location.pathname);v.setItem("sa11y-dismissed",JSON.stringify(i)),n.Panel.dismissButton.classList.remove("active"),o(!1),await t()})(i,s,a)},n.Panel.dismissButton?.addEventListener("click",M)}function G(){const e=new Date,t=String(e.getDate()).padStart(2,"0"),n=String(e.getMonth()+1).padStart(2,"0"),o=e.getFullYear(),i=(new Date).toLocaleString(),s=`${n}-${t}-${o}`,a=document.querySelector("head title"),r=!a||0===a.textContent.trim().length;return{date:i,numericDate:s,titleCheck:r,metaTitle:r?"":a.textContent,pageURL:window.location.href}}async function U(e,n){const o=await async function(e,n){const o=e.filter(e=>"error"===e.type),i=e.filter(e=>"warning"===e.type),s={error:o.length,warning:i.length,dismiss:n.length};async function a(e,n){const o={error:t._("ERRORS"),warning:t._("WARNINGS"),dismissed:t._("DISMISSED")}[n];if(!(e.length>0))return"";let i=`

                                            ${o}

                                            `,a=`
                                              `,r="
                                            ";"dismissed"===n&&(a=`
                                            ${t.sprintf("PANEL_DISMISS_BUTTON",s.dismiss)}
                                              `,r="
                                            "),i+=a;const l=e.map(async e=>{let n="";if(e.element){const o=["IMG","IFRAME","AUDIO","VIDEO"],i=await w(e,!0);n=o.includes(e.element.tagName)?`
                                          • ${t._("PREVIEW")}: ${i}
                                          • ${t._("ELEMENT")}:
                                            ${p(e.htmlPath)}
                                          • `:`
                                          • ${t._("ELEMENT")}:
                                            ${p(e.htmlPath)}
                                          • `}const o=e.cssPath?`
                                          • ${t._("PATH")}:
                                            ${e.cssPath}
                                          • `:"";return`
                                          • ${e.content}
                                              ${n}${o}
                                          • `});return i+=(await Promise.all(l)).join(""),i+=r,i}const r=await a(o,"error"),l=await a(i,"warning"),c=await a(n,"dismissed"),d=G(),u=d.titleCheck?"":`
                                            ${t._("PAGE_TITLE")}
                                            ${d.metaTitle}
                                            `,h=0!==s.error?`
                                            ${t._("ERRORS")}
                                            ${s.error}
                                            `:"",g=0!==s.warning?`
                                            ${t._("WARNINGS")}
                                            ${s.warning}
                                            `:"",m=0!==s.dismiss?`
                                            ${t._("DISMISSED")}
                                            ${s.dismiss}
                                            `:"";return`\n \n \n \n \n \n ${t._("RESULTS")}: ${d.metaTitle}\n \n \n \n
                                            \n

                                            ${t._("RESULTS")}

                                            \n
                                            \n
                                            \n ${u}\n
                                            URL
                                            \n
                                            ${d.pageURL}
                                            \n
                                            ${t._("DATE")}
                                            \n
                                            ${d.date}
                                            \n
                                            \n
                                            \n ${h}\n ${g}\n ${m}\n
                                            \n
                                            \n
                                            \n
                                            \n ${r}\n ${l}\n ${c}\n
                                            \n
                                            \n

                                            ${t.sprintf("GENERATED",'Sa11y')}

                                            \n
                                            \n \n \n `}(e,n),i=G(),s=new Blob([o],{type:"text/html"}),a=document.createElement("a"),r=i.titleCheck?"":`_${i.metaTitle.trim().replace(/ /g,"")}`;a.href=window.URL.createObjectURL(s),a.download=`Sa11y_${i.numericDate+r}.html`,document.body.appendChild(a),a.click(),setTimeout(()=>{document.body.removeChild(a),window.URL.revokeObjectURL(a.href)},100)}function H(e){const t=G(),n=e.filter(e=>"warning"===e.type||"error"===e.type).map(e=>{const{type:n,content:o,htmlPath:i,cssPath:s}=e,a=o.replaceAll(/]*>.*?<\/span>/gi,"").replaceAll(''," | ").replaceAll(/"/g,'""');const r=function(e){return e.replace(/&(#?[a-zA-Z0-9]+);/g,(e,t)=>{switch(t){case"amp":return"&";case"lt":return"<";case"gt":return">";case"quot":case"#39":return"'";default:return"#"===t.charAt(0)?String.fromCharCode("x"===t.charAt(1)?parseInt(t.substr(2),16):parseInt(t.substr(1),10)):e}})}(String(a).replace(/<[^>]*>/g,"")),l={Title:`"${t.metaTitle}"`,URL:`"${t.pageURL}"`,Type:`"${String(n)}"`,Issue:`"${r}"`,Element:`"${i}"`};return s&&(l.Path=`"${s}"`),l}),o=Object.keys(n[0]),i=`${o.join(",")}\n${n.map(e=>o.map(t=>e[t]).join(",")).join("\n")}`,s=new Uint8Array([239,187,191]),a=new Blob([s,i],{type:"text/csv;charset=utf-8;"}),r=window.URL.createObjectURL(a),l=document.createElement("a");l.href=r,l.href=window.URL.createObjectURL(a);const c=t.titleCheck?"":`_${t.metaTitle.trim().replace(/ /g,"")}`;l.setAttribute("download",`Sa11y_${t.numericDate+c}.csv`),document.body.appendChild(l),l.click(),setTimeout(()=>{document.body.removeChild(l),window.URL.revokeObjectURL(l.href)},100)}let F,K;const W="4.2.1";var Y='.visually-hidden{clip:rect(1px,1px,1px,1px);border:0;clip-path:inset(50%);display:block;height:1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px}[hidden]{display:none!important}.header-text,.header-text-inline,h2{color:var(--sa11y-panel-primary);display:block;font-size:var(--sa11y-large-text);font-weight:600;margin-bottom:3px}.header-text-inline{display:inline-block!important}code{font-family:monospace!important;font-size:calc(var(--sa11y-normal-text) - 1px);font-weight:600}pre:has(code){display:block;overflow:auto;white-space:pre-wrap}.kbd,code,kbd,pre{background-color:var(--sa11y-panel-badge);border-radius:3.2px;color:var(--sa11y-panel-primary);padding:1.6px 4.8px}.bold{font-weight:600}.error .colour,.red-text{color:var(--sa11y-red-text);font-family:var(--sa11y-font-face)}.warning .colour,.yellow-text{color:var(--sa11y-yellow-text);font-family:var(--sa11y-font-face)}.badge,.normal-badge{background-color:var(--sa11y-panel-badge);border-radius:10px;color:var(--sa11y-panel-primary);display:inline;font-size:14px;font-weight:700!important;line-height:1;min-width:10px;outline:1px solid transparent;padding:1px 5px 1.75px;text-align:center;vertical-align:baseline;white-space:nowrap}.error .badge{background:var(--sa11y-error);color:var(--sa11y-error-text)}.error-badge{background:var(--sa11y-error)!important;color:var(--sa11y-error-text)!important}.warning .badge{background:var(--sa11y-yellow-text);color:var(--sa11y-panel-bg)}.warning-badge{background:var(--sa11y-yellow-text)!important;color:var(--sa11y-panel-bg)!important}.good-contrast{background:var(--sa11y-good)!important;color:var(--sa11y-good-text)!important}#contrast-preview{background-color:#e8e8e8;background-image:linear-gradient(45deg,#ccc 25%,transparent 0,transparent 75%,#ccc 0,#ccc),linear-gradient(45deg,#ccc 25%,transparent 0,transparent 75%,#ccc 0,#ccc);background-position:0 0,5px 5px;background-size:10px 10px;border:2px dashed var(--sa11y-panel-bg-splitter);border-radius:3.2px;line-height:1;margin-top:10px;max-height:100px;overflow:clip;overflow-wrap:break-word;padding:5px}#color-pickers{display:flex;justify-content:space-between;margin-bottom:10px;margin-top:10px}#color-pickers label{align-items:center;display:flex}#color-pickers input{margin-inline-start:7px}input[type=color i]{background:var(--sa11y-panel-bg-secondary);block-size:30px;border-color:var(--sa11y-button-outline);border-radius:50%;border-style:solid;border-width:1px;inline-size:30px;padding:2px}input[type=color i]::-webkit-color-swatch-wrapper{padding:1px}input[type=color i]::-webkit-color-swatch{border-color:var(--sa11y-button-outline);border-radius:50%}input[type=color i]::-moz-color-swatch{border-color:var(--sa11y-button-outline);border-radius:50%}input[type=color i].unknown{box-shadow:0 0 0 2px var(--sa11y-yellow-text)}input[type=color i].unknown:after{align-items:center;color:#fff;content:"?";display:flex;font-size:18px;height:24px;justify-content:center;margin:-24px 0;pointer-events:none;position:absolute;width:24px;z-index:2}.close-btn{background:var(--sa11y-panel-bg-secondary);border:2px solid var(--sa11y-button-outline);border-radius:50%;color:var(--sa11y-panel-primary);cursor:pointer;float:var(--sa11y-float-rtl);font-size:var(--sa11y-normal-text);font-weight:400;height:32px;margin:0;position:relative;transition:all .2s ease-in-out;width:32px}.close-btn:focus,.close-btn:hover{background-color:var(--sa11y-shortcut-hover)}.close-btn:after{background:var(--sa11y-setting-switch-bg-off);content:"";inset:-7px;-webkit-mask:var(--sa11y-close-btn-svg) center no-repeat;mask:var(--sa11y-close-btn-svg) center no-repeat;position:absolute}@media screen and (forced-colors:active){.close-btn:after{filter:invert(1)}}#container [tabindex="-1"]:focus,#container [tabindex="0"]:focus,#container a:focus,#container button:focus,#container input:focus,#container select:focus{box-shadow:0 0 0 5px var(--sa11y-focus-color);outline:0}#container #panel-controls button:focus,#container .switch:focus{box-shadow:inset 0 0 0 4px var(--sa11y-focus-color);outline:0}#container #panel-controls button:focus:not(:focus-visible),#container [tabindex="-1"]:focus:not(:focus-visible),#container [tabindex="0"]:focus:not(:focus-visible),#container button:focus:not(:focus-visible),#container input:focus:not(:focus-visible),#container select:focus:not(:focus-visible){box-shadow:none;outline:0}#container [tabindex="-1"]:focus-visible,#container [tabindex="0"]:focus-visible,#container a:focus-visible,#container button:not(#panel-controls button):not(.switch):focus-visible,#container input:focus-visible,#container select:focus-visible{box-shadow:0 0 0 5px var(--sa11y-focus-color);outline:0}#container #panel-controls button:focus-visible,#container .switch:focus-visible{box-shadow:inset 0 0 0 4px var(--sa11y-focus-color);outline:0}@media screen and (forced-colors:active){#panel-controls button:focus{border:3px solid transparent}#container [tabindex="-1"]:focus,#container [tabindex="0"]:focus,#container a:focus,#container button:focus,#container select:focus,.close-btn:focus{outline:3px solid transparent!important}}';class z extends HTMLElement{constructor(e){super(),this.error=e}connectedCallback(){const e=this.attachShadow({mode:"open"}),o=document.createElement("style");o.innerHTML=":host{background:var(--sa11y-panel-bg);border-top:5px solid var(--sa11y-panel-bg-splitter);bottom:0;display:block;height:-moz-fit-content;height:fit-content;left:0;position:fixed;right:0;width:100%;z-index:999999}*{-webkit-font-smoothing:auto!important;color:var(--sa11y-panel-primary);font-family:var(--sa11y-font-face)!important;font-size:var(--sa11y-normal-text);line-height:22px!important}#dialog{margin:20px auto;max-width:900px;padding:20px}h2{font-size:var(--sa11y-large-text);margin-top:0}a{color:var(--sa11y-hyperlink);cursor:pointer;text-decoration:underline}a:focus,a:hover{text-decoration:none}p{margin-top:0}.error{background:var(--sa11y-error);border:2px dashed #f08080;color:var(--sa11y-error-text);margin-bottom:0;padding:5px}"+Y,e.appendChild(o);const i=document.createElement("div");i.setAttribute("id","dialog"),i.setAttribute("tabindex","-1");const s=window.location,a=`## Error Description\n\`\`\`javascript\n${this.error.stack}\n\`\`\`\n\n## Details\n- **URL:** ${s}\n- **Version:** ${W}\n\n## Comments\n`,r=`https://github.com/ryersondmp/sa11y/issues/new?title=Bug%20report&body=${encodeURIComponent(a)}`;i.innerHTML=`\n \n

                                            ${t._("ERROR")}

                                            \n

                                            ${t.sprintf("CONSOLE_ERROR","https://forms.gle/sjzK9XykETaoqZv99",r)}

                                            \n

                                            ${p(this.error.stack)}

                                            Version: ${W}
                                            URL: ${s}

                                            \n `,e.appendChild(i),setTimeout(()=>{n.Panel.toggle.style.display="none";const e=document.querySelector("sa11y-console-error");e.shadowRoot.getElementById("dialog").focus();e.shadowRoot.querySelector(".close-btn").addEventListener("click",()=>{e.remove()})},0)}}class Q extends HTMLElement{connectedCallback(){this.attachShadow({mode:"open"});const e=document.createElement("style");e.textContent='a,button,code,div,h1,h2,h3,kbd,label,li,ol,p,pre,span,strong,svg,ul{all:unset;box-sizing:border-box!important}:after,:before{all:unset}div{display:block}*{-webkit-font-smoothing:auto!important;font-family:var(--sa11y-font-face)!important}label,li,ol,p,ul{font-size:var(--sa11y-normal-text);font-weight:400;letter-spacing:normal;line-height:22px!important;text-align:start;word-break:break-word}.sa11y-overflow{overflow:auto}iframe,img,video{border:0;display:block;height:auto;max-width:100%}audio{max-width:100%}#toggle{align-items:center;background:linear-gradient(0deg,#e040fb,#00bcd4);background-color:var(--sa11y-setting-switch-bg-off);background-size:150% 150%;border-radius:50%;bottom:var(--sa11y-toggle-y-offset);color:#fff;cursor:pointer;display:flex;height:55px;inset-inline-end:var(--sa11y-toggle-x-offset);justify-content:center;margin:0;overflow:visible;position:fixed;transition:all .2s ease-in-out;width:55px;z-index:2147483644}#toggle.left,#toggle.top-left{inset-inline-start:var(--sa11y-toggle-x-offset)}#toggle.top-left,#toggle.top-right{bottom:unset;top:var(--sa11y-toggle-y-offset)}@media screen and (forced-colors:active){#toggle{background:ButtonFace!important;border:2px solid transparent}}#toggle svg{height:35px;width:35px}#toggle svg path{fill:var(--sa11y-panel-bg)}#toggle:focus,#toggle:hover{animation:sa11y-toggle-gradient 3s ease}#toggle:disabled:focus,#toggle:disabled:hover{animation:none}#toggle.on{background:linear-gradient(180deg,#e040fb,#00bcd4)}#toggle:disabled{background:unset;background-color:var(--sa11y-setting-switch-bg-off);cursor:not-allowed}#notification-badge{text-wrap:nowrap;align-items:center;background-color:#eb0000;border:1px solid transparent;border-radius:12px;color:#fff;display:none;font-size:13.5px;font-weight:400;justify-content:center;line-height:1;min-width:20px;padding:2.5px;position:absolute;right:-3px;top:-5.5px}#notification-badge.notification-badge-warning{background-color:var(--sa11y-warning-hover);border:1px solid var(--sa11y-warning);color:var(--sa11y-warning-text)}#panel{background:var(--sa11y-panel-bg);border-radius:4px;bottom:calc(var(--sa11y-toggle-y-offset) + var(--sa11y-panel-y-gap));box-shadow:0 0 20px 4px rgba(154,161,177,.15),0 4px 80px -8px rgba(36,40,47,.25),0 4px 4px -2px rgba(91,94,105,.15);inset-inline-end:calc(var(--sa11y-toggle-x-offset) + var(--sa11y-panel-x-gap));opacity:0;overflow:visible;position:fixed;transform:scale(0);transform-origin:100% 100%;transition:transform .2s,opacity background .2s .2s;visibility:hidden;z-index:2147483643}#panel.left,#panel.top-left{inset-inline-end:unset;inset-inline-start:calc(var(--sa11y-toggle-x-offset) + var(--sa11y-panel-x-gap))}#panel.top-left,#panel.top-right{bottom:unset;top:calc(var(--sa11y-toggle-y-offset) + var(--sa11y-panel-y-gap) + 10px)}#panel.active{height:auto;opacity:1;transform:scale(1);transform-origin:bottom right;transition:transform .2s,opacity .2s;visibility:visible}@media screen and (forced-colors:active){#panel{border:2px solid transparent}}#panel.active.left,[dir=rtl] #panel.active{transform-origin:bottom left}#panel.active.top-left{transform-origin:top left}#panel.active.top-right{transform-origin:top right}#panel-alert{display:none;opacity:0}#panel-alert.active{display:block;opacity:1}#panel-alert-content{align-items:center;border-bottom:1px solid var(--sa11y-panel-bg-splitter);color:var(--sa11y-panel-primary);line-height:22px;max-height:400px;overflow-y:auto;padding:15px 20px 15px 15px;position:relative}.top-left #panel-alert-content,.top-right #panel-alert-content{border:0}#panel-alert-preview .close-tooltip{display:none}#panel-alert-preview,#panel-alert-text{font-family:var(--sa11y-font-face);font-size:var(--sa11y-normal-text);font-weight:400;line-height:22px}.panel-alert-preview{background:var(--sa11y-panel-bg-secondary);border:1px dashed var(--sa11y-panel-bg-splitter);border-radius:5px;margin-top:15px;padding:10px}.panel-alert-preview ul{margin:0;margin-block-end:0;margin-block-start:0;padding:0;position:relative}.panel-alert-preview li{display:list-item;margin:5px 10px 0 20px;padding-bottom:5px}.element-preview{background-color:var(--sa11y-element-preview);border-radius:3.2px;margin-bottom:10px;overflow-wrap:break-word;padding:5px}button[data-sa11y-dismiss]{background:var(--sa11y-panel-bg-secondary);border:2px solid var(--sa11y-button-outline);border-radius:5px;color:var(--sa11y-panel-primary);cursor:pointer;display:block;margin:10px 5px 5px 0;margin-inline-end:15px;padding:4px 8px}button[data-sa11y-dismiss]:focus,button[data-sa11y-dismiss]:hover{background:var(--sa11y-shortcut-hover)}h2{font-size:var(--sa11y-large-text);font-weight:700}h2,h3{display:block;margin-bottom:3px}h3{font-size:calc(var(--sa11y-large-text) - 1px)}h3,strong{font-weight:600}a:not(#outline-list a):not(.edit){border-bottom:0;color:var(--sa11y-hyperlink);cursor:pointer;font-weight:500;text-decoration:underline}a:focus,a:hover{text-decoration:none!important}hr{background:var(--sa11y-panel-bg-splitter);border:none;height:1px;margin:10px 0;opacity:1;padding:0}#dismiss-button,#skip-button{background:var(--sa11y-panel-bg-secondary);border:1px solid var(--sa11y-button-outline);border-radius:50px;cursor:pointer;display:none;height:36px;margin-inline-end:8px;margin-inline-start:2px;overflow:visible;position:relative;text-align:center;transition:all .1s ease-in-out;width:36px}#dismiss-button.active,#skip-button.active{display:block}#dismiss-button:disabled,#skip-button:disabled{background:none;border:0;box-shadow:none;cursor:default}#dismiss-button:before,#skip-button:before{content:"";inset:-5px;position:absolute}#dismiss-button:focus:not(:disabled),#dismiss-button:hover:not(:disabled),#skip-button:focus:not(:disabled),#skip-button:hover:not(:disabled){background-color:var(--sa11y-shortcut-hover)}#panel.left #dismiss-button,#panel.left #skip-button,#panel.top-left #dismiss-button,#panel.top-left #skip-button{margin-inline-end:2px;margin-inline-start:8px}.dismiss-icon{background:var(--sa11y-setting-switch-bg-off);display:inline-block;height:24px;margin-bottom:-4px;-webkit-mask:var(--sa11y-dismiss-icon) center no-repeat;mask:var(--sa11y-dismiss-icon) center no-repeat;width:24px}.dismiss-group{display:flex}@media screen and (forced-colors:active){.dismiss-icon{filter:invert(1)}}#panel-content{align-items:center;color:var(--sa11y-panel-primary);display:flex;padding:6px}#panel-content.errors .panel-icon,#panel-content.good .panel-icon,#panel-content.warnings .panel-icon{height:26px;margin:0 auto;width:26px}#panel-content.errors .panel-icon{background:var(--sa11y-panel-error);margin-top:-2px;-webkit-mask:var(--sa11y-error-svg) center no-repeat;mask:var(--sa11y-error-svg) center no-repeat}#panel-content.good .panel-icon{background:var(--sa11y-good);-webkit-mask:var(--sa11y-good-svg) center no-repeat;mask:var(--sa11y-good-svg) center no-repeat}#panel-content.warnings .panel-icon{background:var(--sa11y-yellow-text);-webkit-mask:var(--sa11y-warning-svg) center no-repeat;mask:var(--sa11y-warning-svg) center no-repeat;transform:scaleX(var(--sa11y-icon-direction))}@media screen and (forced-colors:active){#panel-content.errors .panel-icon,#panel-content.good .panel-icon,#panel-content.warnings .panel-icon{filter:invert(1)}}#panel.left #panel-content,#panel.top-left #panel-content{flex-direction:row-reverse}#status{font-size:var(--sa11y-large-text)}#status,.panel-count{color:var(--sa11y-panel-primary)}.panel-count{background-color:var(--sa11y-panel-badge);border-radius:4px;font-size:15px;font-weight:400;margin-left:3px;margin-right:3px;padding:2px 4px}#images-panel,#outline-panel,#page-issues,#settings-panel{color:var(--sa11y-panel-primary);display:none;opacity:0}#images-panel.active,#outline-panel.active,#page-issues.active,#settings-panel.active{display:block;opacity:1}.panel-header{display:flex;justify-content:space-between;padding:10px 15px 0;text-align:start}#about-content{padding-top:5px}#about-content p{display:block;margin-block-end:1em}#images-content,#outline-content,#page-issues-content,#settings-content{border-bottom:1px solid var(--sa11y-panel-bg-splitter);padding:0 15px 10px}.top-left #images-content,.top-left #outline-content,.top-left #page-issues-content,.top-left #settings-content,.top-right #images-content,.top-right #outline-content,.top-right #page-issues-content,.top-right #settings-content{border:0}#page-issues-content{max-height:160px;overflow-y:auto}#settings-content{max-height:400px;overflow-y:auto}#images-content,#outline-content{max-height:250px;overflow-y:auto}#outline-panel .outline-list-item.sa11y-red-text,#settings-panel .sa11y-red-text{color:var(--sa11y-red-text)}#outline-list{display:block;margin:0;padding:0}#outline-list a{cursor:pointer;display:block;text-decoration:none}#outline-list li{display:block;list-style-type:none;margin-bottom:3px;margin-top:0;padding:0}#outline-list li:first-child{margin-top:5px}#outline-list li a:focus,#outline-list li a:hover{background:var(--sa11y-panel-outline-hover);border-radius:5px;box-shadow:0 0 0 2px var(--sa11y-panel-outline-hover);display:block}#outline-list .outline-2{margin-inline-start:15px}#outline-list .outline-3{margin-inline-start:30px}#outline-list .outline-4{margin-inline-start:45px}#outline-list .outline-5{margin-inline-start:60px}#outline-list .outline-6{margin-inline-start:75px}#images-list{display:block;margin:0;padding:0}#images-list li{border-bottom:1px solid var(--sa11y-panel-bg-splitter);display:block;list-style-type:none;margin:15px 0;overflow:hidden;width:100%}#images-list li:first-child{margin-top:5px}#images-list li:last-child{border:none;margin-bottom:0}#images-list li .alt{padding:2px 5px 10px}#images-list li .edit-block{display:flex;justify-content:flex-end;margin-bottom:15px}#images-list li .edit{background:var(--sa11y-panel-bg-secondary);border:2px solid var(--sa11y-button-outline);border-radius:5px;color:var(--sa11y-panel-primary);cursor:pointer;margin-inline-end:5px;padding:4px 7px;position:relative;text-decoration:none}#images-list li .edit:focus,#images-list li .edit:hover{background-color:var(--sa11y-shortcut-hover)}#images-list li .edit:before{content:"";inset:-10px;position:absolute}#images-list li img{border-radius:5px;float:inline-start;margin-block-end:15px;margin-inline-end:10px;max-width:110px}#images-list li.warning .alt{color:var(--sa11y-yellow-text)}#images-list li.warning img{background-color:var(--sa11y-yellow-text);border:5px solid var(--sa11y-yellow-text)}#images-list li.error .alt{color:var(--sa11y-error)}#images-list li.error img{background-color:var(--sa11y-error);border:5px solid var(--sa11y-error)}#images-list li.good img{background-color:var(--sa11y-panel-badge);border:5px solid var(--sa11y-panel-badge)}@media screen and (forced-colors:active){#images-list li img{background-color:ButtonBorder!important}}.move-panel-icon{height:18px;-webkit-mask:var(--sa11y-move-panel-icon);mask:var(--sa11y-move-panel-icon);-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;width:18px}.info-icon,.move-panel-icon{background:var(--sa11y-setting-switch-bg-off);display:inline-block;vertical-align:middle}.info-icon{height:20px;margin-top:-2px;-webkit-mask:var(--sa11y-info-icon);mask:var(--sa11y-info-icon);-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;width:20px}.sun-icon{-webkit-mask:var(--sa11y-sun-icon);mask:var(--sa11y-sun-icon);-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}.moon-icon,.sun-icon{background:var(--sa11y-setting-switch-bg-off);display:inline-block;height:18px;vertical-align:middle;width:18px}.moon-icon{-webkit-mask:var(--sa11y-moon-icon);mask:var(--sa11y-moon-icon);-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}.error-icon{background:var(--sa11y-error-text);margin-bottom:-4px;-webkit-mask:var(--sa11y-error-svg);mask:var(--sa11y-error-svg);-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}.error-icon,.hidden-icon{display:inline-block;height:16px;width:16px}.hidden-icon{margin-bottom:-3px;-webkit-mask:var(--sa11y-hidden-icon-svg);mask:var(--sa11y-hidden-icon-svg);-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}.hidden-icon,.link-icon{background:var(--sa11y-panel-primary)}.link-icon{display:inline-block;height:16px;margin-bottom:-3.5px;-webkit-mask:var(--sa11y-link-icon-svg);mask:var(--sa11y-link-icon-svg);-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;width:16px}.error-badge .hidden-icon,.error-badge .link-icon{background:var(--sa11y-error-text)}.warning-badge .hidden-icon,.warning-badge .link-icon{background:var(--sa11y-panel-bg)}.error .link-icon{background:var(--sa11y-error-text)}.warning .link-icon{background:var(--sa11y-panel-bg)}@media screen and (forced-colors:active){.error-icon,.hidden-icon,.info-icon,.link-icon,.moon-icon,.move-panel-icon,.sun-icon{filter:invert(1)}}#panel-controls{border-bottom:1px solid var(--sa11y-panel-bg-splitter);border-radius:0 0 4px 4px;display:flex;overflow:hidden}#panel-controls button{background:var(--sa11y-panel-bg-secondary);background-color:var(--sa11y-panel-bg-secondary);border-inline-end:1px solid var(--sa11y-panel-bg-splitter);border-top:1px solid var(--sa11y-panel-bg-splitter);color:var(--sa11y-panel-secondary);cursor:pointer;display:block;font-size:var(--sa11y-normal-text);font-weight:400;height:30px;line-height:0;margin:0;opacity:1;outline:0;padding:0;position:relative;text-align:center;transition:background .2s;width:100%}#panel-controls button.active,#panel-controls button:hover{background-color:var(--sa11y-shortcut-hover)}#panel-controls button.active{font-weight:600}#export-results-mode,label{color:var(--sa11y-panel-primary);display:inline-block;font-weight:400;margin:0;width:100%}label:not(#colour-filter-mode,#export-results-mode){cursor:pointer}#panel.right #panel-controls:has(#images-toggle):after{content:"";width:80px}#panel.left #panel-controls:has(#images-toggle):before{content:"";width:50px}#settings-panel .appearance-group,#settings-panel .export-results-group{display:flex;margin:5px 0}#settings-panel .appearance-group button,#settings-panel .export-results-group button{align-items:center;border:2px solid var(--sa11y-setting-switch-bg-off);border-radius:5px;cursor:pointer;display:flex;justify-content:center;margin:2px 0;margin-inline-end:4px;margin-inline-start:8px;min-height:34px;min-width:44px;position:relative;text-align:center;white-space:nowrap}#settings-panel .appearance-group button:focus,#settings-panel .appearance-group button:focus-within,#settings-panel .appearance-group button:hover,#settings-panel .export-results-group button:focus,#settings-panel .export-results-group button:focus-within,#settings-panel .export-results-group button:hover{background:var(--sa11y-shortcut-hover)}#settings-panel .appearance-group button:before,#settings-panel .export-results-group button:before{content:"";inset:-7px;position:absolute}#settings-panel .appearance-group button .text,#settings-panel .export-results-group button .text{color:var(--sa11y-setting-switch-bg-off);font-weight:600;padding:0 6px}#settings-panel .switch{background:none;border:0;border-radius:5px;color:var(--sa11y-setting-switch-bg-off);cursor:pointer;font-size:var(--sa11y-normal-text);font-weight:600;height:44px;margin:0;padding:7px 10px;position:relative;text-align:end;width:105px}#settings-panel .switch[aria-pressed=false]:after,#settings-panel .switch[aria-pressed=true]:after{content:"";display:inline-block;height:27px;margin:0 4px 4px;vertical-align:middle;width:27px}#settings-panel .switch[aria-pressed=true]:after{background:var(--sa11y-setting-switch-bg-on);-webkit-mask:var(--sa11y-setting-switch-on-svg) center no-repeat;mask:var(--sa11y-setting-switch-on-svg) center no-repeat}#settings-panel .switch[aria-pressed=false]:after{background:var(--sa11y-setting-switch-bg-off);-webkit-mask:var(--sa11y-setting-switch-off-svg) center no-repeat;mask:var(--sa11y-setting-switch-off-svg) center no-repeat}@media screen and (forced-colors:active){#settings-panel .switch[aria-pressed=false]:after,#settings-panel .switch[aria-pressed=true]:after{filter:invert(1)}}#settings-panel #settings-options li{align-items:center;border-bottom:1px solid var(--sa11y-panel-bg-splitter);display:flex;justify-content:space-between;list-style-type:none;padding:1px 0}#settings-panel #settings-options li:last-child{border:none}#page-issues{align-items:center;color:var(--sa11y-panel-primary)}#page-issues-list{display:block;margin-top:4px}#page-issues-list li{display:block;margin:0 0 10px}.top-left.has-page-issues #page-issues,.top-right.has-page-issues #page-issues{border-top:1px solid var(--sa11y-panel-bg-splitter);margin-top:-1px}#panel-colour-filters{align-items:center;color:var(--sa11y-panel-primary);display:none;font-family:var(--sa11y-font-face);font-size:var(--sa11y-normal-text);font-weight:400;line-height:22px}#panel-colour-filters.active{display:flex}#panel-colour-filters p{padding:6px 20px 6px 6px;width:100%}#panel-colour-filters[data-colour=protanopia]{border-bottom:6px solid transparent;-o-border-image:linear-gradient(94deg,#786719 11%,#e0c600 36%,#e0c600 47%,#0059e3 75%,#0042aa 91%);border-image:linear-gradient(94deg,#786719 11%,#e0c600 36%,#e0c600 47%,#0059e3 75%,#0042aa 91%);border-image-slice:1}#panel-colour-filters[data-colour=deuteranopia]{border-bottom:6px solid transparent;-o-border-image:linear-gradient(270deg,#567fdb,#a4a28d 48%,#c3ad14 69%,#a79505);border-image:linear-gradient(270deg,#567fdb,#a4a28d 48%,#c3ad14 69%,#a79505);border-image-slice:1}#panel-colour-filters[data-colour=tritanopia]{border-bottom:6px solid transparent;-o-border-image:linear-gradient(270deg,#b1506f,#0696c1 35%,#f3a9ba 70%,#d91c5d 87%,#fe015c);border-image:linear-gradient(270deg,#b1506f,#0696c1 35%,#f3a9ba 70%,#d91c5d 87%,#fe015c);border-image-slice:1}#panel-colour-filters[data-colour=monochromacy]{border-bottom:6px solid transparent;-o-border-image:linear-gradient(270deg,#000,#a7a7a7 50%,#000);border-image:linear-gradient(270deg,#000,#a7a7a7 50%,#000);border-image-slice:1}#panel-colour-filters[data-colour=protanopia] .panel-icon{background:var(--sa11y-panel-error)}#panel-colour-filters[data-colour=deuteranopia] .panel-icon{background:var(--sa11y-good-hover)}#panel-colour-filters[data-colour=tritanopia] .panel-icon{background:var(--sa11y-blue)}#panel-colour-filters[data-colour=monochromacy] .panel-icon{background:linear-gradient(90deg,#38a459 20%,red 50%,#0077c8 80%)}#panel-colour-filters .panel-icon{height:30px;margin-inline-end:5px;margin-inline-start:10px;-webkit-mask:var(--sa11y-low-vision-icon) center no-repeat;mask:var(--sa11y-low-vision-icon) center no-repeat;width:30px}@media screen and (forced-colors:active){#panel-colour-filters .panel-icon{forced-color-adjust:none}}.select-dropdown{align-items:center;display:flex;position:relative}.select-dropdown:after{border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid var(--sa11y-setting-switch-bg-off);content:" ";inset-inline-end:14px;position:absolute}#colour-filter-select{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:var(--sa11y-panel-bg);border:2px solid var(--sa11y-setting-switch-bg-off);border-radius:5px;color:var(--sa11y-setting-switch-bg-off);cursor:pointer;font-size:var(--sa11y-normal-text);font-weight:600;height:30px;margin-inline-end:4px;padding-inline-end:25px;padding-inline-start:5px;position:relative;text-align:end;vertical-align:middle}#colour-filter-select:focus,#colour-filter-select:hover{background:var(--sa11y-shortcut-hover)}#colour-filter-select.active{box-shadow:0 0 0 2px var(--sa11y-setting-switch-bg-on)}#colour-filter-item label,#colour-filter-item select{margin-bottom:9px;margin-top:10px}#readability-panel{display:none;opacity:0}#readability-panel.active{display:block;opacity:1}.top-left #readability-content,.top-right #readability-content{border-top:1px solid var(--sa11y-panel-bg-splitter)}.left #readability-content,.right #readability-content{border-bottom:1px solid var(--sa11y-panel-bg-splitter)}#readability-content{color:var(--sa11y-panel-primary);padding:10px 15px;width:100%}#readability-details{list-style-type:none;margin:0;padding:0;white-space:normal}#readability-details li{display:inline-block;list-style-type:none;margin:0;padding-inline-end:10px}.readability-score{background-color:var(--sa11y-panel-badge);border-radius:4px;color:var(--sa11y-panel-primary);margin-inline-start:5px;padding:2px 5px}#readability-info{margin-inline-start:10px}#skip-to-page-issues{display:none}#panel.has-page-issues #skip-to-page-issues{clip:rect(0,0,0,0);background:var(--sa11y-panel-bg);border:0;border-radius:5px;display:block;font-weight:600;height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px}#panel.has-page-issues #skip-to-page-issues:focus{clip:auto;height:auto;margin:0;overflow:visible;padding:7px 10px;white-space:normal;width:auto;z-index:1}.hide-settings-border{border-bottom:0!important;padding:0 15px!important}.hide-settings-border li:not(#colour-filter-item){display:none!important}.hide-settings-border #about-content{display:none}.hide-settings-border.scrollable:before{all:unset}#contrast-tools{display:none}::-webkit-scrollbar{height:6px;width:7px}::-webkit-scrollbar-thumb{background-color:var(--sa11y-button-outline);border-radius:6px}*{scrollbar-color:var(--sa11y-button-outline);scrollbar-width:thin}.scrollable:before{animation:fade 1s ease-in-out;background:linear-gradient(180deg,transparent 70%,var(--sa11y-panel-scrollable) 100%);background-position:bottom;bottom:auto;content:"";height:250px;left:0;position:absolute;right:0;top:auto;transition:opacity 1s ease-in-out;width:100%;z-index:-1}#settings-content.scrollable:before{height:400px}.top-left .scrollable:before,.top-right .scrollable:before{border-radius:5px}#page-issues-content.scrollable:before{height:160px}#panel-alert.scrollable:before{height:200px}@keyframes sa11y-toggle-gradient{0%{background-position:50% 0}50%{background-position:50% 100%}to{background-position:50% 0}}@keyframes fade{0%{opacity:0}to{opacity:1}}@media (prefers-reduced-motion:reduce){*{animation:none!important;transform:none!important;transition:none!important}}#panel{width:400px}#container:lang(en) #panel{width:315px}#container:lang(da) #panel,#container:lang(de) #panel,#container:lang(nb) #panel,#container:lang(pl) #panel,#container:lang(sv) #panel,#container:lang(zh) #panel{width:365px}#container:lang(bg) .switch:not(#export-results-item *),#container:lang(es) .switch:not(#export-results-item *){width:225px!important}#container:not(:lang(en)):not(:lang(de)) .switch{width:205px}'+Y,this.shadowRoot.appendChild(e);const o="On"===v.getItem("sa11y-developer"),i="On"===v.getItem("sa11y-readability"),s=v.getItem("sa11y-theme"),a=v.getItem("sa11y-position"),r=n.Global.checkAllHideToggles,l=n.Global.developerPlugin?`\n
                                          • \n \n \n \n
                                          • `:"",c=n.Readability.Plugin?`\n
                                          • \n \n \n \n
                                          • `:"",d=n.Global.colourFilterPlugin?`\n
                                          • \n \n
                                            \n \n
                                            \n
                                          • `:"",p=n.Global.colourFilterPlugin?`\n
                                            \n \n

                                            ${t._("COLOUR_FILTER_MESSAGE")}

                                            \n
                                            `:"",u=n.Global.exportResultsPlugin?`\n
                                          • \n ${t._("EXPORT_RESULTS")}\n
                                            \n \n \n
                                            \n
                                          • `:"",h=n.Global.aboutContent?`\n
                                            ${n.Global.aboutContent}
                                            `:"",g=`\n `,m=`\n
                                            \n
                                            \n

                                            ${t._("PAGE_ISSUES")}

                                            \n
                                            \n
                                            \n
                                              \n
                                              \n
                                              `,f=`\n
                                              \n
                                              \n

                                              ${t._("OUTLINE")}

                                              \n
                                              \n
                                              \n
                                                \n
                                                \n
                                                \n
                                                \n

                                                ${t._("READABILITY")}

                                                \n

                                                \n
                                                  \n
                                                  \n
                                                  \n
                                                  `,b=n.Global.showImageOutline?`\n
                                                  \n
                                                  \n

                                                  ${t._("IMAGES")}

                                                  \n
                                                  \n
                                                  \n
                                                    \n
                                                    \n
                                                    `:"",y="left"===a||"top-left"===a?"true":"false",A=n.Global.showMovePanelToggle?``:"",E=`\n
                                                    \n
                                                    \n

                                                    ${t._("SETTINGS")}

                                                    \n
                                                    \n
                                                    \n
                                                      \n ${l}\n ${c}\n
                                                    • \n ${t._("APPEARANCE")}\n
                                                      \n \n ${A}\n
                                                      \n
                                                    • \n ${u}\n ${d}\n
                                                    \n ${h}\n
                                                    \n
                                                    `,_=`\n
                                                    \n
                                                    \n
                                                    \n \n

                                                    ${t._("ALERT_TEXT")}

                                                    \n
                                                    \n

                                                    \n
                                                    \n
                                                    \n
                                                    `,L=`\n
                                                    \n \n \n \n
                                                    \n

                                                    ${t._("PANEL_HEADING")}

                                                    \n

                                                    \n
                                                    \n
                                                    `,I=``,T=`\n
                                                    \n \n ${n.Global.showImageOutline?I:""}\n \n
                                                    `,x=document.createElement("div");x.setAttribute("id","container"),x.setAttribute("role","region"),x.setAttribute("data-sa11y-version",W),x.setAttribute("lang",t._("LANG_CODE")),x.setAttribute("aria-label",t._("CONTAINER_LABEL")),x.setAttribute("dir",n.Global.langDirection),x.innerHTML="top-left"===a||"top-right"===a?`\n ${g}\n
                                                    \n ${L}\n ${p}\n ${T}\n ${f}\n ${b}\n ${E}\n ${_}\n ${m}\n
                                                    `:`\n ${g}\n
                                                    \n ${m}\n ${f}\n ${b}\n ${E}\n ${_}\n ${p}\n ${L}\n ${T}\n
                                                    `,this.shadowRoot.appendChild(x),n.initializePanelSelectors()}}const V=()=>{n.Panel.outlineToggle.classList.add("active"),n.Panel.outline.classList.add("active"),n.Panel.outlineToggle.setAttribute("aria-expanded","true"),v.setItem("sa11y-outline","Opened"),N(n.Panel.outlineList,n.Panel.outlineContent);o("sa11y-heading-label","root").forEach(e=>e.hidden=!1);const e=new CustomEvent("sa11y-build-heading-outline");document.dispatchEvent(e)},j=()=>{n.Panel.outline.classList.remove("active"),n.Panel.outlineToggle.classList.remove("active"),n.Panel.outlineToggle.setAttribute("aria-expanded","false"),v.setItem("sa11y-outline","Closed");o("sa11y-heading-label","root").forEach(e=>e.hidden=!0)},q=()=>{n.Panel.imagesToggle.classList.add("active"),n.Panel.images.classList.add("active"),n.Panel.imagesToggle.setAttribute("aria-expanded","true"),v.setItem("sa11y-images","Opened"),N(n.Panel.imagesList,n.Panel.imagesContent);const e=new CustomEvent("sa11y-build-image-outline");document.dispatchEvent(e)},X=()=>{n.Global.showImageOutline&&(n.Panel.imagesToggle.classList.remove("active"),n.Panel.images.classList.remove("active"),n.Panel.imagesToggle.setAttribute("aria-expanded","false"),v.setItem("sa11y-images","Closed"))},Z=()=>{n.Panel.settingsToggle.classList.add("active"),n.Panel.settings.classList.add("active"),n.Panel.settingsToggle.setAttribute("aria-expanded","true"),v.setItem("sa11y-settings","Opened"),N(n.Panel.settingsContent,n.Panel.settingsContent,t._("SETTINGS"))},J=()=>{n.Panel.settings.classList.remove("active"),n.Panel.settingsToggle.classList.remove("active"),n.Panel.settingsToggle.setAttribute("aria-expanded","false"),v.setItem("sa11y-settings","Closed")};function ee(e,i,s){const a=()=>{const r=[];let l;if(e.map(e=>i.find(t=>e.key===t.dismiss&&e.href===window.location.pathname)).filter(Boolean).forEach(e=>Object.assign(e,{dismissedHeading:!0})),s.showTitleInPageOutline){const e=document.querySelector("head title");if(e&&0!==e.textContent.trim().length){const n=f(e);l=`
                                                  • ${t._("TITLE")} ${u(n)}
                                                  • `}else l=`
                                                  • ${t._("TITLE")}
                                                    ${t._("MISSING")}
                                                  • `;r.push(l)}return i.forEach(e=>{const n=e.element,o=e.headingLevel,i=e.text,a=e.index,l=e.type,c=e.hidden,d=e.visibleParent,p=e.dismissedHeading,{isWithinRoot:u}=e;if(!O.Found.OutlineIgnore.includes(n)){const e=!0===c?'Hidden':"",n=!0===c?'class="hidden-h"':"",d=!0===s.showHinPageOutline||1===s.showHinPageOutline?"H":"";let h;"error"===l&&!0===u?(h=`\n
                                                  • \n \n \n \n ${t._("ERROR")} ${d+o}\n ${i}\n \n
                                                  • `,r.push(h)):"warning"!==l||p||!0!==u?(h=`\n
                                                  • \n \n ${e} ${d+o}\n ${i}\n \n
                                                  • `,r.push(h)):(h=`\n
                                                  • \n \n \n \n ${t._("WARNING")} ${d+o}\n ${i}\n \n
                                                  • `,r.push(h))}const h=document.createElement("sa11y-heading-label"),g=document.createElement("sa11y-heading-anchor");if(h.hidden=!0,null!==d){n.insertAdjacentElement("beforeend",h);const e=d.previousElementSibling;g.setAttribute("id",`sa11y-h${a}`),e?(e.insertAdjacentElement("beforebegin",g),e.setAttribute("data-sa11y-parent",`h${a}`)):(d.parentNode.insertAdjacentElement("beforebegin",g),d.parentNode.setAttribute("data-sa11y-parent",`h${a}`))}else n.insertAdjacentElement("beforeend",h),h.insertAdjacentElement("beforebegin",g),g.setAttribute("id",`sa11y-h${a}`);const m=document.createElement("span");m.classList.add("heading-label"),m.innerHTML=`H${o}`,h.shadowRoot.appendChild(m),"Opened"===v.getItem("sa11y-outline")&&(h.hidden=!1)}),n.Panel.outlineList.innerHTML=0===i.length?`${l||""}
                                                  • ${t._("PANEL_NO_HEADINGS")}
                                                  • `:r.join(" "),setTimeout(()=>{const e=document.querySelector("sa11y-control-panel").shadowRoot,i=Array.from(e.querySelectorAll("#outline-list a"));i.forEach((i,s)=>{const a=e.getElementById(`sa11y-link-${s}`),r=o(`#sa11y-h${s}, [data-sa11y-parent="h${s}"]`,"document",n.Exclusions.Container),l=e=>{("keyup"===e.type&&"Enter"===e.code||"click"===e.type)&&(r.forEach(e=>{(e=>{_(e.parentElement),e.scrollIntoView({behavior:`${n.Global.scrollBehaviour}`,block:"center"})})(e)}),a.classList.contains("hidden-h")?T(`${t._("HEADING_NOT_VISIBLE")}`):n.Panel.alert.classList.contains("active")&&I()),e.preventDefault()};a?.addEventListener("click",l,!1),a?.addEventListener("keyup",l,!1)});let s=0;const a=e=>{if(!["ArrowUp","ArrowDown","Space"].includes(e.code))return;if("Space"===e.code)return void i[s].click();let t;i[s].setAttribute("tabindex",-1),"ArrowDown"===e.code?(t=s+1,s===i.length-1&&(t=0)):"ArrowUp"===e.code&&(t=s-1,0===s&&(t=i.length-1)),i[t].setAttribute("tabindex",0),i[t].focus(),s=t,e.preventDefault()};n.Panel.outlineList.addEventListener("focus",()=>{i.length>0&&(n.Panel.outlineList.setAttribute("tabindex",-1),i[s].setAttribute("tabindex",0),i[s].focus()),n.Panel.outlineList.addEventListener("keydown",a)}),n.Panel.outlineList.addEventListener("blur",()=>{n.Panel.outlineList.removeEventListener("keydown",a)})},0),document.removeEventListener("sa11y-build-heading-outline",a),e};"Opened"===v.getItem("sa11y-outline")&&a(),document.addEventListener("sa11y-build-heading-outline",a)}const te=e=>{const{src:o}=e.element,i=n.Global.ignoreEditImageURL.some(e=>o.includes(e)),s=n.Global.ignoreEditImageClass.some(t=>e.element.classList.contains(t));if(i||s)return"";const a=n.Global.relativePathImageSRC||window.location.host,r=o.split(a)[1]||"",l=n.Global.relativePathImageID;let c;l.length&&e.element.classList.length&&e.element.classList.forEach(e=>{if(e.startsWith(l)){const[t]=e.match(/\d+/)||[];c=t}});const d=a&&l.length?n.Global.editImageURLofCMS+c:n.Global.editImageURLofCMS+r;return(l.length&&void 0!==c||!l)&&((p=o).includes(window.location.host)||p.startsWith(a))?``:"";var p};var ne="top",oe="bottom",ie="right",se="left",ae="auto",re=[ne,oe,ie,se],le="start",ce="end",de="viewport",pe="popper",ue=re.reduce(function(e,t){return e.concat([t+"-"+le,t+"-"+ce])},[]),he=[].concat(re,[ae]).reduce(function(e,t){return e.concat([t,t+"-"+le,t+"-"+ce])},[]),ge=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function me(e){return e?(e.nodeName||"").toLowerCase():null}function fe(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function be(e){return e instanceof fe(e).Element||e instanceof Element}function ye(e){return e instanceof fe(e).HTMLElement||e instanceof HTMLElement}function Ae(e){return"undefined"!=typeof ShadowRoot&&(e instanceof fe(e).ShadowRoot||e instanceof ShadowRoot)}var Ee={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach(function(e){var n=t.styles[e]||{},o=t.attributes[e]||{},i=t.elements[e];ye(i)&&me(i)&&(Object.assign(i.style,n),Object.keys(o).forEach(function(e){var t=o[e];!1===t?i.removeAttribute(e):i.setAttribute(e,!0===t?"":t)}))})},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(e){var o=t.elements[e],i=t.attributes[e]||{},s=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce(function(e,t){return e[t]="",e},{});ye(o)&&me(o)&&(Object.assign(o.style,s),Object.keys(i).forEach(function(e){o.removeAttribute(e)}))})}},requires:["computeStyles"]};function ve(e){return e.split("-")[0]}var _e=Math.max,Le=Math.min,Ie=Math.round;function Te(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function xe(){return!/^((?!chrome|android).)*safari/i.test(Te())}function ke(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var o=e.getBoundingClientRect(),i=1,s=1;t&&ye(e)&&(i=e.offsetWidth>0&&Ie(o.width)/e.offsetWidth||1,s=e.offsetHeight>0&&Ie(o.height)/e.offsetHeight||1);var a=(be(e)?fe(e):window).visualViewport,r=!xe()&&n,l=(o.left+(r&&a?a.offsetLeft:0))/i,c=(o.top+(r&&a?a.offsetTop:0))/s,d=o.width/i,p=o.height/s;return{width:d,height:p,top:c,right:l+d,bottom:c+p,left:l,x:l,y:c}}function Ne(e){var t=ke(e),n=e.offsetWidth,o=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-o)<=1&&(o=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:o}}function Se(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Ae(n)){var o=t;do{if(o&&e.isSameNode(o))return!0;o=o.parentNode||o.host}while(o)}return!1}function we(e){return fe(e).getComputedStyle(e)}function Ce(e){return["table","td","th"].indexOf(me(e))>=0}function Oe(e){return((be(e)?e.ownerDocument:e.document)||window.document).documentElement}function Pe(e){return"html"===me(e)?e:e.assignedSlot||e.parentNode||(Ae(e)?e.host:null)||Oe(e)}function Re(e){return ye(e)&&"fixed"!==we(e).position?e.offsetParent:null}function De(e){for(var t=fe(e),n=Re(e);n&&Ce(n)&&"static"===we(n).position;)n=Re(n);return n&&("html"===me(n)||"body"===me(n)&&"static"===we(n).position)?t:n||function(e){var t=/firefox/i.test(Te());if(/Trident/i.test(Te())&&ye(e)&&"fixed"===we(e).position)return null;var n=Pe(e);for(Ae(n)&&(n=n.host);ye(n)&&["html","body"].indexOf(me(n))<0;){var o=we(n);if("none"!==o.transform||"none"!==o.perspective||"paint"===o.contain||-1!==["transform","perspective"].indexOf(o.willChange)||t&&"filter"===o.willChange||t&&o.filter&&"none"!==o.filter)return n;n=n.parentNode}return null}(e)||t}function Me(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Be(e,t,n){return _e(e,Le(t,n))}function $e(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function Ge(e,t){return t.reduce(function(t,n){return t[n]=e,t},{})}var Ue={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,o=e.name,i=e.options,s=n.elements.arrow,a=n.modifiersData.popperOffsets,r=ve(n.placement),l=Me(r),c=[se,ie].indexOf(r)>=0?"height":"width";if(s&&a){var d=function(e,t){return $e("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:Ge(e,re))}(i.padding,n),p=Ne(s),u="y"===l?ne:se,h="y"===l?oe:ie,g=n.rects.reference[c]+n.rects.reference[l]-a[l]-n.rects.popper[c],m=a[l]-n.rects.reference[l],f=De(s),b=f?"y"===l?f.clientHeight||0:f.clientWidth||0:0,y=g/2-m/2,A=d[u],E=b-p[c]-d[h],v=b/2-p[c]/2+y,_=Be(A,v,E),L=l;n.modifiersData[o]=((t={})[L]=_,t.centerOffset=_-v,t)}},effect:function(e){var t=e.state,n=e.options.element,o=void 0===n?"[data-popper-arrow]":n;null!=o&&("string"!=typeof o||(o=t.elements.popper.querySelector(o)))&&Se(t.elements.popper,o)&&(t.elements.arrow=o)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function He(e){return e.split("-")[1]}var Fe={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Ke(e){var t,n=e.popper,o=e.popperRect,i=e.placement,s=e.variation,a=e.offsets,r=e.position,l=e.gpuAcceleration,c=e.adaptive,d=e.roundOffsets,p=e.isFixed,u=a.x,h=void 0===u?0:u,g=a.y,m=void 0===g?0:g,f="function"==typeof d?d({x:h,y:m}):{x:h,y:m};h=f.x,m=f.y;var b=a.hasOwnProperty("x"),y=a.hasOwnProperty("y"),A=se,E=ne,v=window;if(c){var _=De(n),L="clientHeight",I="clientWidth";if(_===fe(n)&&"static"!==we(_=Oe(n)).position&&"absolute"===r&&(L="scrollHeight",I="scrollWidth"),i===ne||(i===se||i===ie)&&s===ce)E=oe,m-=(p&&_===v&&v.visualViewport?v.visualViewport.height:_[L])-o.height,m*=l?1:-1;if(i===se||(i===ne||i===oe)&&s===ce)A=ie,h-=(p&&_===v&&v.visualViewport?v.visualViewport.width:_[I])-o.width,h*=l?1:-1}var T,x=Object.assign({position:r},c&&Fe),k=!0===d?function(e,t){var n=e.x,o=e.y,i=t.devicePixelRatio||1;return{x:Ie(n*i)/i||0,y:Ie(o*i)/i||0}}({x:h,y:m},fe(n)):{x:h,y:m};return h=k.x,m=k.y,l?Object.assign({},x,((T={})[E]=y?"0":"",T[A]=b?"0":"",T.transform=(v.devicePixelRatio||1)<=1?"translate("+h+"px, "+m+"px)":"translate3d("+h+"px, "+m+"px, 0)",T)):Object.assign({},x,((t={})[E]=y?m+"px":"",t[A]=b?h+"px":"",t.transform="",t))}var We={passive:!0};var Ye={left:"right",right:"left",bottom:"top",top:"bottom"};function ze(e){return e.replace(/left|right|bottom|top/g,function(e){return Ye[e]})}var Qe={start:"end",end:"start"};function Ve(e){return e.replace(/start|end/g,function(e){return Qe[e]})}function je(e){var t=fe(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function qe(e){return ke(Oe(e)).left+je(e).scrollLeft}function Xe(e){var t=we(e),n=t.overflow,o=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+o)}function Ze(e){return["html","body","#document"].indexOf(me(e))>=0?e.ownerDocument.body:ye(e)&&Xe(e)?e:Ze(Pe(e))}function Je(e,t){var n;void 0===t&&(t=[]);var o=Ze(e),i=o===(null==(n=e.ownerDocument)?void 0:n.body),s=fe(o),a=i?[s].concat(s.visualViewport||[],Xe(o)?o:[]):o,r=t.concat(a);return i?r:r.concat(Je(Pe(a)))}function et(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function tt(e,t,n){return t===de?et(function(e,t){var n=fe(e),o=Oe(e),i=n.visualViewport,s=o.clientWidth,a=o.clientHeight,r=0,l=0;if(i){s=i.width,a=i.height;var c=xe();(c||!c&&"fixed"===t)&&(r=i.offsetLeft,l=i.offsetTop)}return{width:s,height:a,x:r+qe(e),y:l}}(e,n)):be(t)?function(e,t){var n=ke(e,!1,"fixed"===t);return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}(t,n):et(function(e){var t,n=Oe(e),o=je(e),i=null==(t=e.ownerDocument)?void 0:t.body,s=_e(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),a=_e(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),r=-o.scrollLeft+qe(e),l=-o.scrollTop;return"rtl"===we(i||n).direction&&(r+=_e(n.clientWidth,i?i.clientWidth:0)-s),{width:s,height:a,x:r,y:l}}(Oe(e)))}function nt(e,t,n,o){var i="clippingParents"===t?function(e){var t=Je(Pe(e)),n=["absolute","fixed"].indexOf(we(e).position)>=0&&ye(e)?De(e):e;return be(n)?t.filter(function(e){return be(e)&&Se(e,n)&&"body"!==me(e)}):[]}(e):[].concat(t),s=[].concat(i,[n]),a=s[0],r=s.reduce(function(t,n){var i=tt(e,n,o);return t.top=_e(i.top,t.top),t.right=Le(i.right,t.right),t.bottom=Le(i.bottom,t.bottom),t.left=_e(i.left,t.left),t},tt(e,a,o));return r.width=r.right-r.left,r.height=r.bottom-r.top,r.x=r.left,r.y=r.top,r}function ot(e){var t,n=e.reference,o=e.element,i=e.placement,s=i?ve(i):null,a=i?He(i):null,r=n.x+n.width/2-o.width/2,l=n.y+n.height/2-o.height/2;switch(s){case ne:t={x:r,y:n.y-o.height};break;case oe:t={x:r,y:n.y+n.height};break;case ie:t={x:n.x+n.width,y:l};break;case se:t={x:n.x-o.width,y:l};break;default:t={x:n.x,y:n.y}}var c=s?Me(s):null;if(null!=c){var d="y"===c?"height":"width";switch(a){case le:t[c]=t[c]-(n[d]/2-o[d]/2);break;case ce:t[c]=t[c]+(n[d]/2-o[d]/2)}}return t}function it(e,t){void 0===t&&(t={});var n=t,o=n.placement,i=void 0===o?e.placement:o,s=n.strategy,a=void 0===s?e.strategy:s,r=n.boundary,l=void 0===r?"clippingParents":r,c=n.rootBoundary,d=void 0===c?de:c,p=n.elementContext,u=void 0===p?pe:p,h=n.altBoundary,g=void 0!==h&&h,m=n.padding,f=void 0===m?0:m,b=$e("number"!=typeof f?f:Ge(f,re)),y=u===pe?"reference":pe,A=e.rects.popper,E=e.elements[g?y:u],v=nt(be(E)?E:E.contextElement||Oe(e.elements.popper),l,d,a),_=ke(e.elements.reference),L=ot({reference:_,element:A,strategy:"absolute",placement:i}),I=et(Object.assign({},A,L)),T=u===pe?I:_,x={top:v.top-T.top+b.top,bottom:T.bottom-v.bottom+b.bottom,left:v.left-T.left+b.left,right:T.right-v.right+b.right},k=e.modifiersData.offset;if(u===pe&&k){var N=k[i];Object.keys(x).forEach(function(e){var t=[ie,oe].indexOf(e)>=0?1:-1,n=[ne,oe].indexOf(e)>=0?"y":"x";x[e]+=N[n]*t})}return x}function st(e,t){void 0===t&&(t={});var n=t,o=n.placement,i=n.boundary,s=n.rootBoundary,a=n.padding,r=n.flipVariations,l=n.allowedAutoPlacements,c=void 0===l?he:l,d=He(o),p=d?r?ue:ue.filter(function(e){return He(e)===d}):re,u=p.filter(function(e){return c.indexOf(e)>=0});0===u.length&&(u=p);var h=u.reduce(function(t,n){return t[n]=it(e,{placement:n,boundary:i,rootBoundary:s,padding:a})[ve(n)],t},{});return Object.keys(h).sort(function(e,t){return h[e]-h[t]})}var at={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,o=e.name;if(!t.modifiersData[o]._skip){for(var i=n.mainAxis,s=void 0===i||i,a=n.altAxis,r=void 0===a||a,l=n.fallbackPlacements,c=n.padding,d=n.boundary,p=n.rootBoundary,u=n.altBoundary,h=n.flipVariations,g=void 0===h||h,m=n.allowedAutoPlacements,f=t.options.placement,b=ve(f),y=l||(b===f||!g?[ze(f)]:function(e){if(ve(e)===ae)return[];var t=ze(e);return[Ve(e),t,Ve(t)]}(f)),A=[f].concat(y).reduce(function(e,n){return e.concat(ve(n)===ae?st(t,{placement:n,boundary:d,rootBoundary:p,padding:c,flipVariations:g,allowedAutoPlacements:m}):n)},[]),E=t.rects.reference,v=t.rects.popper,_=new Map,L=!0,I=A[0],T=0;T=0,w=S?"width":"height",C=it(t,{placement:x,boundary:d,rootBoundary:p,altBoundary:u,padding:c}),O=S?N?ie:se:N?oe:ne;E[w]>v[w]&&(O=ze(O));var P=ze(O),R=[];if(s&&R.push(C[k]<=0),r&&R.push(C[O]<=0,C[P]<=0),R.every(function(e){return e})){I=x,L=!1;break}_.set(x,R)}if(L)for(var D=function(e){var t=A.find(function(t){var n=_.get(t);if(n)return n.slice(0,e).every(function(e){return e})});if(t)return I=t,"break"},M=g?3:1;M>0;M--){if("break"===D(M))break}t.placement!==I&&(t.modifiersData[o]._skip=!0,t.placement=I,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function rt(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function lt(e){return[ne,ie,oe,se].some(function(t){return e[t]>=0})}var ct={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,o=e.name,i=n.offset,s=void 0===i?[0,0]:i,a=he.reduce(function(e,n){return e[n]=function(e,t,n){var o=ve(e),i=[se,ne].indexOf(o)>=0?-1:1,s="function"==typeof n?n(Object.assign({},t,{placement:e})):n,a=s[0],r=s[1];return a=a||0,r=(r||0)*i,[se,ie].indexOf(o)>=0?{x:r,y:a}:{x:a,y:r}}(n,t.rects,s),e},{}),r=a[t.placement],l=r.x,c=r.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[o]=a}};var dt={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,o=e.name,i=n.mainAxis,s=void 0===i||i,a=n.altAxis,r=void 0!==a&&a,l=n.boundary,c=n.rootBoundary,d=n.altBoundary,p=n.padding,u=n.tether,h=void 0===u||u,g=n.tetherOffset,m=void 0===g?0:g,f=it(t,{boundary:l,rootBoundary:c,padding:p,altBoundary:d}),b=ve(t.placement),y=He(t.placement),A=!y,E=Me(b),v="x"===E?"y":"x",_=t.modifiersData.popperOffsets,L=t.rects.reference,I=t.rects.popper,T="function"==typeof m?m(Object.assign({},t.rects,{placement:t.placement})):m,x="number"==typeof T?{mainAxis:T,altAxis:T}:Object.assign({mainAxis:0,altAxis:0},T),k=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,N={x:0,y:0};if(_){if(s){var S,w="y"===E?ne:se,C="y"===E?oe:ie,O="y"===E?"height":"width",P=_[E],R=P+f[w],D=P-f[C],M=h?-I[O]/2:0,B=y===le?L[O]:I[O],$=y===le?-I[O]:-L[O],G=t.elements.arrow,U=h&&G?Ne(G):{width:0,height:0},H=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},F=H[w],K=H[C],W=Be(0,L[O],U[O]),Y=A?L[O]/2-M-W-F-x.mainAxis:B-W-F-x.mainAxis,z=A?-L[O]/2+M+W+K+x.mainAxis:$+W+K+x.mainAxis,Q=t.elements.arrow&&De(t.elements.arrow),V=Q?"y"===E?Q.clientTop||0:Q.clientLeft||0:0,j=null!=(S=null==k?void 0:k[E])?S:0,q=P+z-j,X=Be(h?Le(R,P+Y-j-V):R,P,h?_e(D,q):D);_[E]=X,N[E]=X-P}if(r){var Z,J="x"===E?ne:se,ee="x"===E?oe:ie,te=_[v],ae="y"===v?"height":"width",re=te+f[J],ce=te-f[ee],de=-1!==[ne,se].indexOf(b),pe=null!=(Z=null==k?void 0:k[v])?Z:0,ue=de?re:te-L[ae]-I[ae]-pe+x.altAxis,he=de?te+L[ae]+I[ae]-pe-x.altAxis:ce,ge=h&&de?function(e,t,n){var o=Be(e,t,n);return o>n?n:o}(ue,te,he):Be(h?ue:re,te,h?he:ce);_[v]=ge,N[v]=ge-te}t.modifiersData[o]=N}},requiresIfExists:["offset"]};function pt(e,t,n){void 0===n&&(n=!1);var o,i,s=ye(t),a=ye(t)&&function(e){var t=e.getBoundingClientRect(),n=Ie(t.width)/e.offsetWidth||1,o=Ie(t.height)/e.offsetHeight||1;return 1!==n||1!==o}(t),r=Oe(t),l=ke(e,a,n),c={scrollLeft:0,scrollTop:0},d={x:0,y:0};return(s||!s&&!n)&&(("body"!==me(t)||Xe(r))&&(c=(o=t)!==fe(o)&&ye(o)?{scrollLeft:(i=o).scrollLeft,scrollTop:i.scrollTop}:je(o)),ye(t)?((d=ke(t,!0)).x+=t.clientLeft,d.y+=t.clientTop):r&&(d.x=qe(r))),{x:l.left+c.scrollLeft-d.x,y:l.top+c.scrollTop-d.y,width:l.width,height:l.height}}function ut(e){var t=new Map,n=new Set,o=[];function i(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach(function(e){if(!n.has(e)){var o=t.get(e);o&&i(o)}}),o.push(e)}return e.forEach(function(e){t.set(e.name,e)}),e.forEach(function(e){n.has(e.name)||i(e)}),o}var ht={placement:"bottom",modifiers:[],strategy:"absolute"};function gt(){for(var e=arguments.length,t=new Array(e),n=0;n-1}function It(e,t){return"function"==typeof e?e.apply(void 0,t):e}function Tt(e,t){return 0===t?e:function(o){clearTimeout(n),n=setTimeout(function(){e(o)},t)};var n}function xt(e){return[].concat(e)}function kt(e,t){-1===e.indexOf(t)&&e.push(t)}function Nt(e){return[].slice.call(e)}function St(e){return Object.keys(e).reduce(function(t,n){return void 0!==e[n]&&(t[n]=e[n]),t},{})}function wt(){return document.createElement("div")}function Ct(e){return["Element","Fragment"].some(function(t){return Lt(e,t)})}function Ot(e){return Ct(e)?[e]:function(e){return Lt(e,"NodeList")}(e)?Nt(e):Array.isArray(e)?e:Nt(document.querySelectorAll(e))}function Pt(e,t){e.forEach(function(e){e&&(e.style.transitionDuration=t+"ms")})}function Rt(e,t){e.forEach(function(e){e&&e.setAttribute("data-state",t)})}function Dt(e,t,n){var o=t+"EventListener";["transitionend","webkitTransitionEnd"].forEach(function(t){e[o](t,n)})}function Mt(e,t){for(var n=t;n;){var o;if(e.contains(n))return!0;n=null==n.getRootNode||null==(o=n.getRootNode())?void 0:o.host}return!1}var Bt={isTouch:!1},$t=0;function Gt(){Bt.isTouch||(Bt.isTouch=!0,window.performance&&document.addEventListener("mousemove",Ut))}function Ut(){var e=performance.now();e-$t<20&&(Bt.isTouch=!1,document.removeEventListener("mousemove",Ut)),$t=e}function Ht(){var e,t=document.activeElement;if((e=t)&&e._tippy&&e._tippy.reference===e){var n=t._tippy;t.blur&&!n.state.isVisible&&t.blur()}}var Ft=!!("undefined"!=typeof window&&"undefined"!=typeof document)&&!!window.msCrypto,Kt=Object.assign({appendTo:vt,aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},{animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},{allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999}),Wt=Object.keys(Kt);function Yt(e){var t=(e.plugins||[]).reduce(function(t,n){var o,i=n.name,s=n.defaultValue;i&&(t[i]=void 0!==e[i]?e[i]:null!=(o=Kt[i])?o:s);return t},{});return Object.assign({},e,t)}function zt(e,t){var n=Object.assign({},t,{content:It(t.content,[e])},t.ignoreAttributes?{}:function(e,t){return(t?Object.keys(Yt(Object.assign({},Kt,{plugins:t}))):Wt).reduce(function(t,n){var o=(e.getAttribute("data-tippy-"+n)||"").trim();if(!o)return t;if("content"===n)t[n]=o;else try{t[n]=JSON.parse(o)}catch(e){t[n]=o}return t},{})}(e,t.plugins));return n.aria=Object.assign({},Kt.aria,n.aria),n.aria={expanded:"auto"===n.aria.expanded?t.interactive:n.aria.expanded,content:"auto"===n.aria.content?t.interactive?null:"describedby":n.aria.content},n}function Qt(e,t){e.innerHTML=t}function Vt(e){var t=wt();return!0===e?t.className=yt:(t.className=At,Ct(e)?t.appendChild(e):Qt(t,e)),t}function jt(e,t){Ct(t.content)?(Qt(e,""),e.appendChild(t.content)):"function"!=typeof t.content&&(t.allowHTML?Qt(e,t.content):e.textContent=t.content)}function qt(e){var t=e.firstElementChild,n=Nt(t.children);return{box:t,content:n.find(function(e){return e.classList.contains(bt)}),arrow:n.find(function(e){return e.classList.contains(yt)||e.classList.contains(At)}),backdrop:n.find(function(e){return e.classList.contains("tippy-backdrop")})}}function Xt(e){var t=wt(),n=wt();n.className="tippy-box",n.setAttribute("data-state","hidden"),n.setAttribute("tabindex","-1");var o=wt();function i(n,o){var i=qt(t),s=i.box,a=i.content,r=i.arrow;o.theme?s.setAttribute("data-theme",o.theme):s.removeAttribute("data-theme"),"string"==typeof o.animation?s.setAttribute("data-animation",o.animation):s.removeAttribute("data-animation"),o.inertia?s.setAttribute("data-inertia",""):s.removeAttribute("data-inertia"),s.style.maxWidth="number"==typeof o.maxWidth?o.maxWidth+"px":o.maxWidth,o.role?s.setAttribute("role",o.role):s.removeAttribute("role"),n.content===o.content&&n.allowHTML===o.allowHTML||jt(a,e.props),o.arrow?r?n.arrow!==o.arrow&&(s.removeChild(r),s.appendChild(Vt(o.arrow))):s.appendChild(Vt(o.arrow)):r&&s.removeChild(r)}return o.className=bt,o.setAttribute("data-state","hidden"),jt(o,e.props),t.appendChild(n),n.appendChild(o),i(e.props,e.props),{popper:t,onUpdate:i}}Xt.$$tippy=!0;var Zt=1,Jt=[],en=[];function tn(e,t){var n,o,i,s,a,r,l,c,d=zt(e,Object.assign({},Kt,Yt(St(t)))),p=!1,u=!1,h=!1,g=!1,m=[],f=Tt(Q,d.interactiveDebounce),b=Zt++,y=(c=d.plugins).filter(function(e,t){return c.indexOf(e)===t}),A={id:b,reference:e,popper:wt(),popperInstance:null,props:d,state:{isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},plugins:y,clearDelayTimeouts:function(){clearTimeout(n),clearTimeout(o),cancelAnimationFrame(i)},setProps:function(t){if(A.state.isDestroyed)return;P("onBeforeUpdate",[A,t]),Y();var n=A.props,o=zt(e,Object.assign({},n,St(t),{ignoreAttributes:!0}));A.props=o,W(),n.interactiveDebounce!==o.interactiveDebounce&&(M(),f=Tt(Q,o.interactiveDebounce));n.triggerTarget&&!o.triggerTarget?xt(n.triggerTarget).forEach(function(e){e.removeAttribute("aria-expanded")}):o.triggerTarget&&e.removeAttribute("aria-expanded");D(),O(),_&&_(n,o);A.popperInstance&&(X(),J().forEach(function(e){requestAnimationFrame(e._tippy.popperInstance.forceUpdate)}));P("onAfterUpdate",[A,t])},setContent:function(e){A.setProps({content:e})},show:function(){var e=A.state.isVisible,t=A.state.isDestroyed,n=!A.state.isEnabled,o=Bt.isTouch&&!A.props.touch,i=_t(A.props.duration,0,Kt.duration);if(e||t||n||o)return;if(N().hasAttribute("disabled"))return;if(P("onShow",[A],!1),!1===A.props.onShow(A))return;A.state.isVisible=!0,k()&&(v.style.visibility="visible");O(),U(),A.state.isMounted||(v.style.transition="none");if(k()){var s=w();Pt([s.box,s.content],0)}r=function(){var e;if(A.state.isVisible&&!g){if(g=!0,v.offsetHeight,v.style.transition=A.props.moveTransition,k()&&A.props.animation){var t=w(),n=t.box,o=t.content;Pt([n,o],i),Rt([n,o],"visible")}R(),D(),kt(en,A),null==(e=A.popperInstance)||e.forceUpdate(),P("onMount",[A]),A.props.animation&&k()&&function(e,t){F(e,t)}(i,function(){A.state.isShown=!0,P("onShown",[A])})}},function(){var e,t=A.props.appendTo,n=N();e=A.props.interactive&&t===vt||"parent"===t?n.parentNode:It(t,[n]);e.contains(v)||e.appendChild(v);A.state.isMounted=!0,X()}()},hide:function(){var e=!A.state.isVisible,t=A.state.isDestroyed,n=!A.state.isEnabled,o=_t(A.props.duration,1,Kt.duration);if(e||t||n)return;if(P("onHide",[A],!1),!1===A.props.onHide(A))return;A.state.isVisible=!1,A.state.isShown=!1,g=!1,p=!1,k()&&(v.style.visibility="hidden");if(M(),H(),O(!0),k()){var i=w(),s=i.box,a=i.content;A.props.animation&&(Pt([s,a],o),Rt([s,a],"hidden"))}R(),D(),A.props.animation?k()&&function(e,t){F(e,function(){!A.state.isVisible&&v.parentNode&&v.parentNode.contains(v)&&t()})}(o,A.unmount):A.unmount()},hideWithInteractivity:function(e){S().addEventListener("mousemove",f),kt(Jt,f),f(e)},enable:function(){A.state.isEnabled=!0},disable:function(){A.hide(),A.state.isEnabled=!1},unmount:function(){A.state.isVisible&&A.hide();if(!A.state.isMounted)return;Z(),J().forEach(function(e){e._tippy.unmount()}),v.parentNode&&v.parentNode.removeChild(v);en=en.filter(function(e){return e!==A}),A.state.isMounted=!1,P("onHidden",[A])},destroy:function(){if(A.state.isDestroyed)return;A.clearDelayTimeouts(),A.unmount(),Y(),delete e._tippy,A.state.isDestroyed=!0,P("onDestroy",[A])}};if(!d.render)return A;var E=d.render(A),v=E.popper,_=E.onUpdate;v.setAttribute("data-tippy-root",""),v.id="tippy-"+A.id,A.popper=v,e._tippy=A,v._tippy=A;var L=y.map(function(e){return e.fn(A)}),I=e.hasAttribute("aria-expanded");return W(),D(),O(),P("onCreate",[A]),d.showOnCreate&&ee(),v.addEventListener("mouseenter",function(){A.props.interactive&&A.state.isVisible&&A.clearDelayTimeouts()}),v.addEventListener("mouseleave",function(){A.props.interactive&&A.props.trigger.indexOf("mouseenter")>=0&&S().addEventListener("mousemove",f)}),A;function T(){var e=A.props.touch;return Array.isArray(e)?e:[e,0]}function x(){return"hold"===T()[0]}function k(){var e;return!(null==(e=A.props.render)||!e.$$tippy)}function N(){return l||e}function S(){var e,t,n=N().parentNode;return n?null!=(t=xt(n)[0])&&null!=(e=t.ownerDocument)&&e.body?t.ownerDocument:document:document}function w(){return qt(v)}function C(e){return A.state.isMounted&&!A.state.isVisible||Bt.isTouch||s&&"focus"===s.type?0:_t(A.props.delay,e?0:1,Kt.delay)}function O(e){void 0===e&&(e=!1),v.style.pointerEvents=A.props.interactive&&!e?"":"none",v.style.zIndex=""+A.props.zIndex}function P(e,t,n){var o;(void 0===n&&(n=!0),L.forEach(function(n){n[e]&&n[e].apply(n,t)}),n)&&(o=A.props)[e].apply(o,t)}function R(){var t=A.props.aria;if(t.content){var n="aria-"+t.content,o=v.id;xt(A.props.triggerTarget||e).forEach(function(e){var t=e.getAttribute(n);if(A.state.isVisible)e.setAttribute(n,t?t+" "+o:o);else{var i=t&&t.replace(o,"").trim();i?e.setAttribute(n,i):e.removeAttribute(n)}})}}function D(){!I&&A.props.aria.expanded&&xt(A.props.triggerTarget||e).forEach(function(e){A.props.interactive?e.setAttribute("aria-expanded",A.state.isVisible&&e===N()?"true":"false"):e.removeAttribute("aria-expanded")})}function M(){S().removeEventListener("mousemove",f),Jt=Jt.filter(function(e){return e!==f})}function B(t){if(!Bt.isTouch||!h&&"mousedown"!==t.type){var n=t.composedPath&&t.composedPath()[0]||t.target;if(!A.props.interactive||!Mt(v,n)){if(xt(A.props.triggerTarget||e).some(function(e){return Mt(e,n)})){if(Bt.isTouch)return;if(A.state.isVisible&&A.props.trigger.indexOf("click")>=0)return}else P("onClickOutside",[A,t]);!0===A.props.hideOnClick&&(A.clearDelayTimeouts(),A.hide(),u=!0,setTimeout(function(){u=!1}),A.state.isMounted||H())}}}function $(){h=!0}function G(){h=!1}function U(){var e=S();e.addEventListener("mousedown",B,!0),e.addEventListener("touchend",B,Et),e.addEventListener("touchstart",G,Et),e.addEventListener("touchmove",$,Et)}function H(){var e=S();e.removeEventListener("mousedown",B,!0),e.removeEventListener("touchend",B,Et),e.removeEventListener("touchstart",G,Et),e.removeEventListener("touchmove",$,Et)}function F(e,t){var n=w().box;function o(e){e.target===n&&(Dt(n,"remove",o),t())}if(0===e)return t();Dt(n,"remove",a),Dt(n,"add",o),a=o}function K(t,n,o){void 0===o&&(o=!1),xt(A.props.triggerTarget||e).forEach(function(e){e.addEventListener(t,n,o),m.push({node:e,eventType:t,handler:n,options:o})})}function W(){var e;x()&&(K("touchstart",z,{passive:!0}),K("touchend",V,{passive:!0})),(e=A.props.trigger,e.split(/\s+/).filter(Boolean)).forEach(function(e){if("manual"!==e)switch(K(e,z),e){case"mouseenter":K("mouseleave",V);break;case"focus":K(Ft?"focusout":"blur",j);break;case"focusin":K("focusout",j)}})}function Y(){m.forEach(function(e){var t=e.node,n=e.eventType,o=e.handler,i=e.options;t.removeEventListener(n,o,i)}),m=[]}function z(e){var t,n=!1;if(A.state.isEnabled&&!q(e)&&!u){var o="focus"===(null==(t=s)?void 0:t.type);s=e,l=e.currentTarget,D(),!A.state.isVisible&&Lt(e,"MouseEvent")&&Jt.forEach(function(t){return t(e)}),"click"===e.type&&(A.props.trigger.indexOf("mouseenter")<0||p)&&!1!==A.props.hideOnClick&&A.state.isVisible?n=!0:ee(e),"click"===e.type&&(p=!n),n&&!o&&te(e)}}function Q(e){var t=e.target,n=N().contains(t)||v.contains(t);if("mousemove"!==e.type||!n){var o=J().concat(v).map(function(e){var t,n=null==(t=e._tippy.popperInstance)?void 0:t.state;return n?{popperRect:e.getBoundingClientRect(),popperState:n,props:d}:null}).filter(Boolean);(function(e,t){var n=t.clientX,o=t.clientY;return e.every(function(e){var t=e.popperRect,i=e.popperState,s=e.props.interactiveBorder,a=i.placement.split("-")[0],r=i.modifiersData.offset;if(!r)return!0;var l="bottom"===a?r.top.y:0,c="top"===a?r.bottom.y:0,d="right"===a?r.left.x:0,p="left"===a?r.right.x:0,u=t.top-o+l>s,h=o-t.bottom-c>s,g=t.left-n+d>s,m=n-t.right-p>s;return u||h||g||m})})(o,e)&&(M(),te(e))}}function V(e){q(e)||A.props.trigger.indexOf("click")>=0&&p||(A.props.interactive?A.hideWithInteractivity(e):te(e))}function j(e){A.props.trigger.indexOf("focusin")<0&&e.target!==N()||A.props.interactive&&e.relatedTarget&&v.contains(e.relatedTarget)||te(e)}function q(e){return!!Bt.isTouch&&x()!==e.type.indexOf("touch")>=0}function X(){Z();var t=A.props,n=t.popperOptions,o=t.placement,i=t.offset,s=t.getReferenceClientRect,a=t.moveTransition,l=k()?qt(v).arrow:null,c=s?{getBoundingClientRect:s,contextElement:s.contextElement||N()}:e,d={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(e){var t=e.state;if(k()){var n=w().box;["placement","reference-hidden","escaped"].forEach(function(e){"placement"===e?n.setAttribute("data-placement",t.placement):t.attributes.popper["data-popper-"+e]?n.setAttribute("data-"+e,""):n.removeAttribute("data-"+e)}),t.attributes.popper={}}}},p=[{name:"offset",options:{offset:i}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!a}},d];k()&&l&&p.push({name:"arrow",options:{element:l,padding:3}}),p.push.apply(p,(null==n?void 0:n.modifiers)||[]),A.popperInstance=ft(c,v,Object.assign({},n,{placement:o,onFirstUpdate:r,modifiers:p}))}function Z(){A.popperInstance&&(A.popperInstance.destroy(),A.popperInstance=null)}function J(){return Nt(v.querySelectorAll("[data-tippy-root]"))}function ee(e){A.clearDelayTimeouts(),e&&P("onTrigger",[A,e]),U();var t=C(!0),o=T(),i=o[0],s=o[1];Bt.isTouch&&"hold"===i&&s&&(t=s),t?n=setTimeout(function(){A.show()},t):A.show()}function te(e){if(A.clearDelayTimeouts(),P("onUntrigger",[A,e]),A.state.isVisible){if(!(A.props.trigger.indexOf("mouseenter")>=0&&A.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(e.type)>=0&&p)){var t=C(!1);t?o=setTimeout(function(){A.state.isVisible&&A.hide()},t):i=requestAnimationFrame(function(){A.hide()})}}else H()}}function nn(e,t){void 0===t&&(t={});var n=Kt.plugins.concat(t.plugins||[]);document.addEventListener("touchstart",Gt,Et),window.addEventListener("blur",Ht);var o=Object.assign({},t,{plugins:n}),i=Ot(e).reduce(function(e,t){var n=t&&tn(t,o);return n&&e.push(n),e},[]);return Ct(e)?i[0]:i}nn.defaultProps=Kt,nn.setDefaultProps=function(e){Object.keys(e).forEach(function(t){Kt[t]=e[t]})},nn.currentInput=Bt,Object.assign({},Ee,{effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow)}}),nn.setDefaultProps({render:Xt});const on={mainTRC:2.4,get mainTRCencode(){return 1/this.mainTRC},sRco:.2126729,sGco:.7151522,sBco:.072175,normBG:.56,normTXT:.57,revTXT:.62,revBG:.65,blkThrs:.022,blkClmp:1.414,scaleBoW:1.14,scaleWoB:1.14,loBoWoffset:.027,loWoBoffset:.027,deltaYmin:5e-4,loClip:.1,mFactor:1.9468554433171,get mFactInv(){return 1/this.mFactor},mOffsetIn:.0387393816571401,mExpAdj:.283343396420869,get mExp(){return this.mExpAdj/this.blkClmp},mOffsetOut:.312865795870758};function sn(e,t=2){const n=[["Lc",100,200,300,400,500,600,700,800,900],[0,999,999,999,999,999,999,999,999,999],[10,999,999,999,999,999,999,999,999,999],[15,777,777,777,777,777,777,777,777,777],[20,777,777,777,777,777,777,777,777,777],[25,777,777,777,120,120,108,96,96,96],[30,777,777,120,108,108,96,72,72,72],[35,777,120,108,96,72,60,48,48,48],[40,120,108,96,60,48,42,32,32,32],[45,108,96,72,42,32,28,24,24,24],[50,96,72,60,32,28,24,21,21,21],[55,80,60,48,28,24,21,18,18,18],[60,72,48,42,24,21,18,16,16,18],[65,68,46,32,21.75,19,17,15,16,18],[70,64,44,28,19.5,18,16,14.5,16,18],[75,60,42,24,18,16,15,14,16,18],[80,56,38.25,23,17.25,15.81,14.81,14,16,18],[85,52,34.5,22,16.5,15.625,14.625,14,16,18],[90,48,32,21,16,15.5,14.5,14,16,18],[95,45,28,19.5,15.5,15,14,13.5,16,18],[100,42,26.5,18.5,15,14.5,13.5,13,16,18],[105,39,25,18,14.5,14,13,12,16,18],[110,36,24,18,14,13,12,11,16,18],[115,34.5,22.5,17.25,12.5,11.875,11.25,10.625,14.5,16.5],[120,33,21,16.5,11,10.75,10.5,10.25,13,15],[125,32,20,16,10,10,10,10,12,14]],o=[["∆Lc",100,200,300,400,500,600,700,800,900],[0,0,0,0,0,0,0,0,0,0],[10,0,0,0,0,0,0,0,0,0],[15,0,0,0,0,0,0,0,0,0],[20,0,0,0,0,0,0,0,0,0],[25,0,0,0,12,12,12,24,24,24],[30,0,0,12,12,36,36,24,24,24],[35,0,12,12,36,24,18,16,16,16],[40,12,12,24,18,16,14,8,8,8],[45,12,24,12,10,4,4,3,3,3],[50,16,12,12,4,4,3,3,3,3],[55,8,12,6,4,3,3,2,2,0],[60,4,2,10,2.25,2,1,1,0,0],[65,4,2,4,2.25,1,1,.5,0,0],[70,4,2,4,1.5,2,1,.5,0,0],[75,4,3.75,1,.75,.188,.188,0,0,0],[80,4,3.75,1,.75,.188,.188,0,0,0],[85,4,2.5,1,.5,.125,.125,0,0,0],[90,3,4,1.5,.5,.5,.5,.5,0,0],[95,3,1.5,1,.5,.5,.5,.5,0,0],[100,3,1.5,.5,.5,.5,.5,1,0,0],[105,3,1,0,.5,1,1,1,0,0],[110,1.5,1.5,.75,1.5,1.125,.75,.375,1.5,1.5],[115,1.5,1.5,.75,1.5,1.125,.75,.375,1.5,1.5],[120,1,1,.5,1,.75,.5,.25,1,1],[125,0,0,0,0,0,0,0,0,0]];let i=[e.toFixed(t),0,0,0,0,0,0,0,0,0];i.length;let s=777;const a=0==(e=Math.abs(e))?1:.2*e|0;let r=0,l=.2*(e-n[a][r]);for(r++;r<10;r++)s=n[a][r],i[r]=s>400?s:e<14.5?999:e<29.5?777:s>24?Math.round(s-o[a][r]*l):s-.5*(2*o[a][r]*l|0);return i}function an(e=[0,0,0]){function t(e){return Math.pow(e/255,on.mainTRC)}return on.sRco*t(e[0])+on.sGco*t(e[1])+on.sBco*t(e[2])}function rn(e=[0,0,0,1],t=[0,0,0],n=!0){e[3]=Math.max(Math.min(e[3],1),0);let o=1-e[3],i=[0,0,0,1,!0];for(let s=0;s<3;s++)i[s]=t[s]*o+e[s]*e[3],n&&(i[s]=Math.min(Math.round(i[s]),255));return i}function ln(e){const t=parseInt(e,10);if(!Number.isNaN(t))return t;return{lighter:100,normal:400,bold:700,bolder:900}[e]||400}function cn(e,t){const n=e;let o,i,s,a=1;if(n.startsWith("rgb")){const e=n.match(/[\d.]+/g).map(Number);[o,i,s,a]=4===e.length?e:[...e,1]}else{if(n.startsWith("color(rec2020")||n.startsWith("color(display-p3"))return"unsupported";const e=document.createElement("canvas").getContext("2d");e.fillStyle=n,e.fillRect(0,0,1,1);const t=e.getImageData(0,0,1,1);[o,i,s,a]=t.data,a=(a/255).toFixed(2)}return t&&t<1&&(a=(a*t).toFixed(2)),[o,i,s,Number(a)]}function dn(e){let t=e;for(;t&&1===t.nodeType;){if(n.Global.shadowDetection){const e=t.getRootNode();if(e instanceof ShadowRoot){let n=t;for(;n&&n!==e.host;){const e=getComputedStyle(n);if(e.backgroundImage&&"none"!==e.backgroundImage)return{type:"image",value:e.backgroundImage};const t=cn(e.backgroundColor);if(0!==t[3]&&"transparent"!==t)return t;n=n.parentElement}return dn(e.host)}}const e=getComputedStyle(t),o=e.backgroundImage;if("none"!==o)return{type:"image",value:o};const i=cn(e.backgroundColor);if(0!==i[3]&&"transparent"!==i){if(i[3]<1){let e=t.parentElement,n="rgba(255, 255, 255, 1)";for(;e&&1===e.nodeType;){if(n=getComputedStyle(e).backgroundColor,"rgba(0, 0, 0, 0)"!==n)break;"rgba(0, 0, 0, 0)"===n&&"HTML"===e.tagName&&(n="rgba(255, 255, 255, 1)"),e=e.parentElement}return rn(i,cn(n||"rgba(255, 255, 255, 1)"))}return i}if("HTML"===t.tagName)return[255,255,255];t=t.parentNode}return[255,255,255]}function pn(e){const t=e.slice(0,3).map(e=>{const t=e/255;return t<=.03928?t/12.92:((t+.055)/1.055)**2.4});return.2126*t[0]+.7152*t[1]+.0722*t[2]}function un(e,t){return(Math.max(e,t)+.05)/(Math.min(e,t)+.05)}function hn(e,t){return e.map((e,n)=>{if(n<3){const n=Math.ceil(e+(255-e)*t);return n>=255?255:n}return e})}function gn(e,t){return e.map((e,n)=>{if(n<3){const n=Math.floor(e*(1-t));return n<=0?0:n}return e})}function mn(e){const[t,n,o]=e.map(e=>Math.min(255,Math.max(0,e)));return`#${t.toString(16).padStart(2,"0")}${n.toString(16).padStart(2,"0")}${o.toString(16).padStart(2,"0")}`}function fn(e){if(n.Global.contrastAPCA)return Math.abs(Number(e.toFixed(1)));const t=Math.round(100*e)/100;return Number.isInteger(t)?`${t}:1`:`${t.toFixed(2)}:1`}function bn(e,t){let o;const i=rn(e,t).slice(0,4);if(n.Global.contrastAPCA){o=function(e,t,n=-1){const o=[0,1.1];if(isNaN(e)||isNaN(t)||Math.min(e,t)o[1])return 0;let i=0,s=0,a="BoW";return e=e>on.blkThrs?e:e+Math.pow(on.blkThrs-e,on.blkClmp),t=t>on.blkThrs?t:t+Math.pow(on.blkThrs-t,on.blkClmp),Math.abs(t-e)e?(i=(Math.pow(t,on.normBG)-Math.pow(e,on.normTXT))*on.scaleBoW,s=i-on.loClip?0:i+on.loWoBoffset),n<0?100*s:0==n?Math.round(100*Math.abs(s))+""+a+"":Number.isInteger(n)?(100*s).toFixed(n):0)}(an(i),an(t))}else{o=un(pn(i),pn(t))}return{ratio:o,blendedColor:i}}function yn(e,t,n,o){const i=an(t),s=(e,t)=>i<=.179?hn(e,t):gn(e,t);let a=e,r=bn(a,t),l=sn(r.ratio).slice(1);const c=Math.floor(n/100)-1,d=l[c],p=o{const n=bn(e,[0,0,0,1]),o=bn(e,[255,255,255,1]),i=Math.abs(n.ratio)>Math.abs(o.ratio),s=i?[0,0,0,1]:[255,255,255,1],a=sn(i?n.ratio:o.ratio).slice(1);return{suggestedColor:s,size:Math.ceil(a[Math.floor(t/100)-1])}})(t,n);if(u.size>o)return{color:mn(u.suggestedColor),size:u.size};let h=e,g=a,m=r.ratio,f=.16;let b=0;if(p)for(;f>=.01;)if(b+=1,a=s(a,f),r=bn(a,t),l=sn(r.ratio).slice(1),l[c]<=o&&(g=Math.abs(r.ratio)<=Math.abs(m)?a:g,m=r.ratio,g=a,a=h,f*=.5),h=a,50===b)return{color:mn(u.suggestedColor),size:u.size};return{color:mn(g),size:null}}function An(e){let o;const{color:i,background:s,fontWeight:a,fontSize:r,isLargeText:l,type:c}=e;if(i&&s&&"image"!==s.type&&"text"===c){const c=n.Global.contrastAPCA?yn(i,s,a,r):function(e,t,n,o=!1){let i;i=o?n?4.5:7:n?3:4.5;const s=pn(e),a=pn(t),r=s>a?un(1,a)>i:un(0,a)n?hn(e,t):gn(e,t);let c=e,d=c,p=un(s,a),u=p,h=e,g=.16,m=0;for(;g>=.01;){if(m+=1,m>100)return{color:null};c=l(c,g,r),p=un(pn(c),a),p>=i&&(d=p<=u?c:d,u=p,c=h,g*=.5),h=c}return{color:mn(d)}}(i,s,l,n.Global.contrastAAA);let d;const p='',u=`${c.color}`,h=`${c.size}px`;n.Global.contrastAPCA?c.color&&c.size?d=`${p} ${t._("CONTRAST_APCA")} ${u} ${h}`:c.color?d=`${p} ${t._("CONTRAST_COLOR")} ${u}`:c.size&&(d=`${p} ${t._("CONTRAST_SIZE")} ${h}`):d=null===c.color?`${p} ${t._("NO_SUGGESTION")}`:`${p} ${t._("CONTRAST_COLOR")} ${u}`,o=document.createElement("div"),o.id="advice";const g=e.opacity<1?` ${t.sprintf("CONTRAST_OPACITY")}`:d;o.innerHTML=g}return o}function En(e,t){const o=e?.querySelector("#contrast-tools");if(o){const{fontSize:o,fontWeight:i,type:s,isLargeText:a}=t,r=e.querySelector("#contrast"),l=e.querySelector("#contrast-preview"),c=e.querySelector("#fg-input"),d=e.querySelector("#bg-input"),p=e.querySelector("#value"),u=e.querySelector("#good"),h=e.querySelector("#apca-table"),g=(e,t)=>{e.forEach(e=>{e.classList.toggle("good-contrast",t),e.classList.toggle("error-badge",!t)})},m=()=>{const e=c.value,t=d.value;[c,d].forEach(e=>e.classList.remove("unknown")),l.style.color=e,l.style.backgroundColor=t,l.style.backgroundImage="none";const m=l.querySelectorAll("svg *");if(1===m.length){const{fill:t,stroke:n}=getComputedStyle(m[0]);m[0].style.opacity=1,"none"!==t&&(m[0].style.fill=e),"none"!==n&&(m[0].style.stroke=e)}const f=bn(cn(e),cn(t)),b=[p,r];if(n.Global.contrastAPCA){const e=f.ratio;p.textContent=fn(e);const t=sn(e).slice(1),n=e>=45&&t[0]>=0&&t[0]<=777;let a;switch(s){case"svg-error":case"svg-warning":u.hidden=!n,a=n,g(b,a);break;case"svg-text":u.hidden=!n,a=t.slice(1,7).some(e=>999!==e&&777!==e),g(b,a),function(e,t){const n=e;n.innerHTML="",n.hidden=!1;const o=document.createElement("div");o.classList.add("row");const i=t.slice(1,7);for(let e=0;e=e,g(b,a),u.hidden=!a;break}}}if(!n.Global.contrastAPCA){const e=f.ratio;p.textContent=fn(e);const t=n.Global.contrastAAA,o=e>=3,i=e>=(t?7:4.5),l=e>=(t?4.5:3);switch(s){case"svg-error":case"svg-text":case"svg-warning":u.hidden=!o,g(b,o);break;default:a?(g([p,r],l),u.hidden=!l):(g([p,r],i),u.hidden=!i)}}};c.addEventListener("input",m),d.addEventListener("input",m)}}function vn(e,t,n,o,i,s,a=!1){const{ratio:r,blendedColor:l}=bn(t,n),c=o>=24||o>=18.67&&i>=700;let d;if(a)d=c?r<4.5:r<7;else{d=c?r<3:r>1&&r<4.5}return d?{$el:e,ratio:fn(r),color:l,background:n,fontSize:o,fontWeight:i,isLargeText:c,opacity:s,textUnderline:getComputedStyle(e).textDecorationLine}:null}function _n(e,t,n,o,i,s){const{ratio:a,blendedColor:r}=bn(t,n);return o{const t=e.shadowRoot.querySelectorAll(".sa11y-btn");t&&i.push(...Array.from(t))});const s=nn(i,{interactive:!0,trigger:"mouseenter click",hideOnClick:!1,arrow:!0,offset:[0,8],delay:[0,400],maxWidth:375,theme:"sa11y-theme",placement:"auto-start",allowHTML:!0,role:"dialog",aria:{content:null,expanded:"auto"},appendTo:e,zIndex:2147483645,onShow(e){s.forEach(t=>{t!==e.popper&&t.hide()});const o=e.reference.getRootNode().host;o.setAttribute("data-sa11y-opened","");const i=e.popper.querySelector(".close-btn"),a=()=>{e.hide(),e.reference.focus()};i.addEventListener("click",a);const r=t=>{"Escape"===t.key&&(e.hide(),e.reference.focus())};if(e.popper.addEventListener("keydown",r),!e.popper.hasAttribute("contrast-tools-initialized")){const i=parseInt(o.getAttribute("data-sa11y-annotation"),10),s=window.sa11yCheckComplete.results.find(e=>e.id===i),{contrastDetails:a}=s||{};if(a){const o=e.popper.querySelector("[data-sa11y-contrast-details]"),i=function(e){const{sanitizedText:o,color:i,background:s,fontWeight:a,fontSize:r,ratio:l,textUnderline:c}=e,d=s&&"image"!==s.type,p=d?mn(s):"#000000",u=i?mn(i):"#000000",h=a?`font-weight:${a};`:"",g=r?`font-size:${r}px;`:"",m=c?`text-decoration:${c};`:"",f=i?"":'class="unknown"',b=s&&"image"!==s.type?"":'class="unknown"',y=i?"":`(${t._("UNKNOWN")})`,A=s?"":`(${t._("UNKNOWN")})`;let E;E=n.Global.contrastAPCA?0===Math.abs(l)?0:Math.abs(l)||t._("UNKNOWN"):l||t._("UNKNOWN");const v=document.createElement("div");return v.id="contrast-tools",v.innerHTML=`\n \n
                                                    ${t._("CONTRAST")}
                                                    \n
                                                    ${E}
                                                    \n \n \n
                                                    ${o}
                                                    \n
                                                    \n \n \n
                                                    `,v}(a);o.appendChild(i),En(e.popper,a);const s=An(a);s&&o.appendChild(s),e.popper.setAttribute("contrast-tools-initialized",!0)}}let l=!0;e.popper.addEventListener("mousedown",function t(n){l&&n.target.matches('input[type="color"]')&&(e.reference.click(),l=!1,e.popper.removeEventListener("mousedown",t))});const c=()=>{i.removeEventListener("click",a),e.popper.removeEventListener("keydown",r),e.popper.removeEventListener("hidden",c)};e.popper.addEventListener("hidden",c)},onTrigger(e,t){"click"===t.type&&setTimeout(()=>{e.popper.querySelector(".close-btn").focus(),function(e){const t=e.querySelectorAll('a[href]:not([disabled]), button:not([disabled]), input[type="color"]'),n=t[0],o=t[t.length-1];e.addEventListener("keydown",t=>{const i="Tab"===t.key||9===t.keyCode,s=e.getRootNode();i&&(t.shiftKey?s.activeElement===n&&(o.focus(),t.preventDefault()):s.activeElement===o&&(n.focus(),t.preventDefault()))})}(e.popper)},0)},onHide(e){e.popper.querySelector(".close-btn").removeEventListener("click",()=>{e.hide()});e.reference.getRootNode().host.removeAttribute("data-sa11y-opened")}})}}class xn extends HTMLElement{connectedCallback(){const e=e=>({allowHTML:!0,delay:[500,0],trigger:"mouseenter focusin",arrow:!0,placement:"top",theme:"sa11y-theme sa11y-panel",role:"tooltip",aria:{content:null,expanded:null},appendTo:e,zIndex:2147483645}),o=this.attachShadow({mode:"open"}),i=document.createElement("style");i.innerHTML=In+Y,o.appendChild(i);const s=-1!==navigator.userAgent.indexOf("Mac")?'Option + S':'Alt + S';if(nn(n.Panel.skipButton,{...e(o),offset:[0,8],maxWidth:200,content:`${t._("SKIP_TO_ISSUE")} »
                                                    ${s}`}),this.object=nn(n.Panel.dismissButton,{offset:[0,8],maxWidth:200,...e(o)}),n.Global.developerPlugin){const i=n.Panel.developerItem.querySelector(".info-icon");i&&nn(i,{...e(o),triggerTarget:[n.Panel.developerItem],offset:[0,10],maxWidth:250,content:t._("DEVELOPER_DESC")})}if(n.Global.readabilityPlugin){const i=n.Panel.readabilityItem.querySelector(".info-icon");i&&nn(i,{...e(o),triggerTarget:[n.Panel.readabilityItem],offset:[0,10],maxWidth:250,content:t._("READABILITY_DESC")})}}}class kn extends HTMLElement{connectedCallback(){const e=this.attachShadow({mode:"open"}),t=document.createElement("style");t.innerHTML='.instance{display:block;position:relative}.instance-inline{display:inline-block;position:relative;text-align:end}button{border-radius:50%;box-shadow:0 0 16px 0 rgba(0,0,0,.31);cursor:pointer;display:block;padding:0;transition:all .2s ease-in-out;z-index:8888}button,button:after{height:36px;position:absolute;width:36px}button:after{content:"";left:-7px;padding:7px;top:-7px}.warning-btn{margin:20px}.error-btn,.good-btn{margin:10px}.error-btn-text,.good-btn-text,.warning-btn-text{margin:-30px 10px}.error-btn,.error-btn-text{background:50% 50% var(--sa11y-error-svg) no-repeat;background-color:var(--sa11y-error);background-size:22px;border:1px solid var(--sa11y-error)}.error-btn-text:focus,.error-btn-text:hover,.error-btn:focus,.error-btn:hover{background-color:var(--sa11y-error-hover)}.good-btn,.good-btn-text{background:50% 50% var(--sa11y-good) var(--sa11y-good-svg) no-repeat;background-color:var(--sa11y-good);background-size:20px;border:1px solid var(--sa11y-good)}.good-btn-text:focus,.good-btn-text:hover,.good-btn:focus,.good-btn:hover{background-color:var(--sa11y-good-hover)}.warning-btn,.warning-btn-text{background:50% 50% var(--sa11y-warning) var(--sa11y-warning-svg) no-repeat;background-color:var(--sa11y-warning);background-size:24px;border:1px solid var(--sa11y-warning);transform:scaleX(var(--sa11y-icon-direction))}.warning-btn-text:focus,.warning-btn-text:hover,.warning-btn:focus,.warning-btn:hover{background-color:var(--sa11y-warning-hover)}.sa11y-btn:active,.sa11y-btn:focus{box-shadow:0 0 0 5px var(--sa11y-focus-color);outline:0}@media screen and (forced-colors:active){.sa11y-btn{border:1px solid transparent!important;forced-color-adjust:none;outline:3px solid transparent!important}}'+Y,e.appendChild(t)}}const Nn=e=>{document.querySelectorAll("sa11y-annotation").forEach(t=>{const n=((e,t,n)=>{let o=e;for(;null!==o;){if(window.getComputedStyle(o).getPropertyValue(t)===n)return o;o=o.parentElement}return null})(t,"overflow","hidden");if(null!==n){if(e){if(e.split(",").flatMap(e=>[...document.querySelectorAll(e)]).includes(n))return}n.setAttribute("data-sa11y-overflow","")}})};class Sn extends HTMLElement{connectedCallback(){this.attachShadow({mode:"open"})}}class wn extends HTMLElement{connectedCallback(){const e=this.attachShadow({mode:"open"}),t=document.createElement("style");t.textContent="\n span.heading-label {\n background-color: #777678;\n background-image: linear-gradient(to bottom right, #b629ce, #16aec2);\n border-radius: 5px;\n border: 1px solid #36a5c3;\n color: white;\n display: inline-block;\n font-family: var(--sa11y-font-face);\n font-weight: 500;\n font-size: 18px;\n line-height: normal;\n letter-spacing: normal;\n margin: -5px 0 0 5px;\n padding: 3px;\n position: absolute;\n text-shadow: 1px 1px black;\n -webkit-text-fill-color: white;\n word-break: keep-all;\n z-index: 200;\n }\n @media screen and (forced-colors: active) {\n span.heading-label {\n border: 2px solid transparent;\n }\n }",e.appendChild(t)}}const Cn=(e,o)=>{if(0===e.offsetTop){const n=e.getRootNode().host,i=A(n,"display","none"),s=parseInt(n.getAttribute("data-sa11y-annotation"),10),a=w(o.find(e=>e.id===s));(e=>{const t=A(e.getRootNode().host,"display","none");if(null!==t){_(t.previousElementSibling||t.parentNode)}})(e);const r=e.getAttribute("data-tippy-content");if(T(`${t._("NOT_VISIBLE")}`,r,a),(()=>{const e=document.querySelector("sa11y-tooltips").shadowRoot.querySelector("button");null!==e&&e.click()})(),i){const e=i.previousElementSibling,{parentNode:t}=i;return e?E(e).top-150:E(t).top-150}}else I(),n.Panel.skipButton.focus();return E(e).top-150};let On=-1;const Pn=()=>{const e=v.getItem("sa11y-latest-dismissed");null!==e&&(On=parseInt(e,10)-1),v.removeItem("sa11y-latest-dismissed");const t=o("[data-sa11y-opened]","root");t[0]&&(On=parseInt(t[0].getAttribute("data-sa11y-position"),10))},Rn=e=>{Pn();const t=O.Annotations.Array;On>=t.length-1&&(On=-1);const o=t[On+1].shadowRoot.querySelector("button"),i=Cn(o,e);window.scrollTo({top:i,behavior:`${n.Global.scrollBehaviour}`}),0!==o.offsetTop&&(o.focus(),o.click()),On+=1};function Dn(e,t){O.Annotations.Array.length&&!n.Panel.skipButton.hasAttribute("disabled")&&(!e.altKey||"KeyS"!==e.code&&"Period"!==e.code?!e.altKey||"KeyW"!==e.code&&"Comma"!==e.code||(e.preventDefault(),(e=>{Pn();const t=O.Annotations.Array;On<=0&&(On=t.length);const o=O.Annotations.Array[On-1].shadowRoot.querySelector("button"),i=Cn(o,e);window.scrollTo({top:i,behavior:`${n.Global.scrollBehaviour}`}),0!==o.offsetTop&&(o.focus(),o.click()),On-=1,-1===On&&(On=O.Annotations.Array.length-1)})(t)):(e.preventDefault(),Rn(t)))}let Mn,Bn;function $n(e,o){return O.Found.Images.forEach(i=>{const s="noAria"===a(i)?i.getAttribute("alt"):a(i),l=i.closest(o.imageWithinLightbox?`a[href]:not(${o.imageWithinLightbox})`:"a[href]"),c=i.getAttribute("src")?i.getAttribute("src"):i.getAttribute("srcset"),p=l?m(l,n.Exclusions.LinkSpan).textContent:"",h=o.linkIgnoreStrings?p.replace(o.linkIgnoreStrings,""):p,g=l?b(h).length:0;if("true"!==i.getAttribute("aria-hidden")&&(1!==i.height||1!==i.width||!d(i))){if(l&&"true"===l.getAttribute("aria-hidden")){const n="-1"===l.getAttribute("tabindex");return void(o.checks.HIDDEN_FOCUSABLE&&!n&&e.push({element:i,type:o.checks.HIDDEN_FOCUSABLE.type||"error",content:t.sprintf(o.checks.HIDDEN_FOCUSABLE.content||"HIDDEN_FOCUSABLE"),dismiss:L(`IMGHIDDENFOCUSABLE${c}`),dismissAll:!!o.checks.HIDDEN_FOCUSABLE.dismissAll&&"LINK_HIDDEN_FOCUSABLE",developer:o.checks.HIDDEN_FOCUSABLE.developer||!0}))}if(null===s)if(l){const n=0===g?o.checks.MISSING_ALT_LINK:o.checks.MISSING_ALT_LINK_HAS_TEXT,s=0===g?"MISSING_ALT_LINK":"MISSING_ALT_LINK_HAS_TEXT";n&&e.push({element:i,type:n.type||"error",content:t.sprintf(n.content||s),dismiss:L(`${s+c+g}`),dismissAll:!!n.dismissAll&&s,developer:n.developer||!1})}else o.checks.MISSING_ALT&&e.push({element:i,type:o.checks.MISSING_ALT.type||"error",content:t.sprintf(o.checks.MISSING_ALT.content||"MISSING_ALT"),dismiss:L(`IMGNOALT${c}`),dismissAll:!!o.checks.MISSING_ALT.dismissAll&&"MISSING_ALT",developer:o.checks.MISSING_ALT.developer||!1});else{const n=b(u(s)),a=(e=>{const n=[null,null,null];[".avif",".png",".jpg",".jpeg",".webp",".gif",".tiff",".svg",".heif",".heic","http"].forEach(t=>{if(-1!==e.toLowerCase().indexOf(t.toLowerCase()))n[0]=t;else{const t=/\b\d{2,6}\s*x\s*\d{2,6}\b/,o=e.toLowerCase().match(t);o&&([n[0]]=o)}}),(o.susAltStopWords?o.susAltStopWords.split(",").map(e=>e.trim()):t._("SUS_ALT_STOPWORDS")).forEach(t=>{const o=e.toLowerCase().indexOf(t);o>-1&&o<6&&(n[1]=t)}),t._("PLACEHOLDER_ALT_STOPWORDS").forEach(t=>{e.length===t.length&&e.toLowerCase().indexOf(t)>=0&&(n[2]=t)});const{extraPlaceholderStopWords:i}=o;i.length&&i.split(",").map(e=>e.trim()).forEach(t=>{const o=e.toLowerCase().indexOf(t);o>-1&&o<6&&(n[2]=t)});return n})(n),d=i.getAttribute("aria-label")||i.getAttribute("aria-labelledby"),p=i.getAttribute("title"),h=""===s||" "===s,m=i.closest("figure"),f=m?.querySelector("figcaption"),A=f?f.textContent.trim():"",E=o.checks.LINK_IMAGE_LONG_ALT.maxLength||250,v=o.checks.IMAGE_ALT_TOO_LONG.maxLength||250;if(d&&""===n)return void(o.checks.MISSING_ALT&&e.push({element:i,type:o.checks.MISSING_ALT.type||"error",content:t.sprintf(o.checks.MISSING_ALT.content||"MISSING_ALT"),dismiss:L(`IMGNOALTARIA${c}`),dismissAll:!!o.checks.MISSING_ALT.dismissAll&&"MISSING_ALT",developer:o.checks.MISSING_ALT.developer||!1}));if(h){const n=o.checks.IMAGE_DECORATIVE_CAROUSEL.sources,s=n?i.closest(n):"";if(s){const n=s.querySelectorAll("img"),a=1===n.length?o.checks.IMAGE_DECORATIVE:o.checks.IMAGE_DECORATIVE_CAROUSEL,r=1===n.length?"IMAGE_DECORATIVE":"IMAGE_DECORATIVE_CAROUSEL";a&&e.push({element:i,type:a.type||"warning",content:t.sprintf(a.content||r),dismiss:L(r+c),dismissAll:!!a.dismissAll&&r,developer:a.developer||!1})}else if(l){const n=0===g?o.checks.LINK_IMAGE_NO_ALT_TEXT:o.checks.LINK_IMAGE_TEXT,s=0===g?"LINK_IMAGE_NO_ALT_TEXT":"LINK_IMAGE_TEXT";n&&e.push({element:i,type:n.type||(0===g?"error":"good"),content:t.sprintf(n.content||s),dismiss:L(`${s+c+g}`),dismissAll:!!n.dismissAll&&s,developer:n.developer||!1})}else if(m){const n=f&&A.length?o.checks.IMAGE_FIGURE_DECORATIVE:o.checks.IMAGE_DECORATIVE,s=f&&A.length?"IMAGE_FIGURE_DECORATIVE":"IMAGE_DECORATIVE";n&&e.push({element:i,type:n.type||"warning",content:t.sprintf(n.content||s),dismiss:L(`${s+c+A}`),dismissAll:!!n.dismissAll&&s,developer:n.developer||!1})}else o.checks.IMAGE_DECORATIVE&&e.push({element:i,type:o.checks.IMAGE_DECORATIVE.type||"warning",content:t.sprintf(o.checks.IMAGE_DECORATIVE.content||"IMAGE_DECORATIVE"),dismiss:L(`DECIMAGE${c}`),dismissAll:!!o.checks.IMAGE_DECORATIVE.dismissAll&&"IMAGE_DECORATIVE",developer:o.checks.IMAGE_DECORATIVE.developer||!1});return}if(null!==a[0]){const s=l?o.checks.LINK_ALT_FILE_EXT:o.checks.ALT_FILE_EXT,r=l?"LINK_ALT_FILE_EXT":"ALT_FILE_EXT";s&&e.push({element:i,type:s.type||"error",content:t.sprintf(s.content||r,a[0],n),dismiss:L(`${r+c+n}`),dismissAll:!!s.dismissAll&&r,developer:s.developer||!1})}else if(null!==a[2]){const s=l?o.checks.LINK_PLACEHOLDER_ALT:o.checks.ALT_PLACEHOLDER,a=l?"LINK_PLACEHOLDER_ALT":"ALT_PLACEHOLDER";s&&e.push({element:i,type:s.type||"error",content:t.sprintf(s.content||a,n),dismiss:L(`${a+c+n}`),dismissAll:!!s.dismissAll&&a,developer:s.developer||!1})}else if(null!==a[1]){const s=l?o.checks.LINK_SUS_ALT:o.checks.SUS_ALT,r=l?"LINK_SUS_ALT":"SUS_ALT";s&&e.push({element:i,type:s.type||"warning",content:t.sprintf(s.content||r,a[1],n),dismiss:L(`${r+c+n}`),dismissAll:!!s.dismissAll&&r,developer:s.developer||!1})}else if(l?s.length>E:s.length>v){const a=l?o.checks.LINK_IMAGE_LONG_ALT:o.checks.IMAGE_ALT_TOO_LONG,r=l?"LINK_IMAGE_LONG_ALT":"IMAGE_ALT_TOO_LONG",d=y(n,600);a&&e.push({element:i,type:a.type||"warning",content:t.sprintf(a.content||r,s.length,d),dismiss:L(`${r+c+n}`),dismissAll:!!a.dismissAll&&r,developer:a.developer||!1})}else if(l){const s=0===g?o.checks.LINK_IMAGE_ALT:o.checks.LINK_IMAGE_ALT_AND_TEXT,a=0===g?"LINK_IMAGE_ALT":"LINK_IMAGE_ALT_AND_TEXT";if(s){const o=u(b(r(l))),d=0===g?t.sprintf("LINK_IMAGE_ALT",n):`${t.sprintf("LINK_IMAGE_ALT_AND_TEXT",n,o)} ${t.sprintf("ACC_NAME_TIP")}`;e.push({element:i,type:s.type||"warning",content:s.content?t.sprintf(s.content,n,o):d,dismiss:L(`${a+c+n}`),dismissAll:!!s.dismissAll&&a,developer:s.developer||!1})}}else if(m){!!f&&A.toLowerCase()===n.trim().toLowerCase()?o.checks.IMAGE_FIGURE_DUPLICATE_ALT&&e.push({element:i,type:o.checks.IMAGE_FIGURE_DUPLICATE_ALT.type||"warning",content:t.sprintf(o.checks.IMAGE_FIGURE_DUPLICATE_ALT.content||"IMAGE_FIGURE_DUPLICATE_ALT",n),dismiss:L(`FIGDUPLICATE${c}`),dismissAll:!!o.checks.IMAGE_FIGURE_DUPLICATE_ALT.dismissAll&&"IMAGE_FIGURE_DUPLICATE_ALT",developer:o.checks.IMAGE_FIGURE_DUPLICATE_ALT.developer||!1}):o.checks.IMAGE_PASS&&e.push({element:i,type:o.checks.IMAGE_PASS.type||"good",content:t.sprintf(o.checks.IMAGE_PASS.content||"IMAGE_PASS",n),dismiss:L(`FIGIMGPASS${c+n}`),dismissAll:!!o.checks.IMAGE_PASS.dismissAll&&"IMAGE_PASS",developer:o.checks.IMAGE_PASS.developer||!1})}else o.checks.IMAGE_PASS&&(i.closest('button, [role="button"]')||e.push({element:i,type:o.checks.IMAGE_PASS.type||"good",content:t.sprintf(o.checks.IMAGE_PASS.content||"IMAGE_PASS",n),dismiss:L(`IMAGEPASS${c+n}`),dismissAll:!!o.checks.IMAGE_PASS.dismissAll&&"IMAGE_PASS",developer:o.checks.IMAGE_PASS.developer||!1}));p?.toLowerCase()===s.toLowerCase()&&o.checks.DUPLICATE_TITLE&&e.push({element:i,type:o.checks.DUPLICATE_TITLE.type||"warning",content:t.sprintf(o.checks.DUPLICATE_TITLE.content||"DUPLICATE_TITLE"),inline:!0,dismiss:L(`ALTDUPLICATETITLE${n}`),dismissAll:!!o.checks.DUPLICATE_TITLE.dismissAll&&"DUPLICATE_TITLE",developer:o.checks.DUPLICATE_TITLE.developer||!1})}}}),e}function Gn(e,o){const i=o.linkStopWords?[...t._("PARTIAL_ALT_STOPWORDS"),...o.linkStopWords.split(",").map(e=>e.trim())]:t._("PARTIAL_ALT_STOPWORDS"),s=e=>e.replace(/[^\w\s./]/g,"").replace(/\s+/g," ").trim(),a=(e,t)=>{const n=e.replace(/\./g,"").toLowerCase();let o=null;return t.forEach(e=>{n.length===e.length&&n.indexOf(e.toLowerCase())>=0&&(o=e)}),o},l={};return O.Found.Links.forEach(c=>{const d=function(e){let t=e.getAttribute("href");return t=b(t).toLowerCase(),t.endsWith("/")&&(t=t.slice(0,-1)),t=t.replace(/^https?:\/\/(www\.)?/,""),t=t.replace(/\.(html|php|htm|asp|aspx)$/i,""),t}(c),p=r(c,n.Exclusions.LinkSpan),h=b(o.linkIgnoreStrings?p.replace(o.linkIgnoreStrings,""):p),g=(e=>{const n=[null,null,null,null];return n[0]=a(e,i),t._("CLICK").forEach(t=>(new RegExp(`\\b${t}\\b`,"i").test(e)&&(n[1]=t),!1)),["doi.org/","dl.acm.org/","link.springer.com/","pubmed.ncbi.nlm.nih.gov/","scholar.google.com/","ieeexplore.ieee.org/","researchgate.net/publication/","sciencedirect.com/science/article/"].forEach(t=>(e.toLowerCase().indexOf(t)>=0&&(n[2]=t),!1)),["www.","http"].forEach(t=>(e.toLowerCase().startsWith(t)&&(n[3]=t),!1)),[".edu/",".com/",".net/",".org/",".us/",".ca/",".de/",".icu/",".uk/",".ru/",".info/",".top/",".xyz/",".tk/",".cn/",".ga/",".cf/",".nl/",".io/",".fr/",".pe/",".nz/",".pt/",".es/",".pl/",".ua/"].forEach(t=>(e.toLowerCase().indexOf(t)>=0&&(n[3]=t),!1)),n})(s(h)),y=1===h.length&&/[^a-zA-Z0-9]/g.test(h),A=h.match(/([<>↣↳←→↓«»↴]+)/),E=A?A[1]:null,v=c.getAttribute("title"),_="true"===c.getAttribute("aria-hidden"),I="-1"===c.getAttribute("tabindex"),T=c.querySelector(":scope [aria-labelledby], :scope [aria-label]")||c.getAttribute("aria-labelledby")||c.getAttribute("aria-label"),x=c.querySelector(":scope [aria-labelledby]")||c.getAttribute("aria-labelledby"),k=t._("NEW_WINDOW_PHRASES").some(e=>h.toLowerCase().includes(e)||f(c).toLowerCase().includes(e)),N=t._("CLICK").some(e=>new RegExp(`\\b${e}\\b`,"i").test(c.textContent)),S=["pdf","doc","docx","word","mp3","ppt","text","pptx","txt","exe","dmg","rtf","windows","macos","csv","xls","xlsx","mp4","mov","avi","zip"].concat(t._("FILE_TYPE_PHRASES")).some(e=>h.toLowerCase().includes(e)||f(c).toLowerCase().includes(e)),w=c.matches("\n a[href$='.pdf'],\n a[href$='.doc'],\n a[href$='.docx'],\n a[href$='.zip'],\n a[href$='.mp3'],\n a[href$='.txt'],\n a[href$='.exe'],\n a[href$='.dmg'],\n a[href$='.rtf'],\n a[href$='.pptx'],\n a[href$='.ppt'],\n a[href$='.xls'],\n a[href$='.xlsx'],\n a[href$='.csv'],\n a[href$='.mp4'],\n a[href$='.mov'],\n a[href$='.avi']\n "),O=h.replace(/'|"|-|\.|\s+/g,"").toLowerCase();if(!c.querySelectorAll("img").length){if(_)I||o.checks.HIDDEN_FOCUSABLE&&e.push({element:c,type:o.checks.HIDDEN_FOCUSABLE.type||"error",content:t.sprintf(o.checks.HIDDEN_FOCUSABLE.content||"HIDDEN_FOCUSABLE"),inline:!0,position:"afterend",dismiss:L(`LINKHIDDENFOCUS${d+O}`),dismissAll:!!o.checks.HIDDEN_FOCUSABLE.dismissAll&&"LINK_HIDDEN_FOCUSABLE",developer:o.checks.HIDDEN_FOCUSABLE.developer||!0});else if(!d&&""!==d||0!==h.length)if(null!==g[0])o.checks.LINK_STOPWORD&&e.push({element:c,type:o.checks.LINK_STOPWORD.type||"error",content:o.checks.LINK_STOPWORD.content?t.sprintf(o.checks.LINK_STOPWORD.content,g[0]):t.sprintf("LINK_STOPWORD",g[0])+t.sprintf("LINK_TIP"),inline:!0,position:"afterend",dismiss:L(`LINKSTOPWORD${d+O}`),dismissAll:!!o.checks.LINK_STOPWORD.dismissAll&&"LINK_STOPWORD",developer:o.checks.LINK_STOPWORD.developer||!1});else if(null!==g[2])h.length>8&&o.checks.LINK_DOI&&e.push({element:c,type:o.checks.LINK_DOI.type||"warning",content:t.sprintf(o.checks.LINK_DOI.content||"LINK_DOI"),inline:!0,dismiss:L(`LINKDOI${d+O}`),dismissAll:!!o.checks.LINK_DOI.dismissAll&&"LINK_DOI",developer:o.checks.LINK_DOI.developer||!1});else if(null!==g[3])h.length>(o.checks.LINK_URL.maxLength||40)&&o.checks.LINK_URL&&e.push({element:c,type:o.checks.LINK_URL.type||"warning",content:o.checks.LINK_URL.content?t.sprintf(o.checks.LINK_URL.content):t.sprintf("LINK_URL")+t.sprintf("LINK_TIP"),inline:!0,dismiss:L(`LINKURLNAME${d+O}`),dismissAll:!!o.checks.LINK_URL.dismissAll&&"LINK_URL",developer:o.checks.LINK_URL.developer||!1});else if(T){const r=u(h),l=m(c,n.Exclusions.LinkSpan),p=o.linkIgnoreStrings?f(l).replace(o.linkIgnoreStrings,""):f(l),g=s(p),b=a(g,i);o.checks.LINK_STOPWORD_ARIA&&null!==b?e.push({element:c,type:o.checks.LINK_STOPWORD_ARIA.type||"warning",content:o.checks.LINK_STOPWORD_ARIA.content?t.sprintf(o.checks.LINK_STOPWORD_ARIA.content,b,r):t.sprintf("LINK_STOPWORD_ARIA",b,r)+t.sprintf("LINK_TIP"),inline:!0,dismiss:L(`LINKSTOPWORDARIA${d+O}`),dismissAll:!!o.checks.LINK_STOPWORD_ARIA.dismissAll&&" LINK_STOPWORD_ARIA",developer:o.checks.LINK_STOPWORD_ARIA.developer||!0}):o.checks.LINK_LABEL&&e.push({element:c,type:o.checks.LINK_LABEL.type||"good",content:o.checks.LINK_LABEL.content?t.sprintf(o.checks.LINK_LABEL.content,r):`${t.sprintf("ACC_NAME",r)} ${t.sprintf("ACC_NAME_TIP")}`,inline:!0,position:"afterend",dismiss:L(`LINKGOOD${d+O}`),dismissAll:!!o.checks.LINK_LABEL.dismissAll&&"LINK_LABEL",developer:o.checks.LINK_LABEL.developer||!1});const y=C(c);o.checks.LABEL_IN_NAME&&y&&0!==c.textContent.length&&e.push({element:c,type:o.checks.LABEL_IN_NAME.type||"warning",content:t.sprintf(o.checks.LABEL_IN_NAME.content||"LABEL_IN_NAME",r),inline:!0,position:"afterend",dismiss:L(`LINKLABELNAME${d+O}`),dismissAll:!!o.checks.LABEL_IN_NAME.dismissAll&&"BTN_LABEL_IN_NAME",developer:o.checks.LABEL_IN_NAME.developer||!0})}else E?o.checks.LINK_SYMBOLS&&e.push({element:c,type:o.checks.LINK_SYMBOLS.type||"warning",content:t.sprintf(o.checks.LINK_SYMBOLS.content||"LINK_SYMBOLS",E),inline:!0,dismiss:L(`LINKSYMBOL${d+O}`),dismissAll:!!o.checks.LINK_SYMBOLS.dismissAll&&"LINK_SYMBOLS",developer:o.checks.LINK_SYMBOLS.developer||!1}):y&&o.checks.LINK_EMPTY&&e.push({element:c,type:o.checks.LINK_EMPTY.type||"error",content:t.sprintf(o.checks.LINK_EMPTY.content||"LINK_EMPTY"),inline:!0,position:"afterend",dismiss:L(`LINKCHAR${d}`),dismissAll:!!o.checks.LINK_EMPTY.dismissAll&&"LINK_EMPTY",developer:o.checks.LINK_EMPTY.developer||!1});else x?o.checks.LINK_EMPTY_LABELLEDBY&&e.push({element:c,type:o.checks.LINK_EMPTY_LABELLEDBY.type||"error",content:t.sprintf(o.checks.LINK_EMPTY_LABELLEDBY.content||"LINK_EMPTY_LABELLEDBY"),inline:!0,position:"afterend",dismiss:L(`LINKEMPTYLABELLEDBY${d}`),dismissAll:!!o.checks.LINK_EMPTY_LABELLEDBY.dismissAll&&"LINK_EMPTY_LABELLEDBY",developer:o.checks.LINK_EMPTY_LABELLEDBY.developer||!0}):c.children.length?o.checks.LINK_EMPTY_NO_LABEL&&e.push({element:c,type:o.checks.LINK_EMPTY_NO_LABEL.type||"error",content:t.sprintf(o.checks.LINK_EMPTY_NO_LABEL.content||"LINK_EMPTY_NO_LABEL"),inline:!0,position:"afterend",dismiss:L(`LINKEMPTYNOLABEL${d}`),dismissAll:!!o.checks.LINK_EMPTY_NO_LABEL.dismissAll&&"LINK_EMPTY_NO_LABEL",developer:o.checks.LINK_EMPTY_NO_LABEL.developer||!1}):o.checks.LINK_EMPTY&&e.push({element:c,type:o.checks.LINK_EMPTY.type||"error",content:t.sprintf(o.checks.LINK_EMPTY.content||"LINK_EMPTY"),inline:!0,position:"afterend",dismiss:L(`LINKEMPTY${d}`),dismissAll:!!o.checks.LINK_EMPTY.dismissAll&&"LINK_EMPTY",developer:o.checks.LINK_EMPTY.developer||!1});(null!==g[1]||N)&&o.checks.LINK_CLICK_HERE&&e.push({element:c,type:o.checks.LINK_CLICK_HERE.type||"warning",content:o.checks.LINK_CLICK_HERE.content?t.sprintf(o.checks.LINK_CLICK_HERE.content):t.sprintf("LINK_CLICK_HERE")+t.sprintf("LINK_TIP"),inline:!0,dismiss:L(`LINKCLICKHERE${d+O}`),dismissAll:!!o.checks.LINK_CLICK_HERE.dismissAll&&"LINK_CLICK_HERE",developer:o.checks.LINK_CLICK_HERE.developer||!1}),0!==f(c).length&&v?.toLowerCase()===h.toLowerCase()&&o.checks.DUPLICATE_TITLE&&e.push({element:c,type:o.checks.DUPLICATE_TITLE.type||"warning",content:t.sprintf(o.checks.DUPLICATE_TITLE.content||"DUPLICATE_TITLE"),inline:!0,dismiss:L(`LINKDUPLICATETITLE${d+O}`),dismissAll:!!o.checks.DUPLICATE_TITLE.dismissAll&&"DUPLICATE_TITLE",developer:o.checks.DUPLICATE_TITLE.developer||!1})}if(o.linksAdvancedPlugin&&0!==O.length){if(l[O]&&!l[d]){if(o.checks.LINK_IDENTICAL_NAME){const n=u(h);e.push({element:c,type:o.checks.LINK_IDENTICAL_NAME.type||"warning",content:o.checks.LINK_IDENTICAL_NAME.content?t.sprintf(o.checks.LINK_IDENTICAL_NAME.content,n):`${t.sprintf("LINK_IDENTICAL_NAME",n)} ${t.sprintf("ACC_NAME_TIP")}`,inline:!0,dismiss:L(`LINKSEEN${d+O}`),dismissAll:!!o.checks.LINK_IDENTICAL_NAME.dismissAll&&"LINK_IDENTICAL_NAME",developer:o.checks.LINK_IDENTICAL_NAME.developer||!1})}}else l[O]=!0,l[d]=!0;"_blank"!==c.getAttribute("target")?.toLowerCase()||w||k||o.checks.LINK_NEW_TAB&&e.push({element:c,type:o.checks.LINK_NEW_TAB.type||"warning",content:t.sprintf(o.checks.LINK_NEW_TAB.content||"LINK_NEW_TAB"),inline:!0,dismiss:L(`LINKNEWTAB${d+O}`),dismissAll:!!o.checks.LINK_NEW_TAB.dismissAll&&"LINK_NEW_TAB",developer:o.checks.LINK_NEW_TAB.developer||!1}),w&&!S&&o.checks.LINK_FILE_EXT&&e.push({element:c,type:o.checks.LINK_FILE_EXT.type||"warning",content:t.sprintf(o.checks.LINK_FILE_EXT.content||"LINK_FILE_EXT"),inline:!0,dismiss:L(`LINKEXT${d+O}`),dismissAll:!!o.checks.LINK_FILE_EXT.dismissAll&&"LINK_FILE_EXT",developer:o.checks.LINK_FILE_EXT.developer||!1})}}),e}function Un(e,o){if(o.checks.QA_BAD_LINK&&O.Found.CustomErrorLinks.forEach(n=>{e.push({element:n,type:o.checks.QA_BAD_LINK.type||"error",content:t.sprintf(o.checks.QA_BAD_LINK.content||"QA_BAD_LINK",n),inline:!0,dismiss:L(n.tagName+n.textContent),dismissAll:!!o.checks.QA_BAD_LINK.dismissAll&&"QA_BAD_LINK",developer:o.checks.QA_BAD_LINK.developer||!1})}),o.checks.QA_STRONG_ITALICS&&O.Found.StrongItalics.forEach(n=>{const i=f(n);0!==i.length&&i.length>400&&e.push({element:n.parentNode,type:o.checks.QA_STRONG_ITALICS.type||"warning",content:t.sprintf(o.checks.QA_STRONG_ITALICS.content||"QA_STRONG_ITALICS"),dismiss:L(n.tagName+n.textContent),dismissAll:!!o.checks.QA_STRONG_ITALICS.dismissAll&&"QA_STRONG_ITALICS",developer:o.checks.QA_STRONG_ITALICS.developer||!1})}),O.Found.Links.forEach(i=>{if(i.hasAttribute("href")){const s=i.getAttribute("href"),a=i.matches(n.Global.documentSources),r=i.matches('a[href$=".pdf"], a[href*=".pdf?"]');if(o.checks.QA_IN_PAGE_LINK){const n="button"===i.getAttribute("role")||i.hasAttribute("aria-haspopup")||i.hasAttribute("aria-expanded")||i.hasAttribute("onclick"),a=0!==f(i).length;if((s.startsWith("#")||""===s)&&!n&&a){const n=s.substring(1),a=i.getAttribute("aria-controls");document.getElementById(n)||document.getElementById(decodeURIComponent(n))||document.getElementById(encodeURIComponent(n))||document.getElementById(a)||document.querySelector(`a[name="${n}"]`)||e.push({element:i,type:o.checks.QA_IN_PAGE_LINK.type||"error",content:t.sprintf(o.checks.QA_IN_PAGE_LINK.content||"QA_IN_PAGE_LINK"),inline:!0,dismiss:L(`QAINPAGE${s}`),dismissAll:!!o.checks.QA_IN_PAGE_LINK.dismissAll&&"QA_IN_PAGE_LINK",developer:o.checks.QA_IN_PAGE_LINK.developer||!1})}}o.checks.QA_DOCUMENT&&a?e.push({element:i,type:o.checks.QA_DOCUMENT.type||"warning",content:t.sprintf(o.checks.QA_DOCUMENT.content||"QA_DOCUMENT"),inline:!0,dismiss:L(`DOC${s}`),dismissAll:!!o.checks.QA_DOCUMENT.dismissAll&&"QA_DOCUMENT",developer:o.checks.QA_DOCUMENT.developer||!1}):o.checks.QA_PDF&&r&&e.push({element:i,type:o.checks.QA_PDF.type||"warning",content:t.sprintf(o.checks.QA_PDF.content||"QA_PDF"),inline:!0,dismiss:L(`PDF${s}`),dismissAll:!!o.checks.QA_PDF.dismissAll&&"QA_PDF",developer:o.checks.QA_PDF.developer||!1})}}),o.checks.QA_BLOCKQUOTE&&O.Found.Blockquotes.forEach(n=>{const i=f(n);if(0!==i.length&&i.length<25){const s=u(i);e.push({element:n,type:o.checks.QA_BLOCKQUOTE.type||"warning",content:t.sprintf(o.checks.QA_BLOCKQUOTE.content||"QA_BLOCKQUOTE",s),dismiss:L(`BLOCKQUOTE${s}`),dismissAll:!!o.checks.QA_BLOCKQUOTE.dismissAll&&"QA_BLOCKQUOTE",developer:o.checks.QA_BLOCKQUOTE.developer||!1})}}),O.Found.Tables.forEach(n=>{if(!1===d(n)){const i=n.querySelectorAll("th"),s=n.querySelectorAll("h1, h2, h3, h4, h5, h6"),a=L(`TABLE${n.textContent}`);o.checks.TABLES_MISSING_HEADINGS&&0===i.length&&e.push({element:n,type:o.checks.TABLES_MISSING_HEADINGS.type||"error",content:t.sprintf(o.checks.TABLES_MISSING_HEADINGS.content||"TABLES_MISSING_HEADINGS"),dismiss:a,dismissAll:!!o.checks.TABLES_MISSING_HEADINGS.dismissAll&&"TABLES_MISSING_HEADINGS",developer:o.checks.TABLES_MISSING_HEADINGS.developer||!1}),o.checks.TABLES_SEMANTIC_HEADING&&s.length>0&&s.forEach(n=>{e.push({element:n,type:o.checks.TABLES_SEMANTIC_HEADING.type||"error",content:t.sprintf(o.checks.TABLES_SEMANTIC_HEADING.content||"TABLES_SEMANTIC_HEADING"),dismiss:a,dismissAll:!!o.checks.TABLES_SEMANTIC_HEADING.dismissAll&&"TABLES_SEMANTIC_HEADING",developer:o.checks.TABLES_SEMANTIC_HEADING.developer||!1})}),i.forEach(n=>{o.checks.TABLES_EMPTY_HEADING&&0===n.textContent.trim().length&&e.push({element:n,type:o.checks.TABLES_EMPTY_HEADING.type||"error",content:t.sprintf(o.checks.TABLES_EMPTY_HEADING.content||"TABLES_EMPTY_HEADING"),position:"afterbegin",dismiss:a,dismissAll:!!o.checks.TABLES_EMPTY_HEADING.dismissAll&&"TABLES_EMPTY_HEADING",developer:o.checks.TABLES_EMPTY_HEADING.developer||!1})})}}),o.checks.QA_FAKE_HEADING){const n=(n,i)=>{e.push({element:n,type:o.checks.QA_FAKE_HEADING.type||"warning",content:t.sprintf(o.checks.QA_FAKE_HEADING.content||"QA_FAKE_HEADING",i),dismiss:L(`BOLD${i}`),inline:!0,dismissAll:!!o.checks.QA_FAKE_HEADING.dismissAll&&"QA_FAKE_HEADING",developer:o.checks.QA_FAKE_HEADING.developer||!1})},i=e=>{const t=e.previousElementSibling;if(!t)return!1;return["H1","H2","H3","H4","H5","H6"].includes(t.tagName)},s='h1, h2, h3, h4, h5, h6, [role="heading"][aria-level], blockquote, table',a=e=>{const t=getComputedStyle(e).fontSize.replace("px",""),o=f(e),a=null===o.match(/[.;?!"]/),r=o.length>=4&&o.length<=120;if(t>=24&&!e.closest(s)&&r&&a&&!i(e)){const t=u(o);n(e,t)}},r=e=>{if(/^(|)/i.test(e.innerHTML.trim())&&!e.closest(s)){const t=e.querySelector("strong, b"),o=f(t),i=null===o.match(/[.:;?!"']/);if(o.length>=3&&o.length<=120&&i){const i=m(e,["strong","b"]).textContent.trim().length;if(0!==i&&i<=250)return;const s=u(o);n(t,s)}}};O.Found.Paragraphs.forEach(e=>{a(e),r(e)})}if(o.checks.QA_FAKE_LIST){const n=new RegExp(/(([023456789][\d\s])|(1\d))/,""),i=new RegExp(/(^[aA1αаΑ]|[^\p{Alphabetic}\s])[-\s.)]/,"u"),s=new RegExp(/\p{Extended_Pictographic}/,"u"),a=["a","A","α","Α","а","А","1"],r=/[([{#]/,l={2:"1",b:"a",B:"A","β":"α","Β":"Α","б":"а","Б":"А"},c=e=>e.replace(/^b|^B|^б|^Б|^β|^В|^2/,e=>l[e]);let d="",p="",u=!1;O.Found.Paragraphs.forEach((l,h)=>{let g=!1,m=!1;p=p||f(l).replace("(","");const b=p.substring(0,2),y=b.match(i),A=b.match(n),E=b.match(s),v=r.test(b.charAt(0));if(b.length>0&&b!==d&&!A&&(y||E||v)){const n=O.Found.Paragraphs[h+1];if(n){if(g=f(n).replace("(","").substring(0,2),a.includes(g?.toLowerCase().trim()))return;const e=c(g);y?"A "!==b&&b===e&&(m=!0):E&&!u&&e.match(s)&&(m=!0,u=!0)}if(!m){let e=l?.querySelector("br")?.nextSibling?.nodeValue;if(e){e=e.replace(/<\/?[^>]+(>|$)/g,"").trim().substring(0,2);(r.test(e.charAt(0))||b===c(e)||!u&&e.match(s))&&(m=!0)}}m?(e.push({element:l,type:o.checks.QA_FAKE_LIST.type||"warning",content:t.sprintf(o.checks.QA_FAKE_LIST.content||"QA_FAKE_LIST",b),dismiss:L(`LIST${l.textContent}`),dismissAll:!!o.checks.QA_FAKE_LIST.dismissAll&&"QA_FAKE_LIST",developer:o.checks.QA_FAKE_LIST.developer||!1}),d=b):d=""}p=g?"":g})}if(o.checks.QA_UPPERCASE){const n=n=>{let i="";"LI"===n.tagName?n.childNodes.forEach(e=>{3===e.nodeType&&(i+=e.textContent)}):i=f(n);const s=i.match(/([A-Z]{2,}[ ])([A-Z]{2,}[ ])([A-Z]{2,}[ ])([A-Z]{2,})/g);s&&s[0].length>10&&e.push({element:n,type:o.checks.QA_UPPERCASE.type||"warning",content:t.sprintf(o.checks.QA_UPPERCASE.content||"QA_UPPERCASE"),dismiss:L(`UPPERCASE${i}`),dismissAll:!!o.checks.QA_UPPERCASE.dismissAll&&"QA_UPPERCASE",developer:o.checks.QA_UPPERCASE.developer||!1})};O.Found.Paragraphs.forEach(e=>n(e)),O.Found.Headings.forEach(e=>n(e)),O.Found.Lists.forEach(e=>n(e)),O.Found.Blockquotes.forEach(e=>n(e))}const i=n=>{const i=getComputedStyle(n),{textDecorationLine:s,textAlign:a,fontSize:r}=i;!o.checks.QA_UNDERLINE||"underline"!==s||n.closest("[onclick]")||n.closest("a[href]")||n.closest("ABBR")||(n=>{e.push({element:n,type:o.checks.QA_UNDERLINE.type||"warning",content:t.sprintf(o.checks.QA_UNDERLINE.content||"QA_UNDERLINE"),inline:!0,dismiss:L(`UNDERLINE${n.textContent}`),dismissAll:!!o.checks.QA_UNDERLINE.dismissAll&&"QA_UNDERLINE",developer:o.checks.QA_UNDERLINE.developer||!1})})(n);const l=o.checks.QA_SMALL_TEXT.fontSize||10,c=parseFloat(r),d=!((n.parentElement?parseFloat(getComputedStyle(n.parentElement).fontSize):null)===c)&&c>1&&c<=l;o.checks.QA_SMALL_TEXT&&d&&(n=>{e.push({element:n,type:o.checks.QA_SMALL_TEXT.type||"warning",content:t.sprintf(o.checks.QA_SMALL_TEXT.content||"QA_SMALL_TEXT"),dismiss:L(`SMALL${n.textContent}`),dismissAll:!!o.checks.QA_SMALL_TEXT.dismissAll&&"QA_SMALL_TEXT",developer:o.checks.QA_SMALL_TEXT.developer||!1})})(n);const p=(n.parentElement?getComputedStyle(n.parentElement).textAlign:null)===a;o.checks.QA_JUSTIFY&&"justify"===a&&!p&&(n=>{e.push({element:n,type:o.checks.QA_JUSTIFY.type||"warning",content:t.sprintf(o.checks.QA_JUSTIFY.content||"QA_JUSTIFY"),dismiss:L(`JUSTIFIED${n.textContent}`),dismissAll:!!o.checks.QA_JUSTIFY.dismissAll&&"QA_JUSTIFY",developer:o.checks.QA_JUSTIFY.developer||!1})})(n)};if(o.checks.QA_UNDERLINE||o.checks.QA_JUSTIFY||o.checks.QA_SMALL_TEXT)for(let e=0;e3===e.nodeType).map(e=>e.textContent).join("").trim().length&&i(t)}return o.checks.QA_SUBSCRIPT&&O.Found.Subscripts.forEach(n=>{const i=f(n);i.length>=80&&e.push({element:n,type:o.checks.QA_SUBSCRIPT.type||"warning",content:t.sprintf(o.checks.QA_SUBSCRIPT.content||"QA_SUBSCRIPT"),inline:!0,dismiss:L(n.tagName+i),dismissAll:!!o.checks.QA_SUBSCRIPT.dismissAll&&"QA_SUBSCRIPT",developer:o.checks.QA_SUBSCRIPT.developer||!1})}),o.checks.QA_NESTED_COMPONENTS&&O.Found.NestedComponents.forEach(n=>{const i=o.checks.QA_NESTED_COMPONENTS.sources||'[role="tablist"], details';n.querySelector(i)&&e.push({element:n,type:o.checks.QA_NESTED_COMPONENTS.type||"warning",content:t.sprintf(o.checks.QA_NESTED_COMPONENTS.content||"QA_NESTED_COMPONENTS"),dismiss:L(`NESTED${n.textContent}`),dismissAll:!!o.checks.QA_NESTED_COMPONENTS.dismissAll&&"QA_NESTED_COMPONENTS",developer:o.checks.QA_NESTED_COMPONENTS.developer||!1})}),e}class Hn{constructor(i){const s={...e,...i,checks:{...e.checks,...i.checks}};this.initialize=()=>{var e;(()=>{const{doNotRun:e}=s;return e.trim().length>0&&document.querySelector(e)})()||(customElements.define("sa11y-heading-label",wn),customElements.define("sa11y-heading-anchor",Sn),customElements.define("sa11y-annotation",kn),customElements.define("sa11y-tooltips",Tn),customElements.define("sa11y-panel-tooltips",xn),customElements.define("sa11y-control-panel",Q),customElements.define("sa11y-console-error",z),n.initializeGlobal(s),n.initializeReadability(s),n.initializeExclusions(s),s.developerChecksOnByDefault&&(null===v.getItem("sa11y-developer")||s.checkAllHideToggles)&&v.setItem("sa11y-developer","On"),e=()=>{if(s.headless)this.checkAll(),v.removeItem("sa11y-dismissed");else{const i=v.getItem("sa11y-position"),{panelPosition:a}=s;!s.showMovePanelToggle||i&&!i.includes("top")==!a.includes("top")||v.setItem("sa11y-position",a);const r=new Q;document.body.appendChild(r),function(e,o){n.Global.showMovePanelToggle&&(n.Panel.movePanelToggle.onclick=async()=>{const e=v.getItem("sa11y-position"),[t,o]=e.includes("top")?["top-right","top-left"]:["right","left"],i=e===t?o:t;v.setItem("sa11y-position",i),[t,o].forEach(e=>{n.Panel.toggle.classList.replace(e,i),n.Panel.panel.classList.replace(e,i)}),n.Panel.movePanelToggle.setAttribute("aria-pressed",e===t?"true":"false")}),n.Global.developerPlugin?n.Panel.developerToggle.onclick=async()=>{"On"===v.getItem("sa11y-developer")?(v.setItem("sa11y-developer","Off"),n.Panel.developerToggle.textContent=`${t._("OFF")}`,n.Panel.developerToggle.setAttribute("aria-pressed","false"),o(!1),await e()):(v.setItem("sa11y-developer","On"),n.Panel.developerToggle.textContent=`${t._("ON")}`,n.Panel.developerToggle.setAttribute("aria-pressed","true"),o(!1),await e())}:v.setItem("sa11y-developer","Off"),n.Readability.Plugin&&(n.Panel.readabilityToggle.onclick=async()=>{"On"===v.getItem("sa11y-readability")?(v.setItem("sa11y-readability","Off"),n.Panel.readabilityToggle.textContent=`${t._("OFF")}`,n.Panel.readabilityToggle.setAttribute("aria-pressed","false"),n.Panel.readability.classList.remove("active"),o(!1),await e()):(v.setItem("sa11y-readability","On"),n.Panel.readabilityToggle.textContent=`${t._("ON")}`,n.Panel.readabilityToggle.setAttribute("aria-pressed","true"),n.Panel.readability.classList.add("active"),o(!1),await e())},"On"===v.getItem("sa11y-readability")&&n.Panel.readability.classList.add("active"));const i=window.matchMedia("(prefers-color-scheme: dark)"),{themeToggle:s}=n.Panel,{html:a}=n.Global,r=e=>{a.setAttribute("data-sa11y-theme",e),v.setItem("sa11y-theme",e);const t=s.querySelector("span").classList;t.toggle("moon-icon","light"===e),t.toggle("sun-icon","dark"===e),s.setAttribute("aria-pressed","dark"===e?"true":"false")},l=v.getItem("sa11y-theme")||(i.matches?"dark":"light");r(l),i.addEventListener("change",()=>{r(i.matches?"dark":"light")}),s.onclick=()=>{const e=v.getItem("sa11y-theme")||(i.matches?"dark":"light");r("dark"===e?"light":"dark")},n.Global.colourFilterPlugin&&n.Panel.colourFilterSelect.addEventListener("change",async()=>{const i=parseInt(n.Panel.colourFilterSelect.value,10),s=["protanopia","deuteranopia","tritanopia","monochromacy"],a=[t._("RED_EYE"),t._("GREEN_EYE"),t._("BLUE_EYE"),t._("MONO_EYE")];i>=1&&i<=4?window.matchMedia("(forced-colors: active)").matches?T(t._("COLOUR_FILTER_HIGH_CONTRAST")):(n.Root.areaToCheck.setAttribute("data-sa11y-filter",s[i-1]),n.Panel.colourFilterIcon.setAttribute("aria-label",a[i-1]),x(["data-sa11y-error","data-sa11y-warning","data-sa11y-good","data-sa11y-error-inline","data-sa11y-warning-inline","data-sa11y-overflow"],"document"),k(["sa11y-annotation","sa11y-tooltips","sa11y-heading-label"],"document"),n.Panel.skipButton.disabled=!0,n.Panel.pageIssues.classList.remove("active"),n.Panel.settingsContent.classList.add("hide-settings-border"),n.Panel.colourFilterSelect.classList.add("active"),n.Panel.colourPanel.classList.add("active"),n.Panel.colourPanel.setAttribute("data-colour",s[i-1]),n.Panel.content.hidden=!0):(n.Root.areaToCheck.removeAttribute("data-sa11y-filter"),n.Panel.settingsContent.classList.remove("hide-settings-border"),n.Panel.colourFilterSelect.classList.remove("active"),n.Panel.colourPanel.classList.remove("active"),n.Panel.colourPanel.removeAttribute("data-colour"),n.Panel.content.hidden=!1,o(!1),await e())})}(this.checkAll,this.resetAll),function(){n.Panel.outlineToggle.addEventListener("click",()=>{"true"===n.Panel.outlineToggle.getAttribute("aria-expanded")?j():(V(),J(),X()),n.Panel.outlineHeader.focus()}),"Opened"===v.getItem("sa11y-outline")&&V(),n.Global.showImageOutline&&(n.Panel.imagesToggle.addEventListener("click",()=>{"true"===n.Panel.imagesToggle.getAttribute("aria-expanded")?X():(q(),j(),J()),n.Panel.imagesHeader.focus()}),"Opened"===v.getItem("sa11y-images")&&q()),n.Panel.settingsToggle.addEventListener("click",()=>{"true"===n.Panel.settingsToggle.getAttribute("aria-expanded")?J():(Z(),j(),X()),n.Panel.settingsHeader.focus()}),"Opened"===v.getItem("sa11y-settings")&&Z(),n.Panel.skipToPageIssues.addEventListener("click",()=>{n.Panel.pageIssuesHeader.focus()});const e=n.Panel.panel.querySelectorAll("[role=tab]");if(0!==e.length){let t=Array.from(e).findIndex(e=>e.classList.contains("active"));e.forEach(n=>{n.addEventListener("keydown",n=>{"ArrowRight"===n.key?(n.preventDefault(),t=(t+1)%e.length,e[t].focus()):"ArrowLeft"===n.key&&(n.preventDefault(),t=(t-1+e.length)%e.length,e[t].focus())})})}}(),function(){if(n.Global.colourFilterPlugin&&!1===n.Global.headless){const e=document.createElement("div");e.id="sa11y-colour-filters",e.setAttribute("aria-hidden","true"),e.innerHTML='\n \x3c!-- DaltonLens SVG filters to simulate color vision deficiencies --\x3e\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n ',document.body.appendChild(e)}}(),R(s.detectSPArouting,this.checkAll,this.resetAll),this.panelTooltips=new xn,document.body.appendChild(this.panelTooltips),n.Panel.toggle.disabled=!1,setTimeout(()=>{this.resetAll(),this.checkAll()},s.delayCheck),s.delayCheck>=700&&(n.Panel.toggle.disabled=!0),e=this.checkAll,o=this.resetAll,n.Panel.toggle.addEventListener("click",t=>{"Opened"===v.getItem("sa11y-panel")?(t.preventDefault(),v.setItem("sa11y-panel","Closed"),n.Panel.toggle.classList.remove("on"),n.Panel.toggle.setAttribute("aria-expanded","false"),o(),0===n.Panel.notifCount.innerHTML.trim().length?n.Panel.notifBadge.style.display="none":n.Panel.notifBadge.style.display="flex"):(t.preventDefault(),v.setItem("sa11y-panel","Opened"),n.Panel.toggle.classList.add("on"),n.Panel.toggle.setAttribute("aria-expanded","true"),e(),N(n.Panel.outlineList,n.Panel.outlineContent))}),"Opened"===v.getItem("sa11y-panel")&&(n.Panel.toggle.classList.add("on"),n.Panel.toggle.setAttribute("aria-expanded","true"),n.Panel.panel.style.transform=""),document.onkeydown=e=>{const t=e||window.event;t.altKey&&"KeyA"===t.code&&(n.Panel.toggle.click(),n.Panel.toggle.focus())}}var e,o},"complete"===document.readyState?e():window.addEventListener("load",e))},this.checkAll=async(e=s.checkRoot,o=s.readabilityRoot)=>{try{this.results=[],this.headingOutline=[],this.imageOutline=[],this.errorCount=0,this.warningCount=0,this.customChecksRunning=!1;document.querySelector(e)||!1!==s.headless||T(`${t.sprintf("MISSING_ROOT",e)}`),n.initializeRoot(e,o),function(e){if(e.autoDetectShadowComponents){const t=n.Exclusions.Sa11yElements,o=document.querySelector(e.checkRoot);(o?Array.from(o.querySelectorAll(`*:not(${t})`)):Array.from(document.body.querySelectorAll(`*:not(${t})`))).forEach(e=>{e.shadowRoot&&"open"===e.shadowRoot.mode&&(e.setAttribute("data-sa11y-has-shadow-root",""),P(e))})}else e.shadowComponents&&document.querySelectorAll(e.shadowComponents).forEach(e=>{e.setAttribute("data-sa11y-has-shadow-root",""),P(e)})}(s),O.initializeElements(s),function(e,o,i){let s,a="";O.Found.Headings.forEach((c,d)=>{const p=r(c,n.Exclusions.HeaderSpan),h=b(o.headerIgnoreStrings?p.replace(o.headerIgnoreStrings,""):p),g=u(h),m=n.Root.areaToCheck.contains(c),f=n.Root.areaToCheck.contains(c.getRootNode().host),E=m||f,v=parseInt(c.getAttribute("aria-level")||c.tagName.slice(1),10),_=h.length,I=o.checks.HEADING_LONG.maxLength||160;let T=null,x=null,k=null,N=null;if(0===_)if(c.querySelectorAll("img").length){const e=c.querySelector("img")?.getAttribute("alt");!c.querySelector("img")||e&&""!==e.trim()||o.checks.HEADING_EMPTY_WITH_IMAGE&&(T=o.checks.HEADING_EMPTY_WITH_IMAGE.type||"error",x=t.sprintf(o.checks.HEADING_EMPTY_WITH_IMAGE.content||"HEADING_EMPTY_WITH_IMAGE",v),k=o.checks.HEADING_EMPTY_WITH_IMAGE.developer||!1,N=!!o.checks.HEADING_EMPTY_WITH_IMAGE.dismissAll&&"HEADING_EMPTY_WITH_IMAGE")}else o.checks.HEADING_EMPTY&&(T=o.checks.HEADING_EMPTY.type||"error",x=t.sprintf(o.checks.HEADING_EMPTY.content||"HEADING_EMPTY",v),k=o.checks.HEADING_EMPTY.developer||!1,N=!!o.checks.HEADING_EMPTY.dismissAll&&"HEADING_EMPTY");else v-s>1&&0!==d?o.checks.HEADING_SKIPPED_LEVEL&&(T=o.checks.HEADING_SKIPPED_LEVEL.type||"error",x=t.sprintf(o.checks.HEADING_SKIPPED_LEVEL.content||"HEADING_SKIPPED_LEVEL",s,v,y(g,60),y(a,60),s+1),k=o.checks.HEADING_SKIPPED_LEVEL.developer||!1,N=!!o.checks.HEADING_SKIPPED_LEVEL.dismissAll&&"HEADING_SKIPPED_LEVEL"):0===d&&1!==v&&2!==v?o.checks.HEADING_FIRST&&(T=o.checks.HEADING_FIRST.type||"error",x=t.sprintf(o.checks.HEADING_FIRST.content||"HEADING_FIRST"),k=o.checks.HEADING_FIRST.developer||!1,N=!!o.checks.HEADING_FIRST.dismissAll&&"HEADING_FIRST"):_>I&&o.checks.HEADING_LONG&&(T=o.checks.HEADING_LONG.type||"warning",x=t.sprintf(o.checks.HEADING_LONG.content||"HEADING_LONG",I,_),k=o.checks.HEADING_LONG.developer||!1,N=!!o.checks.HEADING_LONG.dismissAll&&"HEADING_LONG");x&&T&&e.push({element:c,type:T,content:x,dismiss:L(`H${v+g}`),dismissAll:N,isWithinRoot:E,developer:k}),s=v,a=g;const S=l(c),w=A(c,"display","none");i.push({element:c,headingLevel:v,text:g,index:d,type:T,hidden:S,visibleParent:w,dismiss:L(`H${v+g}`),isWithinRoot:E})}),o.checks.HEADING_MISSING_ONE&&0===O.Found.HeadingOne.length&&e.push({type:o.checks.HEADING_MISSING_ONE.type||"warning",content:t.sprintf(o.checks.HEADING_MISSING_ONE.content||"HEADING_MISSING_ONE"),dismiss:"MISSINGH1",developer:o.checks.HEADING_MISSING_ONE.developer||!1})}(this.results,s,this.headingOutline),Gn(this.results,s),$n(this.results,s),function(e,n){n.formLabelsPlugin&&O.Found.Inputs.forEach(o=>{const i="true"===o.getAttribute("aria-hidden"),s="-1"===o.getAttribute("tabindex");if(d(o)||i&&s)return;const a=b(r(o)),l=o.getAttribute("alt"),c=o.getAttribute("type"),p=o.getAttribute("title"),h=o.getAttribute("aria-label")||o.getAttribute("aria-labelledby");if("submit"===c||"button"===c||"hidden"===c)return;if("image"===c)return void(!n.checks.LABELS_MISSING_IMAGE_INPUT||l&&""!==l.trim()||h||p||e.push({element:o,type:n.checks.LABELS_MISSING_IMAGE_INPUT.type||"error",content:t.sprintf(n.checks.LABELS_MISSING_IMAGE_INPUT.content||"LABELS_MISSING_IMAGE_INPUT"),dismiss:L(`INPUTIMAGE${c+a}`),dismissAll:!!n.checks.LABELS_MISSING_IMAGE_INPUT.dismissAll&&"LABELS_MISSING_IMAGE_INPUT",developer:n.checks.LABELS_MISSING_IMAGE_INPUT.developer||!0}));if("reset"===c)return void(n.checks.LABELS_INPUT_RESET&&e.push({element:o,type:n.checks.LABELS_INPUT_RESET.type||"warning",content:t.sprintf(n.checks.LABELS_INPUT_RESET.content||"LABELS_INPUT_RESET"),dismiss:L(`INPUTRESET${c+a}`),dismissAll:!!n.checks.LABELS_INPUT_RESET.dismissAll&&"LABELS_INPUT_RESET",developer:n.checks.LABELS_INPUT_RESET.developer||!1}));if(h||p){if(0===a.length)n.checks.LABELS_MISSING_LABEL&&e.push({element:o,type:n.checks.LABELS_MISSING_LABEL.type||"error",content:t.sprintf(n.checks.LABELS_MISSING_LABEL.content||"LABELS_MISSING_LABEL"),dismiss:L(`INPUTMISSING${c+a}`),dismissAll:!!n.checks.LABELS_MISSING_LABEL.dismissAll&&"LABELS_MISSING_LABEL",developer:n.checks.LABELS_MISSING_LABEL.developer||!0});else if(n.checks.LABELS_ARIA_LABEL_INPUT){const i=u(a);e.push({element:o,type:n.checks.LABELS_ARIA_LABEL_INPUT.type||"warning",content:n.checks.LABELS_ARIA_LABEL_INPUT.content?t.sprintf(n.checks.LABELS_ARIA_LABEL_INPUT.content,i):`${t.sprintf("LABELS_ARIA_LABEL_INPUT",i)} ${t.sprintf("ACC_NAME_TIP")}`,dismiss:L(`INPUTARIA${c+a}`),dismissAll:!!n.checks.LABELS_ARIA_LABEL_INPUT.dismissAll&&"LABELS_ARIA_LABEL_INPUT",developer:n.checks.LABELS_ARIA_LABEL_INPUT.developer||!0})}return}const g=o.closest("label"),m=g?b(r(g)):"";if(g&&m.length)return;const f=o.getAttribute("id");f?O.Found.Labels.some(e=>e.getAttribute("for")===f)||n.checks.LABELS_NO_FOR_ATTRIBUTE&&e.push({element:o,type:n.checks.LABELS_NO_FOR_ATTRIBUTE.type||"error",content:t.sprintf(n.checks.LABELS_NO_FOR_ATTRIBUTE.content||"LABELS_NO_FOR_ATTRIBUTE",f),dismiss:L(`INPUTNOFOR${c+a}`),dismissAll:!!n.checks.LABELS_NO_FOR_ATTRIBUTE.dismissAll&&"LABELS_NO_FOR_ATTRIBUTE",developer:n.checks.LABELS_NO_FOR_ATTRIBUTE.developer||!0}):n.checks.LABELS_MISSING_LABEL&&e.push({element:o,type:n.checks.LABELS_MISSING_LABEL.type||"error",content:t.sprintf(n.checks.LABELS_MISSING_LABEL.content||"LABELS_MISSING_LABEL"),dismiss:L(`INPUTNOID${c+a}`),dismissAll:!!n.checks.LABELS_MISSING_LABEL.dismissAll&&"LABELS_MISSING_LABEL",developer:n.checks.LABELS_MISSING_LABEL.developer||!0}),n.checks.LABELS_PLACEHOLDER&&o.placeholder&&0!==o.placeholder&&e.push({element:o,type:n.checks.LABELS_PLACEHOLDER.type||"warning",content:t.sprintf(n.checks.LABELS_PLACEHOLDER.content||"LABELS_PLACEHOLDER"),dismiss:L(`INPUTPLACEHOLDER${c+a}`),dismissAll:!!n.checks.LABELS_PLACEHOLDER.dismissAll&&"LABELS_PLACEHOLDER",developer:n.checks.LABELS_PLACEHOLDER.developer||!0})})}(this.results,s),Un(this.results,s),function(e,o){if(o.checks.META_LANG&&(!O.Found.Language||O.Found.Language.length<2)&&e.push({type:o.checks.META_LANG.type||"error",content:t.sprintf(o.checks.META_LANG.content||"META_LANG"),dismiss:L("LANG"),developer:o.checks.META_LANG.developer||!0}),o.checks.META_TITLE){const n=document.querySelector("title:not(svg title)");n&&0!==n.textContent.trim().length||e.push({type:o.checks.META_TITLE.type||"error",content:t.sprintf(o.checks.META_TITLE.content||"META_TITLE"),dismiss:L("TITLE"),developer:o.checks.META_TITLE.developer||!0})}if(o.checks.META_SCALABLE||o.checks.META_MAX){const n=document.querySelector('meta[name="viewport"]');if(n){const i=n.getAttribute("content");if(i){const n=i.split(",").reduce((e,t)=>{const[n,o]=t.split("=").map(e=>e.trim());return e[n]=o,e},{});!o.checks.META_SCALABLE||"no"!==n["user-scalable"]&&"0"!==n["user-scalable"]||e.push({type:o.checks.META_SCALABLE.type||"error",content:t.sprintf(o.checks.META_SCALABLE.content||"META_SCALABLE"),dismiss:L("SCALABLE"),developer:o.checks.META_SCALABLE.developer||!0});const s=parseFloat(n["maximum-scale"]);o.checks.META_MAX&&!Number.isNaN(s)&&s<2&&e.push({type:o.checks.META_MAX.type||"error",content:t.sprintf(o.checks.META_MAX.content||"META_MAX"),dismiss:L("MAXSCALE"),developer:o.checks.META_MAX.developer||!0})}}}o.checks.META_REFRESH&&document.querySelector('meta[http-equiv="refresh"]')&&e.push({type:o.checks.META_REFRESH.type||"error",content:t.sprintf(o.checks.META_REFRESH.content||"META_REFRESH"),dismiss:L("REFRESH"),developer:o.checks.META_REFRESH.developer||!0});o.checks.DUPLICATE_ID&&document.querySelectorAll("body, [data-sa11y-has-shadow-root]").forEach(i=>{const s=new Set,a=(n,i)=>{n.forEach(n=>{const{id:a}=n;"string"==typeof a&&0!==a.trim().length&&(a&&!s.has(a)?s.add(a):Array.from(i.querySelectorAll(`\n a[href*="${a}"],\n label[for*="${a}"],\n [aria-labelledby*="${a}"],\n [aria-controls*="${a}"],\n [aria-owns*="${a}"]`)).length>0&&e.push({element:n,type:o.checks.DUPLICATE_ID.type||"error",content:t.sprintf(o.checks.DUPLICATE_ID.content||"DUPLICATE_ID",a),dismiss:L(`DUPLICATEID${a}${n.textContent}`),dismissAll:!!o.checks.DUPLICATE_ID.dismissAll&&"DUPLICATE_ID",developer:o.checks.DUPLICATE_ID.developer||!0}))})};i.shadowRoot&&a(Array.from(i.shadowRoot.querySelectorAll(`[id]:not(${n.Exclusions.Container})`)),i.shadowRoot),a(Array.from(i.querySelectorAll(`[id]:not(${n.Exclusions.Container})`)),i)});(o.checks.BTN_EMPTY||o.checks.BTN_EMPTY_LABELLEDBY||o.checks.BTN_LABEL||o.checks.HIDDEN_FOCUSABLE||o.checks.LABEL_IN_NAME)&&O.Found.Buttons.forEach(n=>{const i=r(n),s=i.replace(/'|"|-|\.|\s+/g,"").toLowerCase(),a=L(`BTN${n.tagName+n.id+n.className+i}`),l=n.querySelector(":scope [aria-labelledby], :scope [aria-label]")||n.getAttribute("aria-labelledby")||n.getAttribute("aria-label"),c=n.querySelector(":scope [aria-labelledby]")||n.getAttribute("aria-labelledby"),d="true"===n.getAttribute("aria-hidden"),p="-1"===n.getAttribute("tabindex");if(d)return void(p||o.checks.HIDDEN_FOCUSABLE&&e.push({element:n,type:o.checks.HIDDEN_FOCUSABLE.type||"error",content:t.sprintf(o.checks.HIDDEN_FOCUSABLE.content||"HIDDEN_FOCUSABLE"),dismiss:a,dismissAll:!!o.checks.HIDDEN_FOCUSABLE.dismissAll&&"BTN_HIDDEN_FOCUSABLE",developer:o.checks.HIDDEN_FOCUSABLE.developer||!0}));if(0===s.length)return void(o.checks.BTN_EMPTY_LABELLEDBY&&c?e.push({element:n,type:o.checks.BTN_EMPTY_LABELLEDBY.type||"error",content:o.checks.BTN_EMPTY_LABELLEDBY.content?t.sprintf(o.checks.BTN_EMPTY_LABELLEDBY.content):`${t.sprintf("BTN_EMPTY_LABELLEDBY")} ${t.sprintf("BTN_TIP")}`,dismiss:L(a),dismissAll:!!o.checks.BTN_EMPTY_LABELLEDBY.dismissAll&&"BTN_EMPTY_LABELLEDBY",developer:o.checks.BTN_EMPTY_LABELLEDBY.developer||!0}):o.checks.BTN_EMPTY&&e.push({element:n,type:o.checks.BTN_EMPTY.type||"error",content:o.checks.BTN_EMPTY.content?t.sprintf(o.checks.BTN_EMPTY.content):`${t.sprintf("BTN_EMPTY")} ${t.sprintf("BTN_TIP")}`,dismiss:a,dismissAll:!!o.checks.BTN_EMPTY.dismissAll&&"BTN_EMPTY",developer:o.checks.BTN_EMPTY.developer||!0}));const h=C(n);if(o.checks.LABEL_IN_NAME&&l&&h){const s=u(i);return void e.push({element:n,type:o.checks.LABEL_IN_NAME.type||"warning",content:o.checks.LABEL_IN_NAME.content?t.sprintf(o.checks.LABEL_IN_NAME.content,s):`${t.sprintf("LABEL_IN_NAME",s)} ${t.sprintf("ACC_NAME_TIP")}`,dismiss:a,dismissAll:!!o.checks.LABEL_IN_NAME.dismissAll&&"BTN_LABEL_IN_NAME",developer:o.checks.LABEL_IN_NAME.developer||!0})}o.checks.BTN_ROLE_IN_NAME&&i.includes(t._("BTN"))&&e.push({element:n,type:o.checks.BTN_ROLE_IN_NAME.type||"warning",content:o.checks.BTN_ROLE_IN_NAME.content?t.sprintf(o.checks.BTN_ROLE_IN_NAME.content):`${t.sprintf("BTN_ROLE_IN_NAME")} ${t.sprintf("BTN_TIP")}`,dismiss:a,dismissAll:!!o.checks.BTN_ROLE_IN_NAME.dismissAll&&"BTN_ROLE_IN_NAME",developer:o.checks.BTN_ROLE_IN_NAME.developer||!0})}),o.checks.UNCONTAINED_LI&&O.Found.Lists.forEach(n=>{n.closest("ul, ol, menu")||e.push({element:n,type:o.checks.UNCONTAINED_LI.type||"error",content:t.sprintf(o.checks.UNCONTAINED_LI.content||"UNCONTAINED_LI"),dismiss:L(`UNCONTAINEDLI${n.textContent}`),dismissAll:!!o.checks.UNCONTAINED_LI.dismissAll&&"UNCONTAINED_LI",developer:o.checks.UNCONTAINED_LI.developer||!0})}),o.checks.TABINDEX_ATTR&&O.Found.TabIndex.forEach(n=>{e.push({element:n,type:o.checks.TABINDEX_ATTR.type||"error",content:t.sprintf(o.checks.TABINDEX_ATTR.content||"TABINDEX_ATTR"),dismiss:L(`TABINDEX${n.tagName+n.id+n.className}`),dismissAll:!!o.checks.TABINDEX_ATTR.dismissAll&&"TABINDEX_ATTR",developer:o.checks.TABINDEX_ATTR.developer||!0})})}(this.results,s),s.embeddedContentPlugin&&function(e,n){const o=e=>"undefined"!==e.getAttribute("src")?e.getAttribute("src"):e.querySelector("[src]")?.getAttribute("src");n.checks.EMBED_AUDIO&&O.Found.Audio.forEach(i=>{e.push({element:i,type:n.checks.EMBED_AUDIO.type||"warning",content:t.sprintf(n.checks.EMBED_AUDIO.content||"EMBED_AUDIO"),dismiss:L(`AUDIO${o(i)}`),dismissAll:!!n.checks.EMBED_AUDIO.dismissAll&&"EMBED_AUDIO",developer:n.checks.EMBED_AUDIO.developer||!1})}),n.checks.EMBED_VIDEO&&O.Found.Videos.forEach(i=>{const s=i.querySelector("track"),a=s?.getAttribute("src");null!==s&&null!==a&&0!==a.trim().length||e.push({element:i,type:n.checks.EMBED_VIDEO.type||"warning",content:t.sprintf(n.checks.EMBED_VIDEO.content||"EMBED_VIDEO"),dismiss:L(`VIDEO${o(i)}`),dismissAll:!!n.checks.EMBED_VIDEO.dismissAll&&"EMBED_VIDEO",developer:n.checks.EMBED_VIDEO.developer||!1})}),n.checks.EMBED_DATA_VIZ&&O.Found.Visualizations.forEach(i=>{e.push({element:i,type:n.checks.EMBED_DATA_VIZ.type||"warning",content:t.sprintf(n.checks.EMBED_DATA_VIZ.content||"EMBED_DATA_VIZ"),dismiss:L(`DATAVIZ${o(i)}`),dismissAll:!!n.checks.EMBED_DATA_VIZ.dismissAll&&"EMBED_DATA_VIZ",developer:n.checks.EMBED_DATA_VIZ.developer||!1})}),O.Found.iframes.forEach(i=>{const s=["presentation","none"].includes(i.getAttribute("role")),r=d(i),l="VIDEO"===i.tagName||"AUDIO"===i.tagName,c="true"===i.getAttribute("aria-hidden"),p="-1"===i.getAttribute("tabindex");if(!(r||l||c&&p||s))if(p)n.checks.EMBED_UNFOCUSABLE&&e.push({element:i,type:n.checks.EMBED_UNFOCUSABLE.type||"error",content:t.sprintf(n.checks.EMBED_UNFOCUSABLE.content||"EMBED_UNFOCUSABLE"),dismiss:L(`EMBEDUNFOCUSABLE${o(i)}`),dismissAll:!!n.checks.EMBED_UNFOCUSABLE.dismissAll&&"EMBED_UNFOCUSABLE",developer:n.checks.EMBED_UNFOCUSABLE.developer||!0});else if(n.checks.EMBED_MISSING_TITLE){const s=a(i);0===b("noAria"===s?i.getAttribute("title")||"":s).length&&e.push({element:i,type:n.checks.EMBED_MISSING_TITLE.type||"error",content:t.sprintf(n.checks.EMBED_MISSING_TITLE.content||"EMBED_MISSING_TITLE"),dismiss:L(`EMBEDMISSTITLE${o(i)}`),dismissAll:!!n.checks.EMBED_MISSING_TITLE.dismissAll&&"EMBED_MISSING_TITLE",developer:n.checks.EMBED_MISSING_TITLE.developer||!0})}}),n.checks.EMBED_GENERAL&&O.Found.EmbeddedContent.forEach(i=>{const s=["presentation","none"].includes(i.getAttribute("role")),a="true"===i.getAttribute("aria-hidden"),r="-1"===i.getAttribute("tabindex");d(i)||a&&r||s||"VIDEO"!==i.tagName&&"AUDIO"!==i.tagName&&e.push({element:i,type:n.checks.EMBED_GENERAL.type||"warning",content:t.sprintf(n.checks.EMBED_GENERAL.content||"EMBED_GENERAL"),dismiss:L(`IFRAMEGENERAL${o(i)}`),dismissAll:!!n.checks.EMBED_GENERAL.dismissAll&&"EMBED_GENERAL",developer:n.checks.EMBED_GENERAL.developer||!1})})}(this.results,s),s.contrastPlugin&&function(e,n){const o=[];for(let e=0;e3===e.nodeType).map(e=>e.textContent).join("").trim(),m=["SELECT","INPUT","TEXTAREA"].includes(t.tagName);if(0!==g.length||m)if("unsupported"===a||"unsupported"===p){const e=r>=24||r>=18.67&&l>=700;o.push({$el:t,type:"unsupported",fontSize:r,fontWeight:l,isLargeText:e,opacity:s,..."unsupported"!==p&&{background:p},..."unsupported"!==a&&{color:a}})}else if("image"===p.type)if(h);else{const e=r>=24||r>=18.67&&l>=700;o.push({$el:t,type:"background-image",color:a,isLargeText:e,background:p,fontSize:r,fontWeight:l,opacity:s})}else if("text"===t.tagName&&t.closest("svg"));else if(h||mn(a)===mn(p));else{const e=Ln(t,a,p,r,l,s,n.contrastAAA);e&&(e.type=m?"input":"text",o.push(e))}}O.Found.Svg.forEach(e=>{const t=dn(e);if(t&&"image"===t.type)return void o.push({$el:e,type:"svg-warning",background:t});if(e.querySelector("text"))return void o.push({$el:e,type:"svg-text",background:t});const i=e.querySelectorAll("path, polygon, circle, rect, ellipse, use");if(1===i.length){const s=getComputedStyle(i[0]),{fill:a,opacity:r,stroke:l,strokeWidth:c}=s;if(a.startsWith("url("))return void o.push({$el:e,type:"svg-warning",background:t});const d=a&&"none"!==a,p=l&&"none"!==l&&"0px"!==c;if(!d&&!p)return void o.push({$el:e,type:"svg-warning",background:t});let u,h,g,m=!1,f=!1;d&&(h=cn("currentColor"===a?getComputedStyle(e).color:a,r),"unsupported"!==h&&(u=bn(h,t),m=n.contrastAPCA?u.ratio>=45:u.ratio>=3)),p&&(g=cn("currentColor"===l?getComputedStyle(e).color:l,r),"unsupported"!==g&&(u=bn(g,t),f=n.contrastAPCA?u.ratio>=45:u.ratio>=3));const b=d&&p&&!m&&!f,y=d&&!p&&!m,A=!d&&p&&!f;"unsupported"===h||"unsupported"===g?o.push({$el:e,type:"svg-warning",background:t}):(b||y||A)&&o.push({$el:e,ratio:fn(u.ratio),color:u.blendedColor,type:"svg-error",background:t})}else o.push({$el:e,type:"svg-warning",background:t})}),O.Found.Inputs.forEach(e=>{if(e.placeholder&&0!==e.placeholder.length){const t=getComputedStyle(e,"::placeholder"),i=cn(t.getPropertyValue("color")),s=parseFloat(t.fontSize),a=ln(t.fontWeight),r=dn(e),l=parseFloat(t.opacity);if("unsupported"===i)o.push({$el:e,type:"placeholder-unsupported"});else if("image"===r.type);else{const t=Ln(e,i,r,s,a,l,n.contrastAAA);t&&(t.type="placeholder",o.push(t))}}}),(e=>{const t=e.filter(e=>"background-image"===e.type),o=e.filter(e=>"background-image"!==e.type);let i;if(n.contrastAPCA)i=t.map(e=>({...e}));else{const e=t.reduce((e,t)=>{const n=e,o=JSON.stringify({background:t.background.value,color:t.color,isLargeText:t.isLargeText});return n[o]||(n[o]=[]),n[o].push(t),n},{});i=Object.values(e).map(e=>({...e[0]}))}return[...i,...o]})(o).forEach(o=>{const{$el:i,ratio:s}=o,a=o,r="OPTION"===i.tagName?i.closest("datalist, select, optgroup"):i,l=u(y(f(m(r,["option:not(option:first-child)"])),80));let c;c="placeholder"===o.type||"placeholder-unsupported"===o.type?u(i.placeholder):"svg-error"===o.type||"svg-warning"===o.type||"svg-text"===o.type?"":l,a.sanitizedText=c;let d="";if(!n.contrastAPCA){const e=n.contrastAAA?"7:1":"4.5:1",i=n.contrastAAA?"4.5:1":"3:1",s=o.isLargeText?i:e,a=o.isLargeText?"CONTRAST_LARGE":"CONTRAST_NORMAL";d=` ${t.sprintf(a,s)}`}const p=n.contrastAPCA?"":` ${t.sprintf("CONTRAST_TIP_GRAPHIC")}`;switch(o.type){case"text":n.checks.CONTRAST_ERROR&&e.push({element:i,type:n.checks.CONTRAST_ERROR.type||"error",content:n.checks.CONTRAST_ERROR.content?t.sprintf(n.checks.CONTRAST_ERROR.content):t.sprintf("CONTRAST_ERROR")+d,dismiss:L(`CONTRAST${l}`),dismissAll:!!n.checks.CONTRAST_ERROR.dismissAll&&"CONTRAST_ERROR",developer:n.checks.CONTRAST_ERROR.developer||!1,contrastDetails:a});break;case"input":n.checks.CONTRAST_INPUT&&e.push({element:r,type:n.checks.CONTRAST_INPUT.type||"error",content:n.checks.CONTRAST_INPUT.content?t.sprintf(n.checks.CONTRAST_INPUT.content):t.sprintf("CONTRAST_INPUT",s)+d,dismiss:L(`CONTRAST${i.getAttribute("class")}${i.tagName}${s}`),dismissAll:!!n.checks.CONTRAST_INPUT.dismissAll&&"CONTRAST_INPUT",developer:n.checks.CONTRAST_INPUT.developer||!0,contrastDetails:a});break;case"placeholder":n.checks.CONTRAST_PLACEHOLDER&&e.push({element:i,type:n.checks.CONTRAST_PLACEHOLDER.type||"error",content:n.checks.CONTRAST_PLACEHOLDER.content?t.sprintf(n.checks.CONTRAST_PLACEHOLDER.content):t.sprintf("CONTRAST_PLACEHOLDER")+d,position:"afterend",dismiss:L(`CPLACEHOLDER${i.getAttribute("class")}${i.tagName}${s}`),dismissAll:!!n.checks.CONTRAST_PLACEHOLDER.dismissAll&&"CONTRAST_PLACEHOLDER",developer:n.checks.CONTRAST_PLACEHOLDER.developer||!0,contrastDetails:a});break;case"placeholder-unsupported":n.checks.CONTRAST_PLACEHOLDER_UNSUPPORTED&&e.push({element:i,type:n.checks.CONTRAST_PLACEHOLDER_UNSUPPORTED.type||"warning",content:n.checks.CONTRAST_PLACEHOLDER_UNSUPPORTED.content?t.sprintf(n.checks.CONTRAST_PLACEHOLDER_UNSUPPORTED.content):t.sprintf("CONTRAST_PLACEHOLDER_UNSUPPORTED")+d,position:"afterend",dismiss:L(`CPLACEHOLDERUN${i.getAttribute("class")}${i.tagName}${s}`),dismissAll:!!n.checks.CONTRAST_PLACEHOLDER_UNSUPPORTED.dismissAll&&"CONTRAST_PLACEHOLDER_UNSUPPORTED",developer:n.checks.CONTRAST_PLACEHOLDER_UNSUPPORTED.developer||!0,contrastDetails:a});break;case"svg-error":n.checks.CONTRAST_ERROR_GRAPHIC&&e.push({element:i,type:n.checks.CONTRAST_ERROR_GRAPHIC.type||"error",content:n.checks.CONTRAST_ERROR_GRAPHIC.content?t.sprintf(n.checks.CONTRAST_ERROR_GRAPHIC.content):t.sprintf("CONTRAST_ERROR_GRAPHIC")+p,dismiss:L(`CONTRASTERROR${i.outerHTML}`),dismissAll:!!n.checks.CONTRAST_ERROR_GRAPHIC.dismissAll&&"CONTRAST_ERROR_GRAPHIC",developer:n.checks.CONTRAST_ERROR_GRAPHIC.developer||!0,contrastDetails:a});break;case"svg-warning":case"svg-text":n.checks.CONTRAST_WARNING_GRAPHIC&&e.push({element:i,type:n.checks.CONTRAST_WARNING_GRAPHIC.type||"warning",content:n.checks.CONTRAST_WARNING_GRAPHIC.content?t.sprintf(n.checks.CONTRAST_WARNING_GRAPHIC.content):t.sprintf("CONTRAST_WARNING_GRAPHIC")+p,dismiss:L(`CONTRASTWARNING${i.outerHTML}`),dismissAll:!!n.checks.CONTRAST_WARNING_GRAPHIC.dismissAll&&"CONTRAST_WARNING_GRAPHIC",developer:n.checks.CONTRAST_WARNING_GRAPHIC.developer||!0,contrastDetails:a});break;case"background-image":n.checks.CONTRAST_WARNING&&e.push({element:r,type:n.checks.CONTRAST_WARNING.type||"warning",content:n.checks.CONTRAST_WARNING.content?t.sprintf(n.checks.CONTRAST_WARNING.content):t.sprintf("CONTRAST_WARNING")+d,dismiss:L(`CONTRAST${l}`),dismissAll:!!n.checks.CONTRAST_WARNING.dismissAll&&"CONTRAST_WARNING",developer:n.checks.CONTRAST_WARNING.developer||!1,contrastDetails:a});break;case"unsupported":n.checks.CONTRAST_UNSUPPORTED&&e.push({element:r,type:n.checks.CONTRAST_UNSUPPORTED.type||"warning",content:n.checks.CONTRAST_UNSUPPORTED.content?t.sprintf(n.checks.CONTRAST_UNSUPPORTED.content):t.sprintf("CONTRAST_WARNING")+d,dismiss:L(`CONTRAST${l}`),dismissAll:!!n.checks.CONTRAST_UNSUPPORTED.dismissAll&&"CONTRAST_UNSUPPORTED",developer:n.checks.CONTRAST_UNSUPPORTED.developer||!1,contrastDetails:a})}})}(this.results,s),s.readabilityPlugin&&function(){let e;if("On"===v.getItem("sa11y-readability")){O.Found.Readability.forEach(e=>{const t=e.textContent;t.length>=120&&"."!==t.charAt(t.length-1)&&e.insertAdjacentHTML("beforeend",".")});const o=[];for(let e=0;e{let t=e;if(t=t.toLowerCase().replace(".","").replace("\n",""),t.length<=3)return 1;t=t.replace(/(?:[^laeiouy]es|ed|[^laeiouy]e)$/,""),t=t.replace(/^y/,"");const n=t.match(/[aeiouy]{1,2}/g);let o=0;return!!n&&(o=n.length),o},s=i.replace(/[.!?-]+/g," ").split(" ");let a=0;for(let e=0;e100?u=100:u<0&&(u=0);const h=u.toFixed(1),g=(a/l).toFixed(1),m=Math.round((a-(d+p))/a*100);let f;f=h>=0&&h<30?t._("VERY_DIFFICULT"):h>31&&h<49?t._("DIFFICULT"):h>50&&h<60?t._("FAIRLY_DIFFICULT"):t._("GOOD"),e={score:h,averageWordsPerSentence:g,complexWords:m,difficultyLevel:f,wordCount:a}}else if(["sv","fi","da","no","nb","nn"].includes(n.Readability.Lang)){const n=(e=>{const n=()=>e.replace(/[-'.]/gi,"").split(/[^a-zA-ZöäåÖÄÅÆæØø0-9]/g).filter(Boolean),o=n().length,i=n().filter(e=>e.length>6).length,s=e.split(/\?|!|\.|\n/g).filter(Boolean).length,a=Math.round(o/s+100*i/o),r=(o/s).toFixed(1),l=Math.round(i/o*100);let c;return c=a>=0&&a<39?t._("GOOD"):a>40&&a<50?t._("FAIRLY_DIFFICULT"):a>51&&a<61?t._("DIFFICULT"):t._("VERY_DIFFICULT"),{score:a,difficulty:c,avgWordsPerSentence:r,complexWords:l,wordCount:o}})(i);e={score:n.score,averageWordsPerSentence:n.avgWordsPerSentence,complexWords:n.complexWords,difficultyLevel:n.difficulty,wordCount:n.wordCount}}!1===n.Global.headless&&(0===i.length?n.Panel.readabilityInfo.innerHTML=t._("READABILITY_NO_CONTENT"):e.wordCount>30?(n.Panel.readabilityInfo.innerHTML=`${e.score} ${e.difficultyLevel}`,n.Panel.readabilityDetails.innerHTML=`\n
                                                  • \n ${t._("AVG_SENTENCE")}\n ${e.averageWordsPerSentence}\n
                                                  • \n
                                                  • \n ${t._("COMPLEX_WORDS")}\n ${e.complexWords}%\n
                                                  • \n
                                                  • \n ${t._("TOTAL_WORDS")}\n ${e.wordCount}\n
                                                  • `):n.Panel.readabilityInfo.textContent=t._("READABILITY_NOT_ENOUGH"))}}(),this.imageResults=this.results.filter((e,t,n)=>{const{element:o}=e;return!(!o||"IMG"!==o.tagName||!o.outerHTML)&&n.findIndex(e=>e.element?.outerHTML===o.outerHTML)===t}),!0===s.customChecks?this.results:"object"==typeof s.customChecks?this.results.push(...s.customChecks):"listen"===s.customChecks&&(this.customChecksRunning=!0,this.customChecksFinished=0,document.addEventListener("sa11y-resume",()=>{this.customChecksFinished+=1,1===this.customChecksFinished&&(this.customChecksRunning=!1,this.updateResults())}),window.setTimeout(()=>{if(!0===this.customChecksRunning)throw this.customChecksRunning=!1,this.updateResults(),Error("Sa11y: No custom checks were returned.")},s.delayCustomCheck),window.setTimeout(()=>{const e=new CustomEvent("sa11y-custom-checks");document.dispatchEvent(e)},0)),this.customChecksRunning||this.updateResults()}catch(e){const t=new z(e);throw document.body.appendChild(t),Error(e)}},this.updateResults=()=>{this.results=this.results.filter(e=>!1!==e.isWithinRoot);const e="Off"===v.getItem("sa11y-developer")||null===v.getItem("sa11y-developer");if((e||!0===s.externalDeveloperChecks)&&(this.results=this.results.filter(e=>!0!==e.developer)),e&&(this.results=this.results.filter(e=>!0!==e.external)),this.results.forEach((e,t)=>{const n=s.selectorPath?function(e){const t=[];let n=e;for(;n;){let e=n.localName;if(n.id){e+=`#${n.id}`,t.unshift(e);break}n.className&&(e+=`.${n.className.replace(/\s+/g,".")}`);const o=n.parentNode;if(!o)break;{const i=o.children;i.length>1&&(e+=`:nth-child(${Array.prototype.indexOf.call(i,n)+1})`),t.unshift(e)}n=n.parentNode.host||n.parentNode}return t.join(" > ")}(e.element):"",o=e.element?.outerHTML.replace(/\s{2,}/g," ").trim()||"";Object.assign(e,{htmlPath:o,cssPath:n,id:t})}),!1===s.headless){const e=D(this.results,this.panelTooltips,this.checkAll,this.resetAll);this.results=e.updatedResults,this.dismissed=e.dismissedIssues;const l=function(e,t,n){let o=t,i=n;return e.forEach((t,n)=>{const s=e[n].type;"error"===s?o+=1:"warning"===s&&(i+=1)}),{error:o,warning:i}}(this.results,this.errorCount,this.warningCount);if(function(e,o){const i=e+o;0===i?(n.Panel.notifCount.innerText="",n.Panel.notifText.innerText="",n.Panel.notifBadge.style.display="none"):o>0&&0===e?(n.Panel.notifBadge.classList.add("notification-badge-warning"),n.Panel.notifCount.innerText=`${o}`,n.Panel.notifText.innerText=`${t._("WARNINGS_FOUND")}`):(n.Panel.notifBadge.classList.remove("notification-badge-warning"),n.Panel.notifCount.innerText=`${i}`,n.Panel.notifText.innerText=t._("TOTAL_FOUND")),"Opened"===v.getItem("sa11y-panel")||0===i?n.Panel.notifBadge.style.display="none":n.Panel.notifBadge.style.display="flex"}(l.error,l.warning),"Opened"===v.getItem("sa11y-panel")){this.results.forEach(e=>{Object.assign(e),function(e,o){const{element:i,type:s,content:a,inline:r=!1,position:l="beforebegin",id:c,dismiss:d,dismissAll:u,contrastDetails:h}=e,g=["error","warning","good"];if(-1===g.indexOf(s))throw Error(`Invalid type [${s}] for annotation`);[s].forEach(e=>{if("error"===e&&void 0!==i){const e=r?"data-sa11y-error-inline":"data-sa11y-error";i.setAttribute(e,c)}else if("warning"===e&&void 0!==i){const e=r?"data-sa11y-warning-inline":"data-sa11y-warning";i.setAttribute(e,c)}});const m={[g[0]]:t._("ERROR"),[g[1]]:t._("WARNING"),[g[2]]:t._("GOOD")};if(!1===o.showGoodImageButton&&"IMG"===i?.tagName&&"good"===s)return;if(!1===o.showGoodLinkButton&&"A"===i?.tagName&&"good"===s)return;const f=!o.dismissAnnotations||"warning"!==s&&"good"!==s||void 0===d?"":``,b=o.dismissAnnotations&&o.dismissAll&&"string"==typeof u&&("warning"===s||"good"===s)?``:"",y=document.createElement("sa11y-annotation");if(y.setAttribute("data-sa11y-annotation",c),void 0===i){const e=document.createElement("li");e.innerHTML=`

                                                    ${m[s]}

                                                    ${a}${f}`,n.Panel.pageIssuesList.insertAdjacentElement("afterbegin",e),n.Panel.pageIssues.classList.add("active"),n.Panel.panel.classList.add("has-page-issues")}else{const e=document.createElement("div");e.classList.add(r?"instance-inline":"instance"),e.innerHTML=`\n \n

                                                    ${m[s]}

                                                    \n ${p(a)}\n ${h?"
                                                    ":""}\n
                                                    ${f}${b}
                                                    \n "\n >`;const n=o.insertAnnotationBefore?`, ${o.insertAnnotationBefore}`:"";(i.closest(`a, button, [role="link"], [role="button"] ${n}`)||i).insertAdjacentElement(l,y),y.shadowRoot.appendChild(e)}}(e,s)}),O.initializeAnnotations();const c=new Tn;document.body.appendChild(c),$(this.results,this.dismissed,this.checkAll,this.resetAll),ee(this.dismissed,this.headingOutline,s),s.showImageOutline&&function(e,o,i){const s=()=>{const a=[],r=e.map(e=>o.find(t=>e.key===t.dismiss&&e.href===window.location.pathname)).filter(Boolean);o.forEach(e=>{const o=r.some(t=>t.element.outerHTML.toLowerCase()===e.element.outerHTML.toLowerCase());o&&Object.assign(e,{dismissedImage:!0});const s=e.type,l=e.developer,{dismissedImage:c}=e,d=p(e.element.alt),u=!("Off"!==v.getItem("sa11y-developer")&&null!==v.getItem("sa11y-developer")||"error"!==s&&"warning"!==s||!0!==l),h=S(e.element),g=n.Global.editImageURLofCMS?te(e):"",m=i.imageWithinLightbox?`a[href]:not(${i.imageWithinLightbox})`:"a[href]",f=e.element.closest(m)?`
                                                    ${t._("LINKED")}
                                                    `:"";let b;if("error"!==s||u)if("warning"!==s||c||u){const n=0===d.length?`
                                                    ${t._("DECORATIVE")}
                                                    `:"",o=i.imageWithinLightbox?`a[href]:not(${i.imageWithinLightbox})`:"a[href]",s=e.element.closest(o)?`
                                                    ${t._("LINKED")}
                                                    `:"";b=`\n
                                                  • \n \n
                                                    \n
                                                    ${t._("ALT")}
                                                    \n ${s} ${n} ${d}\n
                                                    \n ${g}\n
                                                  • `,a.push(b)}else{const e=0===d.length?`
                                                    ${t._("DECORATIVE")}
                                                    `:"";b=`\n
                                                  • \n \n
                                                    \n
                                                    ${t._("WARNING")} ${t._("ALT")}
                                                    \n ${f} ${e} ${d}\n
                                                    \n ${g}\n
                                                  • `,a.push(b)}else{const e=0===d.length?`
                                                    ${t._("MISSING")}
                                                    `:`${d}`;b=`\n
                                                  • \n \n
                                                    \n
                                                    ${t._("ERROR")} ${t._("ALT")}
                                                    ${f} ${e}\n
                                                    \n ${g}\n
                                                  • `,a.push(b)}}),n.Panel.imagesList.innerHTML=0===a.length?`
                                                  • ${t._("NO_IMAGES")}
                                                  • `:a.join(" "),document.removeEventListener("sa11y-build-image-outline",s)};"Opened"===v.getItem("sa11y-images")&&s(),document.addEventListener("sa11y-build-image-outline",s)}(this.dismissed,this.imageResults,s),i=e.dismissCount,a=l.error,r=l.warning,n.Panel.skipButton.disabled=!1,n.Panel.panel.classList.add("active"),n.Global.html.setAttribute("data-sa11y-active","true"),n.Panel.skipButton.classList.add("active"),a>0&&r>0?(n.Panel.content.setAttribute("class","errors"),n.Panel.status.innerHTML=`${t._("ERRORS")} ${a} ${t._("WARNINGS")} ${r}`):a>0?(n.Panel.content.setAttribute("class","errors"),n.Panel.status.innerHTML=`${t._("ERRORS")} ${a}`):r>0?(n.Panel.content.setAttribute("class","warnings"),n.Panel.status.innerHTML=`${t._("WARNINGS")} ${r}`):i>0?(n.Panel.status.innerHTML=`${t._("DISMISSED")} ${i}`,n.Panel.skipButton.classList.remove("active")):(n.Panel.content.setAttribute("class","good"),n.Panel.status.innerHTML=`${t._("NO_ERRORS_FOUND")}`),0===document.querySelectorAll("sa11y-annotation").length&&(n.Panel.skipButton.disabled=!0),o=this.results,Mn=e=>{Dn(e,o)},Bn=()=>{Rn(o)},document.addEventListener("keydown",Mn),n.Panel.skipButton.addEventListener("click",Bn),s.exportResultsPlugin&&function(e,t){n.Global.exportResultsPlugin&&(F=async()=>{await U(e,t)},K=()=>{H(e)},n.Panel.exportHTML.addEventListener("click",F),n.Panel.exportCSV.addEventListener("click",K))}(this.results,e.dismissedResults),N(n.Panel.pageIssuesList,n.Panel.pageIssuesContent),Nn(s.ignoreHiddenOverflow),document.querySelectorAll("sa11y-annotation").forEach(e=>{const t=e.nextElementSibling;null!==t&&"SA11Y-ANNOTATION"===t.tagName&&customElements.get("sa11y-annotation")&&t.shadowRoot.querySelector("button").setAttribute("style","margin: -5px -15px !important;")})}n.Panel.toggle.disabled=!1}var o,i,a,r;window.sa11yCheckComplete=null;const l=new CustomEvent("sa11y-check-complete",{detail:{results:this.results,page:window.location.pathname}});window.sa11yCheckComplete=l.detail,document.dispatchEvent(l)},this.resetAll=(e=!0)=>{for(n.Global.html.removeAttribute("data-sa11y-active"),k(["sa11y-annotation","sa11y-heading-label","sa11y-heading-anchor","sa11y-tooltips","[data-sa11y-readability-period]","[data-sa11y-clone-image-text]"],"document"),x(["data-sa11y-parent","data-sa11y-error","data-sa11y-warning","data-sa11y-good","data-sa11y-error-inline","data-sa11y-warning-inline","data-sa11y-overflow","data-sa11y-pulse-border","data-sa11y-filter","data-sa11y-has-shadow-root"],"document"),n.Panel.outlineList.innerHTML="",s.showImageOutline&&(n.Panel.imagesList.innerHTML=""),n.Panel.pageIssuesList.innerHTML="",n.Panel.readabilityInfo.innerHTML="",n.Panel.readabilityDetails.innerHTML="",n.Panel.panel.classList.remove("has-page-issues"),n.Panel.pageIssues.classList.remove("active"),n.Panel.settingsContent.classList.remove("hide-settings-border"),n.Panel.panel.querySelector("#readability-alert")?.remove(),I(),document.removeEventListener("keydown",Mn),n.Panel.skipButton.removeEventListener("click",Bn),n.Global.exportResultsPlugin&&(n.Panel.exportHTML.removeEventListener("click",F),n.Panel.exportCSV.removeEventListener("click",K)),n.Panel.panel?.removeEventListener("click",B),n.Panel.dismissButton?.removeEventListener("click",M),n.Global.colourFilterPlugin&&(n.Panel.colourFilterSelect.value=0,n.Panel.colourPanel.classList.remove("active"),n.Panel.colourFilterSelect.classList.remove("active"),n.Panel.content.hidden=!1);n.Panel.status.firstChild;)n.Panel.status.removeChild(n.Panel.status.firstChild);document.querySelectorAll("[data-sa11y-has-shadow-root]").forEach(e=>{e.shadowRoot.querySelectorAll("style.sa11y-css-utilities").forEach(e=>e.remove()),e.removeAttribute("data-sa11y-has-shadow-root")}),e&&n.Panel.panel.classList.remove("active")},this.disabled=()=>{setTimeout(()=>{"Opened"===v.getItem("sa11y-panel")&&n.Panel.toggle.click(),n.Panel.toggle.disabled=!0},s.delayCheck+10)},this.enabled=()=>{n.Panel.toggle&&(n.Panel.toggle.disabled=!1)},this.find=(e,t,n)=>o(e,t,n),this.prepareDismissal=e=>L(e),this.sanitizeHTML=e=>u(e),this.truncateString=(e,t)=>y(e,t),this.initialize()}}export{t as Lang,Hn as Sa11y}; diff --git a/docs/assets/js/sa11y.umd.js b/docs/assets/js/sa11y.umd.js index 0f8a70f2..153e23b9 100644 --- a/docs/assets/js/sa11y.umd.js +++ b/docs/assets/js/sa11y.umd.js @@ -1,7 +1,7 @@ /*! * Sa11y, the accessibility quality assurance assistant. - * @version 4.2.0 + * @version 4.2.1 * @author Adam Chaboryk * @license GPL-2.0-or-later * @copyright © 2020 - 2025 Toronto Metropolitan University. @@ -2224,7 +2224,7 @@ } } - const version = '4.2.0'; + const version = '4.2.1'; var styles = ":host{background:var(--sa11y-panel-bg);border-top:5px solid var(--sa11y-panel-bg-splitter);bottom:0;display:block;height:-moz-fit-content;height:fit-content;left:0;position:fixed;right:0;width:100%;z-index:999999}*{-webkit-font-smoothing:auto!important;color:var(--sa11y-panel-primary);font-family:var(--sa11y-font-face)!important;font-size:var(--sa11y-normal-text);line-height:22px!important}#dialog{margin:20px auto;max-width:900px;padding:20px}h2{font-size:var(--sa11y-large-text);margin-top:0}a{color:var(--sa11y-hyperlink);cursor:pointer;text-decoration:underline}a:focus,a:hover{text-decoration:none}p{margin-top:0}.error{background:var(--sa11y-error);border:2px dashed #f08080;color:var(--sa11y-error-text);margin-bottom:0;padding:5px}"; @@ -9477,7 +9477,7 @@ ${this.error.stack} } // Process simple SVGs with a single shape. - const shapes = $el.querySelectorAll('path, polygon, circle, rect, ellipse'); + const shapes = $el.querySelectorAll('path, polygon, circle, rect, ellipse, use'); if (shapes.length === 1) { const style = getComputedStyle(shapes[0]); const { fill, opacity, stroke, strokeWidth } = style; @@ -9906,7 +9906,7 @@ ${this.error.stack} } // Avoid using placeholder attributes. - if ($el.placeholder && $el.placeholder !== 0) { + if (option.checks.LABELS_PLACEHOLDER && $el.placeholder && $el.placeholder !== 0) { results.push({ element: $el, type: option.checks.LABELS_PLACEHOLDER.type || 'warning', diff --git a/docs/assets/js/sa11y.umd.min.js b/docs/assets/js/sa11y.umd.min.js index fb0a79ae..e13db64a 100644 --- a/docs/assets/js/sa11y.umd.min.js +++ b/docs/assets/js/sa11y.umd.min.js @@ -1,6 +1,6 @@ /*! * Sa11y, the accessibility quality assurance assistant. - * @version 4.2.0 + * @version 4.2.1 * @author Adam Chaboryk * @license GPL-2.0-or-later * @copyright © 2020 - 2025 Toronto Metropolitan University. @@ -9,4 +9,4 @@ * For all acknowledgements, please visit: https://sa11y.netlify.app/acknowledgements/ * The above copyright notice shall be included in all copies or substantial portions of the Software. **/ -!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).Sa11y={})}(this,function(e){"use strict";const t={checkRoot:"body",containerIgnore:".sa11y-ignore",contrastIgnore:".sr-only",outlineIgnore:"",headerIgnore:"",headerIgnoreSpan:"",headerIgnoreStrings:"",imageIgnore:"",linkIgnore:"",linkIgnoreSpan:"",linkIgnoreStrings:"",aboutContent:"",panelPosition:"right",showMovePanelToggle:!0,checkAllHideToggles:!1,developerChecksOnByDefault:!1,showHinPageOutline:!1,showTitleInPageOutline:!0,showImageOutline:!0,editImageURLofCMS:"",relativePathImageSRC:"",relativePathImageID:"",ignoreEditImageURL:[],ignoreEditImageClass:[],delayCheck:0,delayCustomCheck:500,detectSPArouting:!1,doNotRun:"",headless:!1,selectorPath:!1,shadowComponents:"",autoDetectShadowComponents:!1,showGoodImageButton:!0,showGoodLinkButton:!0,dismissAnnotations:!0,dismissAll:!0,ignoreHiddenOverflow:"",insertAnnotationBefore:"",readabilityPlugin:!0,readabilityRoot:"body",readabilityIgnore:"",contrastPlugin:!0,contrastAAA:!1,contrastAPCA:!1,customChecks:!1,linksAdvancedPlugin:!0,formLabelsPlugin:!0,embeddedContentPlugin:!0,developerPlugin:!0,externalDeveloperChecks:!1,colourFilterPlugin:!0,exportResultsPlugin:!1,susAltStopWords:"",linkStopWords:"",extraPlaceholderStopWords:"",imageWithinLightbox:"",checks:{HEADING_SKIPPED_LEVEL:!0,HEADING_EMPTY_WITH_IMAGE:!0,HEADING_EMPTY:!0,HEADING_FIRST:!0,HEADING_LONG:{maxLength:170},HEADING_MISSING_ONE:!0,MISSING_ALT_LINK:!0,MISSING_ALT_LINK_HAS_TEXT:!0,MISSING_ALT:!0,IMAGE_DECORATIVE_CAROUSEL:{sources:".carousel"},LINK_IMAGE_NO_ALT_TEXT:!0,LINK_IMAGE_TEXT:!0,IMAGE_FIGURE_DECORATIVE:!0,IMAGE_DECORATIVE:!0,LINK_ALT_FILE_EXT:!0,ALT_FILE_EXT:!0,LINK_PLACEHOLDER_ALT:!0,ALT_PLACEHOLDER:!0,LINK_SUS_ALT:!0,SUS_ALT:!0,LINK_IMAGE_LONG_ALT:{maxLength:250},IMAGE_ALT_TOO_LONG:{maxLength:250},LINK_IMAGE_ALT:{dismissAll:!0},LINK_IMAGE_ALT_AND_TEXT:!0,IMAGE_FIGURE_DUPLICATE_ALT:!0,IMAGE_PASS:{dismissAll:!0},DUPLICATE_TITLE:{dismissAll:!0},LINK_EMPTY_LABELLEDBY:!0,LINK_EMPTY_NO_LABEL:!0,LINK_STOPWORD:!0,LINK_STOPWORD_ARIA:!0,LINK_SYMBOLS:!0,LINK_CLICK_HERE:!0,LINK_DOI:{dismissAll:!0},LINK_URL:{maxLength:40},LINK_LABEL:{dismissAll:!0},LINK_EMPTY:!0,LINK_IDENTICAL_NAME:{dismissAll:!0},LINK_NEW_TAB:{dismissAll:!0},LINK_FILE_EXT:!0,LABELS_MISSING_IMAGE_INPUT:!0,LABELS_INPUT_RESET:!0,LABELS_MISSING_LABEL:!0,LABELS_ARIA_LABEL_INPUT:!0,LABELS_NO_FOR_ATTRIBUTE:!0,LABELS_PLACEHOLDER:!0,EMBED_AUDIO:{sources:""},EMBED_VIDEO:{sources:""},EMBED_DATA_VIZ:{sources:""},EMBED_UNFOCUSABLE:!0,EMBED_MISSING_TITLE:!0,EMBED_GENERAL:!0,QA_BAD_LINK:{sources:""},QA_STRONG_ITALICS:!0,QA_IN_PAGE_LINK:!0,QA_DOCUMENT:{sources:"",dismissAll:!0},QA_PDF:{dismissAll:!0},QA_BLOCKQUOTE:!0,TABLES_MISSING_HEADINGS:!0,TABLES_SEMANTIC_HEADING:!0,TABLES_EMPTY_HEADING:!0,QA_FAKE_HEADING:!0,QA_FAKE_LIST:!0,QA_UPPERCASE:!0,QA_UNDERLINE:!0,QA_SUBSCRIPT:!0,QA_NESTED_COMPONENTS:{sources:""},QA_JUSTIFY:!0,QA_SMALL_TEXT:!0,META_LANG:!0,META_SCALABLE:!0,META_MAX:!0,META_REFRESH:!0,DUPLICATE_ID:!0,META_TITLE:!0,UNCONTAINED_LI:!0,TABINDEX_ATTR:!0,HIDDEN_FOCUSABLE:!0,LABEL_IN_NAME:!0,BTN_EMPTY:!0,BTN_EMPTY_LABELLEDBY:!0,BTN_ROLE_IN_NAME:!0,CONTRAST_WARNING:{dismissAll:!0},CONTRAST_INPUT:!0,CONTRAST_ERROR:!0,CONTRAST_PLACEHOLDER:!0,CONTRAST_PLACEHOLDER_UNSUPPORTED:!0,CONTRAST_ERROR_GRAPHIC:!0,CONTRAST_WARNING_GRAPHIC:{dismissAll:!0},CONTRAST_UNSUPPORTED:{dismissAll:!0}}},n={langStrings:{},addI18n(e){this.langStrings=e},_(e){return this.translate(e)},sprintf(e,...t){let n=this._(e);return n=this.prepHTML(n),t&&t.length&&t.forEach(e=>{n=n.replace(/%\([a-zA-z]+\)/,e)}),n},translate(e){return this.langStrings[e]||e},prepHTML:e=>e.replaceAll(/
                                                    /g,'').replaceAll(/${n._("ALT")}
                                                    `).replaceAll(/{L}/g,`${n._("LINKED")}`)},o=function(){const e={};const t={};const i={};const s={};const a={};return{initializeRoot:function(t,i){if(e.areaToCheck=document.querySelector(t),e.areaToCheck||(e.areaToCheck=document.querySelector("body")),e.Readability=document.querySelector(i),!e.Readability)if(e.areaToCheck){e.Readability=e.areaToCheck;const{readabilityDetails:t,readabilityToggle:s}=o.Panel,a="true"===s?.getAttribute("aria-pressed");if(t&&a){const o=document.createElement("div");o.id="readability-alert",o.innerHTML=`

                                                    ${n.sprintf("MISSING_READABILITY_ROOT",e.areaToCheck.tagName.toLowerCase(),i)}

                                                    `,t.insertAdjacentElement("afterend",o)}}else e.Readability=document.querySelector("body")},Root:e,initializeGlobal:function(e){t.html=document.querySelector("html"),t.headless=e.headless,t.panelPosition=e.panelPosition,t.dismissAnnotations=e.dismissAnnotations,t.aboutContent=e.aboutContent,t.contrastAPCA=e.contrastAPCA,t.contrastSuggestions=e.contrastSuggestions,t.contrastAAA=e.contrastAAA,t.shadowDetection=e.shadowComponents.length>0||!0===e.autoDetectShadowComponents,t.developerPlugin=e.developerPlugin,t.colourFilterPlugin=e.colourFilterPlugin,t.checkAllHideToggles=e.checkAllHideToggles,t.exportResultsPlugin=e.exportResultsPlugin,t.readabilityPlugin=e.readabilityPlugin,t.showImageOutline=e.showImageOutline,t.editImageURLofCMS=e.editImageURLofCMS,t.relativePathImageSRC=e.relativePathImageSRC,t.relativePathImageID=e.relativePathImageID,t.ignoreEditImageURL=e.ignoreEditImageURL,t.ignoreEditImageClass=e.ignoreEditImageClass,t.showMovePanelToggle=e.showMovePanelToggle;let n=!1;"function"==typeof window.matchMedia&&(n=window.matchMedia("(prefers-reduced-motion: reduce)")),t.scrollBehaviour=!n||n.matches?"auto":"smooth",t.langDirection="rtl"===t.html.getAttribute("dir")?"rtl":"ltr";const o=e.checks.QA_DOCUMENT.sources,i='a[href$=".doc"], a[href$=".docx"], a[href*=".doc?"], a[href*=".docx?"], a[href$=".ppt"], a[href$=".pptx"], a[href*=".ppt?"], a[href*=".pptx?"], a[href^="https://drive.google.com/file"], a[href^="https://docs.google."], a[href^="https://sway."]';t.documentSources=o?`${i}, ${o}`:i;const s=e.checks.EMBED_VIDEO.sources,a='video, [src*="Video"], [src*="video"], [src*="watch"], [src*="youtube.com"], [src*="vimeo.com"], [src*="panopto.com"], [src*="wistia.com"], [src*="dailymotion.com"], [src*="brightcove.com"], [src*="vidyard.com"]';if(s){const e=s.split(/\s*[\s,]\s*/).map(e=>`[src*="${e}"]`);t.VideoSources=`${a}, ${e.join(", ")}`}else t.VideoSources=a;const r=e.checks.EMBED_AUDIO.sources,l='audio, [src*="soundcloud.com"], [src*="simplecast.com"], [src*="podbean.com"], [src*="buzzsprout.com"], [src*="blubrry.com"], [src*="transistor.fm"], [src*="fusebox.fm"], [src*="libsyn.com"], [src*="spotify.com"], [src*="podcasts.apple.com"], [src*="castbox.fm"], [src*="megaphone.fm"], [src*="spreaker.com"], [src*="anchor.fm"], [src*="rss.com"], [src*="redcircle.com"]';if(r){const e=r.split(/\s*[\s,]\s*/).map(e=>`[src*="${e}"]`);t.AudioSources=`${l}, ${e.join(", ")}`}else t.AudioSources=l;const c=e.checks.EMBED_DATA_VIZ.sources,d='[src*="datastudio"], [src*="tableau"], [src*="lookerstudio"], [src*="powerbi"], [src*="qlik"]';if(c){const e=c.split(/\s*[\s,]\s*/).map(e=>`[src*="${e}"]`);t.VisualizationSources=`${d}, ${e.join(", ")}`}else t.VisualizationSources=d;t.AllEmbeddedContent=`${t.VideoSources}, ${t.AudioSources}, ${t.VisualizationSources}`},Global:t,initializePanelSelectors:function(){const e=document.querySelector("sa11y-control-panel").shadowRoot;i.panel=e.getElementById("panel"),i.content=e.getElementById("panel-content"),i.controls=e.getElementById("panel-controls"),i.outline=e.getElementById("outline-panel"),i.outlineContent=e.getElementById("outline-content"),i.outlineList=e.getElementById("outline-list"),i.outlineHeader=e.getElementById("outline-header"),i.images=e.getElementById("images-panel"),i.imagesContent=e.getElementById("images-content"),i.imagesList=e.getElementById("images-list"),i.imagesHeader=e.getElementById("images-header"),i.notifBadge=e.getElementById("notification-badge"),i.notifCount=e.getElementById("notification-count"),i.notifText=e.getElementById("notification-text"),i.status=e.getElementById("status"),i.pageIssues=e.getElementById("page-issues"),i.pageIssuesList=e.getElementById("page-issues-list"),i.pageIssuesHeader=e.getElementById("page-issues-header"),i.pageIssuesContent=e.getElementById("page-issues-content"),i.settings=e.getElementById("settings-panel"),i.settingsHeader=e.getElementById("settings-header"),i.settingsContent=e.getElementById("settings-content"),i.developerToggle=e.getElementById("developer-toggle"),i.readabilityToggle=e.getElementById("readability-toggle"),i.themeToggle=e.getElementById("theme-toggle"),i.developerItem=e.getElementById("developer-item"),i.readabilityItem=e.getElementById("readability-item"),i.darkModeItem=e.getElementById("dark-mode-item"),i.colourPanel=e.getElementById("panel-colour-filters"),i.colourFilterItem=e.getElementById("colour-filter-item"),i.colourFilterSelect=e.getElementById("colour-filter-select"),i.colourFilterIcon=e.getElementById("filter-icon"),i.toggle=e.getElementById("toggle"),i.outlineToggle=e.getElementById("outline-toggle"),i.imagesToggle=e.getElementById("images-toggle"),i.settingsToggle=e.getElementById("settings-toggle"),i.movePanelToggle=e.getElementById("move-panel"),i.skipButton=e.getElementById("skip-button"),i.dismissButton=e.getElementById("dismiss-button"),i.dismissTooltip=e.getElementById("dismiss-tooltip"),i.skipToPageIssues=e.getElementById("skip-to-page-issues"),i.exportHTML=e.getElementById("export-html"),i.exportCSV=e.getElementById("export-csv"),i.alert=e.getElementById("panel-alert"),i.alertText=e.getElementById("panel-alert-text"),i.alertPreview=e.getElementById("panel-alert-preview"),i.alertClose=e.getElementById("close-alert"),i.readability=e.getElementById("readability-panel"),i.readabilityInfo=e.getElementById("readability-info"),i.readabilityDetails=e.getElementById("readability-details")},Panel:i,initializeReadability:function(e){if(e.readabilityPlugin){s.Lang=n._("LANG_CODE").substring(0,2);const e=["en","fr","es","de","nl","it","sv","fi","da","no","nb","nn","pt"],t=o.Global.html.getAttribute("lang");if(t){const n=t.toLowerCase().substring(0,2);e.includes(n)&&e.includes(s.Lang)?s.Plugin=!0:s.Plugin=!1}else s.Plugin=!1}},Readability:s,initializeExclusions:function(e){a.Sa11yElements=["sa11y-heading-label","sa11y-heading-anchor","sa11y-annotation","sa11y-tooltips","sa11y-panel-tooltips","sa11y-control-panel","#sa11y-colour-filters","#sa11y-colour-filters *"];const t=["style","script","noscript"];if(a.Container=["#wpadminbar","#wpadminbar *",...t],e.containerIgnore){const t=e.containerIgnore.split(",").map(e=>e.trim());a.Container=a.Container.concat(t.flatMap(e=>[`${e} *`,e]))}a.Contrast=["link","hr","option","audio","audio *","video","video *",'input[type="color"]','input[type="range"]',"progress","progress *","meter","meter *","iframe","svg title","svg desc",...t],e.contrastIgnore&&(a.Contrast=e.contrastIgnore.split(",").map(e=>e.trim()).flatMap(e=>[e,`${e} *`]).concat(a.Contrast)),a.Readability=["nav li",'[role="navigation"] li',...t],e.readabilityIgnore&&(a.Readability=e.readabilityIgnore.split(",").map(e=>e.trim()).flatMap(e=>[e,`${e} *`]).concat(a.Readability)),a.Headings=e.headerIgnore?e.headerIgnore.split(",").map(e=>e.trim()):[],a.HeaderSpan=e.headerIgnoreSpan?e.headerIgnoreSpan.split(",").map(e=>e.trim()):[],a.Outline=e.outlineIgnore?e.outlineIgnore.split(",").map(e=>e.trim()):[],a.Images=['[role="presentation"]'],e.imageIgnore&&(a.Images=e.imageIgnore.split(",").map(e=>e.trim()).concat(a.Images)),a.Links=[".anchorjs-link"],e.linkIgnore&&(a.Links=e.linkIgnore.split(",").map(e=>e.trim()).concat(a.Links)),a.LinkSpan=e.linkIgnoreSpan?e.linkIgnoreSpan.split(",").map(e=>e.trim()):[]},Exclusions:a}}();function i(e,t,n){let i;"document"===t?i=document:"readability"===t?(i=o.Readability.Root,i||(i=o.Root.areaToCheck)):"root"===t?(i=o.Root.areaToCheck,i||(i=document.body)):"panel"===t?(i=o.Panel.panel,i||(i=document.body)):(i=document.querySelector(t),i||(i=document.body));const s=document.querySelectorAll("[data-sa11y-has-shadow-root]"),a=s?", [data-sa11y-has-shadow-root]":"",r=o.Exclusions.Container.join(", "),l=n?.join(", ")||"",c=l?`, ${l}`:"",d=Array.from(i.querySelectorAll(`:is(${e}${a}):not(${r}${c})`));if(s.length){const t=[];if(d.forEach((n,o)=>{n&&n.matches&&n.matches("[data-sa11y-has-shadow-root]")&&n.shadowRoot&&(t[o]=n.shadowRoot.querySelectorAll(`:is(${e}):not(${r}${c})`))}),t.length>0)for(let e=t.length-1;e>=0;e--)t[e]&&d.splice(e,1,...t[e])}return d.filter(e=>"SLOT"!==e.parentNode.tagName)}const s=(e,t)=>{const n=e=>{if("none"===e)return"";const t=e.includes("url(")||e.includes("image-set(")?e.match(/\/\s*"([^"]+)"/):e.match(/"([^"]+)"/);return t?t[1]:""};return`${n(window.getComputedStyle(e,":before").getPropertyValue("content"))}${t}${n(window.getComputedStyle(e,":after").getPropertyValue("content"))}`},a=e=>{for(let t=0;t<1e3;t++){if(e.nextSibling())return e.previousNode();if(!e.parentNode())return!1}return!1},r=(e,t=!1)=>{const n=e.getAttribute("aria-labelledby");if(!t&&n)return n.split(/\s+/).filter(e=>e.trim()).map(e=>{const t=document.querySelector(`#${CSS.escape(e)}`);return t?l(t,"",1):""}).join(" ");const o=e.getAttribute("aria-label");return o&&o.trim().length>0?o:"noAria"},l=(e,t=[],n=0)=>{const o=r(e,n);if("noAria"!==o)return o;if("TEXTAREA"===e.tagName&&e.hasAttribute("title"))return e.getAttribute("title");let i="";if(!e.children.length)return i=s(e,e.textContent),!i.trim()&&e.hasAttribute("title")?e.getAttribute("title"):i;const c=(d=e,p=!0,u=!0,document.createTreeWalker(d,NodeFilter.SHOW_ALL,{acceptNode:e=>p&&e.nodeType===Node.ELEMENT_NODE||u&&e.nodeType===Node.TEXT_NODE?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT}));var d,p,u;const h=[...t,"noscript","style","script","video","audio"].join(", "),g=h?e.querySelectorAll(h):[];let m=!1,f=!1,b=0,y=!0;for(;c.nextNode()&&y;){b+=1;const e=c.currentNode;if(Array.from(g).some(t=>t.contains(e)))continue;if(e.shadowRoot){const o=e.shadowRoot.querySelectorAll("*");for(let e=0;e{e.nodeType===Node.ELEMENT_NODE?n+=l(e):e.nodeType===Node.TEXT_NODE&&(n+=e.nodeValue)}),i+=n,i+=s(e,"");break}default:i+=s(e,"")}else i+=` ${o}`,a(c)||(y=!1)}return m&&!f&&(i+=` ${m}`),i=i.replace(/[\uE000-\uF8FF]/gu,""),!i.trim()&&e.hasAttribute("title")?e.getAttribute("title"):i};function c(e){if(e.getAttribute("hidden")||0===e.offsetWidth&&0===e.offsetHeight||1===e.clientHeight&&1===e.clientWidth)return!0;return"none"===getComputedStyle(e).getPropertyValue("display")}function d(e){const t=window.getComputedStyle(e),n=t.getPropertyValue("clip-path"),{position:o}=t,i=parseFloat(t.width),s=parseFloat(t.height),{overflow:a}=t;return"inset(50%)"===n||"absolute"===o&&1===i&&1===s&&"hidden"===a}function p(e){if(e.getAttribute("hidden"))return!0;return"none"===getComputedStyle(e).getPropertyValue("display")}function u(e){const t=document.createElement("div");return t.textContent=e,t.innerHTML.replaceAll('"',""").replaceAll("'","'").replaceAll("`","`")}function h(e){return e.replace(/[^\w. ]/gi,e=>`&#${e.charCodeAt(0)};`)}function g(e){if(!e)return"#";const t=String(e).trim();if(/^javascript:/i.test(t))return"#";if(/^data:/i.test(t))return"#";if(!["http:","https:","mailto:","tel:","ftp:"].some(e=>t.toLowerCase().startsWith(e))&&!t.startsWith("/")&&!t.startsWith("#"))return`./${t}`;const n=t.replace(/<[^>]*>/g,"");return encodeURI(n)}function m(e,t=!1){const n=document.createElement("div");n.innerHTML=e,["script","style","noscript","iframe","form"].forEach(e=>{const t=n.getElementsByTagName(e);for(;t.length>0;)t[0].parentNode.removeChild(t[0])});return Array.from(n.getElementsByTagName("*")).forEach(e=>{Array.from(e.attributes).forEach(t=>{t.name.startsWith("on")&&e.removeAttribute(t.name)}),t||e.removeAttribute("style")}),n.innerHTML}function f(e,t=[]){const n=["noscript","script","style","audio","video","form","iframe",...t].join(", "),o=e.cloneNode(!0);return Array.from(o.querySelectorAll(n)).forEach(e=>{e.parentElement.removeChild(e)}),o}function b(e){return f(e).textContent.replace(/[\r\n]+/g,"").replace(/\s+/g," ").trim()}function y(e){return e.replace(/[\r\n]+/g," ").replace(/\s+/g," ").trim()}function A(e,t){const n=e.substring(0,t).trimEnd();return e.length>t?`${n}...`:e}function E(e,t,n){let o=e;for(;null!==o;){if(window.getComputedStyle(o).getPropertyValue(t)===n)return o;o=o.parentElement}return null}function v(e){const t=e.getBoundingClientRect(),n=window.pageYOffset||document.documentElement.scrollTop;return{top:t.top+n}}const _={getItem(e){try{return null===localStorage.getItem(e)?sessionStorage.getItem(e):localStorage.getItem(e)}catch(e){return!1}},setItem(e,t){try{localStorage.setItem(e,t)}catch(n){sessionStorage.setItem(e,t)}return!0},removeItem(e){try{localStorage.removeItem(e)}catch(t){sessionStorage.removeItem(e)}return!0}};function L(e){const t="data-sa11y-pulse-border";e.setAttribute(t,""),setTimeout(()=>{e.removeAttribute(t)},2500)}function I(e){return String(e).replace(/([^0-9a-zA-Z])/g,"").substring(0,256)}function T(){const e=document.querySelector("sa11y-control-panel").shadowRoot,t=e.getElementById("panel-alert"),n=e.getElementById("panel-alert-text"),o=e.getElementById("panel-alert-preview");for(t.classList.remove("active"),o.classList.remove("panel-alert-preview");n.firstChild;)n.removeChild(n.firstChild);for(;o.firstChild;)o.removeChild(o.firstChild)}function x(e,t,n){T();const o=document.querySelector("sa11y-control-panel").shadowRoot,i=o.getElementById("panel-alert"),s=o.getElementById("panel-alert-text"),a=o.getElementById("panel-alert-preview"),r=o.getElementById("close-alert"),l=o.getElementById("skip-button");i.classList.add("active"),s.innerHTML=e;const c=n?`
                                                    ${n}
                                                    `:"";function d(){T();(l.hasAttribute("disabled")?o.getElementById("toggle"):l).focus()}t&&(a.classList.add("panel-alert-preview"),a.innerHTML=`${c}
                                                    ${t}
                                                    `),setTimeout(()=>{r.focus()},300),r.addEventListener("click",d),i.onkeydown=e=>{"Escape"===(e||window.event).key&&i.classList.contains("active")&&d()}}function k(e,t){e.forEach(e=>{i(`[${e}]`,`${t}`).forEach(t=>{t.removeAttribute(e)})})}function N(e,t){i(`${e}`,`${t}`).forEach(e=>{e.parentNode.removeChild(e)})}function S(e,t,n){setTimeout(()=>{e.scrollHeight>t.clientHeight?(t.classList.add("scrollable"),e.setAttribute("tabindex","0"),n&&(e.setAttribute("aria-label",n),e.setAttribute("role","region"))):t.classList.remove("scrollable")},50)}function w(e){const t=e=>e?.split(",").pop()?.trim()?.split(/\s+/)[0],n=e=>e?new URL(e,window.location.href).href:null,o=t(e.getAttribute("data-src")||e.getAttribute("srcset"));if(o)return n(o);const i=e.closest("picture")?.querySelector("source[srcset]")?.getAttribute("srcset"),s=t(i);return n(s||e.getAttribute("src"))}function C(e,t=!1){const n=e.element,o=`
                                                    ${u(A(m(e.htmlPath),600))}
                                                    `,i=e=>{const t=b(e),n=A(t,100);return t.length?h(n):o},s={SPAN:i,P:i,A:e=>{const t=b(e),n=A(t,100);return t.length>1&&e.href&&!e.hasAttribute("role")?`${h(n)}`:o},IMG:e=>{const n=e.closest("a[href]"),i=e.alt?`alt="${h(e.alt)}"`:"alt",s=w(e);function a(e){return n?``:``}if(t)return new Promise(e=>{if(s){if(new URL(s,window.location.origin).origin===window.location.origin)fetch(s).then(e=>e.blob()).then(e=>(e=>new Promise((t,n)=>{const o=new FileReader;o.onloadend=()=>{let{result:n}=o;const i=e.type&&e.type.startsWith("image/")?e.type:"image/png";n.startsWith("data:application/octet-stream")&&(n=n.replace("data:application/octet-stream",`data:${i}`)),t(n)},o.onerror=n,o.readAsDataURL(e)}))(e)).then(t=>{const n=t.startsWith("data:image/")?t:g(t);e(a(n))}).catch(()=>{e(a(s))});else{const t=s.startsWith("data:image/")?s:g(s);e(a(t))}}else e(o)});const r=s.startsWith("data:image/")?s:g(s);return s?a(r):o},IFRAME:e=>{const t=e.src,n=e.title?e.title:"",i=e.getAttribute("aria-label");if(t){const e=i||""||n;return``}return o},AUDIO:()=>m(e.htmlPath),VIDEO:()=>m(e.htmlPath)}[n.tagName];return s?s(n):o}function O(e){let t="";const n=l(e).toLowerCase();e.childNodes.forEach(e=>{e.nodeType===Node.TEXT_NODE?t+=e.textContent:e.nodeType===Node.ELEMENT_NODE&&(c(e)||(t+=e.textContent))});let o=t.replace(/[\p{Emoji_Presentation}\p{Extended_Pictographic}]/gu,"");return o=y(o).toLowerCase(),"x"!==o&&(0!==o.length&&!n.includes(o))}const P=function(){const e={};const t={};return{initializeElements:function(t){e.Everything=i("*","root",o.Exclusions.Sa11yElements),e.Contrast=e.Everything.filter(e=>!o.Exclusions.Contrast.some(t=>e.matches(t))&&!o.Exclusions.Contrast.includes(e)),e.Images=e.Everything.filter(e=>"IMG"===e.tagName&&!o.Exclusions.Images.some(t=>e.matches(t))),e.Links=e.Everything.filter(e=>("A"===e.tagName||"a"===e.tagName)&&e.hasAttribute("href")&&!e.matches('[role="button"]')&&!o.Exclusions.Links.some(t=>e.matches(t))),e.Headings=i('h1, h2, h3, h4, h5, h6, [role="heading"][aria-level]',"document",o.Exclusions.Headings),e.HeadingOne=i('h1, [role="heading"][aria-level="1"]',"document",o.Exclusions.Headings),e.ExcludedHeadings=e.Headings.filter(e=>o.Exclusions.Headings.some(t=>e.matches(t))),e.ExcludedOutlineHeadings=e.Headings.filter(e=>o.Exclusions.Outline.some(t=>e.matches(t))),e.OutlineIgnore=P.Found.ExcludedOutlineHeadings.concat(P.Found.ExcludedHeadings),e.Paragraphs=e.Everything.filter(e=>"P"===e.tagName&&!e.closest("table")),e.Lists=e.Everything.filter(e=>"LI"===e.tagName),e.Blockquotes=e.Everything.filter(e=>"BLOCKQUOTE"===e.tagName),e.Tables=e.Everything.filter(e=>"TABLE"===e.tagName&&!e.matches('[role="presentation"]')&&!e.matches('[role="none"]')),e.StrongItalics=e.Everything.filter(e=>["STRONG","EM"].includes(e.tagName)),e.Subscripts=e.Everything.filter(e=>["SUP","SUB"].includes(e.tagName));const n=t.checks.QA_BAD_LINK.sources;e.CustomErrorLinks=n.length?e.Links.filter(e=>n.split(",").some(t=>e.matches(t.trim()))):[];const s=e=>o.Root.Readability.contains(e)&&!o.Exclusions.Readability.some(t=>e.matches(t));e.Readability=[...e.Paragraphs.filter(s),...e.Lists.filter(s)];const a=t.checks.QA_NESTED_COMPONENTS.sources||'[role="tablist"], details';e.NestedComponents=a?e.Everything.filter(e=>e.matches(a)):[],e.TabIndex=e.Everything.filter(e=>e.hasAttribute("tabindex")&&"0"!==e.getAttribute("tabindex")&&!e.getAttribute("tabindex").startsWith("-")),e.Svg=e.Everything.filter(e=>"svg"===e.tagName),e.Buttons=e.Everything.filter(e=>"BUTTON"===e.tagName||e.matches('[role="button"]')),e.Inputs=e.Everything.filter(e=>["INPUT","SELECT","TEXTAREA","METER","PROGRESS"].includes(e.tagName)),e.Labels=e.Everything.filter(e=>"LABEL"===e.tagName),e.iframes=e.Everything.filter(e=>["IFRAME","AUDIO","VIDEO"].includes(e.tagName)),e.Videos=e.iframes.filter(e=>e.matches(o.Global.VideoSources)),e.Audio=e.iframes.filter(e=>e.matches(o.Global.AudioSources)),e.Visualizations=e.iframes.filter(e=>e.matches(o.Global.VisualizationSources)),e.EmbeddedContent=e.iframes.filter(e=>!e.matches(o.Global.AllEmbeddedContent));const r=document.querySelector("html");e.Language=r.getAttribute("lang")},Found:e,initializeAnnotations:function(){t.Array=i("sa11y-annotation","document"),t.Array.forEach((e,t)=>{e.setAttribute("data-sa11y-position",t)})},Annotations:t}}();const R=e=>{if(0===e.shadowRoot.querySelectorAll(".sa11y-css-utilities").length){const t=document.createElement("style");t.setAttribute("class","sa11y-css-utilities"),t.textContent="[data-sa11y-overflow]{overflow:auto!important}[data-sa11y-clone-image-text]{display:none!important}[data-sa11y-readability-period]{clip:rect(1px,1px,1px,1px)!important;border:0!important;clip-path:inset(50%)!important;display:block!important;height:1px!important;overflow:hidden!important;padding:0!important;position:absolute!important;white-space:nowrap!important;width:1px!important}[data-sa11y-error-inline],[data-sa11y-error]{outline:5px solid var(--sa11y-error)!important;outline-offset:2px}[data-sa11y-warning-inline]:not([data-sa11y-error-inline]),[data-sa11y-warning]:not([data-sa11y-error]){outline:5px solid var(--sa11y-warning)!important;outline-offset:2px}[data-sa11y-pulse-border]{animation:pulse 2s 3;box-shadow:0;outline:5px solid var(--sa11y-focus-color)!important}[data-sa11y-pulse-border]:focus,[data-sa11y-pulse-border]:hover{animation:none}@keyframes pulse{0%{box-shadow:0 0 0 5px var(--sa11y-focus-color)}70%{box-shadow:0 0 0 12px var(--sa11y-pulse-color)}to{box-shadow:0 0 0 5px var(--sa11y-pulse-color)}}@media (prefers-reduced-motion:reduce){[data-sa11y-pulse-border]{animation:none!important}}@media (forced-colors:active){[data-sa11y-error-inline],[data-sa11y-error],[data-sa11y-good],[data-sa11y-pulse-border],[data-sa11y-warning-inline],[data-sa11y-warning]{forced-color-adjust:none}}",e.shadowRoot.appendChild(t)}};function D(e,t,n){if(!0===e){let e=window.location.href;const o=function(e,t){let n=null;return(...o)=>{window.clearTimeout(n),n=window.setTimeout(()=>{e(...o)},t)}}(async()=>{e!==window.location.href&&("Closed"!==_.getItem("sa11y-panel")&&_.getItem("sa11y-panel")?(n(!1),await t()):t(),e=window.location.href)},250);window.addEventListener("click",o),window.addEventListener("keydown",o)}}function M(e,t){const i=JSON.parse(localStorage.getItem("sa11y-dismissed")||"[]"),s=window.location.pathname,a=[...e.filter(e=>i.some(t=>((e,t)=>t.key.includes(e.dismiss)&&t.href===s&&("warning"===e.type||"good"===e.type))(e,t))),...e.filter(e=>i.some(t=>((e,t)=>"string"==typeof t.dismissAll&&e.dismissAll===t.dismissAll&&t.href===s)(e,t)))],r=a.length,l=e.filter(e=>!a.some(t=>t.dismiss===e.dismiss&&("warning"===e.type||"good"===e.type)));return r?(o.Panel.dismissButton.classList.add("active"),o.Panel.dismissTooltip.innerText=n.sprintf("PANEL_DISMISS_BUTTON",r),t.object.setContent(n.sprintf("PANEL_DISMISS_BUTTON",r))):o.Panel.dismissButton.classList.remove("active"),{dismissedIssues:i,updatedResults:l,dismissCount:r,dismissedResults:a}}let B,$;function G(e,t,s,a){if(o.Global.dismissAnnotations){$=t=>{(async(e,t,o,s)=>{let a=JSON.parse(_.getItem("sa11y-dismissed"));const r=e.target;if(document.querySelector("sa11y-panel-tooltips").hidden=!1,"BUTTON"===r.tagName&&r.hasAttribute("data-sa11y-dismiss")){const e=parseInt(r.getAttribute("data-sa11y-dismiss"),10),l=t.find(t=>t.id===e);if(null===a&&(setTimeout(()=>x(n._("DISMISS_REMINDER")),0),a=[]),l.dismiss){const e=r.hasAttribute("data-sa11y-dismiss-all")?l.dismissAll:"",t={key:l.dismiss,href:window.location.pathname,...e?{dismissAll:e}:{}},n=i(`[data-sa11y-annotation='${l.id}']`),c=n[0]?n[0].getAttribute("data-sa11y-position"):0;_.setItem("sa11y-latest-dismissed",c),_.setItem("sa11y-dismiss-item",JSON.stringify(t)),a.push(t),_.setItem("sa11y-dismissed",JSON.stringify(a)),_.removeItem("sa11y-dismiss-item");const d=r?.closest("[data-tippy-root]");d&&setTimeout(()=>{d.remove()},0),s(!1),await o()}}})(t,e,s,a)};document.querySelector("sa11y-tooltips").shadowRoot.addEventListener("click",$),o.Panel.panel.addEventListener("click",$)}B=()=>{(async(e,t,n)=>{document.querySelector("sa11y-panel-tooltips").hidden=!0;const i=e.filter(e=>e.href!==window.location.pathname);_.setItem("sa11y-dismissed",JSON.stringify(i)),o.Panel.dismissButton.classList.remove("active"),n(!1),await t()})(t,s,a)},o.Panel.dismissButton?.addEventListener("click",B)}function U(){const e=new Date,t=String(e.getDate()).padStart(2,"0"),n=String(e.getMonth()+1).padStart(2,"0"),o=e.getFullYear(),i=(new Date).toLocaleString(),s=`${n}-${t}-${o}`,a=document.querySelector("head title"),r=!a||0===a.textContent.trim().length;return{date:i,numericDate:s,titleCheck:r,metaTitle:r?"":a.textContent,pageURL:window.location.href}}async function H(e,t){const o=await async function(e,t){const o=e.filter(e=>"error"===e.type),i=e.filter(e=>"warning"===e.type),s={error:o.length,warning:i.length,dismiss:t.length};async function a(e,t){const o={error:n._("ERRORS"),warning:n._("WARNINGS"),dismissed:n._("DISMISSED")}[t];if(!(e.length>0))return"";let i=`

                                                    ${o}

                                                    `,a=`
                                                      `,r="
                                                    ";"dismissed"===t&&(a=`
                                                    ${n.sprintf("PANEL_DISMISS_BUTTON",s.dismiss)}
                                                      `,r="
                                                    "),i+=a;const l=e.map(async e=>{let t="";if(e.element){const o=["IMG","IFRAME","AUDIO","VIDEO"],i=await C(e,!0);t=o.includes(e.element.tagName)?`
                                                  • ${n._("PREVIEW")}: ${i}
                                                  • ${n._("ELEMENT")}:
                                                    ${u(e.htmlPath)}
                                                  • `:`
                                                  • ${n._("ELEMENT")}:
                                                    ${u(e.htmlPath)}
                                                  • `}const o=e.cssPath?`
                                                  • ${n._("PATH")}:
                                                    ${e.cssPath}
                                                  • `:"";return`
                                                  • ${e.content}
                                                      ${t}${o}
                                                  • `});return i+=(await Promise.all(l)).join(""),i+=r,i}const r=await a(o,"error"),l=await a(i,"warning"),c=await a(t,"dismissed"),d=U(),p=d.titleCheck?"":`
                                                    ${n._("PAGE_TITLE")}
                                                    ${d.metaTitle}
                                                    `,h=0!==s.error?`
                                                    ${n._("ERRORS")}
                                                    ${s.error}
                                                    `:"",g=0!==s.warning?`
                                                    ${n._("WARNINGS")}
                                                    ${s.warning}
                                                    `:"",m=0!==s.dismiss?`
                                                    ${n._("DISMISSED")}
                                                    ${s.dismiss}
                                                    `:"";return`\n \n \n \n \n \n ${n._("RESULTS")}: ${d.metaTitle}\n \n \n \n
                                                    \n

                                                    ${n._("RESULTS")}

                                                    \n
                                                    \n
                                                    \n ${p}\n
                                                    URL
                                                    \n
                                                    ${d.pageURL}
                                                    \n
                                                    ${n._("DATE")}
                                                    \n
                                                    ${d.date}
                                                    \n
                                                    \n
                                                    \n ${h}\n ${g}\n ${m}\n
                                                    \n
                                                    \n
                                                    \n
                                                    \n ${r}\n ${l}\n ${c}\n
                                                    \n
                                                    \n

                                                    ${n.sprintf("GENERATED",'Sa11y')}

                                                    \n
                                                    \n \n \n `}(e,t),i=U(),s=new Blob([o],{type:"text/html"}),a=document.createElement("a"),r=i.titleCheck?"":`_${i.metaTitle.trim().replace(/ /g,"")}`;a.href=window.URL.createObjectURL(s),a.download=`Sa11y_${i.numericDate+r}.html`,document.body.appendChild(a),a.click(),setTimeout(()=>{document.body.removeChild(a),window.URL.revokeObjectURL(a.href)},100)}function F(e){const t=U(),n=e.filter(e=>"warning"===e.type||"error"===e.type).map(e=>{const{type:n,content:o,htmlPath:i,cssPath:s}=e,a=o.replaceAll(/]*>.*?<\/span>/gi,"").replaceAll(''," | ").replaceAll(/"/g,'""');const r=function(e){return e.replace(/&(#?[a-zA-Z0-9]+);/g,(e,t)=>{switch(t){case"amp":return"&";case"lt":return"<";case"gt":return">";case"quot":case"#39":return"'";default:return"#"===t.charAt(0)?String.fromCharCode("x"===t.charAt(1)?parseInt(t.substr(2),16):parseInt(t.substr(1),10)):e}})}(String(a).replace(/<[^>]*>/g,"")),l={Title:`"${t.metaTitle}"`,URL:`"${t.pageURL}"`,Type:`"${String(n)}"`,Issue:`"${r}"`,Element:`"${i}"`};return s&&(l.Path=`"${s}"`),l}),o=Object.keys(n[0]),i=`${o.join(",")}\n${n.map(e=>o.map(t=>e[t]).join(",")).join("\n")}`,s=new Uint8Array([239,187,191]),a=new Blob([s,i],{type:"text/csv;charset=utf-8;"}),r=window.URL.createObjectURL(a),l=document.createElement("a");l.href=r,l.href=window.URL.createObjectURL(a);const c=t.titleCheck?"":`_${t.metaTitle.trim().replace(/ /g,"")}`;l.setAttribute("download",`Sa11y_${t.numericDate+c}.csv`),document.body.appendChild(l),l.click(),setTimeout(()=>{document.body.removeChild(l),window.URL.revokeObjectURL(l.href)},100)}let K,W;const Y="4.2.0";var z='.visually-hidden{clip:rect(1px,1px,1px,1px);border:0;clip-path:inset(50%);display:block;height:1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px}[hidden]{display:none!important}.header-text,.header-text-inline,h2{color:var(--sa11y-panel-primary);display:block;font-size:var(--sa11y-large-text);font-weight:600;margin-bottom:3px}.header-text-inline{display:inline-block!important}code{font-family:monospace!important;font-size:calc(var(--sa11y-normal-text) - 1px);font-weight:600}pre:has(code){display:block;overflow:auto;white-space:pre-wrap}.kbd,code,kbd,pre{background-color:var(--sa11y-panel-badge);border-radius:3.2px;color:var(--sa11y-panel-primary);padding:1.6px 4.8px}.bold{font-weight:600}.error .colour,.red-text{color:var(--sa11y-red-text);font-family:var(--sa11y-font-face)}.warning .colour,.yellow-text{color:var(--sa11y-yellow-text);font-family:var(--sa11y-font-face)}.badge,.normal-badge{background-color:var(--sa11y-panel-badge);border-radius:10px;color:var(--sa11y-panel-primary);display:inline;font-size:14px;font-weight:700!important;line-height:1;min-width:10px;outline:1px solid transparent;padding:1px 5px 1.75px;text-align:center;vertical-align:baseline;white-space:nowrap}.error .badge{background:var(--sa11y-error);color:var(--sa11y-error-text)}.error-badge{background:var(--sa11y-error)!important;color:var(--sa11y-error-text)!important}.warning .badge{background:var(--sa11y-yellow-text);color:var(--sa11y-panel-bg)}.warning-badge{background:var(--sa11y-yellow-text)!important;color:var(--sa11y-panel-bg)!important}.good-contrast{background:var(--sa11y-good)!important;color:var(--sa11y-good-text)!important}#contrast-preview{background-color:#e8e8e8;background-image:linear-gradient(45deg,#ccc 25%,transparent 0,transparent 75%,#ccc 0,#ccc),linear-gradient(45deg,#ccc 25%,transparent 0,transparent 75%,#ccc 0,#ccc);background-position:0 0,5px 5px;background-size:10px 10px;border:2px dashed var(--sa11y-panel-bg-splitter);border-radius:3.2px;line-height:1;margin-top:10px;max-height:100px;overflow:clip;overflow-wrap:break-word;padding:5px}#color-pickers{display:flex;justify-content:space-between;margin-bottom:10px;margin-top:10px}#color-pickers label{align-items:center;display:flex}#color-pickers input{margin-inline-start:7px}input[type=color i]{background:var(--sa11y-panel-bg-secondary);block-size:30px;border-color:var(--sa11y-button-outline);border-radius:50%;border-style:solid;border-width:1px;inline-size:30px;padding:2px}input[type=color i]::-webkit-color-swatch-wrapper{padding:1px}input[type=color i]::-webkit-color-swatch{border-color:var(--sa11y-button-outline);border-radius:50%}input[type=color i]::-moz-color-swatch{border-color:var(--sa11y-button-outline);border-radius:50%}input[type=color i].unknown{box-shadow:0 0 0 2px var(--sa11y-yellow-text)}input[type=color i].unknown:after{align-items:center;color:#fff;content:"?";display:flex;font-size:18px;height:24px;justify-content:center;margin:-24px 0;pointer-events:none;position:absolute;width:24px;z-index:2}.close-btn{background:var(--sa11y-panel-bg-secondary);border:2px solid var(--sa11y-button-outline);border-radius:50%;color:var(--sa11y-panel-primary);cursor:pointer;float:var(--sa11y-float-rtl);font-size:var(--sa11y-normal-text);font-weight:400;height:32px;margin:0;position:relative;transition:all .2s ease-in-out;width:32px}.close-btn:focus,.close-btn:hover{background-color:var(--sa11y-shortcut-hover)}.close-btn:after{background:var(--sa11y-setting-switch-bg-off);content:"";inset:-7px;-webkit-mask:var(--sa11y-close-btn-svg) center no-repeat;mask:var(--sa11y-close-btn-svg) center no-repeat;position:absolute}@media screen and (forced-colors:active){.close-btn:after{filter:invert(1)}}#container [tabindex="-1"]:focus,#container [tabindex="0"]:focus,#container a:focus,#container button:focus,#container input:focus,#container select:focus{box-shadow:0 0 0 5px var(--sa11y-focus-color);outline:0}#container #panel-controls button:focus,#container .switch:focus{box-shadow:inset 0 0 0 4px var(--sa11y-focus-color);outline:0}#container #panel-controls button:focus:not(:focus-visible),#container [tabindex="-1"]:focus:not(:focus-visible),#container [tabindex="0"]:focus:not(:focus-visible),#container button:focus:not(:focus-visible),#container input:focus:not(:focus-visible),#container select:focus:not(:focus-visible){box-shadow:none;outline:0}#container [tabindex="-1"]:focus-visible,#container [tabindex="0"]:focus-visible,#container a:focus-visible,#container button:not(#panel-controls button):not(.switch):focus-visible,#container input:focus-visible,#container select:focus-visible{box-shadow:0 0 0 5px var(--sa11y-focus-color);outline:0}#container #panel-controls button:focus-visible,#container .switch:focus-visible{box-shadow:inset 0 0 0 4px var(--sa11y-focus-color);outline:0}@media screen and (forced-colors:active){#panel-controls button:focus{border:3px solid transparent}#container [tabindex="-1"]:focus,#container [tabindex="0"]:focus,#container a:focus,#container button:focus,#container select:focus,.close-btn:focus{outline:3px solid transparent!important}}';class Q extends HTMLElement{constructor(e){super(),this.error=e}connectedCallback(){const e=this.attachShadow({mode:"open"}),t=document.createElement("style");t.innerHTML=":host{background:var(--sa11y-panel-bg);border-top:5px solid var(--sa11y-panel-bg-splitter);bottom:0;display:block;height:-moz-fit-content;height:fit-content;left:0;position:fixed;right:0;width:100%;z-index:999999}*{-webkit-font-smoothing:auto!important;color:var(--sa11y-panel-primary);font-family:var(--sa11y-font-face)!important;font-size:var(--sa11y-normal-text);line-height:22px!important}#dialog{margin:20px auto;max-width:900px;padding:20px}h2{font-size:var(--sa11y-large-text);margin-top:0}a{color:var(--sa11y-hyperlink);cursor:pointer;text-decoration:underline}a:focus,a:hover{text-decoration:none}p{margin-top:0}.error{background:var(--sa11y-error);border:2px dashed #f08080;color:var(--sa11y-error-text);margin-bottom:0;padding:5px}"+z,e.appendChild(t);const i=document.createElement("div");i.setAttribute("id","dialog"),i.setAttribute("tabindex","-1");const s=window.location,a=`## Error Description\n\`\`\`javascript\n${this.error.stack}\n\`\`\`\n\n## Details\n- **URL:** ${s}\n- **Version:** ${Y}\n\n## Comments\n`,r=`https://github.com/ryersondmp/sa11y/issues/new?title=Bug%20report&body=${encodeURIComponent(a)}`;i.innerHTML=`\n \n

                                                    ${n._("ERROR")}

                                                    \n

                                                    ${n.sprintf("CONSOLE_ERROR","https://forms.gle/sjzK9XykETaoqZv99",r)}

                                                    \n

                                                    ${u(this.error.stack)}

                                                    Version: ${Y}
                                                    URL: ${s}

                                                    \n `,e.appendChild(i),setTimeout(()=>{o.Panel.toggle.style.display="none";const e=document.querySelector("sa11y-console-error");e.shadowRoot.getElementById("dialog").focus();e.shadowRoot.querySelector(".close-btn").addEventListener("click",()=>{e.remove()})},0)}}class V extends HTMLElement{connectedCallback(){this.attachShadow({mode:"open"});const e=document.createElement("style");e.textContent='a,button,code,div,h1,h2,h3,kbd,label,li,ol,p,pre,span,strong,svg,ul{all:unset;box-sizing:border-box!important}:after,:before{all:unset}div{display:block}*{-webkit-font-smoothing:auto!important;font-family:var(--sa11y-font-face)!important}label,li,ol,p,ul{font-size:var(--sa11y-normal-text);font-weight:400;letter-spacing:normal;line-height:22px!important;text-align:start;word-break:break-word}.sa11y-overflow{overflow:auto}iframe,img,video{border:0;display:block;height:auto;max-width:100%}audio{max-width:100%}#toggle{align-items:center;background:linear-gradient(0deg,#e040fb,#00bcd4);background-color:var(--sa11y-setting-switch-bg-off);background-size:150% 150%;border-radius:50%;bottom:var(--sa11y-toggle-y-offset);color:#fff;cursor:pointer;display:flex;height:55px;inset-inline-end:var(--sa11y-toggle-x-offset);justify-content:center;margin:0;overflow:visible;position:fixed;transition:all .2s ease-in-out;width:55px;z-index:2147483644}#toggle.left,#toggle.top-left{inset-inline-start:var(--sa11y-toggle-x-offset)}#toggle.top-left,#toggle.top-right{bottom:unset;top:var(--sa11y-toggle-y-offset)}@media screen and (forced-colors:active){#toggle{background:ButtonFace!important;border:2px solid transparent}}#toggle svg{height:35px;width:35px}#toggle svg path{fill:var(--sa11y-panel-bg)}#toggle:focus,#toggle:hover{animation:sa11y-toggle-gradient 3s ease}#toggle:disabled:focus,#toggle:disabled:hover{animation:none}#toggle.on{background:linear-gradient(180deg,#e040fb,#00bcd4)}#toggle:disabled{background:unset;background-color:var(--sa11y-setting-switch-bg-off);cursor:not-allowed}#notification-badge{text-wrap:nowrap;align-items:center;background-color:#eb0000;border:1px solid transparent;border-radius:12px;color:#fff;display:none;font-size:13.5px;font-weight:400;justify-content:center;line-height:1;min-width:20px;padding:2.5px;position:absolute;right:-3px;top:-5.5px}#notification-badge.notification-badge-warning{background-color:var(--sa11y-warning-hover);border:1px solid var(--sa11y-warning);color:var(--sa11y-warning-text)}#panel{background:var(--sa11y-panel-bg);border-radius:4px;bottom:calc(var(--sa11y-toggle-y-offset) + var(--sa11y-panel-y-gap));box-shadow:0 0 20px 4px rgba(154,161,177,.15),0 4px 80px -8px rgba(36,40,47,.25),0 4px 4px -2px rgba(91,94,105,.15);inset-inline-end:calc(var(--sa11y-toggle-x-offset) + var(--sa11y-panel-x-gap));opacity:0;overflow:visible;position:fixed;transform:scale(0);transform-origin:100% 100%;transition:transform .2s,opacity background .2s .2s;visibility:hidden;z-index:2147483643}#panel.left,#panel.top-left{inset-inline-end:unset;inset-inline-start:calc(var(--sa11y-toggle-x-offset) + var(--sa11y-panel-x-gap))}#panel.top-left,#panel.top-right{bottom:unset;top:calc(var(--sa11y-toggle-y-offset) + var(--sa11y-panel-y-gap) + 10px)}#panel.active{height:auto;opacity:1;transform:scale(1);transform-origin:bottom right;transition:transform .2s,opacity .2s;visibility:visible}@media screen and (forced-colors:active){#panel{border:2px solid transparent}}#panel.active.left,[dir=rtl] #panel.active{transform-origin:bottom left}#panel.active.top-left{transform-origin:top left}#panel.active.top-right{transform-origin:top right}#panel-alert{display:none;opacity:0}#panel-alert.active{display:block;opacity:1}#panel-alert-content{align-items:center;border-bottom:1px solid var(--sa11y-panel-bg-splitter);color:var(--sa11y-panel-primary);line-height:22px;max-height:400px;overflow-y:auto;padding:15px 20px 15px 15px;position:relative}.top-left #panel-alert-content,.top-right #panel-alert-content{border:0}#panel-alert-preview .close-tooltip{display:none}#panel-alert-preview,#panel-alert-text{font-family:var(--sa11y-font-face);font-size:var(--sa11y-normal-text);font-weight:400;line-height:22px}.panel-alert-preview{background:var(--sa11y-panel-bg-secondary);border:1px dashed var(--sa11y-panel-bg-splitter);border-radius:5px;margin-top:15px;padding:10px}.panel-alert-preview ul{margin:0;margin-block-end:0;margin-block-start:0;padding:0;position:relative}.panel-alert-preview li{display:list-item;margin:5px 10px 0 20px;padding-bottom:5px}.element-preview{background-color:var(--sa11y-element-preview);border-radius:3.2px;margin-bottom:10px;overflow-wrap:break-word;padding:5px}button[data-sa11y-dismiss]{background:var(--sa11y-panel-bg-secondary);border:2px solid var(--sa11y-button-outline);border-radius:5px;color:var(--sa11y-panel-primary);cursor:pointer;display:block;margin:10px 5px 5px 0;margin-inline-end:15px;padding:4px 8px}button[data-sa11y-dismiss]:focus,button[data-sa11y-dismiss]:hover{background:var(--sa11y-shortcut-hover)}h2{font-size:var(--sa11y-large-text);font-weight:700}h2,h3{display:block;margin-bottom:3px}h3{font-size:calc(var(--sa11y-large-text) - 1px)}h3,strong{font-weight:600}a:not(#outline-list a):not(.edit){border-bottom:0;color:var(--sa11y-hyperlink);cursor:pointer;font-weight:500;text-decoration:underline}a:focus,a:hover{text-decoration:none!important}hr{background:var(--sa11y-panel-bg-splitter);border:none;height:1px;margin:10px 0;opacity:1;padding:0}#dismiss-button,#skip-button{background:var(--sa11y-panel-bg-secondary);border:1px solid var(--sa11y-button-outline);border-radius:50px;cursor:pointer;display:none;height:36px;margin-inline-end:8px;margin-inline-start:2px;overflow:visible;position:relative;text-align:center;transition:all .1s ease-in-out;width:36px}#dismiss-button.active,#skip-button.active{display:block}#dismiss-button:disabled,#skip-button:disabled{background:none;border:0;box-shadow:none;cursor:default}#dismiss-button:before,#skip-button:before{content:"";inset:-5px;position:absolute}#dismiss-button:focus:not(:disabled),#dismiss-button:hover:not(:disabled),#skip-button:focus:not(:disabled),#skip-button:hover:not(:disabled){background-color:var(--sa11y-shortcut-hover)}#panel.left #dismiss-button,#panel.left #skip-button,#panel.top-left #dismiss-button,#panel.top-left #skip-button{margin-inline-end:2px;margin-inline-start:8px}.dismiss-icon{background:var(--sa11y-setting-switch-bg-off);display:inline-block;height:24px;margin-bottom:-4px;-webkit-mask:var(--sa11y-dismiss-icon) center no-repeat;mask:var(--sa11y-dismiss-icon) center no-repeat;width:24px}.dismiss-group{display:flex}@media screen and (forced-colors:active){.dismiss-icon{filter:invert(1)}}#panel-content{align-items:center;color:var(--sa11y-panel-primary);display:flex;padding:6px}#panel-content.errors .panel-icon,#panel-content.good .panel-icon,#panel-content.warnings .panel-icon{height:26px;margin:0 auto;width:26px}#panel-content.errors .panel-icon{background:var(--sa11y-panel-error);margin-top:-2px;-webkit-mask:var(--sa11y-error-svg) center no-repeat;mask:var(--sa11y-error-svg) center no-repeat}#panel-content.good .panel-icon{background:var(--sa11y-good);-webkit-mask:var(--sa11y-good-svg) center no-repeat;mask:var(--sa11y-good-svg) center no-repeat}#panel-content.warnings .panel-icon{background:var(--sa11y-yellow-text);-webkit-mask:var(--sa11y-warning-svg) center no-repeat;mask:var(--sa11y-warning-svg) center no-repeat;transform:scaleX(var(--sa11y-icon-direction))}@media screen and (forced-colors:active){#panel-content.errors .panel-icon,#panel-content.good .panel-icon,#panel-content.warnings .panel-icon{filter:invert(1)}}#panel.left #panel-content,#panel.top-left #panel-content{flex-direction:row-reverse}#status{font-size:var(--sa11y-large-text)}#status,.panel-count{color:var(--sa11y-panel-primary)}.panel-count{background-color:var(--sa11y-panel-badge);border-radius:4px;font-size:15px;font-weight:400;margin-left:3px;margin-right:3px;padding:2px 4px}#images-panel,#outline-panel,#page-issues,#settings-panel{color:var(--sa11y-panel-primary);display:none;opacity:0}#images-panel.active,#outline-panel.active,#page-issues.active,#settings-panel.active{display:block;opacity:1}.panel-header{display:flex;justify-content:space-between;padding:10px 15px 0;text-align:start}#about-content{padding-top:5px}#about-content p{display:block;margin-block-end:1em}#images-content,#outline-content,#page-issues-content,#settings-content{border-bottom:1px solid var(--sa11y-panel-bg-splitter);padding:0 15px 10px}.top-left #images-content,.top-left #outline-content,.top-left #page-issues-content,.top-left #settings-content,.top-right #images-content,.top-right #outline-content,.top-right #page-issues-content,.top-right #settings-content{border:0}#page-issues-content{max-height:160px;overflow-y:auto}#settings-content{max-height:400px;overflow-y:auto}#images-content,#outline-content{max-height:250px;overflow-y:auto}#outline-panel .outline-list-item.sa11y-red-text,#settings-panel .sa11y-red-text{color:var(--sa11y-red-text)}#outline-list{display:block;margin:0;padding:0}#outline-list a{cursor:pointer;display:block;text-decoration:none}#outline-list li{display:block;list-style-type:none;margin-bottom:3px;margin-top:0;padding:0}#outline-list li:first-child{margin-top:5px}#outline-list li a:focus,#outline-list li a:hover{background:var(--sa11y-panel-outline-hover);border-radius:5px;box-shadow:0 0 0 2px var(--sa11y-panel-outline-hover);display:block}#outline-list .outline-2{margin-inline-start:15px}#outline-list .outline-3{margin-inline-start:30px}#outline-list .outline-4{margin-inline-start:45px}#outline-list .outline-5{margin-inline-start:60px}#outline-list .outline-6{margin-inline-start:75px}#images-list{display:block;margin:0;padding:0}#images-list li{border-bottom:1px solid var(--sa11y-panel-bg-splitter);display:block;list-style-type:none;margin:15px 0;overflow:hidden;width:100%}#images-list li:first-child{margin-top:5px}#images-list li:last-child{border:none;margin-bottom:0}#images-list li .alt{padding:2px 5px 10px}#images-list li .edit-block{display:flex;justify-content:flex-end;margin-bottom:15px}#images-list li .edit{background:var(--sa11y-panel-bg-secondary);border:2px solid var(--sa11y-button-outline);border-radius:5px;color:var(--sa11y-panel-primary);cursor:pointer;margin-inline-end:5px;padding:4px 7px;position:relative;text-decoration:none}#images-list li .edit:focus,#images-list li .edit:hover{background-color:var(--sa11y-shortcut-hover)}#images-list li .edit:before{content:"";inset:-10px;position:absolute}#images-list li img{border-radius:5px;float:inline-start;margin-block-end:15px;margin-inline-end:10px;max-width:110px}#images-list li.warning .alt{color:var(--sa11y-yellow-text)}#images-list li.warning img{background-color:var(--sa11y-yellow-text);border:5px solid var(--sa11y-yellow-text)}#images-list li.error .alt{color:var(--sa11y-error)}#images-list li.error img{background-color:var(--sa11y-error);border:5px solid var(--sa11y-error)}#images-list li.good img{background-color:var(--sa11y-panel-badge);border:5px solid var(--sa11y-panel-badge)}@media screen and (forced-colors:active){#images-list li img{background-color:ButtonBorder!important}}.move-panel-icon{height:18px;-webkit-mask:var(--sa11y-move-panel-icon);mask:var(--sa11y-move-panel-icon);-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;width:18px}.info-icon,.move-panel-icon{background:var(--sa11y-setting-switch-bg-off);display:inline-block;vertical-align:middle}.info-icon{height:20px;margin-top:-2px;-webkit-mask:var(--sa11y-info-icon);mask:var(--sa11y-info-icon);-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;width:20px}.sun-icon{-webkit-mask:var(--sa11y-sun-icon);mask:var(--sa11y-sun-icon);-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}.moon-icon,.sun-icon{background:var(--sa11y-setting-switch-bg-off);display:inline-block;height:18px;vertical-align:middle;width:18px}.moon-icon{-webkit-mask:var(--sa11y-moon-icon);mask:var(--sa11y-moon-icon);-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}.error-icon{background:var(--sa11y-error-text);margin-bottom:-4px;-webkit-mask:var(--sa11y-error-svg);mask:var(--sa11y-error-svg);-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}.error-icon,.hidden-icon{display:inline-block;height:16px;width:16px}.hidden-icon{margin-bottom:-3px;-webkit-mask:var(--sa11y-hidden-icon-svg);mask:var(--sa11y-hidden-icon-svg);-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}.hidden-icon,.link-icon{background:var(--sa11y-panel-primary)}.link-icon{display:inline-block;height:16px;margin-bottom:-3.5px;-webkit-mask:var(--sa11y-link-icon-svg);mask:var(--sa11y-link-icon-svg);-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;width:16px}.error-badge .hidden-icon,.error-badge .link-icon{background:var(--sa11y-error-text)}.warning-badge .hidden-icon,.warning-badge .link-icon{background:var(--sa11y-panel-bg)}.error .link-icon{background:var(--sa11y-error-text)}.warning .link-icon{background:var(--sa11y-panel-bg)}@media screen and (forced-colors:active){.error-icon,.hidden-icon,.info-icon,.link-icon,.moon-icon,.move-panel-icon,.sun-icon{filter:invert(1)}}#panel-controls{border-bottom:1px solid var(--sa11y-panel-bg-splitter);border-radius:0 0 4px 4px;display:flex;overflow:hidden}#panel-controls button{background:var(--sa11y-panel-bg-secondary);background-color:var(--sa11y-panel-bg-secondary);border-inline-end:1px solid var(--sa11y-panel-bg-splitter);border-top:1px solid var(--sa11y-panel-bg-splitter);color:var(--sa11y-panel-secondary);cursor:pointer;display:block;font-size:var(--sa11y-normal-text);font-weight:400;height:30px;line-height:0;margin:0;opacity:1;outline:0;padding:0;position:relative;text-align:center;transition:background .2s;width:100%}#panel-controls button.active,#panel-controls button:hover{background-color:var(--sa11y-shortcut-hover)}#panel-controls button.active{font-weight:600}#export-results-mode,label{color:var(--sa11y-panel-primary);display:inline-block;font-weight:400;margin:0;width:100%}label:not(#colour-filter-mode,#export-results-mode){cursor:pointer}#panel.right #panel-controls:has(#images-toggle):after{content:"";width:80px}#panel.left #panel-controls:has(#images-toggle):before{content:"";width:50px}#settings-panel .appearance-group,#settings-panel .export-results-group{display:flex;margin:5px 0}#settings-panel .appearance-group button,#settings-panel .export-results-group button{align-items:center;border:2px solid var(--sa11y-setting-switch-bg-off);border-radius:5px;cursor:pointer;display:flex;justify-content:center;margin:2px 0;margin-inline-end:4px;margin-inline-start:8px;min-height:34px;min-width:44px;position:relative;text-align:center;white-space:nowrap}#settings-panel .appearance-group button:focus,#settings-panel .appearance-group button:focus-within,#settings-panel .appearance-group button:hover,#settings-panel .export-results-group button:focus,#settings-panel .export-results-group button:focus-within,#settings-panel .export-results-group button:hover{background:var(--sa11y-shortcut-hover)}#settings-panel .appearance-group button:before,#settings-panel .export-results-group button:before{content:"";inset:-7px;position:absolute}#settings-panel .appearance-group button .text,#settings-panel .export-results-group button .text{color:var(--sa11y-setting-switch-bg-off);font-weight:600;padding:0 6px}#settings-panel .switch{background:none;border:0;border-radius:5px;color:var(--sa11y-setting-switch-bg-off);cursor:pointer;font-size:var(--sa11y-normal-text);font-weight:600;height:44px;margin:0;padding:7px 10px;position:relative;text-align:end;width:105px}#settings-panel .switch[aria-pressed=false]:after,#settings-panel .switch[aria-pressed=true]:after{content:"";display:inline-block;height:27px;margin:0 4px 4px;vertical-align:middle;width:27px}#settings-panel .switch[aria-pressed=true]:after{background:var(--sa11y-setting-switch-bg-on);-webkit-mask:var(--sa11y-setting-switch-on-svg) center no-repeat;mask:var(--sa11y-setting-switch-on-svg) center no-repeat}#settings-panel .switch[aria-pressed=false]:after{background:var(--sa11y-setting-switch-bg-off);-webkit-mask:var(--sa11y-setting-switch-off-svg) center no-repeat;mask:var(--sa11y-setting-switch-off-svg) center no-repeat}@media screen and (forced-colors:active){#settings-panel .switch[aria-pressed=false]:after,#settings-panel .switch[aria-pressed=true]:after{filter:invert(1)}}#settings-panel #settings-options li{align-items:center;border-bottom:1px solid var(--sa11y-panel-bg-splitter);display:flex;justify-content:space-between;list-style-type:none;padding:1px 0}#settings-panel #settings-options li:last-child{border:none}#page-issues{align-items:center;color:var(--sa11y-panel-primary)}#page-issues-list{display:block;margin-top:4px}#page-issues-list li{display:block;margin:0 0 10px}.top-left.has-page-issues #page-issues,.top-right.has-page-issues #page-issues{border-top:1px solid var(--sa11y-panel-bg-splitter);margin-top:-1px}#panel-colour-filters{align-items:center;color:var(--sa11y-panel-primary);display:none;font-family:var(--sa11y-font-face);font-size:var(--sa11y-normal-text);font-weight:400;line-height:22px}#panel-colour-filters.active{display:flex}#panel-colour-filters p{padding:6px 20px 6px 6px;width:100%}#panel-colour-filters[data-colour=protanopia]{border-bottom:6px solid transparent;-o-border-image:linear-gradient(94deg,#786719 11%,#e0c600 36%,#e0c600 47%,#0059e3 75%,#0042aa 91%);border-image:linear-gradient(94deg,#786719 11%,#e0c600 36%,#e0c600 47%,#0059e3 75%,#0042aa 91%);border-image-slice:1}#panel-colour-filters[data-colour=deuteranopia]{border-bottom:6px solid transparent;-o-border-image:linear-gradient(270deg,#567fdb,#a4a28d 48%,#c3ad14 69%,#a79505);border-image:linear-gradient(270deg,#567fdb,#a4a28d 48%,#c3ad14 69%,#a79505);border-image-slice:1}#panel-colour-filters[data-colour=tritanopia]{border-bottom:6px solid transparent;-o-border-image:linear-gradient(270deg,#b1506f,#0696c1 35%,#f3a9ba 70%,#d91c5d 87%,#fe015c);border-image:linear-gradient(270deg,#b1506f,#0696c1 35%,#f3a9ba 70%,#d91c5d 87%,#fe015c);border-image-slice:1}#panel-colour-filters[data-colour=monochromacy]{border-bottom:6px solid transparent;-o-border-image:linear-gradient(270deg,#000,#a7a7a7 50%,#000);border-image:linear-gradient(270deg,#000,#a7a7a7 50%,#000);border-image-slice:1}#panel-colour-filters[data-colour=protanopia] .panel-icon{background:var(--sa11y-panel-error)}#panel-colour-filters[data-colour=deuteranopia] .panel-icon{background:var(--sa11y-good-hover)}#panel-colour-filters[data-colour=tritanopia] .panel-icon{background:var(--sa11y-blue)}#panel-colour-filters[data-colour=monochromacy] .panel-icon{background:linear-gradient(90deg,#38a459 20%,red 50%,#0077c8 80%)}#panel-colour-filters .panel-icon{height:30px;margin-inline-end:5px;margin-inline-start:10px;-webkit-mask:var(--sa11y-low-vision-icon) center no-repeat;mask:var(--sa11y-low-vision-icon) center no-repeat;width:30px}@media screen and (forced-colors:active){#panel-colour-filters .panel-icon{forced-color-adjust:none}}.select-dropdown{align-items:center;display:flex;position:relative}.select-dropdown:after{border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid var(--sa11y-setting-switch-bg-off);content:" ";inset-inline-end:14px;position:absolute}#colour-filter-select{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:var(--sa11y-panel-bg);border:2px solid var(--sa11y-setting-switch-bg-off);border-radius:5px;color:var(--sa11y-setting-switch-bg-off);cursor:pointer;font-size:var(--sa11y-normal-text);font-weight:600;height:30px;margin-inline-end:4px;padding-inline-end:25px;padding-inline-start:5px;position:relative;text-align:end;vertical-align:middle}#colour-filter-select:focus,#colour-filter-select:hover{background:var(--sa11y-shortcut-hover)}#colour-filter-select.active{box-shadow:0 0 0 2px var(--sa11y-setting-switch-bg-on)}#colour-filter-item label,#colour-filter-item select{margin-bottom:9px;margin-top:10px}#readability-panel{display:none;opacity:0}#readability-panel.active{display:block;opacity:1}.top-left #readability-content,.top-right #readability-content{border-top:1px solid var(--sa11y-panel-bg-splitter)}.left #readability-content,.right #readability-content{border-bottom:1px solid var(--sa11y-panel-bg-splitter)}#readability-content{color:var(--sa11y-panel-primary);padding:10px 15px;width:100%}#readability-details{list-style-type:none;margin:0;padding:0;white-space:normal}#readability-details li{display:inline-block;list-style-type:none;margin:0;padding-inline-end:10px}.readability-score{background-color:var(--sa11y-panel-badge);border-radius:4px;color:var(--sa11y-panel-primary);margin-inline-start:5px;padding:2px 5px}#readability-info{margin-inline-start:10px}#skip-to-page-issues{display:none}#panel.has-page-issues #skip-to-page-issues{clip:rect(0,0,0,0);background:var(--sa11y-panel-bg);border:0;border-radius:5px;display:block;font-weight:600;height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px}#panel.has-page-issues #skip-to-page-issues:focus{clip:auto;height:auto;margin:0;overflow:visible;padding:7px 10px;white-space:normal;width:auto;z-index:1}.hide-settings-border{border-bottom:0!important;padding:0 15px!important}.hide-settings-border li:not(#colour-filter-item){display:none!important}.hide-settings-border #about-content{display:none}.hide-settings-border.scrollable:before{all:unset}#contrast-tools{display:none}::-webkit-scrollbar{height:6px;width:7px}::-webkit-scrollbar-thumb{background-color:var(--sa11y-button-outline);border-radius:6px}*{scrollbar-color:var(--sa11y-button-outline);scrollbar-width:thin}.scrollable:before{animation:fade 1s ease-in-out;background:linear-gradient(180deg,transparent 70%,var(--sa11y-panel-scrollable) 100%);background-position:bottom;bottom:auto;content:"";height:250px;left:0;position:absolute;right:0;top:auto;transition:opacity 1s ease-in-out;width:100%;z-index:-1}#settings-content.scrollable:before{height:400px}.top-left .scrollable:before,.top-right .scrollable:before{border-radius:5px}#page-issues-content.scrollable:before{height:160px}#panel-alert.scrollable:before{height:200px}@keyframes sa11y-toggle-gradient{0%{background-position:50% 0}50%{background-position:50% 100%}to{background-position:50% 0}}@keyframes fade{0%{opacity:0}to{opacity:1}}@media (prefers-reduced-motion:reduce){*{animation:none!important;transform:none!important;transition:none!important}}#panel{width:400px}#container:lang(en) #panel{width:315px}#container:lang(da) #panel,#container:lang(de) #panel,#container:lang(nb) #panel,#container:lang(pl) #panel,#container:lang(sv) #panel,#container:lang(zh) #panel{width:365px}#container:lang(bg) .switch:not(#export-results-item *),#container:lang(es) .switch:not(#export-results-item *){width:225px!important}#container:not(:lang(en)):not(:lang(de)) .switch{width:205px}'+z,this.shadowRoot.appendChild(e);const t="On"===_.getItem("sa11y-developer"),i="On"===_.getItem("sa11y-readability"),s=_.getItem("sa11y-theme"),a=_.getItem("sa11y-position"),r=o.Global.checkAllHideToggles,l=o.Global.developerPlugin?`\n
                                                  • \n \n \n \n
                                                  • `:"",c=o.Readability.Plugin?`\n
                                                  • \n \n \n \n
                                                  • `:"",d=o.Global.colourFilterPlugin?`\n
                                                  • \n \n
                                                    \n \n
                                                    \n
                                                  • `:"",p=o.Global.colourFilterPlugin?`\n
                                                    \n \n

                                                    ${n._("COLOUR_FILTER_MESSAGE")}

                                                    \n
                                                    `:"",u=o.Global.exportResultsPlugin?`\n
                                                  • \n ${n._("EXPORT_RESULTS")}\n
                                                    \n \n \n
                                                    \n
                                                  • `:"",h=o.Global.aboutContent?`\n
                                                    ${o.Global.aboutContent}
                                                    `:"",g=`\n `,m=`\n
                                                    \n
                                                    \n

                                                    ${n._("PAGE_ISSUES")}

                                                    \n
                                                    \n
                                                    \n
                                                      \n
                                                      \n
                                                      `,f=`\n
                                                      \n
                                                      \n

                                                      ${n._("OUTLINE")}

                                                      \n
                                                      \n
                                                      \n
                                                        \n
                                                        \n
                                                        \n
                                                        \n

                                                        ${n._("READABILITY")}

                                                        \n

                                                        \n
                                                          \n
                                                          \n
                                                          \n
                                                          `,b=o.Global.showImageOutline?`\n
                                                          \n
                                                          \n

                                                          ${n._("IMAGES")}

                                                          \n
                                                          \n
                                                          \n
                                                            \n
                                                            \n
                                                            `:"",y="left"===a||"top-left"===a?"true":"false",A=o.Global.showMovePanelToggle?``:"",E=`\n
                                                            \n
                                                            \n

                                                            ${n._("SETTINGS")}

                                                            \n
                                                            \n
                                                            \n
                                                              \n ${l}\n ${c}\n
                                                            • \n ${n._("APPEARANCE")}\n
                                                              \n \n ${A}\n
                                                              \n
                                                            • \n ${u}\n ${d}\n
                                                            \n ${h}\n
                                                            \n
                                                            `,v=`\n
                                                            \n
                                                            \n
                                                            \n \n

                                                            ${n._("ALERT_TEXT")}

                                                            \n
                                                            \n

                                                            \n
                                                            \n
                                                            \n
                                                            `,L=`\n
                                                            \n \n \n \n
                                                            \n

                                                            ${n._("PANEL_HEADING")}

                                                            \n

                                                            \n
                                                            \n
                                                            `,I=``,T=`\n
                                                            \n \n ${o.Global.showImageOutline?I:""}\n \n
                                                            `,x=document.createElement("div");x.setAttribute("id","container"),x.setAttribute("role","region"),x.setAttribute("data-sa11y-version",Y),x.setAttribute("lang",n._("LANG_CODE")),x.setAttribute("aria-label",n._("CONTAINER_LABEL")),x.setAttribute("dir",o.Global.langDirection),x.innerHTML="top-left"===a||"top-right"===a?`\n ${g}\n
                                                            \n ${L}\n ${p}\n ${T}\n ${f}\n ${b}\n ${E}\n ${v}\n ${m}\n
                                                            `:`\n ${g}\n
                                                            \n ${m}\n ${f}\n ${b}\n ${E}\n ${v}\n ${p}\n ${L}\n ${T}\n
                                                            `,this.shadowRoot.appendChild(x),o.initializePanelSelectors()}}const j=()=>{o.Panel.outlineToggle.classList.add("active"),o.Panel.outline.classList.add("active"),o.Panel.outlineToggle.setAttribute("aria-expanded","true"),_.setItem("sa11y-outline","Opened"),S(o.Panel.outlineList,o.Panel.outlineContent);i("sa11y-heading-label","root").forEach(e=>e.hidden=!1);const e=new CustomEvent("sa11y-build-heading-outline");document.dispatchEvent(e)},q=()=>{o.Panel.outline.classList.remove("active"),o.Panel.outlineToggle.classList.remove("active"),o.Panel.outlineToggle.setAttribute("aria-expanded","false"),_.setItem("sa11y-outline","Closed");i("sa11y-heading-label","root").forEach(e=>e.hidden=!0)},X=()=>{o.Panel.imagesToggle.classList.add("active"),o.Panel.images.classList.add("active"),o.Panel.imagesToggle.setAttribute("aria-expanded","true"),_.setItem("sa11y-images","Opened"),S(o.Panel.imagesList,o.Panel.imagesContent);const e=new CustomEvent("sa11y-build-image-outline");document.dispatchEvent(e)},Z=()=>{o.Global.showImageOutline&&(o.Panel.imagesToggle.classList.remove("active"),o.Panel.images.classList.remove("active"),o.Panel.imagesToggle.setAttribute("aria-expanded","false"),_.setItem("sa11y-images","Closed"))},J=()=>{o.Panel.settingsToggle.classList.add("active"),o.Panel.settings.classList.add("active"),o.Panel.settingsToggle.setAttribute("aria-expanded","true"),_.setItem("sa11y-settings","Opened"),S(o.Panel.settingsContent,o.Panel.settingsContent,n._("SETTINGS"))},ee=()=>{o.Panel.settings.classList.remove("active"),o.Panel.settingsToggle.classList.remove("active"),o.Panel.settingsToggle.setAttribute("aria-expanded","false"),_.setItem("sa11y-settings","Closed")};function te(e,t,s){const a=()=>{const r=[];let l;if(e.map(e=>t.find(t=>e.key===t.dismiss&&e.href===window.location.pathname)).filter(Boolean).forEach(e=>Object.assign(e,{dismissedHeading:!0})),s.showTitleInPageOutline){const e=document.querySelector("head title");if(e&&0!==e.textContent.trim().length){const t=b(e);l=`
                                                          • ${n._("TITLE")} ${h(t)}
                                                          • `}else l=`
                                                          • ${n._("TITLE")}
                                                            ${n._("MISSING")}
                                                          • `;r.push(l)}return t.forEach(e=>{const t=e.element,o=e.headingLevel,i=e.text,a=e.index,l=e.type,c=e.hidden,d=e.visibleParent,p=e.dismissedHeading,{isWithinRoot:u}=e;if(!P.Found.OutlineIgnore.includes(t)){const e=!0===c?'Hidden':"",t=!0===c?'class="hidden-h"':"",d=!0===s.showHinPageOutline||1===s.showHinPageOutline?"H":"";let h;"error"===l&&!0===u?(h=`\n
                                                          • \n \n \n \n ${n._("ERROR")} ${d+o}\n ${i}\n \n
                                                          • `,r.push(h)):"warning"!==l||p||!0!==u?(h=`\n
                                                          • \n \n ${e} ${d+o}\n ${i}\n \n
                                                          • `,r.push(h)):(h=`\n
                                                          • \n \n \n \n ${n._("WARNING")} ${d+o}\n ${i}\n \n
                                                          • `,r.push(h))}const h=document.createElement("sa11y-heading-label"),g=document.createElement("sa11y-heading-anchor");if(h.hidden=!0,null!==d){t.insertAdjacentElement("beforeend",h);const e=d.previousElementSibling;g.setAttribute("id",`sa11y-h${a}`),e?(e.insertAdjacentElement("beforebegin",g),e.setAttribute("data-sa11y-parent",`h${a}`)):(d.parentNode.insertAdjacentElement("beforebegin",g),d.parentNode.setAttribute("data-sa11y-parent",`h${a}`))}else t.insertAdjacentElement("beforeend",h),h.insertAdjacentElement("beforebegin",g),g.setAttribute("id",`sa11y-h${a}`);const m=document.createElement("span");m.classList.add("heading-label"),m.innerHTML=`H${o}`,h.shadowRoot.appendChild(m),"Opened"===_.getItem("sa11y-outline")&&(h.hidden=!1)}),o.Panel.outlineList.innerHTML=0===t.length?`${l||""}
                                                          • ${n._("PANEL_NO_HEADINGS")}
                                                          • `:r.join(" "),setTimeout(()=>{const e=document.querySelector("sa11y-control-panel").shadowRoot,t=Array.from(e.querySelectorAll("#outline-list a"));t.forEach((t,s)=>{const a=e.getElementById(`sa11y-link-${s}`),r=i(`#sa11y-h${s}, [data-sa11y-parent="h${s}"]`,"document",o.Exclusions.Container),l=e=>{("keyup"===e.type&&"Enter"===e.code||"click"===e.type)&&(r.forEach(e=>{(e=>{L(e.parentElement),e.scrollIntoView({behavior:`${o.Global.scrollBehaviour}`,block:"center"})})(e)}),a.classList.contains("hidden-h")?x(`${n._("HEADING_NOT_VISIBLE")}`):o.Panel.alert.classList.contains("active")&&T()),e.preventDefault()};a?.addEventListener("click",l,!1),a?.addEventListener("keyup",l,!1)});let s=0;const a=e=>{if(!["ArrowUp","ArrowDown","Space"].includes(e.code))return;if("Space"===e.code)return void t[s].click();let n;t[s].setAttribute("tabindex",-1),"ArrowDown"===e.code?(n=s+1,s===t.length-1&&(n=0)):"ArrowUp"===e.code&&(n=s-1,0===s&&(n=t.length-1)),t[n].setAttribute("tabindex",0),t[n].focus(),s=n,e.preventDefault()};o.Panel.outlineList.addEventListener("focus",()=>{t.length>0&&(o.Panel.outlineList.setAttribute("tabindex",-1),t[s].setAttribute("tabindex",0),t[s].focus()),o.Panel.outlineList.addEventListener("keydown",a)}),o.Panel.outlineList.addEventListener("blur",()=>{o.Panel.outlineList.removeEventListener("keydown",a)})},0),document.removeEventListener("sa11y-build-heading-outline",a),e};"Opened"===_.getItem("sa11y-outline")&&a(),document.addEventListener("sa11y-build-heading-outline",a)}const ne=e=>{const{src:t}=e.element,i=o.Global.ignoreEditImageURL.some(e=>t.includes(e)),s=o.Global.ignoreEditImageClass.some(t=>e.element.classList.contains(t));if(i||s)return"";const a=o.Global.relativePathImageSRC||window.location.host,r=t.split(a)[1]||"",l=o.Global.relativePathImageID;let c;l.length&&e.element.classList.length&&e.element.classList.forEach(e=>{if(e.startsWith(l)){const[t]=e.match(/\d+/)||[];c=t}});const d=a&&l.length?o.Global.editImageURLofCMS+c:o.Global.editImageURLofCMS+r;return(l.length&&void 0!==c||!l)&&((p=t).includes(window.location.host)||p.startsWith(a))?``:"";var p};var oe="top",ie="bottom",se="right",ae="left",re="auto",le=[oe,ie,se,ae],ce="start",de="end",pe="viewport",ue="popper",he=le.reduce(function(e,t){return e.concat([t+"-"+ce,t+"-"+de])},[]),ge=[].concat(le,[re]).reduce(function(e,t){return e.concat([t,t+"-"+ce,t+"-"+de])},[]),me=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function fe(e){return e?(e.nodeName||"").toLowerCase():null}function be(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function ye(e){return e instanceof be(e).Element||e instanceof Element}function Ae(e){return e instanceof be(e).HTMLElement||e instanceof HTMLElement}function Ee(e){return"undefined"!=typeof ShadowRoot&&(e instanceof be(e).ShadowRoot||e instanceof ShadowRoot)}var ve={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach(function(e){var n=t.styles[e]||{},o=t.attributes[e]||{},i=t.elements[e];Ae(i)&&fe(i)&&(Object.assign(i.style,n),Object.keys(o).forEach(function(e){var t=o[e];!1===t?i.removeAttribute(e):i.setAttribute(e,!0===t?"":t)}))})},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(e){var o=t.elements[e],i=t.attributes[e]||{},s=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce(function(e,t){return e[t]="",e},{});Ae(o)&&fe(o)&&(Object.assign(o.style,s),Object.keys(i).forEach(function(e){o.removeAttribute(e)}))})}},requires:["computeStyles"]};function _e(e){return e.split("-")[0]}var Le=Math.max,Ie=Math.min,Te=Math.round;function xe(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function ke(){return!/^((?!chrome|android).)*safari/i.test(xe())}function Ne(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var o=e.getBoundingClientRect(),i=1,s=1;t&&Ae(e)&&(i=e.offsetWidth>0&&Te(o.width)/e.offsetWidth||1,s=e.offsetHeight>0&&Te(o.height)/e.offsetHeight||1);var a=(ye(e)?be(e):window).visualViewport,r=!ke()&&n,l=(o.left+(r&&a?a.offsetLeft:0))/i,c=(o.top+(r&&a?a.offsetTop:0))/s,d=o.width/i,p=o.height/s;return{width:d,height:p,top:c,right:l+d,bottom:c+p,left:l,x:l,y:c}}function Se(e){var t=Ne(e),n=e.offsetWidth,o=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-o)<=1&&(o=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:o}}function we(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Ee(n)){var o=t;do{if(o&&e.isSameNode(o))return!0;o=o.parentNode||o.host}while(o)}return!1}function Ce(e){return be(e).getComputedStyle(e)}function Oe(e){return["table","td","th"].indexOf(fe(e))>=0}function Pe(e){return((ye(e)?e.ownerDocument:e.document)||window.document).documentElement}function Re(e){return"html"===fe(e)?e:e.assignedSlot||e.parentNode||(Ee(e)?e.host:null)||Pe(e)}function De(e){return Ae(e)&&"fixed"!==Ce(e).position?e.offsetParent:null}function Me(e){for(var t=be(e),n=De(e);n&&Oe(n)&&"static"===Ce(n).position;)n=De(n);return n&&("html"===fe(n)||"body"===fe(n)&&"static"===Ce(n).position)?t:n||function(e){var t=/firefox/i.test(xe());if(/Trident/i.test(xe())&&Ae(e)&&"fixed"===Ce(e).position)return null;var n=Re(e);for(Ee(n)&&(n=n.host);Ae(n)&&["html","body"].indexOf(fe(n))<0;){var o=Ce(n);if("none"!==o.transform||"none"!==o.perspective||"paint"===o.contain||-1!==["transform","perspective"].indexOf(o.willChange)||t&&"filter"===o.willChange||t&&o.filter&&"none"!==o.filter)return n;n=n.parentNode}return null}(e)||t}function Be(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function $e(e,t,n){return Le(e,Ie(t,n))}function Ge(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function Ue(e,t){return t.reduce(function(t,n){return t[n]=e,t},{})}var He={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,o=e.name,i=e.options,s=n.elements.arrow,a=n.modifiersData.popperOffsets,r=_e(n.placement),l=Be(r),c=[ae,se].indexOf(r)>=0?"height":"width";if(s&&a){var d=function(e,t){return Ge("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:Ue(e,le))}(i.padding,n),p=Se(s),u="y"===l?oe:ae,h="y"===l?ie:se,g=n.rects.reference[c]+n.rects.reference[l]-a[l]-n.rects.popper[c],m=a[l]-n.rects.reference[l],f=Me(s),b=f?"y"===l?f.clientHeight||0:f.clientWidth||0:0,y=g/2-m/2,A=d[u],E=b-p[c]-d[h],v=b/2-p[c]/2+y,_=$e(A,v,E),L=l;n.modifiersData[o]=((t={})[L]=_,t.centerOffset=_-v,t)}},effect:function(e){var t=e.state,n=e.options.element,o=void 0===n?"[data-popper-arrow]":n;null!=o&&("string"!=typeof o||(o=t.elements.popper.querySelector(o)))&&we(t.elements.popper,o)&&(t.elements.arrow=o)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Fe(e){return e.split("-")[1]}var Ke={top:"auto",right:"auto",bottom:"auto",left:"auto"};function We(e){var t,n=e.popper,o=e.popperRect,i=e.placement,s=e.variation,a=e.offsets,r=e.position,l=e.gpuAcceleration,c=e.adaptive,d=e.roundOffsets,p=e.isFixed,u=a.x,h=void 0===u?0:u,g=a.y,m=void 0===g?0:g,f="function"==typeof d?d({x:h,y:m}):{x:h,y:m};h=f.x,m=f.y;var b=a.hasOwnProperty("x"),y=a.hasOwnProperty("y"),A=ae,E=oe,v=window;if(c){var _=Me(n),L="clientHeight",I="clientWidth";if(_===be(n)&&"static"!==Ce(_=Pe(n)).position&&"absolute"===r&&(L="scrollHeight",I="scrollWidth"),i===oe||(i===ae||i===se)&&s===de)E=ie,m-=(p&&_===v&&v.visualViewport?v.visualViewport.height:_[L])-o.height,m*=l?1:-1;if(i===ae||(i===oe||i===ie)&&s===de)A=se,h-=(p&&_===v&&v.visualViewport?v.visualViewport.width:_[I])-o.width,h*=l?1:-1}var T,x=Object.assign({position:r},c&&Ke),k=!0===d?function(e,t){var n=e.x,o=e.y,i=t.devicePixelRatio||1;return{x:Te(n*i)/i||0,y:Te(o*i)/i||0}}({x:h,y:m},be(n)):{x:h,y:m};return h=k.x,m=k.y,l?Object.assign({},x,((T={})[E]=y?"0":"",T[A]=b?"0":"",T.transform=(v.devicePixelRatio||1)<=1?"translate("+h+"px, "+m+"px)":"translate3d("+h+"px, "+m+"px, 0)",T)):Object.assign({},x,((t={})[E]=y?m+"px":"",t[A]=b?h+"px":"",t.transform="",t))}var Ye={passive:!0};var ze={left:"right",right:"left",bottom:"top",top:"bottom"};function Qe(e){return e.replace(/left|right|bottom|top/g,function(e){return ze[e]})}var Ve={start:"end",end:"start"};function je(e){return e.replace(/start|end/g,function(e){return Ve[e]})}function qe(e){var t=be(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Xe(e){return Ne(Pe(e)).left+qe(e).scrollLeft}function Ze(e){var t=Ce(e),n=t.overflow,o=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+o)}function Je(e){return["html","body","#document"].indexOf(fe(e))>=0?e.ownerDocument.body:Ae(e)&&Ze(e)?e:Je(Re(e))}function et(e,t){var n;void 0===t&&(t=[]);var o=Je(e),i=o===(null==(n=e.ownerDocument)?void 0:n.body),s=be(o),a=i?[s].concat(s.visualViewport||[],Ze(o)?o:[]):o,r=t.concat(a);return i?r:r.concat(et(Re(a)))}function tt(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function nt(e,t,n){return t===pe?tt(function(e,t){var n=be(e),o=Pe(e),i=n.visualViewport,s=o.clientWidth,a=o.clientHeight,r=0,l=0;if(i){s=i.width,a=i.height;var c=ke();(c||!c&&"fixed"===t)&&(r=i.offsetLeft,l=i.offsetTop)}return{width:s,height:a,x:r+Xe(e),y:l}}(e,n)):ye(t)?function(e,t){var n=Ne(e,!1,"fixed"===t);return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}(t,n):tt(function(e){var t,n=Pe(e),o=qe(e),i=null==(t=e.ownerDocument)?void 0:t.body,s=Le(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),a=Le(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),r=-o.scrollLeft+Xe(e),l=-o.scrollTop;return"rtl"===Ce(i||n).direction&&(r+=Le(n.clientWidth,i?i.clientWidth:0)-s),{width:s,height:a,x:r,y:l}}(Pe(e)))}function ot(e,t,n,o){var i="clippingParents"===t?function(e){var t=et(Re(e)),n=["absolute","fixed"].indexOf(Ce(e).position)>=0&&Ae(e)?Me(e):e;return ye(n)?t.filter(function(e){return ye(e)&&we(e,n)&&"body"!==fe(e)}):[]}(e):[].concat(t),s=[].concat(i,[n]),a=s[0],r=s.reduce(function(t,n){var i=nt(e,n,o);return t.top=Le(i.top,t.top),t.right=Ie(i.right,t.right),t.bottom=Ie(i.bottom,t.bottom),t.left=Le(i.left,t.left),t},nt(e,a,o));return r.width=r.right-r.left,r.height=r.bottom-r.top,r.x=r.left,r.y=r.top,r}function it(e){var t,n=e.reference,o=e.element,i=e.placement,s=i?_e(i):null,a=i?Fe(i):null,r=n.x+n.width/2-o.width/2,l=n.y+n.height/2-o.height/2;switch(s){case oe:t={x:r,y:n.y-o.height};break;case ie:t={x:r,y:n.y+n.height};break;case se:t={x:n.x+n.width,y:l};break;case ae:t={x:n.x-o.width,y:l};break;default:t={x:n.x,y:n.y}}var c=s?Be(s):null;if(null!=c){var d="y"===c?"height":"width";switch(a){case ce:t[c]=t[c]-(n[d]/2-o[d]/2);break;case de:t[c]=t[c]+(n[d]/2-o[d]/2)}}return t}function st(e,t){void 0===t&&(t={});var n=t,o=n.placement,i=void 0===o?e.placement:o,s=n.strategy,a=void 0===s?e.strategy:s,r=n.boundary,l=void 0===r?"clippingParents":r,c=n.rootBoundary,d=void 0===c?pe:c,p=n.elementContext,u=void 0===p?ue:p,h=n.altBoundary,g=void 0!==h&&h,m=n.padding,f=void 0===m?0:m,b=Ge("number"!=typeof f?f:Ue(f,le)),y=u===ue?"reference":ue,A=e.rects.popper,E=e.elements[g?y:u],v=ot(ye(E)?E:E.contextElement||Pe(e.elements.popper),l,d,a),_=Ne(e.elements.reference),L=it({reference:_,element:A,strategy:"absolute",placement:i}),I=tt(Object.assign({},A,L)),T=u===ue?I:_,x={top:v.top-T.top+b.top,bottom:T.bottom-v.bottom+b.bottom,left:v.left-T.left+b.left,right:T.right-v.right+b.right},k=e.modifiersData.offset;if(u===ue&&k){var N=k[i];Object.keys(x).forEach(function(e){var t=[se,ie].indexOf(e)>=0?1:-1,n=[oe,ie].indexOf(e)>=0?"y":"x";x[e]+=N[n]*t})}return x}function at(e,t){void 0===t&&(t={});var n=t,o=n.placement,i=n.boundary,s=n.rootBoundary,a=n.padding,r=n.flipVariations,l=n.allowedAutoPlacements,c=void 0===l?ge:l,d=Fe(o),p=d?r?he:he.filter(function(e){return Fe(e)===d}):le,u=p.filter(function(e){return c.indexOf(e)>=0});0===u.length&&(u=p);var h=u.reduce(function(t,n){return t[n]=st(e,{placement:n,boundary:i,rootBoundary:s,padding:a})[_e(n)],t},{});return Object.keys(h).sort(function(e,t){return h[e]-h[t]})}var rt={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,o=e.name;if(!t.modifiersData[o]._skip){for(var i=n.mainAxis,s=void 0===i||i,a=n.altAxis,r=void 0===a||a,l=n.fallbackPlacements,c=n.padding,d=n.boundary,p=n.rootBoundary,u=n.altBoundary,h=n.flipVariations,g=void 0===h||h,m=n.allowedAutoPlacements,f=t.options.placement,b=_e(f),y=l||(b===f||!g?[Qe(f)]:function(e){if(_e(e)===re)return[];var t=Qe(e);return[je(e),t,je(t)]}(f)),A=[f].concat(y).reduce(function(e,n){return e.concat(_e(n)===re?at(t,{placement:n,boundary:d,rootBoundary:p,padding:c,flipVariations:g,allowedAutoPlacements:m}):n)},[]),E=t.rects.reference,v=t.rects.popper,_=new Map,L=!0,I=A[0],T=0;T=0,w=S?"width":"height",C=st(t,{placement:x,boundary:d,rootBoundary:p,altBoundary:u,padding:c}),O=S?N?se:ae:N?ie:oe;E[w]>v[w]&&(O=Qe(O));var P=Qe(O),R=[];if(s&&R.push(C[k]<=0),r&&R.push(C[O]<=0,C[P]<=0),R.every(function(e){return e})){I=x,L=!1;break}_.set(x,R)}if(L)for(var D=function(e){var t=A.find(function(t){var n=_.get(t);if(n)return n.slice(0,e).every(function(e){return e})});if(t)return I=t,"break"},M=g?3:1;M>0;M--){if("break"===D(M))break}t.placement!==I&&(t.modifiersData[o]._skip=!0,t.placement=I,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function lt(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function ct(e){return[oe,se,ie,ae].some(function(t){return e[t]>=0})}var dt={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,o=e.name,i=n.offset,s=void 0===i?[0,0]:i,a=ge.reduce(function(e,n){return e[n]=function(e,t,n){var o=_e(e),i=[ae,oe].indexOf(o)>=0?-1:1,s="function"==typeof n?n(Object.assign({},t,{placement:e})):n,a=s[0],r=s[1];return a=a||0,r=(r||0)*i,[ae,se].indexOf(o)>=0?{x:r,y:a}:{x:a,y:r}}(n,t.rects,s),e},{}),r=a[t.placement],l=r.x,c=r.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[o]=a}};var pt={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,o=e.name,i=n.mainAxis,s=void 0===i||i,a=n.altAxis,r=void 0!==a&&a,l=n.boundary,c=n.rootBoundary,d=n.altBoundary,p=n.padding,u=n.tether,h=void 0===u||u,g=n.tetherOffset,m=void 0===g?0:g,f=st(t,{boundary:l,rootBoundary:c,padding:p,altBoundary:d}),b=_e(t.placement),y=Fe(t.placement),A=!y,E=Be(b),v="x"===E?"y":"x",_=t.modifiersData.popperOffsets,L=t.rects.reference,I=t.rects.popper,T="function"==typeof m?m(Object.assign({},t.rects,{placement:t.placement})):m,x="number"==typeof T?{mainAxis:T,altAxis:T}:Object.assign({mainAxis:0,altAxis:0},T),k=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,N={x:0,y:0};if(_){if(s){var S,w="y"===E?oe:ae,C="y"===E?ie:se,O="y"===E?"height":"width",P=_[E],R=P+f[w],D=P-f[C],M=h?-I[O]/2:0,B=y===ce?L[O]:I[O],$=y===ce?-I[O]:-L[O],G=t.elements.arrow,U=h&&G?Se(G):{width:0,height:0},H=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},F=H[w],K=H[C],W=$e(0,L[O],U[O]),Y=A?L[O]/2-M-W-F-x.mainAxis:B-W-F-x.mainAxis,z=A?-L[O]/2+M+W+K+x.mainAxis:$+W+K+x.mainAxis,Q=t.elements.arrow&&Me(t.elements.arrow),V=Q?"y"===E?Q.clientTop||0:Q.clientLeft||0:0,j=null!=(S=null==k?void 0:k[E])?S:0,q=P+z-j,X=$e(h?Ie(R,P+Y-j-V):R,P,h?Le(D,q):D);_[E]=X,N[E]=X-P}if(r){var Z,J="x"===E?oe:ae,ee="x"===E?ie:se,te=_[v],ne="y"===v?"height":"width",re=te+f[J],le=te-f[ee],de=-1!==[oe,ae].indexOf(b),pe=null!=(Z=null==k?void 0:k[v])?Z:0,ue=de?re:te-L[ne]-I[ne]-pe+x.altAxis,he=de?te+L[ne]+I[ne]-pe-x.altAxis:le,ge=h&&de?function(e,t,n){var o=$e(e,t,n);return o>n?n:o}(ue,te,he):$e(h?ue:re,te,h?he:le);_[v]=ge,N[v]=ge-te}t.modifiersData[o]=N}},requiresIfExists:["offset"]};function ut(e,t,n){void 0===n&&(n=!1);var o,i,s=Ae(t),a=Ae(t)&&function(e){var t=e.getBoundingClientRect(),n=Te(t.width)/e.offsetWidth||1,o=Te(t.height)/e.offsetHeight||1;return 1!==n||1!==o}(t),r=Pe(t),l=Ne(e,a,n),c={scrollLeft:0,scrollTop:0},d={x:0,y:0};return(s||!s&&!n)&&(("body"!==fe(t)||Ze(r))&&(c=(o=t)!==be(o)&&Ae(o)?{scrollLeft:(i=o).scrollLeft,scrollTop:i.scrollTop}:qe(o)),Ae(t)?((d=Ne(t,!0)).x+=t.clientLeft,d.y+=t.clientTop):r&&(d.x=Xe(r))),{x:l.left+c.scrollLeft-d.x,y:l.top+c.scrollTop-d.y,width:l.width,height:l.height}}function ht(e){var t=new Map,n=new Set,o=[];function i(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach(function(e){if(!n.has(e)){var o=t.get(e);o&&i(o)}}),o.push(e)}return e.forEach(function(e){t.set(e.name,e)}),e.forEach(function(e){n.has(e.name)||i(e)}),o}var gt={placement:"bottom",modifiers:[],strategy:"absolute"};function mt(){for(var e=arguments.length,t=new Array(e),n=0;n-1}function Tt(e,t){return"function"==typeof e?e.apply(void 0,t):e}function xt(e,t){return 0===t?e:function(o){clearTimeout(n),n=setTimeout(function(){e(o)},t)};var n}function kt(e){return[].concat(e)}function Nt(e,t){-1===e.indexOf(t)&&e.push(t)}function St(e){return[].slice.call(e)}function wt(e){return Object.keys(e).reduce(function(t,n){return void 0!==e[n]&&(t[n]=e[n]),t},{})}function Ct(){return document.createElement("div")}function Ot(e){return["Element","Fragment"].some(function(t){return It(e,t)})}function Pt(e){return Ot(e)?[e]:function(e){return It(e,"NodeList")}(e)?St(e):Array.isArray(e)?e:St(document.querySelectorAll(e))}function Rt(e,t){e.forEach(function(e){e&&(e.style.transitionDuration=t+"ms")})}function Dt(e,t){e.forEach(function(e){e&&e.setAttribute("data-state",t)})}function Mt(e,t,n){var o=t+"EventListener";["transitionend","webkitTransitionEnd"].forEach(function(t){e[o](t,n)})}function Bt(e,t){for(var n=t;n;){var o;if(e.contains(n))return!0;n=null==n.getRootNode||null==(o=n.getRootNode())?void 0:o.host}return!1}var $t={isTouch:!1},Gt=0;function Ut(){$t.isTouch||($t.isTouch=!0,window.performance&&document.addEventListener("mousemove",Ht))}function Ht(){var e=performance.now();e-Gt<20&&($t.isTouch=!1,document.removeEventListener("mousemove",Ht)),Gt=e}function Ft(){var e,t=document.activeElement;if((e=t)&&e._tippy&&e._tippy.reference===e){var n=t._tippy;t.blur&&!n.state.isVisible&&t.blur()}}var Kt=!!("undefined"!=typeof window&&"undefined"!=typeof document)&&!!window.msCrypto,Wt=Object.assign({appendTo:_t,aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},{animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},{allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999}),Yt=Object.keys(Wt);function zt(e){var t=(e.plugins||[]).reduce(function(t,n){var o,i=n.name,s=n.defaultValue;i&&(t[i]=void 0!==e[i]?e[i]:null!=(o=Wt[i])?o:s);return t},{});return Object.assign({},e,t)}function Qt(e,t){var n=Object.assign({},t,{content:Tt(t.content,[e])},t.ignoreAttributes?{}:function(e,t){return(t?Object.keys(zt(Object.assign({},Wt,{plugins:t}))):Yt).reduce(function(t,n){var o=(e.getAttribute("data-tippy-"+n)||"").trim();if(!o)return t;if("content"===n)t[n]=o;else try{t[n]=JSON.parse(o)}catch(e){t[n]=o}return t},{})}(e,t.plugins));return n.aria=Object.assign({},Wt.aria,n.aria),n.aria={expanded:"auto"===n.aria.expanded?t.interactive:n.aria.expanded,content:"auto"===n.aria.content?t.interactive?null:"describedby":n.aria.content},n}function Vt(e,t){e.innerHTML=t}function jt(e){var t=Ct();return!0===e?t.className=At:(t.className=Et,Ot(e)?t.appendChild(e):Vt(t,e)),t}function qt(e,t){Ot(t.content)?(Vt(e,""),e.appendChild(t.content)):"function"!=typeof t.content&&(t.allowHTML?Vt(e,t.content):e.textContent=t.content)}function Xt(e){var t=e.firstElementChild,n=St(t.children);return{box:t,content:n.find(function(e){return e.classList.contains(yt)}),arrow:n.find(function(e){return e.classList.contains(At)||e.classList.contains(Et)}),backdrop:n.find(function(e){return e.classList.contains("tippy-backdrop")})}}function Zt(e){var t=Ct(),n=Ct();n.className="tippy-box",n.setAttribute("data-state","hidden"),n.setAttribute("tabindex","-1");var o=Ct();function i(n,o){var i=Xt(t),s=i.box,a=i.content,r=i.arrow;o.theme?s.setAttribute("data-theme",o.theme):s.removeAttribute("data-theme"),"string"==typeof o.animation?s.setAttribute("data-animation",o.animation):s.removeAttribute("data-animation"),o.inertia?s.setAttribute("data-inertia",""):s.removeAttribute("data-inertia"),s.style.maxWidth="number"==typeof o.maxWidth?o.maxWidth+"px":o.maxWidth,o.role?s.setAttribute("role",o.role):s.removeAttribute("role"),n.content===o.content&&n.allowHTML===o.allowHTML||qt(a,e.props),o.arrow?r?n.arrow!==o.arrow&&(s.removeChild(r),s.appendChild(jt(o.arrow))):s.appendChild(jt(o.arrow)):r&&s.removeChild(r)}return o.className=yt,o.setAttribute("data-state","hidden"),qt(o,e.props),t.appendChild(n),n.appendChild(o),i(e.props,e.props),{popper:t,onUpdate:i}}Zt.$$tippy=!0;var Jt=1,en=[],tn=[];function nn(e,t){var n,o,i,s,a,r,l,c,d=Qt(e,Object.assign({},Wt,zt(wt(t)))),p=!1,u=!1,h=!1,g=!1,m=[],f=xt(Q,d.interactiveDebounce),b=Jt++,y=(c=d.plugins).filter(function(e,t){return c.indexOf(e)===t}),A={id:b,reference:e,popper:Ct(),popperInstance:null,props:d,state:{isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},plugins:y,clearDelayTimeouts:function(){clearTimeout(n),clearTimeout(o),cancelAnimationFrame(i)},setProps:function(t){if(A.state.isDestroyed)return;P("onBeforeUpdate",[A,t]),Y();var n=A.props,o=Qt(e,Object.assign({},n,wt(t),{ignoreAttributes:!0}));A.props=o,W(),n.interactiveDebounce!==o.interactiveDebounce&&(M(),f=xt(Q,o.interactiveDebounce));n.triggerTarget&&!o.triggerTarget?kt(n.triggerTarget).forEach(function(e){e.removeAttribute("aria-expanded")}):o.triggerTarget&&e.removeAttribute("aria-expanded");D(),O(),_&&_(n,o);A.popperInstance&&(X(),J().forEach(function(e){requestAnimationFrame(e._tippy.popperInstance.forceUpdate)}));P("onAfterUpdate",[A,t])},setContent:function(e){A.setProps({content:e})},show:function(){var e=A.state.isVisible,t=A.state.isDestroyed,n=!A.state.isEnabled,o=$t.isTouch&&!A.props.touch,i=Lt(A.props.duration,0,Wt.duration);if(e||t||n||o)return;if(N().hasAttribute("disabled"))return;if(P("onShow",[A],!1),!1===A.props.onShow(A))return;A.state.isVisible=!0,k()&&(v.style.visibility="visible");O(),U(),A.state.isMounted||(v.style.transition="none");if(k()){var s=w();Rt([s.box,s.content],0)}r=function(){var e;if(A.state.isVisible&&!g){if(g=!0,v.offsetHeight,v.style.transition=A.props.moveTransition,k()&&A.props.animation){var t=w(),n=t.box,o=t.content;Rt([n,o],i),Dt([n,o],"visible")}R(),D(),Nt(tn,A),null==(e=A.popperInstance)||e.forceUpdate(),P("onMount",[A]),A.props.animation&&k()&&function(e,t){F(e,t)}(i,function(){A.state.isShown=!0,P("onShown",[A])})}},function(){var e,t=A.props.appendTo,n=N();e=A.props.interactive&&t===_t||"parent"===t?n.parentNode:Tt(t,[n]);e.contains(v)||e.appendChild(v);A.state.isMounted=!0,X()}()},hide:function(){var e=!A.state.isVisible,t=A.state.isDestroyed,n=!A.state.isEnabled,o=Lt(A.props.duration,1,Wt.duration);if(e||t||n)return;if(P("onHide",[A],!1),!1===A.props.onHide(A))return;A.state.isVisible=!1,A.state.isShown=!1,g=!1,p=!1,k()&&(v.style.visibility="hidden");if(M(),H(),O(!0),k()){var i=w(),s=i.box,a=i.content;A.props.animation&&(Rt([s,a],o),Dt([s,a],"hidden"))}R(),D(),A.props.animation?k()&&function(e,t){F(e,function(){!A.state.isVisible&&v.parentNode&&v.parentNode.contains(v)&&t()})}(o,A.unmount):A.unmount()},hideWithInteractivity:function(e){S().addEventListener("mousemove",f),Nt(en,f),f(e)},enable:function(){A.state.isEnabled=!0},disable:function(){A.hide(),A.state.isEnabled=!1},unmount:function(){A.state.isVisible&&A.hide();if(!A.state.isMounted)return;Z(),J().forEach(function(e){e._tippy.unmount()}),v.parentNode&&v.parentNode.removeChild(v);tn=tn.filter(function(e){return e!==A}),A.state.isMounted=!1,P("onHidden",[A])},destroy:function(){if(A.state.isDestroyed)return;A.clearDelayTimeouts(),A.unmount(),Y(),delete e._tippy,A.state.isDestroyed=!0,P("onDestroy",[A])}};if(!d.render)return A;var E=d.render(A),v=E.popper,_=E.onUpdate;v.setAttribute("data-tippy-root",""),v.id="tippy-"+A.id,A.popper=v,e._tippy=A,v._tippy=A;var L=y.map(function(e){return e.fn(A)}),I=e.hasAttribute("aria-expanded");return W(),D(),O(),P("onCreate",[A]),d.showOnCreate&&ee(),v.addEventListener("mouseenter",function(){A.props.interactive&&A.state.isVisible&&A.clearDelayTimeouts()}),v.addEventListener("mouseleave",function(){A.props.interactive&&A.props.trigger.indexOf("mouseenter")>=0&&S().addEventListener("mousemove",f)}),A;function T(){var e=A.props.touch;return Array.isArray(e)?e:[e,0]}function x(){return"hold"===T()[0]}function k(){var e;return!(null==(e=A.props.render)||!e.$$tippy)}function N(){return l||e}function S(){var e,t,n=N().parentNode;return n?null!=(t=kt(n)[0])&&null!=(e=t.ownerDocument)&&e.body?t.ownerDocument:document:document}function w(){return Xt(v)}function C(e){return A.state.isMounted&&!A.state.isVisible||$t.isTouch||s&&"focus"===s.type?0:Lt(A.props.delay,e?0:1,Wt.delay)}function O(e){void 0===e&&(e=!1),v.style.pointerEvents=A.props.interactive&&!e?"":"none",v.style.zIndex=""+A.props.zIndex}function P(e,t,n){var o;(void 0===n&&(n=!0),L.forEach(function(n){n[e]&&n[e].apply(n,t)}),n)&&(o=A.props)[e].apply(o,t)}function R(){var t=A.props.aria;if(t.content){var n="aria-"+t.content,o=v.id;kt(A.props.triggerTarget||e).forEach(function(e){var t=e.getAttribute(n);if(A.state.isVisible)e.setAttribute(n,t?t+" "+o:o);else{var i=t&&t.replace(o,"").trim();i?e.setAttribute(n,i):e.removeAttribute(n)}})}}function D(){!I&&A.props.aria.expanded&&kt(A.props.triggerTarget||e).forEach(function(e){A.props.interactive?e.setAttribute("aria-expanded",A.state.isVisible&&e===N()?"true":"false"):e.removeAttribute("aria-expanded")})}function M(){S().removeEventListener("mousemove",f),en=en.filter(function(e){return e!==f})}function B(t){if(!$t.isTouch||!h&&"mousedown"!==t.type){var n=t.composedPath&&t.composedPath()[0]||t.target;if(!A.props.interactive||!Bt(v,n)){if(kt(A.props.triggerTarget||e).some(function(e){return Bt(e,n)})){if($t.isTouch)return;if(A.state.isVisible&&A.props.trigger.indexOf("click")>=0)return}else P("onClickOutside",[A,t]);!0===A.props.hideOnClick&&(A.clearDelayTimeouts(),A.hide(),u=!0,setTimeout(function(){u=!1}),A.state.isMounted||H())}}}function $(){h=!0}function G(){h=!1}function U(){var e=S();e.addEventListener("mousedown",B,!0),e.addEventListener("touchend",B,vt),e.addEventListener("touchstart",G,vt),e.addEventListener("touchmove",$,vt)}function H(){var e=S();e.removeEventListener("mousedown",B,!0),e.removeEventListener("touchend",B,vt),e.removeEventListener("touchstart",G,vt),e.removeEventListener("touchmove",$,vt)}function F(e,t){var n=w().box;function o(e){e.target===n&&(Mt(n,"remove",o),t())}if(0===e)return t();Mt(n,"remove",a),Mt(n,"add",o),a=o}function K(t,n,o){void 0===o&&(o=!1),kt(A.props.triggerTarget||e).forEach(function(e){e.addEventListener(t,n,o),m.push({node:e,eventType:t,handler:n,options:o})})}function W(){var e;x()&&(K("touchstart",z,{passive:!0}),K("touchend",V,{passive:!0})),(e=A.props.trigger,e.split(/\s+/).filter(Boolean)).forEach(function(e){if("manual"!==e)switch(K(e,z),e){case"mouseenter":K("mouseleave",V);break;case"focus":K(Kt?"focusout":"blur",j);break;case"focusin":K("focusout",j)}})}function Y(){m.forEach(function(e){var t=e.node,n=e.eventType,o=e.handler,i=e.options;t.removeEventListener(n,o,i)}),m=[]}function z(e){var t,n=!1;if(A.state.isEnabled&&!q(e)&&!u){var o="focus"===(null==(t=s)?void 0:t.type);s=e,l=e.currentTarget,D(),!A.state.isVisible&&It(e,"MouseEvent")&&en.forEach(function(t){return t(e)}),"click"===e.type&&(A.props.trigger.indexOf("mouseenter")<0||p)&&!1!==A.props.hideOnClick&&A.state.isVisible?n=!0:ee(e),"click"===e.type&&(p=!n),n&&!o&&te(e)}}function Q(e){var t=e.target,n=N().contains(t)||v.contains(t);if("mousemove"!==e.type||!n){var o=J().concat(v).map(function(e){var t,n=null==(t=e._tippy.popperInstance)?void 0:t.state;return n?{popperRect:e.getBoundingClientRect(),popperState:n,props:d}:null}).filter(Boolean);(function(e,t){var n=t.clientX,o=t.clientY;return e.every(function(e){var t=e.popperRect,i=e.popperState,s=e.props.interactiveBorder,a=i.placement.split("-")[0],r=i.modifiersData.offset;if(!r)return!0;var l="bottom"===a?r.top.y:0,c="top"===a?r.bottom.y:0,d="right"===a?r.left.x:0,p="left"===a?r.right.x:0,u=t.top-o+l>s,h=o-t.bottom-c>s,g=t.left-n+d>s,m=n-t.right-p>s;return u||h||g||m})})(o,e)&&(M(),te(e))}}function V(e){q(e)||A.props.trigger.indexOf("click")>=0&&p||(A.props.interactive?A.hideWithInteractivity(e):te(e))}function j(e){A.props.trigger.indexOf("focusin")<0&&e.target!==N()||A.props.interactive&&e.relatedTarget&&v.contains(e.relatedTarget)||te(e)}function q(e){return!!$t.isTouch&&x()!==e.type.indexOf("touch")>=0}function X(){Z();var t=A.props,n=t.popperOptions,o=t.placement,i=t.offset,s=t.getReferenceClientRect,a=t.moveTransition,l=k()?Xt(v).arrow:null,c=s?{getBoundingClientRect:s,contextElement:s.contextElement||N()}:e,d={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(e){var t=e.state;if(k()){var n=w().box;["placement","reference-hidden","escaped"].forEach(function(e){"placement"===e?n.setAttribute("data-placement",t.placement):t.attributes.popper["data-popper-"+e]?n.setAttribute("data-"+e,""):n.removeAttribute("data-"+e)}),t.attributes.popper={}}}},p=[{name:"offset",options:{offset:i}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!a}},d];k()&&l&&p.push({name:"arrow",options:{element:l,padding:3}}),p.push.apply(p,(null==n?void 0:n.modifiers)||[]),A.popperInstance=bt(c,v,Object.assign({},n,{placement:o,onFirstUpdate:r,modifiers:p}))}function Z(){A.popperInstance&&(A.popperInstance.destroy(),A.popperInstance=null)}function J(){return St(v.querySelectorAll("[data-tippy-root]"))}function ee(e){A.clearDelayTimeouts(),e&&P("onTrigger",[A,e]),U();var t=C(!0),o=T(),i=o[0],s=o[1];$t.isTouch&&"hold"===i&&s&&(t=s),t?n=setTimeout(function(){A.show()},t):A.show()}function te(e){if(A.clearDelayTimeouts(),P("onUntrigger",[A,e]),A.state.isVisible){if(!(A.props.trigger.indexOf("mouseenter")>=0&&A.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(e.type)>=0&&p)){var t=C(!1);t?o=setTimeout(function(){A.state.isVisible&&A.hide()},t):i=requestAnimationFrame(function(){A.hide()})}}else H()}}function on(e,t){void 0===t&&(t={});var n=Wt.plugins.concat(t.plugins||[]);document.addEventListener("touchstart",Ut,vt),window.addEventListener("blur",Ft);var o=Object.assign({},t,{plugins:n}),i=Pt(e).reduce(function(e,t){var n=t&&nn(t,o);return n&&e.push(n),e},[]);return Ot(e)?i[0]:i}on.defaultProps=Wt,on.setDefaultProps=function(e){Object.keys(e).forEach(function(t){Wt[t]=e[t]})},on.currentInput=$t,Object.assign({},ve,{effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow)}}),on.setDefaultProps({render:Zt});const sn={mainTRC:2.4,get mainTRCencode(){return 1/this.mainTRC},sRco:.2126729,sGco:.7151522,sBco:.072175,normBG:.56,normTXT:.57,revTXT:.62,revBG:.65,blkThrs:.022,blkClmp:1.414,scaleBoW:1.14,scaleWoB:1.14,loBoWoffset:.027,loWoBoffset:.027,deltaYmin:5e-4,loClip:.1,mFactor:1.9468554433171,get mFactInv(){return 1/this.mFactor},mOffsetIn:.0387393816571401,mExpAdj:.283343396420869,get mExp(){return this.mExpAdj/this.blkClmp},mOffsetOut:.312865795870758};function an(e,t=2){const n=[["Lc",100,200,300,400,500,600,700,800,900],[0,999,999,999,999,999,999,999,999,999],[10,999,999,999,999,999,999,999,999,999],[15,777,777,777,777,777,777,777,777,777],[20,777,777,777,777,777,777,777,777,777],[25,777,777,777,120,120,108,96,96,96],[30,777,777,120,108,108,96,72,72,72],[35,777,120,108,96,72,60,48,48,48],[40,120,108,96,60,48,42,32,32,32],[45,108,96,72,42,32,28,24,24,24],[50,96,72,60,32,28,24,21,21,21],[55,80,60,48,28,24,21,18,18,18],[60,72,48,42,24,21,18,16,16,18],[65,68,46,32,21.75,19,17,15,16,18],[70,64,44,28,19.5,18,16,14.5,16,18],[75,60,42,24,18,16,15,14,16,18],[80,56,38.25,23,17.25,15.81,14.81,14,16,18],[85,52,34.5,22,16.5,15.625,14.625,14,16,18],[90,48,32,21,16,15.5,14.5,14,16,18],[95,45,28,19.5,15.5,15,14,13.5,16,18],[100,42,26.5,18.5,15,14.5,13.5,13,16,18],[105,39,25,18,14.5,14,13,12,16,18],[110,36,24,18,14,13,12,11,16,18],[115,34.5,22.5,17.25,12.5,11.875,11.25,10.625,14.5,16.5],[120,33,21,16.5,11,10.75,10.5,10.25,13,15],[125,32,20,16,10,10,10,10,12,14]],o=[["∆Lc",100,200,300,400,500,600,700,800,900],[0,0,0,0,0,0,0,0,0,0],[10,0,0,0,0,0,0,0,0,0],[15,0,0,0,0,0,0,0,0,0],[20,0,0,0,0,0,0,0,0,0],[25,0,0,0,12,12,12,24,24,24],[30,0,0,12,12,36,36,24,24,24],[35,0,12,12,36,24,18,16,16,16],[40,12,12,24,18,16,14,8,8,8],[45,12,24,12,10,4,4,3,3,3],[50,16,12,12,4,4,3,3,3,3],[55,8,12,6,4,3,3,2,2,0],[60,4,2,10,2.25,2,1,1,0,0],[65,4,2,4,2.25,1,1,.5,0,0],[70,4,2,4,1.5,2,1,.5,0,0],[75,4,3.75,1,.75,.188,.188,0,0,0],[80,4,3.75,1,.75,.188,.188,0,0,0],[85,4,2.5,1,.5,.125,.125,0,0,0],[90,3,4,1.5,.5,.5,.5,.5,0,0],[95,3,1.5,1,.5,.5,.5,.5,0,0],[100,3,1.5,.5,.5,.5,.5,1,0,0],[105,3,1,0,.5,1,1,1,0,0],[110,1.5,1.5,.75,1.5,1.125,.75,.375,1.5,1.5],[115,1.5,1.5,.75,1.5,1.125,.75,.375,1.5,1.5],[120,1,1,.5,1,.75,.5,.25,1,1],[125,0,0,0,0,0,0,0,0,0]];let i=[e.toFixed(t),0,0,0,0,0,0,0,0,0];i.length;let s=777;const a=0==(e=Math.abs(e))?1:.2*e|0;let r=0,l=.2*(e-n[a][r]);for(r++;r<10;r++)s=n[a][r],i[r]=s>400?s:e<14.5?999:e<29.5?777:s>24?Math.round(s-o[a][r]*l):s-.5*(2*o[a][r]*l|0);return i}function rn(e=[0,0,0]){function t(e){return Math.pow(e/255,sn.mainTRC)}return sn.sRco*t(e[0])+sn.sGco*t(e[1])+sn.sBco*t(e[2])}function ln(e=[0,0,0,1],t=[0,0,0],n=!0){e[3]=Math.max(Math.min(e[3],1),0);let o=1-e[3],i=[0,0,0,1,!0];for(let s=0;s<3;s++)i[s]=t[s]*o+e[s]*e[3],n&&(i[s]=Math.min(Math.round(i[s]),255));return i}function cn(e){const t=parseInt(e,10);if(!Number.isNaN(t))return t;return{lighter:100,normal:400,bold:700,bolder:900}[e]||400}function dn(e,t){const n=e;let o,i,s,a=1;if(n.startsWith("rgb")){const e=n.match(/[\d.]+/g).map(Number);[o,i,s,a]=4===e.length?e:[...e,1]}else{if(n.startsWith("color(rec2020")||n.startsWith("color(display-p3"))return"unsupported";const e=document.createElement("canvas").getContext("2d");e.fillStyle=n,e.fillRect(0,0,1,1);const t=e.getImageData(0,0,1,1);[o,i,s,a]=t.data,a=(a/255).toFixed(2)}return t&&t<1&&(a=(a*t).toFixed(2)),[o,i,s,Number(a)]}function pn(e){let t=e;for(;t&&1===t.nodeType;){if(o.Global.shadowDetection){const e=t.getRootNode();if(e instanceof ShadowRoot){let n=t;for(;n&&n!==e.host;){const e=getComputedStyle(n);if(e.backgroundImage&&"none"!==e.backgroundImage)return{type:"image",value:e.backgroundImage};const t=dn(e.backgroundColor);if(0!==t[3]&&"transparent"!==t)return t;n=n.parentElement}return pn(e.host)}}const e=getComputedStyle(t),n=e.backgroundImage;if("none"!==n)return{type:"image",value:n};const i=dn(e.backgroundColor);if(0!==i[3]&&"transparent"!==i){if(i[3]<1){let e=t.parentElement,n="rgba(255, 255, 255, 1)";for(;e&&1===e.nodeType;){if(n=getComputedStyle(e).backgroundColor,"rgba(0, 0, 0, 0)"!==n)break;"rgba(0, 0, 0, 0)"===n&&"HTML"===e.tagName&&(n="rgba(255, 255, 255, 1)"),e=e.parentElement}return ln(i,dn(n||"rgba(255, 255, 255, 1)"))}return i}if("HTML"===t.tagName)return[255,255,255];t=t.parentNode}return[255,255,255]}function un(e){const t=e.slice(0,3).map(e=>{const t=e/255;return t<=.03928?t/12.92:((t+.055)/1.055)**2.4});return.2126*t[0]+.7152*t[1]+.0722*t[2]}function hn(e,t){return(Math.max(e,t)+.05)/(Math.min(e,t)+.05)}function gn(e,t){return e.map((e,n)=>{if(n<3){const n=Math.ceil(e+(255-e)*t);return n>=255?255:n}return e})}function mn(e,t){return e.map((e,n)=>{if(n<3){const n=Math.floor(e*(1-t));return n<=0?0:n}return e})}function fn(e){const[t,n,o]=e.map(e=>Math.min(255,Math.max(0,e)));return`#${t.toString(16).padStart(2,"0")}${n.toString(16).padStart(2,"0")}${o.toString(16).padStart(2,"0")}`}function bn(e){if(o.Global.contrastAPCA)return Math.abs(Number(e.toFixed(1)));const t=Math.round(100*e)/100;return Number.isInteger(t)?`${t}:1`:`${t.toFixed(2)}:1`}function yn(e,t){let n;const i=ln(e,t).slice(0,4);if(o.Global.contrastAPCA){n=function(e,t,n=-1){const o=[0,1.1];if(isNaN(e)||isNaN(t)||Math.min(e,t)o[1])return 0;let i=0,s=0,a="BoW";return e=e>sn.blkThrs?e:e+Math.pow(sn.blkThrs-e,sn.blkClmp),t=t>sn.blkThrs?t:t+Math.pow(sn.blkThrs-t,sn.blkClmp),Math.abs(t-e)e?(i=(Math.pow(t,sn.normBG)-Math.pow(e,sn.normTXT))*sn.scaleBoW,s=i-sn.loClip?0:i+sn.loWoBoffset),n<0?100*s:0==n?Math.round(100*Math.abs(s))+""+a+"":Number.isInteger(n)?(100*s).toFixed(n):0)}(rn(i),rn(t))}else{n=hn(un(i),un(t))}return{ratio:n,blendedColor:i}}function An(e,t,n,o){const i=rn(t),s=(e,t)=>i<=.179?gn(e,t):mn(e,t);let a=e,r=yn(a,t),l=an(r.ratio).slice(1);const c=Math.floor(n/100)-1,d=l[c],p=o{const n=yn(e,[0,0,0,1]),o=yn(e,[255,255,255,1]),i=Math.abs(n.ratio)>Math.abs(o.ratio),s=i?[0,0,0,1]:[255,255,255,1],a=an(i?n.ratio:o.ratio).slice(1);return{suggestedColor:s,size:Math.ceil(a[Math.floor(t/100)-1])}})(t,n);if(u.size>o)return{color:fn(u.suggestedColor),size:u.size};let h=e,g=a,m=r.ratio,f=.16;let b=0;if(p)for(;f>=.01;)if(b+=1,a=s(a,f),r=yn(a,t),l=an(r.ratio).slice(1),l[c]<=o&&(g=Math.abs(r.ratio)<=Math.abs(m)?a:g,m=r.ratio,g=a,a=h,f*=.5),h=a,50===b)return{color:fn(u.suggestedColor),size:u.size};return{color:fn(g),size:null}}function En(e){let t;const{color:i,background:s,fontWeight:a,fontSize:r,isLargeText:l,type:c}=e;if(i&&s&&"image"!==s.type&&"text"===c){const c=o.Global.contrastAPCA?An(i,s,a,r):function(e,t,n,o=!1){let i;i=o?n?4.5:7:n?3:4.5;const s=un(e),a=un(t),r=s>a?hn(1,a)>i:hn(0,a)n?gn(e,t):mn(e,t);let c=e,d=c,p=hn(s,a),u=p,h=e,g=.16,m=0;for(;g>=.01;){if(m+=1,m>100)return{color:null};c=l(c,g,r),p=hn(un(c),a),p>=i&&(d=p<=u?c:d,u=p,c=h,g*=.5),h=c}return{color:fn(d)}}(i,s,l,o.Global.contrastAAA);let d;const p='',u=`${c.color}`,h=`${c.size}px`;o.Global.contrastAPCA?c.color&&c.size?d=`${p} ${n._("CONTRAST_APCA")} ${u} ${h}`:c.color?d=`${p} ${n._("CONTRAST_COLOR")} ${u}`:c.size&&(d=`${p} ${n._("CONTRAST_SIZE")} ${h}`):d=null===c.color?`${p} ${n._("NO_SUGGESTION")}`:`${p} ${n._("CONTRAST_COLOR")} ${u}`,t=document.createElement("div"),t.id="advice";const g=e.opacity<1?` ${n.sprintf("CONTRAST_OPACITY")}`:d;t.innerHTML=g}return t}function vn(e,t){const n=e?.querySelector("#contrast-tools");if(n){const{fontSize:n,fontWeight:i,type:s,isLargeText:a}=t,r=e.querySelector("#contrast"),l=e.querySelector("#contrast-preview"),c=e.querySelector("#fg-input"),d=e.querySelector("#bg-input"),p=e.querySelector("#value"),u=e.querySelector("#good"),h=e.querySelector("#apca-table"),g=(e,t)=>{e.forEach(e=>{e.classList.toggle("good-contrast",t),e.classList.toggle("error-badge",!t)})},m=()=>{const e=c.value,t=d.value;[c,d].forEach(e=>e.classList.remove("unknown")),l.style.color=e,l.style.backgroundColor=t,l.style.backgroundImage="none";const m=l.querySelectorAll("svg *");if(1===m.length){const{fill:t,stroke:n}=getComputedStyle(m[0]);m[0].style.opacity=1,"none"!==t&&(m[0].style.fill=e),"none"!==n&&(m[0].style.stroke=e)}const f=yn(dn(e),dn(t)),b=[p,r];if(o.Global.contrastAPCA){const e=f.ratio;p.textContent=bn(e);const t=an(e).slice(1),o=e>=45&&t[0]>=0&&t[0]<=777;let a;switch(s){case"svg-error":case"svg-warning":u.hidden=!o,a=o,g(b,a);break;case"svg-text":u.hidden=!o,a=t.slice(1,7).some(e=>999!==e&&777!==e),g(b,a),function(e,t){const n=e;n.innerHTML="",n.hidden=!1;const o=document.createElement("div");o.classList.add("row");const i=t.slice(1,7);for(let e=0;e=e,g(b,a),u.hidden=!a;break}}}if(!o.Global.contrastAPCA){const e=f.ratio;p.textContent=bn(e);const t=o.Global.contrastAAA,n=e>=3,i=e>=(t?7:4.5),l=e>=(t?4.5:3);switch(s){case"svg-error":case"svg-text":case"svg-warning":u.hidden=!n,g(b,n);break;default:a?(g([p,r],l),u.hidden=!l):(g([p,r],i),u.hidden=!i)}}};c.addEventListener("input",m),d.addEventListener("input",m)}}function _n(e,t,n,o,i,s,a=!1){const{ratio:r,blendedColor:l}=yn(t,n),c=o>=24||o>=18.67&&i>=700;let d;if(a)d=c?r<4.5:r<7;else{d=c?r<3:r>1&&r<4.5}return d?{$el:e,ratio:bn(r),color:l,background:n,fontSize:o,fontWeight:i,isLargeText:c,opacity:s,textUnderline:getComputedStyle(e).textDecorationLine}:null}function Ln(e,t,n,o,i,s){const{ratio:a,blendedColor:r}=yn(t,n);return o{const t=e.shadowRoot.querySelectorAll(".sa11y-btn");t&&i.push(...Array.from(t))});const s=on(i,{interactive:!0,trigger:"mouseenter click",hideOnClick:!1,arrow:!0,offset:[0,8],delay:[0,400],maxWidth:375,theme:"sa11y-theme",placement:"auto-start",allowHTML:!0,role:"dialog",aria:{content:null,expanded:"auto"},appendTo:e,zIndex:2147483645,onShow(e){s.forEach(t=>{t!==e.popper&&t.hide()});const t=e.reference.getRootNode().host;t.setAttribute("data-sa11y-opened","");const i=e.popper.querySelector(".close-btn"),a=()=>{e.hide(),e.reference.focus()};i.addEventListener("click",a);const r=t=>{"Escape"===t.key&&(e.hide(),e.reference.focus())};if(e.popper.addEventListener("keydown",r),!e.popper.hasAttribute("contrast-tools-initialized")){const i=parseInt(t.getAttribute("data-sa11y-annotation"),10),s=window.sa11yCheckComplete.results.find(e=>e.id===i),{contrastDetails:a}=s||{};if(a){const t=e.popper.querySelector("[data-sa11y-contrast-details]"),i=function(e){const{sanitizedText:t,color:i,background:s,fontWeight:a,fontSize:r,ratio:l,textUnderline:c}=e,d=s&&"image"!==s.type,p=d?fn(s):"#000000",u=i?fn(i):"#000000",h=a?`font-weight:${a};`:"",g=r?`font-size:${r}px;`:"",m=c?`text-decoration:${c};`:"",f=i?"":'class="unknown"',b=s&&"image"!==s.type?"":'class="unknown"',y=i?"":`(${n._("UNKNOWN")})`,A=s?"":`(${n._("UNKNOWN")})`;let E;E=o.Global.contrastAPCA?0===Math.abs(l)?0:Math.abs(l)||n._("UNKNOWN"):l||n._("UNKNOWN");const v=document.createElement("div");return v.id="contrast-tools",v.innerHTML=`\n \n
                                                            ${n._("CONTRAST")}
                                                            \n
                                                            ${E}
                                                            \n \n \n
                                                            ${t}
                                                            \n
                                                            \n \n \n
                                                            `,v}(a);t.appendChild(i),vn(e.popper,a);const s=En(a);s&&t.appendChild(s),e.popper.setAttribute("contrast-tools-initialized",!0)}}let l=!0;e.popper.addEventListener("mousedown",function t(n){l&&n.target.matches('input[type="color"]')&&(e.reference.click(),l=!1,e.popper.removeEventListener("mousedown",t))});const c=()=>{i.removeEventListener("click",a),e.popper.removeEventListener("keydown",r),e.popper.removeEventListener("hidden",c)};e.popper.addEventListener("hidden",c)},onTrigger(e,t){"click"===t.type&&setTimeout(()=>{e.popper.querySelector(".close-btn").focus(),function(e){const t=e.querySelectorAll('a[href]:not([disabled]), button:not([disabled]), input[type="color"]'),n=t[0],o=t[t.length-1];e.addEventListener("keydown",t=>{const i="Tab"===t.key||9===t.keyCode,s=e.getRootNode();i&&(t.shiftKey?s.activeElement===n&&(o.focus(),t.preventDefault()):s.activeElement===o&&(n.focus(),t.preventDefault()))})}(e.popper)},0)},onHide(e){e.popper.querySelector(".close-btn").removeEventListener("click",()=>{e.hide()});e.reference.getRootNode().host.removeAttribute("data-sa11y-opened")}})}}class kn extends HTMLElement{connectedCallback(){const e=e=>({allowHTML:!0,delay:[500,0],trigger:"mouseenter focusin",arrow:!0,placement:"top",theme:"sa11y-theme sa11y-panel",role:"tooltip",aria:{content:null,expanded:null},appendTo:e,zIndex:2147483645}),t=this.attachShadow({mode:"open"}),i=document.createElement("style");i.innerHTML=Tn+z,t.appendChild(i);const s=-1!==navigator.userAgent.indexOf("Mac")?'Option + S':'Alt + S';if(on(o.Panel.skipButton,{...e(t),offset:[0,8],maxWidth:200,content:`${n._("SKIP_TO_ISSUE")} »
                                                            ${s}`}),this.object=on(o.Panel.dismissButton,{offset:[0,8],maxWidth:200,...e(t)}),o.Global.developerPlugin){const i=o.Panel.developerItem.querySelector(".info-icon");i&&on(i,{...e(t),triggerTarget:[o.Panel.developerItem],offset:[0,10],maxWidth:250,content:n._("DEVELOPER_DESC")})}if(o.Global.readabilityPlugin){const i=o.Panel.readabilityItem.querySelector(".info-icon");i&&on(i,{...e(t),triggerTarget:[o.Panel.readabilityItem],offset:[0,10],maxWidth:250,content:n._("READABILITY_DESC")})}}}class Nn extends HTMLElement{connectedCallback(){const e=this.attachShadow({mode:"open"}),t=document.createElement("style");t.innerHTML='.instance{display:block;position:relative}.instance-inline{display:inline-block;position:relative;text-align:end}button{border-radius:50%;box-shadow:0 0 16px 0 rgba(0,0,0,.31);cursor:pointer;display:block;padding:0;transition:all .2s ease-in-out;z-index:8888}button,button:after{height:36px;position:absolute;width:36px}button:after{content:"";left:-7px;padding:7px;top:-7px}.warning-btn{margin:20px}.error-btn,.good-btn{margin:10px}.error-btn-text,.good-btn-text,.warning-btn-text{margin:-30px 10px}.error-btn,.error-btn-text{background:50% 50% var(--sa11y-error-svg) no-repeat;background-color:var(--sa11y-error);background-size:22px;border:1px solid var(--sa11y-error)}.error-btn-text:focus,.error-btn-text:hover,.error-btn:focus,.error-btn:hover{background-color:var(--sa11y-error-hover)}.good-btn,.good-btn-text{background:50% 50% var(--sa11y-good) var(--sa11y-good-svg) no-repeat;background-color:var(--sa11y-good);background-size:20px;border:1px solid var(--sa11y-good)}.good-btn-text:focus,.good-btn-text:hover,.good-btn:focus,.good-btn:hover{background-color:var(--sa11y-good-hover)}.warning-btn,.warning-btn-text{background:50% 50% var(--sa11y-warning) var(--sa11y-warning-svg) no-repeat;background-color:var(--sa11y-warning);background-size:24px;border:1px solid var(--sa11y-warning);transform:scaleX(var(--sa11y-icon-direction))}.warning-btn-text:focus,.warning-btn-text:hover,.warning-btn:focus,.warning-btn:hover{background-color:var(--sa11y-warning-hover)}.sa11y-btn:active,.sa11y-btn:focus{box-shadow:0 0 0 5px var(--sa11y-focus-color);outline:0}@media screen and (forced-colors:active){.sa11y-btn{border:1px solid transparent!important;forced-color-adjust:none;outline:3px solid transparent!important}}'+z,e.appendChild(t)}}const Sn=e=>{document.querySelectorAll("sa11y-annotation").forEach(t=>{const n=((e,t,n)=>{let o=e;for(;null!==o;){if(window.getComputedStyle(o).getPropertyValue(t)===n)return o;o=o.parentElement}return null})(t,"overflow","hidden");if(null!==n){if(e){if(e.split(",").flatMap(e=>[...document.querySelectorAll(e)]).includes(n))return}n.setAttribute("data-sa11y-overflow","")}})};class wn extends HTMLElement{connectedCallback(){this.attachShadow({mode:"open"})}}class Cn extends HTMLElement{connectedCallback(){const e=this.attachShadow({mode:"open"}),t=document.createElement("style");t.textContent="\n span.heading-label {\n background-color: #777678;\n background-image: linear-gradient(to bottom right, #b629ce, #16aec2);\n border-radius: 5px;\n border: 1px solid #36a5c3;\n color: white;\n display: inline-block;\n font-family: var(--sa11y-font-face);\n font-weight: 500;\n font-size: 18px;\n line-height: normal;\n letter-spacing: normal;\n margin: -5px 0 0 5px;\n padding: 3px;\n position: absolute;\n text-shadow: 1px 1px black;\n -webkit-text-fill-color: white;\n word-break: keep-all;\n z-index: 200;\n }\n @media screen and (forced-colors: active) {\n span.heading-label {\n border: 2px solid transparent;\n }\n }",e.appendChild(t)}}const On=(e,t)=>{if(0===e.offsetTop){const o=e.getRootNode().host,i=E(o,"display","none"),s=parseInt(o.getAttribute("data-sa11y-annotation"),10),a=C(t.find(e=>e.id===s));(e=>{const t=E(e.getRootNode().host,"display","none");if(null!==t){L(t.previousElementSibling||t.parentNode)}})(e);const r=e.getAttribute("data-tippy-content");if(x(`${n._("NOT_VISIBLE")}`,r,a),(()=>{const e=document.querySelector("sa11y-tooltips").shadowRoot.querySelector("button");null!==e&&e.click()})(),i){const e=i.previousElementSibling,{parentNode:t}=i;return e?v(e).top-150:v(t).top-150}}else T(),o.Panel.skipButton.focus();return v(e).top-150};let Pn=-1;const Rn=()=>{const e=_.getItem("sa11y-latest-dismissed");null!==e&&(Pn=parseInt(e,10)-1),_.removeItem("sa11y-latest-dismissed");const t=i("[data-sa11y-opened]","root");t[0]&&(Pn=parseInt(t[0].getAttribute("data-sa11y-position"),10))},Dn=e=>{Rn();const t=P.Annotations.Array;Pn>=t.length-1&&(Pn=-1);const n=t[Pn+1].shadowRoot.querySelector("button"),i=On(n,e);window.scrollTo({top:i,behavior:`${o.Global.scrollBehaviour}`}),0!==n.offsetTop&&(n.focus(),n.click()),Pn+=1};function Mn(e,t){P.Annotations.Array.length&&!o.Panel.skipButton.hasAttribute("disabled")&&(!e.altKey||"KeyS"!==e.code&&"Period"!==e.code?!e.altKey||"KeyW"!==e.code&&"Comma"!==e.code||(e.preventDefault(),(e=>{Rn();const t=P.Annotations.Array;Pn<=0&&(Pn=t.length);const n=P.Annotations.Array[Pn-1].shadowRoot.querySelector("button"),i=On(n,e);window.scrollTo({top:i,behavior:`${o.Global.scrollBehaviour}`}),0!==n.offsetTop&&(n.focus(),n.click()),Pn-=1,-1===Pn&&(Pn=P.Annotations.Array.length-1)})(t)):(e.preventDefault(),Dn(t)))}let Bn,$n;function Gn(e,t){return P.Found.Images.forEach(i=>{const s="noAria"===r(i)?i.getAttribute("alt"):r(i),a=i.closest(t.imageWithinLightbox?`a[href]:not(${t.imageWithinLightbox})`:"a[href]"),c=i.getAttribute("src")?i.getAttribute("src"):i.getAttribute("srcset"),d=a?f(a,o.Exclusions.LinkSpan).textContent:"",u=t.linkIgnoreStrings?d.replace(t.linkIgnoreStrings,""):d,g=a?y(u).length:0;if("true"!==i.getAttribute("aria-hidden")&&(1!==i.height||1!==i.width||!p(i))){if(a&&"true"===a.getAttribute("aria-hidden")){const o="-1"===a.getAttribute("tabindex");return void(t.checks.HIDDEN_FOCUSABLE&&!o&&e.push({element:i,type:t.checks.HIDDEN_FOCUSABLE.type||"error",content:n.sprintf(t.checks.HIDDEN_FOCUSABLE.content||"HIDDEN_FOCUSABLE"),dismiss:I(`IMGHIDDENFOCUSABLE${c}`),dismissAll:!!t.checks.HIDDEN_FOCUSABLE.dismissAll&&"LINK_HIDDEN_FOCUSABLE",developer:t.checks.HIDDEN_FOCUSABLE.developer||!0}))}if(null===s)if(a){const o=0===g?t.checks.MISSING_ALT_LINK:t.checks.MISSING_ALT_LINK_HAS_TEXT,s=0===g?"MISSING_ALT_LINK":"MISSING_ALT_LINK_HAS_TEXT";o&&e.push({element:i,type:o.type||"error",content:n.sprintf(o.content||s),dismiss:I(`${s+c+g}`),dismissAll:!!o.dismissAll&&s,developer:o.developer||!1})}else t.checks.MISSING_ALT&&e.push({element:i,type:t.checks.MISSING_ALT.type||"error",content:n.sprintf(t.checks.MISSING_ALT.content||"MISSING_ALT"),dismiss:I(`IMGNOALT${c}`),dismissAll:!!t.checks.MISSING_ALT.dismissAll&&"MISSING_ALT",developer:t.checks.MISSING_ALT.developer||!1});else{const o=y(h(s)),r=(e=>{const o=[null,null,null];[".avif",".png",".jpg",".jpeg",".webp",".gif",".tiff",".svg",".heif",".heic","http"].forEach(t=>{if(-1!==e.toLowerCase().indexOf(t.toLowerCase()))o[0]=t;else{const t=/\b\d{2,6}\s*x\s*\d{2,6}\b/,n=e.toLowerCase().match(t);n&&([o[0]]=n)}}),(t.susAltStopWords?t.susAltStopWords.split(",").map(e=>e.trim()):n._("SUS_ALT_STOPWORDS")).forEach(t=>{const n=e.toLowerCase().indexOf(t);n>-1&&n<6&&(o[1]=t)}),n._("PLACEHOLDER_ALT_STOPWORDS").forEach(t=>{e.length===t.length&&e.toLowerCase().indexOf(t)>=0&&(o[2]=t)});const{extraPlaceholderStopWords:i}=t;i.length&&i.split(",").map(e=>e.trim()).forEach(t=>{const n=e.toLowerCase().indexOf(t);n>-1&&n<6&&(o[2]=t)});return o})(o),d=i.getAttribute("aria-label")||i.getAttribute("aria-labelledby"),p=i.getAttribute("title"),u=""===s||" "===s,m=i.closest("figure"),f=m?.querySelector("figcaption"),b=f?f.textContent.trim():"",E=t.checks.LINK_IMAGE_LONG_ALT.maxLength||250,v=t.checks.IMAGE_ALT_TOO_LONG.maxLength||250;if(d&&""===o)return void(t.checks.MISSING_ALT&&e.push({element:i,type:t.checks.MISSING_ALT.type||"error",content:n.sprintf(t.checks.MISSING_ALT.content||"MISSING_ALT"),dismiss:I(`IMGNOALTARIA${c}`),dismissAll:!!t.checks.MISSING_ALT.dismissAll&&"MISSING_ALT",developer:t.checks.MISSING_ALT.developer||!1}));if(u){const o=t.checks.IMAGE_DECORATIVE_CAROUSEL.sources,s=o?i.closest(o):"";if(s){const o=s.querySelectorAll("img"),a=1===o.length?t.checks.IMAGE_DECORATIVE:t.checks.IMAGE_DECORATIVE_CAROUSEL,r=1===o.length?"IMAGE_DECORATIVE":"IMAGE_DECORATIVE_CAROUSEL";a&&e.push({element:i,type:a.type||"warning",content:n.sprintf(a.content||r),dismiss:I(r+c),dismissAll:!!a.dismissAll&&r,developer:a.developer||!1})}else if(a){const o=0===g?t.checks.LINK_IMAGE_NO_ALT_TEXT:t.checks.LINK_IMAGE_TEXT,s=0===g?"LINK_IMAGE_NO_ALT_TEXT":"LINK_IMAGE_TEXT";o&&e.push({element:i,type:o.type||(0===g?"error":"good"),content:n.sprintf(o.content||s),dismiss:I(`${s+c+g}`),dismissAll:!!o.dismissAll&&s,developer:o.developer||!1})}else if(m){const o=f&&b.length?t.checks.IMAGE_FIGURE_DECORATIVE:t.checks.IMAGE_DECORATIVE,s=f&&b.length?"IMAGE_FIGURE_DECORATIVE":"IMAGE_DECORATIVE";o&&e.push({element:i,type:o.type||"warning",content:n.sprintf(o.content||s),dismiss:I(`${s+c+b}`),dismissAll:!!o.dismissAll&&s,developer:o.developer||!1})}else t.checks.IMAGE_DECORATIVE&&e.push({element:i,type:t.checks.IMAGE_DECORATIVE.type||"warning",content:n.sprintf(t.checks.IMAGE_DECORATIVE.content||"IMAGE_DECORATIVE"),dismiss:I(`DECIMAGE${c}`),dismissAll:!!t.checks.IMAGE_DECORATIVE.dismissAll&&"IMAGE_DECORATIVE",developer:t.checks.IMAGE_DECORATIVE.developer||!1});return}if(null!==r[0]){const s=a?t.checks.LINK_ALT_FILE_EXT:t.checks.ALT_FILE_EXT,l=a?"LINK_ALT_FILE_EXT":"ALT_FILE_EXT";s&&e.push({element:i,type:s.type||"error",content:n.sprintf(s.content||l,r[0],o),dismiss:I(`${l+c+o}`),dismissAll:!!s.dismissAll&&l,developer:s.developer||!1})}else if(null!==r[2]){const s=a?t.checks.LINK_PLACEHOLDER_ALT:t.checks.ALT_PLACEHOLDER,r=a?"LINK_PLACEHOLDER_ALT":"ALT_PLACEHOLDER";s&&e.push({element:i,type:s.type||"error",content:n.sprintf(s.content||r,o),dismiss:I(`${r+c+o}`),dismissAll:!!s.dismissAll&&r,developer:s.developer||!1})}else if(null!==r[1]){const s=a?t.checks.LINK_SUS_ALT:t.checks.SUS_ALT,l=a?"LINK_SUS_ALT":"SUS_ALT";s&&e.push({element:i,type:s.type||"warning",content:n.sprintf(s.content||l,r[1],o),dismiss:I(`${l+c+o}`),dismissAll:!!s.dismissAll&&l,developer:s.developer||!1})}else if(a?s.length>E:s.length>v){const r=a?t.checks.LINK_IMAGE_LONG_ALT:t.checks.IMAGE_ALT_TOO_LONG,l=a?"LINK_IMAGE_LONG_ALT":"IMAGE_ALT_TOO_LONG",d=A(o,600);r&&e.push({element:i,type:r.type||"warning",content:n.sprintf(r.content||l,s.length,d),dismiss:I(`${l+c+o}`),dismissAll:!!r.dismissAll&&l,developer:r.developer||!1})}else if(a){const s=0===g?t.checks.LINK_IMAGE_ALT:t.checks.LINK_IMAGE_ALT_AND_TEXT,r=0===g?"LINK_IMAGE_ALT":"LINK_IMAGE_ALT_AND_TEXT";if(s){const t=h(y(l(a))),d=0===g?n.sprintf("LINK_IMAGE_ALT",o):`${n.sprintf("LINK_IMAGE_ALT_AND_TEXT",o,t)} ${n.sprintf("ACC_NAME_TIP")}`;e.push({element:i,type:s.type||"warning",content:s.content?n.sprintf(s.content,o,t):d,dismiss:I(`${r+c+o}`),dismissAll:!!s.dismissAll&&r,developer:s.developer||!1})}}else if(m){!!f&&b.toLowerCase()===o.trim().toLowerCase()?t.checks.IMAGE_FIGURE_DUPLICATE_ALT&&e.push({element:i,type:t.checks.IMAGE_FIGURE_DUPLICATE_ALT.type||"warning",content:n.sprintf(t.checks.IMAGE_FIGURE_DUPLICATE_ALT.content||"IMAGE_FIGURE_DUPLICATE_ALT",o),dismiss:I(`FIGDUPLICATE${c}`),dismissAll:!!t.checks.IMAGE_FIGURE_DUPLICATE_ALT.dismissAll&&"IMAGE_FIGURE_DUPLICATE_ALT",developer:t.checks.IMAGE_FIGURE_DUPLICATE_ALT.developer||!1}):t.checks.IMAGE_PASS&&e.push({element:i,type:t.checks.IMAGE_PASS.type||"good",content:n.sprintf(t.checks.IMAGE_PASS.content||"IMAGE_PASS",o),dismiss:I(`FIGIMGPASS${c+o}`),dismissAll:!!t.checks.IMAGE_PASS.dismissAll&&"IMAGE_PASS",developer:t.checks.IMAGE_PASS.developer||!1})}else t.checks.IMAGE_PASS&&(i.closest('button, [role="button"]')||e.push({element:i,type:t.checks.IMAGE_PASS.type||"good",content:n.sprintf(t.checks.IMAGE_PASS.content||"IMAGE_PASS",o),dismiss:I(`IMAGEPASS${c+o}`),dismissAll:!!t.checks.IMAGE_PASS.dismissAll&&"IMAGE_PASS",developer:t.checks.IMAGE_PASS.developer||!1}));p?.toLowerCase()===s.toLowerCase()&&t.checks.DUPLICATE_TITLE&&e.push({element:i,type:t.checks.DUPLICATE_TITLE.type||"warning",content:n.sprintf(t.checks.DUPLICATE_TITLE.content||"DUPLICATE_TITLE"),inline:!0,dismiss:I(`ALTDUPLICATETITLE${o}`),dismissAll:!!t.checks.DUPLICATE_TITLE.dismissAll&&"DUPLICATE_TITLE",developer:t.checks.DUPLICATE_TITLE.developer||!1})}}}),e}function Un(e,t){const i=t.linkStopWords?[...n._("PARTIAL_ALT_STOPWORDS"),...t.linkStopWords.split(",").map(e=>e.trim())]:n._("PARTIAL_ALT_STOPWORDS"),s=e=>e.replace(/[^\w\s./]/g,"").replace(/\s+/g," ").trim(),a=(e,t)=>{const n=e.replace(/\./g,"").toLowerCase();let o=null;return t.forEach(e=>{n.length===e.length&&n.indexOf(e.toLowerCase())>=0&&(o=e)}),o},r={};return P.Found.Links.forEach(c=>{const d=function(e){let t=e.getAttribute("href");return t=y(t).toLowerCase(),t.endsWith("/")&&(t=t.slice(0,-1)),t=t.replace(/^https?:\/\/(www\.)?/,""),t=t.replace(/\.(html|php|htm|asp|aspx)$/i,""),t}(c),p=l(c,o.Exclusions.LinkSpan),u=y(t.linkIgnoreStrings?p.replace(t.linkIgnoreStrings,""):p),g=(e=>{const t=[null,null,null,null];return t[0]=a(e,i),n._("CLICK").forEach(n=>(new RegExp(`\\b${n}\\b`,"i").test(e)&&(t[1]=n),!1)),["doi.org/","dl.acm.org/","link.springer.com/","pubmed.ncbi.nlm.nih.gov/","scholar.google.com/","ieeexplore.ieee.org/","researchgate.net/publication/","sciencedirect.com/science/article/"].forEach(n=>(e.toLowerCase().indexOf(n)>=0&&(t[2]=n),!1)),["www.","http"].forEach(n=>(e.toLowerCase().startsWith(n)&&(t[3]=n),!1)),[".edu/",".com/",".net/",".org/",".us/",".ca/",".de/",".icu/",".uk/",".ru/",".info/",".top/",".xyz/",".tk/",".cn/",".ga/",".cf/",".nl/",".io/",".fr/",".pe/",".nz/",".pt/",".es/",".pl/",".ua/"].forEach(n=>(e.toLowerCase().indexOf(n)>=0&&(t[3]=n),!1)),t})(s(u)),m=1===u.length&&/[^a-zA-Z0-9]/g.test(u),A=u.match(/([<>↣↳←→↓«»↴]+)/),E=A?A[1]:null,v=c.getAttribute("title"),_="true"===c.getAttribute("aria-hidden"),L="-1"===c.getAttribute("tabindex"),T=c.querySelector(":scope [aria-labelledby], :scope [aria-label]")||c.getAttribute("aria-labelledby")||c.getAttribute("aria-label"),x=c.querySelector(":scope [aria-labelledby]")||c.getAttribute("aria-labelledby"),k=n._("NEW_WINDOW_PHRASES").some(e=>u.toLowerCase().includes(e)||b(c).toLowerCase().includes(e)),N=n._("CLICK").some(e=>new RegExp(`\\b${e}\\b`,"i").test(c.textContent)),S=["pdf","doc","docx","word","mp3","ppt","text","pptx","txt","exe","dmg","rtf","windows","macos","csv","xls","xlsx","mp4","mov","avi","zip"].concat(n._("FILE_TYPE_PHRASES")).some(e=>u.toLowerCase().includes(e)||b(c).toLowerCase().includes(e)),w=c.matches("\n a[href$='.pdf'],\n a[href$='.doc'],\n a[href$='.docx'],\n a[href$='.zip'],\n a[href$='.mp3'],\n a[href$='.txt'],\n a[href$='.exe'],\n a[href$='.dmg'],\n a[href$='.rtf'],\n a[href$='.pptx'],\n a[href$='.ppt'],\n a[href$='.xls'],\n a[href$='.xlsx'],\n a[href$='.csv'],\n a[href$='.mp4'],\n a[href$='.mov'],\n a[href$='.avi']\n "),C=u.replace(/'|"|-|\.|\s+/g,"").toLowerCase();if(!c.querySelectorAll("img").length){if(_)L||t.checks.HIDDEN_FOCUSABLE&&e.push({element:c,type:t.checks.HIDDEN_FOCUSABLE.type||"error",content:n.sprintf(t.checks.HIDDEN_FOCUSABLE.content||"HIDDEN_FOCUSABLE"),inline:!0,position:"afterend",dismiss:I(`LINKHIDDENFOCUS${d+C}`),dismissAll:!!t.checks.HIDDEN_FOCUSABLE.dismissAll&&"LINK_HIDDEN_FOCUSABLE",developer:t.checks.HIDDEN_FOCUSABLE.developer||!0});else if(!d&&""!==d||0!==u.length)if(null!==g[0])t.checks.LINK_STOPWORD&&e.push({element:c,type:t.checks.LINK_STOPWORD.type||"error",content:t.checks.LINK_STOPWORD.content?n.sprintf(t.checks.LINK_STOPWORD.content,g[0]):n.sprintf("LINK_STOPWORD",g[0])+n.sprintf("LINK_TIP"),inline:!0,position:"afterend",dismiss:I(`LINKSTOPWORD${d+C}`),dismissAll:!!t.checks.LINK_STOPWORD.dismissAll&&"LINK_STOPWORD",developer:t.checks.LINK_STOPWORD.developer||!1});else if(null!==g[2])u.length>8&&t.checks.LINK_DOI&&e.push({element:c,type:t.checks.LINK_DOI.type||"warning",content:n.sprintf(t.checks.LINK_DOI.content||"LINK_DOI"),inline:!0,dismiss:I(`LINKDOI${d+C}`),dismissAll:!!t.checks.LINK_DOI.dismissAll&&"LINK_DOI",developer:t.checks.LINK_DOI.developer||!1});else if(null!==g[3])u.length>(t.checks.LINK_URL.maxLength||40)&&t.checks.LINK_URL&&e.push({element:c,type:t.checks.LINK_URL.type||"warning",content:t.checks.LINK_URL.content?n.sprintf(t.checks.LINK_URL.content):n.sprintf("LINK_URL")+n.sprintf("LINK_TIP"),inline:!0,dismiss:I(`LINKURLNAME${d+C}`),dismissAll:!!t.checks.LINK_URL.dismissAll&&"LINK_URL",developer:t.checks.LINK_URL.developer||!1});else if(T){const r=h(u),l=f(c,o.Exclusions.LinkSpan),p=t.linkIgnoreStrings?b(l).replace(t.linkIgnoreStrings,""):b(l),g=s(p),m=a(g,i);t.checks.LINK_STOPWORD_ARIA&&null!==m?e.push({element:c,type:t.checks.LINK_STOPWORD_ARIA.type||"warning",content:t.checks.LINK_STOPWORD_ARIA.content?n.sprintf(t.checks.LINK_STOPWORD_ARIA.content,m,r):n.sprintf("LINK_STOPWORD_ARIA",m,r)+n.sprintf("LINK_TIP"),inline:!0,dismiss:I(`LINKSTOPWORDARIA${d+C}`),dismissAll:!!t.checks.LINK_STOPWORD_ARIA.dismissAll&&" LINK_STOPWORD_ARIA",developer:t.checks.LINK_STOPWORD_ARIA.developer||!0}):t.checks.LINK_LABEL&&e.push({element:c,type:t.checks.LINK_LABEL.type||"good",content:t.checks.LINK_LABEL.content?n.sprintf(t.checks.LINK_LABEL.content,r):`${n.sprintf("ACC_NAME",r)} ${n.sprintf("ACC_NAME_TIP")}`,inline:!0,position:"afterend",dismiss:I(`LINKGOOD${d+C}`),dismissAll:!!t.checks.LINK_LABEL.dismissAll&&"LINK_LABEL",developer:t.checks.LINK_LABEL.developer||!1});const y=O(c);t.checks.LABEL_IN_NAME&&y&&0!==c.textContent.length&&e.push({element:c,type:t.checks.LABEL_IN_NAME.type||"warning",content:n.sprintf(t.checks.LABEL_IN_NAME.content||"LABEL_IN_NAME",r),inline:!0,position:"afterend",dismiss:I(`LINKLABELNAME${d+C}`),dismissAll:!!t.checks.LABEL_IN_NAME.dismissAll&&"BTN_LABEL_IN_NAME",developer:t.checks.LABEL_IN_NAME.developer||!0})}else E?t.checks.LINK_SYMBOLS&&e.push({element:c,type:t.checks.LINK_SYMBOLS.type||"warning",content:n.sprintf(t.checks.LINK_SYMBOLS.content||"LINK_SYMBOLS",E),inline:!0,dismiss:I(`LINKSYMBOL${d+C}`),dismissAll:!!t.checks.LINK_SYMBOLS.dismissAll&&"LINK_SYMBOLS",developer:t.checks.LINK_SYMBOLS.developer||!1}):m&&t.checks.LINK_EMPTY&&e.push({element:c,type:t.checks.LINK_EMPTY.type||"error",content:n.sprintf(t.checks.LINK_EMPTY.content||"LINK_EMPTY"),inline:!0,position:"afterend",dismiss:I(`LINKCHAR${d}`),dismissAll:!!t.checks.LINK_EMPTY.dismissAll&&"LINK_EMPTY",developer:t.checks.LINK_EMPTY.developer||!1});else x?t.checks.LINK_EMPTY_LABELLEDBY&&e.push({element:c,type:t.checks.LINK_EMPTY_LABELLEDBY.type||"error",content:n.sprintf(t.checks.LINK_EMPTY_LABELLEDBY.content||"LINK_EMPTY_LABELLEDBY"),inline:!0,position:"afterend",dismiss:I(`LINKEMPTYLABELLEDBY${d}`),dismissAll:!!t.checks.LINK_EMPTY_LABELLEDBY.dismissAll&&"LINK_EMPTY_LABELLEDBY",developer:t.checks.LINK_EMPTY_LABELLEDBY.developer||!0}):c.children.length?t.checks.LINK_EMPTY_NO_LABEL&&e.push({element:c,type:t.checks.LINK_EMPTY_NO_LABEL.type||"error",content:n.sprintf(t.checks.LINK_EMPTY_NO_LABEL.content||"LINK_EMPTY_NO_LABEL"),inline:!0,position:"afterend",dismiss:I(`LINKEMPTYNOLABEL${d}`),dismissAll:!!t.checks.LINK_EMPTY_NO_LABEL.dismissAll&&"LINK_EMPTY_NO_LABEL",developer:t.checks.LINK_EMPTY_NO_LABEL.developer||!1}):t.checks.LINK_EMPTY&&e.push({element:c,type:t.checks.LINK_EMPTY.type||"error",content:n.sprintf(t.checks.LINK_EMPTY.content||"LINK_EMPTY"),inline:!0,position:"afterend",dismiss:I(`LINKEMPTY${d}`),dismissAll:!!t.checks.LINK_EMPTY.dismissAll&&"LINK_EMPTY",developer:t.checks.LINK_EMPTY.developer||!1});(null!==g[1]||N)&&t.checks.LINK_CLICK_HERE&&e.push({element:c,type:t.checks.LINK_CLICK_HERE.type||"warning",content:t.checks.LINK_CLICK_HERE.content?n.sprintf(t.checks.LINK_CLICK_HERE.content):n.sprintf("LINK_CLICK_HERE")+n.sprintf("LINK_TIP"),inline:!0,dismiss:I(`LINKCLICKHERE${d+C}`),dismissAll:!!t.checks.LINK_CLICK_HERE.dismissAll&&"LINK_CLICK_HERE",developer:t.checks.LINK_CLICK_HERE.developer||!1}),0!==b(c).length&&v?.toLowerCase()===u.toLowerCase()&&t.checks.DUPLICATE_TITLE&&e.push({element:c,type:t.checks.DUPLICATE_TITLE.type||"warning",content:n.sprintf(t.checks.DUPLICATE_TITLE.content||"DUPLICATE_TITLE"),inline:!0,dismiss:I(`LINKDUPLICATETITLE${d+C}`),dismissAll:!!t.checks.DUPLICATE_TITLE.dismissAll&&"DUPLICATE_TITLE",developer:t.checks.DUPLICATE_TITLE.developer||!1})}if(t.linksAdvancedPlugin&&0!==C.length){if(r[C]&&!r[d]){if(t.checks.LINK_IDENTICAL_NAME){const o=h(u);e.push({element:c,type:t.checks.LINK_IDENTICAL_NAME.type||"warning",content:t.checks.LINK_IDENTICAL_NAME.content?n.sprintf(t.checks.LINK_IDENTICAL_NAME.content,o):`${n.sprintf("LINK_IDENTICAL_NAME",o)} ${n.sprintf("ACC_NAME_TIP")}`,inline:!0,dismiss:I(`LINKSEEN${d+C}`),dismissAll:!!t.checks.LINK_IDENTICAL_NAME.dismissAll&&"LINK_IDENTICAL_NAME",developer:t.checks.LINK_IDENTICAL_NAME.developer||!1})}}else r[C]=!0,r[d]=!0;"_blank"!==c.getAttribute("target")?.toLowerCase()||w||k||t.checks.LINK_NEW_TAB&&e.push({element:c,type:t.checks.LINK_NEW_TAB.type||"warning",content:n.sprintf(t.checks.LINK_NEW_TAB.content||"LINK_NEW_TAB"),inline:!0,dismiss:I(`LINKNEWTAB${d+C}`),dismissAll:!!t.checks.LINK_NEW_TAB.dismissAll&&"LINK_NEW_TAB",developer:t.checks.LINK_NEW_TAB.developer||!1}),w&&!S&&t.checks.LINK_FILE_EXT&&e.push({element:c,type:t.checks.LINK_FILE_EXT.type||"warning",content:n.sprintf(t.checks.LINK_FILE_EXT.content||"LINK_FILE_EXT"),inline:!0,dismiss:I(`LINKEXT${d+C}`),dismissAll:!!t.checks.LINK_FILE_EXT.dismissAll&&"LINK_FILE_EXT",developer:t.checks.LINK_FILE_EXT.developer||!1})}}),e}function Hn(e,t){if(t.checks.QA_BAD_LINK&&P.Found.CustomErrorLinks.forEach(o=>{e.push({element:o,type:t.checks.QA_BAD_LINK.type||"error",content:n.sprintf(t.checks.QA_BAD_LINK.content||"QA_BAD_LINK",o),inline:!0,dismiss:I(o.tagName+o.textContent),dismissAll:!!t.checks.QA_BAD_LINK.dismissAll&&"QA_BAD_LINK",developer:t.checks.QA_BAD_LINK.developer||!1})}),t.checks.QA_STRONG_ITALICS&&P.Found.StrongItalics.forEach(o=>{const i=b(o);0!==i.length&&i.length>400&&e.push({element:o.parentNode,type:t.checks.QA_STRONG_ITALICS.type||"warning",content:n.sprintf(t.checks.QA_STRONG_ITALICS.content||"QA_STRONG_ITALICS"),dismiss:I(o.tagName+o.textContent),dismissAll:!!t.checks.QA_STRONG_ITALICS.dismissAll&&"QA_STRONG_ITALICS",developer:t.checks.QA_STRONG_ITALICS.developer||!1})}),P.Found.Links.forEach(i=>{if(i.hasAttribute("href")){const s=i.getAttribute("href"),a=i.matches(o.Global.documentSources),r=i.matches('a[href$=".pdf"], a[href*=".pdf?"]');if(t.checks.QA_IN_PAGE_LINK){const o="button"===i.getAttribute("role")||i.hasAttribute("aria-haspopup")||i.hasAttribute("aria-expanded")||i.hasAttribute("onclick"),a=0!==b(i).length;if((s.startsWith("#")||""===s)&&!o&&a){const o=s.substring(1),a=i.getAttribute("aria-controls");document.getElementById(o)||document.getElementById(decodeURIComponent(o))||document.getElementById(encodeURIComponent(o))||document.getElementById(a)||document.querySelector(`a[name="${o}"]`)||e.push({element:i,type:t.checks.QA_IN_PAGE_LINK.type||"error",content:n.sprintf(t.checks.QA_IN_PAGE_LINK.content||"QA_IN_PAGE_LINK"),inline:!0,dismiss:I(`QAINPAGE${s}`),dismissAll:!!t.checks.QA_IN_PAGE_LINK.dismissAll&&"QA_IN_PAGE_LINK",developer:t.checks.QA_IN_PAGE_LINK.developer||!1})}}t.checks.QA_DOCUMENT&&a?e.push({element:i,type:t.checks.QA_DOCUMENT.type||"warning",content:n.sprintf(t.checks.QA_DOCUMENT.content||"QA_DOCUMENT"),inline:!0,dismiss:I(`DOC${s}`),dismissAll:!!t.checks.QA_DOCUMENT.dismissAll&&"QA_DOCUMENT",developer:t.checks.QA_DOCUMENT.developer||!1}):t.checks.QA_PDF&&r&&e.push({element:i,type:t.checks.QA_PDF.type||"warning",content:n.sprintf(t.checks.QA_PDF.content||"QA_PDF"),inline:!0,dismiss:I(`PDF${s}`),dismissAll:!!t.checks.QA_PDF.dismissAll&&"QA_PDF",developer:t.checks.QA_PDF.developer||!1})}}),t.checks.QA_BLOCKQUOTE&&P.Found.Blockquotes.forEach(o=>{const i=b(o);if(0!==i.length&&i.length<25){const s=h(i);e.push({element:o,type:t.checks.QA_BLOCKQUOTE.type||"warning",content:n.sprintf(t.checks.QA_BLOCKQUOTE.content||"QA_BLOCKQUOTE",s),dismiss:I(`BLOCKQUOTE${s}`),dismissAll:!!t.checks.QA_BLOCKQUOTE.dismissAll&&"QA_BLOCKQUOTE",developer:t.checks.QA_BLOCKQUOTE.developer||!1})}}),P.Found.Tables.forEach(o=>{if(!1===p(o)){const i=o.querySelectorAll("th"),s=o.querySelectorAll("h1, h2, h3, h4, h5, h6"),a=I(`TABLE${o.textContent}`);t.checks.TABLES_MISSING_HEADINGS&&0===i.length&&e.push({element:o,type:t.checks.TABLES_MISSING_HEADINGS.type||"error",content:n.sprintf(t.checks.TABLES_MISSING_HEADINGS.content||"TABLES_MISSING_HEADINGS"),dismiss:a,dismissAll:!!t.checks.TABLES_MISSING_HEADINGS.dismissAll&&"TABLES_MISSING_HEADINGS",developer:t.checks.TABLES_MISSING_HEADINGS.developer||!1}),t.checks.TABLES_SEMANTIC_HEADING&&s.length>0&&s.forEach(o=>{e.push({element:o,type:t.checks.TABLES_SEMANTIC_HEADING.type||"error",content:n.sprintf(t.checks.TABLES_SEMANTIC_HEADING.content||"TABLES_SEMANTIC_HEADING"),dismiss:a,dismissAll:!!t.checks.TABLES_SEMANTIC_HEADING.dismissAll&&"TABLES_SEMANTIC_HEADING",developer:t.checks.TABLES_SEMANTIC_HEADING.developer||!1})}),i.forEach(o=>{t.checks.TABLES_EMPTY_HEADING&&0===o.textContent.trim().length&&e.push({element:o,type:t.checks.TABLES_EMPTY_HEADING.type||"error",content:n.sprintf(t.checks.TABLES_EMPTY_HEADING.content||"TABLES_EMPTY_HEADING"),position:"afterbegin",dismiss:a,dismissAll:!!t.checks.TABLES_EMPTY_HEADING.dismissAll&&"TABLES_EMPTY_HEADING",developer:t.checks.TABLES_EMPTY_HEADING.developer||!1})})}}),t.checks.QA_FAKE_HEADING){const o=(o,i)=>{e.push({element:o,type:t.checks.QA_FAKE_HEADING.type||"warning",content:n.sprintf(t.checks.QA_FAKE_HEADING.content||"QA_FAKE_HEADING",i),dismiss:I(`BOLD${i}`),inline:!0,dismissAll:!!t.checks.QA_FAKE_HEADING.dismissAll&&"QA_FAKE_HEADING",developer:t.checks.QA_FAKE_HEADING.developer||!1})},i=e=>{const t=e.previousElementSibling;if(!t)return!1;return["H1","H2","H3","H4","H5","H6"].includes(t.tagName)},s='h1, h2, h3, h4, h5, h6, [role="heading"][aria-level], blockquote, table',a=e=>{const t=getComputedStyle(e).fontSize.replace("px",""),n=b(e),a=null===n.match(/[.;?!"]/),r=n.length>=4&&n.length<=120;if(t>=24&&!e.closest(s)&&r&&a&&!i(e)){const t=h(n);o(e,t)}},r=e=>{if(/^(|)/i.test(e.innerHTML.trim())&&!e.closest(s)){const t=e.querySelector("strong, b"),n=b(t),i=null===n.match(/[.:;?!"']/);if(n.length>=3&&n.length<=120&&i){const i=f(e,["strong","b"]).textContent.trim().length;if(0!==i&&i<=250)return;const s=h(n);o(t,s)}}};P.Found.Paragraphs.forEach(e=>{a(e),r(e)})}if(t.checks.QA_FAKE_LIST){const o=new RegExp(/(([023456789][\d\s])|(1\d))/,""),i=new RegExp(/(^[aA1αаΑ]|[^\p{Alphabetic}\s])[-\s.)]/,"u"),s=new RegExp(/\p{Extended_Pictographic}/,"u"),a=["a","A","α","Α","а","А","1"],r=/[([{#]/,l={2:"1",b:"a",B:"A","β":"α","Β":"Α","б":"а","Б":"А"},c=e=>e.replace(/^b|^B|^б|^Б|^β|^В|^2/,e=>l[e]);let d="",p="",u=!1;P.Found.Paragraphs.forEach((l,h)=>{let g=!1,m=!1;p=p||b(l).replace("(","");const f=p.substring(0,2),y=f.match(i),A=f.match(o),E=f.match(s),v=r.test(f.charAt(0));if(f.length>0&&f!==d&&!A&&(y||E||v)){const o=P.Found.Paragraphs[h+1];if(o){if(g=b(o).replace("(","").substring(0,2),a.includes(g?.toLowerCase().trim()))return;const e=c(g);y?"A "!==f&&f===e&&(m=!0):E&&!u&&e.match(s)&&(m=!0,u=!0)}if(!m){let e=l?.querySelector("br")?.nextSibling?.nodeValue;if(e){e=e.replace(/<\/?[^>]+(>|$)/g,"").trim().substring(0,2);(r.test(e.charAt(0))||f===c(e)||!u&&e.match(s))&&(m=!0)}}m?(e.push({element:l,type:t.checks.QA_FAKE_LIST.type||"warning",content:n.sprintf(t.checks.QA_FAKE_LIST.content||"QA_FAKE_LIST",f),dismiss:I(`LIST${l.textContent}`),dismissAll:!!t.checks.QA_FAKE_LIST.dismissAll&&"QA_FAKE_LIST",developer:t.checks.QA_FAKE_LIST.developer||!1}),d=f):d=""}p=g?"":g})}if(t.checks.QA_UPPERCASE){const o=o=>{let i="";"LI"===o.tagName?o.childNodes.forEach(e=>{3===e.nodeType&&(i+=e.textContent)}):i=b(o);const s=i.match(/([A-Z]{2,}[ ])([A-Z]{2,}[ ])([A-Z]{2,}[ ])([A-Z]{2,})/g);s&&s[0].length>10&&e.push({element:o,type:t.checks.QA_UPPERCASE.type||"warning",content:n.sprintf(t.checks.QA_UPPERCASE.content||"QA_UPPERCASE"),dismiss:I(`UPPERCASE${i}`),dismissAll:!!t.checks.QA_UPPERCASE.dismissAll&&"QA_UPPERCASE",developer:t.checks.QA_UPPERCASE.developer||!1})};P.Found.Paragraphs.forEach(e=>o(e)),P.Found.Headings.forEach(e=>o(e)),P.Found.Lists.forEach(e=>o(e)),P.Found.Blockquotes.forEach(e=>o(e))}const i=o=>{const i=getComputedStyle(o),{textDecorationLine:s,textAlign:a,fontSize:r}=i;!t.checks.QA_UNDERLINE||"underline"!==s||o.closest("[onclick]")||o.closest("a[href]")||o.closest("ABBR")||(o=>{e.push({element:o,type:t.checks.QA_UNDERLINE.type||"warning",content:n.sprintf(t.checks.QA_UNDERLINE.content||"QA_UNDERLINE"),inline:!0,dismiss:I(`UNDERLINE${o.textContent}`),dismissAll:!!t.checks.QA_UNDERLINE.dismissAll&&"QA_UNDERLINE",developer:t.checks.QA_UNDERLINE.developer||!1})})(o);const l=t.checks.QA_SMALL_TEXT.fontSize||10,c=parseFloat(r),d=!((o.parentElement?parseFloat(getComputedStyle(o.parentElement).fontSize):null)===c)&&c>1&&c<=l;t.checks.QA_SMALL_TEXT&&d&&(o=>{e.push({element:o,type:t.checks.QA_SMALL_TEXT.type||"warning",content:n.sprintf(t.checks.QA_SMALL_TEXT.content||"QA_SMALL_TEXT"),dismiss:I(`SMALL${o.textContent}`),dismissAll:!!t.checks.QA_SMALL_TEXT.dismissAll&&"QA_SMALL_TEXT",developer:t.checks.QA_SMALL_TEXT.developer||!1})})(o);const p=(o.parentElement?getComputedStyle(o.parentElement).textAlign:null)===a;t.checks.QA_JUSTIFY&&"justify"===a&&!p&&(o=>{e.push({element:o,type:t.checks.QA_JUSTIFY.type||"warning",content:n.sprintf(t.checks.QA_JUSTIFY.content||"QA_JUSTIFY"),dismiss:I(`JUSTIFIED${o.textContent}`),dismissAll:!!t.checks.QA_JUSTIFY.dismissAll&&"QA_JUSTIFY",developer:t.checks.QA_JUSTIFY.developer||!1})})(o)};if(t.checks.QA_UNDERLINE||t.checks.QA_JUSTIFY||t.checks.QA_SMALL_TEXT)for(let e=0;e3===e.nodeType).map(e=>e.textContent).join("").trim().length&&i(t)}return t.checks.QA_SUBSCRIPT&&P.Found.Subscripts.forEach(o=>{const i=b(o);i.length>=80&&e.push({element:o,type:t.checks.QA_SUBSCRIPT.type||"warning",content:n.sprintf(t.checks.QA_SUBSCRIPT.content||"QA_SUBSCRIPT"),inline:!0,dismiss:I(o.tagName+i),dismissAll:!!t.checks.QA_SUBSCRIPT.dismissAll&&"QA_SUBSCRIPT",developer:t.checks.QA_SUBSCRIPT.developer||!1})}),t.checks.QA_NESTED_COMPONENTS&&P.Found.NestedComponents.forEach(o=>{const i=t.checks.QA_NESTED_COMPONENTS.sources||'[role="tablist"], details';o.querySelector(i)&&e.push({element:o,type:t.checks.QA_NESTED_COMPONENTS.type||"warning",content:n.sprintf(t.checks.QA_NESTED_COMPONENTS.content||"QA_NESTED_COMPONENTS"),dismiss:I(`NESTED${o.textContent}`),dismissAll:!!t.checks.QA_NESTED_COMPONENTS.dismissAll&&"QA_NESTED_COMPONENTS",developer:t.checks.QA_NESTED_COMPONENTS.developer||!1})}),e}e.Lang=n,e.Sa11y=class{constructor(e){const s={...t,...e,checks:{...t.checks,...e.checks}};this.initialize=()=>{var e;(()=>{const{doNotRun:e}=s;return e.trim().length>0&&document.querySelector(e)})()||(customElements.define("sa11y-heading-label",Cn),customElements.define("sa11y-heading-anchor",wn),customElements.define("sa11y-annotation",Nn),customElements.define("sa11y-tooltips",xn),customElements.define("sa11y-panel-tooltips",kn),customElements.define("sa11y-control-panel",V),customElements.define("sa11y-console-error",Q),o.initializeGlobal(s),o.initializeReadability(s),o.initializeExclusions(s),s.developerChecksOnByDefault&&(null===_.getItem("sa11y-developer")||s.checkAllHideToggles)&&_.setItem("sa11y-developer","On"),e=()=>{if(s.headless)this.checkAll(),_.removeItem("sa11y-dismissed");else{const i=_.getItem("sa11y-position"),{panelPosition:a}=s;!s.showMovePanelToggle||i&&!i.includes("top")==!a.includes("top")||_.setItem("sa11y-position",a);const r=new V;document.body.appendChild(r),function(e,t){o.Global.showMovePanelToggle&&(o.Panel.movePanelToggle.onclick=async()=>{const e=_.getItem("sa11y-position"),[t,n]=e.includes("top")?["top-right","top-left"]:["right","left"],i=e===t?n:t;_.setItem("sa11y-position",i),[t,n].forEach(e=>{o.Panel.toggle.classList.replace(e,i),o.Panel.panel.classList.replace(e,i)}),o.Panel.movePanelToggle.setAttribute("aria-pressed",e===t?"true":"false")}),o.Global.developerPlugin?o.Panel.developerToggle.onclick=async()=>{"On"===_.getItem("sa11y-developer")?(_.setItem("sa11y-developer","Off"),o.Panel.developerToggle.textContent=`${n._("OFF")}`,o.Panel.developerToggle.setAttribute("aria-pressed","false"),t(!1),await e()):(_.setItem("sa11y-developer","On"),o.Panel.developerToggle.textContent=`${n._("ON")}`,o.Panel.developerToggle.setAttribute("aria-pressed","true"),t(!1),await e())}:_.setItem("sa11y-developer","Off"),o.Readability.Plugin&&(o.Panel.readabilityToggle.onclick=async()=>{"On"===_.getItem("sa11y-readability")?(_.setItem("sa11y-readability","Off"),o.Panel.readabilityToggle.textContent=`${n._("OFF")}`,o.Panel.readabilityToggle.setAttribute("aria-pressed","false"),o.Panel.readability.classList.remove("active"),t(!1),await e()):(_.setItem("sa11y-readability","On"),o.Panel.readabilityToggle.textContent=`${n._("ON")}`,o.Panel.readabilityToggle.setAttribute("aria-pressed","true"),o.Panel.readability.classList.add("active"),t(!1),await e())},"On"===_.getItem("sa11y-readability")&&o.Panel.readability.classList.add("active"));const i=window.matchMedia("(prefers-color-scheme: dark)"),{themeToggle:s}=o.Panel,{html:a}=o.Global,r=e=>{a.setAttribute("data-sa11y-theme",e),_.setItem("sa11y-theme",e);const t=s.querySelector("span").classList;t.toggle("moon-icon","light"===e),t.toggle("sun-icon","dark"===e),s.setAttribute("aria-pressed","dark"===e?"true":"false")},l=_.getItem("sa11y-theme")||(i.matches?"dark":"light");r(l),i.addEventListener("change",()=>{r(i.matches?"dark":"light")}),s.onclick=()=>{const e=_.getItem("sa11y-theme")||(i.matches?"dark":"light");r("dark"===e?"light":"dark")},o.Global.colourFilterPlugin&&o.Panel.colourFilterSelect.addEventListener("change",async()=>{const i=parseInt(o.Panel.colourFilterSelect.value,10),s=["protanopia","deuteranopia","tritanopia","monochromacy"],a=[n._("RED_EYE"),n._("GREEN_EYE"),n._("BLUE_EYE"),n._("MONO_EYE")];i>=1&&i<=4?window.matchMedia("(forced-colors: active)").matches?x(n._("COLOUR_FILTER_HIGH_CONTRAST")):(o.Root.areaToCheck.setAttribute("data-sa11y-filter",s[i-1]),o.Panel.colourFilterIcon.setAttribute("aria-label",a[i-1]),k(["data-sa11y-error","data-sa11y-warning","data-sa11y-good","data-sa11y-error-inline","data-sa11y-warning-inline","data-sa11y-overflow"],"document"),N(["sa11y-annotation","sa11y-tooltips","sa11y-heading-label"],"document"),o.Panel.skipButton.disabled=!0,o.Panel.pageIssues.classList.remove("active"),o.Panel.settingsContent.classList.add("hide-settings-border"),o.Panel.colourFilterSelect.classList.add("active"),o.Panel.colourPanel.classList.add("active"),o.Panel.colourPanel.setAttribute("data-colour",s[i-1]),o.Panel.content.hidden=!0):(o.Root.areaToCheck.removeAttribute("data-sa11y-filter"),o.Panel.settingsContent.classList.remove("hide-settings-border"),o.Panel.colourFilterSelect.classList.remove("active"),o.Panel.colourPanel.classList.remove("active"),o.Panel.colourPanel.removeAttribute("data-colour"),o.Panel.content.hidden=!1,t(!1),await e())})}(this.checkAll,this.resetAll),function(){o.Panel.outlineToggle.addEventListener("click",()=>{"true"===o.Panel.outlineToggle.getAttribute("aria-expanded")?q():(j(),ee(),Z()),o.Panel.outlineHeader.focus()}),"Opened"===_.getItem("sa11y-outline")&&j(),o.Global.showImageOutline&&(o.Panel.imagesToggle.addEventListener("click",()=>{"true"===o.Panel.imagesToggle.getAttribute("aria-expanded")?Z():(X(),q(),ee()),o.Panel.imagesHeader.focus()}),"Opened"===_.getItem("sa11y-images")&&X()),o.Panel.settingsToggle.addEventListener("click",()=>{"true"===o.Panel.settingsToggle.getAttribute("aria-expanded")?ee():(J(),q(),Z()),o.Panel.settingsHeader.focus()}),"Opened"===_.getItem("sa11y-settings")&&J(),o.Panel.skipToPageIssues.addEventListener("click",()=>{o.Panel.pageIssuesHeader.focus()});const e=o.Panel.panel.querySelectorAll("[role=tab]");if(0!==e.length){let t=Array.from(e).findIndex(e=>e.classList.contains("active"));e.forEach(n=>{n.addEventListener("keydown",n=>{"ArrowRight"===n.key?(n.preventDefault(),t=(t+1)%e.length,e[t].focus()):"ArrowLeft"===n.key&&(n.preventDefault(),t=(t-1+e.length)%e.length,e[t].focus())})})}}(),function(){if(o.Global.colourFilterPlugin&&!1===o.Global.headless){const e=document.createElement("div");e.id="sa11y-colour-filters",e.setAttribute("aria-hidden","true"),e.innerHTML='\n \x3c!-- DaltonLens SVG filters to simulate color vision deficiencies --\x3e\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n ',document.body.appendChild(e)}}(),D(s.detectSPArouting,this.checkAll,this.resetAll),this.panelTooltips=new kn,document.body.appendChild(this.panelTooltips),o.Panel.toggle.disabled=!1,setTimeout(()=>{this.resetAll(),this.checkAll()},s.delayCheck),s.delayCheck>=700&&(o.Panel.toggle.disabled=!0),e=this.checkAll,t=this.resetAll,o.Panel.toggle.addEventListener("click",n=>{"Opened"===_.getItem("sa11y-panel")?(n.preventDefault(),_.setItem("sa11y-panel","Closed"),o.Panel.toggle.classList.remove("on"),o.Panel.toggle.setAttribute("aria-expanded","false"),t(),0===o.Panel.notifCount.innerHTML.trim().length?o.Panel.notifBadge.style.display="none":o.Panel.notifBadge.style.display="flex"):(n.preventDefault(),_.setItem("sa11y-panel","Opened"),o.Panel.toggle.classList.add("on"),o.Panel.toggle.setAttribute("aria-expanded","true"),e(),S(o.Panel.outlineList,o.Panel.outlineContent))}),"Opened"===_.getItem("sa11y-panel")&&(o.Panel.toggle.classList.add("on"),o.Panel.toggle.setAttribute("aria-expanded","true"),o.Panel.panel.style.transform=""),document.onkeydown=e=>{const t=e||window.event;t.altKey&&"KeyA"===t.code&&(o.Panel.toggle.click(),o.Panel.toggle.focus())}}var e,t},"complete"===document.readyState?e():window.addEventListener("load",e))},this.checkAll=async(e=s.checkRoot,t=s.readabilityRoot)=>{try{this.results=[],this.headingOutline=[],this.imageOutline=[],this.errorCount=0,this.warningCount=0,this.customChecksRunning=!1;document.querySelector(e)||!1!==s.headless||x(`${n.sprintf("MISSING_ROOT",e)}`),o.initializeRoot(e,t),function(e){if(e.autoDetectShadowComponents){const t=o.Exclusions.Sa11yElements,n=document.querySelector(e.checkRoot);(n?Array.from(n.querySelectorAll(`*:not(${t})`)):Array.from(document.body.querySelectorAll(`*:not(${t})`))).forEach(e=>{e.shadowRoot&&"open"===e.shadowRoot.mode&&(e.setAttribute("data-sa11y-has-shadow-root",""),R(e))})}else e.shadowComponents&&document.querySelectorAll(e.shadowComponents).forEach(e=>{e.setAttribute("data-sa11y-has-shadow-root",""),R(e)})}(s),P.initializeElements(s),function(e,t,i){let s,a="";P.Found.Headings.forEach((r,d)=>{const p=l(r,o.Exclusions.HeaderSpan),u=y(t.headerIgnoreStrings?p.replace(t.headerIgnoreStrings,""):p),g=h(u),m=o.Root.areaToCheck.contains(r),f=o.Root.areaToCheck.contains(r.getRootNode().host),b=m||f,v=parseInt(r.getAttribute("aria-level")||r.tagName.slice(1),10),_=u.length,L=t.checks.HEADING_LONG.maxLength||160;let T=null,x=null,k=null,N=null;if(0===_)if(r.querySelectorAll("img").length){const e=r.querySelector("img")?.getAttribute("alt");!r.querySelector("img")||e&&""!==e.trim()||t.checks.HEADING_EMPTY_WITH_IMAGE&&(T=t.checks.HEADING_EMPTY_WITH_IMAGE.type||"error",x=n.sprintf(t.checks.HEADING_EMPTY_WITH_IMAGE.content||"HEADING_EMPTY_WITH_IMAGE",v),k=t.checks.HEADING_EMPTY_WITH_IMAGE.developer||!1,N=!!t.checks.HEADING_EMPTY_WITH_IMAGE.dismissAll&&"HEADING_EMPTY_WITH_IMAGE")}else t.checks.HEADING_EMPTY&&(T=t.checks.HEADING_EMPTY.type||"error",x=n.sprintf(t.checks.HEADING_EMPTY.content||"HEADING_EMPTY",v),k=t.checks.HEADING_EMPTY.developer||!1,N=!!t.checks.HEADING_EMPTY.dismissAll&&"HEADING_EMPTY");else v-s>1&&0!==d?t.checks.HEADING_SKIPPED_LEVEL&&(T=t.checks.HEADING_SKIPPED_LEVEL.type||"error",x=n.sprintf(t.checks.HEADING_SKIPPED_LEVEL.content||"HEADING_SKIPPED_LEVEL",s,v,A(g,60),A(a,60),s+1),k=t.checks.HEADING_SKIPPED_LEVEL.developer||!1,N=!!t.checks.HEADING_SKIPPED_LEVEL.dismissAll&&"HEADING_SKIPPED_LEVEL"):0===d&&1!==v&&2!==v?t.checks.HEADING_FIRST&&(T=t.checks.HEADING_FIRST.type||"error",x=n.sprintf(t.checks.HEADING_FIRST.content||"HEADING_FIRST"),k=t.checks.HEADING_FIRST.developer||!1,N=!!t.checks.HEADING_FIRST.dismissAll&&"HEADING_FIRST"):_>L&&t.checks.HEADING_LONG&&(T=t.checks.HEADING_LONG.type||"warning",x=n.sprintf(t.checks.HEADING_LONG.content||"HEADING_LONG",L,_),k=t.checks.HEADING_LONG.developer||!1,N=!!t.checks.HEADING_LONG.dismissAll&&"HEADING_LONG");x&&T&&e.push({element:r,type:T,content:x,dismiss:I(`H${v+g}`),dismissAll:N,isWithinRoot:b,developer:k}),s=v,a=g;const S=c(r),w=E(r,"display","none");i.push({element:r,headingLevel:v,text:g,index:d,type:T,hidden:S,visibleParent:w,dismiss:I(`H${v+g}`),isWithinRoot:b})}),t.checks.HEADING_MISSING_ONE&&0===P.Found.HeadingOne.length&&e.push({type:t.checks.HEADING_MISSING_ONE.type||"warning",content:n.sprintf(t.checks.HEADING_MISSING_ONE.content||"HEADING_MISSING_ONE"),dismiss:"MISSINGH1",developer:t.checks.HEADING_MISSING_ONE.developer||!1})}(this.results,s,this.headingOutline),Un(this.results,s),Gn(this.results,s),function(e,t){t.formLabelsPlugin&&P.Found.Inputs.forEach(o=>{const i="true"===o.getAttribute("aria-hidden"),s="-1"===o.getAttribute("tabindex");if(p(o)||i&&s)return;const a=y(l(o)),r=o.getAttribute("alt"),c=o.getAttribute("type"),d=o.getAttribute("title"),u=o.getAttribute("aria-label")||o.getAttribute("aria-labelledby");if("submit"===c||"button"===c||"hidden"===c)return;if("image"===c)return void(!t.checks.LABELS_MISSING_IMAGE_INPUT||r&&""!==r.trim()||u||d||e.push({element:o,type:t.checks.LABELS_MISSING_IMAGE_INPUT.type||"error",content:n.sprintf(t.checks.LABELS_MISSING_IMAGE_INPUT.content||"LABELS_MISSING_IMAGE_INPUT"),dismiss:I(`INPUTIMAGE${c+a}`),dismissAll:!!t.checks.LABELS_MISSING_IMAGE_INPUT.dismissAll&&"LABELS_MISSING_IMAGE_INPUT",developer:t.checks.LABELS_MISSING_IMAGE_INPUT.developer||!0}));if("reset"===c)return void(t.checks.LABELS_INPUT_RESET&&e.push({element:o,type:t.checks.LABELS_INPUT_RESET.type||"warning",content:n.sprintf(t.checks.LABELS_INPUT_RESET.content||"LABELS_INPUT_RESET"),dismiss:I(`INPUTRESET${c+a}`),dismissAll:!!t.checks.LABELS_INPUT_RESET.dismissAll&&"LABELS_INPUT_RESET",developer:t.checks.LABELS_INPUT_RESET.developer||!1}));if(u||d){if(0===a.length)t.checks.LABELS_MISSING_LABEL&&e.push({element:o,type:t.checks.LABELS_MISSING_LABEL.type||"error",content:n.sprintf(t.checks.LABELS_MISSING_LABEL.content||"LABELS_MISSING_LABEL"),dismiss:I(`INPUTMISSING${c+a}`),dismissAll:!!t.checks.LABELS_MISSING_LABEL.dismissAll&&"LABELS_MISSING_LABEL",developer:t.checks.LABELS_MISSING_LABEL.developer||!0});else if(t.checks.LABELS_ARIA_LABEL_INPUT){const i=h(a);e.push({element:o,type:t.checks.LABELS_ARIA_LABEL_INPUT.type||"warning",content:t.checks.LABELS_ARIA_LABEL_INPUT.content?n.sprintf(t.checks.LABELS_ARIA_LABEL_INPUT.content,i):`${n.sprintf("LABELS_ARIA_LABEL_INPUT",i)} ${n.sprintf("ACC_NAME_TIP")}`,dismiss:I(`INPUTARIA${c+a}`),dismissAll:!!t.checks.LABELS_ARIA_LABEL_INPUT.dismissAll&&"LABELS_ARIA_LABEL_INPUT",developer:t.checks.LABELS_ARIA_LABEL_INPUT.developer||!0})}return}const g=o.closest("label"),m=g?y(l(g)):"";if(g&&m.length)return;const f=o.getAttribute("id");f?P.Found.Labels.some(e=>e.getAttribute("for")===f)||t.checks.LABELS_NO_FOR_ATTRIBUTE&&e.push({element:o,type:t.checks.LABELS_NO_FOR_ATTRIBUTE.type||"error",content:n.sprintf(t.checks.LABELS_NO_FOR_ATTRIBUTE.content||"LABELS_NO_FOR_ATTRIBUTE",f),dismiss:I(`INPUTNOFOR${c+a}`),dismissAll:!!t.checks.LABELS_NO_FOR_ATTRIBUTE.dismissAll&&"LABELS_NO_FOR_ATTRIBUTE",developer:t.checks.LABELS_NO_FOR_ATTRIBUTE.developer||!0}):t.checks.LABELS_MISSING_LABEL&&e.push({element:o,type:t.checks.LABELS_MISSING_LABEL.type||"error",content:n.sprintf(t.checks.LABELS_MISSING_LABEL.content||"LABELS_MISSING_LABEL"),dismiss:I(`INPUTNOID${c+a}`),dismissAll:!!t.checks.LABELS_MISSING_LABEL.dismissAll&&"LABELS_MISSING_LABEL",developer:t.checks.LABELS_MISSING_LABEL.developer||!0}),o.placeholder&&0!==o.placeholder&&e.push({element:o,type:t.checks.LABELS_PLACEHOLDER.type||"warning",content:n.sprintf(t.checks.LABELS_PLACEHOLDER.content||"LABELS_PLACEHOLDER"),dismiss:I(`INPUTPLACEHOLDER${c+a}`),dismissAll:!!t.checks.LABELS_PLACEHOLDER.dismissAll&&"LABELS_PLACEHOLDER",developer:t.checks.LABELS_PLACEHOLDER.developer||!0})})}(this.results,s),Hn(this.results,s),function(e,t){if(t.checks.META_LANG&&(!P.Found.Language||P.Found.Language.length<2)&&e.push({type:t.checks.META_LANG.type||"error",content:n.sprintf(t.checks.META_LANG.content||"META_LANG"),dismiss:I("LANG"),developer:t.checks.META_LANG.developer||!0}),t.checks.META_TITLE){const o=document.querySelector("title:not(svg title)");o&&0!==o.textContent.trim().length||e.push({type:t.checks.META_TITLE.type||"error",content:n.sprintf(t.checks.META_TITLE.content||"META_TITLE"),dismiss:I("TITLE"),developer:t.checks.META_TITLE.developer||!0})}if(t.checks.META_SCALABLE||t.checks.META_MAX){const o=document.querySelector('meta[name="viewport"]');if(o){const i=o.getAttribute("content");if(i){const o=i.split(",").reduce((e,t)=>{const[n,o]=t.split("=").map(e=>e.trim());return e[n]=o,e},{});!t.checks.META_SCALABLE||"no"!==o["user-scalable"]&&"0"!==o["user-scalable"]||e.push({type:t.checks.META_SCALABLE.type||"error",content:n.sprintf(t.checks.META_SCALABLE.content||"META_SCALABLE"),dismiss:I("SCALABLE"),developer:t.checks.META_SCALABLE.developer||!0});const s=parseFloat(o["maximum-scale"]);t.checks.META_MAX&&!Number.isNaN(s)&&s<2&&e.push({type:t.checks.META_MAX.type||"error",content:n.sprintf(t.checks.META_MAX.content||"META_MAX"),dismiss:I("MAXSCALE"),developer:t.checks.META_MAX.developer||!0})}}}t.checks.META_REFRESH&&document.querySelector('meta[http-equiv="refresh"]')&&e.push({type:t.checks.META_REFRESH.type||"error",content:n.sprintf(t.checks.META_REFRESH.content||"META_REFRESH"),dismiss:I("REFRESH"),developer:t.checks.META_REFRESH.developer||!0});t.checks.DUPLICATE_ID&&document.querySelectorAll("body, [data-sa11y-has-shadow-root]").forEach(i=>{const s=new Set,a=(o,i)=>{o.forEach(o=>{const{id:a}=o;"string"==typeof a&&0!==a.trim().length&&(a&&!s.has(a)?s.add(a):Array.from(i.querySelectorAll(`\n a[href*="${a}"],\n label[for*="${a}"],\n [aria-labelledby*="${a}"],\n [aria-controls*="${a}"],\n [aria-owns*="${a}"]`)).length>0&&e.push({element:o,type:t.checks.DUPLICATE_ID.type||"error",content:n.sprintf(t.checks.DUPLICATE_ID.content||"DUPLICATE_ID",a),dismiss:I(`DUPLICATEID${a}${o.textContent}`),dismissAll:!!t.checks.DUPLICATE_ID.dismissAll&&"DUPLICATE_ID",developer:t.checks.DUPLICATE_ID.developer||!0}))})};i.shadowRoot&&a(Array.from(i.shadowRoot.querySelectorAll(`[id]:not(${o.Exclusions.Container})`)),i.shadowRoot),a(Array.from(i.querySelectorAll(`[id]:not(${o.Exclusions.Container})`)),i)});(t.checks.BTN_EMPTY||t.checks.BTN_EMPTY_LABELLEDBY||t.checks.BTN_LABEL||t.checks.HIDDEN_FOCUSABLE||t.checks.LABEL_IN_NAME)&&P.Found.Buttons.forEach(o=>{const i=l(o),s=i.replace(/'|"|-|\.|\s+/g,"").toLowerCase(),a=I(`BTN${o.tagName+o.id+o.className+i}`),r=o.querySelector(":scope [aria-labelledby], :scope [aria-label]")||o.getAttribute("aria-labelledby")||o.getAttribute("aria-label"),c=o.querySelector(":scope [aria-labelledby]")||o.getAttribute("aria-labelledby"),d="true"===o.getAttribute("aria-hidden"),p="-1"===o.getAttribute("tabindex");if(d)return void(p||t.checks.HIDDEN_FOCUSABLE&&e.push({element:o,type:t.checks.HIDDEN_FOCUSABLE.type||"error",content:n.sprintf(t.checks.HIDDEN_FOCUSABLE.content||"HIDDEN_FOCUSABLE"),dismiss:a,dismissAll:!!t.checks.HIDDEN_FOCUSABLE.dismissAll&&"BTN_HIDDEN_FOCUSABLE",developer:t.checks.HIDDEN_FOCUSABLE.developer||!0}));if(0===s.length)return void(t.checks.BTN_EMPTY_LABELLEDBY&&c?e.push({element:o,type:t.checks.BTN_EMPTY_LABELLEDBY.type||"error",content:t.checks.BTN_EMPTY_LABELLEDBY.content?n.sprintf(t.checks.BTN_EMPTY_LABELLEDBY.content):`${n.sprintf("BTN_EMPTY_LABELLEDBY")} ${n.sprintf("BTN_TIP")}`,dismiss:I(a),dismissAll:!!t.checks.BTN_EMPTY_LABELLEDBY.dismissAll&&"BTN_EMPTY_LABELLEDBY",developer:t.checks.BTN_EMPTY_LABELLEDBY.developer||!0}):t.checks.BTN_EMPTY&&e.push({element:o,type:t.checks.BTN_EMPTY.type||"error",content:t.checks.BTN_EMPTY.content?n.sprintf(t.checks.BTN_EMPTY.content):`${n.sprintf("BTN_EMPTY")} ${n.sprintf("BTN_TIP")}`,dismiss:a,dismissAll:!!t.checks.BTN_EMPTY.dismissAll&&"BTN_EMPTY",developer:t.checks.BTN_EMPTY.developer||!0}));const u=O(o);if(t.checks.LABEL_IN_NAME&&r&&u){const s=h(i);return void e.push({element:o,type:t.checks.LABEL_IN_NAME.type||"warning",content:t.checks.LABEL_IN_NAME.content?n.sprintf(t.checks.LABEL_IN_NAME.content,s):`${n.sprintf("LABEL_IN_NAME",s)} ${n.sprintf("ACC_NAME_TIP")}`,dismiss:a,dismissAll:!!t.checks.LABEL_IN_NAME.dismissAll&&"BTN_LABEL_IN_NAME",developer:t.checks.LABEL_IN_NAME.developer||!0})}t.checks.BTN_ROLE_IN_NAME&&i.includes(n._("BTN"))&&e.push({element:o,type:t.checks.BTN_ROLE_IN_NAME.type||"warning",content:t.checks.BTN_ROLE_IN_NAME.content?n.sprintf(t.checks.BTN_ROLE_IN_NAME.content):`${n.sprintf("BTN_ROLE_IN_NAME")} ${n.sprintf("BTN_TIP")}`,dismiss:a,dismissAll:!!t.checks.BTN_ROLE_IN_NAME.dismissAll&&"BTN_ROLE_IN_NAME",developer:t.checks.BTN_ROLE_IN_NAME.developer||!0})}),t.checks.UNCONTAINED_LI&&P.Found.Lists.forEach(o=>{o.closest("ul, ol, menu")||e.push({element:o,type:t.checks.UNCONTAINED_LI.type||"error",content:n.sprintf(t.checks.UNCONTAINED_LI.content||"UNCONTAINED_LI"),dismiss:I(`UNCONTAINEDLI${o.textContent}`),dismissAll:!!t.checks.UNCONTAINED_LI.dismissAll&&"UNCONTAINED_LI",developer:t.checks.UNCONTAINED_LI.developer||!0})}),t.checks.TABINDEX_ATTR&&P.Found.TabIndex.forEach(o=>{e.push({element:o,type:t.checks.TABINDEX_ATTR.type||"error",content:n.sprintf(t.checks.TABINDEX_ATTR.content||"TABINDEX_ATTR"),dismiss:I(`TABINDEX${o.tagName+o.id+o.className}`),dismissAll:!!t.checks.TABINDEX_ATTR.dismissAll&&"TABINDEX_ATTR",developer:t.checks.TABINDEX_ATTR.developer||!0})})}(this.results,s),s.embeddedContentPlugin&&function(e,t){const o=e=>"undefined"!==e.getAttribute("src")?e.getAttribute("src"):e.querySelector("[src]")?.getAttribute("src");t.checks.EMBED_AUDIO&&P.Found.Audio.forEach(i=>{e.push({element:i,type:t.checks.EMBED_AUDIO.type||"warning",content:n.sprintf(t.checks.EMBED_AUDIO.content||"EMBED_AUDIO"),dismiss:I(`AUDIO${o(i)}`),dismissAll:!!t.checks.EMBED_AUDIO.dismissAll&&"EMBED_AUDIO",developer:t.checks.EMBED_AUDIO.developer||!1})}),t.checks.EMBED_VIDEO&&P.Found.Videos.forEach(i=>{const s=i.querySelector("track"),a=s?.getAttribute("src");null!==s&&null!==a&&0!==a.trim().length||e.push({element:i,type:t.checks.EMBED_VIDEO.type||"warning",content:n.sprintf(t.checks.EMBED_VIDEO.content||"EMBED_VIDEO"),dismiss:I(`VIDEO${o(i)}`),dismissAll:!!t.checks.EMBED_VIDEO.dismissAll&&"EMBED_VIDEO",developer:t.checks.EMBED_VIDEO.developer||!1})}),t.checks.EMBED_DATA_VIZ&&P.Found.Visualizations.forEach(i=>{e.push({element:i,type:t.checks.EMBED_DATA_VIZ.type||"warning",content:n.sprintf(t.checks.EMBED_DATA_VIZ.content||"EMBED_DATA_VIZ"),dismiss:I(`DATAVIZ${o(i)}`),dismissAll:!!t.checks.EMBED_DATA_VIZ.dismissAll&&"EMBED_DATA_VIZ",developer:t.checks.EMBED_DATA_VIZ.developer||!1})}),P.Found.iframes.forEach(i=>{const s=["presentation","none"].includes(i.getAttribute("role")),a=p(i),l="VIDEO"===i.tagName||"AUDIO"===i.tagName,c="true"===i.getAttribute("aria-hidden"),d="-1"===i.getAttribute("tabindex");if(!(a||l||c&&d||s))if(d)t.checks.EMBED_UNFOCUSABLE&&e.push({element:i,type:t.checks.EMBED_UNFOCUSABLE.type||"error",content:n.sprintf(t.checks.EMBED_UNFOCUSABLE.content||"EMBED_UNFOCUSABLE"),dismiss:I(`EMBEDUNFOCUSABLE${o(i)}`),dismissAll:!!t.checks.EMBED_UNFOCUSABLE.dismissAll&&"EMBED_UNFOCUSABLE",developer:t.checks.EMBED_UNFOCUSABLE.developer||!0});else if(t.checks.EMBED_MISSING_TITLE){const s=r(i);0===y("noAria"===s?i.getAttribute("title")||"":s).length&&e.push({element:i,type:t.checks.EMBED_MISSING_TITLE.type||"error",content:n.sprintf(t.checks.EMBED_MISSING_TITLE.content||"EMBED_MISSING_TITLE"),dismiss:I(`EMBEDMISSTITLE${o(i)}`),dismissAll:!!t.checks.EMBED_MISSING_TITLE.dismissAll&&"EMBED_MISSING_TITLE",developer:t.checks.EMBED_MISSING_TITLE.developer||!0})}}),t.checks.EMBED_GENERAL&&P.Found.EmbeddedContent.forEach(i=>{const s=["presentation","none"].includes(i.getAttribute("role")),a="true"===i.getAttribute("aria-hidden"),r="-1"===i.getAttribute("tabindex");p(i)||a&&r||s||"VIDEO"!==i.tagName&&"AUDIO"!==i.tagName&&e.push({element:i,type:t.checks.EMBED_GENERAL.type||"warning",content:n.sprintf(t.checks.EMBED_GENERAL.content||"EMBED_GENERAL"),dismiss:I(`IFRAMEGENERAL${o(i)}`),dismissAll:!!t.checks.EMBED_GENERAL.dismissAll&&"EMBED_GENERAL",developer:t.checks.EMBED_GENERAL.developer||!1})})}(this.results,s),s.contrastPlugin&&function(e,t){const o=[];for(let e=0;e3===e.nodeType).map(e=>e.textContent).join("").trim(),m=["SELECT","INPUT","TEXTAREA"].includes(n.tagName);if(0!==g.length||m)if("unsupported"===a||"unsupported"===c){const e=r>=24||r>=18.67&&l>=700;o.push({$el:n,type:"unsupported",fontSize:r,fontWeight:l,isLargeText:e,opacity:s,..."unsupported"!==c&&{background:c},..."unsupported"!==a&&{color:a}})}else if("image"===c.type)if(h);else{const e=r>=24||r>=18.67&&l>=700;o.push({$el:n,type:"background-image",color:a,isLargeText:e,background:c,fontSize:r,fontWeight:l,opacity:s})}else if("text"===n.tagName&&n.closest("svg"));else if(h||fn(a)===fn(c));else{const e=In(n,a,c,r,l,s,t.contrastAAA);e&&(e.type=m?"input":"text",o.push(e))}}P.Found.Svg.forEach(e=>{const n=pn(e);if(n&&"image"===n.type)return void o.push({$el:e,type:"svg-warning",background:n});if(e.querySelector("text"))return void o.push({$el:e,type:"svg-text",background:n});const i=e.querySelectorAll("path, polygon, circle, rect, ellipse");if(1===i.length){const s=getComputedStyle(i[0]),{fill:a,opacity:r,stroke:l,strokeWidth:c}=s;if(a.startsWith("url("))return void o.push({$el:e,type:"svg-warning",background:n});const d=a&&"none"!==a,p=l&&"none"!==l&&"0px"!==c;if(!d&&!p)return void o.push({$el:e,type:"svg-warning",background:n});let u,h,g,m=!1,f=!1;d&&(h=dn("currentColor"===a?getComputedStyle(e).color:a,r),"unsupported"!==h&&(u=yn(h,n),m=t.contrastAPCA?u.ratio>=45:u.ratio>=3)),p&&(g=dn("currentColor"===l?getComputedStyle(e).color:l,r),"unsupported"!==g&&(u=yn(g,n),f=t.contrastAPCA?u.ratio>=45:u.ratio>=3));const b=d&&p&&!m&&!f,y=d&&!p&&!m,A=!d&&p&&!f;"unsupported"===h||"unsupported"===g?o.push({$el:e,type:"svg-warning",background:n}):(b||y||A)&&o.push({$el:e,ratio:bn(u.ratio),color:u.blendedColor,type:"svg-error",background:n})}else o.push({$el:e,type:"svg-warning",background:n})}),P.Found.Inputs.forEach(e=>{if(e.placeholder&&0!==e.placeholder.length){const n=getComputedStyle(e,"::placeholder"),i=dn(n.getPropertyValue("color")),s=parseFloat(n.fontSize),a=cn(n.fontWeight),r=pn(e),l=parseFloat(n.opacity);if("unsupported"===i)o.push({$el:e,type:"placeholder-unsupported"});else if("image"===r.type);else{const n=In(e,i,r,s,a,l,t.contrastAAA);n&&(n.type="placeholder",o.push(n))}}}),(e=>{const n=e.filter(e=>"background-image"===e.type),o=e.filter(e=>"background-image"!==e.type);let i;if(t.contrastAPCA)i=n.map(e=>({...e}));else{const e=n.reduce((e,t)=>{const n=e,o=JSON.stringify({background:t.background.value,color:t.color,isLargeText:t.isLargeText});return n[o]||(n[o]=[]),n[o].push(t),n},{});i=Object.values(e).map(e=>({...e[0]}))}return[...i,...o]})(o).forEach(o=>{const{$el:i,ratio:s}=o,a=o,r="OPTION"===i.tagName?i.closest("datalist, select, optgroup"):i,l=h(A(b(f(r,["option:not(option:first-child)"])),80));let c;c="placeholder"===o.type||"placeholder-unsupported"===o.type?h(i.placeholder):"svg-error"===o.type||"svg-warning"===o.type||"svg-text"===o.type?"":l,a.sanitizedText=c;let d="";if(!t.contrastAPCA){const e=t.contrastAAA?"7:1":"4.5:1",i=t.contrastAAA?"4.5:1":"3:1",s=o.isLargeText?i:e,a=o.isLargeText?"CONTRAST_LARGE":"CONTRAST_NORMAL";d=` ${n.sprintf(a,s)}`}const p=t.contrastAPCA?"":` ${n.sprintf("CONTRAST_TIP_GRAPHIC")}`;switch(o.type){case"text":t.checks.CONTRAST_ERROR&&e.push({element:i,type:t.checks.CONTRAST_ERROR.type||"error",content:t.checks.CONTRAST_ERROR.content?n.sprintf(t.checks.CONTRAST_ERROR.content):n.sprintf("CONTRAST_ERROR")+d,dismiss:I(`CONTRAST${l}`),dismissAll:!!t.checks.CONTRAST_ERROR.dismissAll&&"CONTRAST_ERROR",developer:t.checks.CONTRAST_ERROR.developer||!1,contrastDetails:a});break;case"input":t.checks.CONTRAST_INPUT&&e.push({element:r,type:t.checks.CONTRAST_INPUT.type||"error",content:t.checks.CONTRAST_INPUT.content?n.sprintf(t.checks.CONTRAST_INPUT.content):n.sprintf("CONTRAST_INPUT",s)+d,dismiss:I(`CONTRAST${i.getAttribute("class")}${i.tagName}${s}`),dismissAll:!!t.checks.CONTRAST_INPUT.dismissAll&&"CONTRAST_INPUT",developer:t.checks.CONTRAST_INPUT.developer||!0,contrastDetails:a});break;case"placeholder":t.checks.CONTRAST_PLACEHOLDER&&e.push({element:i,type:t.checks.CONTRAST_PLACEHOLDER.type||"error",content:t.checks.CONTRAST_PLACEHOLDER.content?n.sprintf(t.checks.CONTRAST_PLACEHOLDER.content):n.sprintf("CONTRAST_PLACEHOLDER")+d,position:"afterend",dismiss:I(`CPLACEHOLDER${i.getAttribute("class")}${i.tagName}${s}`),dismissAll:!!t.checks.CONTRAST_PLACEHOLDER.dismissAll&&"CONTRAST_PLACEHOLDER",developer:t.checks.CONTRAST_PLACEHOLDER.developer||!0,contrastDetails:a});break;case"placeholder-unsupported":t.checks.CONTRAST_PLACEHOLDER_UNSUPPORTED&&e.push({element:i,type:t.checks.CONTRAST_PLACEHOLDER_UNSUPPORTED.type||"warning",content:t.checks.CONTRAST_PLACEHOLDER_UNSUPPORTED.content?n.sprintf(t.checks.CONTRAST_PLACEHOLDER_UNSUPPORTED.content):n.sprintf("CONTRAST_PLACEHOLDER_UNSUPPORTED")+d,position:"afterend",dismiss:I(`CPLACEHOLDERUN${i.getAttribute("class")}${i.tagName}${s}`),dismissAll:!!t.checks.CONTRAST_PLACEHOLDER_UNSUPPORTED.dismissAll&&"CONTRAST_PLACEHOLDER_UNSUPPORTED",developer:t.checks.CONTRAST_PLACEHOLDER_UNSUPPORTED.developer||!0,contrastDetails:a});break;case"svg-error":t.checks.CONTRAST_ERROR_GRAPHIC&&e.push({element:i,type:t.checks.CONTRAST_ERROR_GRAPHIC.type||"error",content:t.checks.CONTRAST_ERROR_GRAPHIC.content?n.sprintf(t.checks.CONTRAST_ERROR_GRAPHIC.content):n.sprintf("CONTRAST_ERROR_GRAPHIC")+p,dismiss:I(`CONTRASTERROR${i.outerHTML}`),dismissAll:!!t.checks.CONTRAST_ERROR_GRAPHIC.dismissAll&&"CONTRAST_ERROR_GRAPHIC",developer:t.checks.CONTRAST_ERROR_GRAPHIC.developer||!0,contrastDetails:a});break;case"svg-warning":case"svg-text":t.checks.CONTRAST_WARNING_GRAPHIC&&e.push({element:i,type:t.checks.CONTRAST_WARNING_GRAPHIC.type||"warning",content:t.checks.CONTRAST_WARNING_GRAPHIC.content?n.sprintf(t.checks.CONTRAST_WARNING_GRAPHIC.content):n.sprintf("CONTRAST_WARNING_GRAPHIC")+p,dismiss:I(`CONTRASTWARNING${i.outerHTML}`),dismissAll:!!t.checks.CONTRAST_WARNING_GRAPHIC.dismissAll&&"CONTRAST_WARNING_GRAPHIC",developer:t.checks.CONTRAST_WARNING_GRAPHIC.developer||!0,contrastDetails:a});break;case"background-image":t.checks.CONTRAST_WARNING&&e.push({element:r,type:t.checks.CONTRAST_WARNING.type||"warning",content:t.checks.CONTRAST_WARNING.content?n.sprintf(t.checks.CONTRAST_WARNING.content):n.sprintf("CONTRAST_WARNING")+d,dismiss:I(`CONTRAST${l}`),dismissAll:!!t.checks.CONTRAST_WARNING.dismissAll&&"CONTRAST_WARNING",developer:t.checks.CONTRAST_WARNING.developer||!1,contrastDetails:a});break;case"unsupported":t.checks.CONTRAST_UNSUPPORTED&&e.push({element:r,type:t.checks.CONTRAST_UNSUPPORTED.type||"warning",content:t.checks.CONTRAST_UNSUPPORTED.content?n.sprintf(t.checks.CONTRAST_UNSUPPORTED.content):n.sprintf("CONTRAST_WARNING")+d,dismiss:I(`CONTRAST${l}`),dismissAll:!!t.checks.CONTRAST_UNSUPPORTED.dismissAll&&"CONTRAST_UNSUPPORTED",developer:t.checks.CONTRAST_UNSUPPORTED.developer||!1,contrastDetails:a})}})}(this.results,s),s.readabilityPlugin&&function(){let e;if("On"===_.getItem("sa11y-readability")){P.Found.Readability.forEach(e=>{const t=e.textContent;t.length>=120&&"."!==t.charAt(t.length-1)&&e.insertAdjacentHTML("beforeend",".")});const t=[];for(let e=0;e{let t=e;if(t=t.toLowerCase().replace(".","").replace("\n",""),t.length<=3)return 1;t=t.replace(/(?:[^laeiouy]es|ed|[^laeiouy]e)$/,""),t=t.replace(/^y/,"");const n=t.match(/[aeiouy]{1,2}/g);let o=0;return!!n&&(o=n.length),o},s=i.replace(/[.!?-]+/g," ").split(" ");let a=0;for(let e=0;e100?u=100:u<0&&(u=0);const h=u.toFixed(1),g=(a/l).toFixed(1),m=Math.round((a-(d+p))/a*100);let f;f=h>=0&&h<30?n._("VERY_DIFFICULT"):h>31&&h<49?n._("DIFFICULT"):h>50&&h<60?n._("FAIRLY_DIFFICULT"):n._("GOOD"),e={score:h,averageWordsPerSentence:g,complexWords:m,difficultyLevel:f,wordCount:a}}else if(["sv","fi","da","no","nb","nn"].includes(o.Readability.Lang)){const t=(e=>{const t=()=>e.replace(/[-'.]/gi,"").split(/[^a-zA-ZöäåÖÄÅÆæØø0-9]/g).filter(Boolean),o=t().length,i=t().filter(e=>e.length>6).length,s=e.split(/\?|!|\.|\n/g).filter(Boolean).length,a=Math.round(o/s+100*i/o),r=(o/s).toFixed(1),l=Math.round(i/o*100);let c;return c=a>=0&&a<39?n._("GOOD"):a>40&&a<50?n._("FAIRLY_DIFFICULT"):a>51&&a<61?n._("DIFFICULT"):n._("VERY_DIFFICULT"),{score:a,difficulty:c,avgWordsPerSentence:r,complexWords:l,wordCount:o}})(i);e={score:t.score,averageWordsPerSentence:t.avgWordsPerSentence,complexWords:t.complexWords,difficultyLevel:t.difficulty,wordCount:t.wordCount}}!1===o.Global.headless&&(0===i.length?o.Panel.readabilityInfo.innerHTML=n._("READABILITY_NO_CONTENT"):e.wordCount>30?(o.Panel.readabilityInfo.innerHTML=`${e.score} ${e.difficultyLevel}`,o.Panel.readabilityDetails.innerHTML=`\n
                                                          • \n ${n._("AVG_SENTENCE")}\n ${e.averageWordsPerSentence}\n
                                                          • \n
                                                          • \n ${n._("COMPLEX_WORDS")}\n ${e.complexWords}%\n
                                                          • \n
                                                          • \n ${n._("TOTAL_WORDS")}\n ${e.wordCount}\n
                                                          • `):o.Panel.readabilityInfo.textContent=n._("READABILITY_NOT_ENOUGH"))}}(),this.imageResults=this.results.filter((e,t,n)=>{const{element:o}=e;return!(!o||"IMG"!==o.tagName||!o.outerHTML)&&n.findIndex(e=>e.element?.outerHTML===o.outerHTML)===t}),!0===s.customChecks?this.results:"object"==typeof s.customChecks?this.results.push(...s.customChecks):"listen"===s.customChecks&&(this.customChecksRunning=!0,this.customChecksFinished=0,document.addEventListener("sa11y-resume",()=>{this.customChecksFinished+=1,1===this.customChecksFinished&&(this.customChecksRunning=!1,this.updateResults())}),window.setTimeout(()=>{if(!0===this.customChecksRunning)throw this.customChecksRunning=!1,this.updateResults(),Error("Sa11y: No custom checks were returned.")},s.delayCustomCheck),window.setTimeout(()=>{const e=new CustomEvent("sa11y-custom-checks");document.dispatchEvent(e)},0)),this.customChecksRunning||this.updateResults()}catch(e){const t=new Q(e);throw document.body.appendChild(t),Error(e)}},this.updateResults=()=>{this.results=this.results.filter(e=>!1!==e.isWithinRoot);const e="Off"===_.getItem("sa11y-developer")||null===_.getItem("sa11y-developer");if((e||!0===s.externalDeveloperChecks)&&(this.results=this.results.filter(e=>!0!==e.developer)),e&&(this.results=this.results.filter(e=>!0!==e.external)),this.results.forEach((e,t)=>{const n=s.selectorPath?function(e){const t=[];let n=e;for(;n;){let e=n.localName;if(n.id){e+=`#${n.id}`,t.unshift(e);break}n.className&&(e+=`.${n.className.replace(/\s+/g,".")}`);const o=n.parentNode;if(!o)break;{const i=o.children;i.length>1&&(e+=`:nth-child(${Array.prototype.indexOf.call(i,n)+1})`),t.unshift(e)}n=n.parentNode.host||n.parentNode}return t.join(" > ")}(e.element):"",o=e.element?.outerHTML.replace(/\s{2,}/g," ").trim()||"";Object.assign(e,{htmlPath:o,cssPath:n,id:t})}),!1===s.headless){const e=M(this.results,this.panelTooltips,this.checkAll,this.resetAll);this.results=e.updatedResults,this.dismissed=e.dismissedIssues;const l=function(e,t,n){let o=t,i=n;return e.forEach((t,n)=>{const s=e[n].type;"error"===s?o+=1:"warning"===s&&(i+=1)}),{error:o,warning:i}}(this.results,this.errorCount,this.warningCount);if(function(e,t){const i=e+t;0===i?(o.Panel.notifCount.innerText="",o.Panel.notifText.innerText="",o.Panel.notifBadge.style.display="none"):t>0&&0===e?(o.Panel.notifBadge.classList.add("notification-badge-warning"),o.Panel.notifCount.innerText=`${t}`,o.Panel.notifText.innerText=`${n._("WARNINGS_FOUND")}`):(o.Panel.notifBadge.classList.remove("notification-badge-warning"),o.Panel.notifCount.innerText=`${i}`,o.Panel.notifText.innerText=n._("TOTAL_FOUND")),"Opened"===_.getItem("sa11y-panel")||0===i?o.Panel.notifBadge.style.display="none":o.Panel.notifBadge.style.display="flex"}(l.error,l.warning),"Opened"===_.getItem("sa11y-panel")){this.results.forEach(e=>{Object.assign(e),function(e,t){const{element:i,type:s,content:a,inline:r=!1,position:l="beforebegin",id:c,dismiss:d,dismissAll:p,contrastDetails:h}=e,g=["error","warning","good"];if(-1===g.indexOf(s))throw Error(`Invalid type [${s}] for annotation`);[s].forEach(e=>{if("error"===e&&void 0!==i){const e=r?"data-sa11y-error-inline":"data-sa11y-error";i.setAttribute(e,c)}else if("warning"===e&&void 0!==i){const e=r?"data-sa11y-warning-inline":"data-sa11y-warning";i.setAttribute(e,c)}});const m={[g[0]]:n._("ERROR"),[g[1]]:n._("WARNING"),[g[2]]:n._("GOOD")};if(!1===t.showGoodImageButton&&"IMG"===i?.tagName&&"good"===s)return;if(!1===t.showGoodLinkButton&&"A"===i?.tagName&&"good"===s)return;const f=!t.dismissAnnotations||"warning"!==s&&"good"!==s||void 0===d?"":``,b=t.dismissAnnotations&&t.dismissAll&&"string"==typeof p&&("warning"===s||"good"===s)?``:"",y=document.createElement("sa11y-annotation");if(y.setAttribute("data-sa11y-annotation",c),void 0===i){const e=document.createElement("li");e.innerHTML=`

                                                            ${m[s]}

                                                            ${a}${f}`,o.Panel.pageIssuesList.insertAdjacentElement("afterbegin",e),o.Panel.pageIssues.classList.add("active"),o.Panel.panel.classList.add("has-page-issues")}else{const e=document.createElement("div");e.classList.add(r?"instance-inline":"instance"),e.innerHTML=`\n \n

                                                            ${m[s]}

                                                            \n ${u(a)}\n ${h?"
                                                            ":""}\n
                                                            ${f}${b}
                                                            \n "\n >`;const o=t.insertAnnotationBefore?`, ${t.insertAnnotationBefore}`:"";(i.closest(`a, button, [role="link"], [role="button"] ${o}`)||i).insertAdjacentElement(l,y),y.shadowRoot.appendChild(e)}}(e,s)}),P.initializeAnnotations();const c=new xn;document.body.appendChild(c),G(this.results,this.dismissed,this.checkAll,this.resetAll),te(this.dismissed,this.headingOutline,s),s.showImageOutline&&function(e,t,i){const s=()=>{const a=[],r=e.map(e=>t.find(t=>e.key===t.dismiss&&e.href===window.location.pathname)).filter(Boolean);t.forEach(e=>{const t=r.some(t=>t.element.outerHTML.toLowerCase()===e.element.outerHTML.toLowerCase());t&&Object.assign(e,{dismissedImage:!0});const s=e.type,l=e.developer,{dismissedImage:c}=e,d=u(e.element.alt),p=!("Off"!==_.getItem("sa11y-developer")&&null!==_.getItem("sa11y-developer")||"error"!==s&&"warning"!==s||!0!==l),h=w(e.element),g=o.Global.editImageURLofCMS?ne(e):"",m=i.imageWithinLightbox?`a[href]:not(${i.imageWithinLightbox})`:"a[href]",f=e.element.closest(m)?`
                                                            ${n._("LINKED")}
                                                            `:"";let b;if("error"!==s||p)if("warning"!==s||c||p){const t=0===d.length?`
                                                            ${n._("DECORATIVE")}
                                                            `:"",o=i.imageWithinLightbox?`a[href]:not(${i.imageWithinLightbox})`:"a[href]",s=e.element.closest(o)?`
                                                            ${n._("LINKED")}
                                                            `:"";b=`\n
                                                          • \n \n
                                                            \n
                                                            ${n._("ALT")}
                                                            \n ${s} ${t} ${d}\n
                                                            \n ${g}\n
                                                          • `,a.push(b)}else{const e=0===d.length?`
                                                            ${n._("DECORATIVE")}
                                                            `:"";b=`\n
                                                          • \n \n
                                                            \n
                                                            ${n._("WARNING")} ${n._("ALT")}
                                                            \n ${f} ${e} ${d}\n
                                                            \n ${g}\n
                                                          • `,a.push(b)}else{const e=0===d.length?`
                                                            ${n._("MISSING")}
                                                            `:`${d}`;b=`\n
                                                          • \n \n
                                                            \n
                                                            ${n._("ERROR")} ${n._("ALT")}
                                                            ${f} ${e}\n
                                                            \n ${g}\n
                                                          • `,a.push(b)}}),o.Panel.imagesList.innerHTML=0===a.length?`
                                                          • ${n._("NO_IMAGES")}
                                                          • `:a.join(" "),document.removeEventListener("sa11y-build-image-outline",s)};"Opened"===_.getItem("sa11y-images")&&s(),document.addEventListener("sa11y-build-image-outline",s)}(this.dismissed,this.imageResults,s),i=e.dismissCount,a=l.error,r=l.warning,o.Panel.skipButton.disabled=!1,o.Panel.panel.classList.add("active"),o.Global.html.setAttribute("data-sa11y-active","true"),o.Panel.skipButton.classList.add("active"),a>0&&r>0?(o.Panel.content.setAttribute("class","errors"),o.Panel.status.innerHTML=`${n._("ERRORS")} ${a} ${n._("WARNINGS")} ${r}`):a>0?(o.Panel.content.setAttribute("class","errors"),o.Panel.status.innerHTML=`${n._("ERRORS")} ${a}`):r>0?(o.Panel.content.setAttribute("class","warnings"),o.Panel.status.innerHTML=`${n._("WARNINGS")} ${r}`):i>0?(o.Panel.status.innerHTML=`${n._("DISMISSED")} ${i}`,o.Panel.skipButton.classList.remove("active")):(o.Panel.content.setAttribute("class","good"),o.Panel.status.innerHTML=`${n._("NO_ERRORS_FOUND")}`),0===document.querySelectorAll("sa11y-annotation").length&&(o.Panel.skipButton.disabled=!0),t=this.results,Bn=e=>{Mn(e,t)},$n=()=>{Dn(t)},document.addEventListener("keydown",Bn),o.Panel.skipButton.addEventListener("click",$n),s.exportResultsPlugin&&function(e,t){o.Global.exportResultsPlugin&&(K=async()=>{await H(e,t)},W=()=>{F(e)},o.Panel.exportHTML.addEventListener("click",K),o.Panel.exportCSV.addEventListener("click",W))}(this.results,e.dismissedResults),S(o.Panel.pageIssuesList,o.Panel.pageIssuesContent),Sn(s.ignoreHiddenOverflow),document.querySelectorAll("sa11y-annotation").forEach(e=>{const t=e.nextElementSibling;null!==t&&"SA11Y-ANNOTATION"===t.tagName&&customElements.get("sa11y-annotation")&&t.shadowRoot.querySelector("button").setAttribute("style","margin: -5px -15px !important;")})}o.Panel.toggle.disabled=!1}var t,i,a,r;window.sa11yCheckComplete=null;const l=new CustomEvent("sa11y-check-complete",{detail:{results:this.results,page:window.location.pathname}});window.sa11yCheckComplete=l.detail,document.dispatchEvent(l)},this.resetAll=(e=!0)=>{for(o.Global.html.removeAttribute("data-sa11y-active"),N(["sa11y-annotation","sa11y-heading-label","sa11y-heading-anchor","sa11y-tooltips","[data-sa11y-readability-period]","[data-sa11y-clone-image-text]"],"document"),k(["data-sa11y-parent","data-sa11y-error","data-sa11y-warning","data-sa11y-good","data-sa11y-error-inline","data-sa11y-warning-inline","data-sa11y-overflow","data-sa11y-pulse-border","data-sa11y-filter","data-sa11y-has-shadow-root"],"document"),o.Panel.outlineList.innerHTML="",s.showImageOutline&&(o.Panel.imagesList.innerHTML=""),o.Panel.pageIssuesList.innerHTML="",o.Panel.readabilityInfo.innerHTML="",o.Panel.readabilityDetails.innerHTML="",o.Panel.panel.classList.remove("has-page-issues"),o.Panel.pageIssues.classList.remove("active"),o.Panel.settingsContent.classList.remove("hide-settings-border"),o.Panel.panel.querySelector("#readability-alert")?.remove(),T(),document.removeEventListener("keydown",Bn),o.Panel.skipButton.removeEventListener("click",$n),o.Global.exportResultsPlugin&&(o.Panel.exportHTML.removeEventListener("click",K),o.Panel.exportCSV.removeEventListener("click",W)),o.Panel.panel?.removeEventListener("click",$),o.Panel.dismissButton?.removeEventListener("click",B),o.Global.colourFilterPlugin&&(o.Panel.colourFilterSelect.value=0,o.Panel.colourPanel.classList.remove("active"),o.Panel.colourFilterSelect.classList.remove("active"),o.Panel.content.hidden=!1);o.Panel.status.firstChild;)o.Panel.status.removeChild(o.Panel.status.firstChild);document.querySelectorAll("[data-sa11y-has-shadow-root]").forEach(e=>{e.shadowRoot.querySelectorAll("style.sa11y-css-utilities").forEach(e=>e.remove()),e.removeAttribute("data-sa11y-has-shadow-root")}),e&&o.Panel.panel.classList.remove("active")},this.disabled=()=>{setTimeout(()=>{"Opened"===_.getItem("sa11y-panel")&&o.Panel.toggle.click(),o.Panel.toggle.disabled=!0},s.delayCheck+10)},this.enabled=()=>{o.Panel.toggle&&(o.Panel.toggle.disabled=!1)},this.find=(e,t,n)=>i(e,t,n),this.prepareDismissal=e=>I(e),this.sanitizeHTML=e=>h(e),this.truncateString=(e,t)=>A(e,t),this.initialize()}},Object.defineProperty(e,"__esModule",{value:!0})}); +!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).Sa11y={})}(this,function(e){"use strict";const t={checkRoot:"body",containerIgnore:".sa11y-ignore",contrastIgnore:".sr-only",outlineIgnore:"",headerIgnore:"",headerIgnoreSpan:"",headerIgnoreStrings:"",imageIgnore:"",linkIgnore:"",linkIgnoreSpan:"",linkIgnoreStrings:"",aboutContent:"",panelPosition:"right",showMovePanelToggle:!0,checkAllHideToggles:!1,developerChecksOnByDefault:!1,showHinPageOutline:!1,showTitleInPageOutline:!0,showImageOutline:!0,editImageURLofCMS:"",relativePathImageSRC:"",relativePathImageID:"",ignoreEditImageURL:[],ignoreEditImageClass:[],delayCheck:0,delayCustomCheck:500,detectSPArouting:!1,doNotRun:"",headless:!1,selectorPath:!1,shadowComponents:"",autoDetectShadowComponents:!1,showGoodImageButton:!0,showGoodLinkButton:!0,dismissAnnotations:!0,dismissAll:!0,ignoreHiddenOverflow:"",insertAnnotationBefore:"",readabilityPlugin:!0,readabilityRoot:"body",readabilityIgnore:"",contrastPlugin:!0,contrastAAA:!1,contrastAPCA:!1,customChecks:!1,linksAdvancedPlugin:!0,formLabelsPlugin:!0,embeddedContentPlugin:!0,developerPlugin:!0,externalDeveloperChecks:!1,colourFilterPlugin:!0,exportResultsPlugin:!1,susAltStopWords:"",linkStopWords:"",extraPlaceholderStopWords:"",imageWithinLightbox:"",checks:{HEADING_SKIPPED_LEVEL:!0,HEADING_EMPTY_WITH_IMAGE:!0,HEADING_EMPTY:!0,HEADING_FIRST:!0,HEADING_LONG:{maxLength:170},HEADING_MISSING_ONE:!0,MISSING_ALT_LINK:!0,MISSING_ALT_LINK_HAS_TEXT:!0,MISSING_ALT:!0,IMAGE_DECORATIVE_CAROUSEL:{sources:".carousel"},LINK_IMAGE_NO_ALT_TEXT:!0,LINK_IMAGE_TEXT:!0,IMAGE_FIGURE_DECORATIVE:!0,IMAGE_DECORATIVE:!0,LINK_ALT_FILE_EXT:!0,ALT_FILE_EXT:!0,LINK_PLACEHOLDER_ALT:!0,ALT_PLACEHOLDER:!0,LINK_SUS_ALT:!0,SUS_ALT:!0,LINK_IMAGE_LONG_ALT:{maxLength:250},IMAGE_ALT_TOO_LONG:{maxLength:250},LINK_IMAGE_ALT:{dismissAll:!0},LINK_IMAGE_ALT_AND_TEXT:!0,IMAGE_FIGURE_DUPLICATE_ALT:!0,IMAGE_PASS:{dismissAll:!0},DUPLICATE_TITLE:{dismissAll:!0},LINK_EMPTY_LABELLEDBY:!0,LINK_EMPTY_NO_LABEL:!0,LINK_STOPWORD:!0,LINK_STOPWORD_ARIA:!0,LINK_SYMBOLS:!0,LINK_CLICK_HERE:!0,LINK_DOI:{dismissAll:!0},LINK_URL:{maxLength:40},LINK_LABEL:{dismissAll:!0},LINK_EMPTY:!0,LINK_IDENTICAL_NAME:{dismissAll:!0},LINK_NEW_TAB:{dismissAll:!0},LINK_FILE_EXT:!0,LABELS_MISSING_IMAGE_INPUT:!0,LABELS_INPUT_RESET:!0,LABELS_MISSING_LABEL:!0,LABELS_ARIA_LABEL_INPUT:!0,LABELS_NO_FOR_ATTRIBUTE:!0,LABELS_PLACEHOLDER:!0,EMBED_AUDIO:{sources:""},EMBED_VIDEO:{sources:""},EMBED_DATA_VIZ:{sources:""},EMBED_UNFOCUSABLE:!0,EMBED_MISSING_TITLE:!0,EMBED_GENERAL:!0,QA_BAD_LINK:{sources:""},QA_STRONG_ITALICS:!0,QA_IN_PAGE_LINK:!0,QA_DOCUMENT:{sources:"",dismissAll:!0},QA_PDF:{dismissAll:!0},QA_BLOCKQUOTE:!0,TABLES_MISSING_HEADINGS:!0,TABLES_SEMANTIC_HEADING:!0,TABLES_EMPTY_HEADING:!0,QA_FAKE_HEADING:!0,QA_FAKE_LIST:!0,QA_UPPERCASE:!0,QA_UNDERLINE:!0,QA_SUBSCRIPT:!0,QA_NESTED_COMPONENTS:{sources:""},QA_JUSTIFY:!0,QA_SMALL_TEXT:!0,META_LANG:!0,META_SCALABLE:!0,META_MAX:!0,META_REFRESH:!0,DUPLICATE_ID:!0,META_TITLE:!0,UNCONTAINED_LI:!0,TABINDEX_ATTR:!0,HIDDEN_FOCUSABLE:!0,LABEL_IN_NAME:!0,BTN_EMPTY:!0,BTN_EMPTY_LABELLEDBY:!0,BTN_ROLE_IN_NAME:!0,CONTRAST_WARNING:{dismissAll:!0},CONTRAST_INPUT:!0,CONTRAST_ERROR:!0,CONTRAST_PLACEHOLDER:!0,CONTRAST_PLACEHOLDER_UNSUPPORTED:!0,CONTRAST_ERROR_GRAPHIC:!0,CONTRAST_WARNING_GRAPHIC:{dismissAll:!0},CONTRAST_UNSUPPORTED:{dismissAll:!0}}},n={langStrings:{},addI18n(e){this.langStrings=e},_(e){return this.translate(e)},sprintf(e,...t){let n=this._(e);return n=this.prepHTML(n),t&&t.length&&t.forEach(e=>{n=n.replace(/%\([a-zA-z]+\)/,e)}),n},translate(e){return this.langStrings[e]||e},prepHTML:e=>e.replaceAll(/
                                                            /g,'').replaceAll(/${n._("ALT")}
                                                            `).replaceAll(/{L}/g,`${n._("LINKED")}`)},o=function(){const e={};const t={};const i={};const s={};const a={};return{initializeRoot:function(t,i){if(e.areaToCheck=document.querySelector(t),e.areaToCheck||(e.areaToCheck=document.querySelector("body")),e.Readability=document.querySelector(i),!e.Readability)if(e.areaToCheck){e.Readability=e.areaToCheck;const{readabilityDetails:t,readabilityToggle:s}=o.Panel,a="true"===s?.getAttribute("aria-pressed");if(t&&a){const o=document.createElement("div");o.id="readability-alert",o.innerHTML=`

                                                            ${n.sprintf("MISSING_READABILITY_ROOT",e.areaToCheck.tagName.toLowerCase(),i)}

                                                            `,t.insertAdjacentElement("afterend",o)}}else e.Readability=document.querySelector("body")},Root:e,initializeGlobal:function(e){t.html=document.querySelector("html"),t.headless=e.headless,t.panelPosition=e.panelPosition,t.dismissAnnotations=e.dismissAnnotations,t.aboutContent=e.aboutContent,t.contrastAPCA=e.contrastAPCA,t.contrastSuggestions=e.contrastSuggestions,t.contrastAAA=e.contrastAAA,t.shadowDetection=e.shadowComponents.length>0||!0===e.autoDetectShadowComponents,t.developerPlugin=e.developerPlugin,t.colourFilterPlugin=e.colourFilterPlugin,t.checkAllHideToggles=e.checkAllHideToggles,t.exportResultsPlugin=e.exportResultsPlugin,t.readabilityPlugin=e.readabilityPlugin,t.showImageOutline=e.showImageOutline,t.editImageURLofCMS=e.editImageURLofCMS,t.relativePathImageSRC=e.relativePathImageSRC,t.relativePathImageID=e.relativePathImageID,t.ignoreEditImageURL=e.ignoreEditImageURL,t.ignoreEditImageClass=e.ignoreEditImageClass,t.showMovePanelToggle=e.showMovePanelToggle;let n=!1;"function"==typeof window.matchMedia&&(n=window.matchMedia("(prefers-reduced-motion: reduce)")),t.scrollBehaviour=!n||n.matches?"auto":"smooth",t.langDirection="rtl"===t.html.getAttribute("dir")?"rtl":"ltr";const o=e.checks.QA_DOCUMENT.sources,i='a[href$=".doc"], a[href$=".docx"], a[href*=".doc?"], a[href*=".docx?"], a[href$=".ppt"], a[href$=".pptx"], a[href*=".ppt?"], a[href*=".pptx?"], a[href^="https://drive.google.com/file"], a[href^="https://docs.google."], a[href^="https://sway."]';t.documentSources=o?`${i}, ${o}`:i;const s=e.checks.EMBED_VIDEO.sources,a='video, [src*="Video"], [src*="video"], [src*="watch"], [src*="youtube.com"], [src*="vimeo.com"], [src*="panopto.com"], [src*="wistia.com"], [src*="dailymotion.com"], [src*="brightcove.com"], [src*="vidyard.com"]';if(s){const e=s.split(/\s*[\s,]\s*/).map(e=>`[src*="${e}"]`);t.VideoSources=`${a}, ${e.join(", ")}`}else t.VideoSources=a;const r=e.checks.EMBED_AUDIO.sources,l='audio, [src*="soundcloud.com"], [src*="simplecast.com"], [src*="podbean.com"], [src*="buzzsprout.com"], [src*="blubrry.com"], [src*="transistor.fm"], [src*="fusebox.fm"], [src*="libsyn.com"], [src*="spotify.com"], [src*="podcasts.apple.com"], [src*="castbox.fm"], [src*="megaphone.fm"], [src*="spreaker.com"], [src*="anchor.fm"], [src*="rss.com"], [src*="redcircle.com"]';if(r){const e=r.split(/\s*[\s,]\s*/).map(e=>`[src*="${e}"]`);t.AudioSources=`${l}, ${e.join(", ")}`}else t.AudioSources=l;const c=e.checks.EMBED_DATA_VIZ.sources,d='[src*="datastudio"], [src*="tableau"], [src*="lookerstudio"], [src*="powerbi"], [src*="qlik"]';if(c){const e=c.split(/\s*[\s,]\s*/).map(e=>`[src*="${e}"]`);t.VisualizationSources=`${d}, ${e.join(", ")}`}else t.VisualizationSources=d;t.AllEmbeddedContent=`${t.VideoSources}, ${t.AudioSources}, ${t.VisualizationSources}`},Global:t,initializePanelSelectors:function(){const e=document.querySelector("sa11y-control-panel").shadowRoot;i.panel=e.getElementById("panel"),i.content=e.getElementById("panel-content"),i.controls=e.getElementById("panel-controls"),i.outline=e.getElementById("outline-panel"),i.outlineContent=e.getElementById("outline-content"),i.outlineList=e.getElementById("outline-list"),i.outlineHeader=e.getElementById("outline-header"),i.images=e.getElementById("images-panel"),i.imagesContent=e.getElementById("images-content"),i.imagesList=e.getElementById("images-list"),i.imagesHeader=e.getElementById("images-header"),i.notifBadge=e.getElementById("notification-badge"),i.notifCount=e.getElementById("notification-count"),i.notifText=e.getElementById("notification-text"),i.status=e.getElementById("status"),i.pageIssues=e.getElementById("page-issues"),i.pageIssuesList=e.getElementById("page-issues-list"),i.pageIssuesHeader=e.getElementById("page-issues-header"),i.pageIssuesContent=e.getElementById("page-issues-content"),i.settings=e.getElementById("settings-panel"),i.settingsHeader=e.getElementById("settings-header"),i.settingsContent=e.getElementById("settings-content"),i.developerToggle=e.getElementById("developer-toggle"),i.readabilityToggle=e.getElementById("readability-toggle"),i.themeToggle=e.getElementById("theme-toggle"),i.developerItem=e.getElementById("developer-item"),i.readabilityItem=e.getElementById("readability-item"),i.darkModeItem=e.getElementById("dark-mode-item"),i.colourPanel=e.getElementById("panel-colour-filters"),i.colourFilterItem=e.getElementById("colour-filter-item"),i.colourFilterSelect=e.getElementById("colour-filter-select"),i.colourFilterIcon=e.getElementById("filter-icon"),i.toggle=e.getElementById("toggle"),i.outlineToggle=e.getElementById("outline-toggle"),i.imagesToggle=e.getElementById("images-toggle"),i.settingsToggle=e.getElementById("settings-toggle"),i.movePanelToggle=e.getElementById("move-panel"),i.skipButton=e.getElementById("skip-button"),i.dismissButton=e.getElementById("dismiss-button"),i.dismissTooltip=e.getElementById("dismiss-tooltip"),i.skipToPageIssues=e.getElementById("skip-to-page-issues"),i.exportHTML=e.getElementById("export-html"),i.exportCSV=e.getElementById("export-csv"),i.alert=e.getElementById("panel-alert"),i.alertText=e.getElementById("panel-alert-text"),i.alertPreview=e.getElementById("panel-alert-preview"),i.alertClose=e.getElementById("close-alert"),i.readability=e.getElementById("readability-panel"),i.readabilityInfo=e.getElementById("readability-info"),i.readabilityDetails=e.getElementById("readability-details")},Panel:i,initializeReadability:function(e){if(e.readabilityPlugin){s.Lang=n._("LANG_CODE").substring(0,2);const e=["en","fr","es","de","nl","it","sv","fi","da","no","nb","nn","pt"],t=o.Global.html.getAttribute("lang");if(t){const n=t.toLowerCase().substring(0,2);e.includes(n)&&e.includes(s.Lang)?s.Plugin=!0:s.Plugin=!1}else s.Plugin=!1}},Readability:s,initializeExclusions:function(e){a.Sa11yElements=["sa11y-heading-label","sa11y-heading-anchor","sa11y-annotation","sa11y-tooltips","sa11y-panel-tooltips","sa11y-control-panel","#sa11y-colour-filters","#sa11y-colour-filters *"];const t=["style","script","noscript"];if(a.Container=["#wpadminbar","#wpadminbar *",...t],e.containerIgnore){const t=e.containerIgnore.split(",").map(e=>e.trim());a.Container=a.Container.concat(t.flatMap(e=>[`${e} *`,e]))}a.Contrast=["link","hr","option","audio","audio *","video","video *",'input[type="color"]','input[type="range"]',"progress","progress *","meter","meter *","iframe","svg title","svg desc",...t],e.contrastIgnore&&(a.Contrast=e.contrastIgnore.split(",").map(e=>e.trim()).flatMap(e=>[e,`${e} *`]).concat(a.Contrast)),a.Readability=["nav li",'[role="navigation"] li',...t],e.readabilityIgnore&&(a.Readability=e.readabilityIgnore.split(",").map(e=>e.trim()).flatMap(e=>[e,`${e} *`]).concat(a.Readability)),a.Headings=e.headerIgnore?e.headerIgnore.split(",").map(e=>e.trim()):[],a.HeaderSpan=e.headerIgnoreSpan?e.headerIgnoreSpan.split(",").map(e=>e.trim()):[],a.Outline=e.outlineIgnore?e.outlineIgnore.split(",").map(e=>e.trim()):[],a.Images=['[role="presentation"]'],e.imageIgnore&&(a.Images=e.imageIgnore.split(",").map(e=>e.trim()).concat(a.Images)),a.Links=[".anchorjs-link"],e.linkIgnore&&(a.Links=e.linkIgnore.split(",").map(e=>e.trim()).concat(a.Links)),a.LinkSpan=e.linkIgnoreSpan?e.linkIgnoreSpan.split(",").map(e=>e.trim()):[]},Exclusions:a}}();function i(e,t,n){let i;"document"===t?i=document:"readability"===t?(i=o.Readability.Root,i||(i=o.Root.areaToCheck)):"root"===t?(i=o.Root.areaToCheck,i||(i=document.body)):"panel"===t?(i=o.Panel.panel,i||(i=document.body)):(i=document.querySelector(t),i||(i=document.body));const s=document.querySelectorAll("[data-sa11y-has-shadow-root]"),a=s?", [data-sa11y-has-shadow-root]":"",r=o.Exclusions.Container.join(", "),l=n?.join(", ")||"",c=l?`, ${l}`:"",d=Array.from(i.querySelectorAll(`:is(${e}${a}):not(${r}${c})`));if(s.length){const t=[];if(d.forEach((n,o)=>{n&&n.matches&&n.matches("[data-sa11y-has-shadow-root]")&&n.shadowRoot&&(t[o]=n.shadowRoot.querySelectorAll(`:is(${e}):not(${r}${c})`))}),t.length>0)for(let e=t.length-1;e>=0;e--)t[e]&&d.splice(e,1,...t[e])}return d.filter(e=>"SLOT"!==e.parentNode.tagName)}const s=(e,t)=>{const n=e=>{if("none"===e)return"";const t=e.includes("url(")||e.includes("image-set(")?e.match(/\/\s*"([^"]+)"/):e.match(/"([^"]+)"/);return t?t[1]:""};return`${n(window.getComputedStyle(e,":before").getPropertyValue("content"))}${t}${n(window.getComputedStyle(e,":after").getPropertyValue("content"))}`},a=e=>{for(let t=0;t<1e3;t++){if(e.nextSibling())return e.previousNode();if(!e.parentNode())return!1}return!1},r=(e,t=!1)=>{const n=e.getAttribute("aria-labelledby");if(!t&&n)return n.split(/\s+/).filter(e=>e.trim()).map(e=>{const t=document.querySelector(`#${CSS.escape(e)}`);return t?l(t,"",1):""}).join(" ");const o=e.getAttribute("aria-label");return o&&o.trim().length>0?o:"noAria"},l=(e,t=[],n=0)=>{const o=r(e,n);if("noAria"!==o)return o;if("TEXTAREA"===e.tagName&&e.hasAttribute("title"))return e.getAttribute("title");let i="";if(!e.children.length)return i=s(e,e.textContent),!i.trim()&&e.hasAttribute("title")?e.getAttribute("title"):i;const c=(d=e,p=!0,u=!0,document.createTreeWalker(d,NodeFilter.SHOW_ALL,{acceptNode:e=>p&&e.nodeType===Node.ELEMENT_NODE||u&&e.nodeType===Node.TEXT_NODE?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT}));var d,p,u;const h=[...t,"noscript","style","script","video","audio"].join(", "),g=h?e.querySelectorAll(h):[];let m=!1,f=!1,b=0,y=!0;for(;c.nextNode()&&y;){b+=1;const e=c.currentNode;if(Array.from(g).some(t=>t.contains(e)))continue;if(e.shadowRoot){const o=e.shadowRoot.querySelectorAll("*");for(let e=0;e{e.nodeType===Node.ELEMENT_NODE?n+=l(e):e.nodeType===Node.TEXT_NODE&&(n+=e.nodeValue)}),i+=n,i+=s(e,"");break}default:i+=s(e,"")}else i+=` ${o}`,a(c)||(y=!1)}return m&&!f&&(i+=` ${m}`),i=i.replace(/[\uE000-\uF8FF]/gu,""),!i.trim()&&e.hasAttribute("title")?e.getAttribute("title"):i};function c(e){if(e.getAttribute("hidden")||0===e.offsetWidth&&0===e.offsetHeight||1===e.clientHeight&&1===e.clientWidth)return!0;return"none"===getComputedStyle(e).getPropertyValue("display")}function d(e){const t=window.getComputedStyle(e),n=t.getPropertyValue("clip-path"),{position:o}=t,i=parseFloat(t.width),s=parseFloat(t.height),{overflow:a}=t;return"inset(50%)"===n||"absolute"===o&&1===i&&1===s&&"hidden"===a}function p(e){if(e.getAttribute("hidden"))return!0;return"none"===getComputedStyle(e).getPropertyValue("display")}function u(e){const t=document.createElement("div");return t.textContent=e,t.innerHTML.replaceAll('"',""").replaceAll("'","'").replaceAll("`","`")}function h(e){return e.replace(/[^\w. ]/gi,e=>`&#${e.charCodeAt(0)};`)}function g(e){if(!e)return"#";const t=String(e).trim();if(/^javascript:/i.test(t))return"#";if(/^data:/i.test(t))return"#";if(!["http:","https:","mailto:","tel:","ftp:"].some(e=>t.toLowerCase().startsWith(e))&&!t.startsWith("/")&&!t.startsWith("#"))return`./${t}`;const n=t.replace(/<[^>]*>/g,"");return encodeURI(n)}function m(e,t=!1){const n=document.createElement("div");n.innerHTML=e,["script","style","noscript","iframe","form"].forEach(e=>{const t=n.getElementsByTagName(e);for(;t.length>0;)t[0].parentNode.removeChild(t[0])});return Array.from(n.getElementsByTagName("*")).forEach(e=>{Array.from(e.attributes).forEach(t=>{t.name.startsWith("on")&&e.removeAttribute(t.name)}),t||e.removeAttribute("style")}),n.innerHTML}function f(e,t=[]){const n=["noscript","script","style","audio","video","form","iframe",...t].join(", "),o=e.cloneNode(!0);return Array.from(o.querySelectorAll(n)).forEach(e=>{e.parentElement.removeChild(e)}),o}function b(e){return f(e).textContent.replace(/[\r\n]+/g,"").replace(/\s+/g," ").trim()}function y(e){return e.replace(/[\r\n]+/g," ").replace(/\s+/g," ").trim()}function A(e,t){const n=e.substring(0,t).trimEnd();return e.length>t?`${n}...`:e}function E(e,t,n){let o=e;for(;null!==o;){if(window.getComputedStyle(o).getPropertyValue(t)===n)return o;o=o.parentElement}return null}function v(e){const t=e.getBoundingClientRect(),n=window.pageYOffset||document.documentElement.scrollTop;return{top:t.top+n}}const _={getItem(e){try{return null===localStorage.getItem(e)?sessionStorage.getItem(e):localStorage.getItem(e)}catch(e){return!1}},setItem(e,t){try{localStorage.setItem(e,t)}catch(n){sessionStorage.setItem(e,t)}return!0},removeItem(e){try{localStorage.removeItem(e)}catch(t){sessionStorage.removeItem(e)}return!0}};function L(e){const t="data-sa11y-pulse-border";e.setAttribute(t,""),setTimeout(()=>{e.removeAttribute(t)},2500)}function I(e){return String(e).replace(/([^0-9a-zA-Z])/g,"").substring(0,256)}function T(){const e=document.querySelector("sa11y-control-panel").shadowRoot,t=e.getElementById("panel-alert"),n=e.getElementById("panel-alert-text"),o=e.getElementById("panel-alert-preview");for(t.classList.remove("active"),o.classList.remove("panel-alert-preview");n.firstChild;)n.removeChild(n.firstChild);for(;o.firstChild;)o.removeChild(o.firstChild)}function x(e,t,n){T();const o=document.querySelector("sa11y-control-panel").shadowRoot,i=o.getElementById("panel-alert"),s=o.getElementById("panel-alert-text"),a=o.getElementById("panel-alert-preview"),r=o.getElementById("close-alert"),l=o.getElementById("skip-button");i.classList.add("active"),s.innerHTML=e;const c=n?`
                                                            ${n}
                                                            `:"";function d(){T();(l.hasAttribute("disabled")?o.getElementById("toggle"):l).focus()}t&&(a.classList.add("panel-alert-preview"),a.innerHTML=`${c}
                                                            ${t}
                                                            `),setTimeout(()=>{r.focus()},300),r.addEventListener("click",d),i.onkeydown=e=>{"Escape"===(e||window.event).key&&i.classList.contains("active")&&d()}}function k(e,t){e.forEach(e=>{i(`[${e}]`,`${t}`).forEach(t=>{t.removeAttribute(e)})})}function N(e,t){i(`${e}`,`${t}`).forEach(e=>{e.parentNode.removeChild(e)})}function S(e,t,n){setTimeout(()=>{e.scrollHeight>t.clientHeight?(t.classList.add("scrollable"),e.setAttribute("tabindex","0"),n&&(e.setAttribute("aria-label",n),e.setAttribute("role","region"))):t.classList.remove("scrollable")},50)}function w(e){const t=e=>e?.split(",").pop()?.trim()?.split(/\s+/)[0],n=e=>e?new URL(e,window.location.href).href:null,o=t(e.getAttribute("data-src")||e.getAttribute("srcset"));if(o)return n(o);const i=e.closest("picture")?.querySelector("source[srcset]")?.getAttribute("srcset"),s=t(i);return n(s||e.getAttribute("src"))}function C(e,t=!1){const n=e.element,o=`
                                                            ${u(A(m(e.htmlPath),600))}
                                                            `,i=e=>{const t=b(e),n=A(t,100);return t.length?h(n):o},s={SPAN:i,P:i,A:e=>{const t=b(e),n=A(t,100);return t.length>1&&e.href&&!e.hasAttribute("role")?`${h(n)}`:o},IMG:e=>{const n=e.closest("a[href]"),i=e.alt?`alt="${h(e.alt)}"`:"alt",s=w(e);function a(e){return n?``:``}if(t)return new Promise(e=>{if(s){if(new URL(s,window.location.origin).origin===window.location.origin)fetch(s).then(e=>e.blob()).then(e=>(e=>new Promise((t,n)=>{const o=new FileReader;o.onloadend=()=>{let{result:n}=o;const i=e.type&&e.type.startsWith("image/")?e.type:"image/png";n.startsWith("data:application/octet-stream")&&(n=n.replace("data:application/octet-stream",`data:${i}`)),t(n)},o.onerror=n,o.readAsDataURL(e)}))(e)).then(t=>{const n=t.startsWith("data:image/")?t:g(t);e(a(n))}).catch(()=>{e(a(s))});else{const t=s.startsWith("data:image/")?s:g(s);e(a(t))}}else e(o)});const r=s.startsWith("data:image/")?s:g(s);return s?a(r):o},IFRAME:e=>{const t=e.src,n=e.title?e.title:"",i=e.getAttribute("aria-label");if(t){const e=i||""||n;return``}return o},AUDIO:()=>m(e.htmlPath),VIDEO:()=>m(e.htmlPath)}[n.tagName];return s?s(n):o}function O(e){let t="";const n=l(e).toLowerCase();e.childNodes.forEach(e=>{e.nodeType===Node.TEXT_NODE?t+=e.textContent:e.nodeType===Node.ELEMENT_NODE&&(c(e)||(t+=e.textContent))});let o=t.replace(/[\p{Emoji_Presentation}\p{Extended_Pictographic}]/gu,"");return o=y(o).toLowerCase(),"x"!==o&&(0!==o.length&&!n.includes(o))}const P=function(){const e={};const t={};return{initializeElements:function(t){e.Everything=i("*","root",o.Exclusions.Sa11yElements),e.Contrast=e.Everything.filter(e=>!o.Exclusions.Contrast.some(t=>e.matches(t))&&!o.Exclusions.Contrast.includes(e)),e.Images=e.Everything.filter(e=>"IMG"===e.tagName&&!o.Exclusions.Images.some(t=>e.matches(t))),e.Links=e.Everything.filter(e=>("A"===e.tagName||"a"===e.tagName)&&e.hasAttribute("href")&&!e.matches('[role="button"]')&&!o.Exclusions.Links.some(t=>e.matches(t))),e.Headings=i('h1, h2, h3, h4, h5, h6, [role="heading"][aria-level]',"document",o.Exclusions.Headings),e.HeadingOne=i('h1, [role="heading"][aria-level="1"]',"document",o.Exclusions.Headings),e.ExcludedHeadings=e.Headings.filter(e=>o.Exclusions.Headings.some(t=>e.matches(t))),e.ExcludedOutlineHeadings=e.Headings.filter(e=>o.Exclusions.Outline.some(t=>e.matches(t))),e.OutlineIgnore=P.Found.ExcludedOutlineHeadings.concat(P.Found.ExcludedHeadings),e.Paragraphs=e.Everything.filter(e=>"P"===e.tagName&&!e.closest("table")),e.Lists=e.Everything.filter(e=>"LI"===e.tagName),e.Blockquotes=e.Everything.filter(e=>"BLOCKQUOTE"===e.tagName),e.Tables=e.Everything.filter(e=>"TABLE"===e.tagName&&!e.matches('[role="presentation"]')&&!e.matches('[role="none"]')),e.StrongItalics=e.Everything.filter(e=>["STRONG","EM"].includes(e.tagName)),e.Subscripts=e.Everything.filter(e=>["SUP","SUB"].includes(e.tagName));const n=t.checks.QA_BAD_LINK.sources;e.CustomErrorLinks=n.length?e.Links.filter(e=>n.split(",").some(t=>e.matches(t.trim()))):[];const s=e=>o.Root.Readability.contains(e)&&!o.Exclusions.Readability.some(t=>e.matches(t));e.Readability=[...e.Paragraphs.filter(s),...e.Lists.filter(s)];const a=t.checks.QA_NESTED_COMPONENTS.sources||'[role="tablist"], details';e.NestedComponents=a?e.Everything.filter(e=>e.matches(a)):[],e.TabIndex=e.Everything.filter(e=>e.hasAttribute("tabindex")&&"0"!==e.getAttribute("tabindex")&&!e.getAttribute("tabindex").startsWith("-")),e.Svg=e.Everything.filter(e=>"svg"===e.tagName),e.Buttons=e.Everything.filter(e=>"BUTTON"===e.tagName||e.matches('[role="button"]')),e.Inputs=e.Everything.filter(e=>["INPUT","SELECT","TEXTAREA","METER","PROGRESS"].includes(e.tagName)),e.Labels=e.Everything.filter(e=>"LABEL"===e.tagName),e.iframes=e.Everything.filter(e=>["IFRAME","AUDIO","VIDEO"].includes(e.tagName)),e.Videos=e.iframes.filter(e=>e.matches(o.Global.VideoSources)),e.Audio=e.iframes.filter(e=>e.matches(o.Global.AudioSources)),e.Visualizations=e.iframes.filter(e=>e.matches(o.Global.VisualizationSources)),e.EmbeddedContent=e.iframes.filter(e=>!e.matches(o.Global.AllEmbeddedContent));const r=document.querySelector("html");e.Language=r.getAttribute("lang")},Found:e,initializeAnnotations:function(){t.Array=i("sa11y-annotation","document"),t.Array.forEach((e,t)=>{e.setAttribute("data-sa11y-position",t)})},Annotations:t}}();const R=e=>{if(0===e.shadowRoot.querySelectorAll(".sa11y-css-utilities").length){const t=document.createElement("style");t.setAttribute("class","sa11y-css-utilities"),t.textContent="[data-sa11y-overflow]{overflow:auto!important}[data-sa11y-clone-image-text]{display:none!important}[data-sa11y-readability-period]{clip:rect(1px,1px,1px,1px)!important;border:0!important;clip-path:inset(50%)!important;display:block!important;height:1px!important;overflow:hidden!important;padding:0!important;position:absolute!important;white-space:nowrap!important;width:1px!important}[data-sa11y-error-inline],[data-sa11y-error]{outline:5px solid var(--sa11y-error)!important;outline-offset:2px}[data-sa11y-warning-inline]:not([data-sa11y-error-inline]),[data-sa11y-warning]:not([data-sa11y-error]){outline:5px solid var(--sa11y-warning)!important;outline-offset:2px}[data-sa11y-pulse-border]{animation:pulse 2s 3;box-shadow:0;outline:5px solid var(--sa11y-focus-color)!important}[data-sa11y-pulse-border]:focus,[data-sa11y-pulse-border]:hover{animation:none}@keyframes pulse{0%{box-shadow:0 0 0 5px var(--sa11y-focus-color)}70%{box-shadow:0 0 0 12px var(--sa11y-pulse-color)}to{box-shadow:0 0 0 5px var(--sa11y-pulse-color)}}@media (prefers-reduced-motion:reduce){[data-sa11y-pulse-border]{animation:none!important}}@media (forced-colors:active){[data-sa11y-error-inline],[data-sa11y-error],[data-sa11y-good],[data-sa11y-pulse-border],[data-sa11y-warning-inline],[data-sa11y-warning]{forced-color-adjust:none}}",e.shadowRoot.appendChild(t)}};function D(e,t,n){if(!0===e){let e=window.location.href;const o=function(e,t){let n=null;return(...o)=>{window.clearTimeout(n),n=window.setTimeout(()=>{e(...o)},t)}}(async()=>{e!==window.location.href&&("Closed"!==_.getItem("sa11y-panel")&&_.getItem("sa11y-panel")?(n(!1),await t()):t(),e=window.location.href)},250);window.addEventListener("click",o),window.addEventListener("keydown",o)}}function M(e,t){const i=JSON.parse(localStorage.getItem("sa11y-dismissed")||"[]"),s=window.location.pathname,a=[...e.filter(e=>i.some(t=>((e,t)=>t.key.includes(e.dismiss)&&t.href===s&&("warning"===e.type||"good"===e.type))(e,t))),...e.filter(e=>i.some(t=>((e,t)=>"string"==typeof t.dismissAll&&e.dismissAll===t.dismissAll&&t.href===s)(e,t)))],r=a.length,l=e.filter(e=>!a.some(t=>t.dismiss===e.dismiss&&("warning"===e.type||"good"===e.type)));return r?(o.Panel.dismissButton.classList.add("active"),o.Panel.dismissTooltip.innerText=n.sprintf("PANEL_DISMISS_BUTTON",r),t.object.setContent(n.sprintf("PANEL_DISMISS_BUTTON",r))):o.Panel.dismissButton.classList.remove("active"),{dismissedIssues:i,updatedResults:l,dismissCount:r,dismissedResults:a}}let B,$;function G(e,t,s,a){if(o.Global.dismissAnnotations){$=t=>{(async(e,t,o,s)=>{let a=JSON.parse(_.getItem("sa11y-dismissed"));const r=e.target;if(document.querySelector("sa11y-panel-tooltips").hidden=!1,"BUTTON"===r.tagName&&r.hasAttribute("data-sa11y-dismiss")){const e=parseInt(r.getAttribute("data-sa11y-dismiss"),10),l=t.find(t=>t.id===e);if(null===a&&(setTimeout(()=>x(n._("DISMISS_REMINDER")),0),a=[]),l.dismiss){const e=r.hasAttribute("data-sa11y-dismiss-all")?l.dismissAll:"",t={key:l.dismiss,href:window.location.pathname,...e?{dismissAll:e}:{}},n=i(`[data-sa11y-annotation='${l.id}']`),c=n[0]?n[0].getAttribute("data-sa11y-position"):0;_.setItem("sa11y-latest-dismissed",c),_.setItem("sa11y-dismiss-item",JSON.stringify(t)),a.push(t),_.setItem("sa11y-dismissed",JSON.stringify(a)),_.removeItem("sa11y-dismiss-item");const d=r?.closest("[data-tippy-root]");d&&setTimeout(()=>{d.remove()},0),s(!1),await o()}}})(t,e,s,a)};document.querySelector("sa11y-tooltips").shadowRoot.addEventListener("click",$),o.Panel.panel.addEventListener("click",$)}B=()=>{(async(e,t,n)=>{document.querySelector("sa11y-panel-tooltips").hidden=!0;const i=e.filter(e=>e.href!==window.location.pathname);_.setItem("sa11y-dismissed",JSON.stringify(i)),o.Panel.dismissButton.classList.remove("active"),n(!1),await t()})(t,s,a)},o.Panel.dismissButton?.addEventListener("click",B)}function U(){const e=new Date,t=String(e.getDate()).padStart(2,"0"),n=String(e.getMonth()+1).padStart(2,"0"),o=e.getFullYear(),i=(new Date).toLocaleString(),s=`${n}-${t}-${o}`,a=document.querySelector("head title"),r=!a||0===a.textContent.trim().length;return{date:i,numericDate:s,titleCheck:r,metaTitle:r?"":a.textContent,pageURL:window.location.href}}async function H(e,t){const o=await async function(e,t){const o=e.filter(e=>"error"===e.type),i=e.filter(e=>"warning"===e.type),s={error:o.length,warning:i.length,dismiss:t.length};async function a(e,t){const o={error:n._("ERRORS"),warning:n._("WARNINGS"),dismissed:n._("DISMISSED")}[t];if(!(e.length>0))return"";let i=`

                                                            ${o}

                                                            `,a=`
                                                              `,r="
                                                            ";"dismissed"===t&&(a=`
                                                            ${n.sprintf("PANEL_DISMISS_BUTTON",s.dismiss)}
                                                              `,r="
                                                            "),i+=a;const l=e.map(async e=>{let t="";if(e.element){const o=["IMG","IFRAME","AUDIO","VIDEO"],i=await C(e,!0);t=o.includes(e.element.tagName)?`
                                                          • ${n._("PREVIEW")}: ${i}
                                                          • ${n._("ELEMENT")}:
                                                            ${u(e.htmlPath)}
                                                          • `:`
                                                          • ${n._("ELEMENT")}:
                                                            ${u(e.htmlPath)}
                                                          • `}const o=e.cssPath?`
                                                          • ${n._("PATH")}:
                                                            ${e.cssPath}
                                                          • `:"";return`
                                                          • ${e.content}
                                                              ${t}${o}
                                                          • `});return i+=(await Promise.all(l)).join(""),i+=r,i}const r=await a(o,"error"),l=await a(i,"warning"),c=await a(t,"dismissed"),d=U(),p=d.titleCheck?"":`
                                                            ${n._("PAGE_TITLE")}
                                                            ${d.metaTitle}
                                                            `,h=0!==s.error?`
                                                            ${n._("ERRORS")}
                                                            ${s.error}
                                                            `:"",g=0!==s.warning?`
                                                            ${n._("WARNINGS")}
                                                            ${s.warning}
                                                            `:"",m=0!==s.dismiss?`
                                                            ${n._("DISMISSED")}
                                                            ${s.dismiss}
                                                            `:"";return`\n \n \n \n \n \n ${n._("RESULTS")}: ${d.metaTitle}\n \n \n \n
                                                            \n

                                                            ${n._("RESULTS")}

                                                            \n
                                                            \n
                                                            \n ${p}\n
                                                            URL
                                                            \n
                                                            ${d.pageURL}
                                                            \n
                                                            ${n._("DATE")}
                                                            \n
                                                            ${d.date}
                                                            \n
                                                            \n
                                                            \n ${h}\n ${g}\n ${m}\n
                                                            \n
                                                            \n
                                                            \n
                                                            \n ${r}\n ${l}\n ${c}\n
                                                            \n
                                                            \n

                                                            ${n.sprintf("GENERATED",'Sa11y')}

                                                            \n
                                                            \n \n \n `}(e,t),i=U(),s=new Blob([o],{type:"text/html"}),a=document.createElement("a"),r=i.titleCheck?"":`_${i.metaTitle.trim().replace(/ /g,"")}`;a.href=window.URL.createObjectURL(s),a.download=`Sa11y_${i.numericDate+r}.html`,document.body.appendChild(a),a.click(),setTimeout(()=>{document.body.removeChild(a),window.URL.revokeObjectURL(a.href)},100)}function F(e){const t=U(),n=e.filter(e=>"warning"===e.type||"error"===e.type).map(e=>{const{type:n,content:o,htmlPath:i,cssPath:s}=e,a=o.replaceAll(/]*>.*?<\/span>/gi,"").replaceAll(''," | ").replaceAll(/"/g,'""');const r=function(e){return e.replace(/&(#?[a-zA-Z0-9]+);/g,(e,t)=>{switch(t){case"amp":return"&";case"lt":return"<";case"gt":return">";case"quot":case"#39":return"'";default:return"#"===t.charAt(0)?String.fromCharCode("x"===t.charAt(1)?parseInt(t.substr(2),16):parseInt(t.substr(1),10)):e}})}(String(a).replace(/<[^>]*>/g,"")),l={Title:`"${t.metaTitle}"`,URL:`"${t.pageURL}"`,Type:`"${String(n)}"`,Issue:`"${r}"`,Element:`"${i}"`};return s&&(l.Path=`"${s}"`),l}),o=Object.keys(n[0]),i=`${o.join(",")}\n${n.map(e=>o.map(t=>e[t]).join(",")).join("\n")}`,s=new Uint8Array([239,187,191]),a=new Blob([s,i],{type:"text/csv;charset=utf-8;"}),r=window.URL.createObjectURL(a),l=document.createElement("a");l.href=r,l.href=window.URL.createObjectURL(a);const c=t.titleCheck?"":`_${t.metaTitle.trim().replace(/ /g,"")}`;l.setAttribute("download",`Sa11y_${t.numericDate+c}.csv`),document.body.appendChild(l),l.click(),setTimeout(()=>{document.body.removeChild(l),window.URL.revokeObjectURL(l.href)},100)}let K,W;const Y="4.2.1";var z='.visually-hidden{clip:rect(1px,1px,1px,1px);border:0;clip-path:inset(50%);display:block;height:1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px}[hidden]{display:none!important}.header-text,.header-text-inline,h2{color:var(--sa11y-panel-primary);display:block;font-size:var(--sa11y-large-text);font-weight:600;margin-bottom:3px}.header-text-inline{display:inline-block!important}code{font-family:monospace!important;font-size:calc(var(--sa11y-normal-text) - 1px);font-weight:600}pre:has(code){display:block;overflow:auto;white-space:pre-wrap}.kbd,code,kbd,pre{background-color:var(--sa11y-panel-badge);border-radius:3.2px;color:var(--sa11y-panel-primary);padding:1.6px 4.8px}.bold{font-weight:600}.error .colour,.red-text{color:var(--sa11y-red-text);font-family:var(--sa11y-font-face)}.warning .colour,.yellow-text{color:var(--sa11y-yellow-text);font-family:var(--sa11y-font-face)}.badge,.normal-badge{background-color:var(--sa11y-panel-badge);border-radius:10px;color:var(--sa11y-panel-primary);display:inline;font-size:14px;font-weight:700!important;line-height:1;min-width:10px;outline:1px solid transparent;padding:1px 5px 1.75px;text-align:center;vertical-align:baseline;white-space:nowrap}.error .badge{background:var(--sa11y-error);color:var(--sa11y-error-text)}.error-badge{background:var(--sa11y-error)!important;color:var(--sa11y-error-text)!important}.warning .badge{background:var(--sa11y-yellow-text);color:var(--sa11y-panel-bg)}.warning-badge{background:var(--sa11y-yellow-text)!important;color:var(--sa11y-panel-bg)!important}.good-contrast{background:var(--sa11y-good)!important;color:var(--sa11y-good-text)!important}#contrast-preview{background-color:#e8e8e8;background-image:linear-gradient(45deg,#ccc 25%,transparent 0,transparent 75%,#ccc 0,#ccc),linear-gradient(45deg,#ccc 25%,transparent 0,transparent 75%,#ccc 0,#ccc);background-position:0 0,5px 5px;background-size:10px 10px;border:2px dashed var(--sa11y-panel-bg-splitter);border-radius:3.2px;line-height:1;margin-top:10px;max-height:100px;overflow:clip;overflow-wrap:break-word;padding:5px}#color-pickers{display:flex;justify-content:space-between;margin-bottom:10px;margin-top:10px}#color-pickers label{align-items:center;display:flex}#color-pickers input{margin-inline-start:7px}input[type=color i]{background:var(--sa11y-panel-bg-secondary);block-size:30px;border-color:var(--sa11y-button-outline);border-radius:50%;border-style:solid;border-width:1px;inline-size:30px;padding:2px}input[type=color i]::-webkit-color-swatch-wrapper{padding:1px}input[type=color i]::-webkit-color-swatch{border-color:var(--sa11y-button-outline);border-radius:50%}input[type=color i]::-moz-color-swatch{border-color:var(--sa11y-button-outline);border-radius:50%}input[type=color i].unknown{box-shadow:0 0 0 2px var(--sa11y-yellow-text)}input[type=color i].unknown:after{align-items:center;color:#fff;content:"?";display:flex;font-size:18px;height:24px;justify-content:center;margin:-24px 0;pointer-events:none;position:absolute;width:24px;z-index:2}.close-btn{background:var(--sa11y-panel-bg-secondary);border:2px solid var(--sa11y-button-outline);border-radius:50%;color:var(--sa11y-panel-primary);cursor:pointer;float:var(--sa11y-float-rtl);font-size:var(--sa11y-normal-text);font-weight:400;height:32px;margin:0;position:relative;transition:all .2s ease-in-out;width:32px}.close-btn:focus,.close-btn:hover{background-color:var(--sa11y-shortcut-hover)}.close-btn:after{background:var(--sa11y-setting-switch-bg-off);content:"";inset:-7px;-webkit-mask:var(--sa11y-close-btn-svg) center no-repeat;mask:var(--sa11y-close-btn-svg) center no-repeat;position:absolute}@media screen and (forced-colors:active){.close-btn:after{filter:invert(1)}}#container [tabindex="-1"]:focus,#container [tabindex="0"]:focus,#container a:focus,#container button:focus,#container input:focus,#container select:focus{box-shadow:0 0 0 5px var(--sa11y-focus-color);outline:0}#container #panel-controls button:focus,#container .switch:focus{box-shadow:inset 0 0 0 4px var(--sa11y-focus-color);outline:0}#container #panel-controls button:focus:not(:focus-visible),#container [tabindex="-1"]:focus:not(:focus-visible),#container [tabindex="0"]:focus:not(:focus-visible),#container button:focus:not(:focus-visible),#container input:focus:not(:focus-visible),#container select:focus:not(:focus-visible){box-shadow:none;outline:0}#container [tabindex="-1"]:focus-visible,#container [tabindex="0"]:focus-visible,#container a:focus-visible,#container button:not(#panel-controls button):not(.switch):focus-visible,#container input:focus-visible,#container select:focus-visible{box-shadow:0 0 0 5px var(--sa11y-focus-color);outline:0}#container #panel-controls button:focus-visible,#container .switch:focus-visible{box-shadow:inset 0 0 0 4px var(--sa11y-focus-color);outline:0}@media screen and (forced-colors:active){#panel-controls button:focus{border:3px solid transparent}#container [tabindex="-1"]:focus,#container [tabindex="0"]:focus,#container a:focus,#container button:focus,#container select:focus,.close-btn:focus{outline:3px solid transparent!important}}';class Q extends HTMLElement{constructor(e){super(),this.error=e}connectedCallback(){const e=this.attachShadow({mode:"open"}),t=document.createElement("style");t.innerHTML=":host{background:var(--sa11y-panel-bg);border-top:5px solid var(--sa11y-panel-bg-splitter);bottom:0;display:block;height:-moz-fit-content;height:fit-content;left:0;position:fixed;right:0;width:100%;z-index:999999}*{-webkit-font-smoothing:auto!important;color:var(--sa11y-panel-primary);font-family:var(--sa11y-font-face)!important;font-size:var(--sa11y-normal-text);line-height:22px!important}#dialog{margin:20px auto;max-width:900px;padding:20px}h2{font-size:var(--sa11y-large-text);margin-top:0}a{color:var(--sa11y-hyperlink);cursor:pointer;text-decoration:underline}a:focus,a:hover{text-decoration:none}p{margin-top:0}.error{background:var(--sa11y-error);border:2px dashed #f08080;color:var(--sa11y-error-text);margin-bottom:0;padding:5px}"+z,e.appendChild(t);const i=document.createElement("div");i.setAttribute("id","dialog"),i.setAttribute("tabindex","-1");const s=window.location,a=`## Error Description\n\`\`\`javascript\n${this.error.stack}\n\`\`\`\n\n## Details\n- **URL:** ${s}\n- **Version:** ${Y}\n\n## Comments\n`,r=`https://github.com/ryersondmp/sa11y/issues/new?title=Bug%20report&body=${encodeURIComponent(a)}`;i.innerHTML=`\n \n

                                                            ${n._("ERROR")}

                                                            \n

                                                            ${n.sprintf("CONSOLE_ERROR","https://forms.gle/sjzK9XykETaoqZv99",r)}

                                                            \n

                                                            ${u(this.error.stack)}

                                                            Version: ${Y}
                                                            URL: ${s}

                                                            \n `,e.appendChild(i),setTimeout(()=>{o.Panel.toggle.style.display="none";const e=document.querySelector("sa11y-console-error");e.shadowRoot.getElementById("dialog").focus();e.shadowRoot.querySelector(".close-btn").addEventListener("click",()=>{e.remove()})},0)}}class V extends HTMLElement{connectedCallback(){this.attachShadow({mode:"open"});const e=document.createElement("style");e.textContent='a,button,code,div,h1,h2,h3,kbd,label,li,ol,p,pre,span,strong,svg,ul{all:unset;box-sizing:border-box!important}:after,:before{all:unset}div{display:block}*{-webkit-font-smoothing:auto!important;font-family:var(--sa11y-font-face)!important}label,li,ol,p,ul{font-size:var(--sa11y-normal-text);font-weight:400;letter-spacing:normal;line-height:22px!important;text-align:start;word-break:break-word}.sa11y-overflow{overflow:auto}iframe,img,video{border:0;display:block;height:auto;max-width:100%}audio{max-width:100%}#toggle{align-items:center;background:linear-gradient(0deg,#e040fb,#00bcd4);background-color:var(--sa11y-setting-switch-bg-off);background-size:150% 150%;border-radius:50%;bottom:var(--sa11y-toggle-y-offset);color:#fff;cursor:pointer;display:flex;height:55px;inset-inline-end:var(--sa11y-toggle-x-offset);justify-content:center;margin:0;overflow:visible;position:fixed;transition:all .2s ease-in-out;width:55px;z-index:2147483644}#toggle.left,#toggle.top-left{inset-inline-start:var(--sa11y-toggle-x-offset)}#toggle.top-left,#toggle.top-right{bottom:unset;top:var(--sa11y-toggle-y-offset)}@media screen and (forced-colors:active){#toggle{background:ButtonFace!important;border:2px solid transparent}}#toggle svg{height:35px;width:35px}#toggle svg path{fill:var(--sa11y-panel-bg)}#toggle:focus,#toggle:hover{animation:sa11y-toggle-gradient 3s ease}#toggle:disabled:focus,#toggle:disabled:hover{animation:none}#toggle.on{background:linear-gradient(180deg,#e040fb,#00bcd4)}#toggle:disabled{background:unset;background-color:var(--sa11y-setting-switch-bg-off);cursor:not-allowed}#notification-badge{text-wrap:nowrap;align-items:center;background-color:#eb0000;border:1px solid transparent;border-radius:12px;color:#fff;display:none;font-size:13.5px;font-weight:400;justify-content:center;line-height:1;min-width:20px;padding:2.5px;position:absolute;right:-3px;top:-5.5px}#notification-badge.notification-badge-warning{background-color:var(--sa11y-warning-hover);border:1px solid var(--sa11y-warning);color:var(--sa11y-warning-text)}#panel{background:var(--sa11y-panel-bg);border-radius:4px;bottom:calc(var(--sa11y-toggle-y-offset) + var(--sa11y-panel-y-gap));box-shadow:0 0 20px 4px rgba(154,161,177,.15),0 4px 80px -8px rgba(36,40,47,.25),0 4px 4px -2px rgba(91,94,105,.15);inset-inline-end:calc(var(--sa11y-toggle-x-offset) + var(--sa11y-panel-x-gap));opacity:0;overflow:visible;position:fixed;transform:scale(0);transform-origin:100% 100%;transition:transform .2s,opacity background .2s .2s;visibility:hidden;z-index:2147483643}#panel.left,#panel.top-left{inset-inline-end:unset;inset-inline-start:calc(var(--sa11y-toggle-x-offset) + var(--sa11y-panel-x-gap))}#panel.top-left,#panel.top-right{bottom:unset;top:calc(var(--sa11y-toggle-y-offset) + var(--sa11y-panel-y-gap) + 10px)}#panel.active{height:auto;opacity:1;transform:scale(1);transform-origin:bottom right;transition:transform .2s,opacity .2s;visibility:visible}@media screen and (forced-colors:active){#panel{border:2px solid transparent}}#panel.active.left,[dir=rtl] #panel.active{transform-origin:bottom left}#panel.active.top-left{transform-origin:top left}#panel.active.top-right{transform-origin:top right}#panel-alert{display:none;opacity:0}#panel-alert.active{display:block;opacity:1}#panel-alert-content{align-items:center;border-bottom:1px solid var(--sa11y-panel-bg-splitter);color:var(--sa11y-panel-primary);line-height:22px;max-height:400px;overflow-y:auto;padding:15px 20px 15px 15px;position:relative}.top-left #panel-alert-content,.top-right #panel-alert-content{border:0}#panel-alert-preview .close-tooltip{display:none}#panel-alert-preview,#panel-alert-text{font-family:var(--sa11y-font-face);font-size:var(--sa11y-normal-text);font-weight:400;line-height:22px}.panel-alert-preview{background:var(--sa11y-panel-bg-secondary);border:1px dashed var(--sa11y-panel-bg-splitter);border-radius:5px;margin-top:15px;padding:10px}.panel-alert-preview ul{margin:0;margin-block-end:0;margin-block-start:0;padding:0;position:relative}.panel-alert-preview li{display:list-item;margin:5px 10px 0 20px;padding-bottom:5px}.element-preview{background-color:var(--sa11y-element-preview);border-radius:3.2px;margin-bottom:10px;overflow-wrap:break-word;padding:5px}button[data-sa11y-dismiss]{background:var(--sa11y-panel-bg-secondary);border:2px solid var(--sa11y-button-outline);border-radius:5px;color:var(--sa11y-panel-primary);cursor:pointer;display:block;margin:10px 5px 5px 0;margin-inline-end:15px;padding:4px 8px}button[data-sa11y-dismiss]:focus,button[data-sa11y-dismiss]:hover{background:var(--sa11y-shortcut-hover)}h2{font-size:var(--sa11y-large-text);font-weight:700}h2,h3{display:block;margin-bottom:3px}h3{font-size:calc(var(--sa11y-large-text) - 1px)}h3,strong{font-weight:600}a:not(#outline-list a):not(.edit){border-bottom:0;color:var(--sa11y-hyperlink);cursor:pointer;font-weight:500;text-decoration:underline}a:focus,a:hover{text-decoration:none!important}hr{background:var(--sa11y-panel-bg-splitter);border:none;height:1px;margin:10px 0;opacity:1;padding:0}#dismiss-button,#skip-button{background:var(--sa11y-panel-bg-secondary);border:1px solid var(--sa11y-button-outline);border-radius:50px;cursor:pointer;display:none;height:36px;margin-inline-end:8px;margin-inline-start:2px;overflow:visible;position:relative;text-align:center;transition:all .1s ease-in-out;width:36px}#dismiss-button.active,#skip-button.active{display:block}#dismiss-button:disabled,#skip-button:disabled{background:none;border:0;box-shadow:none;cursor:default}#dismiss-button:before,#skip-button:before{content:"";inset:-5px;position:absolute}#dismiss-button:focus:not(:disabled),#dismiss-button:hover:not(:disabled),#skip-button:focus:not(:disabled),#skip-button:hover:not(:disabled){background-color:var(--sa11y-shortcut-hover)}#panel.left #dismiss-button,#panel.left #skip-button,#panel.top-left #dismiss-button,#panel.top-left #skip-button{margin-inline-end:2px;margin-inline-start:8px}.dismiss-icon{background:var(--sa11y-setting-switch-bg-off);display:inline-block;height:24px;margin-bottom:-4px;-webkit-mask:var(--sa11y-dismiss-icon) center no-repeat;mask:var(--sa11y-dismiss-icon) center no-repeat;width:24px}.dismiss-group{display:flex}@media screen and (forced-colors:active){.dismiss-icon{filter:invert(1)}}#panel-content{align-items:center;color:var(--sa11y-panel-primary);display:flex;padding:6px}#panel-content.errors .panel-icon,#panel-content.good .panel-icon,#panel-content.warnings .panel-icon{height:26px;margin:0 auto;width:26px}#panel-content.errors .panel-icon{background:var(--sa11y-panel-error);margin-top:-2px;-webkit-mask:var(--sa11y-error-svg) center no-repeat;mask:var(--sa11y-error-svg) center no-repeat}#panel-content.good .panel-icon{background:var(--sa11y-good);-webkit-mask:var(--sa11y-good-svg) center no-repeat;mask:var(--sa11y-good-svg) center no-repeat}#panel-content.warnings .panel-icon{background:var(--sa11y-yellow-text);-webkit-mask:var(--sa11y-warning-svg) center no-repeat;mask:var(--sa11y-warning-svg) center no-repeat;transform:scaleX(var(--sa11y-icon-direction))}@media screen and (forced-colors:active){#panel-content.errors .panel-icon,#panel-content.good .panel-icon,#panel-content.warnings .panel-icon{filter:invert(1)}}#panel.left #panel-content,#panel.top-left #panel-content{flex-direction:row-reverse}#status{font-size:var(--sa11y-large-text)}#status,.panel-count{color:var(--sa11y-panel-primary)}.panel-count{background-color:var(--sa11y-panel-badge);border-radius:4px;font-size:15px;font-weight:400;margin-left:3px;margin-right:3px;padding:2px 4px}#images-panel,#outline-panel,#page-issues,#settings-panel{color:var(--sa11y-panel-primary);display:none;opacity:0}#images-panel.active,#outline-panel.active,#page-issues.active,#settings-panel.active{display:block;opacity:1}.panel-header{display:flex;justify-content:space-between;padding:10px 15px 0;text-align:start}#about-content{padding-top:5px}#about-content p{display:block;margin-block-end:1em}#images-content,#outline-content,#page-issues-content,#settings-content{border-bottom:1px solid var(--sa11y-panel-bg-splitter);padding:0 15px 10px}.top-left #images-content,.top-left #outline-content,.top-left #page-issues-content,.top-left #settings-content,.top-right #images-content,.top-right #outline-content,.top-right #page-issues-content,.top-right #settings-content{border:0}#page-issues-content{max-height:160px;overflow-y:auto}#settings-content{max-height:400px;overflow-y:auto}#images-content,#outline-content{max-height:250px;overflow-y:auto}#outline-panel .outline-list-item.sa11y-red-text,#settings-panel .sa11y-red-text{color:var(--sa11y-red-text)}#outline-list{display:block;margin:0;padding:0}#outline-list a{cursor:pointer;display:block;text-decoration:none}#outline-list li{display:block;list-style-type:none;margin-bottom:3px;margin-top:0;padding:0}#outline-list li:first-child{margin-top:5px}#outline-list li a:focus,#outline-list li a:hover{background:var(--sa11y-panel-outline-hover);border-radius:5px;box-shadow:0 0 0 2px var(--sa11y-panel-outline-hover);display:block}#outline-list .outline-2{margin-inline-start:15px}#outline-list .outline-3{margin-inline-start:30px}#outline-list .outline-4{margin-inline-start:45px}#outline-list .outline-5{margin-inline-start:60px}#outline-list .outline-6{margin-inline-start:75px}#images-list{display:block;margin:0;padding:0}#images-list li{border-bottom:1px solid var(--sa11y-panel-bg-splitter);display:block;list-style-type:none;margin:15px 0;overflow:hidden;width:100%}#images-list li:first-child{margin-top:5px}#images-list li:last-child{border:none;margin-bottom:0}#images-list li .alt{padding:2px 5px 10px}#images-list li .edit-block{display:flex;justify-content:flex-end;margin-bottom:15px}#images-list li .edit{background:var(--sa11y-panel-bg-secondary);border:2px solid var(--sa11y-button-outline);border-radius:5px;color:var(--sa11y-panel-primary);cursor:pointer;margin-inline-end:5px;padding:4px 7px;position:relative;text-decoration:none}#images-list li .edit:focus,#images-list li .edit:hover{background-color:var(--sa11y-shortcut-hover)}#images-list li .edit:before{content:"";inset:-10px;position:absolute}#images-list li img{border-radius:5px;float:inline-start;margin-block-end:15px;margin-inline-end:10px;max-width:110px}#images-list li.warning .alt{color:var(--sa11y-yellow-text)}#images-list li.warning img{background-color:var(--sa11y-yellow-text);border:5px solid var(--sa11y-yellow-text)}#images-list li.error .alt{color:var(--sa11y-error)}#images-list li.error img{background-color:var(--sa11y-error);border:5px solid var(--sa11y-error)}#images-list li.good img{background-color:var(--sa11y-panel-badge);border:5px solid var(--sa11y-panel-badge)}@media screen and (forced-colors:active){#images-list li img{background-color:ButtonBorder!important}}.move-panel-icon{height:18px;-webkit-mask:var(--sa11y-move-panel-icon);mask:var(--sa11y-move-panel-icon);-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;width:18px}.info-icon,.move-panel-icon{background:var(--sa11y-setting-switch-bg-off);display:inline-block;vertical-align:middle}.info-icon{height:20px;margin-top:-2px;-webkit-mask:var(--sa11y-info-icon);mask:var(--sa11y-info-icon);-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;width:20px}.sun-icon{-webkit-mask:var(--sa11y-sun-icon);mask:var(--sa11y-sun-icon);-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}.moon-icon,.sun-icon{background:var(--sa11y-setting-switch-bg-off);display:inline-block;height:18px;vertical-align:middle;width:18px}.moon-icon{-webkit-mask:var(--sa11y-moon-icon);mask:var(--sa11y-moon-icon);-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}.error-icon{background:var(--sa11y-error-text);margin-bottom:-4px;-webkit-mask:var(--sa11y-error-svg);mask:var(--sa11y-error-svg);-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}.error-icon,.hidden-icon{display:inline-block;height:16px;width:16px}.hidden-icon{margin-bottom:-3px;-webkit-mask:var(--sa11y-hidden-icon-svg);mask:var(--sa11y-hidden-icon-svg);-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}.hidden-icon,.link-icon{background:var(--sa11y-panel-primary)}.link-icon{display:inline-block;height:16px;margin-bottom:-3.5px;-webkit-mask:var(--sa11y-link-icon-svg);mask:var(--sa11y-link-icon-svg);-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;width:16px}.error-badge .hidden-icon,.error-badge .link-icon{background:var(--sa11y-error-text)}.warning-badge .hidden-icon,.warning-badge .link-icon{background:var(--sa11y-panel-bg)}.error .link-icon{background:var(--sa11y-error-text)}.warning .link-icon{background:var(--sa11y-panel-bg)}@media screen and (forced-colors:active){.error-icon,.hidden-icon,.info-icon,.link-icon,.moon-icon,.move-panel-icon,.sun-icon{filter:invert(1)}}#panel-controls{border-bottom:1px solid var(--sa11y-panel-bg-splitter);border-radius:0 0 4px 4px;display:flex;overflow:hidden}#panel-controls button{background:var(--sa11y-panel-bg-secondary);background-color:var(--sa11y-panel-bg-secondary);border-inline-end:1px solid var(--sa11y-panel-bg-splitter);border-top:1px solid var(--sa11y-panel-bg-splitter);color:var(--sa11y-panel-secondary);cursor:pointer;display:block;font-size:var(--sa11y-normal-text);font-weight:400;height:30px;line-height:0;margin:0;opacity:1;outline:0;padding:0;position:relative;text-align:center;transition:background .2s;width:100%}#panel-controls button.active,#panel-controls button:hover{background-color:var(--sa11y-shortcut-hover)}#panel-controls button.active{font-weight:600}#export-results-mode,label{color:var(--sa11y-panel-primary);display:inline-block;font-weight:400;margin:0;width:100%}label:not(#colour-filter-mode,#export-results-mode){cursor:pointer}#panel.right #panel-controls:has(#images-toggle):after{content:"";width:80px}#panel.left #panel-controls:has(#images-toggle):before{content:"";width:50px}#settings-panel .appearance-group,#settings-panel .export-results-group{display:flex;margin:5px 0}#settings-panel .appearance-group button,#settings-panel .export-results-group button{align-items:center;border:2px solid var(--sa11y-setting-switch-bg-off);border-radius:5px;cursor:pointer;display:flex;justify-content:center;margin:2px 0;margin-inline-end:4px;margin-inline-start:8px;min-height:34px;min-width:44px;position:relative;text-align:center;white-space:nowrap}#settings-panel .appearance-group button:focus,#settings-panel .appearance-group button:focus-within,#settings-panel .appearance-group button:hover,#settings-panel .export-results-group button:focus,#settings-panel .export-results-group button:focus-within,#settings-panel .export-results-group button:hover{background:var(--sa11y-shortcut-hover)}#settings-panel .appearance-group button:before,#settings-panel .export-results-group button:before{content:"";inset:-7px;position:absolute}#settings-panel .appearance-group button .text,#settings-panel .export-results-group button .text{color:var(--sa11y-setting-switch-bg-off);font-weight:600;padding:0 6px}#settings-panel .switch{background:none;border:0;border-radius:5px;color:var(--sa11y-setting-switch-bg-off);cursor:pointer;font-size:var(--sa11y-normal-text);font-weight:600;height:44px;margin:0;padding:7px 10px;position:relative;text-align:end;width:105px}#settings-panel .switch[aria-pressed=false]:after,#settings-panel .switch[aria-pressed=true]:after{content:"";display:inline-block;height:27px;margin:0 4px 4px;vertical-align:middle;width:27px}#settings-panel .switch[aria-pressed=true]:after{background:var(--sa11y-setting-switch-bg-on);-webkit-mask:var(--sa11y-setting-switch-on-svg) center no-repeat;mask:var(--sa11y-setting-switch-on-svg) center no-repeat}#settings-panel .switch[aria-pressed=false]:after{background:var(--sa11y-setting-switch-bg-off);-webkit-mask:var(--sa11y-setting-switch-off-svg) center no-repeat;mask:var(--sa11y-setting-switch-off-svg) center no-repeat}@media screen and (forced-colors:active){#settings-panel .switch[aria-pressed=false]:after,#settings-panel .switch[aria-pressed=true]:after{filter:invert(1)}}#settings-panel #settings-options li{align-items:center;border-bottom:1px solid var(--sa11y-panel-bg-splitter);display:flex;justify-content:space-between;list-style-type:none;padding:1px 0}#settings-panel #settings-options li:last-child{border:none}#page-issues{align-items:center;color:var(--sa11y-panel-primary)}#page-issues-list{display:block;margin-top:4px}#page-issues-list li{display:block;margin:0 0 10px}.top-left.has-page-issues #page-issues,.top-right.has-page-issues #page-issues{border-top:1px solid var(--sa11y-panel-bg-splitter);margin-top:-1px}#panel-colour-filters{align-items:center;color:var(--sa11y-panel-primary);display:none;font-family:var(--sa11y-font-face);font-size:var(--sa11y-normal-text);font-weight:400;line-height:22px}#panel-colour-filters.active{display:flex}#panel-colour-filters p{padding:6px 20px 6px 6px;width:100%}#panel-colour-filters[data-colour=protanopia]{border-bottom:6px solid transparent;-o-border-image:linear-gradient(94deg,#786719 11%,#e0c600 36%,#e0c600 47%,#0059e3 75%,#0042aa 91%);border-image:linear-gradient(94deg,#786719 11%,#e0c600 36%,#e0c600 47%,#0059e3 75%,#0042aa 91%);border-image-slice:1}#panel-colour-filters[data-colour=deuteranopia]{border-bottom:6px solid transparent;-o-border-image:linear-gradient(270deg,#567fdb,#a4a28d 48%,#c3ad14 69%,#a79505);border-image:linear-gradient(270deg,#567fdb,#a4a28d 48%,#c3ad14 69%,#a79505);border-image-slice:1}#panel-colour-filters[data-colour=tritanopia]{border-bottom:6px solid transparent;-o-border-image:linear-gradient(270deg,#b1506f,#0696c1 35%,#f3a9ba 70%,#d91c5d 87%,#fe015c);border-image:linear-gradient(270deg,#b1506f,#0696c1 35%,#f3a9ba 70%,#d91c5d 87%,#fe015c);border-image-slice:1}#panel-colour-filters[data-colour=monochromacy]{border-bottom:6px solid transparent;-o-border-image:linear-gradient(270deg,#000,#a7a7a7 50%,#000);border-image:linear-gradient(270deg,#000,#a7a7a7 50%,#000);border-image-slice:1}#panel-colour-filters[data-colour=protanopia] .panel-icon{background:var(--sa11y-panel-error)}#panel-colour-filters[data-colour=deuteranopia] .panel-icon{background:var(--sa11y-good-hover)}#panel-colour-filters[data-colour=tritanopia] .panel-icon{background:var(--sa11y-blue)}#panel-colour-filters[data-colour=monochromacy] .panel-icon{background:linear-gradient(90deg,#38a459 20%,red 50%,#0077c8 80%)}#panel-colour-filters .panel-icon{height:30px;margin-inline-end:5px;margin-inline-start:10px;-webkit-mask:var(--sa11y-low-vision-icon) center no-repeat;mask:var(--sa11y-low-vision-icon) center no-repeat;width:30px}@media screen and (forced-colors:active){#panel-colour-filters .panel-icon{forced-color-adjust:none}}.select-dropdown{align-items:center;display:flex;position:relative}.select-dropdown:after{border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid var(--sa11y-setting-switch-bg-off);content:" ";inset-inline-end:14px;position:absolute}#colour-filter-select{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:var(--sa11y-panel-bg);border:2px solid var(--sa11y-setting-switch-bg-off);border-radius:5px;color:var(--sa11y-setting-switch-bg-off);cursor:pointer;font-size:var(--sa11y-normal-text);font-weight:600;height:30px;margin-inline-end:4px;padding-inline-end:25px;padding-inline-start:5px;position:relative;text-align:end;vertical-align:middle}#colour-filter-select:focus,#colour-filter-select:hover{background:var(--sa11y-shortcut-hover)}#colour-filter-select.active{box-shadow:0 0 0 2px var(--sa11y-setting-switch-bg-on)}#colour-filter-item label,#colour-filter-item select{margin-bottom:9px;margin-top:10px}#readability-panel{display:none;opacity:0}#readability-panel.active{display:block;opacity:1}.top-left #readability-content,.top-right #readability-content{border-top:1px solid var(--sa11y-panel-bg-splitter)}.left #readability-content,.right #readability-content{border-bottom:1px solid var(--sa11y-panel-bg-splitter)}#readability-content{color:var(--sa11y-panel-primary);padding:10px 15px;width:100%}#readability-details{list-style-type:none;margin:0;padding:0;white-space:normal}#readability-details li{display:inline-block;list-style-type:none;margin:0;padding-inline-end:10px}.readability-score{background-color:var(--sa11y-panel-badge);border-radius:4px;color:var(--sa11y-panel-primary);margin-inline-start:5px;padding:2px 5px}#readability-info{margin-inline-start:10px}#skip-to-page-issues{display:none}#panel.has-page-issues #skip-to-page-issues{clip:rect(0,0,0,0);background:var(--sa11y-panel-bg);border:0;border-radius:5px;display:block;font-weight:600;height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px}#panel.has-page-issues #skip-to-page-issues:focus{clip:auto;height:auto;margin:0;overflow:visible;padding:7px 10px;white-space:normal;width:auto;z-index:1}.hide-settings-border{border-bottom:0!important;padding:0 15px!important}.hide-settings-border li:not(#colour-filter-item){display:none!important}.hide-settings-border #about-content{display:none}.hide-settings-border.scrollable:before{all:unset}#contrast-tools{display:none}::-webkit-scrollbar{height:6px;width:7px}::-webkit-scrollbar-thumb{background-color:var(--sa11y-button-outline);border-radius:6px}*{scrollbar-color:var(--sa11y-button-outline);scrollbar-width:thin}.scrollable:before{animation:fade 1s ease-in-out;background:linear-gradient(180deg,transparent 70%,var(--sa11y-panel-scrollable) 100%);background-position:bottom;bottom:auto;content:"";height:250px;left:0;position:absolute;right:0;top:auto;transition:opacity 1s ease-in-out;width:100%;z-index:-1}#settings-content.scrollable:before{height:400px}.top-left .scrollable:before,.top-right .scrollable:before{border-radius:5px}#page-issues-content.scrollable:before{height:160px}#panel-alert.scrollable:before{height:200px}@keyframes sa11y-toggle-gradient{0%{background-position:50% 0}50%{background-position:50% 100%}to{background-position:50% 0}}@keyframes fade{0%{opacity:0}to{opacity:1}}@media (prefers-reduced-motion:reduce){*{animation:none!important;transform:none!important;transition:none!important}}#panel{width:400px}#container:lang(en) #panel{width:315px}#container:lang(da) #panel,#container:lang(de) #panel,#container:lang(nb) #panel,#container:lang(pl) #panel,#container:lang(sv) #panel,#container:lang(zh) #panel{width:365px}#container:lang(bg) .switch:not(#export-results-item *),#container:lang(es) .switch:not(#export-results-item *){width:225px!important}#container:not(:lang(en)):not(:lang(de)) .switch{width:205px}'+z,this.shadowRoot.appendChild(e);const t="On"===_.getItem("sa11y-developer"),i="On"===_.getItem("sa11y-readability"),s=_.getItem("sa11y-theme"),a=_.getItem("sa11y-position"),r=o.Global.checkAllHideToggles,l=o.Global.developerPlugin?`\n
                                                          • \n \n \n \n
                                                          • `:"",c=o.Readability.Plugin?`\n
                                                          • \n \n \n \n
                                                          • `:"",d=o.Global.colourFilterPlugin?`\n
                                                          • \n \n
                                                            \n \n
                                                            \n
                                                          • `:"",p=o.Global.colourFilterPlugin?`\n
                                                            \n \n

                                                            ${n._("COLOUR_FILTER_MESSAGE")}

                                                            \n
                                                            `:"",u=o.Global.exportResultsPlugin?`\n
                                                          • \n ${n._("EXPORT_RESULTS")}\n
                                                            \n \n \n
                                                            \n
                                                          • `:"",h=o.Global.aboutContent?`\n
                                                            ${o.Global.aboutContent}
                                                            `:"",g=`\n `,m=`\n
                                                            \n
                                                            \n

                                                            ${n._("PAGE_ISSUES")}

                                                            \n
                                                            \n
                                                            \n
                                                              \n
                                                              \n
                                                              `,f=`\n
                                                              \n
                                                              \n

                                                              ${n._("OUTLINE")}

                                                              \n
                                                              \n
                                                              \n
                                                                \n
                                                                \n
                                                                \n
                                                                \n

                                                                ${n._("READABILITY")}

                                                                \n

                                                                \n
                                                                  \n
                                                                  \n
                                                                  \n
                                                                  `,b=o.Global.showImageOutline?`\n
                                                                  \n
                                                                  \n

                                                                  ${n._("IMAGES")}

                                                                  \n
                                                                  \n
                                                                  \n
                                                                    \n
                                                                    \n
                                                                    `:"",y="left"===a||"top-left"===a?"true":"false",A=o.Global.showMovePanelToggle?``:"",E=`\n
                                                                    \n
                                                                    \n

                                                                    ${n._("SETTINGS")}

                                                                    \n
                                                                    \n
                                                                    \n
                                                                      \n ${l}\n ${c}\n
                                                                    • \n ${n._("APPEARANCE")}\n
                                                                      \n \n ${A}\n
                                                                      \n
                                                                    • \n ${u}\n ${d}\n
                                                                    \n ${h}\n
                                                                    \n
                                                                    `,v=`\n
                                                                    \n
                                                                    \n
                                                                    \n \n

                                                                    ${n._("ALERT_TEXT")}

                                                                    \n
                                                                    \n

                                                                    \n
                                                                    \n
                                                                    \n
                                                                    `,L=`\n
                                                                    \n \n \n \n
                                                                    \n

                                                                    ${n._("PANEL_HEADING")}

                                                                    \n

                                                                    \n
                                                                    \n
                                                                    `,I=``,T=`\n
                                                                    \n \n ${o.Global.showImageOutline?I:""}\n \n
                                                                    `,x=document.createElement("div");x.setAttribute("id","container"),x.setAttribute("role","region"),x.setAttribute("data-sa11y-version",Y),x.setAttribute("lang",n._("LANG_CODE")),x.setAttribute("aria-label",n._("CONTAINER_LABEL")),x.setAttribute("dir",o.Global.langDirection),x.innerHTML="top-left"===a||"top-right"===a?`\n ${g}\n
                                                                    \n ${L}\n ${p}\n ${T}\n ${f}\n ${b}\n ${E}\n ${v}\n ${m}\n
                                                                    `:`\n ${g}\n
                                                                    \n ${m}\n ${f}\n ${b}\n ${E}\n ${v}\n ${p}\n ${L}\n ${T}\n
                                                                    `,this.shadowRoot.appendChild(x),o.initializePanelSelectors()}}const j=()=>{o.Panel.outlineToggle.classList.add("active"),o.Panel.outline.classList.add("active"),o.Panel.outlineToggle.setAttribute("aria-expanded","true"),_.setItem("sa11y-outline","Opened"),S(o.Panel.outlineList,o.Panel.outlineContent);i("sa11y-heading-label","root").forEach(e=>e.hidden=!1);const e=new CustomEvent("sa11y-build-heading-outline");document.dispatchEvent(e)},q=()=>{o.Panel.outline.classList.remove("active"),o.Panel.outlineToggle.classList.remove("active"),o.Panel.outlineToggle.setAttribute("aria-expanded","false"),_.setItem("sa11y-outline","Closed");i("sa11y-heading-label","root").forEach(e=>e.hidden=!0)},X=()=>{o.Panel.imagesToggle.classList.add("active"),o.Panel.images.classList.add("active"),o.Panel.imagesToggle.setAttribute("aria-expanded","true"),_.setItem("sa11y-images","Opened"),S(o.Panel.imagesList,o.Panel.imagesContent);const e=new CustomEvent("sa11y-build-image-outline");document.dispatchEvent(e)},Z=()=>{o.Global.showImageOutline&&(o.Panel.imagesToggle.classList.remove("active"),o.Panel.images.classList.remove("active"),o.Panel.imagesToggle.setAttribute("aria-expanded","false"),_.setItem("sa11y-images","Closed"))},J=()=>{o.Panel.settingsToggle.classList.add("active"),o.Panel.settings.classList.add("active"),o.Panel.settingsToggle.setAttribute("aria-expanded","true"),_.setItem("sa11y-settings","Opened"),S(o.Panel.settingsContent,o.Panel.settingsContent,n._("SETTINGS"))},ee=()=>{o.Panel.settings.classList.remove("active"),o.Panel.settingsToggle.classList.remove("active"),o.Panel.settingsToggle.setAttribute("aria-expanded","false"),_.setItem("sa11y-settings","Closed")};function te(e,t,s){const a=()=>{const r=[];let l;if(e.map(e=>t.find(t=>e.key===t.dismiss&&e.href===window.location.pathname)).filter(Boolean).forEach(e=>Object.assign(e,{dismissedHeading:!0})),s.showTitleInPageOutline){const e=document.querySelector("head title");if(e&&0!==e.textContent.trim().length){const t=b(e);l=`
                                                                  • ${n._("TITLE")} ${h(t)}
                                                                  • `}else l=`
                                                                  • ${n._("TITLE")}
                                                                    ${n._("MISSING")}
                                                                  • `;r.push(l)}return t.forEach(e=>{const t=e.element,o=e.headingLevel,i=e.text,a=e.index,l=e.type,c=e.hidden,d=e.visibleParent,p=e.dismissedHeading,{isWithinRoot:u}=e;if(!P.Found.OutlineIgnore.includes(t)){const e=!0===c?'Hidden':"",t=!0===c?'class="hidden-h"':"",d=!0===s.showHinPageOutline||1===s.showHinPageOutline?"H":"";let h;"error"===l&&!0===u?(h=`\n
                                                                  • \n \n \n \n ${n._("ERROR")} ${d+o}\n ${i}\n \n
                                                                  • `,r.push(h)):"warning"!==l||p||!0!==u?(h=`\n
                                                                  • \n \n ${e} ${d+o}\n ${i}\n \n
                                                                  • `,r.push(h)):(h=`\n
                                                                  • \n \n \n \n ${n._("WARNING")} ${d+o}\n ${i}\n \n
                                                                  • `,r.push(h))}const h=document.createElement("sa11y-heading-label"),g=document.createElement("sa11y-heading-anchor");if(h.hidden=!0,null!==d){t.insertAdjacentElement("beforeend",h);const e=d.previousElementSibling;g.setAttribute("id",`sa11y-h${a}`),e?(e.insertAdjacentElement("beforebegin",g),e.setAttribute("data-sa11y-parent",`h${a}`)):(d.parentNode.insertAdjacentElement("beforebegin",g),d.parentNode.setAttribute("data-sa11y-parent",`h${a}`))}else t.insertAdjacentElement("beforeend",h),h.insertAdjacentElement("beforebegin",g),g.setAttribute("id",`sa11y-h${a}`);const m=document.createElement("span");m.classList.add("heading-label"),m.innerHTML=`H${o}`,h.shadowRoot.appendChild(m),"Opened"===_.getItem("sa11y-outline")&&(h.hidden=!1)}),o.Panel.outlineList.innerHTML=0===t.length?`${l||""}
                                                                  • ${n._("PANEL_NO_HEADINGS")}
                                                                  • `:r.join(" "),setTimeout(()=>{const e=document.querySelector("sa11y-control-panel").shadowRoot,t=Array.from(e.querySelectorAll("#outline-list a"));t.forEach((t,s)=>{const a=e.getElementById(`sa11y-link-${s}`),r=i(`#sa11y-h${s}, [data-sa11y-parent="h${s}"]`,"document",o.Exclusions.Container),l=e=>{("keyup"===e.type&&"Enter"===e.code||"click"===e.type)&&(r.forEach(e=>{(e=>{L(e.parentElement),e.scrollIntoView({behavior:`${o.Global.scrollBehaviour}`,block:"center"})})(e)}),a.classList.contains("hidden-h")?x(`${n._("HEADING_NOT_VISIBLE")}`):o.Panel.alert.classList.contains("active")&&T()),e.preventDefault()};a?.addEventListener("click",l,!1),a?.addEventListener("keyup",l,!1)});let s=0;const a=e=>{if(!["ArrowUp","ArrowDown","Space"].includes(e.code))return;if("Space"===e.code)return void t[s].click();let n;t[s].setAttribute("tabindex",-1),"ArrowDown"===e.code?(n=s+1,s===t.length-1&&(n=0)):"ArrowUp"===e.code&&(n=s-1,0===s&&(n=t.length-1)),t[n].setAttribute("tabindex",0),t[n].focus(),s=n,e.preventDefault()};o.Panel.outlineList.addEventListener("focus",()=>{t.length>0&&(o.Panel.outlineList.setAttribute("tabindex",-1),t[s].setAttribute("tabindex",0),t[s].focus()),o.Panel.outlineList.addEventListener("keydown",a)}),o.Panel.outlineList.addEventListener("blur",()=>{o.Panel.outlineList.removeEventListener("keydown",a)})},0),document.removeEventListener("sa11y-build-heading-outline",a),e};"Opened"===_.getItem("sa11y-outline")&&a(),document.addEventListener("sa11y-build-heading-outline",a)}const ne=e=>{const{src:t}=e.element,i=o.Global.ignoreEditImageURL.some(e=>t.includes(e)),s=o.Global.ignoreEditImageClass.some(t=>e.element.classList.contains(t));if(i||s)return"";const a=o.Global.relativePathImageSRC||window.location.host,r=t.split(a)[1]||"",l=o.Global.relativePathImageID;let c;l.length&&e.element.classList.length&&e.element.classList.forEach(e=>{if(e.startsWith(l)){const[t]=e.match(/\d+/)||[];c=t}});const d=a&&l.length?o.Global.editImageURLofCMS+c:o.Global.editImageURLofCMS+r;return(l.length&&void 0!==c||!l)&&((p=t).includes(window.location.host)||p.startsWith(a))?``:"";var p};var oe="top",ie="bottom",se="right",ae="left",re="auto",le=[oe,ie,se,ae],ce="start",de="end",pe="viewport",ue="popper",he=le.reduce(function(e,t){return e.concat([t+"-"+ce,t+"-"+de])},[]),ge=[].concat(le,[re]).reduce(function(e,t){return e.concat([t,t+"-"+ce,t+"-"+de])},[]),me=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function fe(e){return e?(e.nodeName||"").toLowerCase():null}function be(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function ye(e){return e instanceof be(e).Element||e instanceof Element}function Ae(e){return e instanceof be(e).HTMLElement||e instanceof HTMLElement}function Ee(e){return"undefined"!=typeof ShadowRoot&&(e instanceof be(e).ShadowRoot||e instanceof ShadowRoot)}var ve={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach(function(e){var n=t.styles[e]||{},o=t.attributes[e]||{},i=t.elements[e];Ae(i)&&fe(i)&&(Object.assign(i.style,n),Object.keys(o).forEach(function(e){var t=o[e];!1===t?i.removeAttribute(e):i.setAttribute(e,!0===t?"":t)}))})},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(e){var o=t.elements[e],i=t.attributes[e]||{},s=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce(function(e,t){return e[t]="",e},{});Ae(o)&&fe(o)&&(Object.assign(o.style,s),Object.keys(i).forEach(function(e){o.removeAttribute(e)}))})}},requires:["computeStyles"]};function _e(e){return e.split("-")[0]}var Le=Math.max,Ie=Math.min,Te=Math.round;function xe(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function ke(){return!/^((?!chrome|android).)*safari/i.test(xe())}function Ne(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var o=e.getBoundingClientRect(),i=1,s=1;t&&Ae(e)&&(i=e.offsetWidth>0&&Te(o.width)/e.offsetWidth||1,s=e.offsetHeight>0&&Te(o.height)/e.offsetHeight||1);var a=(ye(e)?be(e):window).visualViewport,r=!ke()&&n,l=(o.left+(r&&a?a.offsetLeft:0))/i,c=(o.top+(r&&a?a.offsetTop:0))/s,d=o.width/i,p=o.height/s;return{width:d,height:p,top:c,right:l+d,bottom:c+p,left:l,x:l,y:c}}function Se(e){var t=Ne(e),n=e.offsetWidth,o=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-o)<=1&&(o=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:o}}function we(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Ee(n)){var o=t;do{if(o&&e.isSameNode(o))return!0;o=o.parentNode||o.host}while(o)}return!1}function Ce(e){return be(e).getComputedStyle(e)}function Oe(e){return["table","td","th"].indexOf(fe(e))>=0}function Pe(e){return((ye(e)?e.ownerDocument:e.document)||window.document).documentElement}function Re(e){return"html"===fe(e)?e:e.assignedSlot||e.parentNode||(Ee(e)?e.host:null)||Pe(e)}function De(e){return Ae(e)&&"fixed"!==Ce(e).position?e.offsetParent:null}function Me(e){for(var t=be(e),n=De(e);n&&Oe(n)&&"static"===Ce(n).position;)n=De(n);return n&&("html"===fe(n)||"body"===fe(n)&&"static"===Ce(n).position)?t:n||function(e){var t=/firefox/i.test(xe());if(/Trident/i.test(xe())&&Ae(e)&&"fixed"===Ce(e).position)return null;var n=Re(e);for(Ee(n)&&(n=n.host);Ae(n)&&["html","body"].indexOf(fe(n))<0;){var o=Ce(n);if("none"!==o.transform||"none"!==o.perspective||"paint"===o.contain||-1!==["transform","perspective"].indexOf(o.willChange)||t&&"filter"===o.willChange||t&&o.filter&&"none"!==o.filter)return n;n=n.parentNode}return null}(e)||t}function Be(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function $e(e,t,n){return Le(e,Ie(t,n))}function Ge(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function Ue(e,t){return t.reduce(function(t,n){return t[n]=e,t},{})}var He={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,o=e.name,i=e.options,s=n.elements.arrow,a=n.modifiersData.popperOffsets,r=_e(n.placement),l=Be(r),c=[ae,se].indexOf(r)>=0?"height":"width";if(s&&a){var d=function(e,t){return Ge("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:Ue(e,le))}(i.padding,n),p=Se(s),u="y"===l?oe:ae,h="y"===l?ie:se,g=n.rects.reference[c]+n.rects.reference[l]-a[l]-n.rects.popper[c],m=a[l]-n.rects.reference[l],f=Me(s),b=f?"y"===l?f.clientHeight||0:f.clientWidth||0:0,y=g/2-m/2,A=d[u],E=b-p[c]-d[h],v=b/2-p[c]/2+y,_=$e(A,v,E),L=l;n.modifiersData[o]=((t={})[L]=_,t.centerOffset=_-v,t)}},effect:function(e){var t=e.state,n=e.options.element,o=void 0===n?"[data-popper-arrow]":n;null!=o&&("string"!=typeof o||(o=t.elements.popper.querySelector(o)))&&we(t.elements.popper,o)&&(t.elements.arrow=o)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Fe(e){return e.split("-")[1]}var Ke={top:"auto",right:"auto",bottom:"auto",left:"auto"};function We(e){var t,n=e.popper,o=e.popperRect,i=e.placement,s=e.variation,a=e.offsets,r=e.position,l=e.gpuAcceleration,c=e.adaptive,d=e.roundOffsets,p=e.isFixed,u=a.x,h=void 0===u?0:u,g=a.y,m=void 0===g?0:g,f="function"==typeof d?d({x:h,y:m}):{x:h,y:m};h=f.x,m=f.y;var b=a.hasOwnProperty("x"),y=a.hasOwnProperty("y"),A=ae,E=oe,v=window;if(c){var _=Me(n),L="clientHeight",I="clientWidth";if(_===be(n)&&"static"!==Ce(_=Pe(n)).position&&"absolute"===r&&(L="scrollHeight",I="scrollWidth"),i===oe||(i===ae||i===se)&&s===de)E=ie,m-=(p&&_===v&&v.visualViewport?v.visualViewport.height:_[L])-o.height,m*=l?1:-1;if(i===ae||(i===oe||i===ie)&&s===de)A=se,h-=(p&&_===v&&v.visualViewport?v.visualViewport.width:_[I])-o.width,h*=l?1:-1}var T,x=Object.assign({position:r},c&&Ke),k=!0===d?function(e,t){var n=e.x,o=e.y,i=t.devicePixelRatio||1;return{x:Te(n*i)/i||0,y:Te(o*i)/i||0}}({x:h,y:m},be(n)):{x:h,y:m};return h=k.x,m=k.y,l?Object.assign({},x,((T={})[E]=y?"0":"",T[A]=b?"0":"",T.transform=(v.devicePixelRatio||1)<=1?"translate("+h+"px, "+m+"px)":"translate3d("+h+"px, "+m+"px, 0)",T)):Object.assign({},x,((t={})[E]=y?m+"px":"",t[A]=b?h+"px":"",t.transform="",t))}var Ye={passive:!0};var ze={left:"right",right:"left",bottom:"top",top:"bottom"};function Qe(e){return e.replace(/left|right|bottom|top/g,function(e){return ze[e]})}var Ve={start:"end",end:"start"};function je(e){return e.replace(/start|end/g,function(e){return Ve[e]})}function qe(e){var t=be(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Xe(e){return Ne(Pe(e)).left+qe(e).scrollLeft}function Ze(e){var t=Ce(e),n=t.overflow,o=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+o)}function Je(e){return["html","body","#document"].indexOf(fe(e))>=0?e.ownerDocument.body:Ae(e)&&Ze(e)?e:Je(Re(e))}function et(e,t){var n;void 0===t&&(t=[]);var o=Je(e),i=o===(null==(n=e.ownerDocument)?void 0:n.body),s=be(o),a=i?[s].concat(s.visualViewport||[],Ze(o)?o:[]):o,r=t.concat(a);return i?r:r.concat(et(Re(a)))}function tt(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function nt(e,t,n){return t===pe?tt(function(e,t){var n=be(e),o=Pe(e),i=n.visualViewport,s=o.clientWidth,a=o.clientHeight,r=0,l=0;if(i){s=i.width,a=i.height;var c=ke();(c||!c&&"fixed"===t)&&(r=i.offsetLeft,l=i.offsetTop)}return{width:s,height:a,x:r+Xe(e),y:l}}(e,n)):ye(t)?function(e,t){var n=Ne(e,!1,"fixed"===t);return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}(t,n):tt(function(e){var t,n=Pe(e),o=qe(e),i=null==(t=e.ownerDocument)?void 0:t.body,s=Le(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),a=Le(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),r=-o.scrollLeft+Xe(e),l=-o.scrollTop;return"rtl"===Ce(i||n).direction&&(r+=Le(n.clientWidth,i?i.clientWidth:0)-s),{width:s,height:a,x:r,y:l}}(Pe(e)))}function ot(e,t,n,o){var i="clippingParents"===t?function(e){var t=et(Re(e)),n=["absolute","fixed"].indexOf(Ce(e).position)>=0&&Ae(e)?Me(e):e;return ye(n)?t.filter(function(e){return ye(e)&&we(e,n)&&"body"!==fe(e)}):[]}(e):[].concat(t),s=[].concat(i,[n]),a=s[0],r=s.reduce(function(t,n){var i=nt(e,n,o);return t.top=Le(i.top,t.top),t.right=Ie(i.right,t.right),t.bottom=Ie(i.bottom,t.bottom),t.left=Le(i.left,t.left),t},nt(e,a,o));return r.width=r.right-r.left,r.height=r.bottom-r.top,r.x=r.left,r.y=r.top,r}function it(e){var t,n=e.reference,o=e.element,i=e.placement,s=i?_e(i):null,a=i?Fe(i):null,r=n.x+n.width/2-o.width/2,l=n.y+n.height/2-o.height/2;switch(s){case oe:t={x:r,y:n.y-o.height};break;case ie:t={x:r,y:n.y+n.height};break;case se:t={x:n.x+n.width,y:l};break;case ae:t={x:n.x-o.width,y:l};break;default:t={x:n.x,y:n.y}}var c=s?Be(s):null;if(null!=c){var d="y"===c?"height":"width";switch(a){case ce:t[c]=t[c]-(n[d]/2-o[d]/2);break;case de:t[c]=t[c]+(n[d]/2-o[d]/2)}}return t}function st(e,t){void 0===t&&(t={});var n=t,o=n.placement,i=void 0===o?e.placement:o,s=n.strategy,a=void 0===s?e.strategy:s,r=n.boundary,l=void 0===r?"clippingParents":r,c=n.rootBoundary,d=void 0===c?pe:c,p=n.elementContext,u=void 0===p?ue:p,h=n.altBoundary,g=void 0!==h&&h,m=n.padding,f=void 0===m?0:m,b=Ge("number"!=typeof f?f:Ue(f,le)),y=u===ue?"reference":ue,A=e.rects.popper,E=e.elements[g?y:u],v=ot(ye(E)?E:E.contextElement||Pe(e.elements.popper),l,d,a),_=Ne(e.elements.reference),L=it({reference:_,element:A,strategy:"absolute",placement:i}),I=tt(Object.assign({},A,L)),T=u===ue?I:_,x={top:v.top-T.top+b.top,bottom:T.bottom-v.bottom+b.bottom,left:v.left-T.left+b.left,right:T.right-v.right+b.right},k=e.modifiersData.offset;if(u===ue&&k){var N=k[i];Object.keys(x).forEach(function(e){var t=[se,ie].indexOf(e)>=0?1:-1,n=[oe,ie].indexOf(e)>=0?"y":"x";x[e]+=N[n]*t})}return x}function at(e,t){void 0===t&&(t={});var n=t,o=n.placement,i=n.boundary,s=n.rootBoundary,a=n.padding,r=n.flipVariations,l=n.allowedAutoPlacements,c=void 0===l?ge:l,d=Fe(o),p=d?r?he:he.filter(function(e){return Fe(e)===d}):le,u=p.filter(function(e){return c.indexOf(e)>=0});0===u.length&&(u=p);var h=u.reduce(function(t,n){return t[n]=st(e,{placement:n,boundary:i,rootBoundary:s,padding:a})[_e(n)],t},{});return Object.keys(h).sort(function(e,t){return h[e]-h[t]})}var rt={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,o=e.name;if(!t.modifiersData[o]._skip){for(var i=n.mainAxis,s=void 0===i||i,a=n.altAxis,r=void 0===a||a,l=n.fallbackPlacements,c=n.padding,d=n.boundary,p=n.rootBoundary,u=n.altBoundary,h=n.flipVariations,g=void 0===h||h,m=n.allowedAutoPlacements,f=t.options.placement,b=_e(f),y=l||(b===f||!g?[Qe(f)]:function(e){if(_e(e)===re)return[];var t=Qe(e);return[je(e),t,je(t)]}(f)),A=[f].concat(y).reduce(function(e,n){return e.concat(_e(n)===re?at(t,{placement:n,boundary:d,rootBoundary:p,padding:c,flipVariations:g,allowedAutoPlacements:m}):n)},[]),E=t.rects.reference,v=t.rects.popper,_=new Map,L=!0,I=A[0],T=0;T=0,w=S?"width":"height",C=st(t,{placement:x,boundary:d,rootBoundary:p,altBoundary:u,padding:c}),O=S?N?se:ae:N?ie:oe;E[w]>v[w]&&(O=Qe(O));var P=Qe(O),R=[];if(s&&R.push(C[k]<=0),r&&R.push(C[O]<=0,C[P]<=0),R.every(function(e){return e})){I=x,L=!1;break}_.set(x,R)}if(L)for(var D=function(e){var t=A.find(function(t){var n=_.get(t);if(n)return n.slice(0,e).every(function(e){return e})});if(t)return I=t,"break"},M=g?3:1;M>0;M--){if("break"===D(M))break}t.placement!==I&&(t.modifiersData[o]._skip=!0,t.placement=I,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function lt(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function ct(e){return[oe,se,ie,ae].some(function(t){return e[t]>=0})}var dt={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,o=e.name,i=n.offset,s=void 0===i?[0,0]:i,a=ge.reduce(function(e,n){return e[n]=function(e,t,n){var o=_e(e),i=[ae,oe].indexOf(o)>=0?-1:1,s="function"==typeof n?n(Object.assign({},t,{placement:e})):n,a=s[0],r=s[1];return a=a||0,r=(r||0)*i,[ae,se].indexOf(o)>=0?{x:r,y:a}:{x:a,y:r}}(n,t.rects,s),e},{}),r=a[t.placement],l=r.x,c=r.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[o]=a}};var pt={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,o=e.name,i=n.mainAxis,s=void 0===i||i,a=n.altAxis,r=void 0!==a&&a,l=n.boundary,c=n.rootBoundary,d=n.altBoundary,p=n.padding,u=n.tether,h=void 0===u||u,g=n.tetherOffset,m=void 0===g?0:g,f=st(t,{boundary:l,rootBoundary:c,padding:p,altBoundary:d}),b=_e(t.placement),y=Fe(t.placement),A=!y,E=Be(b),v="x"===E?"y":"x",_=t.modifiersData.popperOffsets,L=t.rects.reference,I=t.rects.popper,T="function"==typeof m?m(Object.assign({},t.rects,{placement:t.placement})):m,x="number"==typeof T?{mainAxis:T,altAxis:T}:Object.assign({mainAxis:0,altAxis:0},T),k=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,N={x:0,y:0};if(_){if(s){var S,w="y"===E?oe:ae,C="y"===E?ie:se,O="y"===E?"height":"width",P=_[E],R=P+f[w],D=P-f[C],M=h?-I[O]/2:0,B=y===ce?L[O]:I[O],$=y===ce?-I[O]:-L[O],G=t.elements.arrow,U=h&&G?Se(G):{width:0,height:0},H=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},F=H[w],K=H[C],W=$e(0,L[O],U[O]),Y=A?L[O]/2-M-W-F-x.mainAxis:B-W-F-x.mainAxis,z=A?-L[O]/2+M+W+K+x.mainAxis:$+W+K+x.mainAxis,Q=t.elements.arrow&&Me(t.elements.arrow),V=Q?"y"===E?Q.clientTop||0:Q.clientLeft||0:0,j=null!=(S=null==k?void 0:k[E])?S:0,q=P+z-j,X=$e(h?Ie(R,P+Y-j-V):R,P,h?Le(D,q):D);_[E]=X,N[E]=X-P}if(r){var Z,J="x"===E?oe:ae,ee="x"===E?ie:se,te=_[v],ne="y"===v?"height":"width",re=te+f[J],le=te-f[ee],de=-1!==[oe,ae].indexOf(b),pe=null!=(Z=null==k?void 0:k[v])?Z:0,ue=de?re:te-L[ne]-I[ne]-pe+x.altAxis,he=de?te+L[ne]+I[ne]-pe-x.altAxis:le,ge=h&&de?function(e,t,n){var o=$e(e,t,n);return o>n?n:o}(ue,te,he):$e(h?ue:re,te,h?he:le);_[v]=ge,N[v]=ge-te}t.modifiersData[o]=N}},requiresIfExists:["offset"]};function ut(e,t,n){void 0===n&&(n=!1);var o,i,s=Ae(t),a=Ae(t)&&function(e){var t=e.getBoundingClientRect(),n=Te(t.width)/e.offsetWidth||1,o=Te(t.height)/e.offsetHeight||1;return 1!==n||1!==o}(t),r=Pe(t),l=Ne(e,a,n),c={scrollLeft:0,scrollTop:0},d={x:0,y:0};return(s||!s&&!n)&&(("body"!==fe(t)||Ze(r))&&(c=(o=t)!==be(o)&&Ae(o)?{scrollLeft:(i=o).scrollLeft,scrollTop:i.scrollTop}:qe(o)),Ae(t)?((d=Ne(t,!0)).x+=t.clientLeft,d.y+=t.clientTop):r&&(d.x=Xe(r))),{x:l.left+c.scrollLeft-d.x,y:l.top+c.scrollTop-d.y,width:l.width,height:l.height}}function ht(e){var t=new Map,n=new Set,o=[];function i(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach(function(e){if(!n.has(e)){var o=t.get(e);o&&i(o)}}),o.push(e)}return e.forEach(function(e){t.set(e.name,e)}),e.forEach(function(e){n.has(e.name)||i(e)}),o}var gt={placement:"bottom",modifiers:[],strategy:"absolute"};function mt(){for(var e=arguments.length,t=new Array(e),n=0;n-1}function Tt(e,t){return"function"==typeof e?e.apply(void 0,t):e}function xt(e,t){return 0===t?e:function(o){clearTimeout(n),n=setTimeout(function(){e(o)},t)};var n}function kt(e){return[].concat(e)}function Nt(e,t){-1===e.indexOf(t)&&e.push(t)}function St(e){return[].slice.call(e)}function wt(e){return Object.keys(e).reduce(function(t,n){return void 0!==e[n]&&(t[n]=e[n]),t},{})}function Ct(){return document.createElement("div")}function Ot(e){return["Element","Fragment"].some(function(t){return It(e,t)})}function Pt(e){return Ot(e)?[e]:function(e){return It(e,"NodeList")}(e)?St(e):Array.isArray(e)?e:St(document.querySelectorAll(e))}function Rt(e,t){e.forEach(function(e){e&&(e.style.transitionDuration=t+"ms")})}function Dt(e,t){e.forEach(function(e){e&&e.setAttribute("data-state",t)})}function Mt(e,t,n){var o=t+"EventListener";["transitionend","webkitTransitionEnd"].forEach(function(t){e[o](t,n)})}function Bt(e,t){for(var n=t;n;){var o;if(e.contains(n))return!0;n=null==n.getRootNode||null==(o=n.getRootNode())?void 0:o.host}return!1}var $t={isTouch:!1},Gt=0;function Ut(){$t.isTouch||($t.isTouch=!0,window.performance&&document.addEventListener("mousemove",Ht))}function Ht(){var e=performance.now();e-Gt<20&&($t.isTouch=!1,document.removeEventListener("mousemove",Ht)),Gt=e}function Ft(){var e,t=document.activeElement;if((e=t)&&e._tippy&&e._tippy.reference===e){var n=t._tippy;t.blur&&!n.state.isVisible&&t.blur()}}var Kt=!!("undefined"!=typeof window&&"undefined"!=typeof document)&&!!window.msCrypto,Wt=Object.assign({appendTo:_t,aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},{animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},{allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999}),Yt=Object.keys(Wt);function zt(e){var t=(e.plugins||[]).reduce(function(t,n){var o,i=n.name,s=n.defaultValue;i&&(t[i]=void 0!==e[i]?e[i]:null!=(o=Wt[i])?o:s);return t},{});return Object.assign({},e,t)}function Qt(e,t){var n=Object.assign({},t,{content:Tt(t.content,[e])},t.ignoreAttributes?{}:function(e,t){return(t?Object.keys(zt(Object.assign({},Wt,{plugins:t}))):Yt).reduce(function(t,n){var o=(e.getAttribute("data-tippy-"+n)||"").trim();if(!o)return t;if("content"===n)t[n]=o;else try{t[n]=JSON.parse(o)}catch(e){t[n]=o}return t},{})}(e,t.plugins));return n.aria=Object.assign({},Wt.aria,n.aria),n.aria={expanded:"auto"===n.aria.expanded?t.interactive:n.aria.expanded,content:"auto"===n.aria.content?t.interactive?null:"describedby":n.aria.content},n}function Vt(e,t){e.innerHTML=t}function jt(e){var t=Ct();return!0===e?t.className=At:(t.className=Et,Ot(e)?t.appendChild(e):Vt(t,e)),t}function qt(e,t){Ot(t.content)?(Vt(e,""),e.appendChild(t.content)):"function"!=typeof t.content&&(t.allowHTML?Vt(e,t.content):e.textContent=t.content)}function Xt(e){var t=e.firstElementChild,n=St(t.children);return{box:t,content:n.find(function(e){return e.classList.contains(yt)}),arrow:n.find(function(e){return e.classList.contains(At)||e.classList.contains(Et)}),backdrop:n.find(function(e){return e.classList.contains("tippy-backdrop")})}}function Zt(e){var t=Ct(),n=Ct();n.className="tippy-box",n.setAttribute("data-state","hidden"),n.setAttribute("tabindex","-1");var o=Ct();function i(n,o){var i=Xt(t),s=i.box,a=i.content,r=i.arrow;o.theme?s.setAttribute("data-theme",o.theme):s.removeAttribute("data-theme"),"string"==typeof o.animation?s.setAttribute("data-animation",o.animation):s.removeAttribute("data-animation"),o.inertia?s.setAttribute("data-inertia",""):s.removeAttribute("data-inertia"),s.style.maxWidth="number"==typeof o.maxWidth?o.maxWidth+"px":o.maxWidth,o.role?s.setAttribute("role",o.role):s.removeAttribute("role"),n.content===o.content&&n.allowHTML===o.allowHTML||qt(a,e.props),o.arrow?r?n.arrow!==o.arrow&&(s.removeChild(r),s.appendChild(jt(o.arrow))):s.appendChild(jt(o.arrow)):r&&s.removeChild(r)}return o.className=yt,o.setAttribute("data-state","hidden"),qt(o,e.props),t.appendChild(n),n.appendChild(o),i(e.props,e.props),{popper:t,onUpdate:i}}Zt.$$tippy=!0;var Jt=1,en=[],tn=[];function nn(e,t){var n,o,i,s,a,r,l,c,d=Qt(e,Object.assign({},Wt,zt(wt(t)))),p=!1,u=!1,h=!1,g=!1,m=[],f=xt(Q,d.interactiveDebounce),b=Jt++,y=(c=d.plugins).filter(function(e,t){return c.indexOf(e)===t}),A={id:b,reference:e,popper:Ct(),popperInstance:null,props:d,state:{isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},plugins:y,clearDelayTimeouts:function(){clearTimeout(n),clearTimeout(o),cancelAnimationFrame(i)},setProps:function(t){if(A.state.isDestroyed)return;P("onBeforeUpdate",[A,t]),Y();var n=A.props,o=Qt(e,Object.assign({},n,wt(t),{ignoreAttributes:!0}));A.props=o,W(),n.interactiveDebounce!==o.interactiveDebounce&&(M(),f=xt(Q,o.interactiveDebounce));n.triggerTarget&&!o.triggerTarget?kt(n.triggerTarget).forEach(function(e){e.removeAttribute("aria-expanded")}):o.triggerTarget&&e.removeAttribute("aria-expanded");D(),O(),_&&_(n,o);A.popperInstance&&(X(),J().forEach(function(e){requestAnimationFrame(e._tippy.popperInstance.forceUpdate)}));P("onAfterUpdate",[A,t])},setContent:function(e){A.setProps({content:e})},show:function(){var e=A.state.isVisible,t=A.state.isDestroyed,n=!A.state.isEnabled,o=$t.isTouch&&!A.props.touch,i=Lt(A.props.duration,0,Wt.duration);if(e||t||n||o)return;if(N().hasAttribute("disabled"))return;if(P("onShow",[A],!1),!1===A.props.onShow(A))return;A.state.isVisible=!0,k()&&(v.style.visibility="visible");O(),U(),A.state.isMounted||(v.style.transition="none");if(k()){var s=w();Rt([s.box,s.content],0)}r=function(){var e;if(A.state.isVisible&&!g){if(g=!0,v.offsetHeight,v.style.transition=A.props.moveTransition,k()&&A.props.animation){var t=w(),n=t.box,o=t.content;Rt([n,o],i),Dt([n,o],"visible")}R(),D(),Nt(tn,A),null==(e=A.popperInstance)||e.forceUpdate(),P("onMount",[A]),A.props.animation&&k()&&function(e,t){F(e,t)}(i,function(){A.state.isShown=!0,P("onShown",[A])})}},function(){var e,t=A.props.appendTo,n=N();e=A.props.interactive&&t===_t||"parent"===t?n.parentNode:Tt(t,[n]);e.contains(v)||e.appendChild(v);A.state.isMounted=!0,X()}()},hide:function(){var e=!A.state.isVisible,t=A.state.isDestroyed,n=!A.state.isEnabled,o=Lt(A.props.duration,1,Wt.duration);if(e||t||n)return;if(P("onHide",[A],!1),!1===A.props.onHide(A))return;A.state.isVisible=!1,A.state.isShown=!1,g=!1,p=!1,k()&&(v.style.visibility="hidden");if(M(),H(),O(!0),k()){var i=w(),s=i.box,a=i.content;A.props.animation&&(Rt([s,a],o),Dt([s,a],"hidden"))}R(),D(),A.props.animation?k()&&function(e,t){F(e,function(){!A.state.isVisible&&v.parentNode&&v.parentNode.contains(v)&&t()})}(o,A.unmount):A.unmount()},hideWithInteractivity:function(e){S().addEventListener("mousemove",f),Nt(en,f),f(e)},enable:function(){A.state.isEnabled=!0},disable:function(){A.hide(),A.state.isEnabled=!1},unmount:function(){A.state.isVisible&&A.hide();if(!A.state.isMounted)return;Z(),J().forEach(function(e){e._tippy.unmount()}),v.parentNode&&v.parentNode.removeChild(v);tn=tn.filter(function(e){return e!==A}),A.state.isMounted=!1,P("onHidden",[A])},destroy:function(){if(A.state.isDestroyed)return;A.clearDelayTimeouts(),A.unmount(),Y(),delete e._tippy,A.state.isDestroyed=!0,P("onDestroy",[A])}};if(!d.render)return A;var E=d.render(A),v=E.popper,_=E.onUpdate;v.setAttribute("data-tippy-root",""),v.id="tippy-"+A.id,A.popper=v,e._tippy=A,v._tippy=A;var L=y.map(function(e){return e.fn(A)}),I=e.hasAttribute("aria-expanded");return W(),D(),O(),P("onCreate",[A]),d.showOnCreate&&ee(),v.addEventListener("mouseenter",function(){A.props.interactive&&A.state.isVisible&&A.clearDelayTimeouts()}),v.addEventListener("mouseleave",function(){A.props.interactive&&A.props.trigger.indexOf("mouseenter")>=0&&S().addEventListener("mousemove",f)}),A;function T(){var e=A.props.touch;return Array.isArray(e)?e:[e,0]}function x(){return"hold"===T()[0]}function k(){var e;return!(null==(e=A.props.render)||!e.$$tippy)}function N(){return l||e}function S(){var e,t,n=N().parentNode;return n?null!=(t=kt(n)[0])&&null!=(e=t.ownerDocument)&&e.body?t.ownerDocument:document:document}function w(){return Xt(v)}function C(e){return A.state.isMounted&&!A.state.isVisible||$t.isTouch||s&&"focus"===s.type?0:Lt(A.props.delay,e?0:1,Wt.delay)}function O(e){void 0===e&&(e=!1),v.style.pointerEvents=A.props.interactive&&!e?"":"none",v.style.zIndex=""+A.props.zIndex}function P(e,t,n){var o;(void 0===n&&(n=!0),L.forEach(function(n){n[e]&&n[e].apply(n,t)}),n)&&(o=A.props)[e].apply(o,t)}function R(){var t=A.props.aria;if(t.content){var n="aria-"+t.content,o=v.id;kt(A.props.triggerTarget||e).forEach(function(e){var t=e.getAttribute(n);if(A.state.isVisible)e.setAttribute(n,t?t+" "+o:o);else{var i=t&&t.replace(o,"").trim();i?e.setAttribute(n,i):e.removeAttribute(n)}})}}function D(){!I&&A.props.aria.expanded&&kt(A.props.triggerTarget||e).forEach(function(e){A.props.interactive?e.setAttribute("aria-expanded",A.state.isVisible&&e===N()?"true":"false"):e.removeAttribute("aria-expanded")})}function M(){S().removeEventListener("mousemove",f),en=en.filter(function(e){return e!==f})}function B(t){if(!$t.isTouch||!h&&"mousedown"!==t.type){var n=t.composedPath&&t.composedPath()[0]||t.target;if(!A.props.interactive||!Bt(v,n)){if(kt(A.props.triggerTarget||e).some(function(e){return Bt(e,n)})){if($t.isTouch)return;if(A.state.isVisible&&A.props.trigger.indexOf("click")>=0)return}else P("onClickOutside",[A,t]);!0===A.props.hideOnClick&&(A.clearDelayTimeouts(),A.hide(),u=!0,setTimeout(function(){u=!1}),A.state.isMounted||H())}}}function $(){h=!0}function G(){h=!1}function U(){var e=S();e.addEventListener("mousedown",B,!0),e.addEventListener("touchend",B,vt),e.addEventListener("touchstart",G,vt),e.addEventListener("touchmove",$,vt)}function H(){var e=S();e.removeEventListener("mousedown",B,!0),e.removeEventListener("touchend",B,vt),e.removeEventListener("touchstart",G,vt),e.removeEventListener("touchmove",$,vt)}function F(e,t){var n=w().box;function o(e){e.target===n&&(Mt(n,"remove",o),t())}if(0===e)return t();Mt(n,"remove",a),Mt(n,"add",o),a=o}function K(t,n,o){void 0===o&&(o=!1),kt(A.props.triggerTarget||e).forEach(function(e){e.addEventListener(t,n,o),m.push({node:e,eventType:t,handler:n,options:o})})}function W(){var e;x()&&(K("touchstart",z,{passive:!0}),K("touchend",V,{passive:!0})),(e=A.props.trigger,e.split(/\s+/).filter(Boolean)).forEach(function(e){if("manual"!==e)switch(K(e,z),e){case"mouseenter":K("mouseleave",V);break;case"focus":K(Kt?"focusout":"blur",j);break;case"focusin":K("focusout",j)}})}function Y(){m.forEach(function(e){var t=e.node,n=e.eventType,o=e.handler,i=e.options;t.removeEventListener(n,o,i)}),m=[]}function z(e){var t,n=!1;if(A.state.isEnabled&&!q(e)&&!u){var o="focus"===(null==(t=s)?void 0:t.type);s=e,l=e.currentTarget,D(),!A.state.isVisible&&It(e,"MouseEvent")&&en.forEach(function(t){return t(e)}),"click"===e.type&&(A.props.trigger.indexOf("mouseenter")<0||p)&&!1!==A.props.hideOnClick&&A.state.isVisible?n=!0:ee(e),"click"===e.type&&(p=!n),n&&!o&&te(e)}}function Q(e){var t=e.target,n=N().contains(t)||v.contains(t);if("mousemove"!==e.type||!n){var o=J().concat(v).map(function(e){var t,n=null==(t=e._tippy.popperInstance)?void 0:t.state;return n?{popperRect:e.getBoundingClientRect(),popperState:n,props:d}:null}).filter(Boolean);(function(e,t){var n=t.clientX,o=t.clientY;return e.every(function(e){var t=e.popperRect,i=e.popperState,s=e.props.interactiveBorder,a=i.placement.split("-")[0],r=i.modifiersData.offset;if(!r)return!0;var l="bottom"===a?r.top.y:0,c="top"===a?r.bottom.y:0,d="right"===a?r.left.x:0,p="left"===a?r.right.x:0,u=t.top-o+l>s,h=o-t.bottom-c>s,g=t.left-n+d>s,m=n-t.right-p>s;return u||h||g||m})})(o,e)&&(M(),te(e))}}function V(e){q(e)||A.props.trigger.indexOf("click")>=0&&p||(A.props.interactive?A.hideWithInteractivity(e):te(e))}function j(e){A.props.trigger.indexOf("focusin")<0&&e.target!==N()||A.props.interactive&&e.relatedTarget&&v.contains(e.relatedTarget)||te(e)}function q(e){return!!$t.isTouch&&x()!==e.type.indexOf("touch")>=0}function X(){Z();var t=A.props,n=t.popperOptions,o=t.placement,i=t.offset,s=t.getReferenceClientRect,a=t.moveTransition,l=k()?Xt(v).arrow:null,c=s?{getBoundingClientRect:s,contextElement:s.contextElement||N()}:e,d={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(e){var t=e.state;if(k()){var n=w().box;["placement","reference-hidden","escaped"].forEach(function(e){"placement"===e?n.setAttribute("data-placement",t.placement):t.attributes.popper["data-popper-"+e]?n.setAttribute("data-"+e,""):n.removeAttribute("data-"+e)}),t.attributes.popper={}}}},p=[{name:"offset",options:{offset:i}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!a}},d];k()&&l&&p.push({name:"arrow",options:{element:l,padding:3}}),p.push.apply(p,(null==n?void 0:n.modifiers)||[]),A.popperInstance=bt(c,v,Object.assign({},n,{placement:o,onFirstUpdate:r,modifiers:p}))}function Z(){A.popperInstance&&(A.popperInstance.destroy(),A.popperInstance=null)}function J(){return St(v.querySelectorAll("[data-tippy-root]"))}function ee(e){A.clearDelayTimeouts(),e&&P("onTrigger",[A,e]),U();var t=C(!0),o=T(),i=o[0],s=o[1];$t.isTouch&&"hold"===i&&s&&(t=s),t?n=setTimeout(function(){A.show()},t):A.show()}function te(e){if(A.clearDelayTimeouts(),P("onUntrigger",[A,e]),A.state.isVisible){if(!(A.props.trigger.indexOf("mouseenter")>=0&&A.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(e.type)>=0&&p)){var t=C(!1);t?o=setTimeout(function(){A.state.isVisible&&A.hide()},t):i=requestAnimationFrame(function(){A.hide()})}}else H()}}function on(e,t){void 0===t&&(t={});var n=Wt.plugins.concat(t.plugins||[]);document.addEventListener("touchstart",Ut,vt),window.addEventListener("blur",Ft);var o=Object.assign({},t,{plugins:n}),i=Pt(e).reduce(function(e,t){var n=t&&nn(t,o);return n&&e.push(n),e},[]);return Ot(e)?i[0]:i}on.defaultProps=Wt,on.setDefaultProps=function(e){Object.keys(e).forEach(function(t){Wt[t]=e[t]})},on.currentInput=$t,Object.assign({},ve,{effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow)}}),on.setDefaultProps({render:Zt});const sn={mainTRC:2.4,get mainTRCencode(){return 1/this.mainTRC},sRco:.2126729,sGco:.7151522,sBco:.072175,normBG:.56,normTXT:.57,revTXT:.62,revBG:.65,blkThrs:.022,blkClmp:1.414,scaleBoW:1.14,scaleWoB:1.14,loBoWoffset:.027,loWoBoffset:.027,deltaYmin:5e-4,loClip:.1,mFactor:1.9468554433171,get mFactInv(){return 1/this.mFactor},mOffsetIn:.0387393816571401,mExpAdj:.283343396420869,get mExp(){return this.mExpAdj/this.blkClmp},mOffsetOut:.312865795870758};function an(e,t=2){const n=[["Lc",100,200,300,400,500,600,700,800,900],[0,999,999,999,999,999,999,999,999,999],[10,999,999,999,999,999,999,999,999,999],[15,777,777,777,777,777,777,777,777,777],[20,777,777,777,777,777,777,777,777,777],[25,777,777,777,120,120,108,96,96,96],[30,777,777,120,108,108,96,72,72,72],[35,777,120,108,96,72,60,48,48,48],[40,120,108,96,60,48,42,32,32,32],[45,108,96,72,42,32,28,24,24,24],[50,96,72,60,32,28,24,21,21,21],[55,80,60,48,28,24,21,18,18,18],[60,72,48,42,24,21,18,16,16,18],[65,68,46,32,21.75,19,17,15,16,18],[70,64,44,28,19.5,18,16,14.5,16,18],[75,60,42,24,18,16,15,14,16,18],[80,56,38.25,23,17.25,15.81,14.81,14,16,18],[85,52,34.5,22,16.5,15.625,14.625,14,16,18],[90,48,32,21,16,15.5,14.5,14,16,18],[95,45,28,19.5,15.5,15,14,13.5,16,18],[100,42,26.5,18.5,15,14.5,13.5,13,16,18],[105,39,25,18,14.5,14,13,12,16,18],[110,36,24,18,14,13,12,11,16,18],[115,34.5,22.5,17.25,12.5,11.875,11.25,10.625,14.5,16.5],[120,33,21,16.5,11,10.75,10.5,10.25,13,15],[125,32,20,16,10,10,10,10,12,14]],o=[["∆Lc",100,200,300,400,500,600,700,800,900],[0,0,0,0,0,0,0,0,0,0],[10,0,0,0,0,0,0,0,0,0],[15,0,0,0,0,0,0,0,0,0],[20,0,0,0,0,0,0,0,0,0],[25,0,0,0,12,12,12,24,24,24],[30,0,0,12,12,36,36,24,24,24],[35,0,12,12,36,24,18,16,16,16],[40,12,12,24,18,16,14,8,8,8],[45,12,24,12,10,4,4,3,3,3],[50,16,12,12,4,4,3,3,3,3],[55,8,12,6,4,3,3,2,2,0],[60,4,2,10,2.25,2,1,1,0,0],[65,4,2,4,2.25,1,1,.5,0,0],[70,4,2,4,1.5,2,1,.5,0,0],[75,4,3.75,1,.75,.188,.188,0,0,0],[80,4,3.75,1,.75,.188,.188,0,0,0],[85,4,2.5,1,.5,.125,.125,0,0,0],[90,3,4,1.5,.5,.5,.5,.5,0,0],[95,3,1.5,1,.5,.5,.5,.5,0,0],[100,3,1.5,.5,.5,.5,.5,1,0,0],[105,3,1,0,.5,1,1,1,0,0],[110,1.5,1.5,.75,1.5,1.125,.75,.375,1.5,1.5],[115,1.5,1.5,.75,1.5,1.125,.75,.375,1.5,1.5],[120,1,1,.5,1,.75,.5,.25,1,1],[125,0,0,0,0,0,0,0,0,0]];let i=[e.toFixed(t),0,0,0,0,0,0,0,0,0];i.length;let s=777;const a=0==(e=Math.abs(e))?1:.2*e|0;let r=0,l=.2*(e-n[a][r]);for(r++;r<10;r++)s=n[a][r],i[r]=s>400?s:e<14.5?999:e<29.5?777:s>24?Math.round(s-o[a][r]*l):s-.5*(2*o[a][r]*l|0);return i}function rn(e=[0,0,0]){function t(e){return Math.pow(e/255,sn.mainTRC)}return sn.sRco*t(e[0])+sn.sGco*t(e[1])+sn.sBco*t(e[2])}function ln(e=[0,0,0,1],t=[0,0,0],n=!0){e[3]=Math.max(Math.min(e[3],1),0);let o=1-e[3],i=[0,0,0,1,!0];for(let s=0;s<3;s++)i[s]=t[s]*o+e[s]*e[3],n&&(i[s]=Math.min(Math.round(i[s]),255));return i}function cn(e){const t=parseInt(e,10);if(!Number.isNaN(t))return t;return{lighter:100,normal:400,bold:700,bolder:900}[e]||400}function dn(e,t){const n=e;let o,i,s,a=1;if(n.startsWith("rgb")){const e=n.match(/[\d.]+/g).map(Number);[o,i,s,a]=4===e.length?e:[...e,1]}else{if(n.startsWith("color(rec2020")||n.startsWith("color(display-p3"))return"unsupported";const e=document.createElement("canvas").getContext("2d");e.fillStyle=n,e.fillRect(0,0,1,1);const t=e.getImageData(0,0,1,1);[o,i,s,a]=t.data,a=(a/255).toFixed(2)}return t&&t<1&&(a=(a*t).toFixed(2)),[o,i,s,Number(a)]}function pn(e){let t=e;for(;t&&1===t.nodeType;){if(o.Global.shadowDetection){const e=t.getRootNode();if(e instanceof ShadowRoot){let n=t;for(;n&&n!==e.host;){const e=getComputedStyle(n);if(e.backgroundImage&&"none"!==e.backgroundImage)return{type:"image",value:e.backgroundImage};const t=dn(e.backgroundColor);if(0!==t[3]&&"transparent"!==t)return t;n=n.parentElement}return pn(e.host)}}const e=getComputedStyle(t),n=e.backgroundImage;if("none"!==n)return{type:"image",value:n};const i=dn(e.backgroundColor);if(0!==i[3]&&"transparent"!==i){if(i[3]<1){let e=t.parentElement,n="rgba(255, 255, 255, 1)";for(;e&&1===e.nodeType;){if(n=getComputedStyle(e).backgroundColor,"rgba(0, 0, 0, 0)"!==n)break;"rgba(0, 0, 0, 0)"===n&&"HTML"===e.tagName&&(n="rgba(255, 255, 255, 1)"),e=e.parentElement}return ln(i,dn(n||"rgba(255, 255, 255, 1)"))}return i}if("HTML"===t.tagName)return[255,255,255];t=t.parentNode}return[255,255,255]}function un(e){const t=e.slice(0,3).map(e=>{const t=e/255;return t<=.03928?t/12.92:((t+.055)/1.055)**2.4});return.2126*t[0]+.7152*t[1]+.0722*t[2]}function hn(e,t){return(Math.max(e,t)+.05)/(Math.min(e,t)+.05)}function gn(e,t){return e.map((e,n)=>{if(n<3){const n=Math.ceil(e+(255-e)*t);return n>=255?255:n}return e})}function mn(e,t){return e.map((e,n)=>{if(n<3){const n=Math.floor(e*(1-t));return n<=0?0:n}return e})}function fn(e){const[t,n,o]=e.map(e=>Math.min(255,Math.max(0,e)));return`#${t.toString(16).padStart(2,"0")}${n.toString(16).padStart(2,"0")}${o.toString(16).padStart(2,"0")}`}function bn(e){if(o.Global.contrastAPCA)return Math.abs(Number(e.toFixed(1)));const t=Math.round(100*e)/100;return Number.isInteger(t)?`${t}:1`:`${t.toFixed(2)}:1`}function yn(e,t){let n;const i=ln(e,t).slice(0,4);if(o.Global.contrastAPCA){n=function(e,t,n=-1){const o=[0,1.1];if(isNaN(e)||isNaN(t)||Math.min(e,t)o[1])return 0;let i=0,s=0,a="BoW";return e=e>sn.blkThrs?e:e+Math.pow(sn.blkThrs-e,sn.blkClmp),t=t>sn.blkThrs?t:t+Math.pow(sn.blkThrs-t,sn.blkClmp),Math.abs(t-e)e?(i=(Math.pow(t,sn.normBG)-Math.pow(e,sn.normTXT))*sn.scaleBoW,s=i-sn.loClip?0:i+sn.loWoBoffset),n<0?100*s:0==n?Math.round(100*Math.abs(s))+""+a+"":Number.isInteger(n)?(100*s).toFixed(n):0)}(rn(i),rn(t))}else{n=hn(un(i),un(t))}return{ratio:n,blendedColor:i}}function An(e,t,n,o){const i=rn(t),s=(e,t)=>i<=.179?gn(e,t):mn(e,t);let a=e,r=yn(a,t),l=an(r.ratio).slice(1);const c=Math.floor(n/100)-1,d=l[c],p=o{const n=yn(e,[0,0,0,1]),o=yn(e,[255,255,255,1]),i=Math.abs(n.ratio)>Math.abs(o.ratio),s=i?[0,0,0,1]:[255,255,255,1],a=an(i?n.ratio:o.ratio).slice(1);return{suggestedColor:s,size:Math.ceil(a[Math.floor(t/100)-1])}})(t,n);if(u.size>o)return{color:fn(u.suggestedColor),size:u.size};let h=e,g=a,m=r.ratio,f=.16;let b=0;if(p)for(;f>=.01;)if(b+=1,a=s(a,f),r=yn(a,t),l=an(r.ratio).slice(1),l[c]<=o&&(g=Math.abs(r.ratio)<=Math.abs(m)?a:g,m=r.ratio,g=a,a=h,f*=.5),h=a,50===b)return{color:fn(u.suggestedColor),size:u.size};return{color:fn(g),size:null}}function En(e){let t;const{color:i,background:s,fontWeight:a,fontSize:r,isLargeText:l,type:c}=e;if(i&&s&&"image"!==s.type&&"text"===c){const c=o.Global.contrastAPCA?An(i,s,a,r):function(e,t,n,o=!1){let i;i=o?n?4.5:7:n?3:4.5;const s=un(e),a=un(t),r=s>a?hn(1,a)>i:hn(0,a)n?gn(e,t):mn(e,t);let c=e,d=c,p=hn(s,a),u=p,h=e,g=.16,m=0;for(;g>=.01;){if(m+=1,m>100)return{color:null};c=l(c,g,r),p=hn(un(c),a),p>=i&&(d=p<=u?c:d,u=p,c=h,g*=.5),h=c}return{color:fn(d)}}(i,s,l,o.Global.contrastAAA);let d;const p='',u=`${c.color}`,h=`${c.size}px`;o.Global.contrastAPCA?c.color&&c.size?d=`${p} ${n._("CONTRAST_APCA")} ${u} ${h}`:c.color?d=`${p} ${n._("CONTRAST_COLOR")} ${u}`:c.size&&(d=`${p} ${n._("CONTRAST_SIZE")} ${h}`):d=null===c.color?`${p} ${n._("NO_SUGGESTION")}`:`${p} ${n._("CONTRAST_COLOR")} ${u}`,t=document.createElement("div"),t.id="advice";const g=e.opacity<1?` ${n.sprintf("CONTRAST_OPACITY")}`:d;t.innerHTML=g}return t}function vn(e,t){const n=e?.querySelector("#contrast-tools");if(n){const{fontSize:n,fontWeight:i,type:s,isLargeText:a}=t,r=e.querySelector("#contrast"),l=e.querySelector("#contrast-preview"),c=e.querySelector("#fg-input"),d=e.querySelector("#bg-input"),p=e.querySelector("#value"),u=e.querySelector("#good"),h=e.querySelector("#apca-table"),g=(e,t)=>{e.forEach(e=>{e.classList.toggle("good-contrast",t),e.classList.toggle("error-badge",!t)})},m=()=>{const e=c.value,t=d.value;[c,d].forEach(e=>e.classList.remove("unknown")),l.style.color=e,l.style.backgroundColor=t,l.style.backgroundImage="none";const m=l.querySelectorAll("svg *");if(1===m.length){const{fill:t,stroke:n}=getComputedStyle(m[0]);m[0].style.opacity=1,"none"!==t&&(m[0].style.fill=e),"none"!==n&&(m[0].style.stroke=e)}const f=yn(dn(e),dn(t)),b=[p,r];if(o.Global.contrastAPCA){const e=f.ratio;p.textContent=bn(e);const t=an(e).slice(1),o=e>=45&&t[0]>=0&&t[0]<=777;let a;switch(s){case"svg-error":case"svg-warning":u.hidden=!o,a=o,g(b,a);break;case"svg-text":u.hidden=!o,a=t.slice(1,7).some(e=>999!==e&&777!==e),g(b,a),function(e,t){const n=e;n.innerHTML="",n.hidden=!1;const o=document.createElement("div");o.classList.add("row");const i=t.slice(1,7);for(let e=0;e=e,g(b,a),u.hidden=!a;break}}}if(!o.Global.contrastAPCA){const e=f.ratio;p.textContent=bn(e);const t=o.Global.contrastAAA,n=e>=3,i=e>=(t?7:4.5),l=e>=(t?4.5:3);switch(s){case"svg-error":case"svg-text":case"svg-warning":u.hidden=!n,g(b,n);break;default:a?(g([p,r],l),u.hidden=!l):(g([p,r],i),u.hidden=!i)}}};c.addEventListener("input",m),d.addEventListener("input",m)}}function _n(e,t,n,o,i,s,a=!1){const{ratio:r,blendedColor:l}=yn(t,n),c=o>=24||o>=18.67&&i>=700;let d;if(a)d=c?r<4.5:r<7;else{d=c?r<3:r>1&&r<4.5}return d?{$el:e,ratio:bn(r),color:l,background:n,fontSize:o,fontWeight:i,isLargeText:c,opacity:s,textUnderline:getComputedStyle(e).textDecorationLine}:null}function Ln(e,t,n,o,i,s){const{ratio:a,blendedColor:r}=yn(t,n);return o{const t=e.shadowRoot.querySelectorAll(".sa11y-btn");t&&i.push(...Array.from(t))});const s=on(i,{interactive:!0,trigger:"mouseenter click",hideOnClick:!1,arrow:!0,offset:[0,8],delay:[0,400],maxWidth:375,theme:"sa11y-theme",placement:"auto-start",allowHTML:!0,role:"dialog",aria:{content:null,expanded:"auto"},appendTo:e,zIndex:2147483645,onShow(e){s.forEach(t=>{t!==e.popper&&t.hide()});const t=e.reference.getRootNode().host;t.setAttribute("data-sa11y-opened","");const i=e.popper.querySelector(".close-btn"),a=()=>{e.hide(),e.reference.focus()};i.addEventListener("click",a);const r=t=>{"Escape"===t.key&&(e.hide(),e.reference.focus())};if(e.popper.addEventListener("keydown",r),!e.popper.hasAttribute("contrast-tools-initialized")){const i=parseInt(t.getAttribute("data-sa11y-annotation"),10),s=window.sa11yCheckComplete.results.find(e=>e.id===i),{contrastDetails:a}=s||{};if(a){const t=e.popper.querySelector("[data-sa11y-contrast-details]"),i=function(e){const{sanitizedText:t,color:i,background:s,fontWeight:a,fontSize:r,ratio:l,textUnderline:c}=e,d=s&&"image"!==s.type,p=d?fn(s):"#000000",u=i?fn(i):"#000000",h=a?`font-weight:${a};`:"",g=r?`font-size:${r}px;`:"",m=c?`text-decoration:${c};`:"",f=i?"":'class="unknown"',b=s&&"image"!==s.type?"":'class="unknown"',y=i?"":`(${n._("UNKNOWN")})`,A=s?"":`(${n._("UNKNOWN")})`;let E;E=o.Global.contrastAPCA?0===Math.abs(l)?0:Math.abs(l)||n._("UNKNOWN"):l||n._("UNKNOWN");const v=document.createElement("div");return v.id="contrast-tools",v.innerHTML=`\n \n
                                                                    ${n._("CONTRAST")}
                                                                    \n
                                                                    ${E}
                                                                    \n \n \n
                                                                    ${t}
                                                                    \n
                                                                    \n \n \n
                                                                    `,v}(a);t.appendChild(i),vn(e.popper,a);const s=En(a);s&&t.appendChild(s),e.popper.setAttribute("contrast-tools-initialized",!0)}}let l=!0;e.popper.addEventListener("mousedown",function t(n){l&&n.target.matches('input[type="color"]')&&(e.reference.click(),l=!1,e.popper.removeEventListener("mousedown",t))});const c=()=>{i.removeEventListener("click",a),e.popper.removeEventListener("keydown",r),e.popper.removeEventListener("hidden",c)};e.popper.addEventListener("hidden",c)},onTrigger(e,t){"click"===t.type&&setTimeout(()=>{e.popper.querySelector(".close-btn").focus(),function(e){const t=e.querySelectorAll('a[href]:not([disabled]), button:not([disabled]), input[type="color"]'),n=t[0],o=t[t.length-1];e.addEventListener("keydown",t=>{const i="Tab"===t.key||9===t.keyCode,s=e.getRootNode();i&&(t.shiftKey?s.activeElement===n&&(o.focus(),t.preventDefault()):s.activeElement===o&&(n.focus(),t.preventDefault()))})}(e.popper)},0)},onHide(e){e.popper.querySelector(".close-btn").removeEventListener("click",()=>{e.hide()});e.reference.getRootNode().host.removeAttribute("data-sa11y-opened")}})}}class kn extends HTMLElement{connectedCallback(){const e=e=>({allowHTML:!0,delay:[500,0],trigger:"mouseenter focusin",arrow:!0,placement:"top",theme:"sa11y-theme sa11y-panel",role:"tooltip",aria:{content:null,expanded:null},appendTo:e,zIndex:2147483645}),t=this.attachShadow({mode:"open"}),i=document.createElement("style");i.innerHTML=Tn+z,t.appendChild(i);const s=-1!==navigator.userAgent.indexOf("Mac")?'Option + S':'Alt + S';if(on(o.Panel.skipButton,{...e(t),offset:[0,8],maxWidth:200,content:`${n._("SKIP_TO_ISSUE")} »
                                                                    ${s}`}),this.object=on(o.Panel.dismissButton,{offset:[0,8],maxWidth:200,...e(t)}),o.Global.developerPlugin){const i=o.Panel.developerItem.querySelector(".info-icon");i&&on(i,{...e(t),triggerTarget:[o.Panel.developerItem],offset:[0,10],maxWidth:250,content:n._("DEVELOPER_DESC")})}if(o.Global.readabilityPlugin){const i=o.Panel.readabilityItem.querySelector(".info-icon");i&&on(i,{...e(t),triggerTarget:[o.Panel.readabilityItem],offset:[0,10],maxWidth:250,content:n._("READABILITY_DESC")})}}}class Nn extends HTMLElement{connectedCallback(){const e=this.attachShadow({mode:"open"}),t=document.createElement("style");t.innerHTML='.instance{display:block;position:relative}.instance-inline{display:inline-block;position:relative;text-align:end}button{border-radius:50%;box-shadow:0 0 16px 0 rgba(0,0,0,.31);cursor:pointer;display:block;padding:0;transition:all .2s ease-in-out;z-index:8888}button,button:after{height:36px;position:absolute;width:36px}button:after{content:"";left:-7px;padding:7px;top:-7px}.warning-btn{margin:20px}.error-btn,.good-btn{margin:10px}.error-btn-text,.good-btn-text,.warning-btn-text{margin:-30px 10px}.error-btn,.error-btn-text{background:50% 50% var(--sa11y-error-svg) no-repeat;background-color:var(--sa11y-error);background-size:22px;border:1px solid var(--sa11y-error)}.error-btn-text:focus,.error-btn-text:hover,.error-btn:focus,.error-btn:hover{background-color:var(--sa11y-error-hover)}.good-btn,.good-btn-text{background:50% 50% var(--sa11y-good) var(--sa11y-good-svg) no-repeat;background-color:var(--sa11y-good);background-size:20px;border:1px solid var(--sa11y-good)}.good-btn-text:focus,.good-btn-text:hover,.good-btn:focus,.good-btn:hover{background-color:var(--sa11y-good-hover)}.warning-btn,.warning-btn-text{background:50% 50% var(--sa11y-warning) var(--sa11y-warning-svg) no-repeat;background-color:var(--sa11y-warning);background-size:24px;border:1px solid var(--sa11y-warning);transform:scaleX(var(--sa11y-icon-direction))}.warning-btn-text:focus,.warning-btn-text:hover,.warning-btn:focus,.warning-btn:hover{background-color:var(--sa11y-warning-hover)}.sa11y-btn:active,.sa11y-btn:focus{box-shadow:0 0 0 5px var(--sa11y-focus-color);outline:0}@media screen and (forced-colors:active){.sa11y-btn{border:1px solid transparent!important;forced-color-adjust:none;outline:3px solid transparent!important}}'+z,e.appendChild(t)}}const Sn=e=>{document.querySelectorAll("sa11y-annotation").forEach(t=>{const n=((e,t,n)=>{let o=e;for(;null!==o;){if(window.getComputedStyle(o).getPropertyValue(t)===n)return o;o=o.parentElement}return null})(t,"overflow","hidden");if(null!==n){if(e){if(e.split(",").flatMap(e=>[...document.querySelectorAll(e)]).includes(n))return}n.setAttribute("data-sa11y-overflow","")}})};class wn extends HTMLElement{connectedCallback(){this.attachShadow({mode:"open"})}}class Cn extends HTMLElement{connectedCallback(){const e=this.attachShadow({mode:"open"}),t=document.createElement("style");t.textContent="\n span.heading-label {\n background-color: #777678;\n background-image: linear-gradient(to bottom right, #b629ce, #16aec2);\n border-radius: 5px;\n border: 1px solid #36a5c3;\n color: white;\n display: inline-block;\n font-family: var(--sa11y-font-face);\n font-weight: 500;\n font-size: 18px;\n line-height: normal;\n letter-spacing: normal;\n margin: -5px 0 0 5px;\n padding: 3px;\n position: absolute;\n text-shadow: 1px 1px black;\n -webkit-text-fill-color: white;\n word-break: keep-all;\n z-index: 200;\n }\n @media screen and (forced-colors: active) {\n span.heading-label {\n border: 2px solid transparent;\n }\n }",e.appendChild(t)}}const On=(e,t)=>{if(0===e.offsetTop){const o=e.getRootNode().host,i=E(o,"display","none"),s=parseInt(o.getAttribute("data-sa11y-annotation"),10),a=C(t.find(e=>e.id===s));(e=>{const t=E(e.getRootNode().host,"display","none");if(null!==t){L(t.previousElementSibling||t.parentNode)}})(e);const r=e.getAttribute("data-tippy-content");if(x(`${n._("NOT_VISIBLE")}`,r,a),(()=>{const e=document.querySelector("sa11y-tooltips").shadowRoot.querySelector("button");null!==e&&e.click()})(),i){const e=i.previousElementSibling,{parentNode:t}=i;return e?v(e).top-150:v(t).top-150}}else T(),o.Panel.skipButton.focus();return v(e).top-150};let Pn=-1;const Rn=()=>{const e=_.getItem("sa11y-latest-dismissed");null!==e&&(Pn=parseInt(e,10)-1),_.removeItem("sa11y-latest-dismissed");const t=i("[data-sa11y-opened]","root");t[0]&&(Pn=parseInt(t[0].getAttribute("data-sa11y-position"),10))},Dn=e=>{Rn();const t=P.Annotations.Array;Pn>=t.length-1&&(Pn=-1);const n=t[Pn+1].shadowRoot.querySelector("button"),i=On(n,e);window.scrollTo({top:i,behavior:`${o.Global.scrollBehaviour}`}),0!==n.offsetTop&&(n.focus(),n.click()),Pn+=1};function Mn(e,t){P.Annotations.Array.length&&!o.Panel.skipButton.hasAttribute("disabled")&&(!e.altKey||"KeyS"!==e.code&&"Period"!==e.code?!e.altKey||"KeyW"!==e.code&&"Comma"!==e.code||(e.preventDefault(),(e=>{Rn();const t=P.Annotations.Array;Pn<=0&&(Pn=t.length);const n=P.Annotations.Array[Pn-1].shadowRoot.querySelector("button"),i=On(n,e);window.scrollTo({top:i,behavior:`${o.Global.scrollBehaviour}`}),0!==n.offsetTop&&(n.focus(),n.click()),Pn-=1,-1===Pn&&(Pn=P.Annotations.Array.length-1)})(t)):(e.preventDefault(),Dn(t)))}let Bn,$n;function Gn(e,t){return P.Found.Images.forEach(i=>{const s="noAria"===r(i)?i.getAttribute("alt"):r(i),a=i.closest(t.imageWithinLightbox?`a[href]:not(${t.imageWithinLightbox})`:"a[href]"),c=i.getAttribute("src")?i.getAttribute("src"):i.getAttribute("srcset"),d=a?f(a,o.Exclusions.LinkSpan).textContent:"",u=t.linkIgnoreStrings?d.replace(t.linkIgnoreStrings,""):d,g=a?y(u).length:0;if("true"!==i.getAttribute("aria-hidden")&&(1!==i.height||1!==i.width||!p(i))){if(a&&"true"===a.getAttribute("aria-hidden")){const o="-1"===a.getAttribute("tabindex");return void(t.checks.HIDDEN_FOCUSABLE&&!o&&e.push({element:i,type:t.checks.HIDDEN_FOCUSABLE.type||"error",content:n.sprintf(t.checks.HIDDEN_FOCUSABLE.content||"HIDDEN_FOCUSABLE"),dismiss:I(`IMGHIDDENFOCUSABLE${c}`),dismissAll:!!t.checks.HIDDEN_FOCUSABLE.dismissAll&&"LINK_HIDDEN_FOCUSABLE",developer:t.checks.HIDDEN_FOCUSABLE.developer||!0}))}if(null===s)if(a){const o=0===g?t.checks.MISSING_ALT_LINK:t.checks.MISSING_ALT_LINK_HAS_TEXT,s=0===g?"MISSING_ALT_LINK":"MISSING_ALT_LINK_HAS_TEXT";o&&e.push({element:i,type:o.type||"error",content:n.sprintf(o.content||s),dismiss:I(`${s+c+g}`),dismissAll:!!o.dismissAll&&s,developer:o.developer||!1})}else t.checks.MISSING_ALT&&e.push({element:i,type:t.checks.MISSING_ALT.type||"error",content:n.sprintf(t.checks.MISSING_ALT.content||"MISSING_ALT"),dismiss:I(`IMGNOALT${c}`),dismissAll:!!t.checks.MISSING_ALT.dismissAll&&"MISSING_ALT",developer:t.checks.MISSING_ALT.developer||!1});else{const o=y(h(s)),r=(e=>{const o=[null,null,null];[".avif",".png",".jpg",".jpeg",".webp",".gif",".tiff",".svg",".heif",".heic","http"].forEach(t=>{if(-1!==e.toLowerCase().indexOf(t.toLowerCase()))o[0]=t;else{const t=/\b\d{2,6}\s*x\s*\d{2,6}\b/,n=e.toLowerCase().match(t);n&&([o[0]]=n)}}),(t.susAltStopWords?t.susAltStopWords.split(",").map(e=>e.trim()):n._("SUS_ALT_STOPWORDS")).forEach(t=>{const n=e.toLowerCase().indexOf(t);n>-1&&n<6&&(o[1]=t)}),n._("PLACEHOLDER_ALT_STOPWORDS").forEach(t=>{e.length===t.length&&e.toLowerCase().indexOf(t)>=0&&(o[2]=t)});const{extraPlaceholderStopWords:i}=t;i.length&&i.split(",").map(e=>e.trim()).forEach(t=>{const n=e.toLowerCase().indexOf(t);n>-1&&n<6&&(o[2]=t)});return o})(o),d=i.getAttribute("aria-label")||i.getAttribute("aria-labelledby"),p=i.getAttribute("title"),u=""===s||" "===s,m=i.closest("figure"),f=m?.querySelector("figcaption"),b=f?f.textContent.trim():"",E=t.checks.LINK_IMAGE_LONG_ALT.maxLength||250,v=t.checks.IMAGE_ALT_TOO_LONG.maxLength||250;if(d&&""===o)return void(t.checks.MISSING_ALT&&e.push({element:i,type:t.checks.MISSING_ALT.type||"error",content:n.sprintf(t.checks.MISSING_ALT.content||"MISSING_ALT"),dismiss:I(`IMGNOALTARIA${c}`),dismissAll:!!t.checks.MISSING_ALT.dismissAll&&"MISSING_ALT",developer:t.checks.MISSING_ALT.developer||!1}));if(u){const o=t.checks.IMAGE_DECORATIVE_CAROUSEL.sources,s=o?i.closest(o):"";if(s){const o=s.querySelectorAll("img"),a=1===o.length?t.checks.IMAGE_DECORATIVE:t.checks.IMAGE_DECORATIVE_CAROUSEL,r=1===o.length?"IMAGE_DECORATIVE":"IMAGE_DECORATIVE_CAROUSEL";a&&e.push({element:i,type:a.type||"warning",content:n.sprintf(a.content||r),dismiss:I(r+c),dismissAll:!!a.dismissAll&&r,developer:a.developer||!1})}else if(a){const o=0===g?t.checks.LINK_IMAGE_NO_ALT_TEXT:t.checks.LINK_IMAGE_TEXT,s=0===g?"LINK_IMAGE_NO_ALT_TEXT":"LINK_IMAGE_TEXT";o&&e.push({element:i,type:o.type||(0===g?"error":"good"),content:n.sprintf(o.content||s),dismiss:I(`${s+c+g}`),dismissAll:!!o.dismissAll&&s,developer:o.developer||!1})}else if(m){const o=f&&b.length?t.checks.IMAGE_FIGURE_DECORATIVE:t.checks.IMAGE_DECORATIVE,s=f&&b.length?"IMAGE_FIGURE_DECORATIVE":"IMAGE_DECORATIVE";o&&e.push({element:i,type:o.type||"warning",content:n.sprintf(o.content||s),dismiss:I(`${s+c+b}`),dismissAll:!!o.dismissAll&&s,developer:o.developer||!1})}else t.checks.IMAGE_DECORATIVE&&e.push({element:i,type:t.checks.IMAGE_DECORATIVE.type||"warning",content:n.sprintf(t.checks.IMAGE_DECORATIVE.content||"IMAGE_DECORATIVE"),dismiss:I(`DECIMAGE${c}`),dismissAll:!!t.checks.IMAGE_DECORATIVE.dismissAll&&"IMAGE_DECORATIVE",developer:t.checks.IMAGE_DECORATIVE.developer||!1});return}if(null!==r[0]){const s=a?t.checks.LINK_ALT_FILE_EXT:t.checks.ALT_FILE_EXT,l=a?"LINK_ALT_FILE_EXT":"ALT_FILE_EXT";s&&e.push({element:i,type:s.type||"error",content:n.sprintf(s.content||l,r[0],o),dismiss:I(`${l+c+o}`),dismissAll:!!s.dismissAll&&l,developer:s.developer||!1})}else if(null!==r[2]){const s=a?t.checks.LINK_PLACEHOLDER_ALT:t.checks.ALT_PLACEHOLDER,r=a?"LINK_PLACEHOLDER_ALT":"ALT_PLACEHOLDER";s&&e.push({element:i,type:s.type||"error",content:n.sprintf(s.content||r,o),dismiss:I(`${r+c+o}`),dismissAll:!!s.dismissAll&&r,developer:s.developer||!1})}else if(null!==r[1]){const s=a?t.checks.LINK_SUS_ALT:t.checks.SUS_ALT,l=a?"LINK_SUS_ALT":"SUS_ALT";s&&e.push({element:i,type:s.type||"warning",content:n.sprintf(s.content||l,r[1],o),dismiss:I(`${l+c+o}`),dismissAll:!!s.dismissAll&&l,developer:s.developer||!1})}else if(a?s.length>E:s.length>v){const r=a?t.checks.LINK_IMAGE_LONG_ALT:t.checks.IMAGE_ALT_TOO_LONG,l=a?"LINK_IMAGE_LONG_ALT":"IMAGE_ALT_TOO_LONG",d=A(o,600);r&&e.push({element:i,type:r.type||"warning",content:n.sprintf(r.content||l,s.length,d),dismiss:I(`${l+c+o}`),dismissAll:!!r.dismissAll&&l,developer:r.developer||!1})}else if(a){const s=0===g?t.checks.LINK_IMAGE_ALT:t.checks.LINK_IMAGE_ALT_AND_TEXT,r=0===g?"LINK_IMAGE_ALT":"LINK_IMAGE_ALT_AND_TEXT";if(s){const t=h(y(l(a))),d=0===g?n.sprintf("LINK_IMAGE_ALT",o):`${n.sprintf("LINK_IMAGE_ALT_AND_TEXT",o,t)} ${n.sprintf("ACC_NAME_TIP")}`;e.push({element:i,type:s.type||"warning",content:s.content?n.sprintf(s.content,o,t):d,dismiss:I(`${r+c+o}`),dismissAll:!!s.dismissAll&&r,developer:s.developer||!1})}}else if(m){!!f&&b.toLowerCase()===o.trim().toLowerCase()?t.checks.IMAGE_FIGURE_DUPLICATE_ALT&&e.push({element:i,type:t.checks.IMAGE_FIGURE_DUPLICATE_ALT.type||"warning",content:n.sprintf(t.checks.IMAGE_FIGURE_DUPLICATE_ALT.content||"IMAGE_FIGURE_DUPLICATE_ALT",o),dismiss:I(`FIGDUPLICATE${c}`),dismissAll:!!t.checks.IMAGE_FIGURE_DUPLICATE_ALT.dismissAll&&"IMAGE_FIGURE_DUPLICATE_ALT",developer:t.checks.IMAGE_FIGURE_DUPLICATE_ALT.developer||!1}):t.checks.IMAGE_PASS&&e.push({element:i,type:t.checks.IMAGE_PASS.type||"good",content:n.sprintf(t.checks.IMAGE_PASS.content||"IMAGE_PASS",o),dismiss:I(`FIGIMGPASS${c+o}`),dismissAll:!!t.checks.IMAGE_PASS.dismissAll&&"IMAGE_PASS",developer:t.checks.IMAGE_PASS.developer||!1})}else t.checks.IMAGE_PASS&&(i.closest('button, [role="button"]')||e.push({element:i,type:t.checks.IMAGE_PASS.type||"good",content:n.sprintf(t.checks.IMAGE_PASS.content||"IMAGE_PASS",o),dismiss:I(`IMAGEPASS${c+o}`),dismissAll:!!t.checks.IMAGE_PASS.dismissAll&&"IMAGE_PASS",developer:t.checks.IMAGE_PASS.developer||!1}));p?.toLowerCase()===s.toLowerCase()&&t.checks.DUPLICATE_TITLE&&e.push({element:i,type:t.checks.DUPLICATE_TITLE.type||"warning",content:n.sprintf(t.checks.DUPLICATE_TITLE.content||"DUPLICATE_TITLE"),inline:!0,dismiss:I(`ALTDUPLICATETITLE${o}`),dismissAll:!!t.checks.DUPLICATE_TITLE.dismissAll&&"DUPLICATE_TITLE",developer:t.checks.DUPLICATE_TITLE.developer||!1})}}}),e}function Un(e,t){const i=t.linkStopWords?[...n._("PARTIAL_ALT_STOPWORDS"),...t.linkStopWords.split(",").map(e=>e.trim())]:n._("PARTIAL_ALT_STOPWORDS"),s=e=>e.replace(/[^\w\s./]/g,"").replace(/\s+/g," ").trim(),a=(e,t)=>{const n=e.replace(/\./g,"").toLowerCase();let o=null;return t.forEach(e=>{n.length===e.length&&n.indexOf(e.toLowerCase())>=0&&(o=e)}),o},r={};return P.Found.Links.forEach(c=>{const d=function(e){let t=e.getAttribute("href");return t=y(t).toLowerCase(),t.endsWith("/")&&(t=t.slice(0,-1)),t=t.replace(/^https?:\/\/(www\.)?/,""),t=t.replace(/\.(html|php|htm|asp|aspx)$/i,""),t}(c),p=l(c,o.Exclusions.LinkSpan),u=y(t.linkIgnoreStrings?p.replace(t.linkIgnoreStrings,""):p),g=(e=>{const t=[null,null,null,null];return t[0]=a(e,i),n._("CLICK").forEach(n=>(new RegExp(`\\b${n}\\b`,"i").test(e)&&(t[1]=n),!1)),["doi.org/","dl.acm.org/","link.springer.com/","pubmed.ncbi.nlm.nih.gov/","scholar.google.com/","ieeexplore.ieee.org/","researchgate.net/publication/","sciencedirect.com/science/article/"].forEach(n=>(e.toLowerCase().indexOf(n)>=0&&(t[2]=n),!1)),["www.","http"].forEach(n=>(e.toLowerCase().startsWith(n)&&(t[3]=n),!1)),[".edu/",".com/",".net/",".org/",".us/",".ca/",".de/",".icu/",".uk/",".ru/",".info/",".top/",".xyz/",".tk/",".cn/",".ga/",".cf/",".nl/",".io/",".fr/",".pe/",".nz/",".pt/",".es/",".pl/",".ua/"].forEach(n=>(e.toLowerCase().indexOf(n)>=0&&(t[3]=n),!1)),t})(s(u)),m=1===u.length&&/[^a-zA-Z0-9]/g.test(u),A=u.match(/([<>↣↳←→↓«»↴]+)/),E=A?A[1]:null,v=c.getAttribute("title"),_="true"===c.getAttribute("aria-hidden"),L="-1"===c.getAttribute("tabindex"),T=c.querySelector(":scope [aria-labelledby], :scope [aria-label]")||c.getAttribute("aria-labelledby")||c.getAttribute("aria-label"),x=c.querySelector(":scope [aria-labelledby]")||c.getAttribute("aria-labelledby"),k=n._("NEW_WINDOW_PHRASES").some(e=>u.toLowerCase().includes(e)||b(c).toLowerCase().includes(e)),N=n._("CLICK").some(e=>new RegExp(`\\b${e}\\b`,"i").test(c.textContent)),S=["pdf","doc","docx","word","mp3","ppt","text","pptx","txt","exe","dmg","rtf","windows","macos","csv","xls","xlsx","mp4","mov","avi","zip"].concat(n._("FILE_TYPE_PHRASES")).some(e=>u.toLowerCase().includes(e)||b(c).toLowerCase().includes(e)),w=c.matches("\n a[href$='.pdf'],\n a[href$='.doc'],\n a[href$='.docx'],\n a[href$='.zip'],\n a[href$='.mp3'],\n a[href$='.txt'],\n a[href$='.exe'],\n a[href$='.dmg'],\n a[href$='.rtf'],\n a[href$='.pptx'],\n a[href$='.ppt'],\n a[href$='.xls'],\n a[href$='.xlsx'],\n a[href$='.csv'],\n a[href$='.mp4'],\n a[href$='.mov'],\n a[href$='.avi']\n "),C=u.replace(/'|"|-|\.|\s+/g,"").toLowerCase();if(!c.querySelectorAll("img").length){if(_)L||t.checks.HIDDEN_FOCUSABLE&&e.push({element:c,type:t.checks.HIDDEN_FOCUSABLE.type||"error",content:n.sprintf(t.checks.HIDDEN_FOCUSABLE.content||"HIDDEN_FOCUSABLE"),inline:!0,position:"afterend",dismiss:I(`LINKHIDDENFOCUS${d+C}`),dismissAll:!!t.checks.HIDDEN_FOCUSABLE.dismissAll&&"LINK_HIDDEN_FOCUSABLE",developer:t.checks.HIDDEN_FOCUSABLE.developer||!0});else if(!d&&""!==d||0!==u.length)if(null!==g[0])t.checks.LINK_STOPWORD&&e.push({element:c,type:t.checks.LINK_STOPWORD.type||"error",content:t.checks.LINK_STOPWORD.content?n.sprintf(t.checks.LINK_STOPWORD.content,g[0]):n.sprintf("LINK_STOPWORD",g[0])+n.sprintf("LINK_TIP"),inline:!0,position:"afterend",dismiss:I(`LINKSTOPWORD${d+C}`),dismissAll:!!t.checks.LINK_STOPWORD.dismissAll&&"LINK_STOPWORD",developer:t.checks.LINK_STOPWORD.developer||!1});else if(null!==g[2])u.length>8&&t.checks.LINK_DOI&&e.push({element:c,type:t.checks.LINK_DOI.type||"warning",content:n.sprintf(t.checks.LINK_DOI.content||"LINK_DOI"),inline:!0,dismiss:I(`LINKDOI${d+C}`),dismissAll:!!t.checks.LINK_DOI.dismissAll&&"LINK_DOI",developer:t.checks.LINK_DOI.developer||!1});else if(null!==g[3])u.length>(t.checks.LINK_URL.maxLength||40)&&t.checks.LINK_URL&&e.push({element:c,type:t.checks.LINK_URL.type||"warning",content:t.checks.LINK_URL.content?n.sprintf(t.checks.LINK_URL.content):n.sprintf("LINK_URL")+n.sprintf("LINK_TIP"),inline:!0,dismiss:I(`LINKURLNAME${d+C}`),dismissAll:!!t.checks.LINK_URL.dismissAll&&"LINK_URL",developer:t.checks.LINK_URL.developer||!1});else if(T){const r=h(u),l=f(c,o.Exclusions.LinkSpan),p=t.linkIgnoreStrings?b(l).replace(t.linkIgnoreStrings,""):b(l),g=s(p),m=a(g,i);t.checks.LINK_STOPWORD_ARIA&&null!==m?e.push({element:c,type:t.checks.LINK_STOPWORD_ARIA.type||"warning",content:t.checks.LINK_STOPWORD_ARIA.content?n.sprintf(t.checks.LINK_STOPWORD_ARIA.content,m,r):n.sprintf("LINK_STOPWORD_ARIA",m,r)+n.sprintf("LINK_TIP"),inline:!0,dismiss:I(`LINKSTOPWORDARIA${d+C}`),dismissAll:!!t.checks.LINK_STOPWORD_ARIA.dismissAll&&" LINK_STOPWORD_ARIA",developer:t.checks.LINK_STOPWORD_ARIA.developer||!0}):t.checks.LINK_LABEL&&e.push({element:c,type:t.checks.LINK_LABEL.type||"good",content:t.checks.LINK_LABEL.content?n.sprintf(t.checks.LINK_LABEL.content,r):`${n.sprintf("ACC_NAME",r)} ${n.sprintf("ACC_NAME_TIP")}`,inline:!0,position:"afterend",dismiss:I(`LINKGOOD${d+C}`),dismissAll:!!t.checks.LINK_LABEL.dismissAll&&"LINK_LABEL",developer:t.checks.LINK_LABEL.developer||!1});const y=O(c);t.checks.LABEL_IN_NAME&&y&&0!==c.textContent.length&&e.push({element:c,type:t.checks.LABEL_IN_NAME.type||"warning",content:n.sprintf(t.checks.LABEL_IN_NAME.content||"LABEL_IN_NAME",r),inline:!0,position:"afterend",dismiss:I(`LINKLABELNAME${d+C}`),dismissAll:!!t.checks.LABEL_IN_NAME.dismissAll&&"BTN_LABEL_IN_NAME",developer:t.checks.LABEL_IN_NAME.developer||!0})}else E?t.checks.LINK_SYMBOLS&&e.push({element:c,type:t.checks.LINK_SYMBOLS.type||"warning",content:n.sprintf(t.checks.LINK_SYMBOLS.content||"LINK_SYMBOLS",E),inline:!0,dismiss:I(`LINKSYMBOL${d+C}`),dismissAll:!!t.checks.LINK_SYMBOLS.dismissAll&&"LINK_SYMBOLS",developer:t.checks.LINK_SYMBOLS.developer||!1}):m&&t.checks.LINK_EMPTY&&e.push({element:c,type:t.checks.LINK_EMPTY.type||"error",content:n.sprintf(t.checks.LINK_EMPTY.content||"LINK_EMPTY"),inline:!0,position:"afterend",dismiss:I(`LINKCHAR${d}`),dismissAll:!!t.checks.LINK_EMPTY.dismissAll&&"LINK_EMPTY",developer:t.checks.LINK_EMPTY.developer||!1});else x?t.checks.LINK_EMPTY_LABELLEDBY&&e.push({element:c,type:t.checks.LINK_EMPTY_LABELLEDBY.type||"error",content:n.sprintf(t.checks.LINK_EMPTY_LABELLEDBY.content||"LINK_EMPTY_LABELLEDBY"),inline:!0,position:"afterend",dismiss:I(`LINKEMPTYLABELLEDBY${d}`),dismissAll:!!t.checks.LINK_EMPTY_LABELLEDBY.dismissAll&&"LINK_EMPTY_LABELLEDBY",developer:t.checks.LINK_EMPTY_LABELLEDBY.developer||!0}):c.children.length?t.checks.LINK_EMPTY_NO_LABEL&&e.push({element:c,type:t.checks.LINK_EMPTY_NO_LABEL.type||"error",content:n.sprintf(t.checks.LINK_EMPTY_NO_LABEL.content||"LINK_EMPTY_NO_LABEL"),inline:!0,position:"afterend",dismiss:I(`LINKEMPTYNOLABEL${d}`),dismissAll:!!t.checks.LINK_EMPTY_NO_LABEL.dismissAll&&"LINK_EMPTY_NO_LABEL",developer:t.checks.LINK_EMPTY_NO_LABEL.developer||!1}):t.checks.LINK_EMPTY&&e.push({element:c,type:t.checks.LINK_EMPTY.type||"error",content:n.sprintf(t.checks.LINK_EMPTY.content||"LINK_EMPTY"),inline:!0,position:"afterend",dismiss:I(`LINKEMPTY${d}`),dismissAll:!!t.checks.LINK_EMPTY.dismissAll&&"LINK_EMPTY",developer:t.checks.LINK_EMPTY.developer||!1});(null!==g[1]||N)&&t.checks.LINK_CLICK_HERE&&e.push({element:c,type:t.checks.LINK_CLICK_HERE.type||"warning",content:t.checks.LINK_CLICK_HERE.content?n.sprintf(t.checks.LINK_CLICK_HERE.content):n.sprintf("LINK_CLICK_HERE")+n.sprintf("LINK_TIP"),inline:!0,dismiss:I(`LINKCLICKHERE${d+C}`),dismissAll:!!t.checks.LINK_CLICK_HERE.dismissAll&&"LINK_CLICK_HERE",developer:t.checks.LINK_CLICK_HERE.developer||!1}),0!==b(c).length&&v?.toLowerCase()===u.toLowerCase()&&t.checks.DUPLICATE_TITLE&&e.push({element:c,type:t.checks.DUPLICATE_TITLE.type||"warning",content:n.sprintf(t.checks.DUPLICATE_TITLE.content||"DUPLICATE_TITLE"),inline:!0,dismiss:I(`LINKDUPLICATETITLE${d+C}`),dismissAll:!!t.checks.DUPLICATE_TITLE.dismissAll&&"DUPLICATE_TITLE",developer:t.checks.DUPLICATE_TITLE.developer||!1})}if(t.linksAdvancedPlugin&&0!==C.length){if(r[C]&&!r[d]){if(t.checks.LINK_IDENTICAL_NAME){const o=h(u);e.push({element:c,type:t.checks.LINK_IDENTICAL_NAME.type||"warning",content:t.checks.LINK_IDENTICAL_NAME.content?n.sprintf(t.checks.LINK_IDENTICAL_NAME.content,o):`${n.sprintf("LINK_IDENTICAL_NAME",o)} ${n.sprintf("ACC_NAME_TIP")}`,inline:!0,dismiss:I(`LINKSEEN${d+C}`),dismissAll:!!t.checks.LINK_IDENTICAL_NAME.dismissAll&&"LINK_IDENTICAL_NAME",developer:t.checks.LINK_IDENTICAL_NAME.developer||!1})}}else r[C]=!0,r[d]=!0;"_blank"!==c.getAttribute("target")?.toLowerCase()||w||k||t.checks.LINK_NEW_TAB&&e.push({element:c,type:t.checks.LINK_NEW_TAB.type||"warning",content:n.sprintf(t.checks.LINK_NEW_TAB.content||"LINK_NEW_TAB"),inline:!0,dismiss:I(`LINKNEWTAB${d+C}`),dismissAll:!!t.checks.LINK_NEW_TAB.dismissAll&&"LINK_NEW_TAB",developer:t.checks.LINK_NEW_TAB.developer||!1}),w&&!S&&t.checks.LINK_FILE_EXT&&e.push({element:c,type:t.checks.LINK_FILE_EXT.type||"warning",content:n.sprintf(t.checks.LINK_FILE_EXT.content||"LINK_FILE_EXT"),inline:!0,dismiss:I(`LINKEXT${d+C}`),dismissAll:!!t.checks.LINK_FILE_EXT.dismissAll&&"LINK_FILE_EXT",developer:t.checks.LINK_FILE_EXT.developer||!1})}}),e}function Hn(e,t){if(t.checks.QA_BAD_LINK&&P.Found.CustomErrorLinks.forEach(o=>{e.push({element:o,type:t.checks.QA_BAD_LINK.type||"error",content:n.sprintf(t.checks.QA_BAD_LINK.content||"QA_BAD_LINK",o),inline:!0,dismiss:I(o.tagName+o.textContent),dismissAll:!!t.checks.QA_BAD_LINK.dismissAll&&"QA_BAD_LINK",developer:t.checks.QA_BAD_LINK.developer||!1})}),t.checks.QA_STRONG_ITALICS&&P.Found.StrongItalics.forEach(o=>{const i=b(o);0!==i.length&&i.length>400&&e.push({element:o.parentNode,type:t.checks.QA_STRONG_ITALICS.type||"warning",content:n.sprintf(t.checks.QA_STRONG_ITALICS.content||"QA_STRONG_ITALICS"),dismiss:I(o.tagName+o.textContent),dismissAll:!!t.checks.QA_STRONG_ITALICS.dismissAll&&"QA_STRONG_ITALICS",developer:t.checks.QA_STRONG_ITALICS.developer||!1})}),P.Found.Links.forEach(i=>{if(i.hasAttribute("href")){const s=i.getAttribute("href"),a=i.matches(o.Global.documentSources),r=i.matches('a[href$=".pdf"], a[href*=".pdf?"]');if(t.checks.QA_IN_PAGE_LINK){const o="button"===i.getAttribute("role")||i.hasAttribute("aria-haspopup")||i.hasAttribute("aria-expanded")||i.hasAttribute("onclick"),a=0!==b(i).length;if((s.startsWith("#")||""===s)&&!o&&a){const o=s.substring(1),a=i.getAttribute("aria-controls");document.getElementById(o)||document.getElementById(decodeURIComponent(o))||document.getElementById(encodeURIComponent(o))||document.getElementById(a)||document.querySelector(`a[name="${o}"]`)||e.push({element:i,type:t.checks.QA_IN_PAGE_LINK.type||"error",content:n.sprintf(t.checks.QA_IN_PAGE_LINK.content||"QA_IN_PAGE_LINK"),inline:!0,dismiss:I(`QAINPAGE${s}`),dismissAll:!!t.checks.QA_IN_PAGE_LINK.dismissAll&&"QA_IN_PAGE_LINK",developer:t.checks.QA_IN_PAGE_LINK.developer||!1})}}t.checks.QA_DOCUMENT&&a?e.push({element:i,type:t.checks.QA_DOCUMENT.type||"warning",content:n.sprintf(t.checks.QA_DOCUMENT.content||"QA_DOCUMENT"),inline:!0,dismiss:I(`DOC${s}`),dismissAll:!!t.checks.QA_DOCUMENT.dismissAll&&"QA_DOCUMENT",developer:t.checks.QA_DOCUMENT.developer||!1}):t.checks.QA_PDF&&r&&e.push({element:i,type:t.checks.QA_PDF.type||"warning",content:n.sprintf(t.checks.QA_PDF.content||"QA_PDF"),inline:!0,dismiss:I(`PDF${s}`),dismissAll:!!t.checks.QA_PDF.dismissAll&&"QA_PDF",developer:t.checks.QA_PDF.developer||!1})}}),t.checks.QA_BLOCKQUOTE&&P.Found.Blockquotes.forEach(o=>{const i=b(o);if(0!==i.length&&i.length<25){const s=h(i);e.push({element:o,type:t.checks.QA_BLOCKQUOTE.type||"warning",content:n.sprintf(t.checks.QA_BLOCKQUOTE.content||"QA_BLOCKQUOTE",s),dismiss:I(`BLOCKQUOTE${s}`),dismissAll:!!t.checks.QA_BLOCKQUOTE.dismissAll&&"QA_BLOCKQUOTE",developer:t.checks.QA_BLOCKQUOTE.developer||!1})}}),P.Found.Tables.forEach(o=>{if(!1===p(o)){const i=o.querySelectorAll("th"),s=o.querySelectorAll("h1, h2, h3, h4, h5, h6"),a=I(`TABLE${o.textContent}`);t.checks.TABLES_MISSING_HEADINGS&&0===i.length&&e.push({element:o,type:t.checks.TABLES_MISSING_HEADINGS.type||"error",content:n.sprintf(t.checks.TABLES_MISSING_HEADINGS.content||"TABLES_MISSING_HEADINGS"),dismiss:a,dismissAll:!!t.checks.TABLES_MISSING_HEADINGS.dismissAll&&"TABLES_MISSING_HEADINGS",developer:t.checks.TABLES_MISSING_HEADINGS.developer||!1}),t.checks.TABLES_SEMANTIC_HEADING&&s.length>0&&s.forEach(o=>{e.push({element:o,type:t.checks.TABLES_SEMANTIC_HEADING.type||"error",content:n.sprintf(t.checks.TABLES_SEMANTIC_HEADING.content||"TABLES_SEMANTIC_HEADING"),dismiss:a,dismissAll:!!t.checks.TABLES_SEMANTIC_HEADING.dismissAll&&"TABLES_SEMANTIC_HEADING",developer:t.checks.TABLES_SEMANTIC_HEADING.developer||!1})}),i.forEach(o=>{t.checks.TABLES_EMPTY_HEADING&&0===o.textContent.trim().length&&e.push({element:o,type:t.checks.TABLES_EMPTY_HEADING.type||"error",content:n.sprintf(t.checks.TABLES_EMPTY_HEADING.content||"TABLES_EMPTY_HEADING"),position:"afterbegin",dismiss:a,dismissAll:!!t.checks.TABLES_EMPTY_HEADING.dismissAll&&"TABLES_EMPTY_HEADING",developer:t.checks.TABLES_EMPTY_HEADING.developer||!1})})}}),t.checks.QA_FAKE_HEADING){const o=(o,i)=>{e.push({element:o,type:t.checks.QA_FAKE_HEADING.type||"warning",content:n.sprintf(t.checks.QA_FAKE_HEADING.content||"QA_FAKE_HEADING",i),dismiss:I(`BOLD${i}`),inline:!0,dismissAll:!!t.checks.QA_FAKE_HEADING.dismissAll&&"QA_FAKE_HEADING",developer:t.checks.QA_FAKE_HEADING.developer||!1})},i=e=>{const t=e.previousElementSibling;if(!t)return!1;return["H1","H2","H3","H4","H5","H6"].includes(t.tagName)},s='h1, h2, h3, h4, h5, h6, [role="heading"][aria-level], blockquote, table',a=e=>{const t=getComputedStyle(e).fontSize.replace("px",""),n=b(e),a=null===n.match(/[.;?!"]/),r=n.length>=4&&n.length<=120;if(t>=24&&!e.closest(s)&&r&&a&&!i(e)){const t=h(n);o(e,t)}},r=e=>{if(/^(|)/i.test(e.innerHTML.trim())&&!e.closest(s)){const t=e.querySelector("strong, b"),n=b(t),i=null===n.match(/[.:;?!"']/);if(n.length>=3&&n.length<=120&&i){const i=f(e,["strong","b"]).textContent.trim().length;if(0!==i&&i<=250)return;const s=h(n);o(t,s)}}};P.Found.Paragraphs.forEach(e=>{a(e),r(e)})}if(t.checks.QA_FAKE_LIST){const o=new RegExp(/(([023456789][\d\s])|(1\d))/,""),i=new RegExp(/(^[aA1αаΑ]|[^\p{Alphabetic}\s])[-\s.)]/,"u"),s=new RegExp(/\p{Extended_Pictographic}/,"u"),a=["a","A","α","Α","а","А","1"],r=/[([{#]/,l={2:"1",b:"a",B:"A","β":"α","Β":"Α","б":"а","Б":"А"},c=e=>e.replace(/^b|^B|^б|^Б|^β|^В|^2/,e=>l[e]);let d="",p="",u=!1;P.Found.Paragraphs.forEach((l,h)=>{let g=!1,m=!1;p=p||b(l).replace("(","");const f=p.substring(0,2),y=f.match(i),A=f.match(o),E=f.match(s),v=r.test(f.charAt(0));if(f.length>0&&f!==d&&!A&&(y||E||v)){const o=P.Found.Paragraphs[h+1];if(o){if(g=b(o).replace("(","").substring(0,2),a.includes(g?.toLowerCase().trim()))return;const e=c(g);y?"A "!==f&&f===e&&(m=!0):E&&!u&&e.match(s)&&(m=!0,u=!0)}if(!m){let e=l?.querySelector("br")?.nextSibling?.nodeValue;if(e){e=e.replace(/<\/?[^>]+(>|$)/g,"").trim().substring(0,2);(r.test(e.charAt(0))||f===c(e)||!u&&e.match(s))&&(m=!0)}}m?(e.push({element:l,type:t.checks.QA_FAKE_LIST.type||"warning",content:n.sprintf(t.checks.QA_FAKE_LIST.content||"QA_FAKE_LIST",f),dismiss:I(`LIST${l.textContent}`),dismissAll:!!t.checks.QA_FAKE_LIST.dismissAll&&"QA_FAKE_LIST",developer:t.checks.QA_FAKE_LIST.developer||!1}),d=f):d=""}p=g?"":g})}if(t.checks.QA_UPPERCASE){const o=o=>{let i="";"LI"===o.tagName?o.childNodes.forEach(e=>{3===e.nodeType&&(i+=e.textContent)}):i=b(o);const s=i.match(/([A-Z]{2,}[ ])([A-Z]{2,}[ ])([A-Z]{2,}[ ])([A-Z]{2,})/g);s&&s[0].length>10&&e.push({element:o,type:t.checks.QA_UPPERCASE.type||"warning",content:n.sprintf(t.checks.QA_UPPERCASE.content||"QA_UPPERCASE"),dismiss:I(`UPPERCASE${i}`),dismissAll:!!t.checks.QA_UPPERCASE.dismissAll&&"QA_UPPERCASE",developer:t.checks.QA_UPPERCASE.developer||!1})};P.Found.Paragraphs.forEach(e=>o(e)),P.Found.Headings.forEach(e=>o(e)),P.Found.Lists.forEach(e=>o(e)),P.Found.Blockquotes.forEach(e=>o(e))}const i=o=>{const i=getComputedStyle(o),{textDecorationLine:s,textAlign:a,fontSize:r}=i;!t.checks.QA_UNDERLINE||"underline"!==s||o.closest("[onclick]")||o.closest("a[href]")||o.closest("ABBR")||(o=>{e.push({element:o,type:t.checks.QA_UNDERLINE.type||"warning",content:n.sprintf(t.checks.QA_UNDERLINE.content||"QA_UNDERLINE"),inline:!0,dismiss:I(`UNDERLINE${o.textContent}`),dismissAll:!!t.checks.QA_UNDERLINE.dismissAll&&"QA_UNDERLINE",developer:t.checks.QA_UNDERLINE.developer||!1})})(o);const l=t.checks.QA_SMALL_TEXT.fontSize||10,c=parseFloat(r),d=!((o.parentElement?parseFloat(getComputedStyle(o.parentElement).fontSize):null)===c)&&c>1&&c<=l;t.checks.QA_SMALL_TEXT&&d&&(o=>{e.push({element:o,type:t.checks.QA_SMALL_TEXT.type||"warning",content:n.sprintf(t.checks.QA_SMALL_TEXT.content||"QA_SMALL_TEXT"),dismiss:I(`SMALL${o.textContent}`),dismissAll:!!t.checks.QA_SMALL_TEXT.dismissAll&&"QA_SMALL_TEXT",developer:t.checks.QA_SMALL_TEXT.developer||!1})})(o);const p=(o.parentElement?getComputedStyle(o.parentElement).textAlign:null)===a;t.checks.QA_JUSTIFY&&"justify"===a&&!p&&(o=>{e.push({element:o,type:t.checks.QA_JUSTIFY.type||"warning",content:n.sprintf(t.checks.QA_JUSTIFY.content||"QA_JUSTIFY"),dismiss:I(`JUSTIFIED${o.textContent}`),dismissAll:!!t.checks.QA_JUSTIFY.dismissAll&&"QA_JUSTIFY",developer:t.checks.QA_JUSTIFY.developer||!1})})(o)};if(t.checks.QA_UNDERLINE||t.checks.QA_JUSTIFY||t.checks.QA_SMALL_TEXT)for(let e=0;e3===e.nodeType).map(e=>e.textContent).join("").trim().length&&i(t)}return t.checks.QA_SUBSCRIPT&&P.Found.Subscripts.forEach(o=>{const i=b(o);i.length>=80&&e.push({element:o,type:t.checks.QA_SUBSCRIPT.type||"warning",content:n.sprintf(t.checks.QA_SUBSCRIPT.content||"QA_SUBSCRIPT"),inline:!0,dismiss:I(o.tagName+i),dismissAll:!!t.checks.QA_SUBSCRIPT.dismissAll&&"QA_SUBSCRIPT",developer:t.checks.QA_SUBSCRIPT.developer||!1})}),t.checks.QA_NESTED_COMPONENTS&&P.Found.NestedComponents.forEach(o=>{const i=t.checks.QA_NESTED_COMPONENTS.sources||'[role="tablist"], details';o.querySelector(i)&&e.push({element:o,type:t.checks.QA_NESTED_COMPONENTS.type||"warning",content:n.sprintf(t.checks.QA_NESTED_COMPONENTS.content||"QA_NESTED_COMPONENTS"),dismiss:I(`NESTED${o.textContent}`),dismissAll:!!t.checks.QA_NESTED_COMPONENTS.dismissAll&&"QA_NESTED_COMPONENTS",developer:t.checks.QA_NESTED_COMPONENTS.developer||!1})}),e}e.Lang=n,e.Sa11y=class{constructor(e){const s={...t,...e,checks:{...t.checks,...e.checks}};this.initialize=()=>{var e;(()=>{const{doNotRun:e}=s;return e.trim().length>0&&document.querySelector(e)})()||(customElements.define("sa11y-heading-label",Cn),customElements.define("sa11y-heading-anchor",wn),customElements.define("sa11y-annotation",Nn),customElements.define("sa11y-tooltips",xn),customElements.define("sa11y-panel-tooltips",kn),customElements.define("sa11y-control-panel",V),customElements.define("sa11y-console-error",Q),o.initializeGlobal(s),o.initializeReadability(s),o.initializeExclusions(s),s.developerChecksOnByDefault&&(null===_.getItem("sa11y-developer")||s.checkAllHideToggles)&&_.setItem("sa11y-developer","On"),e=()=>{if(s.headless)this.checkAll(),_.removeItem("sa11y-dismissed");else{const i=_.getItem("sa11y-position"),{panelPosition:a}=s;!s.showMovePanelToggle||i&&!i.includes("top")==!a.includes("top")||_.setItem("sa11y-position",a);const r=new V;document.body.appendChild(r),function(e,t){o.Global.showMovePanelToggle&&(o.Panel.movePanelToggle.onclick=async()=>{const e=_.getItem("sa11y-position"),[t,n]=e.includes("top")?["top-right","top-left"]:["right","left"],i=e===t?n:t;_.setItem("sa11y-position",i),[t,n].forEach(e=>{o.Panel.toggle.classList.replace(e,i),o.Panel.panel.classList.replace(e,i)}),o.Panel.movePanelToggle.setAttribute("aria-pressed",e===t?"true":"false")}),o.Global.developerPlugin?o.Panel.developerToggle.onclick=async()=>{"On"===_.getItem("sa11y-developer")?(_.setItem("sa11y-developer","Off"),o.Panel.developerToggle.textContent=`${n._("OFF")}`,o.Panel.developerToggle.setAttribute("aria-pressed","false"),t(!1),await e()):(_.setItem("sa11y-developer","On"),o.Panel.developerToggle.textContent=`${n._("ON")}`,o.Panel.developerToggle.setAttribute("aria-pressed","true"),t(!1),await e())}:_.setItem("sa11y-developer","Off"),o.Readability.Plugin&&(o.Panel.readabilityToggle.onclick=async()=>{"On"===_.getItem("sa11y-readability")?(_.setItem("sa11y-readability","Off"),o.Panel.readabilityToggle.textContent=`${n._("OFF")}`,o.Panel.readabilityToggle.setAttribute("aria-pressed","false"),o.Panel.readability.classList.remove("active"),t(!1),await e()):(_.setItem("sa11y-readability","On"),o.Panel.readabilityToggle.textContent=`${n._("ON")}`,o.Panel.readabilityToggle.setAttribute("aria-pressed","true"),o.Panel.readability.classList.add("active"),t(!1),await e())},"On"===_.getItem("sa11y-readability")&&o.Panel.readability.classList.add("active"));const i=window.matchMedia("(prefers-color-scheme: dark)"),{themeToggle:s}=o.Panel,{html:a}=o.Global,r=e=>{a.setAttribute("data-sa11y-theme",e),_.setItem("sa11y-theme",e);const t=s.querySelector("span").classList;t.toggle("moon-icon","light"===e),t.toggle("sun-icon","dark"===e),s.setAttribute("aria-pressed","dark"===e?"true":"false")},l=_.getItem("sa11y-theme")||(i.matches?"dark":"light");r(l),i.addEventListener("change",()=>{r(i.matches?"dark":"light")}),s.onclick=()=>{const e=_.getItem("sa11y-theme")||(i.matches?"dark":"light");r("dark"===e?"light":"dark")},o.Global.colourFilterPlugin&&o.Panel.colourFilterSelect.addEventListener("change",async()=>{const i=parseInt(o.Panel.colourFilterSelect.value,10),s=["protanopia","deuteranopia","tritanopia","monochromacy"],a=[n._("RED_EYE"),n._("GREEN_EYE"),n._("BLUE_EYE"),n._("MONO_EYE")];i>=1&&i<=4?window.matchMedia("(forced-colors: active)").matches?x(n._("COLOUR_FILTER_HIGH_CONTRAST")):(o.Root.areaToCheck.setAttribute("data-sa11y-filter",s[i-1]),o.Panel.colourFilterIcon.setAttribute("aria-label",a[i-1]),k(["data-sa11y-error","data-sa11y-warning","data-sa11y-good","data-sa11y-error-inline","data-sa11y-warning-inline","data-sa11y-overflow"],"document"),N(["sa11y-annotation","sa11y-tooltips","sa11y-heading-label"],"document"),o.Panel.skipButton.disabled=!0,o.Panel.pageIssues.classList.remove("active"),o.Panel.settingsContent.classList.add("hide-settings-border"),o.Panel.colourFilterSelect.classList.add("active"),o.Panel.colourPanel.classList.add("active"),o.Panel.colourPanel.setAttribute("data-colour",s[i-1]),o.Panel.content.hidden=!0):(o.Root.areaToCheck.removeAttribute("data-sa11y-filter"),o.Panel.settingsContent.classList.remove("hide-settings-border"),o.Panel.colourFilterSelect.classList.remove("active"),o.Panel.colourPanel.classList.remove("active"),o.Panel.colourPanel.removeAttribute("data-colour"),o.Panel.content.hidden=!1,t(!1),await e())})}(this.checkAll,this.resetAll),function(){o.Panel.outlineToggle.addEventListener("click",()=>{"true"===o.Panel.outlineToggle.getAttribute("aria-expanded")?q():(j(),ee(),Z()),o.Panel.outlineHeader.focus()}),"Opened"===_.getItem("sa11y-outline")&&j(),o.Global.showImageOutline&&(o.Panel.imagesToggle.addEventListener("click",()=>{"true"===o.Panel.imagesToggle.getAttribute("aria-expanded")?Z():(X(),q(),ee()),o.Panel.imagesHeader.focus()}),"Opened"===_.getItem("sa11y-images")&&X()),o.Panel.settingsToggle.addEventListener("click",()=>{"true"===o.Panel.settingsToggle.getAttribute("aria-expanded")?ee():(J(),q(),Z()),o.Panel.settingsHeader.focus()}),"Opened"===_.getItem("sa11y-settings")&&J(),o.Panel.skipToPageIssues.addEventListener("click",()=>{o.Panel.pageIssuesHeader.focus()});const e=o.Panel.panel.querySelectorAll("[role=tab]");if(0!==e.length){let t=Array.from(e).findIndex(e=>e.classList.contains("active"));e.forEach(n=>{n.addEventListener("keydown",n=>{"ArrowRight"===n.key?(n.preventDefault(),t=(t+1)%e.length,e[t].focus()):"ArrowLeft"===n.key&&(n.preventDefault(),t=(t-1+e.length)%e.length,e[t].focus())})})}}(),function(){if(o.Global.colourFilterPlugin&&!1===o.Global.headless){const e=document.createElement("div");e.id="sa11y-colour-filters",e.setAttribute("aria-hidden","true"),e.innerHTML='\n \x3c!-- DaltonLens SVG filters to simulate color vision deficiencies --\x3e\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n ',document.body.appendChild(e)}}(),D(s.detectSPArouting,this.checkAll,this.resetAll),this.panelTooltips=new kn,document.body.appendChild(this.panelTooltips),o.Panel.toggle.disabled=!1,setTimeout(()=>{this.resetAll(),this.checkAll()},s.delayCheck),s.delayCheck>=700&&(o.Panel.toggle.disabled=!0),e=this.checkAll,t=this.resetAll,o.Panel.toggle.addEventListener("click",n=>{"Opened"===_.getItem("sa11y-panel")?(n.preventDefault(),_.setItem("sa11y-panel","Closed"),o.Panel.toggle.classList.remove("on"),o.Panel.toggle.setAttribute("aria-expanded","false"),t(),0===o.Panel.notifCount.innerHTML.trim().length?o.Panel.notifBadge.style.display="none":o.Panel.notifBadge.style.display="flex"):(n.preventDefault(),_.setItem("sa11y-panel","Opened"),o.Panel.toggle.classList.add("on"),o.Panel.toggle.setAttribute("aria-expanded","true"),e(),S(o.Panel.outlineList,o.Panel.outlineContent))}),"Opened"===_.getItem("sa11y-panel")&&(o.Panel.toggle.classList.add("on"),o.Panel.toggle.setAttribute("aria-expanded","true"),o.Panel.panel.style.transform=""),document.onkeydown=e=>{const t=e||window.event;t.altKey&&"KeyA"===t.code&&(o.Panel.toggle.click(),o.Panel.toggle.focus())}}var e,t},"complete"===document.readyState?e():window.addEventListener("load",e))},this.checkAll=async(e=s.checkRoot,t=s.readabilityRoot)=>{try{this.results=[],this.headingOutline=[],this.imageOutline=[],this.errorCount=0,this.warningCount=0,this.customChecksRunning=!1;document.querySelector(e)||!1!==s.headless||x(`${n.sprintf("MISSING_ROOT",e)}`),o.initializeRoot(e,t),function(e){if(e.autoDetectShadowComponents){const t=o.Exclusions.Sa11yElements,n=document.querySelector(e.checkRoot);(n?Array.from(n.querySelectorAll(`*:not(${t})`)):Array.from(document.body.querySelectorAll(`*:not(${t})`))).forEach(e=>{e.shadowRoot&&"open"===e.shadowRoot.mode&&(e.setAttribute("data-sa11y-has-shadow-root",""),R(e))})}else e.shadowComponents&&document.querySelectorAll(e.shadowComponents).forEach(e=>{e.setAttribute("data-sa11y-has-shadow-root",""),R(e)})}(s),P.initializeElements(s),function(e,t,i){let s,a="";P.Found.Headings.forEach((r,d)=>{const p=l(r,o.Exclusions.HeaderSpan),u=y(t.headerIgnoreStrings?p.replace(t.headerIgnoreStrings,""):p),g=h(u),m=o.Root.areaToCheck.contains(r),f=o.Root.areaToCheck.contains(r.getRootNode().host),b=m||f,v=parseInt(r.getAttribute("aria-level")||r.tagName.slice(1),10),_=u.length,L=t.checks.HEADING_LONG.maxLength||160;let T=null,x=null,k=null,N=null;if(0===_)if(r.querySelectorAll("img").length){const e=r.querySelector("img")?.getAttribute("alt");!r.querySelector("img")||e&&""!==e.trim()||t.checks.HEADING_EMPTY_WITH_IMAGE&&(T=t.checks.HEADING_EMPTY_WITH_IMAGE.type||"error",x=n.sprintf(t.checks.HEADING_EMPTY_WITH_IMAGE.content||"HEADING_EMPTY_WITH_IMAGE",v),k=t.checks.HEADING_EMPTY_WITH_IMAGE.developer||!1,N=!!t.checks.HEADING_EMPTY_WITH_IMAGE.dismissAll&&"HEADING_EMPTY_WITH_IMAGE")}else t.checks.HEADING_EMPTY&&(T=t.checks.HEADING_EMPTY.type||"error",x=n.sprintf(t.checks.HEADING_EMPTY.content||"HEADING_EMPTY",v),k=t.checks.HEADING_EMPTY.developer||!1,N=!!t.checks.HEADING_EMPTY.dismissAll&&"HEADING_EMPTY");else v-s>1&&0!==d?t.checks.HEADING_SKIPPED_LEVEL&&(T=t.checks.HEADING_SKIPPED_LEVEL.type||"error",x=n.sprintf(t.checks.HEADING_SKIPPED_LEVEL.content||"HEADING_SKIPPED_LEVEL",s,v,A(g,60),A(a,60),s+1),k=t.checks.HEADING_SKIPPED_LEVEL.developer||!1,N=!!t.checks.HEADING_SKIPPED_LEVEL.dismissAll&&"HEADING_SKIPPED_LEVEL"):0===d&&1!==v&&2!==v?t.checks.HEADING_FIRST&&(T=t.checks.HEADING_FIRST.type||"error",x=n.sprintf(t.checks.HEADING_FIRST.content||"HEADING_FIRST"),k=t.checks.HEADING_FIRST.developer||!1,N=!!t.checks.HEADING_FIRST.dismissAll&&"HEADING_FIRST"):_>L&&t.checks.HEADING_LONG&&(T=t.checks.HEADING_LONG.type||"warning",x=n.sprintf(t.checks.HEADING_LONG.content||"HEADING_LONG",L,_),k=t.checks.HEADING_LONG.developer||!1,N=!!t.checks.HEADING_LONG.dismissAll&&"HEADING_LONG");x&&T&&e.push({element:r,type:T,content:x,dismiss:I(`H${v+g}`),dismissAll:N,isWithinRoot:b,developer:k}),s=v,a=g;const S=c(r),w=E(r,"display","none");i.push({element:r,headingLevel:v,text:g,index:d,type:T,hidden:S,visibleParent:w,dismiss:I(`H${v+g}`),isWithinRoot:b})}),t.checks.HEADING_MISSING_ONE&&0===P.Found.HeadingOne.length&&e.push({type:t.checks.HEADING_MISSING_ONE.type||"warning",content:n.sprintf(t.checks.HEADING_MISSING_ONE.content||"HEADING_MISSING_ONE"),dismiss:"MISSINGH1",developer:t.checks.HEADING_MISSING_ONE.developer||!1})}(this.results,s,this.headingOutline),Un(this.results,s),Gn(this.results,s),function(e,t){t.formLabelsPlugin&&P.Found.Inputs.forEach(o=>{const i="true"===o.getAttribute("aria-hidden"),s="-1"===o.getAttribute("tabindex");if(p(o)||i&&s)return;const a=y(l(o)),r=o.getAttribute("alt"),c=o.getAttribute("type"),d=o.getAttribute("title"),u=o.getAttribute("aria-label")||o.getAttribute("aria-labelledby");if("submit"===c||"button"===c||"hidden"===c)return;if("image"===c)return void(!t.checks.LABELS_MISSING_IMAGE_INPUT||r&&""!==r.trim()||u||d||e.push({element:o,type:t.checks.LABELS_MISSING_IMAGE_INPUT.type||"error",content:n.sprintf(t.checks.LABELS_MISSING_IMAGE_INPUT.content||"LABELS_MISSING_IMAGE_INPUT"),dismiss:I(`INPUTIMAGE${c+a}`),dismissAll:!!t.checks.LABELS_MISSING_IMAGE_INPUT.dismissAll&&"LABELS_MISSING_IMAGE_INPUT",developer:t.checks.LABELS_MISSING_IMAGE_INPUT.developer||!0}));if("reset"===c)return void(t.checks.LABELS_INPUT_RESET&&e.push({element:o,type:t.checks.LABELS_INPUT_RESET.type||"warning",content:n.sprintf(t.checks.LABELS_INPUT_RESET.content||"LABELS_INPUT_RESET"),dismiss:I(`INPUTRESET${c+a}`),dismissAll:!!t.checks.LABELS_INPUT_RESET.dismissAll&&"LABELS_INPUT_RESET",developer:t.checks.LABELS_INPUT_RESET.developer||!1}));if(u||d){if(0===a.length)t.checks.LABELS_MISSING_LABEL&&e.push({element:o,type:t.checks.LABELS_MISSING_LABEL.type||"error",content:n.sprintf(t.checks.LABELS_MISSING_LABEL.content||"LABELS_MISSING_LABEL"),dismiss:I(`INPUTMISSING${c+a}`),dismissAll:!!t.checks.LABELS_MISSING_LABEL.dismissAll&&"LABELS_MISSING_LABEL",developer:t.checks.LABELS_MISSING_LABEL.developer||!0});else if(t.checks.LABELS_ARIA_LABEL_INPUT){const i=h(a);e.push({element:o,type:t.checks.LABELS_ARIA_LABEL_INPUT.type||"warning",content:t.checks.LABELS_ARIA_LABEL_INPUT.content?n.sprintf(t.checks.LABELS_ARIA_LABEL_INPUT.content,i):`${n.sprintf("LABELS_ARIA_LABEL_INPUT",i)} ${n.sprintf("ACC_NAME_TIP")}`,dismiss:I(`INPUTARIA${c+a}`),dismissAll:!!t.checks.LABELS_ARIA_LABEL_INPUT.dismissAll&&"LABELS_ARIA_LABEL_INPUT",developer:t.checks.LABELS_ARIA_LABEL_INPUT.developer||!0})}return}const g=o.closest("label"),m=g?y(l(g)):"";if(g&&m.length)return;const f=o.getAttribute("id");f?P.Found.Labels.some(e=>e.getAttribute("for")===f)||t.checks.LABELS_NO_FOR_ATTRIBUTE&&e.push({element:o,type:t.checks.LABELS_NO_FOR_ATTRIBUTE.type||"error",content:n.sprintf(t.checks.LABELS_NO_FOR_ATTRIBUTE.content||"LABELS_NO_FOR_ATTRIBUTE",f),dismiss:I(`INPUTNOFOR${c+a}`),dismissAll:!!t.checks.LABELS_NO_FOR_ATTRIBUTE.dismissAll&&"LABELS_NO_FOR_ATTRIBUTE",developer:t.checks.LABELS_NO_FOR_ATTRIBUTE.developer||!0}):t.checks.LABELS_MISSING_LABEL&&e.push({element:o,type:t.checks.LABELS_MISSING_LABEL.type||"error",content:n.sprintf(t.checks.LABELS_MISSING_LABEL.content||"LABELS_MISSING_LABEL"),dismiss:I(`INPUTNOID${c+a}`),dismissAll:!!t.checks.LABELS_MISSING_LABEL.dismissAll&&"LABELS_MISSING_LABEL",developer:t.checks.LABELS_MISSING_LABEL.developer||!0}),t.checks.LABELS_PLACEHOLDER&&o.placeholder&&0!==o.placeholder&&e.push({element:o,type:t.checks.LABELS_PLACEHOLDER.type||"warning",content:n.sprintf(t.checks.LABELS_PLACEHOLDER.content||"LABELS_PLACEHOLDER"),dismiss:I(`INPUTPLACEHOLDER${c+a}`),dismissAll:!!t.checks.LABELS_PLACEHOLDER.dismissAll&&"LABELS_PLACEHOLDER",developer:t.checks.LABELS_PLACEHOLDER.developer||!0})})}(this.results,s),Hn(this.results,s),function(e,t){if(t.checks.META_LANG&&(!P.Found.Language||P.Found.Language.length<2)&&e.push({type:t.checks.META_LANG.type||"error",content:n.sprintf(t.checks.META_LANG.content||"META_LANG"),dismiss:I("LANG"),developer:t.checks.META_LANG.developer||!0}),t.checks.META_TITLE){const o=document.querySelector("title:not(svg title)");o&&0!==o.textContent.trim().length||e.push({type:t.checks.META_TITLE.type||"error",content:n.sprintf(t.checks.META_TITLE.content||"META_TITLE"),dismiss:I("TITLE"),developer:t.checks.META_TITLE.developer||!0})}if(t.checks.META_SCALABLE||t.checks.META_MAX){const o=document.querySelector('meta[name="viewport"]');if(o){const i=o.getAttribute("content");if(i){const o=i.split(",").reduce((e,t)=>{const[n,o]=t.split("=").map(e=>e.trim());return e[n]=o,e},{});!t.checks.META_SCALABLE||"no"!==o["user-scalable"]&&"0"!==o["user-scalable"]||e.push({type:t.checks.META_SCALABLE.type||"error",content:n.sprintf(t.checks.META_SCALABLE.content||"META_SCALABLE"),dismiss:I("SCALABLE"),developer:t.checks.META_SCALABLE.developer||!0});const s=parseFloat(o["maximum-scale"]);t.checks.META_MAX&&!Number.isNaN(s)&&s<2&&e.push({type:t.checks.META_MAX.type||"error",content:n.sprintf(t.checks.META_MAX.content||"META_MAX"),dismiss:I("MAXSCALE"),developer:t.checks.META_MAX.developer||!0})}}}t.checks.META_REFRESH&&document.querySelector('meta[http-equiv="refresh"]')&&e.push({type:t.checks.META_REFRESH.type||"error",content:n.sprintf(t.checks.META_REFRESH.content||"META_REFRESH"),dismiss:I("REFRESH"),developer:t.checks.META_REFRESH.developer||!0});t.checks.DUPLICATE_ID&&document.querySelectorAll("body, [data-sa11y-has-shadow-root]").forEach(i=>{const s=new Set,a=(o,i)=>{o.forEach(o=>{const{id:a}=o;"string"==typeof a&&0!==a.trim().length&&(a&&!s.has(a)?s.add(a):Array.from(i.querySelectorAll(`\n a[href*="${a}"],\n label[for*="${a}"],\n [aria-labelledby*="${a}"],\n [aria-controls*="${a}"],\n [aria-owns*="${a}"]`)).length>0&&e.push({element:o,type:t.checks.DUPLICATE_ID.type||"error",content:n.sprintf(t.checks.DUPLICATE_ID.content||"DUPLICATE_ID",a),dismiss:I(`DUPLICATEID${a}${o.textContent}`),dismissAll:!!t.checks.DUPLICATE_ID.dismissAll&&"DUPLICATE_ID",developer:t.checks.DUPLICATE_ID.developer||!0}))})};i.shadowRoot&&a(Array.from(i.shadowRoot.querySelectorAll(`[id]:not(${o.Exclusions.Container})`)),i.shadowRoot),a(Array.from(i.querySelectorAll(`[id]:not(${o.Exclusions.Container})`)),i)});(t.checks.BTN_EMPTY||t.checks.BTN_EMPTY_LABELLEDBY||t.checks.BTN_LABEL||t.checks.HIDDEN_FOCUSABLE||t.checks.LABEL_IN_NAME)&&P.Found.Buttons.forEach(o=>{const i=l(o),s=i.replace(/'|"|-|\.|\s+/g,"").toLowerCase(),a=I(`BTN${o.tagName+o.id+o.className+i}`),r=o.querySelector(":scope [aria-labelledby], :scope [aria-label]")||o.getAttribute("aria-labelledby")||o.getAttribute("aria-label"),c=o.querySelector(":scope [aria-labelledby]")||o.getAttribute("aria-labelledby"),d="true"===o.getAttribute("aria-hidden"),p="-1"===o.getAttribute("tabindex");if(d)return void(p||t.checks.HIDDEN_FOCUSABLE&&e.push({element:o,type:t.checks.HIDDEN_FOCUSABLE.type||"error",content:n.sprintf(t.checks.HIDDEN_FOCUSABLE.content||"HIDDEN_FOCUSABLE"),dismiss:a,dismissAll:!!t.checks.HIDDEN_FOCUSABLE.dismissAll&&"BTN_HIDDEN_FOCUSABLE",developer:t.checks.HIDDEN_FOCUSABLE.developer||!0}));if(0===s.length)return void(t.checks.BTN_EMPTY_LABELLEDBY&&c?e.push({element:o,type:t.checks.BTN_EMPTY_LABELLEDBY.type||"error",content:t.checks.BTN_EMPTY_LABELLEDBY.content?n.sprintf(t.checks.BTN_EMPTY_LABELLEDBY.content):`${n.sprintf("BTN_EMPTY_LABELLEDBY")} ${n.sprintf("BTN_TIP")}`,dismiss:I(a),dismissAll:!!t.checks.BTN_EMPTY_LABELLEDBY.dismissAll&&"BTN_EMPTY_LABELLEDBY",developer:t.checks.BTN_EMPTY_LABELLEDBY.developer||!0}):t.checks.BTN_EMPTY&&e.push({element:o,type:t.checks.BTN_EMPTY.type||"error",content:t.checks.BTN_EMPTY.content?n.sprintf(t.checks.BTN_EMPTY.content):`${n.sprintf("BTN_EMPTY")} ${n.sprintf("BTN_TIP")}`,dismiss:a,dismissAll:!!t.checks.BTN_EMPTY.dismissAll&&"BTN_EMPTY",developer:t.checks.BTN_EMPTY.developer||!0}));const u=O(o);if(t.checks.LABEL_IN_NAME&&r&&u){const s=h(i);return void e.push({element:o,type:t.checks.LABEL_IN_NAME.type||"warning",content:t.checks.LABEL_IN_NAME.content?n.sprintf(t.checks.LABEL_IN_NAME.content,s):`${n.sprintf("LABEL_IN_NAME",s)} ${n.sprintf("ACC_NAME_TIP")}`,dismiss:a,dismissAll:!!t.checks.LABEL_IN_NAME.dismissAll&&"BTN_LABEL_IN_NAME",developer:t.checks.LABEL_IN_NAME.developer||!0})}t.checks.BTN_ROLE_IN_NAME&&i.includes(n._("BTN"))&&e.push({element:o,type:t.checks.BTN_ROLE_IN_NAME.type||"warning",content:t.checks.BTN_ROLE_IN_NAME.content?n.sprintf(t.checks.BTN_ROLE_IN_NAME.content):`${n.sprintf("BTN_ROLE_IN_NAME")} ${n.sprintf("BTN_TIP")}`,dismiss:a,dismissAll:!!t.checks.BTN_ROLE_IN_NAME.dismissAll&&"BTN_ROLE_IN_NAME",developer:t.checks.BTN_ROLE_IN_NAME.developer||!0})}),t.checks.UNCONTAINED_LI&&P.Found.Lists.forEach(o=>{o.closest("ul, ol, menu")||e.push({element:o,type:t.checks.UNCONTAINED_LI.type||"error",content:n.sprintf(t.checks.UNCONTAINED_LI.content||"UNCONTAINED_LI"),dismiss:I(`UNCONTAINEDLI${o.textContent}`),dismissAll:!!t.checks.UNCONTAINED_LI.dismissAll&&"UNCONTAINED_LI",developer:t.checks.UNCONTAINED_LI.developer||!0})}),t.checks.TABINDEX_ATTR&&P.Found.TabIndex.forEach(o=>{e.push({element:o,type:t.checks.TABINDEX_ATTR.type||"error",content:n.sprintf(t.checks.TABINDEX_ATTR.content||"TABINDEX_ATTR"),dismiss:I(`TABINDEX${o.tagName+o.id+o.className}`),dismissAll:!!t.checks.TABINDEX_ATTR.dismissAll&&"TABINDEX_ATTR",developer:t.checks.TABINDEX_ATTR.developer||!0})})}(this.results,s),s.embeddedContentPlugin&&function(e,t){const o=e=>"undefined"!==e.getAttribute("src")?e.getAttribute("src"):e.querySelector("[src]")?.getAttribute("src");t.checks.EMBED_AUDIO&&P.Found.Audio.forEach(i=>{e.push({element:i,type:t.checks.EMBED_AUDIO.type||"warning",content:n.sprintf(t.checks.EMBED_AUDIO.content||"EMBED_AUDIO"),dismiss:I(`AUDIO${o(i)}`),dismissAll:!!t.checks.EMBED_AUDIO.dismissAll&&"EMBED_AUDIO",developer:t.checks.EMBED_AUDIO.developer||!1})}),t.checks.EMBED_VIDEO&&P.Found.Videos.forEach(i=>{const s=i.querySelector("track"),a=s?.getAttribute("src");null!==s&&null!==a&&0!==a.trim().length||e.push({element:i,type:t.checks.EMBED_VIDEO.type||"warning",content:n.sprintf(t.checks.EMBED_VIDEO.content||"EMBED_VIDEO"),dismiss:I(`VIDEO${o(i)}`),dismissAll:!!t.checks.EMBED_VIDEO.dismissAll&&"EMBED_VIDEO",developer:t.checks.EMBED_VIDEO.developer||!1})}),t.checks.EMBED_DATA_VIZ&&P.Found.Visualizations.forEach(i=>{e.push({element:i,type:t.checks.EMBED_DATA_VIZ.type||"warning",content:n.sprintf(t.checks.EMBED_DATA_VIZ.content||"EMBED_DATA_VIZ"),dismiss:I(`DATAVIZ${o(i)}`),dismissAll:!!t.checks.EMBED_DATA_VIZ.dismissAll&&"EMBED_DATA_VIZ",developer:t.checks.EMBED_DATA_VIZ.developer||!1})}),P.Found.iframes.forEach(i=>{const s=["presentation","none"].includes(i.getAttribute("role")),a=p(i),l="VIDEO"===i.tagName||"AUDIO"===i.tagName,c="true"===i.getAttribute("aria-hidden"),d="-1"===i.getAttribute("tabindex");if(!(a||l||c&&d||s))if(d)t.checks.EMBED_UNFOCUSABLE&&e.push({element:i,type:t.checks.EMBED_UNFOCUSABLE.type||"error",content:n.sprintf(t.checks.EMBED_UNFOCUSABLE.content||"EMBED_UNFOCUSABLE"),dismiss:I(`EMBEDUNFOCUSABLE${o(i)}`),dismissAll:!!t.checks.EMBED_UNFOCUSABLE.dismissAll&&"EMBED_UNFOCUSABLE",developer:t.checks.EMBED_UNFOCUSABLE.developer||!0});else if(t.checks.EMBED_MISSING_TITLE){const s=r(i);0===y("noAria"===s?i.getAttribute("title")||"":s).length&&e.push({element:i,type:t.checks.EMBED_MISSING_TITLE.type||"error",content:n.sprintf(t.checks.EMBED_MISSING_TITLE.content||"EMBED_MISSING_TITLE"),dismiss:I(`EMBEDMISSTITLE${o(i)}`),dismissAll:!!t.checks.EMBED_MISSING_TITLE.dismissAll&&"EMBED_MISSING_TITLE",developer:t.checks.EMBED_MISSING_TITLE.developer||!0})}}),t.checks.EMBED_GENERAL&&P.Found.EmbeddedContent.forEach(i=>{const s=["presentation","none"].includes(i.getAttribute("role")),a="true"===i.getAttribute("aria-hidden"),r="-1"===i.getAttribute("tabindex");p(i)||a&&r||s||"VIDEO"!==i.tagName&&"AUDIO"!==i.tagName&&e.push({element:i,type:t.checks.EMBED_GENERAL.type||"warning",content:n.sprintf(t.checks.EMBED_GENERAL.content||"EMBED_GENERAL"),dismiss:I(`IFRAMEGENERAL${o(i)}`),dismissAll:!!t.checks.EMBED_GENERAL.dismissAll&&"EMBED_GENERAL",developer:t.checks.EMBED_GENERAL.developer||!1})})}(this.results,s),s.contrastPlugin&&function(e,t){const o=[];for(let e=0;e3===e.nodeType).map(e=>e.textContent).join("").trim(),m=["SELECT","INPUT","TEXTAREA"].includes(n.tagName);if(0!==g.length||m)if("unsupported"===a||"unsupported"===c){const e=r>=24||r>=18.67&&l>=700;o.push({$el:n,type:"unsupported",fontSize:r,fontWeight:l,isLargeText:e,opacity:s,..."unsupported"!==c&&{background:c},..."unsupported"!==a&&{color:a}})}else if("image"===c.type)if(h);else{const e=r>=24||r>=18.67&&l>=700;o.push({$el:n,type:"background-image",color:a,isLargeText:e,background:c,fontSize:r,fontWeight:l,opacity:s})}else if("text"===n.tagName&&n.closest("svg"));else if(h||fn(a)===fn(c));else{const e=In(n,a,c,r,l,s,t.contrastAAA);e&&(e.type=m?"input":"text",o.push(e))}}P.Found.Svg.forEach(e=>{const n=pn(e);if(n&&"image"===n.type)return void o.push({$el:e,type:"svg-warning",background:n});if(e.querySelector("text"))return void o.push({$el:e,type:"svg-text",background:n});const i=e.querySelectorAll("path, polygon, circle, rect, ellipse, use");if(1===i.length){const s=getComputedStyle(i[0]),{fill:a,opacity:r,stroke:l,strokeWidth:c}=s;if(a.startsWith("url("))return void o.push({$el:e,type:"svg-warning",background:n});const d=a&&"none"!==a,p=l&&"none"!==l&&"0px"!==c;if(!d&&!p)return void o.push({$el:e,type:"svg-warning",background:n});let u,h,g,m=!1,f=!1;d&&(h=dn("currentColor"===a?getComputedStyle(e).color:a,r),"unsupported"!==h&&(u=yn(h,n),m=t.contrastAPCA?u.ratio>=45:u.ratio>=3)),p&&(g=dn("currentColor"===l?getComputedStyle(e).color:l,r),"unsupported"!==g&&(u=yn(g,n),f=t.contrastAPCA?u.ratio>=45:u.ratio>=3));const b=d&&p&&!m&&!f,y=d&&!p&&!m,A=!d&&p&&!f;"unsupported"===h||"unsupported"===g?o.push({$el:e,type:"svg-warning",background:n}):(b||y||A)&&o.push({$el:e,ratio:bn(u.ratio),color:u.blendedColor,type:"svg-error",background:n})}else o.push({$el:e,type:"svg-warning",background:n})}),P.Found.Inputs.forEach(e=>{if(e.placeholder&&0!==e.placeholder.length){const n=getComputedStyle(e,"::placeholder"),i=dn(n.getPropertyValue("color")),s=parseFloat(n.fontSize),a=cn(n.fontWeight),r=pn(e),l=parseFloat(n.opacity);if("unsupported"===i)o.push({$el:e,type:"placeholder-unsupported"});else if("image"===r.type);else{const n=In(e,i,r,s,a,l,t.contrastAAA);n&&(n.type="placeholder",o.push(n))}}}),(e=>{const n=e.filter(e=>"background-image"===e.type),o=e.filter(e=>"background-image"!==e.type);let i;if(t.contrastAPCA)i=n.map(e=>({...e}));else{const e=n.reduce((e,t)=>{const n=e,o=JSON.stringify({background:t.background.value,color:t.color,isLargeText:t.isLargeText});return n[o]||(n[o]=[]),n[o].push(t),n},{});i=Object.values(e).map(e=>({...e[0]}))}return[...i,...o]})(o).forEach(o=>{const{$el:i,ratio:s}=o,a=o,r="OPTION"===i.tagName?i.closest("datalist, select, optgroup"):i,l=h(A(b(f(r,["option:not(option:first-child)"])),80));let c;c="placeholder"===o.type||"placeholder-unsupported"===o.type?h(i.placeholder):"svg-error"===o.type||"svg-warning"===o.type||"svg-text"===o.type?"":l,a.sanitizedText=c;let d="";if(!t.contrastAPCA){const e=t.contrastAAA?"7:1":"4.5:1",i=t.contrastAAA?"4.5:1":"3:1",s=o.isLargeText?i:e,a=o.isLargeText?"CONTRAST_LARGE":"CONTRAST_NORMAL";d=` ${n.sprintf(a,s)}`}const p=t.contrastAPCA?"":` ${n.sprintf("CONTRAST_TIP_GRAPHIC")}`;switch(o.type){case"text":t.checks.CONTRAST_ERROR&&e.push({element:i,type:t.checks.CONTRAST_ERROR.type||"error",content:t.checks.CONTRAST_ERROR.content?n.sprintf(t.checks.CONTRAST_ERROR.content):n.sprintf("CONTRAST_ERROR")+d,dismiss:I(`CONTRAST${l}`),dismissAll:!!t.checks.CONTRAST_ERROR.dismissAll&&"CONTRAST_ERROR",developer:t.checks.CONTRAST_ERROR.developer||!1,contrastDetails:a});break;case"input":t.checks.CONTRAST_INPUT&&e.push({element:r,type:t.checks.CONTRAST_INPUT.type||"error",content:t.checks.CONTRAST_INPUT.content?n.sprintf(t.checks.CONTRAST_INPUT.content):n.sprintf("CONTRAST_INPUT",s)+d,dismiss:I(`CONTRAST${i.getAttribute("class")}${i.tagName}${s}`),dismissAll:!!t.checks.CONTRAST_INPUT.dismissAll&&"CONTRAST_INPUT",developer:t.checks.CONTRAST_INPUT.developer||!0,contrastDetails:a});break;case"placeholder":t.checks.CONTRAST_PLACEHOLDER&&e.push({element:i,type:t.checks.CONTRAST_PLACEHOLDER.type||"error",content:t.checks.CONTRAST_PLACEHOLDER.content?n.sprintf(t.checks.CONTRAST_PLACEHOLDER.content):n.sprintf("CONTRAST_PLACEHOLDER")+d,position:"afterend",dismiss:I(`CPLACEHOLDER${i.getAttribute("class")}${i.tagName}${s}`),dismissAll:!!t.checks.CONTRAST_PLACEHOLDER.dismissAll&&"CONTRAST_PLACEHOLDER",developer:t.checks.CONTRAST_PLACEHOLDER.developer||!0,contrastDetails:a});break;case"placeholder-unsupported":t.checks.CONTRAST_PLACEHOLDER_UNSUPPORTED&&e.push({element:i,type:t.checks.CONTRAST_PLACEHOLDER_UNSUPPORTED.type||"warning",content:t.checks.CONTRAST_PLACEHOLDER_UNSUPPORTED.content?n.sprintf(t.checks.CONTRAST_PLACEHOLDER_UNSUPPORTED.content):n.sprintf("CONTRAST_PLACEHOLDER_UNSUPPORTED")+d,position:"afterend",dismiss:I(`CPLACEHOLDERUN${i.getAttribute("class")}${i.tagName}${s}`),dismissAll:!!t.checks.CONTRAST_PLACEHOLDER_UNSUPPORTED.dismissAll&&"CONTRAST_PLACEHOLDER_UNSUPPORTED",developer:t.checks.CONTRAST_PLACEHOLDER_UNSUPPORTED.developer||!0,contrastDetails:a});break;case"svg-error":t.checks.CONTRAST_ERROR_GRAPHIC&&e.push({element:i,type:t.checks.CONTRAST_ERROR_GRAPHIC.type||"error",content:t.checks.CONTRAST_ERROR_GRAPHIC.content?n.sprintf(t.checks.CONTRAST_ERROR_GRAPHIC.content):n.sprintf("CONTRAST_ERROR_GRAPHIC")+p,dismiss:I(`CONTRASTERROR${i.outerHTML}`),dismissAll:!!t.checks.CONTRAST_ERROR_GRAPHIC.dismissAll&&"CONTRAST_ERROR_GRAPHIC",developer:t.checks.CONTRAST_ERROR_GRAPHIC.developer||!0,contrastDetails:a});break;case"svg-warning":case"svg-text":t.checks.CONTRAST_WARNING_GRAPHIC&&e.push({element:i,type:t.checks.CONTRAST_WARNING_GRAPHIC.type||"warning",content:t.checks.CONTRAST_WARNING_GRAPHIC.content?n.sprintf(t.checks.CONTRAST_WARNING_GRAPHIC.content):n.sprintf("CONTRAST_WARNING_GRAPHIC")+p,dismiss:I(`CONTRASTWARNING${i.outerHTML}`),dismissAll:!!t.checks.CONTRAST_WARNING_GRAPHIC.dismissAll&&"CONTRAST_WARNING_GRAPHIC",developer:t.checks.CONTRAST_WARNING_GRAPHIC.developer||!0,contrastDetails:a});break;case"background-image":t.checks.CONTRAST_WARNING&&e.push({element:r,type:t.checks.CONTRAST_WARNING.type||"warning",content:t.checks.CONTRAST_WARNING.content?n.sprintf(t.checks.CONTRAST_WARNING.content):n.sprintf("CONTRAST_WARNING")+d,dismiss:I(`CONTRAST${l}`),dismissAll:!!t.checks.CONTRAST_WARNING.dismissAll&&"CONTRAST_WARNING",developer:t.checks.CONTRAST_WARNING.developer||!1,contrastDetails:a});break;case"unsupported":t.checks.CONTRAST_UNSUPPORTED&&e.push({element:r,type:t.checks.CONTRAST_UNSUPPORTED.type||"warning",content:t.checks.CONTRAST_UNSUPPORTED.content?n.sprintf(t.checks.CONTRAST_UNSUPPORTED.content):n.sprintf("CONTRAST_WARNING")+d,dismiss:I(`CONTRAST${l}`),dismissAll:!!t.checks.CONTRAST_UNSUPPORTED.dismissAll&&"CONTRAST_UNSUPPORTED",developer:t.checks.CONTRAST_UNSUPPORTED.developer||!1,contrastDetails:a})}})}(this.results,s),s.readabilityPlugin&&function(){let e;if("On"===_.getItem("sa11y-readability")){P.Found.Readability.forEach(e=>{const t=e.textContent;t.length>=120&&"."!==t.charAt(t.length-1)&&e.insertAdjacentHTML("beforeend",".")});const t=[];for(let e=0;e{let t=e;if(t=t.toLowerCase().replace(".","").replace("\n",""),t.length<=3)return 1;t=t.replace(/(?:[^laeiouy]es|ed|[^laeiouy]e)$/,""),t=t.replace(/^y/,"");const n=t.match(/[aeiouy]{1,2}/g);let o=0;return!!n&&(o=n.length),o},s=i.replace(/[.!?-]+/g," ").split(" ");let a=0;for(let e=0;e100?u=100:u<0&&(u=0);const h=u.toFixed(1),g=(a/l).toFixed(1),m=Math.round((a-(d+p))/a*100);let f;f=h>=0&&h<30?n._("VERY_DIFFICULT"):h>31&&h<49?n._("DIFFICULT"):h>50&&h<60?n._("FAIRLY_DIFFICULT"):n._("GOOD"),e={score:h,averageWordsPerSentence:g,complexWords:m,difficultyLevel:f,wordCount:a}}else if(["sv","fi","da","no","nb","nn"].includes(o.Readability.Lang)){const t=(e=>{const t=()=>e.replace(/[-'.]/gi,"").split(/[^a-zA-ZöäåÖÄÅÆæØø0-9]/g).filter(Boolean),o=t().length,i=t().filter(e=>e.length>6).length,s=e.split(/\?|!|\.|\n/g).filter(Boolean).length,a=Math.round(o/s+100*i/o),r=(o/s).toFixed(1),l=Math.round(i/o*100);let c;return c=a>=0&&a<39?n._("GOOD"):a>40&&a<50?n._("FAIRLY_DIFFICULT"):a>51&&a<61?n._("DIFFICULT"):n._("VERY_DIFFICULT"),{score:a,difficulty:c,avgWordsPerSentence:r,complexWords:l,wordCount:o}})(i);e={score:t.score,averageWordsPerSentence:t.avgWordsPerSentence,complexWords:t.complexWords,difficultyLevel:t.difficulty,wordCount:t.wordCount}}!1===o.Global.headless&&(0===i.length?o.Panel.readabilityInfo.innerHTML=n._("READABILITY_NO_CONTENT"):e.wordCount>30?(o.Panel.readabilityInfo.innerHTML=`${e.score} ${e.difficultyLevel}`,o.Panel.readabilityDetails.innerHTML=`\n
                                                                  • \n ${n._("AVG_SENTENCE")}\n ${e.averageWordsPerSentence}\n
                                                                  • \n
                                                                  • \n ${n._("COMPLEX_WORDS")}\n ${e.complexWords}%\n
                                                                  • \n
                                                                  • \n ${n._("TOTAL_WORDS")}\n ${e.wordCount}\n
                                                                  • `):o.Panel.readabilityInfo.textContent=n._("READABILITY_NOT_ENOUGH"))}}(),this.imageResults=this.results.filter((e,t,n)=>{const{element:o}=e;return!(!o||"IMG"!==o.tagName||!o.outerHTML)&&n.findIndex(e=>e.element?.outerHTML===o.outerHTML)===t}),!0===s.customChecks?this.results:"object"==typeof s.customChecks?this.results.push(...s.customChecks):"listen"===s.customChecks&&(this.customChecksRunning=!0,this.customChecksFinished=0,document.addEventListener("sa11y-resume",()=>{this.customChecksFinished+=1,1===this.customChecksFinished&&(this.customChecksRunning=!1,this.updateResults())}),window.setTimeout(()=>{if(!0===this.customChecksRunning)throw this.customChecksRunning=!1,this.updateResults(),Error("Sa11y: No custom checks were returned.")},s.delayCustomCheck),window.setTimeout(()=>{const e=new CustomEvent("sa11y-custom-checks");document.dispatchEvent(e)},0)),this.customChecksRunning||this.updateResults()}catch(e){const t=new Q(e);throw document.body.appendChild(t),Error(e)}},this.updateResults=()=>{this.results=this.results.filter(e=>!1!==e.isWithinRoot);const e="Off"===_.getItem("sa11y-developer")||null===_.getItem("sa11y-developer");if((e||!0===s.externalDeveloperChecks)&&(this.results=this.results.filter(e=>!0!==e.developer)),e&&(this.results=this.results.filter(e=>!0!==e.external)),this.results.forEach((e,t)=>{const n=s.selectorPath?function(e){const t=[];let n=e;for(;n;){let e=n.localName;if(n.id){e+=`#${n.id}`,t.unshift(e);break}n.className&&(e+=`.${n.className.replace(/\s+/g,".")}`);const o=n.parentNode;if(!o)break;{const i=o.children;i.length>1&&(e+=`:nth-child(${Array.prototype.indexOf.call(i,n)+1})`),t.unshift(e)}n=n.parentNode.host||n.parentNode}return t.join(" > ")}(e.element):"",o=e.element?.outerHTML.replace(/\s{2,}/g," ").trim()||"";Object.assign(e,{htmlPath:o,cssPath:n,id:t})}),!1===s.headless){const e=M(this.results,this.panelTooltips,this.checkAll,this.resetAll);this.results=e.updatedResults,this.dismissed=e.dismissedIssues;const l=function(e,t,n){let o=t,i=n;return e.forEach((t,n)=>{const s=e[n].type;"error"===s?o+=1:"warning"===s&&(i+=1)}),{error:o,warning:i}}(this.results,this.errorCount,this.warningCount);if(function(e,t){const i=e+t;0===i?(o.Panel.notifCount.innerText="",o.Panel.notifText.innerText="",o.Panel.notifBadge.style.display="none"):t>0&&0===e?(o.Panel.notifBadge.classList.add("notification-badge-warning"),o.Panel.notifCount.innerText=`${t}`,o.Panel.notifText.innerText=`${n._("WARNINGS_FOUND")}`):(o.Panel.notifBadge.classList.remove("notification-badge-warning"),o.Panel.notifCount.innerText=`${i}`,o.Panel.notifText.innerText=n._("TOTAL_FOUND")),"Opened"===_.getItem("sa11y-panel")||0===i?o.Panel.notifBadge.style.display="none":o.Panel.notifBadge.style.display="flex"}(l.error,l.warning),"Opened"===_.getItem("sa11y-panel")){this.results.forEach(e=>{Object.assign(e),function(e,t){const{element:i,type:s,content:a,inline:r=!1,position:l="beforebegin",id:c,dismiss:d,dismissAll:p,contrastDetails:h}=e,g=["error","warning","good"];if(-1===g.indexOf(s))throw Error(`Invalid type [${s}] for annotation`);[s].forEach(e=>{if("error"===e&&void 0!==i){const e=r?"data-sa11y-error-inline":"data-sa11y-error";i.setAttribute(e,c)}else if("warning"===e&&void 0!==i){const e=r?"data-sa11y-warning-inline":"data-sa11y-warning";i.setAttribute(e,c)}});const m={[g[0]]:n._("ERROR"),[g[1]]:n._("WARNING"),[g[2]]:n._("GOOD")};if(!1===t.showGoodImageButton&&"IMG"===i?.tagName&&"good"===s)return;if(!1===t.showGoodLinkButton&&"A"===i?.tagName&&"good"===s)return;const f=!t.dismissAnnotations||"warning"!==s&&"good"!==s||void 0===d?"":``,b=t.dismissAnnotations&&t.dismissAll&&"string"==typeof p&&("warning"===s||"good"===s)?``:"",y=document.createElement("sa11y-annotation");if(y.setAttribute("data-sa11y-annotation",c),void 0===i){const e=document.createElement("li");e.innerHTML=`

                                                                    ${m[s]}

                                                                    ${a}${f}`,o.Panel.pageIssuesList.insertAdjacentElement("afterbegin",e),o.Panel.pageIssues.classList.add("active"),o.Panel.panel.classList.add("has-page-issues")}else{const e=document.createElement("div");e.classList.add(r?"instance-inline":"instance"),e.innerHTML=`\n \n

                                                                    ${m[s]}

                                                                    \n ${u(a)}\n ${h?"
                                                                    ":""}\n
                                                                    ${f}${b}
                                                                    \n "\n >`;const o=t.insertAnnotationBefore?`, ${t.insertAnnotationBefore}`:"";(i.closest(`a, button, [role="link"], [role="button"] ${o}`)||i).insertAdjacentElement(l,y),y.shadowRoot.appendChild(e)}}(e,s)}),P.initializeAnnotations();const c=new xn;document.body.appendChild(c),G(this.results,this.dismissed,this.checkAll,this.resetAll),te(this.dismissed,this.headingOutline,s),s.showImageOutline&&function(e,t,i){const s=()=>{const a=[],r=e.map(e=>t.find(t=>e.key===t.dismiss&&e.href===window.location.pathname)).filter(Boolean);t.forEach(e=>{const t=r.some(t=>t.element.outerHTML.toLowerCase()===e.element.outerHTML.toLowerCase());t&&Object.assign(e,{dismissedImage:!0});const s=e.type,l=e.developer,{dismissedImage:c}=e,d=u(e.element.alt),p=!("Off"!==_.getItem("sa11y-developer")&&null!==_.getItem("sa11y-developer")||"error"!==s&&"warning"!==s||!0!==l),h=w(e.element),g=o.Global.editImageURLofCMS?ne(e):"",m=i.imageWithinLightbox?`a[href]:not(${i.imageWithinLightbox})`:"a[href]",f=e.element.closest(m)?`
                                                                    ${n._("LINKED")}
                                                                    `:"";let b;if("error"!==s||p)if("warning"!==s||c||p){const t=0===d.length?`
                                                                    ${n._("DECORATIVE")}
                                                                    `:"",o=i.imageWithinLightbox?`a[href]:not(${i.imageWithinLightbox})`:"a[href]",s=e.element.closest(o)?`
                                                                    ${n._("LINKED")}
                                                                    `:"";b=`\n
                                                                  • \n \n
                                                                    \n
                                                                    ${n._("ALT")}
                                                                    \n ${s} ${t} ${d}\n
                                                                    \n ${g}\n
                                                                  • `,a.push(b)}else{const e=0===d.length?`
                                                                    ${n._("DECORATIVE")}
                                                                    `:"";b=`\n
                                                                  • \n \n
                                                                    \n
                                                                    ${n._("WARNING")} ${n._("ALT")}
                                                                    \n ${f} ${e} ${d}\n
                                                                    \n ${g}\n
                                                                  • `,a.push(b)}else{const e=0===d.length?`
                                                                    ${n._("MISSING")}
                                                                    `:`${d}`;b=`\n
                                                                  • \n \n
                                                                    \n
                                                                    ${n._("ERROR")} ${n._("ALT")}
                                                                    ${f} ${e}\n
                                                                    \n ${g}\n
                                                                  • `,a.push(b)}}),o.Panel.imagesList.innerHTML=0===a.length?`
                                                                  • ${n._("NO_IMAGES")}
                                                                  • `:a.join(" "),document.removeEventListener("sa11y-build-image-outline",s)};"Opened"===_.getItem("sa11y-images")&&s(),document.addEventListener("sa11y-build-image-outline",s)}(this.dismissed,this.imageResults,s),i=e.dismissCount,a=l.error,r=l.warning,o.Panel.skipButton.disabled=!1,o.Panel.panel.classList.add("active"),o.Global.html.setAttribute("data-sa11y-active","true"),o.Panel.skipButton.classList.add("active"),a>0&&r>0?(o.Panel.content.setAttribute("class","errors"),o.Panel.status.innerHTML=`${n._("ERRORS")} ${a} ${n._("WARNINGS")} ${r}`):a>0?(o.Panel.content.setAttribute("class","errors"),o.Panel.status.innerHTML=`${n._("ERRORS")} ${a}`):r>0?(o.Panel.content.setAttribute("class","warnings"),o.Panel.status.innerHTML=`${n._("WARNINGS")} ${r}`):i>0?(o.Panel.status.innerHTML=`${n._("DISMISSED")} ${i}`,o.Panel.skipButton.classList.remove("active")):(o.Panel.content.setAttribute("class","good"),o.Panel.status.innerHTML=`${n._("NO_ERRORS_FOUND")}`),0===document.querySelectorAll("sa11y-annotation").length&&(o.Panel.skipButton.disabled=!0),t=this.results,Bn=e=>{Mn(e,t)},$n=()=>{Dn(t)},document.addEventListener("keydown",Bn),o.Panel.skipButton.addEventListener("click",$n),s.exportResultsPlugin&&function(e,t){o.Global.exportResultsPlugin&&(K=async()=>{await H(e,t)},W=()=>{F(e)},o.Panel.exportHTML.addEventListener("click",K),o.Panel.exportCSV.addEventListener("click",W))}(this.results,e.dismissedResults),S(o.Panel.pageIssuesList,o.Panel.pageIssuesContent),Sn(s.ignoreHiddenOverflow),document.querySelectorAll("sa11y-annotation").forEach(e=>{const t=e.nextElementSibling;null!==t&&"SA11Y-ANNOTATION"===t.tagName&&customElements.get("sa11y-annotation")&&t.shadowRoot.querySelector("button").setAttribute("style","margin: -5px -15px !important;")})}o.Panel.toggle.disabled=!1}var t,i,a,r;window.sa11yCheckComplete=null;const l=new CustomEvent("sa11y-check-complete",{detail:{results:this.results,page:window.location.pathname}});window.sa11yCheckComplete=l.detail,document.dispatchEvent(l)},this.resetAll=(e=!0)=>{for(o.Global.html.removeAttribute("data-sa11y-active"),N(["sa11y-annotation","sa11y-heading-label","sa11y-heading-anchor","sa11y-tooltips","[data-sa11y-readability-period]","[data-sa11y-clone-image-text]"],"document"),k(["data-sa11y-parent","data-sa11y-error","data-sa11y-warning","data-sa11y-good","data-sa11y-error-inline","data-sa11y-warning-inline","data-sa11y-overflow","data-sa11y-pulse-border","data-sa11y-filter","data-sa11y-has-shadow-root"],"document"),o.Panel.outlineList.innerHTML="",s.showImageOutline&&(o.Panel.imagesList.innerHTML=""),o.Panel.pageIssuesList.innerHTML="",o.Panel.readabilityInfo.innerHTML="",o.Panel.readabilityDetails.innerHTML="",o.Panel.panel.classList.remove("has-page-issues"),o.Panel.pageIssues.classList.remove("active"),o.Panel.settingsContent.classList.remove("hide-settings-border"),o.Panel.panel.querySelector("#readability-alert")?.remove(),T(),document.removeEventListener("keydown",Bn),o.Panel.skipButton.removeEventListener("click",$n),o.Global.exportResultsPlugin&&(o.Panel.exportHTML.removeEventListener("click",K),o.Panel.exportCSV.removeEventListener("click",W)),o.Panel.panel?.removeEventListener("click",$),o.Panel.dismissButton?.removeEventListener("click",B),o.Global.colourFilterPlugin&&(o.Panel.colourFilterSelect.value=0,o.Panel.colourPanel.classList.remove("active"),o.Panel.colourFilterSelect.classList.remove("active"),o.Panel.content.hidden=!1);o.Panel.status.firstChild;)o.Panel.status.removeChild(o.Panel.status.firstChild);document.querySelectorAll("[data-sa11y-has-shadow-root]").forEach(e=>{e.shadowRoot.querySelectorAll("style.sa11y-css-utilities").forEach(e=>e.remove()),e.removeAttribute("data-sa11y-has-shadow-root")}),e&&o.Panel.panel.classList.remove("active")},this.disabled=()=>{setTimeout(()=>{"Opened"===_.getItem("sa11y-panel")&&o.Panel.toggle.click(),o.Panel.toggle.disabled=!0},s.delayCheck+10)},this.enabled=()=>{o.Panel.toggle&&(o.Panel.toggle.disabled=!1)},this.find=(e,t,n)=>i(e,t,n),this.prepareDismissal=e=>I(e),this.sanitizeHTML=e=>h(e),this.truncateString=(e,t)=>A(e,t),this.initialize()}},Object.defineProperty(e,"__esModule",{value:!0})}); diff --git a/docs/demo/en/axe.html b/docs/demo/en/axe.html new file mode 100644 index 00000000..3c0de34e --- /dev/null +++ b/docs/demo/en/axe.html @@ -0,0 +1,240 @@ + + + + + + + axe-core integration - Sa11y Demo + + + + + + + + + +
                                                                    + +
                                                                    +
                                                                    +
                                                                    +
                                                                    +

                                                                    Axe-Core Integration

                                                                    +

                                                                    A page without any errors!

                                                                    +
                                                                    +
                                                                    + +
                                                                    +
                                                                    + +
                                                                    +

                                                                    Bears are carnivoran mammals of the family Ursidae. They are classified as caniforms, or doglike + carnivorans. Although only eight species of bears are extant, they are widespread, appearing in a wide + variety of habitats throughout the + Northern Hemisphere and partially in the Southern Hemisphere. Bears are found on the continents of North + America, South America, Europe, and Asia. Common characteristics of modern bears include large bodies with + stocky legs, long + snouts, small rounded ears, shaggy hair, plantigrade paws with five nonretractile claws, and short tails. +

                                                                    + +
                                                                    +
                                                                    + + + +

                                                                    Taxonomy

                                                                    +

                                                                    The family Ursidae is one of the nine families in the suborder Caniformia, or "doglike" carnivorans, within + the order Carnivora. Bears' closest living relatives are the pinnipeds, canids, and musteloids. Modern bears + comprise eight species + in three subfamilies: Ailuropodinae (monotypic with the giant panda), Tremarctinae (monotypic with the + spectacled bear), and Ursinae (containing six species divided into one to three genera, depending on the + authority). Nuclear chromosome + analysis show that the karyotype of the six ursine bears is nearly identical, with each having 74 chromosomes, + whereas the giant panda has 42 chromosomes and the spectacled bear 52. These smaller numbers can be explained + by the fusing of + some chromosomes, and the banding patterns on these match those of the ursine species, but differ from those + of procyonids, which supports the inclusion of these two species in Ursidae rather than in Procyonidae, where + they had been placed + by some earlier authorities.

                                                                    + +
                                                                    +
                                                                    + A Polar bear jumping on fast ice in Norway. +
                                                                    +
                                                                    +

                                                                    The earliest members of Ursidae belong to the extinct subfamily Amphicynodontinae, including Parictis + (late Eocene to early middle Miocene, 38–18 Mya) and the slightly younger Allocyon (early Oligocene, 34–30 + Mya), both from North + America. These animals looked very different from today's bears, being small and raccoon-like in overall + appearance, with diets perhaps more similar to that of a badger. Parictis does not appear in Eurasia and + Africa until the + Miocene.[14] It is unclear whether late-Eocene ursids were also present in Eurasia, although faunal + exchange across the Bering land bridge may have been possible during a major sea level low stand as early + as the late Eocene (about 37 + Mya) and continuing into the early Oligocene. European genera morphologically very similar to Allocyon, + and to the much younger American Kolponomos (about 18 Mya), are known from the Oligocene, including + Amphicticeps and Amphicynodon. +

                                                                    +
                                                                    +
                                                                    +

                                                                    Size

                                                                    +

                                                                    The raccoon-sized, dog-like Cephalogale is the oldest-known member of the subfamily Hemicyoninae, which first + appeared during the middle Oligocene in Eurasia about 30 Mya.[15] The subfamily includes the younger genera + Phoberocyon (20–15 + Mya), and Plithocyon (15–7 Mya). A Cephalogale-like species gave rise to the genus Ursavus during the early + Oligocene (30–28 Mya); this genus proliferated into many species in Asia and is ancestral to all living bears. + Species of Ursavus + subsequently entered North America, together with Amphicynodon and Cephalogale, during the early Miocene + (21–18 Mya). Members of the living lineages of bears diverged from Ursavus between 15 and 20 Mya,[24][25] + likely via the species + Ursavus elmensis. Based on genetic and morphological data, the Ailuropodinae (pandas) were the first to + diverge from other living bears about 19 Mya, although no fossils of this group have been found before about 5 + Mya.

                                                                    +
                                                                    +
                                                                    +
                                                                    +
                                                                    + This footer area is ignored. If a content editor can't fix it, don't scan it. link will be ignored. +
                                                                    +
                                                                    + + + + + + + + + + + + + + \ No newline at end of file diff --git a/docs/demo/version.js b/docs/demo/version.js index 61fa50bf..b131e547 100644 --- a/docs/demo/version.js +++ b/docs/demo/version.js @@ -1,5 +1,5 @@ - const version = '4.2.0'; + const version = '4.2.1'; const webV = document.getElementById("v"); webV.innerHTML = version; \ No newline at end of file diff --git a/package-lock.json b/package-lock.json index 36b0d06b..d84a8360 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "sa11y", - "version": "4.2.0", + "version": "4.2.1", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "sa11y", - "version": "4.2.0", + "version": "4.2.1", "license": "GPL-2.0-or-later", "dependencies": { "apca-w3": "^0.1.9", diff --git a/package.json b/package.json index d93fbfdd..8145ca51 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "sa11y", - "version": "4.2.0", + "version": "4.2.1", "description": "Sa11y is an accessibility quality assurance tool that visually highlights common accessibility and usability issues. Geared towards content authors, Sa11y straightforwardly identifies errors or warnings at the source with a simple tooltip on how to fix them.", "main": "src/sa11y.js", "type": "module", diff --git a/src/js/rulesets/contrast.js b/src/js/rulesets/contrast.js index 72430e48..8de0ea38 100644 --- a/src/js/rulesets/contrast.js +++ b/src/js/rulesets/contrast.js @@ -108,7 +108,7 @@ export default function checkContrast(results, option) { } // Process simple SVGs with a single shape. - const shapes = $el.querySelectorAll('path, polygon, circle, rect, ellipse'); + const shapes = $el.querySelectorAll('path, polygon, circle, rect, ellipse, use'); if (shapes.length === 1) { const style = getComputedStyle(shapes[0]); const { fill, opacity, stroke, strokeWidth } = style; diff --git a/src/js/rulesets/labels.js b/src/js/rulesets/labels.js index 334c8467..35019c6e 100644 --- a/src/js/rulesets/labels.js +++ b/src/js/rulesets/labels.js @@ -124,7 +124,7 @@ export default function checkLabels(results, option) { } // Avoid using placeholder attributes. - if ($el.placeholder && $el.placeholder !== 0) { + if (option.checks.LABELS_PLACEHOLDER && $el.placeholder && $el.placeholder !== 0) { results.push({ element: $el, type: option.checks.LABELS_PLACEHOLDER.type || 'warning', diff --git a/test/pages/testing.html b/test/pages/testing.html index c48b61de..47957b86 100644 --- a/test/pages/testing.html +++ b/test/pages/testing.html @@ -63,6 +63,50 @@

                                                                    Sa11y (Random) Unit Tests

                                                                    +

                                                                    SVGs that use <use>

                                                                    + + + + Go to Sa11y + + + + + + + + Go to Sa11y + + + + + + + + Go to Sa11y + + + + + + +

                                                                    Testing <pre> within tooltip

                                                                    Announcement

                                                                    Lorem ipsum dulce, some really long text passage.

                                                                    @@ -75,12 +119,20 @@

                                                                    Improve link check

                                                                    Shadow DOM bug

                                                                    -

                                                                    +

                                                                    + +