1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3659],{83790:(e,t,r)=>{r.d(t,{n1:()=>v,N$:()=>y});var n=r(74807),o=r(72030),i=r(70883),l=r(86317),u=r(75254),c=r(43756);class s{get currentNode(){return this._currentNode}set currentNode(e){if(!(0,i.sD)(this.root,e))throw Error("Cannot set currentNode to a node that is not contained by the root node.");let t=[],r=e,n=e;for(this._currentNode=e;r&&r!==this.root;)if(r.nodeType===Node.DOCUMENT_FRAGMENT_NODE){let e=r,o=this._doc.createTreeWalker(e,this.whatToShow,{acceptNode:this._acceptNode});t.push(o),o.currentNode=n,this._currentSetFor.add(o),r=n=e.host}else r=r.parentNode;let o=this._doc.createTreeWalker(this.root,this.whatToShow,{acceptNode:this._acceptNode});t.push(o),o.currentNode=n,this._currentSetFor.add(o),this._walkerStack=t}get doc(){return this._doc}firstChild(){let e=this.currentNode,t=this.nextNode();return(0,i.sD)(e,t)?(t&&(this.currentNode=t),t):(this.currentNode=e,null)}lastChild(){let e=this._walkerStack[0].lastChild();return e&&(this.currentNode=e),e}nextNode(){let e=this._walkerStack[0].nextNode();if(e){if(e.shadowRoot){var t;let r;if("function"==typeof this.filter?r=this.filter(e):(null===(t=this.filter)||void 0===t?void 0:t.acceptNode)&&(r=this.filter.acceptNode(e)),r===NodeFilter.FILTER_ACCEPT)return this.currentNode=e,e;let n=this.nextNode();return n&&(this.currentNode=n),n}return e&&(this.currentNode=e),e}if(!(this._walkerStack.length>1))return null;{this._walkerStack.shift();let e=this.nextNode();return e&&(this.currentNode=e),e}}previousNode(){let e=this._walkerStack[0];if(e.currentNode===e.root){if(this._currentSetFor.has(e)&&(this._currentSetFor.delete(e),this._walkerStack.length>1)){this._walkerStack.shift();let e=this.previousNode();return e&&(this.currentNode=e),e}return null}let t=e.previousNode();if(t){if(t.shadowRoot){var r;let e;if("function"==typeof this.filter?e=this.filter(t):(null===(r=this.filter)||void 0===r?void 0:r.acceptNode)&&(e=this.filter.acceptNode(t)),e===NodeFilter.FILTER_ACCEPT)return t&&(this.currentNode=t),t;let n=this.lastChild();return n&&(this.currentNode=n),n}return t&&(this.currentNode=t),t}if(!(this._walkerStack.length>1))return null;{this._walkerStack.shift();let e=this.previousNode();return e&&(this.currentNode=e),e}}nextSibling(){return null}previousSibling(){return null}parentNode(){return null}constructor(e,t,r,n){this._walkerStack=[],this._currentSetFor=new Set,this._acceptNode=e=>{if(e.nodeType===Node.ELEMENT_NODE){var t;let r=e.shadowRoot;if(r){let e=this._doc.createTreeWalker(r,this.whatToShow,{acceptNode:this._acceptNode});return this._walkerStack.unshift(e),NodeFilter.FILTER_ACCEPT}if("function"==typeof this.filter)return this.filter(e);if(null===(t=this.filter)||void 0===t?void 0:t.acceptNode)return this.filter.acceptNode(e);if(null===this.filter)return NodeFilter.FILTER_ACCEPT}return NodeFilter.FILTER_SKIP},this._doc=e,this.root=t,this.filter=null!=n?n:null,this.whatToShow=null!=r?r:NodeFilter.SHOW_ALL,this._currentNode=t,this._walkerStack.unshift(e.createTreeWalker(t,r,this._acceptNode));let o=t.shadowRoot;if(o){let e=this._doc.createTreeWalker(o,this.whatToShow,{acceptNode:this._acceptNode});this._walkerStack.unshift(e)}}}var d=r(55493),a=r(23208),f=r(73105);let h=f.createContext(null),N="react-aria-focus-scope-restore",p=null;function v(e){var t,r,u,c,s;let a,v,{children:L,contain:x,restoreFocus:M,autoFocus:W}=e,A=(0,f.useRef)(null),K=(0,f.useRef)(null),I=(0,f.useRef)([]),{parentNode:P}=(0,f.useContext)(h)||{},q=(0,f.useMemo)(()=>new C({scopeRef:I}),[I]);(0,o.N)(()=>{let e=P||F.root;if(F.getTreeNode(e.scopeRef)&&p&&!R(p,e.scopeRef)){let t=F.getTreeNode(p);t&&(e=t)}e.addChild(q),F.addNode(q)},[q,P]),(0,o.N)(()=>{let e=F.getTreeNode(I);e&&(e.contain=!!x)},[x]),(0,o.N)(()=>{var e;let t=null===(e=A.current)||void 0===e?void 0:e.nextSibling,r=[],n=e=>e.stopPropagation();for(;t&&t!==K.current;)r.push(t),t.addEventListener(N,n),t=t.nextSibling;return I.current=r,()=>{for(let e of r)e.removeEventListener(N,n)}},[L]),t=I,r=M,u=x,(0,o.N)(()=>{if(r||u)return;let e=t.current,o=(0,n.TW)(e?e[0]:void 0),l=e=>{let r=(0,i.wt)(e);T(r,t.current)?p=t:!m(r)&&(p=null)};
1return o.addEventListener("focusin",l,!1),null==e||e.forEach(e=>e.addEventListener("focusin",l,!1)),()=>{o.removeEventListener("focusin",l,!1),null==e||e.forEach(e=>e.removeEventListener("focusin",l,!1))}},[t,r,u]),c=I,s=x,a=(0,f.useRef)(void 0),v=(0,f.useRef)(void 0),(0,o.N)(()=>{let e=c.current;if(!s){v.current&&(cancelAnimationFrame(v.current),v.current=void 0);return}let t=(0,n.TW)(e?e[0]:void 0),r=e=>{if("Tab"!==e.key||e.altKey||e.ctrlKey||e.metaKey||!b(c)||e.isComposing)return;let r=(0,i.bq)(t),n=c.current;if(!n||!T(r,n))return;let o=y(E(n),{tabbable:!0},n);if(!r)return;o.currentNode=r;let l=e.shiftKey?o.previousNode():o.nextNode();l||(o.currentNode=e.shiftKey?n[n.length-1].nextElementSibling:n[0].previousElementSibling,l=e.shiftKey?o.previousNode():o.nextNode()),e.preventDefault(),l&&w(l,!0)},o=e=>{(!p||R(p,c))&&T((0,i.wt)(e),c.current)?(p=c,a.current=(0,i.wt)(e)):b(c)&&!m((0,i.wt)(e),c)?a.current?a.current.focus():p&&p.current&&g(p.current):b(c)&&(a.current=(0,i.wt)(e))},u=e=>{v.current&&cancelAnimationFrame(v.current),v.current=requestAnimationFrame(()=>{let r=(0,d.ME)(),n=("virtual"===r||null===r)&&(0,l.m0)()&&(0,l.H8)(),o=(0,i.bq)(t);if(!n&&o&&b(c)&&!m(o,c)){p=c;let t=(0,i.wt)(e);if(t&&t.isConnected){var u;a.current=t,null===(u=a.current)||void 0===u||u.focus()}else p.current&&g(p.current)}})};return t.addEventListener("keydown",r,!1),t.addEventListener("focusin",o,!1),null==e||e.forEach(e=>e.addEventListener("focusin",o,!1)),null==e||e.forEach(e=>e.addEventListener("focusout",u,!1)),()=>{t.removeEventListener("keydown",r,!1),t.removeEventListener("focusin",o,!1),null==e||e.forEach(e=>e.removeEventListener("focusin",o,!1)),null==e||e.forEach(e=>e.removeEventListener("focusout",u,!1))}},[c,s]),(0,o.N)(()=>()=>{v.current&&cancelAnimationFrame(v.current)},[v]),function(e,t,r){let l=(0,f.useRef)("undefined"!=typeof document?(0,i.bq)((0,n.TW)(e.current?e.current[0]:void 0)):null);(0,o.N)(()=>{let o=e.current,l=(0,n.TW)(o?o[0]:void 0);if(!t||r)return;let u=()=>{(!p||R(p,e))&&T((0,i.bq)(l),e.current)&&(p=e)};return l.addEventListener("focusin",u,!1),null==o||o.forEach(e=>e.addEventListener("focusin",u,!1)),()=>{l.removeEventListener("focusin",u,!1),null==o||o.forEach(e=>e.removeEventListener("focusin",u,!1))}},[e,r]),(0,o.N)(()=>{let o=(0,n.TW)(e.current?e.current[0]:void 0);if(!t)return;let i=t=>{if("Tab"!==t.key||t.altKey||t.ctrlKey||t.metaKey||!b(e)||t.isComposing)return;let r=o.activeElement;if(!m(r,e)||!S(e))return;let n=F.getTreeNode(e);if(!n)return;let i=n.nodeToRestore,l=y(o.body,{tabbable:!0});l.currentNode=r;let u=t.shiftKey?l.previousNode():l.nextNode();if(i&&i.isConnected&&i!==o.body||(i=void 0,n.nodeToRestore=void 0),(!u||!m(u,e))&&i){l.currentNode=i;do u=t.shiftKey?l.previousNode():l.nextNode();while(m(u,e));(t.preventDefault(),t.stopPropagation(),u)?w(u,!0):m(i)?w(i,!0):r.blur()}};return r||o.addEventListener("keydown",i,!0),()=>{r||o.removeEventListener("keydown",i,!0)}},[e,t,r]),(0,o.N)(()=>{var r;let o=(0,n.TW)(e.current?e.current[0]:void 0);if(!t)return;let u=F.getTreeNode(e);if(u)return u.nodeToRestore=null!==(r=l.current)&&void 0!==r?r:void 0,()=>{let r=F.getTreeNode(e);if(!r)return;let n=r.nodeToRestore,l=(0,i.bq)(o);if(t&&n&&(l&&m(l,e)||l===o.body&&S(e))){let t=F.clone();requestAnimationFrame(()=>{if(o.activeElement===o.body){let r=t.getTreeNode(e);for(;r;){if(r.nodeToRestore&&r.nodeToRestore.isConnected){k(r.nodeToRestore);return}r=r.parent}for(r=t.getTreeNode(e);r;){if(r.scopeRef&&r.scopeRef.current&&F.getTreeNode(r.scopeRef)){k(_(r.scopeRef.current,!0));return}r=r.parent}}})}}},[e,t])}(I,M,x),function(e,t){let r=f.useRef(t);(0,f.useEffect)(()=>{if(r.current){p=e;let t=(0,n.TW)(e.current?e.current[0]:void 0);!T((0,i.bq)(t),p.current)&&e.current&&g(e.current)}r.current=!1},[e])}(I,W),(0,f.useEffect)(()=>{let e=(0,i.bq)((0,n.TW)(I.current?I.current[0]:void 0)),t=null;if(T(e,I.current)){for(let r of F.traverse())r.scopeRef&&T(e,r.scopeRef.current)&&(t=r);t===F.getTreeNode(I)&&(p=t.scopeRef)}},[I]),(0,o.N)(()=>()=>{var e,t,r;let n=null!==(r=null===(t=F.getTreeNode(I))||void 0===t?void 0:null===(e=t.parent)||void 0===e?void 0:e.scopeRef)&&void 0!==r?r:null;(I===p||R(I,p))&&(!n||F.getTreeNode(n))&&(p=n),F.removeTreeNode(I)},[I]);let D=(0,f.useMemo)(()=>{var e;return e=I,{focusNext(t={}){var r;let o=e.current,{from:l,tabbable:u,wrap:c,accept:s}=t,d=l||(0,i.bq)((0,n.TW)(null!==(r=o[0])&&void 0!==r?r:void 0)),a=o[0].previousElementSibling,f=y(E(o),{tabbable:u,accept:s},o);f.currentNode=T(d,o)?d:a;let h=f.nextNode();
1return!h&&c&&(f.currentNode=a,h=f.nextNode()),h&&w(h,!0),h},focusPrevious(t={}){var r;let o=e.current,{from:l,tabbable:u,wrap:c,accept:s}=t,d=l||(0,i.bq)((0,n.TW)(null!==(r=o[0])&&void 0!==r?r:void 0)),a=o[o.length-1].nextElementSibling,f=y(E(o),{tabbable:u,accept:s},o);f.currentNode=T(d,o)?d:a;let h=f.previousNode();return!h&&c&&(f.currentNode=a,h=f.previousNode()),h&&w(h,!0),h},focusFirst(t={}){let r=e.current,{tabbable:n,accept:o}=t,i=y(E(r),{tabbable:n,accept:o},r);i.currentNode=r[0].previousElementSibling;let l=i.nextNode();return l&&w(l,!0),l},focusLast(t={}){let r=e.current,{tabbable:n,accept:o}=t,i=y(E(r),{tabbable:n,accept:o},r);i.currentNode=r[r.length-1].nextElementSibling;let l=i.previousNode();return l&&w(l,!0),l}}},[]),O=(0,f.useMemo)(()=>({focusManager:D,parentNode:q}),[q,D]);return f.createElement(h.Provider,{value:O},f.createElement("span",{"data-focus-scope-start":!0,hidden:!0,ref:A}),L,f.createElement("span",{"data-focus-scope-end":!0,hidden:!0,ref:K}))}function E(e){return e[0].parentElement}function b(e){let t=F.getTreeNode(p);for(;t&&t.scopeRef!==e;){if(t.contain)return!1;t=t.parent}return!0}function T(e,t){return!!e&&!!t&&t.some(t=>t.contains(e))}function m(e,t=null){if(e instanceof Element&&e.closest("[data-react-aria-top-layer]"))return!0;for(let{scopeRef:r}of F.traverse(F.getTreeNode(t)))if(r&&T(e,r.current))return!0;return!1}function R(e,t){var r;let n=null===(r=F.getTreeNode(t))||void 0===r?void 0:r.parent;for(;n;){if(n.scopeRef===e)return!0;n=n.parent}return!1}function w(e,t=!1){if(null==e||t){if(null!=e)try{e.focus()}catch{}}else try{(0,a.l)(e)}catch{}}function _(e,t=!0){let r=e[0].previousElementSibling,n=E(e),o=y(n,{tabbable:t},e);o.currentNode=r;let i=o.nextNode();return t&&!i&&((o=y(n=E(e),{tabbable:!1},e)).currentNode=r,i=o.nextNode()),i}function g(e,t=!0){w(_(e,t))}function S(e){let t=F.getTreeNode(p);for(;t&&t.scopeRef!==e;){if(t.nodeToRestore)return!1;t=t.parent}return(null==t?void 0:t.scopeRef)===e}function k(e){e.dispatchEvent(new CustomEvent(N,{bubbles:!0,cancelable:!0}))&&w(e)}function y(e,t,r){var o,i,l;let d=(null==t?void 0:t.tabbable)?u.A:u.t,a=(null==e?void 0:e.nodeType)===Node.ELEMENT_NODE?e:null,f=(0,n.TW)(a),h=(o=e||f,i=NodeFilter.SHOW_ELEMENT,l={acceptNode(e){var o;return(null==t?void 0:null===(o=t.from)||void 0===o?void 0:o.contains(e))?NodeFilter.FILTER_REJECT:d(e)&&function e(t,r){return"#comment"!==t.nodeName&&function(e){let t=(0,n.mD)(e);if(!(e instanceof t.HTMLElement)&&!(e instanceof t.SVGElement))return!1;let{display:r,visibility:o}=e.style,i="none"!==r&&"hidden"!==o&&"collapse"!==o;if(i){let{getComputedStyle:t}=e.ownerDocument.defaultView,{display:r,visibility:n}=t(e);i="none"!==r&&"hidden"!==n&&"collapse"!==n}return i}(t)&&!t.hasAttribute("hidden")&&!t.hasAttribute("data-react-aria-prevent-focus")&&("DETAILS"!==t.nodeName||!r||"SUMMARY"===r.nodeName||t.hasAttribute("open"))&&(!t.parentElement||e(t.parentElement,t))}(e)&&(!r||T(e,r))&&(!(null==t?void 0:t.accept)||t.accept(e))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}},(0,c.Nf)()?new s(f,o,i,l):f.createTreeWalker(o,i,l));return(null==t?void 0:t.from)&&(h.currentNode=t.from),h}class L{get size(){return this.fastMap.size}getTreeNode(e){return this.fastMap.get(e)}addTreeNode(e,t,r){let n=this.fastMap.get(null!=t?t:null);if(!n)return;let o=new C({scopeRef:e});n.addChild(o),o.parent=n,this.fastMap.set(e,o),r&&(o.nodeToRestore=r)}addNode(e){this.fastMap.set(e.scopeRef,e)}removeTreeNode(e){if(null===e)return;let t=this.fastMap.get(e);if(!t)return;let r=t.parent;for(let e of this.traverse())e!==t&&t.nodeToRestore&&e.nodeToRestore&&t.scopeRef&&t.scopeRef.current&&T(e.nodeToRestore,t.scopeRef.current)&&(e.nodeToRestore=t.nodeToRestore);let n=t.children;r&&(r.removeChild(t),n.size>0&&n.forEach(e=>r&&r.addChild(e))),this.fastMap.delete(t.scopeRef)}*traverse(e=this.root){if(null!=e.scopeRef&&(yield e),e.children.size>0)for(let t of e.children)yield*this.traverse(t)}clone(){var e,t;let r=new L;for(let n of this.traverse())r.addTreeNode(n.scopeRef,null!==(t=null===(e=n.parent)||void 0===e?void 0:e.scopeRef)&&void 0!==t?t:null,n.nodeToRestore);return r}constructor(){this.fastMap=new Map,this.root=new C({scopeRef:null}),this.fastMap.set(null,this.root)}}class C{addChild(e){this.children.add(e),e.parent=this}removeChild(e){this.children.delete(e),e.parent=void 0}constructor(e){this.children=new Set,this.contain=!1,this.scopeRef=e.scopeRef}}let F=new L},99256:(e,t,r)=>{r.d(t,{P:()=>o});var n=r(73105);
1function o(e,t,r){let[o,i]=(0,n.useState)(e||t),l=(0,n.useRef)(void 0!==e),u=void 0!==e;(0,n.useEffect)(()=>{let e=l.current;e!==u&&console.warn(`WARN: A component changed from ${e?"controlled":"uncontrolled"} to ${u?"controlled":"uncontrolled"}.`),l.current=u},[u]);let c=u?e:o,s=(0,n.useCallback)((e,...t)=>{let n=(e,...t)=>{r&&!Object.is(c,e)&&r(e,...t),u||(c=e)};"function"==typeof e?(console.warn("We can not support a function callback. See Github Issues for details https://github.com/adobe/react-spectrum/issues/2320"),i((r,...o)=>{let i=e(u?c:r,...o);return(n(i,...t),u)?r:i})):(u||i(e),n(e,...t))},[u,c,r]);return[c,s]}}}]);
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.