vart=["input:not([inert]):not([inert] *)","select:not([inert]):not([inert] *)","textarea:not([inert]):not([inert] *)","a[href]:not([inert]):not([inert] *)","button:not([inert]):not([inert] *)","[tabindex]:not(slot):not([inert]):not([inert] *)","audio[controls]:not([inert]):not([inert] *)","video[controls]:not([inert]):not([inert] *)",'[contenteditable]:not([contenteditable="false"]):not([inert]):not([inert] *)',"details>summary:first-of-type:not([inert]):not([inert] *)","details:not([inert]):not([inert] *)"],e=t.join(","),n="undefined"==typeofElement,o=n?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,r=!n&&Element.prototype.getRootNode?function(t){vare;returnnull==t||null===(e=t.getRootNode)||void0===e?void0:e.call(t)}:function(t){returnnull==t?void0:t.ownerDocument},i=function(t,e){varn;void0===e&&(e=!0);varo=null==t||null===(n=t.getAttribute)||void0===n?void0:n.call(t,"inert");return""===o||"true"===o||e&&t&&("function"==typeoft.closest?t.closest("[inert]"):i(t.parentNode))},a=function(t,n,r){if(i(t))return[];vara=Array.prototype.slice.apply(t.querySelectorAll(e));returnn&&o.call(t,e)&&a.unshift(t),a=a.filter(r)},l=function(t,n,r){for(vara=[],u=Array.from(t);u.length;){varc=u.shift();if(!i(c,!1))if("SLOT"===c.tagName){vard=c.assignedElements(),f=d.length?d:c.children,s=l(f,!0,r);r.flatten?a.push.apply(a,s):a.push({scopeParent:c,candidates:s})}else{o.call(c,e)&&r.filter(c)&&(n||!t.includes(c))&&a.push(c);varp=c.shadowRoot||"function"==typeofr.getShadowRoot&&r.getShadowRoot(c),h=!i(p,!1)&&(!r.shadowRootFilter||r.shadowRootFilter(c));if(p&&h){varv=l(!0===p?c.children:p.children,!0,r);r.flatten?a.push.apply(a,v):a.push({scopeParent:c,candidates:v})}elseu.unshift.apply(u,c.children)}}returna},u=function(t){return!isNaN(parseInt(t.getAttribute("tabindex"),10))},c=function(t){if(!t)thrownewError("No node provided");returnt.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName)||function(t){vare,n=null==t||null===(e=t.getAttribute)||void0===e?void0:e.call(t,"contenteditable");return""===n||"true"===n}(t))&&!u(t)?0:t.tabIndex},d=function(t,e){returnt.tabIndex===e.tabIndex?t.documentOrder-e.documentOrder:t.tabIndex-e.tabIndex},f=function(t){return"INPUT"===t.tagName},s=function(t){returnfunction(t){returnf(t)&&"radio"===t.type}(t)&&!function(t){if(!t.name)return!0;vare,n=t.form||r(t),o=function(t){returnn.querySelectorAll('input[type="radio"][name="'+t+'"]')};if("undefined"!=typeofwindow&&void0!==window.CSS&&"function"==typeofwindow.CSS.escape)e=o(window.CSS.escape(t.name));elsetry{e=o(t.name)}catch(t){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",t.message),!1}vari=function(t,e){for(varn=0;n<t.length;n++)if(t[n].checked&&t[n].form===e)returnt[n]}(e,t.form);return!i||i===t}(t)},p=function(t){vare=t.getBoundingClientRect(),n=e.width,o=e.height;return0===n&&0===o},h=function(t,e){varn=e.displayCheck,i=e.getShadowRoot;if("full-native"===n&&"checkVisibility"int)return!t.checkVisibility({checkOpacity:!1,opacityProperty:!1,contentVisibilityAuto:!0,visibilityProperty:!0,checkVisibilityCSS:!0});if("hidden"===getComputedStyle(t).visibility)return!0;vara=o.call(t,"details>summary:first-of-type")?t.parentElement:t;if(o.call(a,"details:not([open]) *"))return!0;if(n&&"full"!==n&&"full-native"!==n&&"legacy-full"!==n){if("non-zero-area"===n)returnp(t)}else{if("function"==typeofi){for(varl=t;t;){varu=t.parentElement,c=r(t);if(u&&!u.shadowRoot&&!0===i(u))returnp(t);t=t.assignedSlot?t.assignedSlot:u||c===t.ownerDocument?u:c.host}t=l}if(function(t){vare,n,o,i,a=t&&r(t),l=null===(e=a)||void0===e?void0:e.host,u=!1;if(a&&a!==t)for(u=!!(null!==(n=l)&&void0!==n&&null!==(o=n.ownerDocument)&&void0!==o&&o.contains(l)||null!=t&&null!==(i=t.ownerDocument)&&void0!==i&&i.contains(t));!u&&l;){varc,d,f;u=!(null===(d=l=null===(c=a=r(l))||void0===c?void0:c.host)||void0===d||null===(f=d.ownerDocument)||void0===f||!f.cont