@perses-dev/pyroscope-plugin 0.5.0-beta.0 → 0.5.0-rc.1

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 (141) hide show
  1. package/__mf/js/{Pyroscope.2cc96a50.js → Pyroscope.e2b29a34.js} +3 -3
  2. package/__mf/js/async/1728.dd1ef0ce.js +1 -0
  3. package/__mf/js/async/2488.42be58a9.js +7 -0
  4. package/__mf/js/async/4657.ea6d4b03.js +2 -0
  5. package/__mf/js/async/54.76b197d8.js +22 -0
  6. package/__mf/js/async/5440.8c124a65.js +2 -0
  7. package/__mf/js/async/{5440.f3809507.js.LICENSE.txt → 5440.8c124a65.js.LICENSE.txt} +3 -3
  8. package/__mf/js/async/9010.b9e1668b.js +2 -0
  9. package/__mf/js/async/{7570.a8cf961f.js → 9025.b66d1100.js} +1 -1
  10. package/__mf/js/async/{8035.39b8a613.js → 9877.4eb72ec5.js} +9 -9
  11. package/__mf/js/async/{__federation_expose_PyroscopeDatasource.108cb2d6.js → __federation_expose_PyroscopeDatasource.c04e3c9f.js} +2 -2
  12. package/__mf/js/async/{__federation_expose_PyroscopeExplorer.f9864130.js → __federation_expose_PyroscopeExplorer.c8a7b1af.js} +2 -2
  13. package/__mf/js/async/{__federation_expose_PyroscopeProfileQuery.58db5efb.js → __federation_expose_PyroscopeProfileQuery.c5a5af63.js} +2 -2
  14. package/__mf/js/{main.b6d04adf.js → main.85d9c972.js} +3 -3
  15. package/lib/bootstrap.js +1 -1
  16. package/lib/bootstrap.js.map +1 -1
  17. package/lib/cjs/bootstrap.js +1 -1
  18. package/lib/cjs/components/AddFilterItem.js +1 -1
  19. package/lib/cjs/components/DeleteFilterItem.js +1 -1
  20. package/lib/cjs/components/FilterItem.js +1 -1
  21. package/lib/cjs/components/Filters.js +1 -1
  22. package/lib/cjs/components/LabelName.js +1 -1
  23. package/lib/cjs/components/LabelValue.js +1 -1
  24. package/lib/cjs/components/Operator.js +1 -1
  25. package/lib/cjs/components/ProfileTypeSelector.js +1 -1
  26. package/lib/cjs/components/Service.js +1 -1
  27. package/lib/cjs/components/index.js +1 -1
  28. package/lib/cjs/env.d.js +1 -1
  29. package/lib/cjs/explore/PyroscopeExplorer.js +1 -1
  30. package/lib/cjs/explore/index.js +1 -1
  31. package/lib/cjs/getPluginModule.js +1 -1
  32. package/lib/cjs/index-federation.js +1 -1
  33. package/lib/cjs/index.js +1 -1
  34. package/lib/cjs/model/api-types.js +1 -1
  35. package/lib/cjs/model/index.js +1 -1
  36. package/lib/cjs/model/profile-query-model.js +1 -1
  37. package/lib/cjs/model/pyroscope-client.js +1 -1
  38. package/lib/cjs/model/pyroscope-selectors.js +1 -1
  39. package/lib/cjs/plugins/PyroscopeDatasourceEditor.js +1 -1
  40. package/lib/cjs/plugins/index.js +1 -1
  41. package/lib/cjs/plugins/pyroscope-datasource-types.js +1 -1
  42. package/lib/cjs/plugins/pyroscope-datasource.js +1 -1
  43. package/lib/cjs/plugins/pyroscope-profile-query/PyroscopeProfileQuery.js +1 -1
  44. package/lib/cjs/plugins/pyroscope-profile-query/PyroscopeProfileQueryEditor.js +1 -1
  45. package/lib/cjs/plugins/pyroscope-profile-query/get-profile-data.js +1 -1
  46. package/lib/cjs/plugins/pyroscope-profile-query/index.js +1 -1
  47. package/lib/cjs/plugins/pyroscope-profile-query/query-editor-model.js +1 -1
  48. package/lib/cjs/setup-tests.js +1 -1
  49. package/lib/cjs/test/index.js +1 -1
  50. package/lib/cjs/test/mock-data.js +1 -1
  51. package/lib/cjs/test/setup-tests.js +1 -1
  52. package/lib/cjs/utils/types.js +1 -1
  53. package/lib/cjs/utils/use-query.js +1 -1
  54. package/lib/components/AddFilterItem.js +1 -1
  55. package/lib/components/AddFilterItem.js.map +1 -1
  56. package/lib/components/DeleteFilterItem.js +1 -1
  57. package/lib/components/DeleteFilterItem.js.map +1 -1
  58. package/lib/components/FilterItem.js +1 -1
  59. package/lib/components/FilterItem.js.map +1 -1
  60. package/lib/components/Filters.js +1 -1
  61. package/lib/components/Filters.js.map +1 -1
  62. package/lib/components/LabelName.js +1 -1
  63. package/lib/components/LabelName.js.map +1 -1
  64. package/lib/components/LabelValue.js +1 -1
  65. package/lib/components/LabelValue.js.map +1 -1
  66. package/lib/components/Operator.js +1 -1
  67. package/lib/components/Operator.js.map +1 -1
  68. package/lib/components/ProfileTypeSelector.js +1 -1
  69. package/lib/components/ProfileTypeSelector.js.map +1 -1
  70. package/lib/components/Service.js +1 -1
  71. package/lib/components/Service.js.map +1 -1
  72. package/lib/components/index.js +1 -1
  73. package/lib/components/index.js.map +1 -1
  74. package/lib/env.d.js +1 -1
  75. package/lib/env.d.js.map +1 -1
  76. package/lib/explore/PyroscopeExplorer.js +1 -1
  77. package/lib/explore/PyroscopeExplorer.js.map +1 -1
  78. package/lib/explore/index.js +1 -1
  79. package/lib/explore/index.js.map +1 -1
  80. package/lib/getPluginModule.js +1 -1
  81. package/lib/getPluginModule.js.map +1 -1
  82. package/lib/index-federation.js +1 -1
  83. package/lib/index-federation.js.map +1 -1
  84. package/lib/index.js +1 -1
  85. package/lib/index.js.map +1 -1
  86. package/lib/model/api-types.js +1 -1
  87. package/lib/model/api-types.js.map +1 -1
  88. package/lib/model/index.js +1 -1
  89. package/lib/model/index.js.map +1 -1
  90. package/lib/model/profile-query-model.js +1 -1
  91. package/lib/model/profile-query-model.js.map +1 -1
  92. package/lib/model/pyroscope-client.js +1 -1
  93. package/lib/model/pyroscope-client.js.map +1 -1
  94. package/lib/model/pyroscope-selectors.js +1 -1
  95. package/lib/model/pyroscope-selectors.js.map +1 -1
  96. package/lib/plugins/PyroscopeDatasourceEditor.js +1 -1
  97. package/lib/plugins/PyroscopeDatasourceEditor.js.map +1 -1
  98. package/lib/plugins/index.js +1 -1
  99. package/lib/plugins/index.js.map +1 -1
  100. package/lib/plugins/pyroscope-datasource-types.js +1 -1
  101. package/lib/plugins/pyroscope-datasource-types.js.map +1 -1
  102. package/lib/plugins/pyroscope-datasource.js +1 -1
  103. package/lib/plugins/pyroscope-datasource.js.map +1 -1
  104. package/lib/plugins/pyroscope-profile-query/PyroscopeProfileQuery.js +1 -1
  105. package/lib/plugins/pyroscope-profile-query/PyroscopeProfileQuery.js.map +1 -1
  106. package/lib/plugins/pyroscope-profile-query/PyroscopeProfileQueryEditor.js +1 -1
  107. package/lib/plugins/pyroscope-profile-query/PyroscopeProfileQueryEditor.js.map +1 -1
  108. package/lib/plugins/pyroscope-profile-query/get-profile-data.js +1 -1
  109. package/lib/plugins/pyroscope-profile-query/get-profile-data.js.map +1 -1
  110. package/lib/plugins/pyroscope-profile-query/index.js +1 -1
  111. package/lib/plugins/pyroscope-profile-query/index.js.map +1 -1
  112. package/lib/plugins/pyroscope-profile-query/query-editor-model.js +1 -1
  113. package/lib/plugins/pyroscope-profile-query/query-editor-model.js.map +1 -1
  114. package/lib/setup-tests.js +1 -1
  115. package/lib/setup-tests.js.map +1 -1
  116. package/lib/test/index.js +1 -1
  117. package/lib/test/index.js.map +1 -1
  118. package/lib/test/mock-data.js +1 -1
  119. package/lib/test/mock-data.js.map +1 -1
  120. package/lib/test/setup-tests.js +1 -1
  121. package/lib/test/setup-tests.js.map +1 -1
  122. package/lib/utils/types.js +1 -1
  123. package/lib/utils/types.js.map +1 -1
  124. package/lib/utils/use-query.js +1 -1
  125. package/lib/utils/use-query.js.map +1 -1
  126. package/mf-manifest.json +33 -33
  127. package/mf-stats.json +33 -33
  128. package/package.json +6 -6
  129. package/__mf/js/async/1490.83898a50.js +0 -22
  130. package/__mf/js/async/1728.82a39224.js +0 -1
  131. package/__mf/js/async/3664.4d82937b.js +0 -2
  132. package/__mf/js/async/5440.f3809507.js +0 -2
  133. package/__mf/js/async/5501.84760779.js +0 -2
  134. package/__mf/js/async/8971.ec4be707.js +0 -7
  135. /package/__mf/js/async/{8971.ec4be707.js.LICENSE.txt → 2488.42be58a9.js.LICENSE.txt} +0 -0
  136. /package/__mf/js/async/{3664.4d82937b.js.LICENSE.txt → 4657.ea6d4b03.js.LICENSE.txt} +0 -0
  137. /package/__mf/js/async/{1490.83898a50.js.LICENSE.txt → 54.76b197d8.js.LICENSE.txt} +0 -0
  138. /package/__mf/js/async/{5501.84760779.js.LICENSE.txt → 9010.b9e1668b.js.LICENSE.txt} +0 -0
  139. /package/__mf/js/async/{__federation_expose_PyroscopeDatasource.108cb2d6.js.LICENSE.txt → __federation_expose_PyroscopeDatasource.c04e3c9f.js.LICENSE.txt} +0 -0
  140. /package/__mf/js/async/{__federation_expose_PyroscopeExplorer.f9864130.js.LICENSE.txt → __federation_expose_PyroscopeExplorer.c8a7b1af.js.LICENSE.txt} +0 -0
  141. /package/__mf/js/async/{__federation_expose_PyroscopeProfileQuery.58db5efb.js.LICENSE.txt → __federation_expose_PyroscopeProfileQuery.c5a5af63.js.LICENSE.txt} +0 -0
@@ -1 +0,0 @@
1
- (self.chunk_Pyroscope=self.chunk_Pyroscope||[]).push([["1728"],{8072:function(e,t,r){"use strict";r.d(t,{A:()=>p});var o=r(70451),n=r(31789),i=r(70320),a=r(45827);let l={...o}.useSyncExternalStore;function c(e={}){let{themeId:t}=e;return function(e,r={}){let c=(0,a.A)();c&&t&&(c=c[t]||c);let p="undefined"!=typeof window&&void 0!==window.matchMedia,{defaultMatches:u=!1,matchMedia:f=p?window.matchMedia:null,ssrMatchMedia:s=null,noSsr:y=!1}=(0,i.A)({name:"MuiUseMediaQuery",props:r,theme:c}),d="function"==typeof e?e(c):e;return(void 0!==l?function(e,t,r,n,i){let a=o.useCallback(()=>t,[t]),c=o.useMemo(()=>{if(i&&r)return()=>r(e).matches;if(null!==n){let{matches:t}=n(e);return()=>t}return a},[a,e,n,i,r]),[p,u]=o.useMemo(()=>{if(null===r)return[a,()=>()=>{}];let t=r(e);return[()=>t.matches,e=>(t.addEventListener("change",e),()=>{t.removeEventListener("change",e)})]},[a,r,e]);return l(u,p,c)}:function(e,t,r,i,a){let[l,c]=o.useState(()=>a&&r?r(e).matches:i?i(e).matches:t);return(0,n.A)(()=>{if(!r)return;let t=r(e),o=()=>{c(t.matches)};return o(),t.addEventListener("change",o),()=>{t.removeEventListener("change",o)}},[e,r]),l})(d=d.replace(/^@media( ?)/m,""),u,f,s,y)}}c();let p=c({themeId:r(93724).A})},1379:function(e,t,r){"use strict";r.r(t),r.d(t,{ExploreManager:()=>E,ExploreToolbar:()=>j,explorerQueryConfig:()=>R,ExplorerManagerProvider:()=>f,ViewExplore:()=>O,ExplorerManagerProviderWithQueryParams:()=>d,useExplorerQueryParams:()=>_,useExplorerManagerContext:()=>s});var o=r(62540),n=r(74628),i=r(98100),a=r(92648),l=r(99932),c=r(70451),p=r(57348);let u=(0,c.createContext)(void 0);function f({children:e,store:t}){let[r,n]=(0,c.useState)({}),i=(0,c.useState)({explorer:void 0,data:{}}),[a,l]=t||i,{explorer:p,data:f}=a;return(0,o.jsx)(u.Provider,{value:{explorer:p,data:f,setExplorer:function(e){p&&(r[p]={data:f},n(r));let t=r[e]??{data:{}};l({explorer:e,data:t.data})},setData:function(e){l({explorer:p,data:e})}},children:e})}function s(){let e=(0,c.useContext)(u);if(void 0===e)throw Error("No ExplorerManagerContext found. Did you forget a Provider?");return e}let y={explorer:(0,p.withDefault)(p.StringParam,void 0),data:(0,p.withDefault)(p.JsonParam,{})};function d({children:e}){let[t,r]=(0,p.useQueryParams)(y);return(0,o.jsx)(f,{store:[t,r],children:e})}var h=r(8072),m=r(315),g=r(7013),b=r(87034),v=r(33868),x=r(68150),S=r(11061),w=r(27794),A=r(56599);let j=e=>{let{exploreTitleComponent:t}=e,r=(0,h.A)((0,A.A)().breakpoints.up("lg"));return(0,o.jsx)(m.A,{"data-testid":"explore-toolbar",children:(0,o.jsxs)(n.A,{sx:{display:"flex",width:"100%"},children:[t,(0,o.jsx)(m.A,{direction:"row",spacing:1,ml:"auto",flexWrap:r?"nowrap":"wrap-reverse",justifyContent:"end",children:(0,o.jsx)(i.TimeRangeControls,{})})]})})};function E(e){let{exploreTitleComponent:t}=e,{explorer:r,setExplorer:l}=s(),p=(0,i.useListPluginMetadata)(["Explore"]),u=(0,h.A)("(max-width: 768px)"),[f,y]=(0,a.useLocalStorage)("PERSES_EXPLORE_TABS_COLLAPSED",!1),d=(0,c.useMemo)(()=>Object.fromEntries(p.data?.map(e=>[`${e.module.name}-${e.spec.name}`,e])??[]),[p.data]);(0,c.useEffect)(()=>{let e=Object.keys(d);!r&&e?.[0]&&l(e[0])},[d,r,l]);let A=r?d[r]:void 0;return r?(0,o.jsxs)(m.A,{sx:{width:"100%"},px:2,pb:2,pt:1.5,gap:1,children:[(0,o.jsx)(j,{exploreTitleComponent:t}),(0,o.jsxs)(m.A,{direction:u?"column":"row",gap:2,sx:{width:"100%"},children:[(0,o.jsxs)(m.A,{sx:{borderRight:+!u,borderBottom:+!!u,borderColor:"divider",minWidth:f?15:100},children:[(0,o.jsx)(n.A,{sx:{position:"relative",height:30,display:u?"none":void 0},"test-id":"qdqwd",children:(0,o.jsx)(g.A,{title:f?"Expand explorer tabs":"Collapse explorer tabs","aria-label":f?"Expand explorer tabs":"Collapse explorer tabs",variant:"text",sx:{position:"absolute",right:-15,zIndex:1,padding:.5,minWidth:"auto",backgroundColor:e=>e.palette.background.default},onClick:()=>y(!f),children:f?(0,o.jsx)(S.default,{}):(0,o.jsx)(w.default,{})})}),(0,o.jsx)(b.A,{orientation:u?"horizontal":"vertical",value:r,onChange:(e,t)=>l(t),variant:u?"fullWidth":"scrollable",sx:{display:f?"none":"flex"},children:p.data?.sort((e,t)=>e.spec.display.name.localeCompare(t.spec.display.name)).map(e=>(0,o.jsx)(v.A,{value:`${e.module.name}-${e.spec.name}`,label:e.spec.display.name,sx:{padding:.5}},`${e.module.name}-${e.spec.name}`))})]}),(0,o.jsx)(x.A,{sx:{padding:"10px",width:"100%"},children:A&&(0,o.jsx)(i.PluginLoaderComponent,{plugin:{name:A.spec.name,moduleName:A.module.name}},`${A.module.name}-${A.spec.name}`)})]})]}):(0,o.jsx)("div",{children:"No explorer plugin available"})}function P(e){let{exploreTitleComponent:t}=e,r=(0,a.useChartsTheme)();return(0,o.jsx)(n.A,{sx:{flexGrow:1,overflowX:"hidden",overflowY:"auto",display:"flex",flexDirection:"column"},children:(0,o.jsx)(a.ChartsProvider,{chartsTheme:r,enablePinning:!1,children:(0,o.jsx)(d,{children:(0,o.jsx)(E,{exploreTitleComponent:t})})})})}function O(e){let{datasourceApi:t,externalVariableDefinitions:r,sx:c,exploreTitleComponent:p,...u}=e,f=(0,i.useInitialTimeRange)("1h"),s=(0,i.useInitialRefreshInterval)("0s");return(0,o.jsx)(l.DatasourceStoreProvider,{datasourceApi:t,children:(0,o.jsx)(i.TimeRangeProviderWithQueryParams,{initialTimeRange:f,initialRefreshInterval:s,children:(0,o.jsx)(l.VariableProvider,{externalVariableDefinitions:r,children:(0,o.jsx)(n.A,{sx:(0,a.combineSx)({display:"flex",width:"100%",height:"100%",position:"relative",overflow:"hidden"},c),...u,children:(0,o.jsx)(a.ErrorBoundary,{FallbackComponent:a.ErrorAlert,children:(0,o.jsx)(P,{exploreTitleComponent:p})})})})})})}var I=r(74573);let R={refresh:i.TimeRangeParam,start:i.TimeRangeParam,end:i.TimeRangeParam,explorer:p.StringParam,data:p.JsonParam};function _(e){let[t]=(0,p.useQueryParams)(R,{updateType:"replaceIn"});return(0,I.stringify)((0,p.encodeQueryParams)(R,{...t,...e}))}},39309:function(e){"use strict";var t=String.prototype.replace,r=/%20/g,o="RFC3986";e.exports={default:o,formatters:{RFC1738:function(e){return t.call(e,r,"+")},RFC3986:function(e){return String(e)}},RFC1738:"RFC1738",RFC3986:o}},74573:function(e,t,r){"use strict";var o=r(34796),n=r(81938);e.exports={formats:r(39309),parse:n,stringify:o}},81938:function(e,t,r){"use strict";var o=r(11064),n=Object.prototype.hasOwnProperty,i=Array.isArray,a={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:o.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1,throwOnLimitExceeded:!1},l=function(e,t,r){if(e&&"string"==typeof e&&t.comma&&e.indexOf(",")>-1)return e.split(",");if(t.throwOnLimitExceeded&&r>=t.arrayLimit)throw RangeError("Array limit exceeded. Only "+t.arrayLimit+" element"+(1===t.arrayLimit?"":"s")+" allowed in an array.");return e},c=function(e,t){var r={__proto__:null},c=t.ignoreQueryPrefix?e.replace(/^\?/,""):e;c=c.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var p=t.parameterLimit===1/0?void 0:t.parameterLimit,u=c.split(t.delimiter,t.throwOnLimitExceeded?p+1:p);if(t.throwOnLimitExceeded&&u.length>p)throw RangeError("Parameter limit exceeded. Only "+p+" parameter"+(1===p?"":"s")+" allowed.");var f=-1,s=t.charset;if(t.charsetSentinel)for(y=0;y<u.length;++y)0===u[y].indexOf("utf8=")&&("utf8=%E2%9C%93"===u[y]?s="utf-8":"utf8=%26%2310003%3B"===u[y]&&(s="iso-8859-1"),f=y,y=u.length);for(y=0;y<u.length;++y)if(y!==f){var y,d,h,m=u[y],g=m.indexOf("]="),b=-1===g?m.indexOf("="):g+1;-1===b?(d=t.decoder(m,a.decoder,s,"key"),h=t.strictNullHandling?null:""):(d=t.decoder(m.slice(0,b),a.decoder,s,"key"),h=o.maybeMap(l(m.slice(b+1),t,i(r[d])?r[d].length:0),function(e){return t.decoder(e,a.decoder,s,"value")})),h&&t.interpretNumericEntities&&"iso-8859-1"===s&&(h=String(h).replace(/&#(\d+);/g,function(e,t){return String.fromCharCode(parseInt(t,10))})),m.indexOf("[]=")>-1&&(h=i(h)?[h]:h);var v=n.call(r,d);v&&"combine"===t.duplicates?r[d]=o.combine(r[d],h):v&&"last"!==t.duplicates||(r[d]=h)}return r},p=function(e,t,r,n){var i=0;if(e.length>0&&"[]"===e[e.length-1]){var a=e.slice(0,-1).join("");i=Array.isArray(t)&&t[a]?t[a].length:0}for(var c=n?t:l(t,r,i),p=e.length-1;p>=0;--p){var u,f=e[p];if("[]"===f&&r.parseArrays)u=r.allowEmptyArrays&&(""===c||r.strictNullHandling&&null===c)?[]:o.combine([],c);else{u=r.plainObjects?{__proto__:null}:{};var s="["===f.charAt(0)&&"]"===f.charAt(f.length-1)?f.slice(1,-1):f,y=r.decodeDotInKeys?s.replace(/%2E/g,"."):s,d=parseInt(y,10);r.parseArrays||""!==y?!isNaN(d)&&f!==y&&String(d)===y&&d>=0&&r.parseArrays&&d<=r.arrayLimit?(u=[])[d]=c:"__proto__"!==y&&(u[y]=c):u={0:c}}c=u}return c},u=function(e,t,r,o){if(e){var i=r.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,a=/(\[[^[\]]*])/g,l=r.depth>0&&/(\[[^[\]]*])/.exec(i),c=l?i.slice(0,l.index):i,u=[];if(c){if(!r.plainObjects&&n.call(Object.prototype,c)&&!r.allowPrototypes)return;u.push(c)}for(var f=0;r.depth>0&&null!==(l=a.exec(i))&&f<r.depth;){if(f+=1,!r.plainObjects&&n.call(Object.prototype,l[1].slice(1,-1))&&!r.allowPrototypes)return;u.push(l[1])}if(l){if(!0===r.strictDepth)throw RangeError("Input depth exceeded depth option of "+r.depth+" and strictDepth is true");u.push("["+i.slice(l.index)+"]")}return p(u,t,r,o)}},f=function(e){if(!e)return a;if(void 0!==e.allowEmptyArrays&&"boolean"!=typeof e.allowEmptyArrays)throw TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(void 0!==e.decodeDotInKeys&&"boolean"!=typeof e.decodeDotInKeys)throw TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==e.decoder&&void 0!==e.decoder&&"function"!=typeof e.decoder)throw TypeError("Decoder has to be a function.");if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");if(void 0!==e.throwOnLimitExceeded&&"boolean"!=typeof e.throwOnLimitExceeded)throw TypeError("`throwOnLimitExceeded` option must be a boolean");var t=void 0===e.charset?a.charset:e.charset,r=void 0===e.duplicates?a.duplicates:e.duplicates;if("combine"!==r&&"first"!==r&&"last"!==r)throw TypeError("The duplicates option must be either combine, first, or last");return{allowDots:void 0===e.allowDots?!0===e.decodeDotInKeys||a.allowDots:!!e.allowDots,allowEmptyArrays:"boolean"==typeof e.allowEmptyArrays?!!e.allowEmptyArrays:a.allowEmptyArrays,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:a.allowPrototypes,allowSparse:"boolean"==typeof e.allowSparse?e.allowSparse:a.allowSparse,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:a.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:a.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:a.comma,decodeDotInKeys:"boolean"==typeof e.decodeDotInKeys?e.decodeDotInKeys:a.decodeDotInKeys,decoder:"function"==typeof e.decoder?e.decoder:a.decoder,delimiter:"string"==typeof e.delimiter||o.isRegExp(e.delimiter)?e.delimiter:a.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:a.depth,duplicates:r,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:a.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:a.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:a.plainObjects,strictDepth:"boolean"==typeof e.strictDepth?!!e.strictDepth:a.strictDepth,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:a.strictNullHandling,throwOnLimitExceeded:"boolean"==typeof e.throwOnLimitExceeded&&e.throwOnLimitExceeded}};e.exports=function(e,t){var r=f(t);if(""===e||null==e)return r.plainObjects?{__proto__:null}:{};for(var n="string"==typeof e?c(e,r):e,i=r.plainObjects?{__proto__:null}:{},a=Object.keys(n),l=0;l<a.length;++l){var p=a[l],s=u(p,n[p],r,"string"==typeof e);i=o.merge(i,s,r)}return!0===r.allowSparse?i:o.compact(i)}},34796:function(e,t,r){"use strict";var o=r(10588),n=r(11064),i=r(39309),a=Object.prototype.hasOwnProperty,l={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},c=Array.isArray,p=Array.prototype.push,u=function(e,t){p.apply(e,c(t)?t:[t])},f=Date.prototype.toISOString,s=i.default,y={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,commaRoundTrip:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:n.encode,encodeValuesOnly:!1,filter:void 0,format:s,formatter:i.formatters[s],indices:!1,serializeDate:function(e){return f.call(e)},skipNulls:!1,strictNullHandling:!1},d={},h=function e(t,r,i,a,l,p,f,s,h,m,g,b,v,x,S,w,A,j){for(var E,P,O=t,I=j,R=0,_=!1;void 0!==(I=I.get(d))&&!_;){var D=I.get(t);if(R+=1,void 0!==D)if(D===R)throw RangeError("Cyclic object value");else _=!0;void 0===I.get(d)&&(R=0)}if("function"==typeof m?O=m(r,O):O instanceof Date?O=v(O):"comma"===i&&c(O)&&(O=n.maybeMap(O,function(e){return e instanceof Date?v(e):e})),null===O){if(p)return h&&!w?h(r,y.encoder,A,"key",x):r;O=""}if("string"==typeof(E=O)||"number"==typeof E||"boolean"==typeof E||"symbol"==typeof E||"bigint"==typeof E||n.isBuffer(O))return h?[S(w?r:h(r,y.encoder,A,"key",x))+"="+S(h(O,y.encoder,A,"value",x))]:[S(r)+"="+S(String(O))];var M=[];if(void 0===O)return M;if("comma"===i&&c(O))w&&h&&(O=n.maybeMap(O,h)),P=[{value:O.length>0?O.join(",")||null:void 0}];else if(c(m))P=m;else{var k=Object.keys(O);P=g?k.sort(g):k}var T=s?String(r).replace(/\./g,"%2E"):String(r),F=a&&c(O)&&1===O.length?T+"[]":T;if(l&&c(O)&&0===O.length)return F+"[]";for(var N=0;N<P.length;++N){var C=P[N],L="object"==typeof C&&C&&void 0!==C.value?C.value:O[C];if(!f||null!==L){var U=b&&s?String(C).replace(/\./g,"%2E"):String(C),W=c(O)?"function"==typeof i?i(F,U):F:F+(b?"."+U:"["+U+"]");j.set(t,R);var B=o();B.set(d,j),u(M,e(L,W,i,a,l,p,f,s,"comma"===i&&w&&c(O)?null:h,m,g,b,v,x,S,w,A,B))}}return M},m=function(e){if(!e)return y;if(void 0!==e.allowEmptyArrays&&"boolean"!=typeof e.allowEmptyArrays)throw TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(void 0!==e.encodeDotInKeys&&"boolean"!=typeof e.encodeDotInKeys)throw TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==e.encoder&&void 0!==e.encoder&&"function"!=typeof e.encoder)throw TypeError("Encoder has to be a function.");var t,r=e.charset||y.charset;if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var o=i.default;if(void 0!==e.format){if(!a.call(i.formatters,e.format))throw TypeError("Unknown format option provided.");o=e.format}var n=i.formatters[o],p=y.filter;if(("function"==typeof e.filter||c(e.filter))&&(p=e.filter),t=e.arrayFormat in l?e.arrayFormat:"indices"in e?e.indices?"indices":"repeat":y.arrayFormat,"commaRoundTrip"in e&&"boolean"!=typeof e.commaRoundTrip)throw TypeError("`commaRoundTrip` must be a boolean, or absent");var u=void 0===e.allowDots?!0===e.encodeDotInKeys||y.allowDots:!!e.allowDots;return{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:y.addQueryPrefix,allowDots:u,allowEmptyArrays:"boolean"==typeof e.allowEmptyArrays?!!e.allowEmptyArrays:y.allowEmptyArrays,arrayFormat:t,charset:r,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:y.charsetSentinel,commaRoundTrip:!!e.commaRoundTrip,delimiter:void 0===e.delimiter?y.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:y.encode,encodeDotInKeys:"boolean"==typeof e.encodeDotInKeys?e.encodeDotInKeys:y.encodeDotInKeys,encoder:"function"==typeof e.encoder?e.encoder:y.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:y.encodeValuesOnly,filter:p,format:o,formatter:n,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:y.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:y.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:y.strictNullHandling}};e.exports=function(e,t){var r,n=e,i=m(t);"function"==typeof i.filter?n=(0,i.filter)("",n):c(i.filter)&&(r=i.filter);var a=[];if("object"!=typeof n||null===n)return"";var p=l[i.arrayFormat],f="comma"===p&&i.commaRoundTrip;r||(r=Object.keys(n)),i.sort&&r.sort(i.sort);for(var s=o(),y=0;y<r.length;++y){var d=r[y],g=n[d];i.skipNulls&&null===g||u(a,h(g,d,p,f,i.allowEmptyArrays,i.strictNullHandling,i.skipNulls,i.encodeDotInKeys,i.encode?i.encoder:null,i.filter,i.sort,i.allowDots,i.serializeDate,i.format,i.formatter,i.encodeValuesOnly,i.charset,s))}var b=a.join(i.delimiter),v=!0===i.addQueryPrefix?"?":"";return i.charsetSentinel&&("iso-8859-1"===i.charset?v+="utf8=%26%2310003%3B&":v+="utf8=%E2%9C%93&"),b.length>0?v+b:""}},11064:function(e,t,r){"use strict";var o=r(39309),n=Object.prototype.hasOwnProperty,i=Array.isArray,a=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),l=function(e){for(;e.length>1;){var t=e.pop(),r=t.obj[t.prop];if(i(r)){for(var o=[],n=0;n<r.length;++n)void 0!==r[n]&&o.push(r[n]);t.obj[t.prop]=o}}},c=function(e,t){for(var r=t&&t.plainObjects?{__proto__:null}:{},o=0;o<e.length;++o)void 0!==e[o]&&(r[o]=e[o]);return r};e.exports={arrayToObject:c,assign:function(e,t){return Object.keys(t).reduce(function(e,r){return e[r]=t[r],e},e)},combine:function(e,t){return[].concat(e,t)},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],r=[],o=0;o<t.length;++o)for(var n=t[o],i=n.obj[n.prop],a=Object.keys(i),c=0;c<a.length;++c){var p=a[c],u=i[p];"object"==typeof u&&null!==u&&-1===r.indexOf(u)&&(t.push({obj:i,prop:p}),r.push(u))}return l(t),e},decode:function(e,t,r){var o=e.replace(/\+/g," ");if("iso-8859-1"===r)return o.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(o)}catch(e){return o}},encode:function(e,t,r,n,i){if(0===e.length)return e;var l=e;if("symbol"==typeof e?l=Symbol.prototype.toString.call(e):"string"!=typeof e&&(l=String(e)),"iso-8859-1"===r)return escape(l).replace(/%u[0-9a-f]{4}/gi,function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"});for(var c="",p=0;p<l.length;p+=1024){for(var u=l.length>=1024?l.slice(p,p+1024):l,f=[],s=0;s<u.length;++s){var y=u.charCodeAt(s);if(45===y||46===y||95===y||126===y||y>=48&&y<=57||y>=65&&y<=90||y>=97&&y<=122||i===o.RFC1738&&(40===y||41===y)){f[f.length]=u.charAt(s);continue}if(y<128){f[f.length]=a[y];continue}if(y<2048){f[f.length]=a[192|y>>6]+a[128|63&y];continue}if(y<55296||y>=57344){f[f.length]=a[224|y>>12]+a[128|y>>6&63]+a[128|63&y];continue}s+=1,y=65536+((1023&y)<<10|1023&u.charCodeAt(s)),f[f.length]=a[240|y>>18]+a[128|y>>12&63]+a[128|y>>6&63]+a[128|63&y]}c+=f.join("")}return c},isBuffer:function(e){return!!e&&"object"==typeof e&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},maybeMap:function(e,t){if(i(e)){for(var r=[],o=0;o<e.length;o+=1)r.push(t(e[o]));return r}return t(e)},merge:function e(t,r,o){if(!r)return t;if("object"!=typeof r&&"function"!=typeof r){if(i(t))t.push(r);else{if(!t||"object"!=typeof t)return[t,r];(o&&(o.plainObjects||o.allowPrototypes)||!n.call(Object.prototype,r))&&(t[r]=!0)}return t}if(!t||"object"!=typeof t)return[t].concat(r);var a=t;return(i(t)&&!i(r)&&(a=c(t,o)),i(t)&&i(r))?(r.forEach(function(r,i){if(n.call(t,i)){var a=t[i];a&&"object"==typeof a&&r&&"object"==typeof r?t[i]=e(a,r,o):t.push(r)}else t[i]=r}),t):Object.keys(r).reduce(function(t,i){var a=r[i];return n.call(t,i)?t[i]=e(t[i],a,o):t[i]=a,t},a)}}},23836:function(e,t,r){"use strict";var o=r(84499),n=r(36678),i=r(90376);e.exports=r(39707)||o.call(i,n)},36678:function(e){"use strict";e.exports=Function.prototype.apply},90376:function(e){"use strict";e.exports=Function.prototype.call},50946:function(e,t,r){"use strict";var o=r(84499),n=r(1711),i=r(90376),a=r(23836);e.exports=function(e){if(e.length<1||"function"!=typeof e[0])throw new n("a function is required");return a(o,i,e)}},39707:function(e){"use strict";e.exports="undefined"!=typeof Reflect&&Reflect&&Reflect.apply},93232:function(e,t,r){"use strict";var o=r(68897),n=r(50946),i=n([o("%String.prototype.indexOf%")]);e.exports=function(e,t){var r=o(e,!!t);return"function"==typeof r&&i(e,".prototype.")>-1?n([r]):r}},71724:function(e,t,r){"use strict";var o,n=r(50946),i=r(91399);try{o=[].__proto__===Array.prototype}catch(e){if(!e||"object"!=typeof e||!("code"in e)||"ERR_PROTO_ACCESS"!==e.code)throw e}var a=!!o&&i&&i(Object.prototype,"__proto__"),l=Object,c=l.getPrototypeOf;e.exports=a&&"function"==typeof a.get?n([a.get]):"function"==typeof c&&function(e){return c(null==e?e:l(e))}},67539:function(e){"use strict";var t=Object.defineProperty||!1;if(t)try{t({},"a",{value:1})}catch(e){t=!1}e.exports=t},83841:function(e){"use strict";e.exports=EvalError},50219:function(e){"use strict";e.exports=Error},76190:function(e){"use strict";e.exports=RangeError},83950:function(e){"use strict";e.exports=ReferenceError},76296:function(e){"use strict";e.exports=SyntaxError},1711:function(e){"use strict";e.exports=TypeError},13221:function(e){"use strict";e.exports=URIError},7960:function(e){"use strict";e.exports=Object},35845:function(e){"use strict";var t=Object.prototype.toString,r=Math.max,o=function(e,t){for(var r=[],o=0;o<e.length;o+=1)r[o]=e[o];for(var n=0;n<t.length;n+=1)r[n+e.length]=t[n];return r},n=function(e,t){for(var r=[],o=t||0,n=0;o<e.length;o+=1,n+=1)r[n]=e[o];return r},i=function(e,t){for(var r="",o=0;o<e.length;o+=1)r+=e[o],o+1<e.length&&(r+=t);return r};e.exports=function(e){var a,l=this;if("function"!=typeof l||"[object Function]"!==t.apply(l))throw TypeError("Function.prototype.bind called on incompatible "+l);for(var c=n(arguments,1),p=r(0,l.length-c.length),u=[],f=0;f<p;f++)u[f]="$"+f;if(a=Function("binder","return function ("+i(u,",")+"){ return binder.apply(this,arguments); }")(function(){if(this instanceof a){var t=l.apply(this,o(c,arguments));return Object(t)===t?t:this}return l.apply(e,o(c,arguments))}),l.prototype){var s=function(){};s.prototype=l.prototype,a.prototype=new s,s.prototype=null}return a}},84499:function(e,t,r){"use strict";var o=r(35845);e.exports=Function.prototype.bind||o},68897:function(e,t,r){"use strict";var o,n=r(7960),i=r(50219),a=r(83841),l=r(76190),c=r(83950),p=r(76296),u=r(1711),f=r(13221),s=r(74822),y=r(83700),d=r(93888),h=r(24670),m=r(19988),g=r(95786),b=r(93897),v=Function,x=function(e){try{return v('"use strict"; return ('+e+").constructor;")()}catch(e){}},S=r(91399),w=r(67539),A=function(){throw new u},j=S?function(){try{return arguments.callee,A}catch(e){try{return S(arguments,"callee").get}catch(e){return A}}}():A,E=r(14923)(),P=r(56152),O=r(79548),I=r(21588),R=r(36678),_=r(90376),D={},M="undefined"!=typeof Uint8Array&&P?P(Uint8Array):o,k={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?o:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?o:ArrayBuffer,"%ArrayIteratorPrototype%":E&&P?P([][Symbol.iterator]()):o,"%AsyncFromSyncIteratorPrototype%":o,"%AsyncFunction%":D,"%AsyncGenerator%":D,"%AsyncGeneratorFunction%":D,"%AsyncIteratorPrototype%":D,"%Atomics%":"undefined"==typeof Atomics?o:Atomics,"%BigInt%":"undefined"==typeof BigInt?o:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?o:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?o:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?o:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":i,"%eval%":eval,"%EvalError%":a,"%Float16Array%":"undefined"==typeof Float16Array?o:Float16Array,"%Float32Array%":"undefined"==typeof Float32Array?o:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?o:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?o:FinalizationRegistry,"%Function%":v,"%GeneratorFunction%":D,"%Int8Array%":"undefined"==typeof Int8Array?o:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?o:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?o:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":E&&P?P(P([][Symbol.iterator]())):o,"%JSON%":"object"==typeof JSON?JSON:o,"%Map%":"undefined"==typeof Map?o:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&E&&P?P(new Map()[Symbol.iterator]()):o,"%Math%":Math,"%Number%":Number,"%Object%":n,"%Object.getOwnPropertyDescriptor%":S,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?o:Promise,"%Proxy%":"undefined"==typeof Proxy?o:Proxy,"%RangeError%":l,"%ReferenceError%":c,"%Reflect%":"undefined"==typeof Reflect?o:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?o:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&E&&P?P(new Set()[Symbol.iterator]()):o,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?o:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":E&&P?P(""[Symbol.iterator]()):o,"%Symbol%":E?Symbol:o,"%SyntaxError%":p,"%ThrowTypeError%":j,"%TypedArray%":M,"%TypeError%":u,"%Uint8Array%":"undefined"==typeof Uint8Array?o:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?o:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?o:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?o:Uint32Array,"%URIError%":f,"%WeakMap%":"undefined"==typeof WeakMap?o:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?o:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?o:WeakSet,"%Function.prototype.call%":_,"%Function.prototype.apply%":R,"%Object.defineProperty%":w,"%Object.getPrototypeOf%":O,"%Math.abs%":s,"%Math.floor%":y,"%Math.max%":d,"%Math.min%":h,"%Math.pow%":m,"%Math.round%":g,"%Math.sign%":b,"%Reflect.getPrototypeOf%":I};if(P)try{null.error}catch(e){var T=P(P(e));k["%Error.prototype%"]=T}var F=function e(t){var r;if("%AsyncFunction%"===t)r=x("async function () {}");else if("%GeneratorFunction%"===t)r=x("function* () {}");else if("%AsyncGeneratorFunction%"===t)r=x("async function* () {}");else if("%AsyncGenerator%"===t){var o=e("%AsyncGeneratorFunction%");o&&(r=o.prototype)}else if("%AsyncIteratorPrototype%"===t){var n=e("%AsyncGenerator%");n&&P&&(r=P(n.prototype))}return k[t]=r,r},N={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},C=r(84499),L=r(24313),U=C.call(_,Array.prototype.concat),W=C.call(R,Array.prototype.splice),B=C.call(_,String.prototype.replace),$=C.call(_,String.prototype.slice),K=C.call(_,RegExp.prototype.exec),Q=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,G=/\\(\\)?/g,H=function(e){var t=$(e,0,1),r=$(e,-1);if("%"===t&&"%"!==r)throw new p("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==t)throw new p("invalid intrinsic syntax, expected opening `%`");var o=[];return B(e,Q,function(e,t,r,n){o[o.length]=r?B(n,G,"$1"):t||e}),o},V=function(e,t){var r,o=e;if(L(N,o)&&(o="%"+(r=N[o])[0]+"%"),L(k,o)){var n=k[o];if(n===D&&(n=F(o)),void 0===n&&!t)throw new u("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:r,name:o,value:n}}throw new p("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new u("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new u('"allowMissing" argument must be a boolean');if(null===K(/^%?[^%]*%?$/,e))throw new p("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=H(e),o=r.length>0?r[0]:"",n=V("%"+o+"%",t),i=n.name,a=n.value,l=!1,c=n.alias;c&&(o=c[0],W(r,U([0,1],c)));for(var f=1,s=!0;f<r.length;f+=1){var y=r[f],d=$(y,0,1),h=$(y,-1);if(('"'===d||"'"===d||"`"===d||'"'===h||"'"===h||"`"===h)&&d!==h)throw new p("property names with quotes must have matching quotes");if("constructor"!==y&&s||(l=!0),o+="."+y,L(k,i="%"+o+"%"))a=k[i];else if(null!=a){if(!(y in a)){if(!t)throw new u("base intrinsic for "+e+" exists, but the property is not available.");return}if(S&&f+1>=r.length){var m=S(a,y);a=(s=!!m)&&"get"in m&&!("originalValue"in m.get)?m.get:a[y]}else s=L(a,y),a=a[y];s&&!l&&(k[i]=a)}}return a}},79548:function(e,t,r){"use strict";e.exports=r(7960).getPrototypeOf||null},21588:function(e){"use strict";e.exports="undefined"!=typeof Reflect&&Reflect.getPrototypeOf||null},56152:function(e,t,r){"use strict";var o=r(21588),n=r(79548),i=r(71724);e.exports=o?function(e){return o(e)}:n?function(e){if(!e||"object"!=typeof e&&"function"!=typeof e)throw TypeError("getProto: not an object");return n(e)}:i?function(e){return i(e)}:null},6433:function(e){"use strict";e.exports=Object.getOwnPropertyDescriptor},91399:function(e,t,r){"use strict";var o=r(6433);if(o)try{o([],"length")}catch(e){o=null}e.exports=o},14923:function(e,t,r){"use strict";var o="undefined"!=typeof Symbol&&Symbol,n=r(14361);e.exports=function(){return"function"==typeof o&&"function"==typeof Symbol&&"symbol"==typeof o("foo")&&"symbol"==typeof Symbol("bar")&&n()}},14361:function(e){"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),r=Object(t);if("string"==typeof t||"[object Symbol]"!==Object.prototype.toString.call(t)||"[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(var o in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length||"function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var n=Object.getOwnPropertySymbols(e);if(1!==n.length||n[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var i=Object.getOwnPropertyDescriptor(e,t);if(42!==i.value||!0!==i.enumerable)return!1}return!0}},24313:function(e,t,r){"use strict";var o=Function.prototype.call,n=Object.prototype.hasOwnProperty;e.exports=r(84499).call(o,n)},74822:function(e){"use strict";e.exports=Math.abs},83700:function(e){"use strict";e.exports=Math.floor},93943:function(e){"use strict";e.exports=Number.isNaN||function(e){return e!=e}},93888:function(e){"use strict";e.exports=Math.max},24670:function(e){"use strict";e.exports=Math.min},19988:function(e){"use strict";e.exports=Math.pow},95786:function(e){"use strict";e.exports=Math.round},93897:function(e,t,r){"use strict";var o=r(93943);e.exports=function(e){return o(e)||0===e?e:e<0?-1:1}},27794:function(e,t,r){"use strict";var o;t.default=void 0,t.default=(0,((o=r(1448))&&o.__esModule?o:{default:o}).default)("M15.41,16.58L10.83,12L15.41,7.41L14,6L8,12L14,18L15.41,16.58Z","ChevronLeft")},28527:function(e,t,r){var o="function"==typeof Map&&Map.prototype,n=Object.getOwnPropertyDescriptor&&o?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,i=o&&n&&"function"==typeof n.get?n.get:null,a=o&&Map.prototype.forEach,l="function"==typeof Set&&Set.prototype,c=Object.getOwnPropertyDescriptor&&l?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,p=l&&c&&"function"==typeof c.get?c.get:null,u=l&&Set.prototype.forEach,f="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,s="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,y="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,d=Boolean.prototype.valueOf,h=Object.prototype.toString,m=Function.prototype.toString,g=String.prototype.match,b=String.prototype.slice,v=String.prototype.replace,x=String.prototype.toUpperCase,S=String.prototype.toLowerCase,w=RegExp.prototype.test,A=Array.prototype.concat,j=Array.prototype.join,E=Array.prototype.slice,P=Math.floor,O="function"==typeof BigInt?BigInt.prototype.valueOf:null,I=Object.getOwnPropertySymbols,R="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,_="function"==typeof Symbol&&"object"==typeof Symbol.iterator,D="function"==typeof Symbol&&Symbol.toStringTag&&(typeof Symbol.toStringTag===_?"object":"symbol")?Symbol.toStringTag:null,M=Object.prototype.propertyIsEnumerable,k=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function T(e,t){if(e===1/0||e===-1/0||e!=e||e&&e>-1e3&&e<1e3||w.call(/e/,t))return t;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof e){var o=e<0?-P(-e):P(e);if(o!==e){var n=String(o),i=b.call(t,n.length+1);return v.call(n,r,"$&_")+"."+v.call(v.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return v.call(t,r,"$&_")}var F=r(23712),N=F.custom,C=Q(N)?N:null,L={__proto__:null,double:'"',single:"'"},U={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};function W(e,t,r){var o=L[r.quoteStyle||t];return o+e+o}function B(e){return!D||!("object"==typeof e&&(D in e||void 0!==e[D]))}function $(e){return"[object Array]"===V(e)&&B(e)}function K(e){return"[object RegExp]"===V(e)&&B(e)}function Q(e){if(_)return e&&"object"==typeof e&&e instanceof Symbol;if("symbol"==typeof e)return!0;if(!e||"object"!=typeof e||!R)return!1;try{return R.call(e),!0}catch(e){}return!1}e.exports=function e(t,o,n,l){var c,h,x,w,P,I=o||{};if(H(I,"quoteStyle")&&!H(L,I.quoteStyle))throw TypeError('option "quoteStyle" must be "single" or "double"');if(H(I,"maxStringLength")&&("number"==typeof I.maxStringLength?I.maxStringLength<0&&I.maxStringLength!==1/0:null!==I.maxStringLength))throw TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var N=!H(I,"customInspect")||I.customInspect;if("boolean"!=typeof N&&"symbol"!==N)throw TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(H(I,"indent")&&null!==I.indent&&" "!==I.indent&&!(parseInt(I.indent,10)===I.indent&&I.indent>0))throw TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(H(I,"numericSeparator")&&"boolean"!=typeof I.numericSeparator)throw TypeError('option "numericSeparator", if provided, must be `true` or `false`');var G=I.numericSeparator;if(void 0===t)return"undefined";if(null===t)return"null";if("boolean"==typeof t)return t?"true":"false";if("string"==typeof t)return function e(t,r){if(t.length>r.maxStringLength){var o=t.length-r.maxStringLength;return e(b.call(t,0,r.maxStringLength),r)+("... "+o)+" more character"+(o>1?"s":"")}var n=U[r.quoteStyle||"single"];return n.lastIndex=0,W(v.call(v.call(t,n,"\\$1"),/[\x00-\x1f]/g,z),"single",r)}(t,I);if("number"==typeof t){if(0===t)return 1/0/t>0?"0":"-0";var et=String(t);return G?T(t,et):et}if("bigint"==typeof t){var er=String(t)+"n";return G?T(t,er):er}var eo=void 0===I.depth?5:I.depth;if(void 0===n&&(n=0),n>=eo&&eo>0&&"object"==typeof t)return $(t)?"[Array]":"[Object]";var en=function(e,t){var r;if(" "===e.indent)r=" ";else{if("number"!=typeof e.indent||!(e.indent>0))return null;r=j.call(Array(e.indent+1)," ")}return{base:r,prev:j.call(Array(t+1),r)}}(I,n);if(void 0===l)l=[];else if(q(l,t)>=0)return"[Circular]";function ei(t,r,o){if(r&&(l=E.call(l)).push(r),o){var i={depth:I.depth};return H(I,"quoteStyle")&&(i.quoteStyle=I.quoteStyle),e(t,i,n+1,l)}return e(t,I,n+1,l)}if("function"==typeof t&&!K(t)){var ea=function(e){if(e.name)return e.name;var t=g.call(m.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}(t),el=ee(t,ei);return"[Function"+(ea?": "+ea:" (anonymous)")+"]"+(el.length>0?" { "+j.call(el,", ")+" }":"")}if(Q(t)){var ec=_?v.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):R.call(t);return"object"!=typeof t||_?ec:J(ec)}if((ep=t)&&"object"==typeof ep&&("undefined"!=typeof HTMLElement&&ep instanceof HTMLElement||"string"==typeof ep.nodeName&&"function"==typeof ep.getAttribute)){for(var ep,eu,ef="<"+S.call(String(t.nodeName)),es=t.attributes||[],ey=0;ey<es.length;ey++){ef+=" "+es[ey].name+"="+W((eu=es[ey].value,v.call(String(eu),/"/g,"&quot;")),"double",I)}return ef+=">",t.childNodes&&t.childNodes.length&&(ef+="..."),ef+="</"+S.call(String(t.nodeName))+">"}if($(t)){if(0===t.length)return"[]";var ed=ee(t,ei);return en&&!function(e){for(var t=0;t<e.length;t++)if(q(e[t],"\n")>=0)return!1;return!0}(ed)?"["+Z(ed,en)+"]":"[ "+j.call(ed,", ")+" ]"}if("[object Error]"===V(c=t)&&B(c)){var eh=ee(t,ei);return"cause"in Error.prototype||!("cause"in t)||M.call(t,"cause")?0===eh.length?"["+String(t)+"]":"{ ["+String(t)+"] "+j.call(eh,", ")+" }":"{ ["+String(t)+"] "+j.call(A.call("[cause]: "+ei(t.cause),eh),", ")+" }"}if("object"==typeof t&&N){if(C&&"function"==typeof t[C]&&F)return F(t,{depth:eo-n});else if("symbol"!==N&&"function"==typeof t.inspect)return t.inspect()}if(function(e){if(!i||!e||"object"!=typeof e)return!1;try{i.call(e);try{p.call(e)}catch(e){return!0}return e instanceof Map}catch(e){}return!1}(t)){var em=[];return a&&a.call(t,function(e,r){em.push(ei(r,t,!0)+" => "+ei(e,t))}),Y("Map",i.call(t),em,en)}if(function(e){if(!p||!e||"object"!=typeof e)return!1;try{p.call(e);try{i.call(e)}catch(e){return!0}return e instanceof Set}catch(e){}return!1}(t)){var eg=[];return u&&u.call(t,function(e){eg.push(ei(e,t))}),Y("Set",p.call(t),eg,en)}if(function(e){if(!f||!e||"object"!=typeof e)return!1;try{f.call(e,f);try{s.call(e,s)}catch(e){return!0}return e instanceof WeakMap}catch(e){}return!1}(t))return X("WeakMap");if(function(e){if(!s||!e||"object"!=typeof e)return!1;try{s.call(e,s);try{f.call(e,f)}catch(e){return!0}return e instanceof WeakSet}catch(e){}return!1}(t))return X("WeakSet");if(function(e){if(!y||!e||"object"!=typeof e)return!1;try{return y.call(e),!0}catch(e){}return!1}(t))return X("WeakRef");if("[object Number]"===V(h=t)&&B(h))return J(ei(Number(t)));if(function(e){if(!e||"object"!=typeof e||!O)return!1;try{return O.call(e),!0}catch(e){}return!1}(t))return J(ei(O.call(t)));if("[object Boolean]"===V(x=t)&&B(x))return J(d.call(t));if("[object String]"===V(w=t)&&B(w))return J(ei(String(t)));if("undefined"!=typeof window&&t===window)return"{ [object Window] }";if("undefined"!=typeof globalThis&&t===globalThis||void 0!==r.g&&t===r.g)return"{ [object globalThis] }";if(!("[object Date]"===V(P=t)&&B(P))&&!K(t)){var eb=ee(t,ei),ev=k?k(t)===Object.prototype:t instanceof Object||t.constructor===Object,ex=t instanceof Object?"":"null prototype",eS=!ev&&D&&Object(t)===t&&D in t?b.call(V(t),8,-1):ex?"Object":"",ew=(ev||"function"!=typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"")+(eS||ex?"["+j.call(A.call([],eS||[],ex||[]),": ")+"] ":"");return 0===eb.length?ew+"{}":en?ew+"{"+Z(eb,en)+"}":ew+"{ "+j.call(eb,", ")+" }"}return String(t)};var G=Object.prototype.hasOwnProperty||function(e){return e in this};function H(e,t){return G.call(e,t)}function V(e){return h.call(e)}function q(e,t){if(e.indexOf)return e.indexOf(t);for(var r=0,o=e.length;r<o;r++)if(e[r]===t)return r;return -1}function z(e){var t=e.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return r?"\\"+r:"\\x"+(t<16?"0":"")+x.call(t.toString(16))}function J(e){return"Object("+e+")"}function X(e){return e+" { ? }"}function Y(e,t,r,o){return e+" ("+t+") {"+(o?Z(r,o):j.call(r,", "))+"}"}function Z(e,t){if(0===e.length)return"";var r="\n"+t.prev+t.base;return r+j.call(e,","+r)+"\n"+t.prev}function ee(e,t){var r,o=$(e),n=[];if(o){n.length=e.length;for(var i=0;i<e.length;i++)n[i]=H(e,i)?t(e[i],e):""}var a="function"==typeof I?I(e):[];if(_){r={};for(var l=0;l<a.length;l++)r["$"+a[l]]=a[l]}for(var c in e)if(H(e,c)&&(!o||String(Number(c))!==c||!(c<e.length)))if(_&&r["$"+c]instanceof Symbol)continue;else w.call(/[^\w$]/,c)?n.push(t(c,e)+": "+t(e[c],e)):n.push(c+": "+t(e[c],e));if("function"==typeof I)for(var p=0;p<a.length;p++)M.call(e,a[p])&&n.push("["+t(a[p])+"]: "+t(e[a[p]],e));return n}},83575:function(e,t,r){"use strict";var o=r(28527),n=r(1711),i=function(e,t,r){for(var o,n=e;null!=(o=n.next);n=o)if(o.key===t)return n.next=o.next,r||(o.next=e.next,e.next=o),o},a=function(e,t){if(e){var r=i(e,t);return r&&r.value}},l=function(e,t,r){var o=i(e,t);o?o.value=r:e.next={key:t,next:e.next,value:r}},c=function(e,t){if(e)return i(e,t,!0)};e.exports=function(){var e,t={assert:function(e){if(!t.has(e))throw new n("Side channel does not contain "+o(e))},delete:function(t){var r=e&&e.next,o=c(e,t);return o&&r&&r===o&&(e=void 0),!!o},get:function(t){return a(e,t)},has:function(t){var r;return!!(r=e)&&!!i(r,t)},set:function(t,r){e||(e={next:void 0}),l(e,t,r)}};return t}},69167:function(e,t,r){"use strict";var o=r(68897),n=r(93232),i=r(28527),a=r(1711),l=o("%Map%",!0),c=n("Map.prototype.get",!0),p=n("Map.prototype.set",!0),u=n("Map.prototype.has",!0),f=n("Map.prototype.delete",!0),s=n("Map.prototype.size",!0);e.exports=!!l&&function(){var e,t={assert:function(e){if(!t.has(e))throw new a("Side channel does not contain "+i(e))},delete:function(t){if(e){var r=f(e,t);return 0===s(e)&&(e=void 0),r}return!1},get:function(t){if(e)return c(e,t)},has:function(t){return!!e&&u(e,t)},set:function(t,r){e||(e=new l),p(e,t,r)}};return t}},69075:function(e,t,r){"use strict";var o=r(68897),n=r(93232),i=r(28527),a=r(69167),l=r(1711),c=o("%WeakMap%",!0),p=n("WeakMap.prototype.get",!0),u=n("WeakMap.prototype.set",!0),f=n("WeakMap.prototype.has",!0),s=n("WeakMap.prototype.delete",!0);e.exports=c?function(){var e,t,r={assert:function(e){if(!r.has(e))throw new l("Side channel does not contain "+i(e))},delete:function(r){if(c&&r&&("object"==typeof r||"function"==typeof r)){if(e)return s(e,r)}else if(a&&t)return t.delete(r);return!1},get:function(r){return c&&r&&("object"==typeof r||"function"==typeof r)&&e?p(e,r):t&&t.get(r)},has:function(r){return c&&r&&("object"==typeof r||"function"==typeof r)&&e?f(e,r):!!t&&t.has(r)},set:function(r,o){c&&r&&("object"==typeof r||"function"==typeof r)?(e||(e=new c),u(e,r,o)):a&&(t||(t=a()),t.set(r,o))}};return r}:a},10588:function(e,t,r){"use strict";var o=r(1711),n=r(28527),i=r(83575),a=r(69167),l=r(69075)||a||i;e.exports=function(){var e,t={assert:function(e){if(!t.has(e))throw new o("Side channel does not contain "+n(e))},delete:function(t){return!!e&&e.delete(t)},get:function(t){return e&&e.get(t)},has:function(t){return!!e&&e.has(t)},set:function(t,r){e||(e=l()),e.set(t,r)}};return t}}}]);
@@ -1,2 +0,0 @@
1
- /*! For license information please see 3664.4d82937b.js.LICENSE.txt */
2
- "use strict";(self.chunk_Pyroscope=self.chunk_Pyroscope||[]).push([["3664"],{14045:function(e,t,r){r.d(t,{A:()=>g});var n=r(70451),i=r(11750),a=r(81023),o=r(47599),s=r(88091),l=r(67214),u=r(77308),c=r(72052),f=r(85397),d=r(73397),p=r(62540);let m=(0,u.A)("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[{[`& .${f.A.primary}`]:t.primary},{[`& .${f.A.secondary}`]:t.secondary},t.root,r.inset&&t.inset,r.primary&&r.secondary&&t.multiline,r.dense&&t.dense]}})({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4,[`.${o.A.root}:where(& .${f.A.primary})`]:{display:"block"},[`.${o.A.root}:where(& .${f.A.secondary})`]:{display:"block"},variants:[{props:({ownerState:e})=>e.primary&&e.secondary,style:{marginTop:6,marginBottom:6}},{props:({ownerState:e})=>e.inset,style:{paddingLeft:56}}]}),g=n.forwardRef(function(e,t){let r=(0,c.b)({props:e,name:"MuiListItemText"}),{children:o,className:u,disableTypography:g=!1,inset:h=!1,primary:b,primaryTypographyProps:y,secondary:v,secondaryTypographyProps:w,slots:x={},slotProps:B={},...$}=r,{dense:S}=n.useContext(l.A),D=null!=b?b:o,O=v,T={...r,disableTypography:g,inset:h,primary:!!D,secondary:!!O,dense:S},A=(e=>{let{classes:t,inset:r,primary:n,secondary:i,dense:o}=e;return(0,a.A)({root:["root",r&&"inset",o&&"dense",n&&i&&"multiline"],primary:["primary"],secondary:["secondary"]},f.b,t)})(T),N={slots:x,slotProps:{primary:y,secondary:w,...B}},[M,F]=(0,d.A)("root",{className:(0,i.A)(A.root,u),elementType:m,externalForwardedProps:{...N,...$},ownerState:T,ref:t}),[k,C]=(0,d.A)("primary",{className:A.primary,elementType:s.A,externalForwardedProps:N,ownerState:T}),[E,U]=(0,d.A)("secondary",{className:A.secondary,elementType:s.A,externalForwardedProps:N,ownerState:T});return null==D||D.type===s.A||g||(D=(0,p.jsx)(k,{variant:S?"body2":"body1",component:C?.variant?void 0:"span",...C,children:D})),null==O||O.type===s.A||g||(O=(0,p.jsx)(E,{variant:"body2",color:"textSecondary",...U,children:O})),(0,p.jsxs)(M,{...F,children:[D,O]})})},31729:function(e,t,r){r.d(t,{A:()=>v});var n=r(70451),i=r(11750),a=r(52215),o=r(81023),s=r(59238),l=r(1337),u=r(24726),c=r(77308),f=r(23434),d=r(26952),p=r(72052),m=r(76145),g=r(40180),h=r(4992),b=r(62540);let y=(0,c.A)(l.A,{name:"MuiToggleButton",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,t[`size${(0,u.A)(r.size)}`]]}})((0,f.A)(({theme:e})=>({...e.typography.button,borderRadius:(e.vars||e).shape.borderRadius,padding:11,border:`1px solid ${(e.vars||e).palette.divider}`,color:(e.vars||e).palette.action.active,[`&.${m.A.disabled}`]:{color:(e.vars||e).palette.action.disabled,border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},"&:hover":{textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,s.X4)(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},variants:[{props:{color:"standard"},style:{[`&.${m.A.selected}`]:{color:(e.vars||e).palette.text.primary,backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.selectedOpacity})`:(0,s.X4)(e.palette.text.primary,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:(0,s.X4)(e.palette.text.primary,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.selectedOpacity})`:(0,s.X4)(e.palette.text.primary,e.palette.action.selectedOpacity)}}}}},...Object.entries(e.palette).filter((0,d.A)()).map(([t])=>({props:{color:t},style:{[`&.${m.A.selected}`]:{color:(e.vars||e).palette[t].main,backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.selectedOpacity})`:(0,s.X4)(e.palette[t].main,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:(0,s.X4)(e.palette[t].main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.selectedOpacity})`:(0,s.X4)(e.palette[t].main,e.palette.action.selectedOpacity)}}}}})),{props:{fullWidth:!0},style:{width:"100%"}},{props:{size:"small"},style:{padding:7,fontSize:e.typography.pxToRem(13)}},{props:{size:"large"},style:{padding:15,fontSize:e.typography.pxToRem(15)}}]}))),v=n.forwardRef(function(e,t){var r;let{value:s,...l}=n.useContext(g.A),c=n.useContext(h.A),f=(0,a.A)({...l,selected:(r=e.value,void 0!==s&&void 0!==r&&(Array.isArray(s)?s.includes(r):r===s))},e),d=(0,p.b)({props:f,name:"MuiToggleButton"}),{children:v,className:w,color:x="standard",disabled:B=!1,disableFocusRipple:$=!1,fullWidth:S=!1,onChange:D,onClick:O,selected:T,size:A="medium",value:N,...M}=d,F={...d,color:x,disabled:B,disableFocusRipple:$,fullWidth:S,size:A},k=(e=>{let{classes:t,fullWidth:r,selected:n,disabled:i,size:a,color:s}=e,l={root:["root",n&&"selected",i&&"disabled",r&&"fullWidth",`size${(0,u.A)(a)}`,s]};return(0,o.A)(l,m.J,t)})(F);return(0,b.jsx)(y,{className:(0,i.A)(l.className,k.root,w,c||""),disabled:B,focusRipple:!$,ref:t,onClick:e=>{O&&(O(e,N),e.defaultPrevented)||D&&D(e,N)},onChange:D,value:N,ownerState:F,"aria-pressed":T,...M,children:v})})},76145:function(e,t,r){r.d(t,{A:()=>o,J:()=>a});var n=r(29009),i=r(46733);function a(e){return(0,i.Ay)("MuiToggleButton",e)}let o=(0,n.A)("MuiToggleButton",["root","disabled","selected","standard","primary","secondary","sizeSmall","sizeMedium","sizeLarge","fullWidth"])},61375:function(e,t,r){r.d(t,{A:()=>w});var n=r(70451),i=r(11750),a=r(81023),o=r(41953),s=r(77308),l=r(23434),u=r(72052),c=r(24726),f=r(29009),d=r(46733);function p(e){return(0,d.Ay)("MuiToggleButtonGroup",e)}let m=(0,f.A)("MuiToggleButtonGroup",["root","selected","horizontal","vertical","disabled","grouped","groupedHorizontal","groupedVertical","fullWidth","firstButton","lastButton","middleButton"]);var g=r(40180),h=r(4992),b=r(76145),y=r(62540);let v=(0,s.A)("div",{name:"MuiToggleButtonGroup",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[{[`& .${m.grouped}`]:t.grouped},{[`& .${m.grouped}`]:t[`grouped${(0,c.A)(r.orientation)}`]},{[`& .${m.firstButton}`]:t.firstButton},{[`& .${m.lastButton}`]:t.lastButton},{[`& .${m.middleButton}`]:t.middleButton},t.root,"vertical"===r.orientation&&t.vertical,r.fullWidth&&t.fullWidth]}})((0,l.A)(({theme:e})=>({display:"inline-flex",borderRadius:(e.vars||e).shape.borderRadius,variants:[{props:{orientation:"vertical"},style:{flexDirection:"column",[`& .${m.grouped}`]:{[`&.${m.selected} + .${m.grouped}.${m.selected}`]:{borderTop:0,marginTop:0}},[`& .${m.firstButton},& .${m.middleButton}`]:{borderBottomLeftRadius:0,borderBottomRightRadius:0},[`& .${m.lastButton},& .${m.middleButton}`]:{marginTop:-1,borderTop:"1px solid transparent",borderTopLeftRadius:0,borderTopRightRadius:0},[`& .${m.lastButton}.${b.A.disabled},& .${m.middleButton}.${b.A.disabled}`]:{borderTop:"1px solid transparent"}}},{props:{fullWidth:!0},style:{width:"100%"}},{props:{orientation:"horizontal"},style:{[`& .${m.grouped}`]:{[`&.${m.selected} + .${m.grouped}.${m.selected}`]:{borderLeft:0,marginLeft:0}},[`& .${m.firstButton},& .${m.middleButton}`]:{borderTopRightRadius:0,borderBottomRightRadius:0},[`& .${m.lastButton},& .${m.middleButton}`]:{marginLeft:-1,borderLeft:"1px solid transparent",borderTopLeftRadius:0,borderBottomLeftRadius:0},[`& .${m.lastButton}.${b.A.disabled},& .${m.middleButton}.${b.A.disabled}`]:{borderLeft:"1px solid transparent"}}}]}))),w=n.forwardRef(function(e,t){let r=(0,u.b)({props:e,name:"MuiToggleButtonGroup"}),{children:s,className:l,color:f="standard",disabled:d=!1,exclusive:m=!1,fullWidth:b=!1,onChange:w,orientation:x="horizontal",size:B="medium",value:$,...S}=r,D={...r,disabled:d,fullWidth:b,orientation:x,size:B},O=(e=>{let{classes:t,orientation:r,fullWidth:n,disabled:i}=e,o={root:["root",r,n&&"fullWidth"],grouped:["grouped",`grouped${(0,c.A)(r)}`,i&&"disabled"],firstButton:["firstButton"],lastButton:["lastButton"],middleButton:["middleButton"]};return(0,a.A)(o,p,t)})(D),T=n.useCallback((e,t)=>{let r;if(!w)return;let n=$&&$.indexOf(t);$&&n>=0?(r=$.slice()).splice(n,1):r=$?$.concat(t):[t],w(e,r)},[w,$]),A=n.useCallback((e,t)=>{w&&w(e,$===t?null:t)},[w,$]),N=n.useMemo(()=>({className:O.grouped,onChange:m?A:T,value:$,size:B,fullWidth:b,color:f,disabled:d}),[O.grouped,m,A,T,$,B,b,f,d]),M=(0,o.A)(s),F=M.length;return(0,y.jsx)(v,{role:"group",className:(0,i.A)(O.root,l),ref:t,ownerState:D,...S,children:(0,y.jsx)(g.A.Provider,{value:N,children:M.map((e,t)=>{let r,n;return(0,y.jsx)(h.A.Provider,{value:(r=0===t,n=t===F-1,r&&n?"":r?O.firstButton:n?O.lastButton:O.middleButton),children:e},t)})})})})},4992:function(e,t,r){r.d(t,{A:()=>n});let n=r(70451).createContext(void 0)},40180:function(e,t,r){r.d(t,{A:()=>n});let n=r(70451).createContext({})},41953:function(e,t,r){r.d(t,{A:()=>i});var n=r(70451);function i(e){return n.Children.toArray(e).filter(e=>n.isValidElement(e))}},3967:function(e,t,r){r.d(t,{DY:()=>s,Dk:()=>o,G2:()=>i,JW:()=>c,M8:()=>a,VE:()=>l,lh:()=>d,nV:()=>f,qw:()=>n,yf:()=>u});let n=["bottom","right"],i=["list","table"],a=["small","medium"];function o(e){return n.includes(e)}function s(e){return i.includes(e)}function l(e){return a.includes(e)}let u={position:"bottom",mode:"list",size:"medium"};function c(e){return void 0===e?u.position:o(e)?e:u.position}function f(e){return e&&s(e)?e:u.mode}function d(e){return e&&l(e)?e:u.size}},3627:function(e,t,r){r.d(t,{L:()=>n});let n={JoinByColumnValue:"Join by column value",MergeColumns:"Merge columns",MergeIndexedColumns:"Merge indexed columns",MergeSeries:"Merge series"}},12826:function(e,t,r){r.d(t,{T6:()=>eb,W5:()=>ec,x9:()=>ey,AC:()=>en,Fl:()=>ei,Se:()=>eo,px:()=>ed,GU:()=>eu,i$:()=>ep,j9:()=>em,fZ:()=>eg,Yf:()=>eh,KN:()=>el,w0:()=>er,oy:()=>ef,r_:()=>ea,CB:()=>es});var n,i,a,o,s,l,u,c,f,d="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==r.g?r.g:"undefined"!=typeof self?self:{};function p(){if(s)return o;s=1;let e=[{key:"ZiB",factor:11805916207174113e5},{key:"ZB",factor:1e21},{key:"YiB",factor:12089258196146292e8},{key:"YB",factor:1e24},{key:"TiB",factor:0x10000000000},{key:"TB",factor:1e12},{key:"PiB",factor:0x4000000000000},{key:"PB",factor:1e15},{key:"MiB",factor:1048576},{key:"MB",factor:1e6},{key:"KiB",factor:1024},{key:"KB",factor:1e3},{key:"GiB",factor:0x40000000},{key:"GB",factor:1e9},{key:"EiB",factor:0x1000000000000000},{key:"EB",factor:1e18},{key:"B",factor:1}];function t(e){return e.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&")}return o={unformat:function(r,n){let i,a=h(),o=a.currentDelimiters(),s=a.currentCurrency().symbol,l=a.currentOrdinal(),u=a.getZeroFormat(),c=a.currentAbbreviations();if("string"==typeof r)if(function(e,t){if(!(e.indexOf(":")&&":"!==t.thousands))return!1;let r=e.split(":");if(3!==r.length)return!1;let n=+r[0],i=+r[1],a=+r[2];return!isNaN(n)&&!isNaN(i)&&!isNaN(a)}(r,o)){let e,t,n;t=+(e=r.split(":"))[0],n=+e[1],i=+e[2]+60*n+3600*t}else i=function(r,n,i="",a,o,s,l){if(""!==r)return r===o?0:function r(n,i,a,o,s,l,u){if(!isNaN(+n))return+n;let c="",f=n.replace(/(^[^(]*)\((.*)\)([^)]*$)/,"$1$2$3");if(f!==n)return -1*r(f,i,a,o,s,l);for(let t=0;t<e.length;t++){let u=e[t];if((c=n.replace(RegExp(`([0-9 ])(${u.key})$`),"$1"))!==n)return r(c,i,a,o,s,l)*u.factor}if((c=n.replace("%",""))!==n)return r(c,i,a,o,s,l)/100;let d=parseFloat(n);if(isNaN(d))return;let p=o(d);if(p&&"."!==p&&(c=n.replace(RegExp(`${t(p)}$`),""))!==n)return r(c,i,a,o,s,l);let m={};Object.keys(l).forEach(e=>{m[l[e]]=e});let g=Object.keys(m).sort().reverse(),h=g.length;for(let e=0;e<h;e++){let t=g[e],u=m[t];if((c=n.replace(t,""))!==n){let e;switch(u){case"thousand":e=1e3;break;case"million":e=1e6;break;case"billion":e=1e9;break;case"trillion":e=1e12}return r(c,i,a,o,s,l)*e}}}(r.replace(i,"").replace(RegExp(`([0-9])${t(n.thousands)}([0-9])`,"g"),"$1$2").replace(n.decimal,"."),n,i,a,o,s)}(r,o,s,l,u,c);else{if("number"!=typeof r)return;i=r}if(void 0!==i)return i}}}function m(){if(u)return l;u=1;let e=p(),t=/^[a-z]{2,3}(-[a-zA-Z]{4})?(-([A-Z]{2}|[0-9]{3}))?$/,r={output:{type:"string",validValues:["currency","percent","byte","time","ordinal","number"]},base:{type:"string",validValues:["decimal","binary","general"],restriction:(e,t)=>"byte"===t.output,message:"`base` must be provided only when the output is `byte`",mandatory:e=>"byte"===e.output},characteristic:{type:"number",restriction:e=>e>=0,message:"value must be positive"},prefix:"string",postfix:"string",forceAverage:{type:"string",validValues:["trillion","billion","million","thousand"]},average:"boolean",lowPrecision:{type:"boolean",restriction:(e,t)=>!0===t.average,message:"`lowPrecision` must be provided only when the option `average` is set"},currencyPosition:{type:"string",validValues:["prefix","infix","postfix"]},currencySymbol:"string",totalLength:{type:"number",restrictions:[{restriction:e=>e>=0,message:"value must be positive"},{restriction:(e,t)=>!t.exponential,message:"`totalLength` is incompatible with `exponential`"}]},mantissa:{type:"number",restriction:e=>e>=0,message:"value must be positive"},optionalMantissa:"boolean",trimMantissa:"boolean",roundingFunction:"function",optionalCharacteristic:"boolean",thousandSeparated:"boolean",spaceSeparated:"boolean",spaceSeparatedCurrency:"boolean",spaceSeparatedAbbreviation:"boolean",abbreviations:{type:"object",children:{thousand:"string",million:"string",billion:"string",trillion:"string"}},negative:{type:"string",validValues:["sign","parenthesis"]},forceSign:"boolean",exponential:{type:"boolean"},prefixSymbol:{type:"boolean",restriction:(e,t)=>"percent"===t.output,message:"`prefixSymbol` can be provided only when the output is `percent`"}},n={languageTag:{type:"string",mandatory:!0,restriction:e=>e.match(t),message:"the language tag must follow the BCP 47 specification (see https://tools.ieft.org/html/bcp47)"},delimiters:{type:"object",children:{thousands:"string",decimal:"string",thousandsSize:"number"},mandatory:!0},abbreviations:{type:"object",children:{thousand:{type:"string",mandatory:!0},million:{type:"string",mandatory:!0},billion:{type:"string",mandatory:!0},trillion:{type:"string",mandatory:!0}},mandatory:!0},spaceSeparated:"boolean",spaceSeparatedCurrency:"boolean",ordinal:{type:"function",mandatory:!0},bytes:{type:"object",children:{binarySuffixes:"object",decimalSuffixes:"object"}},currency:{type:"object",children:{symbol:"string",position:"string",code:"string"},mandatory:!0},defaults:"format",ordinalFormat:"format",byteFormat:"format",percentageFormat:"format",currencyFormat:"format",timeDefaults:"format",formats:{type:"object",children:{fourDigits:{type:"format",mandatory:!0},fullWithTwoDecimals:{type:"format",mandatory:!0},fullWithTwoDecimalsNoCurrency:{type:"format",mandatory:!0},fullWithNoDecimals:{type:"format",mandatory:!0}}}};function i(t){return void 0!==e.unformat(t)}function a(e,t,n,i=!1){let o=Object.keys(e).map(i=>{if(!t[i])return console.error(`${n} Invalid key: ${i}`),!1;let o=e[i],s=t[i];if("string"==typeof s&&(s={type:s}),"format"===s.type){if(!a(o,r,`[Validate ${i}]`,!0))return!1}else if(typeof o!==s.type)return console.error(`${n} ${i} type mismatched: "${s.type}" expected, "${typeof o}" provided`),!1;if(s.restrictions&&s.restrictions.length){let t=s.restrictions.length;for(let r=0;r<t;r++){let{restriction:t,message:a}=s.restrictions[r];if(!t(o,e))return console.error(`${n} ${i} invalid value: ${a}`),!1}}return s.restriction&&!s.restriction(o,e)?(console.error(`${n} ${i} invalid value: ${s.message}`),!1):s.validValues&&-1===s.validValues.indexOf(o)?(console.error(`${n} ${i} invalid value: must be among ${JSON.stringify(s.validValues)}, "${o}" provided`),!1):(!s.children||!!a(o,s.children,`[Validate ${i}]`))&&!0});return i||o.push(...Object.keys(t).map(r=>{let i=t[r];if("string"==typeof i&&(i={type:i}),i.mandatory){let t=i.mandatory;if("function"==typeof t&&(t=t(e)),t&&void 0===e[r])return console.error(`${n} Missing mandatory key "${r}"`),!1}return!0})),o.reduce((e,t)=>e&&t,!0)}function o(e){return a(e,r,"[Validate format]")}return l={validate:function(e,t){let r=i(e),n=o(t);return r&&n},validateFormat:o,validateInput:i,validateLanguage:function(e){return a(e,n,"[Validate language]")}}}var g=function(e,t={}){var r,n,i,a,o,s;let l,u,c,f,d;if("string"!=typeof e)return e;n=e=(l=(r=e).match(/^{([^}]*)}/))?(t.prefix=l[1],r.slice(l[0].length)):r,function(e,t){if(-1!==e.indexOf("$")){t.output="currency";return}if(-1!==e.indexOf("%")){t.output="percent";return}if(-1!==e.indexOf("bd")){t.output="byte",t.base="general";return}if(-1!==e.indexOf("b")){t.output="byte",t.base="binary";return}if(-1!==e.indexOf("d")){t.output="byte",t.base="decimal";return}if(-1!==e.indexOf(":")){t.output="time";return}-1!==e.indexOf("o")&&(t.output="ordinal")}(e=(u=n.match(/{([^}]*)}$/))?(t.postfix=u[1],n.slice(0,-u[0].length)):n,t),(c=e.match(/[1-9]+[0-9]*/))&&(t.totalLength=+c[0]),(f=e.split(".")[0].match(/0+/))&&(t.characteristic=f[0].length),-1!==(i=e).indexOf(".")&&(t.optionalCharacteristic=-1===i.split(".")[0].indexOf("0")),-1!==e.indexOf("a")&&(t.average=!0),-1!==(a=e).indexOf("K")?t.forceAverage="thousand":-1!==a.indexOf("M")?t.forceAverage="million":-1!==a.indexOf("B")?t.forceAverage="billion":-1!==a.indexOf("T")&&(t.forceAverage="trillion");let p=e.split(".")[1];if(p){let e=p.match(/0+/);e&&(t.mantissa=e[0].length)}return(o=e).match(/\[\.]/)?t.optionalMantissa=!0:o.match(/\./)&&(t.optionalMantissa=!1),(d=e.split(".")[1])&&(t.trimMantissa=-1!==d.indexOf("[")),-1!==e.indexOf(",")&&(t.thousandSeparated=!0),-1!==e.indexOf(" ")&&(t.spaceSeparated=!0,t.spaceSeparatedCurrency=!0,(t.average||t.forceAverage)&&(t.spaceSeparatedAbbreviation=!0)),(s=e).match(/^\+?\([^)]*\)$/)&&(t.negative="parenthesis"),s.match(/^\+?-/)&&(t.negative="sign"),e.match(/^\+/)&&(t.forceSign=!0),t};function h(){let e;if(f)return c;f=1;let t=a?i:(a=1,i={languageTag:"en-US",delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},spaceSeparated:!1,ordinal:function(e){let t=e%10;return 1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th"},bytes:{binarySuffixes:["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"],decimalSuffixes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"]},currency:{symbol:"$",position:"prefix",code:"USD"},currencyFormat:{thousandSeparated:!0,totalLength:4,spaceSeparated:!0,spaceSeparatedCurrency:!0},formats:{fourDigits:{totalLength:4,spaceSeparated:!0},fullWithTwoDecimals:{output:"currency",thousandSeparated:!0,mantissa:2},fullWithTwoDecimalsNoCurrency:{thousandSeparated:!0,mantissa:2},fullWithNoDecimals:{output:"currency",thousandSeparated:!0,mantissa:0}}}),r=m(),n={},o={},s=null,l={};function u(){return o[e]}return n.languages=()=>Object.assign({},o),n.currentLanguage=()=>e,n.currentBytes=()=>u().bytes||{},n.currentCurrency=()=>u().currency,n.currentAbbreviations=()=>u().abbreviations,n.currentDelimiters=()=>u().delimiters,n.currentOrdinal=()=>u().ordinal,n.currentDefaults=()=>Object.assign({},u().defaults,l),n.currentOrdinalDefaultFormat=()=>Object.assign({},n.currentDefaults(),u().ordinalFormat),n.currentByteDefaultFormat=()=>Object.assign({},n.currentDefaults(),u().byteFormat),n.currentPercentageDefaultFormat=()=>Object.assign({},n.currentDefaults(),u().percentageFormat),n.currentCurrencyDefaultFormat=()=>Object.assign({},n.currentDefaults(),u().currencyFormat),n.currentTimeDefaultFormat=()=>Object.assign({},n.currentDefaults(),u().timeFormat),n.setDefaults=e=>{e=g(e),r.validateFormat(e)&&(l=e)},n.getZeroFormat=()=>s,n.setZeroFormat=e=>s="string"==typeof e?e:null,n.hasZeroFormat=()=>null!==s,n.languageData=e=>{if(e){if(o[e])return o[e];throw Error(`Unknown tag "${e}"`)}return u()},n.registerLanguage=(t,n=!1)=>{if(!r.validateLanguage(t))throw Error("Invalid language data");o[t.languageTag]=t,n&&(e=t.languageTag)},n.setLanguage=(r,n=t.languageTag)=>{if(!o[r]){let t=r.split("-")[0],i=Object.keys(o).find(e=>e.split("-")[0]===t);return o[i]?void(e=i):void(e=n)}e=r},n.registerLanguage(t),e=t.languageTag,c=n}var b={exports:{}};(function(e){var t,r=/^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,n=Math.ceil,i=Math.floor,a="[BigNumber Error] ",o=a+"Number primitive has more than 15 significant digits: ",s=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13];function l(e){var t=0|e;return e>0||e===t?t:t-1}function u(e){for(var t,r,n=1,i=e.length,a=e[0]+"";n<i;){for(r=14-(t=e[n++]+"").length;r--;t="0"+t);a+=t}for(i=a.length;48===a.charCodeAt(--i););return a.slice(0,i+1||1)}function c(e,t){var r,n,i=e.c,a=t.c,o=e.s,s=t.s,l=e.e,u=t.e;if(!o||!s)return null;if(r=i&&!i[0],n=a&&!a[0],r||n)return r?n?0:-s:o;if(o!=s)return o;if(r=o<0,n=l==u,!i||!a)return n?0:!i^r?1:-1;if(!n)return l>u^r?1:-1;for(o=0,s=(l=i.length)<(u=a.length)?l:u;o<s;o++)if(i[o]!=a[o])return i[o]>a[o]^r?1:-1;return l==u?0:l>u^r?1:-1}function f(e,t,r,n){if(e<t||e>r||e!==i(e))throw Error(a+(n||"Argument")+("number"==typeof e?e<t||e>r?" out of range: ":" not an integer: ":" not a primitive number: ")+String(e))}function d(e){var t=e.c.length-1;return l(e.e/14)==t&&e.c[t]%2!=0}function p(e,t){return(e.length>1?e.charAt(0)+"."+e.slice(1):e)+(t<0?"e":"e+")+t}function m(e,t,r){var n,i;if(t<0){for(i=r+".";++t;i+=r);e=i+e}else if(n=e.length,++t>n){for(i=r,t-=n;--t;i+=r);e+=i}else t<n&&(e=e.slice(0,t)+"."+e.slice(t));return e}(t=function e(t){var g,h,b,y,v,w,x,B,$,S=L.prototype={constructor:L,toString:null,valueOf:null},D=new L(1),O=20,T=4,A=-7,N=21,M=-1e7,F=1e7,k=!1,C=1,E=0,U={prefix:"",groupSize:3,secondaryGroupSize:0,groupSeparator:",",decimalSeparator:".",fractionGroupSize:0,fractionGroupSeparator:"\xa0",suffix:""},I="0123456789abcdefghijklmnopqrstuvwxyz",R=!0;function L(e,t){var n,a,s,l,u,c,d,p,m=this;if(!(m instanceof L))return new L(e,t);if(null==t){if(e&&!0===e._isBigNumber){m.s=e.s,!e.c||e.e>F?m.c=m.e=null:e.e<M?m.c=[m.e=0]:(m.e=e.e,m.c=e.c.slice());return}if((c="number"==typeof e)&&0*e==0){if(m.s=1/e<0?(e=-e,-1):1,e===~~e){for(l=0,u=e;u>=10;u/=10,l++);l>F?m.c=m.e=null:(m.e=l,m.c=[e]);return}p=String(e)}else{if(!r.test(p=String(e)))return $(m,p,c);m.s=45==p.charCodeAt(0)?(p=p.slice(1),-1):1}(l=p.indexOf("."))>-1&&(p=p.replace(".","")),(u=p.search(/e/i))>0?(l<0&&(l=u),l+=+p.slice(u+1),p=p.substring(0,u)):l<0&&(l=p.length)}else{if(f(t,2,I.length,"Base"),10==t&&R)return G(m=new L(e),O+m.e+1,T);if(p=String(e),c="number"==typeof e){if(0*e!=0)return $(m,p,c,t);if(m.s=1/e<0?(p=p.slice(1),-1):1,L.DEBUG&&p.replace(/^0\.0*|\./,"").length>15)throw Error(o+e)}else m.s=45===p.charCodeAt(0)?(p=p.slice(1),-1):1;for(n=I.slice(0,t),l=u=0,d=p.length;u<d;u++)if(0>n.indexOf(a=p.charAt(u))){if("."==a){if(u>l){l=d;continue}}else if(!s&&(p==p.toUpperCase()&&(p=p.toLowerCase())||p==p.toLowerCase()&&(p=p.toUpperCase()))){s=!0,u=-1,l=0;continue}return $(m,String(e),c,t)}c=!1,(l=(p=B(p,t,10,m.s)).indexOf("."))>-1?p=p.replace(".",""):l=p.length}for(u=0;48===p.charCodeAt(u);u++);for(d=p.length;48===p.charCodeAt(--d););if(p=p.slice(u,++d)){if(d-=u,c&&L.DEBUG&&d>15&&(e>0x1fffffffffffff||e!==i(e)))throw Error(o+m.s*e);if((l=l-u-1)>F)m.c=m.e=null;else if(l<M)m.c=[m.e=0];else{if(m.e=l,m.c=[],u=(l+1)%14,l<0&&(u+=14),u<d){for(u&&m.c.push(+p.slice(0,u)),d-=14;u<d;)m.c.push(+p.slice(u,u+=14));u=14-(p=p.slice(u)).length}else u-=d;for(;u--;p+="0");m.c.push(+p)}}else m.c=[m.e=0]}function P(e,t,r,n){var i,a,o,s,l;if(null==r?r=T:f(r,0,8),!e.c)return e.toString();if(i=e.c[0],o=e.e,null==t)l=u(e.c),l=1==n||2==n&&(o<=A||o>=N)?p(l,o):m(l,o,"0");else if(a=(e=G(new L(e),t,r)).e,s=(l=u(e.c)).length,1==n||2==n&&(t<=a||a<=A)){for(;s<t;l+="0",s++);l=p(l,a)}else if(t-=o,l=m(l,a,"0"),a+1>s){if(--t>0)for(l+=".";t--;l+="0");}else if((t+=a-s)>0)for(a+1==s&&(l+=".");t--;l+="0");return e.s<0&&i?"-"+l:l}function _(e,t){for(var r,n,i=1,a=new L(e[0]);i<e.length;i++)(n=new L(e[i])).s&&(r=c(a,n))!==t&&(0!==r||a.s!==t)||(a=n);return a}function j(e,t,r){for(var n=1,i=t.length;!t[--i];t.pop());for(i=t[0];i>=10;i/=10,n++);return(r=n+14*r-1)>F?e.c=e.e=null:r<M?e.c=[e.e=0]:(e.e=r,e.c=t),e}function G(e,t,r,a){var o,l,u,c,f,d,p,m=e.c;if(m){e:{for(o=1,c=m[0];c>=10;c/=10,o++);if((l=t-o)<0)l+=14,u=t,p=i((f=m[d=0])/s[o-u-1]%10);else if((d=n((l+1)/14))>=m.length)if(a){for(;m.length<=d;m.push(0));f=p=0,o=1,l%=14,u=l-14+1}else break e;else{for(o=1,f=c=m[d];c>=10;c/=10,o++);l%=14,p=(u=l-14+o)<0?0:i(f/s[o-u-1]%10)}if(a=a||t<0||null!=m[d+1]||(u<0?f:f%s[o-u-1]),a=r<4?(p||a)&&(0==r||r==(e.s<0?3:2)):p>5||5==p&&(4==r||a||6==r&&(l>0?u>0?f/s[o-u]:0:m[d-1])%10&1||r==(e.s<0?8:7)),t<1||!m[0])return m.length=0,a?(t-=e.e+1,m[0]=s[(14-t%14)%14],e.e=-t||0):m[0]=e.e=0,e;if(0==l?(m.length=d,c=1,d--):(m.length=d+1,c=s[14-l],m[d]=u>0?i(f/s[o-u]%s[u])*c:0),a)for(;;)if(0==d){for(l=1,u=m[0];u>=10;u/=10,l++);for(u=m[0]+=c,c=1;u>=10;u/=10,c++);l!=c&&(e.e++,1e14==m[0]&&(m[0]=1));break}else{if(m[d]+=c,1e14!=m[d])break;m[d--]=0,c=1}for(l=m.length;0===m[--l];m.pop());}e.e>F?e.c=e.e=null:e.e<M&&(e.c=[e.e=0])}return e}function z(e){var t,r=e.e;return null===r?e.toString():(t=u(e.c),t=r<=A||r>=N?p(t,r):m(t,r,"0"),e.s<0?"-"+t:t)}return L.clone=e,L.ROUND_UP=0,L.ROUND_DOWN=1,L.ROUND_CEIL=2,L.ROUND_FLOOR=3,L.ROUND_HALF_UP=4,L.ROUND_HALF_DOWN=5,L.ROUND_HALF_EVEN=6,L.ROUND_HALF_CEIL=7,L.ROUND_HALF_FLOOR=8,L.EUCLID=9,L.config=L.set=function(e){var t,r;if(null!=e)if("object"==typeof e){if(e.hasOwnProperty(t="DECIMAL_PLACES")&&(f(r=e[t],0,1e9,t),O=r),e.hasOwnProperty(t="ROUNDING_MODE")&&(f(r=e[t],0,8,t),T=r),e.hasOwnProperty(t="EXPONENTIAL_AT")&&((r=e[t])&&r.pop?(f(r[0],-1e9,0,t),f(r[1],0,1e9,t),A=r[0],N=r[1]):(f(r,-1e9,1e9,t),A=-(N=r<0?-r:r))),e.hasOwnProperty(t="RANGE"))if((r=e[t])&&r.pop)f(r[0],-1e9,-1,t),f(r[1],1,1e9,t),M=r[0],F=r[1];else if(f(r,-1e9,1e9,t),r)M=-(F=r<0?-r:r);else throw Error(a+t+" cannot be zero: "+r);if(e.hasOwnProperty(t="CRYPTO"))if(!!(r=e[t])===r)if(r)if("undefined"!=typeof crypto&&crypto&&(crypto.getRandomValues||crypto.randomBytes))k=r;else throw k=!r,Error(a+"crypto unavailable");else k=r;else throw Error(a+t+" not true or false: "+r);if(e.hasOwnProperty(t="MODULO_MODE")&&(f(r=e[t],0,9,t),C=r),e.hasOwnProperty(t="POW_PRECISION")&&(f(r=e[t],0,1e9,t),E=r),e.hasOwnProperty(t="FORMAT"))if("object"==typeof(r=e[t]))U=r;else throw Error(a+t+" not an object: "+r);if(e.hasOwnProperty(t="ALPHABET")){if("string"!=typeof(r=e[t])||/^.?$|[+\-.\s]|(.).*\1/.test(r))throw Error(a+t+" invalid: "+r);R="0123456789"==r.slice(0,10),I=r}}else throw Error(a+"Object expected: "+e);return{DECIMAL_PLACES:O,ROUNDING_MODE:T,EXPONENTIAL_AT:[A,N],RANGE:[M,F],CRYPTO:k,MODULO_MODE:C,POW_PRECISION:E,FORMAT:U,ALPHABET:I}},L.isBigNumber=function(e){if(!e||!0!==e._isBigNumber)return!1;if(!L.DEBUG)return!0;var t,r,n=e.c,o=e.e,s=e.s;e:if("[object Array]"==({}).toString.call(n)){if((1===s||-1===s)&&o>=-1e9&&o<=1e9&&o===i(o)){if(0===n[0]){if(0===o&&1===n.length)return!0;break e}if((t=(o+1)%14)<1&&(t+=14),String(n[0]).length==t){for(t=0;t<n.length;t++)if((r=n[t])<0||r>=1e14||r!==i(r))break e;if(0!==r)return!0}}}else if(null===n&&null===o&&(null===s||1===s||-1===s))return!0;throw Error(a+"Invalid BigNumber: "+e)},L.maximum=L.max=function(){return _(arguments,-1)},L.minimum=L.min=function(){return _(arguments,1)},g=0x20000000000000*Math.random()&2097151?function(){return i(0x20000000000000*Math.random())}:function(){return(0x40000000*Math.random()|0)*8388608+(8388608*Math.random()|0)},L.random=function(e){var t,r,o,l,u,c=0,d=[],p=new L(D);if(null==e?e=O:f(e,0,1e9),l=n(e/14),k)if(crypto.getRandomValues){for(t=crypto.getRandomValues(new Uint32Array(l*=2));c<l;)(u=131072*t[c]+(t[c+1]>>>11))>=9e15?(r=crypto.getRandomValues(new Uint32Array(2)),t[c]=r[0],t[c+1]=r[1]):(d.push(u%1e14),c+=2);c=l/2}else if(crypto.randomBytes){for(t=crypto.randomBytes(l*=7);c<l;)(u=(31&t[c])*0x1000000000000+0x10000000000*t[c+1]+0x100000000*t[c+2]+0x1000000*t[c+3]+(t[c+4]<<16)+(t[c+5]<<8)+t[c+6])>=9e15?crypto.randomBytes(7).copy(t,c):(d.push(u%1e14),c+=7);c=l/7}else throw k=!1,Error(a+"crypto unavailable");if(!k)for(;c<l;)(u=g())<9e15&&(d[c++]=u%1e14);for(l=d[--c],e%=14,l&&e&&(u=s[14-e],d[c]=i(l/u)*u);0===d[c];d.pop(),c--);if(c<0)d=[o=0];else{for(o=-1;0===d[0];d.splice(0,1),o-=14);for(c=1,u=d[0];u>=10;u/=10,c++);c<14&&(o-=14-c)}return p.e=o,p.c=d,p},L.sum=function(){for(var e=1,t=arguments,r=new L(t[0]);e<t.length;)r=r.plus(t[e++]);return r},B=function(){var e="0123456789";function t(e,t,r,n){for(var i,a,o=[0],s=0,l=e.length;s<l;){for(a=o.length;a--;o[a]*=t);for(o[0]+=n.indexOf(e.charAt(s++)),i=0;i<o.length;i++)o[i]>r-1&&(null==o[i+1]&&(o[i+1]=0),o[i+1]+=o[i]/r|0,o[i]%=r)}return o.reverse()}return function(r,n,i,a,o){var s,l,c,f,d,p,g,h,b=r.indexOf("."),y=O,v=T;for(b>=0&&(f=E,E=0,r=r.replace(".",""),p=(h=new L(n)).pow(r.length-b),E=f,h.c=t(m(u(p.c),p.e,"0"),10,i,e),h.e=h.c.length),c=f=(g=t(r,n,i,o?(s=I,e):(s=e,I))).length;0==g[--f];g.pop());if(!g[0])return s.charAt(0);if(b<0?--c:(p.c=g,p.e=c,p.s=a,g=(p=x(p,h,y,v,i)).c,d=p.r,c=p.e),b=g[l=c+y+1],f=i/2,d=d||l<0||null!=g[l+1],d=v<4?(null!=b||d)&&(0==v||v==(p.s<0?3:2)):b>f||b==f&&(4==v||d||6==v&&1&g[l-1]||v==(p.s<0?8:7)),l<1||!g[0])r=d?m(s.charAt(1),-y,s.charAt(0)):s.charAt(0);else{if(g.length=l,d)for(--i;++g[--l]>i;)g[l]=0,l||(++c,g=[1].concat(g));for(f=g.length;!g[--f];);for(b=0,r="";b<=f;r+=s.charAt(g[b++]));r=m(r,c,s.charAt(0))}return r}}(),x=function(){function e(e,t,r){var n,i,a,o,s=0,l=e.length,u=t%1e7,c=t/1e7|0;for(e=e.slice();l--;)n=c*(a=e[l]%1e7)+(o=e[l]/1e7|0)*u,s=((i=u*a+n%1e7*1e7+s)/r|0)+(n/1e7|0)+c*o,e[l]=i%r;return s&&(e=[s].concat(e)),e}function t(e,t,r,n){var i,a;if(r!=n)a=r>n?1:-1;else for(i=a=0;i<r;i++)if(e[i]!=t[i]){a=e[i]>t[i]?1:-1;break}return a}function r(e,t,r,n){for(var i=0;r--;)e[r]-=i,i=+(e[r]<t[r]),e[r]=i*n+e[r]-t[r];for(;!e[0]&&e.length>1;e.splice(0,1));}return function(n,a,o,s,u){var c,f,d,p,m,g,h,b,y,v,w,x,B,$,S,D,O,T=n.s==a.s?1:-1,A=n.c,N=a.c;if(!A||!A[0]||!N||!N[0])return new L(!n.s||!a.s||(A?N&&A[0]==N[0]:!N)?NaN:A&&0==A[0]||!N?0*T:T/0);for(y=(b=new L(T)).c=[],T=o+(f=n.e-a.e)+1,u||(u=1e14,f=l(n.e/14)-l(a.e/14),T=T/14|0),d=0;N[d]==(A[d]||0);d++);if(N[d]>(A[d]||0)&&f--,T<0)y.push(1),p=!0;else{for($=A.length,D=N.length,d=0,T+=2,(m=i(u/(N[0]+1)))>1&&(N=e(N,m,u),A=e(A,m,u),D=N.length,$=A.length),B=D,w=(v=A.slice(0,D)).length;w<D;v[w++]=0);O=[0].concat(O=N.slice()),S=N[0],N[1]>=u/2&&S++;do{if(m=0,(c=t(N,v,D,w))<0){if(x=v[0],D!=w&&(x=x*u+(v[1]||0)),(m=i(x/S))>1)for(m>=u&&(m=u-1),h=(g=e(N,m,u)).length,w=v.length;1==t(g,v,h,w);)m--,r(g,D<h?O:N,h,u),h=g.length,c=1;else 0==m&&(c=m=1),h=(g=N.slice()).length;if(h<w&&(g=[0].concat(g)),r(v,g,w,u),w=v.length,-1==c)for(;1>t(N,v,D,w);)m++,r(v,D<w?O:N,w,u),w=v.length}else 0===c&&(m++,v=[0]);y[d++]=m,v[0]?v[w++]=A[B]||0:(v=[A[B]],w=1)}while((B++<$||null!=v[0])&&T--);p=null!=v[0],y[0]||y.splice(0,1)}if(1e14==u){for(d=1,T=y[0];T>=10;T/=10,d++);G(b,o+(b.e=d+14*f-1)+1,s,p)}else b.e=f,b.r=+p;return b}}(),h=/^(-?)0([xbo])(?=\w[\w.]*$)/i,b=/^([^.]+)\.$/,y=/^\.([^.]+)$/,v=/^-?(Infinity|NaN)$/,w=/^\s*\+(?=[\w.])|^\s+|\s+$/g,$=function(e,t,r,n){var i,o=r?t:t.replace(w,"");if(v.test(o))e.s=isNaN(o)?null:o<0?-1:1;else{if(!r&&(o=o.replace(h,function(e,t,r){return i="x"==(r=r.toLowerCase())?16:"b"==r?2:8,n&&n!=i?e:t}),n&&(i=n,o=o.replace(b,"$1").replace(y,"0.$1")),t!=o))return new L(o,i);if(L.DEBUG)throw Error(a+"Not a"+(n?" base "+n:"")+" number: "+t);e.s=null}e.c=e.e=null},S.absoluteValue=S.abs=function(){var e=new L(this);return e.s<0&&(e.s=1),e},S.comparedTo=function(e,t){return c(this,new L(e,t))},S.decimalPlaces=S.dp=function(e,t){var r,n,i;if(null!=e)return f(e,0,1e9),null==t?t=T:f(t,0,8),G(new L(this),e+this.e+1,t);if(!(r=this.c))return null;if(n=((i=r.length-1)-l(this.e/14))*14,i=r[i])for(;i%10==0;i/=10,n--);return n<0&&(n=0),n},S.dividedBy=S.div=function(e,t){return x(this,new L(e,t),O,T)},S.dividedToIntegerBy=S.idiv=function(e,t){return x(this,new L(e,t),0,1)},S.exponentiatedBy=S.pow=function(e,t){var r,o,s,l,u,c,f,p,m,g=this;if((e=new L(e)).c&&!e.isInteger())throw Error(a+"Exponent not an integer: "+z(e));if(null!=t&&(t=new L(t)),c=e.e>14,!g.c||!g.c[0]||1==g.c[0]&&!g.e&&1==g.c.length||!e.c||!e.c[0])return m=new L(Math.pow(+z(g),c?e.s*(2-d(e)):+z(e))),t?m.mod(t):m;if(f=e.s<0,t){if(t.c?!t.c[0]:!t.s)return new L(NaN);(o=!f&&g.isInteger()&&t.isInteger())&&(g=g.mod(t))}else{if(e.e>9&&(g.e>0||g.e<-1||(0==g.e?g.c[0]>1||c&&g.c[1]>=24e7:g.c[0]<8e13||c&&g.c[0]<=9999975e7)))return l=g.s<0&&d(e)?-0:0,g.e>-1&&(l=1/l),new L(f?1/l:l);E&&(l=n(E/14+2))}for(c?(r=new L(.5),f&&(e.s=1),p=d(e)):p=(s=Math.abs(+z(e)))%2,m=new L(D);;){if(p){if(!(m=m.times(g)).c)break;l?m.c.length>l&&(m.c.length=l):o&&(m=m.mod(t))}if(s){if(0===(s=i(s/2)))break;p=s%2}else if(G(e=e.times(r),e.e+1,1),e.e>14)p=d(e);else{if(0==(s=+z(e)))break;p=s%2}g=g.times(g),l?g.c&&g.c.length>l&&(g.c.length=l):o&&(g=g.mod(t))}return o?m:(f&&(m=D.div(m)),t?m.mod(t):l?G(m,E,T,u):m)},S.integerValue=function(e){var t=new L(this);return null==e?e=T:f(e,0,8),G(t,t.e+1,e)},S.isEqualTo=S.eq=function(e,t){return 0===c(this,new L(e,t))},S.isFinite=function(){return!!this.c},S.isGreaterThan=S.gt=function(e,t){return c(this,new L(e,t))>0},S.isGreaterThanOrEqualTo=S.gte=function(e,t){return 1===(t=c(this,new L(e,t)))||0===t},S.isInteger=function(){return!!this.c&&l(this.e/14)>this.c.length-2},S.isLessThan=S.lt=function(e,t){return 0>c(this,new L(e,t))},S.isLessThanOrEqualTo=S.lte=function(e,t){return -1===(t=c(this,new L(e,t)))||0===t},S.isNaN=function(){return!this.s},S.isNegative=function(){return this.s<0},S.isPositive=function(){return this.s>0},S.isZero=function(){return!!this.c&&0==this.c[0]},S.minus=function(e,t){var r,n,i,a,o=this.s;if(t=(e=new L(e,t)).s,!o||!t)return new L(NaN);if(o!=t)return e.s=-t,this.plus(e);var s=this.e/14,u=e.e/14,c=this.c,f=e.c;if(!s||!u){if(!c||!f)return c?(e.s=-t,e):new L(f?this:NaN);if(!c[0]||!f[0])return f[0]?(e.s=-t,e):new L(c[0]?this:3==T?-0:0)}if(s=l(s),u=l(u),c=c.slice(),o=s-u){for((a=o<0)?(o=-o,i=c):(u=s,i=f),i.reverse(),t=o;t--;i.push(0));i.reverse()}else for(n=(a=(o=c.length)<(t=f.length))?o:t,o=t=0;t<n;t++)if(c[t]!=f[t]){a=c[t]<f[t];break}if(a&&(i=c,c=f,f=i,e.s=-e.s),(t=(n=f.length)-(r=c.length))>0)for(;t--;c[r++]=0);for(t=1e14-1;n>o;){if(c[--n]<f[n]){for(r=n;r&&!c[--r];c[r]=t);--c[r],c[n]+=1e14}c[n]-=f[n]}for(;0==c[0];c.splice(0,1),--u);return c[0]?j(e,c,u):(e.s=3==T?-1:1,e.c=[e.e=0],e)},S.modulo=S.mod=function(e,t){var r,n;return(e=new L(e,t),this.c&&e.s&&(!e.c||e.c[0]))?e.c&&(!this.c||this.c[0])?(9==C?(n=e.s,e.s=1,r=x(this,e,0,3),e.s=n,r.s*=n):r=x(this,e,0,C),(e=this.minus(r.times(e))).c[0]||1!=C||(e.s=this.s),e):new L(this):new L(NaN)},S.multipliedBy=S.times=function(e,t){var r,n,i,a,o,s,u,c,f,d,p,m,g,h=this.c,b=(e=new L(e,t)).c;if(!h||!b||!h[0]||!b[0])return this.s&&e.s&&(!h||h[0]||b)&&(!b||b[0]||h)?(e.s*=this.s,h&&b?(e.c=[0],e.e=0):e.c=e.e=null):e.c=e.e=e.s=null,e;for(n=l(this.e/14)+l(e.e/14),e.s*=this.s,(u=h.length)<(d=b.length)&&(g=h,h=b,b=g,i=u,u=d,d=i),i=u+d,g=[];i--;g.push(0));for(i=d;--i>=0;){for(r=0,p=b[i]%1e7,m=b[i]/1e7|0,a=i+(o=u);a>i;)s=m*(c=h[--o]%1e7)+(f=h[o]/1e7|0)*p,r=((c=p*c+s%1e7*1e7+g[a]+r)/1e14|0)+(s/1e7|0)+m*f,g[a--]=c%1e14;g[a]=r}return r?++n:g.splice(0,1),j(e,g,n)},S.negated=function(){var e=new L(this);return e.s=-e.s||null,e},S.plus=function(e,t){var r,n=this.s;if(t=(e=new L(e,t)).s,!n||!t)return new L(NaN);if(n!=t)return e.s=-t,this.minus(e);var i=this.e/14,a=e.e/14,o=this.c,s=e.c;if(!i||!a){if(!o||!s)return new L(n/0);if(!o[0]||!s[0])return s[0]?e:new L(o[0]?this:0*n)}if(i=l(i),a=l(a),o=o.slice(),n=i-a){for(n>0?(a=i,r=s):(n=-n,r=o),r.reverse();n--;r.push(0));r.reverse()}for((n=o.length)-(t=s.length)<0&&(r=s,s=o,o=r,t=n),n=0;t;)n=(o[--t]=o[t]+s[t]+n)/1e14|0,o[t]=1e14===o[t]?0:o[t]%1e14;return n&&(o=[n].concat(o),++a),j(e,o,a)},S.precision=S.sd=function(e,t){var r,n,i;if(null!=e&&!!e!==e)return f(e,1,1e9),null==t?t=T:f(t,0,8),G(new L(this),e,t);if(!(r=this.c))return null;if(n=14*(i=r.length-1)+1,i=r[i]){for(;i%10==0;i/=10,n--);for(i=r[0];i>=10;i/=10,n++);}return e&&this.e+1>n&&(n=this.e+1),n},S.shiftedBy=function(e){return f(e,-0x1fffffffffffff,0x1fffffffffffff),this.times("1e"+e)},S.squareRoot=S.sqrt=function(){var e,t,r,n,i,a=this.c,o=this.s,s=this.e,c=O+4,f=new L("0.5");if(1!==o||!a||!a[0])return new L(!o||o<0&&(!a||a[0])?NaN:a?this:1/0);if(0==(o=Math.sqrt(+z(this)))||o==1/0?(((t=u(a)).length+s)%2==0&&(t+="0"),o=Math.sqrt(+t),s=l((s+1)/2)-(s<0||s%2),r=new L(t=o==1/0?"5e"+s:(t=o.toExponential()).slice(0,t.indexOf("e")+1)+s)):r=new L(o+""),r.c[0]){for((o=(s=r.e)+c)<3&&(o=0);;)if(i=r,r=f.times(i.plus(x(this,i,c,1))),u(i.c).slice(0,o)===(t=u(r.c)).slice(0,o)){if(r.e<s&&--o,"9999"!=(t=t.slice(o-3,o+1))&&(n||"4999"!=t)){+t&&(+t.slice(1)||"5"!=t.charAt(0))||(G(r,r.e+O+2,1),e=!r.times(r).eq(this));break}if(!n&&(G(i,i.e+O+2,0),i.times(i).eq(this))){r=i;break}c+=4,o+=4,n=1}}return G(r,r.e+O+1,T,e)},S.toExponential=function(e,t){return null!=e&&(f(e,0,1e9),e++),P(this,e,t,1)},S.toFixed=function(e,t){return null!=e&&(f(e,0,1e9),e=e+this.e+1),P(this,e,t)},S.toFormat=function(e,t,r){var n;if(null==r)null!=e&&t&&"object"==typeof t?(r=t,t=null):e&&"object"==typeof e?(r=e,e=t=null):r=U;else if("object"!=typeof r)throw Error(a+"Argument not an object: "+r);if(n=this.toFixed(e,t),this.c){var i,o=n.split("."),s=+r.groupSize,l=+r.secondaryGroupSize,u=r.groupSeparator||"",c=o[0],f=o[1],d=this.s<0,p=d?c.slice(1):c,m=p.length;if(l&&(i=s,s=l,l=i,m-=i),s>0&&m>0){for(i=m%s||s,c=p.substr(0,i);i<m;i+=s)c+=u+p.substr(i,s);l>0&&(c+=u+p.slice(i)),d&&(c="-"+c)}n=f?c+(r.decimalSeparator||"")+((l=+r.fractionGroupSize)?f.replace(RegExp("\\d{"+l+"}\\B","g"),"$&"+(r.fractionGroupSeparator||"")):f):c}return(r.prefix||"")+n+(r.suffix||"")},S.toFraction=function(e){var t,r,n,i,o,l,c,f,d,p,m,g,h=this.c;if(null!=e&&(!(c=new L(e)).isInteger()&&(c.c||1!==c.s)||c.lt(D)))throw Error(a+"Argument "+(c.isInteger()?"out of range: ":"not an integer: ")+z(c));if(!h)return new L(this);for(t=new L(D),d=r=new L(D),n=f=new L(D),g=u(h),o=t.e=g.length-this.e-1,t.c[0]=s[(l=o%14)<0?14+l:l],e=!e||c.comparedTo(t)>0?o>0?t:d:c,l=F,F=1/0,c=new L(g),f.c[0]=0;p=x(c,t,0,1),1!=(i=r.plus(p.times(n))).comparedTo(e);)r=n,n=i,d=f.plus(p.times(i=d)),f=i,t=c.minus(p.times(i=t)),c=i;return i=x(e.minus(r),n,0,1),f=f.plus(i.times(d)),r=r.plus(i.times(n)),f.s=d.s=this.s,o*=2,m=1>x(d,n,o,T).minus(this).abs().comparedTo(x(f,r,o,T).minus(this).abs())?[d,n]:[f,r],F=l,m},S.toNumber=function(){return+z(this)},S.toPrecision=function(e,t){return null!=e&&f(e,1,1e9),P(this,e,t,2)},S.toString=function(e){var t,r=this,n=r.s,i=r.e;return null===i?n?(t="Infinity",n<0&&(t="-"+t)):t="NaN":(null==e?t=i<=A||i>=N?p(u(r.c),i):m(u(r.c),i,"0"):10===e&&R?t=m(u((r=G(new L(r),O+i+1,T)).c),r.e,"0"):(f(e,2,I.length,"Base"),t=B(m(u(r.c),i,"0"),10,e,n,!0)),n<0&&r.c[0]&&(t="-"+t)),t},S.valueOf=S.toJSON=function(){return z(this)},S._isBigNumber=!0,null!=t&&L.set(t),L}()).default=t.BigNumber=t,b.exports?b.exports=t:(e||(e="undefined"!=typeof self&&self?self:window),e.BigNumber=t)})(d);var y=b.exports;let v=h(),w=m(),x={trillion:1e12,billion:1e9,million:1e6,thousand:1e3},B={totalLength:0,characteristic:0,forceAverage:!1,average:!1,mantissa:-1,optionalMantissa:!0,thousandSeparated:!1,spaceSeparated:!1,negative:"sign",forceSign:!1,roundingFunction:Math.round,spaceSeparatedAbbreviation:!1},{binarySuffixes:$,decimalSuffixes:S}=v.currentBytes(),D={scale:1024,suffixes:S,marker:"bd"},O={scale:1024,suffixes:$,marker:"b"},T={scale:1e3,suffixes:S,marker:"d"};function A(e,t,r){let n=t[0],i=Math.abs(e);if(i>=r){for(let a=1;a<t.length;++a){let o=Math.pow(r,a),s=Math.pow(r,a+1);if(i>=o&&i<s){n=t[a],e/=o;break}}n===t[0]&&(e/=Math.pow(r,t.length-1),n=t[t.length-1])}return{value:e,suffix:n}}function N(e){let t="";for(let r=0;r<e;r++)t+="0";return t}function M({instance:e,providedFormat:t,state:r=v,decimalSeparator:n,defaults:i=r.currentDefaults()}){var a,o,s,l,u;let c,f,d,p,m,g,h,b=e._value;if(0===b&&r.hasZeroFormat())return r.getZeroFormat();if(!isFinite(b))return b.toString();let w=Object.assign({},B,i,t),$=w.totalLength,S=$?0:w.characteristic,D=w.optionalCharacteristic,O=w.forceAverage,T=w.lowPrecision,A=!!$||!!O||w.average,M=$?-1:A&&void 0===t.mantissa?0:w.mantissa,F=!$&&(void 0===t.optionalMantissa?-1===M:w.optionalMantissa),k=w.trimMantissa,C=w.thousandSeparated,E=w.spaceSeparated,U=w.negative,I=w.forceSign,R=w.exponential,L=w.roundingFunction,P="";if(A){let e=function({value:e,forceAverage:t,lowPrecision:r=!0,abbreviations:n,spaceSeparated:i=!1,totalLength:a=0,roundingFunction:o=Math.round}){let s="",l=Math.abs(e),u=-1;if(t&&n[t]&&x[t]?(s=n[t],e/=x[t]):l>=x.trillion||r&&1===o(l/x.trillion)?(s=n.trillion,e/=x.trillion):l<x.trillion&&l>=x.billion||r&&1===o(l/x.billion)?(s=n.billion,e/=x.billion):l<x.billion&&l>=x.million||r&&1===o(l/x.million)?(s=n.million,e/=x.million):(l<x.million&&l>=x.thousand||r&&1===o(l/x.thousand))&&(s=n.thousand,e/=x.thousand),s&&(s=(i?" ":"")+s),a){let t=e<0,r=e.toString().split(".")[0];u=Math.max(a-(t?r.length-1:r.length),0)}return{value:e,abbreviation:s,mantissaPrecision:u}}({value:b,forceAverage:O,lowPrecision:T,abbreviations:r.currentAbbreviations(),spaceSeparated:E,roundingFunction:L,totalLength:$});b=e.value,P+=e.abbreviation,$&&(M=e.mantissaPrecision)}if(R){let e=function({value:e,characteristicPrecision:t}){let[r,n]=e.toExponential().split("e"),i=+r;return t&&1<t&&(i*=Math.pow(10,t-1),n-=t-1,n=n>=0?`+${n}`:n),{value:i,abbreviation:`e${n}`}}({value:b,characteristicPrecision:S});b=e.value,P=e.abbreviation+P}let _=function(e,t,r,n,i,a){if(-1===n)return e;let o=function(e,t,r=Math.round){return -1!==e.toString().indexOf("e")?function(e,t){let r=e.toString(),[n,i]=r.split("e"),[a,o=""]=n.split(".");if(+i>0)r=a+o+N(i-o.length);else{let e=".";e=0>+a?`-0${e}`:`0${e}`;let n=(N(-i-1)+Math.abs(a)+o).substr(0,t);n.length<t&&(n+=N(t-n.length)),r=e+n}return+i>0&&t>0&&(r+=`.${N(t)}`),r}(e,t):new y(r(+`${e}e+${t}`)/Math.pow(10,t)).toFixed(t)}(t,n,a),[s,l=""]=o.toString().split(".");if(l.match(/^0+$/)&&(r||i))return s;let u=l.match(/0+$/);return i&&u?`${s}.${l.toString().slice(0,u.index)}`:o.toString()}(b.toString(),b,F,M,k,L);return a=_=function(e,t,r,n){let i=e,[a,o]=i.toString().split(".");if(a.match(/^-?0$/)&&r)return o?`${a.replace("0","")}.${o}`:a.replace("0","");let s=t<0&&0===a.indexOf("-");if(s&&(a=a.slice(1),i=i.slice(1)),a.length<n){let e=n-a.length;for(let t=0;t<e;t++)i=`0${i}`}return s&&(i=`-${i}`),i.toString()}(_,b,D,S),o=b,s=n,f=(c=r.currentDelimiters()).thousands,s=s||c.decimal,d=c.thousandsSize||3,m=(p=a.toString()).split(".")[0],g=p.split(".")[1],h=o<0&&0===m.indexOf("-"),C&&(h&&(m=m.slice(1)),(function(e,t){let r=[],n=0;for(let i=e;i>0;i--)n===t&&(r.unshift(i),n=0),n++;return r})(m.length,d).forEach((e,t)=>{m=m.slice(0,e+t)+f+m.slice(e+t)}),h&&(m=`-${m}`)),_=p=g?m+s+g:m,(A||R)&&(_+=P),(I||b<0)&&(l=_,_=0===(u=b)?l:0==+l?l.replace("-",""):u>0?`+${l}`:"sign"===U?l:`(${l.replace("-","")})`),_}function F(e,t){if(!e)return t;let r=Object.keys(e);return 1===r.length&&"output"===r[0]?t:e}function k(e,t,r){let n=new y(e._value),i=t;return r.isNumbro(t)&&(i=t._value),i=new y(i),e._value=n.minus(i).toNumber(),e}let C=h(),E=m(),U={loadLanguagesInNode:e=>{e.forEach(e=>{let t;try{t=function(e){throw Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}(`../languages/${e}`)}catch(t){console.error(`Unable to load "${e}". No matching language file found.`)}t&&j.registerLanguage(t)})}},I=p(),R={format:(...e)=>(function(e,t={},r){if("string"==typeof t&&(t=g(t)),!w.validateFormat(t))return"ERROR: invalid format";let n=t.prefix||"",i=t.postfix||"",a=function(e,t,r){var n,i,a;switch(t.output){case"currency":let o,s,l,u,c,f,d,p,m,g;return n=t=F(t,v.currentCurrencyDefaultFormat()),o=v.currentCurrency(),l=Object.assign({},B,s=Object.assign({},n)),c="",f=!!l.totalLength||!!l.forceAverage||l.average,d=s.currencyPosition||o.position,p=s.currencySymbol||o.symbol,m=void 0!==l.spaceSeparatedCurrency?l.spaceSeparatedCurrency:l.spaceSeparated,void 0===s.lowPrecision&&(s.lowPrecision=!1),m&&(c=" "),"infix"===d&&(u=c+p+c),g=M({instance:e,providedFormat:s,state:v,decimalSeparator:u}),"prefix"===d&&(g=e._value<0&&"sign"===l.negative?`-${c}${p}${g.slice(1)}`:e._value>0&&l.forceSign?`+${c}${p}${g.slice(1)}`:p+c+g),d&&"postfix"!==d||(g=g+(c=!l.spaceSeparatedAbbreviation&&f?"":c)+p),g;case"percent":let h,b,y;return i=t=F(t,v.currentPercentageDefaultFormat()),h=i.prefixSymbol,b=M({instance:r(100*e._value),providedFormat:i,state:v}),y=Object.assign({},B,i),h?`%${y.spaceSeparated?" ":""}${b}`:`${b}${y.spaceSeparated?" ":""}%`;case"byte":return function(e,t,r,n){let i=t.base||"binary",a=Object.assign({},B,t),{binarySuffixes:o,decimalSuffixes:s}=r.currentBytes(),l={general:{scale:1024,suffixes:s||S,marker:"bd"},binary:{scale:1024,suffixes:o||$,marker:"b"},decimal:{scale:1e3,suffixes:s||S,marker:"d"}}[i],{value:u,suffix:c}=A(e._value,l.suffixes,l.scale),f=M({instance:n(u),providedFormat:t,state:r,defaults:r.currentByteDefaultFormat()});return`${f}${a.spaceSeparated?" ":""}${c}`}(e,t=F(t,v.currentByteDefaultFormat()),v,r);case"time":let w,x,D;return t=F(t,v.currentTimeDefaultFormat()),w=Math.floor(e._value/60/60),x=Math.floor((e._value-60*w*60)/60),D=Math.round(e._value-60*w*60-60*x),`${w}:${x<10?"0":""}${x}:${D<10?"0":""}${D}`;case"ordinal":let O,T,N,k;return a=t=F(t,v.currentOrdinalDefaultFormat()),O=v.currentOrdinal(),T=Object.assign({},B,a),N=M({instance:e,providedFormat:a,state:v}),k=O(e._value),`${N}${T.spaceSeparated?" ":""}${k}`;default:return M({instance:e,providedFormat:t,numbro:r})}}(e,t,r);return(a=n+a)+i})(...e,j),getByteUnit:(...e)=>(function(e){return A(e._value,D.suffixes,D.scale).suffix})(...e,j),getBinaryByteUnit:(...e)=>(function(e){return A(e._value,O.suffixes,O.scale).suffix})(...e,j),getDecimalByteUnit:(...e)=>(function(e){return A(e._value,T.suffixes,T.scale).suffix})(...e,j),formatOrDefault:F},L={add:(e,t)=>{let r,n;return r=new y(e._value),n=t,j.isNumbro(t)&&(n=t._value),n=new y(n),e._value=r.plus(n).toNumber(),e},subtract:(e,t)=>k(e,t,j),multiply:(e,t)=>{let r,n;return r=new y(e._value),n=t,j.isNumbro(t)&&(n=t._value),n=new y(n),e._value=r.times(n).toNumber(),e},divide:(e,t)=>{let r,n;return r=new y(e._value),n=t,j.isNumbro(t)&&(n=t._value),n=new y(n),e._value=r.dividedBy(n).toNumber(),e},set:(e,t)=>{let r;return r=t,j.isNumbro(t)&&(r=t._value),e._value=r,e},difference:(e,t)=>{let r;return k(r=j(e._value),t,j),Math.abs(r._value)},BigNumber:y};class P{constructor(e){this._value=e}clone(){return j(this._value)}format(e={}){return R.format(this,e)}formatCurrency(e){return"string"==typeof e&&(e=g(e)),(e=R.formatOrDefault(e,C.currentCurrencyDefaultFormat())).output="currency",R.format(this,e)}formatTime(e={}){return e.output="time",R.format(this,e)}binaryByteUnits(){return R.getBinaryByteUnit(this)}decimalByteUnits(){return R.getDecimalByteUnit(this)}byteUnits(){return R.getByteUnit(this)}difference(e){return L.difference(this,e)}add(e){return L.add(this,e)}subtract(e){return L.subtract(this,e)}multiply(e){return L.multiply(this,e)}divide(e){return L.divide(this,e)}set(e){return L.set(this,_(e))}value(){return this._value}valueOf(){return this._value}}function _(e){let t=e;return j.isNumbro(e)?t=e._value:"string"==typeof e?t=j.unformat(e):isNaN(e)&&(t=NaN),t}function j(e){return new P(_(e))}j.version="2.5.0",j.isNumbro=function(e){return e instanceof P},j.language=C.currentLanguage,j.registerLanguage=C.registerLanguage,j.setLanguage=C.setLanguage,j.languages=C.languages,j.languageData=C.languageData,j.zeroFormat=C.setZeroFormat,j.defaultFormat=C.currentDefaults,j.setDefaults=C.setDefaults,j.defaultCurrencyFormat=C.currentCurrencyDefaultFormat,j.validate=E.validate,j.loadLanguagesInNode=U.loadLanguagesInNode,j.unformat=I.unformat,j.BigNumber=L.BigNumber;var G=j&&j.__esModule&&Object.prototype.hasOwnProperty.call(j,"default")?j.default:j,z=r(71065);function V(e,{unit:t="bytes",shortValues:r,decimalPlaces:n}){let i="decbytes"===t;if(!(0,z.jb)(r)||Math.abs(e)<(i?1e3:1024)){let t={style:"unit",unit:"byte",unitDisplay:"long",useGrouping:!0};return(0,z.IU)(n)?(t.minimumFractionDigits=(0,z.To)(n),t.maximumFractionDigits=(0,z.To)(n)):(0,z.jb)(r)&&(t.maximumSignificantDigits=3),Intl.NumberFormat("en-US",t).format(e)}return G(e).format({output:"byte",base:i?"decimal":"binary",spaceSeparated:!0,mantissa:(0,z.IU)(n)?n:2,trimMantissa:!(0,z.IU)(n),optionalMantissa:!(0,z.IU)(n)})}function W(e,{unit:t="bits",shortValues:r,decimalPlaces:n}){let i="decbits"===t;if(!(0,z.jb)(r)||Math.abs(e)<(i?1e3:1024)){let t={style:"decimal",useGrouping:!0};return(0,z.IU)(n)?(t.minimumFractionDigits=(0,z.To)(n),t.maximumFractionDigits=(0,z.To)(n)):(0,z.jb)(r)&&(t.maximumSignificantDigits=3),Intl.NumberFormat("en-US",t).format(e)+" bits"}return G(e).format({output:"byte",base:i?"decimal":"binary",spaceSeparated:!0,mantissa:(0,z.IU)(n)?n:2,trimMantissa:!(0,z.IU)(n),optionalMantissa:!(0,z.IU)(n)}).replace(/KB/g,"Kb").replace(/MB/g,"Mb").replace(/GB/g,"Gb").replace(/TB/g,"Tb").replace(/PB/g,"Pb").replace(/EB/g,"Eb").replace(/KiB/g,"Kib").replace(/MiB/g,"Mib").replace(/GiB/g,"Gib").replace(/TiB/g,"Tib").replace(/PiB/g,"Pib").replace(/EiB/g,"Eib")}let Z="Percent",q="Temperature",K="Time";var H=((n={}).nanoseconds="nanosecond",n.microseconds="microsecond",n.milliseconds="millisecond",n.seconds="second",n.minutes="minute",n.hours="hour",n.days="day",n.weeks="week",n.months="month",n.years="year",n);let Y={years:31536e3,months:2592e3,weeks:604800,days:86400,hours:3600,minutes:60,seconds:1,milliseconds:.001,microseconds:1e-6,nanoseconds:1e-9},X=["years","months","weeks","days","hours","minutes","seconds","milliseconds","microseconds","nanoseconds"],J="Throughput";var Q=r(40224);let ee="Currency",et="Date",er={Time:{label:"Time",decimalPlaces:!0},Percent:{label:"percent",decimalPlaces:!0},Decimal:{label:"Decimal",decimalPlaces:!0,shortValues:!0},Bytes:{label:"Bytes",decimalPlaces:!0,shortValues:!0},Bits:{label:"Bits",decimalPlaces:!0,shortValues:!0},Throughput:{label:"Throughput",decimalPlaces:!0},Currency:{label:"Currency",decimalPlaces:!0},Temperature:{label:q,decimalPlaces:!0},Date:{label:"Date & Time"}},en={nanoseconds:{group:K,label:"Nanoseconds"},microseconds:{group:K,label:"Microseconds"},milliseconds:{group:K,label:"Milliseconds"},seconds:{group:K,label:"Seconds"},minutes:{group:K,label:"Minutes"},hours:{group:K,label:"Hours"},days:{group:K,label:"Days"},weeks:{group:K,label:"Weeks"},months:{group:K,label:"Months"},years:{group:K,label:"Years"},percent:{group:Z,label:"Percent (0-100)"},"percent-decimal":{group:Z,label:"Percent (0.0-1.0)"},"%":{disableSelectorOption:!0,group:Z,label:"%"},decimal:{group:"Decimal",label:"Decimal"},bytes:{group:"Bytes",label:"Bytes (IEC)"},decbytes:{group:"Bytes",label:"Bytes (SI)"},bits:{group:"Bits",label:"Bits (IEC)"},decbits:{group:"Bits",label:"Bits (SI)"},"bits/sec":{group:J,label:"Bits/sec (IEC)"},"decbits/sec":{group:J,label:"Bits/sec (SI)"},"bytes/sec":{group:J,label:"Bytes/sec (IEC)"},"decbytes/sec":{group:J,label:"Bytes/sec (SI)"},"counts/sec":{group:J,label:"Counts/sec"},"events/sec":{group:J,label:"Events/sec"},"messages/sec":{group:J,label:"Messages/sec"},"ops/sec":{group:J,label:"Ops/sec"},"packets/sec":{group:J,label:"Packets/sec"},"reads/sec":{group:J,label:"Reads/sec"},"requests/sec":{group:J,label:"Requests/sec"},"records/sec":{group:J,label:"Records/sec"},"rows/sec":{group:J,label:"Rows/sec"},"writes/sec":{group:J,label:"Writes/sec"},aud:{group:ee,label:"Australian Dollar (A$)"},cad:{group:ee,label:"Canadian Dollar (CA$)"},chf:{group:ee,label:"Swiss Franc (CHF)"},cny:{group:ee,label:"Renminbi (CN\xa5)"},eur:{group:ee,label:"Euro (€)"},gbp:{group:ee,label:"Pound (\xa3)"},hkd:{group:ee,label:"Hong Kong Dollar (HK$)"},inr:{group:ee,label:"Indian Rupee (₹)"},jpy:{group:ee,label:"Yen (\xa5)"},krw:{group:ee,label:"South Korean Won (₩)"},nok:{group:ee,label:"Norwegian Krone (NOK)"},nzd:{group:ee,label:"New Zealand Dollar (NZ$)"},sek:{group:ee,label:"Swedish Krona (SEK)"},sgd:{group:ee,label:"Singapore Dollar (S$)"},usd:{group:ee,label:"US Dollar ($)"},celsius:{group:q,label:"Celsius (\xb0C)"},fahrenheit:{group:q,label:"Fahrenheit (\xb0F)"},"datetime-iso":{group:et,label:"DateTime (GMT)"},"datetime-us":{group:et,label:"DateTime (US-East)"},"datetime-local":{group:et,label:"DateTime (Browser Local)"},"date-iso":{group:et,label:"Date (GMT)"},"date-us":{group:et,label:"Date (US-East)"},"date-local":{group:et,label:"Date (Browser Local)"},"time-local":{group:et,label:"Time (Browser Local)"},"time-iso":{group:et,label:"Time (GMT)"},"time-us":{group:et,label:"Time (US-East)"},"relative-time":{group:et,label:"Relative Time"},"unix-timestamp":{group:et,label:"Unix Timestamp (s)"},"unix-timestamp-ms":{group:et,label:"Unix Timestamp (ms)"}};function ei(e,t){if(!t)return e.toString();if(ef(t))return V(e,t);if(ed(t))return W(e,t);if(ec(t))return function(e,{shortValues:t,decimalPlaces:r}){let n={style:"decimal",useGrouping:!0};return(0,z.jb)(t)&&(n.notation="compact"),(0,z.IU)(r)?(n.minimumFractionDigits=(0,z.To)(r),n.maximumFractionDigits=(0,z.To)(r)):(0,z.jb)(t)&&(n.maximumSignificantDigits=3),Intl.NumberFormat("en-US",n).format(e)}(e,t);if(eu(t))return function(e,{unit:t,decimalPlaces:r}){let n={style:"percent",useGrouping:!0};return(0,z.IU)(r)?(n.minimumFractionDigits=(0,z.To)(r),n.maximumFractionDigits=(0,z.To)(r)):n.maximumSignificantDigits=3,"percent"===t&&(e/=100),Intl.NumberFormat("en-US",n).format(e)}(e,t);if(el(t))return function(e,{unit:t,decimalPlaces:r}){var n;if(0===e)return"0s";let i=function(e,t){let r=e*Y[t],n=X[0]||"years",i=n,a=r/Y[n];for(i of X)if((a=r/Y[i])>=1)break;return{value:a,unit:i}}(e,t??"seconds"),a={style:"unit",unit:H[i.unit],unitDisplay:"months"===(n=i.unit)||"years"===n?"long":"narrow"};return(0,z.IU)(r)?(a.minimumFractionDigits=(0,z.To)(r),a.maximumFractionDigits=(0,z.To)(r)):a.maximumSignificantDigits=3,Intl.NumberFormat("en-US",a).format(i.value)}(e,t);if(eg(t))return function(e,{unit:t,shortValues:r,decimalPlaces:n}){if("bits/sec"===t){let t=1024>Math.abs(e)?"sec":"s";return W(e,{unit:"bits",shortValues:r,decimalPlaces:n})+"/"+t}if("decbits/sec"===t){let t=1e3>Math.abs(e)?"sec":"s";return W(e,{unit:"decbits",shortValues:r,decimalPlaces:n})+"/"+t}if("decbytes/sec"===t){let t=1e3>Math.abs(e)?"sec":"s";return V(e,{unit:"decbytes",shortValues:r,decimalPlaces:n})+"/"+t}if("bytes/sec"===t){let t=1024>Math.abs(e)?"sec":"s";return V(e,{unit:"bytes",shortValues:r,decimalPlaces:n})+"/"+t}let i={style:"decimal",useGrouping:!0};return(0,z.jb)(r)&&(i.notation="compact"),(0,z.IU)(n)?(i.minimumFractionDigits=(0,z.To)(n),i.maximumFractionDigits=(0,z.To)(n)):(0,z.jb)(r)&&(i.maximumSignificantDigits=3),Intl.NumberFormat("en-US",i).format(e)+" "+t}(e,t);if(eh(t))return function(e,{unit:t,decimalPlaces:r}){let n={style:"currency",currency:(0,Q.toUpper)(t),currencyDisplay:"symbol"};return(0,z.IU)(r)?(n.minimumFractionDigits=(0,z.To)(r),n.maximumFractionDigits=(0,z.To)(r)):n.maximumSignificantDigits=3,Intl.NumberFormat("en-US",n).format(e)}(e,t);if(eb(t))return function(e,t={}){let r=Intl.DateTimeFormat().resolvedOptions().timeZone,{unit:n="datetime-local",locale:i=(()=>{if("undefined"!=typeof navigator){if(navigator.language)return navigator.language;if(navigator.languages&&navigator.languages.length>0){let e=navigator.languages[0];if(e)return e}let e=navigator;if(e.userLanguage)return e.userLanguage;if(e.browserLanguage)return e.browserLanguage;if(e.systemLanguage)return e.systemLanguage}return Intl.DateTimeFormat().resolvedOptions().locale||"en-US"})(),timeZone:a=r,referenceTime:o=Date.now()}=t;if("unix-timestamp"===n)return(e>1e12?Math.floor(e/1e3):e).toString();if("unix-timestamp-ms"===n)return Math.floor(e<1e11?1e3*e:e).toString();let s=function(e){if(e<0)if(Math.abs(e)>1e10)return new Date(e);else return new Date(1e3*e);if(e>=25e10&&e<=26e10){let t=new Date(1e3*e);if(t.getUTCFullYear()>=9999)return t}return new Date(e<1e10?1e3*e:e)}(e);if("relative-time"===n){let e=new Date(o),t=s.getTime()-e.getTime();for(let{unit:e,ms:r}of[{unit:"year",ms:31536e6},{unit:"month",ms:2592e6},{unit:"week",ms:6048e5},{unit:"day",ms:864e5},{unit:"hour",ms:36e5},{unit:"minute",ms:6e4},{unit:"second",ms:1e3}]){let n=Math.round(t/r);if(Math.abs(n)>=1)return new Intl.RelativeTimeFormat(i,{numeric:"auto"}).format(n,e)}return new Intl.RelativeTimeFormat(i,{numeric:"auto"}).format(0,"second")}let l={timeZone:a};switch(n){case"datetime-iso":return s.toISOString();case"datetime-us":return l.timeZone="America/New_York",l.year="numeric",l.month="2-digit",l.day="2-digit",l.hour="2-digit",l.minute="2-digit",l.second="2-digit",l.hour12=!0,new Intl.DateTimeFormat("en-US",l).format(s);case"datetime-local":l.year="numeric",l.month="2-digit",l.day="2-digit",l.hour="2-digit",l.minute="2-digit",l.second="2-digit",l.hour12=!1;break;case"date-iso":return s.toISOString().split("T")[0];case"date-us":return l.timeZone="America/New_York",l.year="numeric",l.month="2-digit",l.day="2-digit",new Intl.DateTimeFormat("en-US",l).format(s);case"date-local":l.year="numeric",l.month="2-digit",l.day="2-digit";break;case"time-local":l.hour="2-digit",l.minute="2-digit",l.second="2-digit",l.hour12=!1;break;case"time-iso":return s.toISOString().split("T")[1].replace("Z","");case"time-us":return l.timeZone="America/New_York",l.hour="2-digit",l.minute="2-digit",l.second="2-digit",l.hour12=!0,new Intl.DateTimeFormat("en-US",l).format(s);default:throw Error(`Unknown date unit: ${n}`)}return new Intl.DateTimeFormat(i,l).format(s)}(e,t);if(ey(t))return((e,{unit:t,decimalPlaces:r})=>{let n={unit:t,style:"unit"};(0,z.IU)(r)?(n.minimumFractionDigits=(0,z.To)(r),n.maximumFractionDigits=(0,z.To)(r)):n.maximumSignificantDigits=3;let i="celsius"===t?"en-GB":"en-US";return Intl.NumberFormat(i,n).format(e)})(e,t);throw Error(`Unknown unit options ${t}`)}function ea(e){return en[e.unit??"decimal"]}function eo(e){return ea(e).group??"Decimal"}function es(e){return er[ea(e).group??"Decimal"]}function el(e){return"Time"===eo(e)}function eu(e){return"Percent"===eo(e)}function ec(e){return"Decimal"===eo(e)}function ef(e){return"Bytes"===eo(e)}function ed(e){return"Bits"===eo(e)}function ep(e){return!!es(e).decimalPlaces}function em(e){return!!es(e).shortValues}function eg(e){return"Throughput"===eo(e)}function eh(e){return"Currency"===eo(e)}function eb(e){return"Date"===eo(e)}function ey(e){return"Temperature"===eo(e)}},71065:function(e,t,r){function n(e){return!1!==e}function i(e){return"number"==typeof e}function a(e){return e&&(e<0?e=0:e>20&&(e=20)),e}r.d(t,{IU:()=>i,To:()=>a,jb:()=>n})},42524:function(e,t,r){var n;t.default=void 0,t.default=(0,((n=r(1448))&&n.__esModule?n:{default:n}).default)("M19,13H5V11H19V13Z","Minus")}}]);
@@ -1,2 +0,0 @@
1
- /*! For license information please see 5440.f3809507.js.LICENSE.txt */
2
- "use strict";(self.chunk_Pyroscope=self.chunk_Pyroscope||[]).push([["5440"],{53299:function(e,t,r){r.r(t),r.d(t,{useFetchers:()=>r_,unstable_HistoryRouter:()=>rp,useLoaderData:()=>tP,ScrollRestoration:()=>rb,Route:()=>tz,MemoryRouter:()=>tN,useMatches:()=>tC,redirect:()=>Q,useOutletContext:()=>tl,createRoutesFromElements:()=>tq,useLinkClickHandler:()=>rR,useRouteError:()=>tk,generatePath:()=>M,replace:()=>ee,useHref:()=>e9,useParams:()=>tu,UNSAFE_ViewTransitionContext:()=>rn,useRoutes:()=>td,useSubmit:()=>rD,UNSAFE_NavigationContext:()=>e5,Navigate:()=>tB,UNSAFE_ErrorResponseImpl:()=>et,UNSAFE_FetchersContext:()=>ra,useAsyncError:()=>tA,createRoutesFromChildren:()=>tq,unstable_usePrompt:()=>rM,useFetcher:()=>rk,useBlocker:()=>tU,createHashRouter:()=>rt,UNSAFE_useRouteId:()=>tS,useMatch:()=>tn,useNavigation:()=>tR,HashRouter:()=>rf,useFormAction:()=>rL,useResolvedPath:()=>tc,defer:()=>G,Router:()=>tH,Routes:()=>tW,useActionData:()=>tL,useRouteLoaderData:()=>tD,Await:()=>t$,matchPath:()=>O,UNSAFE_DataRouterContext:()=>e7,BrowserRouter:()=>rh,NavigationType:()=>c,Form:()=>rw,UNSAFE_RouteContext:()=>e6,createSearchParams:()=>t4,RouterProvider:()=>rc,UNSAFE_LocationContext:()=>e3,parsePath:()=>P,Outlet:()=>tI,createMemoryRouter:()=>tQ,UNSAFE_useScrollRestoration:()=>rU,useNavigate:()=>to,matchRoutes:()=>_,createPath:()=>C,resolvePath:()=>B,useInRouterContext:()=>te,useOutlet:()=>ts,useAsyncValue:()=>t_,useViewTransitionState:()=>rO,Link:()=>ry,AbortedDeferredError:()=>q,renderMatches:()=>tX,NavLink:()=>rg,UNSAFE_DataRouterStateContext:()=>e4,json:()=>Y,useSearchParams:()=>rx,redirectDocument:()=>Z,useBeforeUnload:()=>rj,useLocation:()=>tt,createBrowserRouter:()=>re,isRouteErrorResponse:()=>er,useNavigationType:()=>tr,useRevalidator:()=>tx});var n,a,o,i,l,s,u,c,d,h,f,p=r(70451),m=r(20231);function v(){return(v=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}(n=c||(c={})).Pop="POP",n.Push="PUSH",n.Replace="REPLACE";let y="popstate";function g(e){let t;void 0===e&&(e={});let{initialEntries:r=["/"],initialIndex:n,v5Compat:a=!1}=e;t=r.map((e,t)=>u(e,"string"==typeof e?null:e.state,0===t?"default":void 0));let o=s(null==n?t.length-1:n),i=c.Pop,l=null;function s(e){return Math.min(Math.max(e,0),t.length-1)}function u(e,r,n){void 0===r&&(r=null);let a=x(t?t[o].pathname:"/",e,r,n);return S("/"===a.pathname.charAt(0),"relative pathnames are not supported in memory history: "+JSON.stringify(e)),a}function d(e){return"string"==typeof e?e:C(e)}return{get index(){return o},get action(){return i},get location(){return t[o]},createHref:d,createURL:e=>new URL(d(e),"http://localhost"),encodeLocation(e){let t="string"==typeof e?P(e):e;return{pathname:t.pathname||"",search:t.search||"",hash:t.hash||""}},push(e,r){i=c.Push;let n=u(e,r);o+=1,t.splice(o,t.length,n),a&&l&&l({action:i,location:n,delta:1})},replace(e,r){i=c.Replace;let n=u(e,r);t[o]=n,a&&l&&l({action:i,location:n,delta:0})},go(e){i=c.Pop;let r=s(o+e),n=t[r];o=r,l&&l({action:i,location:n,delta:e})},listen:e=>(l=e,()=>{l=null})}}function w(e){return void 0===e&&(e={}),D(function(e,t){let{pathname:r,search:n,hash:a}=e.location;return x("",{pathname:r,search:n,hash:a},t.state&&t.state.usr||null,t.state&&t.state.key||"default")},function(e,t){return"string"==typeof t?t:C(t)},null,e)}function b(e){return void 0===e&&(e={}),D(function(e,t){let{pathname:r="/",search:n="",hash:a=""}=P(e.location.hash.substr(1));return r.startsWith("/")||r.startsWith(".")||(r="/"+r),x("",{pathname:r,search:n,hash:a},t.state&&t.state.usr||null,t.state&&t.state.key||"default")},function(e,t){let r=e.document.querySelector("base"),n="";if(r&&r.getAttribute("href")){let t=e.location.href,r=t.indexOf("#");n=-1===r?t:t.slice(0,r)}return n+"#"+("string"==typeof t?t:C(t))},function(e,t){S("/"===e.pathname.charAt(0),"relative pathnames are not supported in hash history.push("+JSON.stringify(t)+")")},e)}function E(e,t){if(!1===e||null==e)throw Error(t)}function S(e,t){if(!e){"undefined"!=typeof console&&console.warn(t);try{throw Error(t)}catch(e){}}}function R(e,t){return{usr:e.state,key:e.key,idx:t}}function x(e,t,r,n){return void 0===r&&(r=null),v({pathname:"string"==typeof e?e:e.pathname,search:"",hash:""},"string"==typeof t?P(t):t,{state:r,key:t&&t.key||n||Math.random().toString(36).substr(2,8)})}function C(e){let{pathname:t="/",search:r="",hash:n=""}=e;return r&&"?"!==r&&(t+="?"===r.charAt(0)?r:"?"+r),n&&"#"!==n&&(t+="#"===n.charAt(0)?n:"#"+n),t}function P(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substr(r),e=e.substr(0,r));let n=e.indexOf("?");n>=0&&(t.search=e.substr(n),e=e.substr(0,n)),e&&(t.pathname=e)}return t}function D(e,t,r,n){void 0===n&&(n={});let{window:a=document.defaultView,v5Compat:o=!1}=n,i=a.history,l=c.Pop,s=null,u=d();function d(){return(i.state||{idx:null}).idx}function h(){l=c.Pop;let e=d(),t=null==e?null:e-u;u=e,s&&s({action:l,location:p.location,delta:t})}function f(e){let t="null"!==a.location.origin?a.location.origin:a.location.href,r="string"==typeof e?e:C(e);return E(t,"No window.location.(origin|href) available to create URL for href: "+(r=r.replace(/ $/,"%20"))),new URL(r,t)}null==u&&(u=0,i.replaceState(v({},i.state,{idx:u}),""));let p={get action(){return l},get location(){return e(a,i)},listen(e){if(s)throw Error("A history only accepts one active listener");return a.addEventListener(y,h),s=e,()=>{a.removeEventListener(y,h),s=null}},createHref:e=>t(a,e),createURL:f,encodeLocation(e){let t=f(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:function(e,t){l=c.Push;let n=x(p.location,e,t);r&&r(n,e);let h=R(n,u=d()+1),f=p.createHref(n);try{i.pushState(h,"",f)}catch(e){if(e instanceof DOMException&&"DataCloneError"===e.name)throw e;a.location.assign(f)}o&&s&&s({action:l,location:p.location,delta:1})},replace:function(e,t){l=c.Replace;let n=x(p.location,e,t);r&&r(n,e);let a=R(n,u=d()),h=p.createHref(n);i.replaceState(a,"",h),o&&s&&s({action:l,location:p.location,delta:0})},go:e=>i.go(e)};return p}(a=d||(d={})).data="data",a.deferred="deferred",a.redirect="redirect",a.error="error";let L=new Set(["lazy","caseSensitive","path","id","index","children"]);function k(e,t,r,n){return void 0===r&&(r=[]),void 0===n&&(n={}),e.map((e,a)=>{let o=[...r,String(a)],i="string"==typeof e.id?e.id:o.join("-");if(E(!0!==e.index||!e.children,"Cannot specify children on an index route"),E(!n[i],'Found a route id collision on id "'+i+"\". Route id's must be globally unique within Data Router usages"),!0===e.index){let r=v({},e,t(e),{id:i});return n[i]=r,r}{let r=v({},e,t(e),{id:i,children:void 0});return n[i]=r,e.children&&(r.children=k(e.children,t,o,n)),r}})}function _(e,t,r){return void 0===r&&(r="/"),A(e,t,r,!1)}function A(e,t,r,n){let a=N(("string"==typeof t?P(t):t).pathname||"/",r);if(null==a)return null;let o=function e(t,r,n,a){void 0===r&&(r=[]),void 0===n&&(n=[]),void 0===a&&(a="");let o=(t,o,i)=>{var l,s;let u,c,d={relativePath:void 0===i?t.path||"":i,caseSensitive:!0===t.caseSensitive,childrenIndex:o,route:t};d.relativePath.startsWith("/")&&(E(d.relativePath.startsWith(a),'Absolute route path "'+d.relativePath+'" nested under path "'+a+'" is not valid. An absolute child route path must start with the combined path of all its parent routes.'),d.relativePath=d.relativePath.slice(a.length));let h=$([a,d.relativePath]),f=n.concat(d);t.children&&t.children.length>0&&(E(!0!==t.index,'Index routes must not have child routes. Please remove all child routes from route path "'+h+'".'),e(t.children,r,f,h)),(null!=t.path||t.index)&&r.push({path:h,score:(l=h,s=t.index,c=(u=l.split("/")).length,u.some(j)&&(c+=-2),s&&(c+=2),u.filter(e=>!j(e)).reduce((e,t)=>e+(U.test(t)?3:""===t?1:10),c)),routesMeta:f})};return t.forEach((e,t)=>{var r;if(""!==e.path&&null!=(r=e.path)&&r.includes("?"))for(let r of function e(t){let r=t.split("/");if(0===r.length)return[];let[n,...a]=r,o=n.endsWith("?"),i=n.replace(/\?$/,"");if(0===a.length)return o?[i,""]:[i];let l=e(a.join("/")),s=[];return s.push(...l.map(e=>""===e?i:[i,e].join("/"))),o&&s.push(...l),s.map(e=>t.startsWith("/")&&""===e?"/":e)}(e.path))o(e,t,r);else o(e,t)}),r}(e);o.sort((e,t)=>{var r,n;return e.score!==t.score?t.score-e.score:(r=e.routesMeta.map(e=>e.childrenIndex),n=t.routesMeta.map(e=>e.childrenIndex),r.length===n.length&&r.slice(0,-1).every((e,t)=>e===n[t])?r[r.length-1]-n[n.length-1]:0)});let i=null;for(let e=0;null==i&&e<o.length;++e){let t=F(a);i=function(e,t,r){void 0===r&&(r=!1);let{routesMeta:n}=e,a={},o="/",i=[];for(let e=0;e<n.length;++e){let l=n[e],s=e===n.length-1,u="/"===o?t:t.slice(o.length)||"/",c=O({path:l.relativePath,caseSensitive:l.caseSensitive,end:s},u),d=l.route;if(!c&&s&&r&&!n[n.length-1].route.index&&(c=O({path:l.relativePath,caseSensitive:l.caseSensitive,end:!1},u)),!c)return null;Object.assign(a,c.params),i.push({params:a,pathname:$([o,c.pathname]),pathnameBase:V($([o,c.pathnameBase])),route:d}),"/"!==c.pathnameBase&&(o=$([o,c.pathnameBase]))}return i}(o[e],t,n)}return i}function T(e,t){let{route:r,pathname:n,params:a}=e;return{id:r.id,pathname:n,params:a,data:t[r.id],handle:r.handle}}let U=/^:[\w-]+$/,j=e=>"*"===e;function M(e,t){void 0===t&&(t={});let r=e;r.endsWith("*")&&"*"!==r&&!r.endsWith("/*")&&(S(!1,'Route path "'+r+'" will be treated as if it were "'+r.replace(/\*$/,"/*")+'" because the `*` character must always follow a `/` in the pattern. To get rid of this warning, please change the route path to "'+r.replace(/\*$/,"/*")+'".'),r=r.replace(/\*$/,"/*"));let n=r.startsWith("/")?"/":"",a=e=>null==e?"":"string"==typeof e?e:String(e);return n+r.split(/\/+/).map((e,r,n)=>{if(r===n.length-1&&"*"===e)return a(t["*"]);let o=e.match(/^:([\w-]+)(\??)$/);if(o){let[,e,r]=o,n=t[e];return E("?"===r||null!=n,'Missing ":'+e+'" param'),a(n)}return e.replace(/\?$/g,"")}).filter(e=>!!e).join("/")}function O(e,t){var r,n,a;let o,i;"string"==typeof e&&(e={path:e,caseSensitive:!1,end:!0});let[l,s]=(r=e.path,n=e.caseSensitive,a=e.end,void 0===n&&(n=!1),void 0===a&&(a=!0),S("*"===r||!r.endsWith("*")||r.endsWith("/*"),'Route path "'+r+'" will be treated as if it were "'+r.replace(/\*$/,"/*")+'" because the `*` character must always follow a `/` in the pattern. To get rid of this warning, please change the route path to "'+r.replace(/\*$/,"/*")+'".'),o=[],i="^"+r.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(e,t,r)=>(o.push({paramName:t,isOptional:null!=r}),r?"/?([^\\/]+)?":"/([^\\/]+)")),r.endsWith("*")?(o.push({paramName:"*"}),i+="*"===r||"/*"===r?"(.*)$":"(?:\\/(.+)|\\/*)$"):a?i+="\\/*$":""!==r&&"/"!==r&&(i+="(?:(?=\\/|$))"),[new RegExp(i,n?void 0:"i"),o]),u=t.match(l);if(!u)return null;let c=u[0],d=c.replace(/(.)\/+$/,"$1"),h=u.slice(1);return{params:s.reduce((e,t,r)=>{let{paramName:n,isOptional:a}=t;if("*"===n){let e=h[r]||"";d=c.slice(0,c.length-e.length).replace(/(.)\/+$/,"$1")}let o=h[r];return a&&!o?e[n]=void 0:e[n]=(o||"").replace(/%2F/g,"/"),e},{}),pathname:c,pathnameBase:d,pattern:e}}function F(e){try{return e.split("/").map(e=>decodeURIComponent(e).replace(/\//g,"%2F")).join("/")}catch(t){return S(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent encoding ('+t+")."),e}}function N(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,n=e.charAt(r);return n&&"/"!==n?null:e.slice(r)||"/"}function B(e,t){var r;let n;void 0===t&&(t="/");let{pathname:a,search:o="",hash:i=""}="string"==typeof e?P(e):e;return{pathname:a?a.startsWith("/")?a:(r=a,n=t.replace(/\/+$/,"").split("/"),r.split("/").forEach(e=>{".."===e?n.length>1&&n.pop():"."!==e&&n.push(e)}),n.length>1?n.join("/"):"/"):t,search:J(o),hash:K(i)}}function I(e,t,r,n){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field [")+JSON.stringify(n)+"]. Please separate it out to the `to."+r+'` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.'}function z(e){return e.filter((e,t)=>0===t||e.route.path&&e.route.path.length>0)}function H(e,t){let r=z(e);return t?r.map((e,t)=>t===r.length-1?e.pathname:e.pathnameBase):r.map(e=>e.pathnameBase)}function W(e,t,r,n){let a,o;void 0===n&&(n=!1),"string"==typeof e?a=P(e):(E(!(a=v({},e)).pathname||!a.pathname.includes("?"),I("?","pathname","search",a)),E(!a.pathname||!a.pathname.includes("#"),I("#","pathname","hash",a)),E(!a.search||!a.search.includes("#"),I("#","search","hash",a)));let i=""===e||""===a.pathname,l=i?"/":a.pathname;if(null==l)o=r;else{let e=t.length-1;if(!n&&l.startsWith("..")){let t=l.split("/");for(;".."===t[0];)t.shift(),e-=1;a.pathname=t.join("/")}o=e>=0?t[e]:"/"}let s=B(a,o),u=l&&"/"!==l&&l.endsWith("/"),c=(i||"."===l)&&r.endsWith("/");return!s.pathname.endsWith("/")&&(u||c)&&(s.pathname+="/"),s}let $=e=>e.join("/").replace(/\/\/+/g,"/"),V=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),J=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",K=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"",Y=function(e,t){void 0===t&&(t={});let r="number"==typeof t?{status:t}:t,n=new Headers(r.headers);return n.has("Content-Type")||n.set("Content-Type","application/json; charset=utf-8"),new Response(JSON.stringify(e),v({},r,{headers:n}))};class q extends Error{}class X{constructor(e,t){let r;this.pendingKeysSet=new Set,this.subscribers=new Set,this.deferredKeys=[],E(e&&"object"==typeof e&&!Array.isArray(e),"defer() only accepts plain objects"),this.abortPromise=new Promise((e,t)=>r=t),this.controller=new AbortController;let n=()=>r(new q("Deferred data aborted"));this.unlistenAbortSignal=()=>this.controller.signal.removeEventListener("abort",n),this.controller.signal.addEventListener("abort",n),this.data=Object.entries(e).reduce((e,t)=>{let[r,n]=t;return Object.assign(e,{[r]:this.trackPromise(r,n)})},{}),this.done&&this.unlistenAbortSignal(),this.init=t}trackPromise(e,t){if(!(t instanceof Promise))return t;this.deferredKeys.push(e),this.pendingKeysSet.add(e);let r=Promise.race([t,this.abortPromise]).then(t=>this.onSettle(r,e,void 0,t),t=>this.onSettle(r,e,t));return r.catch(()=>{}),Object.defineProperty(r,"_tracked",{get:()=>!0}),r}onSettle(e,t,r,n){if(this.controller.signal.aborted&&r instanceof q)return this.unlistenAbortSignal(),Object.defineProperty(e,"_error",{get:()=>r}),Promise.reject(r);if(this.pendingKeysSet.delete(t),this.done&&this.unlistenAbortSignal(),void 0===r&&void 0===n){let r=Error('Deferred data for key "'+t+'" resolved/rejected with `undefined`, you must resolve/reject with a value or `null`.');return Object.defineProperty(e,"_error",{get:()=>r}),this.emit(!1,t),Promise.reject(r)}return void 0===n?(Object.defineProperty(e,"_error",{get:()=>r}),this.emit(!1,t),Promise.reject(r)):(Object.defineProperty(e,"_data",{get:()=>n}),this.emit(!1,t),n)}emit(e,t){this.subscribers.forEach(r=>r(e,t))}subscribe(e){return this.subscribers.add(e),()=>this.subscribers.delete(e)}cancel(){this.controller.abort(),this.pendingKeysSet.forEach((e,t)=>this.pendingKeysSet.delete(t)),this.emit(!0)}async resolveData(e){let t=!1;if(!this.done){let r=()=>this.cancel();e.addEventListener("abort",r),t=await new Promise(t=>{this.subscribe(n=>{e.removeEventListener("abort",r),(n||this.done)&&t(n)})})}return t}get done(){return 0===this.pendingKeysSet.size}get unwrappedData(){return E(null!==this.data&&this.done,"Can only unwrap data on initialized and settled deferreds"),Object.entries(this.data).reduce((e,t)=>{let[r,n]=t;return Object.assign(e,{[r]:function(e){if(!(e instanceof Promise&&!0===e._tracked))return e;if(e._error)throw e._error;return e._data}(n)})},{})}get pendingKeys(){return Array.from(this.pendingKeysSet)}}let G=function(e,t){return void 0===t&&(t={}),new X(e,"number"==typeof t?{status:t}:t)},Q=function(e,t){void 0===t&&(t=302);let r=t;"number"==typeof r?r={status:r}:void 0===r.status&&(r.status=302);let n=new Headers(r.headers);return n.set("Location",e),new Response(null,v({},r,{headers:n}))},Z=(e,t)=>{let r=Q(e,t);return r.headers.set("X-Remix-Reload-Document","true"),r},ee=(e,t)=>{let r=Q(e,t);return r.headers.set("X-Remix-Replace","true"),r};class et{constructor(e,t,r,n){void 0===n&&(n=!1),this.status=e,this.statusText=t||"",this.internal=n,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}}function er(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"boolean"==typeof e.internal&&"data"in e}let en=["post","put","patch","delete"],ea=new Set(en),eo=new Set(["get",...en]),ei=new Set([301,302,303,307,308]),el=new Set([307,308]),es={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},eu={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},ec={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},ed=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,eh=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),ef="remix-router-transitions";function ep(e){let t,r,n,a,o,i,l=e.window?e.window:"undefined"!=typeof window?window:void 0,s=void 0!==l&&void 0!==l.document&&void 0!==l.document.createElement,u=!s;if(E(e.routes.length>0,"You must provide a non-empty routes array to createRouter"),e.mapRouteProperties)t=e.mapRouteProperties;else if(e.detectErrorBoundary){let r=e.detectErrorBoundary;t=e=>({hasErrorBoundary:r(e)})}else t=eh;let h={},f=k(e.routes,t,void 0,h),p=e.basename||"/",m=e.dataStrategy||ex,y=e.patchRoutesOnNavigation,g=v({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1,v7_skipActionErrorRevalidation:!1},e.future),w=null,b=new Set,R=null,C=null,P=null,D=null!=e.hydrationData,L=_(f,e.history.location,p),U=!1,j=null;if(null==L&&!y){let t=eF(404,{pathname:e.history.location.pathname}),{matches:r,route:n}=eO(f);L=r,j={[n.id]:t}}if(L&&!e.hydrationData&&to(L,f,e.history.location.pathname).active&&(L=null),L)if(L.some(e=>e.route.lazy))n=!1;else if(L.some(e=>e.route.loader))if(g.v7_partialHydration){let t=e.hydrationData?e.hydrationData.loaderData:null,r=e.hydrationData?e.hydrationData.errors:null;if(r){let e=L.findIndex(e=>void 0!==r[e.route.id]);n=L.slice(0,e+1).every(e=>!ew(e.route,t,r))}else n=L.every(e=>!ew(e.route,t,r))}else n=null!=e.hydrationData;else n=!0;else if(n=!1,L=[],g.v7_partialHydration){let t=to(null,f,e.history.location.pathname);t.active&&t.matches&&(U=!0,L=t.matches)}let M={historyAction:e.history.action,location:e.history.location,matches:L,initialized:n,navigation:es,restoreScrollPosition:null==e.hydrationData&&null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||j,fetchers:new Map,blockers:new Map},O=c.Pop,F=!1,B=!1,I=new Map,z=null,H=!1,W=!1,$=[],V=new Set,J=new Map,K=0,Y=-1,q=new Map,X=new Set,G=new Map,Q=new Map,Z=new Set,ee=new Map,et=new Map;function en(e,t){void 0===t&&(t={}),M=v({},M,e);let r=[],n=[];g.v7_fetcherPersist&&M.fetchers.forEach((e,t)=>{"idle"===e.state&&(Z.has(t)?n.push(t):r.push(t))}),Z.forEach(e=>{M.fetchers.has(e)||J.has(e)||n.push(e)}),[...b].forEach(e=>e(M,{deletedFetchers:n,viewTransitionOpts:t.viewTransitionOpts,flushSync:!0===t.flushSync})),g.v7_fetcherPersist?(r.forEach(e=>M.fetchers.delete(e)),n.forEach(e=>e4(e))):n.forEach(e=>Z.delete(e))}function ea(t,n,a){var o,i;let l,s,{flushSync:u}=void 0===a?{}:a,d=null!=M.actionData&&null!=M.navigation.formMethod&&eV(M.navigation.formMethod)&&"loading"===M.navigation.state&&(null==(o=t.state)?void 0:o._isRedirect)!==!0;l=n.actionData?Object.keys(n.actionData).length>0?n.actionData:null:d?M.actionData:null;let h=n.loaderData?eU(M.loaderData,n.loaderData,n.matches||[],n.errors):M.loaderData,p=M.blockers;p.size>0&&(p=new Map(p)).forEach((e,t)=>p.set(t,ec));let m=!0===F||null!=M.navigation.formMethod&&eV(M.navigation.formMethod)&&(null==(i=t.state)?void 0:i._isRedirect)!==!0;if(r&&(f=r,r=void 0),H||O===c.Pop||(O===c.Push?e.history.push(t,t.state):O===c.Replace&&e.history.replace(t,t.state)),O===c.Pop){let e=I.get(M.location.pathname);e&&e.has(t.pathname)?s={currentLocation:M.location,nextLocation:t}:I.has(t.pathname)&&(s={currentLocation:t,nextLocation:M.location})}else if(B){let e=I.get(M.location.pathname);e?e.add(t.pathname):(e=new Set([t.pathname]),I.set(M.location.pathname,e)),s={currentLocation:M.location,nextLocation:t}}en(v({},n,{actionData:l,loaderData:h,historyAction:O,location:t,initialized:!0,navigation:es,revalidation:"idle",restoreScrollPosition:ta(t,n.matches||M.matches),preventScrollReset:m,blockers:p}),{viewTransitionOpts:s,flushSync:!0===u}),O=c.Pop,F=!1,B=!1,H=!1,W=!1,$=[]}async function eo(t,r){if("number"==typeof t)return void e.history.go(t);let n=em(M.location,M.matches,p,g.v7_prependBasename,t,g.v7_relativeSplatPath,null==r?void 0:r.fromRouteId,null==r?void 0:r.relative),{path:a,submission:o,error:i}=ev(g.v7_normalizeFormMethod,!1,n,r),l=M.location,s=x(M.location,a,r&&r.state);s=v({},s,e.history.encodeLocation(s));let u=r&&null!=r.replace?r.replace:void 0,d=c.Push;!0===u?d=c.Replace:!1===u||null!=o&&eV(o.formMethod)&&o.formAction===M.location.pathname+M.location.search&&(d=c.Replace);let h=r&&"preventScrollReset"in r?!0===r.preventScrollReset:void 0,f=!0===(r&&r.flushSync),m=te({currentLocation:l,nextLocation:s,historyAction:d});return m?void e9(m,{state:"blocked",location:s,proceed(){e9(m,{state:"proceeding",proceed:void 0,reset:void 0,location:s}),eo(t,r)},reset(){let e=new Map(M.blockers);e.set(m,ec),en({blockers:e})}}):await ep(d,s,{submission:o,pendingError:i,preventScrollReset:h,replace:r&&r.replace,enableViewTransition:r&&r.viewTransition,flushSync:f})}async function ep(t,n,a){var i,l,s,u;let c;o&&o.abort(),o=null,O=t,H=!0===(a&&a.startUninterruptedRevalidation),i=M.location,l=M.matches,R&&P&&(R[tn(i,l)]=P()),F=!0===(a&&a.preventScrollReset),B=!0===(a&&a.enableViewTransition);let h=r||f,m=a&&a.overrideNavigation,y=null!=a&&a.initialHydration&&M.matches&&M.matches.length>0&&!U?M.matches:_(h,n,p),g=!0===(a&&a.flushSync);if(y&&M.initialized&&!W&&(s=M.location,u=n,s.pathname===u.pathname&&s.search===u.search&&(""===s.hash?""!==u.hash:s.hash===u.hash||""!==u.hash||!1))&&!(a&&a.submission&&eV(a.submission.formMethod)))return void ea(n,{matches:y},{flushSync:g});let w=to(y,h,n.pathname);if(w.active&&w.matches&&(y=w.matches),!y){let{error:e,notFoundMatches:t,route:r}=tt(n.pathname);ea(n,{matches:t,loaderData:{},errors:{[r.id]:e}},{flushSync:g});return}o=new AbortController;let b=ek(e.history,n,o.signal,a&&a.submission);if(a&&a.pendingError)c=[eM(y).route.id,{type:d.error,error:a.pendingError}];else if(a&&a.submission&&eV(a.submission.formMethod)){let t=await ey(b,n,a.submission,y,w.active,{replace:a.replace,flushSync:g});if(t.shortCircuited)return;if(t.pendingActionResult){let[e,r]=t.pendingActionResult;if(ez(r)&&er(r.error)&&404===r.error.status){o=null,ea(n,{matches:t.matches,loaderData:{},errors:{[e]:r.error}});return}}y=t.matches||y,c=t.pendingActionResult,m=eQ(n,a.submission),g=!1,w.active=!1,b=ek(e.history,b.url,b.signal)}let{shortCircuited:E,matches:S,loaderData:x,errors:C}=await eb(b,n,y,w.active,m,a&&a.submission,a&&a.fetcherSubmission,a&&a.replace,a&&!0===a.initialHydration,g,c);E||(o=null,ea(n,v({matches:S||y},ej(c),{loaderData:x,errors:C})))}async function ey(e,t,r,n,a,o){var i;let l;if(void 0===o&&(o={}),eW(),en({navigation:{state:"submitting",location:t,formMethod:(i=r).formMethod,formAction:i.formAction,formEncType:i.formEncType,formData:i.formData,json:i.json,text:i.text}},{flushSync:!0===o.flushSync}),a){let r=await ti(n,t.pathname,e.signal);if("aborted"===r.type)return{shortCircuited:!0};if("error"===r.type){let e=eM(r.partialMatches).route.id;return{matches:r.partialMatches,pendingActionResult:[e,{type:d.error,error:r.error}]}}if(r.matches)n=r.matches;else{let{notFoundMatches:e,error:r,route:n}=tt(t.pathname);return{matches:e,pendingActionResult:[n.id,{type:d.error,error:r}]}}}let s=eX(n,t);if(s.route.action||s.route.lazy){if(l=(await eA("action",M,e,[s],n,null))[s.route.id],e.signal.aborted)return{shortCircuited:!0}}else l={type:d.error,error:eF(405,{method:e.method,pathname:t.pathname,routeId:s.route.id})};if(eH(l)){let t;return t=o&&null!=o.replace?o.replace:eL(l.response.headers.get("Location"),new URL(e.url),p)===M.location.pathname+M.location.search,await e_(e,l,!0,{submission:r,replace:t}),{shortCircuited:!0}}if(eI(l))throw eF(400,{type:"defer-action"});if(ez(l)){let e=eM(n,s.route.id);return!0!==(o&&o.replace)&&(O=c.Push),{matches:n,pendingActionResult:[e.route.id,l]}}return{matches:n,pendingActionResult:[s.route.id,l]}}async function eb(t,n,a,i,l,s,u,c,d,h,m){let y=l||eQ(n,s),w=s||u||eG(y),b=!H&&(!g.v7_partialHydration||!d);if(i){if(b){let e=eE(m);en(v({navigation:y},void 0!==e?{actionData:e}:{}),{flushSync:h})}let e=await ti(a,n.pathname,t.signal);if("aborted"===e.type)return{shortCircuited:!0};if("error"===e.type){let t=eM(e.partialMatches).route.id;return{matches:e.partialMatches,loaderData:{},errors:{[t]:e.error}}}if(e.matches)a=e.matches;else{let{error:e,notFoundMatches:t,route:r}=tt(n.pathname);return{matches:t,loaderData:{},errors:{[r.id]:e}}}}let E=r||f,[S,R]=eg(e.history,M,a,w,n,g.v7_partialHydration&&!0===d,g.v7_skipActionErrorRevalidation,W,$,V,Z,G,X,E,p,m);if(tr(e=>!(a&&a.some(t=>t.route.id===e))||S&&S.some(t=>t.route.id===e)),Y=++K,0===S.length&&0===R.length){let e=e3();return ea(n,v({matches:a,loaderData:{},errors:m&&ez(m[1])?{[m[0]]:m[1].error}:null},ej(m),e?{fetchers:new Map(M.fetchers)}:{}),{flushSync:h}),{shortCircuited:!0}}if(b){let e={};if(!i){e.navigation=y;let t=eE(m);void 0!==t&&(e.actionData=t)}R.length>0&&(R.forEach(e=>{let t=M.fetchers.get(e.key),r=eZ(void 0,t?t.data:void 0);M.fetchers.set(e.key,r)}),e.fetchers=new Map(M.fetchers)),en(e,{flushSync:h})}R.forEach(e=>{e2(e.key),e.controller&&J.set(e.key,e.controller)});let x=()=>R.forEach(e=>e2(e.key));o&&o.signal.addEventListener("abort",x);let{loaderResults:C,fetcherResults:P}=await eB(M,a,S,R,t);if(t.signal.aborted)return{shortCircuited:!0};o&&o.signal.removeEventListener("abort",x),R.forEach(e=>J.delete(e.key));let D=eN(C);if(D)return await e_(t,D.result,!0,{replace:c}),{shortCircuited:!0};if(D=eN(P))return X.add(D.key),await e_(t,D.result,!0,{replace:c}),{shortCircuited:!0};let{loaderData:L,errors:k}=eT(M,a,C,m,R,P,ee);ee.forEach((e,t)=>{e.subscribe(r=>{(r||e.done)&&ee.delete(t)})}),g.v7_partialHydration&&d&&M.errors&&(k=v({},M.errors,k));let _=e3(),A=e6(Y),T=_||A||R.length>0;return v({matches:a,loaderData:L,errors:k},T?{fetchers:new Map(M.fetchers)}:{})}function eE(e){if(e&&!ez(e[1]))return{[e[0]]:e[1].data};if(M.actionData)if(0===Object.keys(M.actionData).length)return null;else return M.actionData}async function eR(t,n,a,i,l,s,u,c,d){var h,m;function v(e){if(!e.route.action&&!e.route.lazy){let e=eF(405,{method:d.formMethod,pathname:a,routeId:n});return e1(t,n,e,{flushSync:u}),!0}return!1}if(eW(),G.delete(t),!s&&v(i))return;let y=M.fetchers.get(t);eq(t,(h=d,m=y,{state:"submitting",formMethod:h.formMethod,formAction:h.formAction,formEncType:h.formEncType,formData:h.formData,json:h.json,text:h.text,data:m?m.data:void 0}),{flushSync:u});let w=new AbortController,b=ek(e.history,a,w.signal,d);if(s){let e=await ti(l,new URL(b.url).pathname,b.signal,t);if("aborted"===e.type)return;if("error"===e.type)return void e1(t,n,e.error,{flushSync:u});if(!e.matches)return void e1(t,n,eF(404,{pathname:a}),{flushSync:u});if(v(i=eX(l=e.matches,a)))return}J.set(t,w);let S=K,R=(await eA("action",M,b,[i],l,t))[i.route.id];if(b.signal.aborted){J.get(t)===w&&J.delete(t);return}if(g.v7_fetcherPersist&&Z.has(t)){if(eH(R)||ez(R))return void eq(t,e0(void 0))}else{if(eH(R))return(J.delete(t),Y>S)?void eq(t,e0(void 0)):(X.add(t),eq(t,eZ(d)),e_(b,R,!1,{fetcherSubmission:d,preventScrollReset:c}));if(ez(R))return void e1(t,n,R.error)}if(eI(R))throw eF(400,{type:"defer-action"});let x=M.navigation.location||M.location,C=ek(e.history,x,w.signal),P=r||f,D="idle"!==M.navigation.state?_(P,M.navigation.location,p):M.matches;E(D,"Didn't find any matches after fetcher action");let L=++K;q.set(t,L);let k=eZ(d,R.data);M.fetchers.set(t,k);let[A,T]=eg(e.history,M,D,d,x,!1,g.v7_skipActionErrorRevalidation,W,$,V,Z,G,X,P,p,[i.route.id,R]);T.filter(e=>e.key!==t).forEach(e=>{let t=e.key,r=M.fetchers.get(t),n=eZ(void 0,r?r.data:void 0);M.fetchers.set(t,n),e2(t),e.controller&&J.set(t,e.controller)}),en({fetchers:new Map(M.fetchers)});let U=()=>T.forEach(e=>e2(e.key));w.signal.addEventListener("abort",U);let{loaderResults:j,fetcherResults:F}=await eB(M,D,A,T,C);if(w.signal.aborted)return;w.signal.removeEventListener("abort",U),q.delete(t),J.delete(t),T.forEach(e=>J.delete(e.key));let N=eN(j);if(N)return e_(C,N.result,!1,{preventScrollReset:c});if(N=eN(F))return X.add(N.key),e_(C,N.result,!1,{preventScrollReset:c});let{loaderData:B,errors:I}=eT(M,D,j,void 0,T,F,ee);if(M.fetchers.has(t)){let e=e0(R.data);M.fetchers.set(t,e)}e6(L),"loading"===M.navigation.state&&L>Y?(E(O,"Expected pending action"),o&&o.abort(),ea(M.navigation.location,{matches:D,loaderData:B,errors:I,fetchers:new Map(M.fetchers)})):(en({errors:I,loaderData:eU(M.loaderData,B,D,I),fetchers:new Map(M.fetchers)}),W=!1)}async function eP(t,r,n,a,o,i,l,s,u){let c=M.fetchers.get(t);eq(t,eZ(u,c?c.data:void 0),{flushSync:l});let d=new AbortController,h=ek(e.history,n,d.signal);if(i){let e=await ti(o,new URL(h.url).pathname,h.signal,t);if("aborted"===e.type)return;if("error"===e.type)return void e1(t,r,e.error,{flushSync:l});if(!e.matches)return void e1(t,r,eF(404,{pathname:n}),{flushSync:l});a=eX(o=e.matches,n)}J.set(t,d);let f=K,p=(await eA("loader",M,h,[a],o,t))[a.route.id];if(eI(p)&&(p=await eY(p,h.signal,!0)||p),J.get(t)===d&&J.delete(t),!h.signal.aborted){if(Z.has(t))return void eq(t,e0(void 0));if(eH(p))if(Y>f)return void eq(t,e0(void 0));else{X.add(t),await e_(h,p,!1,{preventScrollReset:s});return}if(ez(p))return void e1(t,r,p.error);E(!eI(p),"Unhandled fetcher deferred data"),eq(t,e0(p.data))}}async function e_(t,r,n,a){let{submission:i,fetcherSubmission:u,preventScrollReset:d,replace:h}=void 0===a?{}:a;r.response.headers.has("X-Remix-Revalidate")&&(W=!0);let f=r.response.headers.get("Location");E(f,"Expected a Location header on the redirect Response"),f=eL(f,new URL(t.url),p);let m=x(M.location,f,{_isRedirect:!0});if(s){let t=!1;if(r.response.headers.has("X-Remix-Reload-Document"))t=!0;else if(ed.test(f)){let r=e.history.createURL(f);t=r.origin!==l.location.origin||null==N(r.pathname,p)}if(t)return void(h?l.location.replace(f):l.location.assign(f))}o=null;let y=!0===h||r.response.headers.has("X-Remix-Replace")?c.Replace:c.Push,{formMethod:g,formAction:w,formEncType:b}=M.navigation;!i&&!u&&g&&w&&b&&(i=eG(M.navigation));let S=i||u;if(el.has(r.response.status)&&S&&eV(S.formMethod))await ep(y,m,{submission:v({},S,{formAction:f}),preventScrollReset:d||F,enableViewTransition:n?B:void 0});else{let e=eQ(m,i);await ep(y,m,{overrideNavigation:e,fetcherSubmission:u,preventScrollReset:d||F,enableViewTransition:n?B:void 0})}}async function eA(e,r,n,a,o,i){let l,s={};try{l=await eC(m,e,r,n,a,o,i,h,t)}catch(e){return a.forEach(t=>{s[t.route.id]={type:d.error,error:e}}),s}for(let[e,t]of Object.entries(l)){var u;if(e$((u=t).result)&&ei.has(u.result.status)){let r=t.result;s[e]={type:d.redirect,response:function(e,t,r,n,a,o){let i=e.headers.get("Location");if(E(i,"Redirects returned/thrown from loaders/actions must have a Location header"),!ed.test(i)){let l=n.slice(0,n.findIndex(e=>e.route.id===r)+1);i=em(new URL(t.url),l,a,!0,i,o),e.headers.set("Location",i)}return e}(r,n,e,o,p,g.v7_relativeSplatPath)}}else s[e]=await eD(t)}return s}async function eB(t,r,n,a,o){let i=t.matches,l=eA("loader",t,o,n,r,null),s=Promise.all(a.map(async r=>{if(!r.matches||!r.match||!r.controller)return Promise.resolve({[r.key]:{type:d.error,error:eF(404,{pathname:r.path})}});{let n=(await eA("loader",t,ek(e.history,r.path,r.controller.signal),[r.match],r.matches,r.key))[r.match.route.id];return{[r.key]:n}}})),u=await l,c=(await s).reduce((e,t)=>Object.assign(e,t),{});return await Promise.all([eJ(r,u,o.signal,i,t.loaderData),eK(r,c,a)]),{loaderResults:u,fetcherResults:c}}function eW(){W=!0,$.push(...tr()),G.forEach((e,t)=>{J.has(t)&&V.add(t),e2(t)})}function eq(e,t,r){void 0===r&&(r={}),M.fetchers.set(e,t),en({fetchers:new Map(M.fetchers)},{flushSync:!0===(r&&r.flushSync)})}function e1(e,t,r,n){void 0===n&&(n={});let a=eM(M.matches,t);e4(e),en({errors:{[a.route.id]:r},fetchers:new Map(M.fetchers)},{flushSync:!0===(n&&n.flushSync)})}function e7(e){return Q.set(e,(Q.get(e)||0)+1),Z.has(e)&&Z.delete(e),M.fetchers.get(e)||eu}function e4(e){let t=M.fetchers.get(e);J.has(e)&&!(t&&"loading"===t.state&&q.has(e))&&e2(e),G.delete(e),q.delete(e),X.delete(e),g.v7_fetcherPersist&&Z.delete(e),V.delete(e),M.fetchers.delete(e)}function e2(e){let t=J.get(e);t&&(t.abort(),J.delete(e))}function e5(e){for(let t of e){let e=e0(e7(t).data);M.fetchers.set(t,e)}}function e3(){let e=[],t=!1;for(let r of X){let n=M.fetchers.get(r);E(n,"Expected fetcher: "+r),"loading"===n.state&&(X.delete(r),e.push(r),t=!0)}return e5(e),t}function e6(e){let t=[];for(let[r,n]of q)if(n<e){let e=M.fetchers.get(r);E(e,"Expected fetcher: "+r),"loading"===e.state&&(e2(r),q.delete(r),t.push(r))}return e5(t),t.length>0}function e8(e){M.blockers.delete(e),et.delete(e)}function e9(e,t){let r=M.blockers.get(e)||ec;E("unblocked"===r.state&&"blocked"===t.state||"blocked"===r.state&&"blocked"===t.state||"blocked"===r.state&&"proceeding"===t.state||"blocked"===r.state&&"unblocked"===t.state||"proceeding"===r.state&&"unblocked"===t.state,"Invalid blocker state transition: "+r.state+" -> "+t.state);let n=new Map(M.blockers);n.set(e,t),en({blockers:n})}function te(e){let{currentLocation:t,nextLocation:r,historyAction:n}=e;if(0===et.size)return;et.size>1&&S(!1,"A router only supports one blocker at a time");let a=Array.from(et.entries()),[o,i]=a[a.length-1],l=M.blockers.get(o);if((!l||"proceeding"!==l.state)&&i({currentLocation:t,nextLocation:r,historyAction:n}))return o}function tt(e){let t=eF(404,{pathname:e}),{matches:n,route:a}=eO(r||f);return tr(),{notFoundMatches:n,route:a,error:t}}function tr(e){let t=[];return ee.forEach((r,n)=>{(!e||e(n))&&(r.cancel(),t.push(n),ee.delete(n))}),t}function tn(e,t){return C&&C(e,t.map(e=>T(e,M.loaderData)))||e.key}function ta(e,t){if(R){let r=R[tn(e,t)];if("number"==typeof r)return r}return null}function to(e,t,r){if(y){if(!e)return{active:!0,matches:A(t,r,p,!0)||[]};else if(Object.keys(e[0].params).length>0)return{active:!0,matches:A(t,r,p,!0)}}return{active:!1,matches:null}}async function ti(e,n,a,o){if(!y)return{type:"success",matches:e};let i=e;for(;;){let e=null==r,l=r||f,s=h;try{await y({signal:a,path:n,matches:i,fetcherKey:o,patch:(e,r)=>{a.aborted||eS(e,r,l,s,t)}})}catch(e){return{type:"error",error:e,partialMatches:i}}finally{e&&!a.aborted&&(f=[...f])}if(a.aborted)return{type:"aborted"};let u=_(l,n,p);if(u)return{type:"success",matches:u};let c=A(l,n,p,!0);if(!c||i.length===c.length&&i.every((e,t)=>e.route.id===c[t].route.id))return{type:"success",matches:null};i=c}}return a={get basename(){return p},get future(){return g},get state(){return M},get routes(){return f},get window(){return l},initialize:function(){if(w=e.history.listen(t=>{let{action:r,location:n,delta:a}=t;if(i){i(),i=void 0;return}S(0===et.size||null!=a,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let o=te({currentLocation:M.location,nextLocation:n,historyAction:r});if(o&&null!=a){let t=new Promise(e=>{i=e});e.history.go(-1*a),e9(o,{state:"blocked",location:n,proceed(){e9(o,{state:"proceeding",proceed:void 0,reset:void 0,location:n}),t.then(()=>e.history.go(a))},reset(){let e=new Map(M.blockers);e.set(o,ec),en({blockers:e})}});return}return ep(r,n)}),s){var t=l,r=I;try{let e=t.sessionStorage.getItem(ef);if(e){let t=JSON.parse(e);for(let[e,n]of Object.entries(t||{}))n&&Array.isArray(n)&&r.set(e,new Set(n||[]))}}catch(e){}let e=()=>(function(e,t){if(t.size>0){let r={};for(let[e,n]of t)r[e]=[...n];try{e.sessionStorage.setItem(ef,JSON.stringify(r))}catch(e){S(!1,"Failed to save applied view transitions in sessionStorage ("+e+").")}}})(l,I);l.addEventListener("pagehide",e),z=()=>l.removeEventListener("pagehide",e)}return M.initialized||ep(c.Pop,M.location,{initialHydration:!0}),a},subscribe:function(e){return b.add(e),()=>b.delete(e)},enableScrollRestoration:function(e,t,r){if(R=e,P=t,C=r||null,!D&&M.navigation===es){D=!0;let e=ta(M.location,M.matches);null!=e&&en({restoreScrollPosition:e})}return()=>{R=null,P=null,C=null}},navigate:eo,fetch:function(e,t,n,a){if(u)throw Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");e2(e);let o=!0===(a&&a.flushSync),i=r||f,l=em(M.location,M.matches,p,g.v7_prependBasename,n,g.v7_relativeSplatPath,t,null==a?void 0:a.relative),s=_(i,l,p),c=to(s,i,l);if(c.active&&c.matches&&(s=c.matches),!s)return void e1(e,t,eF(404,{pathname:l}),{flushSync:o});let{path:d,submission:h,error:m}=ev(g.v7_normalizeFormMethod,!0,l,a);if(m)return void e1(e,t,m,{flushSync:o});let v=eX(s,d),y=!0===(a&&a.preventScrollReset);h&&eV(h.formMethod)?eR(e,t,d,v,s,c.active,o,y,h):(G.set(e,{routeId:t,path:d}),eP(e,t,d,v,s,c.active,o,y,h))},revalidate:function(){if(eW(),en({revalidation:"loading"}),"submitting"!==M.navigation.state){if("idle"===M.navigation.state)return void ep(M.historyAction,M.location,{startUninterruptedRevalidation:!0});ep(O||M.historyAction,M.navigation.location,{overrideNavigation:M.navigation,enableViewTransition:!0===B})}},createHref:t=>e.history.createHref(t),encodeLocation:t=>e.history.encodeLocation(t),getFetcher:e7,deleteFetcher:function(e){let t=(Q.get(e)||0)-1;t<=0?(Q.delete(e),Z.add(e),g.v7_fetcherPersist||e4(e)):Q.set(e,t),en({fetchers:new Map(M.fetchers)})},dispose:function(){w&&w(),z&&z(),b.clear(),o&&o.abort(),M.fetchers.forEach((e,t)=>e4(t)),M.blockers.forEach((e,t)=>e8(t))},getBlocker:function(e,t){let r=M.blockers.get(e)||ec;return et.get(e)!==t&&et.set(e,t),r},deleteBlocker:e8,patchRoutes:function(e,n){let a=null==r;eS(e,n,r||f,h,t),a&&(f=[...f],en({}))},_internalFetchControllers:J,_internalActiveDeferreds:ee,_internalSetRoutes:function(e){r=k(e,t,void 0,h={})}}}function em(e,t,r,n,a,o,i,l){let s,u;if(i){for(let e of(s=[],t))if(s.push(e),e.route.id===i){u=e;break}}else s=t,u=t[t.length-1];let c=W(a||".",H(s,o),N(e.pathname,r)||e.pathname,"path"===l);if(null==a&&(c.search=e.search,c.hash=e.hash),(null==a||""===a||"."===a)&&u){let e=eq(c.search);if(u.route.index&&!e)c.search=c.search?c.search.replace(/^\?/,"?index&"):"?index";else if(!u.route.index&&e){let e=new URLSearchParams(c.search),t=e.getAll("index");e.delete("index"),t.filter(e=>e).forEach(t=>e.append("index",t));let r=e.toString();c.search=r?"?"+r:""}}return n&&"/"!==r&&(c.pathname="/"===c.pathname?r:$([r,c.pathname])),C(c)}function ev(e,t,r,n){var a;let o,i;if(!n||!(null!=n&&("formData"in n&&null!=n.formData||"body"in n&&void 0!==n.body)))return{path:r};if(n.formMethod&&(a=n.formMethod,!eo.has(a.toLowerCase())))return{path:r,error:eF(405,{method:n.formMethod})};let l=()=>({path:r,error:eF(400,{type:"invalid-body"})}),s=n.formMethod||"get",u=e?s.toUpperCase():s.toLowerCase(),c=eB(r);if(void 0!==n.body){if("text/plain"===n.formEncType){if(!eV(u))return l();let e="string"==typeof n.body?n.body:n.body instanceof FormData||n.body instanceof URLSearchParams?Array.from(n.body.entries()).reduce((e,t)=>{let[r,n]=t;return""+e+r+"="+n+"\n"},""):String(n.body);return{path:r,submission:{formMethod:u,formAction:c,formEncType:n.formEncType,formData:void 0,json:void 0,text:e}}}else if("application/json"===n.formEncType){if(!eV(u))return l();try{let e="string"==typeof n.body?JSON.parse(n.body):n.body;return{path:r,submission:{formMethod:u,formAction:c,formEncType:n.formEncType,formData:void 0,json:e,text:void 0}}}catch(e){return l()}}}if(E("function"==typeof FormData,"FormData is not available in this environment"),n.formData)o=e_(n.formData),i=n.formData;else if(n.body instanceof FormData)o=e_(n.body),i=n.body;else if(n.body instanceof URLSearchParams)i=eA(o=n.body);else if(null==n.body)o=new URLSearchParams,i=new FormData;else try{o=new URLSearchParams(n.body),i=eA(o)}catch(e){return l()}let d={formMethod:u,formAction:c,formEncType:n&&n.formEncType||"application/x-www-form-urlencoded",formData:i,json:void 0,text:void 0};if(eV(d.formMethod))return{path:r,submission:d};let h=P(r);return t&&h.search&&eq(h.search)&&o.append("index",""),h.search="?"+o,{path:C(h),submission:d}}function ey(e,t,r){void 0===r&&(r=!1);let n=e.findIndex(e=>e.route.id===t);return n>=0?e.slice(0,r?n+1:n):e}function eg(e,t,r,n,a,o,i,l,s,u,c,d,h,f,p,m){let y=m?ez(m[1])?m[1].error:m[1].data:void 0,g=e.createURL(t.location),w=e.createURL(a),b=r;o&&t.errors?b=ey(r,Object.keys(t.errors)[0],!0):m&&ez(m[1])&&(b=ey(r,m[0]));let E=m?m[1].statusCode:void 0,S=i&&E&&E>=400,R=b.filter((e,r)=>{var a,i,u;let c,d,{route:h}=e;if(h.lazy)return!0;if(null==h.loader)return!1;if(o)return ew(h,t.loaderData,t.errors);if(a=t.loaderData,i=t.matches[r],u=e,c=!i||u.route.id!==i.route.id,d=void 0===a[u.route.id],c||d||s.some(t=>t===e.route.id))return!0;let f=t.matches[r];return eE(e,v({currentUrl:g,currentParams:f.params,nextUrl:w,nextParams:e.params},n,{actionResult:y,actionStatus:E,defaultShouldRevalidate:!S&&(l||g.pathname+g.search===w.pathname+w.search||g.search!==w.search||eb(f,e))}))}),x=[];return d.forEach((e,a)=>{if(o||!r.some(t=>t.route.id===e.routeId)||c.has(a))return;let i=_(f,e.path,p);if(!i)return void x.push({key:a,routeId:e.routeId,path:e.path,matches:null,match:null,controller:null});let s=t.fetchers.get(a),d=eX(i,e.path),m=!1;h.has(a)?m=!1:u.has(a)?(u.delete(a),m=!0):m=s&&"idle"!==s.state&&void 0===s.data?l:eE(d,v({currentUrl:g,currentParams:t.matches[t.matches.length-1].params,nextUrl:w,nextParams:r[r.length-1].params},n,{actionResult:y,actionStatus:E,defaultShouldRevalidate:!S&&l})),m&&x.push({key:a,routeId:e.routeId,path:e.path,matches:i,match:d,controller:new AbortController})}),[R,x]}function ew(e,t,r){if(e.lazy)return!0;if(!e.loader)return!1;let n=null!=t&&void 0!==t[e.id],a=null!=r&&void 0!==r[e.id];return(!!n||!a)&&("function"==typeof e.loader&&!0===e.loader.hydrate||!n&&!a)}function eb(e,t){let r=e.route.path;return e.pathname!==t.pathname||null!=r&&r.endsWith("*")&&e.params["*"]!==t.params["*"]}function eE(e,t){if(e.route.shouldRevalidate){let r=e.route.shouldRevalidate(t);if("boolean"==typeof r)return r}return t.defaultShouldRevalidate}function eS(e,t,r,n,a){var o;let i;if(e){let t=n[e];E(t,"No route found to patch children into: routeId = "+e),t.children||(t.children=[]),i=t.children}else i=r;let l=k(t.filter(e=>!i.some(t=>(function e(t,r){return"id"in t&&"id"in r&&t.id===r.id||t.index===r.index&&t.path===r.path&&t.caseSensitive===r.caseSensitive&&((!t.children||0===t.children.length)&&(!r.children||0===r.children.length)||t.children.every((t,n)=>{var a;return null==(a=r.children)?void 0:a.some(r=>e(t,r))}))})(e,t))),a,[e||"_","patch",String((null==(o=i)?void 0:o.length)||"0")],n);i.push(...l)}async function eR(e,t,r){if(!e.lazy)return;let n=await e.lazy();if(!e.lazy)return;let a=r[e.id];E(a,"No route found in manifest");let o={};for(let e in n){let t=void 0!==a[e]&&"hasErrorBoundary"!==e;S(!t,'Route "'+a.id+'" has a static property "'+e+'" defined but its lazy function is also returning a value for this property. The lazy route property "'+e+'" will be ignored.'),t||L.has(e)||(o[e]=n[e])}Object.assign(a,o),Object.assign(a,v({},t(a),{lazy:void 0}))}async function ex(e){let{matches:t}=e,r=t.filter(e=>e.shouldLoad);return(await Promise.all(r.map(e=>e.resolve()))).reduce((e,t,n)=>Object.assign(e,{[r[n].route.id]:t}),{})}async function eC(e,t,r,n,a,o,i,l,s,u){let c=o.map(e=>e.route.lazy?eR(e.route,s,l):void 0),h=o.map((e,r)=>{let o=c[r],i=a.some(t=>t.route.id===e.route.id),l=async r=>(r&&"GET"===n.method&&(e.route.lazy||e.route.loader)&&(i=!0),i?eP(t,n,e,o,r,u):Promise.resolve({type:d.data,result:void 0}));return v({},e,{shouldLoad:i,resolve:l})}),f=await e({matches:h,request:n,params:o[0].params,fetcherKey:i,context:u});try{await Promise.all(c)}catch(e){}return f}async function eP(e,t,r,n,a,o){let i,l,s=n=>{let i,s=new Promise((e,t)=>i=t);l=()=>i(),t.signal.addEventListener("abort",l);let u=a=>"function"!=typeof n?Promise.reject(Error("You cannot call the handler for a route which defines a boolean "+('"'+e+'" [routeId: ')+r.route.id+"]")):n({request:t,params:r.params,context:o},...void 0!==a?[a]:[]);return Promise.race([(async()=>{try{let e=await (a?a(e=>u(e)):u());return{type:"data",result:e}}catch(e){return{type:"error",result:e}}})(),s])};try{let a=r.route[e];if(n)if(a){let e,[t]=await Promise.all([s(a).catch(t=>{e=t}),n]);if(void 0!==e)throw e;i=t}else if(await n,a=r.route[e])i=await s(a);else{if("action"!==e)return{type:d.data,result:void 0};let n=new URL(t.url),a=n.pathname+n.search;throw eF(405,{method:t.method,pathname:a,routeId:r.route.id})}else if(a)i=await s(a);else{let e=new URL(t.url),r=e.pathname+e.search;throw eF(404,{pathname:r})}E(void 0!==i.result,"You defined "+("action"===e?"an action":"a loader")+" for route "+('"'+r.route.id+"\" but didn't return anything from your `")+e+"` function. Please return a value or `null`.")}catch(e){return{type:d.error,result:e}}finally{l&&t.signal.removeEventListener("abort",l)}return i}async function eD(e){var t,r,n,a,o,i,l,s,u;let{result:c,type:h}=e;if(e$(c)){let e;try{let t=c.headers.get("Content-Type");e=t&&/\bapplication\/json\b/.test(t)?null==c.body?null:await c.json():await c.text()}catch(e){return{type:d.error,error:e}}return h===d.error?{type:d.error,error:new et(c.status,c.statusText,e),statusCode:c.status,headers:c.headers}:{type:d.data,data:e,statusCode:c.status,headers:c.headers}}if(h===d.error)return eW(c)?c.data instanceof Error?{type:d.error,error:c.data,statusCode:null==(n=c.init)?void 0:n.status,headers:null!=(a=c.init)&&a.headers?new Headers(c.init.headers):void 0}:{type:d.error,error:new et((null==(t=c.init)?void 0:t.status)||500,void 0,c.data),statusCode:er(c)?c.status:void 0,headers:null!=(r=c.init)&&r.headers?new Headers(c.init.headers):void 0}:{type:d.error,error:c,statusCode:er(c)?c.status:void 0};return(u=c)&&"object"==typeof u&&"object"==typeof u.data&&"function"==typeof u.subscribe&&"function"==typeof u.cancel&&"function"==typeof u.resolveData?{type:d.deferred,deferredData:c,statusCode:null==(o=c.init)?void 0:o.status,headers:(null==(i=c.init)?void 0:i.headers)&&new Headers(c.init.headers)}:eW(c)?{type:d.data,data:c.data,statusCode:null==(l=c.init)?void 0:l.status,headers:null!=(s=c.init)&&s.headers?new Headers(c.init.headers):void 0}:{type:d.data,data:c}}function eL(e,t,r){if(ed.test(e)){let n=new URL(e.startsWith("//")?t.protocol+e:e),a=null!=N(n.pathname,r);if(n.origin===t.origin&&a)return n.pathname+n.search+n.hash}return e}function ek(e,t,r,n){let a=e.createURL(eB(t)).toString(),o={signal:r};if(n&&eV(n.formMethod)){let{formMethod:e,formEncType:t}=n;o.method=e.toUpperCase(),"application/json"===t?(o.headers=new Headers({"Content-Type":t}),o.body=JSON.stringify(n.json)):"text/plain"===t?o.body=n.text:"application/x-www-form-urlencoded"===t&&n.formData?o.body=e_(n.formData):o.body=n.formData}return new Request(a,o)}function e_(e){let t=new URLSearchParams;for(let[r,n]of e.entries())t.append(r,"string"==typeof n?n:n.name);return t}function eA(e){let t=new FormData;for(let[r,n]of e.entries())t.append(r,n);return t}function eT(e,t,r,n,a,o,i){let l,s,u,c,d,h,{loaderData:f,errors:p}=(s={},u=null,c=!1,d={},h=n&&ez(n[1])?n[1].error:void 0,t.forEach(e=>{if(!(e.route.id in r))return;let n=e.route.id,a=r[n];if(E(!eH(a),"Cannot handle redirect results in processLoaderData"),ez(a)){let e=a.error;void 0!==h&&(e=h,h=void 0),u=u||{},1;{let r=eM(t,n);null==u[r.route.id]&&(u[r.route.id]=e)}s[n]=void 0,c||(c=!0,l=er(a.error)?a.error.status:500),a.headers&&(d[n]=a.headers)}else eI(a)?(i.set(n,a.deferredData),s[n]=a.deferredData.data,null==a.statusCode||200===a.statusCode||c||(l=a.statusCode)):(s[n]=a.data,a.statusCode&&200!==a.statusCode&&!c&&(l=a.statusCode)),a.headers&&(d[n]=a.headers)}),void 0!==h&&n&&(u={[n[0]]:h},s[n[0]]=void 0),{loaderData:s,errors:u,statusCode:l||200,loaderHeaders:d});return a.forEach(t=>{let{key:r,match:n,controller:a}=t,i=o[r];if(E(i,"Did not find corresponding fetcher result"),!a||!a.signal.aborted)if(ez(i)){let t=eM(e.matches,null==n?void 0:n.route.id);p&&p[t.route.id]||(p=v({},p,{[t.route.id]:i.error})),e.fetchers.delete(r)}else if(eH(i))E(!1,"Unhandled fetcher revalidation redirect");else if(eI(i))E(!1,"Unhandled fetcher deferred data");else{let t=e0(i.data);e.fetchers.set(r,t)}}),{loaderData:f,errors:p}}function eU(e,t,r,n){let a=v({},t);for(let o of r){let r=o.route.id;if(t.hasOwnProperty(r)?void 0!==t[r]&&(a[r]=t[r]):void 0!==e[r]&&o.route.loader&&(a[r]=e[r]),n&&n.hasOwnProperty(r))break}return a}function ej(e){return e?ez(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function eM(e,t){return(t?e.slice(0,e.findIndex(e=>e.route.id===t)+1):[...e]).reverse().find(e=>!0===e.route.hasErrorBoundary)||e[0]}function eO(e){let t=1===e.length?e[0]:e.find(e=>e.index||!e.path||"/"===e.path)||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function eF(e,t){let{pathname:r,routeId:n,method:a,type:o,message:i}=void 0===t?{}:t,l="Unknown Server Error",s="Unknown @remix-run/router error";return 400===e?(l="Bad Request",a&&r&&n?s="You made a "+a+' request to "'+r+'" but did not provide a `loader` for route "'+n+'", so there is no way to handle the request.':"defer-action"===o?s="defer() is not supported in actions":"invalid-body"===o&&(s="Unable to encode submission body")):403===e?(l="Forbidden",s='Route "'+n+'" does not match URL "'+r+'"'):404===e?(l="Not Found",s='No route matches URL "'+r+'"'):405===e&&(l="Method Not Allowed",a&&r&&n?s="You made a "+a.toUpperCase()+' request to "'+r+'" but did not provide an `action` for route "'+n+'", so there is no way to handle the request.':a&&(s='Invalid request method "'+a.toUpperCase()+'"')),new et(e||500,l,Error(s),!0)}function eN(e){let t=Object.entries(e);for(let e=t.length-1;e>=0;e--){let[r,n]=t[e];if(eH(n))return{key:r,result:n}}}function eB(e){let t="string"==typeof e?P(e):e;return C(v({},t,{hash:""}))}function eI(e){return e.type===d.deferred}function ez(e){return e.type===d.error}function eH(e){return(e&&e.type)===d.redirect}function eW(e){return"object"==typeof e&&null!=e&&"type"in e&&"data"in e&&"init"in e&&"DataWithResponseInit"===e.type}function e$(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"object"==typeof e.headers&&void 0!==e.body}function eV(e){return ea.has(e.toLowerCase())}async function eJ(e,t,r,n,a){let o=Object.entries(t);for(let i=0;i<o.length;i++){let[l,s]=o[i],u=e.find(e=>(null==e?void 0:e.route.id)===l);if(!u)continue;let c=n.find(e=>e.route.id===u.route.id),d=null!=c&&!eb(c,u)&&(a&&a[u.route.id])!==void 0;eI(s)&&d&&await eY(s,r,!1).then(e=>{e&&(t[l]=e)})}}async function eK(e,t,r){for(let n=0;n<r.length;n++){let{key:a,routeId:o,controller:i}=r[n],l=t[a];e.find(e=>(null==e?void 0:e.route.id)===o)&&eI(l)&&(E(i,"Expected an AbortController for revalidating fetcher deferred result"),await eY(l,i.signal,!0).then(e=>{e&&(t[a]=e)}))}}async function eY(e,t,r){if(void 0===r&&(r=!1),!await e.deferredData.resolveData(t)){if(r)try{return{type:d.data,data:e.deferredData.unwrappedData}}catch(e){return{type:d.error,error:e}}return{type:d.data,data:e.deferredData.data}}}function eq(e){return new URLSearchParams(e).getAll("index").some(e=>""===e)}function eX(e,t){let r="string"==typeof t?P(t).search:t.search;if(e[e.length-1].route.index&&eq(r||""))return e[e.length-1];let n=z(e);return n[n.length-1]}function eG(e){let{formMethod:t,formAction:r,formEncType:n,text:a,formData:o,json:i}=e;if(t&&r&&n){if(null!=a)return{formMethod:t,formAction:r,formEncType:n,formData:void 0,json:void 0,text:a};else if(null!=o)return{formMethod:t,formAction:r,formEncType:n,formData:o,json:void 0,text:void 0};else if(void 0!==i)return{formMethod:t,formAction:r,formEncType:n,formData:void 0,json:i,text:void 0}}}function eQ(e,t){return t?{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}:{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function eZ(e,t){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function e0(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function e1(){return(e1=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}Symbol("deferred");let e7=p.createContext(null),e4=p.createContext(null),e2=p.createContext(null),e5=p.createContext(null),e3=p.createContext(null),e6=p.createContext({outlet:null,matches:[],isDataRoute:!1}),e8=p.createContext(null);function e9(e,t){let{relative:r}=void 0===t?{}:t;te()||E(!1);let{basename:n,navigator:a}=p.useContext(e5),{hash:o,pathname:i,search:l}=tc(e,{relative:r}),s=i;return"/"!==n&&(s="/"===i?n:$([n,i])),a.createHref({pathname:s,search:l,hash:o})}function te(){return null!=p.useContext(e3)}function tt(){return te()||E(!1),p.useContext(e3).location}function tr(){return p.useContext(e3).navigationType}function tn(e){te()||E(!1);let{pathname:t}=tt();return p.useMemo(()=>O(e,F(t)),[t,e])}function ta(e){p.useContext(e5).static||p.useLayoutEffect(e)}function to(){let{isDataRoute:e}=p.useContext(e6);return e?function(){let{router:e}=tw(ty.UseNavigateStable),t=tE(tg.UseNavigateStable),r=p.useRef(!1);return ta(()=>{r.current=!0}),p.useCallback(function(n,a){void 0===a&&(a={}),r.current&&("number"==typeof n?e.navigate(n):e.navigate(n,e1({fromRouteId:t},a)))},[e,t])}():function(){te()||E(!1);let e=p.useContext(e7),{basename:t,future:r,navigator:n}=p.useContext(e5),{matches:a}=p.useContext(e6),{pathname:o}=tt(),i=JSON.stringify(H(a,r.v7_relativeSplatPath)),l=p.useRef(!1);return ta(()=>{l.current=!0}),p.useCallback(function(r,a){if(void 0===a&&(a={}),!l.current)return;if("number"==typeof r)return void n.go(r);let s=W(r,JSON.parse(i),o,"path"===a.relative);null==e&&"/"!==t&&(s.pathname="/"===s.pathname?t:$([t,s.pathname])),(a.replace?n.replace:n.push)(s,a.state,a)},[t,n,i,o,e])}()}let ti=p.createContext(null);function tl(){return p.useContext(ti)}function ts(e){let t=p.useContext(e6).outlet;return t?p.createElement(ti.Provider,{value:e},t):t}function tu(){let{matches:e}=p.useContext(e6),t=e[e.length-1];return t?t.params:{}}function tc(e,t){let{relative:r}=void 0===t?{}:t,{future:n}=p.useContext(e5),{matches:a}=p.useContext(e6),{pathname:o}=tt(),i=JSON.stringify(H(a,n.v7_relativeSplatPath));return p.useMemo(()=>W(e,JSON.parse(i),o,"path"===r),[e,i,o,r])}function td(e,t){return th(e,t)}function th(e,t,r,n){let a;te()||E(!1);let{navigator:o,static:i}=p.useContext(e5),{matches:l}=p.useContext(e6),s=l[l.length-1],u=s?s.params:{};s&&s.pathname;let d=s?s.pathnameBase:"/";s&&s.route;let h=tt();if(t){var f;let e="string"==typeof t?P(t):t;"/"===d||(null==(f=e.pathname)?void 0:f.startsWith(d))||E(!1),a=e}else a=h;let m=a.pathname||"/",v=m;if("/"!==d){let e=d.replace(/^\//,"").split("/");v="/"+m.replace(/^\//,"").split("/").slice(e.length).join("/")}let y=!i&&r&&r.matches&&r.matches.length>0?r.matches:_(e,{pathname:v}),g=tv(y&&y.map(e=>Object.assign({},e,{params:Object.assign({},u,e.params),pathname:$([d,o.encodeLocation?o.encodeLocation(e.pathname).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?d:$([d,o.encodeLocation?o.encodeLocation(e.pathnameBase).pathname:e.pathnameBase])})),l,r,n);return t&&g?p.createElement(e3.Provider,{value:{location:e1({pathname:"/",search:"",hash:"",state:null,key:"default"},a),navigationType:c.Pop}},g):g}let tf=p.createElement(function(){let e=tk(),t=er(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null;return p.createElement(p.Fragment,null,p.createElement("h2",null,"Unexpected Application Error!"),p.createElement("h3",{style:{fontStyle:"italic"}},t),r?p.createElement("pre",{style:{padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"}},r):null,null)},null);class tp extends p.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||"idle"!==t.revalidation&&"idle"===e.revalidation?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:void 0!==e.error?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){console.error("React Router caught the following error during render",e,t)}render(){return void 0!==this.state.error?p.createElement(e6.Provider,{value:this.props.routeContext},p.createElement(e8.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function tm(e){let{routeContext:t,match:r,children:n}=e,a=p.useContext(e7);return a&&a.static&&a.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(a.staticContext._deepestRenderedBoundaryId=r.route.id),p.createElement(e6.Provider,{value:t},n)}function tv(e,t,r,n){var a,o;if(void 0===t&&(t=[]),void 0===r&&(r=null),void 0===n&&(n=null),null==e){if(!r)return null;if(r.errors)e=r.matches;else{if(null==(o=n)||!o.v7_partialHydration||0!==t.length||r.initialized||!(r.matches.length>0))return null;e=r.matches}}let i=e,l=null==(a=r)?void 0:a.errors;if(null!=l){let e=i.findIndex(e=>e.route.id&&(null==l?void 0:l[e.route.id])!==void 0);e>=0||E(!1),i=i.slice(0,Math.min(i.length,e+1))}let s=!1,u=-1;if(r&&n&&n.v7_partialHydration)for(let e=0;e<i.length;e++){let t=i[e];if((t.route.HydrateFallback||t.route.hydrateFallbackElement)&&(u=e),t.route.id){let{loaderData:e,errors:n}=r,a=t.route.loader&&void 0===e[t.route.id]&&(!n||void 0===n[t.route.id]);if(t.route.lazy||a){s=!0,i=u>=0?i.slice(0,u+1):[i[0]];break}}}return i.reduceRight((e,n,a)=>{var o;let c,d=!1,h=null,f=null;r&&(c=l&&n.route.id?l[n.route.id]:void 0,h=n.route.errorElement||tf,s&&(u<0&&0===a?(o="route-fallback",tj[o]||(tj[o]=!0),d=!0,f=null):u===a&&(d=!0,f=n.route.hydrateFallbackElement||null)));let m=t.concat(i.slice(0,a+1)),v=()=>{let t;return t=c?h:d?f:n.route.Component?p.createElement(n.route.Component,null):n.route.element?n.route.element:e,p.createElement(tm,{match:n,routeContext:{outlet:e,matches:m,isDataRoute:null!=r},children:t})};return r&&(n.route.ErrorBoundary||n.route.errorElement||0===a)?p.createElement(tp,{location:r.location,revalidation:r.revalidation,component:h,error:c,children:v(),routeContext:{outlet:null,matches:m,isDataRoute:!0}}):v()},null)}var ty=((o=ty||{}).UseBlocker="useBlocker",o.UseRevalidator="useRevalidator",o.UseNavigateStable="useNavigate",o),tg=((i=tg||{}).UseBlocker="useBlocker",i.UseLoaderData="useLoaderData",i.UseActionData="useActionData",i.UseRouteError="useRouteError",i.UseNavigation="useNavigation",i.UseRouteLoaderData="useRouteLoaderData",i.UseMatches="useMatches",i.UseRevalidator="useRevalidator",i.UseNavigateStable="useNavigate",i.UseRouteId="useRouteId",i);function tw(e){let t=p.useContext(e7);return t||E(!1),t}function tb(e){let t=p.useContext(e4);return t||E(!1),t}function tE(e){let t,r=((t=p.useContext(e6))||E(!1),t),n=r.matches[r.matches.length-1];return n.route.id||E(!1),n.route.id}function tS(){return tE(tg.UseRouteId)}function tR(){return tb(tg.UseNavigation).navigation}function tx(){let e=tw(ty.UseRevalidator),t=tb(tg.UseRevalidator);return p.useMemo(()=>({revalidate:e.router.revalidate,state:t.revalidation}),[e.router.revalidate,t.revalidation])}function tC(){let{matches:e,loaderData:t}=tb(tg.UseMatches);return p.useMemo(()=>e.map(e=>T(e,t)),[e,t])}function tP(){let e=tb(tg.UseLoaderData),t=tE(tg.UseLoaderData);return e.errors&&null!=e.errors[t]?void console.error("You cannot `useLoaderData` in an errorElement (routeId: "+t+")"):e.loaderData[t]}function tD(e){return tb(tg.UseRouteLoaderData).loaderData[e]}function tL(){let e=tb(tg.UseActionData),t=tE(tg.UseLoaderData);return e.actionData?e.actionData[t]:void 0}function tk(){var e;let t=p.useContext(e8),r=tb(tg.UseRouteError),n=tE(tg.UseRouteError);return void 0!==t?t:null==(e=r.errors)?void 0:e[n]}function t_(){let e=p.useContext(e2);return null==e?void 0:e._data}function tA(){let e=p.useContext(e2);return null==e?void 0:e._error}let tT=0;function tU(e){let{router:t,basename:r}=tw(ty.UseBlocker),n=tb(tg.UseBlocker),[a,o]=p.useState(""),i=p.useCallback(t=>{if("function"!=typeof e)return!!e;if("/"===r)return e(t);let{currentLocation:n,nextLocation:a,historyAction:o}=t;return e({currentLocation:e1({},n,{pathname:N(n.pathname,r)||n.pathname}),nextLocation:e1({},a,{pathname:N(a.pathname,r)||a.pathname}),historyAction:o})},[r,e]);return p.useEffect(()=>{let e=String(++tT);return o(e),()=>t.deleteBlocker(e)},[t]),p.useEffect(()=>{""!==a&&t.getBlocker(a,i)},[t,a,i]),a&&n.blockers.has(a)?n.blockers.get(a):ec}let tj={},tM=(e,t,r)=>{};function tO(e,t){(null==e?void 0:e.v7_startTransition)===void 0&&tM("v7_startTransition","React Router will begin wrapping state updates in `React.startTransition` in v7","https://reactrouter.com/v6/upgrading/future#v7_starttransition"),(null==e?void 0:e.v7_relativeSplatPath)!==void 0||t&&t.v7_relativeSplatPath||tM("v7_relativeSplatPath","Relative route resolution within Splat routes is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_relativesplatpath"),t&&(void 0===t.v7_fetcherPersist&&tM("v7_fetcherPersist","The persistence behavior of fetchers is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_fetcherpersist"),void 0===t.v7_normalizeFormMethod&&tM("v7_normalizeFormMethod","Casing of `formMethod` fields is being normalized to uppercase in v7","https://reactrouter.com/v6/upgrading/future#v7_normalizeformmethod"),void 0===t.v7_partialHydration&&tM("v7_partialHydration","`RouterProvider` hydration behavior is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_partialhydration"),void 0===t.v7_skipActionErrorRevalidation&&tM("v7_skipActionErrorRevalidation","The revalidation behavior after 4xx/5xx `action` responses is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_skipactionerrorrevalidation"))}let tF=p.startTransition;function tN(e){let{basename:t,children:r,initialEntries:n,initialIndex:a,future:o}=e,i=p.useRef();null==i.current&&(i.current=g({initialEntries:n,initialIndex:a,v5Compat:!0}));let l=i.current,[s,u]=p.useState({action:l.action,location:l.location}),{v7_startTransition:c}=o||{},d=p.useCallback(e=>{c&&tF?tF(()=>u(e)):u(e)},[u,c]);return p.useLayoutEffect(()=>l.listen(d),[l,d]),p.useEffect(()=>tO(o),[o]),p.createElement(tH,{basename:t,children:r,location:s.location,navigationType:s.action,navigator:l,future:o})}function tB(e){let{to:t,replace:r,state:n,relative:a}=e;te()||E(!1);let{future:o,static:i}=p.useContext(e5),{matches:l}=p.useContext(e6),{pathname:s}=tt(),u=to(),c=JSON.stringify(W(t,H(l,o.v7_relativeSplatPath),s,"path"===a));return p.useEffect(()=>u(JSON.parse(c),{replace:r,state:n,relative:a}),[u,c,a,r,n]),null}function tI(e){return ts(e.context)}function tz(e){E(!1)}function tH(e){let{basename:t="/",children:r=null,location:n,navigationType:a=c.Pop,navigator:o,static:i=!1,future:l}=e;te()&&E(!1);let s=t.replace(/^\/*/,"/"),u=p.useMemo(()=>({basename:s,navigator:o,static:i,future:e1({v7_relativeSplatPath:!1},l)}),[s,l,o,i]);"string"==typeof n&&(n=P(n));let{pathname:d="/",search:h="",hash:f="",state:m=null,key:v="default"}=n,y=p.useMemo(()=>{let e=N(d,s);return null==e?null:{location:{pathname:e,search:h,hash:f,state:m,key:v},navigationType:a}},[s,d,h,f,m,v,a]);return null==y?null:p.createElement(e5.Provider,{value:u},p.createElement(e3.Provider,{children:r,value:y}))}function tW(e){let{children:t,location:r}=e;return th(tq(t),r)}function t$(e){let{children:t,errorElement:r,resolve:n}=e;return p.createElement(tK,{resolve:n,errorElement:r},p.createElement(tY,null,t))}var tV=((l=tV||{})[l.pending=0]="pending",l[l.success=1]="success",l[l.error=2]="error",l);let tJ=new Promise(()=>{});class tK extends p.Component{constructor(e){super(e),this.state={error:null}}static getDerivedStateFromError(e){return{error:e}}componentDidCatch(e,t){console.error("<Await> caught the following error during render",e,t)}render(){let{children:e,errorElement:t,resolve:r}=this.props,n=null,a=tV.pending;if(r instanceof Promise)if(this.state.error){a=tV.error;let e=this.state.error;Object.defineProperty(n=Promise.reject().catch(()=>{}),"_tracked",{get:()=>!0}),Object.defineProperty(n,"_error",{get:()=>e})}else r._tracked?a="_error"in(n=r)?tV.error:"_data"in n?tV.success:tV.pending:(a=tV.pending,Object.defineProperty(r,"_tracked",{get:()=>!0}),n=r.then(e=>Object.defineProperty(r,"_data",{get:()=>e}),e=>Object.defineProperty(r,"_error",{get:()=>e})));else a=tV.success,Object.defineProperty(n=Promise.resolve(),"_tracked",{get:()=>!0}),Object.defineProperty(n,"_data",{get:()=>r});if(a===tV.error&&n._error instanceof q)throw tJ;if(a===tV.error&&!t)throw n._error;if(a===tV.error)return p.createElement(e2.Provider,{value:n,children:t});if(a===tV.success)return p.createElement(e2.Provider,{value:n,children:e});throw n}}function tY(e){let{children:t}=e,r=t_(),n="function"==typeof t?t(r):t;return p.createElement(p.Fragment,null,n)}function tq(e,t){void 0===t&&(t=[]);let r=[];return p.Children.forEach(e,(e,n)=>{if(!p.isValidElement(e))return;let a=[...t,n];if(e.type===p.Fragment)return void r.push.apply(r,tq(e.props.children,a));e.type!==tz&&E(!1),e.props.index&&e.props.children&&E(!1);let o={id:e.props.id||a.join("-"),caseSensitive:e.props.caseSensitive,element:e.props.element,Component:e.props.Component,index:e.props.index,path:e.props.path,loader:e.props.loader,action:e.props.action,errorElement:e.props.errorElement,ErrorBoundary:e.props.ErrorBoundary,hasErrorBoundary:null!=e.props.ErrorBoundary||null!=e.props.errorElement,shouldRevalidate:e.props.shouldRevalidate,handle:e.props.handle,lazy:e.props.lazy};e.props.children&&(o.children=tq(e.props.children,a)),r.push(o)}),r}function tX(e){return tv(e)}function tG(e){let t={hasErrorBoundary:null!=e.ErrorBoundary||null!=e.errorElement};return e.Component&&Object.assign(t,{element:p.createElement(e.Component),Component:void 0}),e.HydrateFallback&&Object.assign(t,{hydrateFallbackElement:p.createElement(e.HydrateFallback),HydrateFallback:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:p.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}function tQ(e,t){return ep({basename:null==t?void 0:t.basename,future:e1({},null==t?void 0:t.future,{v7_prependBasename:!0}),history:g({initialEntries:null==t?void 0:t.initialEntries,initialIndex:null==t?void 0:t.initialIndex}),hydrationData:null==t?void 0:t.hydrationData,routes:e,mapRouteProperties:tG,dataStrategy:null==t?void 0:t.dataStrategy,patchRoutesOnNavigation:null==t?void 0:t.patchRoutesOnNavigation}).initialize()}function tZ(){return(tZ=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function t0(e,t){if(null==e)return{};var r,n,a={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(a[r]=e[r]);return a}let t1="application/x-www-form-urlencoded";function t7(e){return null!=e&&"string"==typeof e.tagName}function t4(e){return void 0===e&&(e=""),new URLSearchParams("string"==typeof e||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,r)=>{let n=e[r];return t.concat(Array.isArray(n)?n.map(e=>[r,e]):[[r,n]])},[]))}let t2=null,t5=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function t3(e){return null==e||t5.has(e)?e:null}let t6=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],t8=["aria-current","caseSensitive","className","end","style","to","viewTransition","children"],t9=["fetcherKey","navigate","reloadDocument","replace","state","method","action","onSubmit","relative","preventScrollReset","viewTransition"];try{window.__reactRouterVersion="6"}catch(e){}function re(e,t){return ep({basename:null==t?void 0:t.basename,future:tZ({},null==t?void 0:t.future,{v7_prependBasename:!0}),history:w({window:null==t?void 0:t.window}),hydrationData:(null==t?void 0:t.hydrationData)||rr(),routes:e,mapRouteProperties:tG,dataStrategy:null==t?void 0:t.dataStrategy,patchRoutesOnNavigation:null==t?void 0:t.patchRoutesOnNavigation,window:null==t?void 0:t.window}).initialize()}function rt(e,t){return ep({basename:null==t?void 0:t.basename,future:tZ({},null==t?void 0:t.future,{v7_prependBasename:!0}),history:b({window:null==t?void 0:t.window}),hydrationData:(null==t?void 0:t.hydrationData)||rr(),routes:e,mapRouteProperties:tG,dataStrategy:null==t?void 0:t.dataStrategy,patchRoutesOnNavigation:null==t?void 0:t.patchRoutesOnNavigation,window:null==t?void 0:t.window}).initialize()}function rr(){var e;let t=null==(e=window)?void 0:e.__staticRouterHydrationData;return t&&t.errors&&(t=tZ({},t,{errors:function(e){if(!e)return null;let t=Object.entries(e),r={};for(let[e,n]of t)if(n&&"RouteErrorResponse"===n.__type)r[e]=new et(n.status,n.statusText,n.data,!0===n.internal);else if(n&&"Error"===n.__type){if(n.__subType){let t=window[n.__subType];if("function"==typeof t)try{let a=new t(n.message);a.stack="",r[e]=a}catch(e){}}if(null==r[e]){let t=Error(n.message);t.stack="",r[e]=t}}else r[e]=n;return r}(t.errors)})),t}let rn=p.createContext({isTransitioning:!1}),ra=p.createContext(new Map),ro=p.startTransition,ri=m.flushSync,rl=p.useId;function rs(e){ri?ri(e):e()}class ru{constructor(){this.status="pending",this.promise=new Promise((e,t)=>{this.resolve=t=>{"pending"===this.status&&(this.status="resolved",e(t))},this.reject=e=>{"pending"===this.status&&(this.status="rejected",t(e))}})}}function rc(e){let{fallbackElement:t,router:r,future:n}=e,[a,o]=p.useState(r.state),[i,l]=p.useState(),[s,u]=p.useState({isTransitioning:!1}),[c,d]=p.useState(),[h,f]=p.useState(),[m,v]=p.useState(),y=p.useRef(new Map),{v7_startTransition:g}=n||{},w=p.useCallback(e=>{if(g)ro?ro(e):e();else e()},[g]),b=p.useCallback((e,t)=>{let{deletedFetchers:n,flushSync:a,viewTransitionOpts:i}=t;e.fetchers.forEach((e,t)=>{void 0!==e.data&&y.current.set(t,e.data)}),n.forEach(e=>y.current.delete(e));let s=null==r.window||null==r.window.document||"function"!=typeof r.window.document.startViewTransition;if(!i||s)return void(a?rs(()=>o(e)):w(()=>o(e)));if(a){rs(()=>{h&&(c&&c.resolve(),h.skipTransition()),u({isTransitioning:!0,flushSync:!0,currentLocation:i.currentLocation,nextLocation:i.nextLocation})});let t=r.window.document.startViewTransition(()=>{rs(()=>o(e))});t.finished.finally(()=>{rs(()=>{d(void 0),f(void 0),l(void 0),u({isTransitioning:!1})})}),rs(()=>f(t));return}h?(c&&c.resolve(),h.skipTransition(),v({state:e,currentLocation:i.currentLocation,nextLocation:i.nextLocation})):(l(e),u({isTransitioning:!0,flushSync:!1,currentLocation:i.currentLocation,nextLocation:i.nextLocation}))},[r.window,h,c,y,w]);p.useLayoutEffect(()=>r.subscribe(b),[r,b]),p.useEffect(()=>{s.isTransitioning&&!s.flushSync&&d(new ru)},[s]),p.useEffect(()=>{if(c&&i&&r.window){let e=c.promise,t=r.window.document.startViewTransition(async()=>{w(()=>o(i)),await e});t.finished.finally(()=>{d(void 0),f(void 0),l(void 0),u({isTransitioning:!1})}),f(t)}},[w,i,c,r.window]),p.useEffect(()=>{c&&i&&a.location.key===i.location.key&&c.resolve()},[c,h,a.location,i]),p.useEffect(()=>{!s.isTransitioning&&m&&(l(m.state),u({isTransitioning:!0,flushSync:!1,currentLocation:m.currentLocation,nextLocation:m.nextLocation}),v(void 0))},[s.isTransitioning,m]),p.useEffect(()=>{},[]);let E=p.useMemo(()=>({createHref:r.createHref,encodeLocation:r.encodeLocation,go:e=>r.navigate(e),push:(e,t,n)=>r.navigate(e,{state:t,preventScrollReset:null==n?void 0:n.preventScrollReset}),replace:(e,t,n)=>r.navigate(e,{replace:!0,state:t,preventScrollReset:null==n?void 0:n.preventScrollReset})}),[r]),S=r.basename||"/",R=p.useMemo(()=>({router:r,navigator:E,static:!1,basename:S}),[r,E,S]),x=p.useMemo(()=>({v7_relativeSplatPath:r.future.v7_relativeSplatPath}),[r.future.v7_relativeSplatPath]);return p.useEffect(()=>tO(n,r.future),[n,r.future]),p.createElement(p.Fragment,null,p.createElement(e7.Provider,{value:R},p.createElement(e4.Provider,{value:a},p.createElement(ra.Provider,{value:y.current},p.createElement(rn.Provider,{value:s},p.createElement(tH,{basename:S,location:a.location,navigationType:a.historyAction,navigator:E,future:x},a.initialized||r.future.v7_partialHydration?p.createElement(rd,{routes:r.routes,future:r.future,state:a}):t))))),null)}let rd=p.memo(function(e){let{routes:t,future:r,state:n}=e;return th(t,void 0,n,r)});function rh(e){let{basename:t,children:r,future:n,window:a}=e,o=p.useRef();null==o.current&&(o.current=w({window:a,v5Compat:!0}));let i=o.current,[l,s]=p.useState({action:i.action,location:i.location}),{v7_startTransition:u}=n||{},c=p.useCallback(e=>{u&&ro?ro(()=>s(e)):s(e)},[s,u]);return p.useLayoutEffect(()=>i.listen(c),[i,c]),p.useEffect(()=>tO(n),[n]),p.createElement(tH,{basename:t,children:r,location:l.location,navigationType:l.action,navigator:i,future:n})}function rf(e){let{basename:t,children:r,future:n,window:a}=e,o=p.useRef();null==o.current&&(o.current=b({window:a,v5Compat:!0}));let i=o.current,[l,s]=p.useState({action:i.action,location:i.location}),{v7_startTransition:u}=n||{},c=p.useCallback(e=>{u&&ro?ro(()=>s(e)):s(e)},[s,u]);return p.useLayoutEffect(()=>i.listen(c),[i,c]),p.useEffect(()=>tO(n),[n]),p.createElement(tH,{basename:t,children:r,location:l.location,navigationType:l.action,navigator:i,future:n})}function rp(e){let{basename:t,children:r,future:n,history:a}=e,[o,i]=p.useState({action:a.action,location:a.location}),{v7_startTransition:l}=n||{},s=p.useCallback(e=>{l&&ro?ro(()=>i(e)):i(e)},[i,l]);return p.useLayoutEffect(()=>a.listen(s),[a,s]),p.useEffect(()=>tO(n),[n]),p.createElement(tH,{basename:t,children:r,location:o.location,navigationType:o.action,navigator:a,future:n})}let rm="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement,rv=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,ry=p.forwardRef(function(e,t){let r,{onClick:n,relative:a,reloadDocument:o,replace:i,state:l,target:s,to:u,preventScrollReset:c,viewTransition:d}=e,h=t0(e,t6),{basename:f}=p.useContext(e5),m=!1;if("string"==typeof u&&rv.test(u)&&(r=u,rm))try{let e=new URL(window.location.href),t=new URL(u.startsWith("//")?e.protocol+u:u),r=N(t.pathname,f);t.origin===e.origin&&null!=r?u=r+t.search+t.hash:m=!0}catch(e){}let v=e9(u,{relative:a}),y=rR(u,{replace:i,state:l,target:s,preventScrollReset:c,relative:a,viewTransition:d});return p.createElement("a",tZ({},h,{href:r||v,onClick:m||o?n:function(e){n&&n(e),e.defaultPrevented||y(e)},ref:t,target:s}))}),rg=p.forwardRef(function(e,t){let r,{"aria-current":n="page",caseSensitive:a=!1,className:o="",end:i=!1,style:l,to:s,viewTransition:u,children:c}=e,d=t0(e,t8),h=tc(s,{relative:d.relative}),f=tt(),m=p.useContext(e4),{navigator:v,basename:y}=p.useContext(e5),g=null!=m&&rO(h)&&!0===u,w=v.encodeLocation?v.encodeLocation(h).pathname:h.pathname,b=f.pathname,E=m&&m.navigation&&m.navigation.location?m.navigation.location.pathname:null;a||(b=b.toLowerCase(),E=E?E.toLowerCase():null,w=w.toLowerCase()),E&&y&&(E=N(E,y)||E);let S="/"!==w&&w.endsWith("/")?w.length-1:w.length,R=b===w||!i&&b.startsWith(w)&&"/"===b.charAt(S),x=null!=E&&(E===w||!i&&E.startsWith(w)&&"/"===E.charAt(w.length)),C={isActive:R,isPending:x,isTransitioning:g},P=R?n:void 0;r="function"==typeof o?o(C):[o,R?"active":null,x?"pending":null,g?"transitioning":null].filter(Boolean).join(" ");let D="function"==typeof l?l(C):l;return p.createElement(ry,tZ({},d,{"aria-current":P,className:r,ref:t,style:D,to:s,viewTransition:u}),"function"==typeof c?c(C):c)}),rw=p.forwardRef((e,t)=>{let{fetcherKey:r,navigate:n,reloadDocument:a,replace:o,state:i,method:l="get",action:s,onSubmit:u,relative:c,preventScrollReset:d,viewTransition:h}=e,f=t0(e,t9),m=rD(),v=rL(s,{relative:c}),y="get"===l.toLowerCase()?"get":"post";return p.createElement("form",tZ({ref:t,method:y,action:v,onSubmit:a?u:e=>{if(u&&u(e),e.defaultPrevented)return;e.preventDefault();let t=e.nativeEvent.submitter,a=(null==t?void 0:t.getAttribute("formmethod"))||l;m(t||e.currentTarget,{fetcherKey:r,method:a,navigate:n,replace:o,state:i,relative:c,preventScrollReset:d,viewTransition:h})}},f))});function rb(e){let{getKey:t,storageKey:r}=e;return rU({getKey:t,storageKey:r}),null}function rE(e){let t=p.useContext(e7);return t||E(!1),t}function rS(e){let t=p.useContext(e4);return t||E(!1),t}function rR(e,t){let{target:r,replace:n,state:a,preventScrollReset:o,relative:i,viewTransition:l}=void 0===t?{}:t,s=to(),u=tt(),c=tc(e,{relative:i});return p.useCallback(t=>{0!==t.button||r&&"_self"!==r||t.metaKey||t.altKey||t.ctrlKey||t.shiftKey||(t.preventDefault(),s(e,{replace:void 0!==n?n:C(u)===C(c),state:a,preventScrollReset:o,relative:i,viewTransition:l}))},[u,s,c,n,a,r,e,o,i,l])}function rx(e){let t=p.useRef(t4(e)),r=p.useRef(!1),n=tt(),a=p.useMemo(()=>{var e,a;let o;return e=n.search,a=r.current?null:t.current,o=t4(e),a&&a.forEach((e,t)=>{o.has(t)||a.getAll(t).forEach(e=>{o.append(t,e)})}),o},[n.search]),o=to(),i=p.useCallback((e,t)=>{let n=t4("function"==typeof e?e(a):e);r.current=!0,o("?"+n,t)},[o,a]);return[a,i]}(s=h||(h={})).UseScrollRestoration="useScrollRestoration",s.UseSubmit="useSubmit",s.UseSubmitFetcher="useSubmitFetcher",s.UseFetcher="useFetcher",s.useViewTransitionState="useViewTransitionState",(u=f||(f={})).UseFetcher="useFetcher",u.UseFetchers="useFetchers",u.UseScrollRestoration="useScrollRestoration";let rC=0,rP=()=>"__"+String(++rC)+"__";function rD(){let{router:e}=rE(h.UseSubmit),{basename:t}=p.useContext(e5),r=tS();return p.useCallback(function(n,a){if(void 0===a&&(a={}),"undefined"==typeof document)throw Error("You are calling submit during the server render. Try calling submit within a `useEffect` or callback instead.");let{action:o,method:i,encType:l,formData:s,body:u}=function(e,t){let r,n,a,o,i;if(t7(e)&&"form"===e.tagName.toLowerCase()){let i=e.getAttribute("action");n=i?N(i,t):null,r=e.getAttribute("method")||"get",a=t3(e.getAttribute("enctype"))||t1,o=new FormData(e)}else if(t7(e)&&"button"===e.tagName.toLowerCase()||t7(e)&&"input"===e.tagName.toLowerCase()&&("submit"===e.type||"image"===e.type)){let i=e.form;if(null==i)throw Error('Cannot submit a <button> or <input type="submit"> without a <form>');let l=e.getAttribute("formaction")||i.getAttribute("action");if(n=l?N(l,t):null,r=e.getAttribute("formmethod")||i.getAttribute("method")||"get",a=t3(e.getAttribute("formenctype"))||t3(i.getAttribute("enctype"))||t1,o=new FormData(i,e),!function(){if(null===t2)try{new FormData(document.createElement("form"),0),t2=!1}catch(e){t2=!0}return t2}()){let{name:t,type:r,value:n}=e;if("image"===r){let e=t?t+".":"";o.append(e+"x","0"),o.append(e+"y","0")}else t&&o.append(t,n)}}else if(t7(e))throw Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');else r="get",n=null,a=t1,i=e;return o&&"text/plain"===a&&(i=o,o=void 0),{action:n,method:r.toLowerCase(),encType:a,formData:o,body:i}}(n,t);if(!1===a.navigate){let t=a.fetcherKey||rP();e.fetch(t,r,a.action||o,{preventScrollReset:a.preventScrollReset,formData:s,body:u,formMethod:a.method||i,formEncType:a.encType||l,flushSync:a.flushSync})}else e.navigate(a.action||o,{preventScrollReset:a.preventScrollReset,formData:s,body:u,formMethod:a.method||i,formEncType:a.encType||l,replace:a.replace,state:a.state,fromRouteId:r,flushSync:a.flushSync,viewTransition:a.viewTransition})},[e,t,r])}function rL(e,t){let{relative:r}=void 0===t?{}:t,{basename:n}=p.useContext(e5),a=p.useContext(e6);a||E(!1);let[o]=a.matches.slice(-1),i=tZ({},tc(e||".",{relative:r})),l=tt();if(null==e){i.search=l.search;let e=new URLSearchParams(i.search),t=e.getAll("index");if(t.some(e=>""===e)){e.delete("index"),t.filter(e=>e).forEach(t=>e.append("index",t));let r=e.toString();i.search=r?"?"+r:""}}return(!e||"."===e)&&o.route.index&&(i.search=i.search?i.search.replace(/^\?/,"?index&"):"?index"),"/"!==n&&(i.pathname="/"===i.pathname?n:$([n,i.pathname])),C(i)}function rk(e){var t;let{key:r}=void 0===e?{}:e,{router:n}=rE(h.UseFetcher),a=rS(f.UseFetcher),o=p.useContext(ra),i=p.useContext(e6),l=null==(t=i.matches[i.matches.length-1])?void 0:t.route.id;o||E(!1),i||E(!1),null==l&&E(!1);let s=rl?rl():"",[u,c]=p.useState(r||s);r&&r!==u?c(r):u||c(rP()),p.useEffect(()=>(n.getFetcher(u),()=>{n.deleteFetcher(u)}),[n,u]);let d=p.useCallback((e,t)=>{l||E(!1),n.fetch(u,l,e,t)},[u,l,n]),m=rD(),v=p.useCallback((e,t)=>{m(e,tZ({},t,{navigate:!1,fetcherKey:u}))},[u,m]),y=p.useMemo(()=>p.forwardRef((e,t)=>p.createElement(rw,tZ({},e,{navigate:!1,fetcherKey:u,ref:t}))),[u]),g=a.fetchers.get(u)||eu,w=o.get(u);return p.useMemo(()=>tZ({Form:y,submit:v,load:d},g,{data:w}),[y,v,d,g,w])}function r_(){return Array.from(rS(f.UseFetchers).fetchers.entries()).map(e=>{let[t,r]=e;return tZ({},r,{key:t})})}let rA="react-router-scroll-positions",rT={};function rU(e){let{getKey:t,storageKey:r}=void 0===e?{}:e,{router:n}=rE(h.UseScrollRestoration),{restoreScrollPosition:a,preventScrollReset:o}=rS(f.UseScrollRestoration),{basename:i}=p.useContext(e5),l=tt(),s=tC(),u=tR();p.useEffect(()=>(window.history.scrollRestoration="manual",()=>{window.history.scrollRestoration="auto"}),[]),function(e,t){let{capture:r}={};p.useEffect(()=>{let t=null!=r?{capture:r}:void 0;return window.addEventListener("pagehide",e,t),()=>{window.removeEventListener("pagehide",e,t)}},[e,r])}(p.useCallback(()=>{"idle"===u.state&&(rT[(t?t(l,s):null)||l.key]=window.scrollY);try{sessionStorage.setItem(r||rA,JSON.stringify(rT))}catch(e){}window.history.scrollRestoration="auto"},[r,t,u.state,l,s])),"undefined"!=typeof document&&(p.useLayoutEffect(()=>{try{let e=sessionStorage.getItem(r||rA);e&&(rT=JSON.parse(e))}catch(e){}},[r]),p.useLayoutEffect(()=>{let e=t&&"/"!==i?(e,r)=>t(tZ({},e,{pathname:N(e.pathname,i)||e.pathname}),r):t,r=null==n?void 0:n.enableScrollRestoration(rT,()=>window.scrollY,e);return()=>r&&r()},[n,i,t]),p.useLayoutEffect(()=>{if(!1!==a){if("number"==typeof a)return void window.scrollTo(0,a);if(l.hash){let e=document.getElementById(decodeURIComponent(l.hash.slice(1)));if(e)return void e.scrollIntoView()}!0!==o&&window.scrollTo(0,0)}},[l,a,o]))}function rj(e,t){let{capture:r}=t||{};p.useEffect(()=>{let t=null!=r?{capture:r}:void 0;return window.addEventListener("beforeunload",e,t),()=>{window.removeEventListener("beforeunload",e,t)}},[e,r])}function rM(e){let{when:t,message:r}=e,n=tU(t);p.useEffect(()=>{"blocked"===n.state&&(window.confirm(r)?setTimeout(n.proceed,0):n.reset())},[n,r]),p.useEffect(()=>{"blocked"!==n.state||t||n.reset()},[n,t])}function rO(e,t){void 0===t&&(t={});let r=p.useContext(rn);null==r&&E(!1);let{basename:n}=rE(h.useViewTransitionState),a=tc(e,{relative:t.relative});if(!r.isTransitioning)return!1;let o=N(r.currentLocation.pathname,n)||r.currentLocation.pathname,i=N(r.nextLocation.pathname,n)||r.nextLocation.pathname;return null!=O(a.pathname,i)||null!=O(a.pathname,o)}}}]);