1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[412],{9412:(e,t,l)=>{l.r(t),l.d(t,{OVERLAY_LAYER_LOADING_AREA_CLASSNAME:()=>m,default:()=>v});var n=l(5155),r=l(2115),a=l(9426);function o(e){let{promise:t,onEmpty:l,onTitleResolved:n}=e,{element:a,title:o}=(0,r.use)(t);(0,r.useEffect)(()=>{n&&n(o)},[o,n]);let i=(0,r.useCallback)(e=>{e&&l&&e.querySelector('[data-empty-content="true"]')&&l()},[l]);return(0,r.useEffect)(()=>{let e=setTimeout(()=>{i(document.querySelector('[data-slot="popover-content"] .relative.z-10'))},0);return()=>clearTimeout(e)},[a,l]),a}var i=l(3197),s=l(4213),u=l(926);let c=(0,u.createServerReference)("7844e27feaa2f346c5e76ff2729d571474bf486d30",u.callServer,void 0,u.findSourceMapURL,"renderOverlayPage");var d=l(6947),f=l(5091);let m="mx-auto flex min-h-[50vh] items-center justify-center";function v(e){let{context:t,colorScheme:l=f.Eu.LIGHT}=e,{pageReady:u,layerPath:v,layerParams:h,open:p,cmpOpen:w,handleClose:S}=function(){let[e,t]=(0,r.useState)(!1),[l,n]=(0,r.useState)(null),[a,o]=(0,r.useState)({}),[i,s]=(0,r.useState)(!1),[u,c]=(0,r.useState)(!1),d=(0,r.useCallback)(()=>{s(!1),/#layer=/.test(window.location.hash)&&history.replaceState(null,"",window.location.pathname+window.location.search)},[]);return(0,r.useEffect)(()=>{if("complete"===document.readyState)return void t(!0);let e=()=>t(!0);return window.addEventListener("load",e),()=>window.removeEventListener("load",e)},[]),(0,r.useEffect)(()=>{if(!e)return;let t=()=>c(function(){let e=document.getElementById("cmpbox");return!!e&&"none"!==getComputedStyle(e).display}()),l=new MutationObserver(t);l.observe(document.body,{subtree:!0,childList:!0,attributes:!0,attributeFilter:["style","class"]}),t();let r=()=>{let e=function(e){var t;let l=/#layer=([^&]*)(?:&(.+))?/.exec(e);if(!l)return null;let n=l[1],r=decodeURIComponent(null!=(t=null==n?void 0:n.trim())?t:"");if(!r)return null;let a={},o=l[2];if(o)for(let e of o.split("&")){let t=e.indexOf("=");if(t>=0){let l=decodeURIComponent(e.slice(0,t).trim()),n=decodeURIComponent(e.slice(t+1).trim());l&&(a[l]=n)}}return{layerName:r,params:a}}(window.location.hash);if(!e){s(!1),n(null),o({});return}n(e.layerName),o(e.params),s(!0)};return r(),window.addEventListener("hashchange",r),()=>{l.disconnect(),window.removeEventListener("hashchange",r)}},[e]),{pageReady:e,layerPath:l,layerParams:a,open:i,cmpOpen:u,handleClose:d}}(),[x,y]=(0,r.useState)(null),[E,b]=(0,r.useState)(void 0),A=(0,r.useRef)(!1);(0,r.useEffect)(()=>{if(u){if(!p||!v||w)return void y(null);b(void 0),y(c(t,v,(0,d.Pu)(),h))}},[u,p,w,v,h,t]);let C=p&&!w;return(C&&(A.current=!0),A.current)?(0,n.jsx)(a.Y,{open:C,icons:{closeIcon:(0,n.jsx)(i.A,{className:"fill-text-action-primary-default text-stroke-action-primary-default"})},onClose:S,scrollbar:!0,colorScheme:l,titleClassName:"font-agnostic-header-l",title:null!=E?E:"",titleAlign:"left",children:(0,n.jsx)(r.Suspense,{fallback:(0,n.jsx)("div",{className:m,children:(0,n.jsx)(s.A,{})}),children:(0,n.jsx)("div",{className:"flex size-full flex-col",children:x?(0,n.jsx)(o,{promise:x,onEmpty:S,onTitleResolved:b}):(0,n.jsx)("div",{className:m,children:(0,n.jsx)(s.A,{})})})})}):null}}}]);
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.