*/var gt=["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])"],Ie=gt.join(","),bt=typeof Element>"u",re=bt?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,Ne=!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},ke=function a(e,t){var s;t===void 0&&(t=!0);var n=e==null||(s=e.getAttribute)===null||s===void 0?void 0:s.call(e,"inert"),r=n===""||n==="true",i=r||t&&e&&a(e.parentNode);return i},os=function(e){var t,s=e==null||(t=e.getAttribute)===null||t===void 0?void 0:t.call(e,"contenteditable");return s===""||s==="true"},yt=function(e,t,s){if(ke(e))return[];var n=Array.prototype.slice.apply(e.querySelectorAll(Ie));return t&&re.call(e,Ie)&&n.unshift(e),n=n.filter(s),n},wt=function a(e,t,s){for(var n=[],r=Array.from(e);r.length;){var i=r.shift();if(!ke(i,!1))if(i.tagName==="SLOT"){var o=i.assignedElements(),c=o.length?o:i.children,l=a(c,!0,s);s.flatten?n.push.apply(n,l):n.push({scopeParent:i,candidates:l})}else{var h=re.call(i,Ie);h&&s.filter(i)&&(t||!e.includes(i))&&n.push(i);var v=i.shadowRoot||typeof s.getShadowRoot=="function"&&s.getShadowRoot(i),f=!ke(v,!1)&&(!s.shadowRootFilter||s.shadowRootFilter(i));if(v&&f){var b=a(v===!0?i.children:v.children,!0,s);s.flatten?n.push.apply(n,b):n.push({scopeParent:i,candidates:b})}else r.unshift.apply(r,i.children)}}return n},_t=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},ie=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||os(e))&&!_t(e)?0:e.tabIndex},cs=function(e,t){vars=ie(e);returns<0&&t&&!_t(e)?0:s},ls=function(e,t){returne.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},xt=function(e){returne.tagName==="INPUT"},us=function(e){returnxt(e)&&e.type==="hidden"},ds=function(e){vart=e.tagName==="DETAILS"&&Array.prototype.slice.apply(e.children).some(function(s){returns.tagName==="SUMMARY"});returnt},hs=function(e,t){for(vars=0;s<e.length;s++)if(e[s].checked&&e[s].form===t)returne[s]},fs=function(e){if(!e.name)return!0;vart=e.form||Ne(e),s=function(o){returnt.querySelectorAll('input[type="radio"][name="'+o+'"]')},n;if(typeofwindow<"u"&&typeofwindow.CSS<"u"&&typeofwindow.CSS.escape=="function")n=s(window.CSS.escape(e.name));elsetry{n=s(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=hs(n,e.form);return!r||r===e},ps=function(e){returnxt(e)&&e.type==="radio"},vs=function(e){returnps(e)&&!fs(e)},ms=function(e){vart,s=e&&Ne(e),n=(t=s)===null||t===void0?void0:t.host,r=!1;if(s&&s!==e){vari,o,c;for(r=!!((i=n)!==null&&i!==void0&&(o=i.ownerDocument)!==null&&o!==void0&&o.contains(n)||e!=null&&(c=e.ownerDocument)!==null&&c!==void0&&c.contains(e));!r&&n;){varl,h,v;s=Ne(n),n=(l=s)===null||l===void0?void0:l.host,r=!!((h=n)!==null&&h!==void0&&(v=h.ownerDocument)!==null&&v!==void0&&v.contains(n))}}returnr},ot=function(e){vart=e.getBoundingClientRect(),s=t.width,n=t.height;returns===0&&n===0},gs=function(e,t){vars=t.displayCheck,n=t.getShadowRoot;if(getComputedStyle(e).visibility==="hidden")return!0;varr=re.call(e,"details>summary:first-of-type"),i=r?e.parentElement:e;if(re.call(i,"details:not([open]) *"))return!0;if(!s||s==="full"||s==="legacy-full"){if(typeofn=="function"){for(varo=e;e;){varc=e.parentElement,l=Ne(e);if(c&&!c.shadowRoot&&n(c)===!0)returnot(e);e.assignedSlot?e=e.assignedSlot:!c&&l!==e.ownerDocument?e=l.host:e=c}e=o}if(ms(e))return!e.getClientRects().length;if(s!=="legacy-full")return!0}elseif(s==="non-zero-are