vendor: 2,438 bytes, lines 1-4
1/*! 2* tabbable 6.0.1 3* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE 4*/var z=["input","select","textarea","a[href]","button","[tabindex]:not(slot)","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])',"details>summary:first-of-type","details"],I=z.join(","),X=typeof Element>"u",N=X?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,O=!X&&Element.prototype.getRootNode?function(i){return i.getRootNode()}:function(i){return i.ownerDocument},J=function(e,t,a){var o=Array.prototype.slice.apply(e.querySelectorAll(I));return t&&N.call(e,I)&&o.unshift(e),o=o.filter(a),o},Q=function i(e,t,a){for(var o=[],c=Array.from(e);c.length;){var r=c.shift();if(r.tagName==="SLOT"){var d=r.assignedElements(),v=d.length?d:r.children,p=i(v,!0,a);a.flatten?o.push.apply(o,p):o.push({scopeParent:r,candidates:p})}else{var T=N.call(r,I);T&&a.filter(r)&&(t||!e.includes(r))&&o.push(r);var y=r.shadowRoot||typeof a.getShadowRoot=="function"&&a.getShadowRoot(r),F=!a.shadowRootFilter||a.shadowRootFilter(r);if(y&&F){var m=i(y===!0?r.children:y.children,!0,a);a.flatten?o.push.apply(o,m):o.push({scopeParent:r,candidates:m})}else c.unshift.apply(c,r.children)}}return o},_=function(e,t){return e.tabIndex<0&&(t||/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||e.isContentEditable)&&isNaN(parseInt(e.getAttribute("tabindex"),10))?0:e.tabIndex},ie=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},ee=function(e){return e.tagName==="INPUT"},oe=function(e){return ee(e)&&e.type==="hidden"},ue=function(e){var t=e.tagName==="DETAILS"&&Array.prototype.slice.apply(e.children).some(function(a){return a.tagName==="SUMMARY"});return t},ce=function(e,t){for(var a=0;a<e.length;a++)if(e[a].checked&&e[a].form===t)return e[a]},se=function(e){if(!e.name)return!0;var t=e.form||O(e),a=function(d){return t.querySelectorAll('input[type="radio"][name="'+d+'"]')},o;if(typeof window<"u"&&typeof window.CSS<"u"&&typeof window.CSS.escape=="function")o=a(window.CSS.escape(e.name));else try{o=a(e.name)}catch(r){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",r.message),!1}var c=ce(o,e.form);return!c||c===e},le=function(e){return ee(e)&&e.type==="radio"},fe=function(e){return le(e)&&!se(e)}
vendor: 10,218 bytes, lines 4-7
4,de=function(e){for(var t,a=O(e).host,o=!!((t=a)!==null&&t!==void 0&&t.ownerDocument.contains(a)||e.ownerDocument.contains(e));!o&&a;){var c;a=O(a).host,o=!!((c=a)!==null&&c!==void 0&&c.ownerDocument.contains(a))}return o},U=function(e){var t=e.getBoundingClientRect(),a=t.width,o=t.height;return a===0&&o===0},be=function(e,t){var a=t.displayCheck,o=t.getShadowRoot;if(getComputedStyle(e).visibility==="hidden")return!0;var c=N.call(e,"details>summary:first-of-type"),r=c?e.parentElement:e;if(N.call(r,"details:not([open]) *"))return!0;if(!a||a==="full"||a==="legacy-full"){if(typeof o=="function"){for(var d=e;e;){var v=e.parentElement,p=O(e);if(v&&!v.shadowRoot&&o(v)===!0)return U(e);e.assignedSlot?e=e.assignedSlot:!v&&p!==e.ownerDocument?e=p.host:e=v}e=d}if(de(e))return!e.getClientRects().length;if(a!=="legacy-full")return!0}else if(a==="non-zero-area")return U(e);return!1},ve=function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if(t.tagName==="FIELDSET"&&t.disabled){for(var a=0;a<t.children.length;a++){var o=t.children.item(a);if(o.tagName==="LEGEND")return N.call(t,"fieldset[disabled] *")?!0:!o.contains(e)}return!0}t=t.parentElement}return!1},A=function(e,t){return!(t.disabled||oe(t)||be(t,e)||ue(t)||ve(t))},K=function(e,t){return!(fe(t)||_(t)<0||!A(e,t))},he=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(t)||t>=0)},pe=function i(e){var t=[],a=[];return e.forEach(function(o,c){var r=!!o.scopeParent,d=r?o.scopeParent:o,v=_(d,r),p=r?i(o.candidates):d;v===0?r?t.push.apply(t,p):t.push(d):a.push({documentOrder:c,tabIndex:v,item:o,isScope:r,content:p})}),a.sort(ie).reduce(function(o,c){return c.isScope?o.push.apply(o,c.content):o.push(c.content),o},[]).concat(t)},ge=function(e,t){t=t||{};var a;return t.getShadowRoot?a=Q([e],t.includeContainer,{filter:K.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:he}):a=J(e,t.includeContainer,K.bind(null,t)),pe(a)},ye=function(e,t){t=t||{};var a;return t.getShadowRoot?a=Q([e],t.includeContainer,{filter:A.bind(null,t),flatten:!0,getShadowRoot:t.getShadowRoot}):a=J(e,t.includeContainer,A.bind(null,t)),a},C=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return N.call(e,I)===!1?!1:K(t,e)},me=z.concat("iframe").join(","),L=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return N.call(e,me)===!1?!1:A(t,e)};/*! 5* focus-trap 7.2.0 6* @license MIT, https://github.com/focus-trap/focus-trap/blob/master/LICENSE 7*/function V(i,e){var t=Object.keys(i);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(i);e&&(a=a.filter(function(o){return Object.getOwnPropertyDescriptor(i,o).enumerable})),t.push.apply(t,a)}return t}function Y(i){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?V(Object(t),!0).forEach(function(a){we(i,a,t[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(t)):V(Object(t)).forEach(function(a){Object.defineProperty(i,a,Object.getOwnPropertyDescriptor(t,a))})}return i}function we(i,e,t){return e=Fe(e),e in i?Object.defineProperty(i,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):i[e]=t,i}function Te(i,e){if(typeof i!="object"||i===null)return i;var t=i[Symbol.toPrimitive];if(t!==void 0){var a=t.call(i,e||"default");if(typeof a!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(i)}function Fe(i){var e=Te(i,"string");return typeof e=="symbol"?e:String(e)}var $={activateTrap:function(e,t){if(e.length>0){var a=e[e.length-1];a!==t&&a.pause()}var o=e.indexOf(t);o===-1||e.splice(o,1),e.push(t)},deactivateTrap:function(e,t){var a=e.indexOf(t);a!==-1&&e.splice(a,1),e.length>0&&e[e.length-1].unpause()}},Ne=function(e){return e.tagName&&e.tagName.toLowerCase()==="input"&&typeof e.select=="function"},Se=function(e){return e.key==="Escape"||e.key==="Esc"||e.keyCode===27},D=function(e){return e.key==="Tab"||e.keyCode===9},Ee=function(e){return D(e)&&!e.shiftKey},De=function(e){return D(e)&&e.shiftKey},W=function(e){return setTimeout(e,0)},Z=function(e,t){var a=-1;return e.every(function(o,c){return t(o)?(a=c,!1):!0}),a},E=function(e){for(var t=arguments.length,a=new Array(t>1?t-1:0),o=1;o<t;o++)a[o-1]=arguments[o];return typeof e=="function"?e.apply(void 0,a):e},k=function(e){return e.target.shadowRoot&&typeof e.composedPath=="function"?e.composedPath()[0]:e.target},Re=[],Ce=function(e,t){var a=(t==null?void 0:t.document)||document,o=(t==null?void 0:t.trapStack)||Re,c=Y({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,isKeyForward:Ee,isKeyBackward:De},t),r={containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,delayInitialFocusTimer:void 0},d,v=function(n,u,s){return n&&n[u]!==void 0?n[u]:c[s||u]},p=function(n){return r.containerGroups.findIndex(function(u){var s=u.container,l=u.tabbableNodes;return s.contains(n)||l.find(function(f){return f===n})})},T=function(n){var u=c[n];if(typeof u=="function"){for(var s=arguments.length,l=new Array(s>1?s-1:0),f=1;f<s;f++)l[f-1]=arguments[f];u=u.apply(void 0,l)}if(u===!0&&(u=void 0),!u){if(u===void 0||u===!1)return u;throw new Error("`".concat(n,"` was specified but was not a node, or did not return a node"))}var h=u;if(typeof u=="string"&&(h=a.querySelector(u),!h))throw new Error("`".concat(n,"` as selector refers to no known node"));return h},y=function(){var n=T("initialFocus");if(n===!1)return!1;if(n===void 0)if(p(a.activeElement)>=0)n=a.activeElement;else{var u=r.tabbableGroups[0],s=u&&u.firstTabbableNode;n=s||T("fallbackFocus")}if(!n)throw new Error("Your focus-trap needs to have at least one focusable element");return n},F=function(){if(r.containerGroups=r.containers.map(function(n){var u=ge(n,c.tabbableOptions),s=ye(n,c.tabbableOptions);return{container:n,tabbableNodes:u,focusableNodes:s,firstTabbableNode:u.length>0?u[0]:null,lastTabbableNode:u.length>0?u[u.length-1]:null,nextTabbableNode:function(f){var h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,g=s.findIndex(function(w){return w===f});if(!(g<0))return h?s.slice(g+1).find(function(w){return C(w,c.tabbableOptions)}):s.slice(0,g).reverse().find(function(w){return C(w,c.tabbableOptions)})}}}),r.tabbableGroups=r.containerGroups.filter(function(n){return n.tabbableNodes.length>0}),r.tabbableGroups.length<=0&&!T("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times")},m=function b(n){if(n!==!1&&n!==a.activeElement){if(!n||!n.focus){b(y());return}n.focus({preventScroll:!!c.preventScroll}),r.mostRecentlyFocusedNode=n,Ne(n)&&n.select()}},B=function(n){var u=T("setReturnFocus",n);return u||(u===!1?!1:n)},R=function(n){var u=k(n);if(!(p(u)>=0)){if(E(c.clickOutsideDeactivates,n)){d.deactivate({returnFocus:c.returnFocusOnDeactivate&&!L(u,c.tabbableOptions)});return}E(c.allowOutsideClick,n)||n.preventDefault()}},j=function(n){var u=k(n),s=p(u)>=0;s||u instanceof Document?s&&(r.mostRecentlyFocusedNode=u):(n.stopImmediatePropagation(),m(r.mostRecentlyFocusedNode||y()))},te=function(n){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,s=k(n);F();var l=null;if(r.tabbableGroups.length>0){var f=p(s),h=f>=0?r.containerGroups[f]:void 0;if(f<0)u?l=r.tabbableGroups[r.tabbableGroups.length-1].lastTabbableNode:l=r.tabbableGroups[0].firstTabbableNode;else if(u){var g=Z(r.tabbableGroups,function(P){var x=P.firstTabbableNode;return s===x});if(g<0&&(h.container===s||L(s,c.tabbableOptions)&&!C(s,c.tabbableOptions)&&!h.nextTabbableNode(s,!1))&&(g=f),g>=0){var w=g===0?r.tabbableGroups.length-1:g-1,ae=r.tabbableGroups[w];l=ae.lastTabbableNode}else D(n)||(l=h.nextTabbableNode(s,!1))}else{var S=Z(r.tabbableGroups,function(P){var x=P.lastTabbableNode;return s===x});if(S<0&&(h.container===s||L(s,c.tabbableOptions)&&!C(s,c.tabbableOptions)&&!h.nextTabbableNode(s))&&(S=f),S>=0){var re=S===r.tabbableGroups.length-1?0:S+1,ne=r.tabbableGroups[re];l=ne.firstTabbableNode}else D(n)||(l=h.nextTabbableNode(s))}}else l=T("fallbackFocus");l&&(D(n)&&n.preventDefault(),m(l))},M=function(n){if(Se(n)&&E(c.escapeDeactivates,n)!==!1){n.preventDefault(),d.deactivate();return}(c.isKeyForward(n)||c.isKeyBackward(n))&&te(n,c.isKeyBackward(n))},q=function(n){var u=k(n);p(u)>=0||E(c.clickOutsideDeactivates,n)||E(c.allowOutsideClick,n)||(n.preventDefault(),n.stopImmediatePropagation())},G=function(){if(r.active)return $.activateTrap(o,d),r.delayInitialFocusTimer=c.delayInitialFocus?W(function(){m(y())}):m(y()),a.addEventListener("focusin",j,!0),a.addEventListener("mousedown",R,{capture:!0,passive:!1}),a.addEventListener("touchstart",R,{capture:!0,passive:!1}),a.addEventListener("click",q,{capture:!0,passive:!1}),a.addEventListener("keydown",M,{capture:!0,passive:!1}),d},H=function(){if(r.active)return a.removeEventListener("focusin",j,!0),a.removeEventListener("mousedown",R,!0),a.removeEventListener("touchstart",R,!0),a.removeEventListener("click",q,!0),a.removeEventListener("keydown",M,!0),d};return d={get active(){return r.active},get paused(){return r.paused},activate:function(n){if(r.active)return this;var u=v(n,"onActivate"),s=v(n,"onPostActivate"),l=v(n,"checkCanFocusTrap");l||F(),r.active=!0,r.paused=!1,r.nodeFocusedBeforeActivation=a.activeElement,u&&u();var f=function(){l&&F(),G(),s&&s()};return l?(l(r.containers.concat()).then(f,f),this):(f(),this)},deactivate:function(n){if(!r.active)return this;var u=Y({onDeactivate:c.onDeactivate,onPostDeactivate:c.onPostDeactivate,checkCanReturnFocus:c.checkCanReturnFocus},n);clearTimeout(r.delayInitialFocusTimer),r.delayInitialFocusTimer=void 0,H(),r.active=!1,r.paused=!1,$.deactivateTrap(o,d);var s=v(u,"onDeactivate"),l=v(u,"onPostDeactivate"),f=v(u,"checkCanReturnFocus"),h=v(u,"returnFocus","returnFocusOnDeactivate");s&&s();var g=function(){W(function(){h&&m(B(r.nodeFocusedBeforeActivation)),l&&l()})};return h&&f?(f(B(r.nodeFocusedBeforeActivation)).then(g,g),this):(g(),this)},pause:function(){return r.paused||!r.active?this:(r.paused=!0,H(),this)},unpause:function(){return!r.paused||!r.active?this:(r.paused=!1,F(),G(),this)}
7,updateContainerElements:function(n){var u=[].concat(n).filter(Boolean);return r.containers=u.map(function(s){return typeof s=="string"?a.querySelector(s):s}),r.active&&F(),this}},d.updateContainerElements(e),d};export{Ce as c};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.