PageSourceSearch

https://athenegpt.ai/assets/index-Ba8j1I3E.js

js athenegpt.ai collected 2026-10-05 11:51:23 UTC 4,005 bytes, 1 lines download raw bytes

1import{$ as re}from"./FocusScope-XhSswzqs.js";import{h as le}from"./use-force-update-DSZedj0f.js";import{r as ie}from"./index-3dB8Wsae.js";function fe(e,t){let a=t==null?void 0:t.isDisabled,[r,n]=ie.useState(!1);return le(()=>{if(e!=null&&e.current&&!a){let l=()=>{if(e.current){let i=re(e.current,{tabbable:!0});n(!!i.nextNode())}};l();let d=new MutationObserver(l);return d.observe(e.current,{subtree:!0,childList:!0,attributes:!0,attributeFilter:["tabIndex","disabled"]}),()=>{d.disconnect()}}}),a?!1:r}const _=e=>typeof e=="object"&&e!=null&&e.nodeType===1,ee=(e,t)=>(!t||e!=="hidden")&&e!=="visible"&&e!=="clip",S=(e,t)=>{if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){const a=getComputedStyle(e,null);return ee(a.overflowY,t)||ee(a.overflowX,t)||(r=>{const n=(l=>{if(!l.ownerDocument||!l.ownerDocument.defaultView)return null;try{return l.ownerDocument.defaultView.frameElement}catch{return null}})(r);return!!n&&(n.clientHeight<r.scrollHeight||n.clientWidth<r.scrollWidth)})(e)}return!1},V=(e,t,a,r,n,l,d,i)=>l<e&&d>t||l>e&&d<t?0:l<=e&&i<=a||d>=t&&i>=a?l-e-r:d>t&&i<a||l<e&&i>a?d-t+n:0,ae=e=>{const t=e.parentElement;return t??(e.getRootNode().host||null)},te=(e,t)=>{var a,r,n,l;if(typeof document>"u")return[];const{scrollMode:d,block:i,inline:f,boundary:L,skipOverflowHiddenElements:oe}=t,ne=typeof L=="function"?L:b=>b!==L;if(!_(e))throw new TypeError("Invalid target");const j=document.scrollingElement||document.documentElement,H=[];let s=e;for(;_(s)&&ne(s);){if(s=ae(s),s===j){H.push(s);break}s!=null&&s===document.body&&S(s)&&!S(document.documentElement)||s!=null&&S(s,oe)&&H.push(s)}const m=(r=(a=window.visualViewport)==null?void 0:a.width)!=null?r:innerWidth,g=(l=(n=window.visualViewport)==null?void 0:n.height)!=null?l:innerHeight,{scrollX:w,scrollY:v}=window,{height:W,width:y,top:$,right:O,bottom:X,left:M}=e.getBoundingClientRect(),{top:J,right:K,bottom:P,left:Q}=(b=>{const o=window.getComputedStyle(b);return{top:parseFloat(o.scrollMarginTop)||0,right:parseFloat(o.scrollMarginRight)||0,bottom:parseFloat(o.scrollMarginBottom)||0,left:parseFloat(o.scrollMarginLeft)||0}})(e);let c=i==="start"||i==="nearest"?$-J:i==="end"?X+P:$+W/2-J+P,u=f==="center"?M+y/2-Q+K:f==="end"?O+K:M-Q;const Y=[];for(let b=0;b<H.length;b++){const o=H[b],{height:x,width:C,top:E,right:q,bottom:z,left:T}=o.getBoundingClientRect();if(d==="if-needed"&&$>=0&&M>=0&&X<=g&&O<=m&&(o===j&&!S(o)||$>=E&&X<=z&&M>=T&&O<=q))return Y;const k=getComputedStyle(o),F=parseInt(k.borderLeftWidth,10),I=parseInt(k.borderTopWidth,10),N=parseInt(k.borderRightWidth,10),R=parseInt(k.borderBottomWidth,10);let h=0,p=0;const B="offsetWidth"in o?o.offsetWidth-o.clientWidth-F-N:0,D="offsetHeight"in o?o.offsetHeight-o.clientHeight-I-R:0,A="offsetWidth"in o?o.offsetWidth===0?0:C/o.offsetWidth:0,G="offsetHeight"in o?o.offsetHeight===0?0:x/o.offsetHeight:0;if(j===o)h=i==="start"?c:i==="end"?c-g:i==="nearest"?V(v,v+g,g,I,R,v+c,v+c+W,W):c-g/2,p=f==="start"?u:f==="center"?u-m/2:f==="end"?u-m:V(w,w+m,m,F,N,w+u,w+u+y,y),h=Math.max(0,h+v),p=Math.max(0,p+w);else{h=i==="start"?c-E-I:i==="end"?c-z+R+D:i==="nearest"?V(E,z,x,I,R+D,c,c+W,W):c-(E+x/2)+D/2,p=f==="start"?u-T-F:f==="center"?u-(T+C/2)+B/2:f==="end"?u-q+N+B:V(T,q,C,F,N+B,u,u+y,y);const{scrollLeft:U,scrollTop:Z}=o;h=G===0?0:Math.max(0,Math.min(Z+h/G,o.scrollHeight-x/G+D)),p=A===0?0:Math.max(0,Math.min(U+p/A,o.scrollWidth-C/A+B)),c+=Z-h,u+=U-p}Y.push({el:o,top:h,left:p})}return Y},se=e=>e===!1?{block:"end",inline:"nearest"}:(t=>t===Object(t)&&Object.keys(t).length!==0)(e)?e:{block:"start",inline:"nearest"};function he(e,t){if(!e.isConnected||!(r=>{let n=r;for(;n&&n.parentNode;){if(n.parentNode===document)return!0;n=n.parentNode instanceof ShadowRoot?n.parentNode.host:n.parentNode}return!1})(e))return;if((r=>typeof r=="object"&&typeof r.behavior=="function")(t))return t.behavior(te(e,t));const a=typeof t=="boolean"||t==null?void 0:t.behavior;for(const{el:r,top:n,left:l}of te(e,se(t)))r.scroll({top:n,left:l,behavior:a})}export{fe as $,he as t};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.