*/var vt=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"],Ne=vt.join(","),bt=typeof Element>"u",ae=bt?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,Oe=!bt&&Element.prototype.getRootNode?function(a){var e;return a==null||(e=a.getRootNode)===null||e===void 0?void 0:e.call(a)}:function(a){return a==null?void 0:a.ownerDocument},Fe=function a(e,t){var n;t===void 0&&(t=!0);var s=e==null||(n=e.getAttribute)===null||n===void 0?void 0:n.call(e,"inert"),r=s===""||s==="true",i=r||t&&e&&a(e.parentNode);return i},an=function(e){var t,n=e==null||(t=e.getAttribute)===null||t===void 0?void 0:t.call(e,"contenteditable");return n===""||n==="true"},yt=function(e,t,n){if(Fe(e))return[];var s=Array.prototype.slice.apply(e.querySelectorAll(Ne));return t&&ae.call(e,Ne)&&s.unshift(e),s=s.filter(n),s},wt=function a(e,t,n){for(var s=[],r=Array.from(e);r.length;){var i=r.shift();if(!Fe(i,!1))if(i.tagName==="SLOT"){var o=i.assignedElements(),l=o.length?o:i.children,c=a(l,!0,n);n.flatten?s.push.apply(s,c):s.push({scopeParent:i,candidates:c})}else{var f=ae.call(i,Ne);f&&n.filter(i)&&(t||!e.includes(i))&&s.push(i);var g=i.shadowRoot||typeof n.getShadowRoot=="function"&&n.getShadowRoot(i),h=!Fe(g,!1)&&(!n.shadowRootFilter||n.shadowRootFilter(i));if(g&&h){var b=a(g===!0?i.children:g.children,!0,n);n.flatten?s.push.apply(s,b):s.push({scopeParent:i,candidates:b})}else r.unshift.apply(r,i.children)}}return s},xt=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},re=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||an(e))&&!xt(e)?0:e.tabIndex},on=function(e,t){varn=re(e);returnn<0&&t&&!xt(e)?0:n},ln=function(e,t){returne.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},_t=function(e){returne.tagName==="INPUT"},cn=function(e){return_t(e)&&e.type==="hidden"},un=function(e){vart=e.tagName==="DETAILS"&&Array.prototype.slice.apply(e.children).some(function(n){returnn.tagName==="SUMMARY"});returnt},dn=function(e,t){for(varn=0;n<e.length;n++)if(e[n].checked&&e[n].form===t)returne[n]},fn=function(e){if(!e.name)return!0;vart=e.form||Oe(e),n=function(o){returnt.querySelectorAll('input[type="radio"][name="'+o+'"]')},s;if(typeofwindow<"u"&&typeofwindow.CSS<"u"&&typeofwindow.CSS.escape=="function")s=n(window.CSS.escape(e.name));elsetry{s=n(e.name)}catch(i){returnconsole.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",i.message),!1}varr=dn(s,e.form);return!r||r===e},hn=function(e){return_t(e)&&e.type==="radio"},pn=function(e){returnhn(e)&&!fn(e)},mn=function(e){vart,n=e&&Oe(e),s=(t=n)===null||t===void0?void0:t.host,r=!1;if(n&&n!==e){vari,o,l;for(r=!!((i=s)!==null&&i!==void0&&(o=i.ownerDocument)!==null&&o!==void0&&o.contains(s)||e!=null&&(l=e.ownerDocument)!==null&&l!==void0&&l.contains(e));!r&&s;){varc,f,g;n=Oe(s),s=(c=n)===null||c===void0?void0:c.host,r=!!((f=s)!==null&&f!==void0&&(g=f.ownerDocument)!==null&&g!==void0&&g.contains(s))}}returnr},lt=function(e){vart=e.getBoundingClientRect(),n=t.width,s=t.height;returnn===0&&s===0},gn=function(e,t){varn=t.displayCheck,s=t.getShadowRoot;if(getComputedStyle(e).visibility==="hidden")return!0;varr=ae.call(e,"details>summary:first-of-type"),i=r?e.parentElement:e;if(ae.call(i,"details:not([open]) *"))return!0;if(!n||n==="full"||n==="legacy-full"){if(typeofs=="function"){for(varo=e;e;){varl=e.parentElement,c=Oe(e);if(l&&!l.shadowRoot&&s(l)===!0)returnlt(e);e.assignedSlot?e=e.assignedSlot:!l&&c!==e.ownerDocument?e=c.host:e=l}e=o}if(mn(e))return!e.getClientRects().length;if(n!=="legacy-full")return!0}elseif(n==="non-zero-are