PageSourceSearch

https://online.hbs.edu/_next/static/chunks/4075.3e93e81a06a7cde3.js

js hbs.edu collected 2026-10-01 08:01:48 UTC 49,018 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4075],{7807:(e,t,n)=>{n.r(t),n.d(t,{focusable:()=>P,getTabIndex:()=>p,isFocusable:()=>D,isTabbable:()=>F,tabbable:()=>N});var o=["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] *)"],r=o.join(","),i="undefined"==typeof Element,a=i?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,u=!i&&Element.prototype.getRootNode?function(e){var t;return null==e||null==(t=e.getRootNode)?void 0:t.call(e)}:function(e){return null==e?void 0:e.ownerDocument},s=function(e,t){void 0===t&&(t=!0);var n,o=null==e||null==(n=e.getAttribute)?void 0:n.call(e,"inert");return""===o||"true"===o||t&&e&&("function"==typeof e.closest?e.closest("[inert]"):s(e.parentNode))},l=function(e){var t,n=null==e||null==(t=e.getAttribute)?void 0:t.call(e,"contenteditable");return""===n||"true"===n},c=function(e,t,n){if(s(e))return[];var o=Array.prototype.slice.apply(e.querySelectorAll(r));return t&&a.call(e,r)&&o.unshift(e),o=o.filter(n)},d=function(e,t,n){for(var o=[],i=Array.from(e);i.length;){var u=i.shift();if(!s(u,!1))if("SLOT"===u.tagName){var l=u.assignedElements(),c=d(l.length?l:u.children,!0,n);n.flatten?o.push.apply(o,c):o.push({scopeParent:u,candidates:c})}else{a.call(u,r)&&n.filter(u)&&(t||!e.includes(u))&&o.push(u);var f=u.shadowRoot||"function"==typeof n.getShadowRoot&&n.getShadowRoot(u),p=!s(f,!1)&&(!n.shadowRootFilter||n.shadowRootFilter(u));if(f&&p){var v=d(!0===f?u.children:f.children,!0,n);n.flatten?o.push.apply(o,v):o.push({scopeParent:u,candidates:v})}else i.unshift.apply(i,u.children)}}return o},f=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},p=function(e){if(!e)throw Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||l(e))&&!f(e)?0:e.tabIndex},v=function(e,t){var n=p(e);return n<0&&t&&!f(e)?0:n},b=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},m=function(e){return"INPUT"===e.tagName},h=function(e,t){for(var n=0;n<e.length;n++)if(e[n].checked&&e[n].form===t)return e[n]},y=function(e){if(!e.name)return!0;var t,n=e.form||u(e),o=function(e){return n.querySelectorAll('input[type="radio"][name="'+e+'"]')};if("undefined"!=typeof window&&void 0!==window.CSS&&"function"==typeof window.CSS.escape)t=o(window.CSS.escape(e.name));else try{t=o(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 r=h(t,e.form);return!r||r===e},g=function(e){return m(e)&&"radio"===e.type&&!y(e)},w=function(e){var t,n,o,r,i,a,s,l=e&&u(e),c=null==(t=l)?void 0:t.host,d=!1;if(l&&l!==e)for(d=!!(null!=(n=c)&&null!=(o=n.ownerDocument)&&o.contains(c)||null!=e&&null!=(r=e.ownerDocument)&&r.contains(e));!d&&c;)d=!!(null!=(a=c=null==(i=l=u(c))?void 0:i.host)&&null!=(s=a.ownerDocument)&&s.contains(c));return d},E=function(e){var t=e.getBoundingClientRect(),n=t.width,o=t.height;return 0===n&&0===o},T=function(e,t){var n=t.displayCheck,o=t.getShadowRoot;if("full-native"===n&&"checkVisibility"in e)return!e.checkVisibility({checkOpacity:!1,opacityProperty:!1,contentVisibilityAuto:!0,visibilityProperty:!0,checkVisibilityCSS:!0});var r=getComputedStyle(e).visibility;if("hidden"===r||"collapse"===r)return!0;var i=a.call(e,"details>summary:first-of-type")?e.parentElement:e;if(a.call(i,"details:not([open]) *"))return!0;if(n&&"full"!==n&&"full-native"!==n&&"legacy-full"!==n){if("non-zero-area"===n)return E(e)}else{if("function"==typeof o){for(var s=e;e;){var l=e.parentElement,c=u(e);if(l&&!l.shadowRoot&&!0===o(l))return E(e);e=e.assignedSlot?e.assignedSlot:l||c===e.ownerDocument?l:c.host}e=s}if(w(e))return!e.getClientRects().length;if("legacy-full"!==n)return!0}return!1}
1,O=function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if("FIELDSET"===t.tagName&&t.disabled){for(var n=0;n<t.children.length;n++){var o=t.children.item(n);if("LEGEND"===o.tagName)return!!a.call(t,"fieldset[disabled] *")||!o.contains(e)}return!0}t=t.parentElement}return!1},S=function(e,t){return!(t.disabled||m(t)&&"hidden"===t.type||T(t,e)||"DETAILS"===t.tagName&&Array.prototype.slice.apply(t.children).some(function(e){return"SUMMARY"===e.tagName})||O(t))},k=function(e,t){return!(g(t)||0>p(t))&&!!S(e,t)},R=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return!!isNaN(t)||!!(t>=0)},C=function(e){var t=[],n=[];return e.forEach(function(e,o){var r=!!e.scopeParent,i=r?e.scopeParent:e,a=v(i,r),u=r?C(e.candidates):i;0===a?r?t.push.apply(t,u):t.push(i):n.push({documentOrder:o,tabIndex:a,item:e,isScope:r,content:u})}),n.sort(b).reduce(function(e,t){return t.isScope?e.push.apply(e,t.content):e.push(t.content),e},[]).concat(t)},N=function(e,t){return C((t=t||{}).getShadowRoot?d([e],t.includeContainer,{filter:k.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:R}):c(e,t.includeContainer,k.bind(null,t)))},P=function(e,t){return(t=t||{}).getShadowRoot?d([e],t.includeContainer,{filter:S.bind(null,t),flatten:!0,getShadowRoot:t.getShadowRoot}):c(e,t.includeContainer,S.bind(null,t))},F=function(e,t){if(t=t||{},!e)throw Error("No node provided");return!1!==a.call(e,r)&&k(t,e)},x=o.concat("iframe:not([inert]):not([inert] *)").join(","),D=function(e,t){if(t=t||{},!e)throw Error("No node provided");return!1!==a.call(e,x)&&S(t,e)}},9536:(e,t,n)=>{n.r(t),n.d(t,{createFocusTrap:()=>h});var o=n(7807);function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}function i(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=s(e))||t){n&&(e=n);var o=0,r=function(){};return{s:r,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:r}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,u=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){u=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(u)throw i}}}}function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,o)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach(function(t){var o,r;o=t,r=n[t],(o=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t);if("object"!=typeof o)return o;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(o))in e?Object.defineProperty(e,o,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[o]=r}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function s(e,t){if(e){if("string"==typeof e)return r(e,t);var n=({}).toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}}var l={getActiveTrap:function(e){return(null==e?void 0:e.length)>0?e[e.length-1]:null},activateTrap:function(e,t){t!==l.getActiveTrap(e)&&l.pauseTrap(e);var n=e.indexOf(t);-1===n||e.splice(n,1),e.push(t)},deactivateTrap:function(e,t){var n=e.indexOf(t);-1!==n&&e.splice(n,1),l.unpauseTrap(e)},pauseTrap:function(e){var t=l.getActiveTrap(e);null==t||t._setPausedState(!0)},unpauseTrap:function(e){var t=l.getActiveTrap(e);t&&!t._isManuallyPaused()&&t._setPausedState(!1)}},c=function(e){return(null==e?void 0:e.key)==="Tab"||(null==e?void 0:e.keyCode)===9},d=function(e){return c(e)&&!e.shiftKey},f=function(e){return c(e)&&e.shiftKey},p=function(e){return setTimeout(e,0)},v=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];return"function"==typeof e?e.apply(void 0,n):e},b=function(e){return e.target.shadowRoot&&"function"==typeof e.composedPath?e.composedPath()[0]:e.target},m=[],h=function(e,t){var n,a=(null==t?void 0:t.document)||document,h=(null==t?void 0:t.trapStack)||m,y=u({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,delayReturnFocus:!0,isolateSubtrees:!1,isKeyForward:d,isKeyBackward:f},t),g={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},w=function(e,t,n){return e&&void 0!==e[t]?e[t]:y[n||t]},E=function(e,t){var n="function"==typeof(null==t?void 0:t.composedPath)?t.composedPath():void 0;return g.containerGroups.findIndex(function(t){var o=t.container,r=t.tabbableNodes;return o.contains(e)||(null==n?void 0:n.includes(o))||r.find(function(t){return t===e})})},T=function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=n.hasFallback,i=n.params,u=y[e];if("function"==typeof u&&(u=u.apply(void 0,function(e){if(Array.isArray(e))return r(e)}(t=void 0===i?[]:i)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||s(t)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())),!0===u&&(u=void 0),!u){if(void 0===u||!1===u)return u;throw Error("`".concat(e,"` was specified but was not a node, or did not return a node"))}var l=u;if("string"==typeof u){try{l=a.querySelector(u)}
1catch(t){throw Error("`".concat(e,'` appears to be an invalid selector; error="').concat(t.message,'"'))}if(!l&&!(void 0!==o&&o))throw Error("`".concat(e,"` as selector refers to no known node"))}return l},O=function(e){var t=e.activeElement;return t?t.shadowRoot&&null!==t.shadowRoot.activeElement?O(t.shadowRoot):t:null},S=function(){var e=T("initialFocus",{hasFallback:!0});if(!1===e)return!1;if(void 0===e||e&&!(0,o.isFocusable)(e,y.tabbableOptions)){var t=O(a);if(E(t)>=0)e=t;else{var n=g.tabbableGroups[0];e=n&&n.firstTabbableNode||T("fallbackFocus")}}else null===e&&(e=T("fallbackFocus"));if(!e)throw Error("Your focus-trap needs to have at least one focusable element");return e},k=function(){if(g.containerGroups=g.containers.map(function(e){var t=(0,o.tabbable)(e,y.tabbableOptions),n=(0,o.focusable)(e,y.tabbableOptions),r=t.length>0?t[0]:void 0,i=t.length>0?t[t.length-1]:void 0,a=n.find(function(e){return(0,o.isTabbable)(e)}),u=n.slice().reverse().find(function(e){return(0,o.isTabbable)(e)}),s=!!t.find(function(e){return(0,o.getTabIndex)(e)>0});return{container:e,tabbableNodes:t,focusableNodes:n,posTabIndexesFound:s,firstTabbableNode:r,lastTabbableNode:i,firstDomTabbableNode:a,lastDomTabbableNode:u,nextTabbableNode:function(e){var r=!(arguments.length>1)||void 0===arguments[1]||arguments[1],i=t.indexOf(e);return i<0?r?n.slice(n.indexOf(e)+1).find(function(e){return(0,o.isTabbable)(e)}):n.slice(0,n.indexOf(e)).reverse().find(function(e){return(0,o.isTabbable)(e)}):t[i+(r?1:-1)]}}}),g.tabbableGroups=g.containerGroups.filter(function(e){return e.tabbableNodes.length>0}),g.tabbableGroups.length<=0&&!T("fallbackFocus"))throw Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times");if(g.containerGroups.find(function(e){return e.posTabIndexesFound})&&g.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.")},R=function(e){if(!1!==e&&e!==O(document)){if(!e||!e.focus)return void R(S());e.focus({preventScroll:!!y.preventScroll}),g.mostRecentlyFocusedNode=e,e.tagName&&"input"===e.tagName.toLowerCase()&&"function"==typeof e.select&&e.select()}},C=function(e){var t=T("setReturnFocus",{params:[e]});return t||!1!==t&&e},N=function(e){var t=e.target,n=e.event,r=e.isBackward,i=void 0!==r&&r;t=t||b(n),k();var a=null;if(g.tabbableGroups.length>0){var u=E(t,n),s=u>=0?g.containerGroups[u]:void 0;if(u<0)a=i?g.tabbableGroups[g.tabbableGroups.length-1].lastTabbableNode:g.tabbableGroups[0].firstTabbableNode;else if(i){var l=g.tabbableGroups.findIndex(function(e){var n=e.firstTabbableNode;return t===n});if(l<0&&(s.container===t||(0,o.isFocusable)(t,y.tabbableOptions)&&!(0,o.isTabbable)(t,y.tabbableOptions)&&!s.nextTabbableNode(t,!1))&&(l=u),l>=0){var d=0===l?g.tabbableGroups.length-1:l-1,f=g.tabbableGroups[d];a=(0,o.getTabIndex)(t)>=0?f.lastTabbableNode:f.lastDomTabbableNode}else c(n)||(a=s.nextTabbableNode(t,!1))}else{var p=g.tabbableGroups.findIndex(function(e){var n=e.lastTabbableNode;return t===n});if(p<0&&(s.container===t||(0,o.isFocusable)(t,y.tabbableOptions)&&!(0,o.isTabbable)(t,y.tabbableOptions)&&!s.nextTabbableNode(t))&&(p=u),p>=0){var v=p===g.tabbableGroups.length-1?0:p+1,m=g.tabbableGroups[v];a=(0,o.getTabIndex)(t)>=0?m.firstTabbableNode:m.firstDomTabbableNode}else c(n)||(a=s.nextTabbableNode(t))}}else a=T("fallbackFocus");return a},P=function(e){if(!(E(b(e),e)>=0)){if(v(y.clickOutsideDeactivates,e))return void n.deactivate({returnFocus:y.returnFocusOnDeactivate});v(y.allowOutsideClick,e)||e.preventDefault()}},F=function(e){var t=b(e),n=E(t,e)>=0;if(n||t instanceof Document)n&&(g.mostRecentlyFocusedNode=t);else{e.stopImmediatePropagation();var r,i=!0;if(g.mostRecentlyFocusedNode)if((0,o.getTabIndex)(g.mostRecentlyFocusedNode)>0){var a=E(g.mostRecentlyFocusedNode),u=g.containerGroups[a].tabbableNodes;if(u.length>0){var s=u.findIndex(function(e){return e===g.mostRecentlyFocusedNode});s>=0&&(y.isKeyForward(g.recentNavEvent)?s+1<u.length&&(r=u[s+1],i=!1):s-1>=0&&(r=u[s-1],i=!1))}}else g.containerGroups.some(function(e){return e.tabbableNodes.some(function(e){return(0,o.getTabIndex)(e)>0})})||(i=!1);else i=!1;i&&(r=N({target:g.mostRecentlyFocusedNode,isBackward:y.isKeyBackward(g.recentNavEvent)})),r?R(r):R(g.mostRecentlyFocusedNode||S())}
1g.recentNavEvent=void 0},x=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];g.recentNavEvent=e;var n=N({event:e,isBackward:t});n&&(c(e)&&e.preventDefault(),R(n))},D=function(e){(y.isKeyForward(e)||y.isKeyBackward(e))&&x(e,y.isKeyBackward(e))},I=function(e){((null==e?void 0:e.key)==="Escape"||(null==e?void 0:e.key)==="Esc"||(null==e?void 0:e.keyCode)===27)&&!1!==v(y.escapeDeactivates,e)&&(e.preventDefault(),n.deactivate())},L=function(e){!(E(b(e),e)>=0||v(y.clickOutsideDeactivates,e))&&(v(y.allowOutsideClick,e)||(e.preventDefault(),e.stopImmediatePropagation()))},A=function(){var e;if(g.active)return l.activateTrap(h,n),y.delayInitialFocus?e=new Promise(function(e){g.delayInitialFocusTimer=p(function(){R(S()),e()})}):R(S()),a.addEventListener("focusin",F,!0),a.addEventListener("mousedown",P,{capture:!0,passive:!1}),a.addEventListener("touchstart",P,{capture:!0,passive:!1}),a.addEventListener("click",L,{capture:!0,passive:!1}),a.addEventListener("keydown",D,{capture:!0,passive:!1}),a.addEventListener("keydown",I),e},j=function(e){g.active&&!g.paused&&n._setSubtreeIsolation(!1),g.adjacentElements.clear(),g.alreadySilent.clear();var t,o=new Set,r=new Set,a=i(e);try{for(a.s();!(t=a.n()).done;){var u=t.value;o.add(u);for(var s="undefined"!=typeof ShadowRoot&&u.getRootNode()instanceof ShadowRoot,l=u;l;){o.add(l);var c=l.parentElement,d=[];c?d=c.children:!c&&s&&(d=l.getRootNode().children,c=l.getRootNode().host,s="undefined"!=typeof ShadowRoot&&c.getRootNode()instanceof ShadowRoot);var f,p=i(d);try{for(p.s();!(f=p.n()).done;){var v=f.value;r.add(v)}}catch(e){p.e(e)}finally{p.f()}l=c}}}catch(e){a.e(e)}finally{a.f()}o.forEach(function(e){r.delete(e)}),g.adjacentElements=r},M=function(){if(g.active)return a.removeEventListener("focusin",F,!0),a.removeEventListener("mousedown",P,!0),a.removeEventListener("touchstart",P,!0),a.removeEventListener("click",L,!0),a.removeEventListener("keydown",D,!0),a.removeEventListener("keydown",I),n},K="undefined"!=typeof window&&"MutationObserver"in window?new MutationObserver(function(e){var t=g.mostRecentlyFocusedNode;t&&e.some(function(e){return Array.from(e.removedNodes).some(function(e){return e===t||"function"==typeof e.contains&&e.contains(t)})})&&g.containers.some(function(e){return null==e?void 0:e.isConnected})&&(k(),R(S()))}):void 0,_=function(){K&&(K.disconnect(),g.active&&!g.paused&&g.containers.map(function(e){K.observe(e,{subtree:!0,childList:!0})}))};return Object.defineProperties(n={get active(){return g.active},get paused(){return g.paused},activate:function(e){if(g.active)return this;var t,o,r=w(e,"onActivate"),i=w(e,"onPostActivate"),u=w(e,"checkCanFocusTrap"),s=l.getActiveTrap(h),c=!1;s&&!s.paused&&(null==(t=s._setSubtreeIsolation)||t.call(s,!1),c=!0);try{u||k(),g.active=!0,g.paused=!1,g.nodeFocusedBeforeActivation=O(a),null==r||r({trap:n});var d=function(){u&&k();var e=function(){n._setSubtreeIsolation(!0),_(),null==i||i({trap:n})},t=A();t?t.then(e):e()};if(u)return u(g.containers.concat()).then(d,d),this;d()}catch(e){throw s===l.getActiveTrap(h)&&c&&(null==(o=s._setSubtreeIsolation)||o.call(s,!0)),e}return this},deactivate:function(e){if(!g.active)return this;var t=u({onDeactivate:y.onDeactivate,onPostDeactivate:y.onPostDeactivate,checkCanReturnFocus:y.checkCanReturnFocus},e);clearTimeout(g.delayInitialFocusTimer),g.delayInitialFocusTimer=void 0,g.paused||n._setSubtreeIsolation(!1),g.alreadySilent.clear(),M(),g.active=!1,g.paused=!1,_(),l.deactivateTrap(h,n);var o=w(t,"onDeactivate"),r=w(t,"onPostDeactivate"),i=w(t,"checkCanReturnFocus"),a=w(t,"delayReturnFocus"),s=w(t,"returnFocus","returnFocusOnDeactivate");null==o||o({trap:n});var c=function(){s&&R(C(g.nodeFocusedBeforeActivation)),null==r||r({trap:n})},d=function(){a&&s?p(c):c()};return s&&i?i(C(g.nodeFocusedBeforeActivation)).then(d,d):d(),this},pause:function(e){return g.active?(g.manuallyPaused=!0,this._setPausedState(!0,e)):this},unpause:function(e){return g.active?(g.manuallyPaused=!1,h[h.length-1]!==this)?this:this._setPausedState(!1,e):this},updateContainerElements:function(e){return g.containers=[].concat(e).filter(
1Boolean).map(function(e){return"string"==typeof e?a.querySelector(e):e}),y.isolateSubtrees&&j(g.containers),g.active&&(k(),g.paused||n._setSubtreeIsolation(!0)),_(),this}},{_isManuallyPaused:{value:function(){return g.manuallyPaused}},_setPausedState:{value:function(e,t){if(g.paused===e)return this;if(g.paused=e,e){var o=w(t,"onPause"),r=w(t,"onPostPause");null==o||o({trap:n}),M(),n._setSubtreeIsolation(!1),_(),null==r||r({trap:n})}else{var i,a,u=w(t,"onUnpause"),s=w(t,"onPostUnpause");null==u||u({trap:n}),k(),i=function(){n._setSubtreeIsolation(!0),_(),null==s||s({trap:n})},(a=A())?a.then(i):i()}return this}},_setSubtreeIsolation:{value:function(e){y.isolateSubtrees&&g.adjacentElements.forEach(function(t){var n;e?"aria-hidden"===y.isolateSubtrees?(("true"===t.ariaHidden||(null==(n=t.getAttribute("aria-hidden"))?void 0:n.toLowerCase())==="true")&&g.alreadySilent.add(t),t.setAttribute("aria-hidden","true")):((t.inert||t.hasAttribute("inert"))&&g.alreadySilent.add(t),t.setAttribute("inert",!0)):g.alreadySilent.has(t)||("aria-hidden"===y.isolateSubtrees?t.removeAttribute("aria-hidden"):t.removeAttribute("inert"))})}}}),n.updateContainerElements(e),n}},40748:(e,t,n)=>{n.d(t,{bL:()=>l,s6:()=>s});var o=n(55729),r=n(19639),i=n(6029),a=Object.defineProperty,u=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),s=o.forwardRef(a(function(e,t){return(0,i.jsx)(r.sG.span,{...e,ref:t,style:{...u,...e.style}})},"name",{value:"VisuallyHidden",configurable:!0})),l=s},50105:(e,t,n)=>{function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function r(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(r=function(){return!!e})()}function i(e){return(i=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function a(e,t){return(a=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function u(e){var t=function(e,t){if("object"!=o(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=o(r))return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==o(t)?t:t+""}var s,l,c=n(55729),d=n(9536).createFocusTrap,f=n(7807).isFocusable,p=parseInt(null!=(s=null==(l=/^(\d+)\./.exec(c.version))?void 0:l[1])?s:0,10),v=function(e){var t;function n(e){if(!(this instanceof n))throw TypeError("Cannot call a class as a function");t=n,a=[e],t=i(t),s=d=function(e,t){if(t&&("object"==o(t)||"function"==typeof t))return t;if(void 0!==t)throw TypeError("Derived constructors may only return object or undefined");var n=e;if(void 0===n)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return n}(this,r()?Reflect.construct(t,a||[],i(this).constructor):t.apply(this,a)),l="getNodeForOption",c=function(e){var t,n,o=null!=(t=this.internalOptions[e])?t:this.originalOptions[e];if("function"==typeof o){for(var r=arguments.length,i=Array(r>1?r-1:0),a=1;a<r;a++)i[a-1]=arguments[a];o=o.apply(void 0,i)}if(!0===o&&(o=void 0),!o){if(void 0===o||!1===o)return o;throw Error("`".concat(e,"` was specified but was not a node, or did not return a node"))}var u=o;if("string"==typeof o&&!(u=null==(n=this.getDocument())?void 0:n.querySelector(o)))throw Error("`".concat(e,"` as selector refers to no known node"));return u},(l=u(l))in s?Object.defineProperty(s,l,{value:c,enumerable:!0,configurable:!0,writable:!0}):s[l]=c,d.handleDeactivate=d.handleDeactivate.bind(d),d.handlePostDeactivate=d.handlePostDeactivate.bind(d),d.handleClickOutsideDeactivates=d.handleClickOutsideDeactivates.bind(d),d.internalOptions={returnFocusOnDeactivate:!1,checkCanReturnFocus:null,onDeactivate:d.handleDeactivate,onPostDeactivate:d.handlePostDeactivate,clickOutsideDeactivates:d.handleClickOutsideDeactivates},d.originalOptions={returnFocusOnDeactivate:!0,onDeactivate:null,onPostDeactivate:null,checkCanReturnFocus:null,clickOutsideDeactivates:!1};var t,a,s,l,c,d,f=e.focusTrapOptions;
1for(var p in f)if(Object.prototype.hasOwnProperty.call(f,p)){if("returnFocusOnDeactivate"===p||"onDeactivate"===p||"onPostDeactivate"===p||"checkCanReturnFocus"===p||"clickOutsideDeactivates"===p){d.originalOptions[p]=f[p];continue}d.internalOptions[p]=f[p]}return d.outsideClick=null,d.focusTrapElements=e.containerElements||[],d.updatePreviousElement(),d}if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function");return n.prototype=Object.create(e&&e.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),Object.defineProperty(n,"prototype",{writable:!1}),e&&a(n,e),t=[{key:"getDocument",value:function(){return this.props.focusTrapOptions.document||("undefined"!=typeof document?document:void 0)}},{key:"getReturnFocusNode",value:function(){var e=this.getNodeForOption("setReturnFocus",this.previouslyFocusedElement);return e||!1!==e&&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="function"==typeof this.originalOptions.clickOutsideDeactivates?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&&null!=t&&t.focus&&(!e.outsideClick||e.outsideClick.allowDeactivation&&!f(e.outsideClick.target,e.internalOptions.tabbableOptions))),o=e.internalOptions.preventScroll;n&&t.focus({preventScroll:void 0!==o&&o}),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,o=!e.paused&&this.props.paused,r=e.paused&&!this.props.paused;if(t&&(this.updatePreviousElement(),this.focusTrap.activate()),n)return void this.deactivateTrap();o&&this.focusTrap.pause(),r&&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?c.Children.only(this.props.children):void 0;if(t){if(t.type&&t.type===c.Fragment)throw Error("A focus-trap cannot use a Fragment as its child container. Try replacing it with a <div> element.");return c.cloneElement(t,{ref:function(n){var o=e.props.containerElements;t&&(p>=19?"function"==typeof t.props.ref?t.props.ref(n):t.props.ref&&(t.props.ref.current=n):"function"==typeof t.ref?t.ref(n):t.ref&&(t.ref.current=n)),e.focusTrapElements=o||[n]}})}return null}}],function(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,u(o.key),o)}}(n.prototype,t),Object.defineProperty(n,"prototype",{writable:!1}),n}(c.Component);v.defaultProps={active:!0,paused:!1,focusTrapOptions:{},_createFocusTrap:d},e.exports=v,e.exports.FocusTrap=v},65885:(e,t,n)=>{n.d(t,{fY:()=>g,mh:()=>y});var o=!1;
1if("undefined"!=typeof window){var r={get passive(){o=!0;return}};window.addEventListener("testPassive",null,r),window.removeEventListener("testPassive",null,r)}var i="undefined"!=typeof window&&window.navigator&&window.navigator.platform&&(/iP(ad|hone|od)/.test(window.navigator.platform)||"MacIntel"===window.navigator.platform&&window.navigator.maxTouchPoints>1),a=[],u=!1,s=-1,l=void 0,c=void 0,d=void 0,f=function(e){return a.some(function(t){return!!(t.options.allowTouchMove&&t.options.allowTouchMove(e))})},p=function(e){var t=e||window.event;return!!f(t.target)||t.touches.length>1||(t.preventDefault&&t.preventDefault(),!1)},v=function(e){if(void 0===d){var t=!!e&&!0===e.reserveScrollBarGap,n=window.innerWidth-document.documentElement.clientWidth;if(t&&n>0){var o=parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right"),10);d=document.body.style.paddingRight,document.body.style.paddingRight=o+n+"px"}}void 0===l&&(l=document.body.style.overflow,document.body.style.overflow="hidden")},b=function(){void 0!==d&&(document.body.style.paddingRight=d,d=void 0),void 0!==l&&(document.body.style.overflow=l,l=void 0)},m=function(){if(void 0!==c){var e=-parseInt(document.body.style.top,10),t=-parseInt(document.body.style.left,10);document.body.style.position=c.position,document.body.style.top=c.top,document.body.style.left=c.left,window.scrollTo(t,e),c=void 0}},h=function(e,t){var n=e.targetTouches[0].clientY-s;return!f(e.target)&&(t&&0===t.scrollTop&&n>0?p(e):t&&t.scrollHeight-t.scrollTop<=t.clientHeight&&n<0?p(e):(e.stopPropagation(),!0))},y=function(e,t){if(!e)return void console.error("disableBodyScroll unsuccessful - targetElement must be provided when calling disableBodyScroll on IOS devices.");!a.some(function(t){return t.targetElement===e})&&(a=[].concat(function(e){if(!Array.isArray(e))return Array.from(e);for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}(a),[{targetElement:e,options:t||{}}]),i?window.requestAnimationFrame(function(){if(void 0===c){c={position:document.body.style.position,top:document.body.style.top,left:document.body.style.left};var e=window,t=e.scrollY,n=e.scrollX,o=e.innerHeight;document.body.style.position="fixed",document.body.style.top=-t,document.body.style.left=-n,setTimeout(function(){return window.requestAnimationFrame(function(){var e=o-window.innerHeight;e&&t>=o&&(document.body.style.top=-(t+e))})},300)}}):v(t),i&&(e.ontouchstart=function(e){1===e.targetTouches.length&&(s=e.targetTouches[0].clientY)},e.ontouchmove=function(t){1===t.targetTouches.length&&h(t,e)},u||(document.addEventListener("touchmove",p,o?{passive:!1}:void 0),u=!0)))},g=function(e){if(!e)return void console.error("enableBodyScroll unsuccessful - targetElement must be provided when calling enableBodyScroll on IOS devices.");a=a.filter(function(t){return t.targetElement!==e}),i&&(e.ontouchstart=null,e.ontouchmove=null,u&&0===a.length&&(document.removeEventListener("touchmove",p,o?{passive:!1}:void 0),u=!1)),i?m():b()}},75946:(e,t,n)=>{n.d(t,{UC:()=>ey,q7:()=>eb,N_:()=>eh,B8:()=>ev,bL:()=>ef,Pb:()=>ep,l9:()=>em,LM:()=>eg});var o=n(55729);n(56760);var r=n(99829),i=n(25269),a=n(19639),u=n(57640),s=n(40041),l=n(71979),c=n(78749),d=n(67913),f=n(70140),p=n(20814);function v(e){let t=o.useRef({value:e,previous:e});return o.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}(0,Object.defineProperty)(v,"name",{value:"usePrevious",configurable:!0});var b=n(35896),m=n(9613),h=n(40748),y=n(6029),g=Object.defineProperty,w=(e,t)=>g(e,"name",{value:t,configurable:!0}),E="NavigationMenu",[T,O,S]=(0,f.N)(E),[k,R,C]=(0,f.N)(E),[N,P]=(0,r.A)(E,[S,C]),[F,x]=N(E),[D,I]=N(E),L=o.forwardRef(w(function(e,t){let{__scopeNavigationMenu:n,value:r,onValueChange:i,defaultValue:c,delayDuration:d=200,skipDelayDuration:f=300,orientation:p="horizontal",dir:v,...b}=e,[m,h]=o.useState(null),g=(0,s.s)(t,h),T=(0,l.jH)(v),O=o.useRef(0),S=o.useRef(0),k=o.useRef(0),[R,C]=o.useState(!0),[N,P]=(0,u.i)({prop:r,onChange:w(e=>{let t=f>0;""!==e?(window.clearTimeout(k.current),t&&C(!1)):(window.clearTimeout(k.current),k.current=window.setTimeout(()=>C(!0),f)),i?.(e)}
1,"onChange"),defaultProp:c??"",caller:E}),F=o.useCallback(()=>{window.clearTimeout(S.current),S.current=window.setTimeout(()=>P(""),150)},[P]),x=o.useCallback(e=>{window.clearTimeout(S.current),P(e)},[P]),D=o.useCallback(e=>{N===e?window.clearTimeout(S.current):O.current=window.setTimeout(()=>{window.clearTimeout(S.current),P(e)},d)},[N,P,d]);return o.useEffect(()=>()=>{window.clearTimeout(O.current),window.clearTimeout(S.current),window.clearTimeout(k.current)},[]),(0,y.jsx)(M,{scope:n,isRootMenu:!0,value:N,dir:T,orientation:p,rootNavigationMenu:m,onTriggerEnter:e=>{window.clearTimeout(O.current),R?D(e):x(e)},onTriggerLeave:()=>{window.clearTimeout(O.current),F()},onContentEnter:()=>window.clearTimeout(S.current),onContentLeave:F,onItemSelect:e=>{P(t=>t===e?"":e)},onItemDismiss:()=>P(""),children:(0,y.jsx)(a.sG.nav,{"aria-label":"Main","data-orientation":p,dir:T,...b,ref:g})})},"NavigationMenu")),A="NavigationMenuSub",j=o.forwardRef(w(function(e,t){let{__scopeNavigationMenu:n,value:o,onValueChange:r,defaultValue:i,orientation:s="horizontal",...l}=e,c=x(A,n),[d,f]=(0,u.i)({prop:o,onChange:r,defaultProp:i??"",caller:A});return(0,y.jsx)(M,{scope:n,isRootMenu:!1,value:d,dir:c.dir,orientation:s,rootNavigationMenu:c.rootNavigationMenu,onTriggerEnter:e=>f(e),onItemSelect:e=>f(e),onItemDismiss:()=>f(""),children:(0,y.jsx)(a.sG.div,{"data-orientation":s,...l,ref:t})})},"NavigationMenuSub")),M=w(e=>{let{scope:t,isRootMenu:n,rootNavigationMenu:r,dir:i,orientation:a,children:u,value:s,onItemSelect:l,onItemDismiss:c,onTriggerEnter:f,onTriggerLeave:p,onContentEnter:b,onContentLeave:h}=e,[g,w]=o.useState(null),[E,O]=o.useState(new Map),[S,k]=o.useState(null);return(0,y.jsx)(F,{scope:t,isRootMenu:n,rootNavigationMenu:r,value:s,previousValue:v(s),baseId:(0,d.B)(),dir:i,orientation:a,viewport:g,onViewportChange:w,indicatorTrack:S,onIndicatorTrackChange:k,onTriggerEnter:(0,m.c)(f),onTriggerLeave:(0,m.c)(p),onContentEnter:(0,m.c)(b),onContentLeave:(0,m.c)(h),onItemSelect:(0,m.c)(l),onItemDismiss:(0,m.c)(c),onViewportContentChange:o.useCallback((e,t)=>{O(n=>(n.set(e,t),new Map(n)))},[]),onViewportContentRemove:o.useCallback(e=>{O(t=>t.has(e)?(t.delete(e),new Map(t)):t)},[]),children:(0,y.jsx)(T.Provider,{scope:t,children:(0,y.jsx)(D,{scope:t,items:E,children:u})})})},"NavigationMenuProvider"),K=o.forwardRef(w(function(e,t){let{__scopeNavigationMenu:n,...o}=e,r=x("NavigationMenuList",n),i=(0,y.jsx)(a.sG.ul,{"data-orientation":r.orientation,...o,ref:t});return(0,y.jsx)(a.sG.div,{style:{position:"relative"},ref:r.onIndicatorTrackChange,children:(0,y.jsx)(T.Slot,{scope:n,children:r.isRootMenu?(0,y.jsx)(et,{asChild:!0,children:i}):i})})},"NavigationMenuList")),[_,G]=N("NavigationMenuItem"),B=o.forwardRef(w(function(e,t){let{__scopeNavigationMenu:n,value:r,...i}=e,u=(0,d.B)(),s=o.useRef(null),l=o.useRef(null),c=o.useRef(null),f=o.useRef(()=>{}),p=o.useRef(!1),v=o.useCallback((e="start")=>{if(s.current){f.current();let t=er(s.current);t.length&&ei("start"===e?t:t.reverse())}},[]),b=o.useCallback(()=>{if(s.current){let e=er(s.current);e.length&&(f.current=ea(e))}},[]);return(0,y.jsx)(_,{scope:n,value:r||u||"LEGACY_REACT_AUTO_VALUE",triggerRef:l,contentRef:s,focusProxyRef:c,wasEscapeCloseRef:p,onEntryKeyDown:v,onFocusProxyEnter:v,onRootContentClose:b,onContentFocusOutside:b,children:(0,y.jsx)(a.sG.li,{...i,ref:t})})},"NavigationMenuItem")),H="NavigationMenuTrigger",V=o.forwardRef(w(function(e,t){let{__scopeNavigationMenu:n,disabled:r,...u}=e,l=x(H,e.__scopeNavigationMenu),c=G(H,e.__scopeNavigationMenu),d=o.useRef(null),f=(0,s.s)(d,c.triggerRef,t),p=el(l.baseId,c.value),v=ec(l.baseId,c.value),b=o.useRef(!1),m=o.useRef(!1),g=c.value===l.value;return(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(T.ItemSlot,{scope:n,value:c.value,children:(0,y.jsx)(eo,{asChild:!0,children:(0,y.jsx)(a.sG.button,{id:p,disabled:r,"data-disabled":r?"":void 0,"data-state":es(g),"aria-expanded":g,"aria-controls":g?v:void 0,...u,ref:f,onPointerEnter:(0,i.mK)(e.onPointerEnter,()=>{m.current=!1,c.wasEscapeCloseRef.current=!1}),onPointerMove:(0,i.mK)(e.onPointerMove,ed(()=>{r||m.current||c.wasEscapeCloseRef.current||b.current||(l.onTriggerEnter(c.value),b.current=!0)})),onPointerLeave:(0,i.mK)(e.onPointerLeave,ed(()=>{r||(l.onTriggerLeave(),b.current=!1)})),onClick:(0,i.mK)(e.onClick,()=>{l.onItemSelect(c.value),m.current=g}),onKeyDown:(0,i.mK)(e.onKeyDown,e=>{let t={horizontal:"ArrowDown",vertical:"rtl"===l.dir?"ArrowLeft":"ArrowRight"}[l.orientation];g&&e.key===t&&(c.onEntryKeyDown(),e.preventDefault())})})})}),g&&(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(h.bL,{"aria-hidden":!0,tabIndex:0,ref:c.focusProxyRef,onFocus:e=>{let t=c.contentRef.current,n=e.relatedTarget,o=n===d.current,r=t?.contains(n);(o||!r)&&c.onFocusProxyEnter(o?"start":"end")}}),l.viewport&&(0,y.jsx)("span",{"aria-owns":v})]})]})},"NavigationMenuTrigger")),U="navigationMenu.linkSelect",W=o.forwardRef(w(function(e,t){let{__scopeNavigationMenu:n,active:o,onSelect:r,...u}=e;return(0,y.jsx)(eo,{asChild:!0,children:(0,y.jsx)(a.sG.a,{"data-active":o?"":void 0,"aria-current":o?"page":void 0,...u,ref:t,onClick:(0,i.mK)(e.onClick,e=>{let t=e.target,n=new CustomEvent(U,{bubbles:!0,cancelable:!0});if(t.addEventListener(U,e=>r?.(e),{once:!0}),(0,a.hO)(t,n),!n.defaultPrevented&&!e.metaKey){let e=new CustomEvent($,{bubbles:!0,cancelable:!0});(0,a.hO)(t,e)}},{checkForDefaultPrevented:!1})})})},"NavigationMenuLink")),q="NavigationMenuContent",Y=o.forwardRef(w(function(e,t){let{forceMount:n,...o}=e,r=x(q,e.__scopeNavigationMenu),a=G(q,e.__scopeNavigationMenu),u=(0,s.s)(a.contentRef,t),l=a.value===r.value,d={value:a.value,triggerRef:a.triggerRef,focu
1sProxyRef:a.focusProxyRef,wasEscapeCloseRef:a.wasEscapeCloseRef,onContentFocusOutside:a.onContentFocusOutside,onRootContentClose:a.onRootContentClose,...o};return r.viewport?(0,y.jsx)(z,{forceMount:n,...d,ref:u}):(0,y.jsx)(c.C,{present:n||l,children:(0,y.jsx)(X,{"data-state":es(l),...d,ref:u,onPointerEnter:(0,i.mK)(e.onPointerEnter,r.onContentEnter),onPointerLeave:(0,i.mK)(e.onPointerLeave,ed(r.onContentLeave)),style:{pointerEvents:!l&&r.isRootMenu?"none":void 0,...d.style}})})},"NavigationMenuContent")),z=o.forwardRef(w(function(e,t){let{onViewportContentChange:n,onViewportContentRemove:o}=x(q,e.__scopeNavigationMenu);return(0,b.N)(()=>{n(e.value,{ref:t,...e})},[e,t,n]),(0,b.N)(()=>()=>o(e.value),[e.value,o]),null},"ViewportContentMounter")),$="navigationMenu.rootContentDismiss",X=o.forwardRef(w(function(e,t){let{__scopeNavigationMenu:n,value:r,triggerRef:a,focusProxyRef:u,wasEscapeCloseRef:l,onRootContentClose:c,onContentFocusOutside:d,...f}=e,v=x(q,n),b=o.useRef(null),m=(0,s.s)(b,t),h=el(v.baseId,r),g=ec(v.baseId,r),E=O(n),T=o.useRef(null),{onItemDismiss:S}=v;o.useEffect(()=>{let e=b.current;if(v.isRootMenu&&e){let t=w(()=>{S(),c(),e.contains(document.activeElement)&&a.current?.focus()},"handleClose");return e.addEventListener($,t),()=>e.removeEventListener($,t)}},[v.isRootMenu,e.value,a,S,c]);let k=o.useMemo(()=>{let e=E().map(e=>e.value);"rtl"===v.dir&&e.reverse();let t=e.indexOf(v.value),n=e.indexOf(v.previousValue),o=r===v.value,i=n===e.indexOf(r);if(!o&&!i)return T.current;let a=(()=>{if(t!==n){if(o&&-1!==n)return t>n?"from-end":"from-start";if(i&&-1!==t)return t>n?"to-start":"to-end"}return null})();return T.current=a,a},[v.previousValue,v.value,v.dir,E,r]);return(0,y.jsx)(et,{asChild:!0,children:(0,y.jsx)(p.qW,{id:g,"aria-labelledby":h,"data-motion":k,"data-orientation":v.orientation,...f,ref:m,disableOutsidePointerEvents:!1,onDismiss:()=>{let e=new Event($,{bubbles:!0,cancelable:!0});b.current?.dispatchEvent(e)},onFocusOutside:(0,i.mK)(e.onFocusOutside,e=>{d();let t=e.target;v.rootNavigationMenu?.contains(t)&&e.preventDefault()}),onPointerDownOutside:(0,i.mK)(e.onPointerDownOutside,e=>{let t=e.target,n=E().some(e=>e.ref.current?.contains(t)),o=v.isRootMenu&&v.viewport?.contains(t);(n||o||!v.isRootMenu)&&e.preventDefault()}),onKeyDown:(0,i.mK)(e.onKeyDown,e=>{let t=e.altKey||e.ctrlKey||e.metaKey;if("Tab"===e.key&&!t){let t=er(e.currentTarget),n=document.activeElement,o=t.findIndex(e=>e===n);ei(e.shiftKey?t.slice(0,o).reverse():t.slice(o+1,t.length))?e.preventDefault():u.current?.focus()}}),onEscapeKeyDown:(0,i.mK)(e.onEscapeKeyDown,e=>{l.current=!0})})})},"NavigationMenuContentImpl")),J="NavigationMenuViewport",Q=o.forwardRef(w(function(e,t){let{forceMount:n,...o}=e,r=!!x(J,e.__scopeNavigationMenu).value;return(0,y.jsx)(c.C,{present:n||r,children:(0,y.jsx)(Z,{...o,ref:t})})},"NavigationMenuViewport")),Z=o.forwardRef(w(function(e,t){let{__scopeNavigationMenu:n,children:r,...u}=e,l=x(J,n),d=(0,s.s)(t,l.onViewportChange),f=I(q,e.__scopeNavigationMenu),[p,v]=o.useState(null),[b,m]=o.useState(null),h=p?p?.width+"px":void 0,g=p?p?.height+"px":void 0,E=!!l.value,T=E?l.value:l.previousValue,O=w(()=>{b&&v({width:b.offsetWidth,height:b.offsetHeight})},"handleSizeChange");return eu(b,O),(0,y.jsx)(a.sG.div,{"data-state":es(E),"data-orientation":l.orientation,...u,ref:d,style:{pointerEvents:!E&&l.isRootMenu?"none":void 0,"--radix-navigation-menu-viewport-width":h,"--radix-navigation-menu-viewport-height":g,...u.style},onPointerEnter:(0,i.mK)(e.onPointerEnter,l.onContentEnter),onPointerLeave:(0,i.mK)(e.onPointerLeave,ed(l.onContentLeave)),children:Array.from(f.items).map(([e,{ref:t,forceMount:n,...o}])=>{let r=T===e;return(0,y.jsx)(c.C,{present:n||r,children:(0,y.jsx)(ee,{...o,contentRef:t,isActive:r,onActiveContentChange:m})},e)})})},"NavigationMenuViewportImpl")),ee=w(({contentRef:e,isActive:t,onActiveContentChange:n,...r})=>{let i=o.useCallback(e=>{t&&e&&n(e)},[t,n]),a=(0,s.s)(e,i);return(0,y.jsx)(X,{...r,ref:a})},"NavigationMenuViewportItem"),et=o.forwardRef(w(function(e,t){let{__scopeNavigationMenu:n,...o}=e,r=x("FocusGroup",n);return(0,y.jsx)(k.Provider,{scope:n,children:(0,y.jsx)(k.Slot,{scope:n,children:(0,y.jsx)(a.sG.div,{dir:r.dir,...o,ref:t})})})},"FocusGroup")),en=["ArrowRight","ArrowLeft","ArrowUp","ArrowDown"],eo=o.forwardRef(w(function(e,t){let{__scopeNavigationMenu:n,...o}=e,r=R(n),u=x("FocusGroupItem",n);return(0,y.jsx)(k.ItemSlot,{scope:n,children:(0,y.jsx)(a.sG.button,{...o,ref:t,onKeyDown:(0,i.mK)(e.onKeyDown,e=>
1{if(["Home","End",...en].includes(e.key)){let t=r().map(e=>e.ref.current);if(["rtl"===u.dir?"ArrowRight":"ArrowLeft","ArrowUp","End"].includes(e.key)&&t.reverse(),en.includes(e.key)){let n=t.indexOf(e.currentTarget);t=t.slice(n+1)}setTimeout(()=>ei(t)),e.preventDefault()}})})})},"FocusGroupItem"));function er(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:w(e=>{let t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP},"acceptNode")});for(;n.nextNode();)t.push(n.currentNode);return t}function ei(e){let t=document.activeElement;return e.some(e=>e===t||(e.focus(),document.activeElement!==t))}function ea(e){return e.forEach(e=>{e.dataset.tabindex=e.getAttribute("tabindex")||"",e.setAttribute("tabindex","-1")}),()=>{e.forEach(e=>{let t=e.dataset.tabindex;e.setAttribute("tabindex",t)})}}function eu(e,t){let n=(0,m.c)(t);(0,b.N)(()=>{let t=0;if(e){let o=new ResizeObserver(()=>{cancelAnimationFrame(t),t=window.requestAnimationFrame(n)});return o.observe(e),()=>{window.cancelAnimationFrame(t),o.unobserve(e)}}},[e,n])}function es(e){return e?"open":"closed"}function el(e,t){return`${e}-trigger-${t}`}function ec(e,t){return`${e}-content-${t}`}function ed(e){return t=>"mouse"===t.pointerType?e(t):void 0}w(er,"getTabbableCandidates"),w(ei,"focusFirst"),w(ea,"removeFromTabOrder"),w(eu,"useResizeObserver"),w(es,"getOpenState"),w(el,"makeTriggerId"),w(ec,"makeContentId"),w(ed,"whenMouse");var ef=L,ep=j,ev=K,eb=B,em=V,eh=W,ey=Y,eg=Q},90492:(e,t,n)=>{n.d(t,{Y0:()=>j});function o(e){return e.target}let r=e=>!function(e){return"object"==typeof e&&null!=e&&"window"in e&&e.window===e}(e)?!function(e){return null!==e&&"object"==typeof e&&"nodeType"in e&&"number"==typeof e.nodeType&&9===e.nodeType}(e)?e?.ownerDocument??("undefined"!=typeof document?document:void 0):e:e.document,i=e=>{let t=r(e);return t?.defaultView??("undefined"!=typeof window?window:void 0)};var a=n(55729);function u(e){if("undefined"==typeof window||null==window.navigator)return!1;let t=window.navigator.userAgentData?.brands;return Array.isArray(t)&&t.some(t=>e.test(t.brand))||e.test(window.navigator.userAgent)}function s(e){return"undefined"!=typeof window&&null!=window.navigator&&e.test(window.navigator.userAgentData?.platform||window.navigator.platform)}function l(e){let t=null;return()=>(null==t&&(t=e()),t)}let c=l(function(){return s(/^Mac/i)}),d=l(function(){return s(/^iPhone/i)}),f=l(function(){return s(/^iPad/i)||c()&&navigator.maxTouchPoints>1}),p=l(function(){return d()||f()});l(function(){return c()||p()});let v=l(function(){return u(/AppleWebKit/i)&&(p()||!b())});l(function(){return v()&&!b()&&!h()});let b=l(function(){return u(/Chrome|CriOS|CrMo/i)}),m=l(function(){return u(/Android/i)}),h=l(function(){return u(/(Firefox|FxiOS)/i)}),y=null;function g(e,t,n=!0){let{metaKey:o,ctrlKey:r,altKey:i,shiftKey:a}=t;!v()&&h()&&window.event?.type?.startsWith("key")&&"_blank"===e.target&&(c()?o=!0:r=!0);let u=v()&&c()&&!f()&&1?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:o,ctrlKey:r,altKey:i,shiftKey:a}):new MouseEvent("click",{metaKey:o,ctrlKey:r,altKey:i,shiftKey:a,detail:1,bubbles:!0,cancelable:!0});g.isOpening=n;if(function(){if(null==y){y=!1;try{document.createElement("div").focus({get preventScroll(){return y=!0,!0}})}catch{}}return y}())e.focus({preventScroll:!0});else{let t=function(e){let t=e.parentNode,n=[],o=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==o;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&n.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;return o instanceof HTMLElement&&n.push({element:o,scrollTop:o.scrollTop,scrollLeft:o.scrollLeft}),n}(e);e.focus(),function(e){for(let{element:t,scrollTop:n,scrollLeft:o}of e)t.scrollTop=n,t.scrollLeft=o}(t)}e.dispatchEvent(u),g.isOpening=!1}g.isOpening=!1;let w=null,E=new Set,T=new Map,O=!1,S=!1,k={Tab:!0,Escape:!0};function R(e,t){for(let n of E)n(e,t)}function C(e){O=!0,g.isOpening||e.metaKey||!c()&&e.altKey||e.ctrlKey||"Control"
1===e.key||"Shift"===e.key||"Meta"===e.key||(w="keyboard",R("keyboard",e))}function N(e){w="pointer","pointerType"in e&&e.pointerType,("mousedown"===e.type||"pointerdown"===e.type)&&(O=!0,R("pointer",e))}function P(e){g.isOpening||(""!==e.pointerType||!e.isTrusted)&&(m()&&e.pointerType?"click"!==e.type||1!==e.buttons:0!==e.detail||e.pointerType)||(O=!0,w="virtual")}function F(e){let t=i(o(e)),n=r(o(e));o(e)!==t&&o(e)!==n&&e.isTrusted&&(O||S||(w="virtual",R("virtual",e)),O=!1,S=!1)}function x(){O=!1,S=!0}function D(e){if("undefined"==typeof window||"undefined"==typeof document)return;let t=i(e),n=r(e);if(T.get(t))return;let o=t.HTMLElement.prototype.focus;Reflect.defineProperty(t.HTMLElement.prototype,"focus",{configurable:!0,writable:!0,value:function(){O=!0,o.apply(this,arguments)}}),n.addEventListener("keydown",C,!0),n.addEventListener("keyup",C,!0),n.addEventListener("click",P,!0),t.addEventListener("focus",F,!0),t.addEventListener("blur",x,!1),"undefined"!=typeof PointerEvent&&(n.addEventListener("pointerdown",N,!0),n.addEventListener("pointermove",N,!0),n.addEventListener("pointerup",N,!0)),t.addEventListener("beforeunload",()=>{I(e)},{once:!0}),T.set(t,{focus:o})}let I=(e,t)=>{let n=i(e),o=r(e);t&&o.removeEventListener("DOMContentLoaded",t),T.has(n)&&(Reflect.defineProperty(n.HTMLElement.prototype,"focus",{configurable:!0,writable:!0,value:T.get(n).focus}),o.removeEventListener("keydown",C,!0),o.removeEventListener("keyup",C,!0),o.removeEventListener("click",P,!0),n.removeEventListener("focus",F,!0),n.removeEventListener("blur",x,!1),"undefined"!=typeof PointerEvent&&(o.removeEventListener("pointerdown",N,!0),o.removeEventListener("pointermove",N,!0),o.removeEventListener("pointerup",N,!0)),T.delete(n))};function L(){return"pointer"!==w}"undefined"!=typeof document&&function(e){let t,n=r(void 0);"loading"!==n.readyState?D(void 0):(t=()=>{D(e)},n.addEventListener("DOMContentLoaded",t)),()=>I(e,t)}();let A=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function j(e={}){var t,n,u;let{isTextInput:s,autoFocus:l}=e,[c,d]=(0,a.useState)(l||L());return t=e=>{d(e)},n=[s],u={isTextInput:s},D(),(0,a.useEffect)(()=>{if(u?.enabled===!1)return;let e=(e,n)=>{(function(e,t,n){let a=n?o(n):void 0,u=r(a),s=i(a),l=void 0!==s?s.HTMLInputElement:HTMLInputElement,c=void 0!==s?s.HTMLTextAreaElement:HTMLTextAreaElement,d=void 0!==s?s.HTMLElement:HTMLElement,f=void 0!==s?s.KeyboardEvent:KeyboardEvent,p=((e=document)=>e.activeElement)(u);return!((e=e||p instanceof l&&!A.has(p.type)||p instanceof c||p instanceof d&&p.isContentEditable)&&"keyboard"===t&&n instanceof f&&!k[n.key])})(!!u?.isTextInput,e,n)&&t(L())};return E.add(e),()=>{E.delete(e)}},n),{isFocusVisible:c}}}}]);
2//# sourceMappingURL=4075.3e93e81a06a7cde3.js.map

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.