@perses-dev/logs-table-plugin 0.1.0
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.
- package/LICENSE +201 -0
- package/README.md +41 -0
- package/__mf/css/async/2341.d3010b86.css +1 -0
- package/__mf/css/async/5263.d3010b86.css +1 -0
- package/__mf/css/async/6759.d3010b86.css +1 -0
- package/__mf/font/lato-all-300-normal.322bdf14.woff +0 -0
- package/__mf/font/lato-all-400-normal.63513b00.woff +0 -0
- package/__mf/font/lato-all-700-normal.bb27db94.woff +0 -0
- package/__mf/font/lato-all-900-normal.a27049a3.woff +0 -0
- package/__mf/font/lato-latin-300-normal.c5195215.woff2 +0 -0
- package/__mf/font/lato-latin-400-normal.b7ffde23.woff2 +0 -0
- package/__mf/font/lato-latin-700-normal.d5eb20bc.woff2 +0 -0
- package/__mf/font/lato-latin-900-normal.d884a71c.woff2 +0 -0
- package/__mf/font/lato-latin-ext-300-normal.abcc64a9.woff2 +0 -0
- package/__mf/font/lato-latin-ext-400-normal.6ebed106.woff2 +0 -0
- package/__mf/font/lato-latin-ext-700-normal.8697d1d5.woff2 +0 -0
- package/__mf/font/lato-latin-ext-900-normal.20a2b415.woff2 +0 -0
- package/__mf/js/LogsTable.a40d0de0.js +5 -0
- package/__mf/js/async/1143.f9fce74a.js +1 -0
- package/__mf/js/async/1553.9685a45a.js +1 -0
- package/__mf/js/async/1640.45bfe57d.js +1 -0
- package/__mf/js/async/1964.ad38a6aa.js +2 -0
- package/__mf/js/async/1964.ad38a6aa.js.LICENSE.txt +9 -0
- package/__mf/js/async/2292.0c8c55a4.js +2 -0
- package/__mf/js/async/2292.0c8c55a4.js.LICENSE.txt +24 -0
- package/__mf/js/async/2641.888f4d12.js +1 -0
- package/__mf/js/async/2651.c6ed9c77.js +1 -0
- package/__mf/js/async/2836.59bc5080.js +22 -0
- package/__mf/js/async/2836.59bc5080.js.LICENSE.txt +9 -0
- package/__mf/js/async/2849.eafadb0f.js +2 -0
- package/__mf/js/async/2849.eafadb0f.js.LICENSE.txt +37 -0
- package/__mf/js/async/3224.dc93eeb9.js +1 -0
- package/__mf/js/async/3474.cee21897.js +1 -0
- package/__mf/js/async/3863.98efb1d2.js +2 -0
- package/__mf/js/async/3863.98efb1d2.js.LICENSE.txt +9 -0
- package/__mf/js/async/3960.a5f4b6df.js +2 -0
- package/__mf/js/async/3960.a5f4b6df.js.LICENSE.txt +8 -0
- package/__mf/js/async/4062.75b22d96.js +1 -0
- package/__mf/js/async/4075.3f3a9fce.js +1 -0
- package/__mf/js/async/4168.4ce3a017.js +2 -0
- package/__mf/js/async/4238.3f9124d4.js +1 -0
- package/__mf/js/async/5214.4ce95313.js +1 -0
- package/__mf/js/async/5409.360142aa.js +1 -0
- package/__mf/js/async/5981.ef618ada.js +2 -0
- package/__mf/js/async/5981.ef618ada.js.LICENSE.txt +8 -0
- package/__mf/js/async/6292.7a6b1e5f.js +1 -0
- package/__mf/js/async/6569.74fed404.js +1 -0
- package/__mf/js/async/6770.344b116a.js +1 -0
- package/__mf/js/async/694.f6a520bb.js +1 -0
- package/__mf/js/async/6981.aaaaabbb.js +110 -0
- package/__mf/js/async/6981.aaaaabbb.js.LICENSE.txt +27 -0
- package/__mf/js/async/711.d4a39c83.js +1 -0
- package/__mf/js/async/738.1432e533.js +1 -0
- package/__mf/js/async/7482.e107e534.js +2 -0
- package/__mf/js/async/7482.e107e534.js.LICENSE.txt +9 -0
- package/__mf/js/async/7623.43e701ce.js +1 -0
- package/__mf/js/async/7740.213e06a7.js +1 -0
- package/__mf/js/async/8488.c1d50599.js +1 -0
- package/__mf/js/async/9173.947266e0.js +2 -0
- package/__mf/js/async/9173.947266e0.js.LICENSE.txt +19 -0
- package/__mf/js/async/9370.e9cdeb7d.js +7 -0
- package/__mf/js/async/9370.e9cdeb7d.js.LICENSE.txt +21 -0
- package/__mf/js/async/9815.6b212862.js +37 -0
- package/__mf/js/async/__federation_expose_LogsTable.86c05a98.js +1 -0
- package/__mf/js/async/lib-router.c75d9d73.js +2 -0
- package/__mf/js/async/lib-router.c75d9d73.js.LICENSE.txt +32 -0
- package/__mf/js/main.3283cbfb.js +5 -0
- package/lib/LogsTable.d.ts +4 -0
- package/lib/LogsTable.d.ts.map +1 -0
- package/lib/LogsTable.js +33 -0
- package/lib/LogsTable.js.map +1 -0
- package/lib/LogsTableComponent.d.ts +4 -0
- package/lib/LogsTableComponent.d.ts.map +1 -0
- package/lib/LogsTableComponent.js +35 -0
- package/lib/LogsTableComponent.js.map +1 -0
- package/lib/LogsTablePanel.d.ts +4 -0
- package/lib/LogsTablePanel.d.ts.map +1 -0
- package/lib/LogsTablePanel.js +34 -0
- package/lib/LogsTablePanel.js.map +1 -0
- package/lib/LogsTableSettingsEditor.d.ts +7 -0
- package/lib/LogsTableSettingsEditor.d.ts.map +1 -0
- package/lib/LogsTableSettingsEditor.js +49 -0
- package/lib/LogsTableSettingsEditor.js.map +1 -0
- package/lib/bootstrap.d.ts +2 -0
- package/lib/bootstrap.d.ts.map +1 -0
- package/lib/bootstrap.js +19 -0
- package/lib/bootstrap.js.map +1 -0
- package/lib/cjs/LogsTable.js +41 -0
- package/lib/cjs/LogsTableComponent.js +43 -0
- package/lib/cjs/LogsTablePanel.js +42 -0
- package/lib/cjs/LogsTableSettingsEditor.js +57 -0
- package/lib/cjs/bootstrap.js +26 -0
- package/lib/cjs/components/EmptyLogsState.js +49 -0
- package/lib/cjs/components/LogRow/LogDetailsTable.js +71 -0
- package/lib/cjs/components/LogRow/LogRow.js +163 -0
- package/lib/cjs/components/LogRow/LogTimestamp.js +44 -0
- package/lib/cjs/components/LogRow/LogsStyles.js +85 -0
- package/lib/cjs/components/LogRow/index.js +37 -0
- package/lib/cjs/components/LogsList.js +44 -0
- package/lib/cjs/components/VirtualizedLogsList.js +64 -0
- package/lib/cjs/components/hooks/useExpandedRows.js +45 -0
- package/lib/cjs/env.d.js +14 -0
- package/lib/cjs/getPluginModule.js +27 -0
- package/lib/cjs/index-federation.js +55 -0
- package/lib/cjs/index.js +26 -0
- package/lib/cjs/model.js +16 -0
- package/lib/cjs/setup-tests.js +19 -0
- package/lib/cjs/test/mock-query-results.js +76 -0
- package/lib/components/EmptyLogsState.d.ts +7 -0
- package/lib/components/EmptyLogsState.d.ts.map +1 -0
- package/lib/components/EmptyLogsState.js +36 -0
- package/lib/components/EmptyLogsState.js.map +1 -0
- package/lib/components/LogRow/LogDetailsTable.d.ts +8 -0
- package/lib/components/LogRow/LogDetailsTable.d.ts.map +1 -0
- package/lib/components/LogRow/LogDetailsTable.js +58 -0
- package/lib/components/LogRow/LogDetailsTable.js.map +1 -0
- package/lib/components/LogRow/LogRow.d.ts +14 -0
- package/lib/components/LogRow/LogRow.d.ts.map +1 -0
- package/lib/components/LogRow/LogRow.js +109 -0
- package/lib/components/LogRow/LogRow.js.map +1 -0
- package/lib/components/LogRow/LogTimestamp.d.ts +7 -0
- package/lib/components/LogRow/LogTimestamp.d.ts.map +1 -0
- package/lib/components/LogRow/LogTimestamp.js +31 -0
- package/lib/components/LogRow/LogTimestamp.js.map +1 -0
- package/lib/components/LogRow/LogsStyles.d.ts +21 -0
- package/lib/components/LogRow/LogsStyles.d.ts.map +1 -0
- package/lib/components/LogRow/LogsStyles.js +63 -0
- package/lib/components/LogRow/LogsStyles.js.map +1 -0
- package/lib/components/LogRow/index.d.ts +3 -0
- package/lib/components/LogRow/index.d.ts.map +1 -0
- package/lib/components/LogRow/index.js +16 -0
- package/lib/components/LogRow/index.js.map +1 -0
- package/lib/components/LogsList.d.ts +10 -0
- package/lib/components/LogsList.d.ts.map +1 -0
- package/lib/components/LogsList.js +31 -0
- package/lib/components/LogsList.js.map +1 -0
- package/lib/components/VirtualizedLogsList.d.ts +12 -0
- package/lib/components/VirtualizedLogsList.d.ts.map +1 -0
- package/lib/components/VirtualizedLogsList.js +51 -0
- package/lib/components/VirtualizedLogsList.js.map +1 -0
- package/lib/components/hooks/useExpandedRows.d.ts +6 -0
- package/lib/components/hooks/useExpandedRows.d.ts.map +1 -0
- package/lib/components/hooks/useExpandedRows.js +37 -0
- package/lib/components/hooks/useExpandedRows.js.map +1 -0
- package/lib/env.d.js +15 -0
- package/lib/env.d.js.map +1 -0
- package/lib/getPluginModule.d.ts +6 -0
- package/lib/getPluginModule.d.ts.map +1 -0
- package/lib/getPluginModule.js +16 -0
- package/lib/getPluginModule.js.map +1 -0
- package/lib/index-federation.d.ts +1 -0
- package/lib/index-federation.d.ts.map +1 -0
- package/lib/index-federation.js +15 -0
- package/lib/index-federation.js.map +1 -0
- package/lib/index.d.ts +4 -0
- package/lib/index.d.ts.map +1 -0
- package/lib/index.js +5 -0
- package/lib/index.js.map +1 -0
- package/lib/model.d.ts +15 -0
- package/lib/model.d.ts.map +1 -0
- package/lib/model.js +15 -0
- package/lib/model.js.map +1 -0
- package/lib/setup-tests.d.ts +2 -0
- package/lib/setup-tests.d.ts.map +1 -0
- package/lib/setup-tests.js +17 -0
- package/lib/setup-tests.js.map +1 -0
- package/lib/test/mock-query-results.d.ts +14 -0
- package/lib/test/mock-query-results.d.ts.map +1 -0
- package/lib/test/mock-query-results.js +60 -0
- package/lib/test/mock-query-results.js.map +1 -0
- package/mf-manifest.json +336 -0
- package/mf-stats.json +390 -0
- package/package.json +61 -0
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* react-table
|
|
3
|
+
*
|
|
4
|
+
* Copyright (c) TanStack
|
|
5
|
+
*
|
|
6
|
+
* This source code is licensed under the MIT license found in the
|
|
7
|
+
* LICENSE.md file in the root directory of this source tree.
|
|
8
|
+
*
|
|
9
|
+
* @license MIT
|
|
10
|
+
*/
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* table-core
|
|
14
|
+
*
|
|
15
|
+
* Copyright (c) TanStack
|
|
16
|
+
*
|
|
17
|
+
* This source code is licensed under the MIT license found in the
|
|
18
|
+
* LICENSE.md file in the root directory of this source tree.
|
|
19
|
+
*
|
|
20
|
+
* @license MIT
|
|
21
|
+
*/
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
(self.chunk_LogsTable=self.chunk_LogsTable||[]).push([["9815"],{82707:function(e,t,o){"use strict";o.d(t,{Z:()=>O});var r=o(54538),a=o(90496),n=o(82267),p=o(16838),i=o(99140),s=o(90247),l=o(24246);let c=(0,s.Z)((0,l.jsx)("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),u=(0,s.Z)((0,l.jsx)("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),d=(0,s.Z)((0,l.jsx)("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");var m=o(51640),h=o(73037),f=o(44124),g=o(6749);function v(e){return(0,g.ZP)("MuiCheckbox",e)}let y=(0,f.Z)("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]);var Z=o(12709),b=o(82319),w=o(90433),x=o(51751),R=o(27834),T=o(16351);let M=(0,Z.ZP)(i.Z,{shouldForwardProp:e=>(0,h.Z)(e)||"classes"===e,name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:o}=e;return[t.root,o.indeterminate&&t.indeterminate,t[`size${(0,m.Z)(o.size)}`],"default"!==o.color&&t[`color${(0,m.Z)(o.color)}`]]}})((0,b.Z)(({theme:e})=>({color:(e.vars||e).palette.text.secondary,variants:[{props:{color:"default",disableRipple:!1},style:{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,p.Fq)(e.palette.action.active,e.palette.action.hoverOpacity)}}},...Object.entries(e.palette).filter((0,w.Z)()).map(([t])=>({props:{color:t,disableRipple:!1},style:{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,p.Fq)(e.palette[t].main,e.palette.action.hoverOpacity)}}})),...Object.entries(e.palette).filter((0,w.Z)()).map(([t])=>({props:{color:t},style:{[`&.${y.checked}, &.${y.indeterminate}`]:{color:(e.vars||e).palette[t].main},[`&.${y.disabled}`]:{color:(e.vars||e).palette.action.disabled}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]}))),k=(0,l.jsx)(u,{}),C=(0,l.jsx)(c,{}),$=(0,l.jsx)(d,{}),O=r.forwardRef(function(e,t){let o=(0,x.i)({props:e,name:"MuiCheckbox"}),{checkedIcon:p=k,color:i="primary",icon:s=C,indeterminate:c=!1,indeterminateIcon:u=$,inputProps:d,size:h="medium",disableRipple:f=!1,className:g,slots:y={},slotProps:Z={},...b}=o,w=c?u:s,O=c?u:p,P={...o,disableRipple:f,color:i,indeterminate:c,size:h},S=(e=>{let{classes:t,indeterminate:o,color:r,size:a}=e,p={root:["root",o&&"indeterminate",`color${(0,m.Z)(r)}`,`size${(0,m.Z)(a)}`]},i=(0,n.Z)(p,v,t);return{...t,...i}})(P),H=Z.input??d,[L,V]=(0,T.Z)("root",{ref:t,elementType:M,className:(0,a.Z)(S.root,g),shouldForwardComponentProp:!0,externalForwardedProps:{slots:y,slotProps:Z,...b},ownerState:P,additionalProps:{type:"checkbox",icon:r.cloneElement(w,{fontSize:w.props.fontSize??h}),checkedIcon:r.cloneElement(O,{fontSize:O.props.fontSize??h}),disableRipple:f,slots:y,slotProps:{input:(0,R.Z)("function"==typeof H?H(P):H,{"data-indeterminate":c})}}});return(0,l.jsx)(L,{...V,classes:S})})},757:function(e,t,o){"use strict";o.d(t,{Z:()=>p,w:()=>n});var r=o(44124),a=o(6749);function n(e){return(0,a.ZP)("MuiLink",e)}let p=(0,r.Z)("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"])},66224:function(e,t,o){"use strict";o.d(t,{Z:()=>b});var r=o(54538),a=o(90496),n=o(82267),p=o(16838),i=o(72116),s=o(12709),l=o(82319),c=o(51751),u=o(44124),d=o(6749);function m(e){return(0,d.ZP)("MuiSkeleton",e)}(0,u.Z)("MuiSkeleton",["root","text","rectangular","rounded","circular","pulse","wave","withChildren","fitContent","heightAuto"]);var h=o(24246);let f=(0,i.keyframes)`
|
|
2
|
+
0% {
|
|
3
|
+
opacity: 1;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
50% {
|
|
7
|
+
opacity: 0.4;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
100% {
|
|
11
|
+
opacity: 1;
|
|
12
|
+
}
|
|
13
|
+
`,g=(0,i.keyframes)`
|
|
14
|
+
0% {
|
|
15
|
+
transform: translateX(-100%);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
50% {
|
|
19
|
+
/* +0.5s of delay between each loop */
|
|
20
|
+
transform: translateX(100%);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
100% {
|
|
24
|
+
transform: translateX(100%);
|
|
25
|
+
}
|
|
26
|
+
`,v="string"!=typeof f?(0,i.css)`
|
|
27
|
+
animation: ${f} 2s ease-in-out 0.5s infinite;
|
|
28
|
+
`:null,y="string"!=typeof g?(0,i.css)`
|
|
29
|
+
&::after {
|
|
30
|
+
animation: ${g} 2s linear 0.5s infinite;
|
|
31
|
+
}
|
|
32
|
+
`:null,Z=(0,s.ZP)("span",{name:"MuiSkeleton",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:o}=e;return[t.root,t[o.variant],!1!==o.animation&&t[o.animation],o.hasChildren&&t.withChildren,o.hasChildren&&!o.width&&t.fitContent,o.hasChildren&&!o.height&&t.heightAuto]}})((0,l.Z)(({theme:e})=>{let t=String(e.shape.borderRadius).match(/[\d.\-+]*\s*(.*)/)[1]||"px",o=parseFloat(e.shape.borderRadius);return{display:"block",backgroundColor:e.vars?e.vars.palette.Skeleton.bg:(0,p.Fq)(e.palette.text.primary,"light"===e.palette.mode?.11:.13),height:"1.2em",variants:[{props:{variant:"text"},style:{marginTop:0,marginBottom:0,height:"auto",transformOrigin:"0 55%",transform:"scale(1, 0.60)",borderRadius:`${o}${t}/${Math.round(o/.6*10)/10}${t}`,"&:empty:before":{content:'"\\00a0"'}}},{props:{variant:"circular"},style:{borderRadius:"50%"}},{props:{variant:"rounded"},style:{borderRadius:(e.vars||e).shape.borderRadius}},{props:({ownerState:e})=>e.hasChildren,style:{"& > *":{visibility:"hidden"}}},{props:({ownerState:e})=>e.hasChildren&&!e.width,style:{maxWidth:"fit-content"}},{props:({ownerState:e})=>e.hasChildren&&!e.height,style:{height:"auto"}},{props:{animation:"pulse"},style:v||{animation:`${f} 2s ease-in-out 0.5s infinite`}},{props:{animation:"wave"},style:{position:"relative",overflow:"hidden",WebkitMaskImage:"-webkit-radial-gradient(white, black)","&::after":{background:`linear-gradient(
|
|
33
|
+
90deg,
|
|
34
|
+
transparent,
|
|
35
|
+
${(e.vars||e).palette.action.hover},
|
|
36
|
+
transparent
|
|
37
|
+
)`,content:'""',position:"absolute",transform:"translateX(-100%)",bottom:0,left:0,right:0,top:0}}},{props:{animation:"wave"},style:y||{"&::after":{animation:`${g} 2s linear 0.5s infinite`}}}]}})),b=r.forwardRef(function(e,t){let o=(0,c.i)({props:e,name:"MuiSkeleton"}),{animation:r="pulse",className:p,component:i="span",height:s,style:l,variant:u="text",width:d,...f}=o,g={...o,animation:r,component:i,variant:u,hasChildren:!!f.children},v=(e=>{let{classes:t,variant:o,animation:r,hasChildren:a,width:p,height:i}=e;return(0,n.Z)({root:["root",o,r,a&&"withChildren",a&&!p&&"fitContent",a&&!i&&"heightAuto"]},m,t)})(g);return(0,h.jsx)(Z,{as:i,ref:t,className:(0,a.Z)(v.root,p),ownerState:g,...f,style:{width:d,height:s,...l}})})},59019:function(e,t,o){"use strict";o.d(t,{Z:()=>m});var r=o(54538),a=o(90496),n=o(82267),p=o(12709),i=o(51751),s=o(44124),l=o(6749);function c(e){return(0,l.ZP)("MuiTableContainer",e)}(0,s.Z)("MuiTableContainer",["root"]);var u=o(24246);let d=(0,p.ZP)("div",{name:"MuiTableContainer",slot:"Root",overridesResolver:(e,t)=>t.root})({width:"100%",overflowX:"auto"}),m=r.forwardRef(function(e,t){let o=(0,i.i)({props:e,name:"MuiTableContainer"}),{className:r,component:p="div",...s}=o,l={...o,component:p},m=(e=>{let{classes:t}=e;return(0,n.Z)({root:["root"]},c,t)})(l);return(0,u.jsx)(d,{ref:t,as:p,className:(0,a.Z)(m.root,r),ownerState:l,...s})})},31889:function(e,t,o){"use strict";o.d(t,{Z:()=>g});var r=o(54538),a=o(90496),n=o(82267),p=o(32641),i=o(12709),s=o(51751),l=o(44124),c=o(6749);function u(e){return(0,c.ZP)("MuiTableHead",e)}(0,l.Z)("MuiTableHead",["root"]);var d=o(24246);let m=(0,i.ZP)("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-header-group"}),h={variant:"head"},f="thead",g=r.forwardRef(function(e,t){let o=(0,s.i)({props:e,name:"MuiTableHead"}),{className:r,component:i=f,...l}=o,c={...o,component:i},g=(e=>{let{classes:t}=e;return(0,n.Z)({root:["root"]},u,t)})(c);return(0,d.jsx)(p.Z.Provider,{value:h,children:(0,d.jsx)(m,{as:i,className:(0,a.Z)(g.root,r),ref:t,role:i===f?null:"rowgroup",ownerState:c,...l})})})},32964:function(e,t,o){"use strict";o.d(t,{Z:()=>H});var r=o(54538),a=o(90496),n=o(47126),p=o(82267),i=o(16838),s=o(6595),l=o(74111),c=o(94680),u=o(12709),d=o(94776),m=o(82319),h=o(51751),f=o(51640),g=o(23382),v=o(75651),y=o(67151),Z=o(51183),b=o(56839),w=o(18817),x=o(16351),R=o(87143),T=o(24246);let M=(0,u.ZP)(v.Z,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{let{ownerState:o}=e;return[t.popper,!o.disableInteractive&&t.popperInteractive,o.arrow&&t.popperArrow,!o.open&&t.popperClose]}})((0,m.Z)(({theme:e})=>({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none",variants:[{props:({ownerState:e})=>!e.disableInteractive,style:{pointerEvents:"auto"}},{props:({open:e})=>!e,style:{pointerEvents:"none"}},{props:({ownerState:e})=>e.arrow,style:{[`&[data-popper-placement*="bottom"] .${R.Z.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${R.Z.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${R.Z.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}},[`&[data-popper-placement*="left"] .${R.Z.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}}}},{props:({ownerState:e})=>e.arrow&&!e.isRtl,style:{[`&[data-popper-placement*="right"] .${R.Z.arrow}`]:{left:0,marginLeft:"-0.71em"}}},{props:({ownerState:e})=>e.arrow&&!!e.isRtl,style:{[`&[data-popper-placement*="right"] .${R.Z.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:e})=>e.arrow&&!e.isRtl,style:{[`&[data-popper-placement*="left"] .${R.Z.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:e})=>e.arrow&&!!e.isRtl,style:{[`&[data-popper-placement*="left"] .${R.Z.arrow}`]:{left:0,marginLeft:"-0.71em"}}}]}))),k=(0,u.ZP)("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{let{ownerState:o}=e;return[t.tooltip,o.touch&&t.touch,o.arrow&&t.tooltipArrow,t[`tooltipPlacement${(0,f.Z)(o.placement.split("-")[0])}`]]}})((0,m.Z)(({theme:e})=>({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:(0,i.Fq)(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium,[`.${R.Z.popper}[data-popper-placement*="left"] &`]:{transformOrigin:"right center"},[`.${R.Z.popper}[data-popper-placement*="right"] &`]:{transformOrigin:"left center"},[`.${R.Z.popper}[data-popper-placement*="top"] &`]:{transformOrigin:"center bottom",marginBottom:"14px"},[`.${R.Z.popper}[data-popper-placement*="bottom"] &`]:{transformOrigin:"center top",marginTop:"14px"},variants:[{props:({ownerState:e})=>e.arrow,style:{position:"relative",margin:0}},{props:({ownerState:e})=>e.touch,style:{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:`${Math.round(16/14*1e5)/1e5}em`,fontWeight:e.typography.fontWeightRegular}},{props:({ownerState:e})=>!e.isRtl,style:{[`.${R.Z.popper}[data-popper-placement*="left"] &`]:{marginRight:"14px"},[`.${R.Z.popper}[data-popper-placement*="right"] &`]:{marginLeft:"14px"}}},{props:({ownerState:e})=>!e.isRtl&&e.touch,style:{[`.${R.Z.popper}[data-popper-placement*="left"] &`]:{marginRight:"24px"},[`.${R.Z.popper}[data-popper-placement*="right"] &`]:{marginLeft:"24px"}}},{props:({ownerState:e})=>!!e.isRtl,style:{[`.${R.Z.popper}[data-popper-placement*="left"] &`]:{marginLeft:"14px"},[`.${R.Z.popper}[data-popper-placement*="right"] &`]:{marginRight:"14px"}}},{props:({ownerState:e})=>!!e.isRtl&&e.touch,style:{[`.${R.Z.popper}[data-popper-placement*="left"] &`]:{marginLeft:"24px"},[`.${R.Z.popper}[data-popper-placement*="right"] &`]:{marginRight:"24px"}}},{props:({ownerState:e})=>e.touch,style:{[`.${R.Z.popper}[data-popper-placement*="top"] &`]:{marginBottom:"24px"}}},{props:({ownerState:e})=>e.touch,style:{[`.${R.Z.popper}[data-popper-placement*="bottom"] &`]:{marginTop:"24px"}}}]}))),C=(0,u.ZP)("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})((0,m.Z)(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:(0,i.Fq)(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}))),$=!1,O=new n.V,P={x:0,y:0};function S(e,t){return(o,...r)=>{t&&t(o,...r),e(o,...r)}}let H=r.forwardRef(function(e,t){let o=(0,h.i)({props:e,name:"MuiTooltip"}),{arrow:i=!1,children:u,classes:m,components:H={},componentsProps:L={},describeChild:V=!1,disableFocusListener:j=!1,disableHoverListener:E=!1,disableInteractive:z=!1,disableTouchListener:A=!1,enterDelay:I=100,enterNextDelay:F=0,enterTouchDelay:W=700,followCursor:_=!1,id:B,leaveDelay:N=0,leaveTouchDelay:q=1500,onClose:U,onOpen:X,open:D,placement:Q="bottom",PopperComponent:Y,PopperProps:G={},slotProps:J={},slots:K={},title:ee,TransitionComponent:et,TransitionProps:eo,...er}=o,ea=r.isValidElement(u)?u:(0,T.jsx)("span",{children:u}),en=(0,d.Z)(),ep=(0,s.V)(),[ei,es]=r.useState(),[el,ec]=r.useState(null),eu=r.useRef(!1),ed=z||_,em=(0,n.Z)(),eh=(0,n.Z)(),ef=(0,n.Z)(),eg=(0,n.Z)(),[ev,ey]=(0,w.Z)({controlled:D,default:!1,name:"Tooltip",state:"open"}),eZ=ev,eb=(0,b.Z)(B),ew=r.useRef(),ex=(0,y.Z)(()=>{void 0!==ew.current&&(document.body.style.WebkitUserSelect=ew.current,ew.current=void 0),eg.clear()});r.useEffect(()=>ex,[ex]);let eR=e=>{O.clear(),$=!0,ey(!0),X&&!eZ&&X(e)},eT=(0,y.Z)(e=>{O.start(800+N,()=>{$=!1}),ey(!1),U&&eZ&&U(e),em.start(en.transitions.duration.shortest,()=>{eu.current=!1})}),eM=e=>{eu.current&&"touchstart"!==e.type||(ei&&ei.removeAttribute("title"),eh.clear(),ef.clear(),I||$&&F?eh.start($?F:I,()=>{eR(e)}):eR(e))},ek=e=>{eh.clear(),ef.start(N,()=>{eT(e)})},[,eC]=r.useState(!1),e$=e=>{(0,l.Z)(e.target)||(eC(!1),ek(e))},eO=e=>{ei||es(e.currentTarget),(0,l.Z)(e.target)&&(eC(!0),eM(e))},eP=e=>{eu.current=!0;let t=ea.props;t.onTouchStart&&t.onTouchStart(e)};r.useEffect(()=>{if(eZ)return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)};function e(e){"Escape"===e.key&&eT(e)}},[eT,eZ]);let eS=(0,Z.Z)((0,c.Z)(ea),es,t);ee||0===ee||(eZ=!1);let eH=r.useRef(),eL={},eV="string"==typeof ee;V?(eL.title=eZ||!eV||E?null:ee,eL["aria-describedby"]=eZ?eb:null):(eL["aria-label"]=eV?ee:null,eL["aria-labelledby"]=eZ&&!eV?eb:null);let ej={...eL,...er,...ea.props,className:(0,a.Z)(er.className,ea.props.className),onTouchStart:eP,ref:eS,..._?{onMouseMove:e=>{let t=ea.props;t.onMouseMove&&t.onMouseMove(e),P={x:e.clientX,y:e.clientY},eH.current&&eH.current.update()}}:{}},eE={};A||(ej.onTouchStart=e=>{eP(e),ef.clear(),em.clear(),ex(),ew.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",eg.start(W,()=>{document.body.style.WebkitUserSelect=ew.current,eM(e)})},ej.onTouchEnd=e=>{ea.props.onTouchEnd&&ea.props.onTouchEnd(e),ex(),ef.start(q,()=>{eT(e)})}),!E&&(ej.onMouseOver=S(eM,ej.onMouseOver),ej.onMouseLeave=S(ek,ej.onMouseLeave),ed||(eE.onMouseOver=eM,eE.onMouseLeave=ek)),!j&&(ej.onFocus=S(eO,ej.onFocus),ej.onBlur=S(e$,ej.onBlur),ed||(eE.onFocus=eO,eE.onBlur=e$));let ez={...o,isRtl:ep,arrow:i,disableInteractive:ed,placement:Q,PopperComponentProp:Y,touch:eu.current},eA="function"==typeof J.popper?J.popper(ez):J.popper,eI=r.useMemo(()=>{let e=[{name:"arrow",enabled:!!el,options:{element:el,padding:4}}];return G.popperOptions?.modifiers&&(e=e.concat(G.popperOptions.modifiers)),eA?.popperOptions?.modifiers&&(e=e.concat(eA.popperOptions.modifiers)),{...G.popperOptions,...eA?.popperOptions,modifiers:e}},[el,G.popperOptions,eA?.popperOptions]),eF=(e=>{let{classes:t,disableInteractive:o,arrow:r,touch:a,placement:n}=e,i={popper:["popper",!o&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",a&&"touch",`tooltipPlacement${(0,f.Z)(n.split("-")[0])}`],arrow:["arrow"]};return(0,p.Z)(i,R.Q,t)})(ez),eW="function"==typeof J.transition?J.transition(ez):J.transition,e_={slots:{popper:H.Popper,transition:H.Transition??et,tooltip:H.Tooltip,arrow:H.Arrow,...K},slotProps:{arrow:J.arrow??L.arrow,popper:{...G,...eA??L.popper},tooltip:J.tooltip??L.tooltip,transition:{...eo,...eW??L.transition}}},[eB,eN]=(0,x.Z)("popper",{elementType:M,externalForwardedProps:e_,ownerState:ez,className:(0,a.Z)(eF.popper,G?.className)}),[eq,eU]=(0,x.Z)("transition",{elementType:g.Z,externalForwardedProps:e_,ownerState:ez}),[eX,eD]=(0,x.Z)("tooltip",{elementType:k,className:eF.tooltip,externalForwardedProps:e_,ownerState:ez}),[eQ,eY]=(0,x.Z)("arrow",{elementType:C,className:eF.arrow,externalForwardedProps:e_,ownerState:ez,ref:ec});return(0,T.jsxs)(r.Fragment,{children:[r.cloneElement(ea,ej),(0,T.jsx)(eB,{as:Y??v.Z,placement:Q,anchorEl:_?{getBoundingClientRect:()=>({top:P.y,left:P.x,right:P.x,bottom:P.y,width:0,height:0})}:ei,popperRef:eH,open:!!ei&&eZ,id:eb,transition:!0,...eE,...eN,popperOptions:eI,children:({TransitionProps:e})=>(0,T.jsx)(eq,{timeout:en.transitions.duration.shorter,...e,...eU,children:(0,T.jsxs)(eX,{...eD,children:[ee,i?(0,T.jsx)(eQ,{...eY}):null]})})})]})})},87143:function(e,t,o){"use strict";o.d(t,{Q:()=>n,Z:()=>p});var r=o(44124),a=o(6749);function n(e){return(0,a.ZP)("MuiTooltip",e)}let p=(0,r.Z)("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"])},39398:function(e,t,o){"use strict";var r;t.default=void 0,t.default=(0,((r=o(30265))&&r.__esModule?r:{default:r}).default)("M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20,12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M11,17H13V11H11V17Z","InformationOutline")},75186:function(e,t,o){"use strict";var r;t.default=void 0,t.default=(0,((r=o(30265))&&r.__esModule?r:{default:r}).default)("M16,12V4H17V2H7V4H8V12L6,14V16H11.2V22H12.8V16H18V14L16,12M8.8,14L10,12.8V4H14V12.8L15.2,14H8.8Z","PinOutline")},58772:function(e,t,o){"use strict";var r=o(90331);function a(){}function n(){}n.resetWarningCache=a,e.exports=function(){function e(e,t,o,a,n,p){if(p!==r){var i=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw i.name="Invariant Violation",i}}function t(){return e}e.isRequired=e;var o={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:n,resetWarningCache:a};return o.PropTypes=o,o}},23615:function(e,t,o){e.exports=o(58772)()},90331:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.chunk_LogsTable=self.chunk_LogsTable||[]).push([["8454"],{33711:function(e,t,r){r.d(t,{Z:()=>b});var n=r(54538),i=r(90496),o=r(41825),l=r(47126),a=r(82267),s=r(12709),d=r(94776),p=r(82319),x=r(51751),u=r(39508),h=r(42777),c=r(51183),g=r(44124),m=r(6749);function w(e){return(0,m.ZP)("MuiCollapse",e)}(0,g.Z)("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);var f=r(24246);let y=(0,s.ZP)("div",{name:"MuiCollapse",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,t[r.orientation],"entered"===r.state&&t.entered,"exited"===r.state&&!r.in&&"0px"===r.collapsedSize&&t.hidden]}})((0,p.Z)(({theme:e})=>({height:0,overflow:"hidden",transition:e.transitions.create("height"),variants:[{props:{orientation:"horizontal"},style:{height:"auto",width:0,transition:e.transitions.create("width")}},{props:{state:"entered"},style:{height:"auto",overflow:"visible"}},{props:{state:"entered",orientation:"horizontal"},style:{width:"auto"}},{props:({ownerState:e})=>"exited"===e.state&&!e.in&&"0px"===e.collapsedSize,style:{visibility:"hidden"}}]}))),v=(0,s.ZP)("div",{name:"MuiCollapse",slot:"Wrapper",overridesResolver:(e,t)=>t.wrapper})({display:"flex",width:"100%",variants:[{props:{orientation:"horizontal"},style:{width:"auto",height:"100%"}}]}),j=(0,s.ZP)("div",{name:"MuiCollapse",slot:"WrapperInner",overridesResolver:(e,t)=>t.wrapperInner})({width:"100%",variants:[{props:{orientation:"horizontal"},style:{width:"auto",height:"100%"}}]}),Z=n.forwardRef(function(e,t){let r=(0,x.i)({props:e,name:"MuiCollapse"}),{addEndListener:s,children:p,className:g,collapsedSize:m="0px",component:Z,easing:b,in:C,onEnter:S,onEntered:E,onEntering:z,onExit:T,onExited:k,onExiting:I,orientation:P="vertical",style:D,timeout:$=u.x9.standard,TransitionComponent:O=o.ZP,...R}=r,W={...r,orientation:P,collapsedSize:m},F=(e=>{let{orientation:t,classes:r}=e,n={root:["root",`${t}`],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",`${t}`],wrapperInner:["wrapperInner",`${t}`]};return(0,a.Z)(n,w,r)})(W),L=(0,d.Z)(),M=(0,l.Z)(),A=n.useRef(null),N=n.useRef(),H="number"==typeof m?`${m}px`:m,B="horizontal"===P,Q=B?"width":"height",_=n.useRef(null),q=(0,c.Z)(t,_),G=e=>t=>{if(e){let r=_.current;void 0===t?e(r):e(r,t)}},V=()=>A.current?A.current[B?"clientWidth":"clientHeight"]:0,J=G((e,t)=>{A.current&&B&&(A.current.style.position="absolute"),e.style[Q]=H,S&&S(e,t)}),K=G((e,t)=>{let r=V();A.current&&B&&(A.current.style.position="");let{duration:n,easing:i}=(0,h.C)({style:D,timeout:$,easing:b},{mode:"enter"});if("auto"===$){let t=L.transitions.getAutoHeightDuration(r);e.style.transitionDuration=`${t}ms`,N.current=t}else e.style.transitionDuration="string"==typeof n?n:`${n}ms`;e.style[Q]=`${r}px`,e.style.transitionTimingFunction=i,z&&z(e,t)}),U=G((e,t)=>{e.style[Q]="auto",E&&E(e,t)}),X=G(e=>{e.style[Q]=`${V()}px`,T&&T(e)}),Y=G(k),ee=G(e=>{let t=V(),{duration:r,easing:n}=(0,h.C)({style:D,timeout:$,easing:b},{mode:"exit"});if("auto"===$){let r=L.transitions.getAutoHeightDuration(t);e.style.transitionDuration=`${r}ms`,N.current=r}else e.style.transitionDuration="string"==typeof r?r:`${r}ms`;e.style[Q]=H,e.style.transitionTimingFunction=n,I&&I(e)});return(0,f.jsx)(O,{in:C,onEnter:J,onEntered:U,onEntering:K,onExit:X,onExited:Y,onExiting:ee,addEndListener:e=>{"auto"===$&&M.start(N.current||0,e),s&&s(_.current,e)},nodeRef:_,timeout:"auto"===$?null:$,...R,children:(e,{ownerState:t,...r})=>(0,f.jsx)(y,{as:Z,className:(0,i.Z)(F.root,g,{entered:F.entered,exited:!C&&"0px"===H&&F.hidden}[e]),style:{[B?"minWidth":"minHeight"]:H,...D},ref:q,ownerState:{...W,state:e},...r,children:(0,f.jsx)(v,{ownerState:{...W,state:e},className:F.wrapper,ref:A,children:(0,f.jsx)(j,{ownerState:{...W,state:e},className:F.wrapperInner,children:p})})})})});Z&&(Z.muiSupportAuto=!0);let b=Z},9717:function(e,t,r){r.r(t),r.d(t,{LogsTable:()=>I});var n=r(24246),i=r(52054),o=r(54538),l=r(94776),a=r(36372);let s=e=>{let{message:t="No logs to display"}=e,r=(0,l.Z)();return(0,n.jsx)(a.Z,{sx:{display:"flex",alignItems:"center",justifyContent:"center",height:"200px"},children:(0,n.jsx)(i.Z,{variant:"body2",sx:{color:r.palette.text.secondary,fontSize:"14px"},children:t})})};var d=r(83675),p=r(33711),x=r(84974);let u=e=>{let{timestamp:t}=e,r="number"==typeof t?new Date(1e3*t):new Date(/^\d+$/.test(t)?1e3*parseInt(t):Date.parse(t));return(0,n.jsx)("time",{style:{fontSize:"12px",whiteSpace:"nowrap",minWidth:"max-content"},dateTime:r.toISOString(),children:r.toISOString()})};var h=r(12709),c=r(75094);let g=(0,h.ZP)(a.Z,{shouldForwardProp:e=>"severityColor"!==e})(e=>{let{severityColor:t}=e;return{borderLeft:`4px solid ${t}`,transition:"all 0.2s ease",marginBottom:"4px",fontFamily:'"DejaVu Sans Mono", monospace'}}),m=(0,h.ZP)(a.Z,{shouldForwardProp:e=>"isExpandable"!==e})(e=>{let{theme:t,isExpandable:r}=e;return{display:"grid",gridTemplateColumns:r?"16px minmax(160px, max-content) 1fr":"minmax(160px, max-content) 1fr",alignItems:"flex-start",padding:"4px 8px",cursor:r?"pointer":"default",gap:"12px","&:hover":{backgroundColor:t.palette.action.hover}}}),w=(0,h.ZP)(c.Z,{shouldForwardProp:e=>"isExpanded"!==e})(e=>{let{theme:t,isExpanded:r}=e;return{padding:0,width:"16px",height:"16px",color:t.palette.text.secondary,transform:r?"rotate(90deg)":"rotate(0deg)",transition:"transform 0.2s ease"}}),f=(0,h.ZP)(i.Z,{shouldForwardProp:e=>"allowWrap"!==e})(e=>{let{allowWrap:t}=e;return{fontSize:"12px",flex:1,lineHeight:1.4,textAlign:"left",...t?{wordBreak:"break-word",whiteSpace:"pre-wrap",overflow:"visible",textOverflow:"unset"}:{wordBreak:"normal",whiteSpace:"nowrap"}}});var y=r(90190),v=r(56174),j=r(14968),Z=r(16838),b=r(96205);let C=e=>{let{log:t}=e,r=(0,l.Z)();return(0,n.jsx)(y.Z,{size:"small",sx:{border:`1px solid ${r.palette.divider}`,"& .MuiTableCell-root":{border:"none",padding:"6px 8px",fontSize:"12px"}},children:(0,n.jsx)(v.Z,{children:Object.entries(t).map(e=>{let[t,i]=e;return(0,n.jsxs)(j.Z,{sx:{"&:hover":{backgroundColor:(0,Z.Fq)(r.palette.action.hover,.04)}},children:[(0,n.jsx)(b.Z,{sx:{color:r.palette.text.secondary,fontWeight:500,width:"33%"},children:t}),(0,n.jsx)(b.Z,{sx:{color:r.palette.text.primary,wordBreak:"break-word",width:"67%"},children:null!=i&&""!==i?i:"--"})]},t)})})})},S=(0,o.memo)(e=>{let{log:t,isExpanded:r,index:i,onToggle:s,isExpandable:d=!0,showTime:h=!1,allowWrap:c=!1}=e,y=(0,l.Z)().palette.text.secondary,v=(0,o.useCallback)(()=>{d&&s(i)},[d,s,i]);return t?(0,n.jsxs)(g,{severityColor:y,children:[(0,n.jsxs)(m,{onClick:v,isExpandable:d,children:[d&&(0,n.jsx)(a.Z,{sx:{display:"flex",alignItems:"center",width:"16px",justifyContent:"center"},children:(0,n.jsx)(w,{size:"small",isExpanded:r,children:(0,n.jsx)(x.default,{sx:{fontSize:"12px"}})})}),(0,n.jsx)(u,{timestamp:t.timestamp}),(0,n.jsx)(a.Z,{sx:{display:"flex",gap:"10px",marginLeft:"36px"},children:(0,n.jsx)(f,{variant:"body2",allowWrap:c,children:t.line})})]}),(0,n.jsx)(p.Z,{in:r,timeout:200,children:(0,n.jsx)(a.Z,{sx:{padding:"8px"},children:(0,n.jsxs)(a.Z,{sx:{display:"grid",gridTemplateColumns:h?"8px minmax(160px, max-content) 1fr":"1fr",gap:"12px"},children:[h&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(a.Z,{}),(0,n.jsx)(a.Z,{})]}),(0,n.jsx)(a.Z,{children:(0,n.jsx)(C,{log:t.labels})})]})})})]}):null});S.displayName="LogRow";let E=e=>{let{logs:t,spec:r,expandedRows:i,onToggleExpand:o}=e,s=(0,l.Z)();return(0,n.jsx)(a.Z,{sx:{height:"100%",backgroundColor:s.palette.background.default,overflow:"hidden",boxShadow:s.shadows[1]},children:(0,n.jsx)(d.OO,{style:{height:"100%"},initialItemCount:r.showAll?t.length:void 0,totalCount:t.length,itemContent:e=>{let l=t[e];return l?(0,n.jsx)(S,{isExpandable:r.enableDetails,log:l,index:e,isExpanded:i.has(e),onToggle:o,allowWrap:r.allowWrap,showTime:r.showTime}):null}})})},z=e=>{let{logs:t,spec:r}=e,{expandedRows:i,toggleExpand:l}=(()=>{let[e,t]=(0,o.useState)(new Set);return{expandedRows:e,toggleExpand:(0,o.useCallback)(e=>{t(t=>{let r=new Set(t);return r.has(e)?r.delete(e):r.add(e),r})},[]),clearExpanded:(0,o.useCallback)(()=>{t(new Set)},[])}})();return t.length?(0,n.jsx)(E,{logs:t,spec:r,expandedRows:i,onToggleExpand:l}):(0,n.jsx)(s,{})};var T=r(6934),k=r(21078);let I={PanelComponent:function(e){var t,r;let{queryResults:o,spec:l}=e;if((null==(t=o[0])?void 0:t.data.logs)===void 0)return(0,n.jsx)(i.Z,{variant:"h3",sx:{textAlign:"center",marginTop:4},children:"No logs to display"});let a=null==(r=o[0])?void 0:r.data.logs.entries;return(0,n.jsx)(z,{logs:a,spec:l})},panelOptionsEditorComponents:[{label:"Settings",content:function(e){let{onChange:t,value:r}=e;return(0,n.jsxs)(T.OptionsEditorGrid,{children:[(0,n.jsx)(T.OptionsEditorColumn,{children:(0,n.jsx)(k.LegendOptionsEditor,{value:r.legend,onChange:e=>{t({...r,legend:e})}})}),(0,n.jsx)(T.OptionsEditorColumn,{children:(0,n.jsx)(T.ThresholdsEditor,{hideDefault:!0,thresholds:r.thresholds,onChange:e=>{t({...r,thresholds:e})}})})]})}}],supportedQueryTypes:["LogQuery"],createInitialOptions:()=>({showTime:!0,allowWrap:!0,enableDetails:!0})}}}]);
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! For license information please see lib-router.c75d9d73.js.LICENSE.txt */
|
|
2
|
+
"use strict";(self.chunk_LogsTable=self.chunk_LogsTable||[]).push([["2118"],{46403:function(e,t,r){var n,a,o,i;function l(){return(l=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}r.d(t,{AV:()=>B,Cd:()=>D,Ep:()=>v,Gn:()=>C,J0:()=>h,LX:()=>L,OF:()=>V,PP:()=>u,PQ:()=>I,RQ:()=>O,WK:()=>K,WS:()=>R,X3:()=>H,Zn:()=>k,aU:()=>n,cP:()=>y,cm:()=>T,fZ:()=>z,fp:()=>E,gx:()=>$,i3:()=>_,lX:()=>c,ov:()=>ee,p7:()=>eo,pC:()=>j,q_:()=>d,qp:()=>et,uX:()=>J}),(o=n||(n={})).Pop="POP",o.Push="PUSH",o.Replace="REPLACE";let s="popstate";function u(e){let t;void 0===e&&(e={});let{initialEntries:r=["/"],initialIndex:a,v5Compat:o=!1}=e;t=r.map((e,t)=>c(e,"string"==typeof e?null:e.state,0===t?"default":void 0));let i=u(null==a?t.length-1:a),l=n.Pop,s=null;function u(e){return Math.min(Math.max(e,0),t.length-1)}function c(e,r,n){void 0===r&&(r=null);let a=m(t?t[i].pathname:"/",e,r,n);return f("/"===a.pathname.charAt(0),"relative pathnames are not supported in memory history: "+JSON.stringify(e)),a}function d(e){return"string"==typeof e?e:v(e)}return{get index(){return i},get action(){return l},get location(){return t[i]},createHref:d,createURL:e=>new URL(d(e),"http://localhost"),encodeLocation(e){let t="string"==typeof e?y(e):e;return{pathname:t.pathname||"",search:t.search||"",hash:t.hash||""}},push(e,r){l=n.Push;let a=c(e,r);i+=1,t.splice(i,t.length,a),o&&s&&s({action:l,location:a,delta:1})},replace(e,r){l=n.Replace;let a=c(e,r);t[i]=a,o&&s&&s({action:l,location:a,delta:0})},go(e){l=n.Pop;let r=u(i+e),a=t[r];i=r,s&&s({action:l,location:a,delta:e})},listen:e=>(s=e,()=>{s=null})}}function c(e){return void 0===e&&(e={}),g(function(e,t){let{pathname:r,search:n,hash:a}=e.location;return m("",{pathname:r,search:n,hash:a},t.state&&t.state.usr||null,t.state&&t.state.key||"default")},function(e,t){return"string"==typeof t?t:v(t)},null,e)}function d(e){return void 0===e&&(e={}),g(function(e,t){let{pathname:r="/",search:n="",hash:a=""}=y(e.location.hash.substr(1));return r.startsWith("/")||r.startsWith(".")||(r="/"+r),m("",{pathname:r,search:n,hash:a},t.state&&t.state.usr||null,t.state&&t.state.key||"default")},function(e,t){let r=e.document.querySelector("base"),n="";if(r&&r.getAttribute("href")){let t=e.location.href,r=t.indexOf("#");n=-1===r?t:t.slice(0,r)}return n+"#"+("string"==typeof t?t:v(t))},function(e,t){f("/"===e.pathname.charAt(0),"relative pathnames are not supported in hash history.push("+JSON.stringify(t)+")")},e)}function h(e,t){if(!1===e||null==e)throw Error(t)}function f(e,t){if(!e){"undefined"!=typeof console&&console.warn(t);try{throw Error(t)}catch(e){}}}function p(e,t){return{usr:e.state,key:e.key,idx:t}}function m(e,t,r,n){return void 0===r&&(r=null),l({pathname:"string"==typeof e?e:e.pathname,search:"",hash:""},"string"==typeof t?y(t):t,{state:r,key:t&&t.key||n||Math.random().toString(36).substr(2,8)})}function v(e){let{pathname:t="/",search:r="",hash:n=""}=e;return r&&"?"!==r&&(t+="?"===r.charAt(0)?r:"?"+r),n&&"#"!==n&&(t+="#"===n.charAt(0)?n:"#"+n),t}function y(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substr(r),e=e.substr(0,r));let n=e.indexOf("?");n>=0&&(t.search=e.substr(n),e=e.substr(0,n)),e&&(t.pathname=e)}return t}function g(e,t,r,a){void 0===a&&(a={});let{window:o=document.defaultView,v5Compat:i=!1}=a,u=o.history,c=n.Pop,d=null,f=y();function y(){return(u.state||{idx:null}).idx}function g(){c=n.Pop;let e=y(),t=null==e?null:e-f;f=e,d&&d({action:c,location:w.location,delta:t})}function b(e){let t="null"!==o.location.origin?o.location.origin:o.location.href,r="string"==typeof e?e:v(e);return h(t,"No window.location.(origin|href) available to create URL for href: "+(r=r.replace(/ $/,"%20"))),new URL(r,t)}null==f&&(f=0,u.replaceState(l({},u.state,{idx:f}),""));let w={get action(){return c},get location(){return e(o,u)},listen(e){if(d)throw Error("A history only accepts one active listener");return o.addEventListener(s,g),d=e,()=>{o.removeEventListener(s,g),d=null}},createHref:e=>t(o,e),createURL:b,encodeLocation(e){let t=b(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:function(e,t){c=n.Push;let a=m(w.location,e,t);r&&r(a,e);let l=p(a,f=y()+1),s=w.createHref(a);try{u.pushState(l,"",s)}catch(e){if(e instanceof DOMException&&"DataCloneError"===e.name)throw e;o.location.assign(s)}i&&d&&d({action:c,location:w.location,delta:1})},replace:function(e,t){c=n.Replace;let a=m(w.location,e,t);r&&r(a,e);let o=p(a,f=y()),l=w.createHref(a);u.replaceState(o,"",l),i&&d&&d({action:c,location:w.location,delta:0})},go:e=>u.go(e)};return w}(i=a||(a={})).data="data",i.deferred="deferred",i.redirect="redirect",i.error="error";let b=new Set(["lazy","caseSensitive","path","id","index","children"]);function w(e,t,r,n){return void 0===r&&(r=[]),void 0===n&&(n={}),e.map((e,a)=>{let o=[...r,String(a)],i="string"==typeof e.id?e.id:o.join("-");if(h(!0!==e.index||!e.children,"Cannot specify children on an index route"),h(!n[i],'Found a route id collision on id "'+i+"\". Route id's must be globally unique within Data Router usages"),!0===e.index){let r=l({},e,t(e),{id:i});return n[i]=r,r}{let r=l({},e,t(e),{id:i,children:void 0});return n[i]=r,e.children&&(r.children=w(e.children,t,o,n)),r}})}function E(e,t,r){return void 0===r&&(r="/"),S(e,t,r,!1)}function S(e,t,r,n){let a=k(("string"==typeof t?y(t):t).pathname||"/",r);if(null==a)return null;let o=function e(t,r,n,a){void 0===r&&(r=[]),void 0===n&&(n=[]),void 0===a&&(a="");let o=(t,o,i)=>{var l,s;let u,c,d={relativePath:void 0===i?t.path||"":i,caseSensitive:!0===t.caseSensitive,childrenIndex:o,route:t};d.relativePath.startsWith("/")&&(h(d.relativePath.startsWith(a),'Absolute route path "'+d.relativePath+'" nested under path "'+a+'" is not valid. An absolute child route path must start with the combined path of all its parent routes.'),d.relativePath=d.relativePath.slice(a.length));let f=O([a,d.relativePath]),p=n.concat(d);t.children&&t.children.length>0&&(h(!0!==t.index,'Index routes must not have child routes. Please remove all child routes from route path "'+f+'".'),e(t.children,r,p,f)),(null!=t.path||t.index)&&r.push({path:f,score:(l=f,s=t.index,c=(u=l.split("/")).length,u.some(P)&&(c+=-2),s&&(c+=2),u.filter(e=>!P(e)).reduce((e,t)=>e+(x.test(t)?3:""===t?1:10),c)),routesMeta:p})};return t.forEach((e,t)=>{var r;if(""!==e.path&&null!=(r=e.path)&&r.includes("?"))for(let r of function e(t){let r=t.split("/");if(0===r.length)return[];let[n,...a]=r,o=n.endsWith("?"),i=n.replace(/\?$/,"");if(0===a.length)return o?[i,""]:[i];let l=e(a.join("/")),s=[];return s.push(...l.map(e=>""===e?i:[i,e].join("/"))),o&&s.push(...l),s.map(e=>t.startsWith("/")&&""===e?"/":e)}(e.path))o(e,t,r);else o(e,t)}),r}(e);o.sort((e,t)=>{var r,n;return e.score!==t.score?t.score-e.score:(r=e.routesMeta.map(e=>e.childrenIndex),n=t.routesMeta.map(e=>e.childrenIndex),r.length===n.length&&r.slice(0,-1).every((e,t)=>e===n[t])?r[r.length-1]-n[n.length-1]:0)});let i=null;for(let e=0;null==i&&e<o.length;++e){let t=D(a);i=function(e,t,r){void 0===r&&(r=!1);let{routesMeta:n}=e,a={},o="/",i=[];for(let e=0;e<n.length;++e){let l=n[e],s=e===n.length-1,u="/"===o?t:t.slice(o.length)||"/",c=L({path:l.relativePath,caseSensitive:l.caseSensitive,end:s},u),d=l.route;if(!c&&s&&r&&!n[n.length-1].route.index&&(c=L({path:l.relativePath,caseSensitive:l.caseSensitive,end:!1},u)),!c)return null;Object.assign(a,c.params),i.push({params:a,pathname:O([o,c.pathname]),pathnameBase:M(O([o,c.pathnameBase])),route:d}),"/"!==c.pathnameBase&&(o=O([o,c.pathnameBase]))}return i}(o[e],t,n)}return i}function R(e,t){let{route:r,pathname:n,params:a}=e;return{id:r.id,pathname:n,params:a,data:t[r.id],handle:r.handle}}let x=/^:[\w-]+$/,P=e=>"*"===e;function C(e,t){void 0===t&&(t={});let r=e;r.endsWith("*")&&"*"!==r&&!r.endsWith("/*")&&(f(!1,'Route path "'+r+'" will be treated as if it were "'+r.replace(/\*$/,"/*")+'" because the `*` character must always follow a `/` in the pattern. To get rid of this warning, please change the route path to "'+r.replace(/\*$/,"/*")+'".'),r=r.replace(/\*$/,"/*"));let n=r.startsWith("/")?"/":"",a=e=>null==e?"":"string"==typeof e?e:String(e);return n+r.split(/\/+/).map((e,r,n)=>{if(r===n.length-1&&"*"===e)return a(t["*"]);let o=e.match(/^:([\w-]+)(\??)$/);if(o){let[,e,r]=o,n=t[e];return h("?"===r||null!=n,'Missing ":'+e+'" param'),a(n)}return e.replace(/\?$/g,"")}).filter(e=>!!e).join("/")}function L(e,t){var r,n,a;let o,i;"string"==typeof e&&(e={path:e,caseSensitive:!1,end:!0});let[l,s]=(r=e.path,n=e.caseSensitive,a=e.end,void 0===n&&(n=!1),void 0===a&&(a=!0),f("*"===r||!r.endsWith("*")||r.endsWith("/*"),'Route path "'+r+'" will be treated as if it were "'+r.replace(/\*$/,"/*")+'" because the `*` character must always follow a `/` in the pattern. To get rid of this warning, please change the route path to "'+r.replace(/\*$/,"/*")+'".'),o=[],i="^"+r.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(e,t,r)=>(o.push({paramName:t,isOptional:null!=r}),r?"/?([^\\/]+)?":"/([^\\/]+)")),r.endsWith("*")?(o.push({paramName:"*"}),i+="*"===r||"/*"===r?"(.*)$":"(?:\\/(.+)|\\/*)$"):a?i+="\\/*$":""!==r&&"/"!==r&&(i+="(?:(?=\\/|$))"),[new RegExp(i,n?void 0:"i"),o]),u=t.match(l);if(!u)return null;let c=u[0],d=c.replace(/(.)\/+$/,"$1"),h=u.slice(1);return{params:s.reduce((e,t,r)=>{let{paramName:n,isOptional:a}=t;if("*"===n){let e=h[r]||"";d=c.slice(0,c.length-e.length).replace(/(.)\/+$/,"$1")}let o=h[r];return a&&!o?e[n]=void 0:e[n]=(o||"").replace(/%2F/g,"/"),e},{}),pathname:c,pathnameBase:d,pattern:e}}function D(e){try{return e.split("/").map(e=>decodeURIComponent(e).replace(/\//g,"%2F")).join("/")}catch(t){return f(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent encoding ('+t+")."),e}}function k(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,n=e.charAt(r);return n&&"/"!==n?null:e.slice(r)||"/"}function _(e,t){var r;let n;void 0===t&&(t="/");let{pathname:a,search:o="",hash:i=""}="string"==typeof e?y(e):e;return{pathname:a?a.startsWith("/")?a:(r=a,n=t.replace(/\/+$/,"").split("/"),r.split("/").forEach(e=>{".."===e?n.length>1&&n.pop():"."!==e&&n.push(e)}),n.length>1?n.join("/"):"/"):t,search:F(o),hash:N(i)}}function U(e,t,r,n){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field [")+JSON.stringify(n)+"]. Please separate it out to the `to."+r+'` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.'}function A(e){return e.filter((e,t)=>0===t||e.route.path&&e.route.path.length>0)}function T(e,t){let r=A(e);return t?r.map((e,t)=>t===r.length-1?e.pathname:e.pathnameBase):r.map(e=>e.pathnameBase)}function j(e,t,r,n){let a,o;void 0===n&&(n=!1),"string"==typeof e?a=y(e):(h(!(a=l({},e)).pathname||!a.pathname.includes("?"),U("?","pathname","search",a)),h(!a.pathname||!a.pathname.includes("#"),U("#","pathname","hash",a)),h(!a.search||!a.search.includes("#"),U("#","search","hash",a)));let i=""===e||""===a.pathname,s=i?"/":a.pathname;if(null==s)o=r;else{let e=t.length-1;if(!n&&s.startsWith("..")){let t=s.split("/");for(;".."===t[0];)t.shift(),e-=1;a.pathname=t.join("/")}o=e>=0?t[e]:"/"}let u=_(a,o),c=s&&"/"!==s&&s.endsWith("/"),d=(i||"."===s)&&r.endsWith("/");return!u.pathname.endsWith("/")&&(c||d)&&(u.pathname+="/"),u}let O=e=>e.join("/").replace(/\/\/+/g,"/"),M=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),F=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",N=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"",B=function(e,t){void 0===t&&(t={});let r="number"==typeof t?{status:t}:t,n=new Headers(r.headers);return n.has("Content-Type")||n.set("Content-Type","application/json; charset=utf-8"),new Response(JSON.stringify(e),l({},r,{headers:n}))};class H extends Error{}class W{constructor(e,t){let r;this.pendingKeysSet=new Set,this.subscribers=new Set,this.deferredKeys=[],h(e&&"object"==typeof e&&!Array.isArray(e),"defer() only accepts plain objects"),this.abortPromise=new Promise((e,t)=>r=t),this.controller=new AbortController;let n=()=>r(new H("Deferred data aborted"));this.unlistenAbortSignal=()=>this.controller.signal.removeEventListener("abort",n),this.controller.signal.addEventListener("abort",n),this.data=Object.entries(e).reduce((e,t)=>{let[r,n]=t;return Object.assign(e,{[r]:this.trackPromise(r,n)})},{}),this.done&&this.unlistenAbortSignal(),this.init=t}trackPromise(e,t){if(!(t instanceof Promise))return t;this.deferredKeys.push(e),this.pendingKeysSet.add(e);let r=Promise.race([t,this.abortPromise]).then(t=>this.onSettle(r,e,void 0,t),t=>this.onSettle(r,e,t));return r.catch(()=>{}),Object.defineProperty(r,"_tracked",{get:()=>!0}),r}onSettle(e,t,r,n){if(this.controller.signal.aborted&&r instanceof H)return this.unlistenAbortSignal(),Object.defineProperty(e,"_error",{get:()=>r}),Promise.reject(r);if(this.pendingKeysSet.delete(t),this.done&&this.unlistenAbortSignal(),void 0===r&&void 0===n){let r=Error('Deferred data for key "'+t+'" resolved/rejected with `undefined`, you must resolve/reject with a value or `null`.');return Object.defineProperty(e,"_error",{get:()=>r}),this.emit(!1,t),Promise.reject(r)}return void 0===n?(Object.defineProperty(e,"_error",{get:()=>r}),this.emit(!1,t),Promise.reject(r)):(Object.defineProperty(e,"_data",{get:()=>n}),this.emit(!1,t),n)}emit(e,t){this.subscribers.forEach(r=>r(e,t))}subscribe(e){return this.subscribers.add(e),()=>this.subscribers.delete(e)}cancel(){this.controller.abort(),this.pendingKeysSet.forEach((e,t)=>this.pendingKeysSet.delete(t)),this.emit(!0)}async resolveData(e){let t=!1;if(!this.done){let r=()=>this.cancel();e.addEventListener("abort",r),t=await new Promise(t=>{this.subscribe(n=>{e.removeEventListener("abort",r),(n||this.done)&&t(n)})})}return t}get done(){return 0===this.pendingKeysSet.size}get unwrappedData(){return h(null!==this.data&&this.done,"Can only unwrap data on initialized and settled deferreds"),Object.entries(this.data).reduce((e,t)=>{let[r,n]=t;return Object.assign(e,{[r]:function(e){if(!(e instanceof Promise&&!0===e._tracked))return e;if(e._error)throw e._error;return e._data}(n)})},{})}get pendingKeys(){return Array.from(this.pendingKeysSet)}}let I=function(e,t){return void 0===t&&(t={}),new W(e,"number"==typeof t?{status:t}:t)},J=function(e,t){void 0===t&&(t=302);let r=t;"number"==typeof r?r={status:r}:void 0===r.status&&(r.status=302);let n=new Headers(r.headers);return n.set("Location",e),new Response(null,l({},r,{headers:n}))},z=(e,t)=>{let r=J(e,t);return r.headers.set("X-Remix-Reload-Document","true"),r},$=(e,t)=>{let r=J(e,t);return r.headers.set("X-Remix-Replace","true"),r};class V{constructor(e,t,r,n){void 0===n&&(n=!1),this.status=e,this.statusText=t||"",this.internal=n,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}}function K(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"boolean"==typeof e.internal&&"data"in e}let X=["post","put","patch","delete"],Z=new Set(X),q=new Set(["get",...X]),Y=new Set([301,302,303,307,308]),Q=new Set([307,308]),G={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},ee={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},et={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},er=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,en=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),ea="remix-router-transitions";function eo(e){let t,r,o,i,s,u,c=e.window?e.window:"undefined"!=typeof window?window:void 0,d=void 0!==c&&void 0!==c.document&&void 0!==c.document.createElement,p=!d;if(h(e.routes.length>0,"You must provide a non-empty routes array to createRouter"),e.mapRouteProperties)t=e.mapRouteProperties;else if(e.detectErrorBoundary){let r=e.detectErrorBoundary;t=e=>({hasErrorBoundary:r(e)})}else t=en;let v={},y=w(e.routes,t,void 0,v),g=e.basename||"/",b=e.dataStrategy||em,x=e.patchRoutesOnNavigation,P=l({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1,v7_skipActionErrorRevalidation:!1},e.future),C=null,L=new Set,D=null,_=null,U=null,A=null!=e.hydrationData,T=E(y,e.history.location,g),j=!1,O=null;if(null==T&&!x){let t=eD(404,{pathname:e.history.location.pathname}),{matches:r,route:n}=eL(y);T=r,O={[n.id]:t}}if(T&&!e.hydrationData&&to(T,y,e.history.location.pathname).active&&(T=null),T)if(T.some(e=>e.route.lazy))o=!1;else if(T.some(e=>e.route.loader))if(P.v7_partialHydration){let t=e.hydrationData?e.hydrationData.loaderData:null,r=e.hydrationData?e.hydrationData.errors:null;if(r){let e=T.findIndex(e=>void 0!==r[e.route.id]);o=T.slice(0,e+1).every(e=>!ec(e.route,t,r))}else o=T.every(e=>!ec(e.route,t,r))}else o=null!=e.hydrationData;else o=!0;else if(o=!1,T=[],P.v7_partialHydration){let t=to(null,y,e.history.location.pathname);t.active&&t.matches&&(j=!0,T=t.matches)}let M={historyAction:e.history.action,location:e.history.location,matches:T,initialized:o,navigation:G,restoreScrollPosition:null==e.hydrationData&&null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||O,fetchers:new Map,blockers:new Map},F=n.Pop,N=!1,B=!1,H=new Map,W=null,I=!1,J=!1,z=[],$=new Set,V=new Map,X=0,Z=-1,q=new Map,eo=new Set,es=new Map,ed=new Map,eh=new Set,ep=new Map,ey=new Map;function eE(e,t){void 0===t&&(t={}),M=l({},M,e);let r=[],n=[];P.v7_fetcherPersist&&M.fetchers.forEach((e,t)=>{"idle"===e.state&&(eh.has(t)?n.push(t):r.push(t))}),eh.forEach(e=>{M.fetchers.has(e)||V.has(e)||n.push(e)}),[...L].forEach(e=>e(M,{deletedFetchers:n,viewTransitionOpts:t.viewTransitionOpts,flushSync:!0===t.flushSync})),P.v7_fetcherPersist?(r.forEach(e=>M.fetchers.delete(e)),n.forEach(e=>e4(e))):n.forEach(e=>eh.delete(e))}function eS(t,a,o){var i,s;let u,c,{flushSync:d}=void 0===o?{}:o,h=null!=M.actionData&&null!=M.navigation.formMethod&&eM(M.navigation.formMethod)&&"loading"===M.navigation.state&&(null==(i=t.state)?void 0:i._isRedirect)!==!0;u=a.actionData?Object.keys(a.actionData).length>0?a.actionData:null:h?M.actionData:null;let f=a.loaderData?ex(M.loaderData,a.loaderData,a.matches||[],a.errors):M.loaderData,p=M.blockers;p.size>0&&(p=new Map(p)).forEach((e,t)=>p.set(t,et));let m=!0===N||null!=M.navigation.formMethod&&eM(M.navigation.formMethod)&&(null==(s=t.state)?void 0:s._isRedirect)!==!0;if(r&&(y=r,r=void 0),I||F===n.Pop||(F===n.Push?e.history.push(t,t.state):F===n.Replace&&e.history.replace(t,t.state)),F===n.Pop){let e=H.get(M.location.pathname);e&&e.has(t.pathname)?c={currentLocation:M.location,nextLocation:t}:H.has(t.pathname)&&(c={currentLocation:t,nextLocation:M.location})}else if(B){let e=H.get(M.location.pathname);e?e.add(t.pathname):(e=new Set([t.pathname]),H.set(M.location.pathname,e)),c={currentLocation:M.location,nextLocation:t}}eE(l({},a,{actionData:u,loaderData:f,historyAction:F,location:t,initialized:!0,navigation:G,revalidation:"idle",restoreScrollPosition:ta(t,a.matches||M.matches),preventScrollReset:m,blockers:p}),{viewTransitionOpts:c,flushSync:!0===d}),F=n.Pop,N=!1,B=!1,I=!1,J=!1,z=[]}async function e_(t,r){if("number"==typeof t)return void e.history.go(t);let a=ei(M.location,M.matches,g,P.v7_prependBasename,t,P.v7_relativeSplatPath,null==r?void 0:r.fromRouteId,null==r?void 0:r.relative),{path:o,submission:i,error:s}=el(P.v7_normalizeFormMethod,!1,a,r),u=M.location,c=m(M.location,o,r&&r.state);c=l({},c,e.history.encodeLocation(c));let d=r&&null!=r.replace?r.replace:void 0,h=n.Push;!0===d?h=n.Replace:!1===d||null!=i&&eM(i.formMethod)&&i.formAction===M.location.pathname+M.location.search&&(h=n.Replace);let f=r&&"preventScrollReset"in r?!0===r.preventScrollReset:void 0,p=!0===(r&&r.flushSync),v=te({currentLocation:u,nextLocation:c,historyAction:h});return v?void e9(v,{state:"blocked",location:c,proceed(){e9(v,{state:"proceeding",proceed:void 0,reset:void 0,location:c}),e_(t,r)},reset(){let e=new Map(M.blockers);e.set(v,et),eE({blockers:e})}}):await ej(h,c,{submission:i,pendingError:s,preventScrollReset:f,replace:r&&r.replace,enableViewTransition:r&&r.viewTransition,flushSync:p})}async function ej(t,n,o){var i,u,c,d;let h;s&&s.abort(),s=null,F=t,I=!0===(o&&o.startUninterruptedRevalidation),i=M.location,u=M.matches,D&&U&&(D[tn(i,u)]=U()),N=!0===(o&&o.preventScrollReset),B=!0===(o&&o.enableViewTransition);let f=r||y,p=o&&o.overrideNavigation,m=null!=o&&o.initialHydration&&M.matches&&M.matches.length>0&&!j?M.matches:E(f,n,g),v=!0===(o&&o.flushSync);if(m&&M.initialized&&!J&&(c=M.location,d=n,c.pathname===d.pathname&&c.search===d.search&&(""===c.hash?""!==d.hash:c.hash===d.hash||""!==d.hash||!1))&&!(o&&o.submission&&eM(o.submission.formMethod)))return void eS(n,{matches:m},{flushSync:v});let b=to(m,f,n.pathname);if(b.active&&b.matches&&(m=b.matches),!m){let{error:e,notFoundMatches:t,route:r}=tt(n.pathname);eS(n,{matches:t,loaderData:{},errors:{[r.id]:e}},{flushSync:v});return}s=new AbortController;let w=ew(e.history,n,s.signal,o&&o.submission);if(o&&o.pendingError)h=[eC(m).route.id,{type:a.error,error:o.pendingError}];else if(o&&o.submission&&eM(o.submission.formMethod)){let t=await eH(w,n,o.submission,m,b.active,{replace:o.replace,flushSync:v});if(t.shortCircuited)return;if(t.pendingActionResult){let[e,r]=t.pendingActionResult;if(eA(r)&&K(r.error)&&404===r.error.status){s=null,eS(n,{matches:t.matches,loaderData:{},errors:{[e]:r.error}});return}}m=t.matches||m,h=t.pendingActionResult,p=eJ(n,o.submission),v=!1,b.active=!1,w=ew(e.history,w.url,w.signal)}let{shortCircuited:S,matches:R,loaderData:x,errors:P}=await eV(w,n,m,b.active,p,o&&o.submission,o&&o.fetcherSubmission,o&&o.replace,o&&!0===o.initialHydration,v,h);S||(s=null,eS(n,l({matches:R||m},eP(h),{loaderData:x,errors:P})))}async function eH(e,t,r,o,i,l){var s;let u;if(void 0===l&&(l={}),eG(),eE({navigation:{state:"submitting",location:t,formMethod:(s=r).formMethod,formAction:s.formAction,formEncType:s.formEncType,formData:s.formData,json:s.json,text:s.text}},{flushSync:!0===l.flushSync}),i){let r=await ti(o,t.pathname,e.signal);if("aborted"===r.type)return{shortCircuited:!0};if("error"===r.type){let e=eC(r.partialMatches).route.id;return{matches:r.partialMatches,pendingActionResult:[e,{type:a.error,error:r.error}]}}if(r.matches)o=r.matches;else{let{notFoundMatches:e,error:r,route:n}=tt(t.pathname);return{matches:e,pendingActionResult:[n.id,{type:a.error,error:r}]}}}let c=eW(o,t);if(c.route.action||c.route.lazy){if(u=(await eY("action",M,e,[c],o,null))[c.route.id],e.signal.aborted)return{shortCircuited:!0}}else u={type:a.error,error:eD(405,{method:e.method,pathname:t.pathname,routeId:c.route.id})};if(eT(u)){let t;return t=l&&null!=l.replace?l.replace:eb(u.response.headers.get("Location"),new URL(e.url),g)===M.location.pathname+M.location.search,await eq(e,u,!0,{submission:r,replace:t}),{shortCircuited:!0}}if(eU(u))throw eD(400,{type:"defer-action"});if(eA(u)){let e=eC(o,c.route.id);return!0!==(l&&l.replace)&&(F=n.Push),{matches:o,pendingActionResult:[e.route.id,u]}}return{matches:o,pendingActionResult:[c.route.id,u]}}async function eV(t,n,a,o,i,u,c,d,h,f,p){let m=i||eJ(n,u),v=u||c||eI(m),b=!I&&(!P.v7_partialHydration||!h);if(o){if(b){let e=eK(p);eE(l({navigation:m},void 0!==e?{actionData:e}:{}),{flushSync:f})}let e=await ti(a,n.pathname,t.signal);if("aborted"===e.type)return{shortCircuited:!0};if("error"===e.type){let t=eC(e.partialMatches).route.id;return{matches:e.partialMatches,loaderData:{},errors:{[t]:e.error}}}if(e.matches)a=e.matches;else{let{error:e,notFoundMatches:t,route:r}=tt(n.pathname);return{matches:t,loaderData:{},errors:{[r.id]:e}}}}let w=r||y,[E,S]=eu(e.history,M,a,v,n,P.v7_partialHydration&&!0===h,P.v7_skipActionErrorRevalidation,J,z,$,eh,es,eo,w,g,p);if(tr(e=>!(a&&a.some(t=>t.route.id===e))||E&&E.some(t=>t.route.id===e)),Z=++X,0===E.length&&0===S.length){let e=e2();return eS(n,l({matches:a,loaderData:{},errors:p&&eA(p[1])?{[p[0]]:p[1].error}:null},eP(p),e?{fetchers:new Map(M.fetchers)}:{}),{flushSync:f}),{shortCircuited:!0}}if(b){let e={};if(!o){e.navigation=m;let t=eK(p);void 0!==t&&(e.actionData=t)}S.length>0&&(S.forEach(e=>{let t=M.fetchers.get(e.key),r=ez(void 0,t?t.data:void 0);M.fetchers.set(e.key,r)}),e.fetchers=new Map(M.fetchers)),eE(e,{flushSync:f})}S.forEach(e=>{e3(e.key),e.controller&&V.set(e.key,e.controller)});let R=()=>S.forEach(e=>e3(e.key));s&&s.signal.addEventListener("abort",R);let{loaderResults:x,fetcherResults:C}=await eQ(M,a,E,S,t);if(t.signal.aborted)return{shortCircuited:!0};s&&s.signal.removeEventListener("abort",R),S.forEach(e=>V.delete(e.key));let L=ek(x);if(L)return await eq(t,L.result,!0,{replace:d}),{shortCircuited:!0};if(L=ek(C))return eo.add(L.key),await eq(t,L.result,!0,{replace:d}),{shortCircuited:!0};let{loaderData:D,errors:k}=eR(M,a,x,p,S,C,ep);ep.forEach((e,t)=>{e.subscribe(r=>{(r||e.done)&&ep.delete(t)})}),P.v7_partialHydration&&h&&M.errors&&(k=l({},M.errors,k));let _=e2(),U=e6(Z),A=_||U||S.length>0;return l({matches:a,loaderData:D,errors:k},A?{fetchers:new Map(M.fetchers)}:{})}function eK(e){if(e&&!eA(e[1]))return{[e[0]]:e[1].data};if(M.actionData)if(0===Object.keys(M.actionData).length)return null;else return M.actionData}async function eX(t,n,a,o,i,l,u,c,d){var f,p;function m(e){if(!e.route.action&&!e.route.lazy){let e=eD(405,{method:d.formMethod,pathname:a,routeId:n});return e1(t,n,e,{flushSync:u}),!0}return!1}if(eG(),es.delete(t),!l&&m(o))return;let v=M.fetchers.get(t);e0(t,(f=d,p=v,{state:"submitting",formMethod:f.formMethod,formAction:f.formAction,formEncType:f.formEncType,formData:f.formData,json:f.json,text:f.text,data:p?p.data:void 0}),{flushSync:u});let b=new AbortController,w=ew(e.history,a,b.signal,d);if(l){let e=await ti(i,new URL(w.url).pathname,w.signal,t);if("aborted"===e.type)return;if("error"===e.type)return void e1(t,n,e.error,{flushSync:u});if(!e.matches)return void e1(t,n,eD(404,{pathname:a}),{flushSync:u});if(m(o=eW(i=e.matches,a)))return}V.set(t,b);let S=X,R=(await eY("action",M,w,[o],i,t))[o.route.id];if(w.signal.aborted){V.get(t)===b&&V.delete(t);return}if(P.v7_fetcherPersist&&eh.has(t)){if(eT(R)||eA(R))return void e0(t,e$(void 0))}else{if(eT(R))return(V.delete(t),Z>S)?void e0(t,e$(void 0)):(eo.add(t),e0(t,ez(d)),eq(w,R,!1,{fetcherSubmission:d,preventScrollReset:c}));if(eA(R))return void e1(t,n,R.error)}if(eU(R))throw eD(400,{type:"defer-action"});let x=M.navigation.location||M.location,C=ew(e.history,x,b.signal),L=r||y,D="idle"!==M.navigation.state?E(L,M.navigation.location,g):M.matches;h(D,"Didn't find any matches after fetcher action");let k=++X;q.set(t,k);let _=ez(d,R.data);M.fetchers.set(t,_);let[U,A]=eu(e.history,M,D,d,x,!1,P.v7_skipActionErrorRevalidation,J,z,$,eh,es,eo,L,g,[o.route.id,R]);A.filter(e=>e.key!==t).forEach(e=>{let t=e.key,r=M.fetchers.get(t),n=ez(void 0,r?r.data:void 0);M.fetchers.set(t,n),e3(t),e.controller&&V.set(t,e.controller)}),eE({fetchers:new Map(M.fetchers)});let T=()=>A.forEach(e=>e3(e.key));b.signal.addEventListener("abort",T);let{loaderResults:j,fetcherResults:O}=await eQ(M,D,U,A,C);if(b.signal.aborted)return;b.signal.removeEventListener("abort",T),q.delete(t),V.delete(t),A.forEach(e=>V.delete(e.key));let N=ek(j);if(N)return eq(C,N.result,!1,{preventScrollReset:c});if(N=ek(O))return eo.add(N.key),eq(C,N.result,!1,{preventScrollReset:c});let{loaderData:B,errors:H}=eR(M,D,j,void 0,A,O,ep);if(M.fetchers.has(t)){let e=e$(R.data);M.fetchers.set(t,e)}e6(k),"loading"===M.navigation.state&&k>Z?(h(F,"Expected pending action"),s&&s.abort(),eS(M.navigation.location,{matches:D,loaderData:B,errors:H,fetchers:new Map(M.fetchers)})):(eE({errors:H,loaderData:ex(M.loaderData,B,D,H),fetchers:new Map(M.fetchers)}),J=!1)}async function eZ(t,r,n,a,o,i,l,s,u){let c=M.fetchers.get(t);e0(t,ez(u,c?c.data:void 0),{flushSync:l});let d=new AbortController,f=ew(e.history,n,d.signal);if(i){let e=await ti(o,new URL(f.url).pathname,f.signal,t);if("aborted"===e.type)return;if("error"===e.type)return void e1(t,r,e.error,{flushSync:l});if(!e.matches)return void e1(t,r,eD(404,{pathname:n}),{flushSync:l});a=eW(o=e.matches,n)}V.set(t,d);let p=X,m=(await eY("loader",M,f,[a],o,t))[a.route.id];if(eU(m)&&(m=await eB(m,f.signal,!0)||m),V.get(t)===d&&V.delete(t),!f.signal.aborted){if(eh.has(t))return void e0(t,e$(void 0));if(eT(m))if(Z>p)return void e0(t,e$(void 0));else{eo.add(t),await eq(f,m,!1,{preventScrollReset:s});return}if(eA(m))return void e1(t,r,m.error);h(!eU(m),"Unhandled fetcher deferred data"),e0(t,e$(m.data))}}async function eq(t,r,a,o){let{submission:i,fetcherSubmission:u,preventScrollReset:f,replace:p}=void 0===o?{}:o;r.response.headers.has("X-Remix-Revalidate")&&(J=!0);let v=r.response.headers.get("Location");h(v,"Expected a Location header on the redirect Response"),v=eb(v,new URL(t.url),g);let y=m(M.location,v,{_isRedirect:!0});if(d){let t=!1;if(r.response.headers.has("X-Remix-Reload-Document"))t=!0;else if(er.test(v)){let r=e.history.createURL(v);t=r.origin!==c.location.origin||null==k(r.pathname,g)}if(t)return void(p?c.location.replace(v):c.location.assign(v))}s=null;let b=!0===p||r.response.headers.has("X-Remix-Replace")?n.Replace:n.Push,{formMethod:w,formAction:E,formEncType:S}=M.navigation;!i&&!u&&w&&E&&S&&(i=eI(M.navigation));let R=i||u;if(Q.has(r.response.status)&&R&&eM(R.formMethod))await ej(b,y,{submission:l({},R,{formAction:v}),preventScrollReset:f||N,enableViewTransition:a?B:void 0});else{let e=eJ(y,i);await ej(b,y,{overrideNavigation:e,fetcherSubmission:u,preventScrollReset:f||N,enableViewTransition:a?B:void 0})}}async function eY(e,r,n,o,i,l){let s,u={};try{s=await ev(b,e,r,n,o,i,l,v,t)}catch(e){return o.forEach(t=>{u[t.route.id]={type:a.error,error:e}}),u}for(let[e,t]of Object.entries(s)){var c;if(eO((c=t).result)&&Y.has(c.result.status)){let r=t.result;u[e]={type:a.redirect,response:function(e,t,r,n,a,o){let i=e.headers.get("Location");if(h(i,"Redirects returned/thrown from loaders/actions must have a Location header"),!er.test(i)){let l=n.slice(0,n.findIndex(e=>e.route.id===r)+1);i=ei(new URL(t.url),l,a,!0,i,o),e.headers.set("Location",i)}return e}(r,n,e,i,g,P.v7_relativeSplatPath)}}else u[e]=await eg(t)}return u}async function eQ(t,r,n,o,i){let l=t.matches,s=eY("loader",t,i,n,r,null),u=Promise.all(o.map(async r=>{if(!r.matches||!r.match||!r.controller)return Promise.resolve({[r.key]:{type:a.error,error:eD(404,{pathname:r.path})}});{let n=(await eY("loader",t,ew(e.history,r.path,r.controller.signal),[r.match],r.matches,r.key))[r.match.route.id];return{[r.key]:n}}})),c=await s,d=(await u).reduce((e,t)=>Object.assign(e,t),{});return await Promise.all([eF(r,c,i.signal,l,t.loaderData),eN(r,d,o)]),{loaderResults:c,fetcherResults:d}}function eG(){J=!0,z.push(...tr()),es.forEach((e,t)=>{V.has(t)&&$.add(t),e3(t)})}function e0(e,t,r){void 0===r&&(r={}),M.fetchers.set(e,t),eE({fetchers:new Map(M.fetchers)},{flushSync:!0===(r&&r.flushSync)})}function e1(e,t,r,n){void 0===n&&(n={});let a=eC(M.matches,t);e4(e),eE({errors:{[a.route.id]:r},fetchers:new Map(M.fetchers)},{flushSync:!0===(n&&n.flushSync)})}function e7(e){return ed.set(e,(ed.get(e)||0)+1),eh.has(e)&&eh.delete(e),M.fetchers.get(e)||ee}function e4(e){let t=M.fetchers.get(e);V.has(e)&&!(t&&"loading"===t.state&&q.has(e))&&e3(e),es.delete(e),q.delete(e),eo.delete(e),P.v7_fetcherPersist&&eh.delete(e),$.delete(e),M.fetchers.delete(e)}function e3(e){let t=V.get(e);t&&(t.abort(),V.delete(e))}function e5(e){for(let t of e){let e=e$(e7(t).data);M.fetchers.set(t,e)}}function e2(){let e=[],t=!1;for(let r of eo){let n=M.fetchers.get(r);h(n,"Expected fetcher: "+r),"loading"===n.state&&(eo.delete(r),e.push(r),t=!0)}return e5(e),t}function e6(e){let t=[];for(let[r,n]of q)if(n<e){let e=M.fetchers.get(r);h(e,"Expected fetcher: "+r),"loading"===e.state&&(e3(r),q.delete(r),t.push(r))}return e5(t),t.length>0}function e8(e){M.blockers.delete(e),ey.delete(e)}function e9(e,t){let r=M.blockers.get(e)||et;h("unblocked"===r.state&&"blocked"===t.state||"blocked"===r.state&&"blocked"===t.state||"blocked"===r.state&&"proceeding"===t.state||"blocked"===r.state&&"unblocked"===t.state||"proceeding"===r.state&&"unblocked"===t.state,"Invalid blocker state transition: "+r.state+" -> "+t.state);let n=new Map(M.blockers);n.set(e,t),eE({blockers:n})}function te(e){let{currentLocation:t,nextLocation:r,historyAction:n}=e;if(0===ey.size)return;ey.size>1&&f(!1,"A router only supports one blocker at a time");let a=Array.from(ey.entries()),[o,i]=a[a.length-1],l=M.blockers.get(o);if((!l||"proceeding"!==l.state)&&i({currentLocation:t,nextLocation:r,historyAction:n}))return o}function tt(e){let t=eD(404,{pathname:e}),{matches:n,route:a}=eL(r||y);return tr(),{notFoundMatches:n,route:a,error:t}}function tr(e){let t=[];return ep.forEach((r,n)=>{(!e||e(n))&&(r.cancel(),t.push(n),ep.delete(n))}),t}function tn(e,t){return _&&_(e,t.map(e=>R(e,M.loaderData)))||e.key}function ta(e,t){if(D){let r=D[tn(e,t)];if("number"==typeof r)return r}return null}function to(e,t,r){if(x){if(!e)return{active:!0,matches:S(t,r,g,!0)||[]};else if(Object.keys(e[0].params).length>0)return{active:!0,matches:S(t,r,g,!0)}}return{active:!1,matches:null}}async function ti(e,n,a,o){if(!x)return{type:"success",matches:e};let i=e;for(;;){let e=null==r,l=r||y,s=v;try{await x({signal:a,path:n,matches:i,fetcherKey:o,patch:(e,r)=>{a.aborted||ef(e,r,l,s,t)}})}catch(e){return{type:"error",error:e,partialMatches:i}}finally{e&&!a.aborted&&(y=[...y])}if(a.aborted)return{type:"aborted"};let u=E(l,n,g);if(u)return{type:"success",matches:u};let c=S(l,n,g,!0);if(!c||i.length===c.length&&i.every((e,t)=>e.route.id===c[t].route.id))return{type:"success",matches:null};i=c}}return i={get basename(){return g},get future(){return P},get state(){return M},get routes(){return y},get window(){return c},initialize:function(){if(C=e.history.listen(t=>{let{action:r,location:n,delta:a}=t;if(u){u(),u=void 0;return}f(0===ey.size||null!=a,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let o=te({currentLocation:M.location,nextLocation:n,historyAction:r});if(o&&null!=a){let t=new Promise(e=>{u=e});e.history.go(-1*a),e9(o,{state:"blocked",location:n,proceed(){e9(o,{state:"proceeding",proceed:void 0,reset:void 0,location:n}),t.then(()=>e.history.go(a))},reset(){let e=new Map(M.blockers);e.set(o,et),eE({blockers:e})}});return}return ej(r,n)}),d){var t=c,r=H;try{let e=t.sessionStorage.getItem(ea);if(e){let t=JSON.parse(e);for(let[e,n]of Object.entries(t||{}))n&&Array.isArray(n)&&r.set(e,new Set(n||[]))}}catch(e){}let e=()=>(function(e,t){if(t.size>0){let r={};for(let[e,n]of t)r[e]=[...n];try{e.sessionStorage.setItem(ea,JSON.stringify(r))}catch(e){f(!1,"Failed to save applied view transitions in sessionStorage ("+e+").")}}})(c,H);c.addEventListener("pagehide",e),W=()=>c.removeEventListener("pagehide",e)}return M.initialized||ej(n.Pop,M.location,{initialHydration:!0}),i},subscribe:function(e){return L.add(e),()=>L.delete(e)},enableScrollRestoration:function(e,t,r){if(D=e,U=t,_=r||null,!A&&M.navigation===G){A=!0;let e=ta(M.location,M.matches);null!=e&&eE({restoreScrollPosition:e})}return()=>{D=null,U=null,_=null}},navigate:e_,fetch:function(e,t,n,a){if(p)throw Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");e3(e);let o=!0===(a&&a.flushSync),i=r||y,l=ei(M.location,M.matches,g,P.v7_prependBasename,n,P.v7_relativeSplatPath,t,null==a?void 0:a.relative),s=E(i,l,g),u=to(s,i,l);if(u.active&&u.matches&&(s=u.matches),!s)return void e1(e,t,eD(404,{pathname:l}),{flushSync:o});let{path:c,submission:d,error:h}=el(P.v7_normalizeFormMethod,!0,l,a);if(h)return void e1(e,t,h,{flushSync:o});let f=eW(s,c),m=!0===(a&&a.preventScrollReset);if(d&&eM(d.formMethod))return void eX(e,t,c,f,s,u.active,o,m,d);es.set(e,{routeId:t,path:c}),eZ(e,t,c,f,s,u.active,o,m,d)},revalidate:function(){if(eG(),eE({revalidation:"loading"}),"submitting"!==M.navigation.state){if("idle"===M.navigation.state)return void ej(M.historyAction,M.location,{startUninterruptedRevalidation:!0});ej(F||M.historyAction,M.navigation.location,{overrideNavigation:M.navigation,enableViewTransition:!0===B})}},createHref:t=>e.history.createHref(t),encodeLocation:t=>e.history.encodeLocation(t),getFetcher:e7,deleteFetcher:function(e){let t=(ed.get(e)||0)-1;t<=0?(ed.delete(e),eh.add(e),P.v7_fetcherPersist||e4(e)):ed.set(e,t),eE({fetchers:new Map(M.fetchers)})},dispose:function(){C&&C(),W&&W(),L.clear(),s&&s.abort(),M.fetchers.forEach((e,t)=>e4(t)),M.blockers.forEach((e,t)=>e8(t))},getBlocker:function(e,t){let r=M.blockers.get(e)||et;return ey.get(e)!==t&&ey.set(e,t),r},deleteBlocker:e8,patchRoutes:function(e,n){let a=null==r;ef(e,n,r||y,v,t),a&&(y=[...y],eE({}))},_internalFetchControllers:V,_internalActiveDeferreds:ep,_internalSetRoutes:function(e){r=w(e,t,void 0,v={})}}}function ei(e,t,r,n,a,o,i,l){let s,u;if(i){for(let e of(s=[],t))if(s.push(e),e.route.id===i){u=e;break}}else s=t,u=t[t.length-1];let c=j(a||".",T(s,o),k(e.pathname,r)||e.pathname,"path"===l);if(null==a&&(c.search=e.search,c.hash=e.hash),(null==a||""===a||"."===a)&&u){let e=eH(c.search);if(u.route.index&&!e)c.search=c.search?c.search.replace(/^\?/,"?index&"):"?index";else if(!u.route.index&&e){let e=new URLSearchParams(c.search),t=e.getAll("index");e.delete("index"),t.filter(e=>e).forEach(t=>e.append("index",t));let r=e.toString();c.search=r?"?"+r:""}}return n&&"/"!==r&&(c.pathname="/"===c.pathname?r:O([r,c.pathname])),v(c)}function el(e,t,r,n){var a;let o,i;if(!n||!(null!=n&&("formData"in n&&null!=n.formData||"body"in n&&void 0!==n.body)))return{path:r};if(n.formMethod&&(a=n.formMethod,!q.has(a.toLowerCase())))return{path:r,error:eD(405,{method:n.formMethod})};let l=()=>({path:r,error:eD(400,{type:"invalid-body"})}),s=n.formMethod||"get",u=e?s.toUpperCase():s.toLowerCase(),c=e_(r);if(void 0!==n.body){if("text/plain"===n.formEncType){if(!eM(u))return l();let e="string"==typeof n.body?n.body:n.body instanceof FormData||n.body instanceof URLSearchParams?Array.from(n.body.entries()).reduce((e,t)=>{let[r,n]=t;return""+e+r+"="+n+"\n"},""):String(n.body);return{path:r,submission:{formMethod:u,formAction:c,formEncType:n.formEncType,formData:void 0,json:void 0,text:e}}}else if("application/json"===n.formEncType){if(!eM(u))return l();try{let e="string"==typeof n.body?JSON.parse(n.body):n.body;return{path:r,submission:{formMethod:u,formAction:c,formEncType:n.formEncType,formData:void 0,json:e,text:void 0}}}catch(e){return l()}}}if(h("function"==typeof FormData,"FormData is not available in this environment"),n.formData)o=eE(n.formData),i=n.formData;else if(n.body instanceof FormData)o=eE(n.body),i=n.body;else if(n.body instanceof URLSearchParams)i=eS(o=n.body);else if(null==n.body)o=new URLSearchParams,i=new FormData;else try{o=new URLSearchParams(n.body),i=eS(o)}catch(e){return l()}let d={formMethod:u,formAction:c,formEncType:n&&n.formEncType||"application/x-www-form-urlencoded",formData:i,json:void 0,text:void 0};if(eM(d.formMethod))return{path:r,submission:d};let f=y(r);return t&&f.search&&eH(f.search)&&o.append("index",""),f.search="?"+o,{path:v(f),submission:d}}function es(e,t,r){void 0===r&&(r=!1);let n=e.findIndex(e=>e.route.id===t);return n>=0?e.slice(0,r?n+1:n):e}function eu(e,t,r,n,a,o,i,s,u,c,d,h,f,p,m,v){let y=v?eA(v[1])?v[1].error:v[1].data:void 0,g=e.createURL(t.location),b=e.createURL(a),w=r;o&&t.errors?w=es(r,Object.keys(t.errors)[0],!0):v&&eA(v[1])&&(w=es(r,v[0]));let S=v?v[1].statusCode:void 0,R=i&&S&&S>=400,x=w.filter((e,r)=>{var a,i,c;let d,h,{route:f}=e;if(f.lazy)return!0;if(null==f.loader)return!1;if(o)return ec(f,t.loaderData,t.errors);if(a=t.loaderData,i=t.matches[r],c=e,d=!i||c.route.id!==i.route.id,h=void 0===a[c.route.id],d||h||u.some(t=>t===e.route.id))return!0;let p=t.matches[r];return eh(e,l({currentUrl:g,currentParams:p.params,nextUrl:b,nextParams:e.params},n,{actionResult:y,actionStatus:S,defaultShouldRevalidate:!R&&(s||g.pathname+g.search===b.pathname+b.search||g.search!==b.search||ed(p,e))}))}),P=[];return h.forEach((e,a)=>{if(o||!r.some(t=>t.route.id===e.routeId)||d.has(a))return;let i=E(p,e.path,m);if(!i)return void P.push({key:a,routeId:e.routeId,path:e.path,matches:null,match:null,controller:null});let u=t.fetchers.get(a),h=eW(i,e.path),v=!1;f.has(a)?v=!1:c.has(a)?(c.delete(a),v=!0):v=u&&"idle"!==u.state&&void 0===u.data?s:eh(h,l({currentUrl:g,currentParams:t.matches[t.matches.length-1].params,nextUrl:b,nextParams:r[r.length-1].params},n,{actionResult:y,actionStatus:S,defaultShouldRevalidate:!R&&s})),v&&P.push({key:a,routeId:e.routeId,path:e.path,matches:i,match:h,controller:new AbortController})}),[x,P]}function ec(e,t,r){if(e.lazy)return!0;if(!e.loader)return!1;let n=null!=t&&void 0!==t[e.id],a=null!=r&&void 0!==r[e.id];return(!!n||!a)&&("function"==typeof e.loader&&!0===e.loader.hydrate||!n&&!a)}function ed(e,t){let r=e.route.path;return e.pathname!==t.pathname||null!=r&&r.endsWith("*")&&e.params["*"]!==t.params["*"]}function eh(e,t){if(e.route.shouldRevalidate){let r=e.route.shouldRevalidate(t);if("boolean"==typeof r)return r}return t.defaultShouldRevalidate}function ef(e,t,r,n,a){var o;let i;if(e){let t=n[e];h(t,"No route found to patch children into: routeId = "+e),t.children||(t.children=[]),i=t.children}else i=r;let l=w(t.filter(e=>!i.some(t=>(function e(t,r){return"id"in t&&"id"in r&&t.id===r.id||t.index===r.index&&t.path===r.path&&t.caseSensitive===r.caseSensitive&&((!t.children||0===t.children.length)&&(!r.children||0===r.children.length)||t.children.every((t,n)=>{var a;return null==(a=r.children)?void 0:a.some(r=>e(t,r))}))})(e,t))),a,[e||"_","patch",String((null==(o=i)?void 0:o.length)||"0")],n);i.push(...l)}async function ep(e,t,r){if(!e.lazy)return;let n=await e.lazy();if(!e.lazy)return;let a=r[e.id];h(a,"No route found in manifest");let o={};for(let e in n){let t=void 0!==a[e]&&"hasErrorBoundary"!==e;f(!t,'Route "'+a.id+'" has a static property "'+e+'" defined but its lazy function is also returning a value for this property. The lazy route property "'+e+'" will be ignored.'),t||b.has(e)||(o[e]=n[e])}Object.assign(a,o),Object.assign(a,l({},t(a),{lazy:void 0}))}async function em(e){let{matches:t}=e,r=t.filter(e=>e.shouldLoad);return(await Promise.all(r.map(e=>e.resolve()))).reduce((e,t,n)=>Object.assign(e,{[r[n].route.id]:t}),{})}async function ev(e,t,r,n,o,i,s,u,c,d){let h=i.map(e=>e.route.lazy?ep(e.route,c,u):void 0),f=i.map((e,r)=>{let i=h[r],s=o.some(t=>t.route.id===e.route.id),u=async r=>(r&&"GET"===n.method&&(e.route.lazy||e.route.loader)&&(s=!0),s?ey(t,n,e,i,r,d):Promise.resolve({type:a.data,result:void 0}));return l({},e,{shouldLoad:s,resolve:u})}),p=await e({matches:f,request:n,params:i[0].params,fetcherKey:s,context:d});try{await Promise.all(h)}catch(e){}return p}async function ey(e,t,r,n,o,i){let l,s,u=n=>{let a,l=new Promise((e,t)=>a=t);s=()=>a(),t.signal.addEventListener("abort",s);let u=a=>"function"!=typeof n?Promise.reject(Error("You cannot call the handler for a route which defines a boolean "+('"'+e+'" [routeId: ')+r.route.id+"]")):n({request:t,params:r.params,context:i},...void 0!==a?[a]:[]);return Promise.race([(async()=>{try{let e=await (o?o(e=>u(e)):u());return{type:"data",result:e}}catch(e){return{type:"error",result:e}}})(),l])};try{let o=r.route[e];if(n)if(o){let e,[t]=await Promise.all([u(o).catch(t=>{e=t}),n]);if(void 0!==e)throw e;l=t}else if(await n,o=r.route[e])l=await u(o);else{if("action"!==e)return{type:a.data,result:void 0};let n=new URL(t.url),o=n.pathname+n.search;throw eD(405,{method:t.method,pathname:o,routeId:r.route.id})}else if(o)l=await u(o);else{let e=new URL(t.url),r=e.pathname+e.search;throw eD(404,{pathname:r})}h(void 0!==l.result,"You defined "+("action"===e?"an action":"a loader")+" for route "+('"'+r.route.id+"\" but didn't return anything from your `")+e+"` function. Please return a value or `null`.")}catch(e){return{type:a.error,result:e}}finally{s&&t.signal.removeEventListener("abort",s)}return l}async function eg(e){var t,r,n,o,i,l,s,u,c;let{result:d,type:h}=e;if(eO(d)){let e;try{let t=d.headers.get("Content-Type");e=t&&/\bapplication\/json\b/.test(t)?null==d.body?null:await d.json():await d.text()}catch(e){return{type:a.error,error:e}}return h===a.error?{type:a.error,error:new V(d.status,d.statusText,e),statusCode:d.status,headers:d.headers}:{type:a.data,data:e,statusCode:d.status,headers:d.headers}}if(h===a.error)return ej(d)?d.data instanceof Error?{type:a.error,error:d.data,statusCode:null==(n=d.init)?void 0:n.status,headers:null!=(o=d.init)&&o.headers?new Headers(d.init.headers):void 0}:{type:a.error,error:new V((null==(t=d.init)?void 0:t.status)||500,void 0,d.data),statusCode:K(d)?d.status:void 0,headers:null!=(r=d.init)&&r.headers?new Headers(d.init.headers):void 0}:{type:a.error,error:d,statusCode:K(d)?d.status:void 0};return(c=d)&&"object"==typeof c&&"object"==typeof c.data&&"function"==typeof c.subscribe&&"function"==typeof c.cancel&&"function"==typeof c.resolveData?{type:a.deferred,deferredData:d,statusCode:null==(i=d.init)?void 0:i.status,headers:(null==(l=d.init)?void 0:l.headers)&&new Headers(d.init.headers)}:ej(d)?{type:a.data,data:d.data,statusCode:null==(s=d.init)?void 0:s.status,headers:null!=(u=d.init)&&u.headers?new Headers(d.init.headers):void 0}:{type:a.data,data:d}}function eb(e,t,r){if(er.test(e)){let n=new URL(e.startsWith("//")?t.protocol+e:e),a=null!=k(n.pathname,r);if(n.origin===t.origin&&a)return n.pathname+n.search+n.hash}return e}function ew(e,t,r,n){let a=e.createURL(e_(t)).toString(),o={signal:r};if(n&&eM(n.formMethod)){let{formMethod:e,formEncType:t}=n;o.method=e.toUpperCase(),"application/json"===t?(o.headers=new Headers({"Content-Type":t}),o.body=JSON.stringify(n.json)):"text/plain"===t?o.body=n.text:"application/x-www-form-urlencoded"===t&&n.formData?o.body=eE(n.formData):o.body=n.formData}return new Request(a,o)}function eE(e){let t=new URLSearchParams;for(let[r,n]of e.entries())t.append(r,"string"==typeof n?n:n.name);return t}function eS(e){let t=new FormData;for(let[r,n]of e.entries())t.append(r,n);return t}function eR(e,t,r,n,a,o,i){let s,u,c,d,f,p,{loaderData:m,errors:v}=(u={},c=null,d=!1,f={},p=n&&eA(n[1])?n[1].error:void 0,t.forEach(e=>{if(!(e.route.id in r))return;let n=e.route.id,a=r[n];if(h(!eT(a),"Cannot handle redirect results in processLoaderData"),eA(a)){let e=a.error;void 0!==p&&(e=p,p=void 0),c=c||{},1;{let r=eC(t,n);null==c[r.route.id]&&(c[r.route.id]=e)}u[n]=void 0,d||(d=!0,s=K(a.error)?a.error.status:500),a.headers&&(f[n]=a.headers)}else eU(a)?(i.set(n,a.deferredData),u[n]=a.deferredData.data,null==a.statusCode||200===a.statusCode||d||(s=a.statusCode)):(u[n]=a.data,a.statusCode&&200!==a.statusCode&&!d&&(s=a.statusCode)),a.headers&&(f[n]=a.headers)}),void 0!==p&&n&&(c={[n[0]]:p},u[n[0]]=void 0),{loaderData:u,errors:c,statusCode:s||200,loaderHeaders:f});return a.forEach(t=>{let{key:r,match:n,controller:a}=t,i=o[r];if(h(i,"Did not find corresponding fetcher result"),!a||!a.signal.aborted)if(eA(i)){let t=eC(e.matches,null==n?void 0:n.route.id);v&&v[t.route.id]||(v=l({},v,{[t.route.id]:i.error})),e.fetchers.delete(r)}else if(eT(i))h(!1,"Unhandled fetcher revalidation redirect");else if(eU(i))h(!1,"Unhandled fetcher deferred data");else{let t=e$(i.data);e.fetchers.set(r,t)}}),{loaderData:m,errors:v}}function ex(e,t,r,n){let a=l({},t);for(let o of r){let r=o.route.id;if(t.hasOwnProperty(r)?void 0!==t[r]&&(a[r]=t[r]):void 0!==e[r]&&o.route.loader&&(a[r]=e[r]),n&&n.hasOwnProperty(r))break}return a}function eP(e){return e?eA(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function eC(e,t){return(t?e.slice(0,e.findIndex(e=>e.route.id===t)+1):[...e]).reverse().find(e=>!0===e.route.hasErrorBoundary)||e[0]}function eL(e){let t=1===e.length?e[0]:e.find(e=>e.index||!e.path||"/"===e.path)||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function eD(e,t){let{pathname:r,routeId:n,method:a,type:o,message:i}=void 0===t?{}:t,l="Unknown Server Error",s="Unknown @remix-run/router error";return 400===e?(l="Bad Request",a&&r&&n?s="You made a "+a+' request to "'+r+'" but did not provide a `loader` for route "'+n+'", so there is no way to handle the request.':"defer-action"===o?s="defer() is not supported in actions":"invalid-body"===o&&(s="Unable to encode submission body")):403===e?(l="Forbidden",s='Route "'+n+'" does not match URL "'+r+'"'):404===e?(l="Not Found",s='No route matches URL "'+r+'"'):405===e&&(l="Method Not Allowed",a&&r&&n?s="You made a "+a.toUpperCase()+' request to "'+r+'" but did not provide an `action` for route "'+n+'", so there is no way to handle the request.':a&&(s='Invalid request method "'+a.toUpperCase()+'"')),new V(e||500,l,Error(s),!0)}function ek(e){let t=Object.entries(e);for(let e=t.length-1;e>=0;e--){let[r,n]=t[e];if(eT(n))return{key:r,result:n}}}function e_(e){let t="string"==typeof e?y(e):e;return v(l({},t,{hash:""}))}function eU(e){return e.type===a.deferred}function eA(e){return e.type===a.error}function eT(e){return(e&&e.type)===a.redirect}function ej(e){return"object"==typeof e&&null!=e&&"type"in e&&"data"in e&&"init"in e&&"DataWithResponseInit"===e.type}function eO(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"object"==typeof e.headers&&void 0!==e.body}function eM(e){return Z.has(e.toLowerCase())}async function eF(e,t,r,n,a){let o=Object.entries(t);for(let i=0;i<o.length;i++){let[l,s]=o[i],u=e.find(e=>(null==e?void 0:e.route.id)===l);if(!u)continue;let c=n.find(e=>e.route.id===u.route.id),d=null!=c&&!ed(c,u)&&(a&&a[u.route.id])!==void 0;eU(s)&&d&&await eB(s,r,!1).then(e=>{e&&(t[l]=e)})}}async function eN(e,t,r){for(let n=0;n<r.length;n++){let{key:a,routeId:o,controller:i}=r[n],l=t[a];e.find(e=>(null==e?void 0:e.route.id)===o)&&eU(l)&&(h(i,"Expected an AbortController for revalidating fetcher deferred result"),await eB(l,i.signal,!0).then(e=>{e&&(t[a]=e)}))}}async function eB(e,t,r){if(void 0===r&&(r=!1),!await e.deferredData.resolveData(t)){if(r)try{return{type:a.data,data:e.deferredData.unwrappedData}}catch(e){return{type:a.error,error:e}}return{type:a.data,data:e.deferredData.data}}}function eH(e){return new URLSearchParams(e).getAll("index").some(e=>""===e)}function eW(e,t){let r="string"==typeof t?y(t).search:t.search;if(e[e.length-1].route.index&&eH(r||""))return e[e.length-1];let n=A(e);return n[n.length-1]}function eI(e){let{formMethod:t,formAction:r,formEncType:n,text:a,formData:o,json:i}=e;if(t&&r&&n){if(null!=a)return{formMethod:t,formAction:r,formEncType:n,formData:void 0,json:void 0,text:a};else if(null!=o)return{formMethod:t,formAction:r,formEncType:n,formData:o,json:void 0,text:void 0};else if(void 0!==i)return{formMethod:t,formAction:r,formEncType:n,formData:void 0,json:i,text:void 0}}}function eJ(e,t){return t?{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}:{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function ez(e,t){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function e$(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}Symbol("deferred")},65783:function(e,t,r){r.r(t),r.d(t,{AbortedDeferredError:()=>c.X3,Await:()=>u.KP,BrowserRouter:()=>j,Form:()=>W,HashRouter:()=>O,Link:()=>B,MemoryRouter:()=>u.VA,NavLink:()=>H,Navigate:()=>u.Fg,NavigationType:()=>c.aU,Outlet:()=>u.j3,Route:()=>u.AW,Router:()=>u.F0,RouterProvider:()=>A,Routes:()=>u.Z5,ScrollRestoration:()=>I,UNSAFE_DataRouterContext:()=>u.w3,UNSAFE_DataRouterStateContext:()=>u.FR,UNSAFE_ErrorResponseImpl:()=>c.OF,UNSAFE_FetchersContext:()=>C,UNSAFE_LocationContext:()=>u.gd,UNSAFE_NavigationContext:()=>u.Us,UNSAFE_RouteContext:()=>u.pW,UNSAFE_ViewTransitionContext:()=>P,UNSAFE_useRouteId:()=>u.Yi,UNSAFE_useScrollRestoration:()=>et,createBrowserRouter:()=>S,createHashRouter:()=>R,createMemoryRouter:()=>u.bi,createPath:()=>c.Ep,createRoutesFromChildren:()=>u.is,createRoutesFromElements:()=>u.i7,createSearchParams:()=>m,defer:()=>c.PQ,generatePath:()=>c.Gn,isRouteErrorResponse:()=>c.WK,json:()=>c.AV,matchPath:()=>c.LX,matchRoutes:()=>c.fp,parsePath:()=>c.cP,redirect:()=>c.uX,redirectDocument:()=>c.fZ,renderMatches:()=>u.Oe,replace:()=>c.gx,resolvePath:()=>c.i3,unstable_HistoryRouter:()=>M,unstable_usePrompt:()=>en,useActionData:()=>u.nA,useAsyncError:()=>u.iG,useAsyncValue:()=>u.qv,useBeforeUnload:()=>er,useBlocker:()=>u._Z,useFetcher:()=>Y,useFetchers:()=>Q,useFormAction:()=>q,useHref:()=>u.oQ,useInRouterContext:()=>u.GV,useLinkClickHandler:()=>$,useLoaderData:()=>u.f_,useLocation:()=>u.TH,useMatch:()=>u.bS,useMatches:()=>u.SN,useNavigate:()=>u.s0,useNavigation:()=>u.HJ,useNavigationType:()=>u.ur,useOutlet:()=>u.pC,useOutletContext:()=>u.bx,useParams:()=>u.UO,useResolvedPath:()=>u.WU,useRevalidator:()=>u.xW,useRouteError:()=>u.lk,useRouteLoaderData:()=>u.V4,useRoutes:()=>u.V$,useSearchParams:()=>V,useSubmit:()=>Z,useViewTransitionState:()=>ea});var n,a,o,i,l=r(54538),s=r(6085),u=r(14935),c=r(46403);function d(){return(d=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function h(e,t){if(null==e)return{};var r,n,a={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(a[r]=e[r]);return a}let f="application/x-www-form-urlencoded";function p(e){return null!=e&&"string"==typeof e.tagName}function m(e){return void 0===e&&(e=""),new URLSearchParams("string"==typeof e||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,r)=>{let n=e[r];return t.concat(Array.isArray(n)?n.map(e=>[r,e]):[[r,n]])},[]))}let v=null,y=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function g(e){return null==e||y.has(e)?e:null}let b=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],w=["aria-current","caseSensitive","className","end","style","to","viewTransition","children"],E=["fetcherKey","navigate","reloadDocument","replace","state","method","action","onSubmit","relative","preventScrollReset","viewTransition"];try{window.__reactRouterVersion="6"}catch(e){}function S(e,t){return(0,c.p7)({basename:null==t?void 0:t.basename,future:d({},null==t?void 0:t.future,{v7_prependBasename:!0}),history:(0,c.lX)({window:null==t?void 0:t.window}),hydrationData:(null==t?void 0:t.hydrationData)||x(),routes:e,mapRouteProperties:u.us,dataStrategy:null==t?void 0:t.dataStrategy,patchRoutesOnNavigation:null==t?void 0:t.patchRoutesOnNavigation,window:null==t?void 0:t.window}).initialize()}function R(e,t){return(0,c.p7)({basename:null==t?void 0:t.basename,future:d({},null==t?void 0:t.future,{v7_prependBasename:!0}),history:(0,c.q_)({window:null==t?void 0:t.window}),hydrationData:(null==t?void 0:t.hydrationData)||x(),routes:e,mapRouteProperties:u.us,dataStrategy:null==t?void 0:t.dataStrategy,patchRoutesOnNavigation:null==t?void 0:t.patchRoutesOnNavigation,window:null==t?void 0:t.window}).initialize()}function x(){var e;let t=null==(e=window)?void 0:e.__staticRouterHydrationData;return t&&t.errors&&(t=d({},t,{errors:function(e){if(!e)return null;let t=Object.entries(e),r={};for(let[e,n]of t)if(n&&"RouteErrorResponse"===n.__type)r[e]=new c.OF(n.status,n.statusText,n.data,!0===n.internal);else if(n&&"Error"===n.__type){if(n.__subType){let t=window[n.__subType];if("function"==typeof t)try{let a=new t(n.message);a.stack="",r[e]=a}catch(e){}}if(null==r[e]){let t=Error(n.message);t.stack="",r[e]=t}}else r[e]=n;return r}(t.errors)})),t}let P=l.createContext({isTransitioning:!1}),C=l.createContext(new Map),L=l.startTransition,D=s.flushSync,k=l.useId;function _(e){D?D(e):e()}class U{constructor(){this.status="pending",this.promise=new Promise((e,t)=>{this.resolve=t=>{"pending"===this.status&&(this.status="resolved",e(t))},this.reject=e=>{"pending"===this.status&&(this.status="rejected",t(e))}})}}function A(e){let{fallbackElement:t,router:r,future:n}=e,[a,o]=l.useState(r.state),[i,s]=l.useState(),[c,d]=l.useState({isTransitioning:!1}),[h,f]=l.useState(),[p,m]=l.useState(),[v,y]=l.useState(),g=l.useRef(new Map),{v7_startTransition:b}=n||{},w=l.useCallback(e=>{if(b)L?L(e):e();else e()},[b]),E=l.useCallback((e,t)=>{let{deletedFetchers:n,flushSync:a,viewTransitionOpts:i}=t;e.fetchers.forEach((e,t)=>{void 0!==e.data&&g.current.set(t,e.data)}),n.forEach(e=>g.current.delete(e));let l=null==r.window||null==r.window.document||"function"!=typeof r.window.document.startViewTransition;if(!i||l)return void(a?_(()=>o(e)):w(()=>o(e)));if(a){_(()=>{p&&(h&&h.resolve(),p.skipTransition()),d({isTransitioning:!0,flushSync:!0,currentLocation:i.currentLocation,nextLocation:i.nextLocation})});let t=r.window.document.startViewTransition(()=>{_(()=>o(e))});t.finished.finally(()=>{_(()=>{f(void 0),m(void 0),s(void 0),d({isTransitioning:!1})})}),_(()=>m(t));return}p?(h&&h.resolve(),p.skipTransition(),y({state:e,currentLocation:i.currentLocation,nextLocation:i.nextLocation})):(s(e),d({isTransitioning:!0,flushSync:!1,currentLocation:i.currentLocation,nextLocation:i.nextLocation}))},[r.window,p,h,g,w]);l.useLayoutEffect(()=>r.subscribe(E),[r,E]),l.useEffect(()=>{c.isTransitioning&&!c.flushSync&&f(new U)},[c]),l.useEffect(()=>{if(h&&i&&r.window){let e=h.promise,t=r.window.document.startViewTransition(async()=>{w(()=>o(i)),await e});t.finished.finally(()=>{f(void 0),m(void 0),s(void 0),d({isTransitioning:!1})}),m(t)}},[w,i,h,r.window]),l.useEffect(()=>{h&&i&&a.location.key===i.location.key&&h.resolve()},[h,p,a.location,i]),l.useEffect(()=>{!c.isTransitioning&&v&&(s(v.state),d({isTransitioning:!0,flushSync:!1,currentLocation:v.currentLocation,nextLocation:v.nextLocation}),y(void 0))},[c.isTransitioning,v]),l.useEffect(()=>{},[]);let S=l.useMemo(()=>({createHref:r.createHref,encodeLocation:r.encodeLocation,go:e=>r.navigate(e),push:(e,t,n)=>r.navigate(e,{state:t,preventScrollReset:null==n?void 0:n.preventScrollReset}),replace:(e,t,n)=>r.navigate(e,{replace:!0,state:t,preventScrollReset:null==n?void 0:n.preventScrollReset})}),[r]),R=r.basename||"/",x=l.useMemo(()=>({router:r,navigator:S,static:!1,basename:R}),[r,S,R]),D=l.useMemo(()=>({v7_relativeSplatPath:r.future.v7_relativeSplatPath}),[r.future.v7_relativeSplatPath]);return l.useEffect(()=>(0,u.$A)(n,r.future),[n,r.future]),l.createElement(l.Fragment,null,l.createElement(u.w3.Provider,{value:x},l.createElement(u.FR.Provider,{value:a},l.createElement(C.Provider,{value:g.current},l.createElement(P.Provider,{value:c},l.createElement(u.F0,{basename:R,location:a.location,navigationType:a.historyAction,navigator:S,future:D},a.initialized||r.future.v7_partialHydration?l.createElement(T,{routes:r.routes,future:r.future,state:a}):t))))),null)}let T=l.memo(function(e){let{routes:t,future:r,state:n}=e;return(0,u.DY)(t,void 0,n,r)});function j(e){let{basename:t,children:r,future:n,window:a}=e,o=l.useRef();null==o.current&&(o.current=(0,c.lX)({window:a,v5Compat:!0}));let i=o.current,[s,d]=l.useState({action:i.action,location:i.location}),{v7_startTransition:h}=n||{},f=l.useCallback(e=>{h&&L?L(()=>d(e)):d(e)},[d,h]);return l.useLayoutEffect(()=>i.listen(f),[i,f]),l.useEffect(()=>(0,u.$A)(n),[n]),l.createElement(u.F0,{basename:t,children:r,location:s.location,navigationType:s.action,navigator:i,future:n})}function O(e){let{basename:t,children:r,future:n,window:a}=e,o=l.useRef();null==o.current&&(o.current=(0,c.q_)({window:a,v5Compat:!0}));let i=o.current,[s,d]=l.useState({action:i.action,location:i.location}),{v7_startTransition:h}=n||{},f=l.useCallback(e=>{h&&L?L(()=>d(e)):d(e)},[d,h]);return l.useLayoutEffect(()=>i.listen(f),[i,f]),l.useEffect(()=>(0,u.$A)(n),[n]),l.createElement(u.F0,{basename:t,children:r,location:s.location,navigationType:s.action,navigator:i,future:n})}function M(e){let{basename:t,children:r,future:n,history:a}=e,[o,i]=l.useState({action:a.action,location:a.location}),{v7_startTransition:s}=n||{},c=l.useCallback(e=>{s&&L?L(()=>i(e)):i(e)},[i,s]);return l.useLayoutEffect(()=>a.listen(c),[a,c]),l.useEffect(()=>(0,u.$A)(n),[n]),l.createElement(u.F0,{basename:t,children:r,location:o.location,navigationType:o.action,navigator:a,future:n})}let F="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement,N=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,B=l.forwardRef(function(e,t){let r,{onClick:n,relative:a,reloadDocument:o,replace:i,state:s,target:f,to:p,preventScrollReset:m,viewTransition:v}=e,y=h(e,b),{basename:g}=l.useContext(u.Us),w=!1;if("string"==typeof p&&N.test(p)&&(r=p,F))try{let e=new URL(window.location.href),t=new URL(p.startsWith("//")?e.protocol+p:p),r=(0,c.Zn)(t.pathname,g);t.origin===e.origin&&null!=r?p=r+t.search+t.hash:w=!0}catch(e){}let E=(0,u.oQ)(p,{relative:a}),S=$(p,{replace:i,state:s,target:f,preventScrollReset:m,relative:a,viewTransition:v});return l.createElement("a",d({},y,{href:r||E,onClick:w||o?n:function(e){n&&n(e),e.defaultPrevented||S(e)},ref:t,target:f}))}),H=l.forwardRef(function(e,t){let r,{"aria-current":n="page",caseSensitive:a=!1,className:o="",end:i=!1,style:s,to:f,viewTransition:p,children:m}=e,v=h(e,w),y=(0,u.WU)(f,{relative:v.relative}),g=(0,u.TH)(),b=l.useContext(u.FR),{navigator:E,basename:S}=l.useContext(u.Us),R=null!=b&&ea(y)&&!0===p,x=E.encodeLocation?E.encodeLocation(y).pathname:y.pathname,P=g.pathname,C=b&&b.navigation&&b.navigation.location?b.navigation.location.pathname:null;a||(P=P.toLowerCase(),C=C?C.toLowerCase():null,x=x.toLowerCase()),C&&S&&(C=(0,c.Zn)(C,S)||C);let L="/"!==x&&x.endsWith("/")?x.length-1:x.length,D=P===x||!i&&P.startsWith(x)&&"/"===P.charAt(L),k=null!=C&&(C===x||!i&&C.startsWith(x)&&"/"===C.charAt(x.length)),_={isActive:D,isPending:k,isTransitioning:R},U=D?n:void 0;r="function"==typeof o?o(_):[o,D?"active":null,k?"pending":null,R?"transitioning":null].filter(Boolean).join(" ");let A="function"==typeof s?s(_):s;return l.createElement(B,d({},v,{"aria-current":U,className:r,ref:t,style:A,to:f,viewTransition:p}),"function"==typeof m?m(_):m)}),W=l.forwardRef((e,t)=>{let{fetcherKey:r,navigate:n,reloadDocument:a,replace:o,state:i,method:s="get",action:u,onSubmit:c,relative:f,preventScrollReset:p,viewTransition:m}=e,v=h(e,E),y=Z(),g=q(u,{relative:f}),b="get"===s.toLowerCase()?"get":"post";return l.createElement("form",d({ref:t,method:b,action:g,onSubmit:a?c:e=>{if(c&&c(e),e.defaultPrevented)return;e.preventDefault();let t=e.nativeEvent.submitter,a=(null==t?void 0:t.getAttribute("formmethod"))||s;y(t||e.currentTarget,{fetcherKey:r,method:a,navigate:n,replace:o,state:i,relative:f,preventScrollReset:p,viewTransition:m})}},v))});function I(e){let{getKey:t,storageKey:r}=e;return et({getKey:t,storageKey:r}),null}function J(e){let t=l.useContext(u.w3);return t||(0,c.J0)(!1),t}function z(e){let t=l.useContext(u.FR);return t||(0,c.J0)(!1),t}function $(e,t){let{target:r,replace:n,state:a,preventScrollReset:o,relative:i,viewTransition:s}=void 0===t?{}:t,d=(0,u.s0)(),h=(0,u.TH)(),f=(0,u.WU)(e,{relative:i});return l.useCallback(t=>{0!==t.button||r&&"_self"!==r||t.metaKey||t.altKey||t.ctrlKey||t.shiftKey||(t.preventDefault(),d(e,{replace:void 0!==n?n:(0,c.Ep)(h)===(0,c.Ep)(f),state:a,preventScrollReset:o,relative:i,viewTransition:s}))},[h,d,f,n,a,r,e,o,i,s])}function V(e){let t=l.useRef(m(e)),r=l.useRef(!1),n=(0,u.TH)(),a=l.useMemo(()=>{var e,a;let o;return e=n.search,a=r.current?null:t.current,o=m(e),a&&a.forEach((e,t)=>{o.has(t)||a.getAll(t).forEach(e=>{o.append(t,e)})}),o},[n.search]),o=(0,u.s0)(),i=l.useCallback((e,t)=>{let n=m("function"==typeof e?e(a):e);r.current=!0,o("?"+n,t)},[o,a]);return[a,i]}(n=o||(o={})).UseScrollRestoration="useScrollRestoration",n.UseSubmit="useSubmit",n.UseSubmitFetcher="useSubmitFetcher",n.UseFetcher="useFetcher",n.useViewTransitionState="useViewTransitionState",(a=i||(i={})).UseFetcher="useFetcher",a.UseFetchers="useFetchers",a.UseScrollRestoration="useScrollRestoration";let K=0,X=()=>"__"+String(++K)+"__";function Z(){let{router:e}=J(o.UseSubmit),{basename:t}=l.useContext(u.Us),r=(0,u.Yi)();return l.useCallback(function(n,a){if(void 0===a&&(a={}),"undefined"==typeof document)throw Error("You are calling submit during the server render. Try calling submit within a `useEffect` or callback instead.");let{action:o,method:i,encType:l,formData:s,body:u}=function(e,t){let r,n,a,o,i;if(p(e)&&"form"===e.tagName.toLowerCase()){let i=e.getAttribute("action");n=i?(0,c.Zn)(i,t):null,r=e.getAttribute("method")||"get",a=g(e.getAttribute("enctype"))||f,o=new FormData(e)}else if(p(e)&&"button"===e.tagName.toLowerCase()||p(e)&&"input"===e.tagName.toLowerCase()&&("submit"===e.type||"image"===e.type)){let i=e.form;if(null==i)throw Error('Cannot submit a <button> or <input type="submit"> without a <form>');let l=e.getAttribute("formaction")||i.getAttribute("action");if(n=l?(0,c.Zn)(l,t):null,r=e.getAttribute("formmethod")||i.getAttribute("method")||"get",a=g(e.getAttribute("formenctype"))||g(i.getAttribute("enctype"))||f,o=new FormData(i,e),!function(){if(null===v)try{new FormData(document.createElement("form"),0),v=!1}catch(e){v=!0}return v}()){let{name:t,type:r,value:n}=e;if("image"===r){let e=t?t+".":"";o.append(e+"x","0"),o.append(e+"y","0")}else t&&o.append(t,n)}}else if(p(e))throw Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');else r="get",n=null,a=f,i=e;return o&&"text/plain"===a&&(i=o,o=void 0),{action:n,method:r.toLowerCase(),encType:a,formData:o,body:i}}(n,t);if(!1===a.navigate){let t=a.fetcherKey||X();e.fetch(t,r,a.action||o,{preventScrollReset:a.preventScrollReset,formData:s,body:u,formMethod:a.method||i,formEncType:a.encType||l,flushSync:a.flushSync})}else e.navigate(a.action||o,{preventScrollReset:a.preventScrollReset,formData:s,body:u,formMethod:a.method||i,formEncType:a.encType||l,replace:a.replace,state:a.state,fromRouteId:r,flushSync:a.flushSync,viewTransition:a.viewTransition})},[e,t,r])}function q(e,t){let{relative:r}=void 0===t?{}:t,{basename:n}=l.useContext(u.Us),a=l.useContext(u.pW);a||(0,c.J0)(!1);let[o]=a.matches.slice(-1),i=d({},(0,u.WU)(e||".",{relative:r})),s=(0,u.TH)();if(null==e){i.search=s.search;let e=new URLSearchParams(i.search),t=e.getAll("index");if(t.some(e=>""===e)){e.delete("index"),t.filter(e=>e).forEach(t=>e.append("index",t));let r=e.toString();i.search=r?"?"+r:""}}return(!e||"."===e)&&o.route.index&&(i.search=i.search?i.search.replace(/^\?/,"?index&"):"?index"),"/"!==n&&(i.pathname="/"===i.pathname?n:(0,c.RQ)([n,i.pathname])),(0,c.Ep)(i)}function Y(e){var t;let{key:r}=void 0===e?{}:e,{router:n}=J(o.UseFetcher),a=z(i.UseFetcher),s=l.useContext(C),h=l.useContext(u.pW),f=null==(t=h.matches[h.matches.length-1])?void 0:t.route.id;s||(0,c.J0)(!1),h||(0,c.J0)(!1),null==f&&(0,c.J0)(!1);let p=k?k():"",[m,v]=l.useState(r||p);r&&r!==m?v(r):m||v(X()),l.useEffect(()=>(n.getFetcher(m),()=>{n.deleteFetcher(m)}),[n,m]);let y=l.useCallback((e,t)=>{f||(0,c.J0)(!1),n.fetch(m,f,e,t)},[m,f,n]),g=Z(),b=l.useCallback((e,t)=>{g(e,d({},t,{navigate:!1,fetcherKey:m}))},[m,g]),w=l.useMemo(()=>l.forwardRef((e,t)=>l.createElement(W,d({},e,{navigate:!1,fetcherKey:m,ref:t}))),[m]),E=a.fetchers.get(m)||c.ov,S=s.get(m);return l.useMemo(()=>d({Form:w,submit:b,load:y},E,{data:S}),[w,b,y,E,S])}function Q(){return Array.from(z(i.UseFetchers).fetchers.entries()).map(e=>{let[t,r]=e;return d({},r,{key:t})})}let G="react-router-scroll-positions",ee={};function et(e){let{getKey:t,storageKey:r}=void 0===e?{}:e,{router:n}=J(o.UseScrollRestoration),{restoreScrollPosition:a,preventScrollReset:s}=z(i.UseScrollRestoration),{basename:h}=l.useContext(u.Us),f=(0,u.TH)(),p=(0,u.SN)(),m=(0,u.HJ)();l.useEffect(()=>(window.history.scrollRestoration="manual",()=>{window.history.scrollRestoration="auto"}),[]),function(e,t){let{capture:r}={};l.useEffect(()=>{let t=null!=r?{capture:r}:void 0;return window.addEventListener("pagehide",e,t),()=>{window.removeEventListener("pagehide",e,t)}},[e,r])}(l.useCallback(()=>{"idle"===m.state&&(ee[(t?t(f,p):null)||f.key]=window.scrollY);try{sessionStorage.setItem(r||G,JSON.stringify(ee))}catch(e){}window.history.scrollRestoration="auto"},[r,t,m.state,f,p])),"undefined"!=typeof document&&(l.useLayoutEffect(()=>{try{let e=sessionStorage.getItem(r||G);e&&(ee=JSON.parse(e))}catch(e){}},[r]),l.useLayoutEffect(()=>{let e=t&&"/"!==h?(e,r)=>t(d({},e,{pathname:(0,c.Zn)(e.pathname,h)||e.pathname}),r):t,r=null==n?void 0:n.enableScrollRestoration(ee,()=>window.scrollY,e);return()=>r&&r()},[n,h,t]),l.useLayoutEffect(()=>{if(!1!==a){if("number"==typeof a)return void window.scrollTo(0,a);if(f.hash){let e=document.getElementById(decodeURIComponent(f.hash.slice(1)));if(e)return void e.scrollIntoView()}!0!==s&&window.scrollTo(0,0)}},[f,a,s]))}function er(e,t){let{capture:r}=t||{};l.useEffect(()=>{let t=null!=r?{capture:r}:void 0;return window.addEventListener("beforeunload",e,t),()=>{window.removeEventListener("beforeunload",e,t)}},[e,r])}function en(e){let{when:t,message:r}=e,n=(0,u._Z)(t);l.useEffect(()=>{"blocked"===n.state&&(window.confirm(r)?setTimeout(n.proceed,0):n.reset())},[n,r]),l.useEffect(()=>{"blocked"!==n.state||t||n.reset()},[n,t])}function ea(e,t){void 0===t&&(t={});let r=l.useContext(P);null==r&&(0,c.J0)(!1);let{basename:n}=J(o.useViewTransitionState),a=(0,u.WU)(e,{relative:t.relative});if(!r.isTransitioning)return!1;let i=(0,c.Zn)(r.currentLocation.pathname,n)||r.currentLocation.pathname,s=(0,c.Zn)(r.nextLocation.pathname,n)||r.nextLocation.pathname;return null!=(0,c.LX)(a.pathname,s)||null!=(0,c.LX)(a.pathname,i)}},14935:function(e,t,r){r.d(t,{$A:()=>G,AW:()=>ea,DY:()=>k,F0:()=>eo,FR:()=>c,Fg:()=>er,GV:()=>y,HJ:()=>H,KP:()=>el,Oe:()=>ef,SN:()=>I,TH:()=>g,UO:()=>C,Us:()=>h,V$:()=>D,V4:()=>z,VA:()=>et,WU:()=>L,Yi:()=>B,Z5:()=>ei,_Z:()=>q,bS:()=>w,bi:()=>em,bx:()=>x,f_:()=>J,gd:()=>f,i7:()=>eh,iG:()=>X,is:()=>eh,j3:()=>en,lk:()=>V,nA:()=>$,oQ:()=>v,pC:()=>P,pW:()=>p,qv:()=>K,s0:()=>S,ur:()=>b,us:()=>ep,w3:()=>u,xW:()=>W});var n,a,o,i=r(54538),l=r(46403);function s(){return(s=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}let u=i.createContext(null),c=i.createContext(null),d=i.createContext(null),h=i.createContext(null),f=i.createContext(null),p=i.createContext({outlet:null,matches:[],isDataRoute:!1}),m=i.createContext(null);function v(e,t){let{relative:r}=void 0===t?{}:t;y()||(0,l.J0)(!1);let{basename:n,navigator:a}=i.useContext(h),{hash:o,pathname:s,search:u}=L(e,{relative:r}),c=s;return"/"!==n&&(c="/"===s?n:(0,l.RQ)([n,s])),a.createHref({pathname:c,search:u,hash:o})}function y(){return null!=i.useContext(f)}function g(){return y()||(0,l.J0)(!1),i.useContext(f).location}function b(){return i.useContext(f).navigationType}function w(e){y()||(0,l.J0)(!1);let{pathname:t}=g();return i.useMemo(()=>(0,l.LX)(e,(0,l.Cd)(t)),[t,e])}function E(e){i.useContext(h).static||i.useLayoutEffect(e)}function S(){let{isDataRoute:e}=i.useContext(p);return e?function(){let{router:e}=M(j.UseNavigateStable),t=N(O.UseNavigateStable),r=i.useRef(!1);return E(()=>{r.current=!0}),i.useCallback(function(n,a){void 0===a&&(a={}),r.current&&("number"==typeof n?e.navigate(n):e.navigate(n,s({fromRouteId:t},a)))},[e,t])}():function(){y()||(0,l.J0)(!1);let e=i.useContext(u),{basename:t,future:r,navigator:n}=i.useContext(h),{matches:a}=i.useContext(p),{pathname:o}=g(),s=JSON.stringify((0,l.cm)(a,r.v7_relativeSplatPath)),c=i.useRef(!1);return E(()=>{c.current=!0}),i.useCallback(function(r,a){if(void 0===a&&(a={}),!c.current)return;if("number"==typeof r)return void n.go(r);let i=(0,l.pC)(r,JSON.parse(s),o,"path"===a.relative);null==e&&"/"!==t&&(i.pathname="/"===i.pathname?t:(0,l.RQ)([t,i.pathname])),(a.replace?n.replace:n.push)(i,a.state,a)},[t,n,s,o,e])}()}let R=i.createContext(null);function x(){return i.useContext(R)}function P(e){let t=i.useContext(p).outlet;return t?i.createElement(R.Provider,{value:e},t):t}function C(){let{matches:e}=i.useContext(p),t=e[e.length-1];return t?t.params:{}}function L(e,t){let{relative:r}=void 0===t?{}:t,{future:n}=i.useContext(h),{matches:a}=i.useContext(p),{pathname:o}=g(),s=JSON.stringify((0,l.cm)(a,n.v7_relativeSplatPath));return i.useMemo(()=>(0,l.pC)(e,JSON.parse(s),o,"path"===r),[e,s,o,r])}function D(e,t){return k(e,t)}function k(e,t,r,n){let a;y()||(0,l.J0)(!1);let{navigator:o,static:u}=i.useContext(h),{matches:c}=i.useContext(p),d=c[c.length-1],m=d?d.params:{};d&&d.pathname;let v=d?d.pathnameBase:"/";d&&d.route;let b=g();if(t){var w;let e="string"==typeof t?(0,l.cP)(t):t;"/"===v||(null==(w=e.pathname)?void 0:w.startsWith(v))||(0,l.J0)(!1),a=e}else a=b;let E=a.pathname||"/",S=E;if("/"!==v){let e=v.replace(/^\//,"").split("/");S="/"+E.replace(/^\//,"").split("/").slice(e.length).join("/")}let R=!u&&r&&r.matches&&r.matches.length>0?r.matches:(0,l.fp)(e,{pathname:S}),x=T(R&&R.map(e=>Object.assign({},e,{params:Object.assign({},m,e.params),pathname:(0,l.RQ)([v,o.encodeLocation?o.encodeLocation(e.pathname).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?v:(0,l.RQ)([v,o.encodeLocation?o.encodeLocation(e.pathnameBase).pathname:e.pathnameBase])})),c,r,n);return t&&x?i.createElement(f.Provider,{value:{location:s({pathname:"/",search:"",hash:"",state:null,key:"default"},a),navigationType:l.aU.Pop}},x):x}let _=i.createElement(function(){let e=V(),t=(0,l.WK)(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null;return i.createElement(i.Fragment,null,i.createElement("h2",null,"Unexpected Application Error!"),i.createElement("h3",{style:{fontStyle:"italic"}},t),r?i.createElement("pre",{style:{padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"}},r):null,null)},null);class U extends i.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||"idle"!==t.revalidation&&"idle"===e.revalidation?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:void 0!==e.error?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){console.error("React Router caught the following error during render",e,t)}render(){return void 0!==this.state.error?i.createElement(p.Provider,{value:this.props.routeContext},i.createElement(m.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function A(e){let{routeContext:t,match:r,children:n}=e,a=i.useContext(u);return a&&a.static&&a.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(a.staticContext._deepestRenderedBoundaryId=r.route.id),i.createElement(p.Provider,{value:t},n)}function T(e,t,r,n){var a,o;if(void 0===t&&(t=[]),void 0===r&&(r=null),void 0===n&&(n=null),null==e){if(!r)return null;if(r.errors)e=r.matches;else{if(null==(o=n)||!o.v7_partialHydration||0!==t.length||r.initialized||!(r.matches.length>0))return null;e=r.matches}}let s=e,u=null==(a=r)?void 0:a.errors;if(null!=u){let e=s.findIndex(e=>e.route.id&&(null==u?void 0:u[e.route.id])!==void 0);e>=0||(0,l.J0)(!1),s=s.slice(0,Math.min(s.length,e+1))}let c=!1,d=-1;if(r&&n&&n.v7_partialHydration)for(let e=0;e<s.length;e++){let t=s[e];if((t.route.HydrateFallback||t.route.hydrateFallbackElement)&&(d=e),t.route.id){let{loaderData:e,errors:n}=r,a=t.route.loader&&void 0===e[t.route.id]&&(!n||void 0===n[t.route.id]);if(t.route.lazy||a){c=!0,s=d>=0?s.slice(0,d+1):[s[0]];break}}}return s.reduceRight((e,n,a)=>{var o;let l,h=!1,f=null,p=null;r&&(l=u&&n.route.id?u[n.route.id]:void 0,f=n.route.errorElement||_,c&&(d<0&&0===a?(o="route-fallback",Y[o]||(Y[o]=!0),h=!0,p=null):d===a&&(h=!0,p=n.route.hydrateFallbackElement||null)));let m=t.concat(s.slice(0,a+1)),v=()=>{let t;return t=l?f:h?p:n.route.Component?i.createElement(n.route.Component,null):n.route.element?n.route.element:e,i.createElement(A,{match:n,routeContext:{outlet:e,matches:m,isDataRoute:null!=r},children:t})};return r&&(n.route.ErrorBoundary||n.route.errorElement||0===a)?i.createElement(U,{location:r.location,revalidation:r.revalidation,component:f,error:l,children:v(),routeContext:{outlet:null,matches:m,isDataRoute:!0}}):v()},null)}var j=((n=j||{}).UseBlocker="useBlocker",n.UseRevalidator="useRevalidator",n.UseNavigateStable="useNavigate",n),O=((a=O||{}).UseBlocker="useBlocker",a.UseLoaderData="useLoaderData",a.UseActionData="useActionData",a.UseRouteError="useRouteError",a.UseNavigation="useNavigation",a.UseRouteLoaderData="useRouteLoaderData",a.UseMatches="useMatches",a.UseRevalidator="useRevalidator",a.UseNavigateStable="useNavigate",a.UseRouteId="useRouteId",a);function M(e){let t=i.useContext(u);return t||(0,l.J0)(!1),t}function F(e){let t=i.useContext(c);return t||(0,l.J0)(!1),t}function N(e){let t,r=((t=i.useContext(p))||(0,l.J0)(!1),t),n=r.matches[r.matches.length-1];return n.route.id||(0,l.J0)(!1),n.route.id}function B(){return N(O.UseRouteId)}function H(){return F(O.UseNavigation).navigation}function W(){let e=M(j.UseRevalidator),t=F(O.UseRevalidator);return i.useMemo(()=>({revalidate:e.router.revalidate,state:t.revalidation}),[e.router.revalidate,t.revalidation])}function I(){let{matches:e,loaderData:t}=F(O.UseMatches);return i.useMemo(()=>e.map(e=>(0,l.WS)(e,t)),[e,t])}function J(){let e=F(O.UseLoaderData),t=N(O.UseLoaderData);return e.errors&&null!=e.errors[t]?void console.error("You cannot `useLoaderData` in an errorElement (routeId: "+t+")"):e.loaderData[t]}function z(e){return F(O.UseRouteLoaderData).loaderData[e]}function $(){let e=F(O.UseActionData),t=N(O.UseLoaderData);return e.actionData?e.actionData[t]:void 0}function V(){var e;let t=i.useContext(m),r=F(O.UseRouteError),n=N(O.UseRouteError);return void 0!==t?t:null==(e=r.errors)?void 0:e[n]}function K(){let e=i.useContext(d);return null==e?void 0:e._data}function X(){let e=i.useContext(d);return null==e?void 0:e._error}let Z=0;function q(e){let{router:t,basename:r}=M(j.UseBlocker),n=F(O.UseBlocker),[a,o]=i.useState(""),u=i.useCallback(t=>{if("function"!=typeof e)return!!e;if("/"===r)return e(t);let{currentLocation:n,nextLocation:a,historyAction:o}=t;return e({currentLocation:s({},n,{pathname:(0,l.Zn)(n.pathname,r)||n.pathname}),nextLocation:s({},a,{pathname:(0,l.Zn)(a.pathname,r)||a.pathname}),historyAction:o})},[r,e]);return i.useEffect(()=>{let e=String(++Z);return o(e),()=>t.deleteBlocker(e)},[t]),i.useEffect(()=>{""!==a&&t.getBlocker(a,u)},[t,a,u]),a&&n.blockers.has(a)?n.blockers.get(a):l.qp}let Y={},Q=(e,t,r)=>{};function G(e,t){(null==e?void 0:e.v7_startTransition)===void 0&&Q("v7_startTransition","React Router will begin wrapping state updates in `React.startTransition` in v7","https://reactrouter.com/v6/upgrading/future#v7_starttransition"),(null==e?void 0:e.v7_relativeSplatPath)!==void 0||t&&t.v7_relativeSplatPath||Q("v7_relativeSplatPath","Relative route resolution within Splat routes is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_relativesplatpath"),t&&(void 0===t.v7_fetcherPersist&&Q("v7_fetcherPersist","The persistence behavior of fetchers is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_fetcherpersist"),void 0===t.v7_normalizeFormMethod&&Q("v7_normalizeFormMethod","Casing of `formMethod` fields is being normalized to uppercase in v7","https://reactrouter.com/v6/upgrading/future#v7_normalizeformmethod"),void 0===t.v7_partialHydration&&Q("v7_partialHydration","`RouterProvider` hydration behavior is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_partialhydration"),void 0===t.v7_skipActionErrorRevalidation&&Q("v7_skipActionErrorRevalidation","The revalidation behavior after 4xx/5xx `action` responses is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_skipactionerrorrevalidation"))}let ee=i.startTransition;function et(e){let{basename:t,children:r,initialEntries:n,initialIndex:a,future:o}=e,s=i.useRef();null==s.current&&(s.current=(0,l.PP)({initialEntries:n,initialIndex:a,v5Compat:!0}));let u=s.current,[c,d]=i.useState({action:u.action,location:u.location}),{v7_startTransition:h}=o||{},f=i.useCallback(e=>{h&&ee?ee(()=>d(e)):d(e)},[d,h]);return i.useLayoutEffect(()=>u.listen(f),[u,f]),i.useEffect(()=>G(o),[o]),i.createElement(eo,{basename:t,children:r,location:c.location,navigationType:c.action,navigator:u,future:o})}function er(e){let{to:t,replace:r,state:n,relative:a}=e;y()||(0,l.J0)(!1);let{future:o,static:s}=i.useContext(h),{matches:u}=i.useContext(p),{pathname:c}=g(),d=S(),f=JSON.stringify((0,l.pC)(t,(0,l.cm)(u,o.v7_relativeSplatPath),c,"path"===a));return i.useEffect(()=>d(JSON.parse(f),{replace:r,state:n,relative:a}),[d,f,a,r,n]),null}function en(e){return P(e.context)}function ea(e){(0,l.J0)(!1)}function eo(e){let{basename:t="/",children:r=null,location:n,navigationType:a=l.aU.Pop,navigator:o,static:u=!1,future:c}=e;y()&&(0,l.J0)(!1);let d=t.replace(/^\/*/,"/"),p=i.useMemo(()=>({basename:d,navigator:o,static:u,future:s({v7_relativeSplatPath:!1},c)}),[d,c,o,u]);"string"==typeof n&&(n=(0,l.cP)(n));let{pathname:m="/",search:v="",hash:g="",state:b=null,key:w="default"}=n,E=i.useMemo(()=>{let e=(0,l.Zn)(m,d);return null==e?null:{location:{pathname:e,search:v,hash:g,state:b,key:w},navigationType:a}},[d,m,v,g,b,w,a]);return null==E?null:i.createElement(h.Provider,{value:p},i.createElement(f.Provider,{children:r,value:E}))}function ei(e){let{children:t,location:r}=e;return k(eh(t),r)}function el(e){let{children:t,errorElement:r,resolve:n}=e;return i.createElement(ec,{resolve:n,errorElement:r},i.createElement(ed,null,t))}var es=((o=es||{})[o.pending=0]="pending",o[o.success=1]="success",o[o.error=2]="error",o);let eu=new Promise(()=>{});class ec extends i.Component{constructor(e){super(e),this.state={error:null}}static getDerivedStateFromError(e){return{error:e}}componentDidCatch(e,t){console.error("<Await> caught the following error during render",e,t)}render(){let{children:e,errorElement:t,resolve:r}=this.props,n=null,a=es.pending;if(r instanceof Promise)if(this.state.error){a=es.error;let e=this.state.error;Object.defineProperty(n=Promise.reject().catch(()=>{}),"_tracked",{get:()=>!0}),Object.defineProperty(n,"_error",{get:()=>e})}else r._tracked?a="_error"in(n=r)?es.error:"_data"in n?es.success:es.pending:(a=es.pending,Object.defineProperty(r,"_tracked",{get:()=>!0}),n=r.then(e=>Object.defineProperty(r,"_data",{get:()=>e}),e=>Object.defineProperty(r,"_error",{get:()=>e})));else a=es.success,Object.defineProperty(n=Promise.resolve(),"_tracked",{get:()=>!0}),Object.defineProperty(n,"_data",{get:()=>r});if(a===es.error&&n._error instanceof l.X3)throw eu;if(a===es.error&&!t)throw n._error;if(a===es.error)return i.createElement(d.Provider,{value:n,children:t});if(a===es.success)return i.createElement(d.Provider,{value:n,children:e});throw n}}function ed(e){let{children:t}=e,r=K(),n="function"==typeof t?t(r):t;return i.createElement(i.Fragment,null,n)}function eh(e,t){void 0===t&&(t=[]);let r=[];return i.Children.forEach(e,(e,n)=>{if(!i.isValidElement(e))return;let a=[...t,n];if(e.type===i.Fragment)return void r.push.apply(r,eh(e.props.children,a));e.type!==ea&&(0,l.J0)(!1),e.props.index&&e.props.children&&(0,l.J0)(!1);let o={id:e.props.id||a.join("-"),caseSensitive:e.props.caseSensitive,element:e.props.element,Component:e.props.Component,index:e.props.index,path:e.props.path,loader:e.props.loader,action:e.props.action,errorElement:e.props.errorElement,ErrorBoundary:e.props.ErrorBoundary,hasErrorBoundary:null!=e.props.ErrorBoundary||null!=e.props.errorElement,shouldRevalidate:e.props.shouldRevalidate,handle:e.props.handle,lazy:e.props.lazy};e.props.children&&(o.children=eh(e.props.children,a)),r.push(o)}),r}function ef(e){return T(e)}function ep(e){let t={hasErrorBoundary:null!=e.ErrorBoundary||null!=e.errorElement};return e.Component&&Object.assign(t,{element:i.createElement(e.Component),Component:void 0}),e.HydrateFallback&&Object.assign(t,{hydrateFallbackElement:i.createElement(e.HydrateFallback),HydrateFallback:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:i.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}function em(e,t){return(0,l.p7)({basename:null==t?void 0:t.basename,future:s({},null==t?void 0:t.future,{v7_prependBasename:!0}),history:(0,l.PP)({initialEntries:null==t?void 0:t.initialEntries,initialIndex:null==t?void 0:t.initialIndex}),hydrationData:null==t?void 0:t.hydrationData,routes:e,mapRouteProperties:ep,dataStrategy:null==t?void 0:t.dataStrategy,patchRoutesOnNavigation:null==t?void 0:t.patchRoutesOnNavigation}).initialize()}}}]);
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @remix-run/router v1.23.0
|
|
3
|
+
*
|
|
4
|
+
* Copyright (c) Remix Software Inc.
|
|
5
|
+
*
|
|
6
|
+
* This source code is licensed under the MIT license found in the
|
|
7
|
+
* LICENSE.md file in the root directory of this source tree.
|
|
8
|
+
*
|
|
9
|
+
* @license MIT
|
|
10
|
+
*/
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* React Router DOM v6.30.0
|
|
14
|
+
*
|
|
15
|
+
* Copyright (c) Remix Software Inc.
|
|
16
|
+
*
|
|
17
|
+
* This source code is licensed under the MIT license found in the
|
|
18
|
+
* LICENSE.md file in the root directory of this source tree.
|
|
19
|
+
*
|
|
20
|
+
* @license MIT
|
|
21
|
+
*/
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* React Router v6.30.0
|
|
25
|
+
*
|
|
26
|
+
* Copyright (c) Remix Software Inc.
|
|
27
|
+
*
|
|
28
|
+
* This source code is licensed under the MIT license found in the
|
|
29
|
+
* LICENSE.md file in the root directory of this source tree.
|
|
30
|
+
*
|
|
31
|
+
* @license MIT
|
|
32
|
+
*/
|