*/var pt=["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])"],Te=pt.join(","),yt=typeof Element>"u",se=yt?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,Ne=!yt&&Element.prototype.getRootNode?function(o){var e;return o==null||(e=o.getRootNode)===null||e===void 0?void 0:e.call(o)}:function(o){return o==null?void 0:o.ownerDocument},Ce=function o(e,t){var r;t===void 0&&(t=!0);var n=e==null||(r=e.getAttribute)===null||r===void 0?void 0:r.call(e,"inert"),a=n===""||n==="true",i=a||t&&e&&o(e.parentNode);return i},nr=function(e){var t,r=e==null||(t=e.getAttribute)===null||t===void 0?void 0:t.call(e,"contenteditable");return r===""||r==="true"},mt=function(e,t,r){if(Ce(e))return[];var n=Array.prototype.slice.apply(e.querySelectorAll(Te));return t&&se.call(e,Te)&&n.unshift(e),n=n.filter(r),n},gt=function o(e,t,r){for(var n=[],a=Array.from(e);a.length;){var i=a.shift();if(!Ce(i,!1))if(i.tagName==="SLOT"){var s=i.assignedElements(),u=s.length?s:i.children,l=o(u,!0,r);r.flatten?n.push.apply(n,l):n.push({scopeParent:i,candidates:l})}else{var d=se.call(i,Te);d&&r.filter(i)&&(t||!e.includes(i))&&n.push(i);var h=i.shadowRoot||typeof r.getShadowRoot=="function"&&r.getShadowRoot(i),v=!Ce(h,!1)&&(!r.shadowRootFilter||r.shadowRootFilter(i));if(h&&v){var m=o(h===!0?i.children:h.children,!0,r);r.flatten?n.push.apply(n,m):n.push({scopeParent:i,candidates:m})}else a.unshift.apply(a,i.children)}}return n},bt=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},oe=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||nr(e))&&!bt(e)?0:e.tabIndex},ir=function(e,t){varr=oe(e);returnr<0&&t&&!bt(e)?0:r},or=function(e,t){returne.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},wt=function(e){returne.tagName==="INPUT"},sr=function(e){returnwt(e)&&e.type==="hidden"},ur=function(e){vart=e.tagName==="DETAILS"&&Array.prototype.slice.apply(e.children).some(function(r){returnr.tagName==="SUMMARY"});returnt},lr=function(e,t){for(varr=0;r<e.length;r++)if(e[r].checked&&e[r].form===t)returne[r]},cr=function(e){if(!e.name)return!0;vart=e.form||Ne(e),r=function(s){returnt.querySelectorAll('input[type="radio"][name="'+s+'"]')},n;if(typeofwindow<"u"&&typeofwindow.CSS<"u"&&typeofwindow.CSS.escape=="function")n=r(window.CSS.escape(e.name));elsetry{n=r(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}vara=lr(n,e.form);return!a||a===e},fr=function(e){returnwt(e)&&e.type==="radio"},hr=function(e){returnfr(e)&&!cr(e)},dr=function(e){vart,r=e&&Ne(e),n=(t=r)===null||t===void0?void0:t.host,a=!1;if(r&&r!==e){vari,s,u;for(a=!!((i=n)!==null&&i!==void0&&(s=i.ownerDocument)!==null&&s!==void0&&s.contains(n)||e!=null&&(u=e.ownerDocument)!==null&&u!==void0&&u.contains(e));!a&&n;){varl,d,h;r=Ne(n),n=(l=r)===null||l===void0?void0:l.host,a=!!((d=n)!==null&&d!==void0&&(h=d.ownerDocument)!==null&&h!==void0&&h.contains(n))}}returna},it=function(e){vart=e.getBoundingClientRect(),r=t.width,n=t.height;returnr===0&&n===0},vr=function(e,t){varr=t.displayCheck,n=t.getShadowRoot;if(getComputedStyle(e).visibility==="hidden")return!0;vara=se.call(e,"details>summary:first-of-type"),i=a?e.parentElement:e;if(se.call(i,"details:not([open]) *"))return!0;if(!r||r==="full"||r==="legacy-full"){if(typeofn=="function"){for(vars=e;e;){varu=e.parentElement,l=Ne(e);if(u&&!u.shadowRoot&&n(u)===!0)returnit(e);e.assignedSlot?e=e.assignedSlot:!u&&l!==e.ownerDocument?e=l.host:e=u}e=s}if(dr(e))return!e.getClientRects().length;if(r!=="legacy-full")return!0}elseif(r==="non-zero-are