1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9641],{16949:function(e,t,n){var r=n(7334);n(37009);var o=n(72200),l=n(74646),i=n(54960),a=n(16315),s=n(93903),c=n(59357),d=n(76378),u=n(32895),m=n(43643);let p={token:{zIndexPopupBase:1e4}};t.Z=e=>{let{isOpen:t,onClose:n,children:h,title:f,maxWidth:x="max-w-4xl",showCloseButton:g=!0,contentClassName:y="",lockBodyScroll:b=!1}=e,{language:v}=(0,s.Z)(),w="ar"===v,j=w?"Ø¥ØºÙØ§Ù":"Close";(0,c.y)(t);let N=(0,r.jsx)(i.M,{children:t&&(0,r.jsxs)("div",{className:m.k$,children:[(0,r.jsx)(a.E.button,{type:"button","aria-label":j,className:m.F$,style:m.rg,initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.2},onClick:n}),(0,r.jsx)("div",{className:m.hr,children:(0,r.jsxs)(a.E.div,{role:"dialog","aria-modal":"true",initial:{opacity:0,scale:.96,y:12},animate:{opacity:1,scale:1,y:0},exit:{opacity:0,scale:.96,y:12},transition:{type:"spring",damping:26,stiffness:320},onClick:e=>e.stopPropagation(),className:"pointer-events-auto relative z-10 flex w-full ".concat(x," max-h-[min(90dvh,calc(100vh-1.5rem))] flex-col overflow-hidden rounded-2xl bg-white shadow-2xl"),dir:w?"rtl":"ltr",children:[(f||g)&&(0,r.jsxs)("div",{className:"flex min-h-[72px] flex-shrink-0 items-center justify-between gap-4 p-6 text-white ".concat(w?"bg-gradient-to-l from-[#2866A3] to-[#0F263D]":"bg-gradient-to-r from-[#2866A3] to-[#0F263D]"),children:[f?(0,r.jsx)("div",{className:"min-w-0 flex-1 text-2xl font-bold leading-snug",children:f}):(0,r.jsx)("span",{className:"flex-1","aria-hidden":!0}),g&&(0,r.jsx)("button",{type:"button",onClick:n,className:"flex h-10 w-10 shrink-0 items-center justify-center rounded-lg bg-white/20 transition-colors hover:bg-white/30","aria-label":j,children:(0,r.jsx)("svg",{className:"h-6 w-6",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,r.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})})]}),(0,r.jsx)(d.Z,{chain:!1,className:b?"flex min-h-0 flex-1 flex-col overflow-hidden overscroll-contain ".concat(y):"flex-1 overflow-y-auto overscroll-contain ".concat(y),children:(0,r.jsx)(l.ZP,{getPopupContainer:u.d,theme:p,children:h})})]})})]},"common-modal-root")});return"undefined"!=typeof document?(0,o.createPortal)(N,document.body):N}},29641:function(e,t,n){n.d(t,{default:function(){return u}});var r=n(7334),o=n(37009),l=n(16315),i=e=>{let{title:t="Something went wrong",message:n="We're having trouble loading this content. Please try again later.",showRetry:o=!0,onRetry:i}=e;return(0,r.jsxs)(l.E.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.5,ease:"easeOut"},className:"flex flex-col items-center justify-center min-h-[300px] p-8 bg-gradient-to-br from-[#EAF4FB] to-[#DCECF9] rounded-2xl shadow-lg",children:[(0,r.jsx)(l.E.div,{initial:{scale:0},animate:{scale:1},transition:{delay:.2,duration:.5,type:"spring",stiffness:200},className:"w-16 h-16 mb-6 bg-gradient-to-br from-[#2866A3] to-[#0F263D] rounded-full flex items-center justify-center",children:(0,r.jsx)("svg",{className:"w-8 h-8 text-white",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,r.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-2.5L13.732 4c-.77-.833-1.964-.833-2.732 0L3.732 16.5c-.77.833.192 2.5 1.732 2.5z"})})}),(0,r.jsx)(l.E.h3,{initial:{opacity:0}
1,animate:{opacity:1},transition:{delay:.3,duration:.5},className:"text-xl font-semibold text-main-primary mb-3 text-center",children:t}),(0,r.jsx)(l.E.p,{initial:{opacity:0},animate:{opacity:1},transition:{delay:.4,duration:.5},className:"text-gray-600 text-center mb-6 max-w-md leading-relaxed",children:n}),o&&(0,r.jsx)(l.E.button,{initial:{opacity:0,scale:.9},animate:{opacity:1,scale:1},transition:{delay:.5,duration:.3},whileHover:{scale:1.05},whileTap:{scale:.95},onClick:i,className:"px-6 py-3 bg-gradient-to-r from-[#2866A3] to-[#0F263D] text-white font-medium rounded-lg shadow-md hover:shadow-lg transition-all duration-300 focus:outline-none focus:ring-2 focus:ring-[#2866A3] focus:ring-opacity-50",children:"Try Again"})]})};class a extends o.Component{static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(e,t){let{onError:n,componentName:r}=this.props;n&&n(e,t,r),console.error("Error captured in ErrorBoundary: ",e,t,r)}render(){let{hasError:e}=this.state,{children:t}=this.props;return e?(0,r.jsx)(i,{title:"Content Unavailable",message:"We're having trouble loading this content. Please refresh the page or try again later.",showRetry:!1,onRetry:()=>window.location.reload()}):t}constructor(e){super(e),this.state={hasError:!1}}}var s=n(9217),c=n(16949);let d=(e,t)=>{if(t)return t;let n=e=>{if(!e.type)return null;if("object"==typeof e.type&&null!==e.type&&"displayName"in e.type){let{displayName:t}=e.type;if(t)return t}if("function"==typeof e.type){let{name:t}=e.type;if(t&&"Anonymous"!==t)return t}return"string"==typeof e.type?e.type:null};if(o.isValidElement(e)){let t=n(e);if(t)return t}if(Array.isArray(e)||o.isValidElement(e)&&e.type===o.Fragment){let t=(Array.isArray(e)?e:o.Children.toArray(e.props.children)).find(e=>!!o.isValidElement(e)&&!!n(e));if(t&&o.isValidElement(t)){let e=n(t);if(e)return e}}return"Unknown Component"};var u=e=>{let{children:t,componentName:n}=e,{errors:i,addError:u}=(0,s.V)(),[m,p]=(0,o.useState)(!1),h=(0,o.useRef)(null),f=(0,o.useRef)(0),x=n||d(t),g=(e,t)=>({message:e.message,stack:e.stack||"No stack trace available",componentStack:t.componentStack||"No component stack available"}),y=e=>{if(!e)return"Unknown Component";let t=e.match(/in\s+(\w+)/);if(t&&t[1])return t[1];let n=e.split("\n").find(e=>{let t=e.match(/at\s+(\w+)/);return t&&t[1]&&!t[1].includes("Error")});if(n){let e=n.match(/at\s+(\w+)/);if(e&&e[1])return e[1]}return"Unknown Component"},b=e=>{if(!e)return null;let t=e.match(/:(\d+):(\d+)/);if(t&&t[1])return t[1];let n=e.match(/(\w+\.(tsx|ts|jsx|js)):(\d+)/);return n&&n[3]?n[3]:null},v=()=>{let e=i.map((e,t)=>{let n=g(e.error,e.errorInfo),r=y(n.componentStack),o=x||e.componentName||"Unknown Wrapper",l=b(n.stack);return{errorNumber:t+1,timestamp:e.timestamp.toLocaleString(),errorName:e.error.name||"Error",errorMessage:n.message,wrapperComponent:o,component:r,lineNumber:l||"Not available",fullStack:n.stack,componentStack:n.componentStack}});return"\nâââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ\n ERROR REPORT\nâââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ\n\nTotal Errors: ".concat(i.length,"\nReport Generated: ").concat(new Date().toLocaleString(),"\n\n").concat(e.map(e=>"\nâââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ\nERROR #".concat(e.errorNumber,"\nâââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ\n\nTimestamp: ").concat(e.timestamp,"\nError Type: ").concat(e.errorName,"\n\nError Message:\n ").concat(e.errorMessage,"\n\nWrapper Component:\n ").concat(e.wrapperComponent,"\n\nComponent Where Error Occurred:\n ").concat(e.component,"\n\nLine Number:\n ").concat(e.lineNumber,"\n\nâââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ\n")).join("\n"),"\n\nâââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ\n END OF REPORT\nâââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ\n ")};return(0,r.jsxs)(r.Fragment,{children:[o.Children.map(t,e=>(0,r.jsx)(a,{onError:u,componentName:x,children:e})),i.length>0&&(0,r.jsx)(l.E.button,{initial:{scale:0,opacity:0}
1,animate:{scale:1,opacity:1},whileHover:{scale:1.1},whileTap:{scale:.9},onClick:e=>{e.preventDefault();let t=Date.now();t-f.current<300?(p(!0),h.current&&(clearTimeout(h.current),h.current=null)):h.current=setTimeout(()=>{h.current=null},300),f.current=t},className:"fixed bottom-6 right-6 z-50 w-14 h-14 bg-gradient-to-br from-[#2866A3] to-[#0F263D] rounded-full flex items-center justify-center text-white font-bold text-xl transition-all duration-300 border-2 border-white/20","aria-label":"Error information",children:(0,r.jsxs)("span",{className:"relative",children:["i",i.length>1&&(0,r.jsx)("span",{className:"absolute -top-2 -right-2 w-5 h-5 bg-red-500 rounded-full flex items-center justify-center text-xs font-bold",children:i.length})]})}),(0,r.jsx)(c.Z,{isOpen:m,onClose:()=>p(!1),title:"Error Details",maxWidth:"max-w-4xl",children:(0,r.jsxs)("div",{className:"p-6 space-y-4",children:[(0,r.jsx)("div",{className:"mb-4 pb-4 border-b border-gray-200",children:(0,r.jsxs)("p",{className:"text-sm text-gray-600",children:[i.length," error",i.length>1?"s":""," captured"]})}),(0,r.jsx)("div",{className:"space-y-4",children:i.map((e,t)=>{let n=g(e.error,e.errorInfo),o=y(n.componentStack),i=x||e.componentName||"Unknown Wrapper",a=b(n.stack);return(0,r.jsxs)(l.E.div,{initial:{opacity:0,x:-20},animate:{opacity:1,x:0},transition:{delay:.1*t},className:"bg-gray-50 rounded-xl p-5 border border-gray-200",children:[(0,r.jsxs)("div",{className:"flex items-start justify-between mb-3",children:[(0,r.jsxs)("div",{children:[(0,r.jsxs)("h3",{className:"font-semibold text-lg text-gray-900 mb-1",children:["Error #",t+1]}),(0,r.jsx)("p",{className:"text-xs text-gray-500",children:e.timestamp.toLocaleString()})]}),(0,r.jsx)("span",{className:"px-3 py-1 bg-red-100 text-red-700 rounded-full text-xs font-medium",children:e.error.name||"Error"})]}),(0,r.jsxs)("div",{className:"mb-4",children:[(0,r.jsx)("h4",{className:"text-sm font-semibold text-gray-700 mb-2",children:"Message:"}),(0,r.jsx)("div",{className:"bg-red-50 border border-red-200 rounded-lg p-3",children:(0,r.jsx)("code",{className:"text-sm text-red-800 break-words",children:n.message})})]}),(0,r.jsxs)("div",{className:"mb-4",children:[(0,r.jsx)("h4",{className:"text-sm font-semibold text-gray-700 mb-2",children:"Wrapper Component:"}),(0,r.jsx)("div",{className:"bg-purple-50 border border-purple-200 rounded-lg p-3",children:(0,r.jsx)("code",{className:"text-sm text-purple-800",children:i})})]}),(0,r.jsxs)("div",{className:"mb-4",children:[(0,r.jsx)("h4",{className:"text-sm font-semibold text-gray-700 mb-2",children:"Component:"}),(0,r.jsxs)("div",{className:"bg-blue-50 border border-blue-200 rounded-lg p-3",children:[(0,r.jsx)("code",{className:"text-sm text-blue-800",children:o}),a&&(0,r.jsxs)("span",{className:"text-sm text-blue-600 ml-2",children:["(Line: ",a,")"]})]})]}),(0,r.jsxs)("div",{className:"mb-4",children:[(0,r.jsx)("h4",{className:"text-sm font-semibold text-gray-700 mb-2",children:"Stack Trace:"}),(0,r.jsx)("div",{className:"bg-gray-900 text-green-400 rounded-lg p-4 overflow-x-auto max-h-48 overflow-y-auto font-mono text-xs",children:(0,r.jsx)("pre",{className:"whitespace-pre-wrap break-words",children:n.stack})})]}),n.componentStack&&(0,r.jsxs)("div",{children:[(0,r.jsx)("h4",{className:"text-sm font-semibold text-gray-700 mb-2",children:"Component Stack:"}),(0,r.jsx)("div",{className:"bg-blue-50 border border-blue-200 rounded-lg p-3 overflow-x-auto max-h-32 overflow-y-auto",children:(0,r.jsx)("pre",{className:"text-xs text-blue-900 whitespace-pre-wrap break-words font-mono",children:n.componentStack})})]})]},"".concat(5*t,"error"))})}),(0,r.jsxs)("div",{className:"mt-6 pt-4 border-t border-gray-200",children:[(0,r.jsxs)(l.E.button,{type:"button",onClick:()=>{v()},whileHover:{scale:1.02},whileTap:{scale:.98},className:"w-full bg-gradient-to-r from-[#2866A3] to-[#0F263D] text-white font-semibold py-3 px-6 rounded-lg hover:opacity-90 transition-opacity flex items-center justify-center gap-2",children:[(0,r.jsx)("span",{children:"Send Report"}),(0,r.jsx)("svg",{className:"w-5 h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,r.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 10v6m0 0l-3-3m3 3l3-3m2 8H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"})})]}),(0,r.jsx)("p",{className:"text-xs text-gray-500 text-center mt-2",children:"Report will be logged to console"})]})]})})]})}},76378:function(e,t,n){n.d(t,{Z:function(){return i}});var r=n(7334),o=n(37009),l=n(89743),i=(0,o.forwardRef)(function(e,t){let{className:n,children:i,chain:a=!0,...s}=e,c=(0,o.useRef)(null);!function(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1];(0,o.useEffect)(()=>
1{if(!t)return;let n=e.current;if(!n)return;let r=e=>{let{deltaY:t}=e;if(0===t)return;let{scrollTop:r,scrollHeight:o,clientHeight:i}=n;if(!(!(o>i+1)||t<0&&r<=0||t>0&&r+i>=o-1))return;let a=function(e){let t=e;for(;t;){let{overflowY:e}=getComputedStyle(t);if(("auto"===e||"scroll"===e||"overlay"===e)&&t.scrollHeight>t.clientHeight+1)return t;t=t.parentElement}let n=document.scrollingElement;return n instanceof HTMLElement?n:null}(n.parentElement);if(!a)return;let s=document.scrollingElement;if((0,l.Te)()&&(a===s||a===document.body||a===document.documentElement)||!(a.scrollHeight>a.clientHeight+1))return;let c=a.scrollTop<=0,d=a.scrollTop+a.clientHeight>=a.scrollHeight-1;t<0&&c||t>0&&d||(e.preventDefault(),a.scrollTop+=t)};return n.addEventListener("wheel",r,{passive:!1}),()=>n.removeEventListener("wheel",r)},[t,e])}(c,a);let d=(0,o.useCallback)(e=>{c.current=e,function(e,t){if(e){if("function"==typeof e){e(t);return}Object.assign(e,{current:t})}}(t,e)},[t]);return(0,r.jsx)("div",{ref:d,className:n,...s,children:i})})},43643:function(e,t,n){n.d(t,{F$:function(){return i},fC:function(){return l},hr:function(){return s},k$:function(){return o},os:function(){return a},rg:function(){return r}});let r={backgroundColor:"rgba(0, 0, 0, 0.45)"},o="fixed inset-0 z-[9999]",l=1e4,i="absolute inset-0 cursor-default border-0 p-0 m-0 appearance-none",a="absolute inset-0 pointer-events-none border-0 p-0 m-0",s="relative flex h-full w-full items-center justify-center p-3 sm:p-4 pointer-events-none"},9217:function(e,t,n){n.d(t,{ErrorProvider:function(){return i},V:function(){return a}});var r=n(7334),o=n(37009);let l=(0,o.createContext)(void 0);function i(e){let{children:t}=e,[n,i]=(0,o.useState)([]),a=(0,o.useCallback)((e,t,n)=>{i(r=>[...r,{error:e,errorInfo:t,timestamp:new Date,componentName:n}])},[]),s=(0,o.useCallback)(()=>{i([])},[]),c=(0,o.useMemo)(()=>({errors:n,addError:a,clearErrors:s}
1),[n,a,s]);return(0,r.jsx)(l.Provider,{value:c,children:t})}function a(){let e=(0,o.useContext)(l);if(void 0===e)throw Error("useError must be used within an ErrorProvider");return e}},59357:function(e,t,n){n.d(t,{y:function(){return l}});var r=n(37009),o=n(89743);function l(e){(0,r.useEffect)(()=>{if(e)return(0,o.IM)(),()=>(0,o.d2)()},[e])}},89743:function(e,t,n){n.d(t,{IM:function(){return i},Te:function(){return l},d2:function(){return a}});let r=0,o=null;function l(){return r>0}function i(){if("undefined"==typeof document||(r+=1)>1)return;let e=document.documentElement,{body:t}=document,n=window.innerWidth-document.documentElement.clientWidth;o={htmlOverflow:e.style.overflow,htmlPaddingRight:e.style.paddingRight,bodyOverflow:t.style.overflow,bodyPosition:t.style.position,bodyTop:t.style.top,bodyWidth:t.style.width,bodyPaddingRight:t.style.paddingRight},e.style.overflow="hidden",t.style.overflow="hidden",n>0&&(e.style.paddingRight="".concat(n,"px"),t.style.paddingRight="".concat(n,"px"))}function a(){if("undefined"==typeof document||!o||(r=Math.max(0,r-1))>0)return;let{htmlOverflow:e,htmlPaddingRight:t,bodyOverflow:n,bodyPosition:l,bodyTop:i,bodyWidth:a,bodyPaddingRight:s}=o,c=document.documentElement,{body:d}=document;c.style.overflow=e,c.style.paddingRight=t,d.style.overflow=n,d.style.position=l,d.style.top=i,d.style.width=a,d.style.paddingRight=s,o=null}},32895:function(e,t,n){n.d(t,{d:function(){return o}});let r="global-popup-layer";function o(){if("undefined"==typeof document){var e,t;return null!==(t=null===(e=globalThis.document)||void 0===e?void 0:e.body)&&void 0!==t?t:{}}let n=document.getElementById(r);return n||((n=document.createElement("div")).id=r,document.body.appendChild(n)),n}}}]); 2//# sourceMappingURL=9641-843f38f49a6c9cf9.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.