UNPKG

pulse-dashboard

Version:

A Next.js Dashboard application for real-time monitoring and historical analysis of Playwright test executions, based on playwright-pulse-report. This component provides the UI for visualizing Playwright test results and can be run as a standalone CLI too

5 lines 166 kB
(()=>{var e={};e.id=974,e.ids=[974],e.modules={2030:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isNavigatingToNewRootLayout",{enumerable:!0,get:function(){return function e(t,r){let a=t[0],n=r[0];if(Array.isArray(a)&&Array.isArray(n)){if(a[0]!==n[0]||a[2]!==n[2])return!0}else if(a!==n)return!0;if(t[4])return!r[4];if(r[4])return!0;let l=Object.values(t[1])[0],s=Object.values(r[1])[0];return!l||!s||e(l,s)}}}),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},2255:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"pathHasPrefix",{enumerable:!0,get:function(){return n}});let a=r(19169);function n(e,t){if("string"!=typeof e)return!1;let{pathname:r}=(0,a.parsePath)(e);return r===t||r.startsWith(t+"/")}},3295:e=>{"use strict";e.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},5144:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"PromiseQueue",{enumerable:!0,get:function(){return d}});let a=r(51550),n=r(59656);var l=n._("_maxConcurrency"),s=n._("_runningCount"),o=n._("_queue"),i=n._("_processNext");class d{enqueue(e){let t,r;let n=new Promise((e,a)=>{t=e,r=a}),l=async()=>{try{a._(this,s)[s]++;let r=await e();t(r)}catch(e){r(e)}finally{a._(this,s)[s]--,a._(this,i)[i]()}};return a._(this,o)[o].push({promiseFn:n,task:l}),a._(this,i)[i](),n}bump(e){let t=a._(this,o)[o].findIndex(t=>t.promiseFn===e);if(t>-1){let e=a._(this,o)[o].splice(t,1)[0];a._(this,o)[o].unshift(e),a._(this,i)[i](!0)}}constructor(e=5){Object.defineProperty(this,i,{value:c}),Object.defineProperty(this,l,{writable:!0,value:void 0}),Object.defineProperty(this,s,{writable:!0,value:void 0}),Object.defineProperty(this,o,{writable:!0,value:void 0}),a._(this,l)[l]=e,a._(this,s)[s]=0,a._(this,o)[o]=[]}}function c(e){if(void 0===e&&(e=!1),(a._(this,s)[s]<a._(this,l)[l]||e)&&a._(this,o)[o].length>0){var t;null==(t=a._(this,o)[o].shift())||t.task()}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},5334:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{STATIC_STALETIME_MS:function(){return h},createSeededPrefetchCacheEntry:function(){return d},getOrCreatePrefetchCacheEntry:function(){return i},prunePrefetchCache:function(){return u}});let a=r(59008),n=r(59154),l=r(75076);function s(e,t,r){let a=e.pathname;return(t&&(a+=e.search),r)?""+r+"%"+a:a}function o(e,t,r){return s(e,t===n.PrefetchKind.FULL,r)}function i(e){let{url:t,nextUrl:r,tree:a,prefetchCache:l,kind:o,allowAliasing:i=!0}=e,d=function(e,t,r,a,l){for(let o of(void 0===t&&(t=n.PrefetchKind.TEMPORARY),[r,null])){let r=s(e,!0,o),i=s(e,!1,o),d=e.search?r:i,c=a.get(d);if(c&&l){if(c.url.pathname===e.pathname&&c.url.search!==e.search)return{...c,aliased:!0};return c}let u=a.get(i);if(l&&e.search&&t!==n.PrefetchKind.FULL&&u&&!u.key.includes("%"))return{...u,aliased:!0}}if(t!==n.PrefetchKind.FULL&&l){for(let t of a.values())if(t.url.pathname===e.pathname&&!t.key.includes("%"))return{...t,aliased:!0}}}(t,o,r,l,i);return d?(d.status=p(d),d.kind!==n.PrefetchKind.FULL&&o===n.PrefetchKind.FULL&&d.data.then(e=>{if(!(Array.isArray(e.flightData)&&e.flightData.some(e=>e.isRootRender&&null!==e.seedData)))return c({tree:a,url:t,nextUrl:r,prefetchCache:l,kind:null!=o?o:n.PrefetchKind.TEMPORARY})}),o&&d.kind===n.PrefetchKind.TEMPORARY&&(d.kind=o),d):c({tree:a,url:t,nextUrl:r,prefetchCache:l,kind:o||n.PrefetchKind.TEMPORARY})}function d(e){let{nextUrl:t,tree:r,prefetchCache:a,url:l,data:s,kind:i}=e,d=s.couldBeIntercepted?o(l,i,t):o(l,i),c={treeAtTimeOfPrefetch:r,data:Promise.resolve(s),kind:i,prefetchTime:Date.now(),lastUsedTime:Date.now(),staleTime:-1,key:d,status:n.PrefetchCacheEntryStatus.fresh,url:l};return a.set(d,c),c}function c(e){let{url:t,kind:r,tree:s,nextUrl:i,prefetchCache:d}=e,c=o(t,r),u=l.prefetchQueue.enqueue(()=>(0,a.fetchServerResponse)(t,{flightRouterState:s,nextUrl:i,prefetchKind:r}).then(e=>{let r;if(e.couldBeIntercepted&&(r=function(e){let{url:t,nextUrl:r,prefetchCache:a,existingCacheKey:n}=e,l=a.get(n);if(!l)return;let s=o(t,l.kind,r);return a.set(s,{...l,key:s}),a.delete(n),s}({url:t,existingCacheKey:c,nextUrl:i,prefetchCache:d})),e.prerendered){let t=d.get(null!=r?r:c);t&&(t.kind=n.PrefetchKind.FULL,-1!==e.staleTime&&(t.staleTime=e.staleTime))}return e})),f={treeAtTimeOfPrefetch:s,data:u,kind:r,prefetchTime:Date.now(),lastUsedTime:null,staleTime:-1,key:c,status:n.PrefetchCacheEntryStatus.fresh,url:t};return d.set(c,f),f}function u(e){for(let[t,r]of e)p(r)===n.PrefetchCacheEntryStatus.expired&&e.delete(t)}let f=1e3*Number("0"),h=1e3*Number("300");function p(e){let{kind:t,prefetchTime:r,lastUsedTime:a,staleTime:l}=e;return -1!==l?Date.now()<r+l?n.PrefetchCacheEntryStatus.fresh:n.PrefetchCacheEntryStatus.stale:Date.now()<(null!=a?a:r)+f?a?n.PrefetchCacheEntryStatus.reusable:n.PrefetchCacheEntryStatus.fresh:t===n.PrefetchKind.AUTO&&Date.now()<r+h?n.PrefetchCacheEntryStatus.stale:t===n.PrefetchKind.FULL&&Date.now()<r+h?n.PrefetchCacheEntryStatus.reusable:n.PrefetchCacheEntryStatus.expired}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},6361:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"assignLocation",{enumerable:!0,get:function(){return n}});let a=r(96127);function n(e,t){if(e.startsWith(".")){let r=t.origin+t.pathname;return new URL((r.endsWith("/")?r:r+"/")+e)}return new URL((0,a.addBasePath)(e),t.href)}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},8830:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"reducer",{enumerable:!0,get:function(){return a}}),r(59154),r(25232),r(29651),r(28627),r(78866),r(75076),r(97936),r(35429);let a=function(e,t){return e};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},9707:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{addSearchParamsToPageSegments:function(){return u},handleAliasedPrefetchEntry:function(){return c}});let a=r(83913),n=r(89752),l=r(86770),s=r(57391),o=r(33123),i=r(33898),d=r(59435);function c(e,t,r,c){let f,h=e.tree,p=e.cache,m=(0,s.createHrefFromUrl)(r);if("string"==typeof t)return!1;for(let e of t){if(!function e(t){if(!t)return!1;let r=t[2];if(t[3])return!0;for(let t in r)if(e(r[t]))return!0;return!1}(e.seedData))continue;let t=e.tree;t=u(t,Object.fromEntries(r.searchParams));let{seedData:s,isRootRender:d,pathToSegment:c}=e,x=["",...c];t=u(t,Object.fromEntries(r.searchParams));let g=(0,l.applyRouterStatePatchToTree)(x,h,t,m),y=(0,n.createEmptyCacheNode)();if(d&&s){let e=s[1];y.loading=s[3],y.rsc=e,function e(t,r,n,l){if(0!==Object.keys(n[1]).length)for(let s in n[1]){let i;let d=n[1][s],c=d[0],u=(0,o.createRouterCacheKey)(c),f=null!==l&&void 0!==l[2][s]?l[2][s]:null;if(null!==f){let e=f[1],t=f[3];i={lazyData:null,rsc:c.includes(a.PAGE_SEGMENT_KEY)?null:e,prefetchRsc:null,head:null,prefetchHead:null,parallelRoutes:new Map,loading:t}}else i={lazyData:null,rsc:null,prefetchRsc:null,head:null,prefetchHead:null,parallelRoutes:new Map,loading:null};let h=t.parallelRoutes.get(s);h?h.set(u,i):t.parallelRoutes.set(s,new Map([[u,i]])),e(i,r,d,f)}}(y,p,t,s)}else y.rsc=p.rsc,y.prefetchRsc=p.prefetchRsc,y.loading=p.loading,y.parallelRoutes=new Map(p.parallelRoutes),(0,i.fillCacheWithNewSubTreeDataButOnlyLoading)(y,p,e);g&&(h=g,p=y,f=!0)}return!!f&&(c.patchedTree=h,c.cache=p,c.canonicalUrl=m,c.hashFragment=r.hash,(0,d.handleMutable)(e,c))}function u(e,t){let[r,n,...l]=e;if(r.includes(a.PAGE_SEGMENT_KEY))return[(0,a.addSearchParamsIfPageSegment)(r,t),n,...l];let s={};for(let[e,r]of Object.entries(n))s[e]=u(r,t);return[r,s,...l]}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},10846:e=>{"use strict";e.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},18468:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"invalidateCacheBelowFlightSegmentPath",{enumerable:!0,get:function(){return function e(t,r,l){let s=l.length<=2,[o,i]=l,d=(0,a.createRouterCacheKey)(i),c=r.parallelRoutes.get(o);if(!c)return;let u=t.parallelRoutes.get(o);if(u&&u!==c||(u=new Map(c),t.parallelRoutes.set(o,u)),s){u.delete(d);return}let f=c.get(d),h=u.get(d);h&&f&&(h===f&&(h={lazyData:h.lazyData,rsc:h.rsc,prefetchRsc:h.prefetchRsc,head:h.head,prefetchHead:h.prefetchHead,parallelRoutes:new Map(h.parallelRoutes)},u.set(d,h)),e(h,f,(0,n.getNextFlightSegmentPath)(l)))}}});let a=r(33123),n=r(74007);("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},19121:e=>{"use strict";e.exports=require("next/dist/server/app-render/action-async-storage.external.js")},19169:(e,t)=>{"use strict";function r(e){let t=e.indexOf("#"),r=e.indexOf("?"),a=r>-1&&(t<0||r<t);return a||t>-1?{pathname:e.substring(0,a?r:t),query:a?e.substring(r,t>-1?t:void 0):"",hash:t>-1?e.slice(t):""}:{pathname:e,query:"",hash:""}}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"parsePath",{enumerable:!0,get:function(){return r}})},19587:(e,t)=>{"use strict";function r(e){return e.split("/").map(e=>encodeURIComponent(e)).join("/")}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"encodeURIPath",{enumerable:!0,get:function(){return r}})},21204:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>l});var a=r(37413),n=r(40316);function l(){return(0,a.jsx)("main",{className:"min-h-screen flex flex-col",children:(0,a.jsx)(n.PulseDashboard,{})})}},22308:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{addRefreshMarkerToActiveParallelSegments:function(){return function e(t,r){let[a,n,,s]=t;for(let o in a.includes(l.PAGE_SEGMENT_KEY)&&"refresh"!==s&&(t[2]=r,t[3]="refresh"),n)e(n[o],r)}},refreshInactiveParallelSegments:function(){return s}});let a=r(56928),n=r(59008),l=r(83913);async function s(e){let t=new Set;await o({...e,rootTree:e.updatedTree,fetchedSegments:t})}async function o(e){let{state:t,updatedTree:r,updatedCache:l,includeNextUrl:s,fetchedSegments:i,rootTree:d=r,canonicalUrl:c}=e,[,u,f,h]=r,p=[];if(f&&f!==c&&"refresh"===h&&!i.has(f)){i.add(f);let e=(0,n.fetchServerResponse)(new URL(f,location.origin),{flightRouterState:[d[0],d[1],d[2],"refetch"],nextUrl:s?t.nextUrl:null}).then(e=>{let{flightData:t}=e;if("string"!=typeof t)for(let e of t)(0,a.applyFlightData)(l,l,e)});p.push(e)}for(let e in u){let r=o({state:t,updatedTree:u[e],updatedCache:l,includeNextUrl:s,fetchedSegments:i,rootTree:d,canonicalUrl:c});p.push(r)}await Promise.all(p)}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},24642:(e,t)=>{"use strict";function r(e){let t=parseInt(e.slice(0,2),16),r=t>>1&63,a=Array(6);for(let e=0;e<6;e++){let t=r>>5-e&1;a[e]=1===t}return{type:1==(t>>7&1)?"use-cache":"server-action",usedArgs:a,hasRestArgs:1==(1&t)}}function a(e,t){let r=Array(e.length);for(let a=0;a<e.length;a++)(a<6&&t.usedArgs[a]||a>=6&&t.hasRestArgs)&&(r[a]=e[a]);return r}Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{extractInfoFromServerReferenceId:function(){return r},omitUnusedArgs:function(){return a}})},25232:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{handleExternalUrl:function(){return b},navigateReducer:function(){return function e(t,r){let{url:j,isExternalUrl:w,navigateType:N,shouldScroll:_,allowAliasing:k}=r,R={},{hash:P}=j,E=(0,n.createHrefFromUrl)(j),T="push"===N;if((0,x.prunePrefetchCache)(t.prefetchCache),R.preserveCustomHistoryState=!1,R.pendingPush=T,w)return b(t,R,j.toString(),T);if(document.getElementById("__next-page-redirect"))return b(t,R,E,T);let C=(0,x.getOrCreatePrefetchCacheEntry)({url:j,nextUrl:t.nextUrl,tree:t.tree,prefetchCache:t.prefetchCache,allowAliasing:k}),{treeAtTimeOfPrefetch:M,data:O}=C;return f.prefetchQueue.bump(O),O.then(f=>{let{flightData:x,canonicalUrl:w,postponed:N}=f,k=!1;if(C.lastUsedTime||(C.lastUsedTime=Date.now(),k=!0),C.aliased){let a=(0,y.handleAliasedPrefetchEntry)(t,x,j,R);return!1===a?e(t,{...r,allowAliasing:!1}):a}if("string"==typeof x)return b(t,R,x,T);let O=w?(0,n.createHrefFromUrl)(w):E;if(P&&t.canonicalUrl.split("#",1)[0]===O.split("#",1)[0])return R.onlyHashChange=!0,R.canonicalUrl=O,R.shouldScroll=_,R.hashFragment=P,R.scrollableSegments=[],(0,c.handleMutable)(t,R);let S=t.tree,A=t.cache,D=[];for(let e of x){let{pathToSegment:r,seedData:n,head:c,isHeadPartial:f,isRootRender:x}=e,y=e.tree,w=["",...r],_=(0,s.applyRouterStatePatchToTree)(w,S,y,E);if(null===_&&(_=(0,s.applyRouterStatePatchToTree)(w,M,y,E)),null!==_){if(n&&x&&N){let e=(0,m.startPPRNavigation)(A,S,y,n,c,f,!1,D);if(null!==e){if(null===e.route)return b(t,R,E,T);_=e.route;let r=e.node;null!==r&&(R.cache=r);let n=e.dynamicRequestTree;if(null!==n){let r=(0,a.fetchServerResponse)(j,{flightRouterState:n,nextUrl:t.nextUrl});(0,m.listenForDynamicRequest)(e,r)}}else _=y}else{if((0,i.isNavigatingToNewRootLayout)(S,_))return b(t,R,E,T);let a=(0,h.createEmptyCacheNode)(),n=!1;for(let t of(C.status!==d.PrefetchCacheEntryStatus.stale||k?n=(0,u.applyFlightData)(A,a,e,C):(n=function(e,t,r,a){let n=!1;for(let l of(e.rsc=t.rsc,e.prefetchRsc=t.prefetchRsc,e.loading=t.loading,e.parallelRoutes=new Map(t.parallelRoutes),v(a).map(e=>[...r,...e])))(0,g.clearCacheNodeDataForSegmentPath)(e,t,l),n=!0;return n}(a,A,r,y),C.lastUsedTime=Date.now()),(0,o.shouldHardNavigate)(w,S)?(a.rsc=A.rsc,a.prefetchRsc=A.prefetchRsc,(0,l.invalidateCacheBelowFlightSegmentPath)(a,A,r),R.cache=a):n&&(R.cache=a,A=a),v(y))){let e=[...r,...t];e[e.length-1]!==p.DEFAULT_SEGMENT_KEY&&D.push(e)}}S=_}}return R.patchedTree=S,R.canonicalUrl=O,R.scrollableSegments=D,R.hashFragment=P,R.shouldScroll=_,(0,c.handleMutable)(t,R)},()=>t)}}});let a=r(59008),n=r(57391),l=r(18468),s=r(86770),o=r(65951),i=r(2030),d=r(59154),c=r(59435),u=r(56928),f=r(75076),h=r(89752),p=r(83913),m=r(65956),x=r(5334),g=r(97464),y=r(9707);function b(e,t,r,a){return t.mpaNavigation=!0,t.canonicalUrl=r,t.pendingPush=a,t.scrollableSegments=void 0,(0,c.handleMutable)(e,t)}function v(e){let t=[],[r,a]=e;if(0===Object.keys(a).length)return[[r]];for(let[e,n]of Object.entries(a))for(let a of v(n))""===r?t.push([e,...a]):t.push([r,e,...a]);return t}r(50593),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},25942:(e,t,r)=>{"use strict";function a(e){return e}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"removeBasePath",{enumerable:!0,get:function(){return a}}),r(26736),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},26736:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"hasBasePath",{enumerable:!0,get:function(){return n}});let a=r(2255);function n(e){return(0,a.pathHasPrefix)(e,"")}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},28627:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"restoreReducer",{enumerable:!0,get:function(){return l}});let a=r(57391),n=r(70642);function l(e,t){var r;let{url:l,tree:s}=t,o=(0,a.createHrefFromUrl)(l),i=s||e.tree,d=e.cache;return{canonicalUrl:o,pushRef:{pendingPush:!1,mpaNavigation:!1,preserveCustomHistoryState:!0},focusAndScrollRef:e.focusAndScrollRef,cache:d,prefetchCache:e.prefetchCache,tree:i,nextUrl:null!=(r=(0,n.extractPathFromFlightRouterState)(i))?r:l.pathname}}r(65956),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},29294:e=>{"use strict";e.exports=require("next/dist/server/app-render/work-async-storage.external.js")},29651:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"serverPatchReducer",{enumerable:!0,get:function(){return c}});let a=r(57391),n=r(86770),l=r(2030),s=r(25232),o=r(56928),i=r(59435),d=r(89752);function c(e,t){let{serverResponse:{flightData:r,canonicalUrl:c}}=t,u={};if(u.preserveCustomHistoryState=!1,"string"==typeof r)return(0,s.handleExternalUrl)(e,u,r,e.pushRef.pendingPush);let f=e.tree,h=e.cache;for(let t of r){let{segmentPath:r,tree:i}=t,p=(0,n.applyRouterStatePatchToTree)(["",...r],f,i,e.canonicalUrl);if(null===p)return e;if((0,l.isNavigatingToNewRootLayout)(f,p))return(0,s.handleExternalUrl)(e,u,e.canonicalUrl,e.pushRef.pendingPush);let m=c?(0,a.createHrefFromUrl)(c):void 0;m&&(u.canonicalUrl=m);let x=(0,d.createEmptyCacheNode)();(0,o.applyFlightData)(h,x,t),u.patchedTree=p,u.cache=x,h=x,f=p}return(0,i.handleMutable)(e,u)}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},30195:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{formatUrl:function(){return l},formatWithValidation:function(){return o},urlObjectKeys:function(){return s}});let a=r(40740)._(r(76715)),n=/https?|ftp|gopher|file/;function l(e){let{auth:t,hostname:r}=e,l=e.protocol||"",s=e.pathname||"",o=e.hash||"",i=e.query||"",d=!1;t=t?encodeURIComponent(t).replace(/%3A/i,":")+"@":"",e.host?d=t+e.host:r&&(d=t+(~r.indexOf(":")?"["+r+"]":r),e.port&&(d+=":"+e.port)),i&&"object"==typeof i&&(i=String(a.urlQueryToSearchParams(i)));let c=e.search||i&&"?"+i||"";return l&&!l.endsWith(":")&&(l+=":"),e.slashes||(!l||n.test(l))&&!1!==d?(d="//"+(d||""),s&&"/"!==s[0]&&(s="/"+s)):d||(d=""),o&&"#"!==o[0]&&(o="#"+o),c&&"?"!==c[0]&&(c="?"+c),""+l+d+(s=s.replace(/[?#]/g,encodeURIComponent))+(c=c.replace("#","%23"))+o}let s=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function o(e){return l(e)}},33873:e=>{"use strict";e.exports=require("path")},33898:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{fillCacheWithNewSubTreeData:function(){return i},fillCacheWithNewSubTreeDataButOnlyLoading:function(){return d}});let a=r(34400),n=r(41500),l=r(33123),s=r(83913);function o(e,t,r,o,i){let{segmentPath:d,seedData:c,tree:u,head:f}=r,h=e,p=t;for(let e=0;e<d.length;e+=2){let t=d[e],r=d[e+1],m=e===d.length-2,x=(0,l.createRouterCacheKey)(r),g=p.parallelRoutes.get(t);if(!g)continue;let y=h.parallelRoutes.get(t);y&&y!==g||(y=new Map(g),h.parallelRoutes.set(t,y));let b=g.get(x),v=y.get(x);if(m){if(c&&(!v||!v.lazyData||v===b)){let e=c[0],t=c[1],r=c[3];v={lazyData:null,rsc:i||e!==s.PAGE_SEGMENT_KEY?t:null,prefetchRsc:null,head:null,prefetchHead:null,loading:r,parallelRoutes:i&&b?new Map(b.parallelRoutes):new Map},b&&i&&(0,a.invalidateCacheByRouterState)(v,b,u),i&&(0,n.fillLazyItemsTillLeafWithHead)(v,b,u,c,f,o),y.set(x,v)}continue}v&&b&&(v===b&&(v={lazyData:v.lazyData,rsc:v.rsc,prefetchRsc:v.prefetchRsc,head:v.head,prefetchHead:v.prefetchHead,parallelRoutes:new Map(v.parallelRoutes),loading:v.loading},y.set(x,v)),h=v,p=b)}}function i(e,t,r,a){o(e,t,r,a,!0)}function d(e,t,r,a){o(e,t,r,a,!1)}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},34400:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"invalidateCacheByRouterState",{enumerable:!0,get:function(){return n}});let a=r(33123);function n(e,t,r){for(let n in r[1]){let l=r[1][n][0],s=(0,a.createRouterCacheKey)(l),o=t.parallelRoutes.get(n);if(o){let t=new Map(o);t.delete(s),e.parallelRoutes.set(n,t)}}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},35416:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{HTML_LIMITED_BOT_UA_RE:function(){return a.HTML_LIMITED_BOT_UA_RE},HTML_LIMITED_BOT_UA_RE_STRING:function(){return l},getBotType:function(){return i},isBot:function(){return o}});let a=r(95796),n=/Googlebot|Google-PageRenderer|AdsBot-Google|googleweblight|Storebot-Google/i,l=a.HTML_LIMITED_BOT_UA_RE.source;function s(e){return a.HTML_LIMITED_BOT_UA_RE.test(e)}function o(e){return n.test(e)||s(e)}function i(e){return n.test(e)?"dom":s(e)?"html":void 0}},35429:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"serverActionReducer",{enumerable:!0,get:function(){return T}});let a=r(11264),n=r(11448),l=r(91563),s=r(59154),o=r(6361),i=r(57391),d=r(25232),c=r(86770),u=r(2030),f=r(59435),h=r(41500),p=r(89752),m=r(68214),x=r(96493),g=r(22308),y=r(74007),b=r(36875),v=r(97860),j=r(5334),w=r(25942),N=r(26736),_=r(24642);r(50593);let{createFromFetch:k,createTemporaryReferenceSet:R,encodeReply:P}=r(19357);async function E(e,t,r){let s,i,{actionId:d,actionArgs:c}=r,u=R(),f=(0,_.extractInfoFromServerReferenceId)(d),h="use-cache"===f.type?(0,_.omitUnusedArgs)(c,f):c,p=await P(h,{temporaryReferences:u}),m=await fetch("",{method:"POST",headers:{Accept:l.RSC_CONTENT_TYPE_HEADER,[l.ACTION_HEADER]:d,[l.NEXT_ROUTER_STATE_TREE_HEADER]:encodeURIComponent(JSON.stringify(e.tree)),...t?{[l.NEXT_URL]:t}:{}},body:p}),x=m.headers.get("x-action-redirect"),[g,b]=(null==x?void 0:x.split(";"))||[];switch(b){case"push":s=v.RedirectType.push;break;case"replace":s=v.RedirectType.replace;break;default:s=void 0}let j=!!m.headers.get(l.NEXT_IS_PRERENDER_HEADER);try{let e=JSON.parse(m.headers.get("x-action-revalidated")||"[[],0,0]");i={paths:e[0]||[],tag:!!e[1],cookie:e[2]}}catch(e){i={paths:[],tag:!1,cookie:!1}}let w=g?(0,o.assignLocation)(g,new URL(e.canonicalUrl,window.location.href)):void 0,N=m.headers.get("content-type");if(null==N?void 0:N.startsWith(l.RSC_CONTENT_TYPE_HEADER)){let e=await k(Promise.resolve(m),{callServer:a.callServer,findSourceMapURL:n.findSourceMapURL,temporaryReferences:u});return g?{actionFlightData:(0,y.normalizeFlightData)(e.f),redirectLocation:w,redirectType:s,revalidatedParts:i,isPrerender:j}:{actionResult:e.a,actionFlightData:(0,y.normalizeFlightData)(e.f),redirectLocation:w,redirectType:s,revalidatedParts:i,isPrerender:j}}if(m.status>=400)throw Object.defineProperty(Error("text/plain"===N?await m.text():"An unexpected response was received from the server."),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0});return{redirectLocation:w,redirectType:s,revalidatedParts:i,isPrerender:j}}function T(e,t){let{resolve:r,reject:a}=t,n={},l=e.tree;n.preserveCustomHistoryState=!1;let o=e.nextUrl&&(0,m.hasInterceptionRouteInCurrentTree)(e.tree)?e.nextUrl:null;return E(e,o,t).then(async m=>{let y,{actionResult:_,actionFlightData:k,redirectLocation:R,redirectType:P,isPrerender:E,revalidatedParts:T}=m;if(R&&(P===v.RedirectType.replace?(e.pushRef.pendingPush=!1,n.pendingPush=!1):(e.pushRef.pendingPush=!0,n.pendingPush=!0),n.canonicalUrl=y=(0,i.createHrefFromUrl)(R,!1)),!k)return(r(_),R)?(0,d.handleExternalUrl)(e,n,R.href,e.pushRef.pendingPush):e;if("string"==typeof k)return r(_),(0,d.handleExternalUrl)(e,n,k,e.pushRef.pendingPush);let C=T.paths.length>0||T.tag||T.cookie;for(let a of k){let{tree:s,seedData:i,head:f,isRootRender:m}=a;if(!m)return console.log("SERVER ACTION APPLY FAILED"),r(_),e;let b=(0,c.applyRouterStatePatchToTree)([""],l,s,y||e.canonicalUrl);if(null===b)return r(_),(0,x.handleSegmentMismatch)(e,t,s);if((0,u.isNavigatingToNewRootLayout)(l,b))return r(_),(0,d.handleExternalUrl)(e,n,y||e.canonicalUrl,e.pushRef.pendingPush);if(null!==i){let t=i[1],r=(0,p.createEmptyCacheNode)();r.rsc=t,r.prefetchRsc=null,r.loading=i[3],(0,h.fillLazyItemsTillLeafWithHead)(r,void 0,s,i,f,void 0),n.cache=r,n.prefetchCache=new Map,C&&await (0,g.refreshInactiveParallelSegments)({state:e,updatedTree:b,updatedCache:r,includeNextUrl:!!o,canonicalUrl:n.canonicalUrl||e.canonicalUrl})}n.patchedTree=b,l=b}return R&&y?(C||((0,j.createSeededPrefetchCacheEntry)({url:R,data:{flightData:k,canonicalUrl:void 0,couldBeIntercepted:!1,prerendered:!1,postponed:!1,staleTime:-1},tree:e.tree,prefetchCache:e.prefetchCache,nextUrl:e.nextUrl,kind:E?s.PrefetchKind.FULL:s.PrefetchKind.AUTO}),n.prefetchCache=e.prefetchCache),a((0,b.getRedirectError)((0,N.hasBasePath)(y)?(0,w.removeBasePath)(y):y,P||v.RedirectType.push))):r(_),(0,f.handleMutable)(e,n)},t=>(a(t),e))}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},38202:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{createMutableActionQueue:function(){return d},getCurrentAppRouterState:function(){return c}});let a=r(59154),n=r(8830),l=r(43210),s=r(91992);function o(e,t){null!==e.pending&&(e.pending=e.pending.next,null!==e.pending?i({actionQueue:e,action:e.pending,setState:t}):e.needsRefresh&&(e.needsRefresh=!1,e.dispatch({type:a.ACTION_REFRESH,origin:window.location.origin},t)))}async function i(e){let{actionQueue:t,action:r,setState:a}=e,n=t.state;t.pending=r;let l=r.payload,i=t.action(n,l);function d(e){!r.discarded&&(t.state=e,o(t,a),r.resolve(e))}(0,s.isThenable)(i)?i.then(d,e=>{o(t,a),r.reject(e)}):d(i)}function d(e){let t={state:e,dispatch:(e,r)=>(function(e,t,r){let n={resolve:r,reject:()=>{}};if(t.type!==a.ACTION_RESTORE){let e=new Promise((e,t)=>{n={resolve:e,reject:t}});(0,l.startTransition)(()=>{r(e)})}let s={payload:t,next:null,resolve:n.resolve,reject:n.reject};null===e.pending?(e.last=s,i({actionQueue:e,action:s,setState:r})):t.type===a.ACTION_NAVIGATE||t.type===a.ACTION_RESTORE?(e.pending.discarded=!0,s.next=e.pending.next,e.pending.payload.type===a.ACTION_SERVER_ACTION&&(e.needsRefresh=!0),i({actionQueue:e,action:s,setState:r})):(null!==e.last&&(e.last.next=s),e.last=s)})(t,e,r),action:async(e,t)=>(0,n.reducer)(e,t),pending:null,last:null};return t}function c(){return null}},40316:(e,t,r)=>{"use strict";r.d(t,{PulseDashboard:()=>a});let a=(0,r(12907).registerClientReference)(function(){throw Error("Attempted to call PulseDashboard() from the server but PulseDashboard is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/Users/administrator/playwright-pulse-dashboard/src/components/pulse-dashboard/PulseDashboard.tsx","PulseDashboard")},41500:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"fillLazyItemsTillLeafWithHead",{enumerable:!0,get:function(){return function e(t,r,l,s,o,i){if(0===Object.keys(l[1]).length){t.head=o;return}for(let d in l[1]){let c;let u=l[1][d],f=u[0],h=(0,a.createRouterCacheKey)(f),p=null!==s&&void 0!==s[2][d]?s[2][d]:null;if(r){let a=r.parallelRoutes.get(d);if(a){let r;let l=(null==i?void 0:i.kind)==="auto"&&i.status===n.PrefetchCacheEntryStatus.reusable,s=new Map(a),c=s.get(h);r=null!==p?{lazyData:null,rsc:p[1],prefetchRsc:null,head:null,prefetchHead:null,loading:p[3],parallelRoutes:new Map(null==c?void 0:c.parallelRoutes)}:l&&c?{lazyData:c.lazyData,rsc:c.rsc,prefetchRsc:c.prefetchRsc,head:c.head,prefetchHead:c.prefetchHead,parallelRoutes:new Map(c.parallelRoutes),loading:c.loading}:{lazyData:null,rsc:null,prefetchRsc:null,head:null,prefetchHead:null,parallelRoutes:new Map(null==c?void 0:c.parallelRoutes),loading:null},s.set(h,r),e(r,c,u,p||null,o,i),t.parallelRoutes.set(d,s);continue}}if(null!==p){let e=p[1],t=p[3];c={lazyData:null,rsc:e,prefetchRsc:null,head:null,prefetchHead:null,parallelRoutes:new Map,loading:t}}else c={lazyData:null,rsc:null,prefetchRsc:null,head:null,prefetchHead:null,parallelRoutes:new Map,loading:null};let m=t.parallelRoutes.get(d);m?m.set(h,c):t.parallelRoutes.set(d,new Map([[h,c]])),e(c,void 0,u,p,o,i)}}}});let a=r(33123),n=r(59154);("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},44397:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"findHeadInCache",{enumerable:!0,get:function(){return n}});let a=r(33123);function n(e,t){return function e(t,r,n){if(0===Object.keys(r).length)return[t,n];if(r.children){let[l,s]=r.children,o=t.parallelRoutes.get("children");if(o){let t=(0,a.createRouterCacheKey)(l),r=o.get(t);if(r){let a=e(r,s,n+"/"+t);if(a)return a}}}for(let l in r){if("children"===l)continue;let[s,o]=r[l],i=t.parallelRoutes.get(l);if(!i)continue;let d=(0,a.createRouterCacheKey)(s),c=i.get(d);if(!c)continue;let u=e(c,o,n+"/"+d);if(u)return u}return null}(e,t,"")}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},49587:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return n}});let a=r(14985)._(r(64963));function n(e,t){var r;let n={};"function"==typeof e&&(n.loader=e);let l={...n,...t};return(0,a.default)({...l,modules:null==(r=l.loadableGenerated)?void 0:r.modules})}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},50593:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{NavigationResultTag:function(){return u},PrefetchPriority:function(){return f},bumpPrefetchTask:function(){return d},cancelPrefetchTask:function(){return i},createCacheKey:function(){return c},getCurrentCacheVersion:function(){return s},navigate:function(){return n},prefetch:function(){return a},revalidateEntireCache:function(){return l},schedulePrefetchTask:function(){return o}});let r=()=>{throw Object.defineProperty(Error("Segment Cache experiment is not enabled. This is a bug in Next.js."),"__NEXT_ERROR_CODE",{value:"E654",enumerable:!1,configurable:!0})},a=r,n=r,l=r,s=r,o=r,i=r,d=r,c=r;var u=function(e){return e[e.MPA=0]="MPA",e[e.Success=1]="Success",e[e.NoOp=2]="NoOp",e[e.Async=3]="Async",e}({}),f=function(e){return e[e.Intent=2]="Intent",e[e.Default=1]="Default",e[e.Background=0]="Background",e}({});("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},51353:(e,t,r)=>{Promise.resolve().then(r.bind(r,40316))},51550:(e,t,r)=>{"use strict";function a(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw TypeError("attempted to use private field on non-instance");return e}r.r(t),r.d(t,{_:()=>a})},54674:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"normalizePathTrailingSlash",{enumerable:!0,get:function(){return l}});let a=r(84949),n=r(19169),l=e=>{if(!e.startsWith("/"))return e;let{pathname:t,query:r,hash:l}=(0,n.parsePath)(e);return""+(0,a.removeTrailingSlash)(t)+r+l};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},56780:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"BailoutToCSR",{enumerable:!0,get:function(){return n}});let a=r(81208);function n(e){let{reason:t,children:r}=e;throw Object.defineProperty(new a.BailoutToCSRError(t),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0})}},56928:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"applyFlightData",{enumerable:!0,get:function(){return l}});let a=r(41500),n=r(33898);function l(e,t,r,l){let{tree:s,seedData:o,head:i,isRootRender:d}=r;if(null===o)return!1;if(d){let r=o[1];t.loading=o[3],t.rsc=r,t.prefetchRsc=null,(0,a.fillLazyItemsTillLeafWithHead)(t,e,s,o,i,l)}else t.rsc=e.rsc,t.prefetchRsc=e.prefetchRsc,t.parallelRoutes=new Map(e.parallelRoutes),t.loading=e.loading,(0,n.fillCacheWithNewSubTreeData)(t,e,r,l);return!0}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},59435:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"handleMutable",{enumerable:!0,get:function(){return l}});let a=r(70642);function n(e){return void 0!==e}function l(e,t){var r,l;let s=null==(r=t.shouldScroll)||r,o=e.nextUrl;if(n(t.patchedTree)){let r=(0,a.computeChangedPath)(e.tree,t.patchedTree);r?o=r:o||(o=e.canonicalUrl)}return{canonicalUrl:n(t.canonicalUrl)?t.canonicalUrl===e.canonicalUrl?e.canonicalUrl:t.canonicalUrl:e.canonicalUrl,pushRef:{pendingPush:n(t.pendingPush)?t.pendingPush:e.pushRef.pendingPush,mpaNavigation:n(t.mpaNavigation)?t.mpaNavigation:e.pushRef.mpaNavigation,preserveCustomHistoryState:n(t.preserveCustomHistoryState)?t.preserveCustomHistoryState:e.pushRef.preserveCustomHistoryState},focusAndScrollRef:{apply:!!s&&(!!n(null==t?void 0:t.scrollableSegments)||e.focusAndScrollRef.apply),onlyHashChange:t.onlyHashChange||!1,hashFragment:s?t.hashFragment&&""!==t.hashFragment?decodeURIComponent(t.hashFragment.slice(1)):e.focusAndScrollRef.hashFragment:null,segmentPaths:s?null!=(l=null==t?void 0:t.scrollableSegments)?l:e.focusAndScrollRef.segmentPaths:[]},cache:t.cache?t.cache:e.cache,prefetchCache:t.prefetchCache?t.prefetchCache:e.prefetchCache,tree:n(t.patchedTree)?t.patchedTree:e.tree,nextUrl:o}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},59656:(e,t,r)=>{"use strict";r.r(t),r.d(t,{_:()=>n});var a=0;function n(e){return"__private_"+a+++"_"+e}},61520:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useSyncDevRenderIndicator",{enumerable:!0,get:function(){return a}});let r=e=>e(),a=()=>r;("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},63033:e=>{"use strict";e.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},64777:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"PreloadChunks",{enumerable:!0,get:function(){return o}});let a=r(60687),n=r(51215),l=r(29294),s=r(19587);function o(e){let{moduleIds:t}=e,r=l.workAsyncStorage.getStore();if(void 0===r)return null;let o=[];if(r.reactLoadableManifest&&t){let e=r.reactLoadableManifest;for(let r of t){if(!e[r])continue;let t=e[r].files;o.push(...t)}}return 0===o.length?null:(0,a.jsx)(a.Fragment,{children:o.map(e=>{let t=r.assetPrefix+"/_next/"+(0,s.encodeURIPath)(e);return e.endsWith(".css")?(0,a.jsx)("link",{precedence:"dynamic",href:t,rel:"stylesheet",as:"style"},e):((0,n.preload)(t,{as:"script",fetchPriority:"low"}),null)})})}},64963:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return d}});let a=r(60687),n=r(43210),l=r(56780),s=r(64777);function o(e){return{default:e&&"default"in e?e.default:e}}let i={loader:()=>Promise.resolve(o(()=>null)),loading:null,ssr:!0},d=function(e){let t={...i,...e},r=(0,n.lazy)(()=>t.loader().then(o)),d=t.loading;function c(e){let o=d?(0,a.jsx)(d,{isLoading:!0,pastDelay:!0,error:null}):null,i=!t.ssr||!!t.loading,c=i?n.Suspense:n.Fragment,u=t.ssr?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(s.PreloadChunks,{moduleIds:t.modules}),(0,a.jsx)(r,{...e})]}):(0,a.jsx)(l.BailoutToCSR,{reason:"next/dynamic",children:(0,a.jsx)(r,{...e})});return(0,a.jsx)(c,{...i?{fallback:o}:{},children:u})}return c.displayName="LoadableComponent",c}},65951:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"shouldHardNavigate",{enumerable:!0,get:function(){return function e(t,r){let[l,s]=r,[o,i]=t;return(0,n.matchSegment)(o,l)?!(t.length<=2)&&e((0,a.getNextFlightSegmentPath)(t),s[i]):!!Array.isArray(o)}}});let a=r(74007),n=r(14077);("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},65956:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{abortTask:function(){return h},listenForDynamicRequest:function(){return f},startPPRNavigation:function(){return i},updateCacheNodeOnPopstateRestoration:function(){return function e(t,r){let a=r[1],n=t.parallelRoutes,s=new Map(n);for(let t in a){let r=a[t],o=r[0],i=(0,l.createRouterCacheKey)(o),d=n.get(t);if(void 0!==d){let a=d.get(i);if(void 0!==a){let n=e(a,r),l=new Map(d);l.set(i,n),s.set(t,l)}}}let o=t.rsc,i=x(o)&&"pending"===o.status;return{lazyData:null,rsc:o,head:t.head,prefetchHead:i?t.prefetchHead:[null,null],prefetchRsc:i?t.prefetchRsc:null,loading:t.loading,parallelRoutes:s}}}});let a=r(83913),n=r(14077),l=r(33123),s=r(2030),o={route:null,node:null,dynamicRequestTree:null,children:null};function i(e,t,r,s,i,u,f,h){return function e(t,r,s,i,u,f,h,p,m,x){let g=r[1],y=s[1],b=null!==u?u[2]:null;i||!0!==s[4]||(i=!0);let v=t.parallelRoutes,j=new Map(v),w={},N=null,_=!1,k={};for(let t in y){let r;let s=y[t],c=g[t],u=v.get(t),R=null!==b?b[t]:null,P=s[0],E=m.concat([t,P]),T=(0,l.createRouterCacheKey)(P),C=void 0!==c?c[0]:void 0,M=void 0!==u?u.get(T):void 0;if(null!==(r=P===a.DEFAULT_SEGMENT_KEY?void 0!==c?{route:c,node:null,dynamicRequestTree:null,children:null}:d(c,s,i,void 0!==R?R:null,f,h,E,x):p&&0===Object.keys(s[1]).length?d(c,s,i,void 0!==R?R:null,f,h,E,x):void 0!==c&&void 0!==C&&(0,n.matchSegment)(P,C)&&void 0!==M&&void 0!==c?e(M,c,s,i,R,f,h,p,E,x):d(c,s,i,void 0!==R?R:null,f,h,E,x))){if(null===r.route)return o;null===N&&(N=new Map),N.set(t,r);let e=r.node;if(null!==e){let r=new Map(u);r.set(T,e),j.set(t,r)}let a=r.route;w[t]=a;let n=r.dynamicRequestTree;null!==n?(_=!0,k[t]=n):k[t]=a}else w[t]=s,k[t]=s}if(null===N)return null;let R={lazyData:null,rsc:t.rsc,prefetchRsc:t.prefetchRsc,head:t.head,prefetchHead:t.prefetchHead,loading:t.loading,parallelRoutes:j};return{route:c(s,w),node:R,dynamicRequestTree:_?c(s,k):null,children:N}}(e,t,r,!1,s,i,u,f,[],h)}function d(e,t,r,a,n,i,d,f){return!r&&(void 0===e||(0,s.isNavigatingToNewRootLayout)(e,t))?o:function e(t,r,a,n,s,o){if(null===r)return u(t,null,a,n,s,o);let i=t[1],d=r[4],f=0===Object.keys(i).length;if(d||n&&f)return u(t,r,a,n,s,o);let h=r[2],p=new Map,m=new Map,x={},g=!1;if(f)o.push(s);else for(let t in i){let r=i[t],d=null!==h?h[t]:null,c=r[0],u=s.concat([t,c]),f=(0,l.createRouterCacheKey)(c),y=e(r,d,a,n,u,o);p.set(t,y);let b=y.dynamicRequestTree;null!==b?(g=!0,x[t]=b):x[t]=r;let v=y.node;if(null!==v){let e=new Map;e.set(f,v),m.set(t,e)}}return{route:t,node:{lazyData:null,rsc:r[1],prefetchRsc:null,head:f?a:null,prefetchHead:null,loading:r[3],parallelRoutes:m},dynamicRequestTree:g?c(t,x):null,children:p}}(t,a,n,i,d,f)}function c(e,t){let r=[e[0],t];return 2 in e&&(r[2]=e[2]),3 in e&&(r[3]=e[3]),4 in e&&(r[4]=e[4]),r}function u(e,t,r,a,n,s){let o=c(e,e[1]);return o[3]="refetch",{route:e,node:function e(t,r,a,n,s,o){let i=t[1],d=null!==r?r[2]:null,c=new Map;for(let t in i){let r=i[t],u=null!==d?d[t]:null,f=r[0],h=s.concat([t,f]),p=(0,l.createRouterCacheKey)(f),m=e(r,void 0===u?null:u,a,n,h,o),x=new Map;x.set(p,m),c.set(t,x)}let u=0===c.size;u&&o.push(s);let f=null!==r?r[1]:null,h=null!==r?r[3]:null;return{lazyData:null,parallelRoutes:c,prefetchRsc:void 0!==f?f:null,prefetchHead:u?a:[null,null],loading:void 0!==h?h:null,rsc:g(),head:u?g():null}}(e,t,r,a,n,s),dynamicRequestTree:o,children:null}}function f(e,t){t.then(t=>{let{flightData:r}=t;if("string"!=typeof r){for(let t of r){let{segmentPath:r,tree:a,seedData:s,head:o}=t;s&&function(e,t,r,a,s){let o=e;for(let e=0;e<t.length;e+=2){let r=t[e],a=t[e+1],l=o.children;if(null!==l){let e=l.get(r);if(void 0!==e){let t=e.route[0];if((0,n.matchSegment)(a,t)){o=e;continue}}}return}(function e(t,r,a,s){if(null===t.dynamicRequestTree)return;let o=t.children,i=t.node;if(null===o){null!==i&&(function e(t,r,a,s,o){let i=r[1],d=a[1],c=s[2],u=t.parallelRoutes;for(let t in i){let r=i[t],a=d[t],s=c[t],f=u.get(t),h=r[0],m=(0,l.createRouterCacheKey)(h),x=void 0!==f?f.get(m):void 0;void 0!==x&&(void 0!==a&&(0,n.matchSegment)(h,a[0])&&null!=s?e(x,r,a,s,o):p(r,x,null))}let f=t.rsc,h=s[1];null===f?t.rsc=h:x(f)&&f.resolve(h);let m=t.head;x(m)&&m.resolve(o)}(i,t.route,r,a,s),t.dynamicRequestTree=null);return}let d=r[1],c=a[2];for(let t in r){let r=d[t],a=c[t],l=o.get(t);if(void 0!==l){let t=l.route[0];if((0,n.matchSegment)(r[0],t)&&null!=a)return e(l,r,a,s)}}})(o,r,a,s)}(e,r,a,s,o)}h(e,null)}},t=>{h(e,t)})}function h(e,t){let r=e.node;if(null===r)return;let a=e.children;if(null===a)p(e.route,r,t);else for(let e of a.values())h(e,t);e.dynamicRequestTree=null}function p(e,t,r){let a=e[1],n=t.parallelRoutes;for(let e in a){let t=a[e],s=n.get(e);if(void 0===s)continue;let o=t[0],i=(0,l.createRouterCacheKey)(o),d=s.get(i);void 0!==d&&p(t,d,r)}let s=t.rsc;x(s)&&(null===r?s.resolve(null):s.reject(r));let o=t.head;x(o)&&o.resolve(null)}let m=Symbol();function x(e){return e&&e.tag===m}function g(){let e,t;let r=new Promise((r,a)=>{e=r,t=a});return r.status="pending",r.resolve=t=>{"pending"===r.status&&(r.status="fulfilled",r.value=t,e(t))},r.reject=e=>{"pending"===r.status&&(r.status="rejected",r.reason=e,t(e))},r.tag=m,r}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},66130:(e,t,r)=>{"use strict";r.r(t),r.d(t,{GlobalError:()=>s.a,__next_app__:()=>u,pages:()=>c,routeModule:()=>f,tree:()=>d});var a=r(65239),n=r(48088),l=r(88170),s=r.n(l),o=r(30893),i={};for(let e in o)0>["default","tree","pages","GlobalError","__next_app__","routeModule"].indexOf(e)&&(i[e]=()=>o[e]);r.d(t,i);let d=["",{children:["__PAGE__",{},{page:[()=>Promise.resolve().then(r.bind(r,21204)),"/Users/administrator/playwright-pulse-dashboard/src/app/page.tsx"]}]},{layout:[()=>Promise.resolve().then(r.bind(r,94431)),"/Users/administrator/playwright-pulse-dashboard/src/app/layout.tsx"],"not-found":[()=>Promise.resolve().then(r.t.bind(r,57398,23)),"next/dist/client/components/not-found-error"],forbidden:[()=>Promise.resolve().then(r.t.bind(r,89999,23)),"next/dist/client/components/forbidden-error"],unauthorized:[()=>Promise.resolve().then(r.t.bind(r,65284,23)),"next/dist/client/components/unauthorized-error"]}],c=["/Users/administrator/playwright-pulse-dashboard/src/app/page.tsx"],u={require:r,loadChunk:()=>Promise.resolve()},f=new a.AppPageRouteModule({definition:{kind:n.RouteKind.APP_PAGE,page:"/page",pathname:"/",bundlePath:"",filename:"",appPaths:[]},userland:{loaderTree:d}})},69012:(e,t,r)=>{"use strict";r.d(t,{PulseDashboard:()=>r4});var a=r(60687),n=r(43210),l=r(30474),s=r(48661),o=r(44493),i=r(85726),d=r(91821),c=r(36260),u=r(82614);let f=(0,u.A)("ListFilter",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M7 12h10",key:"b7w52i"}],["path",{d:"M10 18h4",key:"1ulq68"}]]),h=(0,u.A)("CircleCheckBig",[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]);var p=r(97025);let m=(0,u.A)("SkipForward",[["polygon",{points:"5 4 15 12 5 20 5 4",key:"16p6eg"}],["line",{x1:"19",x2:"19",y1:"5",y2:"19",key:"futhcm"}]]);var x=r(15036);let g=(0,u.A)("Laptop",[["path",{d:"M20 16V7a2 2 0 0 0-2-2H6a2 2 0 0 0-2 2v9m16 0H4m16 0 1.28 2.55a1 1 0 0 1-.9 1.45H3.62a1 1 0 0 1-.9-1.45L4 16",key:"tarvll"}]]),y=(0,u.A)("Cpu",[["rect",{width:"16",height:"16",x:"4",y:"4",rx:"2",key:"14l7u7"}],["rect",{width:"6",height:"6",x:"9",y:"9",rx:"1",key:"5aljv4"}],["path",{d:"M15 2v2",key:"13l42r"}],["path",{d:"M15 20v2",key:"15mkzm"}],["path",{d:"M2 15h2",key:"1gxd5l"}],["path",{d:"M2 9h2",key:"1bbxkp"}],["path",{d:"M20 15h2",key:"19e6y8"}],["path",{d:"M20 9h2",key:"19tzq7"}],["path",{d:"M9 2v2",key:"165o2o"}],["path",{d:"M9 20v2",key:"i2bqo8"}]]),b=(0,u.A)("MemoryStick",[["path",{d:"M6 19v-3",key:"1nvgqn"}],["path",{d:"M10 19v-3",key:"iu8nkm"}],["path",{d:"M14 19v-3",key:"kcehxu"}],["path",{d:"M18 19v-3",key:"1vh91z"}],["path",{d:"M8 11V9",key:"63erz4"}],["path",{d:"M16 11V9",key:"fru6f3"}],["path",{d:"M12 11V9",key:"ha00sb"}],["path",{d:"M2 15h20",key:"16ne18"}],["path",{d:"M2 7a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v1.1a2 2 0 0 0 0 3.837V17a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2v-5.1a2 2 0 0 0 0-3.837Z",key:"lhddv3"}]]),v=(0,u.A)("Cog",[["path",{d:"M12 20a8 8 0 1 0 0-16 8 8 0 0 0 0 16Z",key:"sobvz5"}],["path",{d:"M12 14a2 2 0 1 0 0-4 2 2 0 0 0 0 4Z",key:"11i496"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 22v-2",key:"1osdcq"}],["path",{d:"m17 20.66-1-1.73",key:"eq3orb"}],["path",{d:"M11 10.27 7 3.34",key:"16pf9h"}],["path",{d:"m20.66 17-1.73-1",key:"sg0v6f"}],["path",{d:"m3.34 7 1.73 1",key:"1ulond"}],["path",{d:"M14 12h8",key:"4f43i9"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"m20.66 7-1.73 1",key:"1ow05n"}],["path",{d:"m3.34 17 1.73-1",key:"nuk764"}],["path",{d:"m17 3.34-1 1.73",key:"2wel8s"}],["path",{d:"m11 13.73-4 6.93",key:"794ttg"}]]),j=(0,u.A)("Puzzle",[["path",{d:"M15.39 4.39a1 1 0 0 0 1.68-.474 2.5 2.5 0 1 1 3.014 3.015 1 1 0 0 0-.474 1.68l1.683 1.682a2.414 2.414 0 0 1 0 3.414L19.61 15.39a1 1 0 0 1-1.68-.474 2.5 2.5 0 1 0-3.014 3.015 1 1 0 0 1 .474 1.68l-1.683 1.682a2.414 2.414 0 0 1-3.414 0L8.61 19.61a1 1 0 0 0-1.68.474 2.5 2.5 0 1 1-3.014-3.015 1 1 0 0 0 .474-1.68l-1.683-1.682a2.414 2.414 0 0 1 0-3.414L4.39 8.61a1 1 0 0 1 1.68.474 2.5 2.5 0 1 0 3.014-3.015 1 1 0 0 1-.474-1.68l1.683-1.682a2.414 2.414 0 0 1 3.414 0z",key:"w46dr5"}]]),w=(0,u.A)("Play",[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]]),N=(0,u.A)("Globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]]),_=(0,u.A)("Chrome",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["line",{x1:"21.17",x2:"12",y1:"8",y2:"8",key:"a0cw5f"}],["line",{x1:"3.95",x2:"8.54",y1:"6.06",y2:"14",key:"1kftof"}],["line",{x1:"10.88",x2:"15.46",y1:"21.94",y2:"14",key:"1ymyh8"}]]),k=(0,u.A)("Compass",[["path",{d:"m16.24 7.76-1.804 5.411a2 2 0 0 1-1.265 1.265L7.76 16.24l1.804-5.411a2 2 0 0 1 1.265-1.265z",key:"9ktpf1"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]),R=(0,u.A)("Github",[["path",{d:"M15 22v-4a4.8 4.8 0 0 0-1-3.5c3 0 6-2 6-5.5.08-1.25-.27-2.48-1-3.5.28-1.15.28-2.35 0-3.5 0 0-1 0-3 1.5-2.64-.5-5.36-.5-8 0C6 2 5 2 5 2c-.3 1.15-.3 2.35 0 3.5A5.403 5.403 0 0 0 4 9c0 3.5 3 5.5 6 5.5-.39.49-.68 1.05-.85 1.65-.17.6-.22 1.23-.15 1.85v4",key:"tonef"}],["path",{d:"M9 18c-4.51 2-5-2-7-2",key:"9comsn"}]]),P=(0,u.A)("Briefcase",[["path",{d:"M16 20V4a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16",key:"jecpp"}],["rect",{width:"20",height:"14",x:"2",y:"6",rx:"2",key:"i6l2r4"}]]),E=(0,u.A)("HardDrive",[["line",{x1:"22",x2:"2",y1:"12",y2:"12",key:"1y58io"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}],["line",{x1:"6",x2:"6.01",y1:"16",y2:"16",key:"sgf278"}],["line",{x1:"10",x2:"10.01",y1:"16",y2:"16",key:"1l4acy"}]]);var T=r(99196);let C=(0,u.A)("Server",[["rect",{width:"20",height:"8",x:"2",y:"2",rx:"2",ry:"2",key:"ngkwjq"}],["rect",{width:"20",height:"8",x:"2",y:"14",rx:"2",ry:"2",key:"iecqi9"}],["line",{x1:"6",x2:"6.01",y1:"6",y2:"6",key:"16zg32"}],["line",{x1:"6",x2:"6.01",y1:"18",y2:"18",key:"nzw8ys"}]]),M=e=>{let t=e.toLowerCase();return t.includes("os")||t.includes("operative system")?(0,a.jsx)(g,{className:"h-4 w-4 text-primary"}):t.includes("cpu")?(0,a.jsx)(y,{className:"h-4 w-4 text-primary"}):t.includes("mem")||t.includes("ram")?(0,a.jsx)(b,{className:"h-4 w-4 text-primary"}):t.includes("node")?(0,a.jsx)(v,{className:"h-4 w-4 text-primary"}):t.includes("playwright")?(0,a.jsx)(j,{className:"h-4 w-4 text-primary"}):t.includes("y playwright")?(0,a.jsx)(w,{className:"h-4 w-4 text-primary"}):t.includes("browser")?(0,a.jsx)(N,{className:"h-4 w-4 text-primary"}):t.includes("chromium")||t.includes("chrome")?(0,a.jsx)(_,{className:"h-4 w-4 text-primary"}):t.includes("firefox")?(0,a.jsx)(N,{className:"h-4 w-4 text-primary"}):t.includes("webkit")||t.includes("safari")?(0,a.jsx)(k,{className:"h-4 w-4 text-primary"}):t.includes("provider")&&(e.toLowerCase().includes("ci")||e.toLowerCase().includes("cd"))?(0,a.jsx)(R,{className:"h-4 w-4 text-primary"}):t.includes("job")&&(e.toLowerCase().includes("ci")||e.toLowerCase().includes("cd"))?(0,a.jsx)(P,{className:"h-4 w-4 text-primary"}):t.includes("disk")||t.includes("storage")?(0,a.jsx)(E,{className:"h-4 w-4 text-primary"}):(0,a.jsx)(T.A,{className:"h-4 w-4 text-primary"})},O=(e,t="")=>"string"==typeof e||"number"==typeof e||"boolean"==typeof e?(0,a.jsx)("span",{className:"text-sm text-foreground",children:String(e)}):Array.isArray(e)?(0,a.jsx)("ul",{className:"list-disc list-inside pl-4",children:e.map((e,r)=>(0,a.jsx)("li",{className:"text-sm text-foreground",children:O(e,`${t}-arr-item-${r}`)},`${t}-arr-${r}`))}):"object"==typeof e&&null!==e?(0,a.jsx)("div",{className:"ml-4 mt-1 space-y-1 border-l pl-3 border-border",children:Object.entries(e).map(([e,r])=>(0,a.jsxs)("div",{className:"flex items-start space-x-2",children:[(0,a.jsx)("div",{className:"flex-shrink-0 pt-0.5",children:M(e)}),(0,a.jsxs)("div",{className:"flex-grow",children:[(0,a.jsxs)("span",{className:"text-xs font-medium text-muted-foreground capitalize",children:[e.replace(/([A-Z])/g," $1"),": "]}),O(r,`${t}-${e}`)]})]},`${t}-${e}`))}):(0,a.jsx)("span",{className:"text-sm text-muted-foreground italic",children:"N/A"});function S({environmentInfo:e,loading:t}){return t?(0,a.jsxs)(o.Zp,{className:"shadow-lg rounded-xl mt-6",children:[(0,a.jsxs)(o.aR,{children:[(0,a.jsx)(i.E,{className:"h-6 w-48 mb-1"}),(0,a.jsx)(i.E,{className:"h-4 w-3/4"})]}),(0,a.jsx)(o.Wu,{className:"space-y-3",children:[void 0,void 0,void 0,void 0].map((e,t)=>(0,a.jsxs)("div",{className:"flex items-center space-x-3",children:[(0,a.jsx)(i.E,{className:"h-5 w-5 rounded-full"}),(0,a.jsx)(i.E,{className:"h-4 w-1/4"}),(0,a.jsx)(i.E,{className:"h-4 w-1/2"})]},t))})]}):e&&0!==Object.keys(e).length?(0,a.jsxs)(o.Zp,{className:"shadow-lg rounded-xl mt-6 hover:shadow-xl transition-shadow duration-300",children:[(0,a.jsxs)(o.aR,{children:[(0,a.jsxs)(o.ZB,{className:"text-lg font-semibold text-primary flex items-center",children:[(0,a.jsx)(C,{className:"h-5 w-5 mr-2"})," System Information"]}),(0,a.jsx)(o.BT,{className:"text-xs",children:"Details about the test execution environment."})]}),(0,a.jsx)(o.Wu,{className:"space-y-3 pr-2",children:Object.entries(e).map(([e,t])=>(0,a.jsxs)("div",{className:"flex items-start space-x-3 p-2 rounded-md hover:bg-muted/30 transition-colors",children:[(0,a.jsx)("div",{className:"flex-shrink-0 pt-1",children:M(e)}),(0,a.jsxs)("div",{className:"flex-grow",children:[(0,a.jsxs)("span",{className:"text-sm font-semibold text-muted-foreground capitalize",children:[e.replace(/([A-Z]+)/g," $1").replace(/([A-Z][a-z])/g," $1").replace(/^./,e=>e.toUpperCase()),":"]}),O(t,e)]})]},e))})]}):(0,a.jsxs)(o.Zp,{className:"shadow-lg rounded-xl mt-6",children:[(0,a.jsxs)(o.aR,{children:[(0,a.jsxs)(o.ZB,{className:"text-lg font-semibold text-primary flex items-center",children:[(0,a.jsx)(C,{className:"h-5 w-5 mr-2"})," System Information"]}),(0,a.jsx)(o.BT,{className:"text-xs",children:"Details about the test execution environment."})]}),(0,a.jsx)(o.Wu,{children:(0,a.jsxs)(d.Fc,{variant:"default",className:"border-muted-foreground/30",children:[(0,a.jsx)(T.A,{className:"h-4 w-4"}),(0,a.jsx)(d.XL,{children:"No Environment Data"}),(0,a.jsx)(d.TN,{children:"Environment information is not available in the current report."})]})})]})}var A=r(49587);let D=r.n(A)()(async()=>{},{loadableGenerated:{modules:["components/pulse-dashboard/SummaryMetrics.tsx -> ./DashboardOverviewCharts"]},ssr:!1,loading:()=>(0,a.jsx)("div",{className:"grid gap-6 md:grid-cols-1 lg:grid-cols-2 mt-6",children:[...Array(6)].map((e,t)=>(0,a.jsxs)(o.Zp,{className:"shadow-lg rounded-xl",children:[(0,a.jsxs)(o.aR,{children:[(0,a.jsx)(i.E,{className:"h-5 w-3/4 rounded-md"}),(0,a.jsx)(i.E,{className:"h-4 w-1/2 mt-1 rounded-md"})]}),(0,a.jsx)(o.Wu,{children:(0,a.jsx)(i.E,{className:"h-48 w-full rounded-lg"})})]},`loader-chart-${t}`))})});function L({currentRun:e,loading:t,error:r,onMetricClick:n}){let l=e?.run,s=e?.run?.environment||e?.environment;if(r&&!l)return(0,a.jsxs)(d.Fc,{variant:"destructive",className:"col-span-full md:col-span-2 lg:col-span-5",children:[(0,a.jsx)(c.A,{className:"h-4 w-4"}),(0,a.jsx)(d.XL,{children:"Error Fetching Summary Metrics"}),(0,a.jsx)(d.TN,{children:r})]});if(t&&!l)return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:"grid gap-4 md:grid-cols-2 lg:grid-cols-5",children:[void 0,void 0,void 0,void 0,void 0].map((e,t)=>(0,a.jsxs)(o.Zp,{className:"shadow-lg rounded-xl",children:[(0,a.jsxs)(o.aR,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[(0,a.jsx)(i.E,{className:"h-5 w-24"}),(0,a.jsx)(i.E,{className:"h-6 w-6"})]}),(0,a.jsxs)(o.Wu,{children:[(0,a.jsx)(i.E,{className:"h-8 w-16"}),(0,a.jsx)(i.E,{className:"h-4 w-32 mt-1"})]})]},t))}),(0,a.jsx)(S,{environmentInfo:null,loading:!0,error:null}),(0,a.jsx)("div",{className:"grid gap-6 md:grid-cols-1 lg:grid-cols-2 mt-6",children:[...Array(6)].map((e,t)=>(0,a.jsxs)(o.Zp,{className:"shadow-lg rounded-xl",children:[(0,a.jsxs)(o.aR,{children:[(0,a.jsx)(i.E,{className:"h-5 w-3/4 rounded-md"}),(0,a.jsx)(i.E,{className:"h-4 w-1/2 mt-1 rounded-md"})]}),(0,a.jsx)(o.Wu,{children:(0,a.jsx)(i.E,{className:"h-48 w-full rounded-lg"})})]},`skeleton-chart-main-${t}`))})]});let u=l?[{title:"Total Tests",value:l.totalTests.toString(),icon:(0,a.jsx)(f,{className:"h-5 w-5 text-muted-foreground"}),change:null,filterKey:null},{title:"Passed",value:l.passed.toString(),icon:(0,a.jsx)(h,{className:"h-5 w-5 text-[hsl(var(--chart-3))]"}),change:`${l.totalTests>0?(l.passed/l.totalTests*100).toFixed(1):"0.0"}% pass rate`,filterKey:"passed"},{title:"Failed",value:l.failed.toString(),icon:(0,a.jsx)(p.A,{className:"h-5 w-5 text-destructive"}),change:`${l.totalTests>0?(l.failed/l.totalTests*100).toFixed(1):"0.0"}% fail rate`,filterKey:"failed"},{title:"Skipped",value:l.skipped.toString(),icon:(0,a.jsx)(m,{className:"h-5 w-5 text-[hsl(var(--accent))]"}),change:`${l.totalTests>0?(l.skipped/l.totalTests*100).toFixed(1):"0.0"}% skip rate`,filterKey:"skipped"},{title:"Duration",value:function(e){if(0===e)return"0s";let t=Math.floor(e/1e3%60),r=Math.floor(e/6e4%60),a=Math.floor(e/36e5%24),n="";return a>0&&(n+=`${a}h `),r>0&&(n+=`${r}m `),(t>0||0===a&&0===r)&&(n+=`${t}s`),n.trim()||"0s"}(l.duration),icon:(0,a.jsx)(x.A,{className:"h-5 w-5 text-primary"}),change:"Total execution time",filterKey:null}]:[],g=e=>{e&&n&&n(e)};return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"grid gap-6 md:grid-cols-2 lg:grid-cols-5",children:[u.map(e=>(0,a.jsxs)(o.Zp,{className:`shadow-lg hover:shadow-xl transition-shadow duration-300 rounded-xl ${e.filterKey&&n?"cursor-pointer hover:ring-2 hover:ring-primary":""}`,onClick:()=>g(e.filterKey),tabIndex:e.filterKey&&n?0:-1,onKeyDown:t=>{("Enter"===t.key||" "===t.key)&&e.filterKey&&n&&g(e.filterKey)},role:e.filterKey&&n?"button":void 0,"aria-label":e.filterKey&&n?`View ${e.filterKey} tests`:void 0,children:[(0,a.jsxs)(o.aR,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[(0,a.jsx)(o.ZB,{className:"text-sm font-medium text-muted-foreground",children:e.title}),e.icon]}),(0,a.jsxs)(o.Wu,{children:[(0,a.jsx)("div",{className:"text-3xl font-bold text-foreground",children:e.value}),e.change&&(0,a.jsx)("p",{className:"text-xs text-muted-foreground pt-1",children:e.change})]})]},e.title)),t&&l&&[...Array(5-u.length)].map((e,t)=>(0,a.jsxs)(o.Zp,{className:"shadow-lg rounded-xl",children:[(0,a.jsxs)(o.aR,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[(0,a.jsx)(i.E,{className:"h-5 w-24"}),(0,a.jsx)(i.E,{className:"h-6 w-6"})]}),(0,a.jsxs)(o.Wu,{children:[(0,a.jsx)(i.E,{className:"h-8 w-16"}),(0,a.jsx)(i.E,{className:"h-4 w-32 mt-1"})]})]},`loading-${t}`))]}),(0,a.jsx)(S,{environmentInfo:s,loading:t,error:r}),(0,a.jsx)(D,{currentRun:e,loading:t,error:r})]})}var F=r(70137),U=r(96834),I=r(85814),z=r.n(I),H=r(38765),B=r(72963);let K=(0,u.A)("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]),$=(0,u.A)("Eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);var W=r(4780);function q({status:e}){switch(e){case"passed":return(0,a.jsx)(H.A,{className:"h-5 w-5 text-[hsl(var(--chart-3))]"});case"failed":return(0,a.jsx)(p.A,{className:"h-5 w-5 text-destructive"});case"skipped":return(0,a.jsx)(B.A,{className:"h-5 w-5 text-[hsl(var(--accent))]"});case"timedOut":return(0,a.jsx)(x.A,{className:"h-5 w-5 text-destructive"});case"pending":return(0,a.jsx)(x.A,{className:"h-5 w-5 text-primary animate-pulse"});default:return(0,a.jsx)(T.A,{className:"h-5 w-5 text-muted-foreground"})}}function V({test:e}){var t;let r=(0,n.useMemo)(()=>e.screenshots&&Array.isArray(e.screenshots)?e.screenshots.slice(0,4).map((e,t)=>({name:function(e,t="Attachment"){return e&&"string"==typeof e&&e.split(/[/\\]/).pop()||t}(e,`Screenshot ${t+1}`),path:e,contentType:"image/png","data-ai-hint":"test screenshot thumbnail"})):[],[e.screenshots]),s=e.errorMessage||r.length>0,o=function(e){if(!e)return"";let t=e.split(" > ");return t[t.length-1]||e}(e.name);return(0,a.jsxs)("div",{className:"border-b border-border last:border-b-0 py-3 hover:bg-muted/20 transition-colors duration-200 px-4 rounded-lg mb-2 shadow-md bg-card hover:shadow-lg",children:[(0,a.jsxs)("div",{className:"flex items-center justify-between",children:[(0,a.jsxs)("div",{className:"flex items-center space-x-3 flex-1 min-w-0",children:[(0,a.jsx)(q,{status:e.status}),(0,a.jsx)(z(),{href:`/test/${e.id}`,className:"font-medium text-foreground text-sm md:text-base hover:underline truncate",title:e.name,children:o})]}),(0,a.jsxs)("div",{className:"flex items-center space-x-3 ml-2 flex-shrink-0",children:[(0,a.jsx)(U.E,{variant:"outline",className:"capitalize text-xs px-2 py-0.5 rounded-full border",style:function(e){switch(e){case"passed":return{backgroundColor:"hsl(var(--chart-3))",color:"hsl(var(--primary-foreground))"};case"failed":case"timedOut":return{backgroundColor:"hsl(var(--destructive))",color:"hsl(var(--destructive-foreground))"};case"skipped":return{backgroundColor:"hsl(var(--accent))",color:"hsl(var(--accent-foreground))"};case"pending":return{backgroundColor:"hsl(var(--primary))",color:"hsl(var(--primary-foreground))"};default:return{backgroundColor:"hsl(var(--muted))",color:"hsl(var(--muted-foreground))"}}}(e.status),children:e.status}),(0,a.jsx)("span",{className:"text-sm text-muted-foreground w-20 text-right",children:(t=e.duration)<1e3?`${t}ms`:`${(t/1e3).toFixed(2)}s`}),(0,a.jsx)(z(),{href:`/test/${e.id}`,"aria-label":`View details for ${o}`,children:(0,a.jsx)(K,{className:"h-5 w-5 text-muted-foreground hover:text-primary transition-colors"})})]})]}),s&&(0,a.jsx)(F.nD,{type:"single",collapsible:!0,className:"w-full mt-2",children:(0,a.jsxs)(F.As,{value:"details",className:"border-none",children:[(0,a.jsx)(F.$m,{className:"text-xs py-1 px-1 hover:no-underline text-muted-foreground justify-start hover:bg-accent/10 rounded-md [&[data-state=open]>svg]:ml-2",children:"Quick Look"}),(0,a.jsxs)(F.ub,{className:"pt-2 pl-2 pr-2 pb-1 bg-muted/30 rounded-lg",children:[e.errorMessage&&(0,a.jsxs)("div",{className:"mb-3",children:[(0,a.jsx)("h4",{className:"font-semibold text-xs text-destructive mb-1",children:"Error:"}),(0,a.jsx)("pre",{className:"bg-destructive/10 text-xs p-2 rounded-md whitespace-pre-wrap break-all font-code max-h-20 overflow-y-auto",children:(0,a.jsx)("span",{dangerouslySetInnerHTML:{__html:(0,W.cA)(e.errorMessage)}})})]}),r.length>0&&(0,a.jsxs)("div",{children:[(0,a.jsx)("h4",{className:"font-semibold text-xs text-primary mb-1",children:"Screenshots:"}),(0,a.jsx)("div",{className:"mt-1 grid grid-cols-2 sm:grid-cols-3 md:grid-cols-4 gap-1",children:r.map((e,t)=>{let r=(0,W.OX)(e.path);return"#"===r?null:(0,a.jsxs)("a",{href:r,target:"_blank",rel:"noopener noreferrer",className:"relative aspect-video rounded-md overflow-hidden group border hover:border-primary shadow-sm",children:[(0,a.jsx)(l.default,{src:r,alt:e.name,fill:!0,style:{objectFit:"cover"},className:"group-hover:scale-105 transition-transform duration-300","data-ai-hint":e["data-ai-hint"]}),(0,a.jsx)("div",{className:"absolute inset-0 bg-black/30 opacity-0 group-hover:opacity-100 transition-opacity duration-300 flex items-center justify-center",children:(0,a.jsx)($,{className:"h-6 w-6 text-white"})})]},`img-thumb-${t}`)})})]}),!e.errorMessage&&0===r.length&&(0,a.jsx)("p",{className:"text-xs text-muted-foreground",children:"No error or screenshots for quick look. Click to view full details."})]})]})})]})}var G=r(50069),Z=r(61662);let X=(0,u.A)("Repeat1",[["path",{d:"m17 2 4 4-4 4",key:"nntrym"}],["path",{d:"M3 11v-1a4 4 0 0 1 4-4h14",key:"84bu3i"}],["path",{d:"m7 22-4-4 4-4",key:"1wqhfi"}],["path",{d:"M21 13v1a4 4 0 0 1-4 4H3",key:"1rx37r"}],["path",{d:"M11 10h1v4",key:"70cz1p"}]]),Y=(0,u.A)("FilterX",[["path",{d:"M13.013 3H2l8 9.46V19l4 2v-8.54l.9-1.055",key:"1fi1da"}],["path",{d:"m22 3-5 5",key:"12jva0"}],["path",{d:"m17 3 5 5",key:"k36vhe"}]]),Q=(0,u.A)("ListChecks",[["path",{d:"m3 17 2 2 4-4",key:"1jhpwq"}],["path",{d:"m3 7 2 2 4-4",key:"1obspn"}],["path",{d:"M13 6h8",key:"15sg57"}],["path",{d:"M13 12h8",key:"h98zly"}],["path",{d:"M13 18h8",key:"oe0vm4"}]]),J=n.forwardRef(({className:e,type:t,...r},n)=>(0,a.jsx)("input",{type:t,className:(0,W.cn)("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-base ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",e),ref:n,...r}));J.displayName="Input";var ee=r(15079),et=r(14163),er=n.forwardRef((e,t)=>(0,a.jsx)(et.sG.label,{...e,ref:t,onMouseDown:t=>{t.target.closest("button, input, select, textarea")||(e.onMouseDown?.(t),!t.defaultPrevented&&t.detail>1&&t.preventDefault())}}));er.displayName="Label";var ea=r(24224);let en=(0,ea.F)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),el=n.forwardRef(({className:e,...t},r)=>(0,a.jsx)(er,{ref:r,className:(0,W.cn)(en(),e),...t}));el.displayName=er.displayName;var es=r(29523),eo=r(70569),ei=r(98599),ed=r(11273),ec=r(31355),eu=r(1359),ef=r(32547),eh=r(96963),ep=r(55509),em=r(25028),ex=r(46059),eg=r(8730),ey=r(65551),eb=r(63376),ev=r(42247),ej="Popover",[ew,eN]=(0,ed.A)(ej,[ep.Bk]),e_=(0,ep.Bk)(),[ek,eR]=ew(ej),eP=e=>{let{__scopePopover:t,children:r,open:l,defaultOpen:s,onOpenChange:o,modal:i=!1}=e,d=e_(t),c=n.useRef(null),[u,f]=n.useState(!1),[h=!1,p]=(0,ey.i)({prop:l,defaultProp:s,onChange:o});return(0,a.jsx)(ep.bL,{...d,children:(0,a.jsx)(ek,{scope:t,contentId:(0,eh.B)(),triggerRef:c,open:h,onOpenChange:p,onOpenToggle:n.useCallback(()=>p(e=>!e),[p]),hasCustomAnchor:u,onCustomAnchorAdd:n.useCallback(()=>f(!0),[]),onCustomAnchorRemove:n.useCallback(()=>f(!1),[]),modal:i,children:r})})};eP.displayName=ej;var eE="PopoverAnchor";n.forwardRef((e,t)=>{let{__scopePopover:r,...l}=e,s=eR(eE,r),o=e_(r),{onCustomAnchorAdd:i,onCustomAnchorRemove:d}=s;return n.useEffect(()=>(i(),()=>d()),[i,d]),(0,a.jsx)(ep.Mz,{...o,...l,ref:t})}).displayName=eE;var eT="PopoverTrigger",eC=n.forwardRef((e,t)=>{let{__scopePopover:r,...n}=e,l=eR(eT,r),s=e_(r),o=(0,ei.s)(t,l.triggerRef),i=(0,a.jsx)(et.sG.button,{type:"button","aria-haspopup":"dialog","aria-expanded":l.open,"aria-controls":l.contentId,"data-state":eH(l.open),...n,ref:o,onClick:(0,eo.m)(e.onClick,l.onOpenToggle)});return l.hasCustomAnchor?i:(0,a.jsx)(ep.Mz,{asChild:!0,...s,children:i})});eC.displayName=eT;var eM="PopoverPortal",[eO,eS]=ew(eM,{forceMount:void 0}),eA=e=>{let{__scopePopover:t,forceMount:r,children:n,container:l}=e,s=eR(eM,t);return(0,a.jsx)(eO,{scope:t,forceMount:r,children:(0,a.jsx)(ex.C,{present:r||s.open,children:(0,a.jsx)(em.Z,{asChild:!0,container:l,children:n})})})};eA.displayName=eM;var eD="PopoverContent",eL=n.forwardRef((e,t)=>{let r=eS(eD,e.__scopePopover),{forceMount:n=r.forceMount,...l}=e,s=eR(eD,e.__scopePopover);return(0,a.jsx)(ex.C,{present:n||s.open,children:s.modal?(0,a.jsx)(eF,{...l,ref:t}):(0,a.jsx)(eU,{...l,ref:t})})});eL.displayName=eD;var eF=n.forwardRef((e,t)=>{let r=eR(eD,e.__scopePopover),l=n.useRef(null),s=(0,ei.s)(t,l),o=n.useRef(!1);return n.useEffect(()=>{let e=l.current;if(e)return(0,eb.Eq)(e)},[]),(0,a.jsx)(ev.A,{as:eg.DX,allowPinchZoom:!0,children:(0,a.jsx)(eI,{...e,ref:s,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:(0,eo.m)(e.onCloseAutoFocus,e=>{e.preventDefault(),o.current||r.triggerRef.current?.focus()}),onPointerDownOutside:(0,eo.m)(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,r=0===t.button&&!0===t.ctrlKey;o.current=2===t.button||r},{checkForDefaultPrevented:!1}),onFocusOutside:(0,eo.m)(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1})})})}),eU=n.forwardRef((e,t)=>{let r=eR(eD,e.__scopePopover),l=n.useRef(!1),s=n.useRef(!1);return(0,a.jsx)(eI,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(l.current||r.triggerRef.current?.focus(),t.preventDefault()),l.current=!1,s.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(l.current=!0,"pointerdown"!==t.detail.originalEvent.type||(s.current=!0));let a=t.target;r.triggerRef.current?.contains(a)&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&s.current&&t.preventDefault()}})}),eI=n.forwardRef((e,t)=>{let{__scopePopover:r,trapFocus:n,onOpenAutoFocus:l,onCloseAutoFocus:s,disableOutsidePointerEvents:o,onEscapeKeyDown:i,onPointerDownOutside:d,onFocusOutside:c,onInteractOutside:u,...f}=e,h=eR(eD,r),p=e_(r);return(0,eu.Oh)(),(0,a.jsx)(ef.n,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:l,onUnmountAutoFocus:s,children:(0,a.jsx)(ec.qW,{asChild:!0,disableOutsidePointerEvents:o,onInteractOutside:u,onEscapeKeyDown:i,onPointerDownOutside:d,onFocusOutside:c,onDismiss:()=>h.onOpenChange(!1),children:(0,a.jsx)(ep.UC,{"data-state":eH(h.open),role:"dialog",id:h.contentId,...p,...f,ref:t,style:{...f.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),ez="PopoverClose";function eH(e){return e?"open":"closed"}n.forwardRef((e,t)=>{let{__scopePopover:r,...n}=e,l=eR(ez,r);return(0,a.jsx)(et.sG.button,{type:"button",...n,ref:t,onClick:(0,eo.m)(e.onClick,()=>l.onOpenChange(!1))})}).displayName=ez,n.forwardRef((e,t)=>{let{__scopePopover:r,...n}=e,l=e_(r);return(0,a.jsx)(ep.i3,{...l,...n,ref:t})}).displayName="PopoverArrow";let eB=n.forwardRef(({className:e,align:t="center",sideOffset:r=4,...n},l)=>(0,a.jsx)(eA,{children:(0,a.jsx)(eL,{ref:l,align:t,sideOffset:r,className:(0,W.cn)("z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...n})}));eB.displayName=eL.displayName;var eK=r(83721),e$=r(18853),eW="Checkbox",[eq,eV]=(0,ed.A)(eW),[eG,eZ]=eq(eW),eX=n.forwardRef((e,t)=>{let{__scopeCheckbox:r,name:l,checked:s,defaultChecked:o,required:i,disabled:d,value:c="on",onCheckedChange:u,form:f,...h}=e,[p,m]=n.useState(null),x=(0,ei.s)(t,e=>m(e)),g=n.useRef(!1),y=!p||f||!!p.closest("form"),[b=!1,v]=(0,ey.i)({prop:s,defaultProp:o,onChange:u}),j=n.useRef(b);return n.useEffect(()=>{let e=p?.form;if(e){let t=()=>v(j.current);return e.addEventListener("reset",t),()=>e.removeEventListener("reset",t)}},[p,v]),(0,a.jsxs)(eG,{scope:r,state:b,disabled:d,children:[(0,a.jsx)(et.sG.button,{type:"button",role:"checkbox","aria-checked":e0(b)?"mixed":b,"aria-required":i,"data-state":e1(b),"data-disabled":d?"":void 0,disabled:d,value:c,...h,ref:x,onKeyDown:(0,eo.m)(e.onKeyDown,e=>{"Enter"===e.key&&e.preventDefault()}),onClick:(0,eo.m)(e.onClick,e=>{v(e=>!!e0(e)||!e),y&&(g.current=e.isPropagationStopped(),g.current||e.stopPropagation())})}),y&&(0,a.jsx)(eJ,{control:p,bubbles:!g.current,name:l,value:c,checked:b,required:i,disabled:d,form:f,style:{transform:"translateX(-100%)"},defaultChecked:!e0(o)&&o})]})});eX.displayName=eW;var eY="CheckboxIndicator",eQ=n.forwardRef((e,t)=>{let{__scopeCheckbox:r,forceMount:n,...l}=e,s=eZ(eY,r);return(0,a.jsx)(ex.C,{present:n||e0(s.state)||!0===s.state,children:(0,a.jsx)(et.sG.span,{"data-state":e1(s.state),"data-disabled":s.disabled?"":void 0,...l,ref:t,style:{pointerEvents:"none",...e.style}})})});eQ.displayName=eY;var eJ=e=>{let{control:t,checked:r,bubbles:l=!0,defaultChecked:s,...o}=e,i=n.useRef(null),d=(0,eK.Z)(r),c=(0,e$.X)(t);n.useEffect(()=>{let e=i.current,t=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"checked").set;if(d!==r&&t){let a=new Event("click",{bubbles:l});e.indeterminate=e0(r),t.call(e,!e0(r)&&r),e.dispatchEvent(a)}},[d,r,l]);let u=n.useRef(!e0(r)&&r);return(0,a.jsx)("input",{type:"checkbox","aria-hidden":!0,defaultChecked:s??u.current,...o,tabIndex:-1,ref:i,style:{...e.style,...c,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})};function e0(e){return"indeterminate"===e}function e1(e){return e0(e)?"indeterminate":e?"checked":"unchecked"}var e2=r(58450);let e4=n.forwardRef(({className:e,...t},r)=>(0,a.jsx)(eX,{ref:r,className:(0,W.cn)("peer h-4 w-4 shrink-0 rounded-sm border border-primary ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",e),...t,children:(0,a.jsx)(eQ,{className:(0,W.cn)("flex items-center justify-center text-current"),children:(0,a.jsx)(e2.A,{className:"h-4 w-4"})})}));e4.displayName=eX.displayName;var e3=r(42692),e5=r(29867);let e6=["all","passed","failed","skipped","timedOut","pending"],e7=["--suite-color-1-hsl","--suite-color-2-hsl","--suite-color-3-hsl","--suite-color-4-hsl","--suite-color-5-hsl"];function e8({report:e,loading:t,error:r,initialFilter:l}){let[s,u]=(0,n.useState)(l||"all"),[f,h]=(0,n.useState)(""),[g,y]=(0,n.useState)([]),[b,v]=(0,n.useState)([]),[j,w]=(0,n.useState)(!1),[N,_]=(0,n.useState)("all"),[k,R]=(0,n.useState)(["all"]),[P,E]=(0,n.useState)("all"),[C,M]=(0,n.useState)(["all"]),[O,S]=(0,n.useState)(!1),{toast:A}=(0,e5.dj)(),D=(0,n.useMemo)(()=>"all"!==s||""!==f||g.length>0||"all"!==N||"all"!==P||O,[s,f,g,N,P,O]),L=(0,n.useMemo)(()=>{if(!e?.results)return[];let t=e.results.filter(e=>{let t="all"===s||e.status===s||"failed"===s&&"timedOut"===e.status,r=(e.name||"").toLowerCase().includes(f.toLowerCase())||(e.suiteName||"").toLowerCase().includes(f.toLowerCase()),a=0===g.length||e.tags&&e.tags.some(e=>g.includes(e)),n="all"===N||e.browser===N,l=e.suiteName||"Untitled Suite",o="all"===P||l===P,i=!O||O&&e.retries>0;return t&&r&&a&&n&&o&&i}),r=new Map;return t.forEach(e=>{let t=e.suiteName||"Untitled Suite";r.has(t)||r.set(t,{tests:[],stats:{total:0,passed:0,failed:0,skipped:0,pending:0}});let a=r.get(t);a.tests.push(e),a.stats.total++,"passed"===e.status?a.stats.passed++:"failed"===e.status||"timedOut"===e.status?a.stats.failed++:"skipped"===e.status?a.stats.skipped++:"pending"===e.status&&a.stats.pending++}),Array.from(r.entries()).map(([e,t])=>({title:e,tests:t.tests,stats:t.stats})).sort((e,t)=>t.stats.failed-e.stats.failed||t.stats.total-e.stats.total||e.title.localeCompare(t.title))},[e,s,f,g,N,P,O]);return t?(0,a.jsxs)(o.Zp,{className:"shadow-xl",children:[(0,a.jsxs)(o.aR,{children:[(0,a.jsx)(i.E,{className:"h-6 w-48"}),(0,a.jsx)(i.E,{className:"h-4 w-64 mt-1"})]}),(0,a.jsxs)(o.Wu,{className:"space-y-4",children:[(0,a.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-4 mb-6 p-6 border rounded-xl bg-muted/50 shadow-lg",children:[(0,a.jsx)(i.E,{className:"h-10 w-full"}),(0,a.jsx)(i.E,{className:"h-10 w-full"}),(0,a.jsx)(i.E,{className:"h-10 w-full"}),(0,a.jsx)(i.E,{className:"h-10 w-full"}),(0,a.jsx)(i.E,{className:"h-10 w-full"}),(0,a.jsx)(i.E,{className:"h-10 w-full"}),(0,a.jsx)(i.E,{className:"h-10 w-full"})]}),[void 0,void 0,void 0].map((e,t)=>(0,a.jsxs)("div",{className:"space-y-2 p-2 border rounded-lg shadow-md",children:[(0,a.jsx)(i.E,{className:"h-5 w-1/3"}),(0,a.jsx)(i.E,{className:"h-8 w-full"}),(0,a.jsx)(i.E,{className:"h-8 w-full"})]},t))]})]}):r?(0,a.jsxs)(d.Fc,{variant:"destructive",className:"mt-4 shadow-md",children:[(0,a.jsx)(c.A,{className:"h-4 w-4"}),(0,a.jsx)(d.XL,{children:"Error Fetching Test Results"}),(0,a.jsx)(d.TN,{children:r})]}):e&&e.results&&0!==e.results.length?(0,a.jsxs)(o.Zp,{className:"shadow-xl",children:[(0,a.jsxs)(o.aR,{className:"flex flex-row items-center justify-between",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)(o.ZB,{className:"text-2xl font-headline text-primary",children:"Test Results"}),(e.metadata?.generatedAt||e.run?.timestamp)&&(0,a.jsxs)(o.BT,{children:["Last updated:"," ",new Date(e.metadata.generatedAt||e.run.timestamp).toLocaleString()]})]}),(0,a.jsxs)(es.$,{onClick:()=>{if(!e||!e.results||0===e.results.length){A({title:"Export Failed",description:"No data available to export.",variant:"destructive"});return}let t=["id","name","suiteName","status","duration","startTime","endTime","browser","retries","tags","stdout","stderr","workerId"],r=e=>{if(null==e)return"";let t=String(e);return(t.includes(",")||t.includes('"')||t.includes("\n"))&&(t=`"${t.replace(/"/g,'""')}"`),t},a=t.map(r).join(",")+"\n";e.results.forEach(e=>{let n=t.map(t=>{let a;switch(t){case"tags":a=e.tags?e.tags.join("; "):"";break;case"stdout":a=e.stdout?e.stdout.join("\\n"):"";break;case"stderr":a=e.errorMessage||"";break;case"workerId":a=void 0!==e.workerId&&null!==e.workerId?String(e.workerId):"";break;default:a=e[t]}return r(a)});a+=n.join(",")+"\n"});let n=new Blob([a],{type:"text/csv;charset=utf-8;"}),l=URL.createObjectURL(n),s=document.createElement("a");s.setAttribute("href",l);let o="data";if(e.run&&e.run.id&&"string"==typeof e.run.id&&""!==e.run.id.trim()){let t=e.run.id.trim().split("-");t.length>1&&"run"===t[0].toLowerCase()&&t[1]&&""!==t[1].trim()?o=t[1]:t.length>0&&""!==t[0].trim()&&(o=t[0])}else if(e.run&&e.run.timestamp)try{o=String(new Date(e.run.timestamp).getTime())}catch(e){}let i=`run-${o}.csv`;s.setAttribute("download",i),s.style.visibility="hidden",document.body.appendChild(s),s.click(),document.body.removeChild(s),URL.revokeObjectURL(l),A({title:"Export Successful",description:`${i} has been downloaded.`})},variant:"outline",size:"sm",className:"ml-auto rounded-md shadow-md",children:[(0,a.jsx)(G.A,{className:"mr-2 h-4 w-4"}),"Export as CSV"]})]}),(0,a.jsxs)(o.Wu,{className:"space-y-6",children:[(0,a.jsxs)("div",{className:"p-6 border rounded-xl bg-muted/50 shadow-lg space-y-4",children:[(0,a.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-x-6 gap-y-4",children:[(0,a.jsxs)("div",{className:"space-y-1.5",children:[(0,a.jsx)(el,{htmlFor:"status-filter",className:"text-sm font-medium text-muted-foreground",children:"Filter by Status"}),(0,a.jsxs)(ee.l6,{value:s,onValueChange:e=>u(e),children:[(0,a.jsx)(ee.bq,{id:"status-filter",className:"w-full bg-background shadow-inner rounded-md",children:(0,a.jsx)(ee.yv,{placeholder:"Select status"})}),(0,a.jsx)(ee.gC,{className:"rounded-md",children:e6.map(e=>(0,a.jsx)(ee.eb,{value:e,className:"capitalize",children:e.charAt(0).toUpperCase()+e.slice(1)},e))})]})]}),(0,a.jsxs)("div",{className:"space-y-1.5",children:[(0,a.jsx)(el,{htmlFor:"search-filter",className:"text-sm font-medium text-muted-foreground",children:"Search by Name/Suite"}),(0,a.jsx)(J,{id:"search-filter",type:"text",placeholder:"Enter test or suite name...",value:f,onChange:e=>h(e.target.value),className:"w-full bg-background shadow-inner rounded-md"})]}),(0,a.jsxs)("div",{className:"space-y-1.5",children:[(0,a.jsx)(el,{className:"text-sm font-medium text-muted-foreground",children:"Filter by Tags"}),(0,a.jsxs)(eP,{open:j,onOpenChange:w,children:[(0,a.jsx)(eC,{asChild:!0,children:(0,a.jsxs)(es.$,{variant:"outline",className:"w-full bg-background shadow-inner justify-between rounded-md",children:[g.length>0?`Tags (${g.length})`:"Select Tags",(0,a.jsx)(Z.A,{className:"ml-2 h-4 w-4 opacity-50"})]})}),(0,a.jsxs)(eB,{className:"w-[var(--radix-popover-trigger-width)] p-0 rounded-md",align:"start",children:[(0,a.jsx)("div",{className:"p-2 border-b",children:(0,a.jsx)("p",{className:"text-sm font-medium",children:"Filter by Tags"})}),(0,a.jsx)(e3.F,{className:"h-48",children:(0,a.jsx)("div",{className:"p-2 space-y-1",children:b.length>0?b.map(e=>(0,a.jsxs)(el,{htmlFor:`tag-${e}`,className:"flex items-center space-x-2 p-1.5 rounded-md hover:bg-accent/10 cursor-pointer",children:[(0,a.jsx)(e4,{id:`tag-${e}`,checked:g.includes(e),onCheckedChange:t=>{y(r=>!0===t?[...r,e]:r.filter(t=>t!==e))},className:"rounded-sm"}),(0,a.jsx)("span",{children:e})]},e)):(0,a.jsx)("p",{className:"text-xs text-muted-foreground p-2",children:"No tags available in this report."})})}),g.length>0&&(0,a.jsx)("div",{className:"p-2 border-t flex justify-end",children:(0,a.jsx)(es.$,{variant:"ghost",size:"sm",onClick:()=>y([]),children:"Clear selected"})})]})]})]}),(0,a.jsxs)("div",{className:"space-y-1.5",children:[(0,a.jsx)(el,{htmlFor:"browser-filter",className:"text-sm font-medium text-muted-foreground",children:"Filter by Browser"}),(0,a.jsxs)(ee.l6,{value:N,onValueChange:_,children:[(0,a.jsx)(ee.bq,{id:"browser-filter",className:"w-full bg-background shadow-inner rounded-md",children:(0,a.jsx)(ee.yv,{placeholder:"Select browser"})}),(0,a.jsx)(ee.gC,{className:"rounded-md",children:k.map(e=>(0,a.jsx)(ee.eb,{value:e,className:"capitalize",children:"all"===e?"All Browsers":e},e))})]})]}),(0,a.jsxs)("div",{className:"space-y-1.5",children:[(0,a.jsx)(el,{htmlFor:"suite-filter",className:"text-sm font-medium text-muted-foreground",children:"Filter by Test Suite"}),(0,a.jsxs)(ee.l6,{value:P,onValueChange:E,children:[(0,a.jsx)(ee.bq,{id:"suite-filter",className:"w-full bg-background shadow-inner rounded-md",children:(0,a.jsx)(ee.yv,{placeholder:"Select test suite"})}),(0,a.jsx)(ee.gC,{className:"rounded-md",children:C.map(e=>(0,a.jsx)(ee.eb,{value:e,className:"capitalize truncate",children:"all"===e?"All Suites":e.length>40?e.substring(0,37)+"...":e},e))})]})]}),(0,a.jsxs)("div",{className:"flex items-center space-x-2 pt-5",children:[(0,a.jsx)(e4,{id:"retries-filter",checked:O,onCheckedChange:e=>S(!!e),className:"rounded-sm"}),(0,a.jsxs)(el,{htmlFor:"retries-filter",className:"text-sm font-medium text-muted-foreground cursor-pointer flex items-center",children:[(0,a.jsx)(X,{className:"h-4 w-4 mr-1.5 text-muted-foreground"}),"Retries Only"]})]})]}),D&&(0,a.jsx)("div",{className:"mt-4 flex justify-end",children:(0,a.jsxs)(es.$,{variant:"ghost",onClick:()=>{u("all"),h(""),y([]),_("all"),E("all"),S(!1)},className:"text-sm rounded-md",children:[(0,a.jsx)(Y,{className:"mr-2 h-4 w-4"}),"Clear All Filters"]})})]}),g.length>0&&(0,a.jsxs)("div",{className:"mb-4 flex flex-wrap gap-2 items-center",children:[(0,a.jsx)("span",{className:"text-sm text-muted-foreground",children:"Active tags:"}),g.map(e=>(0,a.jsxs)(U.E,{variant:"secondary",className:"flex items-center rounded-full",children:[e,(0,a.jsx)("button",{type:"button","aria-label":`Remove ${e} filter`,onClick:()=>{y(t=>t.filter(t=>t!==e))},className:"ml-1.5 p-0.5 rounded-full hover:bg-muted-foreground/20 focus:outline-none focus:ring-1 focus:ring-ring",children:(0,a.jsx)(p.A,{className:"h-3.5 w-3.5"})})]},e))]}),L.length>0?(0,a.jsx)(F.nD,{type:"multiple",className:"w-full space-y-3",children:L.map((e,t)=>(0,a.jsxs)(F.As,{value:`suite-${e.title.replace(/\s+/g,"-")}-${t}`,className:"border rounded-xl shadow-lg bg-card hover:shadow-xl transition-shadow duration-300",children:[(0,a.jsx)(F.$m,{className:"p-4 hover:no-underline text-left w-full group",children:(0,a.jsx)("div",{className:"flex justify-between items-center w-full",children:(0,a.jsxs)("div",{className:"flex-grow min-w-0",children:[(0,a.jsx)("h3",{className:"text-lg font-semibold group-hover:opacity-80 transition-opacity",title:e.title,style:{color:`hsl(var(${e7[t%e7.length]}))`},children:e.title}),(0,a.jsxs)("div",{className:"flex flex-wrap gap-x-3 gap-y-1.5 mt-2",children:[(0,a.jsxs)(U.E,{variant:"outline",className:"text-xs border-muted-foreground/50",children:[(0,a.jsx)(Q,{className:"mr-1.5 h-3 w-3 text-muted-foreground"}),"Total: ",e.stats.total]}),(0,a.jsxs)(U.E,{variant:"outline",className:"text-xs",style:{color:"hsl(var(--chart-3))",borderColor:"hsl(var(--chart-3) / 0.5)"},children:[(0,a.jsx)(H.A,{className:"mr-1.5 h-3 w-3"}),"Passed: ",e.stats.passed]}),(0,a.jsxs)(U.E,{variant:"outline",className:"text-xs",style:{color:"hsl(var(--destructive))",borderColor:"hsl(var(--destructive) / 0.5)"},children:[(0,a.jsx)(p.A,{className:"mr-1.5 h-3 w-3"}),"Failed: ",e.stats.failed]}),(0,a.jsxs)(U.E,{variant:"outline",className:"text-xs",style:{color:"hsl(var(--accent))",borderColor:"hsl(var(--accent) / 0.5)"},children:[(0,a.jsx)(m,{className:"mr-1.5 h-3 w-3"}),"Skipped: ",e.stats.skipped]}),e.stats.pending>0&&(0,a.jsxs)(U.E,{variant:"outline",className:"text-xs",style:{color:"hsl(var(--primary))",borderColor:"hsl(var(--primary) / 0.5)"},children:[(0,a.jsx)(x.A,{className:"mr-1.5 h-3 w-3"}),"Pending: ",e.stats.pending]})]})]})})}),(0,a.jsx)(F.ub,{className:"p-4 pt-0",children:e.tests.length>0?(0,a.jsx)("div",{className:"space-y-1 mt-2",children:e.tests.map(e=>(0,a.jsx)(V,{test:e},e.id))}):(0,a.jsx)("p",{className:"text-sm text-muted-foreground mt-2",children:"No tests in this suite match the current filters."})})]},`suite-${e.title.replace(/\s+/g,"-")}-${t}`))}):(0,a.jsxs)("div",{className:"text-center py-8",children:[(0,a.jsx)("p",{className:"text-muted-foreground text-lg",children:"No test results match your current filters."}),(0,a.jsx)("p",{className:"text-sm text-muted-foreground mt-1",children:"Try adjusting the status, search term, or tag filters."})]})]})]}):(0,a.jsxs)(o.Zp,{className:"shadow-xl",children:[(0,a.jsx)(o.aR,{className:"flex flex-row items-center justify-between",children:(0,a.jsxs)("div",{children:[(0,a.jsx)(o.ZB,{className:"text-2xl font-headline text-primary",children:"Test Results"}),(e?.metadata?.generatedAt||e?.run?.timestamp)&&(0,a.jsxs)(o.BT,{children:["Last updated:"," ",new Date(e.metadata?.generatedAt||e.run?.timestamp||Date.now()).toLocaleString()]})]})}),(0,a.jsx)(o.Wu,{children:(0,a.jsxs)(d.Fc,{className:"shadow-sm rounded-lg",children:[(0,a.jsx)(T.A,{className:"h-4 w-4"}),(0,a.jsx)(d.XL,{children:"No Test Data"}),(0,a.jsx)(d.TN,{children:"No test results available. Ensure 'playwright-pulse-report.json' exists in 'pulse-report/' and is correctly formatted, or that the data source is providing results."})]})})]})}var e9=r(48482),te=r(61678),tt=r(85168),tr=r(27747),ta=r(9920),tn=r(38246),tl=r(57359),ts=r(50326),to=r(92491),ti=r(48888),td=r(84629),tc=(0,to.gu)({chartName:"BarChart",GraphicalChild:ti.y,defaultTooltipEventType:"axis",validateTooltipEventTypes:["axis","item"],axisComponents:[{axisType:"xAxis",AxisComp:tr.W},{axisType:"yAxis",AxisComp:ta.h}],formatAxisMap:td.pr});let tu=(0,u.A)("TrendingUp",[["polyline",{points:"22 7 13.5 15.5 8.5 10.5 2 17",key:"126l90"}],["polyline",{points:"16 7 22 7 22 13",key:"kwv8wd"}]]),tf=(0,u.A)("Users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]]),th=({active:e,payload:t,label:r})=>e&&t&&t.length?(0,a.jsxs)("div",{className:"custom-recharts-tooltip",children:[(0,a.jsx)("p",{className:"label",children:`Date: ${r}`}),t.map((e,t)=>(0,a.jsx)("p",{style:{color:e.color},className:"text-xs",children:`${e.name}: ${e.value?.toLocaleString()}${e.unit||""}`},`item-${t}`))]}):null,tp=n.memo(({trends:e,loading:t,error:r})=>{let l=n.useRef(null),s=n.useRef(null),u=n.useRef(null),f=n.useMemo(()=>e&&0!==e.length?e.map(e=>({...e,date:new Date(e.date).toLocaleDateString("en-CA",{month:"short",day:"numeric"}),durationSeconds:parseFloat((e.duration/1e3).toFixed(2)),workerCount:e.workerCount})):[],[e]);if(t)return(0,a.jsxs)(o.Zp,{className:"shadow-xl rounded-xl backdrop-blur-md bg-card/80 border-border/50",children:[(0,a.jsx)(o.aR,{children:(0,a.jsxs)(o.ZB,{className:"flex items-center text-2xl font-headline text-primary",children:[(0,a.jsx)(tu,{className:"h-7 w-7 mr-2"}),"Historical Trend Analysis"]})}),(0,a.jsx)(o.Wu,{className:"space-y-8 p-6",children:[void 0,void 0,void 0].map((e,t)=>(0,a.jsxs)("div",{className:"bg-muted/30 p-4 rounded-lg shadow-inner",children:[(0,a.jsx)(i.E,{className:"h-6 w-1/3 mb-4 rounded-md bg-muted/50"}),(0,a.jsx)(i.E,{className:"h-64 w-full rounded-md bg-muted/50"})]},t))})]});if(r)return(0,a.jsxs)(d.Fc,{variant:"destructive",className:"mt-4 shadow-md rounded-lg",children:[(0,a.jsx)(c.A,{className:"h-4 w-4"}),(0,a.jsx)(d.XL,{children:"Error Fetching Historical Trends"}),(0,a.jsx)(d.TN,{children:r})]});if(!e||0===e.length)return(0,a.jsxs)(o.Zp,{className:"shadow-xl rounded-xl backdrop-blur-md bg-card/80 border-border/50",children:[(0,a.jsx)(o.aR,{children:(0,a.jsxs)(o.ZB,{className:"flex items-center text-2xl font-headline text-primary",children:[(0,a.jsx)(tu,{className:"h-7 w-7 mr-2"}),"Historical Trend Analysis"]})}),(0,a.jsx)(o.Wu,{className:"p-6",children:(0,a.jsxs)(d.Fc,{className:"rounded-lg border-primary/30 bg-primary/5 text-primary",children:[(0,a.jsx)(T.A,{className:"h-5 w-5 text-primary/80"}),(0,a.jsx)(d.XL,{className:"font-semibold",children:"No Historical Data"}),(0,a.jsx)(d.TN,{children:"No historical trend data available. Ensure 'trend-*.json' files exist in 'pulse-report/history/' and are correctly formatted."})]})})]});let h=f.some(e=>"number"==typeof e.workerCount&&e.workerCount>0);return(0,a.jsxs)(o.Zp,{className:"shadow-xl rounded-xl backdrop-blur-md bg-card/80 border-border/50",children:[(0,a.jsx)(o.aR,{children:(0,a.jsxs)(o.ZB,{className:"text-2xl font-headline text-primary flex items-center",children:[(0,a.jsx)(tu,{className:"h-7 w-7 mr-2"}),"Historical Trend Analysis"]})}),(0,a.jsxs)(o.Wu,{className:"space-y-10 p-6",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("div",{className:"flex justify-between items-center mb-4",children:(0,a.jsx)("h4",{className:"text-xl font-semibold text-foreground",children:"Test Outcomes Over Time"})}),(0,a.jsx)("div",{ref:l,className:"w-full h-[350px] bg-muted/30 p-4 rounded-lg shadow-inner",children:(0,a.jsx)(e9.u,{width:"100%",height:"100%",children:(0,a.jsxs)(te.b,{data:f,margin:{top:5,right:20,left:0,bottom:5},children:[(0,a.jsx)(tt.d,{strokeDasharray:"3 3",stroke:"hsl(var(--border))"}),(0,a.jsx)(tr.W,{dataKey:"date",stroke:"hsl(var(--muted-foreground))",tick:{fontSize:12}}),(0,a.jsx)(ta.h,{stroke:"hsl(var(--muted-foreground))",tick:{fontSize:12}}),(0,a.jsx)(tn.m,{content:(0,a.jsx)(th,{}),cursor:{fill:"hsl(var(--muted))",fillOpacity:.2}}),(0,a.jsx)(tl.s,{wrapperStyle:{fontSize:"12px",paddingTop:"10px"}}),(0,a.jsx)(ts.N,{type:"monotone",dataKey:"totalTests",name:"Total Tests",stroke:"hsl(var(--chart-2))",strokeWidth:2,dot:{r:3},activeDot:{r:6}}),(0,a.jsx)(ts.N,{type:"monotone",dataKey:"passed",name:"Passed",stroke:"hsl(var(--chart-3))",strokeWidth:2,dot:{r:3},activeDot:{r:6}}),(0,a.jsx)(ts.N,{type:"monotone",dataKey:"failed",name:"Failed",stroke:"hsl(var(--chart-4))",strokeWidth:2,dot:{r:3},activeDot:{r:6}}),(0,a.jsx)(ts.N,{type:"monotone",dataKey:"skipped",name:"Skipped",stroke:"hsl(var(--chart-5))",strokeWidth:2,dot:{r:3},activeDot:{r:6}})]})})})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("div",{className:"flex justify-between items-center mb-4",children:(0,a.jsx)("h4",{className:"text-xl font-semibold text-foreground",children:"Test Duration Over Time"})}),(0,a.jsx)("div",{ref:s,className:"w-full h-[350px] bg-muted/30 p-4 rounded-lg shadow-inner",children:(0,a.jsx)(e9.u,{width:"100%",height:"100%",children:(0,a.jsxs)(tc,{data:f,margin:{top:5,right:20,left:0,bottom:5},children:[(0,a.jsx)(tt.d,{strokeDasharray:"3 3",stroke:"hsl(var(--border))"}),(0,a.jsx)(tr.W,{dataKey:"date",stroke:"hsl(var(--muted-foreground))",tick:{fontSize:12}}),(0,a.jsx)(ta.h,{stroke:"hsl(var(--muted-foreground))",tick:{fontSize:12},unit:"s",name:"Seconds"}),(0,a.jsx)(tn.m,{content:(0,a.jsx)(th,{}),cursor:{fill:"hsl(var(--muted))",fillOpacity:.2}}),(0,a.jsx)(tl.s,{wrapperStyle:{fontSize:"12px",paddingTop:"10px"}}),(0,a.jsx)(ti.y,{dataKey:"durationSeconds",name:"Duration (s)",fill:"hsl(var(--chart-1))",radius:[6,6,0,0],barSize:20})]})})})]}),h&&(0,a.jsxs)("div",{children:[(0,a.jsx)("div",{className:"flex justify-between items-center mb-4",children:(0,a.jsxs)("h4",{className:"text-xl font-semibold text-foreground flex items-center",children:[(0,a.jsx)(tf,{className:"h-5 w-5 mr-2 text-primary"})," Active Worker Count Over Time"]})}),(0,a.jsx)("div",{ref:u,className:"w-full h-[350px] bg-muted/30 p-4 rounded-lg shadow-inner",children:(0,a.jsx)(e9.u,{width:"100%",height:"100%",children:(0,a.jsxs)(te.b,{data:f.filter(e=>"number"==typeof e.workerCount),margin:{top:5,right:20,left:0,bottom:5},children:[(0,a.jsx)(tt.d,{strokeDasharray:"3 3",stroke:"hsl(var(--border))"}),(0,a.jsx)(tr.W,{dataKey:"date",stroke:"hsl(var(--muted-foreground))",tick:{fontSize:12}}),(0,a.jsx)(ta.h,{stroke:"hsl(var(--muted-foreground))",tick:{fontSize:12},allowDecimals:!1,domain:["dataMin","dataMax"]}),(0,a.jsx)(tn.m,{content:(0,a.jsx)(th,{}),cursor:{fill:"hsl(var(--muted))",fillOpacity:.2}}),(0,a.jsx)(tl.s,{wrapperStyle:{fontSize:"12px",paddingTop:"10px"}}),(0,a.jsx)(ts.N,{type:"monotone",dataKey:"workerCount",name:"Active Workers",stroke:"hsl(var(--chart-info))",strokeWidth:2,dot:{r:3},activeDot:{r:6},connectNulls:!1})]})})}),(0,a.jsx)("p",{className:"text-xs text-muted-foreground mt-2",children:"Note: This chart shows the number of unique worker IDs detected in each historical run. Runs without worker information will not be plotted."})]})]})]})});tp.displayName="TrendAnalysis";var tm=r(6475);tm.callServer,tm.findSourceMapURL;let tx=(0,u.A)("Repeat",[["path",{d:"m17 2 4 4-4 4",key:"nntrym"}],["path",{d:"M3 11v-1a4 4 0 0 1 4-4h14",key:"84bu3i"}],["path",{d:"m7 22-4-4 4-4",key:"1wqhfi"}],["path",{d:"M21 13v1a4 4 0 0 1-4 4H3",key:"1rx37r"}]]),tg=(0,u.A)("ChartBarBig",[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["rect",{x:"7",y:"13",width:"9",height:"4",rx:"1",key:"1iip1u"}],["rect",{x:"7",y:"5",width:"12",height:"4",rx:"1",key:"1anskk"}]]),ty=(0,u.A)("CalendarDays",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}],["path",{d:"M8 14h.01",key:"6423bh"}],["path",{d:"M12 14h.01",key:"1etili"}],["path",{d:"M16 14h.01",key:"1gbofw"}],["path",{d:"M8 18h.01",key:"lrp35t"}],["path",{d:"M12 18h.01",key:"mhygvu"}],["path",{d:"M16 18h.01",key:"kzsmim"}]]);function tb({status:e}){let t={},r=(0,a.jsx)(x.A,{className:"h-3 w-3 mr-1"}),n=e;switch(e){case"passed":t={backgroundColor:"hsl(var(--chart-3) / 0.1)",color:"hsl(var(--chart-3))",borderColor:"hsl(var(--chart-3) / 0.3)"},r=(0,a.jsx)(h,{className:"h-3 w-3 mr-1",style:{color:"hsl(var(--chart-3))"}}),n="passed";break;case"failed":case"timedOut":t={backgroundColor:"hsl(var(--destructive) / 0.1)",color:"hsl(var(--destructive))",borderColor:"hsl(var(--destructive) / 0.3)"},r=(0,a.jsx)(p.A,{className:"h-3 w-3 mr-1",style:{color:"hsl(var(--destructive))"}}),n="failed"===e?"failed":"timedOut";break;case"skipped":t={backgroundColor:"hsl(var(--accent) / 0.1)",color:"hsl(var(--accent))",borderColor:"hsl(var(--accent) / 0.3)"},r=(0,a.jsx)(m,{className:"h-3 w-3 mr-1",style:{color:"hsl(var(--accent))"}}),n="skipped";break;case"pending":t={backgroundColor:"hsl(var(--primary) / 0.1)",color:"hsl(var(--primary))",borderColor:"hsl(var(--primary) / 0.3)"},r=(0,a.jsx)(x.A,{className:"h-3 w-3 mr-1",style:{color:"hsl(var(--primary))"}}),n="pending";break;default:t={backgroundColor:"hsl(var(--muted) / 0.5)",color:"hsl(var(--muted-foreground))",borderColor:"hsl(var(--border))"}}return(0,a.jsxs)(U.E,{variant:"outline",className:"capitalize text-xs px-2 py-0.5 whitespace-nowrap border",style:t,children:[r,n]})}function tv(){let[e,t]=(0,n.useState)(null),[r,l]=(0,n.useState)(!0),[s,u]=(0,n.useState)(null);if(r)return(0,a.jsxs)(o.Zp,{className:"shadow-xl",children:[(0,a.jsxs)(o.aR,{children:[(0,a.jsx)(i.E,{className:"h-7 w-48 mb-1"}),(0,a.jsx)(i.E,{className:"h-4 w-3/4"})]}),(0,a.jsx)(o.Wu,{className:"space-y-4",children:[void 0,void 0,void 0].map((e,t)=>(0,a.jsxs)("div",{className:"p-4 border rounded-lg space-y-2",children:[(0,a.jsx)(i.E,{className:"h-5 w-2/3"}),(0,a.jsx)(i.E,{className:"h-4 w-1/2"}),(0,a.jsx)(i.E,{className:"h-4 w-1/3"})]},t))})]});if(s)return(0,a.jsxs)(d.Fc,{variant:"destructive",children:[(0,a.jsx)(c.A,{className:"h-4 w-4"}),(0,a.jsx)(d.XL,{children:"Flaky Test Analysis Error"}),(0,a.jsx)(d.TN,{children:s})]});if(!e||0===e.length)return(0,a.jsxs)(o.Zp,{className:"shadow-xl",children:[(0,a.jsxs)(o.aR,{children:[(0,a.jsxs)(o.ZB,{className:"text-2xl font-headline text-primary flex items-center",children:[(0,a.jsx)(tx,{className:"h-7 w-7 mr-2"}),"Flaky Test Analysis"]}),(0,a.jsx)(o.BT,{children:"Analysis of tests that have shown inconsistent pass/fail behavior across historical runs."})]}),(0,a.jsx)(o.Wu,{children:(0,a.jsxs)(d.Fc,{children:[(0,a.jsx)(h,{className:"h-4 w-4"}),(0,a.jsx)(d.XL,{children:"No Flaky Tests Identified"}),(0,a.jsx)(d.TN,{children:"No tests were identified as flaky based on the available historical data."})]})})]});let f=e=>{if(!e)return"Unknown Test";let t=e.split(" > ");return t[t.length-1]||e};return(0,a.jsxs)(o.Zp,{className:"shadow-xl",children:[(0,a.jsxs)(o.aR,{children:[(0,a.jsxs)(o.ZB,{className:"text-2xl font-headline text-primary flex items-center",children:[(0,a.jsx)(tx,{className:"h-7 w-7 mr-2"}),"Flaky Test Analysis (",e.length,")"]}),(0,a.jsx)(o.BT,{children:"Tests that have shown inconsistent pass/fail behavior across historical runs. Click on a test to see its run history."})]}),(0,a.jsx)(o.Wu,{children:(0,a.jsx)(F.nD,{type:"multiple",className:"w-full space-y-3",children:e.map((e,t)=>(0,a.jsxs)(F.As,{value:`flaky-${e.id}-${t}`,className:"border rounded-lg bg-card hover:bg-muted/20 transition-colors",children:[(0,a.jsx)(F.$m,{className:"p-4 text-left hover:no-underline",children:(0,a.jsxs)("div",{className:"flex flex-col w-full",children:[(0,a.jsx)(z(),{href:`/test/${e.id}`,className:"hover:underline text-base font-semibold text-primary",onClick:e=>e.stopPropagation(),children:f(e.name)}),(0,a.jsxs)("p",{className:"text-xs text-muted-foreground mt-0.5",children:["Suite: ",e.suiteName]}),(0,a.jsxs)("div",{className:"flex flex-wrap gap-2 text-xs mt-2 items-center",children:[(0,a.jsxs)(U.E,{variant:"outline",style:{borderColor:"hsl(var(--chart-3))",color:"hsl(var(--chart-3))"},children:[(0,a.jsx)(h,{className:"h-3 w-3 mr-1.5"})," ",e.passedCount," Passed"]}),(0,a.jsxs)(U.E,{variant:"outline",style:{borderColor:"hsl(var(--destructive))",color:"hsl(var(--destructive))"},children:[(0,a.jsx)(p.A,{className:"h-3 w-3 mr-1.5"})," ",e.failedCount," Failed"]}),(0,a.jsxs)(U.E,{variant:"secondary",children:[(0,a.jsx)(tg,{className:"h-3 w-3 mr-1.5"})," ",e.totalRuns," Total Runs"]}),(0,a.jsxs)(U.E,{variant:"outline",className:"text-xs",children:[(0,a.jsx)(ty,{className:"h-3 w-3 mr-1.5"}),"Seen: ",new Date(e.firstSeen).toLocaleDateString()," - ",new Date(e.lastSeen).toLocaleDateString()]})]})]})}),(0,a.jsxs)(F.ub,{className:"p-4 pt-0",children:[(0,a.jsxs)("h4",{className:"text-sm font-semibold mb-2 text-foreground",children:["Run History (",e.occurrences.length,"):"]}),(0,a.jsx)("div",{className:"max-h-60 overflow-y-auto space-y-1.5 pr-2",children:e.occurrences.map((e,t)=>(0,a.jsxs)("div",{className:"flex justify-between items-center text-xs p-1.5 bg-muted/30 rounded-md",children:[(0,a.jsx)("span",{children:new Date(e.runTimestamp).toLocaleString()}),(0,a.jsx)(tb,{status:e.status})]},t))})]})]},e.id+t))})})]})}var tj="Switch",[tw,tN]=(0,ed.A)(tj),[t_,tk]=tw(tj),tR=n.forwardRef((e,t)=>{let{__scopeSwitch:r,name:l,checked:s,defaultChecked:o,required:i,disabled:d,value:c="on",onCheckedChange:u,form:f,...h}=e,[p,m]=n.useState(null),x=(0,ei.s)(t,e=>m(e)),g=n.useRef(!1),y=!p||f||!!p.closest("form"),[b=!1,v]=(0,ey.i)({prop:s,defaultProp:o,onChange:u});return(0,a.jsxs)(t_,{scope:r,checked:b,disabled:d,children:[(0,a.jsx)(et.sG.button,{type:"button",role:"switch","aria-checked":b,"aria-required":i,"data-state":tC(b),"data-disabled":d?"":void 0,disabled:d,value:c,...h,ref:x,onClick:(0,eo.m)(e.onClick,e=>{v(e=>!e),y&&(g.current=e.isPropagationStopped(),g.current||e.stopPropagation())})}),y&&(0,a.jsx)(tT,{control:p,bubbles:!g.current,name:l,value:c,checked:b,required:i,disabled:d,form:f,style:{transform:"translateX(-100%)"}})]})});tR.displayName=tj;var tP="SwitchThumb",tE=n.forwardRef((e,t)=>{let{__scopeSwitch:r,...n}=e,l=tk(tP,r);return(0,a.jsx)(et.sG.span,{"data-state":tC(l.checked),"data-disabled":l.disabled?"":void 0,...n,ref:t})});tE.displayName=tP;var tT=e=>{let{control:t,checked:r,bubbles:l=!0,...s}=e,o=n.useRef(null),i=(0,eK.Z)(r),d=(0,e$.X)(t);return n.useEffect(()=>{let e=o.current,t=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"checked").set;if(i!==r&&t){let a=new Event("click",{bubbles:l});t.call(e,r),e.dispatchEvent(a)}},[i,r,l]),(0,a.jsx)("input",{type:"checkbox","aria-hidden":!0,defaultChecked:r,...s,tabIndex:-1,ref:o,style:{...e.style,...d,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})};function tC(e){return e?"checked":"unchecked"}let tM=n.forwardRef(({className:e,...t},r)=>(0,a.jsx)(tR,{className:(0,W.cn)("peer inline-flex h-6 w-11 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input",e),...t,ref:r,children:(0,a.jsx)(tE,{className:(0,W.cn)("pointer-events-none block h-5 w-5 rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0")})}));function tO(){let[e,t]=(0,n.useState)(!1);return(0,a.jsxs)(o.Zp,{className:"shadow-xl",children:[(0,a.jsxs)(o.aR,{children:[(0,a.jsx)(o.ZB,{className:"text-2xl font-headline text-primary",children:"Settings"}),(0,a.jsx)(o.BT,{children:"Customize the appearance of the dashboard."})]}),(0,a.jsx)(o.Wu,{children:(0,a.jsxs)("div",{className:"space-y-6",children:[(0,a.jsxs)("div",{className:"flex items-center justify-between p-4 border rounded-lg bg-card/70 shadow-sm",children:[(0,a.jsx)(el,{htmlFor:"theme-toggle",className:"text-base font-medium text-foreground",children:"Theme"}),(0,a.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,a.jsx)("span",{className:"text-sm text-muted-foreground",children:e?"Dark Mode":"Light Mode"}),(0,a.jsx)(tM,{id:"theme-toggle",checked:e,onCheckedChange:e=>{t(e),e?(document.documentElement.classList.add("dark"),localStorage.setItem("pulse-theme","dark")):(document.documentElement.classList.remove("dark"),localStorage.setItem("pulse-theme","light"))},"aria-label":"Toggle theme"})]})]}),(0,a.jsx)("p",{className:"text-sm text-muted-foreground mt-4 text-center text-base font-medium text-foreground",children:"Your theme preference is saved in your browser."}),(0,a.jsxs)("div",{className:"flex items-center justify-between p-4 border rounded-lg bg-card/70 shadow-sm",children:[(0,a.jsx)("span",{children:"Learn more from Documentation Website: "}),(0,a.jsx)("a",{className:"text-l font-headline text-primary underline hover:text-primary-dark transition-colors",href:"https://arghajit47.github.io/playwright-pulse-dashboard/",target:"_blank",rel:"noopener noreferrer",children:"Pulse Dashboard"})]})]})})]})}tM.displayName=tR.displayName;let tS=(0,u.A)("SearchSlash",[["path",{d:"m13.5 8.5-5 5",key:"1cs55j"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]),tA=(0,u.A)("ListX",[["path",{d:"M11 12H3",key:"51ecnj"}],["path",{d:"M16 6H3",key:"1wxfjs"}],["path",{d:"M16 18H3",key:"12xzn7"}],["path",{d:"m19 10-4 4",key:"1tz659"}],["path",{d:"m15 10 4 4",key:"1n7nei"}]]),tD=[{name:"Timeout Errors",keywords:["timeout","exceeded"],description:"Tests that failed due to exceeding a specified time limit for an operation."},{name:"Locator/Selector Errors",keywords:["locator","selector","getByRole","getByText","getByLabel","getByPlaceholder","element not found","no element found"],description:"Failures related to finding or interacting with UI elements on the page."},{name:"Assertion Errors",keywords:["expect(","expected","assertion failed"],description:"Tests where a specific condition or value did not meet the expected criteria."},{name:"Strict Mode Violations",keywords:["strict mode violation"],description:"Failures caused by Playwright's strict mode, often when a locator resolves to multiple elements."},{name:"Navigation Errors",keywords:["navigation failed","page.goto","frame.goto"],description:"Errors that occurred during page navigation actions."}],tL="Other Errors";function tF(e){if(!e)return"Unknown Test";let t=e.split(" > ");return t[t.length-1]||e}function tU(){let{currentRun:e,loadingCurrent:t,errorCurrent:r}=(0,s.O)(),l=(0,n.useMemo)(()=>{if(!e?.results)return[];let t=e.results.filter(e=>"failed"===e.status||"timedOut"===e.status),r=new Map;t.forEach(e=>{let t=(e.errorMessage||"Unknown error").replace(/\u001b\[[0-9;]*[mGKH]/g,"").toLowerCase(),a=!1;for(let n of tD)if(n.keywords.some(e=>t.includes(e.toLowerCase()))){r.has(n.name)||r.set(n.name,{tests:[],exampleErrorMessages:[]}),r.get(n.name).tests.push(e),r.get(n.name).exampleErrorMessages.length<3&&r.get(n.name).exampleErrorMessages.push(e.errorMessage),a=!0;break}!a&&(r.has(tL)||r.set(tL,{tests:[],exampleErrorMessages:[]}),r.get(tL).tests.push(e),r.get(tL).exampleErrorMessages.length<3&&r.get(tL).exampleErrorMessages.push(e.errorMessage))});let a=[];return r.forEach((e,t)=>{a.push({categoryName:t,count:e.tests.length,tests:e.tests,exampleErrorMessages:e.exampleErrorMessages})}),a.sort((e,t)=>t.count-e.count),a},[e]);if(t)return(0,a.jsx)("div",{className:"space-y-6",children:[void 0,void 0,void 0].map((e,t)=>(0,a.jsxs)(o.Zp,{className:"shadow-lg",children:[(0,a.jsxs)(o.aR,{children:[(0,a.jsx)(i.E,{className:"h-7 w-1/2 mb-2"}),(0,a.jsx)(i.E,{className:"h-4 w-3/4"})]}),(0,a.jsxs)(o.Wu,{children:[(0,a.jsx)(i.E,{className:"h-10 w-full"}),(0,a.jsx)(i.E,{className:"h-10 w-full mt-2"})]})]},t))});if(r)return(0,a.jsxs)(d.Fc,{variant:"destructive",className:"shadow-md",children:[(0,a.jsx)(c.A,{className:"h-4 w-4"}),(0,a.jsx)(d.XL,{children:"Error Fetching Data"}),(0,a.jsx)(d.TN,{children:r})]});if(!e||!e.results)return(0,a.jsxs)(d.Fc,{className:"shadow-md",children:[(0,a.jsx)(T.A,{className:"h-4 w-4"}),(0,a.jsx)(d.XL,{children:"No Data Available"}),(0,a.jsx)(d.TN,{children:"The current run report ('playwright-pulse-report.json') could not be loaded or is empty."})]});let u=e.results.filter(e=>"failed"===e.status||"timedOut"===e.status).length;return 0===u?(0,a.jsxs)(d.Fc,{variant:"default",className:"shadow-md border-green-500 bg-green-50 dark:bg-green-900/30",children:[(0,a.jsx)(h,{className:"h-5 w-5 text-green-600"}),(0,a.jsx)(d.XL,{className:"text-green-700 dark:text-green-400",children:"No Failures Found!"}),(0,a.jsx)(d.TN,{className:"text-green-600 dark:text-green-300",children:"Excellent! There are no failed or timed out tests in the current run report."})]}):0===l.length&&u>0?(0,a.jsxs)(d.Fc,{className:"shadow-md",children:[(0,a.jsx)(tS,{className:"h-4 w-4"}),(0,a.jsx)(d.XL,{children:"Failures Present, But Not Categorized"}),(0,a.jsxs)(d.TN,{children:["There are ",u,' failures in the current report, but they did not match any predefined categories. They might be listed under "Other Errors" if that category appears.']})]}):(0,a.jsxs)("div",{className:"space-y-6",children:[l.map(e=>{let t=tD.find(t=>t.name===e.categoryName),r=e.exampleErrorMessages[0],n=r?(0,W.cA)(r.substring(0,150)):"",l=r&&r.length>150;return(0,a.jsxs)(o.Zp,{className:"shadow-lg hover:shadow-xl transition-shadow duration-300",children:[(0,a.jsxs)(o.aR,{children:[(0,a.jsxs)(o.ZB,{className:"text-xl font-semibold text-primary flex items-center",children:[(0,a.jsx)(tA,{className:"h-6 w-6 mr-2"}),e.categoryName," ",(0,a.jsxs)(U.E,{variant:"secondary",className:"ml-3 text-sm",children:[e.count," tests"]})]}),t?.description&&(0,a.jsx)(o.BT,{className:"text-xs mt-1",children:t.description}),e.categoryName===tL&&r&&(0,a.jsxs)(o.BT,{className:"text-xs mt-1 italic",children:["Example error: ",(0,a.jsx)("span",{dangerouslySetInnerHTML:{__html:n}}),l?"...":""]})]}),(0,a.jsx)(o.Wu,{children:e.tests.length>0?(0,a.jsx)(F.nD,{type:"multiple",className:"w-full space-y-2",children:e.tests.map(e=>(0,a.jsxs)(F.As,{value:e.id,className:"border rounded-md bg-card hover:bg-muted/20 transition-colors px-1",children:[(0,a.jsx)(F.$m,{className:"p-3 text-left hover:no-underline text-sm",children:(0,a.jsxs)("div",{className:"flex justify-between items-center w-full",children:[(0,a.jsxs)("span",{className:"font-medium text-foreground flex-1 min-w-0",title:`${tF(e.name)} (Suite: ${e.suiteName})`,children:[tF(e.name),(0,a.jsxs)("span",{className:"text-muted-foreground text-xs ml-1",children:["(Suite: ",e.suiteName&&e.suiteName.length>30?`${e.suiteName.substring(0,27)}...`:e.suiteName||"N/A",")"]})]}),(0,a.jsx)(K,{className:"h-4 w-4 text-muted-foreground group-data-[state=open]:rotate-90 transition-transform"})]})}),(0,a.jsxs)(F.ub,{className:"p-3 pt-0",children:[(0,a.jsx)(z(),{href:`/test/${e.id}`,className:"text-xs text-primary hover:underline mb-2 block",children:"View full test details"}),(0,a.jsx)("h5",{className:"text-xs font-semibold text-muted-foreground mb-1",children:"Error Message:"}),(0,a.jsx)(e3.F,{className:"max-h-32 w-full",children:(0,a.jsx)("pre",{className:"text-xs whitespace-pre-wrap break-words font-code bg-muted/30 p-2 rounded-sm",children:(0,a.jsx)("span",{dangerouslySetInnerHTML:{__html:(0,W.cA)(e.errorMessage||"No error message captured.")}})})})]})]},e.id))}):(0,a.jsx)("p",{className:"text-sm text-muted-foreground",children:"No tests found in this category."})})]},e.categoryName)}),0===l.length&&(0,a.jsxs)(d.Fc,{className:"shadow-md",children:[(0,a.jsx)(tS,{className:"h-4 w-4"}),(0,a.jsx)(d.XL,{children:"No Failures Categorized"}),(0,a.jsx)(d.TN,{children:"Could not categorize any failures based on the current rules."})]})]})}let tI=(0,u.A)("PanelLeft",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]]);var tz="horizontal",tH=["horizontal","vertical"],tB=n.forwardRef((e,t)=>{var r;let{decorative:n,orientation:l=tz,...s}=e,o=(r=l,tH.includes(r))?l:tz;return(0,a.jsx)(et.sG.div,{"data-orientation":o,...n?{role:"none"}:{"aria-orientation":"vertical"===o?o:void 0,role:"separator"},...s,ref:t})});tB.displayName="Separator";let tK=n.forwardRef(({className:e,orientation:t="horizontal",decorative:r=!0,...n},l)=>(0,a.jsx)(tB,{ref:l,decorative:r,orientation:t,className:(0,W.cn)("shrink-0 bg-border","horizontal"===t?"h-[1px] w-full":"h-full w-[1px]",e),...n}));tK.displayName=tB.displayName;var t$="Dialog",[tW,tq]=(0,ed.A)(t$),[tV,tG]=tW(t$),tZ=e=>{let{__scopeDialog:t,children:r,open:l,defaultOpen:s,onOpenChange:o,modal:i=!0}=e,d=n.useRef(null),c=n.useRef(null),[u=!1,f]=(0,ey.i)({prop:l,defaultProp:s,onChange:o});return(0,a.jsx)(tV,{scope:t,triggerRef:d,contentRef:c,contentId:(0,eh.B)(),titleId:(0,eh.B)(),descriptionId:(0,eh.B)(),open:u,onOpenChange:f,onOpenToggle:n.useCallback(()=>f(e=>!e),[f]),modal:i,children:r})};tZ.displayName=t$;var tX="DialogTrigger";n.forwardRef((e,t)=>{let{__scopeDialog:r,...n}=e,l=tG(tX,r),s=(0,ei.s)(t,l.triggerRef);return(0,a.jsx)(et.sG.button,{type:"button","aria-haspopup":"dialog","aria-expanded":l.open,"aria-controls":l.contentId,"data-state":rl(l.open),...n,ref:s,onClick:(0,eo.m)(e.onClick,l.onOpenToggle)})}).displayName=tX;var tY="DialogPortal",[tQ,tJ]=tW(tY,{forceMount:void 0}),t0=e=>{let{__scopeDialog:t,forceMount:r,children:l,container:s}=e,o=tG(tY,t);return(0,a.jsx)(tQ,{scope:t,forceMount:r,children:n.Children.map(l,e=>(0,a.jsx)(ex.C,{present:r||o.open,children:(0,a.jsx)(em.Z,{asChild:!0,container:s,children:e})}))})};t0.displayName=tY;var t1="DialogOverlay",t2=n.forwardRef((e,t)=>{let r=tJ(t1,e.__scopeDialog),{forceMount:n=r.forceMount,...l}=e,s=tG(t1,e.__scopeDialog);return s.modal?(0,a.jsx)(ex.C,{present:n||s.open,children:(0,a.jsx)(t4,{...l,ref:t})}):null});t2.displayName=t1;var t4=n.forwardRef((e,t)=>{let{__scopeDialog:r,...n}=e,l=tG(t1,r);return(0,a.jsx)(ev.A,{as:eg.DX,allowPinchZoom:!0,shards:[l.contentRef],children:(0,a.jsx)(et.sG.div,{"data-state":rl(l.open),...n,ref:t,style:{pointerEvents:"auto",...n.style}})})}),t3="DialogContent",t5=n.forwardRef((e,t)=>{let r=tJ(t3,e.__scopeDialog),{forceMount:n=r.forceMount,...l}=e,s=tG(t3,e.__scopeDialog);return(0,a.jsx)(ex.C,{present:n||s.open,children:s.modal?(0,a.jsx)(t6,{...l,ref:t}):(0,a.jsx)(t7,{...l,ref:t})})});t5.displayName=t3;var t6=n.forwardRef((e,t)=>{let r=tG(t3,e.__scopeDialog),l=n.useRef(null),s=(0,ei.s)(t,r.contentRef,l);return n.useEffect(()=>{let e=l.current;if(e)return(0,eb.Eq)(e)},[]),(0,a.jsx)(t8,{...e,ref:s,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:(0,eo.m)(e.onCloseAutoFocus,e=>{e.preventDefault(),r.triggerRef.current?.focus()}),onPointerDownOutside:(0,eo.m)(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,r=0===t.button&&!0===t.ctrlKey;(2===t.button||r)&&e.preventDefault()}),onFocusOutside:(0,eo.m)(e.onFocusOutside,e=>e.preventDefault())})}),t7=n.forwardRef((e,t)=>{let r=tG(t3,e.__scopeDialog),l=n.useRef(!1),s=n.useRef(!1);return(0,a.jsx)(t8,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(l.current||r.triggerRef.current?.focus(),t.preventDefault()),l.current=!1,s.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(l.current=!0,"pointerdown"!==t.detail.originalEvent.type||(s.current=!0));let a=t.target;r.triggerRef.current?.contains(a)&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&s.current&&t.preventDefault()}})}),t8=n.forwardRef((e,t)=>{let{__scopeDialog:r,trapFocus:l,onOpenAutoFocus:s,onCloseAutoFocus:o,...i}=e,d=tG(t3,r),c=n.useRef(null),u=(0,ei.s)(t,c);return(0,eu.Oh)(),(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(ef.n,{asChild:!0,loop:!0,trapped:l,onMountAutoFocus:s,onUnmountAutoFocus:o,children:(0,a.jsx)(ec.qW,{role:"dialog",id:d.contentId,"aria-describedby":d.descriptionId,"aria-labelledby":d.titleId,"data-state":rl(d.open),...i,ref:u,onDismiss:()=>d.onOpenChange(!1)})}),(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(rd,{titleId:d.titleId}),(0,a.jsx)(rc,{contentRef:c,descriptionId:d.descriptionId})]})]})}),t9="DialogTitle",re=n.forwardRef((e,t)=>{let{__scopeDialog:r,...n}=e,l=tG(t9,r);return(0,a.jsx)(et.sG.h2,{id:l.titleId,...n,ref:t})});re.displayName=t9;var rt="DialogDescription",rr=n.forwardRef((e,t)=>{let{__scopeDialog:r,...n}=e,l=tG(rt,r);return(0,a.jsx)(et.sG.p,{id:l.descriptionId,...n,ref:t})});rr.displayName=rt;var ra="DialogClose",rn=n.forwardRef((e,t)=>{let{__scopeDialog:r,...n}=e,l=tG(ra,r);return(0,a.jsx)(et.sG.button,{type:"button",...n,ref:t,onClick:(0,eo.m)(e.onClick,()=>l.onOpenChange(!1))})});function rl(e){return e?"open":"closed"}rn.displayName=ra;var rs="DialogTitleWarning",[ro,ri]=(0,ed.q)(rs,{contentName:t3,titleName:t9,docsSlug:"dialog"}),rd=({titleId:e})=>{let t=ri(rs),r=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.

If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.

For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return n.useEffect(()=>{e&&!document.getElementById(e)&&console.error(r)},[r,e]),null},rc=({contentRef:e,descriptionId:t})=>{let r=ri("DialogDescriptionWarning"),a=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${r.contentName}}.`;return n.useEffect(()=>{let r=e.current?.getAttribute("aria-describedby");t&&r&&!document.getElementById(t)&&console.warn(a)},[a,e,t]),null},ru=r(78726);let rf=n.forwardRef(({className:e,...t},r)=>(0,a.jsx)(t2,{className:(0,W.cn)("fixed inset-0 z-50 bg-black/80  data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t,ref:r}));rf.displayName=t2.displayName;let rh=(0,ea.F)("fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:duration-500",{variants:{side:{top:"inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",bottom:"inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",left:"inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",right:"inset-y-0 right-0 h-full w-3/4  border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm"}},defaultVariants:{side:"right"}}),rp=n.forwardRef(({side:e="right",className:t,children:r,...n},l)=>(0,a.jsxs)(t0,{children:[(0,a.jsx)(rf,{}),(0,a.jsxs)(t5,{ref:l,className:(0,W.cn)(rh({side:e}),t),...n,children:[r,(0,a.jsxs)(rn,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary",children:[(0,a.jsx)(ru.A,{className:"h-4 w-4"}),(0,a.jsx)("span",{className:"sr-only",children:"Close"})]})]})]}));rp.displayName=t5.displayName,n.forwardRef(({className:e,...t},r)=>(0,a.jsx)(re,{ref:r,className:(0,W.cn)("text-lg font-semibold text-foreground",e),...t})).displayName=re.displayName,n.forwardRef(({className:e,...t},r)=>(0,a.jsx)(rr,{ref:r,className:(0,W.cn)("text-sm text-muted-foreground",e),...t})).displayName=rr.displayName;var rm=r(69024),[rx,rg]=(0,ed.A)("Tooltip",[ep.Bk]),ry=(0,ep.Bk)(),rb="TooltipProvider",rv="tooltip.open",[rj,rw]=rx(rb),rN=e=>{let{__scopeTooltip:t,delayDuration:r=700,skipDelayDuration:l=300,disableHoverableContent:s=!1,children:o}=e,[i,d]=n.useState(!0),c=n.useRef(!1),u=n.useRef(0);return n.useEffect(()=>{let e=u.current;return()=>window.clearTimeout(e)},[]),(0,a.jsx)(rj,{scope:t,isOpenDelayed:i,delayDuration:r,onOpen:n.useCallback(()=>{window.clearTimeout(u.current),d(!1)},[]),onClose:n.useCallback(()=>{window.clearTimeout(u.current),u.current=window.setTimeout(()=>d(!0),l)},[l]),isPointerInTransitRef:c,onPointerInTransitChange:n.useCallback(e=>{c.current=e},[]),disableHoverableContent:s,children:o})};rN.displayName=rb;var r_="Tooltip",[rk,rR]=rx(r_),rP=e=>{let{__scopeTooltip:t,children:r,open:l,defaultOpen:s=!1,onOpenChange:o,disableHoverableContent:i,delayDuration:d}=e,c=rw(r_,e.__scopeTooltip),u=ry(t),[f,h]=n.useState(null),p=(0,eh.B)(),m=n.useRef(0),x=i??c.disableHoverableContent,g=d??c.delayDuration,y=n.useRef(!1),[b=!1,v]=(0,ey.i)({prop:l,defaultProp:s,onChange:e=>{e?(c.onOpen(),document.dispatchEvent(new CustomEvent(rv))):c.onClose(),o?.(e)}}),j=n.useMemo(()=>b?y.current?"delayed-open":"instant-open":"closed",[b]),w=n.useCallback(()=>{window.clearTimeout(m.current),m.current=0,y.current=!1,v(!0)},[v]),N=n.useCallback(()=>{window.clearTimeout(m.current),m.current=0,v(!1)},[v]),_=n.useCallback(()=>{window.clearTimeout(m.current),m.current=window.setTimeout(()=>{y.current=!0,v(!0),m.current=0},g)},[g,v]);return n.useEffect(()=>()=>{m.current&&(window.clearTimeout(m.current),m.current=0)},[]),(0,a.jsx)(ep.bL,{...u,children:(0,a.jsx)(rk,{scope:t,contentId:p,open:b,stateAttribute:j,trigger:f,onTriggerChange:h,onTriggerEnter:n.useCallback(()=>{c.isOpenDelayed?_():w()},[c.isOpenDelayed,_,w]),onTriggerLeave:n.useCallback(()=>{x?N():(window.clearTimeout(m.current),m.current=0)},[N,x]),onOpen:w,onClose:N,disableHoverableContent:x,children:r})})};rP.displayName=r_;var rE="TooltipTrigger",rT=n.forwardRef((e,t)=>{let{__scopeTooltip:r,...l}=e,s=rR(rE,r),o=rw(rE,r),i=ry(r),d=n.useRef(null),c=(0,ei.s)(t,d,s.onTriggerChange),u=n.useRef(!1),f=n.useRef(!1),h=n.useCallback(()=>u.current=!1,[]);return n.useEffect(()=>()=>document.removeEventListener("pointerup",h),[h]),(0,a.jsx)(ep.Mz,{asChild:!0,...i,children:(0,a.jsx)(et.sG.button,{"aria-describedby":s.open?s.contentId:void 0,"data-state":s.stateAttribute,...l,ref:c,onPointerMove:(0,eo.m)(e.onPointerMove,e=>{"touch"===e.pointerType||f.current||o.isPointerInTransitRef.current||(s.onTriggerEnter(),f.current=!0)}),onPointerLeave:(0,eo.m)(e.onPointerLeave,()=>{s.onTriggerLeave(),f.current=!1}),onPointerDown:(0,eo.m)(e.onPointerDown,()=>{u.current=!0,document.addEventListener("pointerup",h,{once:!0})}),onFocus:(0,eo.m)(e.onFocus,()=>{u.current||s.onOpen()}),onBlur:(0,eo.m)(e.onBlur,s.onClose),onClick:(0,eo.m)(e.onClick,s.onClose)})})});rT.displayName=rE;var[rC,rM]=rx("TooltipPortal",{forceMount:void 0}),rO="TooltipContent",rS=n.forwardRef((e,t)=>{let r=rM(rO,e.__scopeTooltip),{forceMount:n=r.forceMount,side:l="top",...s}=e,o=rR(rO,e.__scopeTooltip);return(0,a.jsx)(ex.C,{present:n||o.open,children:o.disableHoverableContent?(0,a.jsx)(rF,{side:l,...s,ref:t}):(0,a.jsx)(rA,{side:l,...s,ref:t})})}),rA=n.forwardRef((e,t)=>{let r=rR(rO,e.__scopeTooltip),l=rw(rO,e.__scopeTooltip),s=n.useRef(null),o=(0,ei.s)(t,s),[i,d]=n.useState(null),{trigger:c,onClose:u}=r,f=s.current,{onPointerInTransitChange:h}=l,p=n.useCallback(()=>{d(null),h(!1)},[h]),m=n.useCallback((e,t)=>{let r=e.currentTarget,a={x:e.clientX,y:e.clientY},n=function(e,t){let r=Math.abs(t.top-e.y),a=Math.abs(t.bottom-e.y),n=Math.abs(t.right-e.x),l=Math.abs(t.left-e.x);switch(Math.min(r,a,n,l)){case l:return"left";case n:return"right";case r:return"top";case a:return"bottom";default:throw Error("unreachable")}}(a,r.getBoundingClientRect());d(function(e){let t=e.slice();return t.sort((e,t)=>e.x<t.x?-1:e.x>t.x?1:e.y<t.y?-1:+!!(e.y>t.y)),function(e){if(e.length<=1)return e.slice();let t=[];for(let r=0;r<e.length;r++){let a=e[r];for(;t.length>=2;){let e=t[t.length-1],r=t[t.length-2];if((e.x-r.x)*(a.y-r.y)>=(e.y-r.y)*(a.x-r.x))t.pop();else break}t.push(a)}t.pop();let r=[];for(let t=e.length-1;t>=0;t--){let a=e[t];for(;r.length>=2;){let e=r[r.length-1],t=r[r.length-2];if((e.x-t.x)*(a.y-t.y)>=(e.y-t.y)*(a.x-t.x))r.pop();else break}r.push(a)}return(r.pop(),1===t.length&&1===r.length&&t[0].x===r[0].x&&t[0].y===r[0].y)?t:t.concat(r)}(t)}([...function(e,t,r=5){let a=[];switch(t){case"top":a.push({x:e.x-r,y:e.y+r},{x:e.x+r,y:e.y+r});break;case"bottom":a.push({x:e.x-r,y:e.y-r},{x:e.x+r,y:e.y-r});break;case"left":a.push({x:e.x+r,y:e.y-r},{x:e.x+r,y:e.y+r});break;case"right":a.push({x:e.x-r,y:e.y-r},{x:e.x-r,y:e.y+r})}return a}(a,n),...function(e){let{top:t,right:r,bottom:a,left:n}=e;return[{x:n,y:t},{x:r,y:t},{x:r,y:a},{x:n,y:a}]}(t.getBoundingClientRect())])),h(!0)},[h]);return n.useEffect(()=>()=>p(),[p]),n.useEffect(()=>{if(c&&f){let e=e=>m(e,f),t=e=>m(e,c);return c.addEventListener("pointerleave",e),f.addEventListener("pointerleave",t),()=>{c.removeEventListener("pointerleave",e),f.removeEventListener("pointerleave",t)}}},[c,f,m,p]),n.useEffect(()=>{if(i){let e=e=>{let t=e.target,r={x:e.clientX,y:e.clientY},a=c?.contains(t)||f?.contains(t),n=!function(e,t){let{x:r,y:a}=e,n=!1;for(let e=0,l=t.length-1;e<t.length;l=e++){let s=t[e].x,o=t[e].y,i=t[l].x,d=t[l].y;o>a!=d>a&&r<(i-s)*(a-o)/(d-o)+s&&(n=!n)}return n}(r,i);a?p():n&&(p(),u())};return document.addEventListener("pointermove",e),()=>document.removeEventListener("pointermove",e)}},[c,f,i,u,p]),(0,a.jsx)(rF,{...e,ref:o})}),[rD,rL]=rx(r_,{isInside:!1}),rF=n.forwardRef((e,t)=>{let{__scopeTooltip:r,children:l,"aria-label":s,onEscapeKeyDown:o,onPointerDownOutside:i,...d}=e,c=rR(rO,r),u=ry(r),{onClose:f}=c;return n.useEffect(()=>(document.addEventListener(rv,f),()=>document.removeEventListener(rv,f)),[f]),n.useEffect(()=>{if(c.trigger){let e=e=>{let t=e.target;t?.contains(c.trigger)&&f()};return window.addEventListener("scroll",e,{capture:!0}),()=>window.removeEventListener("scroll",e,{capture:!0})}},[c.trigger,f]),(0,a.jsx)(ec.qW,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:o,onPointerDownOutside:i,onFocusOutside:e=>e.preventDefault(),onDismiss:f,children:(0,a.jsxs)(ep.UC,{"data-state":c.stateAttribute,...u,...d,ref:t,style:{...d.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[(0,a.jsx)(eg.xV,{children:l}),(0,a.jsx)(rD,{scope:r,isInside:!0,children:(0,a.jsx)(rm.b,{id:c.contentId,role:"tooltip",children:s||l})})]})})});rS.displayName=rO;var rU="TooltipArrow";n.forwardRef((e,t)=>{let{__scopeTooltip:r,...n}=e,l=ry(r);return rL(rU,r).isInside?null:(0,a.jsx)(ep.i3,{...l,...n,ref:t})}).displayName=rU;let rI=n.forwardRef(({className:e,sideOffset:t=4,...r},n)=>(0,a.jsx)(rS,{ref:n,sideOffset:t,className:(0,W.cn)("z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...r}));rI.displayName=rS.displayName;let rz=n.createContext(null);function rH(){let e=n.useContext(rz);if(!e)throw Error("useSidebar must be used within a SidebarProvider.");return e}let rB=n.forwardRef(({defaultOpen:e=!0,open:t,onOpenChange:r,className:l,style:s,children:o,...i},d)=>{let c=function(){let[e,t]=n.useState(void 0);return n.useEffect(()=>{let e=window.matchMedia("(max-width: 767px)"),r=()=>{t(window.innerWidth<768)};return e.addEventListener("change",r),t(window.innerWidth<768),()=>e.removeEventListener("change",r)},[]),!!e}(),[u,f]=n.useState(!1),[h,p]=n.useState(e),m=t??h,x=n.useCallback(e=>{let t="function"==typeof e?e(m):e;r?r(t):p(t),document.cookie=`sidebar_state=${t}; path=/; max-age=604800`},[r,m]),g=n.useCallback(()=>c?f(e=>!e):x(e=>!e),[c,x,f]);n.useEffect(()=>{let e=e=>{"b"===e.key&&(e.metaKey||e.ctrlKey)&&(e.preventDefault(),g())};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)},[g]);let y=m?"expanded":"collapsed",b=n.useMemo(()=>({state:y,open:m,setOpen:x,isMobile:c,openMobile:u,setOpenMobile:f,toggleSidebar:g}),[y,m,x,c,u,f,g]);return(0,a.jsx)(rz.Provider,{value:b,children:(0,a.jsx)(rN,{delayDuration:0,children:(0,a.jsx)("div",{style:{"--sidebar-width":"320px","--sidebar-width-icon":"3.5rem",...s},className:(0,W.cn)("group/sidebar-wrapper flex min-h-svh w-full",l),ref:d,...i,children:o})})})});rB.displayName="SidebarProvider";let rK=n.forwardRef(({side:e="left",collapsible:t="icon",className:r,children:n,...l},s)=>{let{isMobile:o,state:i,openMobile:d,setOpenMobile:c}=rH();return o?(0,a.jsxs)(tZ,{open:d,onOpenChange:c,children:[(0,a.jsx)(rf,{className:"bg-black/60 backdrop-blur-sm"}),(0,a.jsx)(rp,{"data-sidebar":"sidebar","data-mobile":"true",className:(0,W.cn)("w-[var(--sidebar-width)] p-0 text-[--color-text-primary] border-r-0","bg-[--glass-bg] backdrop-blur-[20px] saturate-180 border-r border-[--glass-border]"),style:{"--sidebar-width":"320px"},side:e,children:(0,a.jsx)("div",{className:"flex h-full w-full flex-col",children:n})})]}):(0,a.jsx)("aside",{ref:s,"data-sidebar":"sidebar","data-state":i,"data-collapsible":t,"data-side":e,className:(0,W.cn)("group hidden h-svh h-[100dvh] flex-shrink-0 flex-col md:flex sticky top-0","bg-[--glass-bg] backdrop-blur-[20px] saturate-180","border-[--glass-border]","left"===e?"border-r":"border-l","transition-all duration-300 ease-in-out","collapsed"===i?"w-[var(--sidebar-width-icon)]":"w-[var(--sidebar-width)]",r),...l,children:(0,a.jsx)("div",{className:"flex h-full w-full flex-col",children:n})})});rK.displayName="Sidebar";let r$=n.forwardRef(({className:e,onClick:t,...r},n)=>{let{toggleSidebar:l}=rH();return(0,a.jsxs)(es.$,{ref:n,"data-sidebar":"trigger",variant:"ghost",size:"icon",className:(0,W.cn)("h-7 w-7 md:hidden",e),onClick:e=>{t?.(e),l()},...r,children:[(0,a.jsx)(tI,{}),(0,a.jsx)("span",{className:"sr-only",children:"Toggle Sidebar"})]})});r$.displayName="SidebarTrigger";let rW=n.forwardRef(({className:e,...t},r)=>(0,a.jsx)("main",{ref:r,className:(0,W.cn)("relative flex min-h-svh flex-1 flex-col bg-background",e),...t}));rW.displayName="SidebarInset";let rq=n.forwardRef(({className:e,...t},r)=>(0,a.jsx)("div",{ref:r,"data-sidebar":"header",className:(0,W.cn)("flex flex-col gap-4 p-6",e),...t}));rq.displayName="SidebarHeader";let rV=n.forwardRef(({className:e,...t},r)=>(0,a.jsx)("div",{ref:r,"data-sidebar":"content",className:(0,W.cn)("flex min-h-0 flex-1 flex-col gap-2 overflow-auto p-6","group-data-[collapsible=icon][data-state=collapsed]:p-2 group-data-[collapsible=icon][data-state=collapsed]:overflow-hidden",e),...t}));rV.displayName="SidebarContent";let rG=n.forwardRef(({className:e,...t},r)=>(0,a.jsx)("ul",{ref:r,"data-sidebar":"menu",className:(0,W.cn)("flex w-full min-w-0 flex-col gap-1",e),...t}));rG.displayName="SidebarMenu";let rZ=n.forwardRef(({className:e,...t},r)=>(0,a.jsx)("li",{ref:r,"data-sidebar":"menu-item",className:(0,W.cn)("group/menu-item relative",e),...t}));rZ.displayName="SidebarMenuItem";let rX=(0,ea.F)("peer/menu-button relative flex w-full items-center gap-4 overflow-hidden rounded-xl p-4 text-left text-[0.95rem] font-medium outline-none transition-all duration-300 ease-in-out disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"text-[--color-text-secondary] hover:text-[--color-primary] hover:bg-[--color-hover] hover:translate-x-1 hover:shadow-md data-[active=true]:bg-primary/10 data-[active=true]:text-primary data-[active=true]:font-semibold data-[active=true]:shadow-lg"}},defaultVariants:{variant:"default"}}),rY=n.forwardRef(({asChild:e=!1,isActive:t=!1,variant:r="default",tooltip:n,className:l,children:s,...o},i)=>{let d=e?eg.DX:"button",{isMobile:c,state:u}=rH(),f=(0,a.jsxs)(d,{ref:i,"data-sidebar":"menu-button","data-active":t,className:(0,W.cn)(rX({variant:r}),"group-data-[collapsible=icon][data-state=collapsed]:size-12 group-data-[collapsible=icon][data-state=collapsed]:justify-center group-data-[collapsible=icon][data-state=collapsed]:p-0","group-data-[collapsible=icon][data-state=collapsed]:[&>span:last-child]:hidden",l),...o,children:[(0,a.jsx)("div",{className:(0,W.cn)("absolute top-0 left-[-100%] w-full h-full bg-gradient-to-r from-primary/10 to-transparent opacity-50 transition-all duration-400 ease-in-out","peer-hover/menu-button:left-0 peer-data-[active=true]/menu-button:left-0")}),s]});return n?("string"==typeof n&&(n={children:n}),(0,a.jsxs)(rP,{children:[(0,a.jsx)(rT,{asChild:!0,children:f}),(0,a.jsx)(rI,{side:"right",align:"center",className:(0,W.cn)("collapsed"!==u||c?"hidden":"block"),...n,children:n.children})]})):f});rY.displayName="SidebarMenuButton";let rQ=n.forwardRef(({className:e,...t},r)=>(0,a.jsx)("div",{ref:r,"data-sidebar":"footer",className:(0,W.cn)("flex flex-col gap-2 p-6 mt-auto",e),...t}));rQ.displayName="SidebarFooter";let rJ=n.forwardRef(({className:e,...t},r)=>(0,a.jsx)(tK,{ref:r,"data-sidebar":"separator",className:(0,W.cn)("mx-2 w-auto bg-[--color-border]","group-data-[state=collapsed]:mx-auto group-data-[state=collapsed]:my-2 group-data-[state=collapsed]:h-auto group-data-[state=collapsed]:w-8/12",e),...t}));rJ.displayName="SidebarSeparator",n.forwardRef(({className:e,...t},r)=>(0,a.jsx)("div",{ref:r,"data-sidebar":"group",className:(0,W.cn)("relative flex w-full min-w-0 flex-col",e),...t})).displayName="SidebarGroup",n.forwardRef(({className:e,...t},r)=>(0,a.jsx)(J,{ref:r,"data-sidebar":"input",className:(0,W.cn)("h-8 w-full bg-background shadow-none focus-visible:ring-2 focus-visible:ring-[--color-primary]",e),...t})).displayName="SidebarInput";let r0=(0,u.A)("LayoutDashboard",[["rect",{width:"7",height:"9",x:"3",y:"3",rx:"1",key:"10lvy0"}],["rect",{width:"7",height:"5",x:"14",y:"3",rx:"1",key:"16une8"}],["rect",{width:"7",height:"9",x:"14",y:"12",rx:"1",key:"1hutg5"}],["rect",{width:"7",height:"5",x:"3",y:"16",rx:"1",key:"ldoo1y"}]]),r1=(0,u.A)("Settings",[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]),r2=(0,u.A)("ShieldCheck",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);function r4(){let e;let{currentRun:t,historicalTrends:r,loadingCurrent:o,loadingHistorical:i,errorCurrent:d,errorHistorical:c}=(0,s.O)(),[u,f]=(0,n.useState)("dashboard"),[h,p]=(0,n.useState)(void 0),[m,x]=(0,n.useState)("#7737BF"),g=[{id:"dashboard",label:"Dashboard",icon:r0,description:"Real-time Playwright Test Execution Monitoring & Analysis Overview",labelColorVar:"--sidebar-tab-dashboard-color-hsl"},{id:"live-results",label:"Test Results",icon:Q,description:"Detailed view of the latest test run results with filters.",labelColorVar:"--sidebar-tab-results-color-hsl"},{id:"trend-analysis",label:"Trend Analysis",icon:tu,description:"Historical data visualization for test performance.",labelColorVar:"--sidebar-tab-trends-color-hsl"},{id:"flaky-tests",label:"Flaky Tests",icon:tx,description:"Analysis of historically flaky tests.",labelColorVar:"--sidebar-tab-flaky-color-hsl"},{id:"failure-categorization",label:"Failure Categorization",icon:tA,description:"Categorize and view common failure types.",labelColorVar:"--sidebar-tab-failures-color-hsl"},{id:"settings",label:"Settings",icon:r1,description:"Configure dashboard appearance and preferences.",labelColorVar:"--sidebar-tab-settings-color-hsl"}],y=g.find(e=>"settings"===e.id),b=g.filter(e=>"settings"!==e.id),v=g.find(e=>e.id===u);switch(u){case"dashboard":default:e=(0,a.jsx)(L,{currentRun:t,loading:o,error:d,onMetricClick:e=>{p(e),f("live-results")}});break;case"live-results":e=(0,a.jsx)(e8,{report:t,loading:o,error:d,initialFilter:h});break;case"trend-analysis":e=(0,a.jsx)(tp,{trends:r,loading:i,error:c});break;case"flaky-tests":e=(0,a.jsx)(tv,{});break;case"failure-categorization":e=(0,a.jsx)(tU,{});break;case"settings":e=(0,a.jsx)(tO,{})}return(0,a.jsxs)(rB,{defaultOpen:!0,children:[(0,a.jsxs)(rK,{collapsible:"icon",className:"border-r border-sidebar-border shadow-lg",children:[(0,a.jsxs)(rq,{className:"p-4 group-data-[collapsible=icon]:p-2 flex items-center justify-between group-data-[collapsible=icon]:justify-center border-b border-sidebar-border",children:[(0,a.jsxs)(z(),{href:"/",className:"flex items-center",onClick:()=>f("dashboard"),children:[(0,a.jsx)(l.default,{src:"https://i.postimg.cc/v817w4sg/logo.png",alt:"Pulse Dashboard Logo",width:120,height:30,style:{objectFit:"fill"},className:"transition-all duration-200","data-ai-hint":"pulse logo"}),(0,a.jsx)("span",{style:{marginLeft:"10px",color:"#489ef9",fontWeight:900},children:"PULSE DASHBOARD"})]}),(0,a.jsx)(r$,{className:"md:hidden"})]}),(0,a.jsx)(rV,{children:(0,a.jsx)(rG,{children:b.map(e=>(0,a.jsx)(rZ,{children:(0,a.jsxs)(rY,{onClick:()=>{f(e.id)},isActive:u===e.id,tooltip:{children:e.label,side:"right",align:"center"},children:[(0,a.jsx)(e.icon,{className:"h-5 w-5"}),(0,a.jsx)("span",{style:u===e.id?void 0:e.labelColorVar?{color:`hsl(var(${e.labelColorVar}))`}:void 0,children:e.label})]})},e.id))})}),(0,a.jsxs)(rQ,{className:"p-2 mt-auto border-t border-sidebar-border",children:[y&&(0,a.jsx)(rG,{className:"group-data-[collapsible=icon]:py-2",children:(0,a.jsx)(rZ,{children:(0,a.jsxs)(rY,{onClick:()=>{f(y.id)},isActive:u===y.id,tooltip:{children:y.label,side:"right",align:"center"},children:[(0,a.jsx)(y.icon,{className:"h-5 w-5"}),(0,a.jsx)("span",{className:"group-data-[collapsible=icon]:hidden",style:u===y.id?void 0:y.labelColorVar?{color:`hsl(var(${y.labelColorVar}))`}:void 0,children:y.label})]})})}),(0,a.jsxs)("div",{className:"pt-2 group-data-[collapsible=icon]:hidden",children:[(0,a.jsx)(rJ,{className:"my-1 group-data-[collapsible=icon]:hidden"}),(0,a.jsxs)("div",{className:"flex items-center justify-center gap-1.5 text-xs p-2",children:[(0,a.jsx)(r2,{className:"h-3.5 w-3.5 text-sidebar-foreground/70"}),(0,a.jsx)("span",{className:"font-medium text-sidebar-foreground",children:"Pulse"}),(0,a.jsx)("span",{className:"text-muted-foreground/80",children:"v1.1.0"})]})]})]})]}),(0,a.jsx)(rW,{children:(0,a.jsxs)("div",{className:"container mx-auto p-6 md:p-8 space-y-6 min-h-screen flex flex-col rounded-xl shadow-lg bg-background",children:[(0,a.jsxs)("header",{className:"mb-0",children:[(0,a.jsx)("h1",{className:"text-3xl font-bold font-headline text-primary tracking-tight",children:v?.label||"Pulse Dashboard"}),(0,a.jsx)("p",{className:"text-md text-muted-foreground mt-1",children:v?.description||"Real-time Playwright Test Execution Monitoring & Analysis Overview"}),(0,a.jsxs)("p",{className:"text-sm text-muted-foreground mt-2",children:["Latest Run Date:"," ",o?(0,a.jsx)("span",{className:"text-muted-foreground",children:"Loading..."}):t?.run?.timestamp?(0,a.jsx)("span",{className:"text-muted-foreground font-medium",children:new Date(t.run.timestamp).toLocaleString()}):d?(0,a.jsx)("span",{className:"text-destructive font-medium",children:"Error loading data"}):(0,a.jsx)("span",{className:"text-muted-foreground font-medium",children:"Not available"})]})]}),(0,a.jsx)("main",{className:"flex-grow mt-6",children:e}),(0,a.jsxs)("footer",{style:{padding:"0.5rem",boxShadow:"0 -2px 10px rgba(0, 0, 0, 0.05)",textAlign:"center",fontFamily:"'Segoe UI', system-ui, sans-serif",marginTop:"auto"},className:"text-foreground",children:[(0,a.jsxs)("div",{style:{display:"inline-flex",alignItems:"center",gap:"0.5rem",fontSize:"0.9rem",fontWeight:600,letterSpacing:"0.5px"},children:[(0,a.jsx)("span",{children:"Created by"}),(0,a.jsx)("a",{href:"https://github.com/Arghajit47",target:"_blank",rel:"noopener noreferrer",style:{color:m,fontWeight:700,fontStyle:"italic",textDecoration:"none",transition:"all 0.2s ease"},onMouseOver:()=>x("#BF5C37"),onMouseOut:()=>x("#7737BF"),children:"Arghajit Singha"})]}),(0,a.jsx)("div",{style:{marginTop:"0.5rem",fontSize:"0.75rem"},className:"text-muted-foreground",children:"Crafted with precision"})]})]})})]})}},70642:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{computeChangedPath:function(){return c},extractPathFromFlightRouterState:function(){return d},getSelectedParams:function(){return function e(t,r){for(let a of(void 0===r&&(r={}),Object.values(t[1]))){let t=a[0],l=Array.isArray(t),s=l?t[1]:t;!(!s||s.startsWith(n.PAGE_SEGMENT_KEY))&&(l&&("c"===t[2]||"oc"===t[2])?r[t[0]]=t[1].split("/"):l&&(r[t[0]]=t[1]),r=e(a,r))}return r}}});let a=r(72859),n=r(83913),l=r(14077),s=e=>"/"===e[0]?e.slice(1):e,o=e=>"string"==typeof e?"children"===e?"":e:e[1];function i(e){return e.reduce((e,t)=>""===(t=s(t))||(0,n.isGroupSegment)(t)?e:e+"/"+t,"")||"/"}function d(e){var t;let r=Array.isArray(e[0])?e[0][1]:e[0];if(r===n.DEFAULT_SEGMENT_KEY||a.INTERCEPTION_ROUTE_MARKERS.some(e=>r.startsWith(e)))return;if(r.startsWith(n.PAGE_SEGMENT_KEY))return"";let l=[o(r)],s=null!=(t=e[1])?t:{},c=s.children?d(s.children):void 0;if(void 0!==c)l.push(c);else for(let[e,t]of Object.entries(s)){if("children"===e)continue;let r=d(t);void 0!==r&&l.push(r)}return i(l)}function c(e,t){let r=function e(t,r){let[n,s]=t,[i,c]=r,u=o(n),f=o(i);if(a.INTERCEPTION_ROUTE_MARKERS.some(e=>u.startsWith(e)||f.startsWith(e)))return"";if(!(0,l.matchSegment)(n,i)){var h;return null!=(h=d(r))?h:""}for(let t in s)if(c[t]){let r=e(s[t],c[t]);if(null!==r)return o(i)+"/"+r}return null}(e,t);return null==r||"/"===r?r:i(r.split("/"))}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},73406:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{mountLinkInstance:function(){return d},onLinkVisibilityChanged:function(){return u},onNavigationIntent:function(){return f},pingVisibleLinks:function(){return p},unmountLinkInstance:function(){return c}}),r(38202);let a=r(89752),n=r(59154),l=r(50593),s="function"==typeof WeakMap?new WeakMap:new Map,o=new Set,i="function"==typeof IntersectionObserver?new IntersectionObserver(function(e){for(let t of e){let e=t.intersectionRatio>0;u(t.target,e)}},{rootMargin:"200px"}):null;function d(e,t,r,n){let l=null;try{if(l=(0,a.createPrefetchURL)(t),null===l)return}catch(e){("function"==typeof reportError?reportError:console.error)("Cannot prefetch '"+t+"' because it cannot be converted to a URL.");return}let o={prefetchHref:l.href,router:r,kind:n,isVisible:!1,wasHoveredOrTouched:!1,prefetchTask:null,cacheVersion:-1};void 0!==s.get(e)&&c(e),s.set(e,o),null!==i&&i.observe(e)}function c(e){let t=s.get(e);if(void 0!==t){s.delete(e),o.delete(t);let r=t.prefetchTask;null!==r&&(0,l.cancelPrefetchTask)(r)}null!==i&&i.unobserve(e)}function u(e,t){let r=s.get(e);void 0!==r&&(r.isVisible=t,t?o.add(r):o.delete(r),h(r))}function f(e){let t=s.get(e);void 0!==t&&void 0!==t&&(t.wasHoveredOrTouched=!0,h(t))}function h(e){let t=e.prefetchTask;if(!e.isVisible){null!==t&&(0,l.cancelPrefetchTask)(t);return}}function p(e,t){let r=(0,l.getCurrentCacheVersion)();for(let a of o){let s=a.prefetchTask;if(null!==s&&a.cacheVersion===r&&s.key.nextUrl===e&&s.treeAtTimeOfPrefetch===t)continue;null!==s&&(0,l.cancelPrefetchTask)(s);let o=(0,l.createCacheKey)(a.prefetchHref,e),i=a.wasHoveredOrTouched?l.PrefetchPriority.Intent:l.PrefetchPriority.Default;a.prefetchTask=(0,l.schedulePrefetchTask)(o,t,a.kind===n.PrefetchKind.FULL,i),a.cacheVersion=(0,l.getCurrentCacheVersion)()}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},75076:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{prefetchQueue:function(){return l},prefetchReducer:function(){return s}});let a=r(5144),n=r(5334),l=new a.PromiseQueue(5),s=function(e,t){(0,n.prunePrefetchCache)(e.prefetchCache);let{url:r}=t;return(0,n.getOrCreatePrefetchCacheEntry)({url:r,nextUrl:e.nextUrl,prefetchCache:e.prefetchCache,kind:t.kind,tree:e.tree,allowAliasing:!0}),e};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},76715:(e,t)=>{"use strict";function r(e){let t={};for(let[r,a]of e.entries()){let e=t[r];void 0===e?t[r]=a:Array.isArray(e)?e.push(a):t[r]=[e,a]}return t}function a(e){return"string"==typeof e?e:("number"!=typeof e||isNaN(e))&&"boolean"!=typeof e?"":String(e)}function n(e){let t=new URLSearchParams;for(let[r,n]of Object.entries(e))if(Array.isArray(n))for(let e of n)t.append(r,a(e));else t.set(r,a(n));return t}function l(e){for(var t=arguments.length,r=Array(t>1?t-1:0),a=1;a<t;a++)r[a-1]=arguments[a];for(let t of r){for(let r of t.keys())e.delete(r);for(let[r,a]of t.entries())e.append(r,a)}return e}Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{assign:function(){return l},searchParamsToUrlQuery:function(){return r},urlQueryToSearchParams:function(){return n}})},77022:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"AppRouterAnnouncer",{enumerable:!0,get:function(){return s}});let a=r(43210),n=r(51215),l="next-route-announcer";function s(e){let{tree:t}=e,[r,s]=(0,a.useState)(null);(0,a.useEffect)(()=>(s(function(){var e;let t=document.getElementsByName(l)[0];if(null==t?void 0:null==(e=t.shadowRoot)?void 0:e.childNodes[0])return t.shadowRoot.childNodes[0];{let e=document.createElement(l);e.style.cssText="position:absolute";let t=document.createElement("div");return t.ariaLive="assertive",t.id="__next-route-announcer__",t.role="alert",t.style.cssText="position:absolute;border:0;height:1px;margin:-1px;padding:0;width:1px;clip:rect(0 0 0 0);overflow:hidden;white-space:nowrap;word-wrap:normal",e.attachShadow({mode:"open"}).appendChild(t),document.body.appendChild(e),t}}()),()=>{let e=document.getElementsByTagName(l)[0];(null==e?void 0:e.isConnected)&&document.body.removeChild(e)}),[]);let[o,i]=(0,a.useState)(""),d=(0,a.useRef)(void 0);return(0,a.useEffect)(()=>{let e="";if(document.title)e=document.title;else{let t=document.querySelector("h1");t&&(e=t.innerText||t.textContent||"")}void 0!==d.current&&d.current!==e&&i(e),d.current=e},[t]),r?(0,n.createPortal)(o,r):null}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},78866:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"refreshReducer",{enumerable:!0,get:function(){return p}});let a=r(59008),n=r(57391),l=r(86770),s=r(2030),o=r(25232),i=r(59435),d=r(41500),c=r(89752),u=r(96493),f=r(68214),h=r(22308);function p(e,t){let{origin:r}=t,p={},m=e.canonicalUrl,x=e.tree;p.preserveCustomHistoryState=!1;let g=(0,c.createEmptyCacheNode)(),y=(0,f.hasInterceptionRouteInCurrentTree)(e.tree);return g.lazyData=(0,a.fetchServerResponse)(new URL(m,r),{flightRouterState:[x[0],x[1],x[2],"refetch"],nextUrl:y?e.nextUrl:null}),g.lazyData.then(async r=>{let{flightData:a,canonicalUrl:c}=r;if("string"==typeof a)return(0,o.handleExternalUrl)(e,p,a,e.pushRef.pendingPush);for(let r of(g.lazyData=null,a)){let{tree:a,seedData:i,head:f,isRootRender:b}=r;if(!b)return console.log("REFRESH FAILED"),e;let v=(0,l.applyRouterStatePatchToTree)([""],x,a,e.canonicalUrl);if(null===v)return(0,u.handleSegmentMismatch)(e,t,a);if((0,s.isNavigatingToNewRootLayout)(x,v))return(0,o.handleExternalUrl)(e,p,m,e.pushRef.pendingPush);let j=c?(0,n.createHrefFromUrl)(c):void 0;if(c&&(p.canonicalUrl=j),null!==i){let e=i[1],t=i[3];g.rsc=e,g.prefetchRsc=null,g.loading=t,(0,d.fillLazyItemsTillLeafWithHead)(g,void 0,a,i,f,void 0),p.prefetchCache=new Map}await (0,h.refreshInactiveParallelSegments)({state:e,updatedTree:v,updatedCache:g,includeNextUrl:y,canonicalUrl:p.canonicalUrl||e.canonicalUrl}),p.cache=g,p.patchedTree=v,x=v}return(0,i.handleMutable)(e,p)},()=>e)}r(50593),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},79289:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{DecodeError:function(){return p},MiddlewareNotFoundError:function(){return y},MissingStaticPage:function(){return g},NormalizeError:function(){return m},PageNotFoundError:function(){return x},SP:function(){return f},ST:function(){return h},WEB_VITALS:function(){return r},execOnce:function(){return a},getDisplayName:function(){return i},getLocationOrigin:function(){return s},getURL:function(){return o},isAbsoluteUrl:function(){return l},isResSent:function(){return d},loadGetInitialProps:function(){return u},normalizeRepeatedSlashes:function(){return c},stringifyError:function(){return b}});let r=["CLS","FCP","FID","INP","LCP","TTFB"];function a(e){let t,r=!1;return function(){for(var a=arguments.length,n=Array(a),l=0;l<a;l++)n[l]=arguments[l];return r||(r=!0,t=e(...n)),t}}let n=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,l=e=>n.test(e);function s(){let{protocol:e,hostname:t,port:r}=window.location;return e+"//"+t+(r?":"+r:"")}function o(){let{href:e}=window.location,t=s();return e.substring(t.length)}function i(e){return"string"==typeof e?e:e.displayName||e.name||"Unknown"}function d(e){return e.finished||e.headersSent}function c(e){let t=e.split("?");return t[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(t[1]?"?"+t.slice(1).join("?"):"")}async function u(e,t){let r=t.res||t.ctx&&t.ctx.res;if(!e.getInitialProps)return t.ctx&&t.Component?{pageProps:await u(t.Component,t.ctx)}:{};let a=await e.getInitialProps(t);if(r&&d(r))return a;if(!a)throw Object.defineProperty(Error('"'+i(e)+'.getInitialProps()" should resolve to an object. But found "'+a+'" instead.'),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0});return a}let f="undefined"!=typeof performance,h=f&&["mark","measure","getEntriesByName"].every(e=>"function"==typeof performance[e]);class p extends Error{}class m extends Error{}class x extends Error{constructor(e){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message="Cannot find module for page: "+e}}class g extends Error{constructor(e,t){super(),this.message="Failed to load static file for page: "+e+" "+t}}class y extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}function b(e){return JSON.stringify({message:e.message,stack:e.stack})}},79748:e=>{"use strict";e.exports=require("fs/promises")},84545:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{useReducer:function(){return o},useUnwrapState:function(){return s}});let a=r(40740)._(r(43210)),n=r(91992),l=r(61520);function s(e){return(0,n.isThenable)(e)?(0,a.use)(e):e}function o(e){let[t,r]=a.default.useState(e.state),n=(0,l.useSyncDevRenderIndicator)();return[t,(0,a.useCallback)(t=>{n(()=>{e.dispatch(t,r)})},[e,n])]}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},84949:(e,t)=>{"use strict";function r(e){return e.replace(/\/$/,"")||"/"}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"removeTrailingSlash",{enumerable:!0,get:function(){return r}})},85814:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return p}});let a=r(14985),n=r(60687),l=a._(r(43210)),s=r(30195),o=r(22142),i=r(59154),d=r(53038),c=r(79289),u=r(96127);r(50148);let f=r(73406);function h(e){return"string"==typeof e?e:(0,s.formatUrl)(e)}let p=l.default.forwardRef(function(e,t){let r,a;let{href:s,as:p,children:m,prefetch:x=null,passHref:g,replace:y,shallow:b,scroll:v,onClick:j,onMouseEnter:w,onTouchStart:N,legacyBehavior:_=!1,...k}=e;r=m,_&&("string"==typeof r||"number"==typeof r)&&(r=(0,n.jsx)("a",{children:r}));let R=l.default.useContext(o.AppRouterContext),P=!1!==x,E=null===x?i.PrefetchKind.AUTO:i.PrefetchKind.FULL,{href:T,as:C}=l.default.useMemo(()=>{let e=h(s);return{href:e,as:p?h(p):e}},[s,p]);_&&(a=l.default.Children.only(r));let M=_?a&&"object"==typeof a&&a.ref:t,O=l.default.useCallback(e=>(P&&null!==R&&(0,f.mountLinkInstance)(e,T,R,E),()=>{(0,f.unmountLinkInstance)(e)}),[P,T,R,E]),S={ref:(0,d.useMergedRef)(O,M),onClick(e){_||"function"!=typeof j||j(e),_&&a.props&&"function"==typeof a.props.onClick&&a.props.onClick(e),R&&!e.defaultPrevented&&!function(e,t,r,a,n,s,o){let{nodeName:i}=e.currentTarget;!("A"===i.toUpperCase()&&function(e){let t=e.currentTarget.getAttribute("target");return t&&"_self"!==t||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||e.nativeEvent&&2===e.nativeEvent.which}(e))&&(e.preventDefault(),l.default.startTransition(()=>{let e=null==o||o;"beforePopState"in t?t[n?"replace":"push"](r,a,{shallow:s,scroll:e}):t[n?"replace":"push"](a||r,{scroll:e})}))}(e,R,T,C,y,b,v)},onMouseEnter(e){_||"function"!=typeof w||w(e),_&&a.props&&"function"==typeof a.props.onMouseEnter&&a.props.onMouseEnter(e),R&&P&&(0,f.onNavigationIntent)(e.currentTarget)},onTouchStart:function(e){_||"function"!=typeof N||N(e),_&&a.props&&"function"==typeof a.props.onTouchStart&&a.props.onTouchStart(e),R&&P&&(0,f.onNavigationIntent)(e.currentTarget)}};return(0,c.isAbsoluteUrl)(C)?S.href=C:_&&!g&&("a"!==a.type||"href"in a.props)||(S.href=(0,u.addBasePath)(C)),_?l.default.cloneElement(a,S):(0,n.jsx)("a",{...k,...S,children:r})});("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},86770:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"applyRouterStatePatchToTree",{enumerable:!0,get:function(){return function e(t,r,a,i){let d;let[c,u,f,h,p]=r;if(1===t.length){let e=o(r,a);return(0,s.addRefreshMarkerToActiveParallelSegments)(e,i),e}let[m,x]=t;if(!(0,l.matchSegment)(m,c))return null;if(2===t.length)d=o(u[x],a);else if(null===(d=e((0,n.getNextFlightSegmentPath)(t),u[x],a,i)))return null;let g=[t[0],{...u,[x]:d},f,h];return p&&(g[4]=!0),(0,s.addRefreshMarkerToActiveParallelSegments)(g,i),g}}});let a=r(83913),n=r(74007),l=r(14077),s=r(22308);function o(e,t){let[r,n]=e,[s,i]=t;if(s===a.DEFAULT_SEGMENT_KEY&&r!==a.DEFAULT_SEGMENT_KEY)return e;if((0,l.matchSegment)(r,s)){let t={};for(let e in n)void 0!==i[e]?t[e]=o(n[e],i[e]):t[e]=n[e];for(let e in i)!t[e]&&(t[e]=i[e]);let a=[r,t];return e[2]&&(a[2]=e[2]),e[3]&&(a[3]=e[3]),e[4]&&(a[4]=e[4]),a}return t}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},87801:(e,t,r)=>{Promise.resolve().then(r.bind(r,69012))},89752:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{createEmptyCacheNode:function(){return C},createPrefetchURL:function(){return E},default:function(){return A}});let a=r(40740),n=r(60687),l=a._(r(43210)),s=r(22142),o=r(59154),i=r(57391),d=r(10449),c=r(84545),u=a._(r(35656)),f=r(35416),h=r(96127),p=r(77022),m=r(67086),x=r(44397),g=r(89330),y=r(25942),b=r(26736),v=r(70642),j=r(12776),w=r(11264);r(50593);let N=r(36875),_=r(97860),k=r(75076);r(73406);let R={};function P(e){return e.origin!==window.location.origin}function E(e){let t;if((0,f.isBot)(window.navigator.userAgent))return null;try{t=new URL((0,h.addBasePath)(e),window.location.href)}catch(t){throw Object.defineProperty(Error("Cannot prefetch '"+e+"' because it cannot be converted to a URL."),"__NEXT_ERROR_CODE",{value:"E234",enumerable:!1,configurable:!0})}return P(t)?null:t}function T(e){let{appRouterState:t}=e;return(0,l.useInsertionEffect)(()=>{let{tree:e,pushRef:r,canonicalUrl:a}=t,n={...r.preserveCustomHistoryState?window.history.state:{},__NA:!0,__PRIVATE_NEXTJS_INTERNALS_TREE:e};r.pendingPush&&(0,i.createHrefFromUrl)(new URL(window.location.href))!==a?(r.pendingPush=!1,window.history.pushState(n,"",a)):window.history.replaceState(n,"",a)},[t]),(0,l.useEffect)(()=>{},[t.nextUrl,t.tree]),null}function C(){return{lazyData:null,rsc:null,prefetchRsc:null,head:null,prefetchHead:null,parallelRoutes:new Map,loading:null}}function M(e){null==e&&(e={});let t=window.history.state,r=null==t?void 0:t.__NA;r&&(e.__NA=r);let a=null==t?void 0:t.__PRIVATE_NEXTJS_INTERNALS_TREE;return a&&(e.__PRIVATE_NEXTJS_INTERNALS_TREE=a),e}function O(e){let{headCacheNode:t}=e,r=null!==t?t.head:null,a=null!==t?t.prefetchHead:null,n=null!==a?a:r;return(0,l.useDeferredValue)(r,n)}function S(e){let t,{actionQueue:r,assetPrefix:a,globalError:i}=e,[f,j]=(0,c.useReducer)(r),{canonicalUrl:C}=(0,c.useUnwrapState)(f),{searchParams:S,pathname:A}=(0,l.useMemo)(()=>{let e=new URL(C,"http://n");return{searchParams:e.searchParams,pathname:(0,b.hasBasePath)(e.pathname)?(0,y.removeBasePath)(e.pathname):e.pathname}},[C]),D=(0,l.useCallback)(e=>{let{previousTree:t,serverResponse:r}=e;(0,l.startTransition)(()=>{j({type:o.ACTION_SERVER_PATCH,previousTree:t,serverResponse:r})})},[j]),L=(0,l.useCallback)((e,t,r)=>{let a=new URL((0,h.addBasePath)(e),location.href);return j({type:o.ACTION_NAVIGATE,url:a,isExternalUrl:P(a),locationSearch:location.search,shouldScroll:null==r||r,navigateType:t,allowAliasing:!0})},[j]);(0,w.useServerActionDispatcher)(j);let U=(0,l.useMemo)(()=>({back:()=>window.history.back(),forward:()=>window.history.forward(),prefetch:(e,t)=>{let a=E(e);if(null!==a){var n;(0,k.prefetchReducer)(r.state,{type:o.ACTION_PREFETCH,url:a,kind:null!=(n=null==t?void 0:t.kind)?n:o.PrefetchKind.FULL})}},replace:(e,t)=>{void 0===t&&(t={}),(0,l.startTransition)(()=>{var r;L(e,"replace",null==(r=t.scroll)||r)})},push:(e,t)=>{void 0===t&&(t={}),(0,l.startTransition)(()=>{var r;L(e,"push",null==(r=t.scroll)||r)})},refresh:()=>{(0,l.startTransition)(()=>{j({type:o.ACTION_REFRESH,origin:window.location.origin})})},hmrRefresh:()=>{throw Object.defineProperty(Error("hmrRefresh can only be used in development mode. Please use refresh instead."),"__NEXT_ERROR_CODE",{value:"E485",enumerable:!1,configurable:!0})}}),[r,j,L]);(0,l.useEffect)(()=>{window.next&&(window.next.router=U)},[U]),(0,l.useEffect)(()=>{function e(e){var t;e.persisted&&(null==(t=window.history.state)?void 0:t.__PRIVATE_NEXTJS_INTERNALS_TREE)&&(R.pendingMpaPath=void 0,j({type:o.ACTION_RESTORE,url:new URL(window.location.href),tree:window.history.state.__PRIVATE_NEXTJS_INTERNALS_TREE}))}return window.addEventListener("pageshow",e),()=>{window.removeEventListener("pageshow",e)}},[j]),(0,l.useEffect)(()=>{function e(e){let t="reason"in e?e.reason:e.error;if((0,_.isRedirectError)(t)){e.preventDefault();let r=(0,N.getURLFromRedirectError)(t);(0,N.getRedirectTypeFromError)(t)===_.RedirectType.push?U.push(r,{}):U.replace(r,{})}}return window.addEventListener("error",e),window.addEventListener("unhandledrejection",e),()=>{window.removeEventListener("error",e),window.removeEventListener("unhandledrejection",e)}},[U]);let{pushRef:I}=(0,c.useUnwrapState)(f);if(I.mpaNavigation){if(R.pendingMpaPath!==C){let e=window.location;I.pendingPush?e.assign(C):e.replace(C),R.pendingMpaPath=C}(0,l.use)(g.unresolvedThenable)}(0,l.useEffect)(()=>{let e=window.history.pushState.bind(window.history),t=window.history.replaceState.bind(window.history),r=e=>{var t;let r=window.location.href,a=null==(t=window.history.state)?void 0:t.__PRIVATE_NEXTJS_INTERNALS_TREE;(0,l.startTransition)(()=>{j({type:o.ACTION_RESTORE,url:new URL(null!=e?e:r,r),tree:a})})};window.history.pushState=function(t,a,n){return(null==t?void 0:t.__NA)||(null==t?void 0:t._N)||(t=M(t),n&&r(n)),e(t,a,n)},window.history.replaceState=function(e,a,n){return(null==e?void 0:e.__NA)||(null==e?void 0:e._N)||(e=M(e),n&&r(n)),t(e,a,n)};let a=e=>{if(e.state){if(!e.state.__NA){window.location.reload();return}(0,l.startTransition)(()=>{j({type:o.ACTION_RESTORE,url:new URL(window.location.href),tree:e.state.__PRIVATE_NEXTJS_INTERNALS_TREE})})}};return window.addEventListener("popstate",a),()=>{window.history.pushState=e,window.history.replaceState=t,window.removeEventListener("popstate",a)}},[j]);let{cache:z,tree:H,nextUrl:B,focusAndScrollRef:K}=(0,c.useUnwrapState)(f),$=(0,l.useMemo)(()=>(0,x.findHeadInCache)(z,H[1]),[z,H]),W=(0,l.useMemo)(()=>(0,v.getSelectedParams)(H),[H]),q=(0,l.useMemo)(()=>({parentTree:H,parentCacheNode:z,parentSegmentPath:null,url:C}),[H,z,C]),V=(0,l.useMemo)(()=>({changeByServerResponse:D,tree:H,focusAndScrollRef:K,nextUrl:B}),[D,H,K,B]);if(null!==$){let[e,r]=$;t=(0,n.jsx)(O,{headCacheNode:e},r)}else t=null;let G=(0,n.jsxs)(m.RedirectBoundary,{children:[t,z.rsc,(0,n.jsx)(p.AppRouterAnnouncer,{tree:H})]});return G=(0,n.jsx)(u.ErrorBoundary,{errorComponent:i[0],errorStyles:i[1],children:G}),(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(T,{appRouterState:(0,c.useUnwrapState)(f)}),(0,n.jsx)(F,{}),(0,n.jsx)(d.PathParamsContext.Provider,{value:W,children:(0,n.jsx)(d.PathnameContext.Provider,{value:A,children:(0,n.jsx)(d.SearchParamsContext.Provider,{value:S,children:(0,n.jsx)(s.GlobalLayoutRouterContext.Provider,{value:V,children:(0,n.jsx)(s.AppRouterContext.Provider,{value:U,children:(0,n.jsx)(s.LayoutRouterContext.Provider,{value:q,children:G})})})})})})]})}function A(e){let{actionQueue:t,globalErrorComponentAndStyles:[r,a],assetPrefix:l}=e;return(0,j.useNavFailureHandler)(),(0,n.jsx)(u.ErrorBoundary,{errorComponent:u.default,children:(0,n.jsx)(S,{actionQueue:t,assetPrefix:l,globalError:[r,a]})})}let D=new Set,L=new Set;function F(){let[,e]=l.default.useState(0),t=D.size;return(0,l.useEffect)(()=>{let r=()=>e(e=>e+1);return L.add(r),t!==D.size&&r(),()=>{L.delete(r)}},[t,e]),[...D].map((e,t)=>(0,n.jsx)("link",{rel:"stylesheet",href:""+e,precedence:"next"},t))}globalThis._N_E_STYLE_LOAD=function(e){let t=D.size;return D.add(e),D.size!==t&&L.forEach(e=>e()),Promise.resolve()},("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},91992:(e,t)=>{"use strict";function r(e){return null!==e&&"object"==typeof e&&"then"in e&&"function"==typeof e.then}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isThenable",{enumerable:!0,get:function(){return r}})},95796:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"HTML_LIMITED_BOT_UA_RE",{enumerable:!0,get:function(){return r}});let r=/Mediapartners-Google|Slurp|DuckDuckBot|baiduspider|yandex|sogou|bitlybot|tumblr|vkShare|quora link preview|redditbot|ia_archiver|Bingbot|BingPreview|applebot|facebookexternalhit|facebookcatalog|Twitterbot|LinkedInBot|Slackbot|Discordbot|WhatsApp|SkypeUriPreview/i},96127:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addBasePath",{enumerable:!0,get:function(){return l}});let a=r(98834),n=r(54674);function l(e,t){return(0,n.normalizePathTrailingSlash)((0,a.addPathPrefix)(e,""))}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},96493:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"handleSegmentMismatch",{enumerable:!0,get:function(){return n}});let a=r(25232);function n(e,t,r){return(0,a.handleExternalUrl)(e,{},e.canonicalUrl,!0)}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},97464:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"clearCacheNodeDataForSegmentPath",{enumerable:!0,get:function(){return function e(t,r,l){let s=l.length<=2,[o,i]=l,d=(0,n.createRouterCacheKey)(i),c=r.parallelRoutes.get(o),u=t.parallelRoutes.get(o);u&&u!==c||(u=new Map(c),t.parallelRoutes.set(o,u));let f=null==c?void 0:c.get(d),h=u.get(d);if(s){h&&h.lazyData&&h!==f||u.set(d,{lazyData:null,rsc:null,prefetchRsc:null,head:null,prefetchHead:null,parallelRoutes:new Map,loading:null});return}if(!h||!f){h||u.set(d,{lazyData:null,rsc:null,prefetchRsc:null,head:null,prefetchHead:null,parallelRoutes:new Map,loading:null});return}return h===f&&(h={lazyData:h.lazyData,rsc:h.rsc,prefetchRsc:h.prefetchRsc,head:h.head,prefetchHead:h.prefetchHead,parallelRoutes:new Map(h.parallelRoutes),loading:h.loading},u.set(d,h)),e(h,f,(0,a.getNextFlightSegmentPath)(l))}}});let a=r(74007),n=r(33123);("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},97936:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"hmrRefreshReducer",{enumerable:!0,get:function(){return a}}),r(59008),r(57391),r(86770),r(2030),r(25232),r(59435),r(56928),r(89752),r(96493),r(68214);let a=function(e,t){return e};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},98834:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addPathPrefix",{enumerable:!0,get:function(){return n}});let a=r(19169);function n(e,t){if(!e.startsWith("/")||!t)return e;let{pathname:r,query:n,hash:l}=(0,a.parsePath)(e);return""+t+r+n+l}}};var t=require("../webpack-runtime.js");t.C(e);var r=e=>t(t.s=e),a=t.X(0,[447,724,765,126,201,967],()=>r(66130));module.exports=a})();