@perses-dev/victorialogs-plugin 0.5.0-beta.4 → 0.5.0-beta.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (77) hide show
  1. package/__mf/js/{VictoriaLogs.0e9b354b.js → VictoriaLogs.4c495bed.js} +3 -3
  2. package/__mf/js/async/{1616.f1eccc4c.js → 1616.82d4415e.js} +1 -1
  3. package/__mf/js/async/{198.62d932b8.js → 198.eaf0c6e9.js} +2 -2
  4. package/__mf/js/async/{2043.88a30296.js → 2043.c7890092.js} +2 -2
  5. package/__mf/js/async/{2377.5748307c.js → 2377.4d92bfcb.js} +1 -1
  6. package/__mf/js/async/{2786.4c8d0152.js → 2786.773d9359.js} +2 -2
  7. package/__mf/js/async/{2901.5a873d2d.js → 2901.608f45ff.js} +1 -1
  8. package/__mf/js/async/3068.988451f7.js +88 -0
  9. package/__mf/js/async/{3286.85ae05a3.js → 3286.c737c09b.js} +1 -1
  10. package/__mf/js/async/{392.2d34662e.js → 392.6731d83c.js} +2 -2
  11. package/__mf/js/async/{4077.49dfb154.js → 4077.a42401ce.js} +1 -1
  12. package/__mf/js/async/{4121.cfe4b322.js → 4121.770269c0.js} +2 -2
  13. package/__mf/js/async/{4248.30f8bd6d.js → 4248.91e6cc6e.js} +1 -1
  14. package/__mf/js/async/{4496.db305e0f.js → 4496.9fae4748.js} +1 -1
  15. package/__mf/js/async/{4960.68a75c2b.js → 4960.cb8a05de.js} +2 -2
  16. package/__mf/js/async/{5019.e765213b.js → 5019.ac272b15.js} +1 -1
  17. package/__mf/js/async/{5071.1b1ab449.js → 5071.560c053a.js} +1 -1
  18. package/__mf/js/async/537.1c481610.js +7 -0
  19. package/__mf/js/async/{5440.e7e6eeba.js → 5440.09f0226b.js} +2 -2
  20. package/__mf/js/async/{5587.e6c8c9cb.js → 5587.64d39b17.js} +1 -1
  21. package/__mf/js/async/{5706.74e30cc1.js → 5706.75b5373a.js} +1 -1
  22. package/__mf/js/async/{6274.f2baa565.js → 6274.d7d67416.js} +2 -2
  23. package/__mf/js/async/{6854.7f44cdf5.js → 6854.1894c973.js} +1 -1
  24. package/__mf/js/async/{7192.d01de220.js → 7192.ed537c4a.js} +1 -1
  25. package/__mf/js/async/{7740.83fe7f7a.js → 7740.0ea3301c.js} +2 -2
  26. package/__mf/js/async/{7817.f44cbee0.js → 7817.f8e5f9c1.js} +2 -2
  27. package/__mf/js/async/{7862.198947f4.js → 7862.7dae5507.js} +2 -2
  28. package/__mf/js/async/{7968.608789bf.js → 7968.01e0eae9.js} +1 -1
  29. package/__mf/js/async/{7978.0522ea0c.js → 7978.3243a72e.js} +1 -1
  30. package/__mf/js/async/8253.cd3d4c47.js +37 -0
  31. package/__mf/js/async/{8356.fd841d9a.js → 8356.a177b6d1.js} +1 -1
  32. package/__mf/js/async/{8470.02ee5a12.js → 8470.45505eb5.js} +2 -2
  33. package/__mf/js/async/8555.1f58e1a5.js +52 -0
  34. package/__mf/js/async/{873.ffe1cd58.js → 873.dc975fe1.js} +1 -1
  35. package/__mf/js/async/{9207.0bc63081.js → 9207.037948df.js} +1 -1
  36. package/__mf/js/async/{9235.aef57230.js → 9235.a48b3e89.js} +1 -1
  37. package/__mf/js/async/{941.1ea1b3b3.js → 941.cce123a8.js} +2 -2
  38. package/__mf/js/async/{9440.e728b28c.js → 9440.af442e76.js} +2 -2
  39. package/__mf/js/async/{9588.71b86749.js → 9588.4997a7af.js} +1 -1
  40. package/__mf/js/async/{__federation_expose_VictoriaLogsDatasource.f77ef699.js → __federation_expose_VictoriaLogsDatasource.9377181e.js} +2 -2
  41. package/__mf/js/async/__federation_expose_VictoriaLogsFieldNamesVariable.129a25d1.js +2 -0
  42. package/__mf/js/async/__federation_expose_VictoriaLogsFieldValuesVariable.06a1024e.js +2 -0
  43. package/__mf/js/async/__federation_expose_VictoriaLogsLogQuery.b36ca46c.js +1 -0
  44. package/__mf/js/async/__federation_expose_VictoriaLogsTimeSeriesQuery.cd896f43.js +1 -0
  45. package/__mf/js/{main.5ca3e852.js → main.b2110334.js} +2 -2
  46. package/lib/setup-tests.js +7 -0
  47. package/lib/setup-tests.js.map +1 -1
  48. package/mf-manifest.json +135 -135
  49. package/mf-stats.json +135 -135
  50. package/package.json +6 -6
  51. package/__mf/js/async/1185.16755014.js +0 -7
  52. package/__mf/js/async/2830.f98b832e.js +0 -22
  53. package/__mf/js/async/560.276a458f.js +0 -37
  54. package/__mf/js/async/7607.3676d944.js +0 -52
  55. package/__mf/js/async/__federation_expose_VictoriaLogsFieldNamesVariable.21dca4df.js +0 -2
  56. package/__mf/js/async/__federation_expose_VictoriaLogsFieldValuesVariable.8097b38a.js +0 -2
  57. package/__mf/js/async/__federation_expose_VictoriaLogsLogQuery.579e7589.js +0 -1
  58. package/__mf/js/async/__federation_expose_VictoriaLogsTimeSeriesQuery.48740ac8.js +0 -1
  59. /package/__mf/css/async/{1185.85c2cbf6.css → 537.85c2cbf6.css} +0 -0
  60. /package/__mf/js/async/{198.62d932b8.js.LICENSE.txt → 198.eaf0c6e9.js.LICENSE.txt} +0 -0
  61. /package/__mf/js/async/{2043.88a30296.js.LICENSE.txt → 2043.c7890092.js.LICENSE.txt} +0 -0
  62. /package/__mf/js/async/{2786.4c8d0152.js.LICENSE.txt → 2786.773d9359.js.LICENSE.txt} +0 -0
  63. /package/__mf/js/async/{2830.f98b832e.js.LICENSE.txt → 3068.988451f7.js.LICENSE.txt} +0 -0
  64. /package/__mf/js/async/{392.2d34662e.js.LICENSE.txt → 392.6731d83c.js.LICENSE.txt} +0 -0
  65. /package/__mf/js/async/{4121.cfe4b322.js.LICENSE.txt → 4121.770269c0.js.LICENSE.txt} +0 -0
  66. /package/__mf/js/async/{4960.68a75c2b.js.LICENSE.txt → 4960.cb8a05de.js.LICENSE.txt} +0 -0
  67. /package/__mf/js/async/{1185.16755014.js.LICENSE.txt → 537.1c481610.js.LICENSE.txt} +0 -0
  68. /package/__mf/js/async/{5440.e7e6eeba.js.LICENSE.txt → 5440.09f0226b.js.LICENSE.txt} +0 -0
  69. /package/__mf/js/async/{6274.f2baa565.js.LICENSE.txt → 6274.d7d67416.js.LICENSE.txt} +0 -0
  70. /package/__mf/js/async/{7817.f44cbee0.js.LICENSE.txt → 7817.f8e5f9c1.js.LICENSE.txt} +0 -0
  71. /package/__mf/js/async/{7862.198947f4.js.LICENSE.txt → 7862.7dae5507.js.LICENSE.txt} +0 -0
  72. /package/__mf/js/async/{8470.02ee5a12.js.LICENSE.txt → 8470.45505eb5.js.LICENSE.txt} +0 -0
  73. /package/__mf/js/async/{941.1ea1b3b3.js.LICENSE.txt → 941.cce123a8.js.LICENSE.txt} +0 -0
  74. /package/__mf/js/async/{9440.e728b28c.js.LICENSE.txt → 9440.af442e76.js.LICENSE.txt} +0 -0
  75. /package/__mf/js/async/{__federation_expose_VictoriaLogsDatasource.f77ef699.js.LICENSE.txt → __federation_expose_VictoriaLogsDatasource.9377181e.js.LICENSE.txt} +0 -0
  76. /package/__mf/js/async/{__federation_expose_VictoriaLogsFieldNamesVariable.21dca4df.js.LICENSE.txt → __federation_expose_VictoriaLogsFieldNamesVariable.129a25d1.js.LICENSE.txt} +0 -0
  77. /package/__mf/js/async/{__federation_expose_VictoriaLogsFieldValuesVariable.8097b38a.js.LICENSE.txt → __federation_expose_VictoriaLogsFieldValuesVariable.06a1024e.js.LICENSE.txt} +0 -0
@@ -1,4 +1,4 @@
1
- "use strict";(self.chunk_VictoriaLogs_0_5_0_beta_4=self.chunk_VictoriaLogs_0_5_0_beta_4||[]).push([["7740"],{31271(e,t,r){r.d(t,{A:()=>H});var o,n,a=r(70451),i=r(11750),l=r(81023),s=r(59238),c=r(81227),p=r(48865),u=r(59078),d=r(11502),f=r(47095),h=r(47601),m=r(63095),g=r(35931),v=r(8323),b=r(52131),y=r(17834),x=r(94886),A=r(77308),$=r(23434),w=r(72052),k=r(29009),O=r(46733);function C(e){return(0,O.Ay)("MuiAutocomplete",e)}let S=(0,k.A)("MuiAutocomplete",["root","expanded","fullWidth","focused","focusVisible","tag","tagSizeSmall","tagSizeMedium","hasPopupIcon","hasClearIcon","inputRoot","input","inputFocused","endAdornment","clearIndicator","popupIndicator","popupIndicatorOpen","popper","popperDisablePortal","paper","listbox","loading","noOptions","option","groupLabel","groupUl"]);var R=r(24726),I=r(73397),M=r(62540);let P=(0,A.A)("div",{name:"MuiAutocomplete",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e,{fullWidth:o,hasClearIcon:n,hasPopupIcon:a,inputFocused:i,size:l}=r;return[{[`& .${S.tag}`]:t.tag},{[`& .${S.tag}`]:t[`tagSize${(0,R.A)(l)}`]},{[`& .${S.inputRoot}`]:t.inputRoot},{[`& .${S.input}`]:t.input},{[`& .${S.input}`]:i&&t.inputFocused},t.root,o&&t.fullWidth,a&&t.hasPopupIcon,n&&t.hasClearIcon]}})({[`&.${S.focused} .${S.clearIndicator}`]:{visibility:"visible"},"@media (pointer: fine)":{[`&:hover .${S.clearIndicator}`]:{visibility:"visible"}},[`& .${S.tag}`]:{margin:3,maxWidth:"calc(100% - 6px)"},[`& .${S.inputRoot}`]:{[`.${S.hasPopupIcon}&, .${S.hasClearIcon}&`]:{paddingRight:30},[`.${S.hasPopupIcon}.${S.hasClearIcon}&`]:{paddingRight:56},[`& .${S.input}`]:{width:0,minWidth:30}},[`& .${m.A.root}`]:{paddingBottom:1,"& .MuiInput-input":{padding:"4px 4px 4px 0px"}},[`& .${m.A.root}.${g.A.sizeSmall}`]:{[`& .${m.A.input}`]:{padding:"2px 4px 3px 0"}},[`& .${v.A.root}`]:{padding:9,[`.${S.hasPopupIcon}&, .${S.hasClearIcon}&`]:{paddingRight:39},[`.${S.hasPopupIcon}.${S.hasClearIcon}&`]:{paddingRight:65},[`& .${S.input}`]:{padding:"7.5px 4px 7.5px 5px"},[`& .${S.endAdornment}`]:{right:9}},[`& .${v.A.root}.${g.A.sizeSmall}`]:{paddingTop:6,paddingBottom:6,paddingLeft:6,[`& .${S.input}`]:{padding:"2.5px 4px 2.5px 8px"}},[`& .${b.A.root}`]:{paddingTop:19,paddingLeft:8,[`.${S.hasPopupIcon}&, .${S.hasClearIcon}&`]:{paddingRight:39},[`.${S.hasPopupIcon}.${S.hasClearIcon}&`]:{paddingRight:65},[`& .${b.A.input}`]:{padding:"7px 4px"},[`& .${S.endAdornment}`]:{right:9}},[`& .${b.A.root}.${g.A.sizeSmall}`]:{paddingBottom:1,[`& .${b.A.input}`]:{padding:"2.5px 4px"}},[`& .${g.A.hiddenLabel}`]:{paddingTop:8},[`& .${b.A.root}.${g.A.hiddenLabel}`]:{paddingTop:0,paddingBottom:0,[`& .${S.input}`]:{paddingTop:16,paddingBottom:17}},[`& .${b.A.root}.${g.A.hiddenLabel}.${g.A.sizeSmall}`]:{[`& .${S.input}`]:{paddingTop:8,paddingBottom:9}},[`& .${S.input}`]:{flexGrow:1,textOverflow:"ellipsis",opacity:0},variants:[{props:{fullWidth:!0},style:{width:"100%"}},{props:{size:"small"},style:{[`& .${S.tag}`]:{margin:2,maxWidth:"calc(100% - 4px)"}}},{props:{inputFocused:!0},style:{[`& .${S.input}`]:{opacity:1}}},{props:{multiple:!0},style:{[`& .${S.inputRoot}`]:{flexWrap:"wrap"}}}]}),j=(0,A.A)("div",{name:"MuiAutocomplete",slot:"EndAdornment",overridesResolver:(e,t)=>t.endAdornment})({position:"absolute",right:0,top:"50%",transform:"translate(0, -50%)"}),E=(0,A.A)(f.A,{name:"MuiAutocomplete",slot:"ClearIndicator",overridesResolver:(e,t)=>t.clearIndicator})({marginRight:-2,padding:4,visibility:"hidden"}),L=(0,A.A)(f.A,{name:"MuiAutocomplete",slot:"PopupIndicator",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.popupIndicator,r.popupOpen&&t.popupIndicatorOpen]}})({padding:2,marginRight:-2,variants:[{props:{popupOpen:!0},style:{transform:"rotate(180deg)"}}]}),D=(0,A.A)(p.A,{name:"MuiAutocomplete",slot:"Popper",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[{[`& .${S.option}`]:t.option},t.popper,r.disablePortal&&t.popperDisablePortal]}})((0,$.A)(({theme:e})=>({zIndex:(e.vars||e).zIndex.modal,variants:[{props:{disablePortal:!0},style:{position:"absolute"}}]}))),T=(0,A.A)(d.A,{name:"MuiAutocomplete",slot:"Paper",overridesResolver:(e,t)=>t.paper})((0,$.A)(({theme:e})=>({...e.typography.body1,overflow:"auto"}))),z=(0,A.A)("div",{name:"MuiAutocomplete",slot:"Loading",overridesResolver:(e,t)=>t.loading})((0,$.A)(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"}))),N=(0,A.A)("div",{name:"MuiAutocomplete",slot:"NoOptions",overridesResolver:(e,t)=>t.noOptions})((0,$.A)(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"}))),B=(0,A.A)("ul",{name:"MuiAutocomplete",slot:"Listbox",overridesResolver:(e,t)=>t.listbox})((0,$.A)(({theme:e})=>({listStyle:"none",margin:0,padding:"8px 0",maxHeight:"40vh",overflow:"auto",position:"relative",[`& .${S.option}`]:{minHeight:48,display:"flex",overflow:"hidden",justifyContent:"flex-start",alignItems:"center",cursor:"pointer",paddingTop:6,boxSizing:"border-box",outline:"0",WebkitTapHighlightColor:"transparent",paddingBottom:6,paddingLeft:16,paddingRight:16,[e.breakpoints.up("sm")]:{minHeight:"auto"},[`&.${S.focused}`]:{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},'&[aria-disabled="true"]':{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`&.${S.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},'&[aria-selected="true"]':{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:(0,s.X4)(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${S.focused}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:(0,s.X4)(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(e.vars||e).palette.action.selected}},[`&.${S.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:(0,s.X4)(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}}}}))),V=(0,A.A)(u.A,{name:"MuiAutocomplete",slot:"GroupLabel",overridesResolver:(e,t)=>t.groupLabel})((0,$.A)(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,top:-8}))),W=(0,A.A)("ul",{name:"MuiAutocomplete",slot:"GroupUl",overridesResolver:(e,t)=>t.groupUl})({padding:0,[`& .${S.option}`]:{paddingLeft:24}}),H=a.forwardRef(function(e,t){let r,s=(0,w.b)({props:e,name:"MuiAutocomplete"}),{autoComplete:u=!1,autoHighlight:f=!1,autoSelect:m=!1,blurOnSelect:g=!1,ChipProps:v,className:b,clearIcon:A=o||(o=(0,M.jsx)(y.A,{fontSize:"small"})),clearOnBlur:$=!s.freeSolo,clearOnEscape:k=!1,clearText:O="Clear",closeText:S="Close",componentsProps:H,defaultValue:F=s.multiple?[]:null,disableClearable:X=!1,disableCloseOnSelect:q=!1,disabled:U=!1,disabledItemsFocusable:_=!1,disableListWrap:K=!1,disablePortal:G=!1,filterOptions:Y,filterSelectedOptions:Z=!1,forcePopupIcon:J="auto",freeSolo:Q=!1,fullWidth:ee=!1,getLimitTagsText:et=e=>`+${e}`,getOptionDisabled:er,getOptionKey:eo,getOptionLabel:en,isOptionEqualToValue:ea,groupBy:ei,handleHomeEndKeys:el=!s.freeSolo,id:es,includeInputInList:ec=!1,inputValue:ep,limitTags:eu=-1,ListboxComponent:ed,ListboxProps:ef,loading:eh=!1,loadingText:em="Loading…",multiple:eg=!1,noOptionsText:ev="No options",onChange:eb,onClose:ey,onHighlightChange:ex,onInputChange:eA,onOpen:e$,open:ew,openOnFocus:ek=!1,openText:eO="Open",options:eC,PaperComponent:eS,PopperComponent:eR,popupIcon:eI=n||(n=(0,M.jsx)(x.A,{})),readOnly:eM=!1,renderGroup:eP,renderInput:ej,renderOption:eE,renderTags:eL,selectOnFocus:eD=!s.freeSolo,size:eT="medium",slots:ez={},slotProps:eN={},value:eB,...eV}=s,{getRootProps:eW,getInputProps:eH,getInputLabelProps:eF,getPopupIndicatorProps:eX,getClearProps:eq,getTagProps:eU,getListboxProps:e_,getOptionProps:eK,value:eG,dirty:eY,expanded:eZ,id:eJ,popupOpen:eQ,focused:e0,focusedTag:e1,anchorEl:e2,setAnchorEl:e4,inputValue:e3,groupedOptions:e5}=(0,c.A)({...s,componentName:"Autocomplete"}),e7=!X&&!U&&eY&&!eM,e9=(!Q||!0===J)&&!1!==J,{onMouseDown:e6}=eH(),{ref:e8,...te}=e_(),tt=en||(e=>e.label??e),tr={...s,disablePortal:G,expanded:eZ,focused:e0,fullWidth:ee,getOptionLabel:tt,hasClearIcon:e7,hasPopupIcon:e9,inputFocused:-1===e1,popupOpen:eQ,size:eT},to=(e=>{let{classes:t,disablePortal:r,expanded:o,focused:n,fullWidth:a,hasClearIcon:i,hasPopupIcon:s,inputFocused:c,popupOpen:p,size:u}=e,d={root:["root",o&&"expanded",n&&"focused",a&&"fullWidth",i&&"hasClearIcon",s&&"hasPopupIcon"],inputRoot:["inputRoot"],input:["input",c&&"inputFocused"],tag:["tag",`tagSize${(0,R.A)(u)}`],endAdornment:["endAdornment"],clearIndicator:["clearIndicator"],popupIndicator:["popupIndicator",p&&"popupIndicatorOpen"],popper:["popper",r&&"popperDisablePortal"],paper:["paper"],listbox:["listbox"],loading:["loading"],noOptions:["noOptions"],option:["option"],groupLabel:["groupLabel"],groupUl:["groupUl"]};return(0,l.A)(d,C,t)})(tr),tn={slots:{paper:eS,popper:eR,...ez},slotProps:{chip:v,listbox:ef,...H,...eN}},[ta,ti]=(0,I.A)("listbox",{elementType:B,externalForwardedProps:tn,ownerState:tr,className:to.listbox,additionalProps:te,ref:e8}),[tl,ts]=(0,I.A)("paper",{elementType:d.A,externalForwardedProps:tn,ownerState:tr,className:to.paper}),[tc,tp]=(0,I.A)("popper",{elementType:p.A,externalForwardedProps:tn,ownerState:tr,className:to.popper,additionalProps:{disablePortal:G,style:{width:e2?e2.clientWidth:null},role:"presentation",anchorEl:e2,open:eQ}});if(eg&&eG.length>0){let e=e=>({className:to.tag,disabled:U,...eU(e)});r=eL?eL(eG,e,tr):eG.map((t,r)=>{let{key:o,...n}=e({index:r});return(0,M.jsx)(h.A,{label:tt(t),size:eT,...n,...tn.slotProps.chip},o)})}if(eu>-1&&Array.isArray(r)){let e=r.length-eu;!e0&&e>0&&(r=r.splice(0,eu)).push((0,M.jsx)("span",{className:to.tag,children:et(e)},r.length))}let tu=eP||(e=>(0,M.jsxs)("li",{children:[(0,M.jsx)(V,{className:to.groupLabel,ownerState:tr,component:"div",children:e.group}),(0,M.jsx)(W,{className:to.groupUl,ownerState:tr,children:e.children})]},e.key)),td=eE||((e,t)=>{let{key:r,...o}=e;return(0,M.jsx)("li",{...o,children:tt(t)},r)}),tf=(e,t)=>{let r=eK({option:e,index:t});return td({...r,className:to.option},e,{selected:r["aria-selected"],index:t,inputValue:e3},tr)},th=tn.slotProps.clearIndicator,tm=tn.slotProps.popupIndicator;return(0,M.jsxs)(a.Fragment,{children:[(0,M.jsx)(P,{ref:t,className:(0,i.A)(to.root,b),ownerState:tr,...eW(eV),children:ej({id:eJ,disabled:U,fullWidth:!0,size:"small"===eT?"small":void 0,InputLabelProps:eF(),InputProps:{ref:e4,className:to.inputRoot,startAdornment:r,onMouseDown:e=>{e.target===e.currentTarget&&e6(e)},...(e7||e9)&&{endAdornment:(0,M.jsxs)(j,{className:to.endAdornment,ownerState:tr,children:[e7?(0,M.jsx)(E,{...eq(),"aria-label":O,title:O,ownerState:tr,...th,className:(0,i.A)(to.clearIndicator,th?.className),children:A}):null,e9?(0,M.jsx)(L,{...eX(),disabled:U,"aria-label":eQ?S:eO,title:eQ?S:eO,ownerState:tr,...tm,className:(0,i.A)(to.popupIndicator,tm?.className),children:eI}):null]})}},inputProps:{className:to.input,disabled:U,readOnly:eM,...eH()}})}),e2?(0,M.jsx)(D,{as:tc,...tp,children:(0,M.jsxs)(T,{as:tl,...ts,children:[eh&&0===e5.length?(0,M.jsx)(z,{className:to.loading,ownerState:tr,children:em}):null,0!==e5.length||Q||eh?null:(0,M.jsx)(N,{className:to.noOptions,ownerState:tr,role:"presentation",onMouseDown:e=>{e.preventDefault()},children:ev}),e5.length>0?(0,M.jsx)(ta,{as:ed,...ti,children:e5.map((e,t)=>ei?tu({key:e.key,group:e.group,children:e.options.map((t,r)=>tf(t,e.index+r))}):tf(e,t))}):null]})}):null]})})},1337(e,t,r){r.d(t,{A:()=>M});var o=r(70451),n=r(11750),a=r(81023),i=r(93399),l=r(77308),s=r(72052),c=r(29424),p=r(32398),u=r(48731);class d{static create(){return new d}static use(){let e=(0,u.A)(d.create).current,[t,r]=o.useState(!1);return e.shouldMount=t,e.setShouldMount=r,o.useEffect(e.mountEffect,[t]),e}constructor(){this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}mount(){let e,t,r;return this.mounted||(this.mounted=((r=new Promise((r,o)=>{e=r,t=o})).resolve=e,r.reject=t,r),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}mountEffect=()=>{this.shouldMount&&!this.didMount&&null!==this.ref.current&&(this.didMount=!0,this.mounted.resolve())};start(...e){this.mount().then(()=>this.ref.current?.start(...e))}stop(...e){this.mount().then(()=>this.ref.current?.stop(...e))}pulsate(...e){this.mount().then(()=>this.ref.current?.pulsate(...e))}}var f=r(44394),h=r(3725),m=r(69402),g=r(62540),v=r(29009);let b=(0,v.A)("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),y=(0,m.keyframes)`
1
+ "use strict";(self.chunk_VictoriaLogs_0_5_0_beta_6=self.chunk_VictoriaLogs_0_5_0_beta_6||[]).push([["7740"],{31271(e,t,r){r.d(t,{A:()=>H});var o,n,a=r(70451),i=r(11750),l=r(81023),s=r(59238),c=r(43899),p=r(48865),u=r(59078),d=r(11502),f=r(47095),h=r(47601),m=r(63095),g=r(35931),v=r(8323),b=r(52131),y=r(17834),x=r(94886),A=r(77308),$=r(23434),w=r(72052),k=r(29009),O=r(46733);function C(e){return(0,O.Ay)("MuiAutocomplete",e)}let S=(0,k.A)("MuiAutocomplete",["root","expanded","fullWidth","focused","focusVisible","tag","tagSizeSmall","tagSizeMedium","hasPopupIcon","hasClearIcon","inputRoot","input","inputFocused","endAdornment","clearIndicator","popupIndicator","popupIndicatorOpen","popper","popperDisablePortal","paper","listbox","loading","noOptions","option","groupLabel","groupUl"]);var R=r(24726),I=r(73397),M=r(62540);let P=(0,A.A)("div",{name:"MuiAutocomplete",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e,{fullWidth:o,hasClearIcon:n,hasPopupIcon:a,inputFocused:i,size:l}=r;return[{[`& .${S.tag}`]:t.tag},{[`& .${S.tag}`]:t[`tagSize${(0,R.A)(l)}`]},{[`& .${S.inputRoot}`]:t.inputRoot},{[`& .${S.input}`]:t.input},{[`& .${S.input}`]:i&&t.inputFocused},t.root,o&&t.fullWidth,a&&t.hasPopupIcon,n&&t.hasClearIcon]}})({[`&.${S.focused} .${S.clearIndicator}`]:{visibility:"visible"},"@media (pointer: fine)":{[`&:hover .${S.clearIndicator}`]:{visibility:"visible"}},[`& .${S.tag}`]:{margin:3,maxWidth:"calc(100% - 6px)"},[`& .${S.inputRoot}`]:{[`.${S.hasPopupIcon}&, .${S.hasClearIcon}&`]:{paddingRight:30},[`.${S.hasPopupIcon}.${S.hasClearIcon}&`]:{paddingRight:56},[`& .${S.input}`]:{width:0,minWidth:30}},[`& .${m.A.root}`]:{paddingBottom:1,"& .MuiInput-input":{padding:"4px 4px 4px 0px"}},[`& .${m.A.root}.${g.A.sizeSmall}`]:{[`& .${m.A.input}`]:{padding:"2px 4px 3px 0"}},[`& .${v.A.root}`]:{padding:9,[`.${S.hasPopupIcon}&, .${S.hasClearIcon}&`]:{paddingRight:39},[`.${S.hasPopupIcon}.${S.hasClearIcon}&`]:{paddingRight:65},[`& .${S.input}`]:{padding:"7.5px 4px 7.5px 5px"},[`& .${S.endAdornment}`]:{right:9}},[`& .${v.A.root}.${g.A.sizeSmall}`]:{paddingTop:6,paddingBottom:6,paddingLeft:6,[`& .${S.input}`]:{padding:"2.5px 4px 2.5px 8px"}},[`& .${b.A.root}`]:{paddingTop:19,paddingLeft:8,[`.${S.hasPopupIcon}&, .${S.hasClearIcon}&`]:{paddingRight:39},[`.${S.hasPopupIcon}.${S.hasClearIcon}&`]:{paddingRight:65},[`& .${b.A.input}`]:{padding:"7px 4px"},[`& .${S.endAdornment}`]:{right:9}},[`& .${b.A.root}.${g.A.sizeSmall}`]:{paddingBottom:1,[`& .${b.A.input}`]:{padding:"2.5px 4px"}},[`& .${g.A.hiddenLabel}`]:{paddingTop:8},[`& .${b.A.root}.${g.A.hiddenLabel}`]:{paddingTop:0,paddingBottom:0,[`& .${S.input}`]:{paddingTop:16,paddingBottom:17}},[`& .${b.A.root}.${g.A.hiddenLabel}.${g.A.sizeSmall}`]:{[`& .${S.input}`]:{paddingTop:8,paddingBottom:9}},[`& .${S.input}`]:{flexGrow:1,textOverflow:"ellipsis",opacity:0},variants:[{props:{fullWidth:!0},style:{width:"100%"}},{props:{size:"small"},style:{[`& .${S.tag}`]:{margin:2,maxWidth:"calc(100% - 4px)"}}},{props:{inputFocused:!0},style:{[`& .${S.input}`]:{opacity:1}}},{props:{multiple:!0},style:{[`& .${S.inputRoot}`]:{flexWrap:"wrap"}}}]}),j=(0,A.A)("div",{name:"MuiAutocomplete",slot:"EndAdornment",overridesResolver:(e,t)=>t.endAdornment})({position:"absolute",right:0,top:"50%",transform:"translate(0, -50%)"}),E=(0,A.A)(f.A,{name:"MuiAutocomplete",slot:"ClearIndicator",overridesResolver:(e,t)=>t.clearIndicator})({marginRight:-2,padding:4,visibility:"hidden"}),L=(0,A.A)(f.A,{name:"MuiAutocomplete",slot:"PopupIndicator",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.popupIndicator,r.popupOpen&&t.popupIndicatorOpen]}})({padding:2,marginRight:-2,variants:[{props:{popupOpen:!0},style:{transform:"rotate(180deg)"}}]}),D=(0,A.A)(p.A,{name:"MuiAutocomplete",slot:"Popper",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[{[`& .${S.option}`]:t.option},t.popper,r.disablePortal&&t.popperDisablePortal]}})((0,$.A)(({theme:e})=>({zIndex:(e.vars||e).zIndex.modal,variants:[{props:{disablePortal:!0},style:{position:"absolute"}}]}))),T=(0,A.A)(d.A,{name:"MuiAutocomplete",slot:"Paper",overridesResolver:(e,t)=>t.paper})((0,$.A)(({theme:e})=>({...e.typography.body1,overflow:"auto"}))),z=(0,A.A)("div",{name:"MuiAutocomplete",slot:"Loading",overridesResolver:(e,t)=>t.loading})((0,$.A)(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"}))),N=(0,A.A)("div",{name:"MuiAutocomplete",slot:"NoOptions",overridesResolver:(e,t)=>t.noOptions})((0,$.A)(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"}))),B=(0,A.A)("ul",{name:"MuiAutocomplete",slot:"Listbox",overridesResolver:(e,t)=>t.listbox})((0,$.A)(({theme:e})=>({listStyle:"none",margin:0,padding:"8px 0",maxHeight:"40vh",overflow:"auto",position:"relative",[`& .${S.option}`]:{minHeight:48,display:"flex",overflow:"hidden",justifyContent:"flex-start",alignItems:"center",cursor:"pointer",paddingTop:6,boxSizing:"border-box",outline:"0",WebkitTapHighlightColor:"transparent",paddingBottom:6,paddingLeft:16,paddingRight:16,[e.breakpoints.up("sm")]:{minHeight:"auto"},[`&.${S.focused}`]:{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},'&[aria-disabled="true"]':{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`&.${S.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},'&[aria-selected="true"]':{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:(0,s.X4)(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${S.focused}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:(0,s.X4)(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(e.vars||e).palette.action.selected}},[`&.${S.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:(0,s.X4)(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}}}}))),V=(0,A.A)(u.A,{name:"MuiAutocomplete",slot:"GroupLabel",overridesResolver:(e,t)=>t.groupLabel})((0,$.A)(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,top:-8}))),W=(0,A.A)("ul",{name:"MuiAutocomplete",slot:"GroupUl",overridesResolver:(e,t)=>t.groupUl})({padding:0,[`& .${S.option}`]:{paddingLeft:24}}),H=a.forwardRef(function(e,t){let r,s=(0,w.b)({props:e,name:"MuiAutocomplete"}),{autoComplete:u=!1,autoHighlight:f=!1,autoSelect:m=!1,blurOnSelect:g=!1,ChipProps:v,className:b,clearIcon:A=o||(o=(0,M.jsx)(y.A,{fontSize:"small"})),clearOnBlur:$=!s.freeSolo,clearOnEscape:k=!1,clearText:O="Clear",closeText:S="Close",componentsProps:H,defaultValue:F=s.multiple?[]:null,disableClearable:X=!1,disableCloseOnSelect:q=!1,disabled:U=!1,disabledItemsFocusable:_=!1,disableListWrap:K=!1,disablePortal:G=!1,filterOptions:Y,filterSelectedOptions:Z=!1,forcePopupIcon:J="auto",freeSolo:Q=!1,fullWidth:ee=!1,getLimitTagsText:et=e=>`+${e}`,getOptionDisabled:er,getOptionKey:eo,getOptionLabel:en,isOptionEqualToValue:ea,groupBy:ei,handleHomeEndKeys:el=!s.freeSolo,id:es,includeInputInList:ec=!1,inputValue:ep,limitTags:eu=-1,ListboxComponent:ed,ListboxProps:ef,loading:eh=!1,loadingText:em="Loading…",multiple:eg=!1,noOptionsText:ev="No options",onChange:eb,onClose:ey,onHighlightChange:ex,onInputChange:eA,onOpen:e$,open:ew,openOnFocus:ek=!1,openText:eO="Open",options:eC,PaperComponent:eS,PopperComponent:eR,popupIcon:eI=n||(n=(0,M.jsx)(x.A,{})),readOnly:eM=!1,renderGroup:eP,renderInput:ej,renderOption:eE,renderTags:eL,selectOnFocus:eD=!s.freeSolo,size:eT="medium",slots:ez={},slotProps:eN={},value:eB,...eV}=s,{getRootProps:eW,getInputProps:eH,getInputLabelProps:eF,getPopupIndicatorProps:eX,getClearProps:eq,getTagProps:eU,getListboxProps:e_,getOptionProps:eK,value:eG,dirty:eY,expanded:eZ,id:eJ,popupOpen:eQ,focused:e0,focusedTag:e1,anchorEl:e2,setAnchorEl:e4,inputValue:e3,groupedOptions:e5}=(0,c.A)({...s,componentName:"Autocomplete"}),e7=!X&&!U&&eY&&!eM,e9=(!Q||!0===J)&&!1!==J,{onMouseDown:e6}=eH(),{ref:e8,...te}=e_(),tt=en||(e=>e.label??e),tr={...s,disablePortal:G,expanded:eZ,focused:e0,fullWidth:ee,getOptionLabel:tt,hasClearIcon:e7,hasPopupIcon:e9,inputFocused:-1===e1,popupOpen:eQ,size:eT},to=(e=>{let{classes:t,disablePortal:r,expanded:o,focused:n,fullWidth:a,hasClearIcon:i,hasPopupIcon:s,inputFocused:c,popupOpen:p,size:u}=e,d={root:["root",o&&"expanded",n&&"focused",a&&"fullWidth",i&&"hasClearIcon",s&&"hasPopupIcon"],inputRoot:["inputRoot"],input:["input",c&&"inputFocused"],tag:["tag",`tagSize${(0,R.A)(u)}`],endAdornment:["endAdornment"],clearIndicator:["clearIndicator"],popupIndicator:["popupIndicator",p&&"popupIndicatorOpen"],popper:["popper",r&&"popperDisablePortal"],paper:["paper"],listbox:["listbox"],loading:["loading"],noOptions:["noOptions"],option:["option"],groupLabel:["groupLabel"],groupUl:["groupUl"]};return(0,l.A)(d,C,t)})(tr),tn={slots:{paper:eS,popper:eR,...ez},slotProps:{chip:v,listbox:ef,...H,...eN}},[ta,ti]=(0,I.A)("listbox",{elementType:B,externalForwardedProps:tn,ownerState:tr,className:to.listbox,additionalProps:te,ref:e8}),[tl,ts]=(0,I.A)("paper",{elementType:d.A,externalForwardedProps:tn,ownerState:tr,className:to.paper}),[tc,tp]=(0,I.A)("popper",{elementType:p.A,externalForwardedProps:tn,ownerState:tr,className:to.popper,additionalProps:{disablePortal:G,style:{width:e2?e2.clientWidth:null},role:"presentation",anchorEl:e2,open:eQ}});if(eg&&eG.length>0){let e=e=>({className:to.tag,disabled:U,...eU(e)});r=eL?eL(eG,e,tr):eG.map((t,r)=>{let{key:o,...n}=e({index:r});return(0,M.jsx)(h.A,{label:tt(t),size:eT,...n,...tn.slotProps.chip},o)})}if(eu>-1&&Array.isArray(r)){let e=r.length-eu;!e0&&e>0&&(r=r.splice(0,eu)).push((0,M.jsx)("span",{className:to.tag,children:et(e)},r.length))}let tu=eP||(e=>(0,M.jsxs)("li",{children:[(0,M.jsx)(V,{className:to.groupLabel,ownerState:tr,component:"div",children:e.group}),(0,M.jsx)(W,{className:to.groupUl,ownerState:tr,children:e.children})]},e.key)),td=eE||((e,t)=>{let{key:r,...o}=e;return(0,M.jsx)("li",{...o,children:tt(t)},r)}),tf=(e,t)=>{let r=eK({option:e,index:t});return td({...r,className:to.option},e,{selected:r["aria-selected"],index:t,inputValue:e3},tr)},th=tn.slotProps.clearIndicator,tm=tn.slotProps.popupIndicator;return(0,M.jsxs)(a.Fragment,{children:[(0,M.jsx)(P,{ref:t,className:(0,i.A)(to.root,b),ownerState:tr,...eW(eV),children:ej({id:eJ,disabled:U,fullWidth:!0,size:"small"===eT?"small":void 0,InputLabelProps:eF(),InputProps:{ref:e4,className:to.inputRoot,startAdornment:r,onMouseDown:e=>{e.target===e.currentTarget&&e6(e)},...(e7||e9)&&{endAdornment:(0,M.jsxs)(j,{className:to.endAdornment,ownerState:tr,children:[e7?(0,M.jsx)(E,{...eq(),"aria-label":O,title:O,ownerState:tr,...th,className:(0,i.A)(to.clearIndicator,th?.className),children:A}):null,e9?(0,M.jsx)(L,{...eX(),disabled:U,"aria-label":eQ?S:eO,title:eQ?S:eO,ownerState:tr,...tm,className:(0,i.A)(to.popupIndicator,tm?.className),children:eI}):null]})}},inputProps:{className:to.input,disabled:U,readOnly:eM,...eH()}})}),e2?(0,M.jsx)(D,{as:tc,...tp,children:(0,M.jsxs)(T,{as:tl,...ts,children:[eh&&0===e5.length?(0,M.jsx)(z,{className:to.loading,ownerState:tr,children:em}):null,0!==e5.length||Q||eh?null:(0,M.jsx)(N,{className:to.noOptions,ownerState:tr,role:"presentation",onMouseDown:e=>{e.preventDefault()},children:ev}),e5.length>0?(0,M.jsx)(ta,{as:ed,...ti,children:e5.map((e,t)=>ei?tu({key:e.key,group:e.group,children:e.options.map((t,r)=>tf(t,e.index+r))}):tf(e,t))}):null]})}):null]})})},1337(e,t,r){r.d(t,{A:()=>M});var o=r(70451),n=r(11750),a=r(81023),i=r(93399),l=r(77308),s=r(72052),c=r(29424),p=r(32398),u=r(48731);class d{static create(){return new d}static use(){let e=(0,u.A)(d.create).current,[t,r]=o.useState(!1);return e.shouldMount=t,e.setShouldMount=r,o.useEffect(e.mountEffect,[t]),e}constructor(){this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}mount(){let e,t,r;return this.mounted||(this.mounted=((r=new Promise((r,o)=>{e=r,t=o})).resolve=e,r.reject=t,r),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}mountEffect=()=>{this.shouldMount&&!this.didMount&&null!==this.ref.current&&(this.didMount=!0,this.mounted.resolve())};start(...e){this.mount().then(()=>this.ref.current?.start(...e))}stop(...e){this.mount().then(()=>this.ref.current?.stop(...e))}pulsate(...e){this.mount().then(()=>this.ref.current?.pulsate(...e))}}var f=r(44394),h=r(3725),m=r(69402),g=r(62540),v=r(29009);let b=(0,v.A)("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),y=(0,m.keyframes)`
2
2
  0% {
3
3
  transform: scale(0);
4
4
  opacity: 0.1;
@@ -98,4 +98,4 @@
98
98
  animation: ${g} 1.4s linear infinite;
99
99
  `:null,y="string"!=typeof v?(0,i.css)`
100
100
  animation: ${v} 1.4s ease-in-out infinite;
101
- `:null,x=(0,l.A)("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,t[r.variant],t[`color${(0,p.A)(r.color)}`]]}})((0,s.A)(({theme:e})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("transform")}},{props:{variant:"indeterminate"},style:b||{animation:`${g} 1.4s linear infinite`}},...Object.entries(e.palette).filter((0,u.A)()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))]}))),A=(0,l.A)("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),$=(0,l.A)("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.circle,t[`circle${(0,p.A)(r.variant)}`],r.disableShrink&&t.circleDisableShrink]}})((0,s.A)(({theme:e})=>({stroke:"currentColor",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("stroke-dashoffset")}},{props:{variant:"indeterminate"},style:{strokeDasharray:"80px, 200px",strokeDashoffset:0}},{props:({ownerState:e})=>"indeterminate"===e.variant&&!e.disableShrink,style:y||{animation:`${v} 1.4s ease-in-out infinite`}}]}))),w=o.forwardRef(function(e,t){let r=(0,c.b)({props:e,name:"MuiCircularProgress"}),{className:o,color:i="primary",disableShrink:l=!1,size:s=40,style:u,thickness:d=3.6,value:f=0,variant:g="indeterminate",...v}=r,b={...r,color:i,disableShrink:l,size:s,thickness:d,value:f,variant:g},y=(e=>{let{classes:t,variant:r,color:o,disableShrink:n}=e,i={root:["root",r,`color${(0,p.A)(o)}`],svg:["svg"],circle:["circle",`circle${(0,p.A)(r)}`,n&&"circleDisableShrink"]};return(0,a.A)(i,h,t)})(b),w={},k={},O={};if("determinate"===g){let e=2*Math.PI*((44-d)/2);w.strokeDasharray=e.toFixed(3),O["aria-valuenow"]=Math.round(f),w.strokeDashoffset=`${((100-f)/100*e).toFixed(3)}px`,k.transform="rotate(-90deg)"}return(0,m.jsx)(x,{className:(0,n.A)(y.root,o),style:{width:s,height:s,...k,...u},ownerState:b,ref:t,role:"progressbar",...O,...v,children:(0,m.jsx)(A,{className:y.svg,ownerState:b,viewBox:"22 22 44 44",children:(0,m.jsx)($,{className:y.circle,style:w,ownerState:b,cx:44,cy:44,r:(44-d)/2,fill:"none",strokeWidth:d})})})})},47095(e,t,r){r.d(t,{A:()=>$});var o=r(70451),n=r(11750),a=r(81023),i=r(63392),l=r(59238),s=r(77308),c=r(23434),p=r(26952),u=r(72052),d=r(1337),f=r(25742),h=r(24726),m=r(29009),g=r(46733);function v(e){return(0,g.Ay)("MuiIconButton",e)}let b=(0,m.A)("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge","loading","loadingIndicator","loadingWrapper"]);var y=r(62540);let x=(0,s.A)(d.A,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,r.loading&&t.loading,"default"!==r.color&&t[`color${(0,h.A)(r.color)}`],r.edge&&t[`edge${(0,h.A)(r.edge)}`],t[`size${(0,h.A)(r.size)}`]]}})((0,c.A)(({theme:e})=>({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),variants:[{props:e=>!e.disableRipple,style:{"--IconButton-hoverBg":e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,l.X4)(e.palette.action.active,e.palette.action.hoverOpacity),"&:hover":{backgroundColor:"var(--IconButton-hoverBg)","@media (hover: none)":{backgroundColor:"transparent"}}}},{props:{edge:"start"},style:{marginLeft:-12}},{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:{edge:"end"},style:{marginRight:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}}]})),(0,c.A)(({theme:e})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(e.palette).filter((0,p.A)()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette).filter((0,p.A)()).map(([t])=>({props:{color:t},style:{"--IconButton-hoverBg":e.vars?`rgba(${(e.vars||e).palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,l.X4)((e.vars||e).palette[t].main,e.palette.action.hoverOpacity)}})),{props:{size:"small"},style:{padding:5,fontSize:e.typography.pxToRem(18)}},{props:{size:"large"},style:{padding:12,fontSize:e.typography.pxToRem(28)}}],[`&.${b.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled},[`&.${b.loading}`]:{color:"transparent"}}))),A=(0,s.A)("span",{name:"MuiIconButton",slot:"LoadingIndicator",overridesResolver:(e,t)=>t.loadingIndicator})(({theme:e})=>({display:"none",position:"absolute",visibility:"visible",top:"50%",left:"50%",transform:"translate(-50%, -50%)",color:(e.vars||e).palette.action.disabled,variants:[{props:{loading:!0},style:{display:"flex"}}]})),$=o.forwardRef(function(e,t){let r=(0,u.b)({props:e,name:"MuiIconButton"}),{edge:o=!1,children:l,className:s,color:c="default",disabled:p=!1,disableFocusRipple:d=!1,size:m="medium",id:g,loading:b=null,loadingIndicator:$,...w}=r,k=(0,i.A)(g),O=$??(0,y.jsx)(f.A,{"aria-labelledby":k,color:"inherit",size:16}),C={...r,edge:o,color:c,disabled:p,disableFocusRipple:d,loading:b,loadingIndicator:O,size:m},S=(e=>{let{classes:t,disabled:r,color:o,edge:n,size:i,loading:l}=e,s={root:["root",l&&"loading",r&&"disabled","default"!==o&&`color${(0,h.A)(o)}`,n&&`edge${(0,h.A)(n)}`,`size${(0,h.A)(i)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]};return(0,a.A)(s,v,t)})(C);return(0,y.jsxs)(x,{id:b?k:g,className:(0,n.A)(S.root,s),centerRipple:!0,focusRipple:!d,disabled:p||b,ref:t,...w,ownerState:C,children:["boolean"==typeof b&&(0,y.jsx)("span",{className:S.loadingWrapper,style:{display:"contents"},children:(0,y.jsx)(A,{className:S.loadingIndicator,ownerState:C,children:b&&O})}),l]})})},59078(e,t,r){r.d(t,{A:()=>g});var o=r(70451),n=r(11750),a=r(81023),i=r(77308),l=r(23434),s=r(72052),c=r(24726),p=r(29009),u=r(46733);function d(e){return(0,u.Ay)("MuiListSubheader",e)}(0,p.A)("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);var f=r(62540);let h=(0,i.A)("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,"default"!==r.color&&t[`color${(0,c.A)(r.color)}`],!r.disableGutters&&t.gutters,r.inset&&t.inset,!r.disableSticky&&t.sticky]}})((0,l.A)(({theme:e})=>({boxSizing:"border-box",lineHeight:"48px",listStyle:"none",color:(e.vars||e).palette.text.secondary,fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(14),variants:[{props:{color:"primary"},style:{color:(e.vars||e).palette.primary.main}},{props:{color:"inherit"},style:{color:"inherit"}},{props:({ownerState:e})=>!e.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:e})=>e.inset,style:{paddingLeft:72}},{props:({ownerState:e})=>!e.disableSticky,style:{position:"sticky",top:0,zIndex:1,backgroundColor:(e.vars||e).palette.background.paper}}]}))),m=o.forwardRef(function(e,t){let r=(0,s.b)({props:e,name:"MuiListSubheader"}),{className:o,color:i="default",component:l="li",disableGutters:p=!1,disableSticky:u=!1,inset:m=!1,...g}=r,v={...r,color:i,component:l,disableGutters:p,disableSticky:u,inset:m},b=(e=>{let{classes:t,color:r,disableGutters:o,inset:n,disableSticky:i}=e,l={root:["root","default"!==r&&`color${(0,c.A)(r)}`,!o&&"gutters",n&&"inset",!i&&"sticky"]};return(0,a.A)(l,d,t)})(v);return(0,f.jsx)(h,{as:l,className:(0,n.A)(b.root,o),ref:t,ownerState:v,...g})});m&&(m.muiSkipListHighlight=!0);let g=m},48865(e,t,r){r.d(t,{A:()=>eI});var o,n,a,i,l,s=r(35216),c=r(70451),p=r(95591),u=r(31789),d=r(10713);function f(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function h(e){var t=f(e).Element;return e instanceof t||e instanceof Element}function m(e){var t=f(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function g(e){if("u"<typeof ShadowRoot)return!1;var t=f(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}var v=Math.max,b=Math.min,y=Math.round;function x(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function A(){return!/^((?!chrome|android).)*safari/i.test(x())}function $(e,t,r){void 0===t&&(t=!1),void 0===r&&(r=!1);var o=e.getBoundingClientRect(),n=1,a=1;t&&m(e)&&(n=e.offsetWidth>0&&y(o.width)/e.offsetWidth||1,a=e.offsetHeight>0&&y(o.height)/e.offsetHeight||1);var i=(h(e)?f(e):window).visualViewport,l=!A()&&r,s=(o.left+(l&&i?i.offsetLeft:0))/n,c=(o.top+(l&&i?i.offsetTop:0))/a,p=o.width/n,u=o.height/a;return{width:p,height:u,top:c,right:s+p,bottom:c+u,left:s,x:s,y:c}}function w(e){var t=f(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function k(e){return e?(e.nodeName||"").toLowerCase():null}function O(e){return((h(e)?e.ownerDocument:e.document)||window.document).documentElement}function C(e){return $(O(e)).left+w(e).scrollLeft}function S(e){return f(e).getComputedStyle(e)}function R(e){var t=S(e),r=t.overflow,o=t.overflowX,n=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+n+o)}function I(e){var t=$(e),r=e.offsetWidth,o=e.offsetHeight;return 1>=Math.abs(t.width-r)&&(r=t.width),1>=Math.abs(t.height-o)&&(o=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:o}}function M(e){return"html"===k(e)?e:e.assignedSlot||e.parentNode||(g(e)?e.host:null)||O(e)}function P(e,t){void 0===t&&(t=[]);var r,o=function e(t){return["html","body","#document"].indexOf(k(t))>=0?t.ownerDocument.body:m(t)&&R(t)?t:e(M(t))}(e),n=o===(null==(r=e.ownerDocument)?void 0:r.body),a=f(o),i=n?[a].concat(a.visualViewport||[],R(o)?o:[]):o,l=t.concat(i);return n?l:l.concat(P(M(i)))}function j(e){return m(e)&&"fixed"!==S(e).position?e.offsetParent:null}function E(e){for(var t=f(e),r=j(e);r&&["table","td","th"].indexOf(k(r))>=0&&"static"===S(r).position;)r=j(r);return r&&("html"===k(r)||"body"===k(r)&&"static"===S(r).position)?t:r||function(e){var t=/firefox/i.test(x());if(/Trident/i.test(x())&&m(e)&&"fixed"===S(e).position)return null;var r=M(e);for(g(r)&&(r=r.host);m(r)&&0>["html","body"].indexOf(k(r));){var o=S(r);if("none"!==o.transform||"none"!==o.perspective||"paint"===o.contain||-1!==["transform","perspective"].indexOf(o.willChange)||t&&"filter"===o.willChange||t&&o.filter&&"none"!==o.filter)return r;r=r.parentNode}return null}(e)||t}var L="bottom",D="right",T="left",z="auto",N=["top",L,D,T],B="start",V="viewport",W="popper",H=N.reduce(function(e,t){return e.concat([t+"-"+B,t+"-end"])},[]),F=[].concat(N,[z]).reduce(function(e,t){return e.concat([t,t+"-"+B,t+"-end"])},[]),X=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"],q={placement:"bottom",modifiers:[],strategy:"absolute"};function U(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return!t.some(function(e){return!(e&&"function"==typeof e.getBoundingClientRect)})}var _={passive:!0};function K(e){return e.split("-")[0]}function G(e){return e.split("-")[1]}function Y(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Z(e){var t,r=e.reference,o=e.element,n=e.placement,a=n?K(n):null,i=n?G(n):null,l=r.x+r.width/2-o.width/2,s=r.y+r.height/2-o.height/2;switch(a){case"top":t={x:l,y:r.y-o.height};break;case L:t={x:l,y:r.y+r.height};break;case D:t={x:r.x+r.width,y:s};break;case T:t={x:r.x-o.width,y:s};break;default:t={x:r.x,y:r.y}}var c=a?Y(a):null;if(null!=c){var p="y"===c?"height":"width";switch(i){case B:t[c]=t[c]-(r[p]/2-o[p]/2);break;case"end":t[c]=t[c]+(r[p]/2-o[p]/2)}}return t}var J={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Q(e){var t,r,o,n,a,i,l,s=e.popper,c=e.popperRect,p=e.placement,u=e.variation,d=e.offsets,h=e.position,m=e.gpuAcceleration,g=e.adaptive,v=e.roundOffsets,b=e.isFixed,x=d.x,A=void 0===x?0:x,$=d.y,w=void 0===$?0:$,k="function"==typeof v?v({x:A,y:w}):{x:A,y:w};A=k.x,w=k.y;var C=d.hasOwnProperty("x"),R=d.hasOwnProperty("y"),I=T,M="top",P=window;if(g){var j=E(s),z="clientHeight",N="clientWidth";j===f(s)&&"static"!==S(j=O(s)).position&&"absolute"===h&&(z="scrollHeight",N="scrollWidth"),("top"===p||(p===T||p===D)&&"end"===u)&&(M=L,w-=(b&&j===P&&P.visualViewport?P.visualViewport.height:j[z])-c.height,w*=m?1:-1),(p===T||("top"===p||p===L)&&"end"===u)&&(I=D,A-=(b&&j===P&&P.visualViewport?P.visualViewport.width:j[N])-c.width,A*=m?1:-1)}var B=Object.assign({position:h},g&&J),V=!0===v?(t={x:A,y:w},r=f(s),o=t.x,n=t.y,{x:y(o*(a=r.devicePixelRatio||1))/a||0,y:y(n*a)/a||0}):{x:A,y:w};return(A=V.x,w=V.y,m)?Object.assign({},B,((l={})[M]=R?"0":"",l[I]=C?"0":"",l.transform=1>=(P.devicePixelRatio||1)?"translate("+A+"px, "+w+"px)":"translate3d("+A+"px, "+w+"px, 0)",l)):Object.assign({},B,((i={})[M]=R?w+"px":"",i[I]=C?A+"px":"",i.transform="",i))}var ee={left:"right",right:"left",bottom:"top",top:"bottom"};function et(e){return e.replace(/left|right|bottom|top/g,function(e){return ee[e]})}var er={start:"end",end:"start"};function eo(e){return e.replace(/start|end/g,function(e){return er[e]})}function en(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&g(r)){var o=t;do{if(o&&e.isSameNode(o))return!0;o=o.parentNode||o.host}while(o)}return!1}function ea(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function ei(e,t,r){var o,n,a,i,l,s,c,p,u,d;return t===V?ea(function(e,t){var r=f(e),o=O(e),n=r.visualViewport,a=o.clientWidth,i=o.clientHeight,l=0,s=0;if(n){a=n.width,i=n.height;var c=A();(c||!c&&"fixed"===t)&&(l=n.offsetLeft,s=n.offsetTop)}return{width:a,height:i,x:l+C(e),y:s}}(e,r)):h(t)?((o=$(t,!1,"fixed"===r)).top=o.top+t.clientTop,o.left=o.left+t.clientLeft,o.bottom=o.top+t.clientHeight,o.right=o.left+t.clientWidth,o.width=t.clientWidth,o.height=t.clientHeight,o.x=o.left,o.y=o.top,o):ea((n=O(e),i=O(n),l=w(n),s=null==(a=n.ownerDocument)?void 0:a.body,c=v(i.scrollWidth,i.clientWidth,s?s.scrollWidth:0,s?s.clientWidth:0),p=v(i.scrollHeight,i.clientHeight,s?s.scrollHeight:0,s?s.clientHeight:0),u=-l.scrollLeft+C(n),d=-l.scrollTop,"rtl"===S(s||i).direction&&(u+=v(i.clientWidth,s?s.clientWidth:0)-c),{width:c,height:p,x:u,y:d}))}function el(){return{top:0,right:0,bottom:0,left:0}}function es(e){return Object.assign({},el(),e)}function ec(e,t){return t.reduce(function(t,r){return t[r]=e,t},{})}function ep(e,t){void 0===t&&(t={});var r,o,n,a,i,l,s,c,p=t,u=p.placement,d=void 0===u?e.placement:u,f=p.strategy,g=void 0===f?e.strategy:f,y=p.boundary,x=p.rootBoundary,A=p.elementContext,w=void 0===A?W:A,C=p.altBoundary,R=p.padding,I=void 0===R?0:R,j=es("number"!=typeof I?I:ec(I,N)),T=e.rects.popper,z=e.elements[void 0!==C&&C?w===W?"reference":W:w],B=(r=h(z)?z:z.contextElement||O(e.elements.popper),o=void 0===y?"clippingParents":y,n=void 0===x?V:x,s=(l=[].concat("clippingParents"===o?(a=P(M(r)),!h(i=["absolute","fixed"].indexOf(S(r).position)>=0&&m(r)?E(r):r)?[]:a.filter(function(e){return h(e)&&en(e,i)&&"body"!==k(e)})):[].concat(o),[n]))[0],(c=l.reduce(function(e,t){var o=ei(r,t,g);return e.top=v(o.top,e.top),e.right=b(o.right,e.right),e.bottom=b(o.bottom,e.bottom),e.left=v(o.left,e.left),e},ei(r,s,g))).width=c.right-c.left,c.height=c.bottom-c.top,c.x=c.left,c.y=c.top,c),H=$(e.elements.reference),F=Z({reference:H,element:T,strategy:"absolute",placement:d}),X=ea(Object.assign({},T,F)),q=w===W?X:H,U={top:B.top-q.top+j.top,bottom:q.bottom-B.bottom+j.bottom,left:B.left-q.left+j.left,right:q.right-B.right+j.right},_=e.modifiersData.offset;if(w===W&&_){var K=_[d];Object.keys(U).forEach(function(e){var t=[D,L].indexOf(e)>=0?1:-1,r=["top",L].indexOf(e)>=0?"y":"x";U[e]+=K[r]*t})}return U}function eu(e,t,r){return v(e,b(t,r))}function ed(e,t,r){return void 0===r&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function ef(e){return["top",D,L,T].some(function(t){return e[t]>=0})}var eh=(a=void 0===(n=(o={defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,r=e.instance,o=e.options,n=o.scroll,a=void 0===n||n,i=o.resize,l=void 0===i||i,s=f(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&c.forEach(function(e){e.addEventListener("scroll",r.update,_)}),l&&s.addEventListener("resize",r.update,_),function(){a&&c.forEach(function(e){e.removeEventListener("scroll",r.update,_)}),l&&s.removeEventListener("resize",r.update,_)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,r=e.name;t.modifiersData[r]=Z({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,r=e.options,o=r.gpuAcceleration,n=r.adaptive,a=r.roundOffsets,i=void 0===a||a,l={placement:K(t.placement),variation:G(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:void 0===o||o,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,Q(Object.assign({},l,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:void 0===n||n,roundOffsets:i})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,Q(Object.assign({},l,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:i})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},{name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach(function(e){var r=t.styles[e]||{},o=t.attributes[e]||{},n=t.elements[e];m(n)&&k(n)&&(Object.assign(n.style,r),Object.keys(o).forEach(function(e){var t=o[e];!1===t?n.removeAttribute(e):n.setAttribute(e,!0===t?"":t)}))})},effect:function(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach(function(e){var o=t.elements[e],n=t.attributes[e]||{},a=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:r[e]).reduce(function(e,t){return e[t]="",e},{});m(o)&&k(o)&&(Object.assign(o.style,a),Object.keys(n).forEach(function(e){o.removeAttribute(e)}))})}},requires:["computeStyles"]},{name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,r=e.options,o=e.name,n=r.offset,a=void 0===n?[0,0]:n,i=F.reduce(function(e,r){var o,n,i,l,s,c;return e[r]=(o=t.rects,i=[T,"top"].indexOf(n=K(r))>=0?-1:1,s=(l="function"==typeof a?a(Object.assign({},o,{placement:r})):a)[0],c=l[1],s=s||0,c=(c||0)*i,[T,D].indexOf(n)>=0?{x:c,y:s}:{x:s,y:c}),e},{}),l=i[t.placement],s=l.x,c=l.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=s,t.modifiersData.popperOffsets.y+=c),t.modifiersData[o]=i}},{name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,r=e.options,o=e.name;if(!t.modifiersData[o]._skip){for(var n=r.mainAxis,a=void 0===n||n,i=r.altAxis,l=void 0===i||i,s=r.fallbackPlacements,c=r.padding,p=r.boundary,u=r.rootBoundary,d=r.altBoundary,f=r.flipVariations,h=void 0===f||f,m=r.allowedAutoPlacements,g=t.options.placement,v=K(g)===g,b=s||(v||!h?[et(g)]:function(e){if(K(e)===z)return[];var t=et(e);return[eo(e),t,eo(t)]}(g)),y=[g].concat(b).reduce(function(e,r){var o,n,a,i,l,s,d,f,g,v,b,y;return e.concat(K(r)===z?(n=(o={placement:r,boundary:p,rootBoundary:u,padding:c,flipVariations:h,allowedAutoPlacements:m}).placement,a=o.boundary,i=o.rootBoundary,l=o.padding,s=o.flipVariations,f=void 0===(d=o.allowedAutoPlacements)?F:d,0===(b=(v=(g=G(n))?s?H:H.filter(function(e){return G(e)===g}):N).filter(function(e){return f.indexOf(e)>=0})).length&&(b=v),Object.keys(y=b.reduce(function(e,r){return e[r]=ep(t,{placement:r,boundary:a,rootBoundary:i,padding:l})[K(r)],e},{})).sort(function(e,t){return y[e]-y[t]})):r)},[]),x=t.rects.reference,A=t.rects.popper,$=new Map,w=!0,k=y[0],O=0;O<y.length;O++){var C=y[O],S=K(C),R=G(C)===B,I=["top",L].indexOf(S)>=0,M=I?"width":"height",P=ep(t,{placement:C,boundary:p,rootBoundary:u,altBoundary:d,padding:c}),j=I?R?D:T:R?L:"top";x[M]>A[M]&&(j=et(j));var E=et(j),V=[];if(a&&V.push(P[S]<=0),l&&V.push(P[j]<=0,P[E]<=0),V.every(function(e){return e})){k=C,w=!1;break}$.set(C,V)}if(w)for(var W=h?3:1,X=function(e){var t=y.find(function(t){var r=$.get(t);if(r)return r.slice(0,e).every(function(e){return e})});if(t)return k=t,"break"},q=W;q>0&&"break"!==X(q);q--);t.placement!==k&&(t.modifiersData[o]._skip=!0,t.placement=k,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},{name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,r=e.options,o=e.name,n=r.mainAxis,a=r.altAxis,i=r.boundary,l=r.rootBoundary,s=r.altBoundary,c=r.padding,p=r.tether,u=void 0===p||p,d=r.tetherOffset,f=void 0===d?0:d,h=ep(t,{boundary:i,rootBoundary:l,padding:c,altBoundary:s}),m=K(t.placement),g=G(t.placement),y=!g,x=Y(m),A="x"===x?"y":"x",$=t.modifiersData.popperOffsets,w=t.rects.reference,k=t.rects.popper,O="function"==typeof f?f(Object.assign({},t.rects,{placement:t.placement})):f,C="number"==typeof O?{mainAxis:O,altAxis:O}:Object.assign({mainAxis:0,altAxis:0},O),S=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,R={x:0,y:0};if($){if(void 0===n||n){var M,P="y"===x?"top":T,j="y"===x?L:D,z="y"===x?"height":"width",N=$[x],V=N+h[P],W=N-h[j],H=u?-k[z]/2:0,F=g===B?w[z]:k[z],X=g===B?-k[z]:-w[z],q=t.elements.arrow,U=u&&q?I(q):{width:0,height:0},_=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:el(),Z=_[P],J=_[j],Q=eu(0,w[z],U[z]),ee=y?w[z]/2-H-Q-Z-C.mainAxis:F-Q-Z-C.mainAxis,et=y?-w[z]/2+H+Q+J+C.mainAxis:X+Q+J+C.mainAxis,er=t.elements.arrow&&E(t.elements.arrow),eo=er?"y"===x?er.clientTop||0:er.clientLeft||0:0,en=null!=(M=null==S?void 0:S[x])?M:0,ea=eu(u?b(V,N+ee-en-eo):V,N,u?v(W,N+et-en):W);$[x]=ea,R[x]=ea-N}if(void 0!==a&&a){var ei,es,ec="x"===x?"top":T,ed="x"===x?L:D,ef=$[A],eh="y"===A?"height":"width",em=ef+h[ec],eg=ef-h[ed],ev=-1!==["top",T].indexOf(m),eb=null!=(es=null==S?void 0:S[A])?es:0,ey=ev?em:ef-w[eh]-k[eh]-eb+C.altAxis,ex=ev?ef+w[eh]+k[eh]-eb-C.altAxis:eg,eA=u&&ev?(ei=eu(ey,ef,ex))>ex?ex:ei:eu(u?ey:em,ef,u?ex:eg);$[A]=eA,R[A]=eA-ef}t.modifiersData[o]=R}},requiresIfExists:["offset"]},{name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,r=e.state,o=e.name,n=e.options,a=r.elements.arrow,i=r.modifiersData.popperOffsets,l=K(r.placement),s=Y(l),c=[T,D].indexOf(l)>=0?"height":"width";if(a&&i){var p,u=(p=n.padding,es("number"!=typeof(p="function"==typeof p?p(Object.assign({},r.rects,{placement:r.placement})):p)?p:ec(p,N))),d=I(a),f="y"===s?"top":T,h="y"===s?L:D,m=r.rects.reference[c]+r.rects.reference[s]-i[s]-r.rects.popper[c],g=i[s]-r.rects.reference[s],v=E(a),b=v?"y"===s?v.clientHeight||0:v.clientWidth||0:0,y=u[f],x=b-d[c]-u[h],A=b/2-d[c]/2+(m/2-g/2),$=eu(y,A,x);r.modifiersData[o]=((t={})[s]=$,t.centerOffset=$-A,t)}},effect:function(e){var t=e.state,r=e.options.element,o=void 0===r?"[data-popper-arrow]":r;null==o||("string"!=typeof o||(o=t.elements.popper.querySelector(o)))&&en(t.elements.popper,o)&&(t.elements.arrow=o)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,r=e.name,o=t.rects.reference,n=t.rects.popper,a=t.modifiersData.preventOverflow,i=ep(t,{elementContext:"reference"}),l=ep(t,{altBoundary:!0}),s=ed(i,o),c=ed(l,n,a),p=ef(s),u=ef(c);t.modifiersData[r]={referenceClippingOffsets:s,popperEscapeOffsets:c,isReferenceHidden:p,hasPopperEscaped:u},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":p,"data-popper-escaped":u})}}]}).defaultModifiers)?[]:n,l=void 0===(i=o.defaultOptions)?q:i,function(e,t,r){void 0===r&&(r=l);var o,n,i={placement:"bottom",orderedModifiers:[],options:Object.assign({},q,l),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},s=[],c=!1,p={state:i,setOptions:function(r){var o,n,c,d,f,m,g="function"==typeof r?r(i.options):r;u(),i.options=Object.assign({},l,i.options,g),i.scrollParents={reference:h(e)?P(e):e.contextElement?P(e.contextElement):[],popper:P(t)};var v=(n=Object.keys(o=[].concat(a,i.options.modifiers).reduce(function(e,t){var r=e[t.name];return e[t.name]=r?Object.assign({},r,t,{options:Object.assign({},r.options,t.options),data:Object.assign({},r.data,t.data)}):t,e},{})).map(function(e){return o[e]}),c=new Map,d=new Set,f=[],n.forEach(function(e){c.set(e.name,e)}),n.forEach(function(e){d.has(e.name)||function e(t){d.add(t.name),[].concat(t.requires||[],t.requiresIfExists||[]).forEach(function(t){if(!d.has(t)){var r=c.get(t);r&&e(r)}}),f.push(t)}(e)}),m=f,X.reduce(function(e,t){return e.concat(m.filter(function(e){return e.phase===t}))},[]));return i.orderedModifiers=v.filter(function(e){return e.enabled}),i.orderedModifiers.forEach(function(e){var t=e.name,r=e.options,o=e.effect;if("function"==typeof o){var n=o({state:i,name:t,instance:p,options:void 0===r?{}:r});s.push(n||function(){})}}),p.update()},forceUpdate:function(){if(!c){var e=i.elements,t=e.reference,r=e.popper;if(U(t,r)){i.rects={reference:(o=E(r),n="fixed"===i.options.strategy,a=m(o),d=m(o)&&(s=y((l=o.getBoundingClientRect()).width)/o.offsetWidth||1,u=y(l.height)/o.offsetHeight||1,1!==s||1!==u),h=O(o),g=$(t,d,n),v={scrollLeft:0,scrollTop:0},b={x:0,y:0},(a||!a&&!n)&&(("body"!==k(o)||R(h))&&(v=function(e){return e!==f(e)&&m(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:w(e)}(o)),m(o)?(b=$(o,!0),b.x+=o.clientLeft,b.y+=o.clientTop):h&&(b.x=C(h))),{x:g.left+v.scrollLeft-b.x,y:g.top+v.scrollTop-b.y,width:g.width,height:g.height}),popper:I(r)},i.reset=!1,i.placement=i.options.placement,i.orderedModifiers.forEach(function(e){return i.modifiersData[e.name]=Object.assign({},e.data)});for(var o,n,a,l,s,u,d,h,g,v,b,x=0;x<i.orderedModifiers.length;x++){if(!0===i.reset){i.reset=!1,x=-1;continue}var A=i.orderedModifiers[x],S=A.fn,M=A.options,P=void 0===M?{}:M,j=A.name;"function"==typeof S&&(i=S({state:i,options:P,name:j,instance:p})||i)}}}},update:(o=function(){return new Promise(function(e){p.forceUpdate(),e(i)})},function(){return n||(n=new Promise(function(e){Promise.resolve().then(function(){n=void 0,e(o())})})),n}),destroy:function(){u(),c=!0}};if(!U(e,t))return p;function u(){s.forEach(function(e){return e()}),s=[]}return p.setOptions(r).then(function(e){!c&&r.onFirstUpdate&&r.onFirstUpdate(e)}),p}),em=r(81023),eg=r(77893),ev=r(36961),eb=r(29009),ey=r(46733);function ex(e){return(0,ey.Ay)("MuiPopper",e)}(0,eb.A)("MuiPopper",["root"]);var eA=r(62540);function e$(e){return"function"==typeof e?e():e}let ew={},ek=c.forwardRef(function(e,t){let{anchorEl:r,children:o,direction:n,disablePortal:a,modifiers:i,open:l,placement:s,popperOptions:d,popperRef:f,slotProps:h={},slots:m={},TransitionProps:g,ownerState:v,...b}=e,y=c.useRef(null),x=(0,p.A)(y,t),A=c.useRef(null),$=(0,p.A)(A,f),w=c.useRef($);(0,u.A)(()=>{w.current=$},[$]),c.useImperativeHandle(f,()=>A.current,[]);let k=function(e,t){if("ltr"===t)return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}(s,n),[O,C]=c.useState(k),[S,R]=c.useState(e$(r));c.useEffect(()=>{A.current&&A.current.forceUpdate()}),c.useEffect(()=>{r&&R(e$(r))},[r]),(0,u.A)(()=>{if(!S||!l)return;let e=[{name:"preventOverflow",options:{altBoundary:a}},{name:"flip",options:{altBoundary:a}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:e})=>{C(e.placement)}}];null!=i&&(e=e.concat(i)),d&&null!=d.modifiers&&(e=e.concat(d.modifiers));let t=eh(S,y.current,{placement:k,...d,modifiers:e});return w.current(t),()=>{t.destroy(),w.current(null)}},[S,a,i,l,d,k]);let I={placement:O};null!==g&&(I.TransitionProps=g);let M=(e=>{let{classes:t}=e;return(0,em.A)({root:["root"]},ex,t)})(e),P=m.root??"div",j=(0,eg.A)({elementType:P,externalSlotProps:h.root,externalForwardedProps:b,additionalProps:{role:"tooltip",ref:x},ownerState:e,className:M.root});return(0,eA.jsx)(P,{...j,children:"function"==typeof o?o(I):o})}),eO=c.forwardRef(function(e,t){let r,{anchorEl:o,children:n,container:a,direction:i="ltr",disablePortal:l=!1,keepMounted:s=!1,modifiers:p,open:u,placement:f="bottom",popperOptions:h=ew,popperRef:m,style:g,transition:v=!1,slotProps:b={},slots:y={},...x}=e,[A,$]=c.useState(!0);if(!s&&!u&&(!v||A))return null;if(a)r=a;else if(o){let e=e$(o);r=e&&void 0!==e.nodeType?(0,d.A)(e).body:(0,d.A)(null).body}let w=!u&&s&&(!v||A)?"none":void 0,k=v?{in:u,onEnter:()=>{$(!1)},onExited:()=>{$(!0)}}:void 0;return(0,eA.jsx)(ev.A,{disablePortal:l,container:r,children:(0,eA.jsx)(ek,{anchorEl:o,direction:i,disablePortal:l,modifiers:p,ref:t,open:v?!A:u,placement:f,popperOptions:h,popperRef:m,slotProps:b,slots:y,...x,style:{position:"fixed",top:0,left:0,display:w,...g},TransitionProps:k,children:n})})});var eC=r(77308),eS=r(72052);let eR=(0,eC.A)(eO,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),eI=c.forwardRef(function(e,t){let r=(0,s.I)(),{anchorEl:o,component:n,components:a,componentsProps:i,container:l,disablePortal:c,keepMounted:p,modifiers:u,open:d,placement:f,popperOptions:h,popperRef:m,transition:g,slots:v,slotProps:b,...y}=(0,eS.b)({props:e,name:"MuiPopper"}),x=v?.root??a?.Root,A={anchorEl:o,container:l,disablePortal:c,keepMounted:p,modifiers:u,open:d,placement:f,popperOptions:h,popperRef:m,transition:g,...y};return(0,eA.jsx)(eR,{as:n,direction:r?"rtl":"ltr",slots:{root:x},slotProps:b??i,...A,ref:t})})},17834(e,t,r){r.d(t,{A:()=>a}),r(70451);var o=r(22402),n=r(62540);let a=(0,o.A)((0,n.jsx)("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close")},81227(e,t,r){r.d(t,{A:()=>h,Z:()=>c});var o=r(70451),n=r(54553),a=r(89369),i=r(83183),l=r(71849);function s(e){return e.normalize("NFD").replace(/[\u0300-\u036f]/g,"")}function c(e={}){let{ignoreAccents:t=!0,ignoreCase:r=!0,limit:o,matchFrom:n="any",stringify:a,trim:i=!1}=e;return(e,{inputValue:l,getOptionLabel:c})=>{let p=i?l.trim():l;r&&(p=p.toLowerCase()),t&&(p=s(p));let u=p?e.filter(e=>{let o=(a||c)(e);return r&&(o=o.toLowerCase()),t&&(o=s(o)),"start"===n?o.startsWith(p):o.includes(p)}):e;return"number"==typeof o?u.slice(0,o):u}}let p=c(),u=e=>null!==e.current&&e.current.parentElement?.contains(document.activeElement),d=[];function f(e,t,r){if(t||null==e)return"";let o=r(e);return"string"==typeof o?o:""}let h=function(e){var t;let r,{unstable_isActiveElementInListbox:s=u,unstable_classNamePrefix:c="Mui",autoComplete:h=!1,autoHighlight:m=!1,autoSelect:g=!1,blurOnSelect:v=!1,clearOnBlur:b=!e.freeSolo,clearOnEscape:y=!1,componentName:x="useAutocomplete",defaultValue:A=e.multiple?d:null,disableClearable:$=!1,disableCloseOnSelect:w=!1,disabled:k,disabledItemsFocusable:O=!1,disableListWrap:C=!1,filterOptions:S=p,filterSelectedOptions:R=!1,freeSolo:I=!1,getOptionDisabled:M,getOptionKey:P,getOptionLabel:j=e=>e.label??e,groupBy:E,handleHomeEndKeys:L=!e.freeSolo,id:D,includeInputInList:T=!1,inputValue:z,isOptionEqualToValue:N=(e,t)=>e===t,multiple:B=!1,onChange:V,onClose:W,onHighlightChange:H,onInputChange:F,onOpen:X,open:q,openOnFocus:U=!1,options:_,readOnly:K=!1,selectOnFocus:G=!e.freeSolo,value:Y}=e,Z=(0,n.A)(D),J=j;J=e=>{let t=j(e);return"string"!=typeof t?String(t):t};let Q=o.useRef(!1),ee=o.useRef(!0),et=o.useRef(null),er=o.useRef(null),[eo,en]=o.useState(null),[ea,ei]=o.useState(-1),el=m?0:-1,es=o.useRef(el),ec=o.useRef(f(A??Y,B,J)).current,[ep,eu]=(0,a.A)({controlled:Y,default:A,name:x}),[ed,ef]=(0,a.A)({controlled:z,default:ec,name:x,state:"inputValue"}),[eh,em]=o.useState(!1),eg=o.useCallback((e,t,r)=>{if(!(B?ep.length<t.length:null!==t)&&!b)return;let o=f(t,B,J);ed!==o&&(ef(o),F&&F(e,o,r))},[J,ed,B,F,ef,b,ep]),[ev,eb]=(0,a.A)({controlled:q,default:!1,name:x,state:"open"}),[ey,ex]=o.useState(!0),eA=!B&&null!=ep&&ed===J(ep),e$=ev&&!K,ew=e$?S(_.filter(e=>!(R&&(B?ep:[ep]).some(t=>null!==t&&N(e,t)))),{inputValue:eA&&ey?"":ed,getOptionLabel:J}):[],ek=(t={filteredOptions:ew,value:ep,inputValue:ed},r=o.useRef({}),o.useEffect(()=>{r.current=t}),r.current);o.useEffect(()=>{let e=ep!==ek.value;eh&&!e||(!I||e)&&eg(null,ep,"reset")},[ep,eg,eh,ek.value,I]);let eO=ev&&ew.length>0&&!K,eC=(0,i.A)(e=>{-1===e?et.current.focus():eo.querySelector(`[data-tag-index="${e}"]`).focus()});o.useEffect(()=>{B&&ea>ep.length-1&&(ei(-1),eC(-1))},[ep,B,ea,eC]);let eS=(0,i.A)(({event:e,index:t,reason:r})=>{if(es.current=t,-1===t?et.current.removeAttribute("aria-activedescendant"):et.current.setAttribute("aria-activedescendant",`${Z}-option-${t}`),H&&["mouse","keyboard","touch"].includes(r)&&H(e,-1===t?null:ew[t],r),!er.current)return;let o=er.current.querySelector(`[role="option"].${c}-focused`);o&&(o.classList.remove(`${c}-focused`),o.classList.remove(`${c}-focusVisible`));let n=er.current;if("listbox"!==er.current.getAttribute("role")&&(n=er.current.parentElement.querySelector('[role="listbox"]')),!n)return;if(-1===t){n.scrollTop=0;return}let a=er.current.querySelector(`[data-option-index="${t}"]`);if(a&&(a.classList.add(`${c}-focused`),"keyboard"===r&&a.classList.add(`${c}-focusVisible`),n.scrollHeight>n.clientHeight&&"mouse"!==r&&"touch"!==r)){let e=n.clientHeight+n.scrollTop,t=a.offsetTop+a.offsetHeight;t>e?n.scrollTop=t-n.clientHeight:a.offsetTop-a.offsetHeight*(1.3*!!E)<n.scrollTop&&(n.scrollTop=a.offsetTop-a.offsetHeight*(1.3*!!E))}}),eR=(0,i.A)(({event:e,diff:t,direction:r="next",reason:o})=>{if(!e$)return;let n=function(e,t){if(!er.current||e<0||e>=ew.length)return -1;let r=e;for(;;){let o=er.current.querySelector(`[data-option-index="${r}"]`),n=!O&&(!o||o.disabled||"true"===o.getAttribute("aria-disabled"));if(o&&o.hasAttribute("tabindex")&&!n)return r;if((r="next"===t?(r+1)%ew.length:(r-1+ew.length)%ew.length)===e)return -1}}((()=>{let e=ew.length-1;if("reset"===t)return el;if("start"===t)return 0;if("end"===t)return e;let r=es.current+t;return r<0?-1===r&&T?-1:C&&-1!==es.current||Math.abs(t)>1?0:e:r>e?r===e+1&&T?-1:C||Math.abs(t)>1?e:0:r})(),r);if(eS({index:n,reason:o,event:e}),h&&"reset"!==t)if(-1===n)et.current.value=ed;else{let e=J(ew[n]);et.current.value=e,0===e.toLowerCase().indexOf(ed.toLowerCase())&&ed.length>0&&et.current.setSelectionRange(ed.length,e.length)}}),eI=o.useCallback(()=>{if(!e$)return;let e=(()=>{var e;if(-1!==es.current&&ek.filteredOptions&&ek.filteredOptions.length!==ew.length&&ek.inputValue===ed&&(B?ep.length===ek.value.length&&ek.value.every((e,t)=>J(ep[t])===J(e)):(e=ek.value,(e?J(e):"")===(ep?J(ep):"")))){let e=ek.filteredOptions[es.current];if(e)return ew.findIndex(t=>J(t)===J(e))}return -1})();if(-1!==e){es.current=e;return}let t=B?ep[0]:ep;if(0===ew.length||null==t)return void eR({diff:"reset"});if(er.current){if(null!=t){let e=ew[es.current];if(B&&e&&-1!==ep.findIndex(t=>N(e,t)))return;let r=ew.findIndex(e=>N(e,t));-1===r?eR({diff:"reset"}):eS({index:r});return}if(es.current>=ew.length-1)return void eS({index:ew.length-1});eS({index:es.current})}},[ew.length,!B&&ep,R,eR,eS,e$,ed,B]),eM=(0,i.A)(e=>{(0,l.A)(er,e),e&&eI()});o.useEffect(()=>{eI()},[eI]);let eP=e=>{!ev&&(eb(!0),ex(!0),X&&X(e))},ej=(e,t)=>{ev&&(eb(!1),W&&W(e,t))},eE=(e,t,r,o)=>{if(B){if(ep.length===t.length&&ep.every((e,r)=>e===t[r]))return}else if(ep===t)return;V&&V(e,t,r,o),eu(t)},eL=o.useRef(!1),eD=(e,t,r="selectOption",o="options")=>{let n=r,a=t;if(B){let e=(a=Array.isArray(ep)?ep.slice():[]).findIndex(e=>N(t,e));-1===e?a.push(t):"freeSolo"!==o&&(a.splice(e,1),n="removeOption")}eg(e,a,n),eE(e,a,n,{option:t}),w||e&&(e.ctrlKey||e.metaKey)||ej(e,n),(!0===v||"touch"===v&&eL.current||"mouse"===v&&!eL.current)&&et.current.blur()},eT=(e,t)=>{if(!B)return;""===ed&&ej(e,"toggleInput");let r=ea;-1===ea?""===ed&&"previous"===t&&(r=ep.length-1):((r+="next"===t?1:-1)<0&&(r=0),r===ep.length&&(r=-1)),ei(r=function(e,t){if(-1===e)return -1;let r=e;for(;;){if("next"===t&&r===ep.length||"previous"===t&&-1===r)return -1;let e=eo.querySelector(`[data-tag-index="${r}"]`);if(e&&e.hasAttribute("tabindex")&&!e.disabled&&"true"!==e.getAttribute("aria-disabled"))return r;r+="next"===t?1:-1}}(r,t)),eC(r)},ez=e=>{Q.current=!0,ef(""),F&&F(e,"","clear"),eE(e,B?[]:null,"clear")},eN=e=>{em(!0),U&&!Q.current&&eP(e)},eB=e=>{s(er)?et.current.focus():(em(!1),ee.current=!0,Q.current=!1,g&&-1!==es.current&&e$?eD(e,ew[es.current],"blur"):g&&I&&""!==ed?eD(e,ed,"blur","freeSolo"):b&&eg(e,ep,"blur"),ej(e,"blur"))},eV=e=>{let t=e.target.value;ed!==t&&(ef(t),ex(!1),F&&F(e,t,"input")),""===t?$||B||eE(e,null,"clear"):eP(e)},eW=e=>{let t=Number(e.currentTarget.getAttribute("data-option-index"));es.current!==t&&eS({event:e,index:t,reason:"mouse"})},eH=e=>{eS({event:e,index:Number(e.currentTarget.getAttribute("data-option-index")),reason:"touch"}),eL.current=!0},eF=e=>{let t=Number(e.currentTarget.getAttribute("data-option-index"));eD(e,ew[t],"selectOption"),eL.current=!1},eX=e=>{ev?ej(e,"toggleInput"):eP(e)},eq=e=>{e.currentTarget.contains(e.target)&&e.target.getAttribute("id")!==Z&&e.preventDefault()},eU=e=>{e.currentTarget.contains(e.target)&&(et.current.focus(),G&&ee.current&&et.current.selectionEnd-et.current.selectionStart==0&&et.current.select(),ee.current=!1)},e_=e=>{k||""!==ed&&ev||eX(e)},eK=I&&ed.length>0;eK=eK||(B?ep.length>0:null!==ep);let eG=ew;return E&&(eG=ew.reduce((e,t,r)=>{let o=E(t);return e.length>0&&e[e.length-1].group===o?e[e.length-1].options.push(t):e.push({key:r,index:r,group:o,options:[t]}),e},[])),k&&eh&&eB(),{getRootProps:(e={})=>({...e,onKeyDown:t=>{if(e.onKeyDown&&e.onKeyDown(t),!t.defaultMuiPrevented&&(-1===ea||["ArrowLeft","ArrowRight"].includes(t.key)||(ei(-1),eC(-1)),229!==t.which))switch(t.key){case"Home":e$&&L&&(t.preventDefault(),eR({diff:"start",direction:"next",reason:"keyboard",event:t}));break;case"End":e$&&L&&(t.preventDefault(),eR({diff:"end",direction:"previous",reason:"keyboard",event:t}));break;case"PageUp":t.preventDefault(),eR({diff:-5,direction:"previous",reason:"keyboard",event:t}),eP(t);break;case"PageDown":t.preventDefault(),eR({diff:5,direction:"next",reason:"keyboard",event:t}),eP(t);break;case"ArrowDown":t.preventDefault(),eR({diff:1,direction:"next",reason:"keyboard",event:t}),eP(t);break;case"ArrowUp":t.preventDefault(),eR({diff:-1,direction:"previous",reason:"keyboard",event:t}),eP(t);break;case"ArrowLeft":eT(t,"previous");break;case"ArrowRight":eT(t,"next");break;case"Enter":if(-1!==es.current&&e$){let e=ew[es.current],r=!!M&&M(e);if(t.preventDefault(),r)return;eD(t,e,"selectOption"),h&&et.current.setSelectionRange(et.current.value.length,et.current.value.length)}else I&&""!==ed&&!1===eA&&(B&&t.preventDefault(),eD(t,ed,"createOption","freeSolo"));break;case"Escape":e$?(t.preventDefault(),t.stopPropagation(),ej(t,"escape")):y&&(""!==ed||B&&ep.length>0)&&(t.preventDefault(),t.stopPropagation(),ez(t));break;case"Backspace":if(B&&!K&&""===ed&&ep.length>0){let e=-1===ea?ep.length-1:ea,r=ep.slice();r.splice(e,1),eE(t,r,"removeOption",{option:ep[e]})}break;case"Delete":if(B&&!K&&""===ed&&ep.length>0&&-1!==ea){let e=ep.slice();e.splice(ea,1),eE(t,e,"removeOption",{option:ep[ea]})}}},onMouseDown:eq,onClick:eU}),getInputLabelProps:()=>({id:`${Z}-label`,htmlFor:Z}),getInputProps:()=>({id:Z,value:ed,onBlur:eB,onFocus:eN,onChange:eV,onMouseDown:e_,"aria-activedescendant":e$?"":null,"aria-autocomplete":h?"both":"list","aria-controls":eO?`${Z}-listbox`:void 0,"aria-expanded":eO,autoComplete:"off",ref:et,autoCapitalize:"none",spellCheck:"false",role:"combobox",disabled:k}),getClearProps:()=>({tabIndex:-1,type:"button",onClick:ez}),getPopupIndicatorProps:()=>({tabIndex:-1,type:"button",onClick:eX}),getTagProps:({index:e})=>({key:e,"data-tag-index":e,tabIndex:-1,...!K&&{onDelete:t=>{let r=ep.slice();r.splice(e,1),eE(t,r,"removeOption",{option:ep[e]})}}}),getListboxProps:()=>({role:"listbox",id:`${Z}-listbox`,"aria-labelledby":`${Z}-label`,ref:eM,onMouseDown:e=>{e.preventDefault()}}),getOptionProps:({index:e,option:t})=>{let r=(B?ep:[ep]).some(e=>null!=e&&N(t,e)),o=!!M&&M(t);return{key:P?.(t)??J(t),tabIndex:-1,role:"option",id:`${Z}-option-${e}`,onMouseMove:eW,onClick:eF,onTouchStart:eH,"data-option-index":e,"aria-disabled":o,"aria-selected":r}},id:Z,inputValue:ed,value:ep,dirty:eK,expanded:e$&&eo,popupOpen:e$,focused:eh||-1!==ea,anchorEl:eo,setAnchorEl:en,focusedTag:ea,groupedOptions:eG}}},32398(e,t,r){r.d(t,{A:()=>o});let o=r(83183).A},63392(e,t,r){r.d(t,{A:()=>o});let o=r(54553).A},93399(e,t,r){r.d(t,{A:()=>o});function o(e){try{return e.matches(":focus-visible")}catch(e){}return!1}},44394(e,t,r){r.d(t,{A:()=>f});var o=r(49257),n=r(68102),a=r(7490),i=r(70451),l=r.n(i),s=r(33477);function c(e,t){var r=Object.create(null);return e&&i.Children.map(e,function(e){return e}).forEach(function(e){r[e.key]=t&&(0,i.isValidElement)(e)?t(e):e}),r}function p(e,t,r){return null!=r[t]?r[t]:e.props[t]}var u=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},d=function(e){function t(t,r){var o=e.call(this,t,r)||this,n=o.handleExited.bind(function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(o));return o.state={contextValue:{isMounting:!0},handleExited:n,firstRender:!0},o}(0,a.A)(t,e);var r=t.prototype;return r.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},r.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var r,o,n=t.children,a=t.handleExited;return{children:t.firstRender?c(e.children,function(t){return(0,i.cloneElement)(t,{onExited:a.bind(null,t),in:!0,appear:p(t,"appear",e),enter:p(t,"enter",e),exit:p(t,"exit",e)})}):(Object.keys(o=function(e,t){function r(r){return r in t?t[r]:e[r]}e=e||{},t=t||{};var o,n=Object.create(null),a=[];for(var i in e)i in t?a.length&&(n[i]=a,a=[]):a.push(i);var l={};for(var s in t){if(n[s])for(o=0;o<n[s].length;o++){var c=n[s][o];l[n[s][o]]=r(c)}l[s]=r(s)}for(o=0;o<a.length;o++)l[a[o]]=r(a[o]);return l}(n,r=c(e.children))).forEach(function(t){var l=o[t];if((0,i.isValidElement)(l)){var s=t in n,c=t in r,u=n[t],d=(0,i.isValidElement)(u)&&!u.props.in;c&&(!s||d)?o[t]=(0,i.cloneElement)(l,{onExited:a.bind(null,l),in:!0,exit:p(l,"exit",e),enter:p(l,"enter",e)}):c||!s||d?c&&s&&(0,i.isValidElement)(u)&&(o[t]=(0,i.cloneElement)(l,{onExited:a.bind(null,l),in:u.props.in,exit:p(l,"exit",e),enter:p(l,"enter",e)})):o[t]=(0,i.cloneElement)(l,{in:!1})}}),o),firstRender:!1}},r.handleExited=function(e,t){var r=c(this.props.children);e.key in r||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState(function(t){var r=(0,n.A)({},t.children);return delete r[e.key],{children:r}}))},r.render=function(){var e=this.props,t=e.component,r=e.childFactory,n=(0,o.A)(e,["component","childFactory"]),a=this.state.contextValue,i=u(this.state.children).map(r);return(delete n.appear,delete n.enter,delete n.exit,null===t)?l().createElement(s.A.Provider,{value:a},i):l().createElement(s.A.Provider,{value:a},l().createElement(t,n,i))},t}(l().Component);d.propTypes={},d.defaultProps={component:"div",childFactory:function(e){return e}};let f=d}}]);
101
+ `:null,x=(0,l.A)("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,t[r.variant],t[`color${(0,p.A)(r.color)}`]]}})((0,s.A)(({theme:e})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("transform")}},{props:{variant:"indeterminate"},style:b||{animation:`${g} 1.4s linear infinite`}},...Object.entries(e.palette).filter((0,u.A)()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))]}))),A=(0,l.A)("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),$=(0,l.A)("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.circle,t[`circle${(0,p.A)(r.variant)}`],r.disableShrink&&t.circleDisableShrink]}})((0,s.A)(({theme:e})=>({stroke:"currentColor",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("stroke-dashoffset")}},{props:{variant:"indeterminate"},style:{strokeDasharray:"80px, 200px",strokeDashoffset:0}},{props:({ownerState:e})=>"indeterminate"===e.variant&&!e.disableShrink,style:y||{animation:`${v} 1.4s ease-in-out infinite`}}]}))),w=o.forwardRef(function(e,t){let r=(0,c.b)({props:e,name:"MuiCircularProgress"}),{className:o,color:i="primary",disableShrink:l=!1,size:s=40,style:u,thickness:d=3.6,value:f=0,variant:g="indeterminate",...v}=r,b={...r,color:i,disableShrink:l,size:s,thickness:d,value:f,variant:g},y=(e=>{let{classes:t,variant:r,color:o,disableShrink:n}=e,i={root:["root",r,`color${(0,p.A)(o)}`],svg:["svg"],circle:["circle",`circle${(0,p.A)(r)}`,n&&"circleDisableShrink"]};return(0,a.A)(i,h,t)})(b),w={},k={},O={};if("determinate"===g){let e=2*Math.PI*((44-d)/2);w.strokeDasharray=e.toFixed(3),O["aria-valuenow"]=Math.round(f),w.strokeDashoffset=`${((100-f)/100*e).toFixed(3)}px`,k.transform="rotate(-90deg)"}return(0,m.jsx)(x,{className:(0,n.A)(y.root,o),style:{width:s,height:s,...k,...u},ownerState:b,ref:t,role:"progressbar",...O,...v,children:(0,m.jsx)(A,{className:y.svg,ownerState:b,viewBox:"22 22 44 44",children:(0,m.jsx)($,{className:y.circle,style:w,ownerState:b,cx:44,cy:44,r:(44-d)/2,fill:"none",strokeWidth:d})})})})},47095(e,t,r){r.d(t,{A:()=>$});var o=r(70451),n=r(11750),a=r(81023),i=r(63392),l=r(59238),s=r(77308),c=r(23434),p=r(26952),u=r(72052),d=r(1337),f=r(25742),h=r(24726),m=r(29009),g=r(46733);function v(e){return(0,g.Ay)("MuiIconButton",e)}let b=(0,m.A)("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge","loading","loadingIndicator","loadingWrapper"]);var y=r(62540);let x=(0,s.A)(d.A,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,r.loading&&t.loading,"default"!==r.color&&t[`color${(0,h.A)(r.color)}`],r.edge&&t[`edge${(0,h.A)(r.edge)}`],t[`size${(0,h.A)(r.size)}`]]}})((0,c.A)(({theme:e})=>({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),variants:[{props:e=>!e.disableRipple,style:{"--IconButton-hoverBg":e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,l.X4)(e.palette.action.active,e.palette.action.hoverOpacity),"&:hover":{backgroundColor:"var(--IconButton-hoverBg)","@media (hover: none)":{backgroundColor:"transparent"}}}},{props:{edge:"start"},style:{marginLeft:-12}},{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:{edge:"end"},style:{marginRight:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}}]})),(0,c.A)(({theme:e})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(e.palette).filter((0,p.A)()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette).filter((0,p.A)()).map(([t])=>({props:{color:t},style:{"--IconButton-hoverBg":e.vars?`rgba(${(e.vars||e).palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,l.X4)((e.vars||e).palette[t].main,e.palette.action.hoverOpacity)}})),{props:{size:"small"},style:{padding:5,fontSize:e.typography.pxToRem(18)}},{props:{size:"large"},style:{padding:12,fontSize:e.typography.pxToRem(28)}}],[`&.${b.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled},[`&.${b.loading}`]:{color:"transparent"}}))),A=(0,s.A)("span",{name:"MuiIconButton",slot:"LoadingIndicator",overridesResolver:(e,t)=>t.loadingIndicator})(({theme:e})=>({display:"none",position:"absolute",visibility:"visible",top:"50%",left:"50%",transform:"translate(-50%, -50%)",color:(e.vars||e).palette.action.disabled,variants:[{props:{loading:!0},style:{display:"flex"}}]})),$=o.forwardRef(function(e,t){let r=(0,u.b)({props:e,name:"MuiIconButton"}),{edge:o=!1,children:l,className:s,color:c="default",disabled:p=!1,disableFocusRipple:d=!1,size:m="medium",id:g,loading:b=null,loadingIndicator:$,...w}=r,k=(0,i.A)(g),O=$??(0,y.jsx)(f.A,{"aria-labelledby":k,color:"inherit",size:16}),C={...r,edge:o,color:c,disabled:p,disableFocusRipple:d,loading:b,loadingIndicator:O,size:m},S=(e=>{let{classes:t,disabled:r,color:o,edge:n,size:i,loading:l}=e,s={root:["root",l&&"loading",r&&"disabled","default"!==o&&`color${(0,h.A)(o)}`,n&&`edge${(0,h.A)(n)}`,`size${(0,h.A)(i)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]};return(0,a.A)(s,v,t)})(C);return(0,y.jsxs)(x,{id:b?k:g,className:(0,n.A)(S.root,s),centerRipple:!0,focusRipple:!d,disabled:p||b,ref:t,...w,ownerState:C,children:["boolean"==typeof b&&(0,y.jsx)("span",{className:S.loadingWrapper,style:{display:"contents"},children:(0,y.jsx)(A,{className:S.loadingIndicator,ownerState:C,children:b&&O})}),l]})})},59078(e,t,r){r.d(t,{A:()=>g});var o=r(70451),n=r(11750),a=r(81023),i=r(77308),l=r(23434),s=r(72052),c=r(24726),p=r(29009),u=r(46733);function d(e){return(0,u.Ay)("MuiListSubheader",e)}(0,p.A)("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);var f=r(62540);let h=(0,i.A)("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,"default"!==r.color&&t[`color${(0,c.A)(r.color)}`],!r.disableGutters&&t.gutters,r.inset&&t.inset,!r.disableSticky&&t.sticky]}})((0,l.A)(({theme:e})=>({boxSizing:"border-box",lineHeight:"48px",listStyle:"none",color:(e.vars||e).palette.text.secondary,fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(14),variants:[{props:{color:"primary"},style:{color:(e.vars||e).palette.primary.main}},{props:{color:"inherit"},style:{color:"inherit"}},{props:({ownerState:e})=>!e.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:e})=>e.inset,style:{paddingLeft:72}},{props:({ownerState:e})=>!e.disableSticky,style:{position:"sticky",top:0,zIndex:1,backgroundColor:(e.vars||e).palette.background.paper}}]}))),m=o.forwardRef(function(e,t){let r=(0,s.b)({props:e,name:"MuiListSubheader"}),{className:o,color:i="default",component:l="li",disableGutters:p=!1,disableSticky:u=!1,inset:m=!1,...g}=r,v={...r,color:i,component:l,disableGutters:p,disableSticky:u,inset:m},b=(e=>{let{classes:t,color:r,disableGutters:o,inset:n,disableSticky:i}=e,l={root:["root","default"!==r&&`color${(0,c.A)(r)}`,!o&&"gutters",n&&"inset",!i&&"sticky"]};return(0,a.A)(l,d,t)})(v);return(0,f.jsx)(h,{as:l,className:(0,n.A)(b.root,o),ref:t,ownerState:v,...g})});m&&(m.muiSkipListHighlight=!0);let g=m},48865(e,t,r){r.d(t,{A:()=>eI});var o,n,a,i,l,s=r(35216),c=r(70451),p=r(95591),u=r(31789),d=r(10713);function f(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function h(e){var t=f(e).Element;return e instanceof t||e instanceof Element}function m(e){var t=f(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function g(e){if("u"<typeof ShadowRoot)return!1;var t=f(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}var v=Math.max,b=Math.min,y=Math.round;function x(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function A(){return!/^((?!chrome|android).)*safari/i.test(x())}function $(e,t,r){void 0===t&&(t=!1),void 0===r&&(r=!1);var o=e.getBoundingClientRect(),n=1,a=1;t&&m(e)&&(n=e.offsetWidth>0&&y(o.width)/e.offsetWidth||1,a=e.offsetHeight>0&&y(o.height)/e.offsetHeight||1);var i=(h(e)?f(e):window).visualViewport,l=!A()&&r,s=(o.left+(l&&i?i.offsetLeft:0))/n,c=(o.top+(l&&i?i.offsetTop:0))/a,p=o.width/n,u=o.height/a;return{width:p,height:u,top:c,right:s+p,bottom:c+u,left:s,x:s,y:c}}function w(e){var t=f(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function k(e){return e?(e.nodeName||"").toLowerCase():null}function O(e){return((h(e)?e.ownerDocument:e.document)||window.document).documentElement}function C(e){return $(O(e)).left+w(e).scrollLeft}function S(e){return f(e).getComputedStyle(e)}function R(e){var t=S(e),r=t.overflow,o=t.overflowX,n=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+n+o)}function I(e){var t=$(e),r=e.offsetWidth,o=e.offsetHeight;return 1>=Math.abs(t.width-r)&&(r=t.width),1>=Math.abs(t.height-o)&&(o=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:o}}function M(e){return"html"===k(e)?e:e.assignedSlot||e.parentNode||(g(e)?e.host:null)||O(e)}function P(e,t){void 0===t&&(t=[]);var r,o=function e(t){return["html","body","#document"].indexOf(k(t))>=0?t.ownerDocument.body:m(t)&&R(t)?t:e(M(t))}(e),n=o===(null==(r=e.ownerDocument)?void 0:r.body),a=f(o),i=n?[a].concat(a.visualViewport||[],R(o)?o:[]):o,l=t.concat(i);return n?l:l.concat(P(M(i)))}function j(e){return m(e)&&"fixed"!==S(e).position?e.offsetParent:null}function E(e){for(var t=f(e),r=j(e);r&&["table","td","th"].indexOf(k(r))>=0&&"static"===S(r).position;)r=j(r);return r&&("html"===k(r)||"body"===k(r)&&"static"===S(r).position)?t:r||function(e){var t=/firefox/i.test(x());if(/Trident/i.test(x())&&m(e)&&"fixed"===S(e).position)return null;var r=M(e);for(g(r)&&(r=r.host);m(r)&&0>["html","body"].indexOf(k(r));){var o=S(r);if("none"!==o.transform||"none"!==o.perspective||"paint"===o.contain||-1!==["transform","perspective"].indexOf(o.willChange)||t&&"filter"===o.willChange||t&&o.filter&&"none"!==o.filter)return r;r=r.parentNode}return null}(e)||t}var L="bottom",D="right",T="left",z="auto",N=["top",L,D,T],B="start",V="viewport",W="popper",H=N.reduce(function(e,t){return e.concat([t+"-"+B,t+"-end"])},[]),F=[].concat(N,[z]).reduce(function(e,t){return e.concat([t,t+"-"+B,t+"-end"])},[]),X=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"],q={placement:"bottom",modifiers:[],strategy:"absolute"};function U(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return!t.some(function(e){return!(e&&"function"==typeof e.getBoundingClientRect)})}var _={passive:!0};function K(e){return e.split("-")[0]}function G(e){return e.split("-")[1]}function Y(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Z(e){var t,r=e.reference,o=e.element,n=e.placement,a=n?K(n):null,i=n?G(n):null,l=r.x+r.width/2-o.width/2,s=r.y+r.height/2-o.height/2;switch(a){case"top":t={x:l,y:r.y-o.height};break;case L:t={x:l,y:r.y+r.height};break;case D:t={x:r.x+r.width,y:s};break;case T:t={x:r.x-o.width,y:s};break;default:t={x:r.x,y:r.y}}var c=a?Y(a):null;if(null!=c){var p="y"===c?"height":"width";switch(i){case B:t[c]=t[c]-(r[p]/2-o[p]/2);break;case"end":t[c]=t[c]+(r[p]/2-o[p]/2)}}return t}var J={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Q(e){var t,r,o,n,a,i,l,s=e.popper,c=e.popperRect,p=e.placement,u=e.variation,d=e.offsets,h=e.position,m=e.gpuAcceleration,g=e.adaptive,v=e.roundOffsets,b=e.isFixed,x=d.x,A=void 0===x?0:x,$=d.y,w=void 0===$?0:$,k="function"==typeof v?v({x:A,y:w}):{x:A,y:w};A=k.x,w=k.y;var C=d.hasOwnProperty("x"),R=d.hasOwnProperty("y"),I=T,M="top",P=window;if(g){var j=E(s),z="clientHeight",N="clientWidth";j===f(s)&&"static"!==S(j=O(s)).position&&"absolute"===h&&(z="scrollHeight",N="scrollWidth"),("top"===p||(p===T||p===D)&&"end"===u)&&(M=L,w-=(b&&j===P&&P.visualViewport?P.visualViewport.height:j[z])-c.height,w*=m?1:-1),(p===T||("top"===p||p===L)&&"end"===u)&&(I=D,A-=(b&&j===P&&P.visualViewport?P.visualViewport.width:j[N])-c.width,A*=m?1:-1)}var B=Object.assign({position:h},g&&J),V=!0===v?(t={x:A,y:w},r=f(s),o=t.x,n=t.y,{x:y(o*(a=r.devicePixelRatio||1))/a||0,y:y(n*a)/a||0}):{x:A,y:w};return(A=V.x,w=V.y,m)?Object.assign({},B,((l={})[M]=R?"0":"",l[I]=C?"0":"",l.transform=1>=(P.devicePixelRatio||1)?"translate("+A+"px, "+w+"px)":"translate3d("+A+"px, "+w+"px, 0)",l)):Object.assign({},B,((i={})[M]=R?w+"px":"",i[I]=C?A+"px":"",i.transform="",i))}var ee={left:"right",right:"left",bottom:"top",top:"bottom"};function et(e){return e.replace(/left|right|bottom|top/g,function(e){return ee[e]})}var er={start:"end",end:"start"};function eo(e){return e.replace(/start|end/g,function(e){return er[e]})}function en(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&g(r)){var o=t;do{if(o&&e.isSameNode(o))return!0;o=o.parentNode||o.host}while(o)}return!1}function ea(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function ei(e,t,r){var o,n,a,i,l,s,c,p,u,d;return t===V?ea(function(e,t){var r=f(e),o=O(e),n=r.visualViewport,a=o.clientWidth,i=o.clientHeight,l=0,s=0;if(n){a=n.width,i=n.height;var c=A();(c||!c&&"fixed"===t)&&(l=n.offsetLeft,s=n.offsetTop)}return{width:a,height:i,x:l+C(e),y:s}}(e,r)):h(t)?((o=$(t,!1,"fixed"===r)).top=o.top+t.clientTop,o.left=o.left+t.clientLeft,o.bottom=o.top+t.clientHeight,o.right=o.left+t.clientWidth,o.width=t.clientWidth,o.height=t.clientHeight,o.x=o.left,o.y=o.top,o):ea((n=O(e),i=O(n),l=w(n),s=null==(a=n.ownerDocument)?void 0:a.body,c=v(i.scrollWidth,i.clientWidth,s?s.scrollWidth:0,s?s.clientWidth:0),p=v(i.scrollHeight,i.clientHeight,s?s.scrollHeight:0,s?s.clientHeight:0),u=-l.scrollLeft+C(n),d=-l.scrollTop,"rtl"===S(s||i).direction&&(u+=v(i.clientWidth,s?s.clientWidth:0)-c),{width:c,height:p,x:u,y:d}))}function el(){return{top:0,right:0,bottom:0,left:0}}function es(e){return Object.assign({},el(),e)}function ec(e,t){return t.reduce(function(t,r){return t[r]=e,t},{})}function ep(e,t){void 0===t&&(t={});var r,o,n,a,i,l,s,c,p=t,u=p.placement,d=void 0===u?e.placement:u,f=p.strategy,g=void 0===f?e.strategy:f,y=p.boundary,x=p.rootBoundary,A=p.elementContext,w=void 0===A?W:A,C=p.altBoundary,R=p.padding,I=void 0===R?0:R,j=es("number"!=typeof I?I:ec(I,N)),T=e.rects.popper,z=e.elements[void 0!==C&&C?w===W?"reference":W:w],B=(r=h(z)?z:z.contextElement||O(e.elements.popper),o=void 0===y?"clippingParents":y,n=void 0===x?V:x,s=(l=[].concat("clippingParents"===o?(a=P(M(r)),!h(i=["absolute","fixed"].indexOf(S(r).position)>=0&&m(r)?E(r):r)?[]:a.filter(function(e){return h(e)&&en(e,i)&&"body"!==k(e)})):[].concat(o),[n]))[0],(c=l.reduce(function(e,t){var o=ei(r,t,g);return e.top=v(o.top,e.top),e.right=b(o.right,e.right),e.bottom=b(o.bottom,e.bottom),e.left=v(o.left,e.left),e},ei(r,s,g))).width=c.right-c.left,c.height=c.bottom-c.top,c.x=c.left,c.y=c.top,c),H=$(e.elements.reference),F=Z({reference:H,element:T,strategy:"absolute",placement:d}),X=ea(Object.assign({},T,F)),q=w===W?X:H,U={top:B.top-q.top+j.top,bottom:q.bottom-B.bottom+j.bottom,left:B.left-q.left+j.left,right:q.right-B.right+j.right},_=e.modifiersData.offset;if(w===W&&_){var K=_[d];Object.keys(U).forEach(function(e){var t=[D,L].indexOf(e)>=0?1:-1,r=["top",L].indexOf(e)>=0?"y":"x";U[e]+=K[r]*t})}return U}function eu(e,t,r){return v(e,b(t,r))}function ed(e,t,r){return void 0===r&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function ef(e){return["top",D,L,T].some(function(t){return e[t]>=0})}var eh=(a=void 0===(n=(o={defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,r=e.instance,o=e.options,n=o.scroll,a=void 0===n||n,i=o.resize,l=void 0===i||i,s=f(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&c.forEach(function(e){e.addEventListener("scroll",r.update,_)}),l&&s.addEventListener("resize",r.update,_),function(){a&&c.forEach(function(e){e.removeEventListener("scroll",r.update,_)}),l&&s.removeEventListener("resize",r.update,_)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,r=e.name;t.modifiersData[r]=Z({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,r=e.options,o=r.gpuAcceleration,n=r.adaptive,a=r.roundOffsets,i=void 0===a||a,l={placement:K(t.placement),variation:G(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:void 0===o||o,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,Q(Object.assign({},l,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:void 0===n||n,roundOffsets:i})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,Q(Object.assign({},l,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:i})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},{name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach(function(e){var r=t.styles[e]||{},o=t.attributes[e]||{},n=t.elements[e];m(n)&&k(n)&&(Object.assign(n.style,r),Object.keys(o).forEach(function(e){var t=o[e];!1===t?n.removeAttribute(e):n.setAttribute(e,!0===t?"":t)}))})},effect:function(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach(function(e){var o=t.elements[e],n=t.attributes[e]||{},a=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:r[e]).reduce(function(e,t){return e[t]="",e},{});m(o)&&k(o)&&(Object.assign(o.style,a),Object.keys(n).forEach(function(e){o.removeAttribute(e)}))})}},requires:["computeStyles"]},{name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,r=e.options,o=e.name,n=r.offset,a=void 0===n?[0,0]:n,i=F.reduce(function(e,r){var o,n,i,l,s,c;return e[r]=(o=t.rects,i=[T,"top"].indexOf(n=K(r))>=0?-1:1,s=(l="function"==typeof a?a(Object.assign({},o,{placement:r})):a)[0],c=l[1],s=s||0,c=(c||0)*i,[T,D].indexOf(n)>=0?{x:c,y:s}:{x:s,y:c}),e},{}),l=i[t.placement],s=l.x,c=l.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=s,t.modifiersData.popperOffsets.y+=c),t.modifiersData[o]=i}},{name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,r=e.options,o=e.name;if(!t.modifiersData[o]._skip){for(var n=r.mainAxis,a=void 0===n||n,i=r.altAxis,l=void 0===i||i,s=r.fallbackPlacements,c=r.padding,p=r.boundary,u=r.rootBoundary,d=r.altBoundary,f=r.flipVariations,h=void 0===f||f,m=r.allowedAutoPlacements,g=t.options.placement,v=K(g)===g,b=s||(v||!h?[et(g)]:function(e){if(K(e)===z)return[];var t=et(e);return[eo(e),t,eo(t)]}(g)),y=[g].concat(b).reduce(function(e,r){var o,n,a,i,l,s,d,f,g,v,b,y;return e.concat(K(r)===z?(n=(o={placement:r,boundary:p,rootBoundary:u,padding:c,flipVariations:h,allowedAutoPlacements:m}).placement,a=o.boundary,i=o.rootBoundary,l=o.padding,s=o.flipVariations,f=void 0===(d=o.allowedAutoPlacements)?F:d,0===(b=(v=(g=G(n))?s?H:H.filter(function(e){return G(e)===g}):N).filter(function(e){return f.indexOf(e)>=0})).length&&(b=v),Object.keys(y=b.reduce(function(e,r){return e[r]=ep(t,{placement:r,boundary:a,rootBoundary:i,padding:l})[K(r)],e},{})).sort(function(e,t){return y[e]-y[t]})):r)},[]),x=t.rects.reference,A=t.rects.popper,$=new Map,w=!0,k=y[0],O=0;O<y.length;O++){var C=y[O],S=K(C),R=G(C)===B,I=["top",L].indexOf(S)>=0,M=I?"width":"height",P=ep(t,{placement:C,boundary:p,rootBoundary:u,altBoundary:d,padding:c}),j=I?R?D:T:R?L:"top";x[M]>A[M]&&(j=et(j));var E=et(j),V=[];if(a&&V.push(P[S]<=0),l&&V.push(P[j]<=0,P[E]<=0),V.every(function(e){return e})){k=C,w=!1;break}$.set(C,V)}if(w)for(var W=h?3:1,X=function(e){var t=y.find(function(t){var r=$.get(t);if(r)return r.slice(0,e).every(function(e){return e})});if(t)return k=t,"break"},q=W;q>0&&"break"!==X(q);q--);t.placement!==k&&(t.modifiersData[o]._skip=!0,t.placement=k,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},{name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,r=e.options,o=e.name,n=r.mainAxis,a=r.altAxis,i=r.boundary,l=r.rootBoundary,s=r.altBoundary,c=r.padding,p=r.tether,u=void 0===p||p,d=r.tetherOffset,f=void 0===d?0:d,h=ep(t,{boundary:i,rootBoundary:l,padding:c,altBoundary:s}),m=K(t.placement),g=G(t.placement),y=!g,x=Y(m),A="x"===x?"y":"x",$=t.modifiersData.popperOffsets,w=t.rects.reference,k=t.rects.popper,O="function"==typeof f?f(Object.assign({},t.rects,{placement:t.placement})):f,C="number"==typeof O?{mainAxis:O,altAxis:O}:Object.assign({mainAxis:0,altAxis:0},O),S=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,R={x:0,y:0};if($){if(void 0===n||n){var M,P="y"===x?"top":T,j="y"===x?L:D,z="y"===x?"height":"width",N=$[x],V=N+h[P],W=N-h[j],H=u?-k[z]/2:0,F=g===B?w[z]:k[z],X=g===B?-k[z]:-w[z],q=t.elements.arrow,U=u&&q?I(q):{width:0,height:0},_=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:el(),Z=_[P],J=_[j],Q=eu(0,w[z],U[z]),ee=y?w[z]/2-H-Q-Z-C.mainAxis:F-Q-Z-C.mainAxis,et=y?-w[z]/2+H+Q+J+C.mainAxis:X+Q+J+C.mainAxis,er=t.elements.arrow&&E(t.elements.arrow),eo=er?"y"===x?er.clientTop||0:er.clientLeft||0:0,en=null!=(M=null==S?void 0:S[x])?M:0,ea=eu(u?b(V,N+ee-en-eo):V,N,u?v(W,N+et-en):W);$[x]=ea,R[x]=ea-N}if(void 0!==a&&a){var ei,es,ec="x"===x?"top":T,ed="x"===x?L:D,ef=$[A],eh="y"===A?"height":"width",em=ef+h[ec],eg=ef-h[ed],ev=-1!==["top",T].indexOf(m),eb=null!=(es=null==S?void 0:S[A])?es:0,ey=ev?em:ef-w[eh]-k[eh]-eb+C.altAxis,ex=ev?ef+w[eh]+k[eh]-eb-C.altAxis:eg,eA=u&&ev?(ei=eu(ey,ef,ex))>ex?ex:ei:eu(u?ey:em,ef,u?ex:eg);$[A]=eA,R[A]=eA-ef}t.modifiersData[o]=R}},requiresIfExists:["offset"]},{name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,r=e.state,o=e.name,n=e.options,a=r.elements.arrow,i=r.modifiersData.popperOffsets,l=K(r.placement),s=Y(l),c=[T,D].indexOf(l)>=0?"height":"width";if(a&&i){var p,u=(p=n.padding,es("number"!=typeof(p="function"==typeof p?p(Object.assign({},r.rects,{placement:r.placement})):p)?p:ec(p,N))),d=I(a),f="y"===s?"top":T,h="y"===s?L:D,m=r.rects.reference[c]+r.rects.reference[s]-i[s]-r.rects.popper[c],g=i[s]-r.rects.reference[s],v=E(a),b=v?"y"===s?v.clientHeight||0:v.clientWidth||0:0,y=u[f],x=b-d[c]-u[h],A=b/2-d[c]/2+(m/2-g/2),$=eu(y,A,x);r.modifiersData[o]=((t={})[s]=$,t.centerOffset=$-A,t)}},effect:function(e){var t=e.state,r=e.options.element,o=void 0===r?"[data-popper-arrow]":r;null==o||("string"!=typeof o||(o=t.elements.popper.querySelector(o)))&&en(t.elements.popper,o)&&(t.elements.arrow=o)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,r=e.name,o=t.rects.reference,n=t.rects.popper,a=t.modifiersData.preventOverflow,i=ep(t,{elementContext:"reference"}),l=ep(t,{altBoundary:!0}),s=ed(i,o),c=ed(l,n,a),p=ef(s),u=ef(c);t.modifiersData[r]={referenceClippingOffsets:s,popperEscapeOffsets:c,isReferenceHidden:p,hasPopperEscaped:u},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":p,"data-popper-escaped":u})}}]}).defaultModifiers)?[]:n,l=void 0===(i=o.defaultOptions)?q:i,function(e,t,r){void 0===r&&(r=l);var o,n,i={placement:"bottom",orderedModifiers:[],options:Object.assign({},q,l),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},s=[],c=!1,p={state:i,setOptions:function(r){var o,n,c,d,f,m,g="function"==typeof r?r(i.options):r;u(),i.options=Object.assign({},l,i.options,g),i.scrollParents={reference:h(e)?P(e):e.contextElement?P(e.contextElement):[],popper:P(t)};var v=(n=Object.keys(o=[].concat(a,i.options.modifiers).reduce(function(e,t){var r=e[t.name];return e[t.name]=r?Object.assign({},r,t,{options:Object.assign({},r.options,t.options),data:Object.assign({},r.data,t.data)}):t,e},{})).map(function(e){return o[e]}),c=new Map,d=new Set,f=[],n.forEach(function(e){c.set(e.name,e)}),n.forEach(function(e){d.has(e.name)||function e(t){d.add(t.name),[].concat(t.requires||[],t.requiresIfExists||[]).forEach(function(t){if(!d.has(t)){var r=c.get(t);r&&e(r)}}),f.push(t)}(e)}),m=f,X.reduce(function(e,t){return e.concat(m.filter(function(e){return e.phase===t}))},[]));return i.orderedModifiers=v.filter(function(e){return e.enabled}),i.orderedModifiers.forEach(function(e){var t=e.name,r=e.options,o=e.effect;if("function"==typeof o){var n=o({state:i,name:t,instance:p,options:void 0===r?{}:r});s.push(n||function(){})}}),p.update()},forceUpdate:function(){if(!c){var e=i.elements,t=e.reference,r=e.popper;if(U(t,r)){i.rects={reference:(o=E(r),n="fixed"===i.options.strategy,a=m(o),d=m(o)&&(s=y((l=o.getBoundingClientRect()).width)/o.offsetWidth||1,u=y(l.height)/o.offsetHeight||1,1!==s||1!==u),h=O(o),g=$(t,d,n),v={scrollLeft:0,scrollTop:0},b={x:0,y:0},(a||!a&&!n)&&(("body"!==k(o)||R(h))&&(v=function(e){return e!==f(e)&&m(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:w(e)}(o)),m(o)?(b=$(o,!0),b.x+=o.clientLeft,b.y+=o.clientTop):h&&(b.x=C(h))),{x:g.left+v.scrollLeft-b.x,y:g.top+v.scrollTop-b.y,width:g.width,height:g.height}),popper:I(r)},i.reset=!1,i.placement=i.options.placement,i.orderedModifiers.forEach(function(e){return i.modifiersData[e.name]=Object.assign({},e.data)});for(var o,n,a,l,s,u,d,h,g,v,b,x=0;x<i.orderedModifiers.length;x++){if(!0===i.reset){i.reset=!1,x=-1;continue}var A=i.orderedModifiers[x],S=A.fn,M=A.options,P=void 0===M?{}:M,j=A.name;"function"==typeof S&&(i=S({state:i,options:P,name:j,instance:p})||i)}}}},update:(o=function(){return new Promise(function(e){p.forceUpdate(),e(i)})},function(){return n||(n=new Promise(function(e){Promise.resolve().then(function(){n=void 0,e(o())})})),n}),destroy:function(){u(),c=!0}};if(!U(e,t))return p;function u(){s.forEach(function(e){return e()}),s=[]}return p.setOptions(r).then(function(e){!c&&r.onFirstUpdate&&r.onFirstUpdate(e)}),p}),em=r(81023),eg=r(77893),ev=r(36961),eb=r(29009),ey=r(46733);function ex(e){return(0,ey.Ay)("MuiPopper",e)}(0,eb.A)("MuiPopper",["root"]);var eA=r(62540);function e$(e){return"function"==typeof e?e():e}let ew={},ek=c.forwardRef(function(e,t){let{anchorEl:r,children:o,direction:n,disablePortal:a,modifiers:i,open:l,placement:s,popperOptions:d,popperRef:f,slotProps:h={},slots:m={},TransitionProps:g,ownerState:v,...b}=e,y=c.useRef(null),x=(0,p.A)(y,t),A=c.useRef(null),$=(0,p.A)(A,f),w=c.useRef($);(0,u.A)(()=>{w.current=$},[$]),c.useImperativeHandle(f,()=>A.current,[]);let k=function(e,t){if("ltr"===t)return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}(s,n),[O,C]=c.useState(k),[S,R]=c.useState(e$(r));c.useEffect(()=>{A.current&&A.current.forceUpdate()}),c.useEffect(()=>{r&&R(e$(r))},[r]),(0,u.A)(()=>{if(!S||!l)return;let e=[{name:"preventOverflow",options:{altBoundary:a}},{name:"flip",options:{altBoundary:a}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:e})=>{C(e.placement)}}];null!=i&&(e=e.concat(i)),d&&null!=d.modifiers&&(e=e.concat(d.modifiers));let t=eh(S,y.current,{placement:k,...d,modifiers:e});return w.current(t),()=>{t.destroy(),w.current(null)}},[S,a,i,l,d,k]);let I={placement:O};null!==g&&(I.TransitionProps=g);let M=(e=>{let{classes:t}=e;return(0,em.A)({root:["root"]},ex,t)})(e),P=m.root??"div",j=(0,eg.A)({elementType:P,externalSlotProps:h.root,externalForwardedProps:b,additionalProps:{role:"tooltip",ref:x},ownerState:e,className:M.root});return(0,eA.jsx)(P,{...j,children:"function"==typeof o?o(I):o})}),eO=c.forwardRef(function(e,t){let r,{anchorEl:o,children:n,container:a,direction:i="ltr",disablePortal:l=!1,keepMounted:s=!1,modifiers:p,open:u,placement:f="bottom",popperOptions:h=ew,popperRef:m,style:g,transition:v=!1,slotProps:b={},slots:y={},...x}=e,[A,$]=c.useState(!0);if(!s&&!u&&(!v||A))return null;if(a)r=a;else if(o){let e=e$(o);r=e&&void 0!==e.nodeType?(0,d.A)(e).body:(0,d.A)(null).body}let w=!u&&s&&(!v||A)?"none":void 0,k=v?{in:u,onEnter:()=>{$(!1)},onExited:()=>{$(!0)}}:void 0;return(0,eA.jsx)(ev.A,{disablePortal:l,container:r,children:(0,eA.jsx)(ek,{anchorEl:o,direction:i,disablePortal:l,modifiers:p,ref:t,open:v?!A:u,placement:f,popperOptions:h,popperRef:m,slotProps:b,slots:y,...x,style:{position:"fixed",top:0,left:0,display:w,...g},TransitionProps:k,children:n})})});var eC=r(77308),eS=r(72052);let eR=(0,eC.A)(eO,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),eI=c.forwardRef(function(e,t){let r=(0,s.I)(),{anchorEl:o,component:n,components:a,componentsProps:i,container:l,disablePortal:c,keepMounted:p,modifiers:u,open:d,placement:f,popperOptions:h,popperRef:m,transition:g,slots:v,slotProps:b,...y}=(0,eS.b)({props:e,name:"MuiPopper"}),x=v?.root??a?.Root,A={anchorEl:o,container:l,disablePortal:c,keepMounted:p,modifiers:u,open:d,placement:f,popperOptions:h,popperRef:m,transition:g,...y};return(0,eA.jsx)(eR,{as:n,direction:r?"rtl":"ltr",slots:{root:x},slotProps:b??i,...A,ref:t})})},17834(e,t,r){r.d(t,{A:()=>a}),r(70451);var o=r(22402),n=r(62540);let a=(0,o.A)((0,n.jsx)("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close")},43899(e,t,r){r.d(t,{A:()=>m,Z:()=>p});var o=r(70451),n=r(54553),a=r(89369),i=r(23375),l=r(83183),s=r(71849);function c(e){return e.normalize("NFD").replace(/[\u0300-\u036f]/g,"")}function p(e={}){let{ignoreAccents:t=!0,ignoreCase:r=!0,limit:o,matchFrom:n="any",stringify:a,trim:i=!1}=e;return(e,{inputValue:l,getOptionLabel:s})=>{let p=i?l.trim():l;r&&(p=p.toLowerCase()),t&&(p=c(p));let u=p?e.filter(e=>{let o=(a||s)(e);return r&&(o=o.toLowerCase()),t&&(o=c(o)),"start"===n?o.startsWith(p):o.includes(p)}):e;return"number"==typeof o?u.slice(0,o):u}}let u=p(),d=e=>null!==e.current&&e.current.parentElement?.contains(document.activeElement),f=[];function h(e,t,r){if(t||null==e)return"";let o=r(e);return"string"==typeof o?o:""}let m=function(e){let{unstable_isActiveElementInListbox:t=d,unstable_classNamePrefix:r="Mui",autoComplete:c=!1,autoHighlight:p=!1,autoSelect:m=!1,blurOnSelect:g=!1,clearOnBlur:v=!e.freeSolo,clearOnEscape:b=!1,componentName:y="useAutocomplete",defaultValue:x=e.multiple?f:null,disableClearable:A=!1,disableCloseOnSelect:$=!1,disabled:w,disabledItemsFocusable:k=!1,disableListWrap:O=!1,filterOptions:C=u,filterSelectedOptions:S=!1,freeSolo:R=!1,getOptionDisabled:I,getOptionKey:M,getOptionLabel:P=e=>e.label??e,groupBy:j,handleHomeEndKeys:E=!e.freeSolo,id:L,includeInputInList:D=!1,inputValue:T,isOptionEqualToValue:z=(e,t)=>e===t,multiple:N=!1,onChange:B,onClose:V,onHighlightChange:W,onInputChange:H,onOpen:F,open:X,openOnFocus:q=!1,options:U,readOnly:_=!1,selectOnFocus:K=!e.freeSolo,value:G}=e,Y=(0,n.A)(L),Z=P;Z=e=>{let t=P(e);return"string"!=typeof t?String(t):t};let J=o.useRef(!1),Q=o.useRef(!0),ee=o.useRef(null),et=o.useRef(null),[er,eo]=o.useState(null),[en,ea]=o.useState(-1),ei=p?0:-1,el=o.useRef(ei),es=o.useRef(h(x??G,N,Z)).current,[ec,ep]=(0,a.A)({controlled:G,default:x,name:y}),[eu,ed]=(0,a.A)({controlled:T,default:es,name:y,state:"inputValue"}),[ef,eh]=o.useState(!1),em=o.useCallback((e,t,r)=>{if(!(N?ec.length<t.length:null!==t)&&!v)return;let o=h(t,N,Z);eu!==o&&(ed(o),H&&H(e,o,r))},[Z,eu,N,H,ed,v,ec]),[eg,ev]=(0,a.A)({controlled:X,default:!1,name:y,state:"open"}),[eb,ey]=o.useState(!0),ex=!N&&null!=ec&&eu===Z(ec),eA=eg&&!_,e$=eA?C(U.filter(e=>!(S&&(N?ec:[ec]).some(t=>null!==t&&z(e,t)))),{inputValue:ex&&eb?"":eu,getOptionLabel:Z}):[],ew=(0,i.A)({filteredOptions:e$,value:ec,inputValue:eu});o.useEffect(()=>{let e=ec!==ew.value;ef&&!e||(!R||e)&&em(null,ec,"reset")},[ec,em,ef,ew.value,R]);let ek=eg&&e$.length>0&&!_,eO=(0,l.A)(e=>{-1===e?ee.current.focus():er.querySelector(`[data-tag-index="${e}"]`).focus()});o.useEffect(()=>{N&&en>ec.length-1&&(ea(-1),eO(-1))},[ec,N,en,eO]);let eC=(0,l.A)(({event:e,index:t,reason:o})=>{if(el.current=t,-1===t?ee.current.removeAttribute("aria-activedescendant"):ee.current.setAttribute("aria-activedescendant",`${Y}-option-${t}`),W&&["mouse","keyboard","touch"].includes(o)&&W(e,-1===t?null:e$[t],o),!et.current)return;let n=et.current.querySelector(`[role="option"].${r}-focused`);n&&(n.classList.remove(`${r}-focused`),n.classList.remove(`${r}-focusVisible`));let a=et.current;if("listbox"!==et.current.getAttribute("role")&&(a=et.current.parentElement.querySelector('[role="listbox"]')),!a)return;if(-1===t){a.scrollTop=0;return}let i=et.current.querySelector(`[data-option-index="${t}"]`);if(i&&(i.classList.add(`${r}-focused`),"keyboard"===o&&i.classList.add(`${r}-focusVisible`),a.scrollHeight>a.clientHeight&&"mouse"!==o&&"touch"!==o)){let e=a.clientHeight+a.scrollTop,t=i.offsetTop+i.offsetHeight;t>e?a.scrollTop=t-a.clientHeight:i.offsetTop-i.offsetHeight*(1.3*!!j)<a.scrollTop&&(a.scrollTop=i.offsetTop-i.offsetHeight*(1.3*!!j))}}),eS=(0,l.A)(({event:e,diff:t,direction:r="next",reason:o})=>{if(!eA)return;let n=function(e,t){if(!et.current||e<0||e>=e$.length)return -1;let r=e;for(;;){let o=et.current.querySelector(`[data-option-index="${r}"]`),n=!k&&(!o||o.disabled||"true"===o.getAttribute("aria-disabled"));if(o&&o.hasAttribute("tabindex")&&!n)return r;if((r="next"===t?(r+1)%e$.length:(r-1+e$.length)%e$.length)===e)return -1}}((()=>{let e=e$.length-1;if("reset"===t)return ei;if("start"===t)return 0;if("end"===t)return e;let r=el.current+t;return r<0?-1===r&&D?-1:O&&-1!==el.current||Math.abs(t)>1?0:e:r>e?r===e+1&&D?-1:O||Math.abs(t)>1?e:0:r})(),r);if(eC({index:n,reason:o,event:e}),c&&"reset"!==t)if(-1===n)ee.current.value=eu;else{let e=Z(e$[n]);ee.current.value=e,0===e.toLowerCase().indexOf(eu.toLowerCase())&&eu.length>0&&ee.current.setSelectionRange(eu.length,e.length)}}),eR=o.useCallback(()=>{if(!eA)return;let e=(()=>{var e;if(-1!==el.current&&ew.filteredOptions&&ew.filteredOptions.length!==e$.length&&ew.inputValue===eu&&(N?ec.length===ew.value.length&&ew.value.every((e,t)=>Z(ec[t])===Z(e)):(e=ew.value,(e?Z(e):"")===(ec?Z(ec):"")))){let e=ew.filteredOptions[el.current];if(e)return e$.findIndex(t=>Z(t)===Z(e))}return -1})();if(-1!==e){el.current=e;return}let t=N?ec[0]:ec;if(0===e$.length||null==t)return void eS({diff:"reset"});if(et.current){if(null!=t){let e=e$[el.current];if(N&&e&&-1!==ec.findIndex(t=>z(e,t)))return;let r=e$.findIndex(e=>z(e,t));-1===r?eS({diff:"reset"}):eC({index:r});return}if(el.current>=e$.length-1)return void eC({index:e$.length-1});eC({index:el.current})}},[e$.length,!N&&ec,S,eS,eC,eA,eu,N]),eI=(0,l.A)(e=>{(0,s.A)(et,e),e&&eR()});o.useEffect(()=>{eR()},[eR]);let eM=e=>{!eg&&(ev(!0),ey(!0),F&&F(e))},eP=(e,t)=>{eg&&(ev(!1),V&&V(e,t))},ej=(e,t,r,o)=>{if(N){if(ec.length===t.length&&ec.every((e,r)=>e===t[r]))return}else if(ec===t)return;B&&B(e,t,r,o),ep(t)},eE=o.useRef(!1),eL=(e,t,r="selectOption",o="options")=>{let n=r,a=t;if(N){let e=(a=Array.isArray(ec)?ec.slice():[]).findIndex(e=>z(t,e));-1===e?a.push(t):"freeSolo"!==o&&(a.splice(e,1),n="removeOption")}em(e,a,n),ej(e,a,n,{option:t}),$||e&&(e.ctrlKey||e.metaKey)||eP(e,n),(!0===g||"touch"===g&&eE.current||"mouse"===g&&!eE.current)&&ee.current.blur()},eD=(e,t)=>{if(!N)return;""===eu&&eP(e,"toggleInput");let r=en;-1===en?""===eu&&"previous"===t&&(r=ec.length-1):((r+="next"===t?1:-1)<0&&(r=0),r===ec.length&&(r=-1)),ea(r=function(e,t){if(-1===e)return -1;let r=e;for(;;){if("next"===t&&r===ec.length||"previous"===t&&-1===r)return -1;let e=er.querySelector(`[data-tag-index="${r}"]`);if(e&&e.hasAttribute("tabindex")&&!e.disabled&&"true"!==e.getAttribute("aria-disabled"))return r;r+="next"===t?1:-1}}(r,t)),eO(r)},eT=e=>{J.current=!0,ed(""),H&&H(e,"","clear"),ej(e,N?[]:null,"clear")},ez=e=>{eh(!0),q&&!J.current&&eM(e)},eN=e=>{t(et)?ee.current.focus():(eh(!1),Q.current=!0,J.current=!1,m&&-1!==el.current&&eA?eL(e,e$[el.current],"blur"):m&&R&&""!==eu?eL(e,eu,"blur","freeSolo"):v&&em(e,ec,"blur"),eP(e,"blur"))},eB=e=>{let t=e.target.value;eu!==t&&(ed(t),ey(!1),H&&H(e,t,"input")),""===t?A||N||ej(e,null,"clear"):eM(e)},eV=e=>{let t=Number(e.currentTarget.getAttribute("data-option-index"));el.current!==t&&eC({event:e,index:t,reason:"mouse"})},eW=e=>{eC({event:e,index:Number(e.currentTarget.getAttribute("data-option-index")),reason:"touch"}),eE.current=!0},eH=e=>{let t=Number(e.currentTarget.getAttribute("data-option-index"));eL(e,e$[t],"selectOption"),eE.current=!1},eF=e=>{eg?eP(e,"toggleInput"):eM(e)},eX=e=>{e.currentTarget.contains(e.target)&&e.target.getAttribute("id")!==Y&&e.preventDefault()},eq=e=>{e.currentTarget.contains(e.target)&&(ee.current.focus(),K&&Q.current&&ee.current.selectionEnd-ee.current.selectionStart==0&&ee.current.select(),Q.current=!1)},eU=e=>{w||""!==eu&&eg||eF(e)},e_=R&&eu.length>0;e_=e_||(N?ec.length>0:null!==ec);let eK=e$;return j&&(eK=e$.reduce((e,t,r)=>{let o=j(t);return e.length>0&&e[e.length-1].group===o?e[e.length-1].options.push(t):e.push({key:r,index:r,group:o,options:[t]}),e},[])),w&&ef&&eN(),{getRootProps:(e={})=>({...e,onKeyDown:t=>{if(e.onKeyDown&&e.onKeyDown(t),!t.defaultMuiPrevented&&(-1===en||["ArrowLeft","ArrowRight"].includes(t.key)||(ea(-1),eO(-1)),229!==t.which))switch(t.key){case"Home":eA&&E&&(t.preventDefault(),eS({diff:"start",direction:"next",reason:"keyboard",event:t}));break;case"End":eA&&E&&(t.preventDefault(),eS({diff:"end",direction:"previous",reason:"keyboard",event:t}));break;case"PageUp":t.preventDefault(),eS({diff:-5,direction:"previous",reason:"keyboard",event:t}),eM(t);break;case"PageDown":t.preventDefault(),eS({diff:5,direction:"next",reason:"keyboard",event:t}),eM(t);break;case"ArrowDown":t.preventDefault(),eS({diff:1,direction:"next",reason:"keyboard",event:t}),eM(t);break;case"ArrowUp":t.preventDefault(),eS({diff:-1,direction:"previous",reason:"keyboard",event:t}),eM(t);break;case"ArrowLeft":eD(t,"previous");break;case"ArrowRight":eD(t,"next");break;case"Enter":if(-1!==el.current&&eA){let e=e$[el.current],r=!!I&&I(e);if(t.preventDefault(),r)return;eL(t,e,"selectOption"),c&&ee.current.setSelectionRange(ee.current.value.length,ee.current.value.length)}else R&&""!==eu&&!1===ex&&(N&&t.preventDefault(),eL(t,eu,"createOption","freeSolo"));break;case"Escape":eA?(t.preventDefault(),t.stopPropagation(),eP(t,"escape")):b&&(""!==eu||N&&ec.length>0)&&(t.preventDefault(),t.stopPropagation(),eT(t));break;case"Backspace":if(N&&!_&&""===eu&&ec.length>0){let e=-1===en?ec.length-1:en,r=ec.slice();r.splice(e,1),ej(t,r,"removeOption",{option:ec[e]})}break;case"Delete":if(N&&!_&&""===eu&&ec.length>0&&-1!==en){let e=ec.slice();e.splice(en,1),ej(t,e,"removeOption",{option:ec[en]})}}},onMouseDown:eX,onClick:eq}),getInputLabelProps:()=>({id:`${Y}-label`,htmlFor:Y}),getInputProps:()=>({id:Y,value:eu,onBlur:eN,onFocus:ez,onChange:eB,onMouseDown:eU,"aria-activedescendant":eA?"":null,"aria-autocomplete":c?"both":"list","aria-controls":ek?`${Y}-listbox`:void 0,"aria-expanded":ek,autoComplete:"off",ref:ee,autoCapitalize:"none",spellCheck:"false",role:"combobox",disabled:w}),getClearProps:()=>({tabIndex:-1,type:"button",onClick:eT}),getPopupIndicatorProps:()=>({tabIndex:-1,type:"button",onClick:eF}),getTagProps:({index:e})=>({key:e,"data-tag-index":e,tabIndex:-1,...!_&&{onDelete:t=>{let r=ec.slice();r.splice(e,1),ej(t,r,"removeOption",{option:ec[e]})}}}),getListboxProps:()=>({role:"listbox",id:`${Y}-listbox`,"aria-labelledby":`${Y}-label`,ref:eI,onMouseDown:e=>{e.preventDefault()}}),getOptionProps:({index:e,option:t})=>{let r=(N?ec:[ec]).some(e=>null!=e&&z(t,e)),o=!!I&&I(t);return{key:M?.(t)??Z(t),tabIndex:-1,role:"option",id:`${Y}-option-${e}`,onMouseMove:eV,onClick:eH,onTouchStart:eW,"data-option-index":e,"aria-disabled":o,"aria-selected":r}},id:Y,inputValue:eu,value:ec,dirty:e_,expanded:eA&&er,popupOpen:eA,focused:ef||-1!==en,anchorEl:er,setAnchorEl:eo,focusedTag:en,groupedOptions:eK}}},32398(e,t,r){r.d(t,{A:()=>o});let o=r(83183).A},63392(e,t,r){r.d(t,{A:()=>o});let o=r(54553).A},93399(e,t,r){r.d(t,{A:()=>o});function o(e){try{return e.matches(":focus-visible")}catch(e){}return!1}},23375(e,t,r){r.d(t,{A:()=>n});var o=r(70451);let n=e=>{let t=o.useRef({});return o.useEffect(()=>{t.current=e}),t.current}},44394(e,t,r){r.d(t,{A:()=>f});var o=r(49257),n=r(68102),a=r(7490),i=r(70451),l=r.n(i),s=r(33477);function c(e,t){var r=Object.create(null);return e&&i.Children.map(e,function(e){return e}).forEach(function(e){r[e.key]=t&&(0,i.isValidElement)(e)?t(e):e}),r}function p(e,t,r){return null!=r[t]?r[t]:e.props[t]}var u=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},d=function(e){function t(t,r){var o=e.call(this,t,r)||this,n=o.handleExited.bind(function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(o));return o.state={contextValue:{isMounting:!0},handleExited:n,firstRender:!0},o}(0,a.A)(t,e);var r=t.prototype;return r.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},r.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var r,o,n=t.children,a=t.handleExited;return{children:t.firstRender?c(e.children,function(t){return(0,i.cloneElement)(t,{onExited:a.bind(null,t),in:!0,appear:p(t,"appear",e),enter:p(t,"enter",e),exit:p(t,"exit",e)})}):(Object.keys(o=function(e,t){function r(r){return r in t?t[r]:e[r]}e=e||{},t=t||{};var o,n=Object.create(null),a=[];for(var i in e)i in t?a.length&&(n[i]=a,a=[]):a.push(i);var l={};for(var s in t){if(n[s])for(o=0;o<n[s].length;o++){var c=n[s][o];l[n[s][o]]=r(c)}l[s]=r(s)}for(o=0;o<a.length;o++)l[a[o]]=r(a[o]);return l}(n,r=c(e.children))).forEach(function(t){var l=o[t];if((0,i.isValidElement)(l)){var s=t in n,c=t in r,u=n[t],d=(0,i.isValidElement)(u)&&!u.props.in;c&&(!s||d)?o[t]=(0,i.cloneElement)(l,{onExited:a.bind(null,l),in:!0,exit:p(l,"exit",e),enter:p(l,"enter",e)}):c||!s||d?c&&s&&(0,i.isValidElement)(u)&&(o[t]=(0,i.cloneElement)(l,{onExited:a.bind(null,l),in:u.props.in,exit:p(l,"exit",e),enter:p(l,"enter",e)})):o[t]=(0,i.cloneElement)(l,{in:!1})}}),o),firstRender:!1}},r.handleExited=function(e,t){var r=c(this.props.children);e.key in r||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState(function(t){var r=(0,n.A)({},t.children);return delete r[e.key],{children:r}}))},r.render=function(){var e=this.props,t=e.component,r=e.childFactory,n=(0,o.A)(e,["component","childFactory"]),a=this.state.contextValue,i=u(this.state.children).map(r);return(delete n.appear,delete n.enter,delete n.exit,null===t)?l().createElement(s.A.Provider,{value:a},i):l().createElement(s.A.Provider,{value:a},l().createElement(t,n,i))},t}(l().Component);d.propTypes={},d.defaultProps={component:"div",childFactory:function(e){return e}};let f=d}}]);
@@ -1,2 +1,2 @@
1
- /*! For license information please see 7817.f44cbee0.js.LICENSE.txt */
2
- "use strict";(self.chunk_VictoriaLogs_0_5_0_beta_4=self.chunk_VictoriaLogs_0_5_0_beta_4||[]).push([["7817"],{2192(r,e,t){var n=t(70451),o=Symbol.for("react.element"),_=Symbol.for("react.fragment"),a=Object.prototype.hasOwnProperty,s=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,f={key:!0,ref:!0,__self:!0,__source:!0};function l(r,e,t){var n,_={},l=null,i=null;for(n in void 0!==t&&(l=""+t),void 0!==e.key&&(l=""+e.key),void 0!==e.ref&&(i=e.ref),e)a.call(e,n)&&!f.hasOwnProperty(n)&&(_[n]=e[n]);if(r&&r.defaultProps)for(n in e=r.defaultProps)void 0===_[n]&&(_[n]=e[n]);return{$$typeof:o,type:r,key:l,ref:i,props:_,_owner:s.current}}e.Fragment=_,e.jsx=l,e.jsxs=l},62540(r,e,t){r.exports=t(2192)},68102(r,e,t){t.d(e,{A:()=>n});function n(){return(n=Object.assign?Object.assign.bind():function(r){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var n in t)({}).hasOwnProperty.call(t,n)&&(r[n]=t[n])}return r}).apply(null,arguments)}}}]);
1
+ /*! For license information please see 7817.f8e5f9c1.js.LICENSE.txt */
2
+ "use strict";(self.chunk_VictoriaLogs_0_5_0_beta_6=self.chunk_VictoriaLogs_0_5_0_beta_6||[]).push([["7817"],{2192(r,e,t){var n=t(70451),o=Symbol.for("react.element"),_=Symbol.for("react.fragment"),a=Object.prototype.hasOwnProperty,s=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,f={key:!0,ref:!0,__self:!0,__source:!0};function l(r,e,t){var n,_={},l=null,i=null;for(n in void 0!==t&&(l=""+t),void 0!==e.key&&(l=""+e.key),void 0!==e.ref&&(i=e.ref),e)a.call(e,n)&&!f.hasOwnProperty(n)&&(_[n]=e[n]);if(r&&r.defaultProps)for(n in e=r.defaultProps)void 0===_[n]&&(_[n]=e[n]);return{$$typeof:o,type:r,key:l,ref:i,props:_,_owner:s.current}}e.Fragment=_,e.jsx=l,e.jsxs=l},62540(r,e,t){r.exports=t(2192)},68102(r,e,t){t.d(e,{A:()=>n});function n(){return(n=Object.assign?Object.assign.bind():function(r){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var n in t)({}).hasOwnProperty.call(t,n)&&(r[n]=t[n])}return r}).apply(null,arguments)}}}]);
@@ -1,2 +1,2 @@
1
- /*! For license information please see 7862.198947f4.js.LICENSE.txt */
2
- "use strict";(self.chunk_VictoriaLogs_0_5_0_beta_4=self.chunk_VictoriaLogs_0_5_0_beta_4||[]).push([["7862"],{32473(t,e,s){var r=s(70451),i="function"==typeof Object.is?Object.is:function(t,e){return t===e&&(0!==t||1/t==1/e)||t!=t&&e!=e},n=r.useState,u=r.useEffect,a=r.useLayoutEffect,o=r.useDebugValue;function l(t){var e=t.getSnapshot;t=t.value;try{var s=e();return!i(t,s)}catch(t){return!0}}var h="u"<typeof window||void 0===window.document||void 0===window.document.createElement?function(t,e){return e()}:function(t,e){var s=e(),r=n({inst:{value:s,getSnapshot:e}}),i=r[0].inst,h=r[1];return a(function(){i.value=s,i.getSnapshot=e,l(i)&&h({inst:i})},[t,s,e]),u(function(){return l(i)&&h({inst:i}),t(function(){l(i)&&h({inst:i})})},[t]),o(s),s};e.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:h},43676(t,e,s){t.exports=s(32473)},76693(t,e,s){let r,i,n,u,a,o;s.r(e),s.d(e,{isError:()=>x,useQueryErrorResetBoundary:()=>tQ,IsRestoringProvider:()=>tC,dehydrate:()=>th,isServer:()=>h,parseFilterArgs:()=>m,parseMutationFilterArgs:()=>b,queryOptions:()=>tj,infiniteQueryOptions:()=>tH,useSuspenseQuery:()=>tK,QueriesObserver:()=>tn,defaultContext:()=>tp,QueryClient:()=>$,Query:()=>G,Hydrate:()=>tB,useInfiniteQuery:()=>tJ,useIsMutating:()=>tG,CancelledError:()=>L,usePrefetchQuery:()=>tX,useQueryClient:()=>tm,isCancelledError:()=>j,matchQuery:()=>g,MutationCache:()=>J,MutationObserver:()=>ta,defaultShouldDehydrateQuery:()=>tl,mutationOptions:()=>tz,notifyManager:()=>B,QueryCache:()=>z,useQueries:()=>tI,parseQueryArgs:()=>y,replaceEqualDeep:()=>Q,defaultShouldDehydrateMutation:()=>to,hydrate:()=>tc,useHydrate:()=>t_,useQuery:()=>tT,onlineManager:()=>T,InfiniteQueryObserver:()=>tu,QueryClientProvider:()=>tb,hashQueryKey:()=>R,QueryObserver:()=>tt,useIsRestoring:()=>tO,useSuspenseInfiniteQuery:()=>tk,useSuspenseQueries:()=>tL,parseMutationArgs:()=>v,focusManager:()=>I,useIsFetching:()=>tN,useMutation:()=>tV,usePrefetchInfiniteQuery:()=>tY,QueryErrorResetBoundary:()=>tE});class l{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(t){let e={listener:t};return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}}let h="u"<typeof window||"Deno"in window;function c(){}function d(t){return"number"==typeof t&&t>=0&&t!==1/0}function f(t,e){return t.filter(t=>!e.includes(t))}function p(t,e){return Math.max(t+(e||0)-Date.now(),0)}function y(t,e,s){return M(t)?"function"==typeof e?{...s,queryKey:t,queryFn:e}:{...e,queryKey:t}:t}function v(t,e,s){return M(t)?"function"==typeof e?{...s,mutationKey:t,mutationFn:e}:{...e,mutationKey:t}:"function"==typeof t?{...e,mutationFn:t}:{...t}}function m(t,e,s){return M(t)?[{...e,queryKey:t},s]:[t||{},e]}function b(t,e,s){return M(t)?[{...e,mutationKey:t},s]:[t||{},e]}function g(t,e){let{type:s="all",exact:r,fetchStatus:i,predicate:n,queryKey:u,stale:a}=t;if(M(u))if(r){if(e.queryHash!==C(u,e.options))return!1}else{var o;if(o=e.queryKey,!S(o,u))return!1}if("all"!==s){let t=e.isActive();if("active"===s&&!t||"inactive"===s&&t)return!1}return("boolean"!=typeof a||e.isStale()===a)&&(void 0===i||i===e.state.fetchStatus)&&(!n||!!n(e))}function O(t,e){let{exact:s,fetching:r,predicate:i,mutationKey:n}=t;if(M(n)){if(!e.options.mutationKey)return!1;if(s){if(R(e.options.mutationKey)!==R(n))return!1}else{var u;if(u=e.options.mutationKey,!S(u,n))return!1}}return("boolean"!=typeof r||"loading"===e.state.status===r)&&(!i||!!i(e))}function C(t,e){return((null==e?void 0:e.queryKeyHashFn)||R)(t)}function R(t){return JSON.stringify(t,(t,e)=>w(e)?Object.keys(e).sort().reduce((t,s)=>(t[s]=e[s],t),{}):e)}function S(t,e){return t===e||typeof t==typeof e&&!!t&&!!e&&"object"==typeof t&&"object"==typeof e&&!Object.keys(e).some(s=>!S(t[s],e[s]))}function Q(t,e,s=0){if(t===e)return t;if(s>500)return e;let r=q(t)&&q(e);if(r||w(t)&&w(e)){let i=r?t.length:Object.keys(t).length,n=r?e:Object.keys(e),u=n.length,a=r?[]:{},o=0;for(let i=0;i<u;i++){let u=r?i:n[i];a[u]=Q(t[u],e[u],s+1),a[u]===t[u]&&o++}return i===u&&o===i?t:a}return e}function E(t,e){if(t&&!e||e&&!t)return!1;for(let s in t)if(t[s]!==e[s])return!1;return!0}function q(t){return Array.isArray(t)&&t.length===Object.keys(t).length}function w(t){if(!P(t))return!1;let e=t.constructor;if(void 0===e)return!0;let s=e.prototype;return!!P(s)&&!!s.hasOwnProperty("isPrototypeOf")}function P(t){return"[object Object]"===Object.prototype.toString.call(t)}function M(t){return Array.isArray(t)}function x(t){return t instanceof Error}function F(t){return new Promise(e=>{setTimeout(e,t)})}function D(t){F(0).then(t)}function A(t,e,s){return null!=s.isDataEqual&&s.isDataEqual(t,e)?t:"function"==typeof s.structuralSharing?s.structuralSharing(t,e):!1!==s.structuralSharing?Q(t,e):e}let I=new class extends l{constructor(){super(),this.setup=t=>{if(!h&&window.addEventListener){let e=()=>t();return window.addEventListener("visibilitychange",e,!1),window.addEventListener("focus",e,!1),()=>{window.removeEventListener("visibilitychange",e),window.removeEventListener("focus",e)}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){if(!this.hasListeners()){var t;null==(t=this.cleanup)||t.call(this),this.cleanup=void 0}}setEventListener(t){var e;this.setup=t,null==(e=this.cleanup)||e.call(this),this.cleanup=t(t=>{"boolean"==typeof t?this.setFocused(t):this.onFocus()})}setFocused(t){this.focused!==t&&(this.focused=t,this.onFocus())}onFocus(){this.listeners.forEach(({listener:t})=>{t()})}isFocused(){return"boolean"==typeof this.focused?this.focused:"u"<typeof document||[void 0,"visible","prerender"].includes(document.visibilityState)}},U=["online","offline"],T=new class extends l{constructor(){super(),this.setup=t=>{if(!h&&window.addEventListener){let e=()=>t();return U.forEach(t=>{window.addEventListener(t,e,!1)}),()=>{U.forEach(t=>{window.removeEventListener(t,e)})}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){if(!this.hasListeners()){var t;null==(t=this.cleanup)||t.call(this),this.cleanup=void 0}}setEventListener(t){var e;this.setup=t,null==(e=this.cleanup)||e.call(this),this.cleanup=t(t=>{"boolean"==typeof t?this.setOnline(t):this.onOnline()})}setOnline(t){this.online!==t&&(this.online=t,this.onOnline())}onOnline(){this.listeners.forEach(({listener:t})=>{t()})}isOnline(){return"boolean"==typeof this.online?this.online:"u"<typeof navigator||void 0===navigator.onLine||navigator.onLine}};function K(t){return Math.min(1e3*2**t,3e4)}function k(t){return(null!=t?t:"online")!=="online"||T.isOnline()}class L{constructor(t){this.revert=null==t?void 0:t.revert,this.silent=null==t?void 0:t.silent}}function j(t){return t instanceof L}function H(t){let e,s,r,i=!1,n=0,u=!1,a=new Promise((t,e)=>{s=t,r=e}),o=()=>!I.isFocused()||"always"!==t.networkMode&&!T.isOnline(),l=r=>{u||(u=!0,null==t.onSuccess||t.onSuccess(r),null==e||e(),s(r))},h=s=>{u||(u=!0,null==t.onError||t.onError(s),null==e||e(),r(s))},c=()=>new Promise(s=>{e=t=>{let e=u||!o();return e&&s(t),e},null==t.onPause||t.onPause()}).then(()=>{e=void 0,u||null==t.onContinue||t.onContinue()}),d=()=>{let e;if(!u){try{e=t.fn()}catch(t){e=Promise.reject(t)}Promise.resolve(e).then(l).catch(e=>{var s,r;if(u)return;let a=null!=(s=t.retry)?s:3,l=null!=(r=t.retryDelay)?r:K,f="function"==typeof l?l(n,e):l,p=!0===a||"number"==typeof a&&n<a||"function"==typeof a&&a(n,e);i||!p?h(e):(n++,null==t.onFail||t.onFail(n,e),F(f).then(()=>{if(o())return c()}).then(()=>{i?h(e):d()}))})}};return k(t.networkMode)?d():c().then(d),{promise:a,cancel:e=>{u||(h(new L(e)),null==t.abort||t.abort())},continue:()=>(null==e?void 0:e())?a:Promise.resolve(),cancelRetry:()=>{i=!0},continueRetry:()=>{i=!1}}}let _=console,B=(r=[],i=0,n=t=>{t()},u=t=>{t()},a=t=>{i?r.push(t):D(()=>{n(t)})},o=()=>{let t=r;r=[],t.length&&D(()=>{u(()=>{t.forEach(t=>{n(t)})})})},{batch:t=>{let e;i++;try{e=t()}finally{--i||o()}return e},batchCalls:t=>(...e)=>{a(()=>{t(...e)})},schedule:a,setNotifyFunction:t=>{n=t},setBatchNotifyFunction:t=>{u=t}});class N{destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),d(this.cacheTime)&&(this.gcTimeout=setTimeout(()=>{this.optionalRemove()},this.cacheTime))}updateCacheTime(t){this.cacheTime=Math.max(this.cacheTime||0,null!=t?t:h?1/0:3e5)}clearGcTimeout(){this.gcTimeout&&(clearTimeout(this.gcTimeout),this.gcTimeout=void 0)}}class G extends N{constructor(t){super(),this.abortSignalConsumed=!1,this.defaultOptions=t.defaultOptions,this.setOptions(t.options),this.observers=[],this.cache=t.cache,this.logger=t.logger||_,this.queryKey=t.queryKey,this.queryHash=t.queryHash,this.initialState=t.state||function(t){let e="function"==typeof t.initialData?t.initialData():t.initialData,s=void 0!==e,r=s?"function"==typeof t.initialDataUpdatedAt?t.initialDataUpdatedAt():t.initialDataUpdatedAt:0;return{data:e,dataUpdateCount:0,dataUpdatedAt:s?null!=r?r:Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:s?"success":"loading",fetchStatus:"idle"}}(this.options),this.state=this.initialState,this.scheduleGc()}get meta(){return this.options.meta}setOptions(t){this.options={...this.defaultOptions,...t},this.updateCacheTime(this.options.cacheTime)}optionalRemove(){this.observers.length||"idle"!==this.state.fetchStatus||this.cache.remove(this)}setData(t,e){let s=A(this.state.data,t,this.options);return this.dispatch({data:s,type:"success",dataUpdatedAt:null==e?void 0:e.updatedAt,manual:null==e?void 0:e.manual}),s}setState(t,e){this.dispatch({type:"setState",state:t,setStateOptions:e})}cancel(t){var e;let s=this.promise;return null==(e=this.retryer)||e.cancel(t),s?s.then(c).catch(c):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.initialState)}isActive(){return this.observers.some(t=>!1!==t.options.enabled)}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return this.state.isInvalidated||!this.state.dataUpdatedAt||this.observers.some(t=>t.getCurrentResult().isStale)}isStaleByTime(t=0){return this.state.isInvalidated||!this.state.dataUpdatedAt||!p(this.state.dataUpdatedAt,t)}onFocus(){var t;let e=this.observers.find(t=>t.shouldFetchOnWindowFocus());e&&e.refetch({cancelRefetch:!1}),null==(t=this.retryer)||t.continue()}onOnline(){var t;let e=this.observers.find(t=>t.shouldFetchOnReconnect());e&&e.refetch({cancelRefetch:!1}),null==(t=this.retryer)||t.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),this.cache.notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(e=>e!==t),this.observers.length||(this.retryer&&(this.abortSignalConsumed?this.retryer.cancel({revert:!0}):this.retryer.cancelRetry()),this.scheduleGc()),this.cache.notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.dispatch({type:"invalidate"})}fetch(t,e){var s,r,i,n;if("idle"!==this.state.fetchStatus){if(this.state.dataUpdatedAt&&null!=e&&e.cancelRefetch)this.cancel({silent:!0});else if(this.promise)return null==(i=this.retryer)||i.continueRetry(),this.promise}if(t&&this.setOptions(t),!this.options.queryFn){let t=this.observers.find(t=>t.options.queryFn);t&&this.setOptions(t.options)}let u=function(){if("function"==typeof AbortController)return new AbortController}(),a={queryKey:this.queryKey,pageParam:void 0,meta:this.meta},o=t=>{Object.defineProperty(t,"signal",{enumerable:!0,get:()=>{if(u)return this.abortSignalConsumed=!0,u.signal}})};o(a);let l=()=>this.options.queryFn?(this.abortSignalConsumed=!1,this.options.queryFn(a)):Promise.reject("Missing queryFn for queryKey '"+this.options.queryHash+"'"),h={fetchOptions:e,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:l};o(h),null==(s=this.options.behavior)||s.onFetch(h),this.revertState=this.state,("idle"===this.state.fetchStatus||this.state.fetchMeta!==(null==(r=h.fetchOptions)?void 0:r.meta))&&this.dispatch({type:"fetch",meta:null==(n=h.fetchOptions)?void 0:n.meta});let c=t=>{if(j(t)&&t.silent||this.dispatch({type:"error",error:t}),!j(t)){var e,s,r,i;null==(e=(s=this.cache.config).onError)||e.call(s,t,this),null==(r=(i=this.cache.config).onSettled)||r.call(i,this.state.data,t,this)}this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return this.retryer=H({fn:h.fetchFn,abort:null==u?void 0:u.abort.bind(u),onSuccess:t=>{var e,s,r,i;void 0===t?c(Error(this.queryHash+" data is undefined")):(this.setData(t),null==(e=(s=this.cache.config).onSuccess)||e.call(s,t,this),null==(r=(i=this.cache.config).onSettled)||r.call(i,t,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1)},onError:c,onFail:(t,e)=>{this.dispatch({type:"failed",failureCount:t,error:e})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:h.options.retry,retryDelay:h.options.retryDelay,networkMode:h.options.networkMode}),this.promise=this.retryer.promise,this.promise}dispatch(t){let e=e=>{var s,r;switch(t.type){case"failed":return{...e,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...e,fetchStatus:"paused"};case"continue":return{...e,fetchStatus:"fetching"};case"fetch":return{...e,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null!=(s=t.meta)?s:null,fetchStatus:k(this.options.networkMode)?"fetching":"paused",...!e.dataUpdatedAt&&{error:null,status:"loading"}};case"success":return{...e,data:t.data,dataUpdateCount:e.dataUpdateCount+1,dataUpdatedAt:null!=(r=t.dataUpdatedAt)?r:Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":let i=t.error;if(j(i)&&i.revert&&this.revertState)return{...this.revertState,fetchStatus:"idle"};return{...e,error:i,errorUpdateCount:e.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:e.fetchFailureCount+1,fetchFailureReason:i,fetchStatus:"idle",status:"error"};case"invalidate":return{...e,isInvalidated:!0};case"setState":return{...e,...t.state}}};this.state=e(this.state),B.batch(()=>{this.observers.forEach(e=>{e.onQueryUpdate(t)}),this.cache.notify({query:this,type:"updated",action:t})})}}class z extends l{constructor(t){super(),this.config=t||{},this.queries=[],this.queriesMap={}}build(t,e,s){var r;let i=e.queryKey,n=null!=(r=e.queryHash)?r:C(i,e),u=this.get(n);return u||(u=new G({cache:this,logger:t.getLogger(),queryKey:i,queryHash:n,options:t.defaultQueryOptions(e),state:s,defaultOptions:t.getQueryDefaults(i)}),this.add(u)),u}add(t){this.queriesMap[t.queryHash]||(this.queriesMap[t.queryHash]=t,this.queries.push(t),this.notify({type:"added",query:t}))}remove(t){let e=this.queriesMap[t.queryHash];e&&(t.destroy(),this.queries=this.queries.filter(e=>e!==t),e===t&&delete this.queriesMap[t.queryHash],this.notify({type:"removed",query:t}))}clear(){B.batch(()=>{this.queries.forEach(t=>{this.remove(t)})})}get(t){return this.queriesMap[t]}getAll(){return this.queries}find(t,e){let[s]=m(t,e);return void 0===s.exact&&(s.exact=!0),this.queries.find(t=>g(s,t))}findAll(t,e){let[s]=m(t,e);return Object.keys(s).length>0?this.queries.filter(t=>g(s,t)):this.queries}notify(t){B.batch(()=>{this.listeners.forEach(({listener:e})=>{e(t)})})}onFocus(){B.batch(()=>{this.queries.forEach(t=>{t.onFocus()})})}onOnline(){B.batch(()=>{this.queries.forEach(t=>{t.onOnline()})})}}class V extends N{constructor(t){super(),this.defaultOptions=t.defaultOptions,this.mutationId=t.mutationId,this.mutationCache=t.mutationCache,this.logger=t.logger||_,this.observers=[],this.state=t.state||W(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options={...this.defaultOptions,...t},this.updateCacheTime(this.options.cacheTime)}get meta(){return this.options.meta}setState(t){this.dispatch({type:"setState",state:t})}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),this.mutationCache.notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){this.observers=this.observers.filter(e=>e!==t),this.scheduleGc(),this.mutationCache.notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){this.observers.length||("loading"===this.state.status?this.scheduleGc():this.mutationCache.remove(this))}continue(){var t,e;return null!=(t=null==(e=this.retryer)?void 0:e.continue())?t:this.execute()}async execute(){var t,e,s,r,i,n,u,a,o,l,h,c,d,f,p,y,v,m,b,g;let O=()=>{var t;return this.retryer=H({fn:()=>this.options.mutationFn?this.options.mutationFn(this.state.variables):Promise.reject("No mutationFn found"),onFail:(t,e)=>{this.dispatch({type:"failed",failureCount:t,error:e})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:null!=(t=this.options.retry)?t:0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode}),this.retryer.promise},C="loading"===this.state.status;try{if(!C){this.dispatch({type:"loading",variables:this.options.variables}),await (null==(o=(l=this.mutationCache.config).onMutate)?void 0:o.call(l,this.state.variables,this));let t=await (null==(h=(c=this.options).onMutate)?void 0:h.call(c,this.state.variables));t!==this.state.context&&this.dispatch({type:"loading",context:t,variables:this.state.variables})}let d=await O();return await (null==(t=(e=this.mutationCache.config).onSuccess)?void 0:t.call(e,d,this.state.variables,this.state.context,this)),await (null==(s=(r=this.options).onSuccess)?void 0:s.call(r,d,this.state.variables,this.state.context)),await (null==(i=(n=this.mutationCache.config).onSettled)?void 0:i.call(n,d,null,this.state.variables,this.state.context,this)),await (null==(u=(a=this.options).onSettled)?void 0:u.call(a,d,null,this.state.variables,this.state.context)),this.dispatch({type:"success",data:d}),d}catch(t){try{throw await (null==(d=(f=this.mutationCache.config).onError)?void 0:d.call(f,t,this.state.variables,this.state.context,this)),await (null==(p=(y=this.options).onError)?void 0:p.call(y,t,this.state.variables,this.state.context)),await (null==(v=(m=this.mutationCache.config).onSettled)?void 0:v.call(m,void 0,t,this.state.variables,this.state.context,this)),await (null==(b=(g=this.options).onSettled)?void 0:b.call(g,void 0,t,this.state.variables,this.state.context)),t}finally{this.dispatch({type:"error",error:t})}}}dispatch(t){let e=e=>{switch(t.type){case"failed":return{...e,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...e,isPaused:!0};case"continue":return{...e,isPaused:!1};case"loading":return{...e,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:!k(this.options.networkMode),status:"loading",variables:t.variables};case"success":return{...e,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...e,data:void 0,error:t.error,failureCount:e.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"};case"setState":return{...e,...t.state}}};this.state=e(this.state),B.batch(()=>{this.observers.forEach(e=>{e.onMutationUpdate(t)}),this.mutationCache.notify({mutation:this,type:"updated",action:t})})}}function W(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0}}class J extends l{constructor(t){super(),this.config=t||{},this.mutations=[],this.mutationId=0}build(t,e,s){let r=new V({mutationCache:this,logger:t.getLogger(),mutationId:++this.mutationId,options:t.defaultMutationOptions(e),state:s,defaultOptions:e.mutationKey?t.getMutationDefaults(e.mutationKey):void 0});return this.add(r),r}add(t){this.mutations.push(t),this.notify({type:"added",mutation:t})}remove(t){this.mutations=this.mutations.filter(e=>e!==t),this.notify({type:"removed",mutation:t})}clear(){B.batch(()=>{this.mutations.forEach(t=>{this.remove(t)})})}getAll(){return this.mutations}find(t){return void 0===t.exact&&(t.exact=!0),this.mutations.find(e=>O(t,e))}findAll(t){return this.mutations.filter(e=>O(t,e))}notify(t){B.batch(()=>{this.listeners.forEach(({listener:e})=>{e(t)})})}resumePausedMutations(){var t;return this.resuming=(null!=(t=this.resuming)?t:Promise.resolve()).then(()=>{let t=this.mutations.filter(t=>t.state.isPaused);return B.batch(()=>t.reduce((t,e)=>t.then(()=>e.continue().catch(c)),Promise.resolve()))}).then(()=>{this.resuming=void 0}),this.resuming}}function X(){return{onFetch:t=>{t.fetchFn=()=>{var e,s,r,i,n,u;let a,o=null==(e=t.fetchOptions)||null==(s=e.meta)?void 0:s.refetchPage,l=null==(r=t.fetchOptions)||null==(i=r.meta)?void 0:i.fetchMore,h=null==l?void 0:l.pageParam,c=(null==l?void 0:l.direction)==="forward",d=(null==l?void 0:l.direction)==="backward",f=(null==(n=t.state.data)?void 0:n.pages)||[],p=(null==(u=t.state.data)?void 0:u.pageParams)||[],y=p,v=!1,m=t.options.queryFn||(()=>Promise.reject("Missing queryFn for queryKey '"+t.options.queryHash+"'")),b=(t,e,s,r)=>(y=r?[e,...y]:[...y,e],r?[s,...t]:[...t,s]),g=(e,s,r,i)=>{if(v)return Promise.reject("Cancelled");if(void 0===r&&!s&&e.length)return Promise.resolve(e);let n={queryKey:t.queryKey,pageParam:r,meta:t.options.meta};return Object.defineProperty(n,"signal",{enumerable:!0,get:()=>{var e,s;return null!=(e=t.signal)&&e.aborted?v=!0:null==(s=t.signal)||s.addEventListener("abort",()=>{v=!0}),t.signal}}),Promise.resolve(m(n)).then(t=>b(e,r,t,i))};if(f.length)if(c){let e=void 0!==h,s=e?h:Y(t.options,f);a=g(f,e,s)}else if(d){let e=void 0!==h,s=e?h:Z(t.options,f);a=g(f,e,s,!0)}else{y=[];let e=void 0===t.options.getNextPageParam;a=!o||!f[0]||o(f[0],0,f)?g([],e,p[0]):Promise.resolve(b([],p[0],f[0]));for(let s=1;s<f.length;s++)a=a.then(r=>{if(!o||!f[s]||o(f[s],s,f)){let i=e?p[s]:Y(t.options,r);return g(r,e,i)}return Promise.resolve(b(r,p[s],f[s]))})}else a=g([]);return a.then(t=>({pages:t,pageParams:y}))}}}}function Y(t,e){return null==t.getNextPageParam?void 0:t.getNextPageParam(e[e.length-1],e)}function Z(t,e){return null==t.getPreviousPageParam?void 0:t.getPreviousPageParam(e[0],e)}class ${constructor(t={}){this.queryCache=t.queryCache||new z,this.mutationCache=t.mutationCache||new J,this.logger=t.logger||_,this.defaultOptions=t.defaultOptions||{},this.queryDefaults=[],this.mutationDefaults=[],this.mountCount=0}mount(){this.mountCount++,1===this.mountCount&&(this.unsubscribeFocus=I.subscribe(()=>{I.isFocused()&&(this.resumePausedMutations(),this.queryCache.onFocus())}),this.unsubscribeOnline=T.subscribe(()=>{T.isOnline()&&(this.resumePausedMutations(),this.queryCache.onOnline())}))}unmount(){var t,e;this.mountCount--,0===this.mountCount&&(null==(t=this.unsubscribeFocus)||t.call(this),this.unsubscribeFocus=void 0,null==(e=this.unsubscribeOnline)||e.call(this),this.unsubscribeOnline=void 0)}isFetching(t,e){let[s]=m(t,e);return s.fetchStatus="fetching",this.queryCache.findAll(s).length}isMutating(t){return this.mutationCache.findAll({...t,fetching:!0}).length}getQueryData(t,e){var s;return null==(s=this.queryCache.find(t,e))?void 0:s.state.data}ensureQueryData(t,e,s){let r=y(t,e,s),i=this.getQueryData(r.queryKey);return i?Promise.resolve(i):this.fetchQuery(r)}getQueriesData(t){return this.getQueryCache().findAll(t).map(({queryKey:t,state:e})=>[t,e.data])}setQueryData(t,e,s){let r=this.queryCache.find(t),i=null==r?void 0:r.state.data,n="function"==typeof e?e(i):e;if(void 0===n)return;let u=y(t),a=this.defaultQueryOptions(u);return this.queryCache.build(this,a).setData(n,{...s,manual:!0})}setQueriesData(t,e,s){return B.batch(()=>this.getQueryCache().findAll(t).map(({queryKey:t})=>[t,this.setQueryData(t,e,s)]))}getQueryState(t,e){var s;return null==(s=this.queryCache.find(t,e))?void 0:s.state}removeQueries(t,e){let[s]=m(t,e),r=this.queryCache;B.batch(()=>{r.findAll(s).forEach(t=>{r.remove(t)})})}resetQueries(t,e,s){let[r,i]=m(t,e,s),n=this.queryCache,u={type:"active",...r};return B.batch(()=>(n.findAll(r).forEach(t=>{t.reset()}),this.refetchQueries(u,i)))}cancelQueries(t,e,s){let[r,i={}]=m(t,e,s);return void 0===i.revert&&(i.revert=!0),Promise.all(B.batch(()=>this.queryCache.findAll(r).map(t=>t.cancel(i)))).then(c).catch(c)}invalidateQueries(t,e,s){let[r,i]=m(t,e,s);return B.batch(()=>{var t,e;if(this.queryCache.findAll(r).forEach(t=>{t.invalidate()}),"none"===r.refetchType)return Promise.resolve();let s={...r,type:null!=(t=null!=(e=r.refetchType)?e:r.type)?t:"active"};return this.refetchQueries(s,i)})}refetchQueries(t,e,s){let[r,i]=m(t,e,s),n=Promise.all(B.batch(()=>this.queryCache.findAll(r).filter(t=>!t.isDisabled()).map(t=>{var e;return t.fetch(void 0,{...i,cancelRefetch:null==(e=null==i?void 0:i.cancelRefetch)||e,meta:{refetchPage:r.refetchPage}})}))).then(c);return null!=i&&i.throwOnError||(n=n.catch(c)),n}fetchQuery(t,e,s){let r=y(t,e,s),i=this.defaultQueryOptions(r);void 0===i.retry&&(i.retry=!1);let n=this.queryCache.build(this,i);return n.isStaleByTime(i.staleTime)?n.fetch(i):Promise.resolve(n.state.data)}prefetchQuery(t,e,s){return this.fetchQuery(t,e,s).then(c).catch(c)}fetchInfiniteQuery(t,e,s){let r=y(t,e,s);return r.behavior=X(),this.fetchQuery(r)}prefetchInfiniteQuery(t,e,s){return this.fetchInfiniteQuery(t,e,s).then(c).catch(c)}resumePausedMutations(){return this.mutationCache.resumePausedMutations()}getQueryCache(){return this.queryCache}getMutationCache(){return this.mutationCache}getLogger(){return this.logger}getDefaultOptions(){return this.defaultOptions}setDefaultOptions(t){this.defaultOptions=t}setQueryDefaults(t,e){let s=this.queryDefaults.find(e=>R(t)===R(e.queryKey));s?s.defaultOptions=e:this.queryDefaults.push({queryKey:t,defaultOptions:e})}getQueryDefaults(t){if(!t)return;let e=this.queryDefaults.find(e=>S(t,e.queryKey));return null==e?void 0:e.defaultOptions}setMutationDefaults(t,e){let s=this.mutationDefaults.find(e=>R(t)===R(e.mutationKey));s?s.defaultOptions=e:this.mutationDefaults.push({mutationKey:t,defaultOptions:e})}getMutationDefaults(t){if(!t)return;let e=this.mutationDefaults.find(e=>S(t,e.mutationKey));return null==e?void 0:e.defaultOptions}defaultQueryOptions(t){if(null!=t&&t._defaulted)return t;let e={...this.defaultOptions.queries,...this.getQueryDefaults(null==t?void 0:t.queryKey),...t,_defaulted:!0};return!e.queryHash&&e.queryKey&&(e.queryHash=C(e.queryKey,e)),void 0===e.refetchOnReconnect&&(e.refetchOnReconnect="always"!==e.networkMode),void 0===e.useErrorBoundary&&(e.useErrorBoundary=!!e.suspense),e}defaultMutationOptions(t){return null!=t&&t._defaulted?t:{...this.defaultOptions.mutations,...this.getMutationDefaults(null==t?void 0:t.mutationKey),...t,_defaulted:!0}}clear(){this.queryCache.clear(),this.mutationCache.clear()}}class tt extends l{constructor(t,e){super(),this.client=t,this.options=e,this.trackedProps=new Set,this.selectError=null,this.bindMethods(),this.setOptions(e)}bindMethods(){this.remove=this.remove.bind(this),this.refetch=this.refetch.bind(this)}onSubscribe(){1===this.listeners.size&&(this.currentQuery.addObserver(this),te(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return ts(this.currentQuery,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return ts(this.currentQuery,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.clearStaleTimeout(),this.clearRefetchInterval(),this.currentQuery.removeObserver(this)}setOptions(t,e){let s=this.options,r=this.currentQuery;if(this.options=this.client.defaultQueryOptions(t),E(s,this.options)||this.client.getQueryCache().notify({type:"observerOptionsUpdated",query:this.currentQuery,observer:this}),void 0!==this.options.enabled&&"boolean"!=typeof this.options.enabled)throw Error("Expected enabled to be a boolean");this.options.queryKey||(this.options.queryKey=s.queryKey),this.updateQuery();let i=this.hasListeners();i&&tr(this.currentQuery,r,this.options,s)&&this.executeFetch(),this.updateResult(e),i&&(this.currentQuery!==r||this.options.enabled!==s.enabled||this.options.staleTime!==s.staleTime)&&this.updateStaleTimeout();let n=this.computeRefetchInterval();i&&(this.currentQuery!==r||this.options.enabled!==s.enabled||n!==this.currentRefetchInterval)&&this.updateRefetchInterval(n)}getOptimisticResult(t){var e,s,r;let i=this.client.getQueryCache().build(this.client,t),n=this.createResult(i,t);return e=this,s=n,(r=t).keepPreviousData||(void 0!==r.placeholderData?!s.isPlaceholderData:E(e.getCurrentResult(),s))||(this.currentResult=n,this.currentResultOptions=this.options,this.currentResultState=this.currentQuery.state),n}getCurrentResult(){return this.currentResult}trackResult(t){let e={};return Object.keys(t).forEach(s=>{Object.defineProperty(e,s,{configurable:!1,enumerable:!0,get:()=>(this.trackedProps.add(s),t[s])})}),e}getCurrentQuery(){return this.currentQuery}remove(){this.client.getQueryCache().remove(this.currentQuery)}refetch({refetchPage:t,...e}={}){return this.fetch({...e,meta:{refetchPage:t}})}fetchOptimistic(t){let e=this.client.defaultQueryOptions(t),s=this.client.getQueryCache().build(this.client,e);return s.isFetchingOptimistic=!0,s.fetch().then(()=>this.createResult(s,e))}fetch(t){var e;return this.executeFetch({...t,cancelRefetch:null==(e=t.cancelRefetch)||e}).then(()=>(this.updateResult(),this.currentResult))}executeFetch(t){this.updateQuery();let e=this.currentQuery.fetch(this.options,t);return null!=t&&t.throwOnError||(e=e.catch(c)),e}updateStaleTimeout(){if(this.clearStaleTimeout(),h||this.currentResult.isStale||!d(this.options.staleTime))return;let t=p(this.currentResult.dataUpdatedAt,this.options.staleTime);this.staleTimeoutId=setTimeout(()=>{this.currentResult.isStale||this.updateResult()},t+1)}computeRefetchInterval(){var t;return"function"==typeof this.options.refetchInterval?this.options.refetchInterval(this.currentResult.data,this.currentQuery):null!=(t=this.options.refetchInterval)&&t}updateRefetchInterval(t){this.clearRefetchInterval(),this.currentRefetchInterval=t,!h&&!1!==this.options.enabled&&d(this.currentRefetchInterval)&&0!==this.currentRefetchInterval&&(this.refetchIntervalId=setInterval(()=>{(this.options.refetchIntervalInBackground||I.isFocused())&&this.executeFetch()},this.currentRefetchInterval))}updateTimers(){this.updateStaleTimeout(),this.updateRefetchInterval(this.computeRefetchInterval())}clearStaleTimeout(){this.staleTimeoutId&&(clearTimeout(this.staleTimeoutId),this.staleTimeoutId=void 0)}clearRefetchInterval(){this.refetchIntervalId&&(clearInterval(this.refetchIntervalId),this.refetchIntervalId=void 0)}createResult(t,e){let s,r=this.currentQuery,i=this.options,n=this.currentResult,u=this.currentResultState,a=this.currentResultOptions,o=t!==r,l=o?t.state:this.currentQueryInitialState,h=o?this.currentResult:this.previousQueryResult,{state:c}=t,{dataUpdatedAt:d,error:f,errorUpdatedAt:p,fetchStatus:y,status:v}=c,m=!1,b=!1;if(e._optimisticResults){let s=this.hasListeners(),n=!s&&te(t,e),u=s&&tr(t,r,e,i);(n||u)&&(y=k(t.options.networkMode)?"fetching":"paused",d||(v="loading")),"isRestoring"===e._optimisticResults&&(y="idle")}if(e.keepPreviousData&&!c.dataUpdatedAt&&null!=h&&h.isSuccess&&"error"!==v)s=h.data,d=h.dataUpdatedAt,v=h.status,m=!0;else if(e.select&&void 0!==c.data)if(n&&c.data===(null==u?void 0:u.data)&&e.select===this.selectFn)s=this.selectResult;else try{this.selectFn=e.select,s=e.select(c.data),s=A(null==n?void 0:n.data,s,e),this.selectResult=s,this.selectError=null}catch(t){this.selectError=t}else s=c.data;if(void 0!==e.placeholderData&&void 0===s&&"loading"===v){let t;if(null!=n&&n.isPlaceholderData&&e.placeholderData===(null==a?void 0:a.placeholderData))t=n.data;else if(t="function"==typeof e.placeholderData?e.placeholderData():e.placeholderData,e.select&&void 0!==t)try{t=e.select(t),this.selectError=null}catch(t){this.selectError=t}void 0!==t&&(v="success",s=A(null==n?void 0:n.data,t,e),b=!0)}this.selectError&&(f=this.selectError,s=this.selectResult,p=Date.now(),v="error");let g="fetching"===y,O="loading"===v,C="error"===v;return{status:v,fetchStatus:y,isLoading:O,isSuccess:"success"===v,isError:C,isInitialLoading:O&&g,data:s,dataUpdatedAt:d,error:f,errorUpdatedAt:p,failureCount:c.fetchFailureCount,failureReason:c.fetchFailureReason,errorUpdateCount:c.errorUpdateCount,isFetched:c.dataUpdateCount>0||c.errorUpdateCount>0,isFetchedAfterMount:c.dataUpdateCount>l.dataUpdateCount||c.errorUpdateCount>l.errorUpdateCount,isFetching:g,isRefetching:g&&!O,isLoadingError:C&&0===c.dataUpdatedAt,isPaused:"paused"===y,isPlaceholderData:b,isPreviousData:m,isRefetchError:C&&0!==c.dataUpdatedAt,isStale:ti(t,e),refetch:this.refetch,remove:this.remove}}updateResult(t){let e=this.currentResult,s=this.createResult(this.currentQuery,this.options);if(this.currentResultState=this.currentQuery.state,this.currentResultOptions=this.options,E(s,e))return;this.currentResult=s;let r={cache:!0},i=()=>{if(!e)return!0;let{notifyOnChangeProps:t}=this.options,s="function"==typeof t?t():t;if("all"===s||!s&&!this.trackedProps.size)return!0;let r=new Set(null!=s?s:this.trackedProps);return this.options.useErrorBoundary&&r.add("error"),Object.keys(this.currentResult).some(t=>this.currentResult[t]!==e[t]&&r.has(t))};(null==t?void 0:t.listeners)!==!1&&i()&&(r.listeners=!0),this.notify({...r,...t})}updateQuery(){let t=this.client.getQueryCache().build(this.client,this.options);if(t===this.currentQuery)return;let e=this.currentQuery;this.currentQuery=t,this.currentQueryInitialState=t.state,this.previousQueryResult=this.currentResult,this.hasListeners()&&(null==e||e.removeObserver(this),t.addObserver(this))}onQueryUpdate(t){let e={};"success"===t.type?e.onSuccess=!t.manual:"error"!==t.type||j(t.error)||(e.onError=!0),this.updateResult(e),this.hasListeners()&&this.updateTimers()}notify(t){B.batch(()=>{var e,s,r,i,n,u,a,o;t.onSuccess?(null==(e=(s=this.options).onSuccess)||e.call(s,this.currentResult.data),null==(r=(i=this.options).onSettled)||r.call(i,this.currentResult.data,null)):t.onError&&(null==(n=(u=this.options).onError)||n.call(u,this.currentResult.error),null==(a=(o=this.options).onSettled)||a.call(o,void 0,this.currentResult.error)),t.listeners&&this.listeners.forEach(({listener:t})=>{t(this.currentResult)}),t.cache&&this.client.getQueryCache().notify({query:this.currentQuery,type:"observerResultsUpdated"})})}}function te(t,e){return!1!==e.enabled&&!t.state.dataUpdatedAt&&("error"!==t.state.status||!1!==e.retryOnMount)||t.state.dataUpdatedAt>0&&ts(t,e,e.refetchOnMount)}function ts(t,e,s){if(!1!==e.enabled){let r="function"==typeof s?s(t):s;return"always"===r||!1!==r&&ti(t,e)}return!1}function tr(t,e,s,r){return!1!==s.enabled&&(t!==e||!1===r.enabled)&&(!s.suspense||"error"!==t.state.status)&&ti(t,s)}function ti(t,e){return t.isStaleByTime(e.staleTime)}class tn extends l{constructor(t,e){super(),this.client=t,this.queries=[],this.result=[],this.observers=[],this.observersMap={},e&&this.setQueries(e)}onSubscribe(){1===this.listeners.size&&this.observers.forEach(t=>{t.subscribe(e=>{this.onUpdate(t,e)})})}onUnsubscribe(){this.listeners.size||this.destroy()}destroy(){this.listeners=new Set,this.observers.forEach(t=>{t.destroy()})}setQueries(t,e){this.queries=t,B.batch(()=>{let t=this.observers,s=this.findMatchingObservers(this.queries);s.forEach(t=>t.observer.setOptions(t.defaultedQueryOptions,e));let r=s.map(t=>t.observer),i=Object.fromEntries(r.map(t=>[t.options.queryHash,t])),n=r.map(t=>t.getCurrentResult()),u=r.some((e,s)=>e!==t[s]);t.length===r.length&&!u||(this.observers=r,this.observersMap=i,this.result=n,this.hasListeners()&&(f(t,r).forEach(t=>{t.destroy()}),f(r,t).forEach(t=>{t.subscribe(e=>{this.onUpdate(t,e)})}),this.notify()))})}getCurrentResult(){return this.result}getQueries(){return this.observers.map(t=>t.getCurrentQuery())}getObservers(){return this.observers}getOptimisticResult(t){return this.findMatchingObservers(t).map(t=>t.observer.getOptimisticResult(t.defaultedQueryOptions))}findMatchingObservers(t){let e=this.observers,s=new Map(e.map(t=>[t.options.queryHash,t])),r=t.map(t=>this.client.defaultQueryOptions(t)),i=r.flatMap(t=>{let e=s.get(t.queryHash);return null!=e?[{defaultedQueryOptions:t,observer:e}]:[]}),n=new Set(i.map(t=>t.defaultedQueryOptions.queryHash)),u=r.filter(t=>!n.has(t.queryHash)),a=new Set(i.map(t=>t.observer)),o=e.filter(t=>!a.has(t)),l=t=>{let e=this.client.defaultQueryOptions(t),s=this.observersMap[e.queryHash];return null!=s?s:new tt(this.client,e)},h=u.map((t,e)=>{if(t.keepPreviousData){let s=o[e];if(void 0!==s)return{defaultedQueryOptions:t,observer:s}}return{defaultedQueryOptions:t,observer:l(t)}});return i.concat(h).sort((t,e)=>r.indexOf(t.defaultedQueryOptions)-r.indexOf(e.defaultedQueryOptions))}onUpdate(t,e){let s=this.observers.indexOf(t);if(-1!==s){var r;let t;this.result=(r=this.result,(t=r.slice(0))[s]=e,t),this.notify()}}notify(){B.batch(()=>{this.listeners.forEach(({listener:t})=>{t(this.result)})})}}class tu extends tt{constructor(t,e){super(t,e)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(t,e){super.setOptions({...t,behavior:X()},e)}getOptimisticResult(t){return t.behavior=X(),super.getOptimisticResult(t)}fetchNextPage({pageParam:t,...e}={}){return this.fetch({...e,meta:{fetchMore:{direction:"forward",pageParam:t}}})}fetchPreviousPage({pageParam:t,...e}={}){return this.fetch({...e,meta:{fetchMore:{direction:"backward",pageParam:t}}})}createResult(t,e){var s,r,i,n,u,a;let{state:o}=t,l=super.createResult(t,e),{isFetching:h,isRefetching:c}=l,d=h&&(null==(s=o.fetchMeta)||null==(r=s.fetchMore)?void 0:r.direction)==="forward",f=h&&(null==(i=o.fetchMeta)||null==(n=i.fetchMore)?void 0:n.direction)==="backward";return{...l,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:function(t,e){if(t.getNextPageParam&&Array.isArray(e)){let s=Y(t,e);return null!=s&&!1!==s}}(e,null==(u=o.data)?void 0:u.pages),hasPreviousPage:function(t,e){if(t.getPreviousPageParam&&Array.isArray(e)){let s=Z(t,e);return null!=s&&!1!==s}}(e,null==(a=o.data)?void 0:a.pages),isFetchingNextPage:d,isFetchingPreviousPage:f,isRefetching:c&&!d&&!f}}}class ta extends l{constructor(t,e){super(),this.client=t,this.setOptions(e),this.bindMethods(),this.updateResult()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(t){var e;let s=this.options;this.options=this.client.defaultMutationOptions(t),E(s,this.options)||this.client.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.currentMutation,observer:this}),null==(e=this.currentMutation)||e.setOptions(this.options)}onUnsubscribe(){if(!this.hasListeners()){var t;null==(t=this.currentMutation)||t.removeObserver(this)}}onMutationUpdate(t){this.updateResult();let e={listeners:!0};"success"===t.type?e.onSuccess=!0:"error"===t.type&&(e.onError=!0),this.notify(e)}getCurrentResult(){return this.currentResult}reset(){this.currentMutation=void 0,this.updateResult(),this.notify({listeners:!0})}mutate(t,e){return this.mutateOptions=e,this.currentMutation&&this.currentMutation.removeObserver(this),this.currentMutation=this.client.getMutationCache().build(this.client,{...this.options,variables:void 0!==t?t:this.options.variables}),this.currentMutation.addObserver(this),this.currentMutation.execute()}updateResult(){let t=this.currentMutation?this.currentMutation.state:W(),e="loading"===t.status,s={...t,isLoading:e,isPending:e,isSuccess:"success"===t.status,isError:"error"===t.status,isIdle:"idle"===t.status,mutate:this.mutate,reset:this.reset};this.currentResult=s}notify(t){B.batch(()=>{if(this.mutateOptions&&this.hasListeners()){var e,s,r,i,n,u,a,o;t.onSuccess?(null==(e=(s=this.mutateOptions).onSuccess)||e.call(s,this.currentResult.data,this.currentResult.variables,this.currentResult.context),null==(r=(i=this.mutateOptions).onSettled)||r.call(i,this.currentResult.data,null,this.currentResult.variables,this.currentResult.context)):t.onError&&(null==(n=(u=this.mutateOptions).onError)||n.call(u,this.currentResult.error,this.currentResult.variables,this.currentResult.context),null==(a=(o=this.mutateOptions).onSettled)||a.call(o,void 0,this.currentResult.error,this.currentResult.variables,this.currentResult.context))}t.listeners&&this.listeners.forEach(({listener:t})=>{t(this.currentResult)})})}}function to(t){return t.state.isPaused}function tl(t){return"success"===t.state.status}function th(t,e={}){let s=[],r=[];if(!1!==e.dehydrateMutations){let r=e.shouldDehydrateMutation||to;t.getMutationCache().getAll().forEach(t=>{r(t)&&s.push({mutationKey:t.options.mutationKey,state:t.state})})}if(!1!==e.dehydrateQueries){let s=e.shouldDehydrateQuery||tl;t.getQueryCache().getAll().forEach(t=>{s(t)&&r.push({state:t.state,queryKey:t.queryKey,queryHash:t.queryHash})})}return{mutations:s,queries:r}}function tc(t,e,s){if("object"!=typeof e||null===e)return;let r=t.getMutationCache(),i=t.getQueryCache(),n=e.mutations||[],u=e.queries||[];n.forEach(e=>{var i;r.build(t,{...null==s||null==(i=s.defaultOptions)?void 0:i.mutations,mutationKey:e.mutationKey},e.state)}),u.forEach(({queryKey:e,state:r,queryHash:n})=>{var u;let a=i.get(n);if(a){if(a.state.dataUpdatedAt<r.dataUpdatedAt){let{fetchStatus:t,...e}=r;a.setState(e)}return}i.build(t,{...null==s||null==(u=s.defaultOptions)?void 0:u.queries,queryKey:e,queryHash:n},{...r,fetchStatus:"idle"})})}var td=s(70451);let tf=s(43676).useSyncExternalStore,tp=td.createContext(void 0),ty=td.createContext(!1);function tv(t,e){return t||(e&&"u">typeof window?(window.ReactQueryClientContext||(window.ReactQueryClientContext=tp),window.ReactQueryClientContext):tp)}let tm=({context:t}={})=>{let e=td.useContext(tv(t,td.useContext(ty)));if(!e)throw Error("No QueryClient set, use QueryClientProvider to set one");return e},tb=({client:t,children:e,context:s,contextSharing:r=!1})=>{td.useEffect(()=>(t.mount(),()=>{t.unmount()}),[t]);let i=tv(s,r);return td.createElement(ty.Provider,{value:!s&&r},td.createElement(i.Provider,{value:t},e))},tg=td.createContext(!1),tO=()=>td.useContext(tg),tC=tg.Provider;function tR(){let t=!1;return{clearReset:()=>{t=!1},reset:()=>{t=!0},isReset:()=>t}}let tS=td.createContext(tR()),tQ=()=>td.useContext(tS),tE=({children:t})=>{let[e]=td.useState(()=>tR());return td.createElement(tS.Provider,{value:e},"function"==typeof t?t(e):t)};function tq(t,e){return"function"==typeof t?t(...e):!!t}let tw=(t,e)=>{(t.suspense||t.useErrorBoundary)&&!e.isReset()&&(t.retryOnMount=!1)},tP=t=>{td.useEffect(()=>{t.clearReset()},[t])},tM=({result:t,errorResetBoundary:e,useErrorBoundary:s,query:r})=>t.isError&&!e.isReset()&&!t.isFetching&&tq(s,[t.error,r]),tx=t=>{t.suspense&&("number"!=typeof t.staleTime&&(t.staleTime=1e3),"number"==typeof t.cacheTime&&(t.cacheTime=Math.max(t.cacheTime,1e3)))},tF=(t,e)=>t.isLoading&&t.isFetching&&!e,tD=(t,e,s)=>(null==t?void 0:t.suspense)&&tF(e,s),tA=(t,e,s)=>e.fetchOptimistic(t).then(({data:e})=>{null==t.onSuccess||t.onSuccess(e),null==t.onSettled||t.onSettled(e,null)}).catch(e=>{s.clearReset(),null==t.onError||t.onError(e),null==t.onSettled||t.onSettled(void 0,e)});function tI({queries:t,context:e}){let s=tm({context:e}),r=tO(),i=tQ(),n=td.useMemo(()=>t.map(t=>{let e=s.defaultQueryOptions(t);return e._optimisticResults=r?"isRestoring":"optimistic",e}),[t,s,r]);n.forEach(t=>{tx(t),tw(t,i)}),tP(i);let[u]=td.useState(()=>new tn(s,n)),a=u.getOptimisticResult(n);tf(td.useCallback(t=>r?()=>void 0:u.subscribe(B.batchCalls(t)),[u,r]),()=>u.getCurrentResult(),()=>u.getCurrentResult()),td.useEffect(()=>{u.setQueries(n,{listeners:!1})},[n,u]);let o=a.some((t,e)=>tD(n[e],t,r))?a.flatMap((t,e)=>{let s=n[e],a=u.getObservers()[e];if(s&&a)if(tD(s,t,r))return tA(s,a,i);else tF(t,r)&&tA(s,a,i);return[]}):[];if(o.length>0)throw Promise.all(o);let l=u.getQueries(),h=a.find((t,e)=>{var s,r;return tM({result:t,errorResetBoundary:i,useErrorBoundary:null!=(s=null==(r=n[e])?void 0:r.useErrorBoundary)&&s,query:l[e]})});if(null!=h&&h.error)throw h.error;return a}function tU(t,e){let s=tm({context:t.context}),r=tO(),i=tQ(),n=s.defaultQueryOptions(t);n._optimisticResults=r?"isRestoring":"optimistic",n.onError&&(n.onError=B.batchCalls(n.onError)),n.onSuccess&&(n.onSuccess=B.batchCalls(n.onSuccess)),n.onSettled&&(n.onSettled=B.batchCalls(n.onSettled)),tx(n),tw(n,i),tP(i);let[u]=td.useState(()=>new e(s,n)),a=u.getOptimisticResult(n);if(tf(td.useCallback(t=>{let e=r?()=>void 0:u.subscribe(B.batchCalls(t));return u.updateResult(),e},[u,r]),()=>u.getCurrentResult(),()=>u.getCurrentResult()),td.useEffect(()=>{u.setOptions(n,{listeners:!1})},[n,u]),tD(n,a,r))throw tA(n,u,i);if(tM({result:a,errorResetBoundary:i,useErrorBoundary:n.useErrorBoundary,query:u.getCurrentQuery()}))throw a.error;return n.notifyOnChangeProps?a:u.trackResult(a)}function tT(t,e,s){return tU(y(t,e,s),tt)}function tK(t){return tU({...t,enabled:!0,useErrorBoundary:!0,suspense:!0,placeholderData:void 0,networkMode:"always",onSuccess:void 0,onError:void 0,onSettled:void 0},tt)}function tk(t){return tU({...t,enabled:!0,suspense:!0,useErrorBoundary:!0,networkMode:"always"},tu)}function tL({queries:t,context:e}){return tI({queries:t.map(t=>({...t,enabled:!0,useErrorBoundary:!0,suspense:!0,placeholderData:void 0,networkMode:"always"})),context:e})}function tj(t){return t}function tH(t){return t}function t_(t,e={}){let s=tm({context:e.context}),r=td.useRef(e);r.current=e,td.useMemo(()=>{t&&tc(s,t,r.current)},[s,t])}let tB=({children:t,options:e,state:s})=>(t_(s,e),t);function tN(t,e,s){let[r,i={}]=m(t,e,s),n=tm({context:i.context}),u=n.getQueryCache();return tf(td.useCallback(t=>u.subscribe(B.batchCalls(t)),[u]),()=>n.isFetching(r),()=>n.isFetching(r))}function tG(t,e,s){let[r,i={}]=b(t,e,s),n=tm({context:i.context}),u=n.getMutationCache();return tf(td.useCallback(t=>u.subscribe(B.batchCalls(t)),[u]),()=>n.isMutating(r),()=>n.isMutating(r))}function tz(t){return t}function tV(t,e,s){let r=v(t,e,s),i=tm({context:r.context}),[n]=td.useState(()=>new ta(i,r));td.useEffect(()=>{n.setOptions(r)},[n,r]);let u=tf(td.useCallback(t=>n.subscribe(B.batchCalls(t)),[n]),()=>n.getCurrentResult(),()=>n.getCurrentResult()),a=td.useCallback((t,e)=>{n.mutate(t,e).catch(tW)},[n]);if(u.error&&tq(n.options.useErrorBoundary,[u.error]))throw u.error;return{...u,mutate:a,mutateAsync:u.mutate}}function tW(){}function tJ(t,e,s){return tU(y(t,e,s),tu)}function tX(t){let e=tm();e.getQueryState(t.queryKey)||e.prefetchQuery(t)}function tY(t){let e=tm();e.getQueryState(t.queryKey)||e.prefetchInfiniteQuery(t)}}}]);
1
+ /*! For license information please see 7862.7dae5507.js.LICENSE.txt */
2
+ "use strict";(self.chunk_VictoriaLogs_0_5_0_beta_6=self.chunk_VictoriaLogs_0_5_0_beta_6||[]).push([["7862"],{32473(t,e,s){var r=s(70451),i="function"==typeof Object.is?Object.is:function(t,e){return t===e&&(0!==t||1/t==1/e)||t!=t&&e!=e},n=r.useState,u=r.useEffect,a=r.useLayoutEffect,o=r.useDebugValue;function l(t){var e=t.getSnapshot;t=t.value;try{var s=e();return!i(t,s)}catch(t){return!0}}var h="u"<typeof window||void 0===window.document||void 0===window.document.createElement?function(t,e){return e()}:function(t,e){var s=e(),r=n({inst:{value:s,getSnapshot:e}}),i=r[0].inst,h=r[1];return a(function(){i.value=s,i.getSnapshot=e,l(i)&&h({inst:i})},[t,s,e]),u(function(){return l(i)&&h({inst:i}),t(function(){l(i)&&h({inst:i})})},[t]),o(s),s};e.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:h},43676(t,e,s){t.exports=s(32473)},76693(t,e,s){let r,i,n,u,a,o;s.r(e),s.d(e,{isError:()=>x,useQueryErrorResetBoundary:()=>tQ,IsRestoringProvider:()=>tC,dehydrate:()=>th,isServer:()=>h,parseFilterArgs:()=>m,parseMutationFilterArgs:()=>b,queryOptions:()=>tj,infiniteQueryOptions:()=>tH,useSuspenseQuery:()=>tK,QueriesObserver:()=>tn,defaultContext:()=>tp,QueryClient:()=>$,Query:()=>G,Hydrate:()=>tB,useInfiniteQuery:()=>tJ,useIsMutating:()=>tG,CancelledError:()=>L,usePrefetchQuery:()=>tX,useQueryClient:()=>tm,isCancelledError:()=>j,matchQuery:()=>g,MutationCache:()=>J,MutationObserver:()=>ta,defaultShouldDehydrateQuery:()=>tl,mutationOptions:()=>tz,notifyManager:()=>B,QueryCache:()=>z,useQueries:()=>tI,parseQueryArgs:()=>y,replaceEqualDeep:()=>Q,defaultShouldDehydrateMutation:()=>to,hydrate:()=>tc,useHydrate:()=>t_,useQuery:()=>tT,onlineManager:()=>T,InfiniteQueryObserver:()=>tu,QueryClientProvider:()=>tb,hashQueryKey:()=>R,QueryObserver:()=>tt,useIsRestoring:()=>tO,useSuspenseInfiniteQuery:()=>tk,useSuspenseQueries:()=>tL,parseMutationArgs:()=>v,focusManager:()=>I,useIsFetching:()=>tN,useMutation:()=>tV,usePrefetchInfiniteQuery:()=>tY,QueryErrorResetBoundary:()=>tE});class l{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(t){let e={listener:t};return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}}let h="u"<typeof window||"Deno"in window;function c(){}function d(t){return"number"==typeof t&&t>=0&&t!==1/0}function f(t,e){return t.filter(t=>!e.includes(t))}function p(t,e){return Math.max(t+(e||0)-Date.now(),0)}function y(t,e,s){return M(t)?"function"==typeof e?{...s,queryKey:t,queryFn:e}:{...e,queryKey:t}:t}function v(t,e,s){return M(t)?"function"==typeof e?{...s,mutationKey:t,mutationFn:e}:{...e,mutationKey:t}:"function"==typeof t?{...e,mutationFn:t}:{...t}}function m(t,e,s){return M(t)?[{...e,queryKey:t},s]:[t||{},e]}function b(t,e,s){return M(t)?[{...e,mutationKey:t},s]:[t||{},e]}function g(t,e){let{type:s="all",exact:r,fetchStatus:i,predicate:n,queryKey:u,stale:a}=t;if(M(u))if(r){if(e.queryHash!==C(u,e.options))return!1}else{var o;if(o=e.queryKey,!S(o,u))return!1}if("all"!==s){let t=e.isActive();if("active"===s&&!t||"inactive"===s&&t)return!1}return("boolean"!=typeof a||e.isStale()===a)&&(void 0===i||i===e.state.fetchStatus)&&(!n||!!n(e))}function O(t,e){let{exact:s,fetching:r,predicate:i,mutationKey:n}=t;if(M(n)){if(!e.options.mutationKey)return!1;if(s){if(R(e.options.mutationKey)!==R(n))return!1}else{var u;if(u=e.options.mutationKey,!S(u,n))return!1}}return("boolean"!=typeof r||"loading"===e.state.status===r)&&(!i||!!i(e))}function C(t,e){return((null==e?void 0:e.queryKeyHashFn)||R)(t)}function R(t){return JSON.stringify(t,(t,e)=>w(e)?Object.keys(e).sort().reduce((t,s)=>(t[s]=e[s],t),{}):e)}function S(t,e){return t===e||typeof t==typeof e&&!!t&&!!e&&"object"==typeof t&&"object"==typeof e&&!Object.keys(e).some(s=>!S(t[s],e[s]))}function Q(t,e,s=0){if(t===e)return t;if(s>500)return e;let r=q(t)&&q(e);if(r||w(t)&&w(e)){let i=r?t.length:Object.keys(t).length,n=r?e:Object.keys(e),u=n.length,a=r?[]:{},o=0;for(let i=0;i<u;i++){let u=r?i:n[i];a[u]=Q(t[u],e[u],s+1),a[u]===t[u]&&o++}return i===u&&o===i?t:a}return e}function E(t,e){if(t&&!e||e&&!t)return!1;for(let s in t)if(t[s]!==e[s])return!1;return!0}function q(t){return Array.isArray(t)&&t.length===Object.keys(t).length}function w(t){if(!P(t))return!1;let e=t.constructor;if(void 0===e)return!0;let s=e.prototype;return!!P(s)&&!!s.hasOwnProperty("isPrototypeOf")}function P(t){return"[object Object]"===Object.prototype.toString.call(t)}function M(t){return Array.isArray(t)}function x(t){return t instanceof Error}function F(t){return new Promise(e=>{setTimeout(e,t)})}function D(t){F(0).then(t)}function A(t,e,s){return null!=s.isDataEqual&&s.isDataEqual(t,e)?t:"function"==typeof s.structuralSharing?s.structuralSharing(t,e):!1!==s.structuralSharing?Q(t,e):e}let I=new class extends l{constructor(){super(),this.setup=t=>{if(!h&&window.addEventListener){let e=()=>t();return window.addEventListener("visibilitychange",e,!1),window.addEventListener("focus",e,!1),()=>{window.removeEventListener("visibilitychange",e),window.removeEventListener("focus",e)}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){if(!this.hasListeners()){var t;null==(t=this.cleanup)||t.call(this),this.cleanup=void 0}}setEventListener(t){var e;this.setup=t,null==(e=this.cleanup)||e.call(this),this.cleanup=t(t=>{"boolean"==typeof t?this.setFocused(t):this.onFocus()})}setFocused(t){this.focused!==t&&(this.focused=t,this.onFocus())}onFocus(){this.listeners.forEach(({listener:t})=>{t()})}isFocused(){return"boolean"==typeof this.focused?this.focused:"u"<typeof document||[void 0,"visible","prerender"].includes(document.visibilityState)}},U=["online","offline"],T=new class extends l{constructor(){super(),this.setup=t=>{if(!h&&window.addEventListener){let e=()=>t();return U.forEach(t=>{window.addEventListener(t,e,!1)}),()=>{U.forEach(t=>{window.removeEventListener(t,e)})}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){if(!this.hasListeners()){var t;null==(t=this.cleanup)||t.call(this),this.cleanup=void 0}}setEventListener(t){var e;this.setup=t,null==(e=this.cleanup)||e.call(this),this.cleanup=t(t=>{"boolean"==typeof t?this.setOnline(t):this.onOnline()})}setOnline(t){this.online!==t&&(this.online=t,this.onOnline())}onOnline(){this.listeners.forEach(({listener:t})=>{t()})}isOnline(){return"boolean"==typeof this.online?this.online:"u"<typeof navigator||void 0===navigator.onLine||navigator.onLine}};function K(t){return Math.min(1e3*2**t,3e4)}function k(t){return(null!=t?t:"online")!=="online"||T.isOnline()}class L{constructor(t){this.revert=null==t?void 0:t.revert,this.silent=null==t?void 0:t.silent}}function j(t){return t instanceof L}function H(t){let e,s,r,i=!1,n=0,u=!1,a=new Promise((t,e)=>{s=t,r=e}),o=()=>!I.isFocused()||"always"!==t.networkMode&&!T.isOnline(),l=r=>{u||(u=!0,null==t.onSuccess||t.onSuccess(r),null==e||e(),s(r))},h=s=>{u||(u=!0,null==t.onError||t.onError(s),null==e||e(),r(s))},c=()=>new Promise(s=>{e=t=>{let e=u||!o();return e&&s(t),e},null==t.onPause||t.onPause()}).then(()=>{e=void 0,u||null==t.onContinue||t.onContinue()}),d=()=>{let e;if(!u){try{e=t.fn()}catch(t){e=Promise.reject(t)}Promise.resolve(e).then(l).catch(e=>{var s,r;if(u)return;let a=null!=(s=t.retry)?s:3,l=null!=(r=t.retryDelay)?r:K,f="function"==typeof l?l(n,e):l,p=!0===a||"number"==typeof a&&n<a||"function"==typeof a&&a(n,e);i||!p?h(e):(n++,null==t.onFail||t.onFail(n,e),F(f).then(()=>{if(o())return c()}).then(()=>{i?h(e):d()}))})}};return k(t.networkMode)?d():c().then(d),{promise:a,cancel:e=>{u||(h(new L(e)),null==t.abort||t.abort())},continue:()=>(null==e?void 0:e())?a:Promise.resolve(),cancelRetry:()=>{i=!0},continueRetry:()=>{i=!1}}}let _=console,B=(r=[],i=0,n=t=>{t()},u=t=>{t()},a=t=>{i?r.push(t):D(()=>{n(t)})},o=()=>{let t=r;r=[],t.length&&D(()=>{u(()=>{t.forEach(t=>{n(t)})})})},{batch:t=>{let e;i++;try{e=t()}finally{--i||o()}return e},batchCalls:t=>(...e)=>{a(()=>{t(...e)})},schedule:a,setNotifyFunction:t=>{n=t},setBatchNotifyFunction:t=>{u=t}});class N{destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),d(this.cacheTime)&&(this.gcTimeout=setTimeout(()=>{this.optionalRemove()},this.cacheTime))}updateCacheTime(t){this.cacheTime=Math.max(this.cacheTime||0,null!=t?t:h?1/0:3e5)}clearGcTimeout(){this.gcTimeout&&(clearTimeout(this.gcTimeout),this.gcTimeout=void 0)}}class G extends N{constructor(t){super(),this.abortSignalConsumed=!1,this.defaultOptions=t.defaultOptions,this.setOptions(t.options),this.observers=[],this.cache=t.cache,this.logger=t.logger||_,this.queryKey=t.queryKey,this.queryHash=t.queryHash,this.initialState=t.state||function(t){let e="function"==typeof t.initialData?t.initialData():t.initialData,s=void 0!==e,r=s?"function"==typeof t.initialDataUpdatedAt?t.initialDataUpdatedAt():t.initialDataUpdatedAt:0;return{data:e,dataUpdateCount:0,dataUpdatedAt:s?null!=r?r:Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:s?"success":"loading",fetchStatus:"idle"}}(this.options),this.state=this.initialState,this.scheduleGc()}get meta(){return this.options.meta}setOptions(t){this.options={...this.defaultOptions,...t},this.updateCacheTime(this.options.cacheTime)}optionalRemove(){this.observers.length||"idle"!==this.state.fetchStatus||this.cache.remove(this)}setData(t,e){let s=A(this.state.data,t,this.options);return this.dispatch({data:s,type:"success",dataUpdatedAt:null==e?void 0:e.updatedAt,manual:null==e?void 0:e.manual}),s}setState(t,e){this.dispatch({type:"setState",state:t,setStateOptions:e})}cancel(t){var e;let s=this.promise;return null==(e=this.retryer)||e.cancel(t),s?s.then(c).catch(c):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.initialState)}isActive(){return this.observers.some(t=>!1!==t.options.enabled)}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return this.state.isInvalidated||!this.state.dataUpdatedAt||this.observers.some(t=>t.getCurrentResult().isStale)}isStaleByTime(t=0){return this.state.isInvalidated||!this.state.dataUpdatedAt||!p(this.state.dataUpdatedAt,t)}onFocus(){var t;let e=this.observers.find(t=>t.shouldFetchOnWindowFocus());e&&e.refetch({cancelRefetch:!1}),null==(t=this.retryer)||t.continue()}onOnline(){var t;let e=this.observers.find(t=>t.shouldFetchOnReconnect());e&&e.refetch({cancelRefetch:!1}),null==(t=this.retryer)||t.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),this.cache.notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(e=>e!==t),this.observers.length||(this.retryer&&(this.abortSignalConsumed?this.retryer.cancel({revert:!0}):this.retryer.cancelRetry()),this.scheduleGc()),this.cache.notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.dispatch({type:"invalidate"})}fetch(t,e){var s,r,i,n;if("idle"!==this.state.fetchStatus){if(this.state.dataUpdatedAt&&null!=e&&e.cancelRefetch)this.cancel({silent:!0});else if(this.promise)return null==(i=this.retryer)||i.continueRetry(),this.promise}if(t&&this.setOptions(t),!this.options.queryFn){let t=this.observers.find(t=>t.options.queryFn);t&&this.setOptions(t.options)}let u=function(){if("function"==typeof AbortController)return new AbortController}(),a={queryKey:this.queryKey,pageParam:void 0,meta:this.meta},o=t=>{Object.defineProperty(t,"signal",{enumerable:!0,get:()=>{if(u)return this.abortSignalConsumed=!0,u.signal}})};o(a);let l=()=>this.options.queryFn?(this.abortSignalConsumed=!1,this.options.queryFn(a)):Promise.reject("Missing queryFn for queryKey '"+this.options.queryHash+"'"),h={fetchOptions:e,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:l};o(h),null==(s=this.options.behavior)||s.onFetch(h),this.revertState=this.state,("idle"===this.state.fetchStatus||this.state.fetchMeta!==(null==(r=h.fetchOptions)?void 0:r.meta))&&this.dispatch({type:"fetch",meta:null==(n=h.fetchOptions)?void 0:n.meta});let c=t=>{if(j(t)&&t.silent||this.dispatch({type:"error",error:t}),!j(t)){var e,s,r,i;null==(e=(s=this.cache.config).onError)||e.call(s,t,this),null==(r=(i=this.cache.config).onSettled)||r.call(i,this.state.data,t,this)}this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return this.retryer=H({fn:h.fetchFn,abort:null==u?void 0:u.abort.bind(u),onSuccess:t=>{var e,s,r,i;void 0===t?c(Error(this.queryHash+" data is undefined")):(this.setData(t),null==(e=(s=this.cache.config).onSuccess)||e.call(s,t,this),null==(r=(i=this.cache.config).onSettled)||r.call(i,t,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1)},onError:c,onFail:(t,e)=>{this.dispatch({type:"failed",failureCount:t,error:e})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:h.options.retry,retryDelay:h.options.retryDelay,networkMode:h.options.networkMode}),this.promise=this.retryer.promise,this.promise}dispatch(t){let e=e=>{var s,r;switch(t.type){case"failed":return{...e,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...e,fetchStatus:"paused"};case"continue":return{...e,fetchStatus:"fetching"};case"fetch":return{...e,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null!=(s=t.meta)?s:null,fetchStatus:k(this.options.networkMode)?"fetching":"paused",...!e.dataUpdatedAt&&{error:null,status:"loading"}};case"success":return{...e,data:t.data,dataUpdateCount:e.dataUpdateCount+1,dataUpdatedAt:null!=(r=t.dataUpdatedAt)?r:Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":let i=t.error;if(j(i)&&i.revert&&this.revertState)return{...this.revertState,fetchStatus:"idle"};return{...e,error:i,errorUpdateCount:e.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:e.fetchFailureCount+1,fetchFailureReason:i,fetchStatus:"idle",status:"error"};case"invalidate":return{...e,isInvalidated:!0};case"setState":return{...e,...t.state}}};this.state=e(this.state),B.batch(()=>{this.observers.forEach(e=>{e.onQueryUpdate(t)}),this.cache.notify({query:this,type:"updated",action:t})})}}class z extends l{constructor(t){super(),this.config=t||{},this.queries=[],this.queriesMap={}}build(t,e,s){var r;let i=e.queryKey,n=null!=(r=e.queryHash)?r:C(i,e),u=this.get(n);return u||(u=new G({cache:this,logger:t.getLogger(),queryKey:i,queryHash:n,options:t.defaultQueryOptions(e),state:s,defaultOptions:t.getQueryDefaults(i)}),this.add(u)),u}add(t){this.queriesMap[t.queryHash]||(this.queriesMap[t.queryHash]=t,this.queries.push(t),this.notify({type:"added",query:t}))}remove(t){let e=this.queriesMap[t.queryHash];e&&(t.destroy(),this.queries=this.queries.filter(e=>e!==t),e===t&&delete this.queriesMap[t.queryHash],this.notify({type:"removed",query:t}))}clear(){B.batch(()=>{this.queries.forEach(t=>{this.remove(t)})})}get(t){return this.queriesMap[t]}getAll(){return this.queries}find(t,e){let[s]=m(t,e);return void 0===s.exact&&(s.exact=!0),this.queries.find(t=>g(s,t))}findAll(t,e){let[s]=m(t,e);return Object.keys(s).length>0?this.queries.filter(t=>g(s,t)):this.queries}notify(t){B.batch(()=>{this.listeners.forEach(({listener:e})=>{e(t)})})}onFocus(){B.batch(()=>{this.queries.forEach(t=>{t.onFocus()})})}onOnline(){B.batch(()=>{this.queries.forEach(t=>{t.onOnline()})})}}class V extends N{constructor(t){super(),this.defaultOptions=t.defaultOptions,this.mutationId=t.mutationId,this.mutationCache=t.mutationCache,this.logger=t.logger||_,this.observers=[],this.state=t.state||W(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options={...this.defaultOptions,...t},this.updateCacheTime(this.options.cacheTime)}get meta(){return this.options.meta}setState(t){this.dispatch({type:"setState",state:t})}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),this.mutationCache.notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){this.observers=this.observers.filter(e=>e!==t),this.scheduleGc(),this.mutationCache.notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){this.observers.length||("loading"===this.state.status?this.scheduleGc():this.mutationCache.remove(this))}continue(){var t,e;return null!=(t=null==(e=this.retryer)?void 0:e.continue())?t:this.execute()}async execute(){var t,e,s,r,i,n,u,a,o,l,h,c,d,f,p,y,v,m,b,g;let O=()=>{var t;return this.retryer=H({fn:()=>this.options.mutationFn?this.options.mutationFn(this.state.variables):Promise.reject("No mutationFn found"),onFail:(t,e)=>{this.dispatch({type:"failed",failureCount:t,error:e})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:null!=(t=this.options.retry)?t:0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode}),this.retryer.promise},C="loading"===this.state.status;try{if(!C){this.dispatch({type:"loading",variables:this.options.variables}),await (null==(o=(l=this.mutationCache.config).onMutate)?void 0:o.call(l,this.state.variables,this));let t=await (null==(h=(c=this.options).onMutate)?void 0:h.call(c,this.state.variables));t!==this.state.context&&this.dispatch({type:"loading",context:t,variables:this.state.variables})}let d=await O();return await (null==(t=(e=this.mutationCache.config).onSuccess)?void 0:t.call(e,d,this.state.variables,this.state.context,this)),await (null==(s=(r=this.options).onSuccess)?void 0:s.call(r,d,this.state.variables,this.state.context)),await (null==(i=(n=this.mutationCache.config).onSettled)?void 0:i.call(n,d,null,this.state.variables,this.state.context,this)),await (null==(u=(a=this.options).onSettled)?void 0:u.call(a,d,null,this.state.variables,this.state.context)),this.dispatch({type:"success",data:d}),d}catch(t){try{throw await (null==(d=(f=this.mutationCache.config).onError)?void 0:d.call(f,t,this.state.variables,this.state.context,this)),await (null==(p=(y=this.options).onError)?void 0:p.call(y,t,this.state.variables,this.state.context)),await (null==(v=(m=this.mutationCache.config).onSettled)?void 0:v.call(m,void 0,t,this.state.variables,this.state.context,this)),await (null==(b=(g=this.options).onSettled)?void 0:b.call(g,void 0,t,this.state.variables,this.state.context)),t}finally{this.dispatch({type:"error",error:t})}}}dispatch(t){let e=e=>{switch(t.type){case"failed":return{...e,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...e,isPaused:!0};case"continue":return{...e,isPaused:!1};case"loading":return{...e,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:!k(this.options.networkMode),status:"loading",variables:t.variables};case"success":return{...e,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...e,data:void 0,error:t.error,failureCount:e.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"};case"setState":return{...e,...t.state}}};this.state=e(this.state),B.batch(()=>{this.observers.forEach(e=>{e.onMutationUpdate(t)}),this.mutationCache.notify({mutation:this,type:"updated",action:t})})}}function W(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0}}class J extends l{constructor(t){super(),this.config=t||{},this.mutations=[],this.mutationId=0}build(t,e,s){let r=new V({mutationCache:this,logger:t.getLogger(),mutationId:++this.mutationId,options:t.defaultMutationOptions(e),state:s,defaultOptions:e.mutationKey?t.getMutationDefaults(e.mutationKey):void 0});return this.add(r),r}add(t){this.mutations.push(t),this.notify({type:"added",mutation:t})}remove(t){this.mutations=this.mutations.filter(e=>e!==t),this.notify({type:"removed",mutation:t})}clear(){B.batch(()=>{this.mutations.forEach(t=>{this.remove(t)})})}getAll(){return this.mutations}find(t){return void 0===t.exact&&(t.exact=!0),this.mutations.find(e=>O(t,e))}findAll(t){return this.mutations.filter(e=>O(t,e))}notify(t){B.batch(()=>{this.listeners.forEach(({listener:e})=>{e(t)})})}resumePausedMutations(){var t;return this.resuming=(null!=(t=this.resuming)?t:Promise.resolve()).then(()=>{let t=this.mutations.filter(t=>t.state.isPaused);return B.batch(()=>t.reduce((t,e)=>t.then(()=>e.continue().catch(c)),Promise.resolve()))}).then(()=>{this.resuming=void 0}),this.resuming}}function X(){return{onFetch:t=>{t.fetchFn=()=>{var e,s,r,i,n,u;let a,o=null==(e=t.fetchOptions)||null==(s=e.meta)?void 0:s.refetchPage,l=null==(r=t.fetchOptions)||null==(i=r.meta)?void 0:i.fetchMore,h=null==l?void 0:l.pageParam,c=(null==l?void 0:l.direction)==="forward",d=(null==l?void 0:l.direction)==="backward",f=(null==(n=t.state.data)?void 0:n.pages)||[],p=(null==(u=t.state.data)?void 0:u.pageParams)||[],y=p,v=!1,m=t.options.queryFn||(()=>Promise.reject("Missing queryFn for queryKey '"+t.options.queryHash+"'")),b=(t,e,s,r)=>(y=r?[e,...y]:[...y,e],r?[s,...t]:[...t,s]),g=(e,s,r,i)=>{if(v)return Promise.reject("Cancelled");if(void 0===r&&!s&&e.length)return Promise.resolve(e);let n={queryKey:t.queryKey,pageParam:r,meta:t.options.meta};return Object.defineProperty(n,"signal",{enumerable:!0,get:()=>{var e,s;return null!=(e=t.signal)&&e.aborted?v=!0:null==(s=t.signal)||s.addEventListener("abort",()=>{v=!0}),t.signal}}),Promise.resolve(m(n)).then(t=>b(e,r,t,i))};if(f.length)if(c){let e=void 0!==h,s=e?h:Y(t.options,f);a=g(f,e,s)}else if(d){let e=void 0!==h,s=e?h:Z(t.options,f);a=g(f,e,s,!0)}else{y=[];let e=void 0===t.options.getNextPageParam;a=!o||!f[0]||o(f[0],0,f)?g([],e,p[0]):Promise.resolve(b([],p[0],f[0]));for(let s=1;s<f.length;s++)a=a.then(r=>{if(!o||!f[s]||o(f[s],s,f)){let i=e?p[s]:Y(t.options,r);return g(r,e,i)}return Promise.resolve(b(r,p[s],f[s]))})}else a=g([]);return a.then(t=>({pages:t,pageParams:y}))}}}}function Y(t,e){return null==t.getNextPageParam?void 0:t.getNextPageParam(e[e.length-1],e)}function Z(t,e){return null==t.getPreviousPageParam?void 0:t.getPreviousPageParam(e[0],e)}class ${constructor(t={}){this.queryCache=t.queryCache||new z,this.mutationCache=t.mutationCache||new J,this.logger=t.logger||_,this.defaultOptions=t.defaultOptions||{},this.queryDefaults=[],this.mutationDefaults=[],this.mountCount=0}mount(){this.mountCount++,1===this.mountCount&&(this.unsubscribeFocus=I.subscribe(()=>{I.isFocused()&&(this.resumePausedMutations(),this.queryCache.onFocus())}),this.unsubscribeOnline=T.subscribe(()=>{T.isOnline()&&(this.resumePausedMutations(),this.queryCache.onOnline())}))}unmount(){var t,e;this.mountCount--,0===this.mountCount&&(null==(t=this.unsubscribeFocus)||t.call(this),this.unsubscribeFocus=void 0,null==(e=this.unsubscribeOnline)||e.call(this),this.unsubscribeOnline=void 0)}isFetching(t,e){let[s]=m(t,e);return s.fetchStatus="fetching",this.queryCache.findAll(s).length}isMutating(t){return this.mutationCache.findAll({...t,fetching:!0}).length}getQueryData(t,e){var s;return null==(s=this.queryCache.find(t,e))?void 0:s.state.data}ensureQueryData(t,e,s){let r=y(t,e,s),i=this.getQueryData(r.queryKey);return i?Promise.resolve(i):this.fetchQuery(r)}getQueriesData(t){return this.getQueryCache().findAll(t).map(({queryKey:t,state:e})=>[t,e.data])}setQueryData(t,e,s){let r=this.queryCache.find(t),i=null==r?void 0:r.state.data,n="function"==typeof e?e(i):e;if(void 0===n)return;let u=y(t),a=this.defaultQueryOptions(u);return this.queryCache.build(this,a).setData(n,{...s,manual:!0})}setQueriesData(t,e,s){return B.batch(()=>this.getQueryCache().findAll(t).map(({queryKey:t})=>[t,this.setQueryData(t,e,s)]))}getQueryState(t,e){var s;return null==(s=this.queryCache.find(t,e))?void 0:s.state}removeQueries(t,e){let[s]=m(t,e),r=this.queryCache;B.batch(()=>{r.findAll(s).forEach(t=>{r.remove(t)})})}resetQueries(t,e,s){let[r,i]=m(t,e,s),n=this.queryCache,u={type:"active",...r};return B.batch(()=>(n.findAll(r).forEach(t=>{t.reset()}),this.refetchQueries(u,i)))}cancelQueries(t,e,s){let[r,i={}]=m(t,e,s);return void 0===i.revert&&(i.revert=!0),Promise.all(B.batch(()=>this.queryCache.findAll(r).map(t=>t.cancel(i)))).then(c).catch(c)}invalidateQueries(t,e,s){let[r,i]=m(t,e,s);return B.batch(()=>{var t,e;if(this.queryCache.findAll(r).forEach(t=>{t.invalidate()}),"none"===r.refetchType)return Promise.resolve();let s={...r,type:null!=(t=null!=(e=r.refetchType)?e:r.type)?t:"active"};return this.refetchQueries(s,i)})}refetchQueries(t,e,s){let[r,i]=m(t,e,s),n=Promise.all(B.batch(()=>this.queryCache.findAll(r).filter(t=>!t.isDisabled()).map(t=>{var e;return t.fetch(void 0,{...i,cancelRefetch:null==(e=null==i?void 0:i.cancelRefetch)||e,meta:{refetchPage:r.refetchPage}})}))).then(c);return null!=i&&i.throwOnError||(n=n.catch(c)),n}fetchQuery(t,e,s){let r=y(t,e,s),i=this.defaultQueryOptions(r);void 0===i.retry&&(i.retry=!1);let n=this.queryCache.build(this,i);return n.isStaleByTime(i.staleTime)?n.fetch(i):Promise.resolve(n.state.data)}prefetchQuery(t,e,s){return this.fetchQuery(t,e,s).then(c).catch(c)}fetchInfiniteQuery(t,e,s){let r=y(t,e,s);return r.behavior=X(),this.fetchQuery(r)}prefetchInfiniteQuery(t,e,s){return this.fetchInfiniteQuery(t,e,s).then(c).catch(c)}resumePausedMutations(){return this.mutationCache.resumePausedMutations()}getQueryCache(){return this.queryCache}getMutationCache(){return this.mutationCache}getLogger(){return this.logger}getDefaultOptions(){return this.defaultOptions}setDefaultOptions(t){this.defaultOptions=t}setQueryDefaults(t,e){let s=this.queryDefaults.find(e=>R(t)===R(e.queryKey));s?s.defaultOptions=e:this.queryDefaults.push({queryKey:t,defaultOptions:e})}getQueryDefaults(t){if(!t)return;let e=this.queryDefaults.find(e=>S(t,e.queryKey));return null==e?void 0:e.defaultOptions}setMutationDefaults(t,e){let s=this.mutationDefaults.find(e=>R(t)===R(e.mutationKey));s?s.defaultOptions=e:this.mutationDefaults.push({mutationKey:t,defaultOptions:e})}getMutationDefaults(t){if(!t)return;let e=this.mutationDefaults.find(e=>S(t,e.mutationKey));return null==e?void 0:e.defaultOptions}defaultQueryOptions(t){if(null!=t&&t._defaulted)return t;let e={...this.defaultOptions.queries,...this.getQueryDefaults(null==t?void 0:t.queryKey),...t,_defaulted:!0};return!e.queryHash&&e.queryKey&&(e.queryHash=C(e.queryKey,e)),void 0===e.refetchOnReconnect&&(e.refetchOnReconnect="always"!==e.networkMode),void 0===e.useErrorBoundary&&(e.useErrorBoundary=!!e.suspense),e}defaultMutationOptions(t){return null!=t&&t._defaulted?t:{...this.defaultOptions.mutations,...this.getMutationDefaults(null==t?void 0:t.mutationKey),...t,_defaulted:!0}}clear(){this.queryCache.clear(),this.mutationCache.clear()}}class tt extends l{constructor(t,e){super(),this.client=t,this.options=e,this.trackedProps=new Set,this.selectError=null,this.bindMethods(),this.setOptions(e)}bindMethods(){this.remove=this.remove.bind(this),this.refetch=this.refetch.bind(this)}onSubscribe(){1===this.listeners.size&&(this.currentQuery.addObserver(this),te(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return ts(this.currentQuery,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return ts(this.currentQuery,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.clearStaleTimeout(),this.clearRefetchInterval(),this.currentQuery.removeObserver(this)}setOptions(t,e){let s=this.options,r=this.currentQuery;if(this.options=this.client.defaultQueryOptions(t),E(s,this.options)||this.client.getQueryCache().notify({type:"observerOptionsUpdated",query:this.currentQuery,observer:this}),void 0!==this.options.enabled&&"boolean"!=typeof this.options.enabled)throw Error("Expected enabled to be a boolean");this.options.queryKey||(this.options.queryKey=s.queryKey),this.updateQuery();let i=this.hasListeners();i&&tr(this.currentQuery,r,this.options,s)&&this.executeFetch(),this.updateResult(e),i&&(this.currentQuery!==r||this.options.enabled!==s.enabled||this.options.staleTime!==s.staleTime)&&this.updateStaleTimeout();let n=this.computeRefetchInterval();i&&(this.currentQuery!==r||this.options.enabled!==s.enabled||n!==this.currentRefetchInterval)&&this.updateRefetchInterval(n)}getOptimisticResult(t){var e,s,r;let i=this.client.getQueryCache().build(this.client,t),n=this.createResult(i,t);return e=this,s=n,(r=t).keepPreviousData||(void 0!==r.placeholderData?!s.isPlaceholderData:E(e.getCurrentResult(),s))||(this.currentResult=n,this.currentResultOptions=this.options,this.currentResultState=this.currentQuery.state),n}getCurrentResult(){return this.currentResult}trackResult(t){let e={};return Object.keys(t).forEach(s=>{Object.defineProperty(e,s,{configurable:!1,enumerable:!0,get:()=>(this.trackedProps.add(s),t[s])})}),e}getCurrentQuery(){return this.currentQuery}remove(){this.client.getQueryCache().remove(this.currentQuery)}refetch({refetchPage:t,...e}={}){return this.fetch({...e,meta:{refetchPage:t}})}fetchOptimistic(t){let e=this.client.defaultQueryOptions(t),s=this.client.getQueryCache().build(this.client,e);return s.isFetchingOptimistic=!0,s.fetch().then(()=>this.createResult(s,e))}fetch(t){var e;return this.executeFetch({...t,cancelRefetch:null==(e=t.cancelRefetch)||e}).then(()=>(this.updateResult(),this.currentResult))}executeFetch(t){this.updateQuery();let e=this.currentQuery.fetch(this.options,t);return null!=t&&t.throwOnError||(e=e.catch(c)),e}updateStaleTimeout(){if(this.clearStaleTimeout(),h||this.currentResult.isStale||!d(this.options.staleTime))return;let t=p(this.currentResult.dataUpdatedAt,this.options.staleTime);this.staleTimeoutId=setTimeout(()=>{this.currentResult.isStale||this.updateResult()},t+1)}computeRefetchInterval(){var t;return"function"==typeof this.options.refetchInterval?this.options.refetchInterval(this.currentResult.data,this.currentQuery):null!=(t=this.options.refetchInterval)&&t}updateRefetchInterval(t){this.clearRefetchInterval(),this.currentRefetchInterval=t,!h&&!1!==this.options.enabled&&d(this.currentRefetchInterval)&&0!==this.currentRefetchInterval&&(this.refetchIntervalId=setInterval(()=>{(this.options.refetchIntervalInBackground||I.isFocused())&&this.executeFetch()},this.currentRefetchInterval))}updateTimers(){this.updateStaleTimeout(),this.updateRefetchInterval(this.computeRefetchInterval())}clearStaleTimeout(){this.staleTimeoutId&&(clearTimeout(this.staleTimeoutId),this.staleTimeoutId=void 0)}clearRefetchInterval(){this.refetchIntervalId&&(clearInterval(this.refetchIntervalId),this.refetchIntervalId=void 0)}createResult(t,e){let s,r=this.currentQuery,i=this.options,n=this.currentResult,u=this.currentResultState,a=this.currentResultOptions,o=t!==r,l=o?t.state:this.currentQueryInitialState,h=o?this.currentResult:this.previousQueryResult,{state:c}=t,{dataUpdatedAt:d,error:f,errorUpdatedAt:p,fetchStatus:y,status:v}=c,m=!1,b=!1;if(e._optimisticResults){let s=this.hasListeners(),n=!s&&te(t,e),u=s&&tr(t,r,e,i);(n||u)&&(y=k(t.options.networkMode)?"fetching":"paused",d||(v="loading")),"isRestoring"===e._optimisticResults&&(y="idle")}if(e.keepPreviousData&&!c.dataUpdatedAt&&null!=h&&h.isSuccess&&"error"!==v)s=h.data,d=h.dataUpdatedAt,v=h.status,m=!0;else if(e.select&&void 0!==c.data)if(n&&c.data===(null==u?void 0:u.data)&&e.select===this.selectFn)s=this.selectResult;else try{this.selectFn=e.select,s=e.select(c.data),s=A(null==n?void 0:n.data,s,e),this.selectResult=s,this.selectError=null}catch(t){this.selectError=t}else s=c.data;if(void 0!==e.placeholderData&&void 0===s&&"loading"===v){let t;if(null!=n&&n.isPlaceholderData&&e.placeholderData===(null==a?void 0:a.placeholderData))t=n.data;else if(t="function"==typeof e.placeholderData?e.placeholderData():e.placeholderData,e.select&&void 0!==t)try{t=e.select(t),this.selectError=null}catch(t){this.selectError=t}void 0!==t&&(v="success",s=A(null==n?void 0:n.data,t,e),b=!0)}this.selectError&&(f=this.selectError,s=this.selectResult,p=Date.now(),v="error");let g="fetching"===y,O="loading"===v,C="error"===v;return{status:v,fetchStatus:y,isLoading:O,isSuccess:"success"===v,isError:C,isInitialLoading:O&&g,data:s,dataUpdatedAt:d,error:f,errorUpdatedAt:p,failureCount:c.fetchFailureCount,failureReason:c.fetchFailureReason,errorUpdateCount:c.errorUpdateCount,isFetched:c.dataUpdateCount>0||c.errorUpdateCount>0,isFetchedAfterMount:c.dataUpdateCount>l.dataUpdateCount||c.errorUpdateCount>l.errorUpdateCount,isFetching:g,isRefetching:g&&!O,isLoadingError:C&&0===c.dataUpdatedAt,isPaused:"paused"===y,isPlaceholderData:b,isPreviousData:m,isRefetchError:C&&0!==c.dataUpdatedAt,isStale:ti(t,e),refetch:this.refetch,remove:this.remove}}updateResult(t){let e=this.currentResult,s=this.createResult(this.currentQuery,this.options);if(this.currentResultState=this.currentQuery.state,this.currentResultOptions=this.options,E(s,e))return;this.currentResult=s;let r={cache:!0},i=()=>{if(!e)return!0;let{notifyOnChangeProps:t}=this.options,s="function"==typeof t?t():t;if("all"===s||!s&&!this.trackedProps.size)return!0;let r=new Set(null!=s?s:this.trackedProps);return this.options.useErrorBoundary&&r.add("error"),Object.keys(this.currentResult).some(t=>this.currentResult[t]!==e[t]&&r.has(t))};(null==t?void 0:t.listeners)!==!1&&i()&&(r.listeners=!0),this.notify({...r,...t})}updateQuery(){let t=this.client.getQueryCache().build(this.client,this.options);if(t===this.currentQuery)return;let e=this.currentQuery;this.currentQuery=t,this.currentQueryInitialState=t.state,this.previousQueryResult=this.currentResult,this.hasListeners()&&(null==e||e.removeObserver(this),t.addObserver(this))}onQueryUpdate(t){let e={};"success"===t.type?e.onSuccess=!t.manual:"error"!==t.type||j(t.error)||(e.onError=!0),this.updateResult(e),this.hasListeners()&&this.updateTimers()}notify(t){B.batch(()=>{var e,s,r,i,n,u,a,o;t.onSuccess?(null==(e=(s=this.options).onSuccess)||e.call(s,this.currentResult.data),null==(r=(i=this.options).onSettled)||r.call(i,this.currentResult.data,null)):t.onError&&(null==(n=(u=this.options).onError)||n.call(u,this.currentResult.error),null==(a=(o=this.options).onSettled)||a.call(o,void 0,this.currentResult.error)),t.listeners&&this.listeners.forEach(({listener:t})=>{t(this.currentResult)}),t.cache&&this.client.getQueryCache().notify({query:this.currentQuery,type:"observerResultsUpdated"})})}}function te(t,e){return!1!==e.enabled&&!t.state.dataUpdatedAt&&("error"!==t.state.status||!1!==e.retryOnMount)||t.state.dataUpdatedAt>0&&ts(t,e,e.refetchOnMount)}function ts(t,e,s){if(!1!==e.enabled){let r="function"==typeof s?s(t):s;return"always"===r||!1!==r&&ti(t,e)}return!1}function tr(t,e,s,r){return!1!==s.enabled&&(t!==e||!1===r.enabled)&&(!s.suspense||"error"!==t.state.status)&&ti(t,s)}function ti(t,e){return t.isStaleByTime(e.staleTime)}class tn extends l{constructor(t,e){super(),this.client=t,this.queries=[],this.result=[],this.observers=[],this.observersMap={},e&&this.setQueries(e)}onSubscribe(){1===this.listeners.size&&this.observers.forEach(t=>{t.subscribe(e=>{this.onUpdate(t,e)})})}onUnsubscribe(){this.listeners.size||this.destroy()}destroy(){this.listeners=new Set,this.observers.forEach(t=>{t.destroy()})}setQueries(t,e){this.queries=t,B.batch(()=>{let t=this.observers,s=this.findMatchingObservers(this.queries);s.forEach(t=>t.observer.setOptions(t.defaultedQueryOptions,e));let r=s.map(t=>t.observer),i=Object.fromEntries(r.map(t=>[t.options.queryHash,t])),n=r.map(t=>t.getCurrentResult()),u=r.some((e,s)=>e!==t[s]);t.length===r.length&&!u||(this.observers=r,this.observersMap=i,this.result=n,this.hasListeners()&&(f(t,r).forEach(t=>{t.destroy()}),f(r,t).forEach(t=>{t.subscribe(e=>{this.onUpdate(t,e)})}),this.notify()))})}getCurrentResult(){return this.result}getQueries(){return this.observers.map(t=>t.getCurrentQuery())}getObservers(){return this.observers}getOptimisticResult(t){return this.findMatchingObservers(t).map(t=>t.observer.getOptimisticResult(t.defaultedQueryOptions))}findMatchingObservers(t){let e=this.observers,s=new Map(e.map(t=>[t.options.queryHash,t])),r=t.map(t=>this.client.defaultQueryOptions(t)),i=r.flatMap(t=>{let e=s.get(t.queryHash);return null!=e?[{defaultedQueryOptions:t,observer:e}]:[]}),n=new Set(i.map(t=>t.defaultedQueryOptions.queryHash)),u=r.filter(t=>!n.has(t.queryHash)),a=new Set(i.map(t=>t.observer)),o=e.filter(t=>!a.has(t)),l=t=>{let e=this.client.defaultQueryOptions(t),s=this.observersMap[e.queryHash];return null!=s?s:new tt(this.client,e)},h=u.map((t,e)=>{if(t.keepPreviousData){let s=o[e];if(void 0!==s)return{defaultedQueryOptions:t,observer:s}}return{defaultedQueryOptions:t,observer:l(t)}});return i.concat(h).sort((t,e)=>r.indexOf(t.defaultedQueryOptions)-r.indexOf(e.defaultedQueryOptions))}onUpdate(t,e){let s=this.observers.indexOf(t);if(-1!==s){var r;let t;this.result=(r=this.result,(t=r.slice(0))[s]=e,t),this.notify()}}notify(){B.batch(()=>{this.listeners.forEach(({listener:t})=>{t(this.result)})})}}class tu extends tt{constructor(t,e){super(t,e)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(t,e){super.setOptions({...t,behavior:X()},e)}getOptimisticResult(t){return t.behavior=X(),super.getOptimisticResult(t)}fetchNextPage({pageParam:t,...e}={}){return this.fetch({...e,meta:{fetchMore:{direction:"forward",pageParam:t}}})}fetchPreviousPage({pageParam:t,...e}={}){return this.fetch({...e,meta:{fetchMore:{direction:"backward",pageParam:t}}})}createResult(t,e){var s,r,i,n,u,a;let{state:o}=t,l=super.createResult(t,e),{isFetching:h,isRefetching:c}=l,d=h&&(null==(s=o.fetchMeta)||null==(r=s.fetchMore)?void 0:r.direction)==="forward",f=h&&(null==(i=o.fetchMeta)||null==(n=i.fetchMore)?void 0:n.direction)==="backward";return{...l,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:function(t,e){if(t.getNextPageParam&&Array.isArray(e)){let s=Y(t,e);return null!=s&&!1!==s}}(e,null==(u=o.data)?void 0:u.pages),hasPreviousPage:function(t,e){if(t.getPreviousPageParam&&Array.isArray(e)){let s=Z(t,e);return null!=s&&!1!==s}}(e,null==(a=o.data)?void 0:a.pages),isFetchingNextPage:d,isFetchingPreviousPage:f,isRefetching:c&&!d&&!f}}}class ta extends l{constructor(t,e){super(),this.client=t,this.setOptions(e),this.bindMethods(),this.updateResult()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(t){var e;let s=this.options;this.options=this.client.defaultMutationOptions(t),E(s,this.options)||this.client.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.currentMutation,observer:this}),null==(e=this.currentMutation)||e.setOptions(this.options)}onUnsubscribe(){if(!this.hasListeners()){var t;null==(t=this.currentMutation)||t.removeObserver(this)}}onMutationUpdate(t){this.updateResult();let e={listeners:!0};"success"===t.type?e.onSuccess=!0:"error"===t.type&&(e.onError=!0),this.notify(e)}getCurrentResult(){return this.currentResult}reset(){this.currentMutation=void 0,this.updateResult(),this.notify({listeners:!0})}mutate(t,e){return this.mutateOptions=e,this.currentMutation&&this.currentMutation.removeObserver(this),this.currentMutation=this.client.getMutationCache().build(this.client,{...this.options,variables:void 0!==t?t:this.options.variables}),this.currentMutation.addObserver(this),this.currentMutation.execute()}updateResult(){let t=this.currentMutation?this.currentMutation.state:W(),e="loading"===t.status,s={...t,isLoading:e,isPending:e,isSuccess:"success"===t.status,isError:"error"===t.status,isIdle:"idle"===t.status,mutate:this.mutate,reset:this.reset};this.currentResult=s}notify(t){B.batch(()=>{if(this.mutateOptions&&this.hasListeners()){var e,s,r,i,n,u,a,o;t.onSuccess?(null==(e=(s=this.mutateOptions).onSuccess)||e.call(s,this.currentResult.data,this.currentResult.variables,this.currentResult.context),null==(r=(i=this.mutateOptions).onSettled)||r.call(i,this.currentResult.data,null,this.currentResult.variables,this.currentResult.context)):t.onError&&(null==(n=(u=this.mutateOptions).onError)||n.call(u,this.currentResult.error,this.currentResult.variables,this.currentResult.context),null==(a=(o=this.mutateOptions).onSettled)||a.call(o,void 0,this.currentResult.error,this.currentResult.variables,this.currentResult.context))}t.listeners&&this.listeners.forEach(({listener:t})=>{t(this.currentResult)})})}}function to(t){return t.state.isPaused}function tl(t){return"success"===t.state.status}function th(t,e={}){let s=[],r=[];if(!1!==e.dehydrateMutations){let r=e.shouldDehydrateMutation||to;t.getMutationCache().getAll().forEach(t=>{r(t)&&s.push({mutationKey:t.options.mutationKey,state:t.state})})}if(!1!==e.dehydrateQueries){let s=e.shouldDehydrateQuery||tl;t.getQueryCache().getAll().forEach(t=>{s(t)&&r.push({state:t.state,queryKey:t.queryKey,queryHash:t.queryHash})})}return{mutations:s,queries:r}}function tc(t,e,s){if("object"!=typeof e||null===e)return;let r=t.getMutationCache(),i=t.getQueryCache(),n=e.mutations||[],u=e.queries||[];n.forEach(e=>{var i;r.build(t,{...null==s||null==(i=s.defaultOptions)?void 0:i.mutations,mutationKey:e.mutationKey},e.state)}),u.forEach(({queryKey:e,state:r,queryHash:n})=>{var u;let a=i.get(n);if(a){if(a.state.dataUpdatedAt<r.dataUpdatedAt){let{fetchStatus:t,...e}=r;a.setState(e)}return}i.build(t,{...null==s||null==(u=s.defaultOptions)?void 0:u.queries,queryKey:e,queryHash:n},{...r,fetchStatus:"idle"})})}var td=s(70451);let tf=s(43676).useSyncExternalStore,tp=td.createContext(void 0),ty=td.createContext(!1);function tv(t,e){return t||(e&&"u">typeof window?(window.ReactQueryClientContext||(window.ReactQueryClientContext=tp),window.ReactQueryClientContext):tp)}let tm=({context:t}={})=>{let e=td.useContext(tv(t,td.useContext(ty)));if(!e)throw Error("No QueryClient set, use QueryClientProvider to set one");return e},tb=({client:t,children:e,context:s,contextSharing:r=!1})=>{td.useEffect(()=>(t.mount(),()=>{t.unmount()}),[t]);let i=tv(s,r);return td.createElement(ty.Provider,{value:!s&&r},td.createElement(i.Provider,{value:t},e))},tg=td.createContext(!1),tO=()=>td.useContext(tg),tC=tg.Provider;function tR(){let t=!1;return{clearReset:()=>{t=!1},reset:()=>{t=!0},isReset:()=>t}}let tS=td.createContext(tR()),tQ=()=>td.useContext(tS),tE=({children:t})=>{let[e]=td.useState(()=>tR());return td.createElement(tS.Provider,{value:e},"function"==typeof t?t(e):t)};function tq(t,e){return"function"==typeof t?t(...e):!!t}let tw=(t,e)=>{(t.suspense||t.useErrorBoundary)&&!e.isReset()&&(t.retryOnMount=!1)},tP=t=>{td.useEffect(()=>{t.clearReset()},[t])},tM=({result:t,errorResetBoundary:e,useErrorBoundary:s,query:r})=>t.isError&&!e.isReset()&&!t.isFetching&&tq(s,[t.error,r]),tx=t=>{t.suspense&&("number"!=typeof t.staleTime&&(t.staleTime=1e3),"number"==typeof t.cacheTime&&(t.cacheTime=Math.max(t.cacheTime,1e3)))},tF=(t,e)=>t.isLoading&&t.isFetching&&!e,tD=(t,e,s)=>(null==t?void 0:t.suspense)&&tF(e,s),tA=(t,e,s)=>e.fetchOptimistic(t).then(({data:e})=>{null==t.onSuccess||t.onSuccess(e),null==t.onSettled||t.onSettled(e,null)}).catch(e=>{s.clearReset(),null==t.onError||t.onError(e),null==t.onSettled||t.onSettled(void 0,e)});function tI({queries:t,context:e}){let s=tm({context:e}),r=tO(),i=tQ(),n=td.useMemo(()=>t.map(t=>{let e=s.defaultQueryOptions(t);return e._optimisticResults=r?"isRestoring":"optimistic",e}),[t,s,r]);n.forEach(t=>{tx(t),tw(t,i)}),tP(i);let[u]=td.useState(()=>new tn(s,n)),a=u.getOptimisticResult(n);tf(td.useCallback(t=>r?()=>void 0:u.subscribe(B.batchCalls(t)),[u,r]),()=>u.getCurrentResult(),()=>u.getCurrentResult()),td.useEffect(()=>{u.setQueries(n,{listeners:!1})},[n,u]);let o=a.some((t,e)=>tD(n[e],t,r))?a.flatMap((t,e)=>{let s=n[e],a=u.getObservers()[e];if(s&&a)if(tD(s,t,r))return tA(s,a,i);else tF(t,r)&&tA(s,a,i);return[]}):[];if(o.length>0)throw Promise.all(o);let l=u.getQueries(),h=a.find((t,e)=>{var s,r;return tM({result:t,errorResetBoundary:i,useErrorBoundary:null!=(s=null==(r=n[e])?void 0:r.useErrorBoundary)&&s,query:l[e]})});if(null!=h&&h.error)throw h.error;return a}function tU(t,e){let s=tm({context:t.context}),r=tO(),i=tQ(),n=s.defaultQueryOptions(t);n._optimisticResults=r?"isRestoring":"optimistic",n.onError&&(n.onError=B.batchCalls(n.onError)),n.onSuccess&&(n.onSuccess=B.batchCalls(n.onSuccess)),n.onSettled&&(n.onSettled=B.batchCalls(n.onSettled)),tx(n),tw(n,i),tP(i);let[u]=td.useState(()=>new e(s,n)),a=u.getOptimisticResult(n);if(tf(td.useCallback(t=>{let e=r?()=>void 0:u.subscribe(B.batchCalls(t));return u.updateResult(),e},[u,r]),()=>u.getCurrentResult(),()=>u.getCurrentResult()),td.useEffect(()=>{u.setOptions(n,{listeners:!1})},[n,u]),tD(n,a,r))throw tA(n,u,i);if(tM({result:a,errorResetBoundary:i,useErrorBoundary:n.useErrorBoundary,query:u.getCurrentQuery()}))throw a.error;return n.notifyOnChangeProps?a:u.trackResult(a)}function tT(t,e,s){return tU(y(t,e,s),tt)}function tK(t){return tU({...t,enabled:!0,useErrorBoundary:!0,suspense:!0,placeholderData:void 0,networkMode:"always",onSuccess:void 0,onError:void 0,onSettled:void 0},tt)}function tk(t){return tU({...t,enabled:!0,suspense:!0,useErrorBoundary:!0,networkMode:"always"},tu)}function tL({queries:t,context:e}){return tI({queries:t.map(t=>({...t,enabled:!0,useErrorBoundary:!0,suspense:!0,placeholderData:void 0,networkMode:"always"})),context:e})}function tj(t){return t}function tH(t){return t}function t_(t,e={}){let s=tm({context:e.context}),r=td.useRef(e);r.current=e,td.useMemo(()=>{t&&tc(s,t,r.current)},[s,t])}let tB=({children:t,options:e,state:s})=>(t_(s,e),t);function tN(t,e,s){let[r,i={}]=m(t,e,s),n=tm({context:i.context}),u=n.getQueryCache();return tf(td.useCallback(t=>u.subscribe(B.batchCalls(t)),[u]),()=>n.isFetching(r),()=>n.isFetching(r))}function tG(t,e,s){let[r,i={}]=b(t,e,s),n=tm({context:i.context}),u=n.getMutationCache();return tf(td.useCallback(t=>u.subscribe(B.batchCalls(t)),[u]),()=>n.isMutating(r),()=>n.isMutating(r))}function tz(t){return t}function tV(t,e,s){let r=v(t,e,s),i=tm({context:r.context}),[n]=td.useState(()=>new ta(i,r));td.useEffect(()=>{n.setOptions(r)},[n,r]);let u=tf(td.useCallback(t=>n.subscribe(B.batchCalls(t)),[n]),()=>n.getCurrentResult(),()=>n.getCurrentResult()),a=td.useCallback((t,e)=>{n.mutate(t,e).catch(tW)},[n]);if(u.error&&tq(n.options.useErrorBoundary,[u.error]))throw u.error;return{...u,mutate:a,mutateAsync:u.mutate}}function tW(){}function tJ(t,e,s){return tU(y(t,e,s),tu)}function tX(t){let e=tm();e.getQueryState(t.queryKey)||e.prefetchQuery(t)}function tY(t){let e=tm();e.getQueryState(t.queryKey)||e.prefetchInfiniteQuery(t)}}}]);
@@ -1 +1 @@
1
- "use strict";(self.chunk_VictoriaLogs_0_5_0_beta_4=self.chunk_VictoriaLogs_0_5_0_beta_4||[]).push([["7968"],{75150(e,t,r){r.r(t),r.d(t,{toNestErrors:()=>a,validateFieldsNatively:()=>l});var s=r(76970);let i=(e,t,r)=>{if(e&&"reportValidity"in e){let i=(0,s.get)(r,t);e.setCustomValidity(i&&i.message||""),e.reportValidity()}},l=(e,t)=>{for(let r in t.fields){let s=t.fields[r];s&&s.ref&&"reportValidity"in s.ref?i(s.ref,r,e):s&&s.refs&&s.refs.forEach(t=>i(t,r,e))}},a=(e,t)=>{t.shouldUseNativeValidation&&l(e,t);let r={};for(let i in e){let l=(0,s.get)(t.fields,i),a=Object.assign(e[i]||{},{ref:l&&l.refs?l.refs[0]:l&&l.ref});if(f(t.names||Object.keys(e),i)){let e=Object.assign({},(0,s.get)(r,i));(0,s.set)(e,"root",a),(0,s.set)(r,i,e)}else(0,s.set)(r,i,a)}return r},f=(e,t)=>{let r=o(t).replace(/[.*+?^${}()|\\]/g,"\\$&");return e.some(e=>o(e).match(`^${r}\\.\\d+`))};function o(e){return e.replace(/\[(\d+)]/g,".$1").replace(/[[\]]/g,"")}}}]);
1
+ "use strict";(self.chunk_VictoriaLogs_0_5_0_beta_6=self.chunk_VictoriaLogs_0_5_0_beta_6||[]).push([["7968"],{75150(e,t,r){r.r(t),r.d(t,{toNestErrors:()=>a,validateFieldsNatively:()=>l});var s=r(76970);let i=(e,t,r)=>{if(e&&"reportValidity"in e){let i=(0,s.get)(r,t);e.setCustomValidity(i&&i.message||""),e.reportValidity()}},l=(e,t)=>{for(let r in t.fields){let s=t.fields[r];s&&s.ref&&"reportValidity"in s.ref?i(s.ref,r,e):s&&s.refs&&s.refs.forEach(t=>i(t,r,e))}},a=(e,t)=>{t.shouldUseNativeValidation&&l(e,t);let r={};for(let i in e){let l=(0,s.get)(t.fields,i),a=Object.assign(e[i]||{},{ref:l&&l.refs?l.refs[0]:l&&l.ref});if(f(t.names||Object.keys(e),i)){let e=Object.assign({},(0,s.get)(r,i));(0,s.set)(e,"root",a),(0,s.set)(r,i,e)}else(0,s.set)(r,i,a)}return r},f=(e,t)=>{let r=o(t).replace(/[.*+?^${}()|\\]/g,"\\$&");return e.some(e=>o(e).match(`^${r}\\.\\d+`))};function o(e){return e.replace(/\[(\d+)]/g,".$1").replace(/[[\]]/g,"")}}}]);