PageSourceSearch

https://www.lowcontent.ai/_next/static/chunks/4974-ed3f46512f5b8769.js

js lowcontent.ai collected 2026-10-05 12:44:09 UTC 29,367 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4974],{86110:function(e,t,l){l.d(t,{T:function(){return a}});var n=l(89332),i=l(61507),r=l(79248),o=l(2265);let s=0,u=new Map;var c=l(277);function a(e){let{isDisabled:t,onLongPressStart:l,onLongPressEnd:a,onLongPress:d,threshold:y=500,accessibilityDescription:f}=e,h=(0,o.useRef)(void 0),{addGlobalListener:p,removeGlobalListener:g}=(0,i.x)(),{pressProps:v}=(0,n.r)({isDisabled:t,onPressStart(e){if(e.continuePropagation(),("mouse"===e.pointerType||"touch"===e.pointerType)&&(l&&l({...e,type:"longpressstart"}),h.current=setTimeout(()=>{e.target.dispatchEvent(new PointerEvent("pointercancel",{bubbles:!0})),d&&d({...e,type:"longpress"}),h.current=void 0},y),"touch"===e.pointerType)){let t=e=>{e.preventDefault()};p(e.target,"contextmenu",t,{once:!0}),p(window,"pointerup",()=>{setTimeout(()=>{g(e.target,"contextmenu",t)},30)},{once:!0})}},onPressEnd(e){h.current&&clearTimeout(h.current),a&&("mouse"===e.pointerType||"touch"===e.pointerType)&&a({...e,type:"longpressend"})}}),K=function(e){let[t,l]=(0,o.useState)();return(0,r.b)(()=>
1{if(!e)return;let t=u.get(e);if(t)l(t.element.id);else{let n=`react-aria-description-${s++}`;l(n);let i=document.createElement("div");i.id=n,i.style.display="none",i.textContent=e,document.body.appendChild(i),t={refCount:0,element:i},u.set(e,t)}return t.refCount++,()=>{t&&0==--t.refCount&&(t.element.remove(),u.delete(e))}},[e]),{"aria-describedby":e?t:void 0}}(d&&!t?f:void 0);return{longPressProps:(0,c.d)(v,K)}}},66616:function(e,t,l){l.d(t,{g:function(){return F}});var n=l(64913),i=l(80112),r=l(46671),o=l(364),s=l(250),u=l(7353),c=l(2265);function a(e,t,l,n){let i=(0,u.i)(l),r=null==l;(0,c.useEffect)(()=>{if(r||!e.current)return;let l=e.current;return l.addEventListener(t,i,n),()=>{l.removeEventListener(t,i,n)}},[e,t,n,r,i])}var d=l(90731);function y(e,t){let l=f(e,t,"left"),n=f(e,t,"top"),i=t.offsetWidth,r=t.offsetHeight,o=e.scrollLeft,s=e.scrollTop,{borderTopWidth:u,borderLeftWidth:c,scrollPaddingTop:a,scrollPaddingRight:d,scrollPaddingBottom:y,scrollPaddingLeft:h}=getComputedStyle(e),p=o+parseInt(c,10),g=s+parseInt(u,10),v=p+e.clientWidth,K=g+e.clientHeight,m=parseInt(a,10)||0,S=parseInt(y,10)||0,b=parseInt(d,10)||0,k=parseInt(h,10)||0;l<=o+k?o=l-parseInt(c,10)-k:l+i>v-b&&(o+=l+i-v+b),n<=g+m?s=n-parseInt(u,10)-m:n+r>K-S&&(s+=n+r-K+S),e.scrollLeft=o,e.scrollTop=s}function f(e,t,l){let n="left"===l?"offsetLeft":"offsetTop",i=0;for(;t.offsetParent&&(i+=t[n],t.offsetParent!==e);){if(t.offsetParent.contains(e)){i-=e[n];break}t=t.offsetParent}return i}function h(e,t){if(e&&document.contains(e)){let o=document.scrollingElement||document.documentElement;if("hidden"===window.getComputedStyle(o).overflow)for(let t of function(e,t){let l=[];for(;e&&e!==document.documentElement;)(0,d.a)(e,void 0)&&l.push(e),e=e.parentElement;return l}(e))y(t,e);else{var l,n,i,r;let{left:o,top:s}=e.getBoundingClientRect();null==e||null===(l=e.scrollIntoView)||void 0===l||l.call(e,{block:"nearest"});let{left:u,top:c}=e.getBoundingClientRect();(Math.abs(o-u)>1||Math.abs(s-c)>1)&&(null==t||null===(i=t.containingElement)||void 0===i||null===(n=i.scrollIntoView)||void 0===n||n.call(i,{block:"center",inline:"center"}),null===(r=e.scrollIntoView)||void 0===r||r.call(e,{block:"nearest"}))}}}var p=l(4144),g=l(79248);function v(e,t){let l=(0,c.useRef)(!0),n=(0,c.useRef)(null);(0,g.b)(()=>(l.current=!0,()=>{l.current=!1}),[]),(0,g.b)(()=>{l.current?l.current=!1:(!n.current||t.some((e,t)=>!Object.is(e,n[t])))&&e(),n.current=t},t)}var K=l(277),m=l(54887),S=l(27546),b=l(87603),k=l(95729),w=l(34909);function F(e){let t,{selectionManager:l,keyboardDelegate:d,ref:f,autoFocus:g=!1,shouldFocusWrap:F=!1,disallowEmptySelection:I=!1,disallowSelectAll:C=!1,selectOnFocus:E="replace"===l.selectionBehavior,disallowTypeAhead:T=!1,shouldUseVirtualFocus:x,allowsTabNavigation:P=!1,isVirtualized:M,scrollRef:D=f,linkBehavior:L="action"}=e,{direction:A}=(0,w.j)(),R=(0,r.tv)(),N=(0,c.useRef)({top:0,left:0});a(D,"scroll",M?void 0:()=>{var e,t,l,n;N.current={top:null!==(l=null===(e=D.current)||void 0===e?void 0:e.scrollTop)&&void 0!==l?l:0,left:null!==(n=null===(t=D.current)||void 0===t?void 0:t.scrollLeft)&&void 0!==n?n:0}});let B=(0,c.useRef)(!1);a(f,p.N4,x?e=>{let{detail:t}=e;e.stopPropagation(),l.setFocused(!0),(null==t?void 0:t.focusStrategy)==="first"&&(B.current=!0)}:void 0);let O=(0,u.i)(()=>{var e,t,n;let i=null!==(t=null===(e=d.getFirstKey)||void 0===e?void 0:e.call(d))&&void 0!==t?t:null;null==i?(null===(n=f.current)||void 0===n||n.dispatchEvent(new CustomEvent(p.et,{cancelable:!0,bubbles:!0})),l.collection.size>0&&(B.current=!1)):(l.setFocusedKey(i),B.current=!1)});v(()=>{B.current&&O()},[l.collection,O]);let V=(0,u.i)(()=>{l.collection.size>0&&(B.current=!1)});v(()=>{V()},[l.focusedKey,V]),a(f,p.os,x?e=>{e.stopPropagation(),l.setFocused(!1),l.setFocusedKey(null)}:void 0);let $=(0,c.useRef)(g);(0,c.useEffect)(()=>{if($.current){var e,t,n,i;let r=null;"first"===g&&(r=null!==(n=null===(e=d.getFirstKey)||void 0===e?void 0:e.call(d))&&void 0!==n?n:null),"last"===g&&(r=null!==(i=null===(t=d.getLastKey)||void 0===t?void 0:t.call(d))&&void 0!==i?i:null);let o=l.selectedKeys;if(o.size){for(let e of o)if(l.canSelectItem(e)){r=e;break}}l.setFocused(!0),l.setFocusedKey(r),null==r&&!x&&f.current&&(0,b.e)(f.current)}},[]);let z=(0,c.useRef)(l.focusedKey);(0,c.useEffect)(()=>
1{if(l.isFocused&&null!=l.focusedKey&&(l.focusedKey!==z.current||$.current)&&D.current&&f.current){let e=(0,k.Jz)(),t=f.current.querySelector(`[data-key="${CSS.escape(l.focusedKey.toString())}"]`);if(!t)return;("keyboard"===e||$.current)&&(y(D.current,t),"virtual"!==e&&h(t,{containingElement:f.current}))}!x&&l.isFocused&&null==l.focusedKey&&null!=z.current&&f.current&&(0,b.e)(f.current),z.current=l.focusedKey,$.current=!1}),a(f,"react-aria-focus-scope-restore",e=>{e.preventDefault(),l.setFocused(!0)});let W={onKeyDown:e=>{var t,i,r,u,c,a,y,h,p,g,v,K,b;if(e.altKey&&"Tab"===e.key&&e.preventDefault(),!(null===(t=f.current)||void 0===t?void 0:t.contains(e.target)))return;let k=(t,i)=>{if(null!=t){if(l.isLink(t)&&"selection"===L&&E&&!(0,n.F)(e)){var r;(0,m.flushSync)(()=>{l.setFocusedKey(t,i)});let n=null===(r=D.current)||void 0===r?void 0:r.querySelector(`[data-key="${CSS.escape(t.toString())}"]`),o=l.getItemProps(t);n&&R.open(n,e,o.href,o.routerOptions);return}l.setFocusedKey(t,i),l.isLink(t)&&"override"===L||(e.shiftKey&&"multiple"===l.selectionMode?l.extendSelection(t):E&&!(0,n.F)(e)&&l.replaceSelection(t))}};switch(e.key){case"ArrowDown":if(d.getKeyBelow){let t=null!=l.focusedKey?null===(i=d.getKeyBelow)||void 0===i?void 0:i.call(d,l.focusedKey):null===(r=d.getFirstKey)||void 0===r?void 0:r.call(d);null==t&&F&&(t=null===(u=d.getFirstKey)||void 0===u?void 0:u.call(d,l.focusedKey)),null!=t&&(e.preventDefault(),k(t))}break;case"ArrowUp":if(d.getKeyAbove){let t=null!=l.focusedKey?null===(c=d.getKeyAbove)||void 0===c?void 0:c.call(d,l.focusedKey):null===(a=d.getLastKey)||void 0===a?void 0:a.call(d);null==t&&F&&(t=null===(y=d.getLastKey)||void 0===y?void 0:y.call(d,l.focusedKey)),null!=t&&(e.preventDefault(),k(t))}break;case"ArrowLeft":if(d.getKeyLeftOf){let t=null!=l.focusedKey?null===(h=d.getKeyLeftOf)||void 0===h?void 0:h.call(d,l.focusedKey):null;null==t&&F&&(t="rtl"===A?null===(p=d.getFirstKey)||void 0===p?void 0:p.call(d,l.focusedKey):null===(g=d.getLastKey)||void 0===g?void 0:g.call(d,l.focusedKey)),null!=t&&(e.preventDefault(),k(t,"rtl"===A?"first":"last"))}break;case"ArrowRight":if(d.getKeyRightOf){let t=null!=l.focusedKey?null===(v=d.getKeyRightOf)||void 0===v?void 0:v.call(d,l.focusedKey):null;null==t&&F&&(t="rtl"===A?null===(K=d.getLastKey)||void 0===K?void 0:K.call(d,l.focusedKey):null===(b=d.getFirstKey)||void 0===b?void 0:b.call(d,l.focusedKey)),null!=t&&(e.preventDefault(),k(t,"rtl"===A?"last":"first"))}break;case"Home":if(d.getFirstKey){if(null===l.focusedKey&&e.shiftKey)return;e.preventDefault();let t=d.getFirstKey(l.focusedKey,(0,o.y)(e));l.setFocusedKey(t),null!=t&&((0,o.y)(e)&&e.shiftKey&&"multiple"===l.selectionMode?l.extendSelection(t):E&&l.replaceSelection(t))}break;case"End":if(d.getLastKey){if(null===l.focusedKey&&e.shiftKey)return;e.preventDefault();let t=d.getLastKey(l.focusedKey,(0,o.y)(e));l.setFocusedKey(t),null!=t&&((0,o.y)(e)&&e.shiftKey&&"multiple"===l.selectionMode?l.extendSelection(t):E&&l.replaceSelection(t))}break;case"PageDown":if(d.getKeyPageBelow&&null!=l.focusedKey){let t=d.getKeyPageBelow(l.focusedKey);null!=t&&(e.preventDefault(),k(t))}break;case"PageUp":if(d.getKeyPageAbove&&null!=l.focusedKey){let t=d.getKeyPageAbove(l.focusedKey);null!=t&&(e.preventDefault(),k(t))}break;case"a":(0,o.y)(e)&&"multiple"===l.selectionMode&&!0!==C&&(e.preventDefault(),l.selectAll());break;case"Escape":I||0===l.selectedKeys.size||(e.stopPropagation(),e.preventDefault(),l.clearSelection());break;case"Tab":if(!P){if(e.shiftKey)f.current.focus();else{let e,t,l=(0,S.QL)(f.current,{tabbable:!0});do(t=l.lastChild())&&(e=t);while(t);e&&!e.contains(document.activeElement)&&(0,s.A)(e)}}}},onFocus:e=>{if(l.isFocused){e.currentTarget.contains(e.target)||l.setFocused(!1);return}if(e.currentTarget.contains(e.target)){if(l.setFocused(!0),null==l.focusedKey){var t,n,i,r;let o=e=>{null!=e&&(l.setFocusedKey(e),E&&l.replaceSelection(e))},s=e.relatedTarget;s&&e.currentTarget.compareDocumentPosition(s)&Node.DOCUMENT_POSITION_FOLLOWING?o(null!==(i=l.lastSelectedKey)&&void 0!==i?i:null===(t=d.getLastKey)||void 0===t?void 0:t.call(d)):o(null!==(r=l.firstSelectedKey)&&void 0!==r?r:null===(n=d.getFirstKey)||void 0===n?void 0:n.call(d))}else!M&&D.current&&(D.current.scrollTop=N.current.top,D.current.scrollLeft=N.current.left);if(null!=l.focusedKey&&D.current){let e=D.current.querySelector(`[data-key="${CSS.escape(l.focu
1sedKey.toString())}"]`);e&&(e.contains(document.activeElement)||(0,s.A)(e),"keyboard"===(0,k.Jz)()&&h(e,{containingElement:f.current}))}}},onBlur:e=>{e.currentTarget.contains(e.relatedTarget)||l.setFocused(!1)},onMouseDown(e){D.current===e.target&&e.preventDefault()}},{typeSelectProps:_}=(0,i.i)({keyboardDelegate:d,selectionManager:l});return T||(W=(0,K.d)(_,W)),t=x?-1:null==l.focusedKey?0:-1,{collectionProps:{...W,tabIndex:t}}}},59375:function(e,t,l){l.d(t,{C:function(){return f}});var n=l(64913),i=l(87603),r=l(46671),o=l(80612),s=l(364),u=l(4144),c=l(277),a=l(89332),d=l(86110),y=l(2265);function f(e){let{id:t,selectionManager:l,key:f,ref:g,shouldSelectOnPressUp:v,shouldUseVirtualFocus:K,focus:m,isDisabled:S,onAction:b,allowsDifferentPressOrigin:k,linkBehavior:w="action"}=e,F=(0,r.tv)();t=(0,o.Me)(t);let I=e=>{if("keyboard"===e.pointerType&&(0,n.F)(e))l.toggleSelection(f);else{if("none"===l.selectionMode)return;if(l.isLink(f)){if("selection"===w&&g.current){let t=l.getItemProps(f);F.open(g.current,e,t.href,t.routerOptions),l.setSelectedKeys(l.selectedKeys);return}if("override"===w||"none"===w)return}"single"===l.selectionMode?l.isSelected(f)&&!l.disallowEmptySelection?l.toggleSelection(f):l.replaceSelection(f):e&&e.shiftKey?l.extendSelection(f):"toggle"===l.selectionBehavior||e&&((0,s.y)(e)||"touch"===e.pointerType||"virtual"===e.pointerType)?l.toggleSelection(f):l.replaceSelection(f)}};(0,y.useEffect)(()=>{if(f===l.focusedKey&&l.isFocused){if(K){var e;let t=new CustomEvent(u.et,{cancelable:!0,bubbles:!0});null===(e=g.current)||void 0===e||e.dispatchEvent(t)}else m?m():document.activeElement!==g.current&&g.current&&(0,i.e)(g.current)}},[g,f,l.focusedKey,l.childFocusStrategy,l.isFocused,K]),S=S||l.isDisabled(f);let C={};K||S?S&&(C.onMouseDown=e=>{e.preventDefault()}):C={tabIndex:f===l.focusedKey?0:-1,onFocus(e){e.target===g.current&&l.setFocusedKey(f)}};let E=l.isLink(f)&&"override"===w,T=l.isLink(f)&&"selection"!==w&&"none"!==w,x=!S&&l.canSelectItem(f)&&!E,P=(b||T)&&!S,M=P&&("replace"===l.selectionBehavior?!x:!x||l.isEmpty),D=P&&x&&"replace"===l.selectionBehavior,L=M||D,A=(0,y.useRef)(null),R=L&&x,N=(0,y.useRef)(!1),B=(0,y.useRef)(!1),O=e=>{if(b&&b(),T&&g.current){let t=l.getItemProps(f);F.open(g.current,e,t.href,t.routerOptions)}},V={};v?(V.onPressStart=e=>{A.current=e.pointerType,N.current=R,"keyboard"===e.pointerType&&(!L||p())&&I(e)},k?(V.onPressUp=M?void 0:e=>{"mouse"===e.pointerType&&x&&I(e)},V.onPress=M?O:e=>{"keyboard"!==e.pointerType&&"mouse"!==e.pointerType&&x&&I(e)}):V.onPress=e=>{M||D&&"mouse"!==e.pointerType?("keyboard"!==e.pointerType||h())&&O(e):"keyboard"!==e.pointerType&&x&&I(e)}):(V.onPressStart=e=>{A.current=e.pointerType,N.current=R,B.current=M,x&&("mouse"===e.pointerType&&!M||"keyboard"===e.pointerType&&(!P||p()))&&I(e)},V.onPress=e=>{("touch"===e.pointerType||"pen"===e.pointerType||"virtual"===e.pointerType||"keyboard"===e.pointerType&&L&&h()||"mouse"===e.pointerType&&B.current)&&(L?O(e):x&&I(e))}),C["data-key"]=f,V.preventFocusOnPress=K;let{pressProps:$,isPressed:z}=(0,a.r)(V),W=D?e=>{"mouse"===A.current&&(e.stopPropagation(),e.preventDefault(),O(e))}:void 0,{longPressProps:_}=(0,d.T)({isDisabled:!R,onLongPress(e){"touch"===e.pointerType&&(I(e),l.setSelectionBehavior("toggle"))}}),U=l.isLink(f)?e=>{r.nG.isOpening||e.preventDefault()}:void 0;return{itemProps:(0,c.d)(C,x||M?$:{},R?_:{},{onDoubleClick:W,onDragStartCapture:e=>{"touch"===A.current&&N.current&&e.preventDefault()},onClick:U,id:t}),isPressed:z,isSelected:l.isSelected(f),isFocused:l.isFocused&&l.focusedKey===f,isDisabled:S,allowsSelection:x,hasAction:L}}function h(){let e=window.event;return(null==e?void 0:e.key)==="Enter"}function p(){let e=window.event;return(null==e?void 0:e.key)===" "||(null==e?void 0:e.code)==="Space"}},80112:function(e,t,l){l.d(t,{i:function(){return i}});var n=l(2265);function i(e){let{keyboardDelegate:t,selectionManager:l,onTypeSelect:i}=e,r=(0,n.useRef)({search:"",timeout:void 0}).current;return{typeSelectProps:{onKeyDownCapture:t.getKeyForSearch?e=>{var n;let o=1!==(n=e.key).length&&/^[A-Z]/i.test(n)?"":n;if(o&&!e.ctrlKey&&!e.metaKey&&e.currentTarget.contains(e.target)){if(" "!==o||!(r.
1search.trim().length>0)||(e.preventDefault(),"continuePropagation"in e||e.stopPropagation()),r.search+=o,null!=t.getKeyForSearch){let e=t.getKeyForSearch(r.search,l.focusedKey);null==e&&(e=t.getKeyForSearch(r.search)),null!=e&&(l.setFocusedKey(e),i&&i(e))}clearTimeout(r.timeout),r.timeout=setTimeout(()=>{r.search=""},1e3)}}:void 0}}}},64913:function(e,t,l){l.d(t,{F:function(){return i}});var n=l(40541);function i(e){return(0,n.ad)()?e.altKey:e.ctrlKey}},4144:function(e,t,l){l.d(t,{N4:function(){return i},et:function(){return r},os:function(){return n}});let n="react-aria-clear-focus",i="react-aria-focus",r="react-aria-update-activedescendant"},364:function(e,t,l){l.d(t,{y:function(){return i}});var n=l(40541);function i(e){return(0,n.V5)()?e.metaKey:e.ctrlKey}},82563:function(e,t,l){l.d(t,{c:function(){return r}});var n=l(2265);function i(e){return null}i.getCollectionNode=function*(e,t){let{childItems:l,title:i,children:r}=e,o=e.title||e.children,s=e.textValue||("string"==typeof o?o:"")||e["aria-label"]||"";s||(null==t?void 0:t.suppressTextValueWarning)||console.warn("<Item>
1 with non-plain text contents is unsupported by type to select for accessibility. Please add a `textValue` prop."),yield{type:"item",props:e,rendered:o,textValue:s,"aria-label":e["aria-label"],hasChildNodes:null!=e.hasChildItems?e.hasChildItems:!!(e.childItems||e.title&&n.Children.count(e.children)>0),*childNodes(){if(l)for(let e of l)yield{type:"item",value:e};else if(i){let e=[];n.Children.forEach(r,t=>{e.push({type:"item",element:t})}),yield*e}}}};let r=i},48592:function(e,t,l){l.d(t,{n:function(){return h}});class n{*[Symbol.iterator](){yield*this.iterable}get size(){return this.keyMap.size}getKeys(){return this.keyMap.keys()}getKeyBefore(e){var t;let l=this.keyMap.get(e);return l&&null!==(t=l.prevKey)&&void 0!==t?t:null}getKeyAfter(e){var t;let l=this.keyMap.get(e);return l&&null!==(t=l.nextKey)&&void 0!==t?t:null}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(e){var t;return null!==(t=this.keyMap.get(e))&&void 0!==t?t:null}at(e){let t=[...this.getKeys()];return this.getItem(t[e])}getChildren(e){let t=this.keyMap.get(e);return(null==t?void 0:t.childNodes)||[]}constructor(e){var t;this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.iterable=e;let l=e=>{if(this.keyMap.set(e.key,e),e.childNodes&&"section"===e.type)for(let t of e.childNodes)l(t)};for(let t of e)l(t);let n=null,i=0;for(let[e,t]of this.keyMap)n?(n.nextKey=e,t.prevKey=n.key):(this.firstKey=e,t.prevKey=void 0),"item"===t.type&&(t.index=i++),(n=t).nextKey=void 0;this.lastKey=null!==(t=null==n?void 0:n.key)&&void 0!==t?t:null}}class i extends Set{constructor(e,t,l){super(e),e instanceof i?(this.anchorKey=t??e.anchorKey,this.currentKey=l??e.currentKey):(this.anchorKey=t??null,this.currentKey=l??null)}}var r=l(2265);let o="undefined"!=typeof document?r.useInsertionEffect??r.useLayoutEffect:()=>{};function s(e,t){return e?"all"===e?"all":new i(e):t}function u(e,t,l){if(t.parentKey===l.parentKey)return t.index-l.index;let n=[...c(e,t),t],i=[...c(e,l),l],r=n.slice(0,i.length).findIndex((e,t)=>e!==i[t]);return -1!==r?(t=n[r],l=i[r],t.index-l.index):n.findIndex(e=>e===l)>=0?1:(i.findIndex(e=>e===t),-1)}function c(e,t){let l=[],n=t;for(;n?.parentKey!=null;)(n=e.getItem(n.parentKey))&&l.unshift(n);return l}class a{constructor(e,t,l){this.collection=e,this.state=t,this.allowsCellSelection=l?.allowsCellSelection??!1,this._isSelectAll=null,this.layoutDelegate=l?.layoutDelegate||null,this.fullCollection=l?.fullCollection||null}get selectionMode(){return this.state.selectionMode}get disallowEmptySelection(){return this.state.disallowEmptySelection}get selectionBehavior(){return this.state.selectionBehavior}setSelectionBehavior(e){this.state.setSelectionBehavior(e)}get isFocused(){return this.state.isFocused}setFocused(e){this.state.setFocused(e)}get focusedKey(){return this.state.focusedKey}get childFocusStrategy(){return this.state.childFocusStrategy}setFocusedKey(e,t){(null==e||this.collection.getItem(e))&&this.state.setFocusedKey(e,t)}get selectedKeys(){return"all"===this.state.selectedKeys?new Set(this.getSelectAllKeys()):this.state.selectedKeys}get rawSelection(){return this.state.selectedKeys}isSelected(e){if("none"===this.state.selectionMode)return!1;let t=this.getKey(e);return null!=t&&("all"===this.state.selectedKeys?this.canSelectItem(t):this.state.selectedKeys.has(t))}get isEmpty(){return"all"!==this.state.selectedKeys&&0===this.state.selectedKeys.size}get isSelectAll(){if(this.isEmpty)return!1;if("all"===this.state.selectedKeys)return!0;if(null!=this._isSelectAll)return this._isSelectAll;let e=this.getSelectAllKeys(),t=this.state.selectedKeys;return this._isSelectAll=e.every(e=>t.has(e)),this._isSelectAll}get firstSelectedKey(){let e=null;for(let t of this.state.selectedKeys){let l=this.collection.getItem(t);(!e||l&&0>u(this.collection,l,e))&&(e=l)}return e?.key??null}get lastSelectedKey(){let e=null;for(let t of this.state.selectedKeys){let l=this.collection.getItem(t);(!e||l&&u(this.collection,l,e)>0)&&(e=l)}return e?.key??null}get disabledKeys(){return this.state.disabledKeys}get disabledBehavior(){return this.state.disabledBehavior}extendSelection(e){let t;if("none"===this.selectionMode)return;if("single"===this.selectionMode){this.replaceSelection(e);return}let l=this.getKey(e);
1if(null!=l){if("all"===this.state.selectedKeys)t=new i([l],l,l);else{let e=this.state.selectedKeys,n=e.anchorKey??l;for(let r of(t=new i(e,n,l),this.getKeyRange(n,e.currentKey??l)))t.delete(r);for(let e of this.getKeyRange(l,n))this.canSelectItem(e)&&t.add(e)}this.state.setSelectedKeys(t)}}getKeyRange(e,t){let l=this.collection.getItem(e),n=this.collection.getItem(t);return l&&n?0>=u(this.collection,l,n)?this.getKeyRangeInternal(e,t):this.getKeyRangeInternal(t,e):[]}getKeyRangeInternal(e,t){if(this.layoutDelegate?.getKeyRange)return this.layoutDelegate.getKeyRange(e,t);let l=[],n=e;for(;null!=n;){let e=this.collection.getItem(n);if(e&&("item"===e.type||"cell"===e.type&&this.allowsCellSelection)&&l.push(n),n===t)return l;n=this.collection.getKeyAfter(n)}return[]}getKey(e){let t=this.collection.getItem(e);if(!t||"cell"===t.type&&this.allowsCellSelection)return e;for(;t&&"item"!==t.type&&null!=t.parentKey;)t=this.collection.getItem(t.parentKey);return t&&"item"===t.type?t.key:null}toggleSelection(e){if("none"===this.selectionMode)return;if("single"===this.selectionMode&&!this.isSelected(e)){this.replaceSelection(e);return}let t=this.getKey(e);if(null==t)return;let l=new i("all"===this.state.selectedKeys?this.getSelectAllKeys():this.state.selectedKeys);l.has(t)?l.delete(t):this.canSelectItem(t)&&(l.add(t),l.anchorKey=t,l.currentKey=t),this.disallowEmptySelection&&0===l.size||this.state.setSelectedKeys(l)}replaceSelection(e){if("none"===this.selectionMode)return;let t=this.getKey(e);if(null==t)return;let l=this.canSelectItem(t)?new i([t],t,t):new i;this.state.setSelectedKeys(l)}setSelectedKeys(e){if("none"===this.selectionMode)return;let t=new i;for(let l of e){let e=this.getKey(l);if(null!=e&&(t.add(e),"single"===this.selectionMode))break}this.state.setSelectedKeys(t)}getSelectAllKeys(){let e=this.fullCollection??this.collection,t=[],l=n=>{for(;null!=n;){if(this.canSelectItemIn(n,e)){let i=e.getItem(n);i?.type==="item"&&t.push(n),i?.hasChildNodes&&(this.allowsCellSelection||"item"!==i.type)&&l(function(e,t){if(0<0)return;let l=0;for(let t of e){if(0===l)return t;l++}}("function"==typeof e.getChildren?e.getChildren(i.key):i.childNodes,0)?.key??null)}n=e.getKeyAfter(n)}};return l(e.getFirstKey()),t}selectAll(){this.isSelectAll||"multiple"!==this.selectionMode||this.state.setSelectedKeys("all")}clearSelection(){!this.disallowEmptySelection&&("all"===this.state.selectedKeys||this.state.selectedKeys.size>0)&&this.state.setSelectedKeys(new i)}toggleSelectAll(){this.isSelectAll?this.clearSelection():this.selectAll()}select(e,t){"none"!==this.selectionMode&&("single"===this.selectionMode?this.isSelected(e)&&!this.disallowEmptySelection?this.toggleSelection(e):this.replaceSelection(e):"toggle"===this.selectionBehavior||t&&("touch"===t.pointerType||"virtual"===t.pointerType)?this.toggleSelection(e):this.replaceSelection(e))}isSelectionEqual(e){if(e===this.state.selectedKeys)return!0;let t=this.selectedKeys;if(e.size!==t.size)return!1;for(let l of e)if(!t.has(l))return!1;for(let l of t)if(!e.has(l))return!1;return!0}canSelectItem(e){return this.canSelectItemIn(e,this.collection)}canSelectItemIn(e,t){if("none"===this.state.selectionMode||this.state.disabledKeys.has(e))return!1;let l=t.getItem(e);return!(!l||l?.props?.isDisabled)&&("cell"!==l.type||!!this.allowsCellSelection)}isDisabled(e){let t=this.collection.getItem(e);return"all"===this.state.disabledBehavior&&(this.state.disabledKeys.has(e)||!!t?.props?.isDisabled)&&t?.props?.disabledBehavior!=="selection"}isLink(e){return!!this.collection.getItem(e)?.props?.href}getItemProps(e){return this.collection.getItem(e)?.props}withCollection(e){return new a(e,this.state,{allowsCellSelection:this.allowsCellSelection,layoutDelegate:this.layoutDelegate||void 0,fullCollection:this.fullCollection??this.collection})}}class d{build(e,t){return this.context=t,y(()=>this.iterateCollection(e))}*iterateCollection(e){let{children:t,items:l}=e;if(r.isValidElement(t)&&t.type===r.Fragment)yield*this.iterateCollection({children:t.props.children,items:l});else if("function"==typeof t){if(!l)throw Error("props.children was a function but props.items is missing");let e=0;for(let n of l)yield*this.getFullNode({value:n,index:e},{renderer:t}),e++}else{let e=[];
1r.Children.forEach(t,t=>{t&&e.push(t)});let l=0;for(let t of e)for(let e of this.getFullNode({element:t,index:l},{}))l++,yield e}}getKey(e,t,l,n){if(null!=e.key)return e.key;if("cell"===t.type&&null!=t.key)return`${n}${t.key}`;let i=t.value;if(null!=i){var r;let e=null!==(r=i.key)&&void 0!==r?r:i.id;if(null==e)throw Error("No key found for item");return e}return n?`${n}.${t.index}`:`$.${t.index}`}getChildState(e,t){return{renderer:t.renderer||e.renderer}}*getFullNode(e,t,l,n){var i,o,s,u,c,a,d,h;if(r.isValidElement(e.element)&&e.element.type===r.Fragment){let o=[];r.Children.forEach(e.element.props.children,e=>{o.push(e)});let s=null!==(i=e.index)&&void 0!==i?i:0;for(let e of o)yield*this.getFullNode({element:e,index:s++},t,l,n);return}let p=e.element;if(!p&&e.value&&t&&t.renderer){let l=this.cache.get(e.value);if(l&&(!l.shouldInvalidate||!l.shouldInvalidate(this.context))){l.index=e.index,l.parentKey=n?n.key:null,yield l;return}p=t.renderer(e.value)}if(r.isValidElement(p)){let i=p.type;if("function"!=typeof i&&"function"!=typeof i.getCollectionNode){let e=p.type;throw Error(`Unknown element <${e}> in collection.`)}let r=i.getCollectionNode(p.props,this.context),d=null!==(o=e.index)&&void 0!==o?o:0,y=r.next();for(;!y.done&&y.value;){let i=y.value;e.index=d;let o=null!==(s=i.key)&&void 0!==s?s:null;null==o&&(o=i.element?null:this.getKey(p,e,t,l));let h=[...this.getFullNode({...i,key:o,index:d,wrapper:function(e,t){return e&&t?l=>e(t(l)):e||t||void 0}(e.wrapper,i.wrapper)},this.getChildState(t,i),l?`${l}${p.key}`:p.key,n)];for(let t of h){if(t.value=null!==(c=null!==(u=i.value)&&void 0!==u?u:e.value)&&void 0!==c?c:null,t.value&&this.cache.set(t.value,t),e.type&&t.type!==e.type)throw Error(`Unsupported type <${f(t.type)}> in <${f(null!==(a=null==n?void 0:n.type)&&void 0!==a?a:"unknown parent type")}>. Only <${f(e.type)}> is supported.`);d++,yield t}y=r.next(h)}return}if(null==e.key||null==e.type)return;let g=this,v={type:e.type,props:e.props,key:e.key,parentKey:n?n.key:null,value:null!==(d=e.value)&&void 0!==d?d:null,level:n?n.level+1:0,index:e.index,rendered:e.rendered,textValue:null!==(h=e.textValue)&&void 0!==h?h:"","aria-label":e["aria-label"],wrapper:e.wrapper,shouldInvalidate:e.shouldInvalidate,hasChildNodes:e.hasChildNodes||!1,childNodes:y(function*(){if(!e.hasChildNodes||!e.childNodes)return;let l=0;for(let n of e.childNodes())for(let e of(null!=n.key&&(n.key=`${v.key}${n.key}`),g.getFullNode({...n,index:l},g.getChildState(t,n),v.key,v)))l++,yield e})};yield v}constructor(){this.cache=new WeakMap}}function y(e){let t=[],l=null;return{*[Symbol.iterator](){for(let e of t)yield e;for(let n of(l||(l=e()),l))t.push(n),yield n}}}function f(e){return e[0].toUpperCase()+e.slice(1)}function h(e){let{filter:t,layoutDelegate:l}=e,u=function(e){let{selectionMode:t="none",disallowEmptySelection:l=!1,allowDuplicateSelectionEvents:n,selectionBehavior:u="toggle",disabledBehavior:c="all"}=e,a=(0,r.useRef)(!1),[,d]=(0,r.useState)(!1),y=(0,r.useRef)(null),f=(0,r.useRef)(null),[,h]=(0,r.useState)(null),[p,g]=function(e,t,l){let[n,i]=(0,r.useState)(e||t),s=(0,r.useRef)(n),u=(0,r.useRef)(void 0!==e),c=void 0!==e;(0,r.useEffect)(()=>{u.current,u.current=c},[c]);let a=c?e:n;o(()=>{s.current=a});let[,d]=(0,r.useReducer)(()=>({}),{});return[a,(0,r.useCallback)((e,...t)=>{let n="function"==typeof e?e(s.current):e;Object.is(s.current,n)||(s.current=n,i(n),d(),l?.(n,...t))},[l])]}((0,r.useMemo)(()=>s(e.selectedKeys),[e.selectedKeys]),(0,r.useMemo)(()=>s(e.defaultSelectedKeys,new i),[e.defaultSelectedKeys]),e.onSelectionChange),v=(0,r.useMemo)(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),[K,m]=(0,r.useState)(u);"replace"===u&&"toggle"===K&&"object"==typeof p&&0===p.size&&m("replace");let S=(0,r.useRef)(u);return(0,r.useEffect)(()=>{u!==S.current&&(m(u),S.current=u)},[u]),{selectionMode:t,disallowEmptySelection:l,selectionBehavior:K,setSelectionBehavior:m,get isFocused(){return a.current},setFocused(e){a.current=e,d(e)},get focusedKey(){return y.current},get childFocusStrategy(){return f.current},setFocusedKey(e,t="first"){y.current=e,f.current=t,h(e)},selectedKeys:p,setSelectedKeys(e){(n||!function(e,t){if(e.size!==t.size)return!1;for(let l of e)if(!t.has(l))return!1;return!0}(e,p))&&g(e)},disabledKeys:v,disabledBehavior:c}}(e),c=(0,r.useMemo)(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),y=(0,r.useCallback)(e=>new n(t?t(e):e),[t]),f=(0,r.useMemo)(()=>({suppressTextValueWarning:e.suppressTextValueWarning}),[e.suppressTextValueWarning]),h=function(e,t,l){let n=(0,r.useMemo)(()=>new d,[]),{children:i,items:o,collection:s}=e;return(0,r.useMemo)(()=>s||t(n.build({children:i,items:o},l)),[n,i,o,s,l,t])}(e,y,f),p=(0,r.useMemo)(()=>new a(h,u,{layoutDelegate:l}),[h,u,l]),g=(0,r.useRef)(null);return(0,r.useEffect)(()=>
1{if(null!=u.focusedKey&&!h.getItem(u.focusedKey)&&g.current){var e,t,l,n,i,r,o;let s=g.current.getItem(u.focusedKey),c=[...g.current.getKeys()].map(e=>{let t=g.current.getItem(e);return(null==t?void 0:t.type)==="item"?t:null}).filter(e=>null!==e),a=[...h.getKeys()].map(e=>{let t=h.getItem(e);return(null==t?void 0:t.type)==="item"?t:null}).filter(e=>null!==e),d=(null!==(e=null==c?void 0:c.length)&&void 0!==e?e:0)-(null!==(t=null==a?void 0:a.length)&&void 0!==t?t:0),y=Math.min(d>1?Math.max((null!==(l=null==s?void 0:s.index)&&void 0!==l?l:0)-d+1,0):null!==(n=null==s?void 0:s.index)&&void 0!==n?n:0,(null!==(i=null==a?void 0:a.length)&&void 0!==i?i:0)-1),f=null,v=!1;for(;y>=0;){if(!p.isDisabled(a[y].key)){f=a[y];break}y<a.length-1&&!v?y++:(v=!0,y>(null!==(r=null==s?void 0:s.index)&&void 0!==r?r:0)&&(y=null!==(o=null==s?void 0:s.index)&&void 0!==o?o:0),y--)}u.setFocusedKey(f?f.key:null)}g.current=h},[h,p,u,u.focusedKey]),{collection:h,disabledKeys:c,selectionManager:p}}}}]);

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.