PageSourceSearch

https://www.cm-stirso.pt/assets/wm-smile/javascripts/frontoffice/focus-trap-69a05f2a6a.min.js

js cm-stirso.pt collected 2026-10-02 04:43:45 UTC 20,905 bytes, 9 lines download raw bytes

vendor: 5,824 bytes, lines 1-4
1/*!
2* tabbable 6.5.0
3* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
4*/(function(k,S){typeof exports=="object"&&typeof module<"u"?S(exports):typeof define=="function"&&define.amd?define(["exports"],S):(k=typeof globalThis<"u"?globalThis:k||self,(function(){var O=k.tabbable,x=k.tabbable={};S(x),x.noConflict=function(){return k.tabbable=O,x}})())})(this,(function(k){"use strict";var S=["input:not([inert]):not([inert] *)","select:not([inert]):not([inert] *)","textarea:not([inert]):not([inert] *)","a[href]:not([inert]):not([inert] *)","area[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] *)"],O=S.join(","),x=typeof Element>"u",B=x?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,H=!x&&Element.prototype.getRootNode?function(d){var e;return d==null||(e=d.getRootNode)===null||e===void 0?void 0:e.call(d)}:function(d){return d?.ownerDocument},Z=function(e,n){var u;n===void 0&&(n=!0);var c=e==null||(u=e.getAttribute)===null||u===void 0?void 0:u.call(e,"inert"),m=c===""||c==="true",p=m||n&&e&&(typeof e.closest=="function"?e.closest("[inert]"):Z(e.parentNode));return p},ae=function(e){var n,u=e==null||(n=e.getAttribute)===null||n===void 0?void 0:n.call(e,"contenteditable");return u===""||u==="true"},z=function(e,n,u){if(Z(e))return[];var c=Array.prototype.slice.apply(e.querySelectorAll(O));return n&&B.call(e,O)&&c.unshift(e),c=c.filter(u),c},G=function(e,n,u){for(var c=[],m=Array.from(e);m.length;){var p=m.shift();if(!Z(p,!1))if(p.tagName==="SLOT"){var A=p.assignedElements(),D=A.length?A:p.children,C=G(D,!0,u);u.flatten?c.push.apply(c,C):c.push({scopeParent:p,candidates:C})}else{var M=B.call(p,O);M&&u.filter(p)&&(n||!e.includes(p))&&c.push(p);var R=p.shadowRoot||typeof u.getShadowRoot=="function"&&u.getShadowRoot(p),W=!Z(R,!1)&&(!u.shadowRootFilter||u.shadowRootFilter(p));if(R&&W){var $=G(R===!0?p.children:R.children,!0,u);u.flatten?c.push.apply(c,$):c.push({scopeParent:p,candidates:$})}else m.unshift.apply(m,p.children)}}return c},Q=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},X=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||ae(e))&&!Q(e)?0:e.tabIndex},re=function(e,n){var u=X(e);return u<0&&n&&!Q(e)?0:u},ee=function(e,n){return e.tabIndex===n.tabIndex?e.documentOrder-n.documentOrder:e.tabIndex-n.tabIndex},j=function(e){return e.tagName==="INPUT"},ne=function(e){return j(e)&&e.type==="hidden"},ie=function(e){var n=e.tagName==="DETAILS"&&Array.prototype.slice.apply(e.children).some(function(u){return u.tagName==="SUMMARY"});return n},q=function(e,n){for(var u=0;u<e.length;u++)if(e[u].checked&&e[u].form===n)return e[u]},oe=function(e){if(!e.name)return!0;var n=e.form||H(e),u=function(A){return n.querySelectorAll('input[type="radio"][name="'+A+'"]')},c;if(typeof window<"u"&&typeof window.CSS<"u"&&typeof window.CSS.escape=="function")c=u(window.CSS.escape(e.name));else try{c=u(e.name)}catch(p){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",p.message),!1}var m=q(c,e.form);return!m||m===e},ue=function(e){return j(e)&&e.type==="radio"},te=function(e){return ue(e)&&!oe(e)},V=function(e){var n,u=e&&H(e),c=(n=u)===null||n===void 0?void 0:n.host,m=!1;if(u&&u!==e){var p,A,D;for(m=!!((p=c)!==null&&p!==void 0&&(A=p.ownerDocument)!==null&&A!==void 0&&A.contains(c)||e!=null&&(D=e.ownerDocument)!==null&&D!==void 0&&D.contains(e));!m&&c;){var C,M,R;u=H(c),c=(C=u)===null||C===void 0?void 0:C.host,m=!!((M=c)!==null&&M!==void 0&&(R=M.ownerDocument)!==null&&R!==void 0&&R.contains(c))}}return m},U=function(e){var n=e.getBoundingClientRect(),u=n.width,c=n.height;return u===0&&c===0},se=function(e,n){var u=n.displayCheck,c=n.getShadowRoot;if(u==="full-native"&&"checkVisibility"in e){var m=e.checkVisibility({checkOpacity:!1,opacityProperty:!1,contentVisibilityAuto:!0,visibilityProperty:!0,checkVisibilityCSS:!0});return!m}var p=getComputedStyle(e),A=p.visibility;if(A==="hidden"||A==="collapse")return!0;var D=B.call(e,"details>summary:first-of-type"),C=D?e.parentElement:e;if(B.call(C,"details:not([open]) *"))return!0;if(!u||u==="full"||u==="full-native"||u==="legacy-full"){if(typeof c=="function"){for(var M=e;e;){var R=e.parentElement,W=H(e);if(R&&!R.shadowRoot&&c(R)===!0)return U(e);e.assignedSlot?e=e.assignedSlot:!R&&W!==e.ownerDocument?e=W.host:e=R}e=M}if(V(e))return!e.getClientRects().length;if(u!=="legacy-full")return!0}else if(u==="non-zero-area")return U(e);return!1},le=function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var n=e.parentElement;n;){if(n.tagName==="FIELDSET"&&n.disabled){for(var u=0;u<n.children.length;u++){var c=n.children.item(u);if(c.tagName==="LEGEND")return B.call(n,"fieldset[disabled] *")?!0:!c.contains(e)}return!0}n=n.parentElement}return!1},o=function(e,n){return!(n.disabled||ne(n)||se(n,e)||ie(n)||le(n))},r=function(e,n){return!(te(n)||X(n)<0||!o(e,n))},s=function(e){var n=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(n)||n>=0)},f=function(e){var n=[],u=[];return e.forEach(function(c,m){var p=!!c.scopeParent,A=p?c.scopeParent:c,D=re(A,p),C=p?f(c.candidates):A;D===0?p?n.push.apply(n,C):n.push(A):u.push({documentOrder:m,tabIndex:D,item:c,isScope:p,content:C})}),u.sort(ee).reduce(function(c,m){return m.isScope?c.push.apply(c,m.content):c.push(m.content),c},[]).concat(n)}
4,E=function(e,n){n=n||{};var u;return n.getShadowRoot?u=G([e],n.includeContainer,{filter:r.bind(null,n),flatten:!1,getShadowRoot:n.getShadowRoot,shadowRootFilter:s}):u=z(e,n.includeContainer,r.bind(null,n)),f(u)},b=function(e,n){n=n||{};var u;return n.getShadowRoot?u=G([e],n.includeContainer,{filter:o.bind(null,n),flatten:!0,getShadowRoot:n.getShadowRoot}):u=z(e,n.includeContainer,o.bind(null,n)),u},i=function(e,n){if(n=n||{},!e)throw new Error("No node provided");return B.call(e,O)===!1?!1:r(n,e)},F=S.concat("iframe:not([inert]):not([inert] *)").join(","),I=function(e,n){if(n=n||{},!e)throw new Error("No node provided");return B.call(e,F)===!1?!1:o(n,e)};k.focusable=b,k.getTabIndex=X,k.isFocusable=I,k.isTabbable=i,k.tabbable=E}));/*!
5* focus-trap 7.8.0
6* @license MIT, https://github.com/focus-trap/focus-trap/blob/master/LICENSE
7*/(function(k,S){typeof exports=="object"&&typeof module<"u"?S(exports,require("tabbable")):typeof define=="function"&&define.amd?define(["exports","tabbable"],S):(k=typeof globalThis<"u"?globalThis:k||self,(function(){var O=k.focusTrap,x=k.focusTrap={};S(x,k.tabbable),x.noConflict=function(){return k.focusTrap=O,x}})())})(this,(function(k,S){"use strict";function O(o,r){(r==null||r>o.length)&&(r=o.length);for(var s=0,f=Array(r);s<r;s++)f[s]=o[s];return f}function x(o){if(Array.isArray(o))return O(o)}function B(o,r){var s=typeof Symbol<"u"&&o[Symbol.iterator]||o["@@iterator"];if(!s){if(Array.isArray(o)||(s=ee(o))||r){s&&(o=s);var f=0,E=function(){};return{s:E,n:function(){return f>=o.length?{done:!0}:{done:!1,value:o[f++]}},e:function(I){throw I},f:E}
vendor: 4,222 bytes, lines 7-9
7}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
8In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var b,i=!0,F=!1;return{s:function(){s=s.call(o)},n:function(){var I=s.next();return i=I.done,I},e:function(I){F=!0,b=I},f:function(){try{i||s.return==null||s.return()}finally{if(F)throw b}}}}function H(o,r,s){return(r=re(r))in o?Object.defineProperty(o,r,{value:s,enumerable:!0,configurable:!0,writable:!0}):o[r]=s,o}function Z(o){if(typeof Symbol<"u"&&o[Symbol.iterator]!=null||o["@@iterator"]!=null)return Array.from(o)}function ae(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
9In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function z(o,r){var s=Object.keys(o);if(Object.getOwnPropertySymbols){var f=Object.getOwnPropertySymbols(o);r&&(f=f.filter(function(E){return Object.getOwnPropertyDescriptor(o,E).enumerable})),s.push.apply(s,f)}return s}function G(o){for(var r=1;r<arguments.length;r++){var s=arguments[r]!=null?arguments[r]:{};r%2?z(Object(s),!0).forEach(function(f){H(o,f,s[f])}):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(s)):z(Object(s)).forEach(function(f){Object.defineProperty(o,f,Object.getOwnPropertyDescriptor(s,f))})}return o}function Q(o){return x(o)||Z(o)||ee(o)||ae()}function X(o,r){if(typeof o!="object"||!o)return o;var s=o[Symbol.toPrimitive];if(s!==void 0){var f=s.call(o,r);if(typeof f!="object")return f;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(o)}function re(o){var r=X(o,"string");return typeof r=="symbol"?r:r+""}function ee(o,r){if(o){if(typeof o=="string")return O(o,r);var s={}.toString.call(o).slice(8,-1);return s==="Object"&&o.constructor&&(s=o.constructor.name),s==="Map"||s==="Set"?Array.from(o):s==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s)?O(o,r):void 0}}var j={getActiveTrap:function(r){return r?.length>0?r[r.length-1]:null},activateTrap:function(r,s){var f=j.getActiveTrap(r);s!==f&&j.pauseTrap(r);var E=r.indexOf(s);E===-1||r.splice(E,1),r.push(s)},deactivateTrap:function(r,s){var f=r.indexOf(s);f!==-1&&r.splice(f,1),j.unpauseTrap(r)},pauseTrap:function(r){var s=j.getActiveTrap(r);s?._setPausedState(!0)},unpauseTrap:function(r){var s=j.getActiveTrap(r);s&&!s._isManuallyPaused()&&s._setPausedState(!1)}},ne=function(r){return r.tagName&&r.tagName.toLowerCase()==="input"&&typeof r.select=="function"},ie=function(r){return r?.key==="Escape"||r?.key==="Esc"||r?.keyCode===27},q=function(r){return r?.key==="Tab"||r?.keyCode===9},oe=function(r){return q(r)&&!r.shiftKey},ue=function(r){return q(r)&&r.shiftKey},te=function(r){return setTimeout(r,0)},V=function(r){for(var s=arguments.length,f=new Array(s>1?s-1:0),E=1;E<s;E++)f[E-1]=arguments[E];return typeof r=="function"?r.apply(void 0,f):r},U=function(r){return r.target.shadowRoot&&typeof r.composedPath=="function"?r.composedPath()[0]:r.target},se=[],le=function(r,s){var f=s?.document||document,E=s?.trapStack||se,b=G({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,isolateSubtrees:!1,isKeyForward:oe,isKeyBackward:ue},s),i={containers:[],containerGroups:[],tabbableGroups:[],adjacentElements:new Set,alreadySilent:new Set,nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,manuallyPaused:!1,delayInitialFocusTimer:void 0,recentNavEvent:void 0},F,I=function(t,a,l){return t&&t[a]!==void 0?t[a]:b[l||a]},d=function(t,a){var l=typeof a?.composedPath=="function"?a.composedPath():void 0;return i.containerGroups.findIndex(function(y){var h=y.container,g=y.tabbableNodes;return h.contains(t)||l?.includes(h)||g.find(function(v){return v===t})})},e=function(t){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},l=a.hasFallback,y=l===void 0?!1:l,h=a.params,g=h===void 0?[]:h,v=b[t];if(typeof v=="function"&&(v=v.apply(void 0,Q(g))),v===!0&&(v=void 0),!v){if(v===void 0||v===!1)return v;throw new Error("`".concat(t,"` was specified but was not a node, or did not return a node"))}var T=v;if(typeof v=="string"){try{T=f.querySelector(v)}catch(w){throw new Error("`".concat(t,'` appears to be an invali
9d selector; error="').concat(w.message,'"'))}if(!T&&!y)throw new Error("`".concat(t,"` as selector refers to no known node"))}return T},n=function(){var t=e("initialFocus",{hasFallback:!0});if(t===!1)return!1;if(t===void 0||t&&!S.isFocusable(t,b.tabbableOptions))if(d(f.activeElement)>=0)t=f.activeElement;else{var a=i.tabbableGroups[0],l=a&&a.firstTabbableNode;t=l||e("fallbackFocus")}else t===null&&(t=e("fallbackFocus"));if(!t)throw new Error("Your focus-trap needs to have at least one focusable element");return t},u=function(){if(i.containerGroups=i.containers.map(function(t){var a=S.tabbable(t,b.tabbableOptions),l=S.focusable(t,b.tabbableOptions),y=a.length>0?a[0]:void 0,h=a.length>0?a[a.length-1]:void 0,g=l.find(function(w){return S.isTabbable(w)}),v=l.slice().reverse().find(function(w){return S.isTabbable(w)}),T=!!a.find(function(w){return S.getTabIndex(w)>0});return{container:t,tabbableNodes:a,focusableNodes:l,posTabIndexesFound:T,firstTabbableNode:y,lastTabbableNode:h,firstDomTabbableNode:g,lastDomTabbableNode:v,nextTabbableNode:function(P){var K=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,L=a.indexOf(P);return L<0?K?l.slice(l.indexOf(P)+1).find(function(Y){return S.isTabbable(Y)}):l.slice(0,l.indexOf(P)).reverse().find(function(Y){return S.isTabbable(Y)}):a[L+(K?1:-1)]}}}),i.tabbableGroups=i.containerGroups.filter(function(t){return t.tabbableNodes.length>0}),i.tabbableGroups.length<=0&&!e("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times");if(i.containerGroups.find(function(t){return t.posTabIndexesFound})&&i.containerGroups.length>1)throw new Error("At least one node with a positive tabindex was found in one of your focus-trap's multiple containers. Positive tabindexes are only supported in single-container focus-traps.")},c=function(t){var a=t.activeElement;if(a)return a.shadowRoot&&a.shadowRoot.activeElement!==null?c(a.shadowRoot):a},m=function(t){if(t!==!1&&t!==c(document)){if(!t||!t.focus){m(n());return}t.focus({preventScroll:!!b.preventScroll}),i.mostRecentlyFocusedNode=t,ne(t)&&t.select()}},p=function(t){var a=e("setReturnFocus",{params:[t]});return a||(a===!1?!1:t)},A=function(t){var a=t.target,l=t.event,y=t.isBackward,h=y===void 0?!1:y;a=a||U(l),u();var g=null;if(i.tabbableGroups.length>0){var v=d(a,l),T=v>=0?i.containerGroups[v]:void 0;if(v<0)h?g=i.tabbableGroups[i.tabbableGroups.length-1].lastTabbableNode:g=i.tabbableGroups[0].firstTabbableNode;else if(h){var w=i.tabbableGroups.findIndex(function(fe){var de=fe.firstTabbableNode;return a===de});if(w<0&&(T.container===a||S.isFocusable(a,b.tabbableOptions)&&!S.isTabbable(a,b.tabbableOptions)&&!T.nextTabbableNode(a,!1))&&(w=v),w>=0){var P=w===0?i.tabbableGroups.length-1:w-1,K=i.tabbableGroups[P];g=S.getTabIndex(a)>=0?K.lastTabbableNode:K.lastDomTabbableNode}else q(l)||(g=T.nextTabbableNode(a,!1))}else{var L=i.tabbableGroups.findIndex(function(fe){var de=fe.lastTabbableNode;return a===de});if(L<0&&(T.container===a||S.isFocusable(a,b.tabbableOptions)&&!S.isTabbable(a,b.tabbableOptions)&&!T.nextTabbableNode(a))&&(L=v),L>=0){var Y=L===i.tabbableGroups.length-1?0:L+1,_=i.tabbableGroups[Y];g=S.getTabIndex(a)>=0?_.firstTabbableNode:_.firstDomTabbableNode}else q(l)||(g=T.nextTabbableNode(a))}}else g=e("fallbackFocus");return g},D=function(t){var a=U(t);if(!(d(a,t)>=0)){if(V(b.clickOutsideDeactivates,t)){F.deactivate({returnFocus:b.returnFocusOnDeactivate});return}V(b.allowOutsideClick,t)||t.preventDefault()}},C=function(t){var a=U(t),l=d(a,t)>=0;if(l||a instanceof Document)l&&(i.mostRecentlyFocusedNode=a);else{t.stopImmediatePropagation();var y,h=!0;if(i.mostRecentlyFocusedNode)if(S.getTabIndex(i.mostRecentlyFocusedNode)>0){var g=d(i.mostRecentlyFocusedNode),v=i.containerGroups[g].tabbableNodes;if(v.length>0){var T=v.findIndex(function(w){return w===i.mostRecentlyFocusedNode});T>=0&&(b.isKeyForward(i.recentNavEvent)?T+1<v.length&&(y=v[T+1],h=!1):T-1>=0&&(y=v[T-1],h=!1))}}else i.containerGroups.some(function(w){return w.tabbableNodes.some(function(P){return S.getTabIndex(P)>0})})||(h=!1);else h=!1;h&&(y=A({target:i.mostRecentlyFocusedNode,isBackward:b.isKeyBackward(i.recentNavEvent)})),m(y||i.mostRecentlyFocusedNode||n())}i.recentNavEvent=void 0},M=function(t){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;i.recentNavEvent=t;var l=A({event:t,isBackward:a});l&&(q(t)&&t.preventDefault(),m(l))},R=function(t){(b.isKeyForward(t)||b.isKeyBackward(t))&&M(t,b.isKeyBackward(t))},W=function(t){ie(t)&&V(b.escapeDeactivates,t)!==!1&&(t.preventDefault(),F.deactivate())},$=function(t){var a=U(t);d(a,t)>=0||V(b.clickOutsideDeactivates,t)||V(b.allowOutsideClick,t)||(t.preventDefault(),t.stopImmediatePropagation())},ve=function(){if(i.active)return j.activateTrap(E,F),i.delayInitialFocusTimer=b.delayInitialFocus?te(function(){m(n())}):m(n()),f.addEventListener("focusin",C,!0),f.addEventListener("mousedown",D,{capture:!0,passive:!1}),f.addEventListener("touchstart",D,{capture:!0,passive:!1}),f.addEventListener("click",$,{capture:!0,passive:!1}),f.addEventListener("keydown",R,{capture:!0,passive:!1}),f.addEventListener("keydown",W),F},he=function(t){i.active&&!i.paused&&F._setSubtreeIsolation(!1),i.adjacentElements.clear(),i.alreadySilent.clear();var a=new Set,l=new Set,y=B(t),h;try{for(y.s();!(h=y.n()).done;){var g=h.value;a.add(g);for(var v=typeof ShadowRoot<"u"&&g.getRootNode()instanceof ShadowRoot,T=g;T;){a.add(T);var w=T.parentElement,P=[];w?P=w.children:!w&&v&&(P=T.getRootNode().children,w=T.getRootNode().host,v=typeof ShadowRoot<"u"&&w.getRootNode()instanceof ShadowRoot);var K=B(P),L;try{for(K.s();!(L=K.n()).done;){var Y=L.value;l.add(Y)}}catch(_){K.e(_)}finally{K.f()}T=w}}}catch(_){y.e(_)}finally{y.f()}
vendor: 3,489 bytes, line 9
9a.forEach(function(_){l.delete(_)}),i.adjacentElements=l},be=function(){if(i.active)return f.removeEventListener("focusin",C,!0),f.removeEventListener("mousedown",D,!0),f.removeEventListener("touchstart",D,!0),f.removeEventListener("click",$,!0),f.removeEventListener("keydown",R,!0),f.removeEventListener("keydown",W),F},pe=function(t){var a=t.some(function(l){var y=Array.from(l.removedNodes);return y.some(function(h){return h===i.mostRecentlyFocusedNode})});a&&m(n())},ce=typeof window<"u"&&"MutationObserver"in window?new MutationObserver(pe):void 0,J=function(){ce&&(ce.disconnect(),i.active&&!i.paused&&i.containers.map(function(t){ce.observe(t,{subtree:!0,childList:!0})}))};return F={get active(){return i.active},get paused(){return i.paused},activate:function(t){if(i.active)return this;var a=I(t,"onActivate"),l=I(t,"onPostActivate"),y=I(t,"checkCanFocusTrap"),h=j.getActiveTrap(E),g=!1;if(h&&!h.paused){var v;(v=h._setSubtreeIsolation)===null||v===void 0||v.call(h,!1),g=!0}try{y||u(),i.active=!0,i.paused=!1,i.nodeFocusedBeforeActivation=c(f),a?.();var T=function(){y&&u(),ve(),J(),b.isolateSubtrees&&F._setSubtreeIsolation(!0),l?.()};if(y)return y(i.containers.concat()).then(T,T),this;T()}catch(P){if(h===j.getActiveTrap(E)&&g){var w;(w=h._setSubtreeIsolation)===null||w===void 0||w.call(h,!0)}throw P}return this},deactivate:function(t){if(!i.active)return this;var a=G({onDeactivate:b.onDeactivate,onPostDeactivate:b.onPostDeactivate,checkCanReturnFocus:b.checkCanReturnFocus},t);clearTimeout(i.delayInitialFocusTimer),i.delayInitialFocusTimer=void 0,i.paused||F._setSubtreeIsolation(!1),i.alreadySilent.clear(),be(),i.active=!1,i.paused=!1,J(),j.deactivateTrap(E,F);var l=I(a,"onDeactivate"),y=I(a,"onPostDeactivate"),h=I(a,"checkCanReturnFocus"),g=I(a,"returnFocus","returnFocusOnDeactivate");l?.();var v=function(){te(function(){g&&m(p(i.nodeFocusedBeforeActivation)),y?.()})};return g&&h?(h(p(i.nodeFocusedBeforeActivation)).then(v,v),this):(v(),this)},pause:function(t){return i.active?(i.manuallyPaused=!0,this._setPausedState(!0,t)):this},unpause:function(t){return i.active?(i.manuallyPaused=!1,E[E.length-1]!==this?this:this._setPausedState(!1,t)):this},updateContainerElements:function(t){var a=[].concat(t).filter(Boolean);return i.containers=a.map(function(l){return typeof l=="string"?f.querySelector(l):l}),b.isolateSubtrees&&he(i.containers),i.active&&(u(),b.isolateSubtrees&&!i.paused&&F._setSubtreeIsolation(!0)),J(),this}},Object.defineProperties(F,{_isManuallyPaused:{value:function(){return i.manuallyPaused}},_setPausedState:{value:function(t,a){if(i.paused===t)return this;if(i.paused=t,t){var l=I(a,"onPause"),y=I(a,"onPostPause");l?.(),be(),J(),F._setSubtreeIsolation(!1),y?.()}else{var h=I(a,"onUnpause"),g=I(a,"onPostUnpause");h?.(),F._setSubtreeIsolation(!0),u(),ve(),J(),g?.()}return this}},_setSubtreeIsolation:{value:function(t){b.isolateSubtrees&&i.adjacentElements.forEach(function(a){var l;if(t)switch(b.isolateSubtrees){case"aria-hidden":(a.ariaHidden==="true"||((l=a.getAttribute("aria-hidden"))===null||l===void 0?void 0:l.toLowerCase())==="true")&&i.alreadySilent.add(a),a.setAttribute("aria-hidden","true");break;default:(a.inert||a.hasAttribute("inert"))&&i.alreadySilent.add(a),a.setAttribute("inert",!0);break}else if(!i.alreadySilent.has(a))switch(b.isolateSubtrees){case"aria-hidden":a.removeAttribute("aria-hidden");break;default:a.removeAttribute("inert");break}})}}}),F.updateContainerElements(r),F};k.createFocusTrap=le}));

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.