@perses-dev/victorialogs-plugin 0.1.0 → 0.3.0-beta.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/__mf/js/VictoriaLogs.d3b01c69.js +6 -0
- package/__mf/js/async/1170.1ace5903.js +101 -0
- package/__mf/js/async/1430.bac7994c.js +1 -0
- package/__mf/js/async/1490.0a9fe77f.js +22 -0
- package/__mf/js/async/1616.44d9fc39.js +1 -0
- package/__mf/js/async/1728.6382e915.js +1 -0
- package/__mf/js/async/1969.4f0fc9ef.js +1 -0
- package/__mf/js/async/2043.a03fc64f.js +2 -0
- package/__mf/js/async/{8930.fa15926d.js → 2377.443a1b22.js} +1 -1
- package/__mf/js/async/2386.21b9bb32.js +2 -0
- package/__mf/js/async/2749.edab3f5e.js +2 -0
- package/__mf/js/async/3059.bd425bfb.js +1 -0
- package/__mf/js/async/3181.0e31aa90.js +2 -0
- package/__mf/js/async/3664.6288aa89.js +2 -0
- package/__mf/js/async/3849.115bcf03.js +7 -0
- package/__mf/js/async/392.2a915032.js +2 -0
- package/__mf/js/async/{1964.6d84f735.js → 4121.db798067.js} +2 -2
- package/__mf/js/async/4225.43367877.js +10 -0
- package/__mf/js/async/4248.ce5ffe03.js +1 -0
- package/__mf/js/async/5071.b48bd1f7.js +1 -0
- package/__mf/js/async/5440.f8ca94c1.js +2 -0
- package/__mf/js/async/5501.df443492.js +2 -0
- package/__mf/js/async/{5214.bcb7530e.js → 5587.dfbc3ebc.js} +1 -1
- package/__mf/js/async/5706.a7fb5c1b.js +1 -0
- package/__mf/js/async/6274.f6456c87.js +2 -0
- package/__mf/js/async/6283.5edb374e.js +2 -0
- package/__mf/js/async/6854.efd1a0a6.js +1 -0
- package/__mf/js/async/713.249fa307.js +1 -0
- package/__mf/js/async/{8488.9eb8e6dc.js → 7177.0fe1dff0.js} +1 -1
- package/__mf/js/async/7192.cb6ffe0e.js +1 -0
- package/__mf/js/async/7370.ef522250.js +2 -0
- package/__mf/js/async/7793.06fe240f.js +1 -0
- package/__mf/js/async/7968.5fed5183.js +1 -0
- package/__mf/js/async/7978.c5b22459.js +1 -0
- package/__mf/js/async/8035.d5aedc00.js +38 -0
- package/__mf/js/async/8356.2b39af38.js +1 -0
- package/__mf/js/async/8470.32cf23b6.js +2 -0
- package/__mf/js/async/8482.6c4d64de.js +1 -0
- package/__mf/js/async/873.f5cf5a02.js +1 -0
- package/__mf/js/async/9071.720986e2.js +2 -0
- package/__mf/js/async/9235.543bd352.js +1 -0
- package/__mf/js/async/941.6f8e368d.js +2 -0
- package/__mf/js/async/9588.b67d84aa.js +1 -0
- package/__mf/js/async/9836.bbf150b2.js +1 -0
- package/__mf/js/async/9944.34a79f7c.js +1 -0
- package/__mf/js/async/__federation_expose_VictoriaLogsDatasource.163bb6a4.js +2 -0
- package/__mf/js/async/__federation_expose_VictoriaLogsFieldNamesVariable.4a4949a1.js +2 -0
- package/__mf/js/async/__federation_expose_VictoriaLogsFieldValuesVariable.d95843ce.js +2 -0
- package/__mf/js/async/__federation_expose_VictoriaLogsLogQuery.61d14c09.js +1 -0
- package/__mf/js/async/__federation_expose_VictoriaLogsTimeSeriesQuery.7109f505.js +1 -0
- package/__mf/js/main.9cf12b2f.js +6 -0
- package/lib/cjs/model/client.js +5 -5
- package/lib/cjs/model/selectors.js +5 -5
- package/lib/cjs/queries/constants.js +3 -3
- package/lib/cjs/variables/utils.js +5 -5
- package/lib/cjs/variables/victorialogs-field-names/VictoriaLogsFieldNamesVariableEditor.js +1 -10
- package/lib/cjs/variables/victorialogs-field-values/VictoriaLogsFieldValuesVariableEditor.js +2 -19
- package/lib/components/logsql-editor.js +1 -1
- package/lib/components/logsql-editor.js.map +1 -1
- package/lib/datasources/victorialogs-datasource/VictoriaLogsDatasourceEditor.js +1 -1
- package/lib/datasources/victorialogs-datasource/VictoriaLogsDatasourceEditor.js.map +1 -1
- package/lib/queries/victorialogs-log-query/VictoriaLogsLogQueryEditor.js +1 -1
- package/lib/queries/victorialogs-log-query/VictoriaLogsLogQueryEditor.js.map +1 -1
- package/lib/queries/victorialogs-log-query/interface.d.ts +0 -1
- package/lib/queries/victorialogs-log-query/interface.d.ts.map +1 -1
- package/lib/queries/victorialogs-log-query/interface.js.map +1 -1
- package/lib/queries/victorialogs-time-series-query/VictoriaLogsTimeSeriesQueryEditor.js +1 -1
- package/lib/queries/victorialogs-time-series-query/VictoriaLogsTimeSeriesQueryEditor.js.map +1 -1
- package/lib/variables/victorialogs-field-names/VictoriaLogsFieldNamesVariableEditor.d.ts.map +1 -1
- package/lib/variables/victorialogs-field-names/VictoriaLogsFieldNamesVariableEditor.js +2 -11
- package/lib/variables/victorialogs-field-names/VictoriaLogsFieldNamesVariableEditor.js.map +1 -1
- package/lib/variables/victorialogs-field-values/VictoriaLogsFieldValuesVariableEditor.d.ts.map +1 -1
- package/lib/variables/victorialogs-field-values/VictoriaLogsFieldValuesVariableEditor.js +3 -20
- package/lib/variables/victorialogs-field-values/VictoriaLogsFieldValuesVariableEditor.js.map +1 -1
- package/mf-manifest.json +157 -157
- package/mf-stats.json +157 -157
- package/package.json +6 -6
- package/__mf/js/VictoriaLogs.9a08c902.js +0 -5
- package/__mf/js/async/158.c35084cf.js +0 -10
- package/__mf/js/async/1580.ace454a9.js +0 -2
- package/__mf/js/async/2178.d1785908.js +0 -2
- package/__mf/js/async/2292.0696771a.js +0 -2
- package/__mf/js/async/2472.3c37aa71.js +0 -22
- package/__mf/js/async/2558.beff8442.js +0 -101
- package/__mf/js/async/2708.c79893a7.js +0 -1
- package/__mf/js/async/3224.858fb6d6.js +0 -1
- package/__mf/js/async/3431.358ac817.js +0 -1
- package/__mf/js/async/3863.66f8659b.js +0 -2
- package/__mf/js/async/3960.bbacac1d.js +0 -2
- package/__mf/js/async/3980.03396afa.js +0 -2
- package/__mf/js/async/4075.8aae8af4.js +0 -1
- package/__mf/js/async/4238.cd5e3d1f.js +0 -1
- package/__mf/js/async/4269.f9191848.js +0 -2
- package/__mf/js/async/4310.b6c0f250.js +0 -7
- package/__mf/js/async/4421.c442f6d9.js +0 -1
- package/__mf/js/async/5348.aa77f629.js +0 -2
- package/__mf/js/async/5388.92f525c5.js +0 -1
- package/__mf/js/async/5409.5d25f1db.js +0 -1
- package/__mf/js/async/5628.f229b9f6.js +0 -1
- package/__mf/js/async/5682.a317ee96.js +0 -1
- package/__mf/js/async/5790.f7a41a40.js +0 -1
- package/__mf/js/async/5981.e54ec80b.js +0 -2
- package/__mf/js/async/6134.6f58094d.js +0 -38
- package/__mf/js/async/6292.fda8a9af.js +0 -1
- package/__mf/js/async/6333.031c68b4.js +0 -2
- package/__mf/js/async/6374.e9650306.js +0 -1
- package/__mf/js/async/6377.e48abaa5.js +0 -2
- package/__mf/js/async/6620.4f2fc96e.js +0 -2
- package/__mf/js/async/6770.5c90a318.js +0 -1
- package/__mf/js/async/694.663f3faf.js +0 -1
- package/__mf/js/async/7376.91743064.js +0 -1
- package/__mf/js/async/738.b4e8c361.js +0 -1
- package/__mf/js/async/7740.82b38509.js +0 -1
- package/__mf/js/async/8216.3417496f.js +0 -1
- package/__mf/js/async/8537.a7ed2e24.js +0 -1
- package/__mf/js/async/8727.e54ca5fd.js +0 -1
- package/__mf/js/async/9173.d784dd69.js +0 -2
- package/__mf/js/async/9563.b88ff7ff.js +0 -2
- package/__mf/js/async/__federation_expose_VictoriaLogsDatasource.807e09ec.js +0 -2
- package/__mf/js/async/__federation_expose_VictoriaLogsFieldNamesVariable.94ae15a7.js +0 -2
- package/__mf/js/async/__federation_expose_VictoriaLogsFieldValuesVariable.eabc284b.js +0 -2
- package/__mf/js/async/__federation_expose_VictoriaLogsLogQuery.8122cbeb.js +0 -1
- package/__mf/js/async/__federation_expose_VictoriaLogsTimeSeriesQuery.56dd4cab.js +0 -1
- package/__mf/js/main.9f62e593.js +0 -5
- /package/__mf/css/async/{1580.d3010b86.css → 3061.d3010b86.css} +0 -0
- /package/__mf/css/async/{2341.d3010b86.css → 7370.d3010b86.css} +0 -0
- /package/__mf/js/async/{2472.3c37aa71.js.LICENSE.txt → 1490.0a9fe77f.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{2292.0696771a.js.LICENSE.txt → 2043.a03fc64f.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{1580.ace454a9.js.LICENSE.txt → 2386.21b9bb32.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{3863.66f8659b.js.LICENSE.txt → 2749.edab3f5e.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{4269.f9191848.js.LICENSE.txt → 3181.0e31aa90.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{6620.4f2fc96e.js.LICENSE.txt → 3664.6288aa89.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{4310.b6c0f250.js.LICENSE.txt → 3849.115bcf03.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{5981.e54ec80b.js.LICENSE.txt → 392.2a915032.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{1964.6d84f735.js.LICENSE.txt → 4121.db798067.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{158.c35084cf.js.LICENSE.txt → 4225.43367877.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{6377.e48abaa5.js.LICENSE.txt → 5440.f8ca94c1.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{2178.d1785908.js.LICENSE.txt → 5501.df443492.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{3960.bbacac1d.js.LICENSE.txt → 6274.f6456c87.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{3980.03396afa.js.LICENSE.txt → 6283.5edb374e.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{5348.aa77f629.js.LICENSE.txt → 7370.ef522250.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{9173.d784dd69.js.LICENSE.txt → 8470.32cf23b6.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{6333.031c68b4.js.LICENSE.txt → 9071.720986e2.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{9563.b88ff7ff.js.LICENSE.txt → 941.6f8e368d.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{__federation_expose_VictoriaLogsDatasource.807e09ec.js.LICENSE.txt → __federation_expose_VictoriaLogsDatasource.163bb6a4.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{__federation_expose_VictoriaLogsFieldNamesVariable.94ae15a7.js.LICENSE.txt → __federation_expose_VictoriaLogsFieldNamesVariable.4a4949a1.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{__federation_expose_VictoriaLogsFieldValuesVariable.eabc284b.js.LICENSE.txt → __federation_expose_VictoriaLogsFieldValuesVariable.d95843ce.js.LICENSE.txt} +0 -0
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/*! For license information please see 6333.031c68b4.js.LICENSE.txt */
|
|
2
|
-
"use strict";(self.chunk_VictoriaLogs=self.chunk_VictoriaLogs||[]).push([["6333"],{71426:function(e,r,o){var t=o(54538),n=Symbol.for("react.element"),f=Symbol.for("react.fragment"),s=Object.prototype.hasOwnProperty,_=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,c={key:!0,ref:!0,__self:!0,__source:!0};function i(e,r,o){var t,f={},i=null,u=null;for(t in void 0!==o&&(i=""+o),void 0!==r.key&&(i=""+r.key),void 0!==r.ref&&(u=r.ref),r)s.call(r,t)&&!c.hasOwnProperty(t)&&(f[t]=r[t]);if(e&&e.defaultProps)for(t in r=e.defaultProps)void 0===f[t]&&(f[t]=r[t]);return{$$typeof:n,type:e,key:i,ref:u,props:f,_owner:_.current}}r.Fragment=f,r.jsx=i,r.jsxs=i},24246:function(e,r,o){e.exports=o(71426)}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.chunk_VictoriaLogs=self.chunk_VictoriaLogs||[]).push([["6374"],{19090:function(e,t,r){r.d(t,{Z:()=>h});var n=r(54538),o=r(90496),i=r(82267),l=r(12709),a=r(51751),s=r(16351),u=r(69761),d=r(44124),p=r(6749);function c(e){return(0,p.ZP)("MuiBackdrop",e)}(0,d.Z)("MuiBackdrop",["root","invisible"]);var f=r(24246);let m=(0,l.ZP)("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,r.invisible&&t.invisible]}})({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent",variants:[{props:{invisible:!0},style:{backgroundColor:"transparent"}}]}),h=n.forwardRef(function(e,t){let r=(0,a.i)({props:e,name:"MuiBackdrop"}),{children:n,className:l,component:d="div",invisible:p=!1,open:h,components:v={},componentsProps:b={},slotProps:g={},slots:y={},TransitionComponent:Z,transitionDuration:x,...S}=r,w={...r,component:d,invisible:p},E=(e=>{let{classes:t,invisible:r}=e;return(0,i.Z)({root:["root",r&&"invisible"]},c,t)})(w),P={slots:{transition:Z,root:v.Root,...y},slotProps:{...b,...g}},[R,k]=(0,s.Z)("root",{elementType:m,externalForwardedProps:P,className:(0,o.Z)(E.root,l),ownerState:w}),[C,M]=(0,s.Z)("transition",{elementType:u.Z,externalForwardedProps:P,ownerState:w});return(0,f.jsx)(C,{in:h,timeout:x,...S,...M,children:(0,f.jsx)(R,{"aria-hidden":!0,...k,classes:E,ref:t,children:n})})})},69761:function(e,t,r){r.d(t,{Z:()=>p});var n=r(54538),o=r(41825),i=r(94680),l=r(94776),a=r(42777),s=r(51183),u=r(24246);let d={entering:{opacity:1},entered:{opacity:1}},p=n.forwardRef(function(e,t){let r=(0,l.Z)(),p={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:c,appear:f=!0,children:m,easing:h,in:v,onEnter:b,onEntered:g,onEntering:y,onExit:Z,onExited:x,onExiting:S,style:w,timeout:E=p,TransitionComponent:P=o.ZP,...R}=e,k=n.useRef(null),C=(0,s.Z)(k,(0,i.Z)(m),t),M=e=>t=>{if(e){let r=k.current;void 0===t?e(r):e(r,t)}},_=M(y),O=M((e,t)=>{(0,a.n)(e);let n=(0,a.C)({style:w,timeout:E,easing:h},{mode:"enter"});e.style.webkitTransition=r.transitions.create("opacity",n),e.style.transition=r.transitions.create("opacity",n),b&&b(e,t)}),T=M(g),I=M(S),z=M(e=>{let t=(0,a.C)({style:w,timeout:E,easing:h},{mode:"exit"});e.style.webkitTransition=r.transitions.create("opacity",t),e.style.transition=r.transitions.create("opacity",t),Z&&Z(e)}),F=M(x);return(0,u.jsx)(P,{appear:f,in:v,nodeRef:k,onEnter:O,onEntered:T,onEntering:_,onExit:z,onExited:F,onExiting:I,addEndListener:e=>{c&&c(k.current,e)},timeout:E,...R,children:(e,{ownerState:t,...r})=>n.cloneElement(m,{style:{opacity:0,visibility:"exited"!==e||v?void 0:"hidden",...d[e],...w,...m.props.style},ref:C,...r})})})},90222:function(e,t,r){r.d(t,{Z:()=>g});var n=r(54538),o=r(61170),i=r(82267),l=r(55879),a=r(73037),s=r(12709),u=r(82319),d=r(90433),p=r(51751),c=r(6499),f=r(51640),m=r(24246);let h=(0,s.ZP)(l.Ej,{shouldForwardProp:e=>(0,a.Z)(e)||"classes"===e,name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[...(0,l.Gx)(e,t),!r.disableUnderline&&t.underline]}})((0,u.Z)(({theme:e})=>{let t="light"===e.palette.mode,r=t?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)";return{position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)","@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r}},[`&.${c.Z.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r},[`&.${c.Z.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:t?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)"},variants:[{props:({ownerState:e})=>!e.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${c.Z.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${c.Z.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:t?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)"}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${c.Z.disabled}, .${c.Z.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${c.Z.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter((0,d.Z)()).map(([t])=>({props:{disableUnderline:!1,color:t},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[t]?.main}`}}})),{props:({ownerState:e})=>e.startAdornment,style:{paddingLeft:12}},{props:({ownerState:e})=>e.endAdornment,style:{paddingRight:12}},{props:({ownerState:e})=>e.multiline,style:{padding:"25px 12px 8px"}},{props:({ownerState:e,size:t})=>e.multiline&&"small"===t,style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:e})=>e.multiline&&e.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:e})=>e.multiline&&e.hiddenLabel&&"small"===e.size,style:{paddingTop:8,paddingBottom:9}}]}})),v=(0,s.ZP)(l.ni,{name:"MuiFilledInput",slot:"Input",overridesResolver:l._o})((0,u.Z)(({theme:e})=>({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12,...!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:"light"===e.palette.mode?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===e.palette.mode?null:"#fff",caretColor:"light"===e.palette.mode?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},...e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:e})=>e.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:e})=>e.startAdornment,style:{paddingLeft:0}},{props:({ownerState:e})=>e.endAdornment,style:{paddingRight:0}},{props:({ownerState:e})=>e.hiddenLabel&&"small"===e.size,style:{paddingTop:8,paddingBottom:9}},{props:({ownerState:e})=>e.multiline,style:{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0}}]}))),b=n.forwardRef(function(e,t){let r=(0,p.i)({props:e,name:"MuiFilledInput"}),{disableUnderline:n=!1,components:a={},componentsProps:s,fullWidth:u=!1,hiddenLabel:d,inputComponent:b="input",multiline:g=!1,slotProps:y,slots:Z={},type:x="text",...S}=r,w={...r,disableUnderline:n,fullWidth:u,inputComponent:b,multiline:g,type:x},E=(e=>{let{classes:t,disableUnderline:r,startAdornment:n,endAdornment:o,size:l,hiddenLabel:a,multiline:s}=e,u={root:["root",!r&&"underline",n&&"adornedStart",o&&"adornedEnd","small"===l&&`size${(0,f.Z)(l)}`,a&&"hiddenLabel",s&&"multiline"],input:["input"]},d=(0,i.Z)(u,c._,t);return{...t,...d}})(r),P={root:{ownerState:w},input:{ownerState:w}},R=y??s?(0,o.Z)(P,y??s):P,k=Z.root??a.Root??h,C=Z.input??a.Input??v;return(0,m.jsx)(l.ZP,{slots:{root:k,input:C},slotProps:R,fullWidth:u,inputComponent:b,multiline:g,ref:t,type:x,...S,classes:E})});b.muiName="Input";let g=b},6499:function(e,t,r){r.d(t,{Z:()=>l,_:()=>i});var n=r(44124),o=r(6749);function i(e){return(0,o.ZP)("MuiFilledInput",e)}let l={...r(3597).Z,...(0,n.Z)("MuiFilledInput",["root","underline","input","adornedStart","adornedEnd","sizeSmall","multiline","hiddenLabel"])}},90192:function(e,t,r){r.d(t,{Z:()=>b});var n=r(54538),o=r(90496),i=r(82267),l=r(12709),a=r(51751),s=r(65021),u=r(51640),d=r(70777),p=r(29992),c=r(44124),f=r(6749);function m(e){return(0,f.ZP)("MuiFormControl",e)}(0,c.Z)("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);var h=r(24246);let v=(0,l.ZP)("div",{name:"MuiFormControl",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,t[`margin${(0,u.Z)(r.margin)}`],r.fullWidth&&t.fullWidth]}})({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top",variants:[{props:{margin:"normal"},style:{marginTop:16,marginBottom:8}},{props:{margin:"dense"},style:{marginTop:8,marginBottom:4}},{props:{fullWidth:!0},style:{width:"100%"}}]}),b=n.forwardRef(function(e,t){let r,l=(0,a.i)({props:e,name:"MuiFormControl"}),{children:c,className:f,color:b="primary",component:g="div",disabled:y=!1,error:Z=!1,focused:x,fullWidth:S=!1,hiddenLabel:w=!1,margin:E="none",required:P=!1,size:R="medium",variant:k="outlined",...C}=l,M={...l,color:b,component:g,disabled:y,error:Z,fullWidth:S,hiddenLabel:w,margin:E,required:P,size:R,variant:k},_=(e=>{let{classes:t,margin:r,fullWidth:n}=e,o={root:["root","none"!==r&&`margin${(0,u.Z)(r)}`,n&&"fullWidth"]};return(0,i.Z)(o,m,t)})(M),[O,T]=n.useState(()=>{let e=!1;return c&&n.Children.forEach(c,t=>{if(!(0,d.Z)(t,["Input","Select"]))return;let r=(0,d.Z)(t,["Select"])?t.props.input:t;r&&(0,s.B7)(r.props)&&(e=!0)}),e}),[I,z]=n.useState(()=>{let e=!1;return c&&n.Children.forEach(c,t=>{(0,d.Z)(t,["Input","Select"])&&((0,s.vd)(t.props,!0)||(0,s.vd)(t.props.inputProps,!0))&&(e=!0)}),e}),[F,j]=n.useState(!1);y&&F&&j(!1);let N=void 0===x||y?F:x;n.useRef(!1);let A=n.useCallback(()=>{z(!0)},[]),L=n.useCallback(()=>{z(!1)},[]),$=n.useMemo(()=>({adornedStart:O,setAdornedStart:T,color:b,disabled:y,error:Z,filled:I,focused:N,fullWidth:S,hiddenLabel:w,size:R,onBlur:()=>{j(!1)},onFocus:()=>{j(!0)},onEmpty:L,onFilled:A,registerEffect:r,required:P,variant:k}),[O,b,y,Z,I,N,S,w,r,L,A,P,R,k]);return(0,h.jsx)(p.Z.Provider,{value:$,children:(0,h.jsx)(v,{as:g,ownerState:M,className:(0,o.Z)(_.root,f),ref:t,...C,children:c})})})},29992:function(e,t,r){r.d(t,{Z:()=>n});let n=r(54538).createContext(void 0)},33567:function(e,t,r){r.d(t,{Z:()=>n});function n({props:e,states:t,muiFormControl:r}){return t.reduce((t,n)=>(t[n]=e[n],r&&void 0===e[n]&&(t[n]=r[n]),t),{})}},36683:function(e,t,r){r.d(t,{Z:()=>i});var n=r(54538),o=r(29992);function i(){return n.useContext(o.Z)}},32931:function(e,t,r){r.d(t,{Z:()=>y});var n,o=r(54538),i=r(90496),l=r(82267),a=r(33567),s=r(36683),u=r(12709),d=r(82319),p=r(51751),c=r(51640),f=r(44124),m=r(6749);function h(e){return(0,m.ZP)("MuiFormHelperText",e)}let v=(0,f.Z)("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var b=r(24246);let g=(0,u.ZP)("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,r.size&&t[`size${(0,c.Z)(r.size)}`],r.contained&&t.contained,r.filled&&t.filled]}})((0,d.Z)(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.caption,textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${v.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${v.error}`]:{color:(e.vars||e).palette.error.main},variants:[{props:{size:"small"},style:{marginTop:4}},{props:({ownerState:e})=>e.contained,style:{marginLeft:14,marginRight:14}}]}))),y=o.forwardRef(function(e,t){let r=(0,p.i)({props:e,name:"MuiFormHelperText"}),{children:o,className:u,component:d="p",disabled:f,error:m,filled:v,focused:y,margin:Z,required:x,variant:S,...w}=r,E=(0,s.Z)(),P=(0,a.Z)({props:r,muiFormControl:E,states:["variant","size","disabled","error","filled","focused","required"]}),R={...r,component:d,contained:"filled"===P.variant||"outlined"===P.variant,variant:P.variant,size:P.size,disabled:P.disabled,error:P.error,filled:P.filled,focused:P.focused,required:P.required};delete R.ownerState;let k=(e=>{let{classes:t,contained:r,size:n,disabled:o,error:i,filled:a,focused:s,required:u}=e,d={root:["root",o&&"disabled",i&&"error",n&&`size${(0,c.Z)(n)}`,r&&"contained",s&&"focused",a&&"filled",u&&"required"]};return(0,l.Z)(d,h,t)})(R);return(0,b.jsx)(g,{as:d,className:(0,i.Z)(k.root,u),ref:t,...w,ownerState:R,children:" "===o?n||(n=(0,b.jsx)("span",{className:"notranslate","aria-hidden":!0,children:""})):o})})},23626:function(e,t,r){r.d(t,{Z:()=>b});var n=r(54538),o=r(90496),i=r(82267),l=r(33567),a=r(36683),s=r(51640),u=r(12709),d=r(82319),p=r(90433),c=r(51751),f=r(15143),m=r(24246);let h=(0,u.ZP)("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,"secondary"===r.color&&t.colorSecondary,r.filled&&t.filled]}})((0,d.Z)(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.body1,lineHeight:"1.4375em",padding:0,position:"relative",variants:[...Object.entries(e.palette).filter((0,p.Z)()).map(([t])=>({props:{color:t},style:{[`&.${f.Z.focused}`]:{color:(e.vars||e).palette[t].main}}})),{props:{},style:{[`&.${f.Z.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${f.Z.error}`]:{color:(e.vars||e).palette.error.main}}}]}))),v=(0,u.ZP)("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})((0,d.Z)(({theme:e})=>({[`&.${f.Z.error}`]:{color:(e.vars||e).palette.error.main}}))),b=n.forwardRef(function(e,t){let r=(0,c.i)({props:e,name:"MuiFormLabel"}),{children:n,className:u,color:d,component:p="label",disabled:b,error:g,filled:y,focused:Z,required:x,...S}=r,w=(0,a.Z)(),E=(0,l.Z)({props:r,muiFormControl:w,states:["color","required","focused","disabled","error","filled"]}),P={...r,color:E.color||"primary",component:p,disabled:E.disabled,error:E.error,filled:E.filled,focused:E.focused,required:E.required},R=(e=>{let{classes:t,color:r,focused:n,disabled:o,error:l,filled:a,required:u}=e,d={root:["root",`color${(0,s.Z)(r)}`,o&&"disabled",l&&"error",a&&"filled",n&&"focused",u&&"required"],asterisk:["asterisk",l&&"error"]};return(0,i.Z)(d,f.M,t)})(P);return(0,m.jsxs)(h,{as:p,ownerState:P,className:(0,o.Z)(R.root,u),ref:t,...S,children:[n,E.required&&(0,m.jsxs)(v,{ownerState:P,"aria-hidden":!0,className:R.asterisk,children:[" ","*"]})]})})},15143:function(e,t,r){r.d(t,{M:()=>i,Z:()=>l});var n=r(44124),o=r(6749);function i(e){return(0,o.ZP)("MuiFormLabel",e)}let l=(0,n.Z)("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"])},23382:function(e,t,r){r.d(t,{Z:()=>h});var n=r(54538),o=r(47126),i=r(94680),l=r(41825),a=r(94776),s=r(42777),u=r(51183),d=r(24246);function p(e){return`scale(${e}, ${e**2})`}let c={entering:{opacity:1,transform:p(1)},entered:{opacity:1,transform:"none"}},f="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),m=n.forwardRef(function(e,t){let{addEndListener:r,appear:m=!0,children:h,easing:v,in:b,onEnter:g,onEntered:y,onEntering:Z,onExit:x,onExited:S,onExiting:w,style:E,timeout:P="auto",TransitionComponent:R=l.ZP,...k}=e,C=(0,o.Z)(),M=n.useRef(),_=(0,a.Z)(),O=n.useRef(null),T=(0,u.Z)(O,(0,i.Z)(h),t),I=e=>t=>{if(e){let r=O.current;void 0===t?e(r):e(r,t)}},z=I(Z),F=I((e,t)=>{let r;(0,s.n)(e);let{duration:n,delay:o,easing:i}=(0,s.C)({style:E,timeout:P,easing:v},{mode:"enter"});"auto"===P?M.current=r=_.transitions.getAutoHeightDuration(e.clientHeight):r=n,e.style.transition=[_.transitions.create("opacity",{duration:r,delay:o}),_.transitions.create("transform",{duration:f?r:.666*r,delay:o,easing:i})].join(","),g&&g(e,t)}),j=I(y),N=I(w),A=I(e=>{let t,{duration:r,delay:n,easing:o}=(0,s.C)({style:E,timeout:P,easing:v},{mode:"exit"});"auto"===P?M.current=t=_.transitions.getAutoHeightDuration(e.clientHeight):t=r,e.style.transition=[_.transitions.create("opacity",{duration:t,delay:n}),_.transitions.create("transform",{duration:f?t:.666*t,delay:f?n:n||.333*t,easing:o})].join(","),e.style.opacity=0,e.style.transform=p(.75),x&&x(e)}),L=I(S);return(0,d.jsx)(R,{appear:m,in:b,nodeRef:O,onEnter:F,onEntered:j,onEntering:z,onExit:A,onExited:L,onExiting:N,addEndListener:e=>{"auto"===P&&C.start(M.current||0,e),r&&r(O.current,e)},timeout:"auto"===P?null:P,...k,children:(e,{ownerState:t,...r})=>n.cloneElement(h,{style:{opacity:0,transform:p(.75),visibility:"exited"!==e||b?void 0:"hidden",...c[e],...E,...h.props.style},ref:T,...r})})});m&&(m.muiSupportAuto=!0);let h=m},20540:function(e,t,r){r.d(t,{Z:()=>b});var n=r(54538),o=r(82267),i=r(61170),l=r(55879),a=r(73037),s=r(12709),u=r(82319),d=r(90433),p=r(51751),c=r(28678),f=r(24246);let m=(0,s.ZP)(l.Ej,{shouldForwardProp:e=>(0,a.Z)(e)||"classes"===e,name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[...(0,l.Gx)(e,t),!r.disableUnderline&&t.underline]}})((0,u.Z)(({theme:e})=>{let t="light"===e.palette.mode?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(t=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),{position:"relative",variants:[{props:({ownerState:e})=>e.formControl,style:{"label + &":{marginTop:16}}},{props:({ownerState:e})=>!e.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${c.Z.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${c.Z.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${t}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${c.Z.disabled}, .${c.Z.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${t}`}},[`&.${c.Z.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter((0,d.Z)()).map(([t])=>({props:{color:t,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[t].main}`}}}))]}})),h=(0,s.ZP)(l.ni,{name:"MuiInput",slot:"Input",overridesResolver:l._o})({}),v=n.forwardRef(function(e,t){let r=(0,p.i)({props:e,name:"MuiInput"}),{disableUnderline:n=!1,components:a={},componentsProps:s,fullWidth:u=!1,inputComponent:d="input",multiline:v=!1,slotProps:b,slots:g={},type:y="text",...Z}=r,x=(e=>{let{classes:t,disableUnderline:r}=e,n=(0,o.Z)({root:["root",!r&&"underline"],input:["input"]},c.l,t);return{...t,...n}})(r),S={root:{ownerState:{disableUnderline:n}}},w=b??s?(0,i.Z)(b??s,S):S,E=g.root??a.Root??m,P=g.input??a.Input??h;return(0,f.jsx)(l.ZP,{slots:{root:E,input:P},slotProps:w,fullWidth:u,inputComponent:d,multiline:v,ref:t,type:y,...Z,classes:x})});v.muiName="Input";let b=v},28678:function(e,t,r){r.d(t,{Z:()=>l,l:()=>i});var n=r(44124),o=r(6749);function i(e){return(0,o.ZP)("MuiInput",e)}let l={...r(3597).Z,...(0,n.Z)("MuiInput",["root","underline","input"])}},55879:function(e,t,r){r.d(t,{_o:()=>T,ni:()=>z,ZP:()=>j,Ej:()=>I,Gx:()=>O});var n,o=r(62220),i=r(54538),l=r(90496),a=r(82267),s=r(97048),u=r(33205),d=r(81925),p=r(96858),c=r(24384),f=r(24246);function m(e){return parseInt(e,10)||0}let h={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};function v(e){return function(e){for(let t in e)return!1;return!0}(e)||0===e.outerHeightStyle&&!e.overflowing}let b=i.forwardRef(function(e,t){let{onChange:r,maxRows:n,minRows:o=1,style:l,value:a,...b}=e,{current:g}=i.useRef(null!=a),y=i.useRef(null),Z=(0,s.Z)(t,y),x=i.useRef(null),S=i.useRef(null),w=i.useCallback(()=>{let t=y.current,r=S.current;if(!t||!r)return;let i=(0,u.Z)(t).getComputedStyle(t);if("0px"===i.width)return{outerHeightStyle:0,overflowing:!1};r.style.width=i.width,r.value=t.value||e.placeholder||"x","\n"===r.value.slice(-1)&&(r.value+=" ");let l=i.boxSizing,a=m(i.paddingBottom)+m(i.paddingTop),s=m(i.borderBottomWidth)+m(i.borderTopWidth),d=r.scrollHeight;r.value="x";let p=r.scrollHeight,c=d;return o&&(c=Math.max(Number(o)*p,c)),n&&(c=Math.min(Number(n)*p,c)),{outerHeightStyle:(c=Math.max(c,p))+("border-box"===l?a+s:0),overflowing:1>=Math.abs(c-d)}},[n,o,e.placeholder]),E=(0,d.Z)(()=>{let e=y.current,t=w();if(!e||!t||v(t))return!1;let r=t.outerHeightStyle;return null!=x.current&&x.current!==r}),P=i.useCallback(()=>{let e=y.current,t=w();if(!e||!t||v(t))return;let r=t.outerHeightStyle;x.current!==r&&(x.current=r,e.style.height=`${r}px`),e.style.overflow=t.overflowing?"hidden":""},[w]),R=i.useRef(-1);return(0,p.Z)(()=>{let e,t=(0,c.Z)(P),r=y?.current;if(!r)return;let n=(0,u.Z)(r);return n.addEventListener("resize",t),"undefined"!=typeof ResizeObserver&&(e=new ResizeObserver(()=>{E()&&(e.unobserve(r),cancelAnimationFrame(R.current),P(),R.current=requestAnimationFrame(()=>{e.observe(r)}))})).observe(r),()=>{t.clear(),cancelAnimationFrame(R.current),n.removeEventListener("resize",t),e&&e.disconnect()}},[w,P,E]),(0,p.Z)(()=>{P()}),(0,f.jsxs)(i.Fragment,{children:[(0,f.jsx)("textarea",{value:a,onChange:e=>{g||P(),r&&r(e)},ref:Z,rows:o,style:l,...b}),(0,f.jsx)("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:S,tabIndex:-1,style:{...h,...l,paddingTop:0,paddingBottom:0}})]})});var g=r(88653),y=r(33567),Z=r(29992),x=r(36683),S=r(12709),w=r(32543),E=r(82319),P=r(51751),R=r(51640),k=r(51183),C=r(16758),M=r(65021),_=r(3597);let O=(e,t)=>{let{ownerState:r}=e;return[t.root,r.formControl&&t.formControl,r.startAdornment&&t.adornedStart,r.endAdornment&&t.adornedEnd,r.error&&t.error,"small"===r.size&&t.sizeSmall,r.multiline&&t.multiline,r.color&&t[`color${(0,R.Z)(r.color)}`],r.fullWidth&&t.fullWidth,r.hiddenLabel&&t.hiddenLabel]},T=(e,t)=>{let{ownerState:r}=e;return[t.input,"small"===r.size&&t.inputSizeSmall,r.multiline&&t.inputMultiline,"search"===r.type&&t.inputTypeSearch,r.startAdornment&&t.inputAdornedStart,r.endAdornment&&t.inputAdornedEnd,r.hiddenLabel&&t.inputHiddenLabel]},I=(0,S.ZP)("div",{name:"MuiInputBase",slot:"Root",overridesResolver:O})((0,E.Z)(({theme:e})=>({...e.typography.body1,color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${_.Z.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"},variants:[{props:({ownerState:e})=>e.multiline,style:{padding:"4px 0 5px"}},{props:({ownerState:e,size:t})=>e.multiline&&"small"===t,style:{paddingTop:1}},{props:({ownerState:e})=>e.fullWidth,style:{width:"100%"}}]}))),z=(0,S.ZP)("input",{name:"MuiInputBase",slot:"Input",overridesResolver:T})((0,E.Z)(({theme:e})=>{let t="light"===e.palette.mode,r={color:"currentColor",...e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5},transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})},n={opacity:"0 !important"},o=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5};return{font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%","&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&::-ms-input-placeholder":r,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${_.Z.formControl} &`]:{"&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&::-ms-input-placeholder":n,"&:focus::-webkit-input-placeholder":o,"&:focus::-moz-placeholder":o,"&:focus::-ms-input-placeholder":o},[`&.${_.Z.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},variants:[{props:({ownerState:e})=>!e.disableInjectingGlobalStyles,style:{animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}}},{props:{size:"small"},style:{paddingTop:1}},{props:({ownerState:e})=>e.multiline,style:{height:"auto",resize:"none",padding:0,paddingTop:0}},{props:{type:"search"},style:{MozAppearance:"textfield"}}]}})),F=(0,w.zY)({"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}),j=i.forwardRef(function(e,t){let r=(0,P.i)({props:e,name:"MuiInputBase"}),{"aria-describedby":s,autoComplete:u,autoFocus:d,className:p,color:c,components:m={},componentsProps:h={},defaultValue:v,disabled:S,disableInjectingGlobalStyles:w,endAdornment:E,error:O,fullWidth:T=!1,id:j,inputComponent:N="input",inputProps:A={},inputRef:L,margin:$,maxRows:B,minRows:W,multiline:D=!1,name:H,onBlur:K,onChange:U,onClick:q,onFocus:V,onKeyDown:X,onKeyUp:G,placeholder:Y,readOnly:Q,renderSuffix:J,rows:ee,size:et,slotProps:er={},slots:en={},startAdornment:eo,type:ei="text",value:el,...ea}=r,es=null!=A.value?A.value:el,{current:eu}=i.useRef(null!=es),ed=i.useRef(),ep=i.useCallback(e=>{},[]),ec=(0,k.Z)(ed,L,A.ref,ep),[ef,em]=i.useState(!1),eh=(0,x.Z)(),ev=(0,y.Z)({props:r,muiFormControl:eh,states:["color","disabled","error","hiddenLabel","size","required","filled"]});ev.focused=eh?eh.focused:ef,i.useEffect(()=>{!eh&&S&&ef&&(em(!1),K&&K())},[eh,S,ef,K]);let eb=eh&&eh.onFilled,eg=eh&&eh.onEmpty,ey=i.useCallback(e=>{(0,M.vd)(e)?eb&&eb():eg&&eg()},[eb,eg]);(0,C.Z)(()=>{eu&&ey({value:es})},[es,ey,eu]),i.useEffect(()=>{ey(ed.current)},[]);let eZ=N,ex=A;D&&"input"===eZ&&(ex=ee?{type:void 0,minRows:ee,maxRows:ee,...ex}:{type:void 0,maxRows:B,minRows:W,...ex},eZ=b),i.useEffect(()=>{eh&&eh.setAdornedStart(!!eo)},[eh,eo]);let eS={...r,color:ev.color||"primary",disabled:ev.disabled,endAdornment:E,error:ev.error,focused:ev.focused,formControl:eh,fullWidth:T,hiddenLabel:ev.hiddenLabel,multiline:D,size:ev.size,startAdornment:eo,type:ei},ew=(e=>{let{classes:t,color:r,disabled:n,error:o,endAdornment:i,focused:l,formControl:s,fullWidth:u,hiddenLabel:d,multiline:p,readOnly:c,size:f,startAdornment:m,type:h}=e,v={root:["root",`color${(0,R.Z)(r)}`,n&&"disabled",o&&"error",u&&"fullWidth",l&&"focused",s&&"formControl",f&&"medium"!==f&&`size${(0,R.Z)(f)}`,p&&"multiline",m&&"adornedStart",i&&"adornedEnd",d&&"hiddenLabel",c&&"readOnly"],input:["input",n&&"disabled","search"===h&&"inputTypeSearch",p&&"inputMultiline","small"===f&&"inputSizeSmall",d&&"inputHiddenLabel",m&&"inputAdornedStart",i&&"inputAdornedEnd",c&&"readOnly"]};return(0,a.Z)(v,_.u,t)})(eS),eE=en.root||m.Root||I,eP=er.root||h.root||{},eR=en.input||m.Input||z;return ex={...ex,...er.input??h.input},(0,f.jsxs)(i.Fragment,{children:[!w&&"function"==typeof F&&(n||(n=(0,f.jsx)(F,{}))),(0,f.jsxs)(eE,{...eP,ref:t,onClick:e=>{ed.current&&e.currentTarget===e.target&&ed.current.focus(),q&&q(e)},...ea,...!(0,g.Z)(eE)&&{ownerState:{...eS,...eP.ownerState}},className:(0,l.Z)(ew.root,eP.className,p,Q&&"MuiInputBase-readOnly"),children:[eo,(0,f.jsx)(Z.Z.Provider,{value:null,children:(0,f.jsx)(eR,{"aria-invalid":ev.error,"aria-describedby":s,autoComplete:u,autoFocus:d,defaultValue:v,disabled:ev.disabled,id:j,onAnimationStart:e=>{ey("mui-auto-fill-cancel"===e.animationName?ed.current:{value:"x"})},name:H,placeholder:Y,readOnly:Q,required:ev.required,rows:ee,value:es,onKeyDown:X,onKeyUp:G,type:ei,...ex,...!(0,g.Z)(eR)&&{as:eZ,ownerState:{...eS,...ex.ownerState}},ref:ec,className:(0,l.Z)(ew.input,ex.className,Q&&"MuiInputBase-readOnly"),onBlur:e=>{K&&K(e),A.onBlur&&A.onBlur(e),eh&&eh.onBlur?eh.onBlur(e):em(!1)},onChange:(e,...t)=>{if(!eu){let t=e.target||ed.current;if(null==t)throw Error((0,o.Z)(1));ey({value:t.value})}A.onChange&&A.onChange(e,...t),U&&U(e,...t)},onFocus:e=>{V&&V(e),A.onFocus&&A.onFocus(e),eh&&eh.onFocus?eh.onFocus(e):em(!0)}})}),E,J?J({...ev,startAdornment:eo}):null]})]})})},3597:function(e,t,r){r.d(t,{Z:()=>l,u:()=>i});var n=r(44124),o=r(6749);function i(e){return(0,o.ZP)("MuiInputBase",e)}let l=(0,n.Z)("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"])},65021:function(e,t,r){function n(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function o(e,t=!1){return e&&(n(e.value)&&""!==e.value||t&&n(e.defaultValue)&&""!==e.defaultValue)}function i(e){return e.startAdornment}r.d(t,{B7:()=>i,vd:()=>o})},68808:function(e,t,r){r.d(t,{Z:()=>Z});var n=r(54538),o=r(82267),i=r(90496),l=r(33567),a=r(36683),s=r(23626),u=r(15143),d=r(51640),p=r(73037),c=r(12709),f=r(82319),m=r(51751),h=r(44124),v=r(6749);function b(e){return(0,v.ZP)("MuiInputLabel",e)}(0,h.Z)("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);var g=r(24246);let y=(0,c.ZP)(s.Z,{shouldForwardProp:e=>(0,p.Z)(e)||"classes"===e,name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[{[`& .${u.Z.asterisk}`]:t.asterisk},t.root,r.formControl&&t.formControl,"small"===r.size&&t.sizeSmall,r.shrink&&t.shrink,!r.disableAnimation&&t.animated,r.focused&&t.focused,t[r.variant]]}})((0,f.Z)(({theme:e})=>({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%",variants:[{props:({ownerState:e})=>e.formControl,style:{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"}},{props:{size:"small"},style:{transform:"translate(0, 17px) scale(1)"}},{props:({ownerState:e})=>e.shrink,style:{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"}},{props:({ownerState:e})=>!e.disableAnimation,style:{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})}},{props:{variant:"filled"},style:{zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"filled",size:"small"},style:{transform:"translate(12px, 13px) scale(1)"}},{props:({variant:e,ownerState:t})=>"filled"===e&&t.shrink,style:{userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"}},{props:({variant:e,ownerState:t,size:r})=>"filled"===e&&t.shrink&&"small"===r,style:{transform:"translate(12px, 4px) scale(0.75)"}},{props:{variant:"outlined"},style:{zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"outlined",size:"small"},style:{transform:"translate(14px, 9px) scale(1)"}},{props:({variant:e,ownerState:t})=>"outlined"===e&&t.shrink,style:{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}}]}))),Z=n.forwardRef(function(e,t){let r=(0,m.i)({name:"MuiInputLabel",props:e}),{disableAnimation:n=!1,margin:s,shrink:u,variant:p,className:c,...f}=r,h=(0,a.Z)(),v=u;void 0===v&&h&&(v=h.filled||h.focused||h.adornedStart);let Z=(0,l.Z)({props:r,muiFormControl:h,states:["size","variant","required","focused"]}),x={...r,disableAnimation:n,formControl:h,shrink:v,size:Z.size,variant:Z.variant,required:Z.required,focused:Z.focused},S=(e=>{let{classes:t,formControl:r,size:n,shrink:i,disableAnimation:l,variant:a,required:s}=e,u={root:["root",r&&"formControl",!l&&"animated",i&&"shrink",n&&"normal"!==n&&`size${(0,d.Z)(n)}`,a],asterisk:[s&&"asterisk"]},p=(0,o.Z)(u,b,t);return{...t,...p}})(x);return(0,g.jsx)(y,{"data-shrink":v,ref:t,className:(0,i.Z)(S.root,c),...f,ownerState:x,classes:S})})},71852:function(e,t,r){r.d(t,{Z:()=>m});var n=r(54538),o=r(90496),i=r(82267),l=r(12709),a=r(51751),s=r(78849),u=r(44124),d=r(6749);function p(e){return(0,d.ZP)("MuiList",e)}(0,u.Z)("MuiList",["root","padding","dense","subheader"]);var c=r(24246);let f=(0,l.ZP)("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,!r.disablePadding&&t.padding,r.dense&&t.dense,r.subheader&&t.subheader]}})({listStyle:"none",margin:0,padding:0,position:"relative",variants:[{props:({ownerState:e})=>!e.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:e})=>e.subheader,style:{paddingTop:0}}]}),m=n.forwardRef(function(e,t){let r=(0,a.i)({props:e,name:"MuiList"}),{children:l,className:u,component:d="ul",dense:m=!1,disablePadding:h=!1,subheader:v,...b}=r,g=n.useMemo(()=>({dense:m}),[m]),y={...r,component:d,dense:m,disablePadding:h},Z=(e=>{let{classes:t,disablePadding:r,dense:n,subheader:o}=e;return(0,i.Z)({root:["root",!r&&"padding",n&&"dense",o&&"subheader"]},p,t)})(y);return(0,c.jsx)(s.Z.Provider,{value:g,children:(0,c.jsxs)(f,{as:d,className:(0,o.Z)(Z.root,u),ref:t,ownerState:y,...b,children:[v,l]})})})},78849:function(e,t,r){r.d(t,{Z:()=>n});let n=r(54538).createContext({})},5549:function(e,t,r){r.d(t,{Z:()=>w});var n=r(54538),o=r(90496),i=r(82267),l=r(6595),a=r(25399),s=r(18873),u=r(6714),d=r(73037),p=r(12709),c=r(51751),f=r(44124),m=r(6749);function h(e){return(0,m.ZP)("MuiMenu",e)}(0,f.Z)("MuiMenu",["root","paper","list"]);var v=r(16351),b=r(24246);let g={vertical:"top",horizontal:"right"},y={vertical:"top",horizontal:"left"},Z=(0,p.ZP)(u.ZP,{shouldForwardProp:e=>(0,d.Z)(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),x=(0,p.ZP)(u.XS,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),S=(0,p.ZP)(s.Z,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),w=n.forwardRef(function(e,t){let r=(0,c.i)({props:e,name:"MuiMenu"}),{autoFocus:s=!0,children:u,className:d,disableAutoFocusItem:p=!1,MenuListProps:f={},onClose:m,open:w,PaperProps:E={},PopoverClasses:P,transitionDuration:R="auto",TransitionProps:{onEntering:k,...C}={},variant:M="selectedMenu",slots:_={},slotProps:O={},...T}=r,I=(0,l.V)(),z={...r,autoFocus:s,disableAutoFocusItem:p,MenuListProps:f,onEntering:k,PaperProps:E,transitionDuration:R,TransitionProps:C,variant:M},F=(e=>{let{classes:t}=e;return(0,i.Z)({root:["root"],paper:["paper"],list:["list"]},h,t)})(z),j=s&&!p&&w,N=n.useRef(null),A=-1;n.Children.map(u,(e,t)=>{n.isValidElement(e)&&(e.props.disabled||("selectedMenu"===M&&e.props.selected?A=t:-1===A&&(A=t)))});let L={slots:_,slotProps:{list:f,transition:C,paper:E,...O}},$=(0,a.Z)({elementType:_.root,externalSlotProps:O.root,ownerState:z,className:[F.root,d]}),[B,W]=(0,v.Z)("paper",{className:F.paper,elementType:x,externalForwardedProps:L,shouldForwardComponentProp:!0,ownerState:z}),[D,H]=(0,v.Z)("list",{className:(0,o.Z)(F.list,f.className),elementType:S,shouldForwardComponentProp:!0,externalForwardedProps:L,getSlotProps:e=>({...e,onKeyDown:t=>{"Tab"===t.key&&(t.preventDefault(),m&&m(t,"tabKeyDown")),e.onKeyDown?.(t)}}),ownerState:z}),K="function"==typeof L.slotProps.transition?L.slotProps.transition(z):L.slotProps.transition;return(0,b.jsx)(Z,{onClose:m,anchorOrigin:{vertical:"bottom",horizontal:I?"right":"left"},transformOrigin:I?g:y,slots:{root:_.root,paper:B,backdrop:_.backdrop,..._.transition&&{transition:_.transition}},slotProps:{root:$,paper:W,backdrop:"function"==typeof O.backdrop?O.backdrop(z):O.backdrop,transition:{...K,onEntering:(...e)=>{((e,t)=>{N.current&&N.current.adjustStyleForScrollbar(e,{direction:I?"rtl":"ltr"}),k&&k(e,t)})(...e),K?.onEntering?.(...e)}}},open:w,ref:t,transitionDuration:R,ownerState:z,...T,classes:P,children:(0,b.jsx)(D,{actions:N,autoFocus:s&&(-1===A||p),autoFocusItem:j,variant:M,...H,children:u})})})},18873:function(e,t,r){r.d(t,{Z:()=>h});var n=r(54538),o=r(2444),i=r(71852);let l=r(16046).Z;var a=r(51183),s=r(16758),u=r(24255),d=r(24246);function p(e,t,r){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:r?null:e.firstChild}function c(e,t,r){return e===t?r?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:r?null:e.lastChild}function f(e,t){if(void 0===t)return!0;let r=e.innerText;return void 0===r&&(r=e.textContent),0!==(r=r.trim().toLowerCase()).length&&(t.repeating?r[0]===t.keys[0]:r.startsWith(t.keys.join("")))}function m(e,t,r,n,o,i){let l=!1,a=o(e,t,!!t&&r);for(;a;){if(a===e.firstChild){if(l)return!1;l=!0}let t=!n&&(a.disabled||"true"===a.getAttribute("aria-disabled"));if(a.hasAttribute("tabindex")&&f(a,i)&&!t)return a.focus(),!0;a=o(e,a,r)}return!1}let h=n.forwardRef(function(e,t){let{actions:r,autoFocus:h=!1,autoFocusItem:v=!1,children:b,className:g,disabledItemsFocusable:y=!1,disableListWrap:Z=!1,onKeyDown:x,variant:S="selectedMenu",...w}=e,E=n.useRef(null),P=n.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});(0,s.Z)(()=>{h&&E.current.focus()},[h]),n.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(e,{direction:t})=>{let r=!E.current.style.width;if(e.clientHeight<E.current.clientHeight&&r){let r=`${l((0,u.Z)(e))}px`;E.current.style["rtl"===t?"paddingLeft":"paddingRight"]=r,E.current.style.width=`calc(100% + ${r})`}return E.current}}),[]);let R=(0,a.Z)(E,t),k=-1;n.Children.forEach(b,(e,t)=>{if(!n.isValidElement(e)){k===t&&(k+=1)>=b.length&&(k=-1);return}e.props.disabled||("selectedMenu"===S&&e.props.selected?k=t:-1===k&&(k=t)),k===t&&(e.props.disabled||e.props.muiSkipListHighlight||e.type.muiSkipListHighlight)&&(k+=1)>=b.length&&(k=-1)});let C=n.Children.map(b,(e,t)=>{if(t===k){let t={};return v&&(t.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===S&&(t.tabIndex=0),n.cloneElement(e,t)}return e});return(0,d.jsx)(i.Z,{role:"menu",ref:R,className:g,onKeyDown:e=>{let t=E.current,r=e.key;if(e.ctrlKey||e.metaKey||e.altKey){x&&x(e);return}let n=(0,o.Z)(t).activeElement;if("ArrowDown"===r)e.preventDefault(),m(t,n,Z,y,p);else if("ArrowUp"===r)e.preventDefault(),m(t,n,Z,y,c);else if("Home"===r)e.preventDefault(),m(t,null,Z,y,p);else if("End"===r)e.preventDefault(),m(t,null,Z,y,c);else if(1===r.length){let o=P.current,i=r.toLowerCase(),l=performance.now();o.keys.length>0&&(l-o.lastTime>500?(o.keys=[],o.repeating=!0,o.previousKeyMatched=!0):o.repeating&&i!==o.keys[0]&&(o.repeating=!1)),o.lastTime=l,o.keys.push(i);let a=n&&!o.repeating&&f(n,o);o.previousKeyMatched&&(a||m(t,n,!1,y,p,o))?e.preventDefault():o.previousKeyMatched=!1}x&&x(e)},tabIndex:h?0:-1,...w,children:C})})},49106:function(e,t,r){r.d(t,{Z:()=>j});var n=r(54538),o=r(90496),i=r(82267),l=r(97048),a=r(94680),s=r(80668),u=r(24246);function d(e){let t=[],r=[];return Array.from(e.querySelectorAll('input,select,textarea,a[href],button,[tabindex],audio[controls],video[controls],[contenteditable]:not([contenteditable="false"])')).forEach((e,n)=>{let o=function(e){let t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?"true"===e.contentEditable||("AUDIO"===e.nodeName||"VIDEO"===e.nodeName||"DETAILS"===e.nodeName)&&null===e.getAttribute("tabindex")?0:e.tabIndex:t}(e);-1===o||e.disabled||"INPUT"===e.tagName&&"hidden"===e.type||function(e){if("INPUT"!==e.tagName||"radio"!==e.type||!e.name)return!1;let t=t=>e.ownerDocument.querySelector(`input[type="radio"]${t}`),r=t(`[name="${e.name}"]:checked`);return r||(r=t(`[name="${e.name}"]`)),r!==e}(e)||(0===o?t.push(e):r.push({documentOrder:n,tabIndex:o,node:e}))}),r.sort((e,t)=>e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex).map(e=>e.node).concat(t)}function p(){return!0}let c=function(e){let{children:t,disableAutoFocus:r=!1,disableEnforceFocus:o=!1,disableRestoreFocus:i=!1,getTabbable:c=d,isEnabled:f=p,open:m}=e,h=n.useRef(!1),v=n.useRef(null),b=n.useRef(null),g=n.useRef(null),y=n.useRef(null),Z=n.useRef(!1),x=n.useRef(null),S=(0,l.Z)((0,a.Z)(t),x),w=n.useRef(null);n.useEffect(()=>{m&&x.current&&(Z.current=!r)},[r,m]),n.useEffect(()=>{if(!m||!x.current)return;let e=(0,s.Z)(x.current);return!x.current.contains(e.activeElement)&&(x.current.hasAttribute("tabIndex")||x.current.setAttribute("tabIndex","-1"),Z.current&&x.current.focus()),()=>{i||(g.current&&g.current.focus&&(h.current=!0,g.current.focus()),g.current=null)}},[m]),n.useEffect(()=>{if(!m||!x.current)return;let e=(0,s.Z)(x.current),t=t=>{w.current=t,!o&&f()&&"Tab"===t.key&&e.activeElement===x.current&&t.shiftKey&&(h.current=!0,b.current&&b.current.focus())},r=()=>{let t=x.current;if(null===t)return;if(!e.hasFocus()||!f()||h.current){h.current=!1;return}if(t.contains(e.activeElement)||o&&e.activeElement!==v.current&&e.activeElement!==b.current)return;if(e.activeElement!==y.current)y.current=null;else if(null!==y.current)return;if(!Z.current)return;let r=[];if((e.activeElement===v.current||e.activeElement===b.current)&&(r=c(x.current)),r.length>0){let e=!!(w.current?.shiftKey&&w.current?.key==="Tab"),t=r[0],n=r[r.length-1];"string"!=typeof t&&"string"!=typeof n&&(e?n.focus():t.focus())}else t.focus()};e.addEventListener("focusin",r),e.addEventListener("keydown",t,!0);let n=setInterval(()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&r()},50);return()=>{clearInterval(n),e.removeEventListener("focusin",r),e.removeEventListener("keydown",t,!0)}},[r,o,i,f,m,c]);let E=e=>{null===g.current&&(g.current=e.relatedTarget),Z.current=!0};return(0,u.jsxs)(n.Fragment,{children:[(0,u.jsx)("div",{tabIndex:m?0:-1,onFocus:E,ref:v,"data-testid":"sentinelStart"}),n.cloneElement(t,{ref:S,onFocus:e=>{null===g.current&&(g.current=e.relatedTarget),Z.current=!0,y.current=e.target;let r=t.props.onFocus;r&&r(e)}}),(0,u.jsx)("div",{tabIndex:m?0:-1,onFocus:E,ref:b,"data-testid":"sentinelEnd"})]})};var f=r(7444),m=r(12709),h=r(82319),v=r(51751),b=r(19090),g=r(81925),y=r(38543),Z=r(92438),x=r(33205),S=r(16046);function w(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function E(e){return parseInt((0,x.Z)(e).getComputedStyle(e).paddingRight,10)||0}function P(e,t,r,n,o){let i=[t,r,...n];[].forEach.call(e.children,e=>{let t=!i.includes(e),r=!function(e){let t=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].includes(e.tagName),r="INPUT"===e.tagName&&"hidden"===e.getAttribute("type");return t||r}(e);t&&r&&w(e,o)})}function R(e,t){let r=-1;return e.some((e,n)=>!!t(e)&&(r=n,!0)),r}let k=()=>{},C=new class{constructor(){this.modals=[],this.containers=[]}add(e,t){let r=this.modals.indexOf(e);if(-1!==r)return r;r=this.modals.length,this.modals.push(e),e.modalRef&&w(e.modalRef,!1);let n=function(e){let t=[];return[].forEach.call(e.children,e=>{"true"===e.getAttribute("aria-hidden")&&t.push(e)}),t}(t);P(t,e.mount,e.modalRef,n,!0);let o=R(this.containers,e=>e.container===t);return -1!==o?this.containers[o].modals.push(e):this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:n}),r}mount(e,t){let r=R(this.containers,t=>t.modals.includes(e)),n=this.containers[r];n.restore||(n.restore=function(e,t){let r=[],n=e.container;if(!t.disableScrollLock){let e;if(function(e){let t=(0,s.Z)(e);return t.body===e?(0,x.Z)(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(n)){let e=(0,S.Z)((0,x.Z)(n));r.push({value:n.style.paddingRight,property:"padding-right",el:n}),n.style.paddingRight=`${E(n)+e}px`;let t=(0,s.Z)(n).querySelectorAll(".mui-fixed");[].forEach.call(t,t=>{r.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${E(t)+e}px`})}if(n.parentNode instanceof DocumentFragment)e=(0,s.Z)(n).body;else{let t=n.parentElement,r=(0,x.Z)(n);e=t?.nodeName==="HTML"&&"scroll"===r.getComputedStyle(t).overflowY?t:n}r.push({value:e.style.overflow,property:"overflow",el:e},{value:e.style.overflowX,property:"overflow-x",el:e},{value:e.style.overflowY,property:"overflow-y",el:e}),e.style.overflow="hidden"}return()=>{r.forEach(({value:e,el:t,property:r})=>{e?t.style.setProperty(r,e):t.style.removeProperty(r)})}}(n,t))}remove(e,t=!0){let r=this.modals.indexOf(e);if(-1===r)return r;let n=R(this.containers,t=>t.modals.includes(e)),o=this.containers[n];if(o.modals.splice(o.modals.indexOf(e),1),this.modals.splice(r,1),0===o.modals.length)o.restore&&o.restore(),e.modalRef&&w(e.modalRef,t),P(o.container,e.mount,e.modalRef,o.hiddenSiblings,!1),this.containers.splice(n,1);else{let e=o.modals[o.modals.length-1];e.modalRef&&w(e.modalRef,!1)}return r}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}},M=function(e){let{container:t,disableEscapeKeyDown:r=!1,disableScrollLock:o=!1,closeAfterTransition:i=!1,onTransitionEnter:a,onTransitionExited:u,children:d,onClose:p,open:c,rootRef:f}=e,m=n.useRef({}),h=n.useRef(null),v=n.useRef(null),b=(0,l.Z)(v,f),[x,S]=n.useState(!c),E=!!d&&d.props.hasOwnProperty("in"),P=!0;("false"===e["aria-hidden"]||!1===e["aria-hidden"])&&(P=!1);let R=()=>(m.current.modalRef=v.current,m.current.mount=h.current,m.current),M=()=>{C.mount(R(),{disableScrollLock:o}),v.current&&(v.current.scrollTop=0)},_=(0,g.Z)(()=>{let e=("function"==typeof t?t():t)||(0,s.Z)(h.current).body;C.add(R(),e),v.current&&M()}),O=()=>C.isTopModal(R()),T=(0,g.Z)(e=>{h.current=e,e&&(c&&O()?M():v.current&&w(v.current,P))}),I=n.useCallback(()=>{C.remove(R(),P)},[P]);return n.useEffect(()=>()=>{I()},[I]),n.useEffect(()=>{c?_():E&&i||I()},[c,I,E,i,_]),{getRootProps:(t={})=>{let n=(0,Z.Z)(e);delete n.onTransitionEnter,delete n.onTransitionExited;let o={...n,...t};return{role:"presentation",...o,onKeyDown:e=>{o.onKeyDown?.(e),"Escape"===e.key&&229!==e.which&&O()&&!r&&(e.stopPropagation(),p&&p(e,"escapeKeyDown"))},ref:b}},getBackdropProps:(e={})=>({"aria-hidden":!0,...e,onClick:t=>{e.onClick?.(t),t.target===t.currentTarget&&p&&p(t,"backdropClick")},open:c}),getTransitionProps:()=>({onEnter:(0,y.Z)(()=>{S(!1),a&&a()},d?.props.onEnter??k),onExited:(0,y.Z)(()=>{S(!0),u&&u(),i&&I()},d?.props.onExited??k)}),rootRef:b,portalRef:T,isTopModal:O,exited:x,hasTransition:E}};var _=r(44124),O=r(6749);function T(e){return(0,O.ZP)("MuiModal",e)}(0,_.Z)("MuiModal",["root","hidden","backdrop"]);var I=r(16351);let z=(0,m.ZP)("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,!r.open&&r.exited&&t.hidden]}})((0,h.Z)(({theme:e})=>({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0,variants:[{props:({ownerState:e})=>!e.open&&e.exited,style:{visibility:"hidden"}}]}))),F=(0,m.ZP)(b.Z,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),j=n.forwardRef(function(e,t){let r=(0,v.i)({name:"MuiModal",props:e}),{BackdropComponent:l=F,BackdropProps:a,classes:s,className:d,closeAfterTransition:p=!1,children:m,container:h,component:b,components:g={},componentsProps:y={},disableAutoFocus:Z=!1,disableEnforceFocus:x=!1,disableEscapeKeyDown:S=!1,disablePortal:w=!1,disableRestoreFocus:E=!1,disableScrollLock:P=!1,hideBackdrop:R=!1,keepMounted:k=!1,onBackdropClick:C,onClose:_,onTransitionEnter:O,onTransitionExited:j,open:N,slotProps:A={},slots:L={},theme:$,...B}=r,W={...r,closeAfterTransition:p,disableAutoFocus:Z,disableEnforceFocus:x,disableEscapeKeyDown:S,disablePortal:w,disableRestoreFocus:E,disableScrollLock:P,hideBackdrop:R,keepMounted:k},{getRootProps:D,getBackdropProps:H,getTransitionProps:K,portalRef:U,isTopModal:q,exited:V,hasTransition:X}=M({...W,rootRef:t}),G={...W,exited:V},Y=(e=>{let{open:t,exited:r,classes:n}=e;return(0,i.Z)({root:["root",!t&&r&&"hidden"],backdrop:["backdrop"]},T,n)})(G),Q={};if(void 0===m.props.tabIndex&&(Q.tabIndex="-1"),X){let{onEnter:e,onExited:t}=K();Q.onEnter=e,Q.onExited=t}let J={slots:{root:g.Root,backdrop:g.Backdrop,...L},slotProps:{...y,...A}},[ee,et]=(0,I.Z)("root",{ref:t,elementType:z,externalForwardedProps:{...J,...B,component:b},getSlotProps:D,ownerState:G,className:(0,o.Z)(d,Y?.root,!G.open&&G.exited&&Y?.hidden)}),[er,en]=(0,I.Z)("backdrop",{ref:a?.ref,elementType:l,externalForwardedProps:J,shouldForwardComponentProp:!0,additionalProps:a,getSlotProps:e=>H({...e,onClick:t=>{C&&C(t),e?.onClick&&e.onClick(t)}}),className:(0,o.Z)(a?.className,Y?.backdrop),ownerState:G});return k||N||X&&!V?(0,u.jsx)(f.Z,{ref:U,container:h,disablePortal:w,children:(0,u.jsxs)(ee,{...et,children:[!R&&l?(0,u.jsx)(er,{...en}):null,(0,u.jsx)(c,{disableEnforceFocus:x,disableAutoFocus:Z,disableRestoreFocus:E,isEnabled:q,open:N,children:n.cloneElement(m,Q)})]})}):null})},51857:function(e,t,r){r.d(t,{Z:()=>S});var n,o=r(54538),i=r(82267),l=r(73037),a=r(12709),s=r(82319),u=r(24246);let d=(0,a.ZP)("fieldset",{shouldForwardProp:l.Z})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),p=(0,a.ZP)("legend",{shouldForwardProp:l.Z})((0,s.Z)(({theme:e})=>({float:"unset",width:"auto",overflow:"hidden",variants:[{props:({ownerState:e})=>!e.withLabel,style:{padding:0,lineHeight:"11px",transition:e.transitions.create("width",{duration:150,easing:e.transitions.easing.easeOut})}},{props:({ownerState:e})=>e.withLabel,style:{display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:e.transitions.create("max-width",{duration:50,easing:e.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}}},{props:({ownerState:e})=>e.withLabel&&e.notched,style:{maxWidth:"100%",transition:e.transitions.create("max-width",{duration:100,easing:e.transitions.easing.easeOut,delay:50})}}]})));var c=r(36683),f=r(33567),m=r(90433),h=r(51751),v=r(8782),b=r(55879);let g=(0,a.ZP)(b.Ej,{shouldForwardProp:e=>(0,l.Z)(e)||"classes"===e,name:"MuiOutlinedInput",slot:"Root",overridesResolver:b.Gx})((0,s.Z)(({theme:e})=>{let t="light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${v.Z.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${v.Z.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}},[`&.${v.Z.focused} .${v.Z.notchedOutline}`]:{borderWidth:2},variants:[...Object.entries(e.palette).filter((0,m.Z)()).map(([t])=>({props:{color:t},style:{[`&.${v.Z.focused} .${v.Z.notchedOutline}`]:{borderColor:(e.vars||e).palette[t].main}}})),{props:{},style:{[`&.${v.Z.error} .${v.Z.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${v.Z.disabled} .${v.Z.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}}},{props:({ownerState:e})=>e.startAdornment,style:{paddingLeft:14}},{props:({ownerState:e})=>e.endAdornment,style:{paddingRight:14}},{props:({ownerState:e})=>e.multiline,style:{padding:"16.5px 14px"}},{props:({ownerState:e,size:t})=>e.multiline&&"small"===t,style:{padding:"8.5px 14px"}}]}})),y=(0,a.ZP)(function(e){let{children:t,classes:r,className:o,label:i,notched:l,...a}=e,s=null!=i&&""!==i,c={...e,notched:l,withLabel:s};return(0,u.jsx)(d,{"aria-hidden":!0,className:o,ownerState:c,...a,children:(0,u.jsx)(p,{ownerState:c,children:s?(0,u.jsx)("span",{children:i}):n||(n=(0,u.jsx)("span",{className:"notranslate","aria-hidden":!0,children:""}))})})},{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})((0,s.Z)(({theme:e})=>{let t="light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}})),Z=(0,a.ZP)(b.ni,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:b._o})((0,s.Z)(({theme:e})=>({padding:"16.5px 14px",...!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:"light"===e.palette.mode?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===e.palette.mode?null:"#fff",caretColor:"light"===e.palette.mode?null:"#fff",borderRadius:"inherit"}},...e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{padding:"8.5px 14px"}},{props:({ownerState:e})=>e.multiline,style:{padding:0}},{props:({ownerState:e})=>e.startAdornment,style:{paddingLeft:0}},{props:({ownerState:e})=>e.endAdornment,style:{paddingRight:0}}]}))),x=o.forwardRef(function(e,t){var r;let n=(0,h.i)({props:e,name:"MuiOutlinedInput"}),{components:l={},fullWidth:a=!1,inputComponent:s="input",label:d,multiline:p=!1,notched:m,slots:x={},type:S="text",...w}=n,E=(e=>{let{classes:t}=e,r=(0,i.Z)({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},v.e,t);return{...t,...r}})(n),P=(0,c.Z)(),R=(0,f.Z)({props:n,muiFormControl:P,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),k={...n,color:R.color||"primary",disabled:R.disabled,error:R.error,focused:R.focused,formControl:P,fullWidth:a,hiddenLabel:R.hiddenLabel,multiline:p,size:R.size,type:S},C=x.root??l.Root??g,M=x.input??l.Input??Z;return(0,u.jsx)(b.ZP,{slots:{root:C,input:M},renderSuffix:e=>(0,u.jsx)(y,{ownerState:k,className:E.notchedOutline,label:null!=d&&""!==d&&R.required?r||(r=(0,u.jsxs)(o.Fragment,{children:[d," ","*"]})):d,notched:void 0!==m?m:!!(e.startAdornment||e.filled||e.focused)}),fullWidth:a,inputComponent:s,multiline:p,ref:t,type:S,...w,classes:{...E,notchedOutline:null}})});x.muiName="Input";let S=x},8782:function(e,t,r){r.d(t,{Z:()=>l,e:()=>i});var n=r(44124),o=r(6749);function i(e){return(0,o.ZP)("MuiOutlinedInput",e)}let l={...r(3597).Z,...(0,n.Z)("MuiOutlinedInput",["root","notchedOutline","input"])}},6714:function(e,t,r){r.d(t,{XS:()=>R,ZP:()=>k});var n=r(54538),o=r(90496),i=r(82267),l=r(88653),a=r(12709),s=r(51751),u=r(77999),d=r(2444),p=r(24255),c=r(23382),f=r(49106),m=r(28866),h=r(44124),v=r(6749);function b(e){return(0,v.ZP)("MuiPopover",e)}(0,h.Z)("MuiPopover",["root","paper"]);var g=r(16351),y=r(27834),Z=r(24246);function x(e,t){let r=0;return"number"==typeof t?r=t:"center"===t?r=e.height/2:"bottom"===t&&(r=e.height),r}function S(e,t){let r=0;return"number"==typeof t?r=t:"center"===t?r=e.width/2:"right"===t&&(r=e.width),r}function w(e){return[e.horizontal,e.vertical].map(e=>"number"==typeof e?`${e}px`:e).join(" ")}function E(e){return"function"==typeof e?e():e}let P=(0,a.ZP)(f.Z,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),R=(0,a.ZP)(m.Z,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),k=n.forwardRef(function(e,t){let r=(0,s.i)({props:e,name:"MuiPopover"}),{action:a,anchorEl:f,anchorOrigin:m={vertical:"top",horizontal:"left"},anchorPosition:h,anchorReference:v="anchorEl",children:k,className:C,container:M,elevation:_=8,marginThreshold:O=16,open:T,PaperProps:I={},slots:z={},slotProps:F={},transformOrigin:j={vertical:"top",horizontal:"left"},TransitionComponent:N,transitionDuration:A="auto",TransitionProps:L={},disableScrollLock:$=!1,...B}=r,W=n.useRef(),D={...r,anchorOrigin:m,anchorReference:v,elevation:_,marginThreshold:O,transformOrigin:j,TransitionComponent:N,transitionDuration:A,TransitionProps:L},H=(e=>{let{classes:t}=e;return(0,i.Z)({root:["root"],paper:["paper"]},b,t)})(D),K=n.useCallback(()=>{if("anchorPosition"===v)return h;let e=E(f),t=(e&&1===e.nodeType?e:(0,d.Z)(W.current).body).getBoundingClientRect();return{top:t.top+x(t,m.vertical),left:t.left+S(t,m.horizontal)}},[f,m.horizontal,m.vertical,h,v]),U=n.useCallback(e=>({vertical:x(e,j.vertical),horizontal:S(e,j.horizontal)}),[j.horizontal,j.vertical]),q=n.useCallback(e=>{let t={width:e.offsetWidth,height:e.offsetHeight},r=U(t);if("none"===v)return{top:null,left:null,transformOrigin:w(r)};let n=K(),o=n.top-r.vertical,i=n.left-r.horizontal,l=o+t.height,a=i+t.width,s=(0,p.Z)(E(f)),u=s.innerHeight-O,d=s.innerWidth-O;if(null!==O&&o<O){let e=o-O;o-=e,r.vertical+=e}else if(null!==O&&l>u){let e=l-u;o-=e,r.vertical+=e}if(null!==O&&i<O){let e=i-O;i-=e,r.horizontal+=e}else if(a>d){let e=a-d;i-=e,r.horizontal+=e}return{top:`${Math.round(o)}px`,left:`${Math.round(i)}px`,transformOrigin:w(r)}},[f,v,K,U,O]),[V,X]=n.useState(T),G=n.useCallback(()=>{let e=W.current;if(!e)return;let t=q(e);null!==t.top&&e.style.setProperty("top",t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,X(!0)},[q]);n.useEffect(()=>($&&window.addEventListener("scroll",G),()=>window.removeEventListener("scroll",G)),[f,$,G]),n.useEffect(()=>{T&&G()}),n.useImperativeHandle(a,()=>T?{updatePosition:()=>{G()}}:null,[T,G]),n.useEffect(()=>{if(!T)return;let e=(0,u.Z)(()=>{G()}),t=(0,p.Z)(f);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}},[f,T,G]);let Y=A,Q={slots:{transition:N,...z},slotProps:{transition:L,paper:I,...F}},[J,ee]=(0,g.Z)("transition",{elementType:c.Z,externalForwardedProps:Q,ownerState:D,getSlotProps:e=>({...e,onEntering:(t,r)=>{e.onEntering?.(t,r),G()},onExited:t=>{e.onExited?.(t),X(!1)}}),additionalProps:{appear:!0,in:T}});"auto"!==A||J.muiSupportAuto||(Y=void 0);let et=M||(f?(0,d.Z)(E(f)).body:void 0),[er,{slots:en,slotProps:eo,...ei}]=(0,g.Z)("root",{ref:t,elementType:P,externalForwardedProps:{...Q,...B},shouldForwardComponentProp:!0,additionalProps:{slots:{backdrop:z.backdrop},slotProps:{backdrop:(0,y.Z)("function"==typeof F.backdrop?F.backdrop(D):F.backdrop,{invisible:!0})},container:et,open:T},ownerState:D,className:(0,o.Z)(H.root,C)}),[el,ea]=(0,g.Z)("paper",{ref:W,className:H.paper,elementType:R,externalForwardedProps:Q,shouldForwardComponentProp:!0,additionalProps:{elevation:_,style:V?void 0:{opacity:0}},ownerState:D});return(0,Z.jsx)(er,{...ei,...!(0,l.Z)(er)&&{slots:en,slotProps:eo,disableScrollLock:$},children:(0,Z.jsx)(J,{...ee,timeout:Y,children:(0,Z.jsx)(el,{...ea,children:k})})})})},7444:function(e,t,r){r.d(t,{Z:()=>u});var n=r(54538),o=r(6085),i=r(97048),l=r(94680),a=r(96858),s=r(85817);let u=n.forwardRef(function(e,t){let{children:r,container:u,disablePortal:d=!1}=e,[p,c]=n.useState(null),f=(0,i.Z)(n.isValidElement(r)?(0,l.Z)(r):null,t);return((0,a.Z)(()=>{d||c(("function"==typeof u?u():u)||document.body)},[u,d]),(0,a.Z)(()=>{if(p&&!d)return(0,s.Z)(t,p),()=>{(0,s.Z)(t,null)}},[t,p,d]),d)?n.isValidElement(r)?n.cloneElement(r,{ref:f}):r:p?o.createPortal(r,p):p})},63767:function(e,t,r){r.d(t,{Z:()=>X});var n,o=r(54538),i=r(90496),l=r(61170),a=r(82267),s=r(94680),u=r(62220),d=r(5056),p=r(2444),c=r(51640),f=r(5549),m=r(44124),h=r(6749);function v(e){return(0,h.ZP)("MuiNativeSelect",e)}let b=(0,m.Z)("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var g=r(12709),y=r(73037),Z=r(24246);let x=(0,g.ZP)("select")(({theme:e})=>({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":{borderRadius:0},[`&.${b.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(e.vars||e).palette.background.paper},variants:[{props:({ownerState:e})=>"filled"!==e.variant&&"outlined"!==e.variant,style:{"&&&":{paddingRight:24,minWidth:16}}},{props:{variant:"filled"},style:{"&&&":{paddingRight:32}}},{props:{variant:"outlined"},style:{borderRadius:(e.vars||e).shape.borderRadius,"&:focus":{borderRadius:(e.vars||e).shape.borderRadius},"&&&":{paddingRight:32}}}]})),S=(0,g.ZP)(x,{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:y.Z,overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.select,t[r.variant],r.error&&t.error,{[`&.${b.multiple}`]:t.multiple}]}})({}),w=(0,g.ZP)("svg")(({theme:e})=>({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(e.vars||e).palette.action.active,[`&.${b.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:({ownerState:e})=>e.open,style:{transform:"rotate(180deg)"}},{props:{variant:"filled"},style:{right:7}},{props:{variant:"outlined"},style:{right:7}}]})),E=(0,g.ZP)(w,{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${(0,c.Z)(r.variant)}`],r.open&&t.iconOpen]}})({}),P=o.forwardRef(function(e,t){let{className:r,disabled:n,error:l,IconComponent:s,inputRef:u,variant:d="standard",...p}=e,f={...e,disabled:n,variant:d,error:l},m=(e=>{let{classes:t,variant:r,disabled:n,multiple:o,open:i,error:l}=e,s={select:["select",r,n&&"disabled",o&&"multiple",l&&"error"],icon:["icon",`icon${(0,c.Z)(r)}`,i&&"iconOpen",n&&"disabled"]};return(0,a.Z)(s,v,t)})(f);return(0,Z.jsxs)(o.Fragment,{children:[(0,Z.jsx)(S,{ownerState:f,className:(0,i.Z)(m.select,r),disabled:n,ref:u||t,...p}),e.multiple?null:(0,Z.jsx)(E,{as:s,ownerState:f,className:m.icon})]})});var R=r(65021),k=r(4005),C=r(51183),M=r(18817);function _(e){return(0,h.ZP)("MuiSelect",e)}let O=(0,m.Z)("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),T=(0,g.ZP)(x,{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[{[`&.${O.select}`]:t.select},{[`&.${O.select}`]:t[r.variant]},{[`&.${O.error}`]:t.error},{[`&.${O.multiple}`]:t.multiple}]}})({[`&.${O.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),I=(0,g.ZP)(w,{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${(0,c.Z)(r.variant)}`],r.open&&t.iconOpen]}})({}),z=(0,g.ZP)("input",{shouldForwardProp:e=>(0,k.Z)(e)&&"classes"!==e,name:"MuiSelect",slot:"NativeInput",overridesResolver:(e,t)=>t.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function F(e,t){return"object"==typeof t&&null!==t?e===t:String(e)===String(t)}let j=o.forwardRef(function(e,t){var r;let l,s,{"aria-describedby":m,"aria-label":h,autoFocus:v,autoWidth:b,children:g,className:y,defaultOpen:x,defaultValue:S,disabled:w,displayEmpty:E,error:P=!1,IconComponent:k,inputRef:O,labelId:j,MenuProps:N={},multiple:A,name:L,onBlur:$,onChange:B,onClose:W,onFocus:D,onOpen:H,open:K,readOnly:U,renderValue:q,required:V,SelectDisplayProps:X={},tabIndex:G,type:Y,value:Q,variant:J="standard",...ee}=e,[et,er]=(0,M.Z)({controlled:Q,default:S,name:"Select"}),[en,eo]=(0,M.Z)({controlled:K,default:x,name:"Select"}),ei=o.useRef(null),el=o.useRef(null),[ea,es]=o.useState(null),{current:eu}=o.useRef(null!=K),[ed,ep]=o.useState(),ec=(0,C.Z)(t,O),ef=o.useCallback(e=>{el.current=e,e&&es(e)},[]),em=ea?.parentNode;o.useImperativeHandle(ec,()=>({focus:()=>{el.current.focus()},node:ei.current,value:et}),[et]),o.useEffect(()=>{x&&en&&ea&&!eu&&(ep(b?null:em.clientWidth),el.current.focus())},[ea,b]),o.useEffect(()=>{v&&el.current.focus()},[v]),o.useEffect(()=>{if(!j)return;let e=(0,p.Z)(el.current).getElementById(j);if(e){let t=()=>{getSelection().isCollapsed&&el.current.focus()};return e.addEventListener("click",t),()=>{e.removeEventListener("click",t)}}},[j]);let eh=(e,t)=>{e?H&&H(t):W&&W(t),eu||(ep(b?null:em.clientWidth),eo(e))},ev=o.Children.toArray(g),eb=null!==ea&&en;delete ee["aria-invalid"];let eg=[],ey=!1;((0,R.vd)({value:et})||E)&&(q?l=q(et):ey=!0);let eZ=ev.map(e=>{let t;if(!o.isValidElement(e))return null;if(A){if(!Array.isArray(et))throw Error((0,u.Z)(2));(t=et.some(t=>F(t,e.props.value)))&&ey&&eg.push(e.props.children)}else(t=F(et,e.props.value))&&ey&&(s=e.props.children);return o.cloneElement(e,{"aria-selected":t?"true":"false",onClick:t=>{let r;if(t.currentTarget.hasAttribute("tabindex")){if(A){r=Array.isArray(et)?et.slice():[];let t=et.indexOf(e.props.value);-1===t?r.push(e.props.value):r.splice(t,1)}else r=e.props.value;if(e.props.onClick&&e.props.onClick(t),et!==r&&(er(r),B)){let n=t.nativeEvent||t,o=new n.constructor(n.type,n);Object.defineProperty(o,"target",{writable:!0,value:{value:r,name:L}}),B(o,e)}A||eh(!1,t)}},onKeyUp:t=>{" "===t.key&&t.preventDefault(),e.props.onKeyUp&&e.props.onKeyUp(t)},role:"option",selected:t,value:void 0,"data-value":e.props.value})});ey&&(l=A?0===eg.length?null:eg.reduce((e,t,r)=>(e.push(t),r<eg.length-1&&e.push(", "),e),[]):s);let ex=ed;!b&&eu&&ea&&(ex=em.clientWidth);let eS=X.id||(L?`mui-component-select-${L}`:void 0),ew={...e,variant:J,value:et,open:eb,error:P},eE=(e=>{let{classes:t,variant:r,disabled:n,multiple:o,open:i,error:l}=e,s={select:["select",r,n&&"disabled",o&&"multiple",l&&"error"],icon:["icon",`icon${(0,c.Z)(r)}`,i&&"iconOpen",n&&"disabled"],nativeInput:["nativeInput"]};return(0,a.Z)(s,_,t)})(ew),eP={...N.PaperProps,...N.slotProps?.paper},eR=(0,d.Z)();return(0,Z.jsxs)(o.Fragment,{children:[(0,Z.jsx)(T,{as:"div",ref:ef,tabIndex:void 0!==G?G:w?null:0,role:"combobox","aria-controls":eb?eR:void 0,"aria-disabled":w?"true":void 0,"aria-expanded":eb?"true":"false","aria-haspopup":"listbox","aria-label":h,"aria-labelledby":[j,eS].filter(Boolean).join(" ")||void 0,"aria-describedby":m,"aria-required":V?"true":void 0,"aria-invalid":P?"true":void 0,onKeyDown:e=>{!U&&[" ","ArrowUp","ArrowDown","Enter"].includes(e.key)&&(e.preventDefault(),eh(!0,e))},onMouseDown:w||U?null:e=>{0===e.button&&(e.preventDefault(),el.current.focus(),eh(!0,e))},onBlur:e=>{!eb&&$&&(Object.defineProperty(e,"target",{writable:!0,value:{value:et,name:L}}),$(e))},onFocus:D,...X,ownerState:ew,className:(0,i.Z)(X.className,eE.select,y),id:eS,children:null!=(r=l)&&("string"!=typeof r||r.trim())?l:n||(n=(0,Z.jsx)("span",{className:"notranslate","aria-hidden":!0,children:""}))}),(0,Z.jsx)(z,{"aria-invalid":P,value:Array.isArray(et)?et.join(","):et,name:L,ref:ei,"aria-hidden":!0,onChange:e=>{let t=ev.find(t=>t.props.value===e.target.value);void 0!==t&&(er(t.props.value),B&&B(e,t))},tabIndex:-1,disabled:w,className:eE.nativeInput,autoFocus:v,required:V,...ee,ownerState:ew}),(0,Z.jsx)(I,{as:k,className:eE.icon,ownerState:ew}),(0,Z.jsx)(f.Z,{id:`menu-${L||""}`,anchorEl:em,open:eb,onClose:e=>{eh(!1,e)},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},...N,slotProps:{...N.slotProps,list:{"aria-labelledby":j,role:"listbox","aria-multiselectable":A?"true":void 0,disableListWrap:!0,id:eR,...N.MenuListProps},paper:{...eP,style:{minWidth:ex,...null!=eP?eP.style:null}}},children:eZ})]})});var N=r(33567),A=r(36683),L=r(97686),$=r(20540),B=r(90222),W=r(51857),D=r(51751);let H={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>(0,y.Z)(e)&&"variant"!==e,slot:"Root"},K=(0,g.ZP)($.Z,H)(""),U=(0,g.ZP)(W.Z,H)(""),q=(0,g.ZP)(B.Z,H)(""),V=o.forwardRef(function(e,t){let r=(0,D.i)({name:"MuiSelect",props:e}),{autoWidth:n=!1,children:u,classes:d={},className:p,defaultOpen:c=!1,displayEmpty:f=!1,IconComponent:m=L.Z,id:h,input:v,inputProps:b,label:g,labelId:y,MenuProps:x,multiple:S=!1,native:w=!1,onClose:E,onOpen:R,open:k,renderValue:M,SelectDisplayProps:O,variant:T="outlined",...I}=r,z=(0,A.Z)(),F=(0,N.Z)({props:r,muiFormControl:z,states:["variant","error"]}),$=F.variant||T,B={...r,variant:$,classes:d},W=(e=>{let{classes:t}=e,r=(0,a.Z)({root:["root"]},_,t);return{...t,...r}})(B),{root:H,...V}=W,X=v||({standard:(0,Z.jsx)(K,{ownerState:B}),outlined:(0,Z.jsx)(U,{label:g,ownerState:B}),filled:(0,Z.jsx)(q,{ownerState:B})})[$],G=(0,C.Z)(t,(0,s.Z)(X));return(0,Z.jsx)(o.Fragment,{children:o.cloneElement(X,{inputComponent:w?P:j,inputProps:{children:u,error:F.error,IconComponent:m,variant:$,type:void 0,multiple:S,...w?{id:h}:{autoWidth:n,defaultOpen:c,displayEmpty:f,labelId:y,MenuProps:x,onClose:E,onOpen:R,open:k,renderValue:M,SelectDisplayProps:{id:h,...O}},...b,classes:b?(0,l.Z)(V,b.classes):V,...v?v.props.inputProps:{}},...(S&&w||f)&&"outlined"===$?{notched:!0}:{},ref:G,className:(0,i.Z)(X.props.className,p,W.root),...!v&&{variant:$},...I})})});V.muiName="Select";let X=V},8695:function(e,t,r){r.d(t,{Z:()=>w});var n=r(54538),o=r(90496),i=r(82267),l=r(5056),a=r(12709),s=r(51751),u=r(20540),d=r(90222),p=r(51857),c=r(68808),f=r(90192),m=r(32931),h=r(63767),v=r(44124),b=r(6749);function g(e){return(0,b.ZP)("MuiTextField",e)}(0,v.Z)("MuiTextField",["root"]);var y=r(16351),Z=r(24246);let x={standard:u.Z,filled:d.Z,outlined:p.Z},S=(0,a.ZP)(f.Z,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),w=n.forwardRef(function(e,t){let r=(0,s.i)({props:e,name:"MuiTextField"}),{autoComplete:n,autoFocus:a=!1,children:u,className:d,color:p="primary",defaultValue:f,disabled:v=!1,error:b=!1,FormHelperTextProps:w,fullWidth:E=!1,helperText:P,id:R,InputLabelProps:k,inputProps:C,InputProps:M,inputRef:_,label:O,maxRows:T,minRows:I,multiline:z=!1,name:F,onBlur:j,onChange:N,onFocus:A,placeholder:L,required:$=!1,rows:B,select:W=!1,SelectProps:D,slots:H={},slotProps:K={},type:U,value:q,variant:V="outlined",...X}=r,G={...r,autoFocus:a,color:p,disabled:v,error:b,fullWidth:E,multiline:z,required:$,select:W,variant:V},Y=(e=>{let{classes:t}=e;return(0,i.Z)({root:["root"]},g,t)})(G),Q=(0,l.Z)(R),J=P&&Q?`${Q}-helper-text`:void 0,ee=O&&Q?`${Q}-label`:void 0,et=x[V],er={slots:H,slotProps:{input:M,inputLabel:k,htmlInput:C,formHelperText:w,select:D,...K}},en={},eo=er.slotProps.inputLabel;"outlined"===V&&(eo&&void 0!==eo.shrink&&(en.notched=eo.shrink),en.label=O),W&&(D&&D.native||(en.id=void 0),en["aria-describedby"]=void 0);let[ei,el]=(0,y.Z)("input",{elementType:et,externalForwardedProps:er,additionalProps:en,ownerState:G}),[ea,es]=(0,y.Z)("inputLabel",{elementType:c.Z,externalForwardedProps:er,ownerState:G}),[eu,ed]=(0,y.Z)("htmlInput",{elementType:"input",externalForwardedProps:er,ownerState:G}),[ep,ec]=(0,y.Z)("formHelperText",{elementType:m.Z,externalForwardedProps:er,ownerState:G}),[ef,em]=(0,y.Z)("select",{elementType:h.Z,externalForwardedProps:er,ownerState:G}),eh=(0,Z.jsx)(ei,{"aria-describedby":J,autoComplete:n,autoFocus:a,defaultValue:f,fullWidth:E,multiline:z,name:F,rows:B,maxRows:T,minRows:I,type:U,value:q,id:Q,inputRef:_,onBlur:j,onChange:N,onFocus:A,placeholder:L,inputProps:ed,slots:{input:H.htmlInput?eu:void 0},...el});return(0,Z.jsxs)(S,{className:(0,o.Z)(Y.root,d),disabled:v,error:b,fullWidth:E,ref:t,required:$,color:p,variant:V,ownerState:G,...X,children:[null!=O&&""!==O&&(0,Z.jsx)(ea,{htmlFor:Q,id:ee,...es,children:O}),W?(0,Z.jsx)(ef,{"aria-describedby":J,id:Q,labelId:ee,value:q,input:eh,...em,children:u}):eh,P&&(0,Z.jsx)(ep,{id:J,...ec,children:P})]})})},97686:function(e,t,r){r.d(t,{Z:()=>i}),r(54538);var n=r(90247),o=r(24246);let i=(0,n.Z)((0,o.jsx)("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown")},42777:function(e,t,r){r.d(t,{C:()=>o,n:()=>n});let n=e=>e.scrollTop;function o(e,t){let{timeout:r,easing:n,style:o={}}=e;return{duration:o.transitionDuration??("number"==typeof r?r:r[t.mode]||0),easing:o.transitionTimingFunction??("object"==typeof n?n[t.mode]:n),delay:o.transitionDelay}}},88653:function(e,t,r){r.d(t,{Z:()=>n});let n=function(e){return"string"==typeof e}},32543:function(e,t,r){r.d(t,{zY:()=>c,u7:()=>f}),r(54538);var n=r(93772),o=r(72116),i=r(24246);function l(e){let{styles:t,defaultTheme:r={}}=e,n="function"==typeof t?e=>t(null==e||0===Object.keys(e).length?r:e):t;return(0,i.jsx)(o.Global,{styles:n})}var a=r(38971);let s=function({styles:e,themeId:t,defaultTheme:r={}}){let n=(0,a.Z)(r),o="function"==typeof e?e(t&&n[t]||n):e;return(0,i.jsx)(l,{styles:o})};var u=r(53126),d=r(92994);let p=function(e){return(0,i.jsx)(s,{...e,defaultTheme:u.Z,themeId:d.Z})};function c(e){return function(t){return(0,i.jsx)(p,{styles:"function"==typeof e?r=>e({theme:r,...t}):e})}}function f(){return n.Z}},94680:function(e,t,r){r.d(t,{Z:()=>o});var n=r(54538);function o(e){return parseInt(n.version,10)>=19?e?.props?.ref||null:e?.ref||null}},16046:function(e,t,r){r.d(t,{Z:()=>n});function n(e=window){let t=e.document.documentElement.clientWidth;return e.innerWidth-t}},41825:function(e,t,r){r.d(t,{ZP:()=>g});var n=r(97784),o=r(54652),i=r(54538),l=r.n(i),a=r(6085),s=r.n(a),u=r(16897),d=r(98683),p="unmounted",c="exited",f="entering",m="entered",h="exiting",v=function(e){function t(t,r){var n,o=e.call(this,t,r)||this,i=r&&!r.isMounting?t.enter:t.appear;return o.appearStatus=null,t.in?i?(n=c,o.appearStatus=f):n=m:n=t.unmountOnExit||t.mountOnEnter?p:c,o.state={status:n},o.nextCallback=null,o}(0,o.Z)(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===p?{status:c}:null};var r=t.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(e){var t=null;if(e!==this.props){var r=this.state.status;this.props.in?r!==f&&r!==m&&(t=f):(r===f||r===m)&&(t=h)}this.updateStatus(!1,t)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var e,t,r,n=this.props.timeout;return e=t=r=n,null!=n&&"number"!=typeof n&&(e=n.exit,t=n.enter,r=void 0!==n.appear?n.appear:t),{exit:e,enter:t,appear:r}},r.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===f){if(this.props.unmountOnExit||this.props.mountOnEnter){var r=this.props.nodeRef?this.props.nodeRef.current:s().findDOMNode(this);r&&(0,d.Q)(r)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===c&&this.setState({status:p})},r.performEnter=function(e){var t=this,r=this.props.enter,n=this.context?this.context.isMounting:e,o=this.props.nodeRef?[n]:[s().findDOMNode(this),n],i=o[0],l=o[1],a=this.getTimeouts(),u=n?a.appear:a.enter;if(!e&&!r)return void this.safeSetState({status:m},function(){t.props.onEntered(i)});this.props.onEnter(i,l),this.safeSetState({status:f},function(){t.props.onEntering(i,l),t.onTransitionEnd(u,function(){t.safeSetState({status:m},function(){t.props.onEntered(i,l)})})})},r.performExit=function(){var e=this,t=this.props.exit,r=this.getTimeouts(),n=this.props.nodeRef?void 0:s().findDOMNode(this);if(!t)return void this.safeSetState({status:c},function(){e.props.onExited(n)});this.props.onExit(n),this.safeSetState({status:h},function(){e.props.onExiting(n),e.onTransitionEnd(r.exit,function(){e.safeSetState({status:c},function(){e.props.onExited(n)})})})},r.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},r.setNextCallback=function(e){var t=this,r=!0;return this.nextCallback=function(n){r&&(r=!1,t.nextCallback=null,e(n))},this.nextCallback.cancel=function(){r=!1},this.nextCallback},r.onTransitionEnd=function(e,t){this.setNextCallback(t);var r=this.props.nodeRef?this.props.nodeRef.current:s().findDOMNode(this),n=null==e&&!this.props.addEndListener;if(!r||n)return void setTimeout(this.nextCallback,0);if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[r,this.nextCallback],i=o[0],l=o[1];this.props.addEndListener(i,l)}null!=e&&setTimeout(this.nextCallback,e)},r.render=function(){var e=this.state.status;if(e===p)return null;var t=this.props,r=t.children,o=(t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef,(0,n.Z)(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return l().createElement(u.Z.Provider,{value:null},"function"==typeof r?r(e,o):l().cloneElement(l().Children.only(r),o))},t}(l().Component);function b(){}v.contextType=u.Z,v.propTypes={},v.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:b,onEntering:b,onEntered:b,onExit:b,onExiting:b,onExited:b},v.UNMOUNTED=p,v.EXITED=c,v.ENTERING=f,v.ENTERED=m,v.EXITING=h;let g=v},98683:function(e,t,r){r.d(t,{Q:()=>n});var n=function(e){return e.scrollTop}},75586:function(e,t,r){r.d(t,{Uy:()=>D,sc:()=>i,vV:()=>x});var n,o=Symbol.for("immer-nothing"),i=Symbol.for("immer-draftable"),l=Symbol.for("immer-state");function a(e){throw Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var s=Object.getPrototypeOf;function u(e){return!!e&&!!e[l]}function d(e){return!!e&&(c(e)||Array.isArray(e)||!!e[i]||!!e.constructor?.[i]||b(e)||g(e))}var p=Object.prototype.constructor.toString();function c(e){if(!e||"object"!=typeof e)return!1;let t=s(e);if(null===t)return!0;let r=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return r===Object||"function"==typeof r&&Function.toString.call(r)===p}function f(e,t){0===m(e)?Reflect.ownKeys(e).forEach(r=>{t(r,e[r],e)}):e.forEach((r,n)=>t(n,r,e))}function m(e){let t=e[l];return t?t.type_:Array.isArray(e)?1:b(e)?2:3*!!g(e)}function h(e,t){return 2===m(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function v(e,t,r){let n=m(e);2===n?e.set(t,r):3===n?e.add(r):e[t]=r}function b(e){return e instanceof Map}function g(e){return e instanceof Set}function y(e){return e.copy_||e.base_}function Z(e,t){if(b(e))return new Map(e);if(g(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);let r=c(e);if(!0!==t&&("class_only"!==t||r)){let t=s(e);return null!==t&&r?{...e}:Object.assign(Object.create(t),e)}{let t=Object.getOwnPropertyDescriptors(e);delete t[l];let r=Reflect.ownKeys(t);for(let n=0;n<r.length;n++){let o=r[n],i=t[o];!1===i.writable&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(t[o]={configurable:!0,writable:!0,enumerable:i.enumerable,value:e[o]})}return Object.create(s(e),t)}}function x(e,t=!1){return w(e)||u(e)||!d(e)||(m(e)>1&&(e.set=e.add=e.clear=e.delete=S),Object.freeze(e),t&&Object.entries(e).forEach(([e,t])=>x(t,!0))),e}function S(){a(2)}function w(e){return Object.isFrozen(e)}var E={};function P(e){let t=E[e];return t||a(0,e),t}function R(e,t){t&&(P("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function k(e){C(e),e.drafts_.forEach(_),e.drafts_=null}function C(e){e===n&&(n=e.parent_)}function M(e){return n={drafts_:[],parent_:n,immer_:e,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function _(e){let t=e[l];0===t.type_||1===t.type_?t.revoke_():t.revoked_=!0}function O(e,t){t.unfinalizedDrafts_=t.drafts_.length;let r=t.drafts_[0];return void 0!==e&&e!==r?(r[l].modified_&&(k(t),a(4)),d(e)&&(e=T(t,e),t.parent_||z(t,e)),t.patches_&&P("Patches").generateReplacementPatches_(r[l].base_,e,t.patches_,t.inversePatches_)):e=T(t,r,[]),k(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==o?e:void 0}function T(e,t,r){if(w(t))return t;let n=t[l];if(!n)return f(t,(o,i)=>I(e,n,t,o,i,r)),t;if(n.scope_!==e)return t;if(!n.modified_)return z(e,n.base_,!0),n.base_;if(!n.finalized_){n.finalized_=!0,n.scope_.unfinalizedDrafts_--;let t=n.copy_,o=t,i=!1;3===n.type_&&(o=new Set(t),t.clear(),i=!0),f(o,(o,l)=>I(e,n,t,o,l,r,i)),z(e,t,!1),r&&e.patches_&&P("Patches").generatePatches_(n,r,e.patches_,e.inversePatches_)}return n.copy_}function I(e,t,r,n,o,i,l){if(u(o)){let l=T(e,o,i&&t&&3!==t.type_&&!h(t.assigned_,n)?i.concat(n):void 0);if(v(r,n,l),!u(l))return;e.canAutoFreeze_=!1}else l&&r.add(o);if(d(o)&&!w(o)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;T(e,o),(!t||!t.scope_.parent_)&&"symbol"!=typeof n&&Object.prototype.propertyIsEnumerable.call(r,n)&&z(e,o)}}function z(e,t,r=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&x(t,r)}var F={get(e,t){if(t===l)return e;let r=y(e);if(!h(r,t)){var n=e,o=r,i=t;let l=A(o,i);return l?"value"in l?l.value:l.get?.call(n.draft_):void 0}let a=r[t];return e.finalized_||!d(a)?a:a===N(e.base_,t)?($(e),e.copy_[t]=B(a,e)):a},has:(e,t)=>t in y(e),ownKeys:e=>Reflect.ownKeys(y(e)),set(e,t,r){let n=A(y(e),t);if(n?.set)return n.set.call(e.draft_,r),!0;if(!e.modified_){let n=N(y(e),t),o=n?.[l];if(o&&o.base_===r)return e.copy_[t]=r,e.assigned_[t]=!1,!0;if((r===n?0!==r||1/r==1/n:r!=r&&n!=n)&&(void 0!==r||h(e.base_,t)))return!0;$(e),L(e)}return!!(e.copy_[t]===r&&(void 0!==r||t in e.copy_)||Number.isNaN(r)&&Number.isNaN(e.copy_[t]))||(e.copy_[t]=r,e.assigned_[t]=!0,!0)},deleteProperty:(e,t)=>(void 0!==N(e.base_,t)||t in e.base_?(e.assigned_[t]=!1,$(e),L(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0),getOwnPropertyDescriptor(e,t){let r=y(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n?{writable:!0,configurable:1!==e.type_||"length"!==t,enumerable:n.enumerable,value:r[t]}:n},defineProperty(){a(11)},getPrototypeOf:e=>s(e.base_),setPrototypeOf(){a(12)}},j={};function N(e,t){let r=e[l];return(r?y(r):e)[t]}function A(e,t){if(!(t in e))return;let r=s(e);for(;r;){let e=Object.getOwnPropertyDescriptor(r,t);if(e)return e;r=s(r)}}function L(e){!e.modified_&&(e.modified_=!0,e.parent_&&L(e.parent_))}function $(e){e.copy_||(e.copy_=Z(e.base_,e.scope_.immer_.useStrictShallowCopy_))}function B(e,t){let r=b(e)?P("MapSet").proxyMap_(e,t):g(e)?P("MapSet").proxySet_(e,t):function(e,t){let r=Array.isArray(e),o={type_:+!!r,scope_:t?t.scope_:n,modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1},i=o,l=F;r&&(i=[o],l=j);let{revoke:a,proxy:s}=Proxy.revocable(i,l);return o.draft_=s,o.revoke_=a,s}(e,t);return(t?t.scope_:n).drafts_.push(r),r}f(F,(e,t)=>{j[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),j.deleteProperty=function(e,t){return j.set.call(this,e,t,void 0)},j.set=function(e,t,r){return F.set.call(this,e[0],t,r,e[0])};var W=new class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(e,t,r)=>{let n;if("function"==typeof e&&"function"!=typeof t){let r=t;t=e;let n=this;return function(e=r,...o){return n.produce(e,e=>t.call(this,e,...o))}}if("function"!=typeof t&&a(6),void 0!==r&&"function"!=typeof r&&a(7),d(e)){let o=M(this),i=B(e,void 0),l=!0;try{n=t(i),l=!1}finally{l?k(o):C(o)}return R(o,r),O(n,o)}if(e&&"object"==typeof e)a(1,e);else{if(void 0===(n=t(e))&&(n=e),n===o&&(n=void 0),this.autoFreeze_&&x(n,!0),r){let t=[],o=[];P("Patches").generateReplacementPatches_(e,n,t,o),r(t,o)}return n}},this.produceWithPatches=(e,t)=>{let r,n;return"function"==typeof e?(t,...r)=>this.produceWithPatches(t,t=>e(t,...r)):[this.produce(e,t,(e,t)=>{r=e,n=t}),r,n]},"boolean"==typeof e?.autoFreeze&&this.setAutoFreeze(e.autoFreeze),"boolean"==typeof e?.useStrictShallowCopy&&this.setUseStrictShallowCopy(e.useStrictShallowCopy)}createDraft(e){var t;d(e)||a(8),u(e)&&(u(t=e)||a(10,t),e=function e(t){let r;if(!d(t)||w(t))return t;let n=t[l];if(n){if(!n.modified_)return n.base_;n.finalized_=!0,r=Z(t,n.scope_.immer_.useStrictShallowCopy_)}else r=Z(t,!0);return f(r,(t,n)=>{v(r,t,e(n))}),n&&(n.finalized_=!1),r}(t));let r=M(this),n=B(e,void 0);return n[l].isManual_=!0,C(r),n}finishDraft(e,t){let r=e&&e[l];r&&r.isManual_||a(9);let{scope_:n}=r;return R(n,t),O(void 0,n)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}applyPatches(e,t){let r;for(r=t.length-1;r>=0;r--){let n=t[r];if(0===n.path.length&&"replace"===n.op){e=n.value;break}}r>-1&&(t=t.slice(r+1));let n=P("Patches").applyPatches_;return u(e)?n(e,t):this.produce(e,e=>n(e,t))}},D=W.produce;W.produceWithPatches.bind(W),W.setAutoFreeze.bind(W),W.setUseStrictShallowCopy.bind(W),W.applyPatches.bind(W),W.createDraft.bind(W),W.finishDraft.bind(W)}}]);
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/*! For license information please see 6377.e48abaa5.js.LICENSE.txt */
|
|
2
|
-
"use strict";(self.chunk_VictoriaLogs=self.chunk_VictoriaLogs||[]).push([["6377"],{65895:function(e,t,r){r.r(t),r.d(t,{useBeforeUnload:()=>rj,useRouteError:()=>tk,Route:()=>tz,useParams:()=>tu,UNSAFE_ErrorResponseImpl:()=>et,useRoutes:()=>td,BrowserRouter:()=>rh,createHashRouter:()=>rt,redirectDocument:()=>Z,useAsyncError:()=>tA,createRoutesFromChildren:()=>tq,useLoaderData:()=>tP,useLinkClickHandler:()=>rR,createPath:()=>C,useSearchParams:()=>rx,UNSAFE_DataRouterContext:()=>e7,useNavigate:()=>to,replace:()=>ee,useHref:()=>e9,useSubmit:()=>rL,createRoutesFromElements:()=>tq,useInRouterContext:()=>te,UNSAFE_useScrollRestoration:()=>rU,useNavigation:()=>tR,Navigate:()=>tB,unstable_usePrompt:()=>rM,unstable_HistoryRouter:()=>rp,UNSAFE_RouteContext:()=>e6,useViewTransitionState:()=>rO,matchRoutes:()=>_,useBlocker:()=>tU,redirect:()=>Q,createSearchParams:()=>t4,createMemoryRouter:()=>tQ,RouterProvider:()=>rc,useNavigationType:()=>tr,UNSAFE_DataRouterStateContext:()=>e4,NavigationType:()=>c,useOutletContext:()=>tl,UNSAFE_ViewTransitionContext:()=>rn,defer:()=>G,Router:()=>tH,Routes:()=>tW,useFetcher:()=>rk,UNSAFE_FetchersContext:()=>ra,parsePath:()=>P,Await:()=>t$,generatePath:()=>M,useActionData:()=>tD,MemoryRouter:()=>tN,UNSAFE_LocationContext:()=>e3,useResolvedPath:()=>tc,Form:()=>rw,isRouteErrorResponse:()=>er,createBrowserRouter:()=>re,HashRouter:()=>rf,UNSAFE_useRouteId:()=>tS,Outlet:()=>tI,useLocation:()=>tt,UNSAFE_NavigationContext:()=>e2,useRouteLoaderData:()=>tL,renderMatches:()=>tX,resolvePath:()=>B,useOutlet:()=>ts,AbortedDeferredError:()=>q,Link:()=>ry,useAsyncValue:()=>t_,useMatch:()=>tn,NavLink:()=>rg,useFormAction:()=>rD,ScrollRestoration:()=>rb,json:()=>Y,useMatches:()=>tC,useFetchers:()=>r_,useRevalidator:()=>tx,matchPath:()=>O});var n,a,o,i,l,s,u,c,d,h,f,p=r(54538),m=r(6085);function v(){return(v=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)}(n=c||(c={})).Pop="POP",n.Push="PUSH",n.Replace="REPLACE";let y="popstate";function g(e){let t;void 0===e&&(e={});let{initialEntries:r=["/"],initialIndex:n,v5Compat:a=!1}=e;t=r.map((e,t)=>u(e,"string"==typeof e?null:e.state,0===t?"default":void 0));let o=s(null==n?t.length-1:n),i=c.Pop,l=null;function s(e){return Math.min(Math.max(e,0),t.length-1)}function u(e,r,n){void 0===r&&(r=null);let a=x(t?t[o].pathname:"/",e,r,n);return S("/"===a.pathname.charAt(0),"relative pathnames are not supported in memory history: "+JSON.stringify(e)),a}function d(e){return"string"==typeof e?e:C(e)}return{get index(){return o},get action(){return i},get location(){return t[o]},createHref:d,createURL:e=>new URL(d(e),"http://localhost"),encodeLocation(e){let t="string"==typeof e?P(e):e;return{pathname:t.pathname||"",search:t.search||"",hash:t.hash||""}},push(e,r){i=c.Push;let n=u(e,r);o+=1,t.splice(o,t.length,n),a&&l&&l({action:i,location:n,delta:1})},replace(e,r){i=c.Replace;let n=u(e,r);t[o]=n,a&&l&&l({action:i,location:n,delta:0})},go(e){i=c.Pop;let r=s(o+e),n=t[r];o=r,l&&l({action:i,location:n,delta:e})},listen:e=>(l=e,()=>{l=null})}}function w(e){return void 0===e&&(e={}),L(function(e,t){let{pathname:r,search:n,hash:a}=e.location;return x("",{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:C(t)},null,e)}function b(e){return void 0===e&&(e={}),L(function(e,t){let{pathname:r="/",search:n="",hash:a=""}=P(e.location.hash.substr(1));return r.startsWith("/")||r.startsWith(".")||(r="/"+r),x("",{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:C(t))},function(e,t){S("/"===e.pathname.charAt(0),"relative pathnames are not supported in hash history.push("+JSON.stringify(t)+")")},e)}function E(e,t){if(!1===e||null==e)throw Error(t)}function S(e,t){if(!e){"undefined"!=typeof console&&console.warn(t);try{throw Error(t)}catch(e){}}}function R(e,t){return{usr:e.state,key:e.key,idx:t}}function x(e,t,r,n){return void 0===r&&(r=null),v({pathname:"string"==typeof e?e:e.pathname,search:"",hash:""},"string"==typeof t?P(t):t,{state:r,key:t&&t.key||n||Math.random().toString(36).substr(2,8)})}function C(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 P(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 L(e,t,r,n){void 0===n&&(n={});let{window:a=document.defaultView,v5Compat:o=!1}=n,i=a.history,l=c.Pop,s=null,u=d();function d(){return(i.state||{idx:null}).idx}function h(){l=c.Pop;let e=d(),t=null==e?null:e-u;u=e,s&&s({action:l,location:p.location,delta:t})}function f(e){let t="null"!==a.location.origin?a.location.origin:a.location.href,r="string"==typeof e?e:C(e);return E(t,"No window.location.(origin|href) available to create URL for href: "+(r=r.replace(/ $/,"%20"))),new URL(r,t)}null==u&&(u=0,i.replaceState(v({},i.state,{idx:u}),""));let p={get action(){return l},get location(){return e(a,i)},listen(e){if(s)throw Error("A history only accepts one active listener");return a.addEventListener(y,h),s=e,()=>{a.removeEventListener(y,h),s=null}},createHref:e=>t(a,e),createURL:f,encodeLocation(e){let t=f(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:function(e,t){l=c.Push;let n=x(p.location,e,t);r&&r(n,e);let h=R(n,u=d()+1),f=p.createHref(n);try{i.pushState(h,"",f)}catch(e){if(e instanceof DOMException&&"DataCloneError"===e.name)throw e;a.location.assign(f)}o&&s&&s({action:l,location:p.location,delta:1})},replace:function(e,t){l=c.Replace;let n=x(p.location,e,t);r&&r(n,e);let a=R(n,u=d()),h=p.createHref(n);i.replaceState(a,"",h),o&&s&&s({action:l,location:p.location,delta:0})},go:e=>i.go(e)};return p}(a=d||(d={})).data="data",a.deferred="deferred",a.redirect="redirect",a.error="error";let D=new Set(["lazy","caseSensitive","path","id","index","children"]);function k(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(E(!0!==e.index||!e.children,"Cannot specify children on an index route"),E(!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=v({},e,t(e),{id:i});return n[i]=r,r}{let r=v({},e,t(e),{id:i,children:void 0});return n[i]=r,e.children&&(r.children=k(e.children,t,o,n)),r}})}function _(e,t,r){return void 0===r&&(r="/"),A(e,t,r,!1)}function A(e,t,r,n){let a=N(("string"==typeof t?P(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("/")&&(E(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 h=$([a,d.relativePath]),f=n.concat(d);t.children&&t.children.length>0&&(E(!0!==t.index,'Index routes must not have child routes. Please remove all child routes from route path "'+h+'".'),e(t.children,r,f,h)),(null!=t.path||t.index)&&r.push({path:h,score:(l=h,s=t.index,c=(u=l.split("/")).length,u.some(j)&&(c+=-2),s&&(c+=2),u.filter(e=>!j(e)).reduce((e,t)=>e+(U.test(t)?3:""===t?1:10),c)),routesMeta:f})};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=F(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=O({path:l.relativePath,caseSensitive:l.caseSensitive,end:s},u),d=l.route;if(!c&&s&&r&&!n[n.length-1].route.index&&(c=O({path:l.relativePath,caseSensitive:l.caseSensitive,end:!1},u)),!c)return null;Object.assign(a,c.params),i.push({params:a,pathname:$([o,c.pathname]),pathnameBase:V($([o,c.pathnameBase])),route:d}),"/"!==c.pathnameBase&&(o=$([o,c.pathnameBase]))}return i}(o[e],t,n)}return i}function T(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 U=/^:[\w-]+$/,j=e=>"*"===e;function M(e,t){void 0===t&&(t={});let r=e;r.endsWith("*")&&"*"!==r&&!r.endsWith("/*")&&(S(!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 E("?"===r||null!=n,'Missing ":'+e+'" param'),a(n)}return e.replace(/\?$/g,"")}).filter(e=>!!e).join("/")}function O(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),S("*"===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 F(e){try{return e.split("/").map(e=>decodeURIComponent(e).replace(/\//g,"%2F")).join("/")}catch(t){return S(!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 N(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 B(e,t){var r;let n;void 0===t&&(t="/");let{pathname:a,search:o="",hash:i=""}="string"==typeof e?P(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:J(o),hash:K(i)}}function I(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 z(e){return e.filter((e,t)=>0===t||e.route.path&&e.route.path.length>0)}function H(e,t){let r=z(e);return t?r.map((e,t)=>t===r.length-1?e.pathname:e.pathnameBase):r.map(e=>e.pathnameBase)}function W(e,t,r,n){let a,o;void 0===n&&(n=!1),"string"==typeof e?a=P(e):(E(!(a=v({},e)).pathname||!a.pathname.includes("?"),I("?","pathname","search",a)),E(!a.pathname||!a.pathname.includes("#"),I("#","pathname","hash",a)),E(!a.search||!a.search.includes("#"),I("#","search","hash",a)));let i=""===e||""===a.pathname,l=i?"/":a.pathname;if(null==l)o=r;else{let e=t.length-1;if(!n&&l.startsWith("..")){let t=l.split("/");for(;".."===t[0];)t.shift(),e-=1;a.pathname=t.join("/")}o=e>=0?t[e]:"/"}let s=B(a,o),u=l&&"/"!==l&&l.endsWith("/"),c=(i||"."===l)&&r.endsWith("/");return!s.pathname.endsWith("/")&&(u||c)&&(s.pathname+="/"),s}let $=e=>e.join("/").replace(/\/\/+/g,"/"),V=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),J=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",K=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"",Y=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),v({},r,{headers:n}))};class q extends Error{}class X{constructor(e,t){let r;this.pendingKeysSet=new Set,this.subscribers=new Set,this.deferredKeys=[],E(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 q("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 q)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 E(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 G=function(e,t){return void 0===t&&(t={}),new X(e,"number"==typeof t?{status:t}:t)},Q=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,v({},r,{headers:n}))},Z=(e,t)=>{let r=Q(e,t);return r.headers.set("X-Remix-Reload-Document","true"),r},ee=(e,t)=>{let r=Q(e,t);return r.headers.set("X-Remix-Replace","true"),r};class et{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 er(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"boolean"==typeof e.internal&&"data"in e}let en=["post","put","patch","delete"],ea=new Set(en),eo=new Set(["get",...en]),ei=new Set([301,302,303,307,308]),el=new Set([307,308]),es={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},eu={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},ec={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},ed=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,eh=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),ef="remix-router-transitions";function ep(e){let t,r,n,a,o,i,l=e.window?e.window:"undefined"!=typeof window?window:void 0,s=void 0!==l&&void 0!==l.document&&void 0!==l.document.createElement,u=!s;if(E(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=eh;let h={},f=k(e.routes,t,void 0,h),p=e.basename||"/",m=e.dataStrategy||ex,y=e.patchRoutesOnNavigation,g=v({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1,v7_skipActionErrorRevalidation:!1},e.future),w=null,b=new Set,R=null,C=null,P=null,L=null!=e.hydrationData,D=_(f,e.history.location,p),U=!1,j=null;if(null==D&&!y){let t=eF(404,{pathname:e.history.location.pathname}),{matches:r,route:n}=eO(f);D=r,j={[n.id]:t}}if(D&&!e.hydrationData&&to(D,f,e.history.location.pathname).active&&(D=null),D)if(D.some(e=>e.route.lazy))n=!1;else if(D.some(e=>e.route.loader))if(g.v7_partialHydration){let t=e.hydrationData?e.hydrationData.loaderData:null,r=e.hydrationData?e.hydrationData.errors:null;if(r){let e=D.findIndex(e=>void 0!==r[e.route.id]);n=D.slice(0,e+1).every(e=>!ew(e.route,t,r))}else n=D.every(e=>!ew(e.route,t,r))}else n=null!=e.hydrationData;else n=!0;else if(n=!1,D=[],g.v7_partialHydration){let t=to(null,f,e.history.location.pathname);t.active&&t.matches&&(U=!0,D=t.matches)}let M={historyAction:e.history.action,location:e.history.location,matches:D,initialized:n,navigation:es,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||j,fetchers:new Map,blockers:new Map},O=c.Pop,F=!1,B=!1,I=new Map,z=null,H=!1,W=!1,$=[],V=new Set,J=new Map,K=0,Y=-1,q=new Map,X=new Set,G=new Map,Q=new Map,Z=new Set,ee=new Map,et=new Map;function en(e,t){void 0===t&&(t={}),M=v({},M,e);let r=[],n=[];g.v7_fetcherPersist&&M.fetchers.forEach((e,t)=>{"idle"===e.state&&(Z.has(t)?n.push(t):r.push(t))}),Z.forEach(e=>{M.fetchers.has(e)||J.has(e)||n.push(e)}),[...b].forEach(e=>e(M,{deletedFetchers:n,viewTransitionOpts:t.viewTransitionOpts,flushSync:!0===t.flushSync})),g.v7_fetcherPersist?(r.forEach(e=>M.fetchers.delete(e)),n.forEach(e=>e4(e))):n.forEach(e=>Z.delete(e))}function ea(t,n,a){var o,i;let l,s,{flushSync:u}=void 0===a?{}:a,d=null!=M.actionData&&null!=M.navigation.formMethod&&eV(M.navigation.formMethod)&&"loading"===M.navigation.state&&(null==(o=t.state)?void 0:o._isRedirect)!==!0;l=n.actionData?Object.keys(n.actionData).length>0?n.actionData:null:d?M.actionData:null;let h=n.loaderData?eU(M.loaderData,n.loaderData,n.matches||[],n.errors):M.loaderData,p=M.blockers;p.size>0&&(p=new Map(p)).forEach((e,t)=>p.set(t,ec));let m=!0===F||null!=M.navigation.formMethod&&eV(M.navigation.formMethod)&&(null==(i=t.state)?void 0:i._isRedirect)!==!0;if(r&&(f=r,r=void 0),H||O===c.Pop||(O===c.Push?e.history.push(t,t.state):O===c.Replace&&e.history.replace(t,t.state)),O===c.Pop){let e=I.get(M.location.pathname);e&&e.has(t.pathname)?s={currentLocation:M.location,nextLocation:t}:I.has(t.pathname)&&(s={currentLocation:t,nextLocation:M.location})}else if(B){let e=I.get(M.location.pathname);e?e.add(t.pathname):(e=new Set([t.pathname]),I.set(M.location.pathname,e)),s={currentLocation:M.location,nextLocation:t}}en(v({},n,{actionData:l,loaderData:h,historyAction:O,location:t,initialized:!0,navigation:es,revalidation:"idle",restoreScrollPosition:ta(t,n.matches||M.matches),preventScrollReset:m,blockers:p}),{viewTransitionOpts:s,flushSync:!0===u}),O=c.Pop,F=!1,B=!1,H=!1,W=!1,$=[]}async function eo(t,r){if("number"==typeof t)return void e.history.go(t);let n=em(M.location,M.matches,p,g.v7_prependBasename,t,g.v7_relativeSplatPath,null==r?void 0:r.fromRouteId,null==r?void 0:r.relative),{path:a,submission:o,error:i}=ev(g.v7_normalizeFormMethod,!1,n,r),l=M.location,s=x(M.location,a,r&&r.state);s=v({},s,e.history.encodeLocation(s));let u=r&&null!=r.replace?r.replace:void 0,d=c.Push;!0===u?d=c.Replace:!1===u||null!=o&&eV(o.formMethod)&&o.formAction===M.location.pathname+M.location.search&&(d=c.Replace);let h=r&&"preventScrollReset"in r?!0===r.preventScrollReset:void 0,f=!0===(r&&r.flushSync),m=te({currentLocation:l,nextLocation:s,historyAction:d});return m?void e9(m,{state:"blocked",location:s,proceed(){e9(m,{state:"proceeding",proceed:void 0,reset:void 0,location:s}),eo(t,r)},reset(){let e=new Map(M.blockers);e.set(m,ec),en({blockers:e})}}):await ep(d,s,{submission:o,pendingError:i,preventScrollReset:h,replace:r&&r.replace,enableViewTransition:r&&r.viewTransition,flushSync:f})}async function ep(t,n,a){var i,l,s,u;let c;o&&o.abort(),o=null,O=t,H=!0===(a&&a.startUninterruptedRevalidation),i=M.location,l=M.matches,R&&P&&(R[tn(i,l)]=P()),F=!0===(a&&a.preventScrollReset),B=!0===(a&&a.enableViewTransition);let h=r||f,m=a&&a.overrideNavigation,y=null!=a&&a.initialHydration&&M.matches&&M.matches.length>0&&!U?M.matches:_(h,n,p),g=!0===(a&&a.flushSync);if(y&&M.initialized&&!W&&(s=M.location,u=n,s.pathname===u.pathname&&s.search===u.search&&(""===s.hash?""!==u.hash:s.hash===u.hash||""!==u.hash||!1))&&!(a&&a.submission&&eV(a.submission.formMethod)))return void ea(n,{matches:y},{flushSync:g});let w=to(y,h,n.pathname);if(w.active&&w.matches&&(y=w.matches),!y){let{error:e,notFoundMatches:t,route:r}=tt(n.pathname);ea(n,{matches:t,loaderData:{},errors:{[r.id]:e}},{flushSync:g});return}o=new AbortController;let b=ek(e.history,n,o.signal,a&&a.submission);if(a&&a.pendingError)c=[eM(y).route.id,{type:d.error,error:a.pendingError}];else if(a&&a.submission&&eV(a.submission.formMethod)){let t=await ey(b,n,a.submission,y,w.active,{replace:a.replace,flushSync:g});if(t.shortCircuited)return;if(t.pendingActionResult){let[e,r]=t.pendingActionResult;if(ez(r)&&er(r.error)&&404===r.error.status){o=null,ea(n,{matches:t.matches,loaderData:{},errors:{[e]:r.error}});return}}y=t.matches||y,c=t.pendingActionResult,m=eQ(n,a.submission),g=!1,w.active=!1,b=ek(e.history,b.url,b.signal)}let{shortCircuited:E,matches:S,loaderData:x,errors:C}=await eb(b,n,y,w.active,m,a&&a.submission,a&&a.fetcherSubmission,a&&a.replace,a&&!0===a.initialHydration,g,c);E||(o=null,ea(n,v({matches:S||y},ej(c),{loaderData:x,errors:C})))}async function ey(e,t,r,n,a,o){var i;let l;if(void 0===o&&(o={}),eW(),en({navigation:{state:"submitting",location:t,formMethod:(i=r).formMethod,formAction:i.formAction,formEncType:i.formEncType,formData:i.formData,json:i.json,text:i.text}},{flushSync:!0===o.flushSync}),a){let r=await ti(n,t.pathname,e.signal);if("aborted"===r.type)return{shortCircuited:!0};if("error"===r.type){let e=eM(r.partialMatches).route.id;return{matches:r.partialMatches,pendingActionResult:[e,{type:d.error,error:r.error}]}}if(r.matches)n=r.matches;else{let{notFoundMatches:e,error:r,route:n}=tt(t.pathname);return{matches:e,pendingActionResult:[n.id,{type:d.error,error:r}]}}}let s=eX(n,t);if(s.route.action||s.route.lazy){if(l=(await eA("action",M,e,[s],n,null))[s.route.id],e.signal.aborted)return{shortCircuited:!0}}else l={type:d.error,error:eF(405,{method:e.method,pathname:t.pathname,routeId:s.route.id})};if(eH(l)){let t;return t=o&&null!=o.replace?o.replace:eD(l.response.headers.get("Location"),new URL(e.url),p)===M.location.pathname+M.location.search,await e_(e,l,!0,{submission:r,replace:t}),{shortCircuited:!0}}if(eI(l))throw eF(400,{type:"defer-action"});if(ez(l)){let e=eM(n,s.route.id);return!0!==(o&&o.replace)&&(O=c.Push),{matches:n,pendingActionResult:[e.route.id,l]}}return{matches:n,pendingActionResult:[s.route.id,l]}}async function eb(t,n,a,i,l,s,u,c,d,h,m){let y=l||eQ(n,s),w=s||u||eG(y),b=!H&&(!g.v7_partialHydration||!d);if(i){if(b){let e=eE(m);en(v({navigation:y},void 0!==e?{actionData:e}:{}),{flushSync:h})}let e=await ti(a,n.pathname,t.signal);if("aborted"===e.type)return{shortCircuited:!0};if("error"===e.type){let t=eM(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 E=r||f,[S,R]=eg(e.history,M,a,w,n,g.v7_partialHydration&&!0===d,g.v7_skipActionErrorRevalidation,W,$,V,Z,G,X,E,p,m);if(tr(e=>!(a&&a.some(t=>t.route.id===e))||S&&S.some(t=>t.route.id===e)),Y=++K,0===S.length&&0===R.length){let e=e3();return ea(n,v({matches:a,loaderData:{},errors:m&&ez(m[1])?{[m[0]]:m[1].error}:null},ej(m),e?{fetchers:new Map(M.fetchers)}:{}),{flushSync:h}),{shortCircuited:!0}}if(b){let e={};if(!i){e.navigation=y;let t=eE(m);void 0!==t&&(e.actionData=t)}R.length>0&&(R.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)),en(e,{flushSync:h})}R.forEach(e=>{e5(e.key),e.controller&&J.set(e.key,e.controller)});let x=()=>R.forEach(e=>e5(e.key));o&&o.signal.addEventListener("abort",x);let{loaderResults:C,fetcherResults:P}=await eB(M,a,S,R,t);if(t.signal.aborted)return{shortCircuited:!0};o&&o.signal.removeEventListener("abort",x),R.forEach(e=>J.delete(e.key));let L=eN(C);if(L)return await e_(t,L.result,!0,{replace:c}),{shortCircuited:!0};if(L=eN(P))return X.add(L.key),await e_(t,L.result,!0,{replace:c}),{shortCircuited:!0};let{loaderData:D,errors:k}=eT(M,a,C,m,R,P,ee);ee.forEach((e,t)=>{e.subscribe(r=>{(r||e.done)&&ee.delete(t)})}),g.v7_partialHydration&&d&&M.errors&&(k=v({},M.errors,k));let _=e3(),A=e6(Y),T=_||A||R.length>0;return v({matches:a,loaderData:D,errors:k},T?{fetchers:new Map(M.fetchers)}:{})}function eE(e){if(e&&!ez(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 eR(t,n,a,i,l,s,u,c,d){var h,m;function v(e){if(!e.route.action&&!e.route.lazy){let e=eF(405,{method:d.formMethod,pathname:a,routeId:n});return e1(t,n,e,{flushSync:u}),!0}return!1}if(eW(),G.delete(t),!s&&v(i))return;let y=M.fetchers.get(t);eq(t,(h=d,m=y,{state:"submitting",formMethod:h.formMethod,formAction:h.formAction,formEncType:h.formEncType,formData:h.formData,json:h.json,text:h.text,data:m?m.data:void 0}),{flushSync:u});let w=new AbortController,b=ek(e.history,a,w.signal,d);if(s){let e=await ti(l,new URL(b.url).pathname,b.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,eF(404,{pathname:a}),{flushSync:u});if(v(i=eX(l=e.matches,a)))return}J.set(t,w);let S=K,R=(await eA("action",M,b,[i],l,t))[i.route.id];if(b.signal.aborted){J.get(t)===w&&J.delete(t);return}if(g.v7_fetcherPersist&&Z.has(t)){if(eH(R)||ez(R))return void eq(t,e0(void 0))}else{if(eH(R))return(J.delete(t),Y>S)?void eq(t,e0(void 0)):(X.add(t),eq(t,eZ(d)),e_(b,R,!1,{fetcherSubmission:d,preventScrollReset:c}));if(ez(R))return void e1(t,n,R.error)}if(eI(R))throw eF(400,{type:"defer-action"});let x=M.navigation.location||M.location,C=ek(e.history,x,w.signal),P=r||f,L="idle"!==M.navigation.state?_(P,M.navigation.location,p):M.matches;E(L,"Didn't find any matches after fetcher action");let D=++K;q.set(t,D);let k=eZ(d,R.data);M.fetchers.set(t,k);let[A,T]=eg(e.history,M,L,d,x,!1,g.v7_skipActionErrorRevalidation,W,$,V,Z,G,X,P,p,[i.route.id,R]);T.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),e5(t),e.controller&&J.set(t,e.controller)}),en({fetchers:new Map(M.fetchers)});let U=()=>T.forEach(e=>e5(e.key));w.signal.addEventListener("abort",U);let{loaderResults:j,fetcherResults:F}=await eB(M,L,A,T,C);if(w.signal.aborted)return;w.signal.removeEventListener("abort",U),q.delete(t),J.delete(t),T.forEach(e=>J.delete(e.key));let N=eN(j);if(N)return e_(C,N.result,!1,{preventScrollReset:c});if(N=eN(F))return X.add(N.key),e_(C,N.result,!1,{preventScrollReset:c});let{loaderData:B,errors:I}=eT(M,L,j,void 0,T,F,ee);if(M.fetchers.has(t)){let e=e0(R.data);M.fetchers.set(t,e)}e6(D),"loading"===M.navigation.state&&D>Y?(E(O,"Expected pending action"),o&&o.abort(),ea(M.navigation.location,{matches:L,loaderData:B,errors:I,fetchers:new Map(M.fetchers)})):(en({errors:I,loaderData:eU(M.loaderData,B,L,I),fetchers:new Map(M.fetchers)}),W=!1)}async function eP(t,r,n,a,o,i,l,s,u){let c=M.fetchers.get(t);eq(t,eZ(u,c?c.data:void 0),{flushSync:l});let d=new AbortController,h=ek(e.history,n,d.signal);if(i){let e=await ti(o,new URL(h.url).pathname,h.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,eF(404,{pathname:n}),{flushSync:l});a=eX(o=e.matches,n)}J.set(t,d);let f=K,p=(await eA("loader",M,h,[a],o,t))[a.route.id];if(eI(p)&&(p=await eY(p,h.signal,!0)||p),J.get(t)===d&&J.delete(t),!h.signal.aborted){if(Z.has(t))return void eq(t,e0(void 0));if(eH(p))if(Y>f)return void eq(t,e0(void 0));else{X.add(t),await e_(h,p,!1,{preventScrollReset:s});return}if(ez(p))return void e1(t,r,p.error);E(!eI(p),"Unhandled fetcher deferred data"),eq(t,e0(p.data))}}async function e_(t,r,n,a){let{submission:i,fetcherSubmission:u,preventScrollReset:d,replace:h}=void 0===a?{}:a;r.response.headers.has("X-Remix-Revalidate")&&(W=!0);let f=r.response.headers.get("Location");E(f,"Expected a Location header on the redirect Response"),f=eD(f,new URL(t.url),p);let m=x(M.location,f,{_isRedirect:!0});if(s){let t=!1;if(r.response.headers.has("X-Remix-Reload-Document"))t=!0;else if(ed.test(f)){let r=e.history.createURL(f);t=r.origin!==l.location.origin||null==N(r.pathname,p)}if(t)return void(h?l.location.replace(f):l.location.assign(f))}o=null;let y=!0===h||r.response.headers.has("X-Remix-Replace")?c.Replace:c.Push,{formMethod:g,formAction:w,formEncType:b}=M.navigation;!i&&!u&&g&&w&&b&&(i=eG(M.navigation));let S=i||u;if(el.has(r.response.status)&&S&&eV(S.formMethod))await ep(y,m,{submission:v({},S,{formAction:f}),preventScrollReset:d||F,enableViewTransition:n?B:void 0});else{let e=eQ(m,i);await ep(y,m,{overrideNavigation:e,fetcherSubmission:u,preventScrollReset:d||F,enableViewTransition:n?B:void 0})}}async function eA(e,r,n,a,o,i){let l,s={};try{l=await eC(m,e,r,n,a,o,i,h,t)}catch(e){return a.forEach(t=>{s[t.route.id]={type:d.error,error:e}}),s}for(let[e,t]of Object.entries(l)){var u;if(e$((u=t).result)&&ei.has(u.result.status)){let r=t.result;s[e]={type:d.redirect,response:function(e,t,r,n,a,o){let i=e.headers.get("Location");if(E(i,"Redirects returned/thrown from loaders/actions must have a Location header"),!ed.test(i)){let l=n.slice(0,n.findIndex(e=>e.route.id===r)+1);i=em(new URL(t.url),l,a,!0,i,o),e.headers.set("Location",i)}return e}(r,n,e,o,p,g.v7_relativeSplatPath)}}else s[e]=await eL(t)}return s}async function eB(t,r,n,a,o){let i=t.matches,l=eA("loader",t,o,n,r,null),s=Promise.all(a.map(async r=>{if(!r.matches||!r.match||!r.controller)return Promise.resolve({[r.key]:{type:d.error,error:eF(404,{pathname:r.path})}});{let n=(await eA("loader",t,ek(e.history,r.path,r.controller.signal),[r.match],r.matches,r.key))[r.match.route.id];return{[r.key]:n}}})),u=await l,c=(await s).reduce((e,t)=>Object.assign(e,t),{});return await Promise.all([eJ(r,u,o.signal,i,t.loaderData),eK(r,c,a)]),{loaderResults:u,fetcherResults:c}}function eW(){W=!0,$.push(...tr()),G.forEach((e,t)=>{J.has(t)&&V.add(t),e5(t)})}function eq(e,t,r){void 0===r&&(r={}),M.fetchers.set(e,t),en({fetchers:new Map(M.fetchers)},{flushSync:!0===(r&&r.flushSync)})}function e1(e,t,r,n){void 0===n&&(n={});let a=eM(M.matches,t);e4(e),en({errors:{[a.route.id]:r},fetchers:new Map(M.fetchers)},{flushSync:!0===(n&&n.flushSync)})}function e7(e){return Q.set(e,(Q.get(e)||0)+1),Z.has(e)&&Z.delete(e),M.fetchers.get(e)||eu}function e4(e){let t=M.fetchers.get(e);J.has(e)&&!(t&&"loading"===t.state&&q.has(e))&&e5(e),G.delete(e),q.delete(e),X.delete(e),g.v7_fetcherPersist&&Z.delete(e),V.delete(e),M.fetchers.delete(e)}function e5(e){let t=J.get(e);t&&(t.abort(),J.delete(e))}function e2(e){for(let t of e){let e=e0(e7(t).data);M.fetchers.set(t,e)}}function e3(){let e=[],t=!1;for(let r of X){let n=M.fetchers.get(r);E(n,"Expected fetcher: "+r),"loading"===n.state&&(X.delete(r),e.push(r),t=!0)}return e2(e),t}function e6(e){let t=[];for(let[r,n]of q)if(n<e){let e=M.fetchers.get(r);E(e,"Expected fetcher: "+r),"loading"===e.state&&(e5(r),q.delete(r),t.push(r))}return e2(t),t.length>0}function e8(e){M.blockers.delete(e),et.delete(e)}function e9(e,t){let r=M.blockers.get(e)||ec;E("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),en({blockers:n})}function te(e){let{currentLocation:t,nextLocation:r,historyAction:n}=e;if(0===et.size)return;et.size>1&&S(!1,"A router only supports one blocker at a time");let a=Array.from(et.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=eF(404,{pathname:e}),{matches:n,route:a}=eO(r||f);return tr(),{notFoundMatches:n,route:a,error:t}}function tr(e){let t=[];return ee.forEach((r,n)=>{(!e||e(n))&&(r.cancel(),t.push(n),ee.delete(n))}),t}function tn(e,t){return C&&C(e,t.map(e=>T(e,M.loaderData)))||e.key}function ta(e,t){if(R){let r=R[tn(e,t)];if("number"==typeof r)return r}return null}function to(e,t,r){if(y){if(!e)return{active:!0,matches:A(t,r,p,!0)||[]};else if(Object.keys(e[0].params).length>0)return{active:!0,matches:A(t,r,p,!0)}}return{active:!1,matches:null}}async function ti(e,n,a,o){if(!y)return{type:"success",matches:e};let i=e;for(;;){let e=null==r,l=r||f,s=h;try{await y({signal:a,path:n,matches:i,fetcherKey:o,patch:(e,r)=>{a.aborted||eS(e,r,l,s,t)}})}catch(e){return{type:"error",error:e,partialMatches:i}}finally{e&&!a.aborted&&(f=[...f])}if(a.aborted)return{type:"aborted"};let u=_(l,n,p);if(u)return{type:"success",matches:u};let c=A(l,n,p,!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 a={get basename(){return p},get future(){return g},get state(){return M},get routes(){return f},get window(){return l},initialize:function(){if(w=e.history.listen(t=>{let{action:r,location:n,delta:a}=t;if(i){i(),i=void 0;return}S(0===et.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=>{i=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,ec),en({blockers:e})}});return}return ep(r,n)}),s){var t=l,r=I;try{let e=t.sessionStorage.getItem(ef);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(ef,JSON.stringify(r))}catch(e){S(!1,"Failed to save applied view transitions in sessionStorage ("+e+").")}}})(l,I);l.addEventListener("pagehide",e),z=()=>l.removeEventListener("pagehide",e)}return M.initialized||ep(c.Pop,M.location,{initialHydration:!0}),a},subscribe:function(e){return b.add(e),()=>b.delete(e)},enableScrollRestoration:function(e,t,r){if(R=e,P=t,C=r||null,!L&&M.navigation===es){L=!0;let e=ta(M.location,M.matches);null!=e&&en({restoreScrollPosition:e})}return()=>{R=null,P=null,C=null}},navigate:eo,fetch:function(e,t,n,a){if(u)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.");e5(e);let o=!0===(a&&a.flushSync),i=r||f,l=em(M.location,M.matches,p,g.v7_prependBasename,n,g.v7_relativeSplatPath,t,null==a?void 0:a.relative),s=_(i,l,p),c=to(s,i,l);if(c.active&&c.matches&&(s=c.matches),!s)return void e1(e,t,eF(404,{pathname:l}),{flushSync:o});let{path:d,submission:h,error:m}=ev(g.v7_normalizeFormMethod,!0,l,a);if(m)return void e1(e,t,m,{flushSync:o});let v=eX(s,d),y=!0===(a&&a.preventScrollReset);if(h&&eV(h.formMethod))return void eR(e,t,d,v,s,c.active,o,y,h);G.set(e,{routeId:t,path:d}),eP(e,t,d,v,s,c.active,o,y,h)},revalidate:function(){if(eW(),en({revalidation:"loading"}),"submitting"!==M.navigation.state){if("idle"===M.navigation.state)return void ep(M.historyAction,M.location,{startUninterruptedRevalidation:!0});ep(O||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=(Q.get(e)||0)-1;t<=0?(Q.delete(e),Z.add(e),g.v7_fetcherPersist||e4(e)):Q.set(e,t),en({fetchers:new Map(M.fetchers)})},dispose:function(){w&&w(),z&&z(),b.clear(),o&&o.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)||ec;return et.get(e)!==t&&et.set(e,t),r},deleteBlocker:e8,patchRoutes:function(e,n){let a=null==r;eS(e,n,r||f,h,t),a&&(f=[...f],en({}))},_internalFetchControllers:J,_internalActiveDeferreds:ee,_internalSetRoutes:function(e){r=k(e,t,void 0,h={})}}}function em(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=W(a||".",H(s,o),N(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=eq(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:$([r,c.pathname])),C(c)}function ev(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,!eo.has(a.toLowerCase())))return{path:r,error:eF(405,{method:n.formMethod})};let l=()=>({path:r,error:eF(400,{type:"invalid-body"})}),s=n.formMethod||"get",u=e?s.toUpperCase():s.toLowerCase(),c=eB(r);if(void 0!==n.body){if("text/plain"===n.formEncType){if(!eV(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(!eV(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(E("function"==typeof FormData,"FormData is not available in this environment"),n.formData)o=e_(n.formData),i=n.formData;else if(n.body instanceof FormData)o=e_(n.body),i=n.body;else if(n.body instanceof URLSearchParams)i=eA(o=n.body);else if(null==n.body)o=new URLSearchParams,i=new FormData;else try{o=new URLSearchParams(n.body),i=eA(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(eV(d.formMethod))return{path:r,submission:d};let h=P(r);return t&&h.search&&eq(h.search)&&o.append("index",""),h.search="?"+o,{path:C(h),submission:d}}function ey(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 eg(e,t,r,n,a,o,i,l,s,u,c,d,h,f,p,m){let y=m?ez(m[1])?m[1].error:m[1].data:void 0,g=e.createURL(t.location),w=e.createURL(a),b=r;o&&t.errors?b=ey(r,Object.keys(t.errors)[0],!0):m&&ez(m[1])&&(b=ey(r,m[0]));let E=m?m[1].statusCode:void 0,S=i&&E&&E>=400,R=b.filter((e,r)=>{var a,i,u;let c,d,{route:h}=e;if(h.lazy)return!0;if(null==h.loader)return!1;if(o)return ew(h,t.loaderData,t.errors);if(a=t.loaderData,i=t.matches[r],u=e,c=!i||u.route.id!==i.route.id,d=void 0===a[u.route.id],c||d||s.some(t=>t===e.route.id))return!0;let f=t.matches[r];return eE(e,v({currentUrl:g,currentParams:f.params,nextUrl:w,nextParams:e.params},n,{actionResult:y,actionStatus:E,defaultShouldRevalidate:!S&&(l||g.pathname+g.search===w.pathname+w.search||g.search!==w.search||eb(f,e))}))}),x=[];return d.forEach((e,a)=>{if(o||!r.some(t=>t.route.id===e.routeId)||c.has(a))return;let i=_(f,e.path,p);if(!i)return void x.push({key:a,routeId:e.routeId,path:e.path,matches:null,match:null,controller:null});let s=t.fetchers.get(a),d=eX(i,e.path),m=!1;h.has(a)?m=!1:u.has(a)?(u.delete(a),m=!0):m=s&&"idle"!==s.state&&void 0===s.data?l:eE(d,v({currentUrl:g,currentParams:t.matches[t.matches.length-1].params,nextUrl:w,nextParams:r[r.length-1].params},n,{actionResult:y,actionStatus:E,defaultShouldRevalidate:!S&&l})),m&&x.push({key:a,routeId:e.routeId,path:e.path,matches:i,match:d,controller:new AbortController})}),[R,x]}function ew(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 eb(e,t){let r=e.route.path;return e.pathname!==t.pathname||null!=r&&r.endsWith("*")&&e.params["*"]!==t.params["*"]}function eE(e,t){if(e.route.shouldRevalidate){let r=e.route.shouldRevalidate(t);if("boolean"==typeof r)return r}return t.defaultShouldRevalidate}function eS(e,t,r,n,a){var o;let i;if(e){let t=n[e];E(t,"No route found to patch children into: routeId = "+e),t.children||(t.children=[]),i=t.children}else i=r;let l=k(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 eR(e,t,r){if(!e.lazy)return;let n=await e.lazy();if(!e.lazy)return;let a=r[e.id];E(a,"No route found in manifest");let o={};for(let e in n){let t=void 0!==a[e]&&"hasErrorBoundary"!==e;S(!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||D.has(e)||(o[e]=n[e])}Object.assign(a,o),Object.assign(a,v({},t(a),{lazy:void 0}))}async function ex(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 eC(e,t,r,n,a,o,i,l,s,u){let c=o.map(e=>e.route.lazy?eR(e.route,s,l):void 0),h=o.map((e,r)=>{let o=c[r],i=a.some(t=>t.route.id===e.route.id),l=async r=>(r&&"GET"===n.method&&(e.route.lazy||e.route.loader)&&(i=!0),i?eP(t,n,e,o,r,u):Promise.resolve({type:d.data,result:void 0}));return v({},e,{shouldLoad:i,resolve:l})}),f=await e({matches:h,request:n,params:o[0].params,fetcherKey:i,context:u});try{await Promise.all(c)}catch(e){}return f}async function eP(e,t,r,n,a,o){let i,l,s=n=>{let i,s=new Promise((e,t)=>i=t);l=()=>i(),t.signal.addEventListener("abort",l);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:o},...void 0!==a?[a]:[]);return Promise.race([(async()=>{try{let e=await (a?a(e=>u(e)):u());return{type:"data",result:e}}catch(e){return{type:"error",result:e}}})(),s])};try{let a=r.route[e];if(n)if(a){let e,[t]=await Promise.all([s(a).catch(t=>{e=t}),n]);if(void 0!==e)throw e;i=t}else if(await n,a=r.route[e])i=await s(a);else{if("action"!==e)return{type:d.data,result:void 0};let n=new URL(t.url),a=n.pathname+n.search;throw eF(405,{method:t.method,pathname:a,routeId:r.route.id})}else if(a)i=await s(a);else{let e=new URL(t.url),r=e.pathname+e.search;throw eF(404,{pathname:r})}E(void 0!==i.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:d.error,result:e}}finally{l&&t.signal.removeEventListener("abort",l)}return i}async function eL(e){var t,r,n,a,o,i,l,s,u;let{result:c,type:h}=e;if(e$(c)){let e;try{let t=c.headers.get("Content-Type");e=t&&/\bapplication\/json\b/.test(t)?null==c.body?null:await c.json():await c.text()}catch(e){return{type:d.error,error:e}}return h===d.error?{type:d.error,error:new et(c.status,c.statusText,e),statusCode:c.status,headers:c.headers}:{type:d.data,data:e,statusCode:c.status,headers:c.headers}}if(h===d.error)return eW(c)?c.data instanceof Error?{type:d.error,error:c.data,statusCode:null==(n=c.init)?void 0:n.status,headers:null!=(a=c.init)&&a.headers?new Headers(c.init.headers):void 0}:{type:d.error,error:new et((null==(t=c.init)?void 0:t.status)||500,void 0,c.data),statusCode:er(c)?c.status:void 0,headers:null!=(r=c.init)&&r.headers?new Headers(c.init.headers):void 0}:{type:d.error,error:c,statusCode:er(c)?c.status:void 0};return(u=c)&&"object"==typeof u&&"object"==typeof u.data&&"function"==typeof u.subscribe&&"function"==typeof u.cancel&&"function"==typeof u.resolveData?{type:d.deferred,deferredData:c,statusCode:null==(o=c.init)?void 0:o.status,headers:(null==(i=c.init)?void 0:i.headers)&&new Headers(c.init.headers)}:eW(c)?{type:d.data,data:c.data,statusCode:null==(l=c.init)?void 0:l.status,headers:null!=(s=c.init)&&s.headers?new Headers(c.init.headers):void 0}:{type:d.data,data:c}}function eD(e,t,r){if(ed.test(e)){let n=new URL(e.startsWith("//")?t.protocol+e:e),a=null!=N(n.pathname,r);if(n.origin===t.origin&&a)return n.pathname+n.search+n.hash}return e}function ek(e,t,r,n){let a=e.createURL(eB(t)).toString(),o={signal:r};if(n&&eV(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=e_(n.formData):o.body=n.formData}return new Request(a,o)}function e_(e){let t=new URLSearchParams;for(let[r,n]of e.entries())t.append(r,"string"==typeof n?n:n.name);return t}function eA(e){let t=new FormData;for(let[r,n]of e.entries())t.append(r,n);return t}function eT(e,t,r,n,a,o,i){let l,s,u,c,d,h,{loaderData:f,errors:p}=(s={},u=null,c=!1,d={},h=n&&ez(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(E(!eH(a),"Cannot handle redirect results in processLoaderData"),ez(a)){let e=a.error;void 0!==h&&(e=h,h=void 0),u=u||{},1;{let r=eM(t,n);null==u[r.route.id]&&(u[r.route.id]=e)}s[n]=void 0,c||(c=!0,l=er(a.error)?a.error.status:500),a.headers&&(d[n]=a.headers)}else eI(a)?(i.set(n,a.deferredData),s[n]=a.deferredData.data,null==a.statusCode||200===a.statusCode||c||(l=a.statusCode)):(s[n]=a.data,a.statusCode&&200!==a.statusCode&&!c&&(l=a.statusCode)),a.headers&&(d[n]=a.headers)}),void 0!==h&&n&&(u={[n[0]]:h},s[n[0]]=void 0),{loaderData:s,errors:u,statusCode:l||200,loaderHeaders:d});return a.forEach(t=>{let{key:r,match:n,controller:a}=t,i=o[r];if(E(i,"Did not find corresponding fetcher result"),!a||!a.signal.aborted)if(ez(i)){let t=eM(e.matches,null==n?void 0:n.route.id);p&&p[t.route.id]||(p=v({},p,{[t.route.id]:i.error})),e.fetchers.delete(r)}else if(eH(i))E(!1,"Unhandled fetcher revalidation redirect");else if(eI(i))E(!1,"Unhandled fetcher deferred data");else{let t=e0(i.data);e.fetchers.set(r,t)}}),{loaderData:f,errors:p}}function eU(e,t,r,n){let a=v({},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 ej(e){return e?ez(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function eM(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 eO(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 eF(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 et(e||500,l,Error(s),!0)}function eN(e){let t=Object.entries(e);for(let e=t.length-1;e>=0;e--){let[r,n]=t[e];if(eH(n))return{key:r,result:n}}}function eB(e){let t="string"==typeof e?P(e):e;return C(v({},t,{hash:""}))}function eI(e){return e.type===d.deferred}function ez(e){return e.type===d.error}function eH(e){return(e&&e.type)===d.redirect}function eW(e){return"object"==typeof e&&null!=e&&"type"in e&&"data"in e&&"init"in e&&"DataWithResponseInit"===e.type}function e$(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"object"==typeof e.headers&&void 0!==e.body}function eV(e){return ea.has(e.toLowerCase())}async function eJ(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&&!eb(c,u)&&(a&&a[u.route.id])!==void 0;eI(s)&&d&&await eY(s,r,!1).then(e=>{e&&(t[l]=e)})}}async function eK(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)&&eI(l)&&(E(i,"Expected an AbortController for revalidating fetcher deferred result"),await eY(l,i.signal,!0).then(e=>{e&&(t[a]=e)}))}}async function eY(e,t,r){if(void 0===r&&(r=!1),!await e.deferredData.resolveData(t)){if(r)try{return{type:d.data,data:e.deferredData.unwrappedData}}catch(e){return{type:d.error,error:e}}return{type:d.data,data:e.deferredData.data}}}function eq(e){return new URLSearchParams(e).getAll("index").some(e=>""===e)}function eX(e,t){let r="string"==typeof t?P(t).search:t.search;if(e[e.length-1].route.index&&eq(r||""))return e[e.length-1];let n=z(e);return n[n.length-1]}function eG(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 eQ(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 e0(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function e1(){return(e1=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)}Symbol("deferred");let e7=p.createContext(null),e4=p.createContext(null),e5=p.createContext(null),e2=p.createContext(null),e3=p.createContext(null),e6=p.createContext({outlet:null,matches:[],isDataRoute:!1}),e8=p.createContext(null);function e9(e,t){let{relative:r}=void 0===t?{}:t;te()||E(!1);let{basename:n,navigator:a}=p.useContext(e2),{hash:o,pathname:i,search:l}=tc(e,{relative:r}),s=i;return"/"!==n&&(s="/"===i?n:$([n,i])),a.createHref({pathname:s,search:l,hash:o})}function te(){return null!=p.useContext(e3)}function tt(){return te()||E(!1),p.useContext(e3).location}function tr(){return p.useContext(e3).navigationType}function tn(e){te()||E(!1);let{pathname:t}=tt();return p.useMemo(()=>O(e,F(t)),[t,e])}function ta(e){p.useContext(e2).static||p.useLayoutEffect(e)}function to(){let{isDataRoute:e}=p.useContext(e6);return e?function(){let{router:e}=tw(ty.UseNavigateStable),t=tE(tg.UseNavigateStable),r=p.useRef(!1);return ta(()=>{r.current=!0}),p.useCallback(function(n,a){void 0===a&&(a={}),r.current&&("number"==typeof n?e.navigate(n):e.navigate(n,e1({fromRouteId:t},a)))},[e,t])}():function(){te()||E(!1);let e=p.useContext(e7),{basename:t,future:r,navigator:n}=p.useContext(e2),{matches:a}=p.useContext(e6),{pathname:o}=tt(),i=JSON.stringify(H(a,r.v7_relativeSplatPath)),l=p.useRef(!1);return ta(()=>{l.current=!0}),p.useCallback(function(r,a){if(void 0===a&&(a={}),!l.current)return;if("number"==typeof r)return void n.go(r);let s=W(r,JSON.parse(i),o,"path"===a.relative);null==e&&"/"!==t&&(s.pathname="/"===s.pathname?t:$([t,s.pathname])),(a.replace?n.replace:n.push)(s,a.state,a)},[t,n,i,o,e])}()}let ti=p.createContext(null);function tl(){return p.useContext(ti)}function ts(e){let t=p.useContext(e6).outlet;return t?p.createElement(ti.Provider,{value:e},t):t}function tu(){let{matches:e}=p.useContext(e6),t=e[e.length-1];return t?t.params:{}}function tc(e,t){let{relative:r}=void 0===t?{}:t,{future:n}=p.useContext(e2),{matches:a}=p.useContext(e6),{pathname:o}=tt(),i=JSON.stringify(H(a,n.v7_relativeSplatPath));return p.useMemo(()=>W(e,JSON.parse(i),o,"path"===r),[e,i,o,r])}function td(e,t){return th(e,t)}function th(e,t,r,n){let a;te()||E(!1);let{navigator:o,static:i}=p.useContext(e2),{matches:l}=p.useContext(e6),s=l[l.length-1],u=s?s.params:{};s&&s.pathname;let d=s?s.pathnameBase:"/";s&&s.route;let h=tt();if(t){var f;let e="string"==typeof t?P(t):t;"/"===d||(null==(f=e.pathname)?void 0:f.startsWith(d))||E(!1),a=e}else a=h;let m=a.pathname||"/",v=m;if("/"!==d){let e=d.replace(/^\//,"").split("/");v="/"+m.replace(/^\//,"").split("/").slice(e.length).join("/")}let y=!i&&r&&r.matches&&r.matches.length>0?r.matches:_(e,{pathname:v}),g=tv(y&&y.map(e=>Object.assign({},e,{params:Object.assign({},u,e.params),pathname:$([d,o.encodeLocation?o.encodeLocation(e.pathname).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?d:$([d,o.encodeLocation?o.encodeLocation(e.pathnameBase).pathname:e.pathnameBase])})),l,r,n);return t&&g?p.createElement(e3.Provider,{value:{location:e1({pathname:"/",search:"",hash:"",state:null,key:"default"},a),navigationType:c.Pop}},g):g}let tf=p.createElement(function(){let e=tk(),t=er(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null;return p.createElement(p.Fragment,null,p.createElement("h2",null,"Unexpected Application Error!"),p.createElement("h3",{style:{fontStyle:"italic"}},t),r?p.createElement("pre",{style:{padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"}},r):null,null)},null);class tp extends p.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?p.createElement(e6.Provider,{value:this.props.routeContext},p.createElement(e8.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function tm(e){let{routeContext:t,match:r,children:n}=e,a=p.useContext(e7);return a&&a.static&&a.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(a.staticContext._deepestRenderedBoundaryId=r.route.id),p.createElement(e6.Provider,{value:t},n)}function tv(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 i=e,l=null==(a=r)?void 0:a.errors;if(null!=l){let e=i.findIndex(e=>e.route.id&&(null==l?void 0:l[e.route.id])!==void 0);e>=0||E(!1),i=i.slice(0,Math.min(i.length,e+1))}let s=!1,u=-1;if(r&&n&&n.v7_partialHydration)for(let e=0;e<i.length;e++){let t=i[e];if((t.route.HydrateFallback||t.route.hydrateFallbackElement)&&(u=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){s=!0,i=u>=0?i.slice(0,u+1):[i[0]];break}}}return i.reduceRight((e,n,a)=>{var o;let c,d=!1,h=null,f=null;r&&(c=l&&n.route.id?l[n.route.id]:void 0,h=n.route.errorElement||tf,s&&(u<0&&0===a?(o="route-fallback",tj[o]||(tj[o]=!0),d=!0,f=null):u===a&&(d=!0,f=n.route.hydrateFallbackElement||null)));let m=t.concat(i.slice(0,a+1)),v=()=>{let t;return t=c?h:d?f:n.route.Component?p.createElement(n.route.Component,null):n.route.element?n.route.element:e,p.createElement(tm,{match:n,routeContext:{outlet:e,matches:m,isDataRoute:null!=r},children:t})};return r&&(n.route.ErrorBoundary||n.route.errorElement||0===a)?p.createElement(tp,{location:r.location,revalidation:r.revalidation,component:h,error:c,children:v(),routeContext:{outlet:null,matches:m,isDataRoute:!0}}):v()},null)}var ty=((o=ty||{}).UseBlocker="useBlocker",o.UseRevalidator="useRevalidator",o.UseNavigateStable="useNavigate",o),tg=((i=tg||{}).UseBlocker="useBlocker",i.UseLoaderData="useLoaderData",i.UseActionData="useActionData",i.UseRouteError="useRouteError",i.UseNavigation="useNavigation",i.UseRouteLoaderData="useRouteLoaderData",i.UseMatches="useMatches",i.UseRevalidator="useRevalidator",i.UseNavigateStable="useNavigate",i.UseRouteId="useRouteId",i);function tw(e){let t=p.useContext(e7);return t||E(!1),t}function tb(e){let t=p.useContext(e4);return t||E(!1),t}function tE(e){let t,r=((t=p.useContext(e6))||E(!1),t),n=r.matches[r.matches.length-1];return n.route.id||E(!1),n.route.id}function tS(){return tE(tg.UseRouteId)}function tR(){return tb(tg.UseNavigation).navigation}function tx(){let e=tw(ty.UseRevalidator),t=tb(tg.UseRevalidator);return p.useMemo(()=>({revalidate:e.router.revalidate,state:t.revalidation}),[e.router.revalidate,t.revalidation])}function tC(){let{matches:e,loaderData:t}=tb(tg.UseMatches);return p.useMemo(()=>e.map(e=>T(e,t)),[e,t])}function tP(){let e=tb(tg.UseLoaderData),t=tE(tg.UseLoaderData);return e.errors&&null!=e.errors[t]?void console.error("You cannot `useLoaderData` in an errorElement (routeId: "+t+")"):e.loaderData[t]}function tL(e){return tb(tg.UseRouteLoaderData).loaderData[e]}function tD(){let e=tb(tg.UseActionData),t=tE(tg.UseLoaderData);return e.actionData?e.actionData[t]:void 0}function tk(){var e;let t=p.useContext(e8),r=tb(tg.UseRouteError),n=tE(tg.UseRouteError);return void 0!==t?t:null==(e=r.errors)?void 0:e[n]}function t_(){let e=p.useContext(e5);return null==e?void 0:e._data}function tA(){let e=p.useContext(e5);return null==e?void 0:e._error}let tT=0;function tU(e){let{router:t,basename:r}=tw(ty.UseBlocker),n=tb(tg.UseBlocker),[a,o]=p.useState(""),i=p.useCallback(t=>{if("function"!=typeof e)return!!e;if("/"===r)return e(t);let{currentLocation:n,nextLocation:a,historyAction:o}=t;return e({currentLocation:e1({},n,{pathname:N(n.pathname,r)||n.pathname}),nextLocation:e1({},a,{pathname:N(a.pathname,r)||a.pathname}),historyAction:o})},[r,e]);return p.useEffect(()=>{let e=String(++tT);return o(e),()=>t.deleteBlocker(e)},[t]),p.useEffect(()=>{""!==a&&t.getBlocker(a,i)},[t,a,i]),a&&n.blockers.has(a)?n.blockers.get(a):ec}let tj={},tM=(e,t,r)=>{};function tO(e,t){(null==e?void 0:e.v7_startTransition)===void 0&&tM("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||tM("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&&tM("v7_fetcherPersist","The persistence behavior of fetchers is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_fetcherpersist"),void 0===t.v7_normalizeFormMethod&&tM("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&&tM("v7_partialHydration","`RouterProvider` hydration behavior is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_partialhydration"),void 0===t.v7_skipActionErrorRevalidation&&tM("v7_skipActionErrorRevalidation","The revalidation behavior after 4xx/5xx `action` responses is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_skipactionerrorrevalidation"))}let tF=p.startTransition;function tN(e){let{basename:t,children:r,initialEntries:n,initialIndex:a,future:o}=e,i=p.useRef();null==i.current&&(i.current=g({initialEntries:n,initialIndex:a,v5Compat:!0}));let l=i.current,[s,u]=p.useState({action:l.action,location:l.location}),{v7_startTransition:c}=o||{},d=p.useCallback(e=>{c&&tF?tF(()=>u(e)):u(e)},[u,c]);return p.useLayoutEffect(()=>l.listen(d),[l,d]),p.useEffect(()=>tO(o),[o]),p.createElement(tH,{basename:t,children:r,location:s.location,navigationType:s.action,navigator:l,future:o})}function tB(e){let{to:t,replace:r,state:n,relative:a}=e;te()||E(!1);let{future:o,static:i}=p.useContext(e2),{matches:l}=p.useContext(e6),{pathname:s}=tt(),u=to(),c=JSON.stringify(W(t,H(l,o.v7_relativeSplatPath),s,"path"===a));return p.useEffect(()=>u(JSON.parse(c),{replace:r,state:n,relative:a}),[u,c,a,r,n]),null}function tI(e){return ts(e.context)}function tz(e){E(!1)}function tH(e){let{basename:t="/",children:r=null,location:n,navigationType:a=c.Pop,navigator:o,static:i=!1,future:l}=e;te()&&E(!1);let s=t.replace(/^\/*/,"/"),u=p.useMemo(()=>({basename:s,navigator:o,static:i,future:e1({v7_relativeSplatPath:!1},l)}),[s,l,o,i]);"string"==typeof n&&(n=P(n));let{pathname:d="/",search:h="",hash:f="",state:m=null,key:v="default"}=n,y=p.useMemo(()=>{let e=N(d,s);return null==e?null:{location:{pathname:e,search:h,hash:f,state:m,key:v},navigationType:a}},[s,d,h,f,m,v,a]);return null==y?null:p.createElement(e2.Provider,{value:u},p.createElement(e3.Provider,{children:r,value:y}))}function tW(e){let{children:t,location:r}=e;return th(tq(t),r)}function t$(e){let{children:t,errorElement:r,resolve:n}=e;return p.createElement(tK,{resolve:n,errorElement:r},p.createElement(tY,null,t))}var tV=((l=tV||{})[l.pending=0]="pending",l[l.success=1]="success",l[l.error=2]="error",l);let tJ=new Promise(()=>{});class tK extends p.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=tV.pending;if(r instanceof Promise)if(this.state.error){a=tV.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)?tV.error:"_data"in n?tV.success:tV.pending:(a=tV.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=tV.success,Object.defineProperty(n=Promise.resolve(),"_tracked",{get:()=>!0}),Object.defineProperty(n,"_data",{get:()=>r});if(a===tV.error&&n._error instanceof q)throw tJ;if(a===tV.error&&!t)throw n._error;if(a===tV.error)return p.createElement(e5.Provider,{value:n,children:t});if(a===tV.success)return p.createElement(e5.Provider,{value:n,children:e});throw n}}function tY(e){let{children:t}=e,r=t_(),n="function"==typeof t?t(r):t;return p.createElement(p.Fragment,null,n)}function tq(e,t){void 0===t&&(t=[]);let r=[];return p.Children.forEach(e,(e,n)=>{if(!p.isValidElement(e))return;let a=[...t,n];if(e.type===p.Fragment)return void r.push.apply(r,tq(e.props.children,a));e.type!==tz&&E(!1),e.props.index&&e.props.children&&E(!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=tq(e.props.children,a)),r.push(o)}),r}function tX(e){return tv(e)}function tG(e){let t={hasErrorBoundary:null!=e.ErrorBoundary||null!=e.errorElement};return e.Component&&Object.assign(t,{element:p.createElement(e.Component),Component:void 0}),e.HydrateFallback&&Object.assign(t,{hydrateFallbackElement:p.createElement(e.HydrateFallback),HydrateFallback:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:p.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}function tQ(e,t){return ep({basename:null==t?void 0:t.basename,future:e1({},null==t?void 0:t.future,{v7_prependBasename:!0}),history:g({initialEntries:null==t?void 0:t.initialEntries,initialIndex:null==t?void 0:t.initialIndex}),hydrationData:null==t?void 0:t.hydrationData,routes:e,mapRouteProperties:tG,dataStrategy:null==t?void 0:t.dataStrategy,patchRoutesOnNavigation:null==t?void 0:t.patchRoutesOnNavigation}).initialize()}function tZ(){return(tZ=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 t0(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 t1="application/x-www-form-urlencoded";function t7(e){return null!=e&&"string"==typeof e.tagName}function t4(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 t5=null,t2=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function t3(e){return null==e||t2.has(e)?e:null}let t6=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],t8=["aria-current","caseSensitive","className","end","style","to","viewTransition","children"],t9=["fetcherKey","navigate","reloadDocument","replace","state","method","action","onSubmit","relative","preventScrollReset","viewTransition"];try{window.__reactRouterVersion="6"}catch(e){}function re(e,t){return ep({basename:null==t?void 0:t.basename,future:tZ({},null==t?void 0:t.future,{v7_prependBasename:!0}),history:w({window:null==t?void 0:t.window}),hydrationData:(null==t?void 0:t.hydrationData)||rr(),routes:e,mapRouteProperties:tG,dataStrategy:null==t?void 0:t.dataStrategy,patchRoutesOnNavigation:null==t?void 0:t.patchRoutesOnNavigation,window:null==t?void 0:t.window}).initialize()}function rt(e,t){return ep({basename:null==t?void 0:t.basename,future:tZ({},null==t?void 0:t.future,{v7_prependBasename:!0}),history:b({window:null==t?void 0:t.window}),hydrationData:(null==t?void 0:t.hydrationData)||rr(),routes:e,mapRouteProperties:tG,dataStrategy:null==t?void 0:t.dataStrategy,patchRoutesOnNavigation:null==t?void 0:t.patchRoutesOnNavigation,window:null==t?void 0:t.window}).initialize()}function rr(){var e;let t=null==(e=window)?void 0:e.__staticRouterHydrationData;return t&&t.errors&&(t=tZ({},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 et(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 rn=p.createContext({isTransitioning:!1}),ra=p.createContext(new Map),ro=p.startTransition,ri=m.flushSync,rl=p.useId;function rs(e){ri?ri(e):e()}class ru{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 rc(e){let{fallbackElement:t,router:r,future:n}=e,[a,o]=p.useState(r.state),[i,l]=p.useState(),[s,u]=p.useState({isTransitioning:!1}),[c,d]=p.useState(),[h,f]=p.useState(),[m,v]=p.useState(),y=p.useRef(new Map),{v7_startTransition:g}=n||{},w=p.useCallback(e=>{if(g)ro?ro(e):e();else e()},[g]),b=p.useCallback((e,t)=>{let{deletedFetchers:n,flushSync:a,viewTransitionOpts:i}=t;e.fetchers.forEach((e,t)=>{void 0!==e.data&&y.current.set(t,e.data)}),n.forEach(e=>y.current.delete(e));let s=null==r.window||null==r.window.document||"function"!=typeof r.window.document.startViewTransition;if(!i||s)return void(a?rs(()=>o(e)):w(()=>o(e)));if(a){rs(()=>{h&&(c&&c.resolve(),h.skipTransition()),u({isTransitioning:!0,flushSync:!0,currentLocation:i.currentLocation,nextLocation:i.nextLocation})});let t=r.window.document.startViewTransition(()=>{rs(()=>o(e))});t.finished.finally(()=>{rs(()=>{d(void 0),f(void 0),l(void 0),u({isTransitioning:!1})})}),rs(()=>f(t));return}h?(c&&c.resolve(),h.skipTransition(),v({state:e,currentLocation:i.currentLocation,nextLocation:i.nextLocation})):(l(e),u({isTransitioning:!0,flushSync:!1,currentLocation:i.currentLocation,nextLocation:i.nextLocation}))},[r.window,h,c,y,w]);p.useLayoutEffect(()=>r.subscribe(b),[r,b]),p.useEffect(()=>{s.isTransitioning&&!s.flushSync&&d(new ru)},[s]),p.useEffect(()=>{if(c&&i&&r.window){let e=c.promise,t=r.window.document.startViewTransition(async()=>{w(()=>o(i)),await e});t.finished.finally(()=>{d(void 0),f(void 0),l(void 0),u({isTransitioning:!1})}),f(t)}},[w,i,c,r.window]),p.useEffect(()=>{c&&i&&a.location.key===i.location.key&&c.resolve()},[c,h,a.location,i]),p.useEffect(()=>{!s.isTransitioning&&m&&(l(m.state),u({isTransitioning:!0,flushSync:!1,currentLocation:m.currentLocation,nextLocation:m.nextLocation}),v(void 0))},[s.isTransitioning,m]),p.useEffect(()=>{},[]);let E=p.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]),S=r.basename||"/",R=p.useMemo(()=>({router:r,navigator:E,static:!1,basename:S}),[r,E,S]),x=p.useMemo(()=>({v7_relativeSplatPath:r.future.v7_relativeSplatPath}),[r.future.v7_relativeSplatPath]);return p.useEffect(()=>tO(n,r.future),[n,r.future]),p.createElement(p.Fragment,null,p.createElement(e7.Provider,{value:R},p.createElement(e4.Provider,{value:a},p.createElement(ra.Provider,{value:y.current},p.createElement(rn.Provider,{value:s},p.createElement(tH,{basename:S,location:a.location,navigationType:a.historyAction,navigator:E,future:x},a.initialized||r.future.v7_partialHydration?p.createElement(rd,{routes:r.routes,future:r.future,state:a}):t))))),null)}let rd=p.memo(function(e){let{routes:t,future:r,state:n}=e;return th(t,void 0,n,r)});function rh(e){let{basename:t,children:r,future:n,window:a}=e,o=p.useRef();null==o.current&&(o.current=w({window:a,v5Compat:!0}));let i=o.current,[l,s]=p.useState({action:i.action,location:i.location}),{v7_startTransition:u}=n||{},c=p.useCallback(e=>{u&&ro?ro(()=>s(e)):s(e)},[s,u]);return p.useLayoutEffect(()=>i.listen(c),[i,c]),p.useEffect(()=>tO(n),[n]),p.createElement(tH,{basename:t,children:r,location:l.location,navigationType:l.action,navigator:i,future:n})}function rf(e){let{basename:t,children:r,future:n,window:a}=e,o=p.useRef();null==o.current&&(o.current=b({window:a,v5Compat:!0}));let i=o.current,[l,s]=p.useState({action:i.action,location:i.location}),{v7_startTransition:u}=n||{},c=p.useCallback(e=>{u&&ro?ro(()=>s(e)):s(e)},[s,u]);return p.useLayoutEffect(()=>i.listen(c),[i,c]),p.useEffect(()=>tO(n),[n]),p.createElement(tH,{basename:t,children:r,location:l.location,navigationType:l.action,navigator:i,future:n})}function rp(e){let{basename:t,children:r,future:n,history:a}=e,[o,i]=p.useState({action:a.action,location:a.location}),{v7_startTransition:l}=n||{},s=p.useCallback(e=>{l&&ro?ro(()=>i(e)):i(e)},[i,l]);return p.useLayoutEffect(()=>a.listen(s),[a,s]),p.useEffect(()=>tO(n),[n]),p.createElement(tH,{basename:t,children:r,location:o.location,navigationType:o.action,navigator:a,future:n})}let rm="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement,rv=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,ry=p.forwardRef(function(e,t){let r,{onClick:n,relative:a,reloadDocument:o,replace:i,state:l,target:s,to:u,preventScrollReset:c,viewTransition:d}=e,h=t0(e,t6),{basename:f}=p.useContext(e2),m=!1;if("string"==typeof u&&rv.test(u)&&(r=u,rm))try{let e=new URL(window.location.href),t=new URL(u.startsWith("//")?e.protocol+u:u),r=N(t.pathname,f);t.origin===e.origin&&null!=r?u=r+t.search+t.hash:m=!0}catch(e){}let v=e9(u,{relative:a}),y=rR(u,{replace:i,state:l,target:s,preventScrollReset:c,relative:a,viewTransition:d});return p.createElement("a",tZ({},h,{href:r||v,onClick:m||o?n:function(e){n&&n(e),e.defaultPrevented||y(e)},ref:t,target:s}))}),rg=p.forwardRef(function(e,t){let r,{"aria-current":n="page",caseSensitive:a=!1,className:o="",end:i=!1,style:l,to:s,viewTransition:u,children:c}=e,d=t0(e,t8),h=tc(s,{relative:d.relative}),f=tt(),m=p.useContext(e4),{navigator:v,basename:y}=p.useContext(e2),g=null!=m&&rO(h)&&!0===u,w=v.encodeLocation?v.encodeLocation(h).pathname:h.pathname,b=f.pathname,E=m&&m.navigation&&m.navigation.location?m.navigation.location.pathname:null;a||(b=b.toLowerCase(),E=E?E.toLowerCase():null,w=w.toLowerCase()),E&&y&&(E=N(E,y)||E);let S="/"!==w&&w.endsWith("/")?w.length-1:w.length,R=b===w||!i&&b.startsWith(w)&&"/"===b.charAt(S),x=null!=E&&(E===w||!i&&E.startsWith(w)&&"/"===E.charAt(w.length)),C={isActive:R,isPending:x,isTransitioning:g},P=R?n:void 0;r="function"==typeof o?o(C):[o,R?"active":null,x?"pending":null,g?"transitioning":null].filter(Boolean).join(" ");let L="function"==typeof l?l(C):l;return p.createElement(ry,tZ({},d,{"aria-current":P,className:r,ref:t,style:L,to:s,viewTransition:u}),"function"==typeof c?c(C):c)}),rw=p.forwardRef((e,t)=>{let{fetcherKey:r,navigate:n,reloadDocument:a,replace:o,state:i,method:l="get",action:s,onSubmit:u,relative:c,preventScrollReset:d,viewTransition:h}=e,f=t0(e,t9),m=rL(),v=rD(s,{relative:c}),y="get"===l.toLowerCase()?"get":"post";return p.createElement("form",tZ({ref:t,method:y,action:v,onSubmit:a?u:e=>{if(u&&u(e),e.defaultPrevented)return;e.preventDefault();let t=e.nativeEvent.submitter,a=(null==t?void 0:t.getAttribute("formmethod"))||l;m(t||e.currentTarget,{fetcherKey:r,method:a,navigate:n,replace:o,state:i,relative:c,preventScrollReset:d,viewTransition:h})}},f))});function rb(e){let{getKey:t,storageKey:r}=e;return rU({getKey:t,storageKey:r}),null}function rE(e){let t=p.useContext(e7);return t||E(!1),t}function rS(e){let t=p.useContext(e4);return t||E(!1),t}function rR(e,t){let{target:r,replace:n,state:a,preventScrollReset:o,relative:i,viewTransition:l}=void 0===t?{}:t,s=to(),u=tt(),c=tc(e,{relative:i});return p.useCallback(t=>{0!==t.button||r&&"_self"!==r||t.metaKey||t.altKey||t.ctrlKey||t.shiftKey||(t.preventDefault(),s(e,{replace:void 0!==n?n:C(u)===C(c),state:a,preventScrollReset:o,relative:i,viewTransition:l}))},[u,s,c,n,a,r,e,o,i,l])}function rx(e){let t=p.useRef(t4(e)),r=p.useRef(!1),n=tt(),a=p.useMemo(()=>{var e,a;let o;return e=n.search,a=r.current?null:t.current,o=t4(e),a&&a.forEach((e,t)=>{o.has(t)||a.getAll(t).forEach(e=>{o.append(t,e)})}),o},[n.search]),o=to(),i=p.useCallback((e,t)=>{let n=t4("function"==typeof e?e(a):e);r.current=!0,o("?"+n,t)},[o,a]);return[a,i]}(s=h||(h={})).UseScrollRestoration="useScrollRestoration",s.UseSubmit="useSubmit",s.UseSubmitFetcher="useSubmitFetcher",s.UseFetcher="useFetcher",s.useViewTransitionState="useViewTransitionState",(u=f||(f={})).UseFetcher="useFetcher",u.UseFetchers="useFetchers",u.UseScrollRestoration="useScrollRestoration";let rC=0,rP=()=>"__"+String(++rC)+"__";function rL(){let{router:e}=rE(h.UseSubmit),{basename:t}=p.useContext(e2),r=tS();return p.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(t7(e)&&"form"===e.tagName.toLowerCase()){let i=e.getAttribute("action");n=i?N(i,t):null,r=e.getAttribute("method")||"get",a=t3(e.getAttribute("enctype"))||t1,o=new FormData(e)}else if(t7(e)&&"button"===e.tagName.toLowerCase()||t7(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?N(l,t):null,r=e.getAttribute("formmethod")||i.getAttribute("method")||"get",a=t3(e.getAttribute("formenctype"))||t3(i.getAttribute("enctype"))||t1,o=new FormData(i,e),!function(){if(null===t5)try{new FormData(document.createElement("form"),0),t5=!1}catch(e){t5=!0}return t5}()){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(t7(e))throw Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');else r="get",n=null,a=t1,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||rP();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 rD(e,t){let{relative:r}=void 0===t?{}:t,{basename:n}=p.useContext(e2),a=p.useContext(e6);a||E(!1);let[o]=a.matches.slice(-1),i=tZ({},tc(e||".",{relative:r})),l=tt();if(null==e){i.search=l.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:$([n,i.pathname])),C(i)}function rk(e){var t;let{key:r}=void 0===e?{}:e,{router:n}=rE(h.UseFetcher),a=rS(f.UseFetcher),o=p.useContext(ra),i=p.useContext(e6),l=null==(t=i.matches[i.matches.length-1])?void 0:t.route.id;o||E(!1),i||E(!1),null==l&&E(!1);let s=rl?rl():"",[u,c]=p.useState(r||s);r&&r!==u?c(r):u||c(rP()),p.useEffect(()=>(n.getFetcher(u),()=>{n.deleteFetcher(u)}),[n,u]);let d=p.useCallback((e,t)=>{l||E(!1),n.fetch(u,l,e,t)},[u,l,n]),m=rL(),v=p.useCallback((e,t)=>{m(e,tZ({},t,{navigate:!1,fetcherKey:u}))},[u,m]),y=p.useMemo(()=>p.forwardRef((e,t)=>p.createElement(rw,tZ({},e,{navigate:!1,fetcherKey:u,ref:t}))),[u]),g=a.fetchers.get(u)||eu,w=o.get(u);return p.useMemo(()=>tZ({Form:y,submit:v,load:d},g,{data:w}),[y,v,d,g,w])}function r_(){return Array.from(rS(f.UseFetchers).fetchers.entries()).map(e=>{let[t,r]=e;return tZ({},r,{key:t})})}let rA="react-router-scroll-positions",rT={};function rU(e){let{getKey:t,storageKey:r}=void 0===e?{}:e,{router:n}=rE(h.UseScrollRestoration),{restoreScrollPosition:a,preventScrollReset:o}=rS(f.UseScrollRestoration),{basename:i}=p.useContext(e2),l=tt(),s=tC(),u=tR();p.useEffect(()=>(window.history.scrollRestoration="manual",()=>{window.history.scrollRestoration="auto"}),[]),function(e,t){let{capture:r}={};p.useEffect(()=>{let t=null!=r?{capture:r}:void 0;return window.addEventListener("pagehide",e,t),()=>{window.removeEventListener("pagehide",e,t)}},[e,r])}(p.useCallback(()=>{"idle"===u.state&&(rT[(t?t(l,s):null)||l.key]=window.scrollY);try{sessionStorage.setItem(r||rA,JSON.stringify(rT))}catch(e){}window.history.scrollRestoration="auto"},[r,t,u.state,l,s])),"undefined"!=typeof document&&(p.useLayoutEffect(()=>{try{let e=sessionStorage.getItem(r||rA);e&&(rT=JSON.parse(e))}catch(e){}},[r]),p.useLayoutEffect(()=>{let e=t&&"/"!==i?(e,r)=>t(tZ({},e,{pathname:N(e.pathname,i)||e.pathname}),r):t,r=null==n?void 0:n.enableScrollRestoration(rT,()=>window.scrollY,e);return()=>r&&r()},[n,i,t]),p.useLayoutEffect(()=>{if(!1!==a){if("number"==typeof a)return void window.scrollTo(0,a);if(l.hash){let e=document.getElementById(decodeURIComponent(l.hash.slice(1)));if(e)return void e.scrollIntoView()}!0!==o&&window.scrollTo(0,0)}},[l,a,o]))}function rj(e,t){let{capture:r}=t||{};p.useEffect(()=>{let t=null!=r?{capture:r}:void 0;return window.addEventListener("beforeunload",e,t),()=>{window.removeEventListener("beforeunload",e,t)}},[e,r])}function rM(e){let{when:t,message:r}=e,n=tU(t);p.useEffect(()=>{"blocked"===n.state&&(window.confirm(r)?setTimeout(n.proceed,0):n.reset())},[n,r]),p.useEffect(()=>{"blocked"!==n.state||t||n.reset()},[n,t])}function rO(e,t){void 0===t&&(t={});let r=p.useContext(rn);null==r&&E(!1);let{basename:n}=rE(h.useViewTransitionState),a=tc(e,{relative:t.relative});if(!r.isTransitioning)return!1;let o=N(r.currentLocation.pathname,n)||r.currentLocation.pathname,i=N(r.nextLocation.pathname,n)||r.nextLocation.pathname;return null!=O(a.pathname,i)||null!=O(a.pathname,o)}}}]);
|