PageSourceSearch

https://static.dashboard.sendbird.com/bundle/v1.914.0/chunk.Cqo0t_Sd.js

js sendbird.com collected 2026-10-01 10:20:03 UTC 33,276 bytes, 3 lines download raw bytes

1(function(){try{var e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{};e.SENTRY_RELEASE={id:`[email protected]`};var t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`f69b4032-4aba-4c5f-bb27-58b0c67fdd60`,e._sentryDebugIdIdentifier=`sentry-dbid-f69b4032-4aba-4c5f-bb27-58b0c67fdd60`)}catch{}})();import{i as e,n as t,r as n,t as r}from"./chunk.BuNTE4lC.js";import{o as i}from"./big.chunk.B5FU3Vmg.js";import{wh as a}from"./feather.chunk.DIVZ7xES.js";var o,s,c,l,u,d,f,p,m,h,g,_,v,y,b,x,S,C,w,T,E,D,ee,te,O,k,ne,A,re,ie,j,ae,M,oe=t((()=>{o=[`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] *)`],s=o.join(`,`),c=typeof Element>`u`,l=c?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,u=!c&&Element.prototype.getRootNode?function(e){return e?.getRootNode?.call(e)}:function(e){return e?.ownerDocument},d=function(e,t){t===void 0&&(t=!0);var n=e?.getAttribute?.call(e,`inert`);return n===``||n===`true`||t&&e&&(typeof e.closest==`function`?e.closest(`[inert]`):d(e.parentNode))},f=function(e){var t=e?.getAttribute?.call(e,`contenteditable`);return t===``||t===`true`},p=function(e,t,n){if(d(e))return[];var r=Array.prototype.slice.apply(e.querySelectorAll(s));return t&&l.call(e,s)&&r.unshift(e),r=r.filter(n),r},m=function(e,t,n){for(var r=[],i=Array.from(e);i.length;){var a=i.shift();if(!d(a,!1))if(a.tagName===`SLOT`){var o=a.assignedElements(),c=m(o.length?o:a.children,!0,n);
vendor: 21,079 bytes, lines 1-3
1n.flatten?r.push.apply(r,c):r.push({scopeParent:a,candidates:c})}else{l.call(a,s)&&n.filter(a)&&(t||!e.includes(a))&&r.push(a);var u=a.shadowRoot||typeof n.getShadowRoot==`function`&&n.getShadowRoot(a),f=!d(u,!1)&&(!n.shadowRootFilter||n.shadowRootFilter(a));if(u&&f){var p=m(u===!0?a.children:u.children,!0,n);n.flatten?r.push.apply(r,p):r.push({scopeParent:a,candidates:p})}else i.unshift.apply(i,a.children)}}return r},h=function(e){return!isNaN(parseInt(e.getAttribute(`tabindex`),10))},g=function(e){if(!e)throw Error(`No node provided`);return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||f(e))&&!h(e)?0:e.tabIndex},_=function(e,t){var n=g(e);return n<0&&t&&!h(e)?0:n},v=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},y=function(e){return e.tagName===`INPUT`},b=function(e){return y(e)&&e.type===`hidden`},x=function(e){return e.tagName===`DETAILS`&&Array.prototype.slice.apply(e.children).some(function(e){return e.tagName===`SUMMARY`})},S=function(e,t){for(var n=0;n<e.length;n++)if(e[n].checked&&e[n].form===t)return e[n]},C=function(e){if(!e.name)return!0;var t=e.form||u(e),n=function(e){return t.querySelectorAll(`input[type="radio"][name="`+e+`"]`)},r;if(typeof window<`u`&&window.CSS!==void 0&&typeof window.CSS.escape==`function`)r=n(window.CSS.escape(e.name));else try{r=n(e.name)}catch(e){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`,e.message),!1}var i=S(r,e.form);return!i||i===e},w=function(e){return y(e)&&e.type===`radio`},T=function(e){return w(e)&&!C(e)},E=function(e){var t=e&&u(e),n=t?.host,r=!1;if(t&&t!==e){var i,a,o;for(r=!!((i=n)!=null&&(a=i.ownerDocument)!=null&&a.contains(n)||e!=null&&(o=e.ownerDocument)!=null&&o.contains(e));!r&&n;){var s,c;t=u(n),n=t?.host,r=!!((s=n)!=null&&(c=s.ownerDocument)!=null&&c.contains(n))}}return r},D=function(e){var t=e.getBoundingClientRect(),n=t.width,r=t.height;return n===0&&r===0},ee=function(e,t){var n=t.displayCheck,r=t.getShadowRoot;if(n===`full-native`&&`checkVisibility`in e)return!e.checkVisibility({checkOpacity:!1,opacityProperty:!1,contentVisibilityAuto:!0,visibilityProperty:!0,checkVisibilityCSS:!0});if(getComputedStyle(e).visibility===`hidden`)return!0;var i=l.call(e,`details>summary:first-of-type`)?e.parentElement:e;if(l.call(i,`details:not([open]) *`))return!0;if(!n||n===`full`||n===`full-native`||n===`legacy-full`){if(typeof r==`function`){for(var a=e;e;){var o=e.parentElement,s=u(e);if(o&&!o.shadowRoot&&r(o)===!0)return D(e);e=e.assignedSlot?e.assignedSlot:!o&&s!==e.ownerDocument?s.host:o}e=a}if(E(e))return!e.getClientRects().length;if(n!==`legacy-full`)return!0}else if(n===`non-zero-area`)return D(e);return!1},te=function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if(t.tagName===`FIELDSET`&&t.disabled){for(var n=0;n<t.children.length;n++){var r=t.children.item(n);if(r.tagName===`LEGEND`)return l.call(t,`fieldset[disabled] *`)?!0:!r.contains(e)}return!0}t=t.parentElement}return!1},O=function(e,t){return!(t.disabled||b(t)||ee(t,e)||x(t)||te(t))},k=function(e,t){return!(T(t)||g(t)<0||!O(e,t))},ne=function(e){var t=parseInt(e.getAttribute(`tabindex`),10);return!!(isNaN(t)||t>=0)},A=function(e){var t=[],n=[];return e.forEach(function(e,r){var i=!!e.scopeParent,a=i?e.scopeParent:e,o=_(a,i),s=i?A(e.candidates):a;o===0?i?t.push.apply(t,s):t.push(a):n.push({documentOrder:r,tabIndex:o,item:e,isScope:i,content:s})}),n.sort(v).reduce(function(e,t){return t.isScope?e.push.apply(e,t.content):e.push(t.content),e},[]).concat(t)},re=function(e,t){t=t||{};var n=t.getShadowRoot?m([e],t.includeContainer,{filter:k.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:ne}):p(e,t.includeContainer,k.bind(null,t));return A(n)},ie=function(e,t){return t=t||{},t.getShadowRoot?m([e],t.includeContainer,{filter:O.bind(null,t),flatten:!0,getShadowRoot:t.getShadowRoot}):p(e,t.includeContainer,O.bind(null,t))},j=function(e,t){if(t=t||{},!e)throw Error(`No node provided`);return l.call(e,s)!==!1&&k(t,e)},ae=o.concat(`iframe:not([inert]):not([inert] *)`).join(`,`),M=function(e,t){if(t=t||{},!e)throw Error(`No node provided`);return l.call(e,ae)!==!1&&O(t,e)}})),se=n({createFocusTrap:()=>we});function N(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function ce(e){if(Array.isArray(e))return N(e)}function le(e,t){var n=typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(!n){if(Array.isArray(e)||(n=ve(e))||t){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw TypeError(`Invalid attempt to iterate non-iterable instance.
2In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a,o=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,a=e},f:function(){try{o||n.return==null||n.return()}finally{if(s)throw a}}}}function ue(e,t,n){return(t=_e(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function de(e){if(typeof Symbol<`u`&&e[Symbol.iterator]!=null||e[`@@iterator`]!=null)return Array.from(e)}function fe(){throw TypeError(`Invalid attempt to spread non-iterable instance.
3In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function pe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function me(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?pe(Object(n),!0).forEach(function(t){ue(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pe(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function he(e){return ce(e)||de(e)||ve(e)||fe()}function ge(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function _e(e){var t=ge(e,`string`);return typeof t==`symbol`?t:t+``}function ve(e,t){if(e){if(typeof e==`string`)return N(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?N(e,t):void 0}}var P,ye,be,F,xe,Se,I,L,R,Ce,we,Te=t((()=>{oe(),P={getActiveTrap:function(e){return e?.length>0?e[e.length-1]:null},activateTrap:function(e,t){t!==P.getActiveTrap(e)&&P.pauseTrap(e);var n=e.indexOf(t);n===-1||e.splice(n,1),e.push(t)},deactivateTrap:function(e,t){var n=e.indexOf(t);n!==-1&&e.splice(n,1),P.unpauseTrap(e)},pauseTrap:function(e){P.getActiveTrap(e)?._setPausedState(!0)},unpauseTrap:function(e){var t=P.getActiveTrap(e);t&&!t._isManuallyPaused()&&t._setPausedState(!1)}},ye=function(e){return e.tagName&&e.tagName.toLowerCase()===`input`&&typeof e.select==`function`},be=function(e){return e?.key===`Escape`||e?.key===`Esc`||e?.keyCode===27},F=function(e){return e?.key===`Tab`||e?.keyCode===9},xe=function(e){return F(e)&&!e.shiftKey},Se=function(e){return F(e)&&e.shiftKey},I=function(e){return setTimeout(e,0)},L=function(e){var t=[...arguments].slice(1);return typeof e==`function`?e.apply(void 0,t):e},R=function(e){return e.target.shadowRoot&&typeof e.composedPath==`function`?e.composedPath()[0]:e.target},Ce=[],we=function(e,t){var n=t?.document||document,r=t?.trapStack||Ce,i=me({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,isolateSubtrees:!1,isKeyForward:xe,isKeyBackward:Se},t),a={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},o,s=function(e,t,n){return e&&e[t]!==void 0?e[t]:i[n||t]},c=function(e,t){var n=typeof t?.composedPath==`function`?t.composedPath():void 0;return a.containerGroups.findIndex(function(t){var r=t.container,i=t.tabbableNodes;return r.contains(e)||n?.includes(r)||i.find(function(t){return t===e})})},l=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=t.hasFallback,a=r!==void 0&&r,o=t.params,s=o===void 0?[]:o,c=i[e];if(typeof c==`function`&&(c=c.apply(void 0,he(s))),c===!0&&(c=void 0),!c){if(c===void 0||c===!1)return c;throw Error(`\`${e}\` was specified but was not a node, or did not return a node`)}var l=c;if(typeof c==`string`){try{l=n.querySelector(c)}catch(t){throw Error(`\`${e}\` appears to be an invalid selector; error="${t.message}"`)}if(!l&&!a)throw Error(`\`${e}\` as selector refers to no known node`)}return l},u=function(){var e=l(`initialFocus`,{hasFallback:!0});if(e===!1)return!1;if(e===void 0||e&&!M(e,i.tabbableOptions))if(c(n.activeElement)>=0)e=n.activeElement;else{var t=a.tabbableGroups[0];e=t&&t.firstTabbableNode||l(`fallbackFocus`)}else e===null&&(e=l(`fallbackFocus`));if(!e)throw Error(`Your focus-trap needs to have at least one focusable element`);return e},d=function(){if(a.containerGroups=a.containers.map(function(e){var t=re(e,i.tabbableOptions),n=ie(e,i.tabbableOptions),r=t.length>0?t[0]:void 0,a=t.length>0?t[t.length-1]:void 0,o=n.find(function(e){return j(e)}),s=n.slice().reverse().find(function(e){return j(e)});return{container:e,tabbableNodes:t,focusableNodes:n,posTabIndexesFound:!!t.find(function(e){return g(e)>0}),firstTabbableNode:r,lastTabbableNode:a,firstDomTabbableNode:o,lastDomTabbableNode:s,nextTabbableNode:function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,i=t.indexOf(e);return i<0?r?n.slice(n.indexOf(e)+1).find(function(e){return j(e)}):n.slice(0,n.indexOf(e)).reverse().find(function(e){return j(e)}):t[i+(r?1:-1)]}}}),a.tabbableGroups=a.containerGroups.filter(function(e){return e.tabbableNodes.length>0}),a.tabbableGroups.length<=0&&!l(`fallbackFocus`))throw Error(`Your focus-trap must have at least one container with at least one tabbable node in it at all times`);if(a.containerGroups.find(function(e){return e.posTabIndexesFound})&&a.containerGroups.length>1)throw 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.`)},f=function(e){var t=e.activeElement;if(t)return t.shadowRoot&&t.shadowRoot.activeElement!==null?f(t.shadowRoot):t},p=function(e){if(e!==!1&&e!==f(document)){if(!e||!e.focus){p(u());return}e.focus({preventScroll:!!i.preventScroll}),a.mostRecentlyFocusedNode=e,ye(e)&&e.select()}},m=function(e){var t=l(`setReturnFocus`,{params:[e]});return t||t!==!1&&e},h=function(e){var t=e.target,n=e.event,r=e.isBackward,o=r!==void 0&&r;t=t||R(n),d();var s=null;if(a.tabbableGroups.length>0){var u=c(t,n),f=u>=0?a.containerGroups[u]:void 0;if(u<0)s=o?a.tabbableGroups[a.tabbableGroups.length-1].lastTabbableNode:a.tabbableGroups[0].firstTabbableNode;else if(o){var p=a.tabbableGroups.findIndex(function(e){var n=e.firstTabbableNode;return t===n});if(p<0&&(f.container===t||M(t,i.tabbableOptions)&&!j(t,i.tabbableOptions)&&!f.nextTabbableNode(t,!1))&&(p=u),p>=0){var m=p===0?a.tabbableGroups.length-1:p-1,h=a.tabbableGroups[m];s=g(t)>=0?h.lastTabbableNode:h.lastDomTabbableNode}else F(n)||(s=f.nextTabbableNode(t,!1))}else{var _=a.tabbableGroups.findIndex(function(e){var n=e.lastTabbableNode;return t===n});if(_<0&&(f.container===t||M(t,i.tabbableOptions)&&!j(t,i.tabbableOptions)&&!f.nextTabbableNode(t))&&(_=u),_>=0){var v=_===a.tabbableGroups.length-1?0:_+1,y=a.tabbableGroups[v];s=g(t)>=0?y.firstTabbableNode:y.firstDomTabbableNode}else F(n)||(s=f.nextTabbableNode(t))}}else s=l(`fallbackFocus`);return s},_=function(e){if(!(c(R(e),e)>=0)){if(L(i.clickOutsideDeactivates,e)){o.deactivate({returnFocus:i.returnFocusOnDeactivate});return}L(i.allowOutsideClick,e)||e.preventDefault()}},v=function(e){var t=R(e),n=c(t,e)>=0;if(n||t instanceof Document)n&&(a.mostRecentlyFocusedNode=t);else{e.stopImmediatePropagation();var r,o=!0;if(a.mostRecentlyFocusedNode)if(g(a.mostRecentlyFocusedNode)>0){var s=c(a.mostRecentlyFocusedNode),l=a.containerGroups[s].tabbableNodes;if(l.length>0){var d=l.findIndex(function(e){return e===a.mostRecentlyFocusedNode});d>=0&&(i.isKeyForward(a.recentNavEvent)?d+1<l.length&&(r=l[d+1],o=!1):d-1>=0&&(r=l[d-1],o=!1))}}else a.containerGroups.some(function(e){return e.tabbableNodes.some(function(e){return g(e)>0})})||(o=!1);else o=!1;o&&(r=h({target:a.mostRecentlyFocusedNode,isBackward:i.isKeyBackward(a.recentNavEvent)})),p(r||a.mostRecentlyFocusedNode||u())}a.recentNavEvent=void 0},y=function(e){var t=arguments.length>1&&arguments[1]!==void 0&&arguments[1];a.recentNavEvent=e;var n=h({event:e,isBackward:t});n&&(F(e)&&e.preventDefault(),p(n))},b=function(e){(i.isKeyForward(e)||i.isKeyBackward(e))&&y(e,i.isKeyBackward(e))},x=function(e){be(e)&&L(i.escapeDeactivates,e)!==!1&&(e.preventDefault(),o.deactivate())},S=function(e){c(R(e),e)>=0||L(i.clickOutsideDeactivates,e)||L(i.allowOutsideClick,e)||(e.preventDefault(),e.stopImmediatePropagation())},C=function(){if(a.active)return P.activateTrap(r,o),a.delayInitialFocusTimer=i.delayInitialFocus?I(function(){p(u())}):p(u()),n.addEventListener(`focusin`,v,!0),n.addEventListener(`mousedown`,_,{capture:!0,passive:!1}),n.addEventListener(`touchstart`,_,{capture:!0,passive:!1}),n.addEventListener(`click`,S,{capture:!0,passive:!1}),n.addEventListener(`keydown`,b,{capture:!0,passive:!1}),n.addEventListener(`keydown`,x),o},w=function(e){a.active&&!a.paused&&o._setSubtreeIsolation(!1),a.adjacentElements.clear(),a.alreadySilent.clear();var t=new Set,n=new Set,r=le(e),i;try{for(r.s();!(i=r.n()).done;){var s=i.value;t.add(s);for(var c=typeof ShadowRoot<`u`&&s.getRootNode()instanceof ShadowRoot,l=s;l;){t.add(l);var u=l.parentElement,d=[];u?d=u.children:!u&&c&&(d=l.getRootNode().children,u=l.getRootNode().host,c=typeof ShadowRoot<`u`&&u.getRootNode()instanceof ShadowRoot);var f=le(d),p;try{for(f.s();!(p=f.n()).done;){var m=p.value;n.add(m)}}catch(e){f.e(e)}finally{f.f()}l=u}}}catch(e){r.e(e)}finally{r.f()}t.forEach(function(e){n.delete(e)}),a.adjacentElements=n},T=function(){if(a.active)return n.removeEventListener(`focusin`,v,!0),n.removeEventListener(`mousedown`,_,!0),n.removeEventListener(`touchstart`,_,!0),n.removeEventListener(`click`,S,!0),n.removeEventListener(`keydown`,b,!0),n.removeEventListener(`keydown`,x),o},E=typeof window<`u`&&`MutationObserver`in window?new MutationObserver(function(e){e.some(function(e){return Array.from(e.removedNodes).some(function(e){return e===a.mostRecentlyFocusedNode})})&&p(u())}):void 0,D=function(){E&&(E.disconnect(),a.active&&!a.paused&&a.containers.map(function(e){E.observe(e,{subtree:!0,childList:!0})}))};return o={get active(){return a.active},get paused(){return a.paused},activate:function(e){if(a.active)return this;var t=s(e,`onActivate`),c=s(e,`onPostActivate`),l=s(e,`checkCanFocusTrap`),u=P.getActiveTrap(r),p=!1;if(u&&!u.paused){var m;(m=u._setSubtreeIsolation)==null||m.call(u,!1),p=!0}try{l||d(),a.active=!0,a.paused=!1,a.nodeFocusedBeforeActivation=f(n),t?.();var h=function(){l&&d(),C(),D(),i.isolateSubtrees&&o._setSubtreeIsolation(!0),c?.()};if(l)return l(a.containers.concat()).then(h,h),this;h()}catch(e){if(u===P.getActiveTrap(r)&&p){var g;(g=u._setSubtreeIsolation)==null||g.call(u,!0)}throw e}return this},deactivate:function(e){if(!a.active)return this;var t=me({onDeactivate:i.onDeactivate,onPostDeactivate:i.onPostDeactivate,checkCanReturnFocus:i.checkCanReturnFocus},e);clearTimeout(a.delayInitialFocusTimer),a.delayInitialFocusTimer=void 0,a.paused||o._setSubtreeIsolation(!1),a.alreadySilent.clear(),T(),a.active=!1,a.paused=!1,D(),P.deactivateTrap(r,o);var n=s(t,`onDeactivate`),c=s(t,`onPostDeactivate`),l=s(t,`checkCanReturnFocus`),u=s(t,`returnFocus`,`returnFocusOnDeactivate`);n?.();var d=function(){I(function(){u&&p(m(a.nodeFocusedBeforeActivation)),c?.()})};return u&&l?(l(m(a.nodeFocusedBeforeActivation)).then(d,d),this):(d(),this)},pause:function(e){return a.active?(a.manuallyPaused=!0,this._setPausedState(!0,e)):this},unpause:function(e){return!a.active||(a.manuallyPaused=!1,r[r.length-1]!==this)?this:this._setPausedState(!1,e)},updateContainerElements:function(e){return a.containers=[].concat(e).filter(Boolean).map(function(e){return typeof e==`string`?n.querySelector(e):e}),i.isolateSubtrees&&w(a.containers),a.active&&(d(),i.isolateSubtrees&&!a.paused&&o._setSubtreeIsolation(!0)),D(),this}},Object.defineProperties(o,{_isManuallyPaused:{value:function(){return a.manuallyPaused}},_setPausedState:{value:function(e,t){if(a.paused===e)return this;if(a.paused=e,e){var n=s(t,`onPause`),r=s(t,`onPostPause`);n?.(),T(),D(),o._setSubtreeIsolation(!1),r?.()}else{var i=s(t,`onUnpause`),c=s(t,`onPostUnpause`);i?.(),o._setSubtreeIsolation(!0),d(),C(),D(),c?.()}return this}},_setSubtreeIsolation:{value:function(e){i.isolateSubtrees&&a.adjacentElements.forEach(function(t){if(e)switch(i.isolateSubtrees){case`aria-hidden`:(t.ariaHidden===`true`||t.getAttribute(`aria-hidden`)?.toLowerCase()===`true`)&&a.alreadySilent.add(t),t.setAttribute(`aria-hidden`,`true`);break;default:(t.inert||t.hasAttribute(`inert`))&&a.alreadySilent.add(t),t.setAttribute(`inert`,!0);break}else if(!a.alreadySilent.has(t))switch(i.isolateSubtrees){case`aria-hidden`:t.removeAttribute(`aria-hidden`);break;default:t.removeAttribute(`inert`);break}})}}}),o.updateContainerElements(e),o}})),Ee=n({focusable:()=>Ve,getTabIndex:()=>J,isFocusable:()=>We,isTabbable:()=>He,tabbable:()=>Be}),z,B,V,H,U,W,De,G,K,q,J,Oe,ke,Y,Ae,je,Me,Ne,Pe,Fe,Ie,X,Z,Le,Q,$,Re,ze,Be,Ve,He,Ue,We,Ge=t((()=>{z=[`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])`],B=z.join(`,`),V=typeof Element>`u`,H=V?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,U=!V&&Element.prototype.getRootNode?function(e){return e?.getRootNode?.call(e)}:function(e){return e?.ownerDocument},W=function e(t,n){n===void 0&&(n=!0);var r=t?.getAttribute?.call(t,`inert`);return r===``||r===`true`||n&&t&&e(t.parentNode)},De=function(e){var t=e?.getAttribute?.call(e,`contenteditable`);return t===``||t===`true`},G=function(e,t,n){if(W(e))return[];var r=Array.prototype.slice.apply(e.querySelectorAll(B));return t&&H.call(e,B)&&r.unshift(e),r=r.filter(n),r},K=function e(t,n,r){for(var i=[],a=Array.from(t);a.length;){var o=a.shift();if(!W(o,!1))if(o.tagName===`SLOT`){var s=o.assignedElements(),c=e(s.length?s:o.children,!0,r);r.flatten?i.push.apply(i,c):i.push({scopeParent:o,candidates:c})}else{H.call(o,B)&&r.filter(o)&&(n||!t.includes(o))&&i.push(o);var l=o.shadowRoot||typeof r.getShadowRoot==`function`&&r.getShadowRoot(o),u=!W(l,!1)&&(!r.shadowRootFilter||r.shadowRootFilter(o));if(l&&u){var d=e(l===!0?o.children:l.children,!0,r);r.flatten?i.push.apply(i,d):i.push({scopeParent:o,candidates:d})}else a.unshift.apply(a,o.children)}}return i},q=function(e){return!isNaN(parseInt(e.getAttribute(`tabindex`),10))},J=function(e){if(!e)throw Error(`No node provided`);return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||De(e))&&!q(e)?0:e.tabIndex},Oe=function(e,t){var n=J(e);return n<0&&t&&!q(e)?0:n},ke=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},Y=function(e){return e.tagName===`INPUT`},Ae=function(e){return Y(e)&&e.type===`hidden`},je=function(e){return e.tagName===`DETAILS`&&Array.prototype.slice.apply(e.children).some(function(e){return e.tagName===`SUMMARY`})},Me=function(e,t){for(var n=0;n<e.length;n++)if(e[n].checked&&e[n].form===t)return e[n]},Ne=function(e){if(!e.name)return!0;var t=e.form||U(e),n=function(e){return t.querySelectorAll(`input[type="radio"][name="`+e+`"]`)},r;if(typeof window<`u`&&window.CSS!==void 0&&typeof window.CSS.escape==`function`)r=n(window.CSS.escape(e.name));else try{r=n(e.name)}catch(e){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`,e.message),!1}var i=Me(r,e.form);return!i||i===e},Pe=function(e){return Y(e)&&e.type===`radio`},Fe=function(e){return Pe(e)&&!Ne(e)},Ie=function(e){var t=e&&U(e),n=t?.host,r=!1;if(t&&t!==e){var i,a,o;for(r=!!((i=n)!=null&&(a=i.ownerDocument)!=null&&a.contains(n)||e!=null&&(o=e.ownerDocument)!=null&&o.contains(e));!r&&n;){var s,c;t=U(n),n=t?.host,r=!!((s=n)!=null&&(c=s.ownerDocument)!=null&&c.contains(n))}}return r}
3,X=function(e){var t=e.getBoundingClientRect(),n=t.width,r=t.height;return n===0&&r===0},Z=function(e,t){var n=t.displayCheck,r=t.getShadowRoot;if(getComputedStyle(e).visibility===`hidden`)return!0;var i=H.call(e,`details>summary:first-of-type`)?e.parentElement:e;if(H.call(i,`details:not([open]) *`))return!0;if(!n||n===`full`||n===`legacy-full`){if(typeof r==`function`){for(var a=e;e;){var o=e.parentElement,s=U(e);if(o&&!o.shadowRoot&&r(o)===!0)return X(e);e=e.assignedSlot?e.assignedSlot:!o&&s!==e.ownerDocument?s.host:o}e=a}if(Ie(e))return!e.getClientRects().length;if(n!==`legacy-full`)return!0}else if(n===`non-zero-area`)return X(e);return!1},Le=function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if(t.tagName===`FIELDSET`&&t.disabled){for(var n=0;n<t.children.length;n++){var r=t.children.item(n);if(r.tagName===`LEGEND`)return H.call(t,`fieldset[disabled] *`)?!0:!r.contains(e)}return!0}t=t.parentElement}return!1},Q=function(e,t){return!(t.disabled||W(t)||Ae(t)||Z(t,e)||je(t)||Le(t))},$=function(e,t){return!(Fe(t)||J(t)<0||!Q(e,t))},Re=function(e){var t=parseInt(e.getAttribute(`tabindex`),10);return!!(isNaN(t)||t>=0)},ze=function e(t){var n=[],r=[];return t.forEach(function(t,i){var a=!!t.scopeParent,o=a?t.scopeParent:t,s=Oe(o,a),c=a?e(t.candidates):o;s===0?a?n.push.apply(n,c):n.push(o):r.push({documentOrder:i,tabIndex:s,item:t,isScope:a,content:c})}),r.sort(ke).reduce(function(e,t){return t.isScope?e.push.apply(e,t.content):e.push(t.content),e},[]).concat(n)},Be=function(e,t){t=t||{};var n=t.getShadowRoot?K([e],t.includeContainer,{filter:$.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:Re}):G(e,t.includeContainer,$.bind(null,t));return ze(n)},Ve=function(e,t){return t=t||{},t.getShadowRoot?K([e],t.includeContainer,{filter:Q.bind(null,t),flatten:!0,getShadowRoot:t.getShadowRoot}):G(e,t.includeContainer,Q.bind(null,t))},He=function(e,t){if(t=t||{},!e)throw Error(`No node provided`);return H.call(e,B)!==!1&&$(t,e)},Ue=z.concat(`iframe`).join(`,`),We=function(e,t){if(t=t||{},!e)throw Error(`No node provided`);return H.call(e,Ue)!==!1&&Q(t,e)}})),Ke=r(((t,n)=>{function r(e){"@babel/helpers - typeof";return r=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},r(e)}function o(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function s(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,_(r.key),r)}}function c(e,t,n){return t&&s(e.prototype,t),n&&s(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function l(e,t,n){return t=p(t),u(e,f()?Reflect.construct(t,n||[],p(e).constructor):t.apply(e,n))}function u(e,t){if(t&&(r(t)==`object`||typeof t==`function`))return t;if(t!==void 0)throw TypeError(`Derived constructors may only return object or undefined`);return d(e)}function d(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function f(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(f=function(){return!!e})()}function p(e){return p=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},p(e)}function m(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function`);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&h(e,t)}function h(e,t){return h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},h(e,t)}function g(e,t,n){return(t=_(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _(e){var t=v(e,`string`);return r(t)==`symbol`?t:t+``}function v(e,t){if(r(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var i=n.call(e,t||`default`);if(r(i)!=`object`)return i;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var y=i(),b=a(),x=(Te(),e(se)).createFocusTrap,S=(Ge(),e(Ee)).isFocusable,C=function(e){function t(e){var n;o(this,t),n=l(this,t,[e]),g(n,`getNodeForOption`,function(e){var t=this.internalOptions[e]??this.originalOptions[e];if(typeof t==`function`){var n=[...arguments].slice(1);t=t.apply(void 0,n)}if(t===!0&&(t=void 0),!t){if(t===void 0||t===!1)return t;throw Error(`\`${e}\` was specified but was not a node, or did not return a node`)}var r=t;if(typeof t==`string`&&(r=this.getDocument()?.querySelector(t),!r))throw Error(`\`${e}\` as selector refers to no known node`);return r}),n.handleDeactivate=n.handleDeactivate.bind(n),n.handlePostDeactivate=n.handlePostDeactivate.bind(n),n.handleClickOutsideDeactivates=n.handleClickOutsideDeactivates.bind(n),n.internalOptions={returnFocusOnDeactivate:!1,checkCanReturnFocus:null,onDeactivate:n.handleDeactivate,onPostDeactivate:n.handlePostDeactivate,clickOutsideDeactivates:n.handleClickOutsideDeactivates},n.originalOptions={returnFocusOnDeactivate:!0,onDeactivate:null,onPostDeactivate:null,checkCanReturnFocus:null,clickOutsideDeactivates:!1};var r=e.focusTrapOptions;for(var i in r)if(Object.prototype.hasOwnProperty.call(r,i)){if(i===`returnFocusOnDeactivate`||i===`onDeactivate`||i===`onPostDeactivate`||i===`checkCanReturnFocus`||i===`clickOutsideDeactivates`){n.originalOptions[i]=r[i];continue}n.internalOptions[i]=r[i]}return n.outsideClick=null,n.focusTrapElements=e.containerElements||[],n.updatePreviousElement(),n}
3return m(t,e),c(t,[{key:`getDocument`,value:function(){return this.props.focusTrapOptions.document||(typeof document<`u`?document:void 0)}},{key:`getReturnFocusNode`,value:function(){var e=this.getNodeForOption(`setReturnFocus`,this.previouslyFocusedElement);return e||e!==!1&&this.previouslyFocusedElement}},{key:`updatePreviousElement`,value:function(){var e=this.getDocument();e&&(this.previouslyFocusedElement=e.activeElement)}},{key:`deactivateTrap`,value:function(){!this.focusTrap||!this.focusTrap.active||this.focusTrap.deactivate({returnFocus:!1,checkCanReturnFocus:null,onDeactivate:this.originalOptions.onDeactivate})}},{key:`handleClickOutsideDeactivates`,value:function(e){var t=typeof this.originalOptions.clickOutsideDeactivates==`function`?this.originalOptions.clickOutsideDeactivates.call(null,e):this.originalOptions.clickOutsideDeactivates;return t&&(this.outsideClick={target:e.target,allowDeactivation:t}),t}},{key:`handleDeactivate`,value:function(){this.originalOptions.onDeactivate&&this.originalOptions.onDeactivate.call(null),this.deactivateTrap()}},{key:`handlePostDeactivate`,value:function(){var e=this,t=function(){var t=e.getReturnFocusNode(),n=!!(e.originalOptions.returnFocusOnDeactivate&&t!=null&&t.focus&&(!e.outsideClick||e.outsideClick.allowDeactivation&&!S(e.outsideClick.target,e.internalOptions.tabbableOptions))),r=e.internalOptions.preventScroll,i=r!==void 0&&r;n&&t.focus({preventScroll:i}),e.originalOptions.onPostDeactivate&&e.originalOptions.onPostDeactivate.call(null),e.outsideClick=null};this.originalOptions.checkCanReturnFocus?this.originalOptions.checkCanReturnFocus.call(null,this.getReturnFocusNode()).then(t,t):t()}},{key:`setupFocusTrap`,value:function(){this.focusTrap?this.props.active&&!this.focusTrap.active&&(this.focusTrap.activate(),this.props.paused&&this.focusTrap.pause()):this.focusTrapElements.some(Boolean)&&(this.focusTrap=this.props._createFocusTrap(this.focusTrapElements,this.internalOptions),this.props.active&&this.focusTrap.activate(),this.props.paused&&this.focusTrap.pause())}},{key:`componentDidMount`,value:function(){this.props.active&&this.setupFocusTrap()}},{key:`componentDidUpdate`,value:function(e){if(this.focusTrap){e.containerElements!==this.props.containerElements&&this.focusTrap.updateContainerElements(this.props.containerElements);var t=!e.active&&this.props.active,n=e.active&&!this.props.active,r=!e.paused&&this.props.paused,i=e.paused&&!this.props.paused;if(t&&(this.updatePreviousElement(),this.focusTrap.activate()),n){this.deactivateTrap();return}r&&this.focusTrap.pause(),i&&this.focusTrap.unpause()}else e.containerElements!==this.props.containerElements&&(this.focusTrapElements=this.props.containerElements),this.props.active&&(this.updatePreviousElement(),this.setupFocusTrap())}},{key:`componentWillUnmount`,value:function(){this.deactivateTrap()}},{key:`render`,value:function(){var e=this,t=this.props.children?y.Children.only(this.props.children):void 0;if(t){if(t.type&&t.type===y.Fragment)throw Error(`A focus-trap cannot use a Fragment as its child container. Try replacing it with a <div> element.`);return y.cloneElement(t,{ref:function(n){var r=e.props.containerElements;t&&(typeof t.ref==`function`?t.ref(n):t.ref&&(t.ref.current=n)),e.focusTrapElements=r||[n]}})}return null}}])}(y.Component),w=typeof Element>`u`?Function:Element;C.propTypes={active:b.bool,paused:b.bool,focusTrapOptions:b.shape({document:b.object,onActivate:b.func,onPostActivate:b.func,checkCanFocusTrap:b.func,onPause:b.func,onPostPause:b.func,onUnpause:b.func,onPostUnpause:b.func,onDeactivate:b.func,onPostDeactivate:b.func,checkCanReturnFocus:b.func,initialFocus:b.oneOfType([b.instanceOf(w),b.string,b.bool,b.func]),fallbackFocus:b.oneOfType([b.instanceOf(w),b.string,b.func]),escapeDeactivates:b.oneOfType([b.bool,b.func]),clickOutsideDeactivates:b.oneOfType([b.bool,b.func]),returnFocusOnDeactivate:b.bool,setReturnFocus:b.oneOfType([b.instanceOf(w),b.string,b.bool,b.func]),allowOutsideClick:b.oneOfType([b.bool,b.func]),preventScroll:b.bool,tabbableOptions:b.shape({displayCheck:b.oneOf([`full`,`legacy-full`,`non-zero-area`,`none`]),getShadowRoot:b.oneOfType([b.bool,b.func])}),trapStack:b.array,isKeyForward:b.func,isKeyBackward:b.func}),containerElements:b.arrayOf(b.instanceOf(w)),children:b.oneOfType([b.element,b.instanceOf(w)])},C.defaultProps={active:!0,paused:!1,focusTrapOptions:{},_createFocusTrap:x},n.exports=C}));export{Ke as t};

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.