@hot-updater/console 1.0.0-rc.10 → 1.0.0-rc.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (46) hide show
  1. package/.output/nitro.json +1 -1
  2. package/.output/public/assets/{index-CxpJzE_i.js → index-B-OW42AL.js} +1 -1
  3. package/.output/public/assets/installations-DanSQ9hO.js +1 -0
  4. package/.output/public/assets/{installations-DnrgOdjn.js → installations-uW4VNxdk.js} +2 -2
  5. package/.output/server/{__23tanstack-start-server-fn-resolver-DDABhh9f.mjs → __23tanstack-start-server-fn-resolver-CP6us7_F.mjs} +35 -35
  6. package/.output/server/_libs/@tanstack/react-router+[...].mjs +31 -1
  7. package/.output/server/_ssr/{HashValueDisplay-CNyIhgfT.mjs → HashValueDisplay-CwtU1HJY.mjs} +2 -2
  8. package/.output/server/_ssr/{InsightsPageHeader-Dp3LCaut.mjs → InsightsPageHeader-BuTtRlOg.mjs} +4 -4
  9. package/.output/server/_ssr/{api-t38lU_R4.mjs → api-Bl_-f3hz.mjs} +2 -2
  10. package/.output/server/_ssr/{api-keys-D0sY865c.mjs → api-keys-DAu2DYcE.mjs} +7 -7
  11. package/.output/server/_ssr/{api-keys-api-BBQDjcJQ.mjs → api-keys-api-DLnKaTKC.mjs} +3 -3
  12. package/.output/server/_ssr/{api-keys-rpc-DIIxk2Tl.mjs → api-keys-rpc-DD2Rvrce.mjs} +3 -3
  13. package/.output/server/_ssr/{api-rpc-BxBnKmWl.mjs → api-rpc-BXmj7atp.mjs} +21 -21
  14. package/.output/server/_ssr/{auth-rpc-CzpN-PAx.mjs → auth-rpc-CEnaZHZ-.mjs} +2 -2
  15. package/.output/server/_ssr/{bundle-signing-rpc-iELMdd_9.mjs → bundle-signing-rpc-DsDmm15I.mjs} +2 -2
  16. package/.output/server/_ssr/{card-MXBIE2ub.mjs → card-DQz87Ig0.mjs} +1 -1
  17. package/.output/server/_ssr/{config.server-BaZOoAvo.mjs → config.server-BoU2QkRO.mjs} +2 -2
  18. package/.output/server/_ssr/{createSsrRpc-D6Cvyuao.mjs → createSsrRpc-CsD3w1Kc.mjs} +2 -2
  19. package/.output/server/_ssr/{dialog-C8PKdqzP.mjs → dialog-xEO-0lgr.mjs} +1 -1
  20. package/.output/server/_ssr/{field-DJLaHtqE.mjs → field-6-MNpPOD.mjs} +2 -2
  21. package/.output/server/_ssr/{input-group-CpzkvDzk.mjs → input-group-CKJP7EdE.mjs} +1 -1
  22. package/.output/server/_ssr/{insights-CKsYLZjd.mjs → insights-CrWri_WW.mjs} +3 -3
  23. package/.output/server/_ssr/{insights-dusvTJIS.mjs → insights-DnbrZ2kA.mjs} +12 -12
  24. package/.output/server/_ssr/{insights-recovery-rpc-DmhNc8oV.mjs → insights-recovery-rpc-Me6vsJkh.mjs} +3 -3
  25. package/.output/server/_ssr/{insights-rpc-RAvOGJCo.mjs → insights-rpc-CN2s40X8.mjs} +2 -2
  26. package/.output/server/_ssr/{insights-usage-rpc-D-Wlepxc.mjs → insights-usage-rpc-DCkNSce7.mjs} +2 -2
  27. package/.output/server/_ssr/{insights-usage-rpc-BIfpgQs7.mjs → insights-usage-rpc-Dr7sIaEO.mjs} +2 -2
  28. package/.output/server/_ssr/{insights_.distribution-DJUt6y8m.mjs → insights_.distribution-3IGskx-o.mjs} +3 -3
  29. package/.output/server/_ssr/{insights_.distribution-Dr1ejjGs.mjs → insights_.distribution-D4VcyHDC.mjs} +9 -9
  30. package/.output/server/_ssr/{installations-DTWJCxaK.mjs → installations-CzHXm6iD.mjs} +3 -3
  31. package/.output/server/_ssr/{installations-Cc0roWvR.mjs → installations-DSduVZhd.mjs} +39 -38
  32. package/.output/server/_ssr/{router-xxcksRNO.mjs → router-LJQwGx8_.mjs} +11 -11
  33. package/.output/server/_ssr/{routes-Bgr6OKrf.mjs → routes-B_7THQQR.mjs} +12 -12
  34. package/.output/server/_ssr/{routes-C0ddIJvE.mjs → routes-CHVrwFYJ.mjs} +3 -3
  35. package/.output/server/_ssr/{select-BJe4U42x.mjs → select-J0Klh4aE.mjs} +1 -1
  36. package/.output/server/_ssr/{server-BzRSMfki.mjs → server-CPBXBCfp.mjs} +4 -4
  37. package/.output/server/_ssr/{signing-CqGFb1dE.mjs → signing-DEmhuOCU.mjs} +3 -3
  38. package/.output/server/_ssr/ssr.mjs +1 -1
  39. package/.output/server/_ssr/{table-SuvYfkKs.mjs → table-CyoJmVoh.mjs} +1 -1
  40. package/.output/server/{_tanstack-start-manifest_v-DppNScGz.mjs → _tanstack-start-manifest_v-CTBsPSJr.mjs} +5 -5
  41. package/.output/server/index.mjs +106 -106
  42. package/package.json +1 -1
  43. package/src/components/features/insights/EventHistoryCard.tsx +5 -0
  44. package/src/routes/-installations-search.ts +12 -0
  45. package/src/routes/installations.tsx +67 -37
  46. package/.output/public/assets/installations-Bn5vpRN7.js +0 -1
@@ -1,5 +1,5 @@
1
1
  {
2
- "date": "2026-09-08T08:49:38.021Z",
2
+ "date": "2026-09-08T13:41:03.026Z",
3
3
  "preset": "node-server",
4
4
  "framework": {
5
5
  "name": "nitro",
@@ -1,5 +1,5 @@
1
1
  const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/signing-B89So28X.js","assets/createServerFn-3eh2iYmC.js","assets/shield-check-7kzoZNd5.js","assets/info-CqaZEAm3.js","assets/refresh-cw-DcqrNjan.js","assets/card-6aoLhJF_.js","assets/api-keys-BgtcYhLe.js","assets/dialog-BUg5G6nI.js","assets/useOpenInteractionType-Cnav4dRH.js","assets/field-Cj65X7Cp.js","assets/api-keys-api-70Cr1Dg1.js","assets/useMutation-Cc4x2klV.js","assets/loader-circle-v05mmo6I.js","assets/dist-pm9AGSU8.js","assets/table-Pfo8zTqD.js"])))=>i.map(i=>d[i]);
2
- import{Ar as e,Br as t,Cr as n,Er as r,Gr as i,Hr as a,In as o,Ln as s,Mr as c,Nr as l,Pr as u,Rr as d,Sr as f,Tr as p,Ur as m,Vr as h,_r as g,a as _,ar as v,br as y,c as b,d as x,f as S,fr as ee,gr as te,h as ne,i as re,jr as ie,kr as ae,l as oe,n as se,o as ce,or as le,p as ue,pr as de,r as C,s as w,t as fe,u as pe,ur as me,vr as he,wr as T,xr as E,y as ge,yr as _e,zr as ve}from"./createServerFn-3eh2iYmC.js";import{F as ye,H as be,L as xe,N as Se,a as D,c as Ce,d as we,f as Te,i as Ee,j as De,l as Oe,n as ke,o as Ae,p as je,r as Me,s as Ne,t as Pe,u as Fe,x as Ie}from"./lazyRouteComponent-NRjNopmx.js";import{a as Le,n as Re,o as ze,s as Be,t as Ve}from"./installations-DnrgOdjn.js";import{n as He}from"./useMutation-Cc4x2klV.js";import{t as Ue}from"./chart-no-axes-combined-DWVqQVWt.js";import{n as We,t as Ge}from"./shield-check-7kzoZNd5.js";import{t as Ke}from"./info-CqaZEAm3.js";import{n as qe,o as Je,t as Ye}from"./api-keys-api-70Cr1Dg1.js";import{t as Xe}from"./loader-circle-v05mmo6I.js";import{r as Ze,t as Qe}from"./routes-CWiXnn8g.js";import{n as $e,t as et}from"./dist-pm9AGSU8.js";import{t as tt}from"./preload-helper-DqboRNgS.js";import{t as nt}from"./insights-DhR4KTLp.js";import{t as rt}from"./insights_.distribution-Db-BBoaj.js";var it=m((e=>{function t(e,t){var n=e.length;e.push(t);a:for(;0<n;){var r=n-1>>>1,a=e[r];if(0<i(a,t))e[r]=t,e[n]=a,n=r;else break a}}function n(e){return e.length===0?null:e[0]}function r(e){if(e.length===0)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;a:for(var r=0,a=e.length,o=a>>>1;r<o;){var s=2*(r+1)-1,c=e[s],l=s+1,u=e[l];if(0>i(c,n))l<a&&0>i(u,c)?(e[r]=u,e[l]=n,r=l):(e[r]=c,e[s]=n,r=s);else if(l<a&&0>i(u,n))e[r]=u,e[l]=n,r=l;else break a}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return n===0?e.id-t.id:n}if(e.unstable_now=void 0,typeof performance==`object`&&typeof performance.now==`function`){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var c=[],l=[],u=1,d=null,f=3,p=!1,m=!1,h=!1,g=!1,_=typeof setTimeout==`function`?setTimeout:null,v=typeof clearTimeout==`function`?clearTimeout:null,y=typeof setImmediate<`u`?setImmediate:null;function b(e){for(var i=n(l);i!==null;){if(i.callback===null)r(l);else if(i.startTime<=e)r(l),i.sortIndex=i.expirationTime,t(c,i);else break;i=n(l)}}function x(e){if(h=!1,b(e),!m)if(n(c)!==null)m=!0,S||(S=!0,ae());else{var t=n(l);t!==null&&ce(x,t.startTime-e)}}var S=!1,ee=-1,te=5,ne=-1;function re(){return g?!0:!(e.unstable_now()-ne<te)}function ie(){if(g=!1,S){var t=e.unstable_now();ne=t;var i=!0;try{a:{m=!1,h&&(h=!1,v(ee),ee=-1),p=!0;var a=f;try{b:{for(b(t),d=n(c);d!==null&&!(d.expirationTime>t&&re());){var o=d.callback;if(typeof o==`function`){d.callback=null,f=d.priorityLevel;var s=o(d.expirationTime<=t);if(t=e.unstable_now(),typeof s==`function`){d.callback=s,b(t),i=!0;break b}d===n(c)&&r(c),b(t)}else r(c);d=n(c)}if(d!==null)i=!0;else{var u=n(l);u!==null&&ce(x,u.startTime-t),i=!1}}break a}finally{d=null,f=a,p=!1}i=void 0}}finally{i?ae():S=!1}}}var ae;if(typeof y==`function`)ae=function(){y(ie)};else if(typeof MessageChannel<`u`){var oe=new MessageChannel,se=oe.port2;oe.port1.onmessage=ie,ae=function(){se.postMessage(null)}}else ae=function(){_(ie,0)};function ce(t,n){ee=_(function(){t(e.unstable_now())},n)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_forceFrameRate=function(e){0>e||125<e?console.error(`forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported`):te=0<e?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_next=function(e){switch(f){case 1:case 2:case 3:var t=3;break;default:t=f}var n=f;f=t;try{return e()}finally{f=n}},e.unstable_requestPaint=function(){g=!0},e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=f;f=e;try{return t()}finally{f=n}},e.unstable_scheduleCallback=function(r,i,a){var o=e.unstable_now();switch(typeof a==`object`&&a?(a=a.delay,a=typeof a==`number`&&0<a?o+a:o):a=o,r){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return s=a+s,r={id:u++,callback:i,priorityLevel:r,startTime:a,expirationTime:s,sortIndex:-1},a>o?(r.sortIndex=a,t(l,r),n(c)===null&&r===n(l)&&(h?(v(ee),ee=-1):h=!0,ce(x,a-o))):(r.sortIndex=s,t(c,r),m||p||(m=!0,S||(S=!0,ae()))),r},e.unstable_shouldYield=re,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}})),at=m(((e,t)=>{t.exports=it()})),ot=m((e=>{var t=at(),n=a(),r=h();function i(e){var t=`https://react.dev/errors/`+e;if(1<arguments.length){t+=`?args[]=`+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n])}return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}function o(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function s(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function c(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function l(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function u(e){if(s(e)!==e)throw Error(i(188))}function d(e){var t=e.alternate;if(!t){if(t=s(e),t===null)throw Error(i(188));return t===e?e:null}for(var n=e,r=t;;){var a=n.return;if(a===null)break;var o=a.alternate;if(o===null){if(r=a.return,r!==null){n=r;continue}break}if(a.child===o.child){for(o=a.child;o;){if(o===n)return u(a),e;if(o===r)return u(a),t;o=o.sibling}throw Error(i(188))}if(n.return!==r.return)n=a,r=o;else{for(var c=!1,l=a.child;l;){if(l===n){c=!0,n=a,r=o;break}if(l===r){c=!0,r=a,n=o;break}l=l.sibling}if(!c){for(l=o.child;l;){if(l===n){c=!0,n=o,r=a;break}if(l===r){c=!0,r=o,n=a;break}l=l.sibling}if(!c)throw Error(i(189))}}if(n.alternate!==r)throw Error(i(190))}if(n.tag!==3)throw Error(i(188));return n.stateNode.current===n?e:t}function f(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=f(e),t!==null)return t;e=e.sibling}return null}var p=Object.assign,m=Symbol.for(`react.element`),g=Symbol.for(`react.transitional.element`),_=Symbol.for(`react.portal`),v=Symbol.for(`react.fragment`),y=Symbol.for(`react.strict_mode`),b=Symbol.for(`react.profiler`),x=Symbol.for(`react.consumer`),S=Symbol.for(`react.context`),ee=Symbol.for(`react.forward_ref`),te=Symbol.for(`react.suspense`),ne=Symbol.for(`react.suspense_list`),re=Symbol.for(`react.memo`),ie=Symbol.for(`react.lazy`),ae=Symbol.for(`react.activity`),oe=Symbol.for(`react.memo_cache_sentinel`),se=Symbol.iterator;function ce(e){return typeof e!=`object`||!e?null:(e=se&&e[se]||e[`@@iterator`],typeof e==`function`?e:null)}var le=Symbol.for(`react.client.reference`);function ue(e){if(e==null)return null;if(typeof e==`function`)return e.$$typeof===le?null:e.displayName||e.name||null;if(typeof e==`string`)return e;switch(e){case v:return`Fragment`;case b:return`Profiler`;case y:return`StrictMode`;case te:return`Suspense`;case ne:return`SuspenseList`;case ae:return`Activity`}if(typeof e==`object`)switch(e.$$typeof){case _:return`Portal`;case S:return e.displayName||`Context`;case x:return(e._context.displayName||`Context`)+`.Consumer`;case ee:var t=e.render;return e=e.displayName,e||=(e=t.displayName||t.name||``,e===``?`ForwardRef`:`ForwardRef(`+e+`)`),e;case re:return t=e.displayName||null,t===null?ue(e.type)||`Memo`:t;case ie:t=e._payload,e=e._init;try{return ue(e(t))}catch{}}return null}var de=Array.isArray,C=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,w=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,fe={pending:!1,data:null,method:null,action:null},pe=[],me=-1;function he(e){return{current:e}}function T(e){0>me||(e.current=pe[me],pe[me]=null,me--)}function E(e,t){me++,pe[me]=e.current,e.current=t}var ge=he(null),_e=he(null),ve=he(null),ye=he(null);function be(e,t){switch(E(ve,t),E(_e,e),E(ge,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Vd(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Vd(t),e=Hd(t,e);else switch(e){case`svg`:e=1;break;case`math`:e=2;break;default:e=0}}T(ge),E(ge,e)}function xe(){T(ge),T(_e),T(ve)}function Se(e){e.memoizedState!==null&&E(ye,e);var t=ge.current,n=Hd(t,e.type);t!==n&&(E(_e,e),E(ge,n))}function D(e){_e.current===e&&(T(ge),T(_e)),ye.current===e&&(T(ye),Qf._currentValue=fe)}var Ce,we;function Te(e){if(Ce===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);Ce=t&&t[1]||``,we=-1<e.stack.indexOf(`
2
+ import{Ar as e,Br as t,Cr as n,Er as r,Gr as i,Hr as a,In as o,Ln as s,Mr as c,Nr as l,Pr as u,Rr as d,Sr as f,Tr as p,Ur as m,Vr as h,_r as g,a as _,ar as v,br as y,c as b,d as x,f as S,fr as ee,gr as te,h as ne,i as re,jr as ie,kr as ae,l as oe,n as se,o as ce,or as le,p as ue,pr as de,r as C,s as w,t as fe,u as pe,ur as me,vr as he,wr as T,xr as E,y as ge,yr as _e,zr as ve}from"./createServerFn-3eh2iYmC.js";import{F as ye,H as be,L as xe,N as Se,a as D,c as Ce,d as we,f as Te,i as Ee,j as De,l as Oe,n as ke,o as Ae,p as je,r as Me,s as Ne,t as Pe,u as Fe,x as Ie}from"./lazyRouteComponent-NRjNopmx.js";import{a as Le,n as Re,o as ze,s as Be,t as Ve}from"./installations-uW4VNxdk.js";import{n as He}from"./useMutation-Cc4x2klV.js";import{t as Ue}from"./chart-no-axes-combined-DWVqQVWt.js";import{n as We,t as Ge}from"./shield-check-7kzoZNd5.js";import{t as Ke}from"./info-CqaZEAm3.js";import{n as qe,o as Je,t as Ye}from"./api-keys-api-70Cr1Dg1.js";import{t as Xe}from"./loader-circle-v05mmo6I.js";import{r as Ze,t as Qe}from"./routes-CWiXnn8g.js";import{n as $e,t as et}from"./dist-pm9AGSU8.js";import{t as tt}from"./preload-helper-DqboRNgS.js";import{t as nt}from"./insights-DhR4KTLp.js";import{t as rt}from"./insights_.distribution-Db-BBoaj.js";var it=m((e=>{function t(e,t){var n=e.length;e.push(t);a:for(;0<n;){var r=n-1>>>1,a=e[r];if(0<i(a,t))e[r]=t,e[n]=a,n=r;else break a}}function n(e){return e.length===0?null:e[0]}function r(e){if(e.length===0)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;a:for(var r=0,a=e.length,o=a>>>1;r<o;){var s=2*(r+1)-1,c=e[s],l=s+1,u=e[l];if(0>i(c,n))l<a&&0>i(u,c)?(e[r]=u,e[l]=n,r=l):(e[r]=c,e[s]=n,r=s);else if(l<a&&0>i(u,n))e[r]=u,e[l]=n,r=l;else break a}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return n===0?e.id-t.id:n}if(e.unstable_now=void 0,typeof performance==`object`&&typeof performance.now==`function`){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var c=[],l=[],u=1,d=null,f=3,p=!1,m=!1,h=!1,g=!1,_=typeof setTimeout==`function`?setTimeout:null,v=typeof clearTimeout==`function`?clearTimeout:null,y=typeof setImmediate<`u`?setImmediate:null;function b(e){for(var i=n(l);i!==null;){if(i.callback===null)r(l);else if(i.startTime<=e)r(l),i.sortIndex=i.expirationTime,t(c,i);else break;i=n(l)}}function x(e){if(h=!1,b(e),!m)if(n(c)!==null)m=!0,S||(S=!0,ae());else{var t=n(l);t!==null&&ce(x,t.startTime-e)}}var S=!1,ee=-1,te=5,ne=-1;function re(){return g?!0:!(e.unstable_now()-ne<te)}function ie(){if(g=!1,S){var t=e.unstable_now();ne=t;var i=!0;try{a:{m=!1,h&&(h=!1,v(ee),ee=-1),p=!0;var a=f;try{b:{for(b(t),d=n(c);d!==null&&!(d.expirationTime>t&&re());){var o=d.callback;if(typeof o==`function`){d.callback=null,f=d.priorityLevel;var s=o(d.expirationTime<=t);if(t=e.unstable_now(),typeof s==`function`){d.callback=s,b(t),i=!0;break b}d===n(c)&&r(c),b(t)}else r(c);d=n(c)}if(d!==null)i=!0;else{var u=n(l);u!==null&&ce(x,u.startTime-t),i=!1}}break a}finally{d=null,f=a,p=!1}i=void 0}}finally{i?ae():S=!1}}}var ae;if(typeof y==`function`)ae=function(){y(ie)};else if(typeof MessageChannel<`u`){var oe=new MessageChannel,se=oe.port2;oe.port1.onmessage=ie,ae=function(){se.postMessage(null)}}else ae=function(){_(ie,0)};function ce(t,n){ee=_(function(){t(e.unstable_now())},n)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_forceFrameRate=function(e){0>e||125<e?console.error(`forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported`):te=0<e?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_next=function(e){switch(f){case 1:case 2:case 3:var t=3;break;default:t=f}var n=f;f=t;try{return e()}finally{f=n}},e.unstable_requestPaint=function(){g=!0},e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=f;f=e;try{return t()}finally{f=n}},e.unstable_scheduleCallback=function(r,i,a){var o=e.unstable_now();switch(typeof a==`object`&&a?(a=a.delay,a=typeof a==`number`&&0<a?o+a:o):a=o,r){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return s=a+s,r={id:u++,callback:i,priorityLevel:r,startTime:a,expirationTime:s,sortIndex:-1},a>o?(r.sortIndex=a,t(l,r),n(c)===null&&r===n(l)&&(h?(v(ee),ee=-1):h=!0,ce(x,a-o))):(r.sortIndex=s,t(c,r),m||p||(m=!0,S||(S=!0,ae()))),r},e.unstable_shouldYield=re,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}})),at=m(((e,t)=>{t.exports=it()})),ot=m((e=>{var t=at(),n=a(),r=h();function i(e){var t=`https://react.dev/errors/`+e;if(1<arguments.length){t+=`?args[]=`+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n])}return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}function o(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function s(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function c(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function l(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function u(e){if(s(e)!==e)throw Error(i(188))}function d(e){var t=e.alternate;if(!t){if(t=s(e),t===null)throw Error(i(188));return t===e?e:null}for(var n=e,r=t;;){var a=n.return;if(a===null)break;var o=a.alternate;if(o===null){if(r=a.return,r!==null){n=r;continue}break}if(a.child===o.child){for(o=a.child;o;){if(o===n)return u(a),e;if(o===r)return u(a),t;o=o.sibling}throw Error(i(188))}if(n.return!==r.return)n=a,r=o;else{for(var c=!1,l=a.child;l;){if(l===n){c=!0,n=a,r=o;break}if(l===r){c=!0,r=a,n=o;break}l=l.sibling}if(!c){for(l=o.child;l;){if(l===n){c=!0,n=o,r=a;break}if(l===r){c=!0,r=o,n=a;break}l=l.sibling}if(!c)throw Error(i(189))}}if(n.alternate!==r)throw Error(i(190))}if(n.tag!==3)throw Error(i(188));return n.stateNode.current===n?e:t}function f(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=f(e),t!==null)return t;e=e.sibling}return null}var p=Object.assign,m=Symbol.for(`react.element`),g=Symbol.for(`react.transitional.element`),_=Symbol.for(`react.portal`),v=Symbol.for(`react.fragment`),y=Symbol.for(`react.strict_mode`),b=Symbol.for(`react.profiler`),x=Symbol.for(`react.consumer`),S=Symbol.for(`react.context`),ee=Symbol.for(`react.forward_ref`),te=Symbol.for(`react.suspense`),ne=Symbol.for(`react.suspense_list`),re=Symbol.for(`react.memo`),ie=Symbol.for(`react.lazy`),ae=Symbol.for(`react.activity`),oe=Symbol.for(`react.memo_cache_sentinel`),se=Symbol.iterator;function ce(e){return typeof e!=`object`||!e?null:(e=se&&e[se]||e[`@@iterator`],typeof e==`function`?e:null)}var le=Symbol.for(`react.client.reference`);function ue(e){if(e==null)return null;if(typeof e==`function`)return e.$$typeof===le?null:e.displayName||e.name||null;if(typeof e==`string`)return e;switch(e){case v:return`Fragment`;case b:return`Profiler`;case y:return`StrictMode`;case te:return`Suspense`;case ne:return`SuspenseList`;case ae:return`Activity`}if(typeof e==`object`)switch(e.$$typeof){case _:return`Portal`;case S:return e.displayName||`Context`;case x:return(e._context.displayName||`Context`)+`.Consumer`;case ee:var t=e.render;return e=e.displayName,e||=(e=t.displayName||t.name||``,e===``?`ForwardRef`:`ForwardRef(`+e+`)`),e;case re:return t=e.displayName||null,t===null?ue(e.type)||`Memo`:t;case ie:t=e._payload,e=e._init;try{return ue(e(t))}catch{}}return null}var de=Array.isArray,C=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,w=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,fe={pending:!1,data:null,method:null,action:null},pe=[],me=-1;function he(e){return{current:e}}function T(e){0>me||(e.current=pe[me],pe[me]=null,me--)}function E(e,t){me++,pe[me]=e.current,e.current=t}var ge=he(null),_e=he(null),ve=he(null),ye=he(null);function be(e,t){switch(E(ve,t),E(_e,e),E(ge,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Vd(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Vd(t),e=Hd(t,e);else switch(e){case`svg`:e=1;break;case`math`:e=2;break;default:e=0}}T(ge),E(ge,e)}function xe(){T(ge),T(_e),T(ve)}function Se(e){e.memoizedState!==null&&E(ye,e);var t=ge.current,n=Hd(t,e.type);t!==n&&(E(_e,e),E(ge,n))}function D(e){_e.current===e&&(T(ge),T(_e)),ye.current===e&&(T(ye),Qf._currentValue=fe)}var Ce,we;function Te(e){if(Ce===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);Ce=t&&t[1]||``,we=-1<e.stack.indexOf(`
3
3
  at`)?` (<anonymous>)`:-1<e.stack.indexOf(`@`)?`@unknown:0:0`:``}return`
4
4
  `+Ce+e+we}var Ee=!1;function De(e,t){if(!e||Ee)return``;Ee=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var r={DetermineComponentFrameRoot:function(){try{if(t){var n=function(){throw Error()};if(Object.defineProperty(n.prototype,`props`,{set:function(){throw Error()}}),typeof Reflect==`object`&&Reflect.construct){try{Reflect.construct(n,[])}catch(e){var r=e}Reflect.construct(e,[],n)}else{try{n.call()}catch(e){r=e}e.call(n.prototype)}}else{try{throw Error()}catch(e){r=e}(n=e())&&typeof n.catch==`function`&&n.catch(function(){})}}catch(e){if(e&&r&&typeof e.stack==`string`)return[e.stack,r.stack]}return[null,null]}};r.DetermineComponentFrameRoot.displayName=`DetermineComponentFrameRoot`;var i=Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot,`name`);i&&i.configurable&&Object.defineProperty(r.DetermineComponentFrameRoot,`name`,{value:`DetermineComponentFrameRoot`});var a=r.DetermineComponentFrameRoot(),o=a[0],s=a[1];if(o&&s){var c=o.split(`
5
5
  `),l=s.split(`
@@ -0,0 +1 @@
1
+ import{Gr as e,Hr as t,In as n,Ln as r,Mr as i,Pn as a,Rn as o,T as s,fr as c,ir as l,lr as u,or as d,t as f}from"./createServerFn-3eh2iYmC.js";import{H as p,a as m,i as h,s as g}from"./lazyRouteComponent-NRjNopmx.js";import{i as _,n as ee,r as v,t as y}from"./installations-uW4VNxdk.js";import{t as te}from"./arrow-left-DjiCzL2s.js";import{n as b,r as x,t as ne}from"./InsightsPageHeader-zdJr2bYd.js";import{a as S,s as C,t as w}from"./field-Cj65X7Cp.js";import{n as T}from"./list-CZDFgINX.js";import{t as E}from"./refresh-cw-DcqrNjan.js";import{n as D,r as O,t as k}from"./HashValueDisplay-9UC7oXzV.js";import{a as A,n as j,o as M,s as re,t as N}from"./card-6aoLhJF_.js";import{a as P,i as F,n as I,o as L,r as R,t as z}from"./table-Pfo8zTqD.js";import{i as ie,n as B,r as ae,t as oe}from"./input-group-vPeXHuX2.js";function se(){_(g(),!0)}function ce(e){return se(),v(g(),e)}var V=e(t(),1);function le(e){let t=g(),n=(0,V.useRef)(void 0);return m(t.stores.location,r=>{let i=e?.select?e.select(r):r;if(e?.structuralSharing??t.options.defaultStructuralSharing){let e=p(n.current,i);return n.current=e,e}return i})}var ue=d(`activity`,[[`path`,{d:`M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2`,key:`169zse`}]]),de=d(`search`,[[`path`,{d:`m21 21-4.34-4.34`,key:`14j7rj`}],[`circle`,{cx:`11`,cy:`11`,r:`8`,key:`4ej97u`}]]),H=c(),fe={UPDATE_APPLIED:{label:`Update applied`,description:`The app started using the downloaded update.`,variant:`success`,icon:C},RECOVERED:{label:`Rolled back`,description:`The app recovered to a previous working bundle.`,variant:`warning`,icon:O},UNCHANGED:{label:`No change`,description:`The app continues using the same bundle files.`,variant:`secondary`,icon:ue}};function U(){let[e,t]=(0,V.useState)(`UTC`);return(0,V.useEffect)(()=>{t(Intl.DateTimeFormat().resolvedOptions().timeZone)},[]),new Intl.DateTimeFormat(`en`,{timeZone:e,timeZoneName:`shortOffset`,year:`numeric`,month:`2-digit`,day:`2-digit`,hour:`2-digit`,minute:`2-digit`,second:`2-digit`,hourCycle:`h23`})}function pe(e,t){let n=Object.fromEntries(t.formatToParts(new Date(e)).map(({type:e,value:t})=>[e,t])),r=n.timeZoneName===`GMT`?`GMT+0`:n.timeZoneName;return`${n.year}/${n.month}/${n.day} ${n.hour}:${n.minute}:${n.second} ${r}`}function W({value:e,formatter:t,touch:n=!1}){let r=new Date(e),i=pe(e,t);return(0,H.jsxs)(`details`,{className:`group/time`,children:[(0,H.jsx)(`summary`,{className:`cursor-pointer list-none rounded-md outline-none focus-visible:ring-2 focus-visible:ring-ring/30 [&::-webkit-details-marker]:hidden ${n?`flex min-h-11 items-center`:``}`,children:(0,H.jsxs)(`span`,{className:`flex items-center gap-1`,children:[(0,H.jsx)(`time`,{dateTime:r.toISOString(),className:`whitespace-nowrap`,children:i}),(0,H.jsx)(T,{"aria-hidden":`true`,className:`size-3 text-muted-foreground group-open/time:rotate-180`})]})}),(0,H.jsx)(`p`,{className:`mt-2 text-muted-foreground`,children:r.toISOString().replace(`T`,` `).replace(`Z`,` UTC`)})]})}function G({type:e}){let t=fe[e],n=t.icon;return(0,H.jsxs)(`div`,{className:`flex min-w-0 flex-col items-start gap-2`,children:[(0,H.jsxs)(re,{variant:t.variant,className:`gap-1 whitespace-nowrap [&_svg]:size-3`,children:[(0,H.jsx)(n,{"aria-hidden":`true`}),t.label]}),(0,H.jsx)(`p`,{className:`max-w-56 whitespace-normal text-xs text-muted-foreground`,children:t.description})]})}function K({event:e,touch:t=!1}){let n=e.type===`UPDATE_APPLIED`||e.type===`RECOVERED`;return(0,H.jsxs)(`dl`,{className:`grid grid-cols-[auto_minmax(0,1fr)] items-center gap-x-2 gap-y-2`,children:[e.fromBundleId&&n?(0,H.jsxs)(H.Fragment,{children:[(0,H.jsx)(`dt`,{className:`text-muted-foreground`,children:`From`}),(0,H.jsx)(`dd`,{children:(0,H.jsx)(k,{value:e.fromBundleId,buttonClassName:t?`min-h-11 px-3`:void 0})})]}):null,(0,H.jsx)(`dt`,{className:`text-muted-foreground`,children:n?`To`:`Current`}),(0,H.jsx)(`dd`,{children:(0,H.jsx)(k,{value:e.toBundleId,buttonClassName:t?`min-h-11 px-3`:void 0})})]})}function q({events:e,formatter:t,renderIdentity:n}){return(0,H.jsxs)(H.Fragment,{children:[(0,H.jsx)(`p`,{className:`px-4 pb-2 text-xs text-muted-foreground sm:px-6`,children:`Time in your browser zone`}),(0,H.jsx)(`ol`,{"aria-label":`Events`,className:`divide-y border-y`,children:e.map(e=>(0,H.jsxs)(`li`,{className:`flex min-w-0 flex-col gap-3 px-4 py-4 sm:px-6`,children:[(0,H.jsxs)(`div`,{className:`flex flex-wrap items-center justify-between gap-x-4 gap-y-1`,children:[(0,H.jsx)(G,{type:e.type}),(0,H.jsx)(`div`,{className:`text-xs tabular-nums`,children:(0,H.jsx)(W,{value:e.receivedAtMs,formatter:t,touch:!0})})]}),n?.(e),(0,H.jsxs)(`dl`,{className:`flex flex-wrap gap-x-2 gap-y-1 text-sm`,children:[(0,H.jsxs)(`div`,{children:[(0,H.jsx)(`dt`,{className:`sr-only`,children:`App`}),(0,H.jsxs)(`dd`,{children:[e.platform===`ios`?`iOS`:`Android`,` `,e.appVersion]})]}),(0,H.jsxs)(`div`,{className:`min-w-0 text-muted-foreground`,children:[(0,H.jsx)(`dt`,{className:`sr-only`,children:`Channel`}),(0,H.jsx)(`dd`,{className:`wrap-anywhere`,children:e.channel})]})]}),(0,H.jsx)(`div`,{className:`text-xs`,"aria-label":`Bundle`,children:(0,H.jsx)(K,{event:e,touch:!0})})]},e.id))})]})}function J({hasPrevious:e,label:t,nextCursor:r,onNext:i,onPrevious:a,pageLength:o,pageNumber:s}){return(0,H.jsxs)(`nav`,{"aria-label":`${t} pagination`,className:`flex flex-wrap items-center justify-between gap-3 border-t px-4 py-3 sm:px-6`,children:[(0,H.jsxs)(`span`,{className:`text-xs text-muted-foreground tabular-nums`,children:[`Page `,s,` · `,o.toLocaleString(),` rows`]}),(0,H.jsxs)(`div`,{className:`flex gap-2`,children:[(0,H.jsx)(n,{className:`h-11 min-w-11 px-3 lg:h-8 lg:min-w-0 lg:px-2`,disabled:!e,onClick:a,size:`sm`,type:`button`,variant:`outline`,children:`Previous`}),(0,H.jsx)(n,{className:`h-11 min-w-11 px-3 lg:h-8 lg:min-w-0 lg:px-2`,disabled:r===null,onClick:i,size:`sm`,type:`button`,variant:`outline`,children:`Next`})]})]})}function me({event:e,eventsLocation:t,touch:n=!1}){return(0,H.jsxs)(`div`,{className:n?`flex min-w-0 flex-wrap items-center justify-between gap-2`:`flex min-w-0 flex-col items-start gap-2`,children:[(0,H.jsxs)(h,{className:r({className:n?`-ml-2 h-auto min-h-11 min-w-0 flex-1 justify-start gap-2 whitespace-normal text-sm`:`-ml-2 max-w-full justify-start`,size:`sm`,variant:`ghost`}),to:`/installations`,search:{...t,query:e.installId||void 0,installId:e.installId},state:e=>({insightsPagination:{eventsBack:e.insightsPagination?.eventsBack}}),"aria-label":`View history for ${e.userId??e.username??`anonymous installation`} (${e.installId})`,children:[(0,H.jsx)(`span`,{className:n?`min-w-0 text-left wrap-anywhere`:`truncate`,children:e.userId??e.username??`Anonymous installation`}),(0,H.jsx)(x,{"aria-hidden":`true`,"data-icon":`inline-end`})]}),(0,H.jsx)(k,{value:e.installId,maxLength:13,buttonClassName:n?`min-h-11 px-3`:void 0})]})}function he({children:e,error:t,eventsLocation:r,history:i,isFetching:a,isLoading:o,onNext:c,onPrevious:l,onRefresh:u,pageNumber:d,title:f=`All events`}){let p=U(),m=d>1;return(0,H.jsxs)(N,{className:`@container min-w-0 shadow-sm`,"aria-busy":a,children:[(0,H.jsxs)(A,{className:`gap-4 p-4 sm:p-6`,children:[(0,H.jsxs)(`div`,{className:`flex flex-wrap items-center justify-between gap-3`,children:[(0,H.jsx)(M,{children:(0,H.jsx)(`h2`,{children:f})}),(0,H.jsxs)(n,{className:`h-11 lg:h-8`,disabled:a,onClick:u,size:`lg`,variant:`outline`,children:[(0,H.jsx)(E,{"aria-hidden":`true`,"data-icon":`inline-start`}),`Refresh`]})]}),e]}),(0,H.jsx)(j,{className:`min-w-0 p-0`,children:o?(0,H.jsxs)(`div`,{className:`flex flex-col gap-4 p-6`,role:`status`,"aria-label":`Loading events`,children:[(0,H.jsx)(s,{className:`h-12 w-full`}),(0,H.jsx)(s,{className:`h-12 w-full`}),(0,H.jsx)(s,{className:`h-12 w-full`})]}):t?(0,H.jsx)(`div`,{className:`px-6 pb-6`,children:(0,H.jsx)(b,{error:t,fallbackTitle:`Event history unavailable`})}):i?(0,H.jsxs)(H.Fragment,{children:[i.data.length>0?(0,H.jsxs)(H.Fragment,{children:[(0,H.jsx)(`div`,{className:`@[58rem]:hidden`,children:(0,H.jsx)(q,{events:i.data,formatter:p,renderIdentity:e=>(0,H.jsx)(me,{event:e,eventsLocation:r,touch:!0})})}),(0,H.jsx)(`div`,{className:`hidden @[58rem]:block`,children:(0,H.jsxs)(z,{className:`min-w-4xl table-fixed`,children:[(0,H.jsx)(P,{children:(0,H.jsxs)(L,{className:`[&>th]:px-4 sm:[&>th]:px-6`,children:[(0,H.jsx)(F,{className:`w-64`,children:`Time`}),(0,H.jsx)(F,{className:`w-48`,children:`Event`}),(0,H.jsx)(F,{className:`w-48`,children:`User / installation`}),(0,H.jsx)(F,{className:`w-32`,children:`App`}),(0,H.jsx)(F,{className:`w-52`,children:`Bundle`})]})}),(0,H.jsx)(I,{children:i.data.map(e=>(0,H.jsxs)(L,{className:`[&>td]:px-4 [&>td]:py-4 [&>td]:align-top sm:[&>td]:px-6`,children:[(0,H.jsx)(R,{className:`whitespace-normal text-xs tabular-nums`,children:(0,H.jsx)(W,{value:e.receivedAtMs,formatter:p})}),(0,H.jsx)(R,{children:(0,H.jsx)(G,{type:e.type})}),(0,H.jsx)(R,{children:(0,H.jsx)(me,{event:e,eventsLocation:r})}),(0,H.jsx)(R,{className:`whitespace-normal text-xs`,children:(0,H.jsxs)(`div`,{className:`flex flex-col gap-2`,children:[(0,H.jsxs)(`span`,{children:[e.platform===`ios`?`iOS`:`Android`,` `,e.appVersion]}),(0,H.jsx)(`span`,{className:`text-muted-foreground`,children:e.channel})]})}),(0,H.jsx)(R,{className:`whitespace-normal text-xs`,children:(0,H.jsx)(K,{event:e})})]},e.id))})]})})]}):(0,H.jsx)(`div`,{className:`px-6 pb-6 text-sm text-muted-foreground`,children:m||i.nextCursor?`No events on this page`:f===`All events`?`No events recorded yet`:`No matching reports in this period`}),i.data.length>0||m||i.nextCursor?(0,H.jsx)(J,{hasPrevious:m,label:f,nextCursor:i.nextCursor,onNext:c,onPrevious:l,pageLength:i.data.length,pageNumber:d}):null]}):null})]})}var ge=e=>e.userId??e.username??`—`,_e=e=>`lastKnownBundleId`in e?e.lastKnownBundleId:e.toBundleId??e.fromBundleId;function ve({error:e,history:t,isLoading:r,onNext:i,onPrevious:o,onRefresh:c,pageNumber:l,selectedEvent:u,selectedInstallId:d}){let f=U(),p=u?_e(u):void 0;return(0,H.jsxs)(N,{className:`@container min-h-0 min-w-0 shadow-sm`,children:[(0,H.jsx)(A,{className:`p-4 sm:p-6`,children:(0,H.jsxs)(`div`,{className:`flex flex-wrap items-center justify-between gap-3`,children:[(0,H.jsx)(`div`,{className:`flex min-w-0 flex-col gap-1.5`,children:(0,H.jsx)(M,{className:`text-sm font-medium`,children:(0,H.jsx)(`h2`,{children:d===void 0?`Select an installation`:`Installation history`})})}),c&&d!==void 0?(0,H.jsxs)(n,{className:`h-11 lg:h-8`,size:`lg`,variant:`outline`,onClick:c,disabled:r,children:[(0,H.jsx)(E,{"aria-hidden":`true`,"data-icon":`inline-start`}),`Refresh`]}):null]})}),(0,H.jsxs)(j,{className:`min-h-0 p-0`,children:[d!==void 0&&u?(0,H.jsxs)(H.Fragment,{children:[(0,H.jsxs)(`section`,{"aria-labelledby":`latest-installation-state`,className:`px-4 pb-4 sm:px-6 sm:pb-6`,children:[(0,H.jsx)(`h3`,{className:`sr-only`,id:`latest-installation-state`,children:`Latest reported state`}),(0,H.jsxs)(`dl`,{className:`grid grid-cols-2 gap-4 @[36rem]:grid-cols-3`,children:[(0,H.jsxs)(`div`,{className:`col-span-2 min-w-0 @[36rem]:col-span-1`,children:[(0,H.jsx)(`dt`,{className:`text-xs text-muted-foreground`,children:`User ID`}),(0,H.jsx)(`dd`,{className:`mt-1 text-sm font-medium wrap-anywhere`,children:ge(u)})]}),(0,H.jsxs)(`div`,{className:`min-w-0`,children:[(0,H.jsx)(`dt`,{className:`text-xs text-muted-foreground`,children:`Install ID`}),(0,H.jsx)(`dd`,{className:`mt-1 font-mono text-xs`,children:(0,H.jsx)(k,{value:d,buttonClassName:`min-h-11 px-3 lg:min-h-0 lg:px-1.5`})})]}),(0,H.jsxs)(`div`,{className:`min-w-0`,children:[(0,H.jsx)(`dt`,{className:`text-xs text-muted-foreground`,children:`Last known bundle`}),(0,H.jsx)(`dd`,{className:`mt-1 font-mono text-xs`,children:p?(0,H.jsx)(k,{value:p,buttonClassName:`min-h-11 px-3 lg:min-h-0 lg:px-1.5`}):`—`})]})]})]}),(0,H.jsx)(a,{})]}):null,d===void 0?null:r?(0,H.jsxs)(`div`,{className:`flex flex-col gap-3 p-6`,role:`status`,"aria-label":`Loading installation history`,children:[(0,H.jsx)(s,{className:`h-10 w-full`}),(0,H.jsx)(s,{className:`h-10 w-full`}),(0,H.jsx)(s,{className:`h-10 w-full`})]}):e?(0,H.jsx)(`div`,{className:`p-6`,children:(0,H.jsx)(b,{error:e instanceof Error?e:Error(),fallbackTitle:`Installation history unavailable`})}):t&&t.data.length>0?(0,H.jsxs)(H.Fragment,{children:[(0,H.jsx)(`div`,{className:`@[48rem]:hidden`,children:(0,H.jsx)(q,{events:t.data,formatter:f})}),(0,H.jsx)(`div`,{className:`hidden @[48rem]:block`,children:(0,H.jsxs)(z,{className:`min-w-3xl table-fixed`,children:[(0,H.jsx)(P,{children:(0,H.jsxs)(L,{className:`[&>th]:px-4 sm:[&>th]:px-6`,children:[(0,H.jsx)(F,{className:`w-64`,children:`Time`}),(0,H.jsx)(F,{className:`w-48`,children:`Event`}),(0,H.jsx)(F,{className:`w-32`,children:`App`}),(0,H.jsx)(F,{className:`w-52`,children:`Bundle`})]})}),(0,H.jsx)(I,{children:t.data.map(e=>(0,H.jsxs)(L,{className:`[&>td]:px-4 [&>td]:py-4 [&>td]:align-top sm:[&>td]:px-6`,children:[(0,H.jsx)(R,{className:`whitespace-normal text-xs tabular-nums`,children:(0,H.jsx)(W,{value:e.receivedAtMs,formatter:f})}),(0,H.jsx)(R,{children:(0,H.jsx)(G,{type:e.type})}),(0,H.jsx)(R,{className:`whitespace-normal text-xs`,children:(0,H.jsxs)(`div`,{className:`flex flex-col gap-2`,children:[(0,H.jsxs)(`span`,{children:[e.platform===`ios`?`iOS`:`Android`,` `,e.appVersion]}),(0,H.jsx)(`span`,{className:`text-muted-foreground`,children:e.channel})]})}),(0,H.jsx)(R,{className:`whitespace-normal text-xs`,children:(0,H.jsx)(K,{event:e})})]},e.id))})]})}),(0,H.jsx)(J,{hasPrevious:l>1,label:`Installation history`,nextCursor:t.nextCursor,onNext:i,onPrevious:o,pageLength:t.data.length,pageNumber:l})]}):(0,H.jsxs)(H.Fragment,{children:[(0,H.jsx)(`div`,{className:`p-6 text-sm text-muted-foreground`,children:l>1||t?.nextCursor?`No bundle changes on this page.`:`No bundle changes recorded yet.`}),t&&(l>1||t.nextCursor)?(0,H.jsx)(J,{hasPrevious:l>1,label:`Installation history`,nextCursor:t.nextCursor,onNext:i,onPrevious:o,pageLength:0,pageNumber:l}):null]})]})]})}var ye=e=>e.lastKnownBundleId,be=e=>e.userId??e.username??`—`;function xe({error:e,onNext:t,onPrevious:i,onSelect:a,pageNumber:s,results:c,selectedInstallId:l}){let[u,d]=(0,V.useState)(!1),f=(0,V.useId)(),p=(0,V.useRef)(null),m=!e&&c&&c.data.length>0;return(0,H.jsxs)(N,{className:`min-h-0 min-w-0 shadow-sm`,children:[(0,H.jsx)(A,{className:`p-4 sm:px-6`,children:(0,H.jsxs)(`div`,{className:`flex items-center justify-between gap-3`,children:[(0,H.jsx)(`div`,{className:`flex min-w-0 flex-col gap-1.5`,children:(0,H.jsx)(M,{className:`text-sm font-medium`,children:(0,H.jsx)(`h2`,{children:`Matching installations`})})}),(0,H.jsx)(`div`,{className:`flex shrink-0 items-center gap-2`,children:m?(0,H.jsx)(n,{"aria-controls":f,"aria-expanded":u,"aria-label":u?`Hide matching installations`:`Show matching installations`,className:`size-11 lg:hidden`,onClick:()=>d(!u),ref:p,size:`icon-lg`,variant:`ghost`,children:(0,H.jsx)(T,{"aria-hidden":`true`,className:o(u&&`rotate-180`)})}):null})]})}),(0,H.jsxs)(j,{className:o(`min-h-0 p-0`,m&&!u&&`hidden lg:block`),id:f,children:[e?(0,H.jsx)(`div`,{className:`p-6`,children:(0,H.jsx)(b,{error:e instanceof Error?e:Error(),fallbackTitle:`Installation search unavailable`})}):c&&c.data.length>0?(0,H.jsx)(`ul`,{"aria-label":`Matching installations`,className:`divide-y`,children:c.data.map(e=>{let t=ye(e),n=e.installId===l;return(0,H.jsx)(`li`,{children:(0,H.jsxs)(`button`,{"aria-label":`${be(e)}, install ID ${e.installId}`,"aria-pressed":n,className:`group flex w-full min-w-0 flex-col gap-2 border-l-2 border-transparent px-4 py-4 text-left outline-none transition-colors hover:bg-muted/40 focus-visible:border-ring focus-visible:bg-muted/40 focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-ring/30 aria-pressed:border-primary aria-pressed:bg-muted/60 motion-reduce:transition-none sm:px-6`,onClick:()=>{a(e.installId),d(!1),p.current?.focus()},type:`button`,children:[(0,H.jsxs)(`span`,{className:`flex w-full min-w-0 items-center justify-between gap-3`,children:[(0,H.jsx)(`span`,{className:`min-w-0 truncate text-sm font-medium`,children:be(e)}),n?(0,H.jsxs)(`span`,{className:`flex shrink-0 items-center gap-1 text-xs font-medium text-primary`,children:[(0,H.jsx)(C,{"aria-hidden":`true`,className:`size-3.5`}),(0,H.jsx)(`span`,{className:`sr-only`,children:`Selected`})]}):null]}),(0,H.jsx)(`span`,{className:`flex flex-wrap items-center gap-2`,children:(0,H.jsx)(`span`,{className:`font-mono text-xs`,title:e.installId,children:D(e.installId)})}),(0,H.jsxs)(`span`,{className:`flex min-w-0 flex-wrap items-center gap-2`,children:[(0,H.jsx)(`span`,{className:`text-xs text-muted-foreground`,children:`Bundle`}),t?(0,H.jsx)(`span`,{className:`font-mono text-xs`,title:t,children:D(t)}):(0,H.jsx)(`span`,{className:`text-sm text-muted-foreground`,children:`—`})]})]})},e.installId)})}):(0,H.jsxs)(`div`,{className:`flex flex-wrap items-center justify-between gap-3 p-4 sm:px-6`,children:[(0,H.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:`No matches`}),(0,H.jsx)(`a`,{className:r({variant:`outline`,className:`h-11 px-3 lg:h-8`}),href:`#installation-history-search`,children:`Edit search`})]}),c&&(c.data.length>0||s>1||c.nextCursor)?(0,H.jsx)(J,{hasPrevious:s>1,label:`Installation results`,nextCursor:c.nextCursor,onNext:t,onPrevious:i,pageLength:c.data.length,pageNumber:s}):null]})]})}function Se({draftQuery:e,onDraftQueryChange:t,onSubmit:r,onClear:i}){return(0,H.jsx)(`form`,{"aria-label":`Find installation`,onSubmit:t=>{t.preventDefault(),e.trim()&&r()},role:`search`,children:(0,H.jsxs)(w,{className:`gap-2`,children:[(0,H.jsx)(S,{className:`sr-only`,htmlFor:`installation-history-search`,children:`User ID or installation ID`}),(0,H.jsxs)(`div`,{className:`flex flex-wrap gap-2`,children:[(0,H.jsxs)(oe,{className:`h-11 w-auto min-w-0 flex-1 basis-44 lg:h-8`,children:[(0,H.jsx)(B,{children:(0,H.jsx)(de,{"aria-hidden":`true`})}),(0,H.jsx)(ie,{autoComplete:`off`,className:`h-11 text-base md:text-base lg:h-8 lg:text-xs`,id:`installation-history-search`,maxLength:1024,name:`installation`,onChange:e=>t(e.target.value),placeholder:`User ID or installation ID`,spellCheck:!1,type:`search`,value:e}),e.length>0?(0,H.jsx)(B,{align:`inline-end`,children:(0,H.jsx)(ae,{"aria-label":`Clear installation lookup`,className:`size-11 lg:size-5`,onClick:i,size:`icon-xs`,children:(0,H.jsx)(l,{"aria-hidden":`true`})})}):null]}),(0,H.jsx)(n,{"aria-label":`Find installation`,className:`h-11 px-3 lg:h-8`,disabled:e.trim().length===0,size:`lg`,type:`submit`,variant:`outline`,children:`Find`})]})]})})}function Ce(){return(0,H.jsxs)(`div`,{className:`grid items-stretch gap-6 lg:min-h-96 lg:grid-cols-[minmax(18rem,20rem)_minmax(0,1fr)]`,children:[(0,H.jsx)(s,{className:`h-64 w-full lg:h-full`}),(0,H.jsx)(s,{className:`h-64 w-full lg:h-full`})]})}f({method:`GET`}).handler(i(`ff00311d412c8cdfa8ad5b0ba1eb6aa7471d0cc12170e6cc645deb91603d42dd`));var we=f({method:`GET`}).handler(i(`d4c50f40701055145f24873dc90f3c55a5494457a6a03a743339b2ac4545eb19`)),Te=f({method:`GET`}).handler(i(`3c04bc6624be6dfdd80cf96819f9c6d0455e59a7bb4c0374b6afb0162ffd15b0`)),Ee=f({method:`GET`}).handler(i(`6726f1ed9eda1f0cb4c1f1ad1023faee435ddcfd0b7c55ef08ca7f2f7f577370`)),De=f({method:`GET`}).handler(i(`735c501f6d5ea81a445ff2b6b2ea6a1b589e3c6f63a465a881822c80ae71e7d1`)),Y=3e4,X={reportingInstallations:e=>[`insights`,`reporting-installations`,e],events:e=>[`insights`,`events`,e],installations:e=>[`insights`,`installations`,e],installation:e=>[`insights`,`installation`,e],installationEvents:e=>[`insights`,`installation-events`,e]},Oe=(e,t)=>u({queryKey:X.events(e),queryFn:()=>we({data:e}),enabled:t,refetchOnWindowFocus:!0,staleTime:Y}),ke=(e,t)=>u({queryKey:X.installations(e),queryFn:()=>De({data:e}),enabled:t&&e.identity.length>0,staleTime:Y}),Ae=(e,t)=>u({queryKey:X.installation(e),queryFn:()=>Ee({data:{installId:e}}),enabled:t&&e.length>0,staleTime:Y}),je=(e,t)=>u({queryKey:X.installationEvents(e),queryFn:()=>Te({data:e}),enabled:t&&e.installId.length>0,refetchOnWindowFocus:!0,staleTime:Y}),Me=20,Ne=50,Z=()=>Date.now(),Q=(e,t)=>[...e,t??``],$=e=>({cursor:e?.at(-1)||void 0,stack:e.slice(0,-1)});function Pe(){let e=y.useSearch(),t=y.useNavigate(),[r,i]=(0,V.useState)(e.query??``),[a]=(0,V.useState)(Z),[o]=(0,V.useState)(Z),s=le({select:e=>e.state.insightsPagination}),c=s?.eventsBack??[],l=s?.searchBack??[],u=s?.historyBack??[],d=e.query?.trim()??``,f=d.length>0,p=e.installId!==void 0,m=f||p,h=e.eventsBefore??a,g=e.historyBefore??o,_=(n,r=!1,i={})=>{t({to:`/installations`,search:{...e,...n},state:e=>({...e,insightsPagination:{...e.insightsPagination,...i}}),replace:r})};(0,V.useEffect)(()=>{i(e.query??``)},[e.query]),(0,V.useEffect)(()=>{e.eventsBefore===void 0&&_({eventsBefore:h},!0)},[h,e.eventsBefore]),(0,V.useEffect)(()=>{p&&e.historyBefore===void 0&&_({historyBefore:g},!0)},[p,g,e.historyBefore]);let v=Oe({beforeReceivedAtMs:h,cursor:e.eventsCursor,limit:20},!m),b=ke({cursor:e.searchCursor,identity:d,limit:Me},f);(0,V.useEffect)(()=>{let e=b.data?.data[0]?.installId;!f||p||e===void 0||_({historyBefore:Z(),historyCursor:void 0,installId:e},!0,{historyBack:[]})},[f,p,b.data?.data]);let x=Ae(e.installId??``,p),S=je({beforeReceivedAtMs:g,cursor:e.historyCursor,installId:e.installId??``,limit:Ne},p),C=x.data??b.data?.data.find(({installId:t})=>t===e.installId)??S.data?.data[0],w=m?`installation-history-${e.historyCursor??`first`}`:`all-events-${e.eventsCursor??`first`}`,T=(0,V.useRef)(null),E=ce({id:w,getKey:ee});(0,V.useLayoutEffect)(()=>{!m&&!v.isLoading&&T.current&&(T.current.scrollTop=E?.scrollY??0)},[v.isLoading,m,E?.scrollY,w]);let D=()=>{i(``),_({historyBefore:void 0,historyCursor:void 0,installId:void 0,query:void 0,searchCursor:void 0},!1,{historyBack:[],searchBack:[]})},O=(0,H.jsx)(Se,{draftQuery:r,onClear:D,onDraftQueryChange:i,onSubmit:()=>{let e=r.trim();if(!e){D();return}_({historyBefore:void 0,historyCursor:void 0,installId:void 0,query:e,searchCursor:void 0},!1,{historyBack:[],searchBack:[]})}});return(0,H.jsxs)(`div`,{className:`flex h-svh min-h-0 flex-col`,children:[(0,H.jsx)(ne,{view:`events`}),(0,H.jsx)(`div`,{ref:T,"data-scroll-restoration-id":w,id:`insights-events-scroll`,className:`min-h-0 min-w-0 flex-1 overflow-y-auto bg-muted/5 p-3 sm:p-6`,children:(0,H.jsxs)(`div`,{className:`mx-auto flex w-full max-w-7xl flex-col gap-4 sm:gap-6`,children:[m?(0,H.jsx)(N,{className:`shadow-sm`,children:(0,H.jsxs)(j,{className:`flex flex-col gap-3 p-4 sm:p-6`,children:[(0,H.jsxs)(n,{className:`-ml-2 h-11 self-start lg:h-8`,onClick:D,variant:`ghost`,children:[(0,H.jsx)(te,{"aria-hidden":`true`,"data-icon":`inline-start`}),`Back to all events`]}),O]})}):null,m?b.isLoading&&f?(0,H.jsx)(Ce,{}):(0,H.jsxs)(`div`,{className:`grid min-h-0 min-w-0 items-stretch gap-4 sm:gap-6 ${f?`lg:min-h-96 lg:grid-cols-[minmax(18rem,20rem)_minmax(0,1fr)]`:`lg:grid-cols-1`}`,children:[f?(0,H.jsx)(xe,{error:b.error,onNext:()=>{b.data?.nextCursor&&_({installId:void 0,searchCursor:b.data.nextCursor},!0,{searchBack:Q(l,e.searchCursor)})},onPrevious:()=>{let e=$(l);_({installId:void 0,searchCursor:e.cursor},!0,{searchBack:e.stack})},onSelect:e=>{_({historyBefore:Z(),historyCursor:void 0,installId:e},!1,{historyBack:[]})},pageNumber:l.length+1,results:b.data,selectedInstallId:e.installId}):null,(0,H.jsx)(ve,{error:S.error??x.error,history:S.data,isLoading:S.isLoading||x.isLoading,onNext:()=>{S.data?.nextCursor&&_({historyCursor:S.data.nextCursor},!0,{historyBack:Q(u,e.historyCursor)})},onPrevious:()=>{let e=$(u);_({historyCursor:e.cursor},!0,{historyBack:e.stack})},onRefresh:()=>{_({historyBefore:Z(),historyCursor:void 0},!0,{historyBack:[]})},pageNumber:u.length+1,selectedEvent:C,selectedInstallId:e.installId})]}):(0,H.jsx)(he,{error:v.error,eventsLocation:{eventsBefore:h,eventsCursor:e.eventsCursor},history:v.data,isFetching:v.isFetching,isLoading:v.isLoading,onNext:()=>{v.data?.nextCursor&&_({eventsCursor:v.data.nextCursor},!0,{eventsBack:Q(c,e.eventsCursor)})},onPrevious:()=>{let e=$(c);_({eventsCursor:e.cursor},!0,{eventsBack:e.stack})},onRefresh:()=>{_({eventsBefore:Z(),eventsCursor:void 0},!0,{eventsBack:[]})},pageNumber:c.length+1,children:O})]})},w)]})}export{Pe as component};
@@ -1,2 +1,2 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/installations-Bn5vpRN7.js","assets/createServerFn-3eh2iYmC.js","assets/lazyRouteComponent-NRjNopmx.js","assets/arrow-left-DjiCzL2s.js","assets/InsightsPageHeader-zdJr2bYd.js","assets/chart-no-axes-combined-DWVqQVWt.js","assets/list-CZDFgINX.js","assets/card-6aoLhJF_.js","assets/field-Cj65X7Cp.js","assets/refresh-cw-DcqrNjan.js","assets/HashValueDisplay-9UC7oXzV.js","assets/dist-pm9AGSU8.js","assets/input-group-vPeXHuX2.js","assets/table-Pfo8zTqD.js"])))=>i.map(i=>d[i]);
2
- import{Ir as e,Lr as t,Pr as n,Rr as r,zr as i}from"./createServerFn-3eh2iYmC.js";import{A as a,B as o,C as s,D as c,E as l,H as u,I as d,L as f,M as p,N as m,O as h,P as g,R as _,S as v,T as y,V as b,_ as x,b as S,g as C,h as w,j as T,k as E,m as D,n as O,t as k,v as A,w as ee,x as j,y as te,z as M}from"./lazyRouteComponent-NRjNopmx.js";import{t as ne}from"./preload-helper-DqboRNgS.js";var re=ae(JSON.parse),ie=oe(JSON.stringify,JSON.parse);function ae(t){return n=>{n[0]===`?`&&(n=n.substring(1));let r=e(n);for(let e in r){let n=r[e];if(typeof n==`string`)try{r[e]=t(n)}catch{}}return r}}function oe(e,n){let r=typeof n==`function`;function i(t){if(typeof t==`object`&&t)try{return e(t)}catch{}else if(r&&typeof t==`string`)try{return n(t),e(t)}catch{}return t}return e=>{let n=t(e,i);return n?`?${n}`:``}}var N=e=>{if(!e.rendered)return e.rendered=!0,e.onReady?.()},se=e=>e.stores.matchesId.get().some(t=>e.stores.matchStores.get(t)?.get()._forcePending),P=(e,t)=>!!(e.preload&&!e.router.stores.matchStores.has(t)),F=(e,t,n=!0)=>{let r={...e.router.options.context??{}},i=n?t:t-1;for(let t=0;t<=i;t++){let n=e.matches[t];if(!n)continue;let i=e.router.getMatch(n.id);i&&Object.assign(r,i.__routeContext,i.__beforeLoadContext)}return r},ce=(e,t)=>{if(!e.matches.length)return;let n=t.routeId,r=e.matches.findIndex(t=>t.routeId===e.router.routeTree.id),i=r>=0?r:0,a=n?e.matches.findIndex(e=>e.routeId===n):e.firstBadMatchIndex??e.matches.length-1;a<0&&(a=i);for(let t=a;t>=0;t--){let n=e.matches[t];if(e.router.looseRoutesById[n.routeId].options.notFoundComponent)return t}return n?a:i},I=(e,t,i)=>{if(!(!n(i)&&!r(i)))throw n(i)&&i.redirectHandled&&!i.options.reloadDocument?i:(t&&(t._nonReactive.beforeLoadPromise?.resolve(),t._nonReactive.loaderPromise?.resolve(),t._nonReactive.beforeLoadPromise=void 0,t._nonReactive.loaderPromise=void 0,t._nonReactive.error=i,e.updateMatch(t.id,a=>({...a,status:n(i)?`redirected`:r(i)?`notFound`:a.status===`pending`?`success`:a.status,context:F(e,t.index),isFetching:!1,error:i})),r(i)&&!i.routeId&&(i.routeId=t.routeId),t._nonReactive.loadPromise?.resolve()),n(i)&&(e.rendered=!0,i.options._fromLocation=e.location,i.redirectHandled=!0,i=e.router.resolveRedirect(i)),i)},le=(e,t)=>{let n=e.router.getMatch(t);return!!(!n||n._nonReactive.dehydrated)},ue=(e,t,n)=>{let r=F(e,n);e.updateMatch(t,e=>({...e,context:r}))},L=(e,t,i)=>{let{id:a,routeId:o}=e.matches[t],s=e.router.looseRoutesById[o];if(i instanceof Promise)throw i;e.firstBadMatchIndex??=t,I(e,e.router.getMatch(a),i);try{s.options.onError?.(i)}catch(t){i=t,I(e,e.router.getMatch(a),i)}e.updateMatch(a,e=>(e._nonReactive.beforeLoadPromise?.resolve(),e._nonReactive.beforeLoadPromise=void 0,e._nonReactive.loadPromise?.resolve(),{...e,error:i,status:`error`,isFetching:!1,updatedAt:Date.now(),abortController:new AbortController})),!e.preload&&!n(i)&&!r(i)&&(e.serialError??=i)},de=(e,t,n,r)=>{if(r._nonReactive.pendingTimeout!==void 0)return;let i=n.options.pendingMs??e.router.options.defaultPendingMs;if(e.onReady&&!P(e,t)&&(n.options.loader||n.options.beforeLoad||xe(n))&&typeof i==`number`&&i!==1/0&&(n.options.pendingComponent??e.router.options?.defaultPendingComponent)){let t=setTimeout(()=>{N(e)},i);r._nonReactive.pendingTimeout=t}},fe=(e,t,n)=>{let r=e.router.getMatch(t);if(!r._nonReactive.beforeLoadPromise&&!r._nonReactive.loaderPromise)return;de(e,t,n,r);let i=()=>{let n=e.router.getMatch(t);n.preload&&(n.status===`redirected`||n.status===`notFound`)&&I(e,n,n.error)};return r._nonReactive.beforeLoadPromise?r._nonReactive.beforeLoadPromise.then(i):i()},pe=(e,t,i,a)=>{let o=e.router.getMatch(t),s=o._nonReactive.loadPromise;o._nonReactive.loadPromise=T(()=>{s?.resolve(),s=void 0});let{paramsError:c,searchError:l}=o;c&&L(e,i,c),l&&L(e,i,l),de(e,t,a,o);let u=new AbortController,d=!1,f=()=>{d||(d=!0,e.updateMatch(t,e=>({...e,isFetching:`beforeLoad`,fetchCount:e.fetchCount+1,abortController:u})))},p=()=>{o._nonReactive.beforeLoadPromise?.resolve(),o._nonReactive.beforeLoadPromise=void 0,e.updateMatch(t,e=>({...e,isFetching:!1}))};if(!a.options.beforeLoad){e.router.batch(()=>{f(),p()});return}o._nonReactive.beforeLoadPromise=T();let m={...F(e,i,!1),...o.__routeContext},{search:h,params:g,cause:_}=o,v=P(e,t),y={search:h,abortController:u,params:g,preload:v,context:m,location:e.location,navigate:t=>e.router.navigate({...t,_fromLocation:e.location}),buildLocation:e.router.buildLocation,cause:v?`preload`:_,matches:e.matches,routeId:a.id,...e.router.options.additionalContext},b=a=>{if(a===void 0){e.router.batch(()=>{f(),p()});return}(n(a)||r(a))&&(f(),L(e,i,a)),e.router.batch(()=>{f(),e.updateMatch(t,e=>({...e,__beforeLoadContext:a})),p()})},x;try{if(x=a.options.beforeLoad(y),M(x))return f(),x.catch(t=>{L(e,i,t)}).then(b)}catch(t){f(),L(e,i,t)}b(x)},me=(e,t)=>{let{id:n,routeId:r}=e.matches[t],i=e.router.looseRoutesById[r],a=()=>s(),o=()=>pe(e,n,t,i),s=()=>{if(le(e,n))return;let t=fe(e,n,i);return M(t)?t.then(o):o()};return a()},he=(e,t,n)=>{let r=e.router.getMatch(t);if(!r||!n.options.head&&!n.options.scripts&&!n.options.headers)return;let i={ssr:e.router.options.ssr,matches:e.matches,match:r,params:r.params,loaderData:r.loaderData};return Promise.all([n.options.head?.(i),n.options.scripts?.(i),n.options.headers?.(i)]).then(([e,t,n])=>({meta:e?.meta,links:e?.links,headScripts:e?.scripts,headers:n,scripts:t,styles:e?.styles}))},ge=(e,t,n,r,i)=>{let a=t[r-1],{params:o,loaderDeps:s,abortController:c,cause:l}=e.router.getMatch(n),u=F(e,r),d=P(e,n);return{params:o,deps:s,preload:!!d,parentMatchPromise:a,abortController:c,context:u,location:e.location,navigate:t=>e.router.navigate({...t,_fromLocation:e.location}),cause:d?`preload`:l,route:i,...e.router.options.additionalContext}},_e=async(e,t,i,a,o)=>{try{let s=e.router.getMatch(i);try{R(o);let n=o.options.loader,r=typeof n==`function`?n:n?.handler,c=r?.(ge(e,t,i,a,o)),l=!!r&&M(c);if((l||o._lazyPromise||o._componentsPromise||o.options.head||o.options.scripts||o.options.headers||s._nonReactive.minPendingPromise)&&e.updateMatch(i,e=>({...e,isFetching:`loader`})),r){let t=l?await c:c;I(e,e.router.getMatch(i),t),t!==void 0&&e.updateMatch(i,e=>({...e,loaderData:t}))}o._lazyPromise&&await o._lazyPromise;let u=s._nonReactive.minPendingPromise;u&&await u,o._componentsPromise&&await o._componentsPromise,e.updateMatch(i,t=>({...t,error:void 0,context:F(e,a),status:`success`,isFetching:!1,updatedAt:Date.now()}))}catch(t){let c=t;if(c?.name===`AbortError`){if(s.abortController.signal.aborted){s._nonReactive.loaderPromise?.resolve(),s._nonReactive.loaderPromise=void 0;return}e.updateMatch(i,t=>({...t,status:t.status===`pending`?`success`:t.status,isFetching:!1,context:F(e,a)}));return}let l=s._nonReactive.minPendingPromise;l&&await l,r(t)&&await o.options.notFoundComponent?.preload?.(),I(e,e.router.getMatch(i),t);try{o.options.onError?.(t)}catch(t){c=t,I(e,e.router.getMatch(i),t)}!n(c)&&!r(c)&&await R(o,[`errorComponent`]),e.updateMatch(i,t=>({...t,error:c,context:F(e,a),status:`error`,isFetching:!1}))}}catch(t){let n=e.router.getMatch(i);n&&(n._nonReactive.loaderPromise=void 0),I(e,n,t)}},ve=async(e,t,r)=>{async function i(i,o,l,u,f){let p=Date.now()-o.updatedAt,m=i?f.options.preloadStaleTime??e.router.options.defaultPreloadStaleTime??3e4:f.options.staleTime??e.router.options.defaultStaleTime??0,h=f.options.shouldReload,g=typeof h==`function`?h(ge(e,t,a,r,f)):h,{status:_,invalid:v}=u,y=p>=m&&(!!e.forceStaleReload||u.cause===`enter`||l!==void 0&&l!==u.id);s=_===`success`&&(v||(g??y)),i&&f.options.preload===!1||(s&&!e.sync&&d?(c=!0,(async()=>{try{await _e(e,t,a,r,f);let n=e.router.getMatch(a);n._nonReactive.loaderPromise?.resolve(),n._nonReactive.loadPromise?.resolve(),n._nonReactive.loaderPromise=void 0,n._nonReactive.loadPromise=void 0}catch(t){n(t)&&await e.router.navigate(t.options)}})()):_!==`success`||s?await _e(e,t,a,r,f):ue(e,a,r))}let{id:a,routeId:o}=e.matches[r],s=!1,c=!1,l=e.router.looseRoutesById[o],u=l.options.loader,d=((typeof u==`function`?void 0:u?.staleReloadMode)??e.router.options.defaultStaleReloadMode)!==`blocking`;if(le(e,a)){if(!e.router.getMatch(a))return e.matches[r];ue(e,a,r)}else{let t=e.router.getMatch(a),n=e.router.stores.matchesId.get()[r],s=(n&&e.router.stores.matchStores.get(n)||null)?.routeId===o?n:e.router.stores.matches.get().find(e=>e.routeId===o)?.id,c=P(e,a);if(t._nonReactive.loaderPromise){if(t.status===`success`&&!e.sync&&!t.preload&&d)return t;await t._nonReactive.loaderPromise;let n=e.router.getMatch(a),r=n._nonReactive.error||n.error;r&&I(e,n,r),n.status===`pending`&&await i(c,t,s,n,l)}else{let n=c&&!e.router.stores.matchStores.has(a),r=e.router.getMatch(a);r._nonReactive.loaderPromise=T(),n!==r.preload&&e.updateMatch(a,e=>({...e,preload:n})),await i(c,t,s,r,l)}}let f=e.router.getMatch(a);c||(f._nonReactive.loaderPromise?.resolve(),f._nonReactive.loadPromise?.resolve(),f._nonReactive.loadPromise=void 0),clearTimeout(f._nonReactive.pendingTimeout),f._nonReactive.pendingTimeout=void 0,c||(f._nonReactive.loaderPromise=void 0),f._nonReactive.dehydrated=void 0;let p=c?f.isFetching:!1;return p!==f.isFetching||f.invalid!==!1?(e.updateMatch(a,e=>({...e,isFetching:p,invalid:!1})),e.router.getMatch(a)):f};async function ye(e){let t=e,a=[];se(t.router)&&N(t);let o;for(let e=0;e<t.matches.length;e++){try{let n=me(t,e);M(n)&&await n}catch(e){if(n(e))throw e;if(r(e))o=e;else if(!t.preload)throw e;break}if(t.serialError||t.firstBadMatchIndex!=null)break}let s=t.firstBadMatchIndex??t.matches.length,c=o&&!t.preload?ce(t,o):void 0,l=o&&t.preload?0:c===void 0?s:Math.min(c+1,s),u,d;for(let e=0;e<l;e++)a.push(ve(t,a,e));try{await Promise.all(a)}catch{let e=await Promise.allSettled(a);for(let t of e){if(t.status!==`rejected`)continue;let e=t.reason;if(n(e))throw e;r(e)?u??=e:d??=e}if(d!==void 0)throw d}let f=u??(o&&!t.preload?o:void 0),p=t.firstBadMatchIndex===void 0?t.matches.length-1:t.firstBadMatchIndex;if(!f&&o&&t.preload)return t.matches;if(f){let e=ce(t,f);e===void 0&&i();let n=t.matches[e],r=t.router.looseRoutesById[n.routeId],a=t.router.options?.defaultNotFoundComponent;!r.options.notFoundComponent&&a&&(r.options.notFoundComponent=a),f.routeId=n.routeId;let o=n.routeId===t.router.routeTree.id;t.updateMatch(n.id,e=>({...e,...o?{status:`success`,globalNotFound:!0,error:void 0}:{status:`notFound`,error:f},isFetching:!1})),p=e,await R(r,[`notFoundComponent`])}else if(!t.preload){let e=t.matches[0];e.globalNotFound||t.router.getMatch(e.id)?.globalNotFound&&t.updateMatch(e.id,e=>({...e,globalNotFound:!1,error:void 0}))}if(t.serialError&&t.firstBadMatchIndex!==void 0){let e=t.router.looseRoutesById[t.matches[t.firstBadMatchIndex].routeId];await R(e,[`errorComponent`])}for(let e=0;e<=p;e++){let{id:n,routeId:r}=t.matches[e],i=t.router.looseRoutesById[r];try{let e=he(t,n,i);if(e){let r=await e;t.updateMatch(n,e=>({...e,...r}))}}catch(e){console.error(`Error executing head for route ${r}:`,e)}}let m=N(t);if(M(m)&&await m,f)throw f;if(t.serialError&&!t.preload&&!t.onReady)throw t.serialError;return t.matches}function be(e,t){let n=t.map(t=>e.options[t]?.preload?.()).filter(Boolean);if(n.length!==0)return Promise.all(n)}function R(e,t=z){!e._lazyLoaded&&e._lazyPromise===void 0&&(e.lazyFn?e._lazyPromise=e.lazyFn().then(t=>{let{id:n,...r}=t.options;Object.assign(e.options,r),e._lazyLoaded=!0,e._lazyPromise=void 0}):e._lazyLoaded=!0);let n=()=>e._componentsLoaded?void 0:t===z?(()=>{if(e._componentsPromise===void 0){let t=be(e,z);t?e._componentsPromise=t.then(()=>{e._componentsLoaded=!0,e._componentsPromise=void 0}):e._componentsLoaded=!0}return e._componentsPromise})():be(e,t);return e._lazyPromise?e._lazyPromise.then(n):n()}function xe(e){for(let t of z)if(e.options[t]?.preload)return!0;return!1}var z=[`component`,`errorComponent`,`pendingComponent`,`notFoundComponent`];function Se(e){return{input:({url:t})=>{for(let n of e)t=B(n,t);return t},output:({url:t})=>{for(let n=e.length-1;n>=0;n--)t=we(e[n],t);return t}}}function Ce(e){let t=S(e.basepath),n=`/${t}`,r=e.caseSensitive?n:n.toLowerCase(),i=`${r}/`;return{input:({url:t})=>{let a=e.caseSensitive?t.pathname:t.pathname.toLowerCase();return a===r?t.pathname=`/`:a.startsWith(i)&&(t.pathname=t.pathname.slice(n.length)),t},output:({url:e})=>(e.pathname=A([`/`,t,e.pathname]),e)}}function B(e,t){let n=e?.input?.({url:t});if(n){if(typeof n==`string`)return new URL(n);if(n instanceof URL)return n}return t}function we(e,t){let n=e?.output?.({url:t});if(n){if(typeof n==`string`)return new URL(n);if(n instanceof URL)return n}return t}function Te(e){let t=e;return{get(){return t},set(e){t=d(e,t)}}}function Ee(e){return{get(){return e()}}}function De(e,t){let{createMutableStore:n,createReadonlyStore:r,batch:i,init:a}=t,o=new Map,s=new Map,c=new Map,l=n(e.status),u=n(e.loadedAt),d=n(e.isLoading),f=n(e.isTransitioning),p=n(e.location),m=n(e.resolvedLocation),g=n(e.statusCode),_=n(e.redirect),v=n([]),y=n([]),b=n([]),x=r(()=>V(o,v.get())),S=r(()=>V(s,y.get())),C=r(()=>V(c,b.get())),w=r(()=>v.get()[0]),T=r(()=>v.get().some(e=>o.get(e)?.get().status===`pending`)),E=r(()=>({locationHref:p.get().href,resolvedLocationHref:m.get()?.href,status:l.get()})),D=r(()=>({status:l.get(),loadedAt:u.get(),isLoading:d.get(),isTransitioning:f.get(),matches:x.get(),location:p.get(),resolvedLocation:m.get(),statusCode:g.get(),redirect:_.get()})),O=h(64);function k(e){let t=O.get(e);return t||(t=r(()=>{let t=v.get();for(let n of t){let t=o.get(n);if(t&&t.routeId===e)return t.get()}}),O.set(e,t)),t}let A={status:l,loadedAt:u,isLoading:d,isTransitioning:f,location:p,resolvedLocation:m,statusCode:g,redirect:_,matchesId:v,pendingIds:y,cachedIds:b,matches:x,pendingMatches:S,cachedMatches:C,firstId:w,hasPending:T,matchRouteDeps:E,matchStores:o,pendingMatchStores:s,cachedMatchStores:c,__store:D,getRouteMatchStore:k,setMatches:ee,setPending:j,setCached:te};ee(e.matches),a?.(A);function ee(e){H(e,o,v,n,i)}function j(e){H(e,s,y,n,i)}function te(e){H(e,c,b,n,i)}return A}function V(e,t){let n=[];for(let r of t){let t=e.get(r);t&&n.push(t.get())}return n}function H(e,t,n,r,i){let o=e.map(e=>e.id),s=new Set(o);i(()=>{for(let e of t.keys())s.has(e)||t.delete(e);for(let n of e){let e=t.get(n.id);if(!e){let e=r(n);e.routeId=n.routeId,t.set(n.id,e);continue}e.routeId=n.routeId,e.get()!==n&&e.set(n)}a(n.get(),o)||n.set(o)})}var U=`__TSR_index`,Oe=`popstate`,ke=`beforeunload`;function Ae(e){let t=e.getLocation(),n=new Set,r=r=>{t=e.getLocation(),n.forEach(e=>e({location:t,action:r}))},i=n=>{e.notifyOnIndexChange??!0?r(n):t=e.getLocation()},a=async({task:n,navigateOpts:r,...i})=>{if(r?.ignoreBlocker??!1){n();return}let a=e.getBlockers?.()??[],o=i.type===`PUSH`||i.type===`REPLACE`;if(typeof document<`u`&&a.length&&o)for(let n of a){let r=W(i.path,i.state);if(await n.blockerFn({currentLocation:t,nextLocation:r,action:i.type})){e.onBlocked?.();return}}n()};return{get location(){return t},get length(){return e.getLength()},subscribers:n,subscribe:e=>(n.add(e),()=>{n.delete(e)}),push:(n,i,o)=>{let s=t.state[U];i=je(s+1,i),a({task:()=>{e.pushState(n,i),r({type:`PUSH`})},navigateOpts:o,type:`PUSH`,path:n,state:i})},replace:(n,i,o)=>{let s=t.state[U];i=je(s,i),a({task:()=>{e.replaceState(n,i),r({type:`REPLACE`})},navigateOpts:o,type:`REPLACE`,path:n,state:i})},go:(t,n)=>{a({task:()=>{e.go(t),i({type:`GO`,index:t})},navigateOpts:n,type:`GO`})},back:t=>{a({task:()=>{e.back(t?.ignoreBlocker??!1),i({type:`BACK`})},navigateOpts:t,type:`BACK`})},forward:t=>{a({task:()=>{e.forward(t?.ignoreBlocker??!1),i({type:`FORWARD`})},navigateOpts:t,type:`FORWARD`})},canGoBack:()=>t.state[U]!==0,createHref:t=>e.createHref(t),block:t=>{if(!e.setBlockers)return()=>{};let n=e.getBlockers?.()??[];return e.setBlockers([...n,t]),()=>{let n=e.getBlockers?.()??[];e.setBlockers?.(n.filter(e=>e!==t))}},flush:()=>e.flush?.(),destroy:()=>e.destroy?.(),notify:r}}function je(e,t){t||={};let n=G();return{...t,key:n,__TSR_key:n,[U]:e}}function Me(e){let t=e?.window??(typeof document<`u`?window:void 0),n=t.history.pushState,r=t.history.replaceState,i=[],a=()=>i,o=e=>i=e,s=e?.createHref??(e=>e),c=e?.parseLocation??(()=>W(`${t.location.pathname}${t.location.search}${t.location.hash}`,t.history.state));if(!t.history.state?.__TSR_key&&!t.history.state?.key){let e=G();t.history.replaceState({[U]:0,key:e,__TSR_key:e},``)}let l=c(),u,d=!1,f=!1,p=!1,m=!1,h=()=>l,g,_,v=()=>{g&&(C._ignoreSubscribers=!0,(g.isPush?t.history.pushState:t.history.replaceState)(g.state,``,g.href),C._ignoreSubscribers=!1,g=void 0,_=void 0,u=void 0)},y=(e,t,n)=>{let r=s(t);_||(u=l),l=W(t,n),g={href:r,state:n,isPush:g?.isPush||e===`push`},_||=Promise.resolve().then(()=>v())},b=e=>{l=c(),C.notify({type:e})},x=async()=>{if(f){f=!1;return}let e=c(),n=e.state[U]-l.state[U],r=n===1,i=n===-1,o=!r&&!i||d;d=!1;let s=o?`GO`:i?`BACK`:`FORWARD`,u=o?{type:`GO`,index:n}:{type:i?`BACK`:`FORWARD`};if(p)p=!1;else{let n=a();if(typeof document<`u`&&n.length){for(let r of n)if(await r.blockerFn({currentLocation:l,nextLocation:e,action:s})){f=!0,t.history.go(1),C.notify(u);return}}}l=c(),C.notify(u)},S=e=>{if(m){m=!1;return}let t=!1,n=a();if(typeof document<`u`&&n.length)for(let e of n){let n=e.enableBeforeUnload??!0;if(n===!0){t=!0;break}if(typeof n==`function`&&n()===!0){t=!0;break}}if(t)return e.preventDefault(),e.returnValue=``},C=Ae({getLocation:h,getLength:()=>t.history.length,pushState:(e,t)=>y(`push`,e,t),replaceState:(e,t)=>y(`replace`,e,t),back:e=>(e&&(p=!0),m=!0,t.history.back()),forward:e=>{e&&(p=!0),m=!0,t.history.forward()},go:e=>{d=!0,t.history.go(e)},createHref:e=>s(e),flush:v,destroy:()=>{t.history.pushState=n,t.history.replaceState=r,t.removeEventListener(ke,S,{capture:!0}),t.removeEventListener(Oe,x)},onBlocked:()=>{u&&l!==u&&(l=u)},getBlockers:a,setBlockers:o,notifyOnIndexChange:!1});return t.addEventListener(ke,S,{capture:!0}),t.addEventListener(Oe,x),t.history.pushState=function(...e){let r=n.apply(t.history,e);return C._ignoreSubscribers||b(`PUSH`),r},t.history.replaceState=function(...e){let n=r.apply(t.history,e);return C._ignoreSubscribers||b(`REPLACE`),n},C}function Ne(e){let t=e.replace(/[\x00-\x1f\x7f]/g,``);return t.startsWith(`//`)&&(t=`/`+t.replace(/^\/+/,``)),t}function W(e,t){let n=Ne(e),r=n.indexOf(`#`),i=n.indexOf(`?`),a=G();return{href:n,pathname:n.substring(0,r>0?i>0?Math.min(r,i):r:i>0?i:n.length),hash:r>-1?n.substring(r):``,search:i>-1?n.slice(i,r===-1?void 0:r):``,state:t||{[U]:0,key:a,__TSR_key:a}}}function G(){return(Math.random()+1).toString(36).substring(7)}function Pe(e){return e instanceof Error?{name:e.name,message:e.message}:{data:e}}function K(e,t){let n=t,r=e;return{fromLocation:n,toLocation:r,pathChanged:n?.pathname!==r.pathname,hrefChanged:n?.href!==r.href,hashChanged:n?.hash!==r.hash}}var Fe=new WeakMap,Ie=class{constructor(e,t){this.tempLocationKey=`${Math.round(Math.random()*1e7)}`,this._scroll={next:!0},this.shouldViewTransition=void 0,this.isViewTransitionTypesSupported=void 0,this.subscribers=new Set,this.routeBranchCache=new WeakMap,this.startTransition=e=>e(),this.update=e=>{let t=this.options,n=this.basepath??t?.basepath??`/`,r=this.basepath===void 0,i=t?.rewrite;if(this.options={...t,...e},this.isServer=this.options.isServer??typeof document>`u`,this.protocolAllowlist=new Set(this.options.protocolAllowlist),this.options.pathParamsAllowedCharacters&&(this.pathParamsDecoder=C(this.options.pathParamsAllowedCharacters)),(!this.history||this.options.history&&this.options.history!==this.history)&&(this.options.history?this.history=this.options.history:this.history=Me()),this.origin=this.options.origin,this.origin||(window?.origin&&window.origin!==`null`?this.origin=window.origin:this.origin=`http://localhost`),this.history&&this.updateLatestLocation(),this.options.routeTree!==this.routeTree){this.routeTree=this.options.routeTree;let e;this.resolvePathCache=h(1e3),e=this.buildRouteTree(),this.setRoutes(e)}if(!this.stores&&this.latestLocation){let e=this.getStoreConfig(this);this.batch=e.batch,this.stores=De(Re(this.latestLocation),e),et(this)}let a=!1,o=this.options.basepath??`/`,s=this.options.rewrite;if(r||n!==o||i!==s){this.basepath=o;let e=[],t=S(o);t&&t!==`/`&&e.push(Ce({basepath:o})),s&&e.push(s),this.rewrite=e.length===0?void 0:e.length===1?e[0]:Se(e),this.history&&this.updateLatestLocation(),a=!0}a&&this.stores&&this.stores.location.set(this.latestLocation),typeof window<`u`&&`CSS`in window&&typeof window.CSS?.supports==`function`&&(this.isViewTransitionTypesSupported=window.CSS.supports(`selector(:active-view-transition-type(a))`))},this.updateLatestLocation=()=>{this.latestLocation=this.parseLocation(this.history.location,this.latestLocation)},this.buildRouteTree=()=>{let e=c(this.routeTree,this.options.caseSensitive,(e,t)=>{e.init({originalIndex:t})});return this.options.routeMasks&&l(this.options.routeMasks,e.processedTree),e},this.subscribe=(e,t)=>{let n={eventType:e,fn:t};return this.subscribers.add(n),()=>{this.subscribers.delete(n)}},this.emit=e=>{this.subscribers.forEach(t=>{t.eventType===e.type&&t.fn(e)})},this.parseLocation=(e,t)=>{let n=({pathname:e,search:n,hash:r,href:i,state:a})=>{if(!this.rewrite&&!/[ \x00-\x1f\x7f\u0080-\uffff]/.test(e)){let i=this.options.parseSearch(n),o=this.options.stringifySearch(i);return{href:e+o+r,publicHref:e+o+r,pathname:p(e).path,external:!1,searchStr:o,search:b(t?.search,i),hash:p(r.slice(1)).path,state:u(t?.state,a)}}let o=new URL(i,this.origin),s=B(this.rewrite,o),c=this.options.parseSearch(s.search),l=this.options.stringifySearch(c);return s.search=l,{href:s.href.replace(s.origin,``),publicHref:i,pathname:p(s.pathname).path,external:!!this.rewrite&&s.origin!==this.origin,searchStr:l,search:b(t?.search,c),hash:p(s.hash.slice(1)).path,state:u(t?.state,a)}},r=n(e),{__tempLocation:i,__tempKey:a}=r.state;if(i&&(!a||a===this.tempLocationKey)){let e=n(i);return e.state.key=r.state.key,e.state.__TSR_key=r.state.__TSR_key,delete e.state.__tempLocation,{...e,maskedLocation:r}}return r},this.resolvePathWithBase=(e,t)=>te({base:e,to:t.includes(`//`)?w(t):t,trailingSlash:this.options.trailingSlash,cache:this.resolvePathCache}),this.matchRoutes=(e,t,n)=>typeof e==`string`?this.matchRoutesInternal({pathname:e,search:t},n):this.matchRoutesInternal(e,t),this.getMatchedRoutes=e=>ze({pathname:e,routesById:this.routesById,processedTree:this.processedTree}),this.cancelMatch=e=>{let t=this.getMatch(e);t&&(t.abortController.abort(),clearTimeout(t._nonReactive.pendingTimeout),t._nonReactive.pendingTimeout=void 0)},this.cancelMatches=()=>{this.stores.pendingIds.get().forEach(e=>{this.cancelMatch(e)}),this.stores.matchesId.get().forEach(e=>{if(this.stores.pendingMatchStores.has(e))return;let t=this.stores.matchStores.get(e)?.get();t&&(t.status===`pending`||t.isFetching===`loader`)&&this.cancelMatch(e)})},this.buildLocation=e=>{let t=(t={})=>{let n=t._fromLocation||this.pendingBuiltLocation||this.latestLocation,r=this.matchRoutesLightweight(n);t.from;let i=t.unsafeRelative===`path`?n.pathname:t.from??r.fullPath,a=t.to?`${t.to}`:void 0,o=r.search,s=Object.assign(Object.create(null),r.params),c=a?.charCodeAt(0)===47?`/`:this.resolvePathWithBase(i,`.`),l=a?this.resolvePathWithBase(c,a):c,m=t.params===!1||t.params===null?Object.create(null):(t.params??!0)===!0?s:Object.assign(s,d(t.params,s)),h=this.routesByPath[j(l)],_;if(h)_=this.getRouteBranch(h);else if(l.includes(`$`))_=[];else{let e=this.getMatchedRoutes(l);_=e.matchedRoutes,this.options.notFoundRoute&&(!e.foundRoute||e.foundRoute.path!==`/`&&e.routeParams[`**`])&&(_=[..._,this.options.notFoundRoute])}if(_.length&&f(m))for(let e of _){let t=e.options.params?.stringify??e.options.stringifyParams;if(t)try{Object.assign(m,t(m))}catch{}}let v=e.leaveParams?l:p(x({path:l,params:m,decoder:this.pathParamsDecoder,server:this.isServer}).interpolatedPath).path,y=o;if(e._includeValidateSearch&&this.options.search?.strict){let e={};_.forEach(t=>{if(t.options.validateSearch)try{Object.assign(e,J(t.options.validateSearch,{...e,...y}))}catch{}}),y=e}y=Be({search:y,dest:t,destRoutes:_,_includeValidateSearch:e._includeValidateSearch}),y=b(o,y);let S=this.options.stringifySearch(y),C=t.hash===!0?n.hash:t.hash?d(t.hash,n.hash):void 0,w=C?`#${C}`:``,T=t.state===!0?n.state:t.state?d(t.state,n.state):{};T=u(n.state,T);let E=`${v}${S}${w}`,D,O,k=!1;if(this.rewrite){let e=new URL(E,this.origin),t=we(this.rewrite,e);D=e.href.replace(e.origin,``),t.origin===this.origin?O=t.pathname+t.search+t.hash:(O=t.href,k=!0)}else D=g(E),O=D;return{publicHref:O,href:D,pathname:v,search:y,searchStr:S,state:T,hash:C??``,external:k,unmaskOnReload:t.unmaskOnReload}},n=(n={},r)=>{let i=t(n),a=r?t(r):void 0;if(!a){let n=Object.create(null);if(this.options.routeMasks){let o=s(i.pathname,this.processedTree);if(o){Object.assign(n,o.rawParams);let{from:i,params:s,...c}=o.route,l=s===!1||s===null?Object.create(null):(s??!0)===!0?n:Object.assign(n,d(s,n));r={from:e.from,...c,params:l},a=t(r)}}}return a&&(i.maskedLocation=a),i};return e.mask?n(e,{from:e.from,...e.mask}):n(e)},this.commitLocation=async({viewTransition:e,ignoreBlocker:t,...n})=>{let r,i=()=>{let e=[`key`,`__TSR_key`,`__TSR_index`,`__hashScrollIntoViewOptions`];e.forEach(e=>{n.state[e]=this.latestLocation.state[e]});let t=m(n.state,this.latestLocation.state);return e.forEach(e=>{delete n.state[e]}),t},a=j(this.latestLocation.href)===j(n.href),o=this.commitLocationPromise;if(this.commitLocationPromise=T(()=>{o?.resolve(),o=void 0}),a&&i())this.load();else{let{maskedLocation:i,hashScrollIntoView:a,...o}=n;i&&(o={...i,state:{...i.state,__tempKey:void 0,__tempLocation:{...o,search:o.searchStr,state:{...o.state,__tempKey:void 0,__tempLocation:void 0,__TSR_key:void 0,key:void 0}}}},(o.unmaskOnReload??this.options.unmaskOnReload??!1)&&(o.state.__tempKey=this.tempLocationKey)),o.state.__hashScrollIntoViewOptions=a??this.options.defaultHashScrollIntoView??!0,this.shouldViewTransition=e,r=n.replace?`REPLACE`:`PUSH`,this.history[r===`REPLACE`?`replace`:`push`](o.publicHref,o.state,{ignoreBlocker:t})}return this._scroll.next=n.resetScroll??!0,this.history.subscribers.size||this.load(r?{action:{type:r}}:void 0),this.commitLocationPromise},this.buildAndCommitLocation=({replace:e,resetScroll:t,hashScrollIntoView:n,viewTransition:r,ignoreBlocker:i,href:a,...o}={})=>{if(a){let t=this.history.location.state.__TSR_index,n=W(a,{__TSR_index:e?t:t+1}),r=new URL(n.pathname,this.origin);o.to=B(this.rewrite,r).pathname,o.search=this.options.parseSearch(n.search),o.hash=n.hash.slice(1)}let s=this.buildLocation({...o,_includeValidateSearch:!0});this.pendingBuiltLocation=s;let c=this.commitLocation({...s,viewTransition:r,replace:e,resetScroll:t,hashScrollIntoView:n,ignoreBlocker:i});return Promise.resolve().then(()=>{this.pendingBuiltLocation===s&&(this.pendingBuiltLocation=void 0)}),c},this.navigate=async({to:e,reloadDocument:t,href:n,publicHref:r,...i})=>{let a=!1;if(n)try{new URL(`${n}`),a=!0}catch{}if(a&&!t&&(t=!0),t){if(e!==void 0||!n){let t=this.buildLocation({to:e,...i});n??=t.publicHref,r??=t.publicHref}let t=!a&&r?r:n;if(_(t,this.protocolAllowlist))return Promise.resolve();if(!i.ignoreBlocker){let e=this.history.getBlockers?.()??[];for(let t of e)if(t?.blockerFn&&await t.blockerFn({currentLocation:this.latestLocation,nextLocation:this.latestLocation,action:`PUSH`}))return Promise.resolve()}return i.replace?window.location.replace(t):window.location.href=t,Promise.resolve()}return this.buildAndCommitLocation({...i,href:n,to:e,_isNavigate:!0})},this.beforeLoad=()=>{this.cancelMatches(),this.updateLatestLocation();let e=this.matchRoutes(this.latestLocation),t=this.stores.cachedMatches.get().filter(t=>!e.some(e=>e.id===t.id));this.batch(()=>{this.stores.status.set(`pending`),this.stores.statusCode.set(200),this.stores.isLoading.set(!0),this.stores.location.set(this.latestLocation),this.stores.setPending(e),this.stores.setCached(t)})},this.load=async e=>{let t=e?.action?.type,i,a,o,s=this.stores.resolvedLocation.get()??this.stores.location.get();for(o=new Promise(c=>{this.startTransition(async()=>{try{this.beforeLoad(),t?Fe.set(this.latestLocation,t):Fe.delete(this.latestLocation);let n=this.latestLocation,r=K(n,this.stores.resolvedLocation.get());this.stores.redirect.get()||this.emit({type:`onBeforeNavigate`,...r}),this.emit({type:`onBeforeLoad`,...r}),await ye({router:this,sync:e?.sync,forceStaleReload:s.href===n.href,matches:this.stores.pendingMatches.get(),location:n,updateMatch:this.updateMatch,onReady:async()=>{this.startTransition(()=>{this.startViewTransition(async()=>{let e=null,t=null,n=null,r=null;this.batch(()=>{let i=this.stores.pendingMatches.get(),a=i.length,o=this.stores.matches.get();e=a?o.filter(e=>!this.stores.pendingMatchStores.has(e.id)):null;let s=new Set;for(let e of this.stores.pendingMatchStores.values())e.routeId&&s.add(e.routeId);let c=new Set;for(let e of this.stores.matchStores.values())e.routeId&&c.add(e.routeId);t=a?o.filter(e=>!s.has(e.routeId)):null,n=a?i.filter(e=>!c.has(e.routeId)):null,r=a?i.filter(e=>c.has(e.routeId)):o,this.stores.isLoading.set(!1),this.stores.loadedAt.set(Date.now()),a&&(this.stores.setMatches(i),this.stores.setPending([]),this.stores.setCached([...this.stores.cachedMatches.get(),...e.filter(e=>e.status!==`error`&&e.status!==`notFound`&&e.status!==`redirected`)]),this.clearExpiredCache())});for(let[e,i]of[[t,`onLeave`],[n,`onEnter`],[r,`onStay`]])if(e)for(let t of e)this.looseRoutesById[t.routeId].options[i]?.(t)})})}})}catch(e){n(e)?(i=e,this.navigate({...i.options,replace:!0,ignoreBlocker:!0})):r(e)&&(a=e);let t=i?i.status:a?404:this.stores.matches.get().some(e=>e.status===`error`)?500:200;this.batch(()=>{this.stores.statusCode.set(t),this.stores.redirect.set(i)})}this.latestLoadPromise===o&&(this.commitLocationPromise?.resolve(),this.latestLoadPromise=void 0,this.commitLocationPromise=void 0),c()})}),this.latestLoadPromise=o,await o;this.latestLoadPromise&&o!==this.latestLoadPromise;)await this.latestLoadPromise;let c;this.hasNotFoundMatch()?c=404:this.stores.matches.get().some(e=>e.status===`error`)&&(c=500),c!==void 0&&this.stores.statusCode.set(c)},this.startViewTransition=e=>{let t=this.shouldViewTransition??this.options.defaultViewTransition;if(this.shouldViewTransition=void 0,t&&typeof document<`u`&&`startViewTransition`in document&&typeof document.startViewTransition==`function`){let n;if(typeof t==`object`&&this.isViewTransitionTypesSupported){let r=this.latestLocation,i=this.stores.resolvedLocation.get(),a=typeof t.types==`function`?t.types(K(r,i)):t.types;if(a===!1){e();return}n={update:e,types:a}}else n=e;document.startViewTransition(n)}else e()},this.updateMatch=(e,t)=>{this.startTransition(()=>{let n=this.stores.pendingMatchStores.get(e);if(n){n.set(t);return}let r=this.stores.matchStores.get(e);if(r){r.set(t);return}let i=this.stores.cachedMatchStores.get(e);if(i){let n=t(i.get());n.status===`redirected`?this.stores.cachedMatchStores.delete(e)&&this.stores.cachedIds.set(t=>t.filter(t=>t!==e)):i.set(n)}})},this.getMatch=e=>this.stores.cachedMatchStores.get(e)?.get()??this.stores.pendingMatchStores.get(e)?.get()??this.stores.matchStores.get(e)?.get(),this.invalidate=e=>{let t=t=>e?.filter?.(t)??!0?{...t,invalid:!0,...e?.forcePending||t.status===`error`||t.status===`notFound`?{status:`pending`,error:void 0}:void 0}:t;return this.batch(()=>{this.stores.setMatches(this.stores.matches.get().map(t)),this.stores.setCached(this.stores.cachedMatches.get().map(t)),this.stores.setPending(this.stores.pendingMatches.get().map(t))}),this.shouldViewTransition=!1,this.load({sync:e?.sync})},this.getParsedLocationHref=e=>e.publicHref||`/`,this.resolveRedirect=e=>{let t=e.headers.get(`Location`);if(!e.options.href||e.options._builtLocation){let t=e.options._builtLocation??this.buildLocation(e.options),n=this.getParsedLocationHref(t);e.options.href=n,e.headers.set(`Location`,n)}else if(t)try{let n=new URL(t);if(this.origin&&n.origin===this.origin){let t=n.pathname+n.search+n.hash;e.options.href=t,e.headers.set(`Location`,t)}}catch{}if(e.options.href&&!e.options._builtLocation&&_(e.options.href,this.protocolAllowlist))throw Error(`Redirect blocked: unsafe protocol`);return e.headers.get(`Location`)||e.headers.set(`Location`,e.options.href),e},this.clearCache=e=>{let t=e?.filter;t===void 0?this.stores.setCached([]):this.stores.setCached(this.stores.cachedMatches.get().filter(e=>!t(e)))},this.clearExpiredCache=()=>{let e=Date.now();this.clearCache({filter:t=>{let n=this.looseRoutesById[t.routeId];if(!n.options.loader)return!0;let r=(t.preload?n.options.preloadGcTime??this.options.defaultPreloadGcTime:n.options.gcTime??this.options.defaultGcTime)??300*1e3;return t.status===`error`?!0:e-t.updatedAt>=r}})},this.loadRouteChunk=R,this.preloadRoute=async e=>{let t=e._builtLocation??this.buildLocation(e),i=this.matchRoutes(t,{throwOnError:!0,preload:!0,dest:e}),a=new Set([...this.stores.matchesId.get(),...this.stores.pendingIds.get()]),o=new Set([...a,...this.stores.cachedIds.get()]),s=i.filter(e=>!o.has(e.id));if(s.length){let e=this.stores.cachedMatches.get();this.stores.setCached([...e,...s])}try{return i=await ye({router:this,matches:i,location:t,preload:!0,updateMatch:(e,t)=>{a.has(e)?i=i.map(n=>n.id===e?t(n):n):this.updateMatch(e,t)}}),i}catch(e){if(n(e))return e.options.reloadDocument?void 0:await this.preloadRoute({...e.options,_fromLocation:t});r(e)||console.error(e);return}},this.matchRoute=(e,t)=>{let n={...e,to:e.to?this.resolvePathWithBase(e.from||``,e.to):void 0,params:e.params||{},leaveParams:!0},r=this.buildLocation(n);if(t?.pending&&this.stores.status.get()!==`pending`)return!1;let i=(t?.pending===void 0?!this.stores.isLoading.get():t.pending)?this.latestLocation:this.stores.resolvedLocation.get()||this.stores.location.get(),a=y(r.pathname,t?.caseSensitive??!1,t?.fuzzy??!1,i.pathname,this.processedTree);return!a||e.params&&!m(a.rawParams,e.params,{partial:!0})?!1:t?.includeSearch??!0?m(i.search,r.search,{partial:!0})?a.rawParams:!1:a.rawParams},this.hasNotFoundMatch=()=>this.stores.matches.get().some(e=>e.status===`notFound`||e.globalNotFound),this.getStoreConfig=t,this.update({defaultPreloadDelay:50,defaultPendingMs:1e3,defaultPendingMinMs:500,context:void 0,...e,caseSensitive:e.caseSensitive??!1,notFoundMode:e.notFoundMode??`fuzzy`,stringifySearch:e.stringifySearch??ie,parseSearch:e.parseSearch??re,protocolAllowlist:e.protocolAllowlist??E}),typeof document<`u`&&(self.__TSR_ROUTER__=this)}isShell(){return!!this.options.isShell}isPrerendering(){return!!this.options.isPrerendering}get state(){return this.stores.__store.get()}setRoutes({routesById:e,routesByPath:t,processedTree:n}){this.routesById=e,this.routesByPath=t,this.processedTree=n;let r=this.options.notFoundRoute;r&&(r.init({originalIndex:99999999999}),this.routesById[r.id]=r)}getRouteBranch(e){let t=this.routeBranchCache.get(e);return t||(t=v(e),this.routeBranchCache.set(e,t)),t}get looseRoutesById(){return this.routesById}getParentContext(e){return e?.id?e.context??this.options.context??void 0:this.options.context??void 0}matchRoutesInternal(e,t){let i=this.getMatchedRoutes(e.pathname),{foundRoute:a,routeParams:o}=i,{matchedRoutes:s}=i,c=!1;(a?a.path!==`/`&&o[`**`]:j(e.pathname))&&(this.options.notFoundRoute?s=[...s,this.options.notFoundRoute]:c=!0);let l=c?He(this.options.notFoundMode,s):void 0,d=Array(s.length),f=new Map;for(let e of this.stores.matchStores.values())e.routeId&&f.set(e.routeId,e.get());for(let i=0;i<s.length;i++){let a=s[i],c=d[i-1],p,m,h;{let n=c?.search??e.search,r=c?._strictSearch??void 0;try{let e=J(a.options.validateSearch,{...n})??void 0;p={...n,...e},m={...r,...e},h=void 0}catch(e){let r=e;if(e instanceof q||(r=new q(e.message,{cause:e})),t?.throwOnError)throw r;p=n,m={},h=r}}let g=a.options.loaderDeps?.({search:p})??``,_=g?JSON.stringify(g):``,{interpolatedPath:v,usedParams:y}=x({path:a.fullPath,params:o,decoder:this.pathParamsDecoder,server:this.isServer}),S=a.id+v+_,C=this.getMatch(S),w=f.get(a.id),E=C?._strictParams??y,D;if(!C)try{Ue(a,E)}catch(e){if(D=r(e)||n(e)?e:new Le(e.message,{cause:e}),t?.throwOnError)throw D}Object.assign(o,E);let O=w?`stay`:`enter`,k;if(C)k={...C,cause:O,params:w?.params??o,_strictParams:E,search:b(w?w.search:C.search,p),_strictSearch:m};else{let e=a.options.loader||a.options.beforeLoad||a.lazyFn||xe(a)?`pending`:`success`;k={id:S,ssr:a.options.ssr,index:i,routeId:a.id,params:w?.params??o,_strictParams:E,pathname:v,updatedAt:Date.now(),search:w?b(w.search,p):p,_strictSearch:m,searchError:void 0,status:e,isFetching:!1,error:void 0,paramsError:D,__routeContext:void 0,_nonReactive:{loadPromise:T()},__beforeLoadContext:void 0,context:{},abortController:new AbortController,fetchCount:0,cause:O,loaderDeps:w?u(w.loaderDeps,g):g,invalid:!1,preload:!1,links:void 0,scripts:void 0,headScripts:void 0,meta:void 0,staticData:a.options.staticData||{},fullPath:a.fullPath}}t?.preload||(k.globalNotFound=l===a.id),k.searchError=h;let A=this.getParentContext(c);k.context={...A,...k.__routeContext,...k.__beforeLoadContext},d[i]=k}for(let t=0;t<d.length;t++){let n=d[t],r=this.looseRoutesById[n.routeId],i=this.getMatch(n.id),a=f.get(n.routeId);if(n.params=a?b(a.params,o):o,!i){let i=d[t-1],a=this.getParentContext(i);if(r.options.context){let t={deps:n.loaderDeps,params:n.params,context:a??{},location:e,navigate:t=>this.navigate({...t,_fromLocation:e}),buildLocation:this.buildLocation,cause:n.cause,abortController:n.abortController,preload:!!n.preload,matches:d,routeId:r.id};n.__routeContext=r.options.context(t)??void 0}n.context={...a,...n.__routeContext,...n.__beforeLoadContext}}}return d}matchRoutesLightweight(e){let{matchedRoutes:t,routeParams:n}=this.getMatchedRoutes(e.pathname),r=o(t),i={...e.search};for(let e of t)try{Object.assign(i,J(e.options.validateSearch,i))}catch{}let a=o(this.stores.matchesId.get()),s=a&&this.stores.matchStores.get(a)?.get(),c=s&&s.routeId===r.id&&s.pathname===e.pathname,l;if(c)l=s.params;else{let e=Object.assign(Object.create(null),n);for(let n of t)try{Ue(n,e)}catch{}l=e}return{matchedRoutes:t,fullPath:r.fullPath,search:i,params:l}}},q=class extends Error{},Le=class extends Error{};function Re(e){return{loadedAt:0,isLoading:!1,isTransitioning:!1,status:`idle`,resolvedLocation:void 0,location:e,matches:[],statusCode:200}}function J(e,t){if(e==null)return{};if(`~standard`in e){let n=e[`~standard`].validate(t);if(n instanceof Promise)throw new q(`Async validation not supported`);if(n.issues)throw new q(JSON.stringify(n.issues,void 0,2),{cause:n});return n.value}return`parse`in e?e.parse(t):typeof e==`function`?e(t):{}}function ze({pathname:e,routesById:t,processedTree:n}){let r=Object.create(null),i=j(e),a,o=ee(i,n,!0);return o&&(a=o.route,Object.assign(r,o.rawParams)),{matchedRoutes:o?.branch||[t.__root__],routeParams:r,foundRoute:a}}function Be({search:e,dest:t,destRoutes:n,_includeValidateSearch:r}){return Ve(n)(e,t,r??!1)}function Ve(e){let t,n,r=[];for(let t of e){let e=t.options;`search`in e?e.search?.middlewares&&r.push(...e.search.middlewares):(e.preSearchFilters||e.postSearchFilters)&&r.push(({search:t,next:n})=>{let r=n(e.preSearchFilters?e.preSearchFilters.reduce((e,t)=>t(e),t):t);return e.postSearchFilters?e.postSearchFilters.reduce((e,t)=>t(e),r):r});let i=e.validateSearch;i&&r.push(({search:e,next:t,meta:r})=>{let a=t(e);if(n)try{let e=J(i,a);if(r&&e)for(let t in e)t in a||(r.defaulted||=new Map).set(t,e[t]);return{...a,...e}}catch{}return a})}let i=(e,n,a)=>{if(e>=r.length){if(!t.search)return{};if(t.search===!0)return n;let e=d(t.search,n);return a&&(a.explicit=e),e}return r[e]({search:n,next:(t,n)=>{if(n){let n=a||{};return{search:i(e+1,t,n),meta:n}}return i(e+1,t,a)},meta:a})};return function(e,r,a){return t=r,n=a,i(0,e)}}function He(e,t){if(e!==`root`)for(let e=t.length-1;e>=0;e--){let n=t[e];if(n.children)return n.id}return D}function Ue(e,t){let n=e.options.params?.parse??e.options.parseParams;if(n){let e=n(t);if(e===!1)throw Error(`Route params.parse returned false for a matched route`);Object.assign(t,e)}}function We(){try{return sessionStorage}catch{return}}var Ge=`tsr-scroll-restoration-v1_3`,Ke=We();function qe(){try{return JSON.parse(Ke?.getItem(`tsr-scroll-restoration-v1_3`)||`{}`)}catch{return{}}}function Je(){try{Ke?.setItem(Ge,JSON.stringify(Y))}catch{}}var Y=qe(),Ye=`data-scroll-restoration-id`,Xe=e=>e.state.__TSR_key||e.href;function Ze(e){let t=e.getAttribute(Ye);if(t)return`[${Ye}="${t}"]`;let n=``,r=e,i;for(;i=r.parentNode;){let e=1,t=r;for(;t=t.previousElementSibling;)e++;let a=`${r.localName}:nth-child(${e})`;n=n?`${a} > ${n}`:a,r=i}return n}function Qe(e,t){let n=Y[(t.getKey||Xe)(e.latestLocation)];if(!n)return;if(t.id)return n[`[${Ye}="${t.id}"]`];let r=t.getElement?.();if(r)return n[r===window?Z:Ze(r)]}var X=!1,Z=`window`;function Q(e){try{return typeof e==`function`?e():document.querySelector(e)}catch{}}function $e(e){let t=[];for(let n of e){if(n===Z)continue;let e=Q(n);e&&t.push(e)}return t}function et(e,t){let n=t??e.options.scrollRestoration,r=e._scroll;n&&(r.restoring=!0);let i=e.options.getScrollRestorationKey||Xe,a=new Map,o=(e,t,n)=>{let r=a.get(e)||{};r.scrollX=t,r.scrollY=n,a.set(e,r)},s=e=>{if(!(X||!r.restoring))if(e.target===document)o(Z,scrollX,scrollY);else{let t=e.target;o(t,t.scrollLeft,t.scrollTop)}},c=e=>{if(!r.restoring)return;let t=Y[e]||={};for(let[e,n]of a)e===Z?t[Z]=n:e.isConnected&&(t[Ze(e)]=n)};n&&!r.restoration&&(r.restoration=!0,X=!1,history.scrollRestoration=`manual`,document.addEventListener(`scroll`,s,!0),e.subscribe(`onBeforeLoad`,e=>{e.fromLocation&&c(i(e.fromLocation)),a.clear()}),addEventListener(`pagehide`,()=>{c(i(e.stores.resolvedLocation.get()??e.stores.location.get())),Je()})),!r.reset&&(r.reset=!0,e.subscribe(`onRendered`,t=>{let n=e.options.scrollRestorationBehavior,o=e.options.scrollToTopSelectors,s=r.next,c;if(a.clear(),s||(r.next=!0),typeof e.options.scrollRestoration==`function`&&!e.options.scrollRestoration({location:e.latestLocation}))return;let l=i(t.toLocation),u=t.fromLocation&&i(t.fromLocation);if(r.restoring&&u&&u!==l){let e=Y[u];if(e){let t=Y[l];for(let n in e){if(n===Z){if(s)continue}else{let e=Q(n);if(!e||s&&o&&(c??=$e(o),c.includes(e)))continue}t||=Y[l]={},t[n]??=e[n]}}}X=!0;try{let e=t.toLocation.hash,i=t.toLocation.state.__hashScrollIntoViewOptions??!0,a=!1;if(s){let s=Fe.get(t.toLocation),u=e&&i&&(s===`PUSH`||s===`REPLACE`),d=r.restoring?Y[l]:void 0;if(d)for(let e in d){let{scrollX:t,scrollY:r}=d[e];if(e===Z){if(u)continue;scrollTo({top:r,left:t,behavior:n}),a=!0}else{let n=Q(e);n&&(n.scrollLeft=t,n.scrollTop=r)}}if(!a&&!e){let e={top:0,left:0,behavior:n};if(scrollTo(e),o){c??=$e(o);for(let t of c)t.scrollTo(e)}}}!a&&e&&i&&document.getElementById(e)?.scrollIntoView(i)}finally{X=!1}}))}var $=e=>typeof e==`string`&&e.length>0?e:void 0,tt=e=>typeof e==`number`&&Number.isSafeInteger(e)&&e>=0?e:void 0;function nt(e){if(e.pathname===`/installations`){let t=rt(e.search);if(t.query===void 0&&t.installId===void 0)return`/installations?eventsBefore=${t.eventsBefore??`new`}&eventsCursor=${t.eventsCursor??`first`}`}return e.state.__TSR_key}function rt(e){return{query:typeof e.query==`string`?e.query:void 0,installId:typeof e.installId==`string`?e.installId:void 0,eventsCursor:$(e.eventsCursor),eventsBefore:tt(e.eventsBefore),searchCursor:$(e.searchCursor),historyCursor:$(e.historyCursor),historyBefore:tt(e.historyBefore)}}var it=O(`/installations`)({component:k(()=>ne(()=>import(`./installations-Bn5vpRN7.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13])),`component`),validateSearch:rt});export{Ie as a,Te as c,et as i,Ee as l,nt as n,Pe as o,Qe as r,K as s,it as t};
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/installations-DanSQ9hO.js","assets/createServerFn-3eh2iYmC.js","assets/lazyRouteComponent-NRjNopmx.js","assets/arrow-left-DjiCzL2s.js","assets/InsightsPageHeader-zdJr2bYd.js","assets/chart-no-axes-combined-DWVqQVWt.js","assets/list-CZDFgINX.js","assets/card-6aoLhJF_.js","assets/field-Cj65X7Cp.js","assets/refresh-cw-DcqrNjan.js","assets/HashValueDisplay-9UC7oXzV.js","assets/dist-pm9AGSU8.js","assets/input-group-vPeXHuX2.js","assets/table-Pfo8zTqD.js"])))=>i.map(i=>d[i]);
2
+ import{Ir as e,Lr as t,Pr as n,Rr as r,zr as i}from"./createServerFn-3eh2iYmC.js";import{A as a,B as o,C as s,D as c,E as l,H as u,I as d,L as f,M as p,N as m,O as h,P as g,R as _,S as v,T as y,V as b,_ as x,b as S,g as C,h as w,j as T,k as E,m as D,n as O,t as k,v as A,w as ee,x as j,y as te,z as M}from"./lazyRouteComponent-NRjNopmx.js";import{t as ne}from"./preload-helper-DqboRNgS.js";var re=ae(JSON.parse),ie=oe(JSON.stringify,JSON.parse);function ae(t){return n=>{n[0]===`?`&&(n=n.substring(1));let r=e(n);for(let e in r){let n=r[e];if(typeof n==`string`)try{r[e]=t(n)}catch{}}return r}}function oe(e,n){let r=typeof n==`function`;function i(t){if(typeof t==`object`&&t)try{return e(t)}catch{}else if(r&&typeof t==`string`)try{return n(t),e(t)}catch{}return t}return e=>{let n=t(e,i);return n?`?${n}`:``}}var N=e=>{if(!e.rendered)return e.rendered=!0,e.onReady?.()},se=e=>e.stores.matchesId.get().some(t=>e.stores.matchStores.get(t)?.get()._forcePending),P=(e,t)=>!!(e.preload&&!e.router.stores.matchStores.has(t)),F=(e,t,n=!0)=>{let r={...e.router.options.context??{}},i=n?t:t-1;for(let t=0;t<=i;t++){let n=e.matches[t];if(!n)continue;let i=e.router.getMatch(n.id);i&&Object.assign(r,i.__routeContext,i.__beforeLoadContext)}return r},ce=(e,t)=>{if(!e.matches.length)return;let n=t.routeId,r=e.matches.findIndex(t=>t.routeId===e.router.routeTree.id),i=r>=0?r:0,a=n?e.matches.findIndex(e=>e.routeId===n):e.firstBadMatchIndex??e.matches.length-1;a<0&&(a=i);for(let t=a;t>=0;t--){let n=e.matches[t];if(e.router.looseRoutesById[n.routeId].options.notFoundComponent)return t}return n?a:i},I=(e,t,i)=>{if(!(!n(i)&&!r(i)))throw n(i)&&i.redirectHandled&&!i.options.reloadDocument?i:(t&&(t._nonReactive.beforeLoadPromise?.resolve(),t._nonReactive.loaderPromise?.resolve(),t._nonReactive.beforeLoadPromise=void 0,t._nonReactive.loaderPromise=void 0,t._nonReactive.error=i,e.updateMatch(t.id,a=>({...a,status:n(i)?`redirected`:r(i)?`notFound`:a.status===`pending`?`success`:a.status,context:F(e,t.index),isFetching:!1,error:i})),r(i)&&!i.routeId&&(i.routeId=t.routeId),t._nonReactive.loadPromise?.resolve()),n(i)&&(e.rendered=!0,i.options._fromLocation=e.location,i.redirectHandled=!0,i=e.router.resolveRedirect(i)),i)},le=(e,t)=>{let n=e.router.getMatch(t);return!!(!n||n._nonReactive.dehydrated)},ue=(e,t,n)=>{let r=F(e,n);e.updateMatch(t,e=>({...e,context:r}))},L=(e,t,i)=>{let{id:a,routeId:o}=e.matches[t],s=e.router.looseRoutesById[o];if(i instanceof Promise)throw i;e.firstBadMatchIndex??=t,I(e,e.router.getMatch(a),i);try{s.options.onError?.(i)}catch(t){i=t,I(e,e.router.getMatch(a),i)}e.updateMatch(a,e=>(e._nonReactive.beforeLoadPromise?.resolve(),e._nonReactive.beforeLoadPromise=void 0,e._nonReactive.loadPromise?.resolve(),{...e,error:i,status:`error`,isFetching:!1,updatedAt:Date.now(),abortController:new AbortController})),!e.preload&&!n(i)&&!r(i)&&(e.serialError??=i)},de=(e,t,n,r)=>{if(r._nonReactive.pendingTimeout!==void 0)return;let i=n.options.pendingMs??e.router.options.defaultPendingMs;if(e.onReady&&!P(e,t)&&(n.options.loader||n.options.beforeLoad||xe(n))&&typeof i==`number`&&i!==1/0&&(n.options.pendingComponent??e.router.options?.defaultPendingComponent)){let t=setTimeout(()=>{N(e)},i);r._nonReactive.pendingTimeout=t}},fe=(e,t,n)=>{let r=e.router.getMatch(t);if(!r._nonReactive.beforeLoadPromise&&!r._nonReactive.loaderPromise)return;de(e,t,n,r);let i=()=>{let n=e.router.getMatch(t);n.preload&&(n.status===`redirected`||n.status===`notFound`)&&I(e,n,n.error)};return r._nonReactive.beforeLoadPromise?r._nonReactive.beforeLoadPromise.then(i):i()},pe=(e,t,i,a)=>{let o=e.router.getMatch(t),s=o._nonReactive.loadPromise;o._nonReactive.loadPromise=T(()=>{s?.resolve(),s=void 0});let{paramsError:c,searchError:l}=o;c&&L(e,i,c),l&&L(e,i,l),de(e,t,a,o);let u=new AbortController,d=!1,f=()=>{d||(d=!0,e.updateMatch(t,e=>({...e,isFetching:`beforeLoad`,fetchCount:e.fetchCount+1,abortController:u})))},p=()=>{o._nonReactive.beforeLoadPromise?.resolve(),o._nonReactive.beforeLoadPromise=void 0,e.updateMatch(t,e=>({...e,isFetching:!1}))};if(!a.options.beforeLoad){e.router.batch(()=>{f(),p()});return}o._nonReactive.beforeLoadPromise=T();let m={...F(e,i,!1),...o.__routeContext},{search:h,params:g,cause:_}=o,v=P(e,t),y={search:h,abortController:u,params:g,preload:v,context:m,location:e.location,navigate:t=>e.router.navigate({...t,_fromLocation:e.location}),buildLocation:e.router.buildLocation,cause:v?`preload`:_,matches:e.matches,routeId:a.id,...e.router.options.additionalContext},b=a=>{if(a===void 0){e.router.batch(()=>{f(),p()});return}(n(a)||r(a))&&(f(),L(e,i,a)),e.router.batch(()=>{f(),e.updateMatch(t,e=>({...e,__beforeLoadContext:a})),p()})},x;try{if(x=a.options.beforeLoad(y),M(x))return f(),x.catch(t=>{L(e,i,t)}).then(b)}catch(t){f(),L(e,i,t)}b(x)},me=(e,t)=>{let{id:n,routeId:r}=e.matches[t],i=e.router.looseRoutesById[r],a=()=>s(),o=()=>pe(e,n,t,i),s=()=>{if(le(e,n))return;let t=fe(e,n,i);return M(t)?t.then(o):o()};return a()},he=(e,t,n)=>{let r=e.router.getMatch(t);if(!r||!n.options.head&&!n.options.scripts&&!n.options.headers)return;let i={ssr:e.router.options.ssr,matches:e.matches,match:r,params:r.params,loaderData:r.loaderData};return Promise.all([n.options.head?.(i),n.options.scripts?.(i),n.options.headers?.(i)]).then(([e,t,n])=>({meta:e?.meta,links:e?.links,headScripts:e?.scripts,headers:n,scripts:t,styles:e?.styles}))},ge=(e,t,n,r,i)=>{let a=t[r-1],{params:o,loaderDeps:s,abortController:c,cause:l}=e.router.getMatch(n),u=F(e,r),d=P(e,n);return{params:o,deps:s,preload:!!d,parentMatchPromise:a,abortController:c,context:u,location:e.location,navigate:t=>e.router.navigate({...t,_fromLocation:e.location}),cause:d?`preload`:l,route:i,...e.router.options.additionalContext}},_e=async(e,t,i,a,o)=>{try{let s=e.router.getMatch(i);try{R(o);let n=o.options.loader,r=typeof n==`function`?n:n?.handler,c=r?.(ge(e,t,i,a,o)),l=!!r&&M(c);if((l||o._lazyPromise||o._componentsPromise||o.options.head||o.options.scripts||o.options.headers||s._nonReactive.minPendingPromise)&&e.updateMatch(i,e=>({...e,isFetching:`loader`})),r){let t=l?await c:c;I(e,e.router.getMatch(i),t),t!==void 0&&e.updateMatch(i,e=>({...e,loaderData:t}))}o._lazyPromise&&await o._lazyPromise;let u=s._nonReactive.minPendingPromise;u&&await u,o._componentsPromise&&await o._componentsPromise,e.updateMatch(i,t=>({...t,error:void 0,context:F(e,a),status:`success`,isFetching:!1,updatedAt:Date.now()}))}catch(t){let c=t;if(c?.name===`AbortError`){if(s.abortController.signal.aborted){s._nonReactive.loaderPromise?.resolve(),s._nonReactive.loaderPromise=void 0;return}e.updateMatch(i,t=>({...t,status:t.status===`pending`?`success`:t.status,isFetching:!1,context:F(e,a)}));return}let l=s._nonReactive.minPendingPromise;l&&await l,r(t)&&await o.options.notFoundComponent?.preload?.(),I(e,e.router.getMatch(i),t);try{o.options.onError?.(t)}catch(t){c=t,I(e,e.router.getMatch(i),t)}!n(c)&&!r(c)&&await R(o,[`errorComponent`]),e.updateMatch(i,t=>({...t,error:c,context:F(e,a),status:`error`,isFetching:!1}))}}catch(t){let n=e.router.getMatch(i);n&&(n._nonReactive.loaderPromise=void 0),I(e,n,t)}},ve=async(e,t,r)=>{async function i(i,o,l,u,f){let p=Date.now()-o.updatedAt,m=i?f.options.preloadStaleTime??e.router.options.defaultPreloadStaleTime??3e4:f.options.staleTime??e.router.options.defaultStaleTime??0,h=f.options.shouldReload,g=typeof h==`function`?h(ge(e,t,a,r,f)):h,{status:_,invalid:v}=u,y=p>=m&&(!!e.forceStaleReload||u.cause===`enter`||l!==void 0&&l!==u.id);s=_===`success`&&(v||(g??y)),i&&f.options.preload===!1||(s&&!e.sync&&d?(c=!0,(async()=>{try{await _e(e,t,a,r,f);let n=e.router.getMatch(a);n._nonReactive.loaderPromise?.resolve(),n._nonReactive.loadPromise?.resolve(),n._nonReactive.loaderPromise=void 0,n._nonReactive.loadPromise=void 0}catch(t){n(t)&&await e.router.navigate(t.options)}})()):_!==`success`||s?await _e(e,t,a,r,f):ue(e,a,r))}let{id:a,routeId:o}=e.matches[r],s=!1,c=!1,l=e.router.looseRoutesById[o],u=l.options.loader,d=((typeof u==`function`?void 0:u?.staleReloadMode)??e.router.options.defaultStaleReloadMode)!==`blocking`;if(le(e,a)){if(!e.router.getMatch(a))return e.matches[r];ue(e,a,r)}else{let t=e.router.getMatch(a),n=e.router.stores.matchesId.get()[r],s=(n&&e.router.stores.matchStores.get(n)||null)?.routeId===o?n:e.router.stores.matches.get().find(e=>e.routeId===o)?.id,c=P(e,a);if(t._nonReactive.loaderPromise){if(t.status===`success`&&!e.sync&&!t.preload&&d)return t;await t._nonReactive.loaderPromise;let n=e.router.getMatch(a),r=n._nonReactive.error||n.error;r&&I(e,n,r),n.status===`pending`&&await i(c,t,s,n,l)}else{let n=c&&!e.router.stores.matchStores.has(a),r=e.router.getMatch(a);r._nonReactive.loaderPromise=T(),n!==r.preload&&e.updateMatch(a,e=>({...e,preload:n})),await i(c,t,s,r,l)}}let f=e.router.getMatch(a);c||(f._nonReactive.loaderPromise?.resolve(),f._nonReactive.loadPromise?.resolve(),f._nonReactive.loadPromise=void 0),clearTimeout(f._nonReactive.pendingTimeout),f._nonReactive.pendingTimeout=void 0,c||(f._nonReactive.loaderPromise=void 0),f._nonReactive.dehydrated=void 0;let p=c?f.isFetching:!1;return p!==f.isFetching||f.invalid!==!1?(e.updateMatch(a,e=>({...e,isFetching:p,invalid:!1})),e.router.getMatch(a)):f};async function ye(e){let t=e,a=[];se(t.router)&&N(t);let o;for(let e=0;e<t.matches.length;e++){try{let n=me(t,e);M(n)&&await n}catch(e){if(n(e))throw e;if(r(e))o=e;else if(!t.preload)throw e;break}if(t.serialError||t.firstBadMatchIndex!=null)break}let s=t.firstBadMatchIndex??t.matches.length,c=o&&!t.preload?ce(t,o):void 0,l=o&&t.preload?0:c===void 0?s:Math.min(c+1,s),u,d;for(let e=0;e<l;e++)a.push(ve(t,a,e));try{await Promise.all(a)}catch{let e=await Promise.allSettled(a);for(let t of e){if(t.status!==`rejected`)continue;let e=t.reason;if(n(e))throw e;r(e)?u??=e:d??=e}if(d!==void 0)throw d}let f=u??(o&&!t.preload?o:void 0),p=t.firstBadMatchIndex===void 0?t.matches.length-1:t.firstBadMatchIndex;if(!f&&o&&t.preload)return t.matches;if(f){let e=ce(t,f);e===void 0&&i();let n=t.matches[e],r=t.router.looseRoutesById[n.routeId],a=t.router.options?.defaultNotFoundComponent;!r.options.notFoundComponent&&a&&(r.options.notFoundComponent=a),f.routeId=n.routeId;let o=n.routeId===t.router.routeTree.id;t.updateMatch(n.id,e=>({...e,...o?{status:`success`,globalNotFound:!0,error:void 0}:{status:`notFound`,error:f},isFetching:!1})),p=e,await R(r,[`notFoundComponent`])}else if(!t.preload){let e=t.matches[0];e.globalNotFound||t.router.getMatch(e.id)?.globalNotFound&&t.updateMatch(e.id,e=>({...e,globalNotFound:!1,error:void 0}))}if(t.serialError&&t.firstBadMatchIndex!==void 0){let e=t.router.looseRoutesById[t.matches[t.firstBadMatchIndex].routeId];await R(e,[`errorComponent`])}for(let e=0;e<=p;e++){let{id:n,routeId:r}=t.matches[e],i=t.router.looseRoutesById[r];try{let e=he(t,n,i);if(e){let r=await e;t.updateMatch(n,e=>({...e,...r}))}}catch(e){console.error(`Error executing head for route ${r}:`,e)}}let m=N(t);if(M(m)&&await m,f)throw f;if(t.serialError&&!t.preload&&!t.onReady)throw t.serialError;return t.matches}function be(e,t){let n=t.map(t=>e.options[t]?.preload?.()).filter(Boolean);if(n.length!==0)return Promise.all(n)}function R(e,t=z){!e._lazyLoaded&&e._lazyPromise===void 0&&(e.lazyFn?e._lazyPromise=e.lazyFn().then(t=>{let{id:n,...r}=t.options;Object.assign(e.options,r),e._lazyLoaded=!0,e._lazyPromise=void 0}):e._lazyLoaded=!0);let n=()=>e._componentsLoaded?void 0:t===z?(()=>{if(e._componentsPromise===void 0){let t=be(e,z);t?e._componentsPromise=t.then(()=>{e._componentsLoaded=!0,e._componentsPromise=void 0}):e._componentsLoaded=!0}return e._componentsPromise})():be(e,t);return e._lazyPromise?e._lazyPromise.then(n):n()}function xe(e){for(let t of z)if(e.options[t]?.preload)return!0;return!1}var z=[`component`,`errorComponent`,`pendingComponent`,`notFoundComponent`];function Se(e){return{input:({url:t})=>{for(let n of e)t=B(n,t);return t},output:({url:t})=>{for(let n=e.length-1;n>=0;n--)t=we(e[n],t);return t}}}function Ce(e){let t=S(e.basepath),n=`/${t}`,r=e.caseSensitive?n:n.toLowerCase(),i=`${r}/`;return{input:({url:t})=>{let a=e.caseSensitive?t.pathname:t.pathname.toLowerCase();return a===r?t.pathname=`/`:a.startsWith(i)&&(t.pathname=t.pathname.slice(n.length)),t},output:({url:e})=>(e.pathname=A([`/`,t,e.pathname]),e)}}function B(e,t){let n=e?.input?.({url:t});if(n){if(typeof n==`string`)return new URL(n);if(n instanceof URL)return n}return t}function we(e,t){let n=e?.output?.({url:t});if(n){if(typeof n==`string`)return new URL(n);if(n instanceof URL)return n}return t}function Te(e){let t=e;return{get(){return t},set(e){t=d(e,t)}}}function Ee(e){return{get(){return e()}}}function De(e,t){let{createMutableStore:n,createReadonlyStore:r,batch:i,init:a}=t,o=new Map,s=new Map,c=new Map,l=n(e.status),u=n(e.loadedAt),d=n(e.isLoading),f=n(e.isTransitioning),p=n(e.location),m=n(e.resolvedLocation),g=n(e.statusCode),_=n(e.redirect),v=n([]),y=n([]),b=n([]),x=r(()=>V(o,v.get())),S=r(()=>V(s,y.get())),C=r(()=>V(c,b.get())),w=r(()=>v.get()[0]),T=r(()=>v.get().some(e=>o.get(e)?.get().status===`pending`)),E=r(()=>({locationHref:p.get().href,resolvedLocationHref:m.get()?.href,status:l.get()})),D=r(()=>({status:l.get(),loadedAt:u.get(),isLoading:d.get(),isTransitioning:f.get(),matches:x.get(),location:p.get(),resolvedLocation:m.get(),statusCode:g.get(),redirect:_.get()})),O=h(64);function k(e){let t=O.get(e);return t||(t=r(()=>{let t=v.get();for(let n of t){let t=o.get(n);if(t&&t.routeId===e)return t.get()}}),O.set(e,t)),t}let A={status:l,loadedAt:u,isLoading:d,isTransitioning:f,location:p,resolvedLocation:m,statusCode:g,redirect:_,matchesId:v,pendingIds:y,cachedIds:b,matches:x,pendingMatches:S,cachedMatches:C,firstId:w,hasPending:T,matchRouteDeps:E,matchStores:o,pendingMatchStores:s,cachedMatchStores:c,__store:D,getRouteMatchStore:k,setMatches:ee,setPending:j,setCached:te};ee(e.matches),a?.(A);function ee(e){H(e,o,v,n,i)}function j(e){H(e,s,y,n,i)}function te(e){H(e,c,b,n,i)}return A}function V(e,t){let n=[];for(let r of t){let t=e.get(r);t&&n.push(t.get())}return n}function H(e,t,n,r,i){let o=e.map(e=>e.id),s=new Set(o);i(()=>{for(let e of t.keys())s.has(e)||t.delete(e);for(let n of e){let e=t.get(n.id);if(!e){let e=r(n);e.routeId=n.routeId,t.set(n.id,e);continue}e.routeId=n.routeId,e.get()!==n&&e.set(n)}a(n.get(),o)||n.set(o)})}var U=`__TSR_index`,Oe=`popstate`,ke=`beforeunload`;function Ae(e){let t=e.getLocation(),n=new Set,r=r=>{t=e.getLocation(),n.forEach(e=>e({location:t,action:r}))},i=n=>{e.notifyOnIndexChange??!0?r(n):t=e.getLocation()},a=async({task:n,navigateOpts:r,...i})=>{if(r?.ignoreBlocker??!1){n();return}let a=e.getBlockers?.()??[],o=i.type===`PUSH`||i.type===`REPLACE`;if(typeof document<`u`&&a.length&&o)for(let n of a){let r=W(i.path,i.state);if(await n.blockerFn({currentLocation:t,nextLocation:r,action:i.type})){e.onBlocked?.();return}}n()};return{get location(){return t},get length(){return e.getLength()},subscribers:n,subscribe:e=>(n.add(e),()=>{n.delete(e)}),push:(n,i,o)=>{let s=t.state[U];i=je(s+1,i),a({task:()=>{e.pushState(n,i),r({type:`PUSH`})},navigateOpts:o,type:`PUSH`,path:n,state:i})},replace:(n,i,o)=>{let s=t.state[U];i=je(s,i),a({task:()=>{e.replaceState(n,i),r({type:`REPLACE`})},navigateOpts:o,type:`REPLACE`,path:n,state:i})},go:(t,n)=>{a({task:()=>{e.go(t),i({type:`GO`,index:t})},navigateOpts:n,type:`GO`})},back:t=>{a({task:()=>{e.back(t?.ignoreBlocker??!1),i({type:`BACK`})},navigateOpts:t,type:`BACK`})},forward:t=>{a({task:()=>{e.forward(t?.ignoreBlocker??!1),i({type:`FORWARD`})},navigateOpts:t,type:`FORWARD`})},canGoBack:()=>t.state[U]!==0,createHref:t=>e.createHref(t),block:t=>{if(!e.setBlockers)return()=>{};let n=e.getBlockers?.()??[];return e.setBlockers([...n,t]),()=>{let n=e.getBlockers?.()??[];e.setBlockers?.(n.filter(e=>e!==t))}},flush:()=>e.flush?.(),destroy:()=>e.destroy?.(),notify:r}}function je(e,t){t||={};let n=G();return{...t,key:n,__TSR_key:n,[U]:e}}function Me(e){let t=e?.window??(typeof document<`u`?window:void 0),n=t.history.pushState,r=t.history.replaceState,i=[],a=()=>i,o=e=>i=e,s=e?.createHref??(e=>e),c=e?.parseLocation??(()=>W(`${t.location.pathname}${t.location.search}${t.location.hash}`,t.history.state));if(!t.history.state?.__TSR_key&&!t.history.state?.key){let e=G();t.history.replaceState({[U]:0,key:e,__TSR_key:e},``)}let l=c(),u,d=!1,f=!1,p=!1,m=!1,h=()=>l,g,_,v=()=>{g&&(C._ignoreSubscribers=!0,(g.isPush?t.history.pushState:t.history.replaceState)(g.state,``,g.href),C._ignoreSubscribers=!1,g=void 0,_=void 0,u=void 0)},y=(e,t,n)=>{let r=s(t);_||(u=l),l=W(t,n),g={href:r,state:n,isPush:g?.isPush||e===`push`},_||=Promise.resolve().then(()=>v())},b=e=>{l=c(),C.notify({type:e})},x=async()=>{if(f){f=!1;return}let e=c(),n=e.state[U]-l.state[U],r=n===1,i=n===-1,o=!r&&!i||d;d=!1;let s=o?`GO`:i?`BACK`:`FORWARD`,u=o?{type:`GO`,index:n}:{type:i?`BACK`:`FORWARD`};if(p)p=!1;else{let n=a();if(typeof document<`u`&&n.length){for(let r of n)if(await r.blockerFn({currentLocation:l,nextLocation:e,action:s})){f=!0,t.history.go(1),C.notify(u);return}}}l=c(),C.notify(u)},S=e=>{if(m){m=!1;return}let t=!1,n=a();if(typeof document<`u`&&n.length)for(let e of n){let n=e.enableBeforeUnload??!0;if(n===!0){t=!0;break}if(typeof n==`function`&&n()===!0){t=!0;break}}if(t)return e.preventDefault(),e.returnValue=``},C=Ae({getLocation:h,getLength:()=>t.history.length,pushState:(e,t)=>y(`push`,e,t),replaceState:(e,t)=>y(`replace`,e,t),back:e=>(e&&(p=!0),m=!0,t.history.back()),forward:e=>{e&&(p=!0),m=!0,t.history.forward()},go:e=>{d=!0,t.history.go(e)},createHref:e=>s(e),flush:v,destroy:()=>{t.history.pushState=n,t.history.replaceState=r,t.removeEventListener(ke,S,{capture:!0}),t.removeEventListener(Oe,x)},onBlocked:()=>{u&&l!==u&&(l=u)},getBlockers:a,setBlockers:o,notifyOnIndexChange:!1});return t.addEventListener(ke,S,{capture:!0}),t.addEventListener(Oe,x),t.history.pushState=function(...e){let r=n.apply(t.history,e);return C._ignoreSubscribers||b(`PUSH`),r},t.history.replaceState=function(...e){let n=r.apply(t.history,e);return C._ignoreSubscribers||b(`REPLACE`),n},C}function Ne(e){let t=e.replace(/[\x00-\x1f\x7f]/g,``);return t.startsWith(`//`)&&(t=`/`+t.replace(/^\/+/,``)),t}function W(e,t){let n=Ne(e),r=n.indexOf(`#`),i=n.indexOf(`?`),a=G();return{href:n,pathname:n.substring(0,r>0?i>0?Math.min(r,i):r:i>0?i:n.length),hash:r>-1?n.substring(r):``,search:i>-1?n.slice(i,r===-1?void 0:r):``,state:t||{[U]:0,key:a,__TSR_key:a}}}function G(){return(Math.random()+1).toString(36).substring(7)}function Pe(e){return e instanceof Error?{name:e.name,message:e.message}:{data:e}}function K(e,t){let n=t,r=e;return{fromLocation:n,toLocation:r,pathChanged:n?.pathname!==r.pathname,hrefChanged:n?.href!==r.href,hashChanged:n?.hash!==r.hash}}var Fe=new WeakMap,Ie=class{constructor(e,t){this.tempLocationKey=`${Math.round(Math.random()*1e7)}`,this._scroll={next:!0},this.shouldViewTransition=void 0,this.isViewTransitionTypesSupported=void 0,this.subscribers=new Set,this.routeBranchCache=new WeakMap,this.startTransition=e=>e(),this.update=e=>{let t=this.options,n=this.basepath??t?.basepath??`/`,r=this.basepath===void 0,i=t?.rewrite;if(this.options={...t,...e},this.isServer=this.options.isServer??typeof document>`u`,this.protocolAllowlist=new Set(this.options.protocolAllowlist),this.options.pathParamsAllowedCharacters&&(this.pathParamsDecoder=C(this.options.pathParamsAllowedCharacters)),(!this.history||this.options.history&&this.options.history!==this.history)&&(this.options.history?this.history=this.options.history:this.history=Me()),this.origin=this.options.origin,this.origin||(window?.origin&&window.origin!==`null`?this.origin=window.origin:this.origin=`http://localhost`),this.history&&this.updateLatestLocation(),this.options.routeTree!==this.routeTree){this.routeTree=this.options.routeTree;let e;this.resolvePathCache=h(1e3),e=this.buildRouteTree(),this.setRoutes(e)}if(!this.stores&&this.latestLocation){let e=this.getStoreConfig(this);this.batch=e.batch,this.stores=De(Re(this.latestLocation),e),et(this)}let a=!1,o=this.options.basepath??`/`,s=this.options.rewrite;if(r||n!==o||i!==s){this.basepath=o;let e=[],t=S(o);t&&t!==`/`&&e.push(Ce({basepath:o})),s&&e.push(s),this.rewrite=e.length===0?void 0:e.length===1?e[0]:Se(e),this.history&&this.updateLatestLocation(),a=!0}a&&this.stores&&this.stores.location.set(this.latestLocation),typeof window<`u`&&`CSS`in window&&typeof window.CSS?.supports==`function`&&(this.isViewTransitionTypesSupported=window.CSS.supports(`selector(:active-view-transition-type(a))`))},this.updateLatestLocation=()=>{this.latestLocation=this.parseLocation(this.history.location,this.latestLocation)},this.buildRouteTree=()=>{let e=c(this.routeTree,this.options.caseSensitive,(e,t)=>{e.init({originalIndex:t})});return this.options.routeMasks&&l(this.options.routeMasks,e.processedTree),e},this.subscribe=(e,t)=>{let n={eventType:e,fn:t};return this.subscribers.add(n),()=>{this.subscribers.delete(n)}},this.emit=e=>{this.subscribers.forEach(t=>{t.eventType===e.type&&t.fn(e)})},this.parseLocation=(e,t)=>{let n=({pathname:e,search:n,hash:r,href:i,state:a})=>{if(!this.rewrite&&!/[ \x00-\x1f\x7f\u0080-\uffff]/.test(e)){let i=this.options.parseSearch(n),o=this.options.stringifySearch(i);return{href:e+o+r,publicHref:e+o+r,pathname:p(e).path,external:!1,searchStr:o,search:b(t?.search,i),hash:p(r.slice(1)).path,state:u(t?.state,a)}}let o=new URL(i,this.origin),s=B(this.rewrite,o),c=this.options.parseSearch(s.search),l=this.options.stringifySearch(c);return s.search=l,{href:s.href.replace(s.origin,``),publicHref:i,pathname:p(s.pathname).path,external:!!this.rewrite&&s.origin!==this.origin,searchStr:l,search:b(t?.search,c),hash:p(s.hash.slice(1)).path,state:u(t?.state,a)}},r=n(e),{__tempLocation:i,__tempKey:a}=r.state;if(i&&(!a||a===this.tempLocationKey)){let e=n(i);return e.state.key=r.state.key,e.state.__TSR_key=r.state.__TSR_key,delete e.state.__tempLocation,{...e,maskedLocation:r}}return r},this.resolvePathWithBase=(e,t)=>te({base:e,to:t.includes(`//`)?w(t):t,trailingSlash:this.options.trailingSlash,cache:this.resolvePathCache}),this.matchRoutes=(e,t,n)=>typeof e==`string`?this.matchRoutesInternal({pathname:e,search:t},n):this.matchRoutesInternal(e,t),this.getMatchedRoutes=e=>ze({pathname:e,routesById:this.routesById,processedTree:this.processedTree}),this.cancelMatch=e=>{let t=this.getMatch(e);t&&(t.abortController.abort(),clearTimeout(t._nonReactive.pendingTimeout),t._nonReactive.pendingTimeout=void 0)},this.cancelMatches=()=>{this.stores.pendingIds.get().forEach(e=>{this.cancelMatch(e)}),this.stores.matchesId.get().forEach(e=>{if(this.stores.pendingMatchStores.has(e))return;let t=this.stores.matchStores.get(e)?.get();t&&(t.status===`pending`||t.isFetching===`loader`)&&this.cancelMatch(e)})},this.buildLocation=e=>{let t=(t={})=>{let n=t._fromLocation||this.pendingBuiltLocation||this.latestLocation,r=this.matchRoutesLightweight(n);t.from;let i=t.unsafeRelative===`path`?n.pathname:t.from??r.fullPath,a=t.to?`${t.to}`:void 0,o=r.search,s=Object.assign(Object.create(null),r.params),c=a?.charCodeAt(0)===47?`/`:this.resolvePathWithBase(i,`.`),l=a?this.resolvePathWithBase(c,a):c,m=t.params===!1||t.params===null?Object.create(null):(t.params??!0)===!0?s:Object.assign(s,d(t.params,s)),h=this.routesByPath[j(l)],_;if(h)_=this.getRouteBranch(h);else if(l.includes(`$`))_=[];else{let e=this.getMatchedRoutes(l);_=e.matchedRoutes,this.options.notFoundRoute&&(!e.foundRoute||e.foundRoute.path!==`/`&&e.routeParams[`**`])&&(_=[..._,this.options.notFoundRoute])}if(_.length&&f(m))for(let e of _){let t=e.options.params?.stringify??e.options.stringifyParams;if(t)try{Object.assign(m,t(m))}catch{}}let v=e.leaveParams?l:p(x({path:l,params:m,decoder:this.pathParamsDecoder,server:this.isServer}).interpolatedPath).path,y=o;if(e._includeValidateSearch&&this.options.search?.strict){let e={};_.forEach(t=>{if(t.options.validateSearch)try{Object.assign(e,J(t.options.validateSearch,{...e,...y}))}catch{}}),y=e}y=Be({search:y,dest:t,destRoutes:_,_includeValidateSearch:e._includeValidateSearch}),y=b(o,y);let S=this.options.stringifySearch(y),C=t.hash===!0?n.hash:t.hash?d(t.hash,n.hash):void 0,w=C?`#${C}`:``,T=t.state===!0?n.state:t.state?d(t.state,n.state):{};T=u(n.state,T);let E=`${v}${S}${w}`,D,O,k=!1;if(this.rewrite){let e=new URL(E,this.origin),t=we(this.rewrite,e);D=e.href.replace(e.origin,``),t.origin===this.origin?O=t.pathname+t.search+t.hash:(O=t.href,k=!0)}else D=g(E),O=D;return{publicHref:O,href:D,pathname:v,search:y,searchStr:S,state:T,hash:C??``,external:k,unmaskOnReload:t.unmaskOnReload}},n=(n={},r)=>{let i=t(n),a=r?t(r):void 0;if(!a){let n=Object.create(null);if(this.options.routeMasks){let o=s(i.pathname,this.processedTree);if(o){Object.assign(n,o.rawParams);let{from:i,params:s,...c}=o.route,l=s===!1||s===null?Object.create(null):(s??!0)===!0?n:Object.assign(n,d(s,n));r={from:e.from,...c,params:l},a=t(r)}}}return a&&(i.maskedLocation=a),i};return e.mask?n(e,{from:e.from,...e.mask}):n(e)},this.commitLocation=async({viewTransition:e,ignoreBlocker:t,...n})=>{let r,i=()=>{let e=[`key`,`__TSR_key`,`__TSR_index`,`__hashScrollIntoViewOptions`];e.forEach(e=>{n.state[e]=this.latestLocation.state[e]});let t=m(n.state,this.latestLocation.state);return e.forEach(e=>{delete n.state[e]}),t},a=j(this.latestLocation.href)===j(n.href),o=this.commitLocationPromise;if(this.commitLocationPromise=T(()=>{o?.resolve(),o=void 0}),a&&i())this.load();else{let{maskedLocation:i,hashScrollIntoView:a,...o}=n;i&&(o={...i,state:{...i.state,__tempKey:void 0,__tempLocation:{...o,search:o.searchStr,state:{...o.state,__tempKey:void 0,__tempLocation:void 0,__TSR_key:void 0,key:void 0}}}},(o.unmaskOnReload??this.options.unmaskOnReload??!1)&&(o.state.__tempKey=this.tempLocationKey)),o.state.__hashScrollIntoViewOptions=a??this.options.defaultHashScrollIntoView??!0,this.shouldViewTransition=e,r=n.replace?`REPLACE`:`PUSH`,this.history[r===`REPLACE`?`replace`:`push`](o.publicHref,o.state,{ignoreBlocker:t})}return this._scroll.next=n.resetScroll??!0,this.history.subscribers.size||this.load(r?{action:{type:r}}:void 0),this.commitLocationPromise},this.buildAndCommitLocation=({replace:e,resetScroll:t,hashScrollIntoView:n,viewTransition:r,ignoreBlocker:i,href:a,...o}={})=>{if(a){let t=this.history.location.state.__TSR_index,n=W(a,{__TSR_index:e?t:t+1}),r=new URL(n.pathname,this.origin);o.to=B(this.rewrite,r).pathname,o.search=this.options.parseSearch(n.search),o.hash=n.hash.slice(1)}let s=this.buildLocation({...o,_includeValidateSearch:!0});this.pendingBuiltLocation=s;let c=this.commitLocation({...s,viewTransition:r,replace:e,resetScroll:t,hashScrollIntoView:n,ignoreBlocker:i});return Promise.resolve().then(()=>{this.pendingBuiltLocation===s&&(this.pendingBuiltLocation=void 0)}),c},this.navigate=async({to:e,reloadDocument:t,href:n,publicHref:r,...i})=>{let a=!1;if(n)try{new URL(`${n}`),a=!0}catch{}if(a&&!t&&(t=!0),t){if(e!==void 0||!n){let t=this.buildLocation({to:e,...i});n??=t.publicHref,r??=t.publicHref}let t=!a&&r?r:n;if(_(t,this.protocolAllowlist))return Promise.resolve();if(!i.ignoreBlocker){let e=this.history.getBlockers?.()??[];for(let t of e)if(t?.blockerFn&&await t.blockerFn({currentLocation:this.latestLocation,nextLocation:this.latestLocation,action:`PUSH`}))return Promise.resolve()}return i.replace?window.location.replace(t):window.location.href=t,Promise.resolve()}return this.buildAndCommitLocation({...i,href:n,to:e,_isNavigate:!0})},this.beforeLoad=()=>{this.cancelMatches(),this.updateLatestLocation();let e=this.matchRoutes(this.latestLocation),t=this.stores.cachedMatches.get().filter(t=>!e.some(e=>e.id===t.id));this.batch(()=>{this.stores.status.set(`pending`),this.stores.statusCode.set(200),this.stores.isLoading.set(!0),this.stores.location.set(this.latestLocation),this.stores.setPending(e),this.stores.setCached(t)})},this.load=async e=>{let t=e?.action?.type,i,a,o,s=this.stores.resolvedLocation.get()??this.stores.location.get();for(o=new Promise(c=>{this.startTransition(async()=>{try{this.beforeLoad(),t?Fe.set(this.latestLocation,t):Fe.delete(this.latestLocation);let n=this.latestLocation,r=K(n,this.stores.resolvedLocation.get());this.stores.redirect.get()||this.emit({type:`onBeforeNavigate`,...r}),this.emit({type:`onBeforeLoad`,...r}),await ye({router:this,sync:e?.sync,forceStaleReload:s.href===n.href,matches:this.stores.pendingMatches.get(),location:n,updateMatch:this.updateMatch,onReady:async()=>{this.startTransition(()=>{this.startViewTransition(async()=>{let e=null,t=null,n=null,r=null;this.batch(()=>{let i=this.stores.pendingMatches.get(),a=i.length,o=this.stores.matches.get();e=a?o.filter(e=>!this.stores.pendingMatchStores.has(e.id)):null;let s=new Set;for(let e of this.stores.pendingMatchStores.values())e.routeId&&s.add(e.routeId);let c=new Set;for(let e of this.stores.matchStores.values())e.routeId&&c.add(e.routeId);t=a?o.filter(e=>!s.has(e.routeId)):null,n=a?i.filter(e=>!c.has(e.routeId)):null,r=a?i.filter(e=>c.has(e.routeId)):o,this.stores.isLoading.set(!1),this.stores.loadedAt.set(Date.now()),a&&(this.stores.setMatches(i),this.stores.setPending([]),this.stores.setCached([...this.stores.cachedMatches.get(),...e.filter(e=>e.status!==`error`&&e.status!==`notFound`&&e.status!==`redirected`)]),this.clearExpiredCache())});for(let[e,i]of[[t,`onLeave`],[n,`onEnter`],[r,`onStay`]])if(e)for(let t of e)this.looseRoutesById[t.routeId].options[i]?.(t)})})}})}catch(e){n(e)?(i=e,this.navigate({...i.options,replace:!0,ignoreBlocker:!0})):r(e)&&(a=e);let t=i?i.status:a?404:this.stores.matches.get().some(e=>e.status===`error`)?500:200;this.batch(()=>{this.stores.statusCode.set(t),this.stores.redirect.set(i)})}this.latestLoadPromise===o&&(this.commitLocationPromise?.resolve(),this.latestLoadPromise=void 0,this.commitLocationPromise=void 0),c()})}),this.latestLoadPromise=o,await o;this.latestLoadPromise&&o!==this.latestLoadPromise;)await this.latestLoadPromise;let c;this.hasNotFoundMatch()?c=404:this.stores.matches.get().some(e=>e.status===`error`)&&(c=500),c!==void 0&&this.stores.statusCode.set(c)},this.startViewTransition=e=>{let t=this.shouldViewTransition??this.options.defaultViewTransition;if(this.shouldViewTransition=void 0,t&&typeof document<`u`&&`startViewTransition`in document&&typeof document.startViewTransition==`function`){let n;if(typeof t==`object`&&this.isViewTransitionTypesSupported){let r=this.latestLocation,i=this.stores.resolvedLocation.get(),a=typeof t.types==`function`?t.types(K(r,i)):t.types;if(a===!1){e();return}n={update:e,types:a}}else n=e;document.startViewTransition(n)}else e()},this.updateMatch=(e,t)=>{this.startTransition(()=>{let n=this.stores.pendingMatchStores.get(e);if(n){n.set(t);return}let r=this.stores.matchStores.get(e);if(r){r.set(t);return}let i=this.stores.cachedMatchStores.get(e);if(i){let n=t(i.get());n.status===`redirected`?this.stores.cachedMatchStores.delete(e)&&this.stores.cachedIds.set(t=>t.filter(t=>t!==e)):i.set(n)}})},this.getMatch=e=>this.stores.cachedMatchStores.get(e)?.get()??this.stores.pendingMatchStores.get(e)?.get()??this.stores.matchStores.get(e)?.get(),this.invalidate=e=>{let t=t=>e?.filter?.(t)??!0?{...t,invalid:!0,...e?.forcePending||t.status===`error`||t.status===`notFound`?{status:`pending`,error:void 0}:void 0}:t;return this.batch(()=>{this.stores.setMatches(this.stores.matches.get().map(t)),this.stores.setCached(this.stores.cachedMatches.get().map(t)),this.stores.setPending(this.stores.pendingMatches.get().map(t))}),this.shouldViewTransition=!1,this.load({sync:e?.sync})},this.getParsedLocationHref=e=>e.publicHref||`/`,this.resolveRedirect=e=>{let t=e.headers.get(`Location`);if(!e.options.href||e.options._builtLocation){let t=e.options._builtLocation??this.buildLocation(e.options),n=this.getParsedLocationHref(t);e.options.href=n,e.headers.set(`Location`,n)}else if(t)try{let n=new URL(t);if(this.origin&&n.origin===this.origin){let t=n.pathname+n.search+n.hash;e.options.href=t,e.headers.set(`Location`,t)}}catch{}if(e.options.href&&!e.options._builtLocation&&_(e.options.href,this.protocolAllowlist))throw Error(`Redirect blocked: unsafe protocol`);return e.headers.get(`Location`)||e.headers.set(`Location`,e.options.href),e},this.clearCache=e=>{let t=e?.filter;t===void 0?this.stores.setCached([]):this.stores.setCached(this.stores.cachedMatches.get().filter(e=>!t(e)))},this.clearExpiredCache=()=>{let e=Date.now();this.clearCache({filter:t=>{let n=this.looseRoutesById[t.routeId];if(!n.options.loader)return!0;let r=(t.preload?n.options.preloadGcTime??this.options.defaultPreloadGcTime:n.options.gcTime??this.options.defaultGcTime)??300*1e3;return t.status===`error`?!0:e-t.updatedAt>=r}})},this.loadRouteChunk=R,this.preloadRoute=async e=>{let t=e._builtLocation??this.buildLocation(e),i=this.matchRoutes(t,{throwOnError:!0,preload:!0,dest:e}),a=new Set([...this.stores.matchesId.get(),...this.stores.pendingIds.get()]),o=new Set([...a,...this.stores.cachedIds.get()]),s=i.filter(e=>!o.has(e.id));if(s.length){let e=this.stores.cachedMatches.get();this.stores.setCached([...e,...s])}try{return i=await ye({router:this,matches:i,location:t,preload:!0,updateMatch:(e,t)=>{a.has(e)?i=i.map(n=>n.id===e?t(n):n):this.updateMatch(e,t)}}),i}catch(e){if(n(e))return e.options.reloadDocument?void 0:await this.preloadRoute({...e.options,_fromLocation:t});r(e)||console.error(e);return}},this.matchRoute=(e,t)=>{let n={...e,to:e.to?this.resolvePathWithBase(e.from||``,e.to):void 0,params:e.params||{},leaveParams:!0},r=this.buildLocation(n);if(t?.pending&&this.stores.status.get()!==`pending`)return!1;let i=(t?.pending===void 0?!this.stores.isLoading.get():t.pending)?this.latestLocation:this.stores.resolvedLocation.get()||this.stores.location.get(),a=y(r.pathname,t?.caseSensitive??!1,t?.fuzzy??!1,i.pathname,this.processedTree);return!a||e.params&&!m(a.rawParams,e.params,{partial:!0})?!1:t?.includeSearch??!0?m(i.search,r.search,{partial:!0})?a.rawParams:!1:a.rawParams},this.hasNotFoundMatch=()=>this.stores.matches.get().some(e=>e.status===`notFound`||e.globalNotFound),this.getStoreConfig=t,this.update({defaultPreloadDelay:50,defaultPendingMs:1e3,defaultPendingMinMs:500,context:void 0,...e,caseSensitive:e.caseSensitive??!1,notFoundMode:e.notFoundMode??`fuzzy`,stringifySearch:e.stringifySearch??ie,parseSearch:e.parseSearch??re,protocolAllowlist:e.protocolAllowlist??E}),typeof document<`u`&&(self.__TSR_ROUTER__=this)}isShell(){return!!this.options.isShell}isPrerendering(){return!!this.options.isPrerendering}get state(){return this.stores.__store.get()}setRoutes({routesById:e,routesByPath:t,processedTree:n}){this.routesById=e,this.routesByPath=t,this.processedTree=n;let r=this.options.notFoundRoute;r&&(r.init({originalIndex:99999999999}),this.routesById[r.id]=r)}getRouteBranch(e){let t=this.routeBranchCache.get(e);return t||(t=v(e),this.routeBranchCache.set(e,t)),t}get looseRoutesById(){return this.routesById}getParentContext(e){return e?.id?e.context??this.options.context??void 0:this.options.context??void 0}matchRoutesInternal(e,t){let i=this.getMatchedRoutes(e.pathname),{foundRoute:a,routeParams:o}=i,{matchedRoutes:s}=i,c=!1;(a?a.path!==`/`&&o[`**`]:j(e.pathname))&&(this.options.notFoundRoute?s=[...s,this.options.notFoundRoute]:c=!0);let l=c?He(this.options.notFoundMode,s):void 0,d=Array(s.length),f=new Map;for(let e of this.stores.matchStores.values())e.routeId&&f.set(e.routeId,e.get());for(let i=0;i<s.length;i++){let a=s[i],c=d[i-1],p,m,h;{let n=c?.search??e.search,r=c?._strictSearch??void 0;try{let e=J(a.options.validateSearch,{...n})??void 0;p={...n,...e},m={...r,...e},h=void 0}catch(e){let r=e;if(e instanceof q||(r=new q(e.message,{cause:e})),t?.throwOnError)throw r;p=n,m={},h=r}}let g=a.options.loaderDeps?.({search:p})??``,_=g?JSON.stringify(g):``,{interpolatedPath:v,usedParams:y}=x({path:a.fullPath,params:o,decoder:this.pathParamsDecoder,server:this.isServer}),S=a.id+v+_,C=this.getMatch(S),w=f.get(a.id),E=C?._strictParams??y,D;if(!C)try{Ue(a,E)}catch(e){if(D=r(e)||n(e)?e:new Le(e.message,{cause:e}),t?.throwOnError)throw D}Object.assign(o,E);let O=w?`stay`:`enter`,k;if(C)k={...C,cause:O,params:w?.params??o,_strictParams:E,search:b(w?w.search:C.search,p),_strictSearch:m};else{let e=a.options.loader||a.options.beforeLoad||a.lazyFn||xe(a)?`pending`:`success`;k={id:S,ssr:a.options.ssr,index:i,routeId:a.id,params:w?.params??o,_strictParams:E,pathname:v,updatedAt:Date.now(),search:w?b(w.search,p):p,_strictSearch:m,searchError:void 0,status:e,isFetching:!1,error:void 0,paramsError:D,__routeContext:void 0,_nonReactive:{loadPromise:T()},__beforeLoadContext:void 0,context:{},abortController:new AbortController,fetchCount:0,cause:O,loaderDeps:w?u(w.loaderDeps,g):g,invalid:!1,preload:!1,links:void 0,scripts:void 0,headScripts:void 0,meta:void 0,staticData:a.options.staticData||{},fullPath:a.fullPath}}t?.preload||(k.globalNotFound=l===a.id),k.searchError=h;let A=this.getParentContext(c);k.context={...A,...k.__routeContext,...k.__beforeLoadContext},d[i]=k}for(let t=0;t<d.length;t++){let n=d[t],r=this.looseRoutesById[n.routeId],i=this.getMatch(n.id),a=f.get(n.routeId);if(n.params=a?b(a.params,o):o,!i){let i=d[t-1],a=this.getParentContext(i);if(r.options.context){let t={deps:n.loaderDeps,params:n.params,context:a??{},location:e,navigate:t=>this.navigate({...t,_fromLocation:e}),buildLocation:this.buildLocation,cause:n.cause,abortController:n.abortController,preload:!!n.preload,matches:d,routeId:r.id};n.__routeContext=r.options.context(t)??void 0}n.context={...a,...n.__routeContext,...n.__beforeLoadContext}}}return d}matchRoutesLightweight(e){let{matchedRoutes:t,routeParams:n}=this.getMatchedRoutes(e.pathname),r=o(t),i={...e.search};for(let e of t)try{Object.assign(i,J(e.options.validateSearch,i))}catch{}let a=o(this.stores.matchesId.get()),s=a&&this.stores.matchStores.get(a)?.get(),c=s&&s.routeId===r.id&&s.pathname===e.pathname,l;if(c)l=s.params;else{let e=Object.assign(Object.create(null),n);for(let n of t)try{Ue(n,e)}catch{}l=e}return{matchedRoutes:t,fullPath:r.fullPath,search:i,params:l}}},q=class extends Error{},Le=class extends Error{};function Re(e){return{loadedAt:0,isLoading:!1,isTransitioning:!1,status:`idle`,resolvedLocation:void 0,location:e,matches:[],statusCode:200}}function J(e,t){if(e==null)return{};if(`~standard`in e){let n=e[`~standard`].validate(t);if(n instanceof Promise)throw new q(`Async validation not supported`);if(n.issues)throw new q(JSON.stringify(n.issues,void 0,2),{cause:n});return n.value}return`parse`in e?e.parse(t):typeof e==`function`?e(t):{}}function ze({pathname:e,routesById:t,processedTree:n}){let r=Object.create(null),i=j(e),a,o=ee(i,n,!0);return o&&(a=o.route,Object.assign(r,o.rawParams)),{matchedRoutes:o?.branch||[t.__root__],routeParams:r,foundRoute:a}}function Be({search:e,dest:t,destRoutes:n,_includeValidateSearch:r}){return Ve(n)(e,t,r??!1)}function Ve(e){let t,n,r=[];for(let t of e){let e=t.options;`search`in e?e.search?.middlewares&&r.push(...e.search.middlewares):(e.preSearchFilters||e.postSearchFilters)&&r.push(({search:t,next:n})=>{let r=n(e.preSearchFilters?e.preSearchFilters.reduce((e,t)=>t(e),t):t);return e.postSearchFilters?e.postSearchFilters.reduce((e,t)=>t(e),r):r});let i=e.validateSearch;i&&r.push(({search:e,next:t,meta:r})=>{let a=t(e);if(n)try{let e=J(i,a);if(r&&e)for(let t in e)t in a||(r.defaulted||=new Map).set(t,e[t]);return{...a,...e}}catch{}return a})}let i=(e,n,a)=>{if(e>=r.length){if(!t.search)return{};if(t.search===!0)return n;let e=d(t.search,n);return a&&(a.explicit=e),e}return r[e]({search:n,next:(t,n)=>{if(n){let n=a||{};return{search:i(e+1,t,n),meta:n}}return i(e+1,t,a)},meta:a})};return function(e,r,a){return t=r,n=a,i(0,e)}}function He(e,t){if(e!==`root`)for(let e=t.length-1;e>=0;e--){let n=t[e];if(n.children)return n.id}return D}function Ue(e,t){let n=e.options.params?.parse??e.options.parseParams;if(n){let e=n(t);if(e===!1)throw Error(`Route params.parse returned false for a matched route`);Object.assign(t,e)}}function We(){try{return sessionStorage}catch{return}}var Ge=`tsr-scroll-restoration-v1_3`,Ke=We();function qe(){try{return JSON.parse(Ke?.getItem(`tsr-scroll-restoration-v1_3`)||`{}`)}catch{return{}}}function Je(){try{Ke?.setItem(Ge,JSON.stringify(Y))}catch{}}var Y=qe(),Ye=`data-scroll-restoration-id`,Xe=e=>e.state.__TSR_key||e.href;function Ze(e){let t=e.getAttribute(Ye);if(t)return`[${Ye}="${t}"]`;let n=``,r=e,i;for(;i=r.parentNode;){let e=1,t=r;for(;t=t.previousElementSibling;)e++;let a=`${r.localName}:nth-child(${e})`;n=n?`${a} > ${n}`:a,r=i}return n}function Qe(e,t){let n=Y[(t.getKey||Xe)(e.latestLocation)];if(!n)return;if(t.id)return n[`[${Ye}="${t.id}"]`];let r=t.getElement?.();if(r)return n[r===window?Z:Ze(r)]}var X=!1,Z=`window`;function Q(e){try{return typeof e==`function`?e():document.querySelector(e)}catch{}}function $e(e){let t=[];for(let n of e){if(n===Z)continue;let e=Q(n);e&&t.push(e)}return t}function et(e,t){let n=t??e.options.scrollRestoration,r=e._scroll;n&&(r.restoring=!0);let i=e.options.getScrollRestorationKey||Xe,a=new Map,o=(e,t,n)=>{let r=a.get(e)||{};r.scrollX=t,r.scrollY=n,a.set(e,r)},s=e=>{if(!(X||!r.restoring))if(e.target===document)o(Z,scrollX,scrollY);else{let t=e.target;o(t,t.scrollLeft,t.scrollTop)}},c=e=>{if(!r.restoring)return;let t=Y[e]||={};for(let[e,n]of a)e===Z?t[Z]=n:e.isConnected&&(t[Ze(e)]=n)};n&&!r.restoration&&(r.restoration=!0,X=!1,history.scrollRestoration=`manual`,document.addEventListener(`scroll`,s,!0),e.subscribe(`onBeforeLoad`,e=>{e.fromLocation&&c(i(e.fromLocation)),a.clear()}),addEventListener(`pagehide`,()=>{c(i(e.stores.resolvedLocation.get()??e.stores.location.get())),Je()})),!r.reset&&(r.reset=!0,e.subscribe(`onRendered`,t=>{let n=e.options.scrollRestorationBehavior,o=e.options.scrollToTopSelectors,s=r.next,c;if(a.clear(),s||(r.next=!0),typeof e.options.scrollRestoration==`function`&&!e.options.scrollRestoration({location:e.latestLocation}))return;let l=i(t.toLocation),u=t.fromLocation&&i(t.fromLocation);if(r.restoring&&u&&u!==l){let e=Y[u];if(e){let t=Y[l];for(let n in e){if(n===Z){if(s)continue}else{let e=Q(n);if(!e||s&&o&&(c??=$e(o),c.includes(e)))continue}t||=Y[l]={},t[n]??=e[n]}}}X=!0;try{let e=t.toLocation.hash,i=t.toLocation.state.__hashScrollIntoViewOptions??!0,a=!1;if(s){let s=Fe.get(t.toLocation),u=e&&i&&(s===`PUSH`||s===`REPLACE`),d=r.restoring?Y[l]:void 0;if(d)for(let e in d){let{scrollX:t,scrollY:r}=d[e];if(e===Z){if(u)continue;scrollTo({top:r,left:t,behavior:n}),a=!0}else{let n=Q(e);n&&(n.scrollLeft=t,n.scrollTop=r)}}if(!a&&!e){let e={top:0,left:0,behavior:n};if(scrollTo(e),o){c??=$e(o);for(let t of c)t.scrollTo(e)}}}!a&&e&&i&&document.getElementById(e)?.scrollIntoView(i)}finally{X=!1}}))}var $=e=>typeof e==`string`&&e.length>0?e:void 0,tt=e=>typeof e==`number`&&Number.isSafeInteger(e)&&e>=0?e:void 0;function nt(e){if(e.pathname===`/installations`){let t=rt(e.search);if(t.query===void 0&&t.installId===void 0)return`/installations?eventsBefore=${t.eventsBefore??`new`}&eventsCursor=${t.eventsCursor??`first`}`}return e.state.__TSR_key}function rt(e){return{query:typeof e.query==`string`?e.query:void 0,installId:typeof e.installId==`string`?e.installId:void 0,eventsCursor:$(e.eventsCursor),eventsBefore:tt(e.eventsBefore),searchCursor:$(e.searchCursor),historyCursor:$(e.historyCursor),historyBefore:tt(e.historyBefore)}}var it=O(`/installations`)({component:k(()=>ne(()=>import(`./installations-DanSQ9hO.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13])),`component`),validateSearch:rt});export{Ie as a,Te as c,et as i,Ee as l,nt as n,Pe as o,Qe as r,K as s,it as t};
@@ -1,140 +1,140 @@
1
- //#region node_modules/.nitro/vite/services/ssr/assets/__23tanstack-start-server-fn-resolver-DDABhh9f.js
1
+ //#region node_modules/.nitro/vite/services/ssr/assets/__23tanstack-start-server-fn-resolver-CP6us7_F.js
2
2
  var manifest = {
3
3
  "00ccacb4a0212c83ec29f4d11719046ad91ea8291cfc557d514dbf00d3bd7f5f": {
4
4
  functionName: "getBundles_createServerFn_handler",
5
- importer: () => import("./_ssr/api-rpc-BxBnKmWl.mjs")
5
+ importer: () => import("./_ssr/api-rpc-BXmj7atp.mjs")
6
6
  },
7
7
  "16cc7c2f080ea5b73e0c6bba815b110dbd7727796036d248ba0d8ae819ddef08": {
8
8
  functionName: "createBundle_createServerFn_handler",
9
- importer: () => import("./_ssr/api-rpc-BxBnKmWl.mjs")
9
+ importer: () => import("./_ssr/api-rpc-BXmj7atp.mjs")
10
10
  },
11
11
  "1bd85c2a50e24785cb6abb023a247a9f048f37ddfa85cbb1c57e579563bad013": {
12
12
  functionName: "getBundle_createServerFn_handler",
13
- importer: () => import("./_ssr/api-rpc-BxBnKmWl.mjs")
13
+ importer: () => import("./_ssr/api-rpc-BXmj7atp.mjs")
14
14
  },
15
15
  "206547cb1526f961070a989818ca7b9e34f6b2b0e4ab851698c3807fe9fb5e0c": {
16
16
  functionName: "getReleases_createServerFn_handler",
17
- importer: () => import("./_ssr/api-rpc-BxBnKmWl.mjs")
17
+ importer: () => import("./_ssr/api-rpc-BXmj7atp.mjs")
18
18
  },
19
19
  "29665ce3a33cde2eb2ee082694288db269438f62f3a4d0a005dec3256e0f15c1": {
20
20
  functionName: "getApiKeyCapabilityRpc_createServerFn_handler",
21
- importer: () => import("./_ssr/api-keys-rpc-DIIxk2Tl.mjs")
21
+ importer: () => import("./_ssr/api-keys-rpc-DD2Rvrce.mjs")
22
22
  },
23
23
  "2b9b8d1f49f79a511589617d8d4bfc6094a3acf5264f33651b9569ba66d3f321": {
24
24
  functionName: "createChannel_createServerFn_handler",
25
- importer: () => import("./_ssr/api-rpc-BxBnKmWl.mjs")
25
+ importer: () => import("./_ssr/api-rpc-BXmj7atp.mjs")
26
26
  },
27
27
  "2c7f3cdb9bd3cab2c026a48abdc84c362db0362924a08679052a325640aec56b": {
28
28
  functionName: "listApiKeysRpc_createServerFn_handler",
29
- importer: () => import("./_ssr/api-keys-rpc-DIIxk2Tl.mjs")
29
+ importer: () => import("./_ssr/api-keys-rpc-DD2Rvrce.mjs")
30
30
  },
31
31
  "3a27ff5679228b86a346b3fe42142e7a5bf0264f73173c0dbe5f07fb37c43cf7": {
32
32
  functionName: "deleteBundle_createServerFn_handler",
33
- importer: () => import("./_ssr/api-rpc-BxBnKmWl.mjs")
33
+ importer: () => import("./_ssr/api-rpc-BXmj7atp.mjs")
34
34
  },
35
35
  "3c04bc6624be6dfdd80cf96819f9c6d0455e59a7bb4c0374b6afb0162ffd15b0": {
36
36
  functionName: "listInsightsInstallationEventsRpc_createServerFn_handler",
37
- importer: () => import("./_ssr/insights-rpc-RAvOGJCo.mjs")
37
+ importer: () => import("./_ssr/insights-rpc-CN2s40X8.mjs")
38
38
  },
39
39
  "4370f1bf70b91f1168d85379d3008449a1bedb915e9878ca4ef89d5f3a80fa7f": {
40
40
  functionName: "getBundleChildren_createServerFn_handler",
41
- importer: () => import("./_ssr/api-rpc-BxBnKmWl.mjs")
41
+ importer: () => import("./_ssr/api-rpc-BXmj7atp.mjs")
42
42
  },
43
43
  "4ca367070b00f58179a572f0bb8196a4ccdd3881e9b1dbfe33deee0cb6e1f549": {
44
44
  functionName: "getBundleChildCounts_createServerFn_handler",
45
- importer: () => import("./_ssr/api-rpc-BxBnKmWl.mjs")
45
+ importer: () => import("./_ssr/api-rpc-BXmj7atp.mjs")
46
46
  },
47
47
  "51a34c05479a893c7d320bd4cd1604427289d667698c48b9f30a01aabf8a5e68": {
48
48
  functionName: "getConfig_createServerFn_handler",
49
- importer: () => import("./_ssr/api-rpc-BxBnKmWl.mjs")
49
+ importer: () => import("./_ssr/api-rpc-BXmj7atp.mjs")
50
50
  },
51
51
  "52756dde414919a906bfe83d1ab6d29910c63bcafdb47653d6f1df562d958920": {
52
52
  functionName: "deleteChannel_createServerFn_handler",
53
- importer: () => import("./_ssr/api-rpc-BxBnKmWl.mjs")
53
+ importer: () => import("./_ssr/api-rpc-BXmj7atp.mjs")
54
54
  },
55
55
  "61de3b69779c5ce2a5f5d3c27e2cfaca8fba8f14c8803559b9cd733c456494fa": {
56
56
  functionName: "deleteBundles_createServerFn_handler",
57
- importer: () => import("./_ssr/api-rpc-BxBnKmWl.mjs")
57
+ importer: () => import("./_ssr/api-rpc-BXmj7atp.mjs")
58
58
  },
59
59
  "662034966679a6d29db2b55e7ba665e26e6c9a58a5529f33aa857a2049616233": {
60
60
  functionName: "getBundleSigningInspectionRpc_createServerFn_handler",
61
- importer: () => import("./_ssr/bundle-signing-rpc-iELMdd_9.mjs")
61
+ importer: () => import("./_ssr/bundle-signing-rpc-DsDmm15I.mjs")
62
62
  },
63
63
  "6726f1ed9eda1f0cb4c1f1ad1023faee435ddcfd0b7c55ef08ca7f2f7f577370": {
64
64
  functionName: "getInsightsInstallationRpc_createServerFn_handler",
65
- importer: () => import("./_ssr/insights-rpc-RAvOGJCo.mjs")
65
+ importer: () => import("./_ssr/insights-rpc-CN2s40X8.mjs")
66
66
  },
67
67
  "68a2d94ee016be64936401f5eba60ab08a47ff373e1cf9de48e4413336e6034b": {
68
68
  functionName: "createApiKeyRpc_createServerFn_handler",
69
- importer: () => import("./_ssr/api-keys-rpc-DIIxk2Tl.mjs")
69
+ importer: () => import("./_ssr/api-keys-rpc-DD2Rvrce.mjs")
70
70
  },
71
71
  "69cd8e2488b082eb2a22e7058be56ad6566f338c471c62557fa6beed5dc1352a": {
72
72
  functionName: "getRecoveryReportRpc_createServerFn_handler",
73
- importer: () => import("./_ssr/insights-recovery-rpc-DmhNc8oV.mjs")
73
+ importer: () => import("./_ssr/insights-recovery-rpc-Me6vsJkh.mjs")
74
74
  },
75
75
  "735c501f6d5ea81a445ff2b6b2ea6a1b589e3c6f63a465a881822c80ae71e7d1": {
76
76
  functionName: "findInsightsInstallationsRpc_createServerFn_handler",
77
- importer: () => import("./_ssr/insights-rpc-RAvOGJCo.mjs")
77
+ importer: () => import("./_ssr/insights-rpc-CN2s40X8.mjs")
78
78
  },
79
79
  "79ada05964de8f2123bfcd62b10097d59bf8fd689ef5c7161031e5871d8396c5": {
80
80
  functionName: "getChannels_createServerFn_handler",
81
- importer: () => import("./_ssr/api-rpc-BxBnKmWl.mjs")
81
+ importer: () => import("./_ssr/api-rpc-BXmj7atp.mjs")
82
82
  },
83
83
  "7ea0186f19f9f2bc2ca4b26e3c59636891cf046957f84287b6783f8d88bd8cb7": {
84
84
  functionName: "updateRelease_createServerFn_handler",
85
- importer: () => import("./_ssr/api-rpc-BxBnKmWl.mjs")
85
+ importer: () => import("./_ssr/api-rpc-BXmj7atp.mjs")
86
86
  },
87
87
  "8a98cd9c178e4a54185d62c25a95f09d3d59850c43d3f5baa1563e1614ad942e": {
88
88
  functionName: "getAppUsageReportRpc_createServerFn_handler",
89
- importer: () => import("./_ssr/insights-usage-rpc-BIfpgQs7.mjs")
89
+ importer: () => import("./_ssr/insights-usage-rpc-Dr7sIaEO.mjs")
90
90
  },
91
91
  "956539a300d79a7efa191c1cc2d529d62fc4bfd940442548fdbc1404e0d53078": {
92
92
  functionName: "promoteRelease_createServerFn_handler",
93
- importer: () => import("./_ssr/api-rpc-BxBnKmWl.mjs")
93
+ importer: () => import("./_ssr/api-rpc-BXmj7atp.mjs")
94
94
  },
95
95
  "a1cb80b19ca72a64fb631ca28ebb9b6941db245983de082d5dd3203ec2eef795": {
96
96
  functionName: "revokeApiKeyRpc_createServerFn_handler",
97
- importer: () => import("./_ssr/api-keys-rpc-DIIxk2Tl.mjs")
97
+ importer: () => import("./_ssr/api-keys-rpc-DD2Rvrce.mjs")
98
98
  },
99
99
  "a6f23116eeaf76166d405e28a95213123025613c6603030894e519015bf48032": {
100
100
  functionName: "getRelease_createServerFn_handler",
101
- importer: () => import("./_ssr/api-rpc-BxBnKmWl.mjs")
101
+ importer: () => import("./_ssr/api-rpc-BXmj7atp.mjs")
102
102
  },
103
103
  "b46c95dba95a6a3e8fa5c9d100e3622fa5ae7af4f38e10fb1ed2fa48289a3a8f": {
104
104
  functionName: "preflightRelease_createServerFn_handler",
105
- importer: () => import("./_ssr/api-rpc-BxBnKmWl.mjs")
105
+ importer: () => import("./_ssr/api-rpc-BXmj7atp.mjs")
106
106
  },
107
107
  "b4bf4c461903edcdc44eea52468c737b5b600a586f542138ff022dcbbe86c45c": {
108
108
  functionName: "getBundleActivityRpc_createServerFn_handler",
109
- importer: () => import("./_ssr/insights-recovery-rpc-DmhNc8oV.mjs")
109
+ importer: () => import("./_ssr/insights-recovery-rpc-Me6vsJkh.mjs")
110
110
  },
111
111
  "c504696e68ba764b48c48aa8a40275938640941e473cf9cfdd7b2322d99f9d13": {
112
112
  functionName: "getConsoleAccessRpc_createServerFn_handler",
113
- importer: () => import("./_ssr/auth-rpc-CzpN-PAx.mjs")
113
+ importer: () => import("./_ssr/auth-rpc-CEnaZHZ-.mjs")
114
114
  },
115
115
  "d4c50f40701055145f24873dc90f3c55a5494457a6a03a743339b2ac4545eb19": {
116
116
  functionName: "listInsightsEventsRpc_createServerFn_handler",
117
- importer: () => import("./_ssr/insights-rpc-RAvOGJCo.mjs")
117
+ importer: () => import("./_ssr/insights-rpc-CN2s40X8.mjs")
118
118
  },
119
119
  "d5b58722ce514e3b63a377f736b4823c2011782495442ae4870ed547e392c70b": {
120
120
  functionName: "deleteRelease_createServerFn_handler",
121
- importer: () => import("./_ssr/api-rpc-BxBnKmWl.mjs")
121
+ importer: () => import("./_ssr/api-rpc-BXmj7atp.mjs")
122
122
  },
123
123
  "e8c24b7247936f045a145ffd5c177fd0e3df3b52769d67dfbd8d1de491d66396": {
124
124
  functionName: "getReleaseCatalogDiagnostics_createServerFn_handler",
125
- importer: () => import("./_ssr/api-rpc-BxBnKmWl.mjs")
125
+ importer: () => import("./_ssr/api-rpc-BXmj7atp.mjs")
126
126
  },
127
127
  "f8bdca3d0579adb812d6404f55d9261a89cdb025e920b1fcad82883646a5fe9e": {
128
128
  functionName: "getConfigLoaded_createServerFn_handler",
129
- importer: () => import("./_ssr/api-rpc-BxBnKmWl.mjs")
129
+ importer: () => import("./_ssr/api-rpc-BXmj7atp.mjs")
130
130
  },
131
131
  "fa8c48f0489d97c62b9b68fd0caf0a61b15bad25a42b3866ec36264b4b30bb74": {
132
132
  functionName: "getConsoleAuthProvidersRpc_createServerFn_handler",
133
- importer: () => import("./_ssr/auth-rpc-CzpN-PAx.mjs")
133
+ importer: () => import("./_ssr/auth-rpc-CEnaZHZ-.mjs")
134
134
  },
135
135
  "ff00311d412c8cdfa8ad5b0ba1eb6aa7471d0cc12170e6cc645deb91603d42dd": {
136
136
  functionName: "getReportingInstallationsRpc_createServerFn_handler",
137
- importer: () => import("./_ssr/insights-rpc-RAvOGJCo.mjs")
137
+ importer: () => import("./_ssr/insights-rpc-CN2s40X8.mjs")
138
138
  }
139
139
  };
140
140
  async function getServerFnById(id, access) {
@@ -5276,6 +5276,36 @@ function useRouterState(opts) {
5276
5276
  });
5277
5277
  }
5278
5278
  //#endregion
5279
+ //#region ../../node_modules/.pnpm/@tanstack+react-router@1.170.15_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@tanstack/react-router/dist/esm/useLocation.js
5280
+ /**
5281
+ * Read the current location from the router state with optional selection.
5282
+ * Useful for subscribing to just the pieces of location you care about.
5283
+ *
5284
+ * Options:
5285
+ * - `select`: Project the `location` object to a derived value
5286
+ * - `structuralSharing`: Enable structural sharing for stable references
5287
+ *
5288
+ * @returns The current location (or selected value).
5289
+ * @link https://tanstack.com/router/latest/docs/framework/react/api/router/useLocationHook
5290
+ */
5291
+ function useLocation(opts) {
5292
+ const router = useRouter();
5293
+ {
5294
+ const location = router.stores.location.get();
5295
+ return opts?.select ? opts.select(location) : location;
5296
+ }
5297
+ const previousResult = (0, import_react.useRef)(void 0);
5298
+ return useStore(router.stores.location, (location) => {
5299
+ const selected = opts?.select ? opts.select(location) : location;
5300
+ if (opts?.structuralSharing ?? router.options.defaultStructuralSharing) {
5301
+ const shared = replaceEqualDeep(previousResult.current, selected);
5302
+ previousResult.current = shared;
5303
+ return shared;
5304
+ }
5305
+ return selected;
5306
+ });
5307
+ }
5308
+ //#endregion
5279
5309
  //#region ../../node_modules/.pnpm/@tanstack+react-router@1.170.15_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@tanstack/react-router/dist/esm/Asset.js
5280
5310
  var noopScriptHandler = () => {};
5281
5311
  function setScriptAttrs(script, attrs) {
@@ -14404,4 +14434,4 @@ var renderRouterToStream = async ({ request, router, responseHeaders, children }
14404
14434
  throw new Error("No renderToReadableStream or renderToPipeableStream found in react-dom/server. Ensure you are using a version of react-dom that supports streaming.");
14405
14435
  };
14406
14436
  //#endregion
14407
- export { HeadContent as a, RouterProvider as c, lazyRouteComponent as d, createFileRoute as f, redirect as g, isRedirect as h, Scripts as i, createRouter as l, Link as m, defineHandlerCallback as n, useRouterState as o, createRootRouteWithContext as p, renderRouterToString as r, useElementScrollRestoration as s, renderRouterToStream as t, Outlet as u };
14437
+ export { redirect as _, HeadContent as a, useElementScrollRestoration as c, Outlet as d, lazyRouteComponent as f, isRedirect as g, Link as h, Scripts as i, RouterProvider as l, createRootRouteWithContext as m, defineHandlerCallback as n, useLocation as o, createFileRoute as p, renderRouterToString as r, useRouterState as s, renderRouterToStream as t, createRouter as u };
@@ -1,7 +1,7 @@
1
1
  import { mt as require_jsx_runtime } from "../_libs/@base-ui/react+[...].mjs";
2
- import { C as Tooltip$1, E as TooltipTrigger, O as cn, w as TooltipContent } from "./createSsrRpc-D6Cvyuao.mjs";
2
+ import { C as Tooltip$1, E as TooltipTrigger, O as cn, w as TooltipContent } from "./createSsrRpc-CsD3w1Kc.mjs";
3
3
  import { n as toast } from "../_libs/sonner.mjs";
4
- //#region node_modules/.nitro/vite/services/ssr/assets/HashValueDisplay-CNyIhgfT.js
4
+ //#region node_modules/.nitro/vite/services/ssr/assets/HashValueDisplay-CwtU1HJY.js
5
5
  var import_jsx_runtime = require_jsx_runtime();
6
6
  var shortenIdentifier = (value, maxLength = 12) => value.length > maxLength ? `${value.slice(0, Math.max(1, maxLength - 4))}…${value.slice(-4)}` : value;
7
7
  function HashValueDisplay({ value, maxLength = 12, className, buttonClassName }) {
@@ -1,9 +1,9 @@
1
1
  import { mt as require_jsx_runtime } from "../_libs/@base-ui/react+[...].mjs";
2
2
  import { I as ChartNoAxesCombined, n as TriangleAlert, x as List } from "../_libs/lucide-react.mjs";
3
- import { D as buttonVariants, O as cn, x as SidebarTrigger } from "./createSsrRpc-D6Cvyuao.mjs";
4
- import { m as Link } from "../_libs/@tanstack/react-router+[...].mjs";
5
- import { i as AlertTitle, r as AlertDescription, t as Alert } from "./card-MXBIE2ub.mjs";
6
- //#region node_modules/.nitro/vite/services/ssr/assets/InsightsPageHeader-Dp3LCaut.js
3
+ import { D as buttonVariants, O as cn, x as SidebarTrigger } from "./createSsrRpc-CsD3w1Kc.mjs";
4
+ import { h as Link } from "../_libs/@tanstack/react-router+[...].mjs";
5
+ import { i as AlertTitle, r as AlertDescription, t as Alert } from "./card-DQz87Ig0.mjs";
6
+ //#region node_modules/.nitro/vite/services/ssr/assets/InsightsPageHeader-BuTtRlOg.js
7
7
  var import_jsx_runtime = require_jsx_runtime();
8
8
  function InsightsErrorAlert({ fallbackTitle }) {
9
9
  return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Alert, {
@@ -1,11 +1,11 @@
1
1
  import { i as __toESM } from "../_runtime.mjs";
2
2
  import { c as createServerFn } from "./createServerFn-B2hcXoPM.mjs";
3
3
  import { ht as require_react, mt as require_jsx_runtime } from "../_libs/@base-ui/react+[...].mjs";
4
- import { O as cn, k as createSsrRpc } from "./createSsrRpc-D6Cvyuao.mjs";
4
+ import { O as cn, k as createSsrRpc } from "./createSsrRpc-CsD3w1Kc.mjs";
5
5
  import { i as useQueryClient, n as useQuery, t as useMutation } from "../_libs/tanstack__react-query.mjs";
6
6
  import { t as readRecoveryInput } from "./insights-recovery-Cv6RSyeR.mjs";
7
7
  import { c as Tooltip, l as Legend, u as ResponsiveContainer } from "../_libs/recharts+[...].mjs";
8
- //#region node_modules/.nitro/vite/services/ssr/assets/api-t38lU_R4.js
8
+ //#region node_modules/.nitro/vite/services/ssr/assets/api-Bl_-f3hz.js
9
9
  var import_react = /* @__PURE__ */ __toESM(require_react());
10
10
  var import_jsx_runtime = require_jsx_runtime();
11
11
  function readBundleActivityInput(inputs) {